import { defineComponent as Ne, onBeforeMount as cn, onBeforeUnmount as dn, resolveComponent as ge, createElementBlock as ce, openBlock as ne, normalizeStyle as fn, unref as Le, renderSlot as Pe, createVNode as ue, createElementVNode as Lt, toDisplayString as Rt, TransitionGroup as hn, nextTick as Bt, h as St, mergeModels as pn, useModel as Vt, computed as mn, Fragment as vt, renderList as gn, createBlock as vn, normalizeClass as bn, withCtx as ze, createTextVNode as _n, ref as yn, Transition as ct, createCommentVNode as dt } from "vue";
import { u as Xt, f as wn } from "./global-loader-CbmVhJAK.js";
import { useCoreStore as En } from "@feedmepos/mf-common";
import { storeToRefs as Sn } from "pinia";
import { useRoute as Dn } from "vue-router";
import { W as x } from "./v4-C5fRBp_c.js";
import { p as Cn } from "./index-BWqDfeY6.js";
import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
import { R as Tn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CEyrg6sv.js";
const xn = {
  key: 0,
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
}, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = /* @__PURE__ */ Ne({
  __name: "FullScreen",
  setup(t) {
    const { t: e } = Xt(), n = Dn(), { isLoading: o } = Sn(wn()), r = En();
    return cn(() => {
      r.hideSidebarToggle(!0);
    }), dn(() => {
      r.hideSidebarToggle(!1);
    }), (i, a) => {
      const l = ge("FmCircularProgress");
      return ne(), ce("div", {
        class: "mx-auto",
        style: fn({
          height: `calc(100vh - ${Le(n).query.token && Le(n).query.businessId ? "0" : "64"}px)`
        })
      }, [
        Le(o) ? (ne(), ce("div", xn, [
          ue(l, { size: "xl" }),
          Lt("span", In, Rt(Le(e)("report.common.isLoading")), 1)
        ])) : Pe(i.$slots, "default", { key: 1 })
      ], 4);
    };
  }
});
/**!
 * Sortable 1.14.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function Dt(t, e) {
  var n = Object.keys(t);
  if (Object.getOwnPropertySymbols) {
    var o = Object.getOwnPropertySymbols(t);
    e && (o = o.filter(function(r) {
      return Object.getOwnPropertyDescriptor(t, r).enumerable;
    })), n.push.apply(n, o);
  }
  return n;
}
function j(t) {
  for (var e = 1; e < arguments.length; e++) {
    var n = arguments[e] != null ? arguments[e] : {};
    e % 2 ? Dt(Object(n), !0).forEach(function(o) {
      On(t, o, n[o]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Dt(Object(n)).forEach(function(o) {
      Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
    });
  }
  return t;
}
function $e(t) {
  "@babel/helpers - typeof";
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? $e = function(e) {
    return typeof e;
  } : $e = function(e) {
    return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  }, $e(t);
}
function On(t, e, n) {
  return e in t ? Object.defineProperty(t, e, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : t[e] = n, t;
}
function q() {
  return q = Object.assign || function(t) {
    for (var e = 1; e < arguments.length; e++) {
      var n = arguments[e];
      for (var o in n)
        Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
    }
    return t;
  }, q.apply(this, arguments);
}
function An(t, e) {
  if (t == null) return {};
  var n = {}, o = Object.keys(t), r, i;
  for (i = 0; i < o.length; i++)
    r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
  return n;
}
function Pn(t, e) {
  if (t == null) return {};
  var n = An(t, e), o, r;
  if (Object.getOwnPropertySymbols) {
    var i = Object.getOwnPropertySymbols(t);
    for (r = 0; r < i.length; r++)
      o = i[r], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
  }
  return n;
}
var Nn = "1.14.0";
function U(t) {
  if (typeof window < "u" && window.navigator)
    return !!/* @__PURE__ */ navigator.userAgent.match(t);
}
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), $t = U(/iP(ad|od|hone)/i), kn = U(/chrome/i) && U(/android/i), Yt = {
  capture: !1,
  passive: !1
};
function _(t, e, n) {
  t.addEventListener(e, n, !K && Yt);
}
function b(t, e, n) {
  t.removeEventListener(e, n, !K && Yt);
}
function Ge(t, e) {
  if (e) {
    if (e[0] === ">" && (e = e.substring(1)), t)
      try {
        if (t.matches)
          return t.matches(e);
        if (t.msMatchesSelector)
          return t.msMatchesSelector(e);
        if (t.webkitMatchesSelector)
          return t.webkitMatchesSelector(e);
      } catch {
        return !1;
      }
    return !1;
  }
}
function Fn(t) {
  return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
}
function W(t, e, n, o) {
  if (t) {
    n = n || document;
    do {
      if (e != null && (e[0] === ">" ? t.parentNode === n && Ge(t, e) : Ge(t, e)) || o && t === n)
        return t;
      if (t === n) break;
    } while (t = Fn(t));
  }
  return null;
}
var Tt = /\s+/g;
function F(t, e, n) {
  if (t && e)
    if (t.classList)
      t.classList[n ? "add" : "remove"](e);
    else {
      var o = (" " + t.className + " ").replace(Tt, " ").replace(" " + e + " ", " ");
      t.className = (o + (n ? " " + e : "")).replace(Tt, " ");
    }
}
function h(t, e, n) {
  var o = t && t.style;
  if (o) {
    if (n === void 0)
      return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
    !(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
  }
}
function me(t, e) {
  var n = "";
  if (typeof t == "string")
    n = t;
  else
    do {
      var o = h(t, "transform");
      o && o !== "none" && (n = o + " " + n);
    } while (!e && (t = t.parentNode));
  var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
  return r && new r(n);
}
function Wt(t, e, n) {
  if (t) {
    var o = t.getElementsByTagName(e), r = 0, i = o.length;
    if (n)
      for (; r < i; r++)
        n(o[r], r);
    return o;
  }
  return [];
}
function H() {
  var t = document.scrollingElement;
  return t || document.documentElement;
}
function T(t, e, n, o, r) {
  if (!(!t.getBoundingClientRect && t !== window)) {
    var i, a, l, s, u, d, f;
    if (t !== window && t.parentNode && t !== H() ? (i = t.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, u = i.right, d = i.height, f = i.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !K))
      do
        if (r && r.getBoundingClientRect && (h(r, "transform") !== "none" || n && h(r, "position") !== "static")) {
          var g = r.getBoundingClientRect();
          a -= g.top + parseInt(h(r, "border-top-width")), l -= g.left + parseInt(h(r, "border-left-width")), s = a + i.height, u = l + i.width;
          break;
        }
      while (r = r.parentNode);
    if (o && t !== window) {
      var w = me(r || t), v = w && w.a, y = w && w.d;
      w && (a /= y, l /= v, f /= v, d /= y, s = a + d, u = l + f);
    }
    return {
      top: a,
      left: l,
      bottom: s,
      right: u,
      width: f,
      height: d
    };
  }
}
function xt(t, e, n) {
  for (var o = te(t, !0), r = T(t)[e]; o; ) {
    var i = T(o)[n], a = void 0;
    if (a = r >= i, !a) return o;
    if (o === H()) break;
    o = te(o, !1);
  }
  return !1;
}
function ve(t, e, n, o) {
  for (var r = 0, i = 0, a = t.children; i < a.length; ) {
    if (a[i].style.display !== "none" && a[i] !== p.ghost && (o || a[i] !== p.dragged) && W(a[i], n.draggable, t, !1)) {
      if (r === e)
        return a[i];
      r++;
    }
    i++;
  }
  return null;
}
function _t(t, e) {
  for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !Ge(n, e)); )
    n = n.previousElementSibling;
  return n || null;
}
function R(t, e) {
  var n = 0;
  if (!t || !t.parentNode)
    return -1;
  for (; t = t.previousElementSibling; )
    t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Ge(t, e)) && n++;
  return n;
}
function It(t) {
  var e = 0, n = 0, o = H();
  if (t)
    do {
      var r = me(t), i = r.a, a = r.d;
      e += t.scrollLeft * i, n += t.scrollTop * a;
    } while (t !== o && (t = t.parentNode));
  return [e, n];
}
function Mn(t, e) {
  for (var n in t)
    if (t.hasOwnProperty(n)) {
      for (var o in e)
        if (e.hasOwnProperty(o) && e[o] === t[n][o]) return Number(n);
    }
  return -1;
}
function te(t, e) {
  if (!t || !t.getBoundingClientRect) return H();
  var n = t, o = !1;
  do
    if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
      var r = h(n);
      if (n.clientWidth < n.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
        if (!n.getBoundingClientRect || n === document.body) return H();
        if (o || e) return n;
        o = !0;
      }
    }
  while (n = n.parentNode);
  return H();
}
function Ln(t, e) {
  if (t && e)
    for (var n in e)
      e.hasOwnProperty(n) && (t[n] = e[n]);
  return t;
}
function Je(t, e) {
  return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
}
var xe;
function Ht(t, e) {
  return function() {
    if (!xe) {
      var n = arguments, o = this;
      n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), xe = setTimeout(function() {
        xe = void 0;
      }, e);
    }
  };
}
function Rn() {
  clearTimeout(xe), xe = void 0;
}
function jt(t, e, n) {
  t.scrollLeft += e, t.scrollTop += n;
}
function zt(t) {
  var e = window.Polymer, n = window.jQuery || window.Zepto;
  return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
}
var L = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
function Bn() {
  var t = [], e;
  return {
    captureAnimationState: function() {
      if (t = [], !!this.options.animation) {
        var o = [].slice.call(this.el.children);
        o.forEach(function(r) {
          if (!(h(r, "display") === "none" || r === p.ghost)) {
            t.push({
              target: r,
              rect: T(r)
            });
            var i = j({}, t[t.length - 1].rect);
            if (r.thisAnimationDuration) {
              var a = me(r, !0);
              a && (i.top -= a.f, i.left -= a.e);
            }
            r.fromRect = i;
          }
        });
      }
    },
    addAnimationState: function(o) {
      t.push(o);
    },
    removeAnimationState: function(o) {
      t.splice(Mn(t, {
        target: o
      }), 1);
    },
    animateAll: function(o) {
      var r = this;
      if (!this.options.animation) {
        clearTimeout(e), typeof o == "function" && o();
        return;
      }
      var i = !1, a = 0;
      t.forEach(function(l) {
        var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect, y = me(u, !0);
        y && (f.top -= y.f, f.left -= y.e), u.toRect = f, u.thisAnimationDuration && Je(g, f) && !Je(d, f) && // Make sure animatingRect is on line between toRect & fromRect
        (v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Xn(v, g, w, r.options)), Je(f, d) || (u.prevFromRect = d, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, v, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
          u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
        }, s), u.thisAnimationDuration = s);
      }), clearTimeout(e), i ? e = setTimeout(function() {
        typeof o == "function" && o();
      }, a) : typeof o == "function" && o(), t = [];
    },
    animate: function(o, r, i, a) {
      if (a) {
        h(o, "transition", ""), h(o, "transform", "");
        var l = me(this.el), s = l && l.a, u = l && l.d, d = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (u || 1);
        o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Vn(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
          h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
        }, a);
      }
    }
  };
}
function Vn(t) {
  return t.offsetWidth;
}
function Xn(t, e, n, o) {
  return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
}
var de = [], et = {
  initializeByDefault: !0
}, Fe = {
  mount: function(e) {
    for (var n in et)
      et.hasOwnProperty(n) && !(n in e) && (e[n] = et[n]);
    de.forEach(function(o) {
      if (o.pluginName === e.pluginName)
        throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
    }), de.push(e);
  },
  pluginEvent: function(e, n, o) {
    var r = this;
    this.eventCanceled = !1, o.cancel = function() {
      r.eventCanceled = !0;
    };
    var i = e + "Global";
    de.forEach(function(a) {
      n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](j({
        sortable: n
      }, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](j({
        sortable: n
      }, o)));
    });
  },
  initializePlugins: function(e, n, o, r) {
    de.forEach(function(l) {
      var s = l.pluginName;
      if (!(!e.options[s] && !l.initializeByDefault)) {
        var u = new l(e, n, e.options);
        u.sortable = e, u.options = e.options, e[s] = u, q(o, u.defaults);
      }
    });
    for (var i in e.options)
      if (e.options.hasOwnProperty(i)) {
        var a = this.modifyOption(e, i, e.options[i]);
        typeof a < "u" && (e.options[i] = a);
      }
  },
  getEventProperties: function(e, n) {
    var o = {};
    return de.forEach(function(r) {
      typeof r.eventProperties == "function" && q(o, r.eventProperties.call(n[r.pluginName], e));
    }), o;
  },
  modifyOption: function(e, n, o) {
    var r;
    return de.forEach(function(i) {
      e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
    }), r;
  }
};
function $n(t) {
  var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex, g = t.originalEvent, w = t.putSortable, v = t.extraEventProperties;
  if (e = e || n && n[L], !!e) {
    var y, B = e.options, z = "on" + o.charAt(0).toUpperCase() + o.substr(1);
    window.CustomEvent && !K && !ke ? y = new CustomEvent(o, {
      bubbles: !0,
      cancelable: !0
    }) : (y = document.createEvent("Event"), y.initEvent(o, !0, !0)), y.to = a || n, y.from = l || n, y.item = r || n, y.clone = i, y.oldIndex = s, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = f, y.originalEvent = g, y.pullMode = w ? w.lastPutMode : void 0;
    var A = j(j({}, v), Fe.getEventProperties(o, e));
    for (var V in A)
      y[V] = A[V];
    n && n.dispatchEvent(y), B[z] && B[z].call(e, y);
  }
}
var Yn = ["evt"], N = function(e, n) {
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = Pn(o, Yn);
  Fe.pluginEvent.bind(p)(e, n, j({
    dragEl: c,
    parentEl: S,
    ghostEl: m,
    rootEl: E,
    nextEl: se,
    lastDownEl: Ye,
    cloneEl: D,
    cloneHidden: ee,
    dragStarted: Se,
    putSortable: I,
    activeSortable: p.active,
    originalEvent: r,
    oldIndex: pe,
    oldDraggableIndex: Ie,
    newIndex: M,
    newDraggableIndex: J,
    hideGhostForTarget: Kt,
    unhideGhostForTarget: Zt,
    cloneNowHidden: function() {
      ee = !0;
    },
    cloneNowShown: function() {
      ee = !1;
    },
    dispatchSortableEvent: function(l) {
      P({
        sortable: n,
        name: l,
        originalEvent: r
      });
    }
  }, i));
};
function P(t) {
  $n(j({
    putSortable: I,
    cloneEl: D,
    targetEl: c,
    rootEl: E,
    oldIndex: pe,
    oldDraggableIndex: Ie,
    newIndex: M,
    newDraggableIndex: J
  }, t));
}
var c, S, m, E, se, Ye, D, ee, pe, M, Ie, J, Re, I, he = !1, Ue = !1, qe = [], ae, X, tt, nt, Ot, At, Se, fe, Oe, Ae = !1, Be = !1, We, O, ot = [], ft = !1, Ke = [], Qe = typeof document < "u", Ve = $t, Pt = ke || K ? "cssFloat" : "float", Wn = Qe && !kn && !$t && "draggable" in document.createElement("div"), Gt = function() {
  if (Qe) {
    if (K)
      return !1;
    var t = document.createElement("x");
    return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
  }
}(), Ut = function(e, n) {
  var o = h(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = ve(e, 0, n), a = ve(e, 1, n), l = i && h(i), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(a).width;
  if (o.display === "flex")
    return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
  if (o.display === "grid")
    return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
  if (i && l.float && l.float !== "none") {
    var f = l.float === "left" ? "left" : "right";
    return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
  }
  return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[Pt] === "none" || a && o[Pt] === "none" && u + d > r) ? "vertical" : "horizontal";
}, Hn = function(e, n, o) {
  var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
  return r === l || i === s || r + a / 2 === l + u / 2;
}, jn = function(e, n) {
  var o;
  return qe.some(function(r) {
    var i = r[L].options.emptyInsertThreshold;
    if (!(!i || _t(r))) {
      var a = T(r), l = e >= a.left - i && e <= a.right + i, s = n >= a.top - i && n <= a.bottom + i;
      if (l && s)
        return o = r;
    }
  }), o;
}, qt = function(e) {
  function n(i, a) {
    return function(l, s, u, d) {
      var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
      if (i == null && (a || f))
        return !0;
      if (i == null || i === !1)
        return !1;
      if (a && i === "clone")
        return i;
      if (typeof i == "function")
        return n(i(l, s, u, d), a)(l, s, u, d);
      var g = (a ? l : s).options.group.name;
      return i === !0 || typeof i == "string" && i === g || i.join && i.indexOf(g) > -1;
    };
  }
  var o = {}, r = e.group;
  (!r || $e(r) != "object") && (r = {
    name: r
  }), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
}, Kt = function() {
  !Gt && m && h(m, "display", "none");
}, Zt = function() {
  !Gt && m && h(m, "display", "");
};
Qe && document.addEventListener("click", function(t) {
  if (Ue)
    return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ue = !1, !1;
}, !0);
var le = function(e) {
  if (c) {
    e = e.touches ? e.touches[0] : e;
    var n = jn(e.clientX, e.clientY);
    if (n) {
      var o = {};
      for (var r in e)
        e.hasOwnProperty(r) && (o[r] = e[r]);
      o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
    }
  }
}, zn = function(e) {
  c && c.parentNode[L]._isOutsideThisEl(e.target);
};
function p(t, e) {
  if (!(t && t.nodeType && t.nodeType === 1))
    throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
  this.el = t, this.options = e = q({}, e), t[L] = this;
  var n = {
    group: null,
    sort: !0,
    disabled: !1,
    store: null,
    handle: null,
    draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
    swapThreshold: 1,
    // percentage; 0 <= x <= 1
    invertSwap: !1,
    // invert always
    invertedSwapThreshold: null,
    // will be set to same as swapThreshold if default
    removeCloneOnHide: !0,
    direction: function() {
      return Ut(t, this.options);
    },
    ghostClass: "sortable-ghost",
    chosenClass: "sortable-chosen",
    dragClass: "sortable-drag",
    ignore: "a, img",
    filter: null,
    preventOnFilter: !0,
    animation: 0,
    easing: null,
    setData: function(a, l) {
      a.setData("Text", l.textContent);
    },
    dropBubble: !1,
    dragoverBubble: !1,
    dataIdAttr: "data-id",
    delay: 0,
    delayOnTouchOnly: !1,
    touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
    forceFallback: !1,
    fallbackClass: "sortable-fallback",
    fallbackOnBody: !1,
    fallbackTolerance: 0,
    fallbackOffset: {
      x: 0,
      y: 0
    },
    supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !Te,
    emptyInsertThreshold: 5
  };
  Fe.initializePlugins(this, t, n);
  for (var o in n)
    !(o in e) && (e[o] = n[o]);
  qt(e);
  for (var r in this)
    r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
  this.nativeDraggable = e.forceFallback ? !1 : Wn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? _(t, "pointerdown", this._onTapStart) : (_(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart)), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Bn());
}
p.prototype = /** @lends Sortable.prototype */
{
  constructor: p,
  _isOutsideThisEl: function(e) {
    !this.el.contains(e) && e !== this.el && (fe = null);
  },
  _getDirection: function(e, n) {
    return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, c) : this.options.direction;
  },
  _onTapStart: function(e) {
    if (e.cancelable) {
      var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = r.filter;
      if (eo(o), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, r.draggable, o, !1), !(s && s.animated) && Ye !== s)) {
        if (pe = R(s), Ie = R(s, r.draggable), typeof d == "function") {
          if (d.call(this, e, s, this)) {
            P({
              sortable: n,
              rootEl: u,
              name: "filter",
              targetEl: s,
              toEl: o,
              fromEl: o
            }), N("filter", n, {
              evt: e
            }), i && e.cancelable && e.preventDefault();
            return;
          }
        } else if (d && (d = d.split(",").some(function(f) {
          if (f = W(u, f.trim(), o, !1), f)
            return P({
              sortable: n,
              rootEl: f,
              name: "filter",
              targetEl: s,
              fromEl: o,
              toEl: o
            }), N("filter", n, {
              evt: e
            }), !0;
        }), d)) {
          i && e.cancelable && e.preventDefault();
          return;
        }
        r.handle && !W(u, r.handle, o, !1) || this._prepareDragStart(e, l, s);
      }
    }
  },
  _prepareDragStart: function(e, n, o) {
    var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
    if (o && !c && o.parentNode === i) {
      var u = T(o);
      if (E = i, c = o, S = c.parentNode, se = c.nextSibling, Ye = o, Re = a.group, p.dragged = c, ae = {
        target: c,
        clientX: (n || e).clientX,
        clientY: (n || e).clientY
      }, Ot = ae.clientX - u.left, At = ae.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, c.style["will-change"] = "all", s = function() {
        if (N("delayEnded", r, {
          evt: e
        }), p.eventCanceled) {
          r._onDrop();
          return;
        }
        r._disableDelayedDragEvents(), !Ct && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(e, n), P({
          sortable: r,
          name: "choose",
          originalEvent: e
        }), F(c, a.chosenClass, !0);
      }, a.ignore.split(",").forEach(function(d) {
        Wt(c, d.trim(), rt);
      }), _(l, "dragover", le), _(l, "mousemove", le), _(l, "touchmove", le), _(l, "mouseup", r._onDrop), _(l, "touchend", r._onDrop), _(l, "touchcancel", r._onDrop), Ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), N("delayStart", this, {
        evt: e
      }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ke || K))) {
        if (p.eventCanceled) {
          this._onDrop();
          return;
        }
        _(l, "mouseup", r._disableDelayedDrag), _(l, "touchend", r._disableDelayedDrag), _(l, "touchcancel", r._disableDelayedDrag), _(l, "mousemove", r._delayedDragTouchMoveHandler), _(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && _(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
      } else
        s();
    }
  },
  _delayedDragTouchMoveHandler: function(e) {
    var n = e.touches ? e.touches[0] : e;
    Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
  },
  _disableDelayedDrag: function() {
    c && rt(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
  },
  _disableDelayedDragEvents: function() {
    var e = this.el.ownerDocument;
    b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
  },
  _triggerDragStart: function(e, n) {
    n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(c, "dragend", this), _(E, "dragstart", this._onDragStart));
    try {
      document.selection ? He(function() {
        document.selection.empty();
      }) : window.getSelection().removeAllRanges();
    } catch {
    }
  },
  _dragStarted: function(e, n) {
    if (he = !1, E && c) {
      N("dragStarted", this, {
        evt: n
      }), this.nativeDraggable && _(document, "dragover", zn);
      var o = this.options;
      !e && F(c, o.dragClass, !1), F(c, o.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
        sortable: this,
        name: "start",
        originalEvent: n
      });
    } else
      this._nulling();
  },
  _emulateDragOver: function() {
    if (X) {
      this._lastX = X.clientX, this._lastY = X.clientY, Kt();
      for (var e = document.elementFromPoint(X.clientX, X.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(X.clientX, X.clientY), e !== n); )
        n = e;
      if (c.parentNode[L]._isOutsideThisEl(e), n)
        do {
          if (n[L]) {
            var o = void 0;
            if (o = n[L]._onDragOver({
              clientX: X.clientX,
              clientY: X.clientY,
              target: e,
              rootEl: n
            }), o && !this.options.dragoverBubble)
              break;
          }
          e = n;
        } while (n = n.parentNode);
      Zt();
    }
  },
  _onTouchMove: function(e) {
    if (ae) {
      var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && me(m, !0), l = m && a && a.a, s = m && a && a.d, u = Ve && O && It(O), d = (i.clientX - ae.clientX + r.x) / (l || 1) + (u ? u[0] - ot[0] : 0) / (l || 1), f = (i.clientY - ae.clientY + r.y) / (s || 1) + (u ? u[1] - ot[1] : 0) / (s || 1);
      if (!p.active && !he) {
        if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
          return;
        this._onDragStart(e, !0);
      }
      if (m) {
        a ? (a.e += d - (tt || 0), a.f += f - (nt || 0)) : a = {
          a: 1,
          b: 0,
          c: 0,
          d: 1,
          e: d,
          f
        };
        var g = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
        h(m, "webkitTransform", g), h(m, "mozTransform", g), h(m, "msTransform", g), h(m, "transform", g), tt = d, nt = f, X = i;
      }
      e.cancelable && e.preventDefault();
    }
  },
  _appendGhost: function() {
    if (!m) {
      var e = this.options.fallbackOnBody ? document.body : E, n = T(c, !0, Ve, !0, e), o = this.options;
      if (Ve) {
        for (O = e; h(O, "position") === "static" && h(O, "transform") === "none" && O !== document; )
          O = O.parentNode;
        O !== document.body && O !== document.documentElement ? (O === document && (O = H()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = H(), ot = It(O);
      }
      m = c.cloneNode(!0), F(m, o.ghostClass, !1), F(m, o.fallbackClass, !0), F(m, o.dragClass, !0), h(m, "transition", ""), h(m, "transform", ""), h(m, "box-sizing", "border-box"), h(m, "margin", 0), h(m, "top", n.top), h(m, "left", n.left), h(m, "width", n.width), h(m, "height", n.height), h(m, "opacity", "0.8"), h(m, "position", Ve ? "absolute" : "fixed"), h(m, "zIndex", "100000"), h(m, "pointerEvents", "none"), p.ghost = m, e.appendChild(m), h(m, "transform-origin", Ot / parseInt(m.style.width) * 100 + "% " + At / parseInt(m.style.height) * 100 + "%");
    }
  },
  _onDragStart: function(e, n) {
    var o = this, r = e.dataTransfer, i = o.options;
    if (N("dragStart", this, {
      evt: e
    }), p.eventCanceled) {
      this._onDrop();
      return;
    }
    N("setupClone", this), p.eventCanceled || (D = zt(c), D.draggable = !1, D.style["will-change"] = "", this._hideClone(), F(D, this.options.chosenClass, !1), p.clone = D), o.cloneId = He(function() {
      N("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || E.insertBefore(D, c), o._hideClone(), P({
        sortable: o,
        name: "clone"
      }));
    }), !n && F(c, i.dragClass, !0), n ? (Ue = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, c)), _(document, "drop", o), h(c, "transform", "translateZ(0)")), he = !0, o._dragStartId = He(o._dragStarted.bind(o, n, e)), _(document, "selectstart", o), Se = !0, Te && h(document.body, "user-select", "none");
  },
  // Returns true - if no further action is needed (either inserted or another condition)
  _onDragOver: function(e) {
    var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d = Re === s, f = l.sort, g = I || u, w, v = this, y = !1;
    if (ft) return;
    function B(Ee, sn) {
      N(Ee, v, j({
        evt: e,
        isOwner: d,
        axis: w ? "vertical" : "horizontal",
        revert: a,
        dragRect: r,
        targetRect: i,
        canSort: f,
        fromSortable: g,
        target: o,
        completed: A,
        onMove: function(Et, un) {
          return Xe(E, n, c, r, Et, T(Et), e, un);
        },
        changed: V
      }, sn));
    }
    function z() {
      B("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
    }
    function A(Ee) {
      return B("dragOverCompleted", {
        insertion: Ee
      }), Ee && (d ? u._hideClone() : u._showClone(v), v !== g && (F(c, I ? I.options.ghostClass : u.options.ghostClass, !1), F(c, l.ghostClass, !0)), I !== v && v !== p.active ? I = v : v === p.active && I && (I = null), g === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
        B("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
      }), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === c && !c.animated || o === n && !o.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && o !== document && (c.parentNode[L]._isOutsideThisEl(e.target), !Ee && le(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
    }
    function V() {
      M = R(c), J = R(c, l.draggable), P({
        sortable: v,
        name: "change",
        toEl: n,
        newIndex: M,
        newDraggableIndex: J,
        originalEvent: e
      });
    }
    if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), B("dragOver"), p.eventCanceled) return y;
    if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
      return A(!1);
    if (Ue = !1, u && !l.disabled && (d ? f || (a = S !== E) : I === this || (this.lastPutMode = Re.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
      if (w = this._getDirection(e, o) === "vertical", r = T(c), B("dragOverValid"), p.eventCanceled) return y;
      if (a)
        return S = E, z(), this._hideClone(), B("revert"), p.eventCanceled || (se ? E.insertBefore(c, se) : E.appendChild(c)), A(!0);
      var $ = _t(n, l.draggable);
      if (!$ || Kn(e, w, this) && !$.animated) {
        if ($ === c)
          return A(!1);
        if ($ && n === e.target && (o = $), o && (i = T(o)), Xe(E, n, c, r, o, i, e, !!o) !== !1)
          return z(), n.appendChild(c), S = n, V(), A(!0);
      } else if ($ && qn(e, w, this)) {
        var oe = ve(n, 0, l, !0);
        if (oe === c)
          return A(!1);
        if (o = oe, i = T(o), Xe(E, n, c, r, o, i, e, !1) !== !1)
          return z(), n.insertBefore(c, oe), S = n, V(), A(!0);
      } else if (o.parentNode === n) {
        i = T(o);
        var Y = 0, re, be = c.parentNode !== n, k = !Hn(c.animated && c.toRect || r, o.animated && o.toRect || i, w), _e = w ? "top" : "left", Z = xt(o, "top", "top") || xt(c, "top", "top"), ye = Z ? Z.scrollTop : void 0;
        fe !== o && (re = i[_e], Ae = !1, Be = !k && l.invertSwap || be), Y = Zn(e, o, i, w, k ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Be, fe === o);
        var G;
        if (Y !== 0) {
          var ie = R(c);
          do
            ie -= Y, G = S.children[ie];
          while (G && (h(G, "display") === "none" || G === m));
        }
        if (Y === 0 || G === o)
          return A(!1);
        fe = o, Oe = Y;
        var we = o.nextElementSibling, Q = !1;
        Q = Y === 1;
        var Me = Xe(E, n, c, r, o, i, e, Q);
        if (Me !== !1)
          return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(Un, 30), z(), Q && !we ? n.appendChild(c) : o.parentNode.insertBefore(c, Q ? we : o), Z && jt(Z, 0, ye - Z.scrollTop), S = c.parentNode, re !== void 0 && !Be && (We = Math.abs(re - T(o)[_e])), V(), A(!0);
      }
      if (n.contains(c))
        return A(!1);
    }
    return !1;
  },
  _ignoreWhileAnimating: null,
  _offMoveEvents: function() {
    b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", le), b(document, "mousemove", le), b(document, "touchmove", le);
  },
  _offUpEvents: function() {
    var e = this.el.ownerDocument;
    b(e, "mouseup", this._onDrop), b(e, "touchend", this._onDrop), b(e, "pointerup", this._onDrop), b(e, "touchcancel", this._onDrop), b(document, "selectstart", this);
  },
  _onDrop: function(e) {
    var n = this.el, o = this.options;
    if (M = R(c), J = R(c, o.draggable), N("drop", this, {
      evt: e
    }), S = c && c.parentNode, M = R(c), J = R(c, o.draggable), p.eventCanceled) {
      this._nulling();
      return;
    }
    he = !1, Be = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && h(document.body, "user-select", ""), h(c, "transform", ""), e && (Se && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (E === S || I && I.lastPutMode !== "clone") && D && D.parentNode && D.parentNode.removeChild(D), c && (this.nativeDraggable && b(c, "dragend", this), rt(c), c.style["will-change"] = "", Se && !he && F(c, I ? I.options.ghostClass : this.options.ghostClass, !1), F(c, this.options.chosenClass, !1), P({
      sortable: this,
      name: "unchoose",
      toEl: S,
      newIndex: null,
      newDraggableIndex: null,
      originalEvent: e
    }), E !== S ? (M >= 0 && (P({
      rootEl: S,
      name: "add",
      toEl: S,
      fromEl: E,
      originalEvent: e
    }), P({
      sortable: this,
      name: "remove",
      toEl: S,
      originalEvent: e
    }), P({
      rootEl: S,
      name: "sort",
      toEl: S,
      fromEl: E,
      originalEvent: e
    }), P({
      sortable: this,
      name: "sort",
      toEl: S,
      originalEvent: e
    })), I && I.save()) : M !== pe && M >= 0 && (P({
      sortable: this,
      name: "update",
      toEl: S,
      originalEvent: e
    }), P({
      sortable: this,
      name: "sort",
      toEl: S,
      originalEvent: e
    })), p.active && ((M == null || M === -1) && (M = pe, J = Ie), P({
      sortable: this,
      name: "end",
      toEl: S,
      originalEvent: e
    }), this.save()))), this._nulling();
  },
  _nulling: function() {
    N("nulling", this), E = c = S = m = se = D = Ye = ee = ae = X = Se = M = J = pe = Ie = fe = Oe = I = Re = p.dragged = p.ghost = p.clone = p.active = null, Ke.forEach(function(e) {
      e.checked = !0;
    }), Ke.length = tt = nt = 0;
  },
  handleEvent: function(e) {
    switch (e.type) {
      case "drop":
      case "dragend":
        this._onDrop(e);
        break;
      case "dragenter":
      case "dragover":
        c && (this._onDragOver(e), Gn(e));
        break;
      case "selectstart":
        e.preventDefault();
        break;
    }
  },
  /**
   * Serializes the item into an array of string.
   * @returns {String[]}
   */
  toArray: function() {
    for (var e = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
      n = o[r], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || Jn(n));
    return e;
  },
  /**
   * Sorts the elements according to the array.
   * @param  {String[]}  order  order of the items
   */
  sort: function(e, n) {
    var o = {}, r = this.el;
    this.toArray().forEach(function(i, a) {
      var l = r.children[a];
      W(l, this.options.draggable, r, !1) && (o[i] = l);
    }, this), n && this.captureAnimationState(), e.forEach(function(i) {
      o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
    }), n && this.animateAll();
  },
  /**
   * Save the current sorting
   */
  save: function() {
    var e = this.options.store;
    e && e.set && e.set(this);
  },
  /**
   * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
   * @param   {HTMLElement}  el
   * @param   {String}       [selector]  default: `options.draggable`
   * @returns {HTMLElement|null}
   */
  closest: function(e, n) {
    return W(e, n || this.options.draggable, this.el, !1);
  },
  /**
   * Set/get option
   * @param   {string} name
   * @param   {*}      [value]
   * @returns {*}
   */
  option: function(e, n) {
    var o = this.options;
    if (n === void 0)
      return o[e];
    var r = Fe.modifyOption(this, e, n);
    typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && qt(o);
  },
  /**
   * Destroy
   */
  destroy: function() {
    N("destroy", this);
    var e = this.el;
    e[L] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
      n.removeAttribute("draggable");
    }), this._onDrop(), this._disableDelayedDragEvents(), qe.splice(qe.indexOf(this.el), 1), this.el = e = null;
  },
  _hideClone: function() {
    if (!ee) {
      if (N("hideClone", this), p.eventCanceled) return;
      h(D, "display", "none"), this.options.removeCloneOnHide && D.parentNode && D.parentNode.removeChild(D), ee = !0;
    }
  },
  _showClone: function(e) {
    if (e.lastPutMode !== "clone") {
      this._hideClone();
      return;
    }
    if (ee) {
      if (N("showClone", this), p.eventCanceled) return;
      c.parentNode == E && !this.options.group.revertClone ? E.insertBefore(D, c) : se ? E.insertBefore(D, se) : E.appendChild(D), this.options.group.revertClone && this.animate(c, D), h(D, "display", ""), ee = !1;
    }
  }
};
function Gn(t) {
  t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
}
function Xe(t, e, n, o, r, i, a, l) {
  var s, u = t[L], d = u.options.onMove, f;
  return window.CustomEvent && !K && !ke ? s = new CustomEvent("move", {
    bubbles: !0,
    cancelable: !0
  }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = r || e, s.relatedRect = i || T(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), d && (f = d.call(u, s, a)), f;
}
function rt(t) {
  t.draggable = !1;
}
function Un() {
  ft = !1;
}
function qn(t, e, n) {
  var o = T(ve(n.el, 0, n.options, !0)), r = 10;
  return e ? t.clientX < o.left - r || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - r || t.clientY < o.bottom && t.clientX < o.left;
}
function Kn(t, e, n) {
  var o = T(_t(n.el, n.options.draggable)), r = 10;
  return e ? t.clientX > o.right + r || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + r;
}
function Zn(t, e, n, o, r, i, a, l) {
  var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, d = o ? n.top : n.left, f = o ? n.bottom : n.right, g = !1;
  if (!a) {
    if (l && We < u * r) {
      if (!Ae && (Oe === 1 ? s > d + u * i / 2 : s < f - u * i / 2) && (Ae = !0), Ae)
        g = !0;
      else if (Oe === 1 ? s < d + We : s > f - We)
        return -Oe;
    } else if (s > d + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
      return Qn(e);
  }
  return g = g || a, g && (s < d + u * i / 2 || s > f - u * i / 2) ? s > d + u / 2 ? 1 : -1 : 0;
}
function Qn(t) {
  return R(c) < R(t) ? 1 : -1;
}
function Jn(t) {
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
    o += e.charCodeAt(n);
  return o.toString(36);
}
function eo(t) {
  Ke.length = 0;
  for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
    var o = e[n];
    o.checked && Ke.push(o);
  }
}
function He(t) {
  return setTimeout(t, 0);
}
function ht(t) {
  return clearTimeout(t);
}
Qe && _(document, "touchmove", function(t) {
  (p.active || he) && t.cancelable && t.preventDefault();
});
p.utils = {
  on: _,
  off: b,
  css: h,
  find: Wt,
  is: function(e, n) {
    return !!W(e, n, e, !1);
  },
  extend: Ln,
  throttle: Ht,
  closest: W,
  toggleClass: F,
  clone: zt,
  index: R,
  nextTick: He,
  cancelNextTick: ht,
  detectDirection: Ut,
  getChild: ve
};
p.get = function(t) {
  return t[L];
};
p.mount = function() {
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
    e[n] = arguments[n];
  e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
    if (!o.prototype || !o.prototype.constructor)
      throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
    o.utils && (p.utils = j(j({}, p.utils), o.utils)), Fe.mount(o);
  });
};
p.create = function(t, e) {
  return new p(t, e);
};
p.version = Nn;
var C = [], De, pt, mt = !1, it, at, Ze, Ce;
function to() {
  function t() {
    this.defaults = {
      scroll: !0,
      forceAutoScrollFallback: !1,
      scrollSensitivity: 30,
      scrollSpeed: 10,
      bubbleScroll: !0
    };
    for (var e in this)
      e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
  }
  return t.prototype = {
    dragStarted: function(n) {
      var o = n.originalEvent;
      this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? _(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? _(document, "touchmove", this._handleFallbackAutoScroll) : _(document, "mousemove", this._handleFallbackAutoScroll);
    },
    dragOverCompleted: function(n) {
      var o = n.originalEvent;
      !this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
    },
    drop: function() {
      this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Nt(), je(), Rn();
    },
    nulling: function() {
      Ze = pt = De = mt = Ce = it = at = null, C.length = 0;
    },
    _handleFallbackAutoScroll: function(n) {
      this._handleAutoScroll(n, !0);
    },
    _handleAutoScroll: function(n, o) {
      var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, a);
      if (Ze = n, o || this.options.forceAutoScrollFallback || ke || K || Te) {
        lt(n, this.options, l, o);
        var s = te(l, !0);
        mt && (!Ce || i !== it || a !== at) && (Ce && Nt(), Ce = setInterval(function() {
          var u = te(document.elementFromPoint(i, a), !0);
          u !== s && (s = u, je()), lt(n, r.options, u, o);
        }, 10), it = i, at = a);
      } else {
        if (!this.options.bubbleScroll || te(l, !0) === H()) {
          je();
          return;
        }
        lt(n, this.options, te(l, !1), !1);
      }
    }
  }, q(t, {
    pluginName: "scroll",
    initializeByDefault: !0
  });
}
function je() {
  C.forEach(function(t) {
    clearInterval(t.pid);
  }), C = [];
}
function Nt() {
  clearInterval(Ce);
}
var lt = Ht(function(t, e, n, o) {
  if (e.scroll) {
    var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = H(), u = !1, d;
    pt !== n && (pt = n, je(), De = e.scroll, d = e.scrollFn, De === !0 && (De = te(n, !0)));
    var f = 0, g = De;
    do {
      var w = g, v = T(w), y = v.top, B = v.bottom, z = v.left, A = v.right, V = v.width, $ = v.height, oe = void 0, Y = void 0, re = w.scrollWidth, be = w.scrollHeight, k = h(w), _e = w.scrollLeft, Z = w.scrollTop;
      w === s ? (oe = V < re && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), Y = $ < be && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (oe = V < re && (k.overflowX === "auto" || k.overflowX === "scroll"), Y = $ < be && (k.overflowY === "auto" || k.overflowY === "scroll"));
      var ye = oe && (Math.abs(A - r) <= a && _e + V < re) - (Math.abs(z - r) <= a && !!_e), G = Y && (Math.abs(B - i) <= a && Z + $ < be) - (Math.abs(y - i) <= a && !!Z);
      if (!C[f])
        for (var ie = 0; ie <= f; ie++)
          C[ie] || (C[ie] = {});
      (C[f].vx != ye || C[f].vy != G || C[f].el !== w) && (C[f].el = w, C[f].vx = ye, C[f].vy = G, clearInterval(C[f].pid), (ye != 0 || G != 0) && (u = !0, C[f].pid = setInterval((function() {
        o && this.layer === 0 && p.active._onTouchMove(Ze);
        var we = C[this.layer].vy ? C[this.layer].vy * l : 0, Q = C[this.layer].vx ? C[this.layer].vx * l : 0;
        typeof d == "function" && d.call(p.dragged.parentNode[L], Q, we, t, Ze, C[this.layer].el) !== "continue" || jt(C[this.layer].el, Q, we);
      }).bind({
        layer: f
      }), 24))), f++;
    } while (e.bubbleScroll && g !== s && (g = te(g, !1)));
    mt = u;
  }
}, 30), Qt = function(e) {
  var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
  if (n) {
    var u = o || i;
    l();
    var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(d.clientX, d.clientY);
    s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
      dragEl: r,
      putSortable: o
    }));
  }
};
function yt() {
}
yt.prototype = {
  startIndex: null,
  dragStart: function(e) {
    var n = e.oldDraggableIndex;
    this.startIndex = n;
  },
  onSpill: function(e) {
    var n = e.dragEl, o = e.putSortable;
    this.sortable.captureAnimationState(), o && o.captureAnimationState();
    var r = ve(this.sortable.el, this.startIndex, this.options);
    r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
  },
  drop: Qt
};
q(yt, {
  pluginName: "revertOnSpill"
});
function wt() {
}
wt.prototype = {
  onSpill: function(e) {
    var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
    r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
  },
  drop: Qt
};
q(wt, {
  pluginName: "removeOnSpill"
});
p.mount(new to());
p.mount(wt, yt);
function st(t) {
  t.parentElement !== null && t.parentElement.removeChild(t);
}
function kt(t, e, n) {
  const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
  t.insertBefore(e, o);
}
function no() {
  return typeof window < "u" ? window.console : global.console;
}
const oo = no();
function ro(t) {
  const e = /* @__PURE__ */ Object.create(null);
  return function(o) {
    return e[o] || (e[o] = t(o));
  };
}
const io = /-(\w)/g, ao = ro((t) => t.replace(io, (e, n) => n.toUpperCase())), Jt = ["Start", "Add", "Remove", "Update", "End"], en = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], tn = ["Move"], lo = [tn, Jt, en].flatMap((t) => t).map((t) => `on${t}`), gt = {
  manage: tn,
  manageAndEmit: Jt,
  emit: en
};
function so(t) {
  return lo.indexOf(t) !== -1;
}
const uo = [
  "a",
  "abbr",
  "address",
  "area",
  "article",
  "aside",
  "audio",
  "b",
  "base",
  "bdi",
  "bdo",
  "blockquote",
  "body",
  "br",
  "button",
  "canvas",
  "caption",
  "cite",
  "code",
  "col",
  "colgroup",
  "data",
  "datalist",
  "dd",
  "del",
  "details",
  "dfn",
  "dialog",
  "div",
  "dl",
  "dt",
  "em",
  "embed",
  "fieldset",
  "figcaption",
  "figure",
  "footer",
  "form",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "head",
  "header",
  "hgroup",
  "hr",
  "html",
  "i",
  "iframe",
  "img",
  "input",
  "ins",
  "kbd",
  "label",
  "legend",
  "li",
  "link",
  "main",
  "map",
  "mark",
  "math",
  "menu",
  "menuitem",
  "meta",
  "meter",
  "nav",
  "noscript",
  "object",
  "ol",
  "optgroup",
  "option",
  "output",
  "p",
  "param",
  "picture",
  "pre",
  "progress",
  "q",
  "rb",
  "rp",
  "rt",
  "rtc",
  "ruby",
  "s",
  "samp",
  "script",
  "section",
  "select",
  "slot",
  "small",
  "source",
  "span",
  "strong",
  "style",
  "sub",
  "summary",
  "sup",
  "svg",
  "table",
  "tbody",
  "td",
  "template",
  "textarea",
  "tfoot",
  "th",
  "thead",
  "time",
  "title",
  "tr",
  "track",
  "u",
  "ul",
  "var",
  "video",
  "wbr"
];
function co(t) {
  return uo.includes(t);
}
function fo(t) {
  return ["transition-group", "TransitionGroup"].includes(t);
}
function nn(t) {
  return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
}
function on(t) {
  return t.reduce((e, [n, o]) => (e[n] = o, e), {});
}
function ho({ $attrs: t, componentData: e = {} }) {
  return {
    ...on(
      Object.entries(t).filter(([o, r]) => nn(o))
    ),
    ...e
  };
}
function po({ $attrs: t, callBackBuilder: e }) {
  const n = on(rn(t));
  Object.entries(e).forEach(([r, i]) => {
    gt[r].forEach((a) => {
      n[`on${a}`] = i(a);
    });
  });
  const o = `[data-draggable]${n.draggable || ""}`;
  return {
    ...n,
    draggable: o
  };
}
function rn(t) {
  return Object.entries(t).filter(([e, n]) => !nn(e)).map(([e, n]) => [ao(e), n]).filter(([e, n]) => !so(e));
}
const Ft = ({ el: t }) => t, mo = (t, e) => t.__draggable_context = e, Mt = (t) => t.__draggable_context;
class go {
  constructor({
    nodes: { header: e, default: n, footer: o },
    root: r,
    realList: i
  }) {
    this.defaultNodes = n, this.children = [...e, ...n, ...o], this.externalComponent = r.externalComponent, this.rootTransition = r.transition, this.tag = r.tag, this.realList = i;
  }
  get _isRootComponent() {
    return this.externalComponent || this.rootTransition;
  }
  render(e, n) {
    const { tag: o, children: r, _isRootComponent: i } = this;
    return e(o, n, i ? { default: () => r } : r);
  }
  updated() {
    const { defaultNodes: e, realList: n } = this;
    e.forEach((o, r) => {
      mo(Ft(o), {
        element: n[r],
        index: r
      });
    });
  }
  getUnderlyingVm(e) {
    return Mt(e);
  }
  getVmIndexFromDomIndex(e, n) {
    const { defaultNodes: o } = this, { length: r } = o, i = n.children, a = i.item(e);
    if (a === null)
      return r;
    const l = Mt(a);
    if (l)
      return l.index;
    if (r === 0)
      return 0;
    const s = Ft(o[0]), u = [...i].findIndex(
      (d) => d === s
    );
    return e < u ? 0 : r;
  }
}
function vo(t, e) {
  const n = t[e];
  return n ? n() : [];
}
function bo({ $slots: t, realList: e, getKey: n }) {
  const o = e || [], [r, i] = ["header", "footer"].map(
    (s) => vo(t, s)
  ), { item: a } = t;
  if (!a)
    throw new Error("draggable element must have an item slot");
  const l = o.flatMap(
    (s, u) => a({ element: s, index: u }).map((d) => (d.key = n(s), d.props = { ...d.props || {}, "data-draggable": !0 }, d))
  );
  if (l.length !== o.length)
    throw new Error("Item slot must have only one child");
  return {
    header: r,
    footer: i,
    default: l
  };
}
function _o(t) {
  const e = fo(t), n = !co(t) && !e;
  return {
    transition: e,
    externalComponent: n,
    tag: n ? ge(t) : e ? hn : t
  };
}
function yo({ $slots: t, tag: e, realList: n, getKey: o }) {
  const r = bo({ $slots: t, realList: n, getKey: o }), i = _o(e);
  return new go({ nodes: r, root: i, realList: n });
}
function an(t, e) {
  Bt(() => this.$emit(t.toLowerCase(), e));
}
function ln(t) {
  return (e, n) => {
    if (this.realList !== null)
      return this[`onDrag${t}`](e, n);
  };
}
function wo(t) {
  const e = ln.call(this, t);
  return (n, o) => {
    e.call(this, n, o), an.call(this, t, n);
  };
}
let ut = null;
const Eo = {
  list: {
    type: Array,
    required: !1,
    default: null
  },
  modelValue: {
    type: Array,
    required: !1,
    default: null
  },
  itemKey: {
    type: [String, Function],
    required: !0
  },
  clone: {
    type: Function,
    default: (t) => t
  },
  tag: {
    type: String,
    default: "div"
  },
  move: {
    type: Function,
    default: null
  },
  componentData: {
    type: Object,
    required: !1,
    default: null
  }
}, So = [
  "update:modelValue",
  "change",
  ...[...gt.manageAndEmit, ...gt.emit].map((t) => t.toLowerCase())
], $o = Ne({
  name: "draggable",
  inheritAttrs: !1,
  props: Eo,
  emits: So,
  data() {
    return {
      error: !1
    };
  },
  render() {
    try {
      this.error = !1;
      const { $slots: t, $attrs: e, tag: n, componentData: o, realList: r, getKey: i } = this, a = yo({
        $slots: t,
        tag: n,
        realList: r,
        getKey: i
      });
      this.componentStructure = a;
      const l = ho({ $attrs: e, componentData: o });
      return a.render(St, l);
    } catch (t) {
      return this.error = !0, St("pre", { style: { color: "red" } }, t.stack);
    }
  },
  created() {
    this.list !== null && this.modelValue !== null && oo.error(
      "modelValue and list props are mutually exclusive! Please set one or another."
    );
  },
  mounted() {
    if (this.error)
      return;
    const { $attrs: t, $el: e, componentStructure: n } = this;
    n.updated();
    const o = po({
      $attrs: t,
      callBackBuilder: {
        manageAndEmit: (i) => wo.call(this, i),
        emit: (i) => an.bind(this, i),
        manage: (i) => ln.call(this, i)
      }
    }), r = e.nodeType === 1 ? e : e.parentElement;
    this._sortable = new p(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
  },
  updated() {
    this.componentStructure.updated();
  },
  beforeUnmount() {
    this._sortable !== void 0 && this._sortable.destroy();
  },
  computed: {
    realList() {
      const { list: t } = this;
      return t || this.modelValue;
    },
    getKey() {
      const { itemKey: t } = this;
      return typeof t == "function" ? t : (e) => e[t];
    }
  },
  watch: {
    $attrs: {
      handler(t) {
        const { _sortable: e } = this;
        e && rn(t).forEach(([n, o]) => {
          e.option(n, o);
        });
      },
      deep: !0
    }
  },
  methods: {
    getUnderlyingVm(t) {
      return this.componentStructure.getUnderlyingVm(t) || null;
    },
    getUnderlyingPotencialDraggableComponent(t) {
      return t.__draggable_component__;
    },
    emitChanges(t) {
      Bt(() => this.$emit("change", t));
    },
    alterList(t) {
      if (this.list) {
        t(this.list);
        return;
      }
      const e = [...this.modelValue];
      t(e), this.$emit("update:modelValue", e);
    },
    spliceList() {
      const t = (e) => e.splice(...arguments);
      this.alterList(t);
    },
    updatePosition(t, e) {
      const n = (o) => o.splice(e, 0, o.splice(t, 1)[0]);
      this.alterList(n);
    },
    getRelatedContextFromMoveEvent({ to: t, related: e }) {
      const n = this.getUnderlyingPotencialDraggableComponent(t);
      if (!n)
        return { component: n };
      const o = n.realList, r = { list: o, component: n };
      return t !== e && o ? { ...n.getUnderlyingVm(e) || {}, ...r } : r;
    },
    getVmIndexFromDomIndex(t) {
      return this.componentStructure.getVmIndexFromDomIndex(
        t,
        this.targetDomElement
      );
    },
    onDragStart(t) {
      this.context = this.getUnderlyingVm(t.item), t.item._underlying_vm_ = this.clone(this.context.element), ut = t.item;
    },
    onDragAdd(t) {
      const e = t.item._underlying_vm_;
      if (e === void 0)
        return;
      st(t.item);
      const n = this.getVmIndexFromDomIndex(t.newIndex);
      this.spliceList(n, 0, e);
      const o = { element: e, newIndex: n };
      this.emitChanges({ added: o });
    },
    onDragRemove(t) {
      if (kt(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
        st(t.clone);
        return;
      }
      const { index: e, element: n } = this.context;
      this.spliceList(e, 1);
      const o = { element: n, oldIndex: e };
      this.emitChanges({ removed: o });
    },
    onDragUpdate(t) {
      st(t.item), kt(t.from, t.item, t.oldIndex);
      const e = this.context.index, n = this.getVmIndexFromDomIndex(t.newIndex);
      this.updatePosition(e, n);
      const o = { element: this.context.element, oldIndex: e, newIndex: n };
      this.emitChanges({ moved: o });
    },
    computeFutureIndex(t, e) {
      if (!t.element)
        return 0;
      const n = [...e.to.children].filter(
        (a) => a.style.display !== "none"
      ), o = n.indexOf(e.related), r = t.component.getVmIndexFromDomIndex(
        o
      );
      return n.indexOf(ut) !== -1 || !e.willInsertAfter ? r : r + 1;
    },
    onDragMove(t, e) {
      const { move: n, realList: o } = this;
      if (!n || !o)
        return !0;
      const r = this.getRelatedContextFromMoveEvent(t), i = this.computeFutureIndex(r, t), a = {
        ...this.context,
        futureIndex: i
      }, l = {
        ...t,
        relatedContext: r,
        draggedContext: a
      };
      return n(l, e);
    },
    onDragEnd() {
      ut = null;
    }
  }
}), Do = Object.entries(x).map((t) => {
  let e = "";
  switch (t[1]) {
    case x.BarChart:
      e = "bar_chart";
      break;
    case x.Table:
      e = "table";
      break;
    case x.Circular:
      e = "pie_chart";
      break;
    case x.LineChart:
      e = "show_chart";
      break;
    case x.Scorecard:
      e = "money";
      break;
    case x.Spacer:
      e = "space_bar";
      break;
    case x.StackBarChart:
      e = "stacked_bar_chart";
      break;
    case x.StackLineChart:
      e = "stacked_line_chart";
      break;
  }
  return {
    label: Cn(t[0]),
    icon: e,
    value: t[1]
  };
}), Co = /* @__PURE__ */ Ne({
  __name: "WidgetTypeList",
  props: /* @__PURE__ */ pn({
    childClass: {
      type: String,
      default: ""
    },
    excludeWidgeType: {
      type: Array,
      default: () => []
    },
    isList: {
      type: Boolean,
      required: !1,
      default: !1
    }
  }, {
    modelValue: {
      default: ""
    },
    modelModifiers: {}
  }),
  emits: ["update:modelValue"],
  setup(t) {
    const { t: e } = Xt(), n = Vt(t, "modelValue"), o = t, r = mn(
      () => Do.map((i) => ({
        ...i,
        label: e(`report.widget.types.${i.value.toLowerCase()}`)
      }))
    );
    return (i, a) => {
      const l = ge("FmIcon"), s = ge("FmCard");
      return ne(), ce("div", null, [
        (ne(!0), ce(vt, null, gn(r.value.filter(
          (u) => o.excludeWidgeType.indexOf(u.value) === -1
        ), (u, d) => (ne(), vn(s, {
          key: d,
          class: bn(`items-center  ${o.childClass} cursor-pointer rounded-[8px] ${o.isList ? "" : "gap-[16px]"} ${n.value === u.value ? "selected-widget" : ""}`),
          variant: "outlined",
          onClick: (f) => n.value = u.value
        }, {
          default: ze(() => [
            ue(l, {
              name: u.icon,
              size: o.isList ? "md" : "lg",
              outline: !0
            }, null, 8, ["name", "size"]),
            _n(" " + Rt(u.label), 1)
          ]),
          _: 2
        }, 1032, ["class", "onClick"]))), 128))
      ]);
    };
  }
}), Yo = /* @__PURE__ */ bt(Co, [["__scopeId", "data-v-7c1916a3"]]);
function To(t) {
  let e, n, o;
  switch (t) {
    case x.Table:
      e = [], n = !1, o = Tn.top;
      break;
  }
  return {
    schemaNames: [],
    dimensions: [],
    metrics: [],
    filters: [],
    sorts: [],
    breakdownDimension: void 0,
    sparklineDimension: void 0,
    limit: null,
    showGrandTotal: !1,
    rollupPosition: o,
    showSearchBar: n,
    isTransposed: !1,
    isDrillable: !1,
    columnIds: [],
    rowIds: [],
    joinDatasources: e
  };
}
function Wo(t, e) {
  let n = 1, o = 1;
  switch (t) {
    case x.Scorecard:
      n = 1, o = 2;
      break;
    case x.BarChart:
    case x.StackBarChart:
    case x.LineChart:
    case x.StackLineChart:
      n = 4, o = 6;
      break;
    case x.Table:
      n = 4, o = 12;
      break;
    case x.Circular:
      n = 4, o = 4;
      break;
    case x.Spacer:
      n = 0, o = 12;
      break;
  }
  return {
    size: {
      width: o,
      height: n
    },
    widget: {
      title: e || "New widget",
      type: t,
      config: To(t)
    }
  };
}
function Ho(t, e) {
  return t.filter((n, o) => o !== e);
}
const xo = {
  key: 0,
  class: "flex flex-col gap-5"
}, Io = /* @__PURE__ */ Ne({
  __name: "Section",
  setup(t) {
    const e = yn(!1);
    return (n, o) => {
      const r = ge("FmIcon"), i = ge("FmMenuDivider");
      return ne(), ce(vt, null, [
        Lt("div", {
          class: "flex items-center cursor-pointer fm-typo-en-body-lg-600",
          onClick: o[0] || (o[0] = (a) => e.value = !e.value)
        }, [
          Pe(n.$slots, "header", {}, void 0, !0),
          ue(r, {
            name: e.value ? "keyboard_arrow_down" : "keyboard_arrow_up"
          }, null, 8, ["name"])
        ]),
        ue(ct, { name: "slide-fade" }, {
          default: ze(() => [
            e.value ? dt("", !0) : (ne(), ce("div", xo, [
              Pe(n.$slots, "content", {}, void 0, !0)
            ]))
          ]),
          _: 3
        }),
        ue(i)
      ], 64);
    };
  }
}), jo = /* @__PURE__ */ bt(Io, [["__scopeId", "data-v-f83598f1"]]), Oo = /* @__PURE__ */ Ne({
  __name: "TransitionFade",
  props: {
    modelValue: { type: Boolean, required: !0, default: !0 },
    modelModifiers: {}
  },
  emits: ["update:modelValue"],
  setup(t) {
    const e = Vt(t, "modelValue");
    return (n, o) => (ne(), ce(vt, null, [
      ue(ct, { name: "slide-fade-right" }, {
        default: ze(() => [
          e.value ? Pe(n.$slots, "right", { key: 0 }, void 0, !0) : dt("", !0)
        ]),
        _: 3
      }),
      ue(ct, { name: "slide-fade-left" }, {
        default: ze(() => [
          e.value ? dt("", !0) : Pe(n.$slots, "left", { key: 0 }, void 0, !0)
        ]),
        _: 3
      })
    ], 64));
  }
}), zo = /* @__PURE__ */ bt(Oo, [["__scopeId", "data-v-a98ca9bc"]]);
export {
  jo as S,
  zo as T,
  Yo as W,
  Xo as _,
  To as a,
  $o as d,
  Ho as h,
  Wo as i
};
