@railtownai/railtracks-visualizer 0.0.38 → 0.0.40

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.
Files changed (32) hide show
  1. package/dist/cjs/index.js +758 -292
  2. package/dist/esm/index.js +951 -484
  3. package/dist/types/agenthub/components/KeyboardShortcutsModal.d.ts +6 -0
  4. package/dist/types/agenthub/components/SendFeedbackButton.d.ts +2 -0
  5. package/dist/types/agenthub/components/ThemeToggleButton.d.ts +2 -0
  6. package/dist/types/agenthub/context/EvaluationsMockProvider.d.ts +40 -0
  7. package/dist/types/agenthub/context/SessionsMockProvider.d.ts +12 -0
  8. package/dist/types/agenthub/hooks/useEvaluations.d.ts +7 -0
  9. package/dist/types/agenthub/hooks/useSequenceShortcut.d.ts +13 -0
  10. package/dist/types/agenthub/hooks/useSessions.d.ts +26 -0
  11. package/dist/types/agenthub/hooks/useShareAgentSession.d.ts +4 -0
  12. package/dist/types/agenthub/pages/evaluation-details.d.ts +9 -0
  13. package/dist/types/agenthub/pages/evaluations-compare-drawer.d.ts +13 -0
  14. package/dist/types/agenthub/pages/evaluations-compare.d.ts +2 -0
  15. package/dist/types/agenthub/pages/evaluations.d.ts +2 -0
  16. package/dist/types/agenthub/pages/evaluations.types.d.ts +35 -0
  17. package/dist/types/agenthub/pages/index.d.ts +5 -0
  18. package/dist/types/agenthub/pages/session-details.d.ts +9 -0
  19. package/dist/types/agenthub/pages/sessions.d.ts +2 -0
  20. package/dist/types/agenthub/pages/visualizer.d.ts +2 -0
  21. package/dist/types/components/Edge.d.ts +2 -1
  22. package/dist/types/components/nodes/AgentNode.d.ts +1 -0
  23. package/dist/types/components/ui/drawer.d.ts +4 -0
  24. package/dist/types/components/ui/header.d.ts +1 -21
  25. package/dist/types/components/ui/select.d.ts +3 -1
  26. package/dist/types/hooks/index.d.ts +0 -1
  27. package/dist/types/hooks/useApi.d.ts +1 -0
  28. package/dist/types/index.d.ts +0 -1
  29. package/package.json +25 -20
  30. package/dist/types/components/ThemeToggle.d.ts +0 -2
  31. package/dist/types/components/ui/checkbox.d.ts +0 -4
  32. package/dist/types/hooks/useRailtracksStream.d.ts +0 -18
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { memo, useMemo, useState, useCallback, forwardRef, createContext, useContext, useRef, useLayoutEffect, useEffect, createElement } from 'react';
3
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
+ import { jsx as jsx$1, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import ReactDOM__default from 'react-dom';
6
6
  import CountUp from 'react-countup';
@@ -3183,7 +3183,8 @@ const initialConnection = {
3183
3183
  to: null,
3184
3184
  toHandle: null,
3185
3185
  toPosition: null,
3186
- toNode: null
3186
+ toNode: null,
3187
+ pointer: null
3187
3188
  };
3188
3189
  /**
3189
3190
  * If you set the `connectionLineType` prop on your [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineType)
@@ -5550,7 +5551,8 @@ function onPointerDown(event, { connectionMode, connectionRadius, handleId, node
5550
5551
  to: position,
5551
5552
  toHandle: null,
5552
5553
  toPosition: oppositePosition[fromHandle.position],
5553
- toNode: null
5554
+ toNode: null,
5555
+ pointer: position
5554
5556
  };
5555
5557
  function startConnection() {
5556
5558
  connectionStarted = true;
@@ -5614,14 +5616,9 @@ function onPointerDown(event, { connectionMode, connectionRadius, handleId, node
5614
5616
  }, transform) : position,
5615
5617
  toHandle: result.toHandle,
5616
5618
  toPosition: isValid && result.toHandle ? result.toHandle.position : oppositePosition[fromHandle.position],
5617
- toNode: result.toHandle ? nodeLookup.get(result.toHandle.nodeId) : null
5619
+ toNode: result.toHandle ? nodeLookup.get(result.toHandle.nodeId) : null,
5620
+ pointer: position
5618
5621
  };
5619
- /*
5620
- * we don't want to trigger an update when the connection
5621
- * is snapped to the same handle as before
5622
- */ if (isValid && closestHandle && previousConnection.toHandle && newConnection.toHandle && previousConnection.toHandle.type === newConnection.toHandle.type && previousConnection.toHandle.nodeId === newConnection.toHandle.nodeId && previousConnection.toHandle.id === newConnection.toHandle.id && previousConnection.to.x === newConnection.to.x && previousConnection.to.y === newConnection.to.y) {
5623
- return;
5624
- }
5625
5622
  updateConnection(newConnection);
5626
5623
  previousConnection = newConnection;
5627
5624
  }
@@ -7112,7 +7109,7 @@ const ariaLiveSelector = (s)=>s.ariaLiveMessage;
7112
7109
  const ariaLabelConfigSelector = (s)=>s.ariaLabelConfig;
7113
7110
  function AriaLiveMessage({ rfId }) {
7114
7111
  const ariaLiveMessage = useStore(ariaLiveSelector);
7115
- return jsx("div", {
7112
+ return jsx$1("div", {
7116
7113
  id: `${ARIA_LIVE_MESSAGE}-${rfId}`,
7117
7114
  "aria-live": "assertive",
7118
7115
  "aria-atomic": "true",
@@ -7124,17 +7121,17 @@ function A11yDescriptions({ rfId, disableKeyboardA11y }) {
7124
7121
  const ariaLabelConfig = useStore(ariaLabelConfigSelector);
7125
7122
  return jsxs(Fragment, {
7126
7123
  children: [
7127
- jsx("div", {
7124
+ jsx$1("div", {
7128
7125
  id: `${ARIA_NODE_DESC_KEY}-${rfId}`,
7129
7126
  style: style,
7130
7127
  children: disableKeyboardA11y ? ariaLabelConfig['node.a11yDescription.default'] : ariaLabelConfig['node.a11yDescription.keyboardDisabled']
7131
7128
  }),
7132
- jsx("div", {
7129
+ jsx$1("div", {
7133
7130
  id: `${ARIA_EDGE_DESC_KEY}-${rfId}`,
7134
7131
  style: style,
7135
7132
  children: ariaLabelConfig['edge.a11yDescription.default']
7136
7133
  }),
7137
- !disableKeyboardA11y && jsx(AriaLiveMessage, {
7134
+ !disableKeyboardA11y && jsx$1(AriaLiveMessage, {
7138
7135
  rfId: rfId
7139
7136
  })
7140
7137
  ]
@@ -7166,7 +7163,7 @@ function A11yDescriptions({ rfId, disableKeyboardA11y }) {
7166
7163
  *```
7167
7164
  */ const Panel = forwardRef(({ position = 'top-left', children, className, style, ...rest }, ref)=>{
7168
7165
  const positionClasses = `${position}`.split('-');
7169
- return jsx("div", {
7166
+ return jsx$1("div", {
7170
7167
  className: cc([
7171
7168
  'react-flow__panel',
7172
7169
  className,
@@ -7183,11 +7180,11 @@ function Attribution({ proOptions, position = 'bottom-right' }) {
7183
7180
  if (proOptions?.hideAttribution) {
7184
7181
  return null;
7185
7182
  }
7186
- return jsx(Panel, {
7183
+ return jsx$1(Panel, {
7187
7184
  position: position,
7188
7185
  className: "react-flow__attribution",
7189
7186
  "data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",
7190
- children: jsx("a", {
7187
+ children: jsx$1("a", {
7191
7188
  href: "https://reactflow.dev",
7192
7189
  target: "_blank",
7193
7190
  rel: "noopener noreferrer",
@@ -7239,7 +7236,7 @@ const changeSelector = (s)=>!!s.onSelectionChangeHandlers;
7239
7236
  function SelectionListener({ onSelectionChange }) {
7240
7237
  const storeHasSelectionChangeHandlers = useStore(changeSelector);
7241
7238
  if (onSelectionChange || storeHasSelectionChangeHandlers) {
7242
- return jsx(SelectionListenerInner, {
7239
+ return jsx$1(SelectionListenerInner, {
7243
7240
  onSelectionChange: onSelectionChange
7244
7241
  });
7245
7242
  }
@@ -8071,7 +8068,7 @@ const BatchContext = createContext(null);
8071
8068
  nodeQueue,
8072
8069
  edgeQueue
8073
8070
  }), []);
8074
- return jsx(BatchContext.Provider, {
8071
+ return jsx$1(BatchContext.Provider, {
8075
8072
  value: value,
8076
8073
  children: children
8077
8074
  });
@@ -8537,7 +8534,7 @@ function ZoomPane({ onPaneContextMenu, zoomOnScroll = true, zoomOnPinch = true,
8537
8534
  selectionOnDrag,
8538
8535
  paneClickDistance
8539
8536
  ]);
8540
- return jsx("div", {
8537
+ return jsx$1("div", {
8541
8538
  className: "react-flow__renderer",
8542
8539
  ref: zoomPane,
8543
8540
  style: containerStyle,
@@ -8554,7 +8551,7 @@ function UserSelection() {
8554
8551
  if (!isActive) {
8555
8552
  return null;
8556
8553
  }
8557
- return jsx("div", {
8554
+ return jsx$1("div", {
8558
8555
  className: "react-flow__selection react-flow__container",
8559
8556
  style: {
8560
8557
  width: userSelectionRect.width,
@@ -8745,7 +8742,7 @@ function Pane({ isSelecting, selectionKeyPressed, selectionMode = SelectionMode.
8745
8742
  style: containerStyle,
8746
8743
  children: [
8747
8744
  children,
8748
- jsx(UserSelection, {})
8745
+ jsx$1(UserSelection, {})
8749
8746
  ]
8750
8747
  });
8751
8748
  }
@@ -9039,7 +9036,7 @@ function HandleComponent({ type = 'source', position = Position.Top, isValidConn
9039
9036
  connectionClickStartHandle: null
9040
9037
  });
9041
9038
  };
9042
- return jsx("div", {
9039
+ return jsx$1("div", {
9043
9040
  "data-handleid": handleId,
9044
9041
  "data-nodeid": nodeId,
9045
9042
  "data-handlepos": position,
@@ -9103,7 +9100,7 @@ function InputNode({ data, isConnectable, sourcePosition = Position.Bottom }) {
9103
9100
  return jsxs(Fragment, {
9104
9101
  children: [
9105
9102
  data?.label,
9106
- jsx(Handle$1, {
9103
+ jsx$1(Handle$1, {
9107
9104
  type: "source",
9108
9105
  position: sourcePosition,
9109
9106
  isConnectable: isConnectable
@@ -9114,13 +9111,13 @@ function InputNode({ data, isConnectable, sourcePosition = Position.Bottom }) {
9114
9111
  function DefaultNode({ data, isConnectable, targetPosition = Position.Top, sourcePosition = Position.Bottom }) {
9115
9112
  return jsxs(Fragment, {
9116
9113
  children: [
9117
- jsx(Handle$1, {
9114
+ jsx$1(Handle$1, {
9118
9115
  type: "target",
9119
9116
  position: targetPosition,
9120
9117
  isConnectable: isConnectable
9121
9118
  }),
9122
9119
  data?.label,
9123
- jsx(Handle$1, {
9120
+ jsx$1(Handle$1, {
9124
9121
  type: "source",
9125
9122
  position: sourcePosition,
9126
9123
  isConnectable: isConnectable
@@ -9134,7 +9131,7 @@ function GroupNode() {
9134
9131
  function OutputNode({ data, isConnectable, targetPosition = Position.Top }) {
9135
9132
  return jsxs(Fragment, {
9136
9133
  children: [
9137
- jsx(Handle$1, {
9134
+ jsx$1(Handle$1, {
9138
9135
  type: "target",
9139
9136
  position: targetPosition,
9140
9137
  isConnectable: isConnectable
@@ -9223,7 +9220,7 @@ function NodesSelection({ onSelectionContextMenu, noPanClassName, disableKeyboar
9223
9220
  });
9224
9221
  }
9225
9222
  };
9226
- return jsx("div", {
9223
+ return jsx$1("div", {
9227
9224
  className: cc([
9228
9225
  'react-flow__nodesselection',
9229
9226
  'react-flow__container',
@@ -9232,7 +9229,7 @@ function NodesSelection({ onSelectionContextMenu, noPanClassName, disableKeyboar
9232
9229
  style: {
9233
9230
  transform: transformString
9234
9231
  },
9235
- children: jsx("div", {
9232
+ children: jsx$1("div", {
9236
9233
  ref: nodeRef,
9237
9234
  className: "react-flow__nodesselection-rect",
9238
9235
  onContextMenu: onContextMenu,
@@ -9268,7 +9265,7 @@ function FlowRendererComponent({ children, onPaneClick, onPaneMouseEnter, onPane
9268
9265
  deleteKeyCode,
9269
9266
  multiSelectionKeyCode
9270
9267
  });
9271
- return jsx(ZoomPane, {
9268
+ return jsx$1(ZoomPane, {
9272
9269
  onPaneContextMenu: onPaneContextMenu,
9273
9270
  elementsSelectable: elementsSelectable,
9274
9271
  zoomOnScroll: zoomOnScroll,
@@ -9307,7 +9304,7 @@ function FlowRendererComponent({ children, onPaneClick, onPaneMouseEnter, onPane
9307
9304
  selectionOnDrag: _selectionOnDrag,
9308
9305
  children: [
9309
9306
  children,
9310
- nodesSelectionActive && jsx(NodesSelection, {
9307
+ nodesSelectionActive && jsx$1(NodesSelection, {
9311
9308
  onSelectionContextMenu: onSelectionContextMenu,
9312
9309
  noPanClassName: noPanClassName,
9313
9310
  disableKeyboardA11y: disableKeyboardA11y
@@ -9564,7 +9561,7 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
9564
9561
  });
9565
9562
  }
9566
9563
  };
9567
- return jsx("div", {
9564
+ return jsx$1("div", {
9568
9565
  className: cc([
9569
9566
  'react-flow__node',
9570
9567
  `react-flow__node-${nodeType}`,
@@ -9606,9 +9603,9 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
9606
9603
  "aria-describedby": disableKeyboardA11y ? undefined : `${ARIA_NODE_DESC_KEY}-${rfId}`,
9607
9604
  "aria-label": node.ariaLabel,
9608
9605
  ...node.domAttributes,
9609
- children: jsx(Provider, {
9606
+ children: jsx$1(Provider, {
9610
9607
  value: id,
9611
- children: jsx(NodeComponent, {
9608
+ children: jsx$1(NodeComponent, {
9612
9609
  id: id,
9613
9610
  data: node.data,
9614
9611
  type: nodeType,
@@ -9642,7 +9639,7 @@ function NodeRendererComponent(props) {
9642
9639
  const { nodesDraggable, nodesConnectable, nodesFocusable, elementsSelectable, onError } = useStore(selector$b, shallow$1);
9643
9640
  const nodeIds = useVisibleNodeIds(props.onlyRenderVisibleElements);
9644
9641
  const resizeObserver = useResizeObserver();
9645
- return jsx("div", {
9642
+ return jsx$1("div", {
9646
9643
  className: "react-flow__nodes",
9647
9644
  style: containerStyle,
9648
9645
  children: nodeIds.map((nodeId)=>{
@@ -9670,7 +9667,7 @@ function NodeRendererComponent(props) {
9670
9667
  * moved into `NodeComponentWrapper`. This ensures they are
9671
9668
  * memorized – so if `NodeRenderer` *has* to rerender, it only
9672
9669
  * needs to regenerate the list of nodes, nothing else.
9673
- */ jsx(NodeWrapper$1, {
9670
+ */ jsx$1(NodeWrapper$1, {
9674
9671
  id: nodeId,
9675
9672
  nodeTypes: props.nodeTypes,
9676
9673
  nodeExtent: props.nodeExtent,
@@ -9737,7 +9734,7 @@ const ArrowSymbol = ({ color = 'none', strokeWidth = 1 })=>{
9737
9734
  stroke: color
9738
9735
  }
9739
9736
  };
9740
- return jsx("polyline", {
9737
+ return jsx$1("polyline", {
9741
9738
  className: "arrow",
9742
9739
  style: style,
9743
9740
  strokeLinecap: "round",
@@ -9754,7 +9751,7 @@ const ArrowClosedSymbol = ({ color = 'none', strokeWidth = 1 })=>{
9754
9751
  fill: color
9755
9752
  }
9756
9753
  };
9757
- return jsx("polyline", {
9754
+ return jsx$1("polyline", {
9758
9755
  className: "arrowclosed",
9759
9756
  style: style,
9760
9757
  strokeLinecap: "round",
@@ -9785,7 +9782,7 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
9785
9782
  if (!Symbol) {
9786
9783
  return null;
9787
9784
  }
9788
- return jsx("marker", {
9785
+ return jsx$1("marker", {
9789
9786
  className: "react-flow__arrowhead",
9790
9787
  id: id,
9791
9788
  markerWidth: `${width}`,
@@ -9795,7 +9792,7 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
9795
9792
  orient: orient,
9796
9793
  refX: "0",
9797
9794
  refY: "0",
9798
- children: jsx(Symbol, {
9795
+ children: jsx$1(Symbol, {
9799
9796
  color: color,
9800
9797
  strokeWidth: strokeWidth
9801
9798
  })
@@ -9825,11 +9822,11 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
9825
9822
  if (!markers.length) {
9826
9823
  return null;
9827
9824
  }
9828
- return jsx("svg", {
9825
+ return jsx$1("svg", {
9829
9826
  className: "react-flow__marker",
9830
9827
  "aria-hidden": "true",
9831
- children: jsx("defs", {
9832
- children: markers.map((marker)=>jsx(Marker, {
9828
+ children: jsx$1("defs", {
9829
+ children: markers.map((marker)=>jsx$1(Marker, {
9833
9830
  id: marker.id,
9834
9831
  type: marker.type,
9835
9832
  color: marker.color,
@@ -9881,7 +9878,7 @@ function EdgeTextComponent({ x, y, label, labelStyle, labelShowBg = true, labelB
9881
9878
  visibility: edgeTextBbox.width ? 'visible' : 'hidden',
9882
9879
  ...rest,
9883
9880
  children: [
9884
- labelShowBg && jsx("rect", {
9881
+ labelShowBg && jsx$1("rect", {
9885
9882
  width: edgeTextBbox.width + 2 * labelBgPadding[0],
9886
9883
  x: -labelBgPadding[0],
9887
9884
  y: -labelBgPadding[1],
@@ -9891,7 +9888,7 @@ function EdgeTextComponent({ x, y, label, labelStyle, labelShowBg = true, labelB
9891
9888
  rx: labelBgBorderRadius,
9892
9889
  ry: labelBgBorderRadius
9893
9890
  }),
9894
- jsx("text", {
9891
+ jsx$1("text", {
9895
9892
  className: "react-flow__edge-text",
9896
9893
  y: edgeTextBbox.height / 2,
9897
9894
  dy: "0.3em",
@@ -9959,7 +9956,7 @@ EdgeTextComponent.displayName = 'EdgeText';
9959
9956
  */ function BaseEdge({ path, labelX, labelY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, interactionWidth = 20, ...props }) {
9960
9957
  return jsxs(Fragment, {
9961
9958
  children: [
9962
- jsx("path", {
9959
+ jsx$1("path", {
9963
9960
  ...props,
9964
9961
  d: path,
9965
9962
  fill: "none",
@@ -9968,14 +9965,14 @@ EdgeTextComponent.displayName = 'EdgeText';
9968
9965
  props.className
9969
9966
  ])
9970
9967
  }),
9971
- interactionWidth ? jsx("path", {
9968
+ interactionWidth ? jsx$1("path", {
9972
9969
  d: path,
9973
9970
  fill: "none",
9974
9971
  strokeOpacity: 0,
9975
9972
  strokeWidth: interactionWidth,
9976
9973
  className: "react-flow__edge-interaction"
9977
9974
  }) : null,
9978
- label && isNumeric(labelX) && isNumeric(labelY) ? jsx(EdgeText, {
9975
+ label && isNumeric(labelX) && isNumeric(labelY) ? jsx$1(EdgeText, {
9979
9976
  x: labelX,
9980
9977
  y: labelY,
9981
9978
  label: label,
@@ -10057,7 +10054,7 @@ function createSimpleBezierEdge(params) {
10057
10054
  targetPosition
10058
10055
  });
10059
10056
  const _id = params.isInternal ? undefined : id;
10060
- return jsx(BaseEdge, {
10057
+ return jsx$1(BaseEdge, {
10061
10058
  id: _id,
10062
10059
  path: path,
10063
10060
  labelX: labelX,
@@ -10098,7 +10095,7 @@ function createSmoothStepEdge(params) {
10098
10095
  stepPosition: pathOptions?.stepPosition
10099
10096
  });
10100
10097
  const _id = params.isInternal ? undefined : id;
10101
- return jsx(BaseEdge, {
10098
+ return jsx$1(BaseEdge, {
10102
10099
  id: _id,
10103
10100
  path: path,
10104
10101
  labelX: labelX,
@@ -10152,7 +10149,7 @@ function createStepEdge(params) {
10152
10149
  // eslint-disable-next-line react/display-name
10153
10150
  return memo(({ id, ...props })=>{
10154
10151
  const _id = params.isInternal ? undefined : id;
10155
- return jsx(SmoothStepEdge, {
10152
+ return jsx$1(SmoothStepEdge, {
10156
10153
  ...props,
10157
10154
  id: _id,
10158
10155
  pathOptions: useMemo(()=>({
@@ -10206,7 +10203,7 @@ function createStraightEdge(params) {
10206
10203
  targetY
10207
10204
  });
10208
10205
  const _id = params.isInternal ? undefined : id;
10209
- return jsx(BaseEdge, {
10206
+ return jsx$1(BaseEdge, {
10210
10207
  id: _id,
10211
10208
  path: path,
10212
10209
  labelX: labelX,
@@ -10267,7 +10264,7 @@ function createBezierEdge(params) {
10267
10264
  curvature: pathOptions?.curvature
10268
10265
  });
10269
10266
  const _id = params.isInternal ? undefined : id;
10270
- return jsx(BaseEdge, {
10267
+ return jsx$1(BaseEdge, {
10271
10268
  id: _id,
10272
10269
  path: path,
10273
10270
  labelX: labelX,
@@ -10346,7 +10343,7 @@ const EdgeUpdaterClassName = 'react-flow__edgeupdater';
10346
10343
  /**
10347
10344
  * @internal
10348
10345
  */ function EdgeAnchor({ position, centerX, centerY, radius = 10, onMouseDown, onMouseEnter, onMouseOut, type }) {
10349
- return jsx("circle", {
10346
+ return jsx$1("circle", {
10350
10347
  onMouseDown: onMouseDown,
10351
10348
  onMouseEnter: onMouseEnter,
10352
10349
  onMouseOut: onMouseOut,
@@ -10420,7 +10417,7 @@ function EdgeUpdateAnchors({ isReconnectable, reconnectRadius, edge, sourceX, so
10420
10417
  const onReconnectMouseOut = ()=>setUpdateHover(false);
10421
10418
  return jsxs(Fragment, {
10422
10419
  children: [
10423
- (isReconnectable === true || isReconnectable === 'source') && jsx(EdgeAnchor, {
10420
+ (isReconnectable === true || isReconnectable === 'source') && jsx$1(EdgeAnchor, {
10424
10421
  position: sourcePosition,
10425
10422
  centerX: sourceX,
10426
10423
  centerY: sourceY,
@@ -10430,7 +10427,7 @@ function EdgeUpdateAnchors({ isReconnectable, reconnectRadius, edge, sourceX, so
10430
10427
  onMouseOut: onReconnectMouseOut,
10431
10428
  type: "source"
10432
10429
  }),
10433
- (isReconnectable === true || isReconnectable === 'target') && jsx(EdgeAnchor, {
10430
+ (isReconnectable === true || isReconnectable === 'target') && jsx$1(EdgeAnchor, {
10434
10431
  position: targetPosition,
10435
10432
  centerX: targetX,
10436
10433
  centerY: targetY,
@@ -10579,7 +10576,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
10579
10576
  }
10580
10577
  }
10581
10578
  };
10582
- return jsx("svg", {
10579
+ return jsx$1("svg", {
10583
10580
  style: {
10584
10581
  zIndex
10585
10582
  },
@@ -10614,7 +10611,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
10614
10611
  ref: edgeRef,
10615
10612
  ...edge.domAttributes,
10616
10613
  children: [
10617
- !reconnecting && jsx(EdgeComponent, {
10614
+ !reconnecting && jsx$1(EdgeComponent, {
10618
10615
  id: id,
10619
10616
  source: edge.source,
10620
10617
  target: edge.target,
@@ -10644,7 +10641,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
10644
10641
  pathOptions: 'pathOptions' in edge ? edge.pathOptions : undefined,
10645
10642
  interactionWidth: edge.interactionWidth
10646
10643
  }),
10647
- isReconnectable && jsx(EdgeUpdateAnchors, {
10644
+ isReconnectable && jsx$1(EdgeUpdateAnchors, {
10648
10645
  edge: edge,
10649
10646
  isReconnectable: isReconnectable,
10650
10647
  reconnectRadius: reconnectRadius,
@@ -10678,12 +10675,12 @@ function EdgeRendererComponent({ defaultMarkerColor, onlyRenderVisibleElements,
10678
10675
  return jsxs("div", {
10679
10676
  className: "react-flow__edges",
10680
10677
  children: [
10681
- jsx(MarkerDefinitions$1, {
10678
+ jsx$1(MarkerDefinitions$1, {
10682
10679
  defaultColor: defaultMarkerColor,
10683
10680
  rfId: rfId
10684
10681
  }),
10685
10682
  edgeIds.map((id)=>{
10686
- return jsx(EdgeWrapper$1, {
10683
+ return jsx$1(EdgeWrapper$1, {
10687
10684
  id: id,
10688
10685
  edgesFocusable: edgesFocusable,
10689
10686
  edgesReconnectable: edgesReconnectable,
@@ -10713,7 +10710,7 @@ const EdgeRenderer = memo(EdgeRendererComponent);
10713
10710
  const selector$9 = (s)=>`translate(${s.transform[0]}px,${s.transform[1]}px) scale(${s.transform[2]})`;
10714
10711
  function Viewport$1({ children }) {
10715
10712
  const transform = useStore(selector$9);
10716
- return jsx("div", {
10713
+ return jsx$1("div", {
10717
10714
  className: "react-flow__viewport xyflow__viewport react-flow__container",
10718
10715
  style: {
10719
10716
  transform
@@ -10820,17 +10817,17 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
10820
10817
  if (!renderConnection) {
10821
10818
  return null;
10822
10819
  }
10823
- return jsx("svg", {
10820
+ return jsx$1("svg", {
10824
10821
  style: containerStyle,
10825
10822
  width: width,
10826
10823
  height: height,
10827
10824
  className: "react-flow__connectionline react-flow__container",
10828
- children: jsx("g", {
10825
+ children: jsx$1("g", {
10829
10826
  className: cc([
10830
10827
  'react-flow__connection',
10831
10828
  getConnectionStatus(isValid)
10832
10829
  ]),
10833
- children: jsx(ConnectionLine, {
10830
+ children: jsx$1(ConnectionLine, {
10834
10831
  style: style,
10835
10832
  type: type,
10836
10833
  CustomComponent: component,
@@ -10840,12 +10837,12 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
10840
10837
  });
10841
10838
  }
10842
10839
  const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomComponent, isValid })=>{
10843
- const { inProgress, from, fromNode, fromHandle, fromPosition, to, toNode, toHandle, toPosition } = useConnection();
10840
+ const { inProgress, from, fromNode, fromHandle, fromPosition, to, toNode, toHandle, toPosition, pointer } = useConnection();
10844
10841
  if (!inProgress) {
10845
10842
  return;
10846
10843
  }
10847
10844
  if (CustomComponent) {
10848
- return jsx(CustomComponent, {
10845
+ return jsx$1(CustomComponent, {
10849
10846
  connectionLineType: type,
10850
10847
  connectionLineStyle: style,
10851
10848
  fromNode: fromNode,
@@ -10858,7 +10855,8 @@ const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomCompone
10858
10855
  toPosition: toPosition,
10859
10856
  connectionStatus: getConnectionStatus(isValid),
10860
10857
  toNode: toNode,
10861
- toHandle: toHandle
10858
+ toHandle: toHandle,
10859
+ pointer: pointer
10862
10860
  });
10863
10861
  }
10864
10862
  let path = '';
@@ -10889,7 +10887,7 @@ const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomCompone
10889
10887
  default:
10890
10888
  [path] = getStraightPath(pathParams);
10891
10889
  }
10892
- return jsx("path", {
10890
+ return jsx$1("path", {
10893
10891
  d: path,
10894
10892
  fill: "none",
10895
10893
  className: "react-flow__connection-path",
@@ -10941,7 +10939,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
10941
10939
  useStylesLoadedWarning();
10942
10940
  useOnInitHandler(onInit);
10943
10941
  useViewportSync(viewport);
10944
- return jsx(FlowRenderer, {
10942
+ return jsx$1(FlowRenderer, {
10945
10943
  onPaneClick: onPaneClick,
10946
10944
  onPaneMouseEnter: onPaneMouseEnter,
10947
10945
  onPaneMouseMove: onPaneMouseMove,
@@ -10980,7 +10978,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
10980
10978
  isControlledViewport: !!viewport,
10981
10979
  children: jsxs(Viewport$1, {
10982
10980
  children: [
10983
- jsx(EdgeRenderer, {
10981
+ jsx$1(EdgeRenderer, {
10984
10982
  edgeTypes: edgeTypes,
10985
10983
  onEdgeClick: onEdgeClick,
10986
10984
  onEdgeDoubleClick: onEdgeDoubleClick,
@@ -10998,16 +10996,16 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
10998
10996
  disableKeyboardA11y: disableKeyboardA11y,
10999
10997
  rfId: rfId
11000
10998
  }),
11001
- jsx(ConnectionLineWrapper, {
10999
+ jsx$1(ConnectionLineWrapper, {
11002
11000
  style: connectionLineStyle,
11003
11001
  type: connectionLineType,
11004
11002
  component: connectionLineComponent,
11005
11003
  containerStyle: connectionLineContainerStyle
11006
11004
  }),
11007
- jsx("div", {
11005
+ jsx$1("div", {
11008
11006
  className: "react-flow__edgelabel-renderer"
11009
11007
  }),
11010
- jsx(NodeRenderer, {
11008
+ jsx$1(NodeRenderer, {
11011
11009
  nodeTypes: nodeTypes,
11012
11010
  onNodeClick: onNodeClick,
11013
11011
  onNodeDoubleClick: onNodeDoubleClick,
@@ -11023,7 +11021,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
11023
11021
  nodeExtent: nodeExtent,
11024
11022
  rfId: rfId
11025
11023
  }),
11026
- jsx("div", {
11024
+ jsx$1("div", {
11027
11025
  className: "react-flow__viewport-portal"
11028
11026
  })
11029
11027
  ]
@@ -11510,9 +11508,9 @@ const createStore = ({ nodes, edges, defaultNodes, defaultEdges, width, height,
11510
11508
  nodeOrigin,
11511
11509
  nodeExtent
11512
11510
  }));
11513
- return jsx(Provider$1, {
11511
+ return jsx$1(Provider$1, {
11514
11512
  value: store,
11515
- children: jsx(BatchProvider, {
11513
+ children: jsx$1(BatchProvider, {
11516
11514
  children: children
11517
11515
  })
11518
11516
  });
@@ -11523,11 +11521,11 @@ function Wrapper({ children, nodes, edges, defaultNodes, defaultEdges, width, he
11523
11521
  /*
11524
11522
  * we need to wrap it with a fragment because it's not allowed for children to be a ReactNode
11525
11523
  * https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
11526
- */ return jsx(Fragment, {
11524
+ */ return jsx$1(Fragment, {
11527
11525
  children: children
11528
11526
  });
11529
11527
  }
11530
- return jsx(ReactFlowProvider, {
11528
+ return jsx$1(ReactFlowProvider, {
11531
11529
  initialNodes: nodes,
11532
11530
  initialEdges: edges,
11533
11531
  defaultNodes: defaultNodes,
@@ -11550,7 +11548,7 @@ const wrapperStyle = {
11550
11548
  position: 'relative',
11551
11549
  zIndex: 0
11552
11550
  };
11553
- function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTypes, edgeTypes, onNodeClick, onEdgeClick, onInit, onMove, onMoveStart, onMoveEnd, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, onNodeDragStart, onNodeDrag, onNodeDragStop, onNodesDelete, onEdgesDelete, onDelete, onSelectionChange, onSelectionDragStart, onSelectionDrag, onSelectionDragStop, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onBeforeDelete, connectionMode, connectionLineType = ConnectionLineType.Bezier, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, deleteKeyCode = 'Backspace', selectionKeyCode = 'Shift', selectionOnDrag = false, selectionMode = SelectionMode.Full, panActivationKeyCode = 'Space', multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control', zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control', snapToGrid, snapGrid, onlyRenderVisibleElements = false, selectNodesOnDrag, nodesDraggable, autoPanOnNodeFocus, nodesConnectable, nodesFocusable, nodeOrigin = defaultNodeOrigin, edgesFocusable, edgesReconnectable, elementsSelectable = true, defaultViewport: defaultViewport$1 = defaultViewport, minZoom = 0.5, maxZoom = 2, translateExtent = infiniteExtent, preventScrolling = true, nodeExtent, defaultMarkerColor = '#b1b1b7', zoomOnScroll = true, zoomOnPinch = true, panOnScroll = false, panOnScrollSpeed = 0.5, panOnScrollMode = PanOnScrollMode.Free, zoomOnDoubleClick = true, panOnDrag = true, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance = 0, nodeClickDistance = 0, children, onReconnect, onReconnectStart, onReconnectEnd, onEdgeContextMenu, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, reconnectRadius = 10, onNodesChange, onEdgesChange, noDragClassName = 'nodrag', noWheelClassName = 'nowheel', noPanClassName = 'nopan', fitView, fitViewOptions, connectOnClick, attributionPosition, proOptions, defaultEdgeOptions, elevateNodesOnSelect, elevateEdgesOnSelect, disableKeyboardA11y = false, autoPanOnConnect, autoPanOnNodeDrag, autoPanSpeed, connectionRadius, isValidConnection, onError, style, id, nodeDragThreshold, connectionDragThreshold, viewport, onViewportChange, width, height, colorMode = 'light', debug, onScroll, ariaLabelConfig, ...rest }, ref) {
11551
+ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTypes, edgeTypes, onNodeClick, onEdgeClick, onInit, onMove, onMoveStart, onMoveEnd, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, onNodeDragStart, onNodeDrag, onNodeDragStop, onNodesDelete, onEdgesDelete, onDelete, onSelectionChange, onSelectionDragStart, onSelectionDrag, onSelectionDragStop, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onBeforeDelete, connectionMode, connectionLineType = ConnectionLineType.Bezier, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, deleteKeyCode = 'Backspace', selectionKeyCode = 'Shift', selectionOnDrag = false, selectionMode = SelectionMode.Full, panActivationKeyCode = 'Space', multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control', zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control', snapToGrid, snapGrid, onlyRenderVisibleElements = false, selectNodesOnDrag, nodesDraggable, autoPanOnNodeFocus, nodesConnectable, nodesFocusable, nodeOrigin = defaultNodeOrigin, edgesFocusable, edgesReconnectable, elementsSelectable = true, defaultViewport: defaultViewport$1 = defaultViewport, minZoom = 0.5, maxZoom = 2, translateExtent = infiniteExtent, preventScrolling = true, nodeExtent, defaultMarkerColor = '#b1b1b7', zoomOnScroll = true, zoomOnPinch = true, panOnScroll = false, panOnScrollSpeed = 0.5, panOnScrollMode = PanOnScrollMode.Free, zoomOnDoubleClick = true, panOnDrag = true, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance = 1, nodeClickDistance = 0, children, onReconnect, onReconnectStart, onReconnectEnd, onEdgeContextMenu, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, reconnectRadius = 10, onNodesChange, onEdgesChange, noDragClassName = 'nodrag', noWheelClassName = 'nowheel', noPanClassName = 'nopan', fitView, fitViewOptions, connectOnClick, attributionPosition, proOptions, defaultEdgeOptions, elevateNodesOnSelect, elevateEdgesOnSelect, disableKeyboardA11y = false, autoPanOnConnect, autoPanOnNodeDrag, autoPanSpeed, connectionRadius, isValidConnection, onError, style, id, nodeDragThreshold, connectionDragThreshold, viewport, onViewportChange, width, height, colorMode = 'light', debug, onScroll, ariaLabelConfig, ...rest }, ref) {
11554
11552
  const rfId = id || '1';
11555
11553
  const colorModeClassName = useColorModeClass(colorMode);
11556
11554
  // Undo scroll events, preventing viewport from shifting when nodes outside of it are focused
@@ -11564,7 +11562,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
11564
11562
  }, [
11565
11563
  onScroll
11566
11564
  ]);
11567
- return jsx("div", {
11565
+ return jsx$1("div", {
11568
11566
  "data-testid": "rf__wrapper",
11569
11567
  ...rest,
11570
11568
  onScroll: wrapperOnScroll,
@@ -11592,7 +11590,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
11592
11590
  nodeOrigin: nodeOrigin,
11593
11591
  nodeExtent: nodeExtent,
11594
11592
  children: [
11595
- jsx(GraphView, {
11593
+ jsx$1(GraphView, {
11596
11594
  onInit: onInit,
11597
11595
  onNodeClick: onNodeClick,
11598
11596
  onEdgeClick: onEdgeClick,
@@ -11657,7 +11655,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
11657
11655
  viewport: viewport,
11658
11656
  onViewportChange: onViewportChange
11659
11657
  }),
11660
- jsx(StoreUpdater, {
11658
+ jsx$1(StoreUpdater, {
11661
11659
  nodes: nodes,
11662
11660
  edges: edges,
11663
11661
  defaultNodes: defaultNodes,
@@ -11717,15 +11715,15 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
11717
11715
  debug: debug,
11718
11716
  ariaLabelConfig: ariaLabelConfig
11719
11717
  }),
11720
- jsx(SelectionListener, {
11718
+ jsx$1(SelectionListener, {
11721
11719
  onSelectionChange: onSelectionChange
11722
11720
  }),
11723
11721
  children,
11724
- jsx(Attribution, {
11722
+ jsx$1(Attribution, {
11725
11723
  proOptions: proOptions,
11726
11724
  position: attributionPosition
11727
11725
  }),
11728
- jsx(A11yDescriptions, {
11726
+ jsx$1(A11yDescriptions, {
11729
11727
  rfId: rfId,
11730
11728
  disableKeyboardA11y: disableKeyboardA11y
11731
11729
  })
@@ -11862,7 +11860,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
11862
11860
  ];
11863
11861
  }
11864
11862
  function LinePattern({ dimensions, lineWidth, variant, className }) {
11865
- return jsx("path", {
11863
+ return jsx$1("path", {
11866
11864
  strokeWidth: lineWidth,
11867
11865
  d: `M${dimensions[0] / 2} 0 V${dimensions[1]} M0 ${dimensions[1] / 2} H${dimensions[0]}`,
11868
11866
  className: cc([
@@ -11873,7 +11871,7 @@ function LinePattern({ dimensions, lineWidth, variant, className }) {
11873
11871
  });
11874
11872
  }
11875
11873
  function DotPattern({ radius, className }) {
11876
- return jsx("circle", {
11874
+ return jsx$1("circle", {
11877
11875
  cx: radius,
11878
11876
  cy: radius,
11879
11877
  r: radius,
@@ -11948,7 +11946,7 @@ size, lineWidth = 1, offset = 0, color, bgColor, style, className, patternClassN
11948
11946
  ref: ref,
11949
11947
  "data-testid": "rf__background",
11950
11948
  children: [
11951
- jsx("pattern", {
11949
+ jsx$1("pattern", {
11952
11950
  id: _patternId,
11953
11951
  x: transform[0] % scaledGap[0],
11954
11952
  y: transform[1] % scaledGap[1],
@@ -11956,17 +11954,17 @@ size, lineWidth = 1, offset = 0, color, bgColor, style, className, patternClassN
11956
11954
  height: scaledGap[1],
11957
11955
  patternUnits: "userSpaceOnUse",
11958
11956
  patternTransform: `translate(-${scaledOffset[0]},-${scaledOffset[1]})`,
11959
- children: isDots ? jsx(DotPattern, {
11957
+ children: isDots ? jsx$1(DotPattern, {
11960
11958
  radius: scaledSize / 2,
11961
11959
  className: patternClassName
11962
- }) : jsx(LinePattern, {
11960
+ }) : jsx$1(LinePattern, {
11963
11961
  dimensions: patternDimensions,
11964
11962
  lineWidth: lineWidth,
11965
11963
  variant: variant,
11966
11964
  className: patternClassName
11967
11965
  })
11968
11966
  }),
11969
- jsx("rect", {
11967
+ jsx$1("rect", {
11970
11968
  x: "0",
11971
11969
  y: "0",
11972
11970
  width: "100%",
@@ -12031,46 +12029,46 @@ BackgroundComponent.displayName = 'Background';
12031
12029
  *
12032
12030
  */ const Background = memo(BackgroundComponent);
12033
12031
  function PlusIcon() {
12034
- return jsx("svg", {
12032
+ return jsx$1("svg", {
12035
12033
  xmlns: "http://www.w3.org/2000/svg",
12036
12034
  viewBox: "0 0 32 32",
12037
- children: jsx("path", {
12035
+ children: jsx$1("path", {
12038
12036
  d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"
12039
12037
  })
12040
12038
  });
12041
12039
  }
12042
12040
  function MinusIcon() {
12043
- return jsx("svg", {
12041
+ return jsx$1("svg", {
12044
12042
  xmlns: "http://www.w3.org/2000/svg",
12045
12043
  viewBox: "0 0 32 5",
12046
- children: jsx("path", {
12044
+ children: jsx$1("path", {
12047
12045
  d: "M0 0h32v4.2H0z"
12048
12046
  })
12049
12047
  });
12050
12048
  }
12051
12049
  function FitViewIcon() {
12052
- return jsx("svg", {
12050
+ return jsx$1("svg", {
12053
12051
  xmlns: "http://www.w3.org/2000/svg",
12054
12052
  viewBox: "0 0 32 30",
12055
- children: jsx("path", {
12053
+ children: jsx$1("path", {
12056
12054
  d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"
12057
12055
  })
12058
12056
  });
12059
12057
  }
12060
12058
  function LockIcon() {
12061
- return jsx("svg", {
12059
+ return jsx$1("svg", {
12062
12060
  xmlns: "http://www.w3.org/2000/svg",
12063
12061
  viewBox: "0 0 25 32",
12064
- children: jsx("path", {
12062
+ children: jsx$1("path", {
12065
12063
  d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"
12066
12064
  })
12067
12065
  });
12068
12066
  }
12069
12067
  function UnlockIcon() {
12070
- return jsx("svg", {
12068
+ return jsx$1("svg", {
12071
12069
  xmlns: "http://www.w3.org/2000/svg",
12072
12070
  viewBox: "0 0 25 32",
12073
- children: jsx("path", {
12071
+ children: jsx$1("path", {
12074
12072
  d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"
12075
12073
  })
12076
12074
  });
@@ -12098,7 +12096,7 @@ function UnlockIcon() {
12098
12096
  *}
12099
12097
  *```
12100
12098
  */ function ControlButton({ children, className, ...rest }) {
12101
- return jsx("button", {
12099
+ return jsx$1("button", {
12102
12100
  type: "button",
12103
12101
  className: cc([
12104
12102
  'react-flow__controls-button',
@@ -12152,37 +12150,37 @@ function ControlsComponent({ style, showZoom = true, showFitView = true, showInt
12152
12150
  children: [
12153
12151
  showZoom && jsxs(Fragment, {
12154
12152
  children: [
12155
- jsx(ControlButton, {
12153
+ jsx$1(ControlButton, {
12156
12154
  onClick: onZoomInHandler,
12157
12155
  className: "react-flow__controls-zoomin",
12158
12156
  title: ariaLabelConfig['controls.zoomIn.ariaLabel'],
12159
12157
  "aria-label": ariaLabelConfig['controls.zoomIn.ariaLabel'],
12160
12158
  disabled: maxZoomReached,
12161
- children: jsx(PlusIcon, {})
12159
+ children: jsx$1(PlusIcon, {})
12162
12160
  }),
12163
- jsx(ControlButton, {
12161
+ jsx$1(ControlButton, {
12164
12162
  onClick: onZoomOutHandler,
12165
12163
  className: "react-flow__controls-zoomout",
12166
12164
  title: ariaLabelConfig['controls.zoomOut.ariaLabel'],
12167
12165
  "aria-label": ariaLabelConfig['controls.zoomOut.ariaLabel'],
12168
12166
  disabled: minZoomReached,
12169
- children: jsx(MinusIcon, {})
12167
+ children: jsx$1(MinusIcon, {})
12170
12168
  })
12171
12169
  ]
12172
12170
  }),
12173
- showFitView && jsx(ControlButton, {
12171
+ showFitView && jsx$1(ControlButton, {
12174
12172
  className: "react-flow__controls-fitview",
12175
12173
  onClick: onFitViewHandler,
12176
12174
  title: ariaLabelConfig['controls.fitView.ariaLabel'],
12177
12175
  "aria-label": ariaLabelConfig['controls.fitView.ariaLabel'],
12178
- children: jsx(FitViewIcon, {})
12176
+ children: jsx$1(FitViewIcon, {})
12179
12177
  }),
12180
- showInteractive && jsx(ControlButton, {
12178
+ showInteractive && jsx$1(ControlButton, {
12181
12179
  className: "react-flow__controls-interactive",
12182
12180
  onClick: onToggleInteractivity,
12183
12181
  title: ariaLabelConfig['controls.interactive.ariaLabel'],
12184
12182
  "aria-label": ariaLabelConfig['controls.interactive.ariaLabel'],
12185
- children: isInteractive ? jsx(UnlockIcon, {}) : jsx(LockIcon, {})
12183
+ children: isInteractive ? jsx$1(UnlockIcon, {}) : jsx$1(LockIcon, {})
12186
12184
  }),
12187
12185
  children
12188
12186
  ]
@@ -12213,7 +12211,7 @@ ControlsComponent.displayName = 'Controls';
12213
12211
  function MiniMapNodeComponent({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected, onClick }) {
12214
12212
  const { background, backgroundColor } = style || {};
12215
12213
  const fill = color || background || backgroundColor;
12216
- return jsx("rect", {
12214
+ return jsx$1("rect", {
12217
12215
  className: cc([
12218
12216
  'react-flow__minimap-node',
12219
12217
  {
@@ -12248,14 +12246,14 @@ function MiniMapNodes({ nodeStrokeColor, nodeColor, nodeClassName = '', nodeBord
12248
12246
  const nodeStrokeColorFunc = getAttrFunction(nodeStrokeColor);
12249
12247
  const nodeClassNameFunc = getAttrFunction(nodeClassName);
12250
12248
  const shapeRendering = typeof window === 'undefined' || !!window.chrome ? 'crispEdges' : 'geometricPrecision';
12251
- return jsx(Fragment, {
12249
+ return jsx$1(Fragment, {
12252
12250
  children: nodeIds.map((nodeId)=>/*
12253
12251
  * The split of responsibilities between MiniMapNodes and
12254
12252
  * NodeComponentWrapper may appear weird. However, it’s designed to
12255
12253
  * minimize the cost of updates when individual nodes change.
12256
12254
  *
12257
12255
  * For more details, see a similar commit in `NodeRenderer/index.tsx`.
12258
- */ jsx(NodeComponentWrapper, {
12256
+ */ jsx$1(NodeComponentWrapper, {
12259
12257
  id: nodeId,
12260
12258
  nodeColorFunc: nodeColorFunc,
12261
12259
  nodeStrokeColorFunc: nodeStrokeColorFunc,
@@ -12285,7 +12283,7 @@ function NodeComponentWrapperInner({ id, nodeColorFunc, nodeStrokeColorFunc, nod
12285
12283
  if (!node || node.hidden || !nodeHasDimensions(node)) {
12286
12284
  return null;
12287
12285
  }
12288
- return jsx(NodeComponent, {
12286
+ return jsx$1(NodeComponent, {
12289
12287
  x: x,
12290
12288
  y: y,
12291
12289
  width: width,
@@ -12400,7 +12398,7 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
12400
12398
  onNodeClick(event, node);
12401
12399
  }, []) : undefined;
12402
12400
  const _ariaLabel = ariaLabel ?? ariaLabelConfig['minimap.ariaLabel'];
12403
- return jsx(Panel, {
12401
+ return jsx$1(Panel, {
12404
12402
  position: position,
12405
12403
  style: {
12406
12404
  ...style,
@@ -12427,11 +12425,11 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
12427
12425
  ref: svg,
12428
12426
  onClick: onSvgClick,
12429
12427
  children: [
12430
- _ariaLabel && jsx("title", {
12428
+ _ariaLabel && jsx$1("title", {
12431
12429
  id: labelledBy,
12432
12430
  children: _ariaLabel
12433
12431
  }),
12434
- jsx(MiniMapNodes$1, {
12432
+ jsx$1(MiniMapNodes$1, {
12435
12433
  onClick: onSvgNodeClick,
12436
12434
  nodeColor: nodeColor,
12437
12435
  nodeStrokeColor: nodeStrokeColor,
@@ -12440,7 +12438,7 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
12440
12438
  nodeStrokeWidth: nodeStrokeWidth,
12441
12439
  nodeComponent: nodeComponent
12442
12440
  }),
12443
- jsx("path", {
12441
+ jsx$1("path", {
12444
12442
  className: "react-flow__minimap-mask",
12445
12443
  d: `M${x - offset},${y - offset}h${width + offset * 2}v${height + offset * 2}h${-width - offset * 2}z
12446
12444
  M${viewBB.x},${viewBB.y}h${viewBB.width}v${viewBB.height}h${-viewBB.width}z`,
@@ -12625,7 +12623,7 @@ function ResizeControl({ nodeId, position, variant = ResizeControlVariant.Handle
12625
12623
  shouldResize
12626
12624
  ]);
12627
12625
  const positionClassNames = controlPosition.split('-');
12628
- return jsx("div", {
12626
+ return jsx$1("div", {
12629
12627
  className: cc([
12630
12628
  'react-flow__resize-control',
12631
12629
  'nodrag',
@@ -12679,7 +12677,7 @@ var css_248z = "/* this gets exported as style.css and can be used for the defau
12679
12677
  styleInject(css_248z);
12680
12678
 
12681
12679
  /**
12682
- * @license lucide-react v0.553.0 - ISC
12680
+ * @license lucide-react v0.554.0 - ISC
12683
12681
  *
12684
12682
  * This source code is licensed under the ISC license.
12685
12683
  * See the LICENSE file in the root directory of this source tree.
@@ -12701,7 +12699,7 @@ const hasA11yProp = (props)=>{
12701
12699
  };
12702
12700
 
12703
12701
  /**
12704
- * @license lucide-react v0.553.0 - ISC
12702
+ * @license lucide-react v0.554.0 - ISC
12705
12703
  *
12706
12704
  * This source code is licensed under the ISC license.
12707
12705
  * See the LICENSE file in the root directory of this source tree.
@@ -13942,6 +13940,372 @@ function _extends() {
13942
13940
  }, _extends.apply(null, arguments);
13943
13941
  }
13944
13942
 
13943
+ var reactIs = {exports: {}};
13944
+
13945
+ var reactIs_production_min = {};
13946
+
13947
+ var hasRequiredReactIs_production_min;
13948
+ function requireReactIs_production_min() {
13949
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
13950
+ hasRequiredReactIs_production_min = 1;
13951
+ var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
13952
+ function z(a) {
13953
+ if ("object" === typeof a && null !== a) {
13954
+ var u = a.$$typeof;
13955
+ switch(u){
13956
+ case c:
13957
+ switch(a = a.type, a){
13958
+ case l:
13959
+ case m:
13960
+ case e:
13961
+ case g:
13962
+ case f:
13963
+ case p:
13964
+ return a;
13965
+ default:
13966
+ switch(a = a && a.$$typeof, a){
13967
+ case k:
13968
+ case n:
13969
+ case t:
13970
+ case r:
13971
+ case h:
13972
+ return a;
13973
+ default:
13974
+ return u;
13975
+ }
13976
+ }
13977
+ case d:
13978
+ return u;
13979
+ }
13980
+ }
13981
+ }
13982
+ function A(a) {
13983
+ return z(a) === m;
13984
+ }
13985
+ reactIs_production_min.AsyncMode = l;
13986
+ reactIs_production_min.ConcurrentMode = m;
13987
+ reactIs_production_min.ContextConsumer = k;
13988
+ reactIs_production_min.ContextProvider = h;
13989
+ reactIs_production_min.Element = c;
13990
+ reactIs_production_min.ForwardRef = n;
13991
+ reactIs_production_min.Fragment = e;
13992
+ reactIs_production_min.Lazy = t;
13993
+ reactIs_production_min.Memo = r;
13994
+ reactIs_production_min.Portal = d;
13995
+ reactIs_production_min.Profiler = g;
13996
+ reactIs_production_min.StrictMode = f;
13997
+ reactIs_production_min.Suspense = p;
13998
+ reactIs_production_min.isAsyncMode = function(a) {
13999
+ return A(a) || z(a) === l;
14000
+ };
14001
+ reactIs_production_min.isConcurrentMode = A;
14002
+ reactIs_production_min.isContextConsumer = function(a) {
14003
+ return z(a) === k;
14004
+ };
14005
+ reactIs_production_min.isContextProvider = function(a) {
14006
+ return z(a) === h;
14007
+ };
14008
+ reactIs_production_min.isElement = function(a) {
14009
+ return "object" === typeof a && null !== a && a.$$typeof === c;
14010
+ };
14011
+ reactIs_production_min.isForwardRef = function(a) {
14012
+ return z(a) === n;
14013
+ };
14014
+ reactIs_production_min.isFragment = function(a) {
14015
+ return z(a) === e;
14016
+ };
14017
+ reactIs_production_min.isLazy = function(a) {
14018
+ return z(a) === t;
14019
+ };
14020
+ reactIs_production_min.isMemo = function(a) {
14021
+ return z(a) === r;
14022
+ };
14023
+ reactIs_production_min.isPortal = function(a) {
14024
+ return z(a) === d;
14025
+ };
14026
+ reactIs_production_min.isProfiler = function(a) {
14027
+ return z(a) === g;
14028
+ };
14029
+ reactIs_production_min.isStrictMode = function(a) {
14030
+ return z(a) === f;
14031
+ };
14032
+ reactIs_production_min.isSuspense = function(a) {
14033
+ return z(a) === p;
14034
+ };
14035
+ reactIs_production_min.isValidElementType = function(a) {
14036
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
14037
+ };
14038
+ reactIs_production_min.typeOf = z;
14039
+ return reactIs_production_min;
14040
+ }
14041
+
14042
+ var reactIs_development = {};
14043
+
14044
+ var hasRequiredReactIs_development;
14045
+ function requireReactIs_development() {
14046
+ if (hasRequiredReactIs_development) return reactIs_development;
14047
+ hasRequiredReactIs_development = 1;
14048
+ if (process.env.NODE_ENV !== "production") {
14049
+ (function() {
14050
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
14051
+ // nor polyfill, then a plain number is used for performance.
14052
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
14053
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
14054
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
14055
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
14056
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
14057
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
14058
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
14059
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
14060
+ // (unstable) APIs that have been removed. Can we remove the symbols?
14061
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
14062
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
14063
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
14064
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
14065
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
14066
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
14067
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
14068
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
14069
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
14070
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
14071
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
14072
+ function isValidElementType(type) {
14073
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
14074
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
14075
+ }
14076
+ function typeOf(object) {
14077
+ if (typeof object === 'object' && object !== null) {
14078
+ var $$typeof = object.$$typeof;
14079
+ switch($$typeof){
14080
+ case REACT_ELEMENT_TYPE:
14081
+ var type = object.type;
14082
+ switch(type){
14083
+ case REACT_ASYNC_MODE_TYPE:
14084
+ case REACT_CONCURRENT_MODE_TYPE:
14085
+ case REACT_FRAGMENT_TYPE:
14086
+ case REACT_PROFILER_TYPE:
14087
+ case REACT_STRICT_MODE_TYPE:
14088
+ case REACT_SUSPENSE_TYPE:
14089
+ return type;
14090
+ default:
14091
+ var $$typeofType = type && type.$$typeof;
14092
+ switch($$typeofType){
14093
+ case REACT_CONTEXT_TYPE:
14094
+ case REACT_FORWARD_REF_TYPE:
14095
+ case REACT_LAZY_TYPE:
14096
+ case REACT_MEMO_TYPE:
14097
+ case REACT_PROVIDER_TYPE:
14098
+ return $$typeofType;
14099
+ default:
14100
+ return $$typeof;
14101
+ }
14102
+ }
14103
+ case REACT_PORTAL_TYPE:
14104
+ return $$typeof;
14105
+ }
14106
+ }
14107
+ return undefined;
14108
+ } // AsyncMode is deprecated along with isAsyncMode
14109
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
14110
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
14111
+ var ContextConsumer = REACT_CONTEXT_TYPE;
14112
+ var ContextProvider = REACT_PROVIDER_TYPE;
14113
+ var Element = REACT_ELEMENT_TYPE;
14114
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
14115
+ var Fragment = REACT_FRAGMENT_TYPE;
14116
+ var Lazy = REACT_LAZY_TYPE;
14117
+ var Memo = REACT_MEMO_TYPE;
14118
+ var Portal = REACT_PORTAL_TYPE;
14119
+ var Profiler = REACT_PROFILER_TYPE;
14120
+ var StrictMode = REACT_STRICT_MODE_TYPE;
14121
+ var Suspense = REACT_SUSPENSE_TYPE;
14122
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
14123
+ function isAsyncMode(object) {
14124
+ {
14125
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
14126
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
14127
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
14128
+ }
14129
+ }
14130
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
14131
+ }
14132
+ function isConcurrentMode(object) {
14133
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
14134
+ }
14135
+ function isContextConsumer(object) {
14136
+ return typeOf(object) === REACT_CONTEXT_TYPE;
14137
+ }
14138
+ function isContextProvider(object) {
14139
+ return typeOf(object) === REACT_PROVIDER_TYPE;
14140
+ }
14141
+ function isElement(object) {
14142
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
14143
+ }
14144
+ function isForwardRef(object) {
14145
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
14146
+ }
14147
+ function isFragment(object) {
14148
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
14149
+ }
14150
+ function isLazy(object) {
14151
+ return typeOf(object) === REACT_LAZY_TYPE;
14152
+ }
14153
+ function isMemo(object) {
14154
+ return typeOf(object) === REACT_MEMO_TYPE;
14155
+ }
14156
+ function isPortal(object) {
14157
+ return typeOf(object) === REACT_PORTAL_TYPE;
14158
+ }
14159
+ function isProfiler(object) {
14160
+ return typeOf(object) === REACT_PROFILER_TYPE;
14161
+ }
14162
+ function isStrictMode(object) {
14163
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
14164
+ }
14165
+ function isSuspense(object) {
14166
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
14167
+ }
14168
+ reactIs_development.AsyncMode = AsyncMode;
14169
+ reactIs_development.ConcurrentMode = ConcurrentMode;
14170
+ reactIs_development.ContextConsumer = ContextConsumer;
14171
+ reactIs_development.ContextProvider = ContextProvider;
14172
+ reactIs_development.Element = Element;
14173
+ reactIs_development.ForwardRef = ForwardRef;
14174
+ reactIs_development.Fragment = Fragment;
14175
+ reactIs_development.Lazy = Lazy;
14176
+ reactIs_development.Memo = Memo;
14177
+ reactIs_development.Portal = Portal;
14178
+ reactIs_development.Profiler = Profiler;
14179
+ reactIs_development.StrictMode = StrictMode;
14180
+ reactIs_development.Suspense = Suspense;
14181
+ reactIs_development.isAsyncMode = isAsyncMode;
14182
+ reactIs_development.isConcurrentMode = isConcurrentMode;
14183
+ reactIs_development.isContextConsumer = isContextConsumer;
14184
+ reactIs_development.isContextProvider = isContextProvider;
14185
+ reactIs_development.isElement = isElement;
14186
+ reactIs_development.isForwardRef = isForwardRef;
14187
+ reactIs_development.isFragment = isFragment;
14188
+ reactIs_development.isLazy = isLazy;
14189
+ reactIs_development.isMemo = isMemo;
14190
+ reactIs_development.isPortal = isPortal;
14191
+ reactIs_development.isProfiler = isProfiler;
14192
+ reactIs_development.isStrictMode = isStrictMode;
14193
+ reactIs_development.isSuspense = isSuspense;
14194
+ reactIs_development.isValidElementType = isValidElementType;
14195
+ reactIs_development.typeOf = typeOf;
14196
+ })();
14197
+ }
14198
+ return reactIs_development;
14199
+ }
14200
+
14201
+ var hasRequiredReactIs;
14202
+ function requireReactIs() {
14203
+ if (hasRequiredReactIs) return reactIs.exports;
14204
+ hasRequiredReactIs = 1;
14205
+ if (process.env.NODE_ENV === 'production') {
14206
+ reactIs.exports = requireReactIs_production_min();
14207
+ } else {
14208
+ reactIs.exports = requireReactIs_development();
14209
+ }
14210
+ return reactIs.exports;
14211
+ }
14212
+
14213
+ var hoistNonReactStatics_cjs;
14214
+ var hasRequiredHoistNonReactStatics_cjs;
14215
+ function requireHoistNonReactStatics_cjs() {
14216
+ if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
14217
+ hasRequiredHoistNonReactStatics_cjs = 1;
14218
+ var reactIs = requireReactIs();
14219
+ /**
14220
+ * Copyright 2015, Yahoo! Inc.
14221
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
14222
+ */ var REACT_STATICS = {
14223
+ childContextTypes: true,
14224
+ contextType: true,
14225
+ contextTypes: true,
14226
+ defaultProps: true,
14227
+ displayName: true,
14228
+ getDefaultProps: true,
14229
+ getDerivedStateFromError: true,
14230
+ getDerivedStateFromProps: true,
14231
+ mixins: true,
14232
+ propTypes: true,
14233
+ type: true
14234
+ };
14235
+ var KNOWN_STATICS = {
14236
+ name: true,
14237
+ length: true,
14238
+ prototype: true,
14239
+ caller: true,
14240
+ callee: true,
14241
+ arguments: true,
14242
+ arity: true
14243
+ };
14244
+ var FORWARD_REF_STATICS = {
14245
+ '$$typeof': true,
14246
+ render: true,
14247
+ defaultProps: true,
14248
+ displayName: true,
14249
+ propTypes: true
14250
+ };
14251
+ var MEMO_STATICS = {
14252
+ '$$typeof': true,
14253
+ compare: true,
14254
+ defaultProps: true,
14255
+ displayName: true,
14256
+ propTypes: true,
14257
+ type: true
14258
+ };
14259
+ var TYPE_STATICS = {};
14260
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
14261
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
14262
+ function getStatics(component) {
14263
+ // React v16.11 and below
14264
+ if (reactIs.isMemo(component)) {
14265
+ return MEMO_STATICS;
14266
+ } // React v16.12 and above
14267
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
14268
+ }
14269
+ var defineProperty = Object.defineProperty;
14270
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
14271
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
14272
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
14273
+ var getPrototypeOf = Object.getPrototypeOf;
14274
+ var objectPrototype = Object.prototype;
14275
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
14276
+ if (typeof sourceComponent !== 'string') {
14277
+ // don't hoist over string (html) components
14278
+ if (objectPrototype) {
14279
+ var inheritedComponent = getPrototypeOf(sourceComponent);
14280
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
14281
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
14282
+ }
14283
+ }
14284
+ var keys = getOwnPropertyNames(sourceComponent);
14285
+ if (getOwnPropertySymbols) {
14286
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
14287
+ }
14288
+ var targetStatics = getStatics(targetComponent);
14289
+ var sourceStatics = getStatics(sourceComponent);
14290
+ for(var i = 0; i < keys.length; ++i){
14291
+ var key = keys[i];
14292
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
14293
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
14294
+ try {
14295
+ // Avoid failures from read-only properties
14296
+ defineProperty(targetComponent, key, descriptor);
14297
+ } catch (e) {}
14298
+ }
14299
+ }
14300
+ }
14301
+ return targetComponent;
14302
+ }
14303
+ hoistNonReactStatics_cjs = hoistNonReactStatics;
14304
+ return hoistNonReactStatics_cjs;
14305
+ }
14306
+
14307
+ requireHoistNonReactStatics_cjs();
14308
+
13945
14309
  var isBrowser = true;
13946
14310
  function getRegisteredStyles(registered, registeredStyles, classNames) {
13947
14311
  var rawClassName = '';
@@ -14244,6 +14608,7 @@ var syncFallback = function syncFallback(create) {
14244
14608
  };
14245
14609
  var useInsertionEffect$1 = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
14246
14610
  var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect$1 || syncFallback;
14611
+ var useInsertionEffectWithLayoutFallback = useInsertionEffect$1 || React.useLayoutEffect;
14247
14612
 
14248
14613
  var EmotionCacheContext = /* #__PURE__ */ React.createContext(// because this module is primarily intended for the browser and node
14249
14614
  // but it's also required in react native and similar environments sometimes
@@ -14283,6 +14648,153 @@ var ThemeProvider$1 = function ThemeProvider(props) {
14283
14648
  value: theme
14284
14649
  }, props.children);
14285
14650
  };
14651
+ var hasOwn = {}.hasOwnProperty;
14652
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
14653
+ var createEmotionProps = function createEmotionProps(type, props) {
14654
+ var newProps = {};
14655
+ for(var _key in props){
14656
+ if (hasOwn.call(props, _key)) {
14657
+ newProps[_key] = props[_key];
14658
+ }
14659
+ }
14660
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
14661
+ return newProps;
14662
+ };
14663
+ var Insertion$1 = function Insertion(_ref) {
14664
+ var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
14665
+ registerStyles(cache, serialized, isStringTag);
14666
+ useInsertionEffectAlwaysWithSyncFallback(function() {
14667
+ return insertStyles(cache, serialized, isStringTag);
14668
+ });
14669
+ return null;
14670
+ };
14671
+ var Emotion = /* #__PURE__ */ withEmotionCache(function(props, cache, ref) {
14672
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
14673
+ // not passing the registered cache to serializeStyles because it would
14674
+ // make certain babel optimisations not possible
14675
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
14676
+ cssProp = cache.registered[cssProp];
14677
+ }
14678
+ var WrappedComponent = props[typePropName];
14679
+ var registeredStyles = [
14680
+ cssProp
14681
+ ];
14682
+ var className = '';
14683
+ if (typeof props.className === 'string') {
14684
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
14685
+ } else if (props.className != null) {
14686
+ className = props.className + " ";
14687
+ }
14688
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext$1));
14689
+ className += cache.key + "-" + serialized.name;
14690
+ var newProps = {};
14691
+ for(var _key2 in props){
14692
+ if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && true) {
14693
+ newProps[_key2] = props[_key2];
14694
+ }
14695
+ }
14696
+ newProps.className = className;
14697
+ if (ref) {
14698
+ newProps.ref = ref;
14699
+ }
14700
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Insertion$1, {
14701
+ cache: cache,
14702
+ serialized: serialized,
14703
+ isStringTag: typeof WrappedComponent === 'string'
14704
+ }), /*#__PURE__*/ React.createElement(WrappedComponent, newProps));
14705
+ });
14706
+ var Emotion$1 = Emotion;
14707
+
14708
+ var jsx = function jsx(type, props) {
14709
+ // eslint-disable-next-line prefer-rest-params
14710
+ var args = arguments;
14711
+ if (props == null || !hasOwn.call(props, 'css')) {
14712
+ return React.createElement.apply(undefined, args);
14713
+ }
14714
+ var argsLength = args.length;
14715
+ var createElementArgArray = new Array(argsLength);
14716
+ createElementArgArray[0] = Emotion$1;
14717
+ createElementArgArray[1] = createEmotionProps(type, props);
14718
+ for(var i = 2; i < argsLength; i++){
14719
+ createElementArgArray[i] = args[i];
14720
+ }
14721
+ return React.createElement.apply(null, createElementArgArray);
14722
+ };
14723
+ (function(_jsx) {
14724
+ var JSX;
14725
+ (function(_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
14726
+ })(jsx || (jsx = {}));
14727
+ // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
14728
+ // initial client-side render from SSR, use place of hydrating tag
14729
+ var Global = /* #__PURE__ */ withEmotionCache(function(props, cache) {
14730
+ var styles = props.styles;
14731
+ var serialized = serializeStyles([
14732
+ styles
14733
+ ], undefined, React.useContext(ThemeContext$1));
14734
+ // but it is based on a constant that will never change at runtime
14735
+ // it's effectively like having two implementations and switching them out
14736
+ // so it's not actually breaking anything
14737
+ var sheetRef = React.useRef();
14738
+ useInsertionEffectWithLayoutFallback(function() {
14739
+ var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
14740
+ var sheet = new cache.sheet.constructor({
14741
+ key: key,
14742
+ nonce: cache.sheet.nonce,
14743
+ container: cache.sheet.container,
14744
+ speedy: cache.sheet.isSpeedy
14745
+ });
14746
+ var rehydrating = false;
14747
+ var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
14748
+ if (cache.sheet.tags.length) {
14749
+ sheet.before = cache.sheet.tags[0];
14750
+ }
14751
+ if (node !== null) {
14752
+ rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
14753
+ node.setAttribute('data-emotion', key);
14754
+ sheet.hydrate([
14755
+ node
14756
+ ]);
14757
+ }
14758
+ sheetRef.current = [
14759
+ sheet,
14760
+ rehydrating
14761
+ ];
14762
+ return function() {
14763
+ sheet.flush();
14764
+ };
14765
+ }, [
14766
+ cache
14767
+ ]);
14768
+ useInsertionEffectWithLayoutFallback(function() {
14769
+ var sheetRefCurrent = sheetRef.current;
14770
+ var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
14771
+ if (rehydrating) {
14772
+ sheetRefCurrent[1] = false;
14773
+ return;
14774
+ }
14775
+ if (serialized.next !== undefined) {
14776
+ // insert keyframes
14777
+ insertStyles(cache, serialized.next, true);
14778
+ }
14779
+ if (sheet.tags.length) {
14780
+ // if this doesn't exist then it will be null so the style element will be appended
14781
+ var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
14782
+ sheet.before = element;
14783
+ sheet.flush();
14784
+ }
14785
+ cache.insert("", serialized, sheet, false);
14786
+ }, [
14787
+ cache,
14788
+ serialized.name
14789
+ ]);
14790
+ return null;
14791
+ });
14792
+ function css() {
14793
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
14794
+ args[_key] = arguments[_key];
14795
+ }
14796
+ return serializeStyles(args);
14797
+ }
14286
14798
 
14287
14799
  const lightTheme = {
14288
14800
  colors: {
@@ -14390,9 +14902,15 @@ const ThemeProvider = ({ children, theme: propTheme })=>{
14390
14902
  return propTheme;
14391
14903
  }
14392
14904
  // Only check localStorage if no theme prop is provided
14393
- const savedTheme = localStorage.getItem("theme");
14394
- if (savedTheme === "dark") {
14395
- return darkTheme;
14905
+ // Handle cases where localStorage might not be available (e.g., test environments)
14906
+ try {
14907
+ const savedTheme = localStorage.getItem("theme");
14908
+ if (savedTheme === "dark") {
14909
+ return darkTheme;
14910
+ }
14911
+ } catch (e) {
14912
+ // localStorage not available, fall back to light theme
14913
+ // This can happen in test environments or when localStorage is disabled
14396
14914
  }
14397
14915
  return lightTheme;
14398
14916
  });
@@ -14411,11 +14929,15 @@ const ThemeProvider = ({ children, theme: propTheme })=>{
14411
14929
  return;
14412
14930
  }
14413
14931
  const handleStorageChange = ()=>{
14414
- const savedTheme = localStorage.getItem("theme");
14415
- if (savedTheme === "dark") {
14416
- setCurrentTheme(darkTheme);
14417
- } else {
14418
- setCurrentTheme(lightTheme);
14932
+ try {
14933
+ const savedTheme = localStorage.getItem("theme");
14934
+ if (savedTheme === "dark") {
14935
+ setCurrentTheme(darkTheme);
14936
+ } else {
14937
+ setCurrentTheme(lightTheme);
14938
+ }
14939
+ } catch (e) {
14940
+ // localStorage not available, ignore storage changes
14419
14941
  }
14420
14942
  };
14421
14943
  // Listen for storage events (when localStorage changes in other tabs)
@@ -14468,24 +14990,16 @@ const Edge = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPo
14468
14990
  const [isHovered, setIsHovered] = useState(false);
14469
14991
  const { theme } = useTheme();
14470
14992
  const themeColors = theme.colors;
14471
- // Function to determine stroke color based on edge state and theme
14993
+ // Function to determine stroke color based on edge status and theme
14472
14994
  const getStrokeColor = ()=>{
14473
- const state = data?.details?.state;
14474
14995
  const status = data?.details?.status;
14475
- const output = data?.details?.output;
14996
+ data?.details?.output;
14476
14997
  // Check for error indicators
14477
- const hasError = state === "Error" || status === "Error" || typeof output === "string" && output.includes("ERROR:");
14998
+ const hasError = status === "Failed";
14478
14999
  if (hasError) {
14479
15000
  return themeColors.destructive;
14480
15001
  }
14481
- switch(state){
14482
- case "Open":
14483
- return themeColors.mutedForeground;
14484
- case "Completed":
14485
- return themeColors.mutedForeground;
14486
- default:
14487
- return themeColors.mutedForeground;
14488
- }
15002
+ return themeColors.mutedForeground;
14489
15003
  };
14490
15004
  const [edgePath] = useMemo(()=>{
14491
15005
  return getSmoothStepPath({
@@ -17029,15 +17543,24 @@ const NodeIcon$3 = styled.div`
17029
17543
  `;
17030
17544
 
17031
17545
  // Helper function to get node icon
17032
- const getNodeIcon = (modelProvider)=>{
17546
+ const getNodeIcon = (modelProvider, size = 16)=>{
17033
17547
  if (modelProvider === "OpenAI") {
17034
- return /*#__PURE__*/ React__default.createElement(OpenAIIcon, null);
17548
+ return /*#__PURE__*/ React__default.createElement(OpenAIIcon, {
17549
+ width: size,
17550
+ height: size
17551
+ });
17035
17552
  }
17036
17553
  if (modelProvider === "Anthropic") {
17037
- return /*#__PURE__*/ React__default.createElement(AnthropicIcon, null);
17554
+ return /*#__PURE__*/ React__default.createElement(AnthropicIcon, {
17555
+ width: size,
17556
+ height: size
17557
+ });
17038
17558
  }
17039
17559
  if (modelProvider === "Google" || modelProvider === "Vertex_AI") {
17040
- return /*#__PURE__*/ React__default.createElement(GoogleIcon, null);
17560
+ return /*#__PURE__*/ React__default.createElement(GoogleIcon, {
17561
+ width: size,
17562
+ height: size
17563
+ });
17041
17564
  }
17042
17565
  return "🤖";
17043
17566
  };
@@ -17719,7 +18242,7 @@ function createContext2(rootComponentName, defaultContext) {
17719
18242
  const Provider = (props)=>{
17720
18243
  const { children, ...context } = props;
17721
18244
  const value = React.useMemo(()=>context, Object.values(context));
17722
- return /* @__PURE__ */ jsx(Context.Provider, {
18245
+ return /* @__PURE__ */ jsx$1(Context.Provider, {
17723
18246
  value,
17724
18247
  children
17725
18248
  });
@@ -17749,7 +18272,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
17749
18272
  const { scope, children, ...context } = props;
17750
18273
  const Context = scope?.[scopeName]?.[index] || BaseContext;
17751
18274
  const value = React.useMemo(()=>context, Object.values(context));
17752
- return /* @__PURE__ */ jsx(Context.Provider, {
18275
+ return /* @__PURE__ */ jsx$1(Context.Provider, {
17753
18276
  value,
17754
18277
  children
17755
18278
  });
@@ -17860,7 +18383,7 @@ function useControllableState$1({ prop, defaultProp, onChange = ()=>{}, caller }
17860
18383
  }
17861
18384
  const setValue = React.useCallback((nextValue)=>{
17862
18385
  if (isControlled) {
17863
- const value2 = isFunction$1(nextValue) ? nextValue(prop) : nextValue;
18386
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
17864
18387
  if (value2 !== prop) {
17865
18388
  onChangeRef.current?.(value2);
17866
18389
  }
@@ -17902,7 +18425,7 @@ function useUncontrolledState$1({ defaultProp, onChange }) {
17902
18425
  onChangeRef
17903
18426
  ];
17904
18427
  }
17905
- function isFunction$1(value) {
18428
+ function isFunction(value) {
17906
18429
  return typeof value === "function";
17907
18430
  }
17908
18431
 
@@ -17924,13 +18447,13 @@ function createSlot(ownerName) {
17924
18447
  return child;
17925
18448
  }
17926
18449
  });
17927
- return /* @__PURE__ */ jsx(SlotClone, {
18450
+ return /* @__PURE__ */ jsx$1(SlotClone, {
17928
18451
  ...slotProps,
17929
18452
  ref: forwardedRef,
17930
18453
  children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null
17931
18454
  });
17932
18455
  }
17933
- return /* @__PURE__ */ jsx(SlotClone, {
18456
+ return /* @__PURE__ */ jsx$1(SlotClone, {
17934
18457
  ...slotProps,
17935
18458
  ref: forwardedRef,
17936
18459
  children
@@ -18037,7 +18560,7 @@ var Primitive = NODES.reduce((primitive, node)=>{
18037
18560
  if (typeof window !== "undefined") {
18038
18561
  window[Symbol.for("radix-ui")] = true;
18039
18562
  }
18040
- return /* @__PURE__ */ jsx(Comp, {
18563
+ return /* @__PURE__ */ jsx$1(Comp, {
18041
18564
  ...primitiveProps,
18042
18565
  ref: forwardedRef
18043
18566
  });
@@ -18174,7 +18697,7 @@ var DismissableLayer = React.forwardRef((props, forwardedRef)=>{
18174
18697
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
18175
18698
  return ()=>document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
18176
18699
  }, []);
18177
- return /* @__PURE__ */ jsx(Primitive.div, {
18700
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
18178
18701
  ...layerProps,
18179
18702
  ref: composedRefs,
18180
18703
  style: {
@@ -18203,7 +18726,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef)=>{
18203
18726
  }, [
18204
18727
  context.branches
18205
18728
  ]);
18206
- return /* @__PURE__ */ jsx(Primitive.div, {
18729
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
18207
18730
  ...props,
18208
18731
  ref: composedRefs
18209
18732
  });
@@ -18440,7 +18963,7 @@ var FocusScope = React.forwardRef((props, forwardedRef)=>{
18440
18963
  trapped,
18441
18964
  focusScope.paused
18442
18965
  ]);
18443
- return /* @__PURE__ */ jsx(Primitive.div, {
18966
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
18444
18967
  tabIndex: -1,
18445
18968
  ...scopeProps,
18446
18969
  ref: composedRefs,
@@ -18544,7 +19067,7 @@ var Portal$3 = React.forwardRef((props, forwardedRef)=>{
18544
19067
  const [mounted, setMounted] = React.useState(false);
18545
19068
  useLayoutEffect2(()=>setMounted(true), []);
18546
19069
  const container = containerProp || mounted && globalThis?.document?.body;
18547
- return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, {
19070
+ return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx$1(Primitive.div, {
18548
19071
  ...portalProps,
18549
19072
  ref: forwardedRef
18550
19073
  }), container) : null;
@@ -19698,7 +20221,7 @@ var Dialog = (props)=>{
19698
20221
  onChange: onOpenChange,
19699
20222
  caller: DIALOG_NAME
19700
20223
  });
19701
- return /* @__PURE__ */ jsx(DialogProvider, {
20224
+ return /* @__PURE__ */ jsx$1(DialogProvider, {
19702
20225
  scope: __scopeDialog,
19703
20226
  triggerRef,
19704
20227
  contentRef,
@@ -19715,23 +20238,23 @@ var Dialog = (props)=>{
19715
20238
  });
19716
20239
  };
19717
20240
  Dialog.displayName = DIALOG_NAME;
19718
- var TRIGGER_NAME$2 = "DialogTrigger";
20241
+ var TRIGGER_NAME$1 = "DialogTrigger";
19719
20242
  var DialogTrigger = React.forwardRef((props, forwardedRef)=>{
19720
20243
  const { __scopeDialog, ...triggerProps } = props;
19721
- const context = useDialogContext(TRIGGER_NAME$2, __scopeDialog);
20244
+ const context = useDialogContext(TRIGGER_NAME$1, __scopeDialog);
19722
20245
  const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
19723
- return /* @__PURE__ */ jsx(Primitive.button, {
20246
+ return /* @__PURE__ */ jsx$1(Primitive.button, {
19724
20247
  type: "button",
19725
20248
  "aria-haspopup": "dialog",
19726
20249
  "aria-expanded": context.open,
19727
20250
  "aria-controls": context.contentId,
19728
- "data-state": getState$1(context.open),
20251
+ "data-state": getState(context.open),
19729
20252
  ...triggerProps,
19730
20253
  ref: composedTriggerRef,
19731
20254
  onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
19732
20255
  });
19733
20256
  });
19734
- DialogTrigger.displayName = TRIGGER_NAME$2;
20257
+ DialogTrigger.displayName = TRIGGER_NAME$1;
19735
20258
  var PORTAL_NAME$1 = "DialogPortal";
19736
20259
  var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME$1, {
19737
20260
  forceMount: void 0
@@ -19739,12 +20262,12 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME$1, {
19739
20262
  var DialogPortal = (props)=>{
19740
20263
  const { __scopeDialog, forceMount, children, container } = props;
19741
20264
  const context = useDialogContext(PORTAL_NAME$1, __scopeDialog);
19742
- return /* @__PURE__ */ jsx(PortalProvider, {
20265
+ return /* @__PURE__ */ jsx$1(PortalProvider, {
19743
20266
  scope: __scopeDialog,
19744
20267
  forceMount,
19745
- children: React.Children.map(children, (child)=>/* @__PURE__ */ jsx(Presence, {
20268
+ children: React.Children.map(children, (child)=>/* @__PURE__ */ jsx$1(Presence, {
19746
20269
  present: forceMount || context.open,
19747
- children: /* @__PURE__ */ jsx(Portal$3, {
20270
+ children: /* @__PURE__ */ jsx$1(Portal$3, {
19748
20271
  asChild: true,
19749
20272
  container,
19750
20273
  children: child
@@ -19758,9 +20281,9 @@ var DialogOverlay = React.forwardRef((props, forwardedRef)=>{
19758
20281
  const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
19759
20282
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
19760
20283
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
19761
- return context.modal ? /* @__PURE__ */ jsx(Presence, {
20284
+ return context.modal ? /* @__PURE__ */ jsx$1(Presence, {
19762
20285
  present: forceMount || context.open,
19763
- children: /* @__PURE__ */ jsx(DialogOverlayImpl, {
20286
+ children: /* @__PURE__ */ jsx$1(DialogOverlayImpl, {
19764
20287
  ...overlayProps,
19765
20288
  ref: forwardedRef
19766
20289
  })
@@ -19773,14 +20296,14 @@ var DialogOverlayImpl = React.forwardRef((props, forwardedRef)=>{
19773
20296
  const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
19774
20297
  return(// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
19775
20298
  // ie. when `Overlay` and `Content` are siblings
19776
- /* @__PURE__ */ jsx(ReactRemoveScroll, {
20299
+ /* @__PURE__ */ jsx$1(ReactRemoveScroll, {
19777
20300
  as: Slot$1,
19778
20301
  allowPinchZoom: true,
19779
20302
  shards: [
19780
20303
  context.contentRef
19781
20304
  ],
19782
- children: /* @__PURE__ */ jsx(Primitive.div, {
19783
- "data-state": getState$1(context.open),
20305
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
20306
+ "data-state": getState(context.open),
19784
20307
  ...overlayProps,
19785
20308
  ref: forwardedRef,
19786
20309
  style: {
@@ -19795,12 +20318,12 @@ var DialogContent = React.forwardRef((props, forwardedRef)=>{
19795
20318
  const portalContext = usePortalContext(CONTENT_NAME$2, props.__scopeDialog);
19796
20319
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
19797
20320
  const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
19798
- return /* @__PURE__ */ jsx(Presence, {
20321
+ return /* @__PURE__ */ jsx$1(Presence, {
19799
20322
  present: forceMount || context.open,
19800
- children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, {
20323
+ children: context.modal ? /* @__PURE__ */ jsx$1(DialogContentModal, {
19801
20324
  ...contentProps,
19802
20325
  ref: forwardedRef
19803
- }) : /* @__PURE__ */ jsx(DialogContentNonModal, {
20326
+ }) : /* @__PURE__ */ jsx$1(DialogContentNonModal, {
19804
20327
  ...contentProps,
19805
20328
  ref: forwardedRef
19806
20329
  })
@@ -19815,7 +20338,7 @@ var DialogContentModal = React.forwardRef((props, forwardedRef)=>{
19815
20338
  const content = contentRef.current;
19816
20339
  if (content) return hideOthers(content);
19817
20340
  }, []);
19818
- return /* @__PURE__ */ jsx(DialogContentImpl, {
20341
+ return /* @__PURE__ */ jsx$1(DialogContentImpl, {
19819
20342
  ...props,
19820
20343
  ref: composedRefs,
19821
20344
  trapFocus: context.open,
@@ -19837,7 +20360,7 @@ var DialogContentNonModal = React.forwardRef((props, forwardedRef)=>{
19837
20360
  const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
19838
20361
  const hasInteractedOutsideRef = React.useRef(false);
19839
20362
  const hasPointerDownOutsideRef = React.useRef(false);
19840
- return /* @__PURE__ */ jsx(DialogContentImpl, {
20363
+ return /* @__PURE__ */ jsx$1(DialogContentImpl, {
19841
20364
  ...props,
19842
20365
  ref: forwardedRef,
19843
20366
  trapFocus: false,
@@ -19876,18 +20399,18 @@ var DialogContentImpl = React.forwardRef((props, forwardedRef)=>{
19876
20399
  useFocusGuards();
19877
20400
  return /* @__PURE__ */ jsxs(Fragment, {
19878
20401
  children: [
19879
- /* @__PURE__ */ jsx(FocusScope, {
20402
+ /* @__PURE__ */ jsx$1(FocusScope, {
19880
20403
  asChild: true,
19881
20404
  loop: true,
19882
20405
  trapped: trapFocus,
19883
20406
  onMountAutoFocus: onOpenAutoFocus,
19884
20407
  onUnmountAutoFocus: onCloseAutoFocus,
19885
- children: /* @__PURE__ */ jsx(DismissableLayer, {
20408
+ children: /* @__PURE__ */ jsx$1(DismissableLayer, {
19886
20409
  role: "dialog",
19887
20410
  id: context.contentId,
19888
20411
  "aria-describedby": context.descriptionId,
19889
20412
  "aria-labelledby": context.titleId,
19890
- "data-state": getState$1(context.open),
20413
+ "data-state": getState(context.open),
19891
20414
  ...contentProps,
19892
20415
  ref: composedRefs,
19893
20416
  onDismiss: ()=>context.onOpenChange(false)
@@ -19895,10 +20418,10 @@ var DialogContentImpl = React.forwardRef((props, forwardedRef)=>{
19895
20418
  }),
19896
20419
  /* @__PURE__ */ jsxs(Fragment, {
19897
20420
  children: [
19898
- /* @__PURE__ */ jsx(TitleWarning, {
20421
+ /* @__PURE__ */ jsx$1(TitleWarning, {
19899
20422
  titleId: context.titleId
19900
20423
  }),
19901
- /* @__PURE__ */ jsx(DescriptionWarning, {
20424
+ /* @__PURE__ */ jsx$1(DescriptionWarning, {
19902
20425
  contentRef,
19903
20426
  descriptionId: context.descriptionId
19904
20427
  })
@@ -19911,7 +20434,7 @@ var TITLE_NAME = "DialogTitle";
19911
20434
  var DialogTitle = React.forwardRef((props, forwardedRef)=>{
19912
20435
  const { __scopeDialog, ...titleProps } = props;
19913
20436
  const context = useDialogContext(TITLE_NAME, __scopeDialog);
19914
- return /* @__PURE__ */ jsx(Primitive.h2, {
20437
+ return /* @__PURE__ */ jsx$1(Primitive.h2, {
19915
20438
  id: context.titleId,
19916
20439
  ...titleProps,
19917
20440
  ref: forwardedRef
@@ -19922,7 +20445,7 @@ var DESCRIPTION_NAME = "DialogDescription";
19922
20445
  var DialogDescription = React.forwardRef((props, forwardedRef)=>{
19923
20446
  const { __scopeDialog, ...descriptionProps } = props;
19924
20447
  const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
19925
- return /* @__PURE__ */ jsx(Primitive.p, {
20448
+ return /* @__PURE__ */ jsx$1(Primitive.p, {
19926
20449
  id: context.descriptionId,
19927
20450
  ...descriptionProps,
19928
20451
  ref: forwardedRef
@@ -19933,7 +20456,7 @@ var CLOSE_NAME = "DialogClose";
19933
20456
  var DialogClose = React.forwardRef((props, forwardedRef)=>{
19934
20457
  const { __scopeDialog, ...closeProps } = props;
19935
20458
  const context = useDialogContext(CLOSE_NAME, __scopeDialog);
19936
- return /* @__PURE__ */ jsx(Primitive.button, {
20459
+ return /* @__PURE__ */ jsx$1(Primitive.button, {
19937
20460
  type: "button",
19938
20461
  ...closeProps,
19939
20462
  ref: forwardedRef,
@@ -19941,7 +20464,7 @@ var DialogClose = React.forwardRef((props, forwardedRef)=>{
19941
20464
  });
19942
20465
  });
19943
20466
  DialogClose.displayName = CLOSE_NAME;
19944
- function getState$1(open) {
20467
+ function getState(open) {
19945
20468
  return open ? "open" : "closed";
19946
20469
  }
19947
20470
  var TITLE_WARNING_NAME = "DialogTitleWarning";
@@ -20687,8 +21210,6 @@ const AgenticFlowVisualizer = ({ flowData: propFlowData, width = "100dvw", heigh
20687
21210
  minWidth: "800px",
20688
21211
  minHeight: "600px",
20689
21212
  boxSizing: "border-box",
20690
- border: `1px solid ${themeColors.border}`,
20691
- borderRadius: "8px",
20692
21213
  overflow: "hidden",
20693
21214
  position: "relative",
20694
21215
  background: themeColors.background
@@ -20840,6 +21361,7 @@ const AgenticFlowVisualizer = ({ flowData: propFlowData, width = "100dvw", heigh
20840
21361
  }, /*#__PURE__*/ React__default.createElement(Background, {
20841
21362
  variant: BackgroundVariant.Dots,
20842
21363
  color: themeColors.mutedBorder,
21364
+ bgColor: themeColors.background,
20843
21365
  size: 3
20844
21366
  })), /*#__PURE__*/ React__default.createElement("style", null, `
20845
21367
  .react-flow__edge-label {
@@ -20890,7 +21412,7 @@ function createCollection(name) {
20890
21412
  const { scope, children } = props;
20891
21413
  const ref = React__default.useRef(null);
20892
21414
  const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
20893
- return /* @__PURE__ */ jsx(CollectionProviderImpl, {
21415
+ return /* @__PURE__ */ jsx$1(CollectionProviderImpl, {
20894
21416
  scope,
20895
21417
  itemMap,
20896
21418
  collectionRef: ref,
@@ -20904,7 +21426,7 @@ function createCollection(name) {
20904
21426
  const { scope, children } = props;
20905
21427
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
20906
21428
  const composedRefs = useComposedRefs$1(forwardedRef, context.collectionRef);
20907
- return /* @__PURE__ */ jsx(CollectionSlotImpl, {
21429
+ return /* @__PURE__ */ jsx$1(CollectionSlotImpl, {
20908
21430
  ref: composedRefs,
20909
21431
  children
20910
21432
  });
@@ -20925,7 +21447,7 @@ function createCollection(name) {
20925
21447
  });
20926
21448
  return ()=>void context.itemMap.delete(ref);
20927
21449
  });
20928
- return /* @__PURE__ */ jsx(CollectionItemSlotImpl, {
21450
+ return /* @__PURE__ */ jsx$1(CollectionItemSlotImpl, {
20929
21451
  ...{
20930
21452
  [ITEM_DATA_ATTR]: ""
20931
21453
  },
@@ -23028,14 +23550,14 @@ function useLatestRef(value) {
23028
23550
  var NAME$1 = "Arrow";
23029
23551
  var Arrow$1 = React.forwardRef((props, forwardedRef)=>{
23030
23552
  const { children, width = 10, height = 5, ...arrowProps } = props;
23031
- return /* @__PURE__ */ jsx(Primitive.svg, {
23553
+ return /* @__PURE__ */ jsx$1(Primitive.svg, {
23032
23554
  ...arrowProps,
23033
23555
  ref: forwardedRef,
23034
23556
  width,
23035
23557
  height,
23036
23558
  viewBox: "0 0 30 10",
23037
23559
  preserveAspectRatio: "none",
23038
- children: props.asChild ? children : /* @__PURE__ */ jsx("polygon", {
23560
+ children: props.asChild ? children : /* @__PURE__ */ jsx$1("polygon", {
23039
23561
  points: "0,0 30,0 15,10"
23040
23562
  })
23041
23563
  });
@@ -23095,7 +23617,7 @@ var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
23095
23617
  var Popper = (props)=>{
23096
23618
  const { __scopePopper, children } = props;
23097
23619
  const [anchor, setAnchor] = React.useState(null);
23098
- return /* @__PURE__ */ jsx(PopperProvider, {
23620
+ return /* @__PURE__ */ jsx$1(PopperProvider, {
23099
23621
  scope: __scopePopper,
23100
23622
  anchor,
23101
23623
  onAnchorChange: setAnchor,
@@ -23117,7 +23639,7 @@ var PopperAnchor = React.forwardRef((props, forwardedRef)=>{
23117
23639
  context.onAnchorChange(anchorRef.current);
23118
23640
  }
23119
23641
  });
23120
- return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, {
23642
+ return virtualRef ? null : /* @__PURE__ */ jsx$1(Primitive.div, {
23121
23643
  ...anchorProps,
23122
23644
  ref: composedRefs
23123
23645
  });
@@ -23223,7 +23745,7 @@ var PopperContent = React.forwardRef((props, forwardedRef)=>{
23223
23745
  }, [
23224
23746
  content
23225
23747
  ]);
23226
- return /* @__PURE__ */ jsx("div", {
23748
+ return /* @__PURE__ */ jsx$1("div", {
23227
23749
  ref: refs.setFloating,
23228
23750
  "data-radix-popper-content-wrapper": "",
23229
23751
  style: {
@@ -23245,14 +23767,14 @@ var PopperContent = React.forwardRef((props, forwardedRef)=>{
23245
23767
  }
23246
23768
  },
23247
23769
  dir: props.dir,
23248
- children: /* @__PURE__ */ jsx(PopperContentProvider, {
23770
+ children: /* @__PURE__ */ jsx$1(PopperContentProvider, {
23249
23771
  scope: __scopePopper,
23250
23772
  placedSide,
23251
23773
  onArrowChange: setArrow,
23252
23774
  arrowX,
23253
23775
  arrowY,
23254
23776
  shouldHideArrow: cannotCenterArrow,
23255
- children: /* @__PURE__ */ jsx(Primitive.div, {
23777
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
23256
23778
  "data-side": placedSide,
23257
23779
  "data-align": placedAlign,
23258
23780
  ...contentProps,
@@ -23282,7 +23804,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
23282
23804
  return(// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
23283
23805
  // doesn't report size as we'd expect on SVG elements.
23284
23806
  // it reports their bounding box which is effectively the largest path inside the SVG.
23285
- /* @__PURE__ */ jsx("span", {
23807
+ /* @__PURE__ */ jsx$1("span", {
23286
23808
  ref: contentContext.onArrowChange,
23287
23809
  style: {
23288
23810
  position: "absolute",
@@ -23303,7 +23825,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
23303
23825
  }[contentContext.placedSide],
23304
23826
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
23305
23827
  },
23306
- children: /* @__PURE__ */ jsx(Root$1, {
23828
+ children: /* @__PURE__ */ jsx$1(Root$1, {
23307
23829
  ...arrowProps,
23308
23830
  ref: forwardedRef,
23309
23831
  style: {
@@ -23403,7 +23925,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
23403
23925
  });
23404
23926
  var NAME = "VisuallyHidden";
23405
23927
  var VisuallyHidden = React.forwardRef((props, forwardedRef)=>{
23406
- return /* @__PURE__ */ jsx(Primitive.span, {
23928
+ return /* @__PURE__ */ jsx$1(Primitive.span, {
23407
23929
  ...props,
23408
23930
  ref: forwardedRef,
23409
23931
  style: {
@@ -23456,7 +23978,7 @@ var Select$1 = (props)=>{
23456
23978
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
23457
23979
  const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
23458
23980
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option)=>option.props.value).join(";");
23459
- return /* @__PURE__ */ jsx(Root2$1, {
23981
+ return /* @__PURE__ */ jsx$1(Root2$1, {
23460
23982
  ...popperScope,
23461
23983
  children: /* @__PURE__ */ jsxs(SelectProvider, {
23462
23984
  required,
@@ -23476,9 +23998,9 @@ var Select$1 = (props)=>{
23476
23998
  triggerPointerDownPosRef,
23477
23999
  disabled,
23478
24000
  children: [
23479
- /* @__PURE__ */ jsx(Collection.Provider, {
24001
+ /* @__PURE__ */ jsx$1(Collection.Provider, {
23480
24002
  scope: __scopeSelect,
23481
- children: /* @__PURE__ */ jsx(SelectNativeOptionsProvider, {
24003
+ children: /* @__PURE__ */ jsx$1(SelectNativeOptionsProvider, {
23482
24004
  scope: props.__scopeSelect,
23483
24005
  onNativeOptionAdd: React.useCallback((option)=>{
23484
24006
  setNativeOptionsSet((prev)=>new Set(prev).add(option));
@@ -23504,7 +24026,7 @@ var Select$1 = (props)=>{
23504
24026
  disabled,
23505
24027
  form,
23506
24028
  children: [
23507
- value === void 0 ? /* @__PURE__ */ jsx("option", {
24029
+ value === void 0 ? /* @__PURE__ */ jsx$1("option", {
23508
24030
  value: ""
23509
24031
  }) : null,
23510
24032
  Array.from(nativeOptionsSet)
@@ -23515,11 +24037,11 @@ var Select$1 = (props)=>{
23515
24037
  });
23516
24038
  };
23517
24039
  Select$1.displayName = SELECT_NAME;
23518
- var TRIGGER_NAME$1 = "SelectTrigger";
24040
+ var TRIGGER_NAME = "SelectTrigger";
23519
24041
  var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
23520
24042
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
23521
24043
  const popperScope = usePopperScope(__scopeSelect);
23522
- const context = useSelectContext(TRIGGER_NAME$1, __scopeSelect);
24044
+ const context = useSelectContext(TRIGGER_NAME, __scopeSelect);
23523
24045
  const isDisabled = context.disabled || disabled;
23524
24046
  const composedRefs = useComposedRefs$1(forwardedRef, context.onTriggerChange);
23525
24047
  const getItems = useCollection(__scopeSelect);
@@ -23544,10 +24066,10 @@ var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
23544
24066
  };
23545
24067
  }
23546
24068
  };
23547
- return /* @__PURE__ */ jsx(Anchor, {
24069
+ return /* @__PURE__ */ jsx$1(Anchor, {
23548
24070
  asChild: true,
23549
24071
  ...popperScope,
23550
- children: /* @__PURE__ */ jsx(Primitive.button, {
24072
+ children: /* @__PURE__ */ jsx$1(Primitive.button, {
23551
24073
  type: "button",
23552
24074
  role: "combobox",
23553
24075
  "aria-controls": context.contentId,
@@ -23591,7 +24113,7 @@ var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
23591
24113
  })
23592
24114
  });
23593
24115
  });
23594
- SelectTrigger$1.displayName = TRIGGER_NAME$1;
24116
+ SelectTrigger$1.displayName = TRIGGER_NAME;
23595
24117
  var VALUE_NAME = "SelectValue";
23596
24118
  var SelectValue$1 = React.forwardRef((props, forwardedRef)=>{
23597
24119
  const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
@@ -23605,13 +24127,13 @@ var SelectValue$1 = React.forwardRef((props, forwardedRef)=>{
23605
24127
  onValueNodeHasChildrenChange,
23606
24128
  hasChildren
23607
24129
  ]);
23608
- return /* @__PURE__ */ jsx(Primitive.span, {
24130
+ return /* @__PURE__ */ jsx$1(Primitive.span, {
23609
24131
  ...valueProps,
23610
24132
  ref: composedRefs,
23611
24133
  style: {
23612
24134
  pointerEvents: "none"
23613
24135
  },
23614
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx(Fragment, {
24136
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx$1(Fragment, {
23615
24137
  children: placeholder
23616
24138
  }) : children
23617
24139
  });
@@ -23620,7 +24142,7 @@ SelectValue$1.displayName = VALUE_NAME;
23620
24142
  var ICON_NAME = "SelectIcon";
23621
24143
  var SelectIcon$1 = React.forwardRef((props, forwardedRef)=>{
23622
24144
  const { __scopeSelect, children, ...iconProps } = props;
23623
- return /* @__PURE__ */ jsx(Primitive.span, {
24145
+ return /* @__PURE__ */ jsx$1(Primitive.span, {
23624
24146
  "aria-hidden": true,
23625
24147
  ...iconProps,
23626
24148
  ref: forwardedRef,
@@ -23630,7 +24152,7 @@ var SelectIcon$1 = React.forwardRef((props, forwardedRef)=>{
23630
24152
  SelectIcon$1.displayName = ICON_NAME;
23631
24153
  var PORTAL_NAME = "SelectPortal";
23632
24154
  var SelectPortal = (props)=>{
23633
- return /* @__PURE__ */ jsx(Portal$3, {
24155
+ return /* @__PURE__ */ jsx$1(Portal$3, {
23634
24156
  asChild: true,
23635
24157
  ...props
23636
24158
  });
@@ -23645,17 +24167,17 @@ var SelectContent$1 = React.forwardRef((props, forwardedRef)=>{
23645
24167
  }, []);
23646
24168
  if (!context.open) {
23647
24169
  const frag = fragment;
23648
- return frag ? ReactDOM.createPortal(/* @__PURE__ */ jsx(SelectContentProvider, {
24170
+ return frag ? ReactDOM.createPortal(/* @__PURE__ */ jsx$1(SelectContentProvider, {
23649
24171
  scope: props.__scopeSelect,
23650
- children: /* @__PURE__ */ jsx(Collection.Slot, {
24172
+ children: /* @__PURE__ */ jsx$1(Collection.Slot, {
23651
24173
  scope: props.__scopeSelect,
23652
- children: /* @__PURE__ */ jsx("div", {
24174
+ children: /* @__PURE__ */ jsx$1("div", {
23653
24175
  children: props.children
23654
24176
  })
23655
24177
  })
23656
24178
  }), frag) : null;
23657
24179
  }
23658
- return /* @__PURE__ */ jsx(SelectContentImpl, {
24180
+ return /* @__PURE__ */ jsx$1(SelectContentImpl, {
23659
24181
  ...props,
23660
24182
  ref: forwardedRef
23661
24183
  });
@@ -23816,7 +24338,7 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
23816
24338
  hideWhenDetached,
23817
24339
  avoidCollisions
23818
24340
  } : {};
23819
- return /* @__PURE__ */ jsx(SelectContentProvider, {
24341
+ return /* @__PURE__ */ jsx$1(SelectContentProvider, {
23820
24342
  scope: __scopeSelect,
23821
24343
  content,
23822
24344
  viewport,
@@ -23830,10 +24352,10 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
23830
24352
  position,
23831
24353
  isPositioned,
23832
24354
  searchRef,
23833
- children: /* @__PURE__ */ jsx(ReactRemoveScroll, {
24355
+ children: /* @__PURE__ */ jsx$1(ReactRemoveScroll, {
23834
24356
  as: Slot,
23835
24357
  allowPinchZoom: true,
23836
- children: /* @__PURE__ */ jsx(FocusScope, {
24358
+ children: /* @__PURE__ */ jsx$1(FocusScope, {
23837
24359
  asChild: true,
23838
24360
  trapped: context.open,
23839
24361
  onMountAutoFocus: (event)=>{
@@ -23845,14 +24367,14 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
23845
24367
  });
23846
24368
  event.preventDefault();
23847
24369
  }),
23848
- children: /* @__PURE__ */ jsx(DismissableLayer, {
24370
+ children: /* @__PURE__ */ jsx$1(DismissableLayer, {
23849
24371
  asChild: true,
23850
24372
  disableOutsidePointerEvents: true,
23851
24373
  onEscapeKeyDown,
23852
24374
  onPointerDownOutside,
23853
24375
  onFocusOutside: (event)=>event.preventDefault(),
23854
24376
  onDismiss: ()=>context.onOpenChange(false),
23855
- children: /* @__PURE__ */ jsx(SelectPosition, {
24377
+ children: /* @__PURE__ */ jsx$1(SelectPosition, {
23856
24378
  role: "listbox",
23857
24379
  id: context.contentId,
23858
24380
  "data-state": context.open ? "open" : "closed",
@@ -24031,12 +24553,12 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef)=>{
24031
24553
  position,
24032
24554
  focusSelectedItem
24033
24555
  ]);
24034
- return /* @__PURE__ */ jsx(SelectViewportProvider, {
24556
+ return /* @__PURE__ */ jsx$1(SelectViewportProvider, {
24035
24557
  scope: __scopeSelect,
24036
24558
  contentWrapper,
24037
24559
  shouldExpandOnScrollRef,
24038
24560
  onScrollButtonChange: handleScrollButtonChange,
24039
- children: /* @__PURE__ */ jsx("div", {
24561
+ children: /* @__PURE__ */ jsx$1("div", {
24040
24562
  ref: setContentWrapper,
24041
24563
  style: {
24042
24564
  display: "flex",
@@ -24044,7 +24566,7 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef)=>{
24044
24566
  position: "fixed",
24045
24567
  zIndex: contentZIndex
24046
24568
  },
24047
- children: /* @__PURE__ */ jsx(Primitive.div, {
24569
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
24048
24570
  ...popperProps,
24049
24571
  ref: composedRefs,
24050
24572
  style: {
@@ -24064,7 +24586,7 @@ var POPPER_POSITION_NAME = "SelectPopperPosition";
24064
24586
  var SelectPopperPosition = React.forwardRef((props, forwardedRef)=>{
24065
24587
  const { __scopeSelect, align = "start", collisionPadding = CONTENT_MARGIN, ...popperProps } = props;
24066
24588
  const popperScope = usePopperScope(__scopeSelect);
24067
- return /* @__PURE__ */ jsx(Content$1, {
24589
+ return /* @__PURE__ */ jsx$1(Content$1, {
24068
24590
  ...popperScope,
24069
24591
  ...popperProps,
24070
24592
  ref: forwardedRef,
@@ -24096,15 +24618,15 @@ var SelectViewport = React.forwardRef((props, forwardedRef)=>{
24096
24618
  const prevScrollTopRef = React.useRef(0);
24097
24619
  return /* @__PURE__ */ jsxs(Fragment, {
24098
24620
  children: [
24099
- /* @__PURE__ */ jsx("style", {
24621
+ /* @__PURE__ */ jsx$1("style", {
24100
24622
  dangerouslySetInnerHTML: {
24101
24623
  __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
24102
24624
  },
24103
24625
  nonce
24104
24626
  }),
24105
- /* @__PURE__ */ jsx(Collection.Slot, {
24627
+ /* @__PURE__ */ jsx$1(Collection.Slot, {
24106
24628
  scope: __scopeSelect,
24107
- children: /* @__PURE__ */ jsx(Primitive.div, {
24629
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
24108
24630
  "data-radix-select-viewport": "",
24109
24631
  role: "presentation",
24110
24632
  ...viewportProps,
@@ -24157,10 +24679,10 @@ var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GR
24157
24679
  var SelectGroup = React.forwardRef((props, forwardedRef)=>{
24158
24680
  const { __scopeSelect, ...groupProps } = props;
24159
24681
  const groupId = useId();
24160
- return /* @__PURE__ */ jsx(SelectGroupContextProvider, {
24682
+ return /* @__PURE__ */ jsx$1(SelectGroupContextProvider, {
24161
24683
  scope: __scopeSelect,
24162
24684
  id: groupId,
24163
- children: /* @__PURE__ */ jsx(Primitive.div, {
24685
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
24164
24686
  role: "group",
24165
24687
  "aria-labelledby": groupId,
24166
24688
  ...groupProps,
@@ -24173,7 +24695,7 @@ var LABEL_NAME = "SelectLabel";
24173
24695
  var SelectLabel$1 = React.forwardRef((props, forwardedRef)=>{
24174
24696
  const { __scopeSelect, ...labelProps } = props;
24175
24697
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
24176
- return /* @__PURE__ */ jsx(Primitive.div, {
24698
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
24177
24699
  id: groupContext.id,
24178
24700
  ...labelProps,
24179
24701
  ref: forwardedRef
@@ -24201,7 +24723,7 @@ var SelectItem$1 = React.forwardRef((props, forwardedRef)=>{
24201
24723
  if (value === "") {
24202
24724
  throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
24203
24725
  }
24204
- return /* @__PURE__ */ jsx(SelectItemContextProvider, {
24726
+ return /* @__PURE__ */ jsx$1(SelectItemContextProvider, {
24205
24727
  scope: __scopeSelect,
24206
24728
  value,
24207
24729
  disabled,
@@ -24210,12 +24732,12 @@ var SelectItem$1 = React.forwardRef((props, forwardedRef)=>{
24210
24732
  onItemTextChange: React.useCallback((node)=>{
24211
24733
  setTextValue((prevTextValue)=>prevTextValue || (node?.textContent ?? "").trim());
24212
24734
  }, []),
24213
- children: /* @__PURE__ */ jsx(Collection.ItemSlot, {
24735
+ children: /* @__PURE__ */ jsx$1(Collection.ItemSlot, {
24214
24736
  scope: __scopeSelect,
24215
24737
  value,
24216
24738
  disabled,
24217
24739
  textValue,
24218
- children: /* @__PURE__ */ jsx(Primitive.div, {
24740
+ children: /* @__PURE__ */ jsx$1(Primitive.div, {
24219
24741
  role: "option",
24220
24742
  "aria-labelledby": textId,
24221
24743
  "data-highlighted": isFocused ? "" : void 0,
@@ -24273,7 +24795,7 @@ var SelectItemText = React.forwardRef((props, forwardedRef)=>{
24273
24795
  const [itemTextNode, setItemTextNode] = React.useState(null);
24274
24796
  const composedRefs = useComposedRefs$1(forwardedRef, (node)=>setItemTextNode(node), itemContext.onItemTextChange, (node)=>contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
24275
24797
  const textContent = itemTextNode?.textContent;
24276
- const nativeOption = React.useMemo(()=>/* @__PURE__ */ jsx("option", {
24798
+ const nativeOption = React.useMemo(()=>/* @__PURE__ */ jsx$1("option", {
24277
24799
  value: itemContext.value,
24278
24800
  disabled: itemContext.disabled,
24279
24801
  children: textContent
@@ -24293,7 +24815,7 @@ var SelectItemText = React.forwardRef((props, forwardedRef)=>{
24293
24815
  ]);
24294
24816
  return /* @__PURE__ */ jsxs(Fragment, {
24295
24817
  children: [
24296
- /* @__PURE__ */ jsx(Primitive.span, {
24818
+ /* @__PURE__ */ jsx$1(Primitive.span, {
24297
24819
  id: itemContext.textId,
24298
24820
  ...itemTextProps,
24299
24821
  ref: composedRefs
@@ -24307,7 +24829,7 @@ var ITEM_INDICATOR_NAME = "SelectItemIndicator";
24307
24829
  var SelectItemIndicator$1 = React.forwardRef((props, forwardedRef)=>{
24308
24830
  const { __scopeSelect, ...itemIndicatorProps } = props;
24309
24831
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
24310
- return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, {
24832
+ return itemContext.isSelected ? /* @__PURE__ */ jsx$1(Primitive.span, {
24311
24833
  "aria-hidden": true,
24312
24834
  ...itemIndicatorProps,
24313
24835
  ref: forwardedRef
@@ -24335,7 +24857,7 @@ var SelectScrollUpButton$1 = React.forwardRef((props, forwardedRef)=>{
24335
24857
  contentContext.viewport,
24336
24858
  contentContext.isPositioned
24337
24859
  ]);
24338
- return canScrollUp ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
24860
+ return canScrollUp ? /* @__PURE__ */ jsx$1(SelectScrollButtonImpl, {
24339
24861
  ...props,
24340
24862
  ref: composedRefs,
24341
24863
  onAutoScroll: ()=>{
@@ -24369,7 +24891,7 @@ var SelectScrollDownButton$1 = React.forwardRef((props, forwardedRef)=>{
24369
24891
  contentContext.viewport,
24370
24892
  contentContext.isPositioned
24371
24893
  ]);
24372
- return canScrollDown ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
24894
+ return canScrollDown ? /* @__PURE__ */ jsx$1(SelectScrollButtonImpl, {
24373
24895
  ...props,
24374
24896
  ref: composedRefs,
24375
24897
  onAutoScroll: ()=>{
@@ -24405,7 +24927,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef)=>{
24405
24927
  }, [
24406
24928
  getItems
24407
24929
  ]);
24408
- return /* @__PURE__ */ jsx(Primitive.div, {
24930
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
24409
24931
  "aria-hidden": true,
24410
24932
  ...scrollIndicatorProps,
24411
24933
  ref: forwardedRef,
@@ -24432,7 +24954,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef)=>{
24432
24954
  var SEPARATOR_NAME = "SelectSeparator";
24433
24955
  var SelectSeparator$1 = React.forwardRef((props, forwardedRef)=>{
24434
24956
  const { __scopeSelect, ...separatorProps } = props;
24435
- return /* @__PURE__ */ jsx(Primitive.div, {
24957
+ return /* @__PURE__ */ jsx$1(Primitive.div, {
24436
24958
  "aria-hidden": true,
24437
24959
  ...separatorProps,
24438
24960
  ref: forwardedRef
@@ -24445,14 +24967,14 @@ var SelectArrow = React.forwardRef((props, forwardedRef)=>{
24445
24967
  const popperScope = usePopperScope(__scopeSelect);
24446
24968
  const context = useSelectContext(ARROW_NAME, __scopeSelect);
24447
24969
  const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);
24448
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx(Arrow, {
24970
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx$1(Arrow, {
24449
24971
  ...popperScope,
24450
24972
  ...arrowProps,
24451
24973
  ref: forwardedRef
24452
24974
  }) : null;
24453
24975
  });
24454
24976
  SelectArrow.displayName = ARROW_NAME;
24455
- var BUBBLE_INPUT_NAME$1 = "SelectBubbleInput";
24977
+ var BUBBLE_INPUT_NAME = "SelectBubbleInput";
24456
24978
  var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, forwardedRef)=>{
24457
24979
  const ref = React.useRef(null);
24458
24980
  const composedRefs = useComposedRefs$1(forwardedRef, ref);
@@ -24474,7 +24996,7 @@ var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, fo
24474
24996
  prevValue,
24475
24997
  value
24476
24998
  ]);
24477
- return /* @__PURE__ */ jsx(Primitive.select, {
24999
+ return /* @__PURE__ */ jsx$1(Primitive.select, {
24478
25000
  ...props,
24479
25001
  style: {
24480
25002
  ...VISUALLY_HIDDEN_STYLES,
@@ -24484,7 +25006,7 @@ var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, fo
24484
25006
  defaultValue: value
24485
25007
  });
24486
25008
  });
24487
- SelectBubbleInput.displayName = BUBBLE_INPUT_NAME$1;
25009
+ SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
24488
25010
  function shouldShowPlaceholder(value) {
24489
25011
  return value === "" || value === void 0;
24490
25012
  }
@@ -24545,7 +25067,9 @@ var ScrollDownButton = SelectScrollDownButton$1;
24545
25067
  var Separator = SelectSeparator$1;
24546
25068
 
24547
25069
  const Select = Root2;
24548
- const SelectValue = Value;
25070
+ const SelectValue = styled(Value)`
25071
+ font-family: inherit;
25072
+ `;
24549
25073
  const SelectTrigger = styled(Trigger)`
24550
25074
  display: flex;
24551
25075
  height: 2.5rem;
@@ -24575,6 +25099,7 @@ const SelectTrigger = styled(Trigger)`
24575
25099
  }
24576
25100
 
24577
25101
  &[data-placeholder] {
25102
+ font-family: inherit;
24578
25103
  color: ${(props)=>props.$theme.colors.mutedForeground};
24579
25104
  }
24580
25105
  `;
@@ -24941,240 +25466,6 @@ const FileSelector = ({ files, currentFile, onFileSelect, onRefresh, loading = f
24941
25466
  }, loading ? /*#__PURE__*/ React__default.createElement(LoadingIcon, null) : /*#__PURE__*/ React__default.createElement(RefreshIcon, null)));
24942
25467
  };
24943
25468
 
24944
- var CHECKBOX_NAME = "Checkbox";
24945
- var [createCheckboxContext] = createContextScope(CHECKBOX_NAME);
24946
- var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
24947
- function CheckboxProvider(props) {
24948
- const { __scopeCheckbox, checked: checkedProp, children, defaultChecked, disabled, form, name, onCheckedChange, required, value = "on", // @ts-expect-error
24949
- internal_do_not_use_render } = props;
24950
- const [checked, setChecked] = useControllableState$1({
24951
- prop: checkedProp,
24952
- defaultProp: defaultChecked ?? false,
24953
- onChange: onCheckedChange,
24954
- caller: CHECKBOX_NAME
24955
- });
24956
- const [control, setControl] = React.useState(null);
24957
- const [bubbleInput, setBubbleInput] = React.useState(null);
24958
- const hasConsumerStoppedPropagationRef = React.useRef(false);
24959
- const isFormControl = control ? !!form || !!control.closest("form") : // We set this to true by default so that events bubble to forms without JS (SSR)
24960
- true;
24961
- const context = {
24962
- checked,
24963
- disabled,
24964
- setChecked,
24965
- control,
24966
- setControl,
24967
- name,
24968
- form,
24969
- value,
24970
- hasConsumerStoppedPropagationRef,
24971
- required,
24972
- defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,
24973
- isFormControl,
24974
- bubbleInput,
24975
- setBubbleInput
24976
- };
24977
- return /* @__PURE__ */ jsx(CheckboxProviderImpl, {
24978
- scope: __scopeCheckbox,
24979
- ...context,
24980
- children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
24981
- });
24982
- }
24983
- var TRIGGER_NAME = "CheckboxTrigger";
24984
- var CheckboxTrigger = React.forwardRef(({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef)=>{
24985
- const { control, value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, isFormControl, bubbleInput } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);
24986
- const composedRefs = useComposedRefs$1(forwardedRef, setControl);
24987
- const initialCheckedStateRef = React.useRef(checked);
24988
- React.useEffect(()=>{
24989
- const form = control?.form;
24990
- if (form) {
24991
- const reset = ()=>setChecked(initialCheckedStateRef.current);
24992
- form.addEventListener("reset", reset);
24993
- return ()=>form.removeEventListener("reset", reset);
24994
- }
24995
- }, [
24996
- control,
24997
- setChecked
24998
- ]);
24999
- return /* @__PURE__ */ jsx(Primitive.button, {
25000
- type: "button",
25001
- role: "checkbox",
25002
- "aria-checked": isIndeterminate(checked) ? "mixed" : checked,
25003
- "aria-required": required,
25004
- "data-state": getState(checked),
25005
- "data-disabled": disabled ? "" : void 0,
25006
- disabled,
25007
- value,
25008
- ...checkboxProps,
25009
- ref: composedRefs,
25010
- onKeyDown: composeEventHandlers(onKeyDown, (event)=>{
25011
- if (event.key === "Enter") event.preventDefault();
25012
- }),
25013
- onClick: composeEventHandlers(onClick, (event)=>{
25014
- setChecked((prevChecked)=>isIndeterminate(prevChecked) ? true : !prevChecked);
25015
- if (bubbleInput && isFormControl) {
25016
- hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
25017
- if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
25018
- }
25019
- })
25020
- });
25021
- });
25022
- CheckboxTrigger.displayName = TRIGGER_NAME;
25023
- var Checkbox$1 = React.forwardRef((props, forwardedRef)=>{
25024
- const { __scopeCheckbox, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...checkboxProps } = props;
25025
- return /* @__PURE__ */ jsx(CheckboxProvider, {
25026
- __scopeCheckbox,
25027
- checked,
25028
- defaultChecked,
25029
- disabled,
25030
- required,
25031
- onCheckedChange,
25032
- name,
25033
- form,
25034
- value,
25035
- internal_do_not_use_render: ({ isFormControl })=>/* @__PURE__ */ jsxs(Fragment, {
25036
- children: [
25037
- /* @__PURE__ */ jsx(CheckboxTrigger, {
25038
- ...checkboxProps,
25039
- ref: forwardedRef,
25040
- __scopeCheckbox
25041
- }),
25042
- isFormControl && /* @__PURE__ */ jsx(CheckboxBubbleInput, {
25043
- __scopeCheckbox
25044
- })
25045
- ]
25046
- })
25047
- });
25048
- });
25049
- Checkbox$1.displayName = CHECKBOX_NAME;
25050
- var INDICATOR_NAME = "CheckboxIndicator";
25051
- var CheckboxIndicator$1 = React.forwardRef((props, forwardedRef)=>{
25052
- const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
25053
- const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
25054
- return /* @__PURE__ */ jsx(Presence, {
25055
- present: forceMount || isIndeterminate(context.checked) || context.checked === true,
25056
- children: /* @__PURE__ */ jsx(Primitive.span, {
25057
- "data-state": getState(context.checked),
25058
- "data-disabled": context.disabled ? "" : void 0,
25059
- ...indicatorProps,
25060
- ref: forwardedRef,
25061
- style: {
25062
- pointerEvents: "none",
25063
- ...props.style
25064
- }
25065
- })
25066
- });
25067
- });
25068
- CheckboxIndicator$1.displayName = INDICATOR_NAME;
25069
- var BUBBLE_INPUT_NAME = "CheckboxBubbleInput";
25070
- var CheckboxBubbleInput = React.forwardRef(({ __scopeCheckbox, ...props }, forwardedRef)=>{
25071
- const { control, hasConsumerStoppedPropagationRef, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);
25072
- const composedRefs = useComposedRefs$1(forwardedRef, setBubbleInput);
25073
- const prevChecked = usePrevious(checked);
25074
- const controlSize = useSize(control);
25075
- React.useEffect(()=>{
25076
- const input = bubbleInput;
25077
- if (!input) return;
25078
- const inputProto = window.HTMLInputElement.prototype;
25079
- const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
25080
- const setChecked = descriptor.set;
25081
- const bubbles = !hasConsumerStoppedPropagationRef.current;
25082
- if (prevChecked !== checked && setChecked) {
25083
- const event = new Event("click", {
25084
- bubbles
25085
- });
25086
- input.indeterminate = isIndeterminate(checked);
25087
- setChecked.call(input, isIndeterminate(checked) ? false : checked);
25088
- input.dispatchEvent(event);
25089
- }
25090
- }, [
25091
- bubbleInput,
25092
- prevChecked,
25093
- checked,
25094
- hasConsumerStoppedPropagationRef
25095
- ]);
25096
- const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);
25097
- return /* @__PURE__ */ jsx(Primitive.input, {
25098
- type: "checkbox",
25099
- "aria-hidden": true,
25100
- defaultChecked: defaultChecked ?? defaultCheckedRef.current,
25101
- required,
25102
- disabled,
25103
- name,
25104
- value,
25105
- form,
25106
- ...props,
25107
- tabIndex: -1,
25108
- ref: composedRefs,
25109
- style: {
25110
- ...props.style,
25111
- ...controlSize,
25112
- position: "absolute",
25113
- pointerEvents: "none",
25114
- opacity: 0,
25115
- margin: 0,
25116
- // We transform because the input is absolutely positioned but we have
25117
- // rendered it **after** the button. This pulls it back to sit on top
25118
- // of the button.
25119
- transform: "translateX(-100%)"
25120
- }
25121
- });
25122
- });
25123
- CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;
25124
- function isFunction(value) {
25125
- return typeof value === "function";
25126
- }
25127
- function isIndeterminate(checked) {
25128
- return checked === "indeterminate";
25129
- }
25130
- function getState(checked) {
25131
- return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
25132
- }
25133
-
25134
- const CheckboxRoot = styled(Checkbox$1)`
25135
- display: flex;
25136
- align-items: center;
25137
- justify-content: center;
25138
- height: 1rem;
25139
- width: 1rem;
25140
- flex-shrink: 0;
25141
- border-radius: 0.125rem;
25142
- border: 1px solid #6366f1;
25143
- background-color: transparent;
25144
- outline: none;
25145
- transition: all 0.2s ease-in-out;
25146
-
25147
- &:focus-visible {
25148
- outline: none;
25149
- box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
25150
- }
25151
-
25152
- &:disabled {
25153
- cursor: not-allowed;
25154
- opacity: 0.5;
25155
- }
25156
-
25157
- &[data-state="checked"] {
25158
- background-color: #6366f1;
25159
- color: white;
25160
- }
25161
- `;
25162
- const CheckboxIndicator = styled(CheckboxIndicator$1)`
25163
- display: flex;
25164
- align-items: center;
25165
- justify-content: center;
25166
- color: currentColor;
25167
- `;
25168
- const CheckIcon = styled(Check)`
25169
- height: 1rem;
25170
- width: 1rem;
25171
- `;
25172
- const Checkbox = /*#__PURE__*/ React.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ React.createElement(CheckboxRoot, {
25173
- ref: ref,
25174
- ...props
25175
- }, /*#__PURE__*/ React.createElement(CheckboxIndicator, null, /*#__PURE__*/ React.createElement(CheckIcon, null))));
25176
- Checkbox.displayName = Checkbox$1.displayName;
25177
-
25178
25469
  function __insertCSS(code) {
25179
25470
  if (typeof document == 'undefined') return;
25180
25471
  let head = document.head || document.getElementsByTagName('head')[0];
@@ -26797,7 +27088,7 @@ const DrawerOverlay = /*#__PURE__*/ React.forwardRef(({ className, ...props }, r
26797
27088
  bottom: 0,
26798
27089
  left: 0,
26799
27090
  zIndex: 50,
26800
- backgroundColor: "rgba(0, 0, 0, 0.8)"
27091
+ backgroundColor: "rgba(0, 0, 0, 0.3)"
26801
27092
  },
26802
27093
  className: className,
26803
27094
  ...props
@@ -26856,7 +27147,183 @@ const DrawerDescription = /*#__PURE__*/ React.forwardRef(({ className, ...props
26856
27147
  DrawerDescription.displayName = Drawer$1.Description.displayName;
26857
27148
 
26858
27149
  const GlobalStyles = ()=>{
26859
- return null;
27150
+ const systemFontStack = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';
27151
+ return /*#__PURE__*/ React__default.createElement(Global, {
27152
+ styles: css`
27153
+ * {
27154
+ box-sizing: border-box;
27155
+ border-color: #e5e7eb;
27156
+ font-family: ${systemFontStack};
27157
+ }
27158
+
27159
+ html,
27160
+ body {
27161
+ margin: 0;
27162
+ padding: 0;
27163
+ background-color: #ffffff;
27164
+ color: #1f2937;
27165
+ font-family: ${systemFontStack};
27166
+ line-height: 1.5;
27167
+ -webkit-font-smoothing: antialiased;
27168
+ -moz-osx-font-smoothing: grayscale;
27169
+ transition:
27170
+ background-color 0.2s ease-in-out,
27171
+ color 0.2s ease-in-out;
27172
+ }
27173
+
27174
+ /* Dark theme styles */
27175
+ html.dark,
27176
+ html.dark body {
27177
+ background-color: #0f172a;
27178
+ color: #f1f5f9;
27179
+ }
27180
+
27181
+ /* XYFlow overrides */
27182
+ .react-flow__edge {
27183
+ cursor: default !important;
27184
+ }
27185
+
27186
+ .react-flow__edge-path {
27187
+ cursor: default !important;
27188
+ }
27189
+
27190
+ .react-flow__edge-label {
27191
+ font-size: 10px;
27192
+ background: white;
27193
+ padding: 2px 4px;
27194
+ border-radius: 4px;
27195
+ border: 1px solid #e5e7eb;
27196
+ max-width: 150px;
27197
+ overflow: hidden;
27198
+ text-overflow: ellipsis;
27199
+ white-space: nowrap;
27200
+ }
27201
+
27202
+ /* Dark theme XYFlow overrides */
27203
+ html.dark .react-flow__edge-label {
27204
+ background: #1e293b;
27205
+ border: 1px solid #475569;
27206
+ color: #f1f5f9;
27207
+ }
27208
+
27209
+ /* Radix UI Select styles */
27210
+ [data-radix-select-trigger],
27211
+ .shadcn-select {
27212
+ display: flex;
27213
+ height: 2.5rem;
27214
+ width: 100%;
27215
+ align-items: center;
27216
+ justify-content: space-between;
27217
+ border-radius: 0.375rem;
27218
+ border: 1px solid #e5e7eb;
27219
+ background-color: #ffffff;
27220
+ padding: 0.5rem 0.75rem;
27221
+ font-size: 0.875rem;
27222
+ line-height: 1.25rem;
27223
+ outline: none;
27224
+ transition: all 0.2s ease-in-out;
27225
+ }
27226
+
27227
+ /* Dark theme select styles */
27228
+ html.dark [data-radix-select-trigger],
27229
+ html.dark .shadcn-select {
27230
+ border: 1px solid #475569;
27231
+ background-color: #1e293b;
27232
+ color: #f1f5f9;
27233
+ }
27234
+
27235
+ [data-radix-select-trigger]:focus,
27236
+ .shadcn-select:focus {
27237
+ outline: none;
27238
+ box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
27239
+ }
27240
+
27241
+ [data-radix-select-trigger]:disabled,
27242
+ .shadcn-select:disabled {
27243
+ cursor: not-allowed;
27244
+ opacity: 0.5;
27245
+ }
27246
+
27247
+ /* File selector refresh button styles */
27248
+ .file-selector-refresh-btn {
27249
+ padding: 0.5rem;
27250
+ border-radius: 0.375rem;
27251
+ border: 1px solid #e5e7eb;
27252
+ background-color: #ffffff;
27253
+ transition: all 0.2s ease-in-out;
27254
+ }
27255
+
27256
+ .file-selector-refresh-btn:hover {
27257
+ background-color: #f3f4f6;
27258
+ color: #374151;
27259
+ }
27260
+
27261
+ .file-selector-refresh-btn:disabled {
27262
+ opacity: 0.5;
27263
+ cursor: not-allowed;
27264
+ }
27265
+
27266
+ /* Dark theme file selector refresh button */
27267
+ html.dark .file-selector-refresh-btn {
27268
+ border: 1px solid #475569;
27269
+ background-color: #1e293b;
27270
+ color: #f1f5f9;
27271
+ }
27272
+
27273
+ html.dark .file-selector-refresh-btn:hover {
27274
+ background-color: #334155;
27275
+ color: #f1f5f9;
27276
+ }
27277
+
27278
+ /* CSS Variables for backward compatibility */
27279
+ :root {
27280
+ --background: #ffffff;
27281
+ --foreground: #1f2937;
27282
+ --card: #ffffff;
27283
+ --card-foreground: #1f2937;
27284
+ --popover: #ffffff;
27285
+ --popover-foreground: #1f2937;
27286
+ --primary: #6366f1;
27287
+ --primary-foreground: #ffffff;
27288
+ --secondary: #f3f4f6;
27289
+ --secondary-foreground: #1f2937;
27290
+ --muted: #f3f4f6;
27291
+ --muted-foreground: #6b7280;
27292
+ --accent: #f3f4f6;
27293
+ --accent-foreground: #1f2937;
27294
+ --destructive: #ef4444;
27295
+ --destructive-foreground: #ffffff;
27296
+ --border: #e5e7eb;
27297
+ --input: #e5e7eb;
27298
+ --ring: #6366f1;
27299
+ --radius: 0.5rem;
27300
+ }
27301
+
27302
+ /* Dark theme CSS variables */
27303
+ html.dark {
27304
+ --background: #0f172a;
27305
+ --foreground: #f1f5f9;
27306
+ --card: #1e293b;
27307
+ --card-foreground: #f1f5f9;
27308
+ --popover: #1e293b;
27309
+ --popover-foreground: #f1f5f9;
27310
+ --primary: #6366f1;
27311
+ --primary-foreground: #ffffff;
27312
+ --secondary: #334155;
27313
+ --secondary-foreground: #f1f5f9;
27314
+ --muted: #334155;
27315
+ --muted-foreground: #94a3b8;
27316
+ --accent: #334155;
27317
+ --accent-foreground: #f1f5f9;
27318
+ --destructive: #ef4444;
27319
+ --destructive-foreground: #ffffff;
27320
+ --border: #475569;
27321
+ --input: #475569;
27322
+ --ring: #6366f1;
27323
+ --radius: 0.5rem;
27324
+ }
27325
+ `
27326
+ });
26860
27327
  };
26861
27328
 
26862
27329
  /**
@@ -26995,4 +27462,4 @@ const GlobalStyles = ()=>{
26995
27462
  return getSafeColor(props.theme, path, fallback);
26996
27463
  };
26997
27464
 
26998
- export { AgenticFlowVisualizer, AnthropicIcon, Badge, Checkbox, Drawer, Edge, FileSelector, GlobalStyles, GoogleIcon, JsonTreeViewer, Node$1 as Node, OpenAIIcon, SafeThemeProvider, Select, Sheet, ThemeProvider, Timeline, Visualizer, calculateAutoLayout, cn, conditionalStyle, createSafeTheme, darkTheme, defaultTheme, detectContentType, formatCurrency, formatLatency, formatToolCalls, getColor, getSafeColor, getSafeSpacing, getSafeThemeValue, getSpacing, lightTheme, safeStyled, safeThemeColor, safeThemeSpacing, safeThemeValue, toTitleCase, truncateText, useComponentTheme, useSafeTheme, useTheme, useThemeValue };
27465
+ export { AgenticFlowVisualizer, AnthropicIcon, Badge, Drawer, Edge, FileSelector, GlobalStyles, GoogleIcon, JsonTreeViewer, Node$1 as Node, OpenAIIcon, SafeThemeProvider, Select, Sheet, ThemeProvider, Timeline, Visualizer, calculateAutoLayout, cn, conditionalStyle, createSafeTheme, darkTheme, defaultTheme, detectContentType, formatCurrency, formatLatency, formatToolCalls, getColor, getSafeColor, getSafeSpacing, getSafeThemeValue, getSpacing, lightTheme, safeStyled, safeThemeColor, safeThemeSpacing, safeThemeValue, toTitleCase, truncateText, useComponentTheme, useSafeTheme, useTheme, useThemeValue };