const N = 360, _ = 280, u = 200, g = 100, a = 10, H = ["top", "left", "right", "bottom"], o = (t) => t === "left" || t === "right", s = (t) => t === "left" ? "right" : t === "right" ? "left" : t === "top" ? "bottom" : "top", r = (t) => o(t) ? "col-resize" : "row-resize", S = (t) => t === "right" || t === "bottom", l = (t) => {
  const i = {
    position: "absolute",
    zIndex: 6,
    userSelect: "none",
    touchAction: "none",
    background: "transparent",
    cursor: r(t)
  }, e = s(t);
  return e === "left" || e === "right" ? {
    ...i,
    top: 0,
    bottom: 0,
    width: "10px",
    [e]: "0px"
  } : {
    ...i,
    left: 0,
    right: 0,
    height: "10px",
    [e]: "0px"
  };
}, d = (t) => {
  const i = {
    position: "absolute",
    zIndex: 6,
    userSelect: "none",
    touchAction: "none",
    background: "transparent",
    cursor: r(t),
    pointerEvents: "auto"
  }, e = `-${10 / 2}px`;
  return o(t) ? {
    ...i,
    top: 0,
    bottom: 0,
    left: e,
    width: "10px"
  } : {
    ...i,
    left: 0,
    right: 0,
    top: e,
    height: "10px"
  };
}, P = (t, i, e, n) => {
  if (o(t)) {
    const E = e && e.clientWidth > 0 ? e.clientWidth : Number.POSITIVE_INFINITY, c = Math.max(
      200,
      Math.min(n.maxWidth ?? Number.POSITIVE_INFINITY, E)
    );
    return Math.max(200, Math.min(i, c));
  }
  const h = e && e.clientHeight > 0 ? e.clientHeight : Number.POSITIVE_INFINITY, I = Math.max(
    100,
    Math.min(n.maxHeight ?? Number.POSITIVE_INFINITY, h)
  );
  return Math.max(100, Math.min(i, I));
}, m = (t, i) => o(t) ? i.clientX : i.clientY, x = (t) => t.side === "left" || t.side === "right" ? {
  width: `${t.width}px`,
  minWidth: `${t.width}px`,
  maxWidth: `${t.width}px`,
  height: "100%"
} : {
  width: "100%",
  height: `${t.height}px`,
  minHeight: `${t.height}px`,
  maxHeight: `${t.height}px`
};
export {
  _ as PANEL_DEFAULT_HEIGHT,
  N as PANEL_DEFAULT_WIDTH,
  g as PANEL_MIN_HEIGHT,
  u as PANEL_MIN_WIDTH,
  a as PANEL_RESIZE_HANDLE_SIZE,
  H as PANEL_SIDES,
  P as clampPanelSize,
  l as getInlineResizeHandleStyle,
  x as getPanelSlotStyle,
  m as getPointerPositionForPanelSide,
  d as getRailResizeHandleStyle,
  r as getResizeCursor,
  s as getResizeHandleSide,
  o as isHorizontalPanelSide,
  S as shouldRenderResizeRailBeforePanel
};
