hyperbook 0.113.0 → 0.113.2
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/README.md +18 -3
- package/dist/asset-manifest.json +9 -9
- package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-CE3Yr86b.js} +155 -155
- package/dist/assets/directive-bitflow/{ReportElements-BnX14NtV.js → ReportElements-eYGRtw6N.js} +1 -1
- package/dist/assets/directive-bitflow/{bitLoaders-DIGwTcpd.js → bitLoaders-CxvZkGrY.js} +1138 -1073
- package/dist/assets/directive-bitflow/editor.js +3 -3
- package/dist/assets/directive-bitflow/flow.js +3 -3
- package/dist/assets/directive-bitflow/{index-IQHOi2fr.js → index-88c3K20U.js} +31 -31
- package/dist/assets/directive-bitflow/{index-Bqf-kixT.js → index-B61LKxr1.js} +45 -45
- package/dist/assets/directive-bitflow/{index-CFcRAa3F.js → index-BG0PL-Z6.js} +30 -30
- package/dist/assets/directive-bitflow/{index-B3jMTk1o.js → index-BNdpL6Ss.js} +78 -78
- package/dist/assets/directive-bitflow/{index-Fq7njn6_.js → index-BO-d4HVC.js} +48 -48
- package/dist/assets/directive-bitflow/{index-Bf_NXJjq.js → index-BZhNY0lo.js} +12 -12
- package/dist/assets/directive-bitflow/{index-COndsSPW.js → index-BadyFTU5.js} +8 -8
- package/dist/assets/directive-bitflow/{index-CvCZVgKv.js → index-BlT1EcFH.js} +34 -34
- package/dist/assets/directive-bitflow/{index-CW9iev-_.js → index-BuQ-K_tR.js} +7 -7
- package/dist/assets/directive-bitflow/{index-DjWNEPDL.js → index-Bw0pL0hW.js} +28 -28
- package/dist/assets/directive-bitflow/{index-BQ5h4nDN.js → index-BwBVUdJ9.js} +94 -94
- package/dist/assets/directive-bitflow/{index-CjscG0z6.js → index-BydYlLy4.js} +73 -73
- package/dist/assets/directive-bitflow/{index-BpG316Ls.js → index-C7RJxxAx.js} +63 -63
- package/dist/assets/directive-bitflow/{index-eN2S_MLj.js → index-CERSJ9uS.js} +70 -70
- package/dist/assets/directive-bitflow/{index-DtsDy2By.js → index-CLHtOGrW.js} +11 -11
- package/dist/assets/directive-bitflow/{index-Bf_FQRbK.js → index-CWe2GjBK.js} +14 -14
- package/dist/assets/directive-bitflow/{index-CzdZQibq.js → index-CfKpkSVC.js} +72 -72
- package/dist/assets/directive-bitflow/{index-Fr7yl4Vn.js → index-CjKhq7gY.js} +23 -23
- package/dist/assets/directive-bitflow/{index-DoKlIgCD.js → index-Cm4w1Zyc.js} +38 -38
- package/dist/assets/directive-bitflow/{index-D5yZNeIg.js → index-D0U3nepG.js} +52 -52
- package/dist/assets/directive-bitflow/{index-C5czXkRd.js → index-D4PdXMcj.js} +33 -33
- package/dist/assets/directive-bitflow/{index-BLcJNyog.js → index-D9LOuqr2.js} +99 -99
- package/dist/assets/directive-bitflow/{index-BIJ7VfD2.js → index-DIb3CXwC.js} +42 -42
- package/dist/assets/directive-bitflow/{index-CZyaFdD2.js → index-DQP0cUsP.js} +70 -70
- package/dist/assets/directive-bitflow/{index-ChgzyMHe.js → index-DUOrQfVe.js} +27 -27
- package/dist/assets/directive-bitflow/{index-kRpwcprB.js → index-DW3cUBvZ.js} +1 -1
- package/dist/assets/directive-bitflow/{index-C_ZTSeqv.js → index-DYWo0PUv.js} +24 -24
- package/dist/assets/directive-bitflow/{index-xapm2BQE.js → index-D_QhyFcx.js} +101 -91
- package/dist/assets/directive-bitflow/{index-BdBBCZSy.js → index-Dn5hHVuT.js} +226 -193
- package/dist/assets/directive-bitflow/{index-D7m-hJZ9.js → index-DruC5d43.js} +69 -69
- package/dist/assets/directive-bitflow/{index-e_8twLaN.js → index-EKIgFddO.js} +105 -105
- package/dist/assets/directive-bitflow/{index-8jTO-NJA.js → index-HXNGIC7K.js} +70 -70
- package/dist/assets/directive-bitflow/{index-DnVYIuen.js → index-ISbOe239.js} +42 -42
- package/dist/assets/directive-bitflow/{index-cnRM_JDB.js → index-IsMJtrUT.js} +31 -31
- package/dist/assets/directive-bitflow/{index-B7Z6Q-PQ.js → index-TUXuIR22.js} +6 -6
- package/dist/assets/directive-bitflow/{index-CK1UMcfT.js → index-WbE9UOFa.js} +24 -24
- package/dist/assets/directive-bitflow/{index-YPMWh-1B.js → index-d5ebPDeY.js} +13 -13
- package/dist/assets/directive-bitflow/{index-NyNuXp4C.js → index-ledofrbo.js} +33 -33
- package/dist/assets/directive-bitflow/{index-BseSaQlX.js → index-oNmOArKu.js} +1 -1
- package/dist/assets/directive-bitflow/{index-ivI25bnR.js → index-rp4UTV85.js} +84 -84
- package/dist/assets/directive-bitflow/{index-XxGfBwJe.js → index-xTX3CXJW.js} +23 -23
- package/dist/assets/directive-bitflow/index.js +6 -6
- package/dist/assets/directive-bitflow/katex-DSLAjWZH-CHGN3Pr6.js +11314 -0
- package/dist/assets/directive-bitflow/katex-Dv-tcU2S-Dv-tcU2S.js +4 -0
- package/dist/assets/directive-bitflow/report.js +1 -1
- package/dist/assets/directive-bitflow/{shareableReport-ArQU1XjG.js → shareableReport-vjEU4OvA.js} +2 -2
- package/dist/index.js +6351 -3340
- package/dist/schemas/hyperbook.schema.json +4 -4
- package/package.json +5 -5
package/dist/assets/directive-bitflow/{EditorElement-zyz99U6n.js → EditorElement-CE3Yr86b.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as Qs, o as Qn, a as P, j as m, s as Gr, B as Ur, b as ke, g as Tn, x as Js, w 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, k as il } from "./dom-uYx_3K1r.js";
|
|
2
|
-
import { O as al, T as Jn, G as sl, d as ll,
|
|
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-CxvZkGrY.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: {
|
|
@@ -1286,9 +1286,9 @@ function dn() {
|
|
|
1286
1286
|
if (!(o = arguments[e] + "") || o in n || /[\s.]/.test(o)) throw new Error("illegal type: " + o);
|
|
1287
1287
|
n[o] = [];
|
|
1288
1288
|
}
|
|
1289
|
-
return new
|
|
1289
|
+
return new Zt(n);
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function Zt(e) {
|
|
1292
1292
|
this._ = e;
|
|
1293
1293
|
}
|
|
1294
1294
|
function Rl(e, t) {
|
|
@@ -1298,8 +1298,8 @@ function Rl(e, t) {
|
|
|
1298
1298
|
return { type: n, name: o };
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
|
|
1302
|
-
constructor:
|
|
1301
|
+
Zt.prototype = dn.prototype = {
|
|
1302
|
+
constructor: Zt,
|
|
1303
1303
|
on: function(e, t) {
|
|
1304
1304
|
var n = this._, o = Rl(e + "", n), r, i = -1, a = o.length;
|
|
1305
1305
|
if (arguments.length < 2) {
|
|
@@ -1315,7 +1315,7 @@ Ft.prototype = dn.prototype = {
|
|
|
1315
1315
|
copy: function() {
|
|
1316
1316
|
var e = {}, t = this._;
|
|
1317
1317
|
for (var n in t) e[n] = t[n].slice();
|
|
1318
|
-
return new
|
|
1318
|
+
return new Zt(e);
|
|
1319
1319
|
},
|
|
1320
1320
|
call: function(e, t) {
|
|
1321
1321
|
if ((r = arguments.length - 2) > 0) for (var n = new Array(r), o = 0, r, i; o < r; ++o) n[o] = arguments[o + 2];
|
|
@@ -1392,13 +1392,13 @@ function ii(e) {
|
|
|
1392
1392
|
return this.querySelectorAll(e);
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function Fl(e) {
|
|
1396
1396
|
return function() {
|
|
1397
1397
|
return Vl(e.apply(this, arguments));
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
typeof e == "function" ? e =
|
|
1400
|
+
function Zl(e) {
|
|
1401
|
+
typeof e == "function" ? e = Fl(e) : e = ii(e);
|
|
1402
1402
|
for (var t = this._groups, n = t.length, o = [], r = [], i = 0; i < n; ++i)
|
|
1403
1403
|
for (var a = t[i], s = a.length, l, c = 0; c < s; ++c)
|
|
1404
1404
|
(l = a[c]) && (o.push(e.call(l, l.__data__, c, a)), r.push(l));
|
|
@@ -1730,19 +1730,19 @@ function Vc(e) {
|
|
|
1730
1730
|
function Yc() {
|
|
1731
1731
|
this.innerHTML = "";
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function Fc(e) {
|
|
1734
1734
|
return function() {
|
|
1735
1735
|
this.innerHTML = e;
|
|
1736
1736
|
};
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function Zc(e) {
|
|
1739
1739
|
return function() {
|
|
1740
1740
|
var t = e.apply(this, arguments);
|
|
1741
1741
|
this.innerHTML = t ?? "";
|
|
1742
1742
|
};
|
|
1743
1743
|
}
|
|
1744
1744
|
function Xc(e) {
|
|
1745
|
-
return arguments.length ? this.each(e == null ? Yc : (typeof e == "function" ?
|
|
1745
|
+
return arguments.length ? this.each(e == null ? Yc : (typeof e == "function" ? Zc : Fc)(e)) : this.node().innerHTML;
|
|
1746
1746
|
}
|
|
1747
1747
|
function Wc() {
|
|
1748
1748
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
@@ -1876,7 +1876,7 @@ function pd() {
|
|
|
1876
1876
|
ce.prototype = Mt.prototype = {
|
|
1877
1877
|
constructor: ce,
|
|
1878
1878
|
select: Hl,
|
|
1879
|
-
selectAll:
|
|
1879
|
+
selectAll: Zl,
|
|
1880
1880
|
selectChild: ql,
|
|
1881
1881
|
selectChildren: Jl,
|
|
1882
1882
|
filter: ec,
|
|
@@ -2282,7 +2282,7 @@ function Ho() {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
function Xe(e) {
|
|
2284
2284
|
var t, n;
|
|
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)) ?
|
|
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
|
}
|
|
2287
2287
|
function Vo(e) {
|
|
2288
2288
|
return new se(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
@@ -2310,7 +2310,7 @@ oo(se, Hn, vi(Pt, {
|
|
|
2310
2310
|
return this;
|
|
2311
2311
|
},
|
|
2312
2312
|
clamp() {
|
|
2313
|
-
return new se(
|
|
2313
|
+
return new se(Fe(this.r), Fe(this.g), Fe(this.b), Qt(this.opacity));
|
|
2314
2314
|
},
|
|
2315
2315
|
displayable() {
|
|
2316
2316
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -2319,8 +2319,8 @@ oo(se, Hn, vi(Pt, {
|
|
|
2319
2319
|
// Deprecated! Use color.formatHex.
|
|
2320
2320
|
formatHex: Yo,
|
|
2321
2321
|
formatHex8: Ad,
|
|
2322
|
-
formatRgb:
|
|
2323
|
-
toString:
|
|
2322
|
+
formatRgb: Fo,
|
|
2323
|
+
toString: Fo
|
|
2324
2324
|
}));
|
|
2325
2325
|
function Yo() {
|
|
2326
2326
|
return `#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`;
|
|
@@ -2328,20 +2328,20 @@ function Yo() {
|
|
|
2328
2328
|
function Ad() {
|
|
2329
2329
|
return `#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Fo() {
|
|
2332
2332
|
const e = Qt(this.opacity);
|
|
2333
|
-
return `${e === 1 ? "rgb(" : "rgba("}${
|
|
2333
|
+
return `${e === 1 ? "rgb(" : "rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
2334
2334
|
}
|
|
2335
2335
|
function Qt(e) {
|
|
2336
2336
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Fe(e) {
|
|
2339
2339
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
2340
2340
|
}
|
|
2341
2341
|
function Ye(e) {
|
|
2342
|
-
return e =
|
|
2342
|
+
return e = Fe(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Zo(e, t, n, o) {
|
|
2345
2345
|
return o <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new fe(e, t, n, o);
|
|
2346
2346
|
}
|
|
2347
2347
|
function wi(e) {
|
|
@@ -2509,11 +2509,11 @@ function _i(e, t, n, o, r, i) {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
}
|
|
2511
2511
|
var Lt;
|
|
2512
|
-
function
|
|
2512
|
+
function Fd(e) {
|
|
2513
2513
|
const t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
2514
2514
|
return t.isIdentity ? ki : _i(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
2515
2515
|
}
|
|
2516
|
-
function
|
|
2516
|
+
function Zd(e) {
|
|
2517
2517
|
return e == null || (Lt || (Lt = document.createElementNS("http://www.w3.org/2000/svg", "g")), Lt.setAttribute("transform", e), !(e = Lt.transform.baseVal.consolidate())) ? ki : (e = e.matrix, _i(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
2518
2518
|
}
|
|
2519
2519
|
function Ci(e, t, n, o) {
|
|
@@ -2546,7 +2546,7 @@ function Ci(e, t, n, o) {
|
|
|
2546
2546
|
};
|
|
2547
2547
|
};
|
|
2548
2548
|
}
|
|
2549
|
-
var Xd = Ci(
|
|
2549
|
+
var Xd = Ci(Fd, "px, ", "px)", "deg)"), Wd = Ci(Zd, ", ", ")", ")"), Kd = 1e-12;
|
|
2550
2550
|
function Ko(e) {
|
|
2551
2551
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
2552
2552
|
}
|
|
@@ -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,
|
|
2650
|
+
var tu = dn("start", "end", "cancel", "interrupt"), nu = [], Pi = 0, Uo = 1, Fn = 2, Wt = 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 = {};
|
|
@@ -2699,16 +2699,16 @@ function ou(e, t, n) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
if (Go(function() {
|
|
2701
2701
|
n.state === Wt && (n.state = Qo, n.timer.restart(s, n.delay, n.time), s(c));
|
|
2702
|
-
}), n.state =
|
|
2702
|
+
}), n.state = Fn, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Fn) {
|
|
2703
2703
|
for (n.state = Wt, 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
|
}
|
|
2707
2707
|
}
|
|
2708
2708
|
function s(c) {
|
|
2709
|
-
for (var d = c < n.duration ? n.ease.call(null, c / n.duration) : (n.timer.restart(l), n.state =
|
|
2709
|
+
for (var d = c < n.duration ? n.ease.call(null, c / n.duration) : (n.timer.restart(l), n.state = Zn, 1), f = -1, u = r.length; ++f < u; )
|
|
2710
2710
|
r[f].call(e, d);
|
|
2711
|
-
n.state ===
|
|
2711
|
+
n.state === Zn && (n.on.call("end", e, e.__data__, n.index, n.group), l());
|
|
2712
2712
|
}
|
|
2713
2713
|
function l() {
|
|
2714
2714
|
n.state = Kt, n.timer.stop(), delete o[t];
|
|
@@ -2725,7 +2725,7 @@ function qt(e, t) {
|
|
|
2725
2725
|
i = !1;
|
|
2726
2726
|
continue;
|
|
2727
2727
|
}
|
|
2728
|
-
r = o.state >
|
|
2728
|
+
r = o.state > Fn && o.state < Zn, o.state = Kt, o.timer.stop(), o.on.call(r ? "interrupt" : "cancel", e, e.__data__, o.index, o.group), delete n[a];
|
|
2729
2729
|
}
|
|
2730
2730
|
i && delete e.__transition;
|
|
2731
2731
|
}
|
|
@@ -3008,16 +3008,16 @@ function Yu(e, t, n) {
|
|
|
3008
3008
|
return s == null && (l = s = (this.style.removeProperty(e), ot(this, e))), a === l ? null : a === o && l === r ? i : (r = l, i = t(o = a, s));
|
|
3009
3009
|
};
|
|
3010
3010
|
}
|
|
3011
|
-
function
|
|
3011
|
+
function Fu(e, t) {
|
|
3012
3012
|
var n, o, r, i = "style." + t, a = "end." + i, s;
|
|
3013
3013
|
return function() {
|
|
3014
3014
|
var l = Ce(this, e), c = l.on, d = l.value[i] == null ? s || (s = zi(t)) : void 0;
|
|
3015
3015
|
(c !== n || r !== d) && (o = (n = c).copy()).on(a, r = d), l.on = o;
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function Zu(e, t, n) {
|
|
3019
3019
|
var o = (e += "") == "transform" ? Xd : Ii;
|
|
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(
|
|
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
3022
|
function Xu(e, t, n) {
|
|
3023
3023
|
return function(o) {
|
|
@@ -3126,7 +3126,7 @@ Ie.prototype = {
|
|
|
3126
3126
|
on: Ou,
|
|
3127
3127
|
attr: gu,
|
|
3128
3128
|
attrTween: vu,
|
|
3129
|
-
style:
|
|
3129
|
+
style: Zu,
|
|
3130
3130
|
styleTween: Ku,
|
|
3131
3131
|
text: Uu,
|
|
3132
3132
|
textTween: ef,
|
|
@@ -3306,7 +3306,7 @@ 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, X = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]),
|
|
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, X = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]), F = j.__zoom, W = typeof M == "function" ? M.apply(j, O) : M, q = l(F.invert($).concat(X / F.k), W.invert($).concat(X / W.k));
|
|
3310
3310
|
return function(K) {
|
|
3311
3311
|
if (K === 1) K = W;
|
|
3312
3312
|
else {
|
|
@@ -3369,15 +3369,15 @@ function Oi() {
|
|
|
3369
3369
|
if (u || !e.apply(this, arguments)) return;
|
|
3370
3370
|
var N = y.currentTarget, I = S(this, M, !0).event(y), j = le(y.view).on("mousemove.zoom", $, !0).on("mouseup.zoom", X, !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
|
-
function $(
|
|
3373
|
-
if (ht(
|
|
3374
|
-
var W =
|
|
3372
|
+
function $(F) {
|
|
3373
|
+
if (ht(F), !I.moved) {
|
|
3374
|
+
var W = F.clientX - T, q = F.clientY - B;
|
|
3375
3375
|
I.moved = W * W + q * q > x;
|
|
3376
3376
|
}
|
|
3377
|
-
I.event(
|
|
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 X(
|
|
3380
|
-
j.on("mousemove.zoom mouseup.zoom", null), yi(
|
|
3379
|
+
function X(F) {
|
|
3380
|
+
j.on("mousemove.zoom mouseup.zoom", null), yi(F.view, I.moved), ht(F), I.event(F).end();
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
3383
|
function H(y, ...M) {
|
|
@@ -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 X = N.touch0[0],
|
|
3406
|
-
T = k(T, Math.sqrt(K / L)), B = [(X[0] + W[0]) / 2, (X[1] + W[1]) / 2], $ = [(
|
|
3405
|
+
var X = N.touch0[0], F = N.touch0[1], W = N.touch1[0], q = N.touch1[1], K = (K = W[0] - X[0]) * K + (K = W[1] - X[1]) * K, L = (L = q[0] - F[0]) * L + (L = q[1] - F[1]) * L;
|
|
3406
|
+
T = k(T, Math.sqrt(K / L)), B = [(X[0] + W[0]) / 2, (X[1] + W[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));
|
|
@@ -3490,10 +3490,10 @@ var it;
|
|
|
3490
3490
|
(function(e) {
|
|
3491
3491
|
e.Strict = "strict", e.Loose = "loose";
|
|
3492
3492
|
})(it || (it = {}));
|
|
3493
|
-
var
|
|
3493
|
+
var Ze;
|
|
3494
3494
|
(function(e) {
|
|
3495
3495
|
e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal";
|
|
3496
|
-
})(
|
|
3496
|
+
})(Ze || (Ze = {}));
|
|
3497
3497
|
var kt;
|
|
3498
3498
|
(function(e) {
|
|
3499
3499
|
e.Partial = "partial", e.Full = "full";
|
|
@@ -3519,15 +3519,15 @@ var on;
|
|
|
3519
3519
|
(function(e) {
|
|
3520
3520
|
e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
|
|
3521
3521
|
})(on || (on = {}));
|
|
3522
|
-
var
|
|
3522
|
+
var Z;
|
|
3523
3523
|
(function(e) {
|
|
3524
3524
|
e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom";
|
|
3525
|
-
})(
|
|
3525
|
+
})(Z || (Z = {}));
|
|
3526
3526
|
const er = {
|
|
3527
|
-
[
|
|
3528
|
-
[
|
|
3529
|
-
[
|
|
3530
|
-
[
|
|
3527
|
+
[Z.Left]: Z.Right,
|
|
3528
|
+
[Z.Right]: Z.Left,
|
|
3529
|
+
[Z.Top]: Z.Bottom,
|
|
3530
|
+
[Z.Bottom]: Z.Top
|
|
3531
3531
|
};
|
|
3532
3532
|
function Ti(e) {
|
|
3533
3533
|
return e === null ? null : e ? "valid" : "invalid";
|
|
@@ -3687,7 +3687,7 @@ const tr = (e, t, n) => e < t ? at(Math.abs(e - t), 1, t) / t : e > n ? -at(Math
|
|
|
3687
3687
|
}, Vi = (e, t) => mn(pn(Xn(e), Xn(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
|
-
}, 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),
|
|
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) => {
|
|
3691
3691
|
}, At = (e, t = [1, 1]) => ({
|
|
3692
3692
|
x: t[0] * Math.round(e.x / t[0]),
|
|
3693
3693
|
y: t[1] * Math.round(e.y / t[1])
|
|
@@ -3765,7 +3765,7 @@ function ye(e) {
|
|
|
3765
3765
|
height: e.measured?.height ?? e.height ?? e.initialHeight ?? 0
|
|
3766
3766
|
};
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
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
3771
|
function Xi(e, t = { width: 0, height: 0 }, n, o, r) {
|
|
@@ -3839,17 +3839,17 @@ function $t(e, t) {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
function ir({ pos: e, x1: t, y1: n, x2: o, y2: r, c: i }) {
|
|
3841
3841
|
switch (e) {
|
|
3842
|
-
case
|
|
3842
|
+
case Z.Left:
|
|
3843
3843
|
return [t - $t(t - o, i), n];
|
|
3844
|
-
case
|
|
3844
|
+
case Z.Right:
|
|
3845
3845
|
return [t + $t(o - t, i), n];
|
|
3846
|
-
case
|
|
3846
|
+
case Z.Top:
|
|
3847
3847
|
return [t, n - $t(n - r, i)];
|
|
3848
|
-
case
|
|
3848
|
+
case Z.Bottom:
|
|
3849
3849
|
return [t, n + $t(r - n, i)];
|
|
3850
3850
|
}
|
|
3851
3851
|
}
|
|
3852
|
-
function Ui({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
3852
|
+
function Ui({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top, curvature: a = 0.25 }) {
|
|
3853
3853
|
const [s, l] = ir({
|
|
3854
3854
|
pos: n,
|
|
3855
3855
|
x1: e,
|
|
@@ -3923,12 +3923,12 @@ function Ji({ sourceX: e, sourceY: t, targetX: n, targetY: o }) {
|
|
|
3923
3923
|
return [`M ${e},${t}L ${n},${o}`, r, i, a, s];
|
|
3924
3924
|
}
|
|
3925
3925
|
const ar = {
|
|
3926
|
-
[
|
|
3927
|
-
[
|
|
3928
|
-
[
|
|
3929
|
-
[
|
|
3930
|
-
}, zf = ({ source: e, sourcePosition: t =
|
|
3931
|
-
function Af({ source: e, sourcePosition: t =
|
|
3926
|
+
[Z.Left]: { x: -1, y: 0 },
|
|
3927
|
+
[Z.Right]: { x: 1, y: 0 },
|
|
3928
|
+
[Z.Top]: { x: 0, y: -1 },
|
|
3929
|
+
[Z.Bottom]: { x: 0, y: 1 }
|
|
3930
|
+
}, zf = ({ source: e, sourcePosition: t = Z.Bottom, target: n }) => t === Z.Left || t === Z.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, sr = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
3931
|
+
function Af({ source: e, sourcePosition: t = Z.Bottom, target: n, targetPosition: o = Z.Top, center: r, offset: i, stepPosition: a }) {
|
|
3932
3932
|
const s = ar[t], l = ar[o], c = { x: e.x + s.x * i, y: e.y + s.y * i }, d = { x: n.x + l.x * i, y: n.y + l.y * i }, f = zf({
|
|
3933
3933
|
source: c,
|
|
3934
3934
|
sourcePosition: t,
|
|
@@ -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 Wn({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
3991
|
+
function Wn({ 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,
|
|
@@ -4021,7 +4021,7 @@ function Of(e) {
|
|
|
4021
4021
|
sourceHandle: e.sourceHandle,
|
|
4022
4022
|
targetHandle: e.targetHandle
|
|
4023
4023
|
})), null;
|
|
4024
|
-
const s = i?.position ||
|
|
4024
|
+
const s = i?.position || Z.Bottom, l = a?.position || Z.Top, c = Ge(t, i, s), d = Ge(n, a, l);
|
|
4025
4025
|
return {
|
|
4026
4026
|
sourceX: c.x,
|
|
4027
4027
|
sourceY: c.y,
|
|
@@ -4042,18 +4042,18 @@ function cr(e) {
|
|
|
4042
4042
|
target: n
|
|
4043
4043
|
};
|
|
4044
4044
|
}
|
|
4045
|
-
function Ge(e, t, n =
|
|
4045
|
+
function Ge(e, t, n = Z.Left, o = !1) {
|
|
4046
4046
|
const r = (t?.x ?? 0) + e.internals.positionAbsolute.x, i = (t?.y ?? 0) + e.internals.positionAbsolute.y, { width: a, height: s } = t ?? ye(e);
|
|
4047
4047
|
if (o)
|
|
4048
4048
|
return { x: r + a / 2, y: i + s / 2 };
|
|
4049
4049
|
switch (t?.position ?? n) {
|
|
4050
|
-
case
|
|
4050
|
+
case Z.Top:
|
|
4051
4051
|
return { x: r + a / 2, y: i };
|
|
4052
|
-
case
|
|
4052
|
+
case Z.Right:
|
|
4053
4053
|
return { x: r + a, y: i + s / 2 };
|
|
4054
|
-
case
|
|
4054
|
+
case Z.Bottom:
|
|
4055
4055
|
return { x: r + a / 2, y: i + s };
|
|
4056
|
-
case
|
|
4056
|
+
case Z.Left:
|
|
4057
4057
|
return { x: r, y: i + s / 2 };
|
|
4058
4058
|
}
|
|
4059
4059
|
}
|
|
@@ -4334,7 +4334,7 @@ function fr(e, t, n) {
|
|
|
4334
4334
|
} while (o);
|
|
4335
4335
|
return !1;
|
|
4336
4336
|
}
|
|
4337
|
-
function
|
|
4337
|
+
function Ff(e, t, n, o) {
|
|
4338
4338
|
const r = /* @__PURE__ */ new Map();
|
|
4339
4339
|
for (const [i, a] of e)
|
|
4340
4340
|
if ((a.selected || a.id === o) && (!a.parentId || !oa(a, e)) && (a.draggable || t && typeof a.draggable > "u")) {
|
|
@@ -4383,7 +4383,7 @@ function zn({ nodeId: e, dragItems: t, nodeLookup: n, dragging: o = !0 }) {
|
|
|
4383
4383
|
r
|
|
4384
4384
|
];
|
|
4385
4385
|
}
|
|
4386
|
-
function
|
|
4386
|
+
function Zf({ dragItems: e, snapGrid: t, x: n, y: o }) {
|
|
4387
4387
|
const r = e.values().next().value;
|
|
4388
4388
|
if (!r)
|
|
4389
4389
|
return null;
|
|
@@ -4404,7 +4404,7 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
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
4406
|
let X = !1;
|
|
4407
|
-
const
|
|
4407
|
+
const F = s.size > 1, W = F && M ? Xn(zt(s)) : null, q = F && I ? Zf({
|
|
4408
4408
|
dragItems: s,
|
|
4409
4409
|
snapGrid: N,
|
|
4410
4410
|
x: A,
|
|
@@ -4419,7 +4419,7 @@ 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 (
|
|
4422
|
+
if (F && M && !L.extent && W) {
|
|
4423
4423
|
const { positionAbsolute: U } = L.internals, J = U.x - W.x + M[0][0], te = U.x + L.measured.width - W.x2 + M[1][0], ae = U.y - W.y + M[0][1], be = U.y + L.measured.height - W.y2 + M[1][1];
|
|
4424
4424
|
G = [
|
|
4425
4425
|
[J, ae],
|
|
@@ -4460,13 +4460,13 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
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
4462
|
const X = yt(A.sourceEvent, { transform: N, snapGrid: I, snapToGrid: j, containerBounds: d });
|
|
4463
|
-
if (i = X, s =
|
|
4464
|
-
const [
|
|
4463
|
+
if (i = X, s = Ff(_, M, X, S), s.size > 0 && (n || T || !S && B)) {
|
|
4464
|
+
const [F, W] = zn({
|
|
4465
4465
|
nodeId: S,
|
|
4466
4466
|
dragItems: s,
|
|
4467
4467
|
nodeLookup: _
|
|
4468
4468
|
});
|
|
4469
|
-
n?.(A.sourceEvent, s,
|
|
4469
|
+
n?.(A.sourceEvent, s, F, W), T?.(A.sourceEvent, F, W), S || B?.(A.sourceEvent, W);
|
|
4470
4470
|
}
|
|
4471
4471
|
}
|
|
4472
4472
|
const R = bi().clickDistance(C).on("start", (A) => {
|
|
@@ -4577,7 +4577,7 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4577
4577
|
const [G, Q] = uo(j, M, S);
|
|
4578
4578
|
u({ x: G, y: Q }), H = requestAnimationFrame(X);
|
|
4579
4579
|
}
|
|
4580
|
-
const
|
|
4580
|
+
const F = {
|
|
4581
4581
|
...I,
|
|
4582
4582
|
nodeId: r,
|
|
4583
4583
|
type: y,
|
|
@@ -4586,13 +4586,13 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4586
4586
|
let q = {
|
|
4587
4587
|
inProgress: !0,
|
|
4588
4588
|
isValid: null,
|
|
4589
|
-
from: Ge(W,
|
|
4590
|
-
fromHandle:
|
|
4591
|
-
fromPosition:
|
|
4589
|
+
from: Ge(W, F, Z.Left, !0),
|
|
4590
|
+
fromHandle: F,
|
|
4591
|
+
fromPosition: F.position,
|
|
4592
4592
|
fromNode: W,
|
|
4593
4593
|
to: j,
|
|
4594
4594
|
toHandle: null,
|
|
4595
|
-
toPosition: er[
|
|
4595
|
+
toPosition: er[F.position],
|
|
4596
4596
|
toNode: null,
|
|
4597
4597
|
pointer: j
|
|
4598
4598
|
};
|
|
@@ -4607,12 +4607,12 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4607
4607
|
return;
|
|
4608
4608
|
K();
|
|
4609
4609
|
}
|
|
4610
|
-
if (!E() || !
|
|
4610
|
+
if (!E() || !F) {
|
|
4611
4611
|
Y(G);
|
|
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,
|
|
4615
|
+
j = ge(G, M), R = qf(Dt(j, Q, !1, [1, 1]), n, l, F), O || (X(), O = !0);
|
|
4616
4616
|
const V = sa(G, {
|
|
4617
4617
|
handle: R,
|
|
4618
4618
|
connectionMode: t,
|
|
@@ -4626,13 +4626,13 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4626
4626
|
nodeLookup: l
|
|
4627
4627
|
});
|
|
4628
4628
|
$ = V.handleDomNode, T = V.connection, B = Gf(!!R, V.isValid);
|
|
4629
|
-
const U = l.get(r), J = U ? Ge(U,
|
|
4629
|
+
const U = l.get(r), J = U ? Ge(U, F, Z.Left, !0) : q.from, te = {
|
|
4630
4630
|
...q,
|
|
4631
4631
|
from: J,
|
|
4632
4632
|
isValid: B,
|
|
4633
4633
|
to: V.toHandle && B ? st({ x: V.toHandle.x, y: V.toHandle.y }, Q) : j,
|
|
4634
4634
|
toHandle: V.toHandle,
|
|
4635
|
-
toPosition: B && V.toHandle ? V.toHandle.position : er[
|
|
4635
|
+
toPosition: B && V.toHandle ? V.toHandle.position : er[F.position],
|
|
4636
4636
|
toNode: V.toHandle ? l.get(V.toHandle.nodeId) : null,
|
|
4637
4637
|
pointer: j
|
|
4638
4638
|
};
|
|
@@ -4752,8 +4752,8 @@ function eh({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: o,
|
|
|
4752
4752
|
return;
|
|
4753
4753
|
}
|
|
4754
4754
|
const u = d.deltaMode === 1 ? 20 : 1;
|
|
4755
|
-
let h = r ===
|
|
4756
|
-
!Ct() && d.shiftKey && r !==
|
|
4755
|
+
let h = r === Ze.Vertical ? 0 : d.deltaX * u, g = r === Ze.Horizontal ? 0 : d.deltaY * u;
|
|
4756
|
+
!Ct() && d.shiftKey && r !== Ze.Vertical && (h = d.deltaY * u, g = 0), o.translateBy(
|
|
4757
4757
|
n,
|
|
4758
4758
|
-(h / f) * i,
|
|
4759
4759
|
-(g / f) * i,
|
|
@@ -4853,7 +4853,7 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4853
4853
|
u?.interpolate(_?.interpolate === "linear" ? mt : Xt).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: X, panActivationKeyPressed:
|
|
4856
|
+
function v({ noWheelClassName: A, noPanClassName: _, onPaneContextMenu: y, userSelectionActive: M, panOnScroll: N, panOnDrag: I, panOnScrollMode: j, panOnScrollSpeed: O, preventScrolling: T, zoomOnPinch: B, zoomOnScroll: $, zoomOnDoubleClick: X, panActivationKeyPressed: F = !1, zoomActivationKeyPressed: W, lib: q, onTransformChange: K, connectionInProgress: L, paneClickDistance: Y, selectionOnDrag: G }) {
|
|
4857
4857
|
M && !c.isZoomingOrPanning && k();
|
|
4858
4858
|
const Q = N && !W && !M;
|
|
4859
4859
|
u.clickDistance(G ? 1 / 0 : !he(Y) || Y < 0 ? 0 : Y);
|
|
@@ -4898,7 +4898,7 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4898
4898
|
});
|
|
4899
4899
|
u.on("end", te);
|
|
4900
4900
|
const ae = ih({
|
|
4901
|
-
panActivationKeyPressed:
|
|
4901
|
+
panActivationKeyPressed: F,
|
|
4902
4902
|
zoomActivationKeyPressed: W,
|
|
4903
4903
|
panOnDrag: I,
|
|
4904
4904
|
zoomOnScroll: $,
|
|
@@ -5126,18 +5126,18 @@ 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, $ = {}, X = p.origin ?? M, { width:
|
|
5129
|
+
const { x: j, y: O, width: T, height: B } = v, $ = {}, X = p.origin ?? M, { width: F, height: W, x: q, y: K } = lh(k, a.controlDirection, N, a.boundaries, a.keepAspectRatio, X, C, z), L = F !== T, Y = W !== B, G = q !== j && L, Q = K !== O && Y;
|
|
5130
5130
|
if (!G && !Q && !L && !Y)
|
|
5131
5131
|
return;
|
|
5132
5132
|
if ((G || Q || X[0] === 1 || X[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 + X[0] * (
|
|
5136
|
+
x: ae.position.x - J + X[0] * (F - T),
|
|
5137
5137
|
y: ae.position.y - te + X[1] * (W - B)
|
|
5138
5138
|
}, I.push(ae);
|
|
5139
5139
|
}
|
|
5140
|
-
if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ?
|
|
5140
|
+
if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ? F : v.width, $.height = Y && (!a.resizeDirection || a.resizeDirection === "vertical") ? W : v.height, v.width = $.width, v.height = $.height), S && p.expandParent) {
|
|
5141
5141
|
const J = X[0] * ($.width ?? 0);
|
|
5142
5142
|
$.x && $.x < J && (v.x = J, k.x = k.x - ($.x - J));
|
|
5143
5143
|
const te = X[1] * ($.height ?? 0);
|
|
@@ -5637,14 +5637,14 @@ function ma(e, t) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
const s = { ...i };
|
|
5639
5639
|
for (const l of a)
|
|
5640
|
-
|
|
5640
|
+
Fh(l, s);
|
|
5641
5641
|
n.push(s);
|
|
5642
5642
|
}
|
|
5643
5643
|
return r.length && r.forEach((i) => {
|
|
5644
5644
|
i.index !== void 0 ? n.splice(i.index, 0, { ...i.item }) : n.push({ ...i.item });
|
|
5645
5645
|
}), n;
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5647
|
+
function Fh(e, t) {
|
|
5648
5648
|
switch (e.type) {
|
|
5649
5649
|
case "select": {
|
|
5650
5650
|
t.selected = e.selected;
|
|
@@ -5665,7 +5665,7 @@ function Zh(e, t) {
|
|
|
5665
5665
|
function ya(e, t) {
|
|
5666
5666
|
return ma(e, t);
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Zh(e, t) {
|
|
5669
5669
|
return ma(e, t);
|
|
5670
5670
|
}
|
|
5671
5671
|
function Ve(e, t) {
|
|
@@ -5699,7 +5699,7 @@ function Ar(e) {
|
|
|
5699
5699
|
type: "remove"
|
|
5700
5700
|
};
|
|
5701
5701
|
}
|
|
5702
|
-
const Xh =
|
|
5702
|
+
const Xh = Fi();
|
|
5703
5703
|
function Wh(e, t, n = {}) {
|
|
5704
5704
|
return If(e, t, {
|
|
5705
5705
|
...n,
|
|
@@ -5941,7 +5941,7 @@ const wn = {
|
|
|
5941
5941
|
lib: e.lib,
|
|
5942
5942
|
connectionInProgress: e.connection.inProgress
|
|
5943
5943
|
});
|
|
5944
|
-
function og({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panActivationKeyPressed: r, panOnScrollSpeed: i = 0.5, panOnScrollMode: a =
|
|
5944
|
+
function og({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panActivationKeyPressed: r, panOnScrollSpeed: i = 0.5, panOnScrollMode: a = Ze.Free, zoomOnDoubleClick: s = !0, panOnDrag: l = !0, defaultViewport: c, translateExtent: d, minZoom: f, maxZoom: u, zoomActivationKeyCode: h, preventScrolling: g = !0, children: x, noWheelClassName: w, noPanClassName: v, onViewportChange: k, isControlledViewport: p, paneClickDistance: b, selectionOnDrag: E }) {
|
|
5945
5945
|
const S = ne(), C = P.useRef(null), { userSelectionActive: z, lib: D, connectionInProgress: H } = ee(ng, re), R = Nt(h), A = P.useRef();
|
|
5946
5946
|
tg(C);
|
|
5947
5947
|
const _ = P.useCallback((y) => {
|
|
@@ -6133,7 +6133,7 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
|
|
|
6133
6133
|
cancelAnimationFrame(w.current), w.current = 0, M.current = !1;
|
|
6134
6134
|
};
|
|
6135
6135
|
P.useEffect(() => () => X(), []);
|
|
6136
|
-
const
|
|
6136
|
+
const F = (L) => {
|
|
6137
6137
|
const { userSelectionRect: Y, transform: G, resetSelectedElements: Q } = v.getState();
|
|
6138
6138
|
if (!D.current || !Y)
|
|
6139
6139
|
return;
|
|
@@ -6161,7 +6161,7 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
|
|
|
6161
6161
|
}, q = (L) => {
|
|
6162
6162
|
L.target?.releasePointerCapture?.(L.pointerId), X();
|
|
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 ?
|
|
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: W, 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);
|
|
@@ -6270,7 +6270,7 @@ const hg = {
|
|
|
6270
6270
|
valid: d && c
|
|
6271
6271
|
};
|
|
6272
6272
|
};
|
|
6273
|
-
function pg({ type: e = "source", position: t =
|
|
6273
|
+
function pg({ type: e = "source", position: t = Z.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: r = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: l, className: c, onMouseDown: d, onTouchStart: f, ...u }, h) {
|
|
6274
6274
|
const g = a || null, x = e === "target", w = ne(), v = ka(), { connectOnClick: k, noPanClassName: p, rfId: b } = fg(), { connectingFrom: E, connectingTo: S, clickConnecting: C, isPossibleEndHandle: z, connectionInProcess: D, clickConnectionInProcess: H, valid: R } = ee(gg(v, g, e), re);
|
|
6275
6275
|
v || w.getState().onError?.("010", pe.error010());
|
|
6276
6276
|
const A = (M) => {
|
|
@@ -6316,7 +6316,7 @@ function pg({ type: e = "source", position: t = F.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: X, connection:
|
|
6319
|
+
const { onClickConnectStart: N, onClickConnectEnd: I, connectionClickStartHandle: j, connectionMode: O, isValidConnection: T, lib: B, rfId: $, nodeLookup: X, connection: F } = w.getState();
|
|
6320
6320
|
if (!v || !j && !r)
|
|
6321
6321
|
return;
|
|
6322
6322
|
if (!j) {
|
|
@@ -6340,7 +6340,7 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
|
|
|
6340
6340
|
nodeLookup: X
|
|
6341
6341
|
});
|
|
6342
6342
|
L && K && A(K);
|
|
6343
|
-
const Y = structuredClone(
|
|
6343
|
+
const Y = structuredClone(F);
|
|
6344
6344
|
delete Y.inProgress, Y.toPosition = Y.toHandle ? Y.toHandle.position : null, I?.(M, Y), w.setState({ connectionClickStartHandle: null });
|
|
6345
6345
|
};
|
|
6346
6346
|
return m.jsx("div", { "data-handleid": g, "data-nodeid": v, "data-handlepos": t, "data-id": `${b}-${v}-${g}-${e}`, className: ie([
|
|
@@ -6368,16 +6368,16 @@ function pg({ type: e = "source", position: t = F.Top, isValidConnection: n, isC
|
|
|
6368
6368
|
]), onMouseDown: _, onTouchStart: _, onClick: k ? y : void 0, ref: h, ...u, children: l });
|
|
6369
6369
|
}
|
|
6370
6370
|
const ct = P.memo(ba(pg));
|
|
6371
|
-
function mg({ data: e, isConnectable: t, sourcePosition: n =
|
|
6371
|
+
function mg({ data: e, isConnectable: t, sourcePosition: n = Z.Bottom }) {
|
|
6372
6372
|
return m.jsxs(m.Fragment, { children: [e?.label, m.jsx(ct, { type: "source", position: n, isConnectable: t })] });
|
|
6373
6373
|
}
|
|
6374
|
-
function yg({ data: e, isConnectable: t, targetPosition: n =
|
|
6374
|
+
function yg({ data: e, isConnectable: t, targetPosition: n = Z.Top, sourcePosition: o = Z.Bottom }) {
|
|
6375
6375
|
return m.jsxs(m.Fragment, { children: [m.jsx(ct, { type: "target", position: n, isConnectable: t }), e?.label, m.jsx(ct, { type: "source", position: o, isConnectable: t })] });
|
|
6376
6376
|
}
|
|
6377
6377
|
function bg() {
|
|
6378
6378
|
return null;
|
|
6379
6379
|
}
|
|
6380
|
-
function vg({ data: e, isConnectable: t, targetPosition: n =
|
|
6380
|
+
function vg({ data: e, isConnectable: t, targetPosition: n = Z.Top }) {
|
|
6381
6381
|
return m.jsxs(m.Fragment, { children: [m.jsx(ct, { type: "target", position: n, isConnectable: t }), e?.label] });
|
|
6382
6382
|
}
|
|
6383
6383
|
const sn = {
|
|
@@ -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), X = Nt(c, { target: Lr }),
|
|
6446
|
-
return eg({ deleteKeyCode: l, multiSelectionKeyCode: g }), m.jsx(og, { onPaneContextMenu: i, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: q, panActivationKeyPressed:
|
|
6445
|
+
const { nodesSelectionActive: B, userSelectionActive: $ } = ee(kg, re), X = Nt(c, { target: Lr }), F = Nt(x, { target: Lr }), W = F || z, q = F || b, K = d && W !== !0, L = X || $ || 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: !X && W, 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: W, autoPanOnSelection: D, isSelecting: !!L, selectionMode: f, selectionKeyPressed: X, 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());
|
|
@@ -6491,7 +6491,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
6491
6491
|
}, re);
|
|
6492
6492
|
let S = p.type || "default", C = w?.[S] || Rr[S];
|
|
6493
6493
|
C === void 0 && (k?.("003", pe.error003(S)), S = "default", C = w?.default || Rr.default);
|
|
6494
|
-
const z = !!(p.draggable || s && typeof p.draggable > "u"), D = !!(p.selectable || l && typeof p.selectable > "u"), H = !!(p.connectable || c && typeof p.connectable > "u"), R = !!(p.focusable || d && typeof p.focusable > "u"), A = ne(), _ =
|
|
6494
|
+
const z = !!(p.draggable || s && typeof p.draggable > "u"), D = !!(p.selectable || l && typeof p.selectable > "u"), H = !!(p.connectable || c && typeof p.connectable > "u"), R = !!(p.focusable || d && typeof p.focusable > "u"), A = ne(), _ = Zi(p), y = Pg({ node: p, nodeType: S, hasDimensions: _, resizeObserver: f }), M = xa({
|
|
6495
6495
|
nodeRef: y,
|
|
6496
6496
|
disabled: p.hidden || !z,
|
|
6497
6497
|
noDragClassName: u,
|
|
@@ -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, X = i ? (L) => i(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, X = i ? (L) => i(L, { ...b.userNode }) : void 0, F = a ? (L) => a(L, { ...b.userNode }) : void 0, W = (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: X, onClick: W, onDoubleClick:
|
|
6567
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: B, onMouseLeave: $, onContextMenu: X, onClick: W, 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) => ({
|
|
@@ -6679,9 +6679,9 @@ function xn({ path: e, labelX: t, labelY: n, label: o, labelStyle: r, labelShowB
|
|
|
6679
6679
|
return m.jsxs(m.Fragment, { children: [m.jsx("path", { ...d, d: e, fill: "none", className: ie(["react-flow__edge-path", d.className]) }), c ? m.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: c, className: "react-flow__edge-interaction" }) : null, o && he(t) && he(n) ? m.jsx(Bg, { x: t, y: n, label: o, labelStyle: r, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: l }) : null] });
|
|
6680
6680
|
}
|
|
6681
6681
|
function $r({ pos: e, x1: t, y1: n, x2: o, y2: r }) {
|
|
6682
|
-
return e ===
|
|
6682
|
+
return e === Z.Left || e === Z.Right ? [0.5 * (t + o), n] : [t, 0.5 * (n + r)];
|
|
6683
6683
|
}
|
|
6684
|
-
function Pa({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
6684
|
+
function Pa({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top }) {
|
|
6685
6685
|
const [a, s] = $r({
|
|
6686
6686
|
pos: n,
|
|
6687
6687
|
x1: e,
|
|
@@ -6729,7 +6729,7 @@ const Hg = Ia({ isInternal: !1 }), za = Ia({ isInternal: !0 });
|
|
|
6729
6729
|
Hg.displayName = "SimpleBezierEdge";
|
|
6730
6730
|
za.displayName = "SimpleBezierEdgeInternal";
|
|
6731
6731
|
function Aa(e) {
|
|
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 =
|
|
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
6733
|
const [p, b, E] = Wn({
|
|
6734
6734
|
sourceX: n,
|
|
6735
6735
|
sourceY: o,
|
|
@@ -6766,7 +6766,7 @@ const Yg = La({ isInternal: !1 }), Ta = La({ isInternal: !0 });
|
|
|
6766
6766
|
Yg.displayName = "StraightEdge";
|
|
6767
6767
|
Ta.displayName = "StraightEdgeInternal";
|
|
6768
6768
|
function $a(e) {
|
|
6769
|
-
return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, sourcePosition: a =
|
|
6769
|
+
return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, sourcePosition: a = Z.Bottom, targetPosition: s = Z.Top, label: l, labelStyle: c, labelShowBg: d, labelBgStyle: f, labelBgPadding: u, labelBgBorderRadius: h, style: g, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
|
|
6770
6770
|
const [p, b, E] = Ui({
|
|
6771
6771
|
sourceX: n,
|
|
6772
6772
|
sourceY: o,
|
|
@@ -6779,8 +6779,8 @@ function $a(e) {
|
|
|
6779
6779
|
return m.jsx(xn, { id: S, path: p, labelX: b, labelY: E, label: l, labelStyle: c, labelShowBg: d, labelBgStyle: f, labelBgPadding: u, labelBgBorderRadius: h, style: g, markerEnd: x, markerStart: w, interactionWidth: k });
|
|
6780
6780
|
});
|
|
6781
6781
|
}
|
|
6782
|
-
const
|
|
6783
|
-
|
|
6782
|
+
const Fg = $a({ isInternal: !1 }), Ba = $a({ isInternal: !0 });
|
|
6783
|
+
Fg.displayName = "BezierEdge";
|
|
6784
6784
|
Ba.displayName = "BezierEdgeInternal";
|
|
6785
6785
|
const Br = {
|
|
6786
6786
|
default: Ba,
|
|
@@ -6796,9 +6796,9 @@ const Br = {
|
|
|
6796
6796
|
sourcePosition: null,
|
|
6797
6797
|
targetPosition: null,
|
|
6798
6798
|
zIndex: void 0
|
|
6799
|
-
},
|
|
6799
|
+
}, Zg = (e, t, n) => n === Z.Left ? e - t : n === Z.Right ? e + t : e, Xg = (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:
|
|
6801
|
+
return m.jsx("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: a, className: ie([Vr, `${Vr}-${s}`]), cx: Zg(t, o, e), cy: Xg(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
|
|
6802
6802
|
}
|
|
6803
6803
|
function Wg({ 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) => {
|
|
@@ -6867,7 +6867,7 @@ 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), X = P.useMemo(() => p.markerStart ? `url('#${Kn(p.markerStart, g)}')` : void 0, [p.markerStart, g]),
|
|
6870
|
+
}, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex, v]), re), X = 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
6873
|
const W = (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: W, 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: X, markerEnd:
|
|
6904
|
+
]), onClick: W, 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: X, markerEnd: F, pathOptions: "pathOptions" in p ? p.pathOptions : void 0, interactionWidth: p.interactionWidth }), z && m.jsx(Wg, { 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) => ({
|
|
@@ -6916,17 +6916,17 @@ function Ha({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edge
|
|
|
6916
6916
|
return m.jsxs("div", { className: "react-flow__edges", children: [m.jsx($g, { defaultColor: e, rfId: n }), b.map((E) => m.jsx(qg, { id: E, edgesFocusable: w, edgesReconnectable: v, elementsSelectable: k, noPanClassName: r, onReconnect: i, onContextMenu: a, onMouseEnter: s, onMouseMove: l, onMouseLeave: c, onClick: d, reconnectRadius: f, onDoubleClick: u, onReconnectStart: h, onReconnectEnd: g, rfId: n, onError: p, edgeTypes: o, disableKeyboardA11y: x }, E))] });
|
|
6917
6917
|
}
|
|
6918
6918
|
Ha.displayName = "EdgeRenderer";
|
|
6919
|
-
const Ug = P.memo(Ha),
|
|
6919
|
+
const Ug = P.memo(Ha), Fr = (e) => `translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;
|
|
6920
6920
|
function Qg({ children: e }) {
|
|
6921
6921
|
const t = ne(), n = P.useRef(null), [o] = P.useState(() => t.getState().transform);
|
|
6922
6922
|
return va(() => {
|
|
6923
6923
|
let r = null;
|
|
6924
6924
|
const i = () => {
|
|
6925
6925
|
const a = t.getState().transform;
|
|
6926
|
-
r && a[0] === r[0] && a[1] === r[1] && a[2] === r[2] || (r = a, n.current && (n.current.style.transform =
|
|
6926
|
+
r && a[0] === r[0] && a[1] === r[1] && a[2] === r[2] || (r = a, n.current && (n.current.style.transform = Fr(a)));
|
|
6927
6927
|
};
|
|
6928
6928
|
return i(), t.subscribe(i);
|
|
6929
|
-
}, [t]), m.jsx("div", { ref: n, className: "react-flow__viewport xyflow__viewport react-flow__container", style: { transform:
|
|
6929
|
+
}, [t]), m.jsx("div", { ref: n, className: "react-flow__viewport xyflow__viewport react-flow__container", style: { transform: Fr(o) }, children: e });
|
|
6930
6930
|
}
|
|
6931
6931
|
function Jg(e) {
|
|
6932
6932
|
const t = vo(), n = P.useRef(!1);
|
|
@@ -7000,7 +7000,7 @@ const Va = ({ style: e, type: t = Re.Bezier, CustomComponent: n, isValid: o }) =
|
|
|
7000
7000
|
};
|
|
7001
7001
|
Va.displayName = "ConnectionLine";
|
|
7002
7002
|
const sp = {};
|
|
7003
|
-
function
|
|
7003
|
+
function Zr(e = sp) {
|
|
7004
7004
|
P.useRef(e), ne(), P.useEffect(() => {
|
|
7005
7005
|
}, [e]);
|
|
7006
7006
|
}
|
|
@@ -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: X, autoPanOnSelection:
|
|
7012
|
-
return
|
|
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: X, autoPanOnSelection: F, onPaneClick: W, 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: W, 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: X, 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 =
|
|
7015
|
+
const cp = P.memo(Ya), dp = Fi(), Xr = ({ 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, {
|
|
@@ -7174,7 +7174,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
|
|
|
7174
7174
|
dragging: v
|
|
7175
7175
|
};
|
|
7176
7176
|
if (R && S.inProgress && S.fromNode.id === R.id) {
|
|
7177
|
-
const y = Ge(R, S.fromHandle,
|
|
7177
|
+
const y = Ge(R, S.fromHandle, Z.Left, !0);
|
|
7178
7178
|
C({ ...S, from: y });
|
|
7179
7179
|
}
|
|
7180
7180
|
A && R.parentId && k.push({
|
|
@@ -7209,7 +7209,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
|
|
|
7209
7209
|
const { onEdgesChange: v, setEdges: k, edges: p, hasDefaultEdges: b, debug: E } = g();
|
|
7210
7210
|
if (w?.length) {
|
|
7211
7211
|
if (b) {
|
|
7212
|
-
const S =
|
|
7212
|
+
const S = Zh(w, p);
|
|
7213
7213
|
k(S);
|
|
7214
7214
|
}
|
|
7215
7215
|
E && console.log("React Flow: trigger edge changes", w), v?.(w);
|
|
@@ -7300,7 +7300,7 @@ const cp = P.memo(Ya), dp = Zi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
|
|
|
7300
7300
|
reset: () => h({ ...Xr() })
|
|
7301
7301
|
};
|
|
7302
7302
|
}, Object.is);
|
|
7303
|
-
function
|
|
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 }) {
|
|
7304
7304
|
const [g] = P.useState(() => up({
|
|
7305
7305
|
nodes: e,
|
|
7306
7306
|
edges: t,
|
|
@@ -7319,7 +7319,7 @@ function Za({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: o
|
|
|
7319
7319
|
return m.jsx(Ch, { value: g, children: m.jsx(Gh, { children: m.jsx(ug, { children: h }) }) });
|
|
7320
7320
|
}
|
|
7321
7321
|
function fp({ children: e, nodes: t, edges: n, defaultNodes: o, defaultEdges: r, width: i, height: a, fitView: s, fitViewOptions: l, minZoom: c, maxZoom: d, nodeOrigin: f, nodeExtent: u, zIndexMode: h }) {
|
|
7322
|
-
return P.useContext(bn) ? m.jsx(m.Fragment, { children: e }) : m.jsx(
|
|
7322
|
+
return P.useContext(bn) ? m.jsx(m.Fragment, { children: e }) : m.jsx(Fa, { initialNodes: t, initialEdges: n, defaultNodes: o, defaultEdges: r, initialWidth: i, initialHeight: a, fitView: s, initialFitViewOptions: l, initialMinZoom: c, initialMaxZoom: d, nodeOrigin: f, nodeExtent: u, zIndexMode: h, children: e });
|
|
7323
7323
|
}
|
|
7324
7324
|
const hp = {
|
|
7325
7325
|
width: "100%",
|
|
@@ -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: X, connectionLineComponent:
|
|
7332
|
-
const _n = Co || "1", Gs = Vh(
|
|
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: X, connectionLineComponent: F, connectionLineContainerStyle: W, 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: Xs, onScroll: No, ariaLabelConfig: Ws, zIndexMode: Eo = "basic", ...Ks }, qs) {
|
|
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:
|
|
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: Xs, ariaLabelConfig: Ws, 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: X, connectionLineComponent: F, connectionLineContainerStyle: W, 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 }) {
|
|
@@ -7350,7 +7350,7 @@ const bp = {
|
|
|
7350
7350
|
[Le.Lines]: 1,
|
|
7351
7351
|
[Le.Cross]: 6
|
|
7352
7352
|
}, vp = (e) => ({ transform: e.transform, patternId: `pattern-${e.rfId}` });
|
|
7353
|
-
function
|
|
7353
|
+
function Za({
|
|
7354
7354
|
id: e,
|
|
7355
7355
|
variant: t = Le.Dots,
|
|
7356
7356
|
// only used for dots and cross
|
|
@@ -7376,8 +7376,8 @@ function Fa({
|
|
|
7376
7376
|
"--xy-background-pattern-color-props": a
|
|
7377
7377
|
}, ref: f, "data-testid": "rf__background", children: [m.jsx("pattern", { id: C, x: u[0] % k[0], y: u[1] % k[1], width: k[0], height: k[1], patternUnits: "userSpaceOnUse", patternTransform: `translate(-${S[0]},-${S[1]})`, children: x ? m.jsx(yp, { radius: p / 2, className: d }) : m.jsx(mp, { dimensions: E, lineWidth: r, variant: t, className: d }) }), m.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${C})` })] });
|
|
7378
7378
|
}
|
|
7379
|
-
|
|
7380
|
-
const wp = P.memo(
|
|
7379
|
+
Za.displayName = "Background";
|
|
7380
|
+
const wp = P.memo(Za);
|
|
7381
7381
|
function xp() {
|
|
7382
7382
|
return m.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", children: m.jsx("path", { d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z" }) });
|
|
7383
7383
|
}
|
|
@@ -7468,7 +7468,7 @@ function Ap({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc
|
|
|
7468
7468
|
height: b
|
|
7469
7469
|
};
|
|
7470
7470
|
}, re);
|
|
7471
|
-
return !c || c.hidden || !
|
|
7471
|
+
return !c || c.hidden || !Zi(c) ? null : m.jsx(s, { x: d, y: f, width: u, height: h, style: c.style, selected: !!c.selected, className: o(c), color: t(c), borderRadius: r, strokeColor: n(c), strokeWidth: i, shapeRendering: a, onClick: l, id: c.id });
|
|
7472
7472
|
}
|
|
7473
7473
|
const Dp = P.memo(Ap);
|
|
7474
7474
|
var Op = P.memo(zp);
|
|
@@ -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, X = C.x - (T - C.width) / 2 - $,
|
|
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, X = C.x - (T - C.width) / 2 - $, F = C.y - (B - C.height) / 2 - $, W = 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,7 +7555,7 @@ 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: `${X} ${
|
|
7558
|
+
}, className: ie(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: m.jsxs("svg", { width: M, height: N, viewBox: `${X} ${F} ${W} ${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${X - $},${F - $}h${W + $ * 2}v${q + $ * 2}h${-W - $ * 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
7561
|
Wa.displayName = "MiniMap";
|
|
@@ -7563,7 +7563,7 @@ const Hp = P.memo(Wa), Vp = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)
|
|
|
7563
7563
|
[lt.Line]: "right",
|
|
7564
7564
|
[lt.Handle]: "bottom-right"
|
|
7565
7565
|
};
|
|
7566
|
-
function
|
|
7566
|
+
function Fp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, style: r = void 0, children: i, color: a, minWidth: s = 10, minHeight: l = 10, maxWidth: c = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, resizeDirection: u, autoScale: h = !0, shouldResize: g, onResizeStart: x, onResize: w, onResizeEnd: v }) {
|
|
7567
7567
|
const k = ka(), p = typeof e == "string" ? e : k, b = ne(), E = P.useRef(null), S = n === lt.Handle, C = ee(P.useCallback(Vp(S && h), [S, h]), re), z = P.useRef(null), D = t ?? Yp[n];
|
|
7568
7568
|
P.useEffect(() => {
|
|
7569
7569
|
if (!(!E.current || !p))
|
|
@@ -7595,8 +7595,8 @@ function Zp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, styl
|
|
|
7595
7595
|
y: R.y ?? O.position.y
|
|
7596
7596
|
}, { width: B, height: $ }, O.parentId, y, T)
|
|
7597
7597
|
}
|
|
7598
|
-
},
|
|
7599
|
-
I.push(...
|
|
7598
|
+
}, F = bo([X], y, M, N);
|
|
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) {
|
|
7602
7602
|
const T = {
|
|
@@ -7676,8 +7676,8 @@ function Zp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, styl
|
|
|
7676
7676
|
...a && { [S ? "backgroundColor" : "borderColor"]: a }
|
|
7677
7677
|
}, children: i });
|
|
7678
7678
|
}
|
|
7679
|
-
P.memo(
|
|
7680
|
-
const
|
|
7679
|
+
P.memo(Fp);
|
|
7680
|
+
const Zp = ({
|
|
7681
7681
|
data: e,
|
|
7682
7682
|
selected: t
|
|
7683
7683
|
}) => {
|
|
@@ -7692,14 +7692,14 @@ const Fp = ({
|
|
|
7692
7692
|
].filter(Boolean).join(" "),
|
|
7693
7693
|
"aria-selected": t,
|
|
7694
7694
|
children: [
|
|
7695
|
-
o !== "start" && /* @__PURE__ */ m.jsx(ct, { type: "target", position:
|
|
7695
|
+
o !== "start" && /* @__PURE__ */ m.jsx(ct, { type: "target", position: Z.Top }),
|
|
7696
7696
|
/* @__PURE__ */ m.jsx("div", { className: "bitflow-node-kind", children: r?.name ?? e.bitType }),
|
|
7697
7697
|
/* @__PURE__ */ m.jsx("div", { className: "bitflow-node-title", title: e.summary, children: e.summary || " " }),
|
|
7698
|
-
o !== "end" && /* @__PURE__ */ m.jsx(ct, { type: "source", position:
|
|
7698
|
+
o !== "end" && /* @__PURE__ */ m.jsx(ct, { type: "source", position: Z.Bottom })
|
|
7699
7699
|
]
|
|
7700
7700
|
}
|
|
7701
7701
|
);
|
|
7702
|
-
}, Xp = { bit:
|
|
7702
|
+
}, Xp = { bit: Zp }, Wp = 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 = ({
|
|
@@ -7743,7 +7743,7 @@ const Fp = ({
|
|
|
7743
7743
|
}, Up = (e) => (
|
|
7744
7744
|
// ReactFlow needs its provider above any component that uses its hooks, and
|
|
7745
7745
|
// one per editor instance so two editors do not share a viewport.
|
|
7746
|
-
/* @__PURE__ */ m.jsx(
|
|
7746
|
+
/* @__PURE__ */ m.jsx(Fa, { children: /* @__PURE__ */ m.jsx(Qp, { ...e }) })
|
|
7747
7747
|
), Qp = ({
|
|
7748
7748
|
flow: e,
|
|
7749
7749
|
locale: t,
|
|
@@ -8145,7 +8145,7 @@ const Fp = ({
|
|
|
8145
8145
|
}
|
|
8146
8146
|
),
|
|
8147
8147
|
/* @__PURE__ */ m.jsx(
|
|
8148
|
-
|
|
8148
|
+
Ft,
|
|
8149
8149
|
{
|
|
8150
8150
|
label: r("allowSkip"),
|
|
8151
8151
|
hint: r("allowSkipHint"),
|
|
@@ -8164,7 +8164,7 @@ const Fp = ({
|
|
|
8164
8164
|
...o.props("asking"),
|
|
8165
8165
|
children: [
|
|
8166
8166
|
/* @__PURE__ */ m.jsx(
|
|
8167
|
-
|
|
8167
|
+
Ft,
|
|
8168
8168
|
{
|
|
8169
8169
|
label: r("askConfidence"),
|
|
8170
8170
|
hint: r("askConfidenceHint"),
|
|
@@ -8173,7 +8173,7 @@ const Fp = ({
|
|
|
8173
8173
|
}
|
|
8174
8174
|
),
|
|
8175
8175
|
/* @__PURE__ */ m.jsx(
|
|
8176
|
-
|
|
8176
|
+
Ft,
|
|
8177
8177
|
{
|
|
8178
8178
|
label: r("askReasoning"),
|
|
8179
8179
|
checked: a.askReasoning,
|
|
@@ -8250,7 +8250,7 @@ const Fp = ({
|
|
|
8250
8250
|
}
|
|
8251
8251
|
),
|
|
8252
8252
|
/* @__PURE__ */ m.jsx(
|
|
8253
|
-
|
|
8253
|
+
Ft,
|
|
8254
8254
|
{
|
|
8255
8255
|
label: n("poolShuffle"),
|
|
8256
8256
|
hint: n("poolShuffleHint"),
|