import { j as wo, r as xo, H as Jt, bq as Co, bE as Ro, bF as Or, by as Je, bG as So, bl as Qt, bH as Eo, bI as Do, bJ as Oo, V as Mo, bK as en, A as Mr, bL as qo, y as Ao, bM as To, bt as _o, bu as Po, D as Io, aN as tn, bs as No, bN as qr, bO as Lo, bA as Fo, bP as jo, bQ as ko, bR as Bo, bS as Ar, bT as zo, bU as Ho, b as $o, bV as Ko, bW as Uo, bX as Xo, bY as Vo, bZ as Tr, b_ as Yo, b$ as Wo, c0 as Zo, c1 as Go, c2 as Jo } from "./publicApi-fkG2o0UD.js";
import O, { useLayoutEffect as Qo, useEffect as T, useRef as A, useMemo as q, useCallback as F, useState as k, memo as ei, useReducer as ti, createContext as ke, useContext as ve, forwardRef as ni, cloneElement as ri } from "react";
import { unstable_batchedUpdates as Ye, createPortal as oi } from "react-dom";
import { g as nn, h as rn, i as on } from "./ErrorBoundary-D8xyNCpV.js";
var ii = /* @__PURE__ */ xo();
const ts = /* @__PURE__ */ wo(ii);
function ai() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return q(
    () => (r) => {
      t.forEach((o) => o(r));
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    t
  );
}
const Be = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
function he(e) {
  const t = Object.prototype.toString.call(e);
  return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
  t === "[object global]";
}
function Qe(e) {
  return "nodeType" in e;
}
function j(e) {
  var t, n;
  return e ? he(e) ? e : Qe(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
}
function et(e) {
  const {
    Document: t
  } = j(e);
  return e instanceof t;
}
function De(e) {
  return he(e) ? !1 : e instanceof j(e).HTMLElement;
}
function an(e) {
  return e instanceof j(e).SVGElement;
}
function ge(e) {
  return e ? he(e) ? e.document : Qe(e) ? et(e) ? e : De(e) || an(e) ? e.ownerDocument : document : document : document;
}
const Z = Be ? Qo : T;
function ze(e) {
  const t = A(e);
  return Z(() => {
    t.current = e;
  }), F(function() {
    for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
      r[o] = arguments[o];
    return t.current == null ? void 0 : t.current(...r);
  }, []);
}
function _r() {
  const e = A(null), t = F((r, o) => {
    e.current = setInterval(r, o);
  }, []), n = F(() => {
    e.current !== null && (clearInterval(e.current), e.current = null);
  }, []);
  return [t, n];
}
function Ce(e, t) {
  t === void 0 && (t = [e]);
  const n = A(e);
  return Z(() => {
    n.current !== e && (n.current = e);
  }, t), n;
}
function Oe(e, t) {
  const n = A();
  return q(
    () => {
      const r = e(n.current);
      return n.current = r, r;
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [...t]
  );
}
function Ne(e) {
  const t = ze(e), n = A(null), r = F(
    (o) => {
      o !== n.current && t?.(o, n.current), n.current = o;
    },
    //eslint-disable-next-line
    []
  );
  return [n, r];
}
function Le(e) {
  const t = A();
  return T(() => {
    t.current = e;
  }, [e]), t.current;
}
let ut = {};
function He(e, t) {
  return q(() => {
    if (t)
      return t;
    const n = ut[e] == null ? 0 : ut[e] + 1;
    return ut[e] = n, e + "-" + n;
  }, [e, t]);
}
function Pr(e) {
  return function(t) {
    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
      r[o - 1] = arguments[o];
    return r.reduce((i, s) => {
      const a = Object.entries(s);
      for (const [c, l] of a) {
        const d = i[c];
        d != null && (i[c] = d + e * l);
      }
      return i;
    }, {
      ...t
    });
  };
}
const fe = /* @__PURE__ */ Pr(1), Fe = /* @__PURE__ */ Pr(-1);
function Ir(e) {
  return "clientX" in e && "clientY" in e;
}
function tt(e) {
  if (!e)
    return !1;
  const {
    KeyboardEvent: t
  } = j(e.target);
  return t && e instanceof t;
}
function Nr(e) {
  if (!e)
    return !1;
  const {
    TouchEvent: t
  } = j(e.target);
  return t && e instanceof t;
}
function Re(e) {
  if (Nr(e)) {
    if (e.touches && e.touches.length) {
      const {
        clientX: t,
        clientY: n
      } = e.touches[0];
      return {
        x: t,
        y: n
      };
    } else if (e.changedTouches && e.changedTouches.length) {
      const {
        clientX: t,
        clientY: n
      } = e.changedTouches[0];
      return {
        x: t,
        y: n
      };
    }
  }
  return Ir(e) ? {
    x: e.clientX,
    y: e.clientY
  } : null;
}
const Se = /* @__PURE__ */ Object.freeze({
  Translate: {
    toString(e) {
      if (!e)
        return;
      const {
        x: t,
        y: n
      } = e;
      return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
    }
  },
  Scale: {
    toString(e) {
      if (!e)
        return;
      const {
        scaleX: t,
        scaleY: n
      } = e;
      return "scaleX(" + t + ") scaleY(" + n + ")";
    }
  },
  Transform: {
    toString(e) {
      if (e)
        return [Se.Translate.toString(e), Se.Scale.toString(e)].join(" ");
    }
  },
  Transition: {
    toString(e) {
      let {
        property: t,
        duration: n,
        easing: r
      } = e;
      return t + " " + n + "ms " + r;
    }
  }
}), Pn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
function Lr(e) {
  return e.matches(Pn) ? e : e.querySelector(Pn);
}
const si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  CSS: Se,
  add: fe,
  canUseDOM: Be,
  findFirstFocusableNode: Lr,
  getEventCoordinates: Re,
  getOwnerDocument: ge,
  getWindow: j,
  hasViewportRelativeCoordinates: Ir,
  isDocument: et,
  isHTMLElement: De,
  isKeyboardEvent: tt,
  isNode: Qe,
  isSVGElement: an,
  isTouchEvent: Nr,
  isWindow: he,
  subtract: Fe,
  useCombinedRefs: ai,
  useEvent: ze,
  useInterval: _r,
  useIsomorphicLayoutEffect: Z,
  useLatestValue: Ce,
  useLazyMemo: Oe,
  useNodeRef: Ne,
  usePrevious: Le,
  useUniqueId: He
}, Symbol.toStringTag, { value: "Module" })), li = {
  display: "none"
};
function ci(e) {
  let {
    id: t,
    value: n
  } = e;
  return O.createElement("div", {
    id: t,
    style: li
  }, n);
}
function ui(e) {
  let {
    id: t,
    announcement: n,
    ariaLiveType: r = "assertive"
  } = e;
  const o = {
    position: "fixed",
    top: 0,
    left: 0,
    width: 1,
    height: 1,
    margin: -1,
    border: 0,
    padding: 0,
    overflow: "hidden",
    clip: "rect(0 0 0 0)",
    clipPath: "inset(100%)",
    whiteSpace: "nowrap"
  };
  return O.createElement("div", {
    id: t,
    style: o,
    role: "status",
    "aria-live": r,
    "aria-atomic": !0
  }, n);
}
function di() {
  const [e, t] = k("");
  return {
    announce: F((r) => {
      r != null && t(r);
    }, []),
    announcement: e
  };
}
const Fr = /* @__PURE__ */ ke(null);
function jr(e) {
  const t = ve(Fr);
  T(() => {
    if (!t)
      throw new Error("useDndMonitor must be used within a children of <DndContext>");
    return t(e);
  }, [e, t]);
}
function fi() {
  const [e] = k(() => /* @__PURE__ */ new Set()), t = F((r) => (e.add(r), () => e.delete(r)), [e]);
  return [F((r) => {
    let {
      type: o,
      event: i
    } = r;
    e.forEach((s) => {
      var a;
      return (a = s[o]) == null ? void 0 : a.call(s, i);
    });
  }, [e]), t];
}
const kr = {
  draggable: `
    To pick up a draggable item, press the space bar.
    While dragging, use the arrow keys to move the item.
    Press space again to drop the item in its new position, or press escape to cancel.
  `
}, Br = {
  onDragStart(e) {
    let {
      active: t
    } = e;
    return "Picked up draggable item " + t.id + ".";
  },
  onDragOver(e) {
    let {
      active: t,
      over: n
    } = e;
    return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
  },
  onDragEnd(e) {
    let {
      active: t,
      over: n
    } = e;
    return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
  },
  onDragCancel(e) {
    let {
      active: t
    } = e;
    return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
  }
};
function vi(e) {
  let {
    announcements: t = Br,
    container: n,
    hiddenTextDescribedById: r,
    screenReaderInstructions: o = kr
  } = e;
  const {
    announce: i,
    announcement: s
  } = di(), a = He("DndLiveRegion"), [c, l] = k(!1);
  if (T(() => {
    l(!0);
  }, []), jr(q(() => ({
    onDragStart(v) {
      let {
        active: p
      } = v;
      i(t.onDragStart({
        active: p
      }));
    },
    onDragMove(v) {
      let {
        active: p,
        over: b
      } = v;
      t.onDragMove && i(t.onDragMove({
        active: p,
        over: b
      }));
    },
    onDragOver(v) {
      let {
        active: p,
        over: b
      } = v;
      i(t.onDragOver({
        active: p,
        over: b
      }));
    },
    onDragEnd(v) {
      let {
        active: p,
        over: b
      } = v;
      i(t.onDragEnd({
        active: p,
        over: b
      }));
    },
    onDragCancel(v) {
      let {
        active: p,
        over: b
      } = v;
      i(t.onDragCancel({
        active: p,
        over: b
      }));
    }
  }), [i, t])), !c)
    return null;
  const d = O.createElement(O.Fragment, null, O.createElement(ci, {
    id: r,
    value: o.draggable
  }), O.createElement(ui, {
    id: a,
    announcement: s
  }));
  return n ? oi(d, n) : d;
}
var P;
(function(e) {
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
})(P || (P = {}));
function Ze() {
}
function hi(e, t) {
  return q(
    () => ({
      sensor: e,
      options: t ?? {}
    }),
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [e, t]
  );
}
function gi() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  return q(
    () => [...t].filter((r) => r != null),
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [...t]
  );
}
const U = /* @__PURE__ */ Object.freeze({
  x: 0,
  y: 0
});
function sn(e, t) {
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
}
function pi(e, t) {
  const n = Re(e);
  if (!n)
    return "0 0";
  const r = {
    x: (n.x - t.left) / t.width * 100,
    y: (n.y - t.top) / t.height * 100
  };
  return r.x + "% " + r.y + "%";
}
function ln(e, t) {
  let {
    data: {
      value: n
    }
  } = e, {
    data: {
      value: r
    }
  } = t;
  return n - r;
}
function bi(e, t) {
  let {
    data: {
      value: n
    }
  } = e, {
    data: {
      value: r
    }
  } = t;
  return r - n;
}
function Wt(e) {
  let {
    left: t,
    top: n,
    height: r,
    width: o
  } = e;
  return [{
    x: t,
    y: n
  }, {
    x: t + o,
    y: n
  }, {
    x: t,
    y: n + r
  }, {
    x: t + o,
    y: n + r
  }];
}
function zr(e, t) {
  if (!e || e.length === 0)
    return null;
  const [n] = e;
  return t ? n[t] : n;
}
function In(e, t, n) {
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
    x: t + e.width * 0.5,
    y: n + e.height * 0.5
  };
}
const yi = (e) => {
  let {
    collisionRect: t,
    droppableRects: n,
    droppableContainers: r
  } = e;
  const o = In(t, t.left, t.top), i = [];
  for (const s of r) {
    const {
      id: a
    } = s, c = n.get(a);
    if (c) {
      const l = sn(In(c), o);
      i.push({
        id: a,
        data: {
          droppableContainer: s,
          value: l
        }
      });
    }
  }
  return i.sort(ln);
}, mi = (e) => {
  let {
    collisionRect: t,
    droppableRects: n,
    droppableContainers: r
  } = e;
  const o = Wt(t), i = [];
  for (const s of r) {
    const {
      id: a
    } = s, c = n.get(a);
    if (c) {
      const l = Wt(c), d = o.reduce((p, b, x) => p + sn(l[x], b), 0), v = Number((d / 4).toFixed(4));
      i.push({
        id: a,
        data: {
          droppableContainer: s,
          value: v
        }
      });
    }
  }
  return i.sort(ln);
};
function wi(e, t) {
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
  if (r < o && n < i) {
    const c = t.width * t.height, l = e.width * e.height, d = s * a, v = d / (c + l - d);
    return Number(v.toFixed(4));
  }
  return 0;
}
const Hr = (e) => {
  let {
    collisionRect: t,
    droppableRects: n,
    droppableContainers: r
  } = e;
  const o = [];
  for (const i of r) {
    const {
      id: s
    } = i, a = n.get(s);
    if (a) {
      const c = wi(a, t);
      c > 0 && o.push({
        id: s,
        data: {
          droppableContainer: i,
          value: c
        }
      });
    }
  }
  return o.sort(bi);
};
function xi(e, t) {
  const {
    top: n,
    left: r,
    bottom: o,
    right: i
  } = t;
  return n <= e.y && e.y <= o && r <= e.x && e.x <= i;
}
const Ci = (e) => {
  let {
    droppableContainers: t,
    droppableRects: n,
    pointerCoordinates: r
  } = e;
  if (!r)
    return [];
  const o = [];
  for (const i of t) {
    const {
      id: s
    } = i, a = n.get(s);
    if (a && xi(r, a)) {
      const l = Wt(a).reduce((v, p) => v + sn(r, p), 0), d = Number((l / 4).toFixed(4));
      o.push({
        id: s,
        data: {
          droppableContainer: i,
          value: d
        }
      });
    }
  }
  return o.sort(ln);
};
function Ri(e, t, n) {
  return {
    ...e,
    scaleX: t && n ? t.width / n.width : 1,
    scaleY: t && n ? t.height / n.height : 1
  };
}
function $r(e, t) {
  return e && t ? {
    x: e.left - t.left,
    y: e.top - t.top
  } : U;
}
function Si(e) {
  return function(n) {
    for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
      o[i - 1] = arguments[i];
    return o.reduce((s, a) => ({
      ...s,
      top: s.top + e * a.y,
      bottom: s.bottom + e * a.y,
      left: s.left + e * a.x,
      right: s.right + e * a.x
    }), {
      ...n
    });
  };
}
const Ei = /* @__PURE__ */ Si(1);
function Kr(e) {
  if (e.startsWith("matrix3d(")) {
    const t = e.slice(9, -1).split(/, /);
    return {
      x: +t[12],
      y: +t[13],
      scaleX: +t[0],
      scaleY: +t[5]
    };
  } else if (e.startsWith("matrix(")) {
    const t = e.slice(7, -1).split(/, /);
    return {
      x: +t[4],
      y: +t[5],
      scaleX: +t[0],
      scaleY: +t[3]
    };
  }
  return null;
}
function Di(e, t, n) {
  const r = Kr(t);
  if (!r)
    return e;
  const {
    scaleX: o,
    scaleY: i,
    x: s,
    y: a
  } = r, c = e.left - s - (1 - o) * parseFloat(n), l = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, v = i ? e.height / i : e.height;
  return {
    width: d,
    height: v,
    top: l,
    right: c + d,
    bottom: l + v,
    left: c
  };
}
const Oi = {
  ignoreTransform: !1
};
function Me(e, t) {
  t === void 0 && (t = Oi);
  let n = e.getBoundingClientRect();
  if (t.ignoreTransform) {
    const {
      transform: l,
      transformOrigin: d
    } = j(e).getComputedStyle(e);
    l && (n = Di(n, l, d));
  }
  const {
    top: r,
    left: o,
    width: i,
    height: s,
    bottom: a,
    right: c
  } = n;
  return {
    top: r,
    left: o,
    width: i,
    height: s,
    bottom: a,
    right: c
  };
}
function Nn(e) {
  return Me(e, {
    ignoreTransform: !0
  });
}
function Mi(e) {
  const t = e.innerWidth, n = e.innerHeight;
  return {
    top: 0,
    left: 0,
    right: t,
    bottom: n,
    width: t,
    height: n
  };
}
function qi(e, t) {
  return t === void 0 && (t = j(e).getComputedStyle(e)), t.position === "fixed";
}
function Ai(e, t) {
  t === void 0 && (t = j(e).getComputedStyle(e));
  const n = /(auto|scroll|overlay)/;
  return ["overflow", "overflowX", "overflowY"].some((o) => {
    const i = t[o];
    return typeof i == "string" ? n.test(i) : !1;
  });
}
function nt(e, t) {
  const n = [];
  function r(o) {
    if (t != null && n.length >= t || !o)
      return n;
    if (et(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
      return n.push(o.scrollingElement), n;
    if (!De(o) || an(o) || n.includes(o))
      return n;
    const i = j(e).getComputedStyle(o);
    return o !== e && Ai(o, i) && n.push(o), qi(o, i) ? n : r(o.parentNode);
  }
  return e ? r(e) : n;
}
function Ur(e) {
  const [t] = nt(e, 1);
  return t ?? null;
}
function dt(e) {
  return !Be || !e ? null : he(e) ? e : Qe(e) ? et(e) || e === ge(e).scrollingElement ? window : De(e) ? e : null : null;
}
function Xr(e) {
  return he(e) ? e.scrollX : e.scrollLeft;
}
function Vr(e) {
  return he(e) ? e.scrollY : e.scrollTop;
}
function Zt(e) {
  return {
    x: Xr(e),
    y: Vr(e)
  };
}
var I;
(function(e) {
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
})(I || (I = {}));
function Yr(e) {
  return !Be || !e ? !1 : e === document.scrollingElement;
}
function Wr(e) {
  const t = {
    x: 0,
    y: 0
  }, n = Yr(e) ? {
    height: window.innerHeight,
    width: window.innerWidth
  } : {
    height: e.clientHeight,
    width: e.clientWidth
  }, r = {
    x: e.scrollWidth - n.width,
    y: e.scrollHeight - n.height
  }, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
  return {
    isTop: o,
    isLeft: i,
    isBottom: s,
    isRight: a,
    maxScroll: r,
    minScroll: t
  };
}
const Ti = {
  x: 0.2,
  y: 0.2
};
function _i(e, t, n, r, o) {
  let {
    top: i,
    left: s,
    right: a,
    bottom: c
  } = n;
  r === void 0 && (r = 10), o === void 0 && (o = Ti);
  const {
    isTop: l,
    isBottom: d,
    isLeft: v,
    isRight: p
  } = Wr(e), b = {
    x: 0,
    y: 0
  }, x = {
    x: 0,
    y: 0
  }, u = {
    height: t.height * o.y,
    width: t.width * o.x
  };
  return !l && i <= t.top + u.height ? (b.y = I.Backward, x.y = r * Math.abs((t.top + u.height - i) / u.height)) : !d && c >= t.bottom - u.height && (b.y = I.Forward, x.y = r * Math.abs((t.bottom - u.height - c) / u.height)), !p && a >= t.right - u.width ? (b.x = I.Forward, x.x = r * Math.abs((t.right - u.width - a) / u.width)) : !v && s <= t.left + u.width && (b.x = I.Backward, x.x = r * Math.abs((t.left + u.width - s) / u.width)), {
    direction: b,
    speed: x
  };
}
function Pi(e) {
  if (e === document.scrollingElement) {
    const {
      innerWidth: i,
      innerHeight: s
    } = window;
    return {
      top: 0,
      left: 0,
      right: i,
      bottom: s,
      width: i,
      height: s
    };
  }
  const {
    top: t,
    left: n,
    right: r,
    bottom: o
  } = e.getBoundingClientRect();
  return {
    top: t,
    left: n,
    right: r,
    bottom: o,
    width: e.clientWidth,
    height: e.clientHeight
  };
}
function Zr(e) {
  return e.reduce((t, n) => fe(t, Zt(n)), U);
}
function Ii(e) {
  return e.reduce((t, n) => t + Xr(n), 0);
}
function Ni(e) {
  return e.reduce((t, n) => t + Vr(n), 0);
}
function Gr(e, t) {
  if (t === void 0 && (t = Me), !e)
    return;
  const {
    top: n,
    left: r,
    bottom: o,
    right: i
  } = t(e);
  Ur(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
    block: "center",
    inline: "center"
  });
}
const Li = [["x", ["left", "right"], Ii], ["y", ["top", "bottom"], Ni]];
class cn {
  constructor(t, n) {
    this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
    const r = nt(n), o = Zr(r);
    this.rect = {
      ...t
    }, this.width = t.width, this.height = t.height;
    for (const [i, s, a] of Li)
      for (const c of s)
        Object.defineProperty(this, c, {
          get: () => {
            const l = a(r), d = o[i] - l;
            return this.rect[c] + d;
          },
          enumerable: !0
        });
    Object.defineProperty(this, "rect", {
      enumerable: !1
    });
  }
}
class Pe {
  constructor(t) {
    this.target = void 0, this.listeners = [], this.removeAll = () => {
      this.listeners.forEach((n) => {
        var r;
        return (r = this.target) == null ? void 0 : r.removeEventListener(...n);
      });
    }, this.target = t;
  }
  add(t, n, r) {
    var o;
    (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
  }
}
function Fi(e) {
  const {
    EventTarget: t
  } = j(e);
  return e instanceof t ? e : ge(e);
}
function ft(e, t) {
  const n = Math.abs(e.x), r = Math.abs(e.y);
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
}
var K;
(function(e) {
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
})(K || (K = {}));
function Ln(e) {
  e.preventDefault();
}
function ji(e) {
  e.stopPropagation();
}
var E;
(function(e) {
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
})(E || (E = {}));
const Jr = {
  start: [E.Space, E.Enter],
  cancel: [E.Esc],
  end: [E.Space, E.Enter, E.Tab]
}, Qr = (e, t) => {
  let {
    currentCoordinates: n
  } = t;
  switch (e.code) {
    case E.Right:
      return {
        ...n,
        x: n.x + 25
      };
    case E.Left:
      return {
        ...n,
        x: n.x - 25
      };
    case E.Down:
      return {
        ...n,
        y: n.y + 25
      };
    case E.Up:
      return {
        ...n,
        y: n.y - 25
      };
  }
};
class un {
  constructor(t) {
    this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
    const {
      event: {
        target: n
      }
    } = t;
    this.props = t, this.listeners = new Pe(ge(n)), this.windowListeners = new Pe(j(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
  }
  attach() {
    this.handleStart(), this.windowListeners.add(K.Resize, this.handleCancel), this.windowListeners.add(K.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(K.Keydown, this.handleKeyDown));
  }
  handleStart() {
    const {
      activeNode: t,
      onStart: n
    } = this.props, r = t.node.current;
    r && Gr(r), n(U);
  }
  handleKeyDown(t) {
    if (tt(t)) {
      const {
        active: n,
        context: r,
        options: o
      } = this.props, {
        keyboardCodes: i = Jr,
        coordinateGetter: s = Qr,
        scrollBehavior: a = "smooth"
      } = o, {
        code: c
      } = t;
      if (i.end.includes(c)) {
        this.handleEnd(t);
        return;
      }
      if (i.cancel.includes(c)) {
        this.handleCancel(t);
        return;
      }
      const {
        collisionRect: l
      } = r.current, d = l ? {
        x: l.left,
        y: l.top
      } : U;
      this.referenceCoordinates || (this.referenceCoordinates = d);
      const v = s(t, {
        active: n,
        context: r.current,
        currentCoordinates: d
      });
      if (v) {
        const p = Fe(v, d), b = {
          x: 0,
          y: 0
        }, {
          scrollableAncestors: x
        } = r.current;
        for (const u of x) {
          const f = t.code, {
            isTop: h,
            isRight: g,
            isLeft: y,
            isBottom: C,
            maxScroll: R,
            minScroll: S
          } = Wr(u), m = Pi(u), w = {
            x: Math.min(f === E.Right ? m.right - m.width / 2 : m.right, Math.max(f === E.Right ? m.left : m.left + m.width / 2, v.x)),
            y: Math.min(f === E.Down ? m.bottom - m.height / 2 : m.bottom, Math.max(f === E.Down ? m.top : m.top + m.height / 2, v.y))
          }, D = f === E.Right && !g || f === E.Left && !y, M = f === E.Down && !C || f === E.Up && !h;
          if (D && w.x !== v.x) {
            const _ = u.scrollLeft + p.x, G = f === E.Right && _ <= R.x || f === E.Left && _ >= S.x;
            if (G && !p.y) {
              u.scrollTo({
                left: _,
                behavior: a
              });
              return;
            }
            G ? b.x = u.scrollLeft - _ : b.x = f === E.Right ? u.scrollLeft - R.x : u.scrollLeft - S.x, b.x && u.scrollBy({
              left: -b.x,
              behavior: a
            });
            break;
          } else if (M && w.y !== v.y) {
            const _ = u.scrollTop + p.y, G = f === E.Down && _ <= R.y || f === E.Up && _ >= S.y;
            if (G && !p.x) {
              u.scrollTo({
                top: _,
                behavior: a
              });
              return;
            }
            G ? b.y = u.scrollTop - _ : b.y = f === E.Down ? u.scrollTop - R.y : u.scrollTop - S.y, b.y && u.scrollBy({
              top: -b.y,
              behavior: a
            });
            break;
          }
        }
        this.handleMove(t, fe(Fe(v, this.referenceCoordinates), b));
      }
    }
  }
  handleMove(t, n) {
    const {
      onMove: r
    } = this.props;
    t.preventDefault(), r(n);
  }
  handleEnd(t) {
    const {
      onEnd: n
    } = this.props;
    t.preventDefault(), this.detach(), n();
  }
  handleCancel(t) {
    const {
      onCancel: n
    } = this.props;
    t.preventDefault(), this.detach(), n();
  }
  detach() {
    this.listeners.removeAll(), this.windowListeners.removeAll();
  }
}
un.activators = [{
  eventName: "onKeyDown",
  handler: (e, t, n) => {
    let {
      keyboardCodes: r = Jr,
      onActivation: o
    } = t, {
      active: i
    } = n;
    const {
      code: s
    } = e.nativeEvent;
    if (r.start.includes(s)) {
      const a = i.activatorNode.current;
      return a && e.target !== a ? !1 : (e.preventDefault(), o?.({
        event: e.nativeEvent
      }), !0);
    }
    return !1;
  }
}];
function Fn(e) {
  return !!(e && "distance" in e);
}
function jn(e) {
  return !!(e && "delay" in e);
}
class dn {
  constructor(t, n, r) {
    var o;
    r === void 0 && (r = Fi(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
    const {
      event: i
    } = t, {
      target: s
    } = i;
    this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new Pe(this.document), this.listeners = new Pe(r), this.windowListeners = new Pe(j(s)), this.initialCoordinates = (o = Re(i)) != null ? o : U, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
  }
  attach() {
    const {
      events: t,
      props: {
        options: {
          activationConstraint: n,
          bypassActivationConstraint: r
        }
      }
    } = this;
    if (this.listeners.add(t.move.name, this.handleMove, {
      passive: !1
    }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(K.Resize, this.handleCancel), this.windowListeners.add(K.DragStart, Ln), this.windowListeners.add(K.VisibilityChange, this.handleCancel), this.windowListeners.add(K.ContextMenu, Ln), this.documentListeners.add(K.Keydown, this.handleKeydown), n) {
      if (r != null && r({
        event: this.props.event,
        activeNode: this.props.activeNode,
        options: this.props.options
      }))
        return this.handleStart();
      if (jn(n)) {
        this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
        return;
      }
      if (Fn(n)) {
        this.handlePending(n);
        return;
      }
    }
    this.handleStart();
  }
  detach() {
    this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
  }
  handlePending(t, n) {
    const {
      active: r,
      onPending: o
    } = this.props;
    o(r, t, this.initialCoordinates, n);
  }
  handleStart() {
    const {
      initialCoordinates: t
    } = this, {
      onStart: n
    } = this.props;
    t && (this.activated = !0, this.documentListeners.add(K.Click, ji, {
      capture: !0
    }), this.removeTextSelection(), this.documentListeners.add(K.SelectionChange, this.removeTextSelection), n(t));
  }
  handleMove(t) {
    var n;
    const {
      activated: r,
      initialCoordinates: o,
      props: i
    } = this, {
      onMove: s,
      options: {
        activationConstraint: a
      }
    } = i;
    if (!o)
      return;
    const c = (n = Re(t)) != null ? n : U, l = Fe(o, c);
    if (!r && a) {
      if (Fn(a)) {
        if (a.tolerance != null && ft(l, a.tolerance))
          return this.handleCancel();
        if (ft(l, a.distance))
          return this.handleStart();
      }
      if (jn(a) && ft(l, a.tolerance))
        return this.handleCancel();
      this.handlePending(a, l);
      return;
    }
    t.cancelable && t.preventDefault(), s(c);
  }
  handleEnd() {
    const {
      onAbort: t,
      onEnd: n
    } = this.props;
    this.detach(), this.activated || t(this.props.active), n();
  }
  handleCancel() {
    const {
      onAbort: t,
      onCancel: n
    } = this.props;
    this.detach(), this.activated || t(this.props.active), n();
  }
  handleKeydown(t) {
    t.code === E.Esc && this.handleCancel();
  }
  removeTextSelection() {
    var t;
    (t = this.document.getSelection()) == null || t.removeAllRanges();
  }
}
const ki = {
  cancel: {
    name: "pointercancel"
  },
  move: {
    name: "pointermove"
  },
  end: {
    name: "pointerup"
  }
};
class fn extends dn {
  constructor(t) {
    const {
      event: n
    } = t, r = ge(n.target);
    super(t, ki, r);
  }
}
fn.activators = [{
  eventName: "onPointerDown",
  handler: (e, t) => {
    let {
      nativeEvent: n
    } = e, {
      onActivation: r
    } = t;
    return !n.isPrimary || n.button !== 0 ? !1 : (r?.({
      event: n
    }), !0);
  }
}];
const Bi = {
  move: {
    name: "mousemove"
  },
  end: {
    name: "mouseup"
  }
};
var Gt;
(function(e) {
  e[e.RightClick = 2] = "RightClick";
})(Gt || (Gt = {}));
class eo extends dn {
  constructor(t) {
    super(t, Bi, ge(t.event.target));
  }
}
eo.activators = [{
  eventName: "onMouseDown",
  handler: (e, t) => {
    let {
      nativeEvent: n
    } = e, {
      onActivation: r
    } = t;
    return n.button === Gt.RightClick ? !1 : (r?.({
      event: n
    }), !0);
  }
}];
const vt = {
  cancel: {
    name: "touchcancel"
  },
  move: {
    name: "touchmove"
  },
  end: {
    name: "touchend"
  }
};
class to extends dn {
  constructor(t) {
    super(t, vt);
  }
  static setup() {
    return window.addEventListener(vt.move.name, t, {
      capture: !1,
      passive: !1
    }), function() {
      window.removeEventListener(vt.move.name, t);
    };
    function t() {
    }
  }
}
to.activators = [{
  eventName: "onTouchStart",
  handler: (e, t) => {
    let {
      nativeEvent: n
    } = e, {
      onActivation: r
    } = t;
    const {
      touches: o
    } = n;
    return o.length > 1 ? !1 : (r?.({
      event: n
    }), !0);
  }
}];
var xe;
(function(e) {
  e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
})(xe || (xe = {}));
var je;
(function(e) {
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
})(je || (je = {}));
function zi(e) {
  let {
    acceleration: t,
    activator: n = xe.Pointer,
    canScroll: r,
    draggingRect: o,
    enabled: i,
    interval: s = 5,
    order: a = je.TreeOrder,
    pointerCoordinates: c,
    scrollableAncestors: l,
    scrollableAncestorRects: d,
    delta: v,
    threshold: p
  } = e;
  const b = $i({
    delta: v,
    disabled: !i
  }), [x, u] = _r(), f = A({
    x: 0,
    y: 0
  }), h = A({
    x: 0,
    y: 0
  }), g = q(() => {
    switch (n) {
      case xe.Pointer:
        return c ? {
          top: c.y,
          bottom: c.y,
          left: c.x,
          right: c.x
        } : null;
      case xe.DraggableRect:
        return o;
    }
  }, [n, o, c]), y = A(null), C = F(() => {
    const S = y.current;
    if (!S)
      return;
    const m = f.current.x * h.current.x, w = f.current.y * h.current.y;
    S.scrollBy(m, w);
  }, []), R = q(() => a === je.TreeOrder ? [...l].reverse() : l, [a, l]);
  T(
    () => {
      if (!i || !l.length || !g) {
        u();
        return;
      }
      for (const S of R) {
        if (r?.(S) === !1)
          continue;
        const m = l.indexOf(S), w = d[m];
        if (!w)
          continue;
        const {
          direction: D,
          speed: M
        } = _i(S, w, g, t, p);
        for (const _ of ["x", "y"])
          b[_][D[_]] || (M[_] = 0, D[_] = 0);
        if (M.x > 0 || M.y > 0) {
          u(), y.current = S, x(C, s), f.current = M, h.current = D;
          return;
        }
      }
      f.current = {
        x: 0,
        y: 0
      }, h.current = {
        x: 0,
        y: 0
      }, u();
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [
      t,
      C,
      r,
      u,
      i,
      s,
      // eslint-disable-next-line react-hooks/exhaustive-deps
      JSON.stringify(g),
      // eslint-disable-next-line react-hooks/exhaustive-deps
      JSON.stringify(b),
      x,
      l,
      R,
      d,
      // eslint-disable-next-line react-hooks/exhaustive-deps
      JSON.stringify(p)
    ]
  );
}
const Hi = {
  x: {
    [I.Backward]: !1,
    [I.Forward]: !1
  },
  y: {
    [I.Backward]: !1,
    [I.Forward]: !1
  }
};
function $i(e) {
  let {
    delta: t,
    disabled: n
  } = e;
  const r = Le(t);
  return Oe((o) => {
    if (n || !r || !o)
      return Hi;
    const i = {
      x: Math.sign(t.x - r.x),
      y: Math.sign(t.y - r.y)
    };
    return {
      x: {
        [I.Backward]: o.x[I.Backward] || i.x === -1,
        [I.Forward]: o.x[I.Forward] || i.x === 1
      },
      y: {
        [I.Backward]: o.y[I.Backward] || i.y === -1,
        [I.Forward]: o.y[I.Forward] || i.y === 1
      }
    };
  }, [n, t, r]);
}
function Ki(e, t) {
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
  return Oe((o) => {
    var i;
    return t == null ? null : (i = r ?? o) != null ? i : null;
  }, [r, t]);
}
function Ui(e, t) {
  return q(() => e.reduce((n, r) => {
    const {
      sensor: o
    } = r, i = o.activators.map((s) => ({
      eventName: s.eventName,
      handler: t(s.handler, r)
    }));
    return [...n, ...i];
  }, []), [e, t]);
}
var Ee;
(function(e) {
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
})(Ee || (Ee = {}));
var Ge;
(function(e) {
  e.Optimized = "optimized";
})(Ge || (Ge = {}));
const kn = /* @__PURE__ */ new Map();
function Xi(e, t) {
  let {
    dragging: n,
    dependencies: r,
    config: o
  } = t;
  const [i, s] = k(null), {
    frequency: a,
    measure: c,
    strategy: l
  } = o, d = A(e), v = f(), p = Ce(v), b = F(function(h) {
    h === void 0 && (h = []), !p.current && s((g) => g === null ? h : g.concat(h.filter((y) => !g.includes(y))));
  }, [p]), x = A(null), u = Oe((h) => {
    if (v && !n)
      return kn;
    if (!h || h === kn || d.current !== e || i != null) {
      const g = /* @__PURE__ */ new Map();
      for (let y of e) {
        if (!y)
          continue;
        if (i && i.length > 0 && !i.includes(y.id) && y.rect.current) {
          g.set(y.id, y.rect.current);
          continue;
        }
        const C = y.node.current, R = C ? new cn(c(C), C) : null;
        y.rect.current = R, R && g.set(y.id, R);
      }
      return g;
    }
    return h;
  }, [e, i, n, v, c]);
  return T(() => {
    d.current = e;
  }, [e]), T(
    () => {
      v || b();
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [n, v]
  ), T(
    () => {
      i && i.length > 0 && s(null);
    },
    //eslint-disable-next-line react-hooks/exhaustive-deps
    [JSON.stringify(i)]
  ), T(
    () => {
      v || typeof a != "number" || x.current !== null || (x.current = setTimeout(() => {
        b(), x.current = null;
      }, a));
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [a, v, b, ...r]
  ), {
    droppableRects: u,
    measureDroppableContainers: b,
    measuringScheduled: i != null
  };
  function f() {
    switch (l) {
      case Ee.Always:
        return !1;
      case Ee.BeforeDragging:
        return n;
      default:
        return !n;
    }
  }
}
function vn(e, t) {
  return Oe((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
}
function Vi(e, t) {
  return vn(e, t);
}
function Yi(e) {
  let {
    callback: t,
    disabled: n
  } = e;
  const r = ze(t), o = q(() => {
    if (n || typeof window > "u" || typeof window.MutationObserver > "u")
      return;
    const {
      MutationObserver: i
    } = window;
    return new i(r);
  }, [r, n]);
  return T(() => () => o?.disconnect(), [o]), o;
}
function rt(e) {
  let {
    callback: t,
    disabled: n
  } = e;
  const r = ze(t), o = q(
    () => {
      if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
        return;
      const {
        ResizeObserver: i
      } = window;
      return new i(r);
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [n]
  );
  return T(() => () => o?.disconnect(), [o]), o;
}
function Wi(e) {
  return new cn(Me(e), e);
}
function Bn(e, t, n) {
  t === void 0 && (t = Wi);
  const [r, o] = k(null);
  function i() {
    o((c) => {
      if (!e)
        return null;
      if (e.isConnected === !1) {
        var l;
        return (l = c ?? n) != null ? l : null;
      }
      const d = t(e);
      return JSON.stringify(c) === JSON.stringify(d) ? c : d;
    });
  }
  const s = Yi({
    callback(c) {
      if (e)
        for (const l of c) {
          const {
            type: d,
            target: v
          } = l;
          if (d === "childList" && v instanceof HTMLElement && v.contains(e)) {
            i();
            break;
          }
        }
    }
  }), a = rt({
    callback: i
  });
  return Z(() => {
    i(), e ? (a?.observe(e), s?.observe(document.body, {
      childList: !0,
      subtree: !0
    })) : (a?.disconnect(), s?.disconnect());
  }, [e]), r;
}
function Zi(e) {
  const t = vn(e);
  return $r(e, t);
}
const zn = [];
function Gi(e) {
  const t = A(e), n = Oe((r) => e ? r && r !== zn && e && t.current && e.parentNode === t.current.parentNode ? r : nt(e) : zn, [e]);
  return T(() => {
    t.current = e;
  }, [e]), n;
}
function Ji(e) {
  const [t, n] = k(null), r = A(e), o = F((i) => {
    const s = dt(i.target);
    s && n((a) => a ? (a.set(s, Zt(s)), new Map(a)) : null);
  }, []);
  return T(() => {
    const i = r.current;
    if (e !== i) {
      s(i);
      const a = e.map((c) => {
        const l = dt(c);
        return l ? (l.addEventListener("scroll", o, {
          passive: !0
        }), [l, Zt(l)]) : null;
      }).filter((c) => c != null);
      n(a.length ? new Map(a) : null), r.current = e;
    }
    return () => {
      s(e), s(i);
    };
    function s(a) {
      a.forEach((c) => {
        const l = dt(c);
        l?.removeEventListener("scroll", o);
      });
    }
  }, [o, e]), q(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => fe(i, s), U) : Zr(e) : U, [e, t]);
}
function Hn(e, t) {
  t === void 0 && (t = []);
  const n = A(null);
  return T(
    () => {
      n.current = null;
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    t
  ), T(() => {
    const r = e !== U;
    r && !n.current && (n.current = e), !r && n.current && (n.current = null);
  }, [e]), n.current ? Fe(e, n.current) : U;
}
function Qi(e) {
  T(
    () => {
      if (!Be)
        return;
      const t = e.map((n) => {
        let {
          sensor: r
        } = n;
        return r.setup == null ? void 0 : r.setup();
      });
      return () => {
        for (const n of t)
          n?.();
      };
    },
    // TO-DO: Sensors length could theoretically change which would not be a valid dependency
    // eslint-disable-next-line react-hooks/exhaustive-deps
    e.map((t) => {
      let {
        sensor: n
      } = t;
      return n;
    })
  );
}
function ea(e, t) {
  return q(() => e.reduce((n, r) => {
    let {
      eventName: o,
      handler: i
    } = r;
    return n[o] = (s) => {
      i(s, t);
    }, n;
  }, {}), [e, t]);
}
function no(e) {
  return q(() => e ? Mi(e) : null, [e]);
}
const $n = [];
function ta(e, t) {
  t === void 0 && (t = Me);
  const [n] = e, r = no(n ? j(n) : null), [o, i] = k($n);
  function s() {
    i(() => e.length ? e.map((c) => Yr(c) ? r : new cn(t(c), c)) : $n);
  }
  const a = rt({
    callback: s
  });
  return Z(() => {
    a?.disconnect(), s(), e.forEach((c) => a?.observe(c));
  }, [e]), o;
}
function ro(e) {
  if (!e)
    return null;
  if (e.children.length > 1)
    return e;
  const t = e.children[0];
  return De(t) ? t : e;
}
function na(e) {
  let {
    measure: t
  } = e;
  const [n, r] = k(null), o = F((l) => {
    for (const {
      target: d
    } of l)
      if (De(d)) {
        r((v) => {
          const p = t(d);
          return v ? {
            ...v,
            width: p.width,
            height: p.height
          } : p;
        });
        break;
      }
  }, [t]), i = rt({
    callback: o
  }), s = F((l) => {
    const d = ro(l);
    i?.disconnect(), d && i?.observe(d), r(d ? t(d) : null);
  }, [t, i]), [a, c] = Ne(s);
  return q(() => ({
    nodeRef: a,
    rect: n,
    setRef: c
  }), [n, a, c]);
}
const ra = [{
  sensor: fn,
  options: {}
}, {
  sensor: un,
  options: {}
}], oa = {
  current: {}
}, We = {
  draggable: {
    measure: Nn
  },
  droppable: {
    measure: Nn,
    strategy: Ee.WhileDragging,
    frequency: Ge.Optimized
  },
  dragOverlay: {
    measure: Me
  }
};
class Ie extends Map {
  get(t) {
    var n;
    return t != null && (n = super.get(t)) != null ? n : void 0;
  }
  toArray() {
    return Array.from(this.values());
  }
  getEnabled() {
    return this.toArray().filter((t) => {
      let {
        disabled: n
      } = t;
      return !n;
    });
  }
  getNodeFor(t) {
    var n, r;
    return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
  }
}
const ia = {
  activatorEvent: null,
  active: null,
  activeNode: null,
  activeNodeRect: null,
  collisions: null,
  containerNodeRect: null,
  draggableNodes: /* @__PURE__ */ new Map(),
  droppableRects: /* @__PURE__ */ new Map(),
  droppableContainers: /* @__PURE__ */ new Ie(),
  over: null,
  dragOverlay: {
    nodeRef: {
      current: null
    },
    rect: null,
    setRef: Ze
  },
  scrollableAncestors: [],
  scrollableAncestorRects: [],
  measuringConfiguration: We,
  measureDroppableContainers: Ze,
  windowRect: null,
  measuringScheduled: !1
}, oo = {
  activatorEvent: null,
  activators: [],
  active: null,
  activeNodeRect: null,
  ariaDescribedById: {
    draggable: ""
  },
  dispatch: Ze,
  draggableNodes: /* @__PURE__ */ new Map(),
  over: null,
  measureDroppableContainers: Ze
}, $e = /* @__PURE__ */ ke(oo), io = /* @__PURE__ */ ke(ia);
function aa() {
  return {
    draggable: {
      active: null,
      initialCoordinates: {
        x: 0,
        y: 0
      },
      nodes: /* @__PURE__ */ new Map(),
      translate: {
        x: 0,
        y: 0
      }
    },
    droppable: {
      containers: new Ie()
    }
  };
}
function sa(e, t) {
  switch (t.type) {
    case P.DragStart:
      return {
        ...e,
        draggable: {
          ...e.draggable,
          initialCoordinates: t.initialCoordinates,
          active: t.active
        }
      };
    case P.DragMove:
      return e.draggable.active == null ? e : {
        ...e,
        draggable: {
          ...e.draggable,
          translate: {
            x: t.coordinates.x - e.draggable.initialCoordinates.x,
            y: t.coordinates.y - e.draggable.initialCoordinates.y
          }
        }
      };
    case P.DragEnd:
    case P.DragCancel:
      return {
        ...e,
        draggable: {
          ...e.draggable,
          active: null,
          initialCoordinates: {
            x: 0,
            y: 0
          },
          translate: {
            x: 0,
            y: 0
          }
        }
      };
    case P.RegisterDroppable: {
      const {
        element: n
      } = t, {
        id: r
      } = n, o = new Ie(e.droppable.containers);
      return o.set(r, n), {
        ...e,
        droppable: {
          ...e.droppable,
          containers: o
        }
      };
    }
    case P.SetDroppableDisabled: {
      const {
        id: n,
        key: r,
        disabled: o
      } = t, i = e.droppable.containers.get(n);
      if (!i || r !== i.key)
        return e;
      const s = new Ie(e.droppable.containers);
      return s.set(n, {
        ...i,
        disabled: o
      }), {
        ...e,
        droppable: {
          ...e.droppable,
          containers: s
        }
      };
    }
    case P.UnregisterDroppable: {
      const {
        id: n,
        key: r
      } = t, o = e.droppable.containers.get(n);
      if (!o || r !== o.key)
        return e;
      const i = new Ie(e.droppable.containers);
      return i.delete(n), {
        ...e,
        droppable: {
          ...e.droppable,
          containers: i
        }
      };
    }
    default:
      return e;
  }
}
function la(e) {
  let {
    disabled: t
  } = e;
  const {
    active: n,
    activatorEvent: r,
    draggableNodes: o
  } = ve($e), i = Le(r), s = Le(n?.id);
  return T(() => {
    if (!t && !r && i && s != null) {
      if (!tt(i) || document.activeElement === i.target)
        return;
      const a = o.get(s);
      if (!a)
        return;
      const {
        activatorNode: c,
        node: l
      } = a;
      if (!c.current && !l.current)
        return;
      requestAnimationFrame(() => {
        for (const d of [c.current, l.current]) {
          if (!d)
            continue;
          const v = Lr(d);
          if (v) {
            v.focus();
            break;
          }
        }
      });
    }
  }, [r, t, o, s, i]), null;
}
function hn(e, t) {
  let {
    transform: n,
    ...r
  } = t;
  return e != null && e.length ? e.reduce((o, i) => i({
    transform: o,
    ...r
  }), n) : n;
}
function ca(e) {
  return q(
    () => ({
      draggable: {
        ...We.draggable,
        ...e?.draggable
      },
      droppable: {
        ...We.droppable,
        ...e?.droppable
      },
      dragOverlay: {
        ...We.dragOverlay,
        ...e?.dragOverlay
      }
    }),
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [e?.draggable, e?.droppable, e?.dragOverlay]
  );
}
function ua(e) {
  let {
    activeNode: t,
    measure: n,
    initialRect: r,
    config: o = !0
  } = e;
  const i = A(!1), {
    x: s,
    y: a
  } = typeof o == "boolean" ? {
    x: o,
    y: o
  } : o;
  Z(() => {
    if (!s && !a || !t) {
      i.current = !1;
      return;
    }
    if (i.current || !r)
      return;
    const l = t?.node.current;
    if (!l || l.isConnected === !1)
      return;
    const d = n(l), v = $r(d, r);
    if (s || (v.x = 0), a || (v.y = 0), i.current = !0, Math.abs(v.x) > 0 || Math.abs(v.y) > 0) {
      const p = Ur(l);
      p && p.scrollBy({
        top: v.y,
        left: v.x
      });
    }
  }, [t, s, a, r, n]);
}
const ot = /* @__PURE__ */ ke({
  ...U,
  scaleX: 1,
  scaleY: 1
});
var se;
(function(e) {
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
})(se || (se = {}));
const da = /* @__PURE__ */ ei(function(t) {
  var n, r, o, i;
  let {
    id: s,
    accessibility: a,
    autoScroll: c = !0,
    children: l,
    sensors: d = ra,
    collisionDetection: v = Hr,
    measuring: p,
    modifiers: b,
    ...x
  } = t;
  const u = ti(sa, void 0, aa), [f, h] = u, [g, y] = fi(), [C, R] = k(se.Uninitialized), S = C === se.Initialized, {
    draggable: {
      active: m,
      nodes: w,
      translate: D
    },
    droppable: {
      containers: M
    }
  } = f, _ = m != null ? w.get(m) : null, G = A({
    initial: null,
    translated: null
  }), J = q(() => {
    var L;
    return m != null ? {
      id: m,
      // It's possible for the active node to unmount while dragging
      data: (L = _?.data) != null ? L : oa,
      rect: G
    } : null;
  }, [m, _]), te = A(null), [pn, bn] = k(null), [Q, yn] = k(null), le = Ce(x, Object.values(x)), it = He("DndDescribedBy", s), mn = q(() => M.getEnabled(), [M]), ce = ca(p), {
    droppableRects: pe,
    measureDroppableContainers: Ke,
    measuringScheduled: wn
  } = Xi(mn, {
    dragging: S,
    dependencies: [D.x, D.y],
    config: ce.droppable
  }), X = Ki(w, m), xn = q(() => Q ? Re(Q) : null, [Q]), Cn = mo(), Rn = Vi(X, ce.draggable.measure);
  ua({
    activeNode: m != null ? w.get(m) : null,
    config: Cn.layoutShiftCompensation,
    initialRect: Rn,
    measure: ce.draggable.measure
  });
  const V = Bn(X, ce.draggable.measure, Rn), at = Bn(X ? X.parentElement : null), ue = A({
    activatorEvent: null,
    active: null,
    activeNode: X,
    collisionRect: null,
    collisions: null,
    droppableRects: pe,
    draggableNodes: w,
    draggingNode: null,
    draggingNodeRect: null,
    droppableContainers: M,
    over: null,
    scrollableAncestors: [],
    scrollAdjustedTranslate: null
  }), Sn = M.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), de = na({
    measure: ce.dragOverlay.measure
  }), Ue = (r = de.nodeRef.current) != null ? r : X, be = S ? (o = de.rect) != null ? o : V : null, En = !!(de.nodeRef.current && de.rect), Dn = Zi(En ? null : V), st = no(Ue ? j(Ue) : null), ne = Gi(S ? Sn ?? X : null), Xe = ta(ne), Ve = hn(b, {
    transform: {
      x: D.x - Dn.x,
      y: D.y - Dn.y,
      scaleX: 1,
      scaleY: 1
    },
    activatorEvent: Q,
    active: J,
    activeNodeRect: V,
    containerNodeRect: at,
    draggingNodeRect: be,
    over: ue.current.over,
    overlayNodeRect: de.rect,
    scrollableAncestors: ne,
    scrollableAncestorRects: Xe,
    windowRect: st
  }), On = xn ? fe(xn, D) : null, Mn = Ji(ne), fo = Hn(Mn), vo = Hn(Mn, [V]), ye = fe(Ve, fo), me = be ? Ei(be, Ve) : null, qe = J && me ? v({
    active: J,
    collisionRect: me,
    droppableRects: pe,
    droppableContainers: mn,
    pointerCoordinates: On
  }) : null, qn = zr(qe, "id"), [re, An] = k(null), ho = En ? Ve : fe(Ve, vo), go = Ri(ho, (i = re?.rect) != null ? i : null, V), lt = A(null), Tn = F(
    (L, B) => {
      let {
        sensor: z,
        options: oe
      } = B;
      if (te.current == null)
        return;
      const $ = w.get(te.current);
      if (!$)
        return;
      const H = L.nativeEvent, Y = new z({
        active: te.current,
        activeNode: $,
        event: H,
        options: oe,
        // Sensors need to be instantiated with refs for arguments that change over time
        // otherwise they are frozen in time with the stale arguments
        context: ue,
        onAbort(N) {
          if (!w.get(N))
            return;
          const {
            onDragAbort: W
          } = le.current, ee = {
            id: N
          };
          W?.(ee), g({
            type: "onDragAbort",
            event: ee
          });
        },
        onPending(N, ie, W, ee) {
          if (!w.get(N))
            return;
          const {
            onDragPending: Te
          } = le.current, ae = {
            id: N,
            constraint: ie,
            initialCoordinates: W,
            offset: ee
          };
          Te?.(ae), g({
            type: "onDragPending",
            event: ae
          });
        },
        onStart(N) {
          const ie = te.current;
          if (ie == null)
            return;
          const W = w.get(ie);
          if (!W)
            return;
          const {
            onDragStart: ee
          } = le.current, Ae = {
            activatorEvent: H,
            active: {
              id: ie,
              data: W.data,
              rect: G
            }
          };
          Ye(() => {
            ee?.(Ae), R(se.Initializing), h({
              type: P.DragStart,
              initialCoordinates: N,
              active: ie
            }), g({
              type: "onDragStart",
              event: Ae
            }), bn(lt.current), yn(H);
          });
        },
        onMove(N) {
          h({
            type: P.DragMove,
            coordinates: N
          });
        },
        onEnd: we(P.DragEnd),
        onCancel: we(P.DragCancel)
      });
      lt.current = Y;
      function we(N) {
        return async function() {
          const {
            active: W,
            collisions: ee,
            over: Ae,
            scrollAdjustedTranslate: Te
          } = ue.current;
          let ae = null;
          if (W && Te) {
            const {
              cancelDrop: _e
            } = le.current;
            ae = {
              activatorEvent: H,
              active: W,
              collisions: ee,
              delta: Te,
              over: Ae
            }, N === P.DragEnd && typeof _e == "function" && await Promise.resolve(_e(ae)) && (N = P.DragCancel);
          }
          te.current = null, Ye(() => {
            h({
              type: N
            }), R(se.Uninitialized), An(null), bn(null), yn(null), lt.current = null;
            const _e = N === P.DragEnd ? "onDragEnd" : "onDragCancel";
            if (ae) {
              const ct = le.current[_e];
              ct?.(ae), g({
                type: _e,
                event: ae
              });
            }
          });
        };
      }
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [w]
  ), po = F((L, B) => (z, oe) => {
    const $ = z.nativeEvent, H = w.get(oe);
    if (
      // Another sensor is already instantiating
      te.current !== null || // No active draggable
      !H || // Event has already been captured
      $.dndKit || $.defaultPrevented
    )
      return;
    const Y = {
      active: H
    };
    L(z, B.options, Y) === !0 && ($.dndKit = {
      capturedBy: B.sensor
    }, te.current = oe, Tn(z, B));
  }, [w, Tn]), _n = Ui(d, po);
  Qi(d), Z(() => {
    V && C === se.Initializing && R(se.Initialized);
  }, [V, C]), T(
    () => {
      const {
        onDragMove: L
      } = le.current, {
        active: B,
        activatorEvent: z,
        collisions: oe,
        over: $
      } = ue.current;
      if (!B || !z)
        return;
      const H = {
        active: B,
        activatorEvent: z,
        collisions: oe,
        delta: {
          x: ye.x,
          y: ye.y
        },
        over: $
      };
      Ye(() => {
        L?.(H), g({
          type: "onDragMove",
          event: H
        });
      });
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [ye.x, ye.y]
  ), T(
    () => {
      const {
        active: L,
        activatorEvent: B,
        collisions: z,
        droppableContainers: oe,
        scrollAdjustedTranslate: $
      } = ue.current;
      if (!L || te.current == null || !B || !$)
        return;
      const {
        onDragOver: H
      } = le.current, Y = oe.get(qn), we = Y && Y.rect.current ? {
        id: Y.id,
        rect: Y.rect.current,
        data: Y.data,
        disabled: Y.disabled
      } : null, N = {
        active: L,
        activatorEvent: B,
        collisions: z,
        delta: {
          x: $.x,
          y: $.y
        },
        over: we
      };
      Ye(() => {
        An(we), H?.(N), g({
          type: "onDragOver",
          event: N
        });
      });
    },
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [qn]
  ), Z(() => {
    ue.current = {
      activatorEvent: Q,
      active: J,
      activeNode: X,
      collisionRect: me,
      collisions: qe,
      droppableRects: pe,
      draggableNodes: w,
      draggingNode: Ue,
      draggingNodeRect: be,
      droppableContainers: M,
      over: re,
      scrollableAncestors: ne,
      scrollAdjustedTranslate: ye
    }, G.current = {
      initial: be,
      translated: me
    };
  }, [J, X, qe, me, w, Ue, be, pe, M, re, ne, ye]), zi({
    ...Cn,
    delta: D,
    draggingRect: me,
    pointerCoordinates: On,
    scrollableAncestors: ne,
    scrollableAncestorRects: Xe
  });
  const bo = q(() => ({
    active: J,
    activeNode: X,
    activeNodeRect: V,
    activatorEvent: Q,
    collisions: qe,
    containerNodeRect: at,
    dragOverlay: de,
    draggableNodes: w,
    droppableContainers: M,
    droppableRects: pe,
    over: re,
    measureDroppableContainers: Ke,
    scrollableAncestors: ne,
    scrollableAncestorRects: Xe,
    measuringConfiguration: ce,
    measuringScheduled: wn,
    windowRect: st
  }), [J, X, V, Q, qe, at, de, w, M, pe, re, Ke, ne, Xe, ce, wn, st]), yo = q(() => ({
    activatorEvent: Q,
    activators: _n,
    active: J,
    activeNodeRect: V,
    ariaDescribedById: {
      draggable: it
    },
    dispatch: h,
    draggableNodes: w,
    over: re,
    measureDroppableContainers: Ke
  }), [Q, _n, J, V, h, it, w, re, Ke]);
  return O.createElement(Fr.Provider, {
    value: y
  }, O.createElement($e.Provider, {
    value: yo
  }, O.createElement(io.Provider, {
    value: bo
  }, O.createElement(ot.Provider, {
    value: go
  }, l)), O.createElement(la, {
    disabled: a?.restoreFocus === !1
  })), O.createElement(vi, {
    ...a,
    hiddenTextDescribedById: it
  }));
  function mo() {
    const L = pn?.autoScrollEnabled === !1, B = typeof c == "object" ? c.enabled === !1 : c === !1, z = S && !L && !B;
    return typeof c == "object" ? {
      ...c,
      enabled: z
    } : {
      enabled: z
    };
  }
}), fa = /* @__PURE__ */ ke(null), Kn = "button", va = "Draggable";
function ha(e) {
  let {
    id: t,
    data: n,
    disabled: r = !1,
    attributes: o
  } = e;
  const i = He(va), {
    activators: s,
    activatorEvent: a,
    active: c,
    activeNodeRect: l,
    ariaDescribedById: d,
    draggableNodes: v,
    over: p
  } = ve($e), {
    role: b = Kn,
    roleDescription: x = "draggable",
    tabIndex: u = 0
  } = o ?? {}, f = c?.id === t, h = ve(f ? ot : fa), [g, y] = Ne(), [C, R] = Ne(), S = ea(s, t), m = Ce(n);
  Z(
    () => (v.set(t, {
      id: t,
      key: i,
      node: g,
      activatorNode: C,
      data: m
    }), () => {
      const D = v.get(t);
      D && D.key === i && v.delete(t);
    }),
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [v, t]
  );
  const w = q(() => ({
    role: b,
    tabIndex: u,
    "aria-disabled": r,
    "aria-pressed": f && b === Kn ? !0 : void 0,
    "aria-roledescription": x,
    "aria-describedby": d.draggable
  }), [r, b, u, f, x, d.draggable]);
  return {
    active: c,
    activatorEvent: a,
    activeNodeRect: l,
    attributes: w,
    isDragging: f,
    listeners: r ? void 0 : S,
    node: g,
    over: p,
    setNodeRef: y,
    setActivatorNodeRef: R,
    transform: h
  };
}
function ao() {
  return ve(io);
}
const ga = "Droppable", pa = {
  timeout: 25
};
function ba(e) {
  let {
    data: t,
    disabled: n = !1,
    id: r,
    resizeObserverConfig: o
  } = e;
  const i = He(ga), {
    active: s,
    dispatch: a,
    over: c,
    measureDroppableContainers: l
  } = ve($e), d = A({
    disabled: n
  }), v = A(!1), p = A(null), b = A(null), {
    disabled: x,
    updateMeasurementsFor: u,
    timeout: f
  } = {
    ...pa,
    ...o
  }, h = Ce(u ?? r), g = F(
    () => {
      if (!v.current) {
        v.current = !0;
        return;
      }
      b.current != null && clearTimeout(b.current), b.current = setTimeout(() => {
        l(Array.isArray(h.current) ? h.current : [h.current]), b.current = null;
      }, f);
    },
    //eslint-disable-next-line react-hooks/exhaustive-deps
    [f]
  ), y = rt({
    callback: g,
    disabled: x || !s
  }), C = F((w, D) => {
    y && (D && (y.unobserve(D), v.current = !1), w && y.observe(w));
  }, [y]), [R, S] = Ne(C), m = Ce(t);
  return T(() => {
    !y || !R.current || (y.disconnect(), v.current = !1, y.observe(R.current));
  }, [R, y]), T(
    () => (a({
      type: P.RegisterDroppable,
      element: {
        id: r,
        key: i,
        disabled: n,
        node: R,
        rect: p,
        data: m
      }
    }), () => a({
      type: P.UnregisterDroppable,
      key: i,
      id: r
    })),
    // eslint-disable-next-line react-hooks/exhaustive-deps
    [r]
  ), T(() => {
    n !== d.current.disabled && (a({
      type: P.SetDroppableDisabled,
      id: r,
      key: i,
      disabled: n
    }), d.current.disabled = n);
  }, [r, i, n, a]), {
    active: s,
    rect: p,
    isOver: c?.id === r,
    node: R,
    over: c,
    setNodeRef: S
  };
}
function ya(e) {
  let {
    animation: t,
    children: n
  } = e;
  const [r, o] = k(null), [i, s] = k(null), a = Le(n);
  return !n && !r && a && o(a), Z(() => {
    if (!i)
      return;
    const c = r?.key, l = r?.props.id;
    if (c == null || l == null) {
      o(null);
      return;
    }
    Promise.resolve(t(l, i)).then(() => {
      o(null);
    });
  }, [t, r, i]), O.createElement(O.Fragment, null, n, r ? ri(r, {
    ref: s
  }) : null);
}
const ma = {
  x: 0,
  y: 0,
  scaleX: 1,
  scaleY: 1
};
function wa(e) {
  let {
    children: t
  } = e;
  return O.createElement($e.Provider, {
    value: oo
  }, O.createElement(ot.Provider, {
    value: ma
  }, t));
}
const xa = {
  position: "fixed",
  touchAction: "none"
}, Ca = (e) => tt(e) ? "transform 250ms ease" : void 0, Ra = /* @__PURE__ */ ni((e, t) => {
  let {
    as: n,
    activatorEvent: r,
    adjustScale: o,
    children: i,
    className: s,
    rect: a,
    style: c,
    transform: l,
    transition: d = Ca
  } = e;
  if (!a)
    return null;
  const v = o ? l : {
    ...l,
    scaleX: 1,
    scaleY: 1
  }, p = {
    ...xa,
    width: a.width,
    height: a.height,
    top: a.top,
    left: a.left,
    transform: Se.Transform.toString(v),
    transformOrigin: o && r ? pi(r, a) : void 0,
    transition: typeof d == "function" ? d(r) : d,
    ...c
  };
  return O.createElement(n, {
    className: s,
    style: p,
    ref: t
  }, i);
}), so = (e) => (t) => {
  let {
    active: n,
    dragOverlay: r
  } = t;
  const o = {}, {
    styles: i,
    className: s
  } = e;
  if (i != null && i.active)
    for (const [a, c] of Object.entries(i.active))
      c !== void 0 && (o[a] = n.node.style.getPropertyValue(a), n.node.style.setProperty(a, c));
  if (i != null && i.dragOverlay)
    for (const [a, c] of Object.entries(i.dragOverlay))
      c !== void 0 && r.node.style.setProperty(a, c);
  return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
    for (const [c, l] of Object.entries(o))
      n.node.style.setProperty(c, l);
    s != null && s.active && n.node.classList.remove(s.active);
  };
}, Sa = (e) => {
  let {
    transform: {
      initial: t,
      final: n
    }
  } = e;
  return [{
    transform: Se.Transform.toString(t)
  }, {
    transform: Se.Transform.toString(n)
  }];
}, lo = {
  duration: 250,
  easing: "ease",
  keyframes: Sa,
  sideEffects: /* @__PURE__ */ so({
    styles: {
      active: {
        opacity: "0"
      }
    }
  })
};
function Ea(e) {
  let {
    config: t,
    draggableNodes: n,
    droppableContainers: r,
    measuringConfiguration: o
  } = e;
  return ze((i, s) => {
    if (t === null)
      return;
    const a = n.get(i);
    if (!a)
      return;
    const c = a.node.current;
    if (!c)
      return;
    const l = ro(s);
    if (!l)
      return;
    const {
      transform: d
    } = j(s).getComputedStyle(s), v = Kr(d);
    if (!v)
      return;
    const p = typeof t == "function" ? t : Da(t);
    return Gr(c, o.draggable.measure), p({
      active: {
        id: i,
        data: a.data,
        node: c,
        rect: o.draggable.measure(c)
      },
      draggableNodes: n,
      dragOverlay: {
        node: s,
        rect: o.dragOverlay.measure(l)
      },
      droppableContainers: r,
      measuringConfiguration: o,
      transform: v
    });
  });
}
function Da(e) {
  const {
    duration: t,
    easing: n,
    sideEffects: r,
    keyframes: o
  } = {
    ...lo,
    ...e
  };
  return (i) => {
    let {
      active: s,
      dragOverlay: a,
      transform: c,
      ...l
    } = i;
    if (!t)
      return;
    const d = {
      x: a.rect.left - s.rect.left,
      y: a.rect.top - s.rect.top
    }, v = {
      scaleX: c.scaleX !== 1 ? s.rect.width * c.scaleX / a.rect.width : 1,
      scaleY: c.scaleY !== 1 ? s.rect.height * c.scaleY / a.rect.height : 1
    }, p = {
      x: c.x - d.x,
      y: c.y - d.y,
      ...v
    }, b = o({
      ...l,
      active: s,
      dragOverlay: a,
      transform: {
        initial: c,
        final: p
      }
    }), [x] = b, u = b[b.length - 1];
    if (JSON.stringify(x) === JSON.stringify(u))
      return;
    const f = r?.({
      active: s,
      dragOverlay: a,
      ...l
    }), h = a.node.animate(b, {
      duration: t,
      easing: n,
      fill: "forwards"
    });
    return new Promise((g) => {
      h.onfinish = () => {
        f?.(), g();
      };
    });
  };
}
let Un = 0;
function Oa(e) {
  return q(() => {
    if (e != null)
      return Un++, Un;
  }, [e]);
}
const Ma = /* @__PURE__ */ O.memo((e) => {
  let {
    adjustScale: t = !1,
    children: n,
    dropAnimation: r,
    style: o,
    transition: i,
    modifiers: s,
    wrapperElement: a = "div",
    className: c,
    zIndex: l = 999
  } = e;
  const {
    activatorEvent: d,
    active: v,
    activeNodeRect: p,
    containerNodeRect: b,
    draggableNodes: x,
    droppableContainers: u,
    dragOverlay: f,
    over: h,
    measuringConfiguration: g,
    scrollableAncestors: y,
    scrollableAncestorRects: C,
    windowRect: R
  } = ao(), S = ve(ot), m = Oa(v?.id), w = hn(s, {
    activatorEvent: d,
    active: v,
    activeNodeRect: p,
    containerNodeRect: b,
    draggingNodeRect: f.rect,
    over: h,
    overlayNodeRect: f.rect,
    scrollableAncestors: y,
    scrollableAncestorRects: C,
    transform: S,
    windowRect: R
  }), D = vn(p), M = Ea({
    config: r,
    draggableNodes: x,
    droppableContainers: u,
    measuringConfiguration: g
  }), _ = D ? f.setRef : void 0;
  return O.createElement(wa, null, O.createElement(ya, {
    animation: M
  }, v && m ? O.createElement(Ra, {
    key: m,
    id: v.id,
    ref: _,
    as: a,
    activatorEvent: d,
    adjustScale: t,
    className: c,
    transition: i,
    rect: D,
    style: {
      zIndex: l,
      ...o
    },
    transform: w
  }, n) : null));
}), qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  get AutoScrollActivator() {
    return xe;
  },
  DndContext: da,
  DragOverlay: Ma,
  get KeyboardCode() {
    return E;
  },
  KeyboardSensor: un,
  get MeasuringFrequency() {
    return Ge;
  },
  get MeasuringStrategy() {
    return Ee;
  },
  MouseSensor: eo,
  PointerSensor: fn,
  TouchSensor: to,
  get TraversalOrder() {
    return je;
  },
  applyModifiers: hn,
  closestCenter: yi,
  closestCorners: mi,
  defaultAnnouncements: Br,
  defaultCoordinates: U,
  defaultDropAnimation: lo,
  defaultDropAnimationSideEffects: so,
  defaultKeyboardCoordinateGetter: Qr,
  defaultScreenReaderInstructions: kr,
  getClientRect: Me,
  getFirstCollision: zr,
  getScrollableAncestors: nt,
  pointerWithin: Ci,
  rectIntersection: Hr,
  useDndContext: ao,
  useDndMonitor: jr,
  useDraggable: ha,
  useDroppable: ba,
  useSensor: hi,
  useSensors: gi
}, Symbol.toStringTag, { value: "Module" })), ns = /* @__PURE__ */ Jt(qa);
function Aa(e) {
  return (t) => {
    let {
      transform: n
    } = t;
    return {
      ...n,
      x: Math.ceil(n.x / e) * e,
      y: Math.ceil(n.y / e) * e
    };
  };
}
const Ta = (e) => {
  let {
    transform: t
  } = e;
  return {
    ...t,
    y: 0
  };
};
function gn(e, t, n) {
  const r = {
    ...e
  };
  return t.top + e.y <= n.top ? r.y = n.top - t.top : t.bottom + e.y >= n.top + n.height && (r.y = n.top + n.height - t.bottom), t.left + e.x <= n.left ? r.x = n.left - t.left : t.right + e.x >= n.left + n.width && (r.x = n.left + n.width - t.right), r;
}
const _a = (e) => {
  let {
    containerNodeRect: t,
    draggingNodeRect: n,
    transform: r
  } = e;
  return !n || !t ? r : gn(r, n, t);
}, Pa = (e) => {
  let {
    draggingNodeRect: t,
    transform: n,
    scrollableAncestorRects: r
  } = e;
  const o = r[0];
  return !t || !o ? n : gn(n, t, o);
}, Ia = (e) => {
  let {
    transform: t
  } = e;
  return {
    ...t,
    x: 0
  };
}, Na = (e) => {
  let {
    transform: t,
    draggingNodeRect: n,
    windowRect: r
  } = e;
  return !n || !r ? t : gn(t, n, r);
}, La = (e) => {
  let {
    activatorEvent: t,
    draggingNodeRect: n,
    transform: r
  } = e;
  if (n && t) {
    const o = Re(t);
    if (!o)
      return r;
    const i = o.x - n.left, s = o.y - n.top;
    return {
      ...r,
      x: r.x + i - n.width / 2,
      y: r.y + s - n.height / 2
    };
  }
  return r;
}, Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  createSnapModifier: Aa,
  restrictToFirstScrollableAncestor: Pa,
  restrictToHorizontalAxis: Ta,
  restrictToParentElement: _a,
  restrictToVerticalAxis: Ia,
  restrictToWindowEdges: Na,
  snapCenterToCursor: La
}, Symbol.toStringTag, { value: "Module" })), rs = /* @__PURE__ */ Jt(Fa);
var ht, Xn;
function co() {
  if (Xn) return ht;
  Xn = 1;
  var e = Co();
  function t(n) {
    return typeof n == "function" ? n : e;
  }
  return ht = t, ht;
}
var gt, Vn;
function os() {
  if (Vn) return gt;
  Vn = 1;
  var e = Ro(), t = Or(), n = co(), r = Je();
  function o(i, s) {
    var a = r(i) ? e : t;
    return a(i, n(s));
  }
  return gt = o, gt;
}
var pt, Yn;
function is() {
  if (Yn) return pt;
  Yn = 1;
  var e = So(), t = Qt(), n = Math.max;
  function r(o, i, s) {
    var a = o == null ? 0 : o.length;
    if (!a)
      return -1;
    var c = s == null ? 0 : t(s);
    return c < 0 && (c = n(a + c, 0)), e(o, i, c);
  }
  return pt = r, pt;
}
var bt, Wn;
function as() {
  if (Wn) return bt;
  Wn = 1;
  var e = Eo(), t = Do(), n = "[object Number]";
  function r(o) {
    return typeof o == "number" || t(o) && e(o) == n;
  }
  return bt = r, bt;
}
var yt, Zn;
function ja() {
  if (Zn) return yt;
  Zn = 1;
  var e = Oo(), t = Qt(), n = Mo(), r = en(), o = e.isFinite, i = Math.min;
  function s(a) {
    var c = Math[a];
    return function(l, d) {
      if (l = n(l), d = d == null ? 0 : i(t(d), 292), d && o(l)) {
        var v = (r(l) + "e").split("e"), p = c(v[0] + "e" + (+v[1] + d));
        return v = (r(p) + "e").split("e"), +(v[0] + "e" + (+v[1] - d));
      }
      return c(l);
    };
  }
  return yt = s, yt;
}
var mt, Gn;
function ss() {
  if (Gn) return mt;
  Gn = 1;
  var e = ja(), t = e("round");
  return mt = t, mt;
}
var wt, Jn;
function ka() {
  if (Jn) return wt;
  Jn = 1;
  var e = 9007199254740991, t = Math.floor;
  function n(r, o) {
    var i = "";
    if (!r || o < 1 || o > e)
      return i;
    do
      o % 2 && (i += r), o = t(o / 2), o && (r += r);
    while (o);
    return i;
  }
  return wt = n, wt;
}
var xt, Qn;
function ls() {
  if (Qn) return xt;
  Qn = 1;
  var e = ka(), t = Mr(), n = Qt(), r = en();
  function o(i, s, a) {
    return (a ? t(i, s, a) : s === void 0) ? s = 1 : s = n(s), e(r(i), s);
  }
  return xt = o, xt;
}
var Ct, er;
function cs() {
  if (er) return Ct;
  er = 1;
  var e = qo(), t = Ao(), n = To(), r = t(function(o, i) {
    return n(o) ? e(o, i) : [];
  });
  return Ct = r, Ct;
}
const us = /* @__PURE__ */ Jt(si);
var Rt, tr;
function Ba() {
  if (tr) return Rt;
  tr = 1;
  var e = _o(), t = Po(), n = Io(), r = t(function(o, i) {
    e(i, n(i), o);
  });
  return Rt = r, Rt;
}
var St, nr;
function ds() {
  return nr || (nr = 1, St = Ba()), St;
}
var Et = { exports: {} }, rr;
function fs() {
  return rr || (rr = 1, (() => {
    var e = {};
    e.n = (u) => {
      var f = u && u.__esModule ? (
        /******/
        () => u.default
      ) : () => u;
      return e.d(f, {
        a: f
      }), f;
    }, e.d = (u, f) => {
      for (var h in f)
        e.o(f, h) && !e.o(u, h) && Object.defineProperty(u, h, {
          enumerable: !0,
          get: f[h]
        });
    }, e.o = (u, f) => Object.prototype.hasOwnProperty.call(u, f), e.r = (u) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(u, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        x
      )
    });
    const n = O;
    var r = e.n(n);
    const o = nn(), i = rn();
    var s = e.n(i);
    function a(u, f) {
      if (u == null) return {};
      var h, g, y = c(u, f);
      if (Object.getOwnPropertySymbols) {
        var C = Object.getOwnPropertySymbols(u);
        for (g = 0; g < C.length; g++)
          h = C[g], f.includes(h) || {}.propertyIsEnumerable.call(u, h) && (y[h] = u[h]);
      }
      return y;
    }
    function c(u, f) {
      if (u == null) return {};
      var h = {};
      for (var g in u)
        if ({}.hasOwnProperty.call(u, g)) {
          if (f.includes(g)) continue;
          h[g] = u[g];
        }
      return h;
    }
    var l = /* @__PURE__ */ new Map();
    l.set("outlined", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        fillRule: "evenodd",
        clipRule: "evenodd",
        d: "M10.701 3.75C11.2783 2.75 12.7217 2.75 13.2991 3.75L21.9593 18.75C22.5367 19.75 21.815 21 20.6603 21H3.33976C2.18507 21 1.46337 19.75 2.04072 18.75L10.701 3.75ZM12 5.5L4.20579 19H19.7942L12 5.5Z"
      }), r().createElement("path", {
        d: "M10.9998 13.6618V10.5C10.9998 9.94771 11.4475 9.5 11.9998 9.5C12.5521 9.5 12.9998 9.94771 12.9998 10.5V13.6618C12.9998 14.2141 12.5521 14.6618 11.9998 14.6618C11.4475 14.6618 10.9998 14.2141 10.9998 13.6618Z"
      }), r().createElement("path", {
        d: "M13.1998 16.9347C13.1998 17.5975 12.6626 18.1347 11.9998 18.1347C11.3371 18.1347 10.7998 17.5975 10.7998 16.9347C10.7998 16.272 11.3371 15.7347 11.9998 15.7347C12.6626 15.7347 13.1998 16.272 13.1998 16.9347Z"
      }));
    }), l.set("filled", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        fillRule: "evenodd",
        clipRule: "evenodd",
        d: "M10.701 3.75C11.2783 2.75 12.7217 2.75 13.2991 3.75L21.9593 18.75C22.5367 19.75 21.815 21 20.6603 21H3.33976C2.18507 21 1.46337 19.75 2.04072 18.75L10.701 3.75ZM10.9998 13.6618V10.5C10.9998 9.94771 11.4475 9.5 11.9998 9.5C12.5521 9.5 12.9998 9.94771 12.9998 10.5V13.6618C12.9998 14.2141 12.5521 14.6618 11.9998 14.6618C11.4475 14.6618 10.9998 14.2141 10.9998 13.6618ZM11.9998 18.1347C12.6626 18.1347 13.1998 17.5975 13.1998 16.9347C13.1998 16.272 12.6626 15.7347 11.9998 15.7347C11.3371 15.7347 10.7998 16.272 10.7998 16.9347C10.7998 17.5975 11.3371 18.1347 11.9998 18.1347Z"
      }));
    });
    var d = ["default", "outlined", "filled"], v = function(f) {
      return d.indexOf(f) >= 0;
    }, p = function(f) {
      return f === "default" || f && !v(f) ? "outlined" : f;
    }, b = function(f) {
      var h = f.children, g = f.variant, y = g === void 0 ? "default" : g, C = a(f, ["children", "variant"]), R = p(y), S = "exclamationtriangle-".concat(R), m = (0, n.useContext)(o.IconContext), w = l.get(R);
      if (m && w) {
        var D = m.toRender, M = m.addIcon;
        if (M(S, w()), !D)
          return null;
      }
      return r().createElement(s(), C, h, m ? r().createElement("use", {
        href: "#".concat(S)
      }) : !!w && w());
    };
    const x = b;
    Et.exports = t;
  })()), Et.exports;
}
var Dt = { exports: {} }, or;
function vs() {
  return or || (or = 1, (() => {
    var e = {};
    e.n = (u) => {
      var f = u && u.__esModule ? (
        /******/
        () => u.default
      ) : () => u;
      return e.d(f, {
        a: f
      }), f;
    }, e.d = (u, f) => {
      for (var h in f)
        e.o(f, h) && !e.o(u, h) && Object.defineProperty(u, h, {
          enumerable: !0,
          get: f[h]
        });
    }, e.o = (u, f) => Object.prototype.hasOwnProperty.call(u, f), e.r = (u) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(u, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        x
      )
    });
    const n = O;
    var r = e.n(n);
    const o = nn(), i = rn();
    var s = e.n(i);
    function a(u, f) {
      if (u == null) return {};
      var h, g, y = c(u, f);
      if (Object.getOwnPropertySymbols) {
        var C = Object.getOwnPropertySymbols(u);
        for (g = 0; g < C.length; g++)
          h = C[g], f.includes(h) || {}.propertyIsEnumerable.call(u, h) && (y[h] = u[h]);
      }
      return y;
    }
    function c(u, f) {
      if (u == null) return {};
      var h = {};
      for (var g in u)
        if ({}.hasOwnProperty.call(u, g)) {
          if (f.includes(g)) continue;
          h[g] = u[g];
        }
      return h;
    }
    var l = /* @__PURE__ */ new Map();
    l.set("outlined", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        fillRule: "evenodd",
        clipRule: "evenodd",
        d: "M19.7105 4.29767C18.2127 2.79671 15.781 2.79622 14.2826 4.29658L3.35126 15.2421C3.12978 15.4639 3.00537 15.7645 3.00537 16.0779V19.4971C3.00537 20.3255 3.67694 20.9971 4.50537 20.9971H7.9244C8.23791 20.9971 8.53861 20.8726 8.76044 20.6511L19.7059 9.71982C21.204 8.22363 21.2061 5.7964 19.7105 4.29767ZM15.6978 5.70988C16.4147 4.99201 17.5781 4.99225 18.2948 5.7104C19.0104 6.42748 19.0094 7.58882 18.2926 8.30469L17.5306 9.06565L14.9368 6.47182L15.6978 5.70988ZM13.5235 7.88695L5.00537 16.4161V18.9971H7.58634L16.1155 10.4789L13.5235 7.88695Z"
      }));
    }), l.set("filled", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        d: "M14.2828 4.29703C15.781 2.79651 18.2127 2.79687 19.7105 4.29782C21.2061 5.79655 21.2039 8.2238 19.7056 9.71982L18.9363 10.4879L13.8379 5.38276L13.5178 5.06314L14.2828 4.29703Z"
      }), r().createElement("path", {
        d: "M3.4442 15.1493L12.1143 6.47093L13.5291 7.88447L13.5241 7.8895L17.5301 11.886L17.5264 11.8873L17.5296 11.8904L8.85336 20.5584C8.5721 20.8394 8.19078 20.9972 7.79321 20.9972H4.50537C3.67694 20.9972 3.00537 20.3257 3.00537 19.4972V16.2094C3.00537 15.8118 3.16321 15.4305 3.4442 15.1493Z"
      }));
    });
    var d = ["default", "outlined", "filled"], v = function(f) {
      return d.indexOf(f) >= 0;
    }, p = function(f) {
      return f === "default" || f && !v(f) ? "outlined" : f;
    }, b = function(f) {
      var h = f.children, g = f.variant, y = g === void 0 ? "default" : g, C = a(f, ["children", "variant"]), R = p(y), S = "pencil-".concat(R), m = (0, n.useContext)(o.IconContext), w = l.get(R);
      if (m && w) {
        var D = m.toRender, M = m.addIcon;
        if (M(S, w()), !D)
          return null;
      }
      return r().createElement(s(), C, h, m ? r().createElement("use", {
        href: "#".concat(S)
      }) : !!w && w());
    };
    const x = b;
    Dt.exports = t;
  })()), Dt.exports;
}
var Ot = { exports: {} }, ir;
function hs() {
  return ir || (ir = 1, (() => {
    var e = {};
    e.n = (u) => {
      var f = u && u.__esModule ? (
        /******/
        () => u.default
      ) : () => u;
      return e.d(f, {
        a: f
      }), f;
    }, e.d = (u, f) => {
      for (var h in f)
        e.o(f, h) && !e.o(u, h) && Object.defineProperty(u, h, {
          enumerable: !0,
          get: f[h]
        });
    }, e.o = (u, f) => Object.prototype.hasOwnProperty.call(u, f), e.r = (u) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(u, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        x
      )
    });
    const n = O;
    var r = e.n(n);
    const o = nn(), i = rn();
    var s = e.n(i);
    function a(u, f) {
      if (u == null) return {};
      var h, g, y = c(u, f);
      if (Object.getOwnPropertySymbols) {
        var C = Object.getOwnPropertySymbols(u);
        for (g = 0; g < C.length; g++)
          h = C[g], f.includes(h) || {}.propertyIsEnumerable.call(u, h) && (y[h] = u[h]);
      }
      return y;
    }
    function c(u, f) {
      if (u == null) return {};
      var h = {};
      for (var g in u)
        if ({}.hasOwnProperty.call(u, g)) {
          if (f.includes(g)) continue;
          h[g] = u[g];
        }
      return h;
    }
    var l = /* @__PURE__ */ new Map();
    l.set("outlined", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        fillRule: "evenodd",
        clipRule: "evenodd",
        d: "M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635ZM16 10.5015C16 13.539 13.5376 16.0015 10.5 16.0015C7.46243 16.0015 5 13.539 5 10.5015C5 7.4639 7.46243 5.00146 10.5 5.00146C13.5376 5.00146 16 7.4639 16 10.5015Z"
      }));
    }), l.set("filled", function() {
      return r().createElement(r().Fragment, null, r().createElement("path", {
        fillRule: "evenodd",
        clipRule: "evenodd",
        d: "M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635Z"
      }));
    });
    var d = ["default", "outlined", "filled"], v = function(f) {
      return d.indexOf(f) >= 0;
    }, p = function(f) {
      return f === "default" || f && !v(f) ? "outlined" : f;
    }, b = function(f) {
      var h = f.children, g = f.variant, y = g === void 0 ? "default" : g, C = a(f, ["children", "variant"]), R = p(y), S = "magnifier-".concat(R), m = (0, n.useContext)(o.IconContext), w = l.get(R);
      if (m && w) {
        var D = m.toRender, M = m.addIcon;
        if (M(S, w()), !D)
          return null;
      }
      return r().createElement(s(), C, h, m ? r().createElement("use", {
        href: "#".concat(S)
      }) : !!w && w());
    };
    const x = b;
    Ot.exports = t;
  })()), Ot.exports;
}
var Mt = { exports: {} }, ar;
function gs() {
  return ar || (ar = 1, (() => {
    var e = {};
    e.n = (l) => {
      var d = l && l.__esModule ? (
        /******/
        () => l.default
      ) : () => l;
      return e.d(d, {
        a: d
      }), d;
    }, e.d = (l, d) => {
      for (var v in d)
        e.o(d, v) && !e.o(l, v) && Object.defineProperty(l, v, {
          enumerable: !0,
          get: d[v]
        });
    }, e.o = (l, d) => Object.prototype.hasOwnProperty.call(l, d), e.r = (l) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(l, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(l, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        c
      )
    });
    const n = O;
    var r = e.n(n);
    const o = on();
    var i = e.n(o);
    const s = tn();
    function a() {
      return a = Object.assign ? Object.assign.bind() : function(l) {
        for (var d = 1; d < arguments.length; d++) {
          var v = arguments[d];
          for (var p in v)
            ({}).hasOwnProperty.call(v, p) && (l[p] = v[p]);
        }
        return l;
      }, a.apply(null, arguments);
    }
    function c(l) {
      return r().createElement(i(), a({
        screenReaderText: (0, s._)("Clone")
      }, l), r().createElement("path", {
        d: "M189.04 1310.96H1125V1500H0V375h189.04v935.96zM375 0h1125v1125H375V0zm935.96 935.96V189.04H564.04v746.92h746.92z"
      }));
    }
    Mt.exports = t;
  })()), Mt.exports;
}
var qt = { exports: {} }, sr;
function ps() {
  return sr || (sr = 1, (() => {
    var e = {};
    e.n = (l) => {
      var d = l && l.__esModule ? (
        /******/
        () => l.default
      ) : () => l;
      return e.d(d, {
        a: d
      }), d;
    }, e.d = (l, d) => {
      for (var v in d)
        e.o(d, v) && !e.o(l, v) && Object.defineProperty(l, v, {
          enumerable: !0,
          get: d[v]
        });
    }, e.o = (l, d) => Object.prototype.hasOwnProperty.call(l, d), e.r = (l) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(l, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(l, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        c
      )
    });
    const n = O;
    var r = e.n(n);
    const o = on();
    var i = e.n(o);
    const s = tn();
    function a() {
      return a = Object.assign ? Object.assign.bind() : function(l) {
        for (var d = 1; d < arguments.length; d++) {
          var v = arguments[d];
          for (var p in v)
            ({}).hasOwnProperty.call(v, p) && (l[p] = v[p]);
        }
        return l;
      }, a.apply(null, arguments);
    }
    function c(l) {
      return r().createElement(i(), a({
        screenReaderText: (0, s._)("Trash"),
        viewBox: "0 0 1350 1500"
      }, l), r().createElement("path", {
        d: "M1273.973 150H900V76.027C900 31.85 868.15 0 823.973 0H526.027C481.85 0 450 31.85 450 76.027V150H76.027C31.85 150 0 181.85 0 225v150h1350V226.027c0-44.178-31.85-76.027-76.027-76.027zM150 523.973v900c0 44.178 31.85 76.027 76.027 76.027h897.946c44.178 0 76.027-31.85 76.027-76.027v-900H150z"
      }));
    }
    qt.exports = t;
  })()), qt.exports;
}
var At, lr;
function za() {
  if (lr) return At;
  lr = 1;
  var e = No(), t = qr(), n = Lo(), r = Fo(), o = jo();
  function i(s, a, c, l) {
    if (!r(s))
      return s;
    a = t(a, s);
    for (var d = -1, v = a.length, p = v - 1, b = s; b != null && ++d < v; ) {
      var x = o(a[d]), u = c;
      if (x === "__proto__" || x === "constructor" || x === "prototype")
        return s;
      if (d != p) {
        var f = b[x];
        u = l ? l(f, x, b) : void 0, u === void 0 && (u = r(f) ? f : n(a[d + 1]) ? [] : {});
      }
      e(b, x, u), b = b[x];
    }
    return s;
  }
  return At = i, At;
}
var Tt, cr;
function uo() {
  if (cr) return Tt;
  cr = 1;
  var e = ko(), t = za(), n = qr();
  function r(o, i, s) {
    for (var a = -1, c = i.length, l = {}; ++a < c; ) {
      var d = i[a], v = e(o, d);
      s(v, d) && t(l, n(d, o), v);
    }
    return l;
  }
  return Tt = r, Tt;
}
var _t, ur;
function bs() {
  if (ur) return _t;
  ur = 1;
  var e = Bo(), t = Ar(), n = uo(), r = zo();
  function o(i, s) {
    if (i == null)
      return {};
    var a = e(r(i), function(c) {
      return [c];
    });
    return s = t(s), n(i, a, function(c, l) {
      return s(c, l[0]);
    });
  }
  return _t = o, _t;
}
var Pt, dr;
function Ha() {
  if (dr) return Pt;
  dr = 1;
  function e() {
  }
  return Pt = e, Pt;
}
var It, fr;
function ys() {
  if (fr) return It;
  fr = 1;
  var e = Je();
  function t() {
    if (!arguments.length)
      return [];
    var n = arguments[0];
    return e(n) ? n : [n];
  }
  return It = t, It;
}
var Nt, vr;
function $a() {
  if (vr) return Nt;
  vr = 1;
  function e(t, n) {
    for (var r = t == null ? 0 : t.length; r-- && n(t[r], r, t) !== !1; )
      ;
    return t;
  }
  return Nt = e, Nt;
}
var Lt, hr;
function Ka() {
  if (hr) return Lt;
  hr = 1;
  var e = Ho(), t = e(!0);
  return Lt = t, Lt;
}
var Ft, gr;
function Ua() {
  if (gr) return Ft;
  gr = 1;
  var e = Ka(), t = $o();
  function n(r, o) {
    return r && e(r, o, t);
  }
  return Ft = n, Ft;
}
var jt, pr;
function Xa() {
  if (pr) return jt;
  pr = 1;
  var e = Ua(), t = Ko(), n = t(e, !0);
  return jt = n, jt;
}
var kt, br;
function ms() {
  if (br) return kt;
  br = 1;
  var e = $a(), t = Xa(), n = co(), r = Je();
  function o(i, s) {
    var a = r(i) ? e : t;
    return a(i, n(s));
  }
  return kt = o, kt;
}
var Bt, yr;
function Va() {
  if (yr) return Bt;
  yr = 1;
  var e = uo(), t = Uo();
  function n(r, o) {
    return e(r, o, function(i, s) {
      return t(r, s);
    });
  }
  return Bt = n, Bt;
}
var zt, mr;
function ws() {
  if (mr) return zt;
  mr = 1;
  var e = Va(), t = Xo(), n = t(function(r, o) {
    return r == null ? {} : e(r, o);
  });
  return zt = n, zt;
}
var Ht, wr;
function Ya() {
  if (wr) return Ht;
  wr = 1;
  var e = Vo(), t = Ha(), n = Tr(), r = 1 / 0, o = e && 1 / n(new e([, -0]))[1] == r ? function(i) {
    return new e(i);
  } : t;
  return Ht = o, Ht;
}
var $t, xr;
function Wa() {
  if (xr) return $t;
  xr = 1;
  var e = Yo(), t = Wo(), n = Zo(), r = Go(), o = Ya(), i = Tr(), s = 200;
  function a(c, l, d) {
    var v = -1, p = t, b = c.length, x = !0, u = [], f = u;
    if (d)
      x = !1, p = n;
    else if (b >= s) {
      var h = l ? null : o(c);
      if (h)
        return i(h);
      x = !1, p = r, f = new e();
    } else
      f = l ? [] : u;
    e:
      for (; ++v < b; ) {
        var g = c[v], y = l ? l(g) : g;
        if (g = d || g !== 0 ? g : 0, x && y === y) {
          for (var C = f.length; C--; )
            if (f[C] === y)
              continue e;
          l && f.push(y), u.push(g);
        } else p(f, y, d) || (f !== u && f.push(y), u.push(g));
      }
    return u;
  }
  return $t = a, $t;
}
var Kt, Cr;
function xs() {
  if (Cr) return Kt;
  Cr = 1;
  var e = Wa();
  function t(n) {
    return n && n.length ? e(n) : [];
  }
  return Kt = t, Kt;
}
var Ut, Rr;
function Za() {
  if (Rr) return Ut;
  Rr = 1;
  var e = Or();
  function t(n, r) {
    var o;
    return e(n, function(i, s, a) {
      return o = r(i, s, a), !o;
    }), !!o;
  }
  return Ut = t, Ut;
}
var Xt, Sr;
function Cs() {
  if (Sr) return Xt;
  Sr = 1;
  var e = Jo(), t = Ar(), n = Za(), r = Je(), o = Mr();
  function i(s, a, c) {
    var l = r(s) ? e : n;
    return c && o(s, a, c) && (a = void 0), l(s, t(a, 3));
  }
  return Xt = i, Xt;
}
var Vt = { exports: {} }, Er;
function Rs() {
  return Er || (Er = 1, (() => {
    var e = {};
    e.n = (l) => {
      var d = l && l.__esModule ? (
        /******/
        () => l.default
      ) : () => l;
      return e.d(d, {
        a: d
      }), d;
    }, e.d = (l, d) => {
      for (var v in d)
        e.o(d, v) && !e.o(l, v) && Object.defineProperty(l, v, {
          enumerable: !0,
          get: d[v]
        });
    }, e.o = (l, d) => Object.prototype.hasOwnProperty.call(l, d), e.r = (l) => {
      typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(l, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(l, "__esModule", {
        value: !0
      });
    };
    var t = {};
    e.r(t), e.d(t, {
      default: () => (
        /* binding */
        c
      )
    });
    const n = O;
    var r = e.n(n);
    const o = on();
    var i = e.n(o);
    const s = tn();
    function a() {
      return a = Object.assign ? Object.assign.bind() : function(l) {
        for (var d = 1; d < arguments.length; d++) {
          var v = arguments[d];
          for (var p in v)
            ({}).hasOwnProperty.call(v, p) && (l[p] = v[p]);
        }
        return l;
      }, a.apply(null, arguments);
    }
    function c(l) {
      return r().createElement(i(), a({
        screenReaderText: (0, s._)("Clear")
      }, l), r().createElement("path", {
        d: "M918.315 750.645L1500 1332.33 1332.33 1500 750.645 918.315 167.67 1500 0 1332.33l581.685-582.975L0 167.67 167.67 0l582.975 581.685L1332.33 0 1500 167.67"
      }));
    }
    Vt.exports = t;
  })()), Vt.exports;
}
var Yt, Dr;
function Ss() {
  if (Dr) return Yt;
  Dr = 1;
  var e = en();
  function t(n) {
    return e(n).toUpperCase();
  }
  return Yt = t, Yt;
}
export {
  ps as A,
  ys as B,
  Se as C,
  ms as D,
  ws as E,
  xs as F,
  Cs as G,
  Rs as H,
  bs as I,
  Ss as J,
  E as K,
  Ha as L,
  co as M,
  ts as P,
  He as a,
  Z as b,
  mi as c,
  nt as d,
  ba as e,
  ha as f,
  zr as g,
  ai as h,
  tt as i,
  Me as j,
  ss as k,
  ls as l,
  os as m,
  is as n,
  cs as o,
  ns as p,
  ds as q,
  as as r,
  Fe as s,
  rs as t,
  ao as u,
  us as v,
  fs as w,
  vs as x,
  hs as y,
  gs as z
};
