UNPKG

vdrag-topo-ui

Version:

3,726 lines 126 kB
import { defineComponent as De, openBlock as Me, createElementBlock as Ne, createElementVNode as ge, watch as Vt, nextTick as xn, getCurrentScope as Si, onScopeDispose as Ei, unref as Ti, onMounted as xr, ref as kt, readonly as xi, getCurrentInstance as Ai, shallowRef as Ci, computed as Oi, createVNode as zn } from "vue";
/*! Element Plus Icons Vue v2.3.1 */
var Di = /* @__PURE__ */ De({
  name: "CaretRight",
  __name: "caret-right",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M384 192v640l384-320.064z"
      })
    ]));
  }
}), vf = Di, Pi = /* @__PURE__ */ De({
  name: "CircleCloseFilled",
  __name: "circle-close-filled",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
      })
    ]));
  }
}), mf = Pi, Ii = /* @__PURE__ */ De({
  name: "Coin",
  __name: "coin",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"
      }),
      ge("path", {
        fill: "currentColor",
        d: "m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"
      }),
      ge("path", {
        fill: "currentColor",
        d: "M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"
      })
    ]));
  }
}), bf = Ii, $i = /* @__PURE__ */ De({
  name: "DataBoard",
  __name: "data-board",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M32 128h960v64H32z"
      }),
      ge("path", {
        fill: "currentColor",
        d: "M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"
      }),
      ge("path", {
        fill: "currentColor",
        d: "M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"
      })
    ]));
  }
}), _f = $i, ji = /* @__PURE__ */ De({
  name: "Delete",
  __name: "delete",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
      })
    ]));
  }
}), yf = ji, Fi = /* @__PURE__ */ De({
  name: "FullScreen",
  __name: "full-screen",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
      })
    ]));
  }
}), wf = Fi, Mi = /* @__PURE__ */ De({
  name: "Plus",
  __name: "plus",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
      })
    ]));
  }
}), Sf = Mi, Ni = /* @__PURE__ */ De({
  name: "QuestionFilled",
  __name: "question-filled",
  setup(e) {
    return (t, n) => (Me(), Ne("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      ge("path", {
        fill: "currentColor",
        d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
      })
    ]));
  }
}), Ef = Ni;
const Tf = (e) => (e.install = (t) => {
  const n = e.name || e.__name;
  t.component(n, e);
}, e);
function Ar(e) {
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Cr = { exports: {} };
(function(e) {
  var t = Object.prototype.hasOwnProperty, n = "~";
  function r() {
  }
  Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (n = !1));
  function i(c, l, h) {
    this.fn = c, this.context = l, this.once = h || !1;
  }
  function a(c, l, h, p, g) {
    if (typeof h != "function")
      throw new TypeError("The listener must be a function");
    var m = new i(h, p || c, g), b = n ? n + l : l;
    return c._events[b] ? c._events[b].fn ? c._events[b] = [c._events[b], m] : c._events[b].push(m) : (c._events[b] = m, c._eventsCount++), c;
  }
  function f(c, l) {
    --c._eventsCount === 0 ? c._events = new r() : delete c._events[l];
  }
  function u() {
    this._events = new r(), this._eventsCount = 0;
  }
  u.prototype.eventNames = function() {
    var l = [], h, p;
    if (this._eventsCount === 0)
      return l;
    for (p in h = this._events)
      t.call(h, p) && l.push(n ? p.slice(1) : p);
    return Object.getOwnPropertySymbols ? l.concat(Object.getOwnPropertySymbols(h)) : l;
  }, u.prototype.listeners = function(l) {
    var h = n ? n + l : l, p = this._events[h];
    if (!p)
      return [];
    if (p.fn)
      return [p.fn];
    for (var g = 0, m = p.length, b = new Array(m); g < m; g++)
      b[g] = p[g].fn;
    return b;
  }, u.prototype.listenerCount = function(l) {
    var h = n ? n + l : l, p = this._events[h];
    return p ? p.fn ? 1 : p.length : 0;
  }, u.prototype.emit = function(l, h, p, g, m, b) {
    var E = n ? n + l : l;
    if (!this._events[E])
      return !1;
    var y = this._events[E], D = arguments.length, I, O;
    if (y.fn) {
      switch (y.once && this.removeListener(l, y.fn, void 0, !0), D) {
        case 1:
          return y.fn.call(y.context), !0;
        case 2:
          return y.fn.call(y.context, h), !0;
        case 3:
          return y.fn.call(y.context, h, p), !0;
        case 4:
          return y.fn.call(y.context, h, p, g), !0;
        case 5:
          return y.fn.call(y.context, h, p, g, m), !0;
        case 6:
          return y.fn.call(y.context, h, p, g, m, b), !0;
      }
      for (O = 1, I = new Array(D - 1); O < D; O++)
        I[O - 1] = arguments[O];
      y.fn.apply(y.context, I);
    } else {
      var z = y.length, G;
      for (O = 0; O < z; O++)
        switch (y[O].once && this.removeListener(l, y[O].fn, void 0, !0), D) {
          case 1:
            y[O].fn.call(y[O].context);
            break;
          case 2:
            y[O].fn.call(y[O].context, h);
            break;
          case 3:
            y[O].fn.call(y[O].context, h, p);
            break;
          case 4:
            y[O].fn.call(y[O].context, h, p, g);
            break;
          default:
            if (!I)
              for (G = 1, I = new Array(D - 1); G < D; G++)
                I[G - 1] = arguments[G];
            y[O].fn.apply(y[O].context, I);
        }
    }
    return !0;
  }, u.prototype.on = function(l, h, p) {
    return a(this, l, h, p, !1);
  }, u.prototype.once = function(l, h, p) {
    return a(this, l, h, p, !0);
  }, u.prototype.removeListener = function(l, h, p, g) {
    var m = n ? n + l : l;
    if (!this._events[m])
      return this;
    if (!h)
      return f(this, m), this;
    var b = this._events[m];
    if (b.fn)
      b.fn === h && (!g || b.once) && (!p || b.context === p) && f(this, m);
    else {
      for (var E = 0, y = [], D = b.length; E < D; E++)
        (b[E].fn !== h || g && !b[E].once || p && b[E].context !== p) && y.push(b[E]);
      y.length ? this._events[m] = y.length === 1 ? y[0] : y : f(this, m);
    }
    return this;
  }, u.prototype.removeAllListeners = function(l) {
    var h;
    return l ? (h = n ? n + l : l, this._events[h] && f(this, h)) : (this._events = new r(), this._eventsCount = 0), this;
  }, u.prototype.off = u.prototype.removeListener, u.prototype.addListener = u.prototype.on, u.prefixed = n, u.EventEmitter = u, e.exports = u;
})(Cr);
var Ri = Cr.exports;
const Li = /* @__PURE__ */ Ar(Ri);
new Li();
const Hi = typeof window < "u", et = Hi && window.navigator.userAgent.toLowerCase();
et && et.indexOf("msie 9.0") > 0;
et && et.indexOf("edge/") > 0;
et && et.indexOf("android") > 0;
function xf(e, t) {
  let n = !1;
  const r = function(a) {
    var f;
    (f = t.drag) == null || f.call(t, a);
  }, i = (a) => {
    var f;
    Gn(document, "mousemove", r), Gn(document, "mouseup", i), document.onselectstart = null, document.ondragstart = null, n = !1, (f = t.end) == null || f.call(t, a);
  };
  Qt(e, "mousedown", (a) => {
    var f;
    n || (document.onselectstart = () => !1, document.ondragstart = () => !1, Qt(document, "mousemove", r), Qt(document, "mouseup", i), n = !0, (f = t.start) == null || f.call(t, a));
  });
}
function Gn(e, t, n, r = !1) {
  e && t && n && e.removeEventListener(t, n, r);
}
function Qt(e, t, n, r = !1) {
  e && t && n && e.addEventListener(t, n, r);
}
function ki(e) {
  return Si() ? (Ei(e), !0) : !1;
}
function _t(e) {
  return typeof e == "function" ? e() : Ti(e);
}
const Or = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const Bi = Object.prototype.toString, zi = (e) => Bi.call(e) === "[object Object]", Ze = () => {
}, Gi = /* @__PURE__ */ Wi();
function Wi() {
  var e, t;
  return Or && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
}
function Dr(e, t) {
  function n(...r) {
    return new Promise((i, a) => {
      Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(i).catch(a);
    });
  }
  return n;
}
const Pr = (e) => e();
function Xi(e, t = {}) {
  let n, r, i = Ze;
  const a = (u) => {
    clearTimeout(u), i(), i = Ze;
  };
  return (u) => {
    const c = _t(e), l = _t(t.maxWait);
    return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r && (a(r), r = null), Promise.resolve(u())) : new Promise((h, p) => {
      i = t.rejectOnCancel ? p : h, l && !r && (r = setTimeout(() => {
        n && a(n), r = null, h(u());
      }, l)), n = setTimeout(() => {
        r && a(r), r = null, h(u());
      }, c);
    });
  };
}
function Yi(e = Pr) {
  const t = kt(!0);
  function n() {
    t.value = !1;
  }
  function r() {
    t.value = !0;
  }
  const i = (...a) => {
    t.value && e(...a);
  };
  return { isActive: xi(t), pause: n, resume: r, eventFilter: i };
}
function Vi(e) {
  return e || Ai();
}
function Af(e, t = 200, n = {}) {
  return Dr(
    Xi(t, n),
    e
  );
}
function Ui(e, t, n = {}) {
  const {
    eventFilter: r = Pr,
    ...i
  } = n;
  return Vt(
    e,
    Dr(
      r,
      t
    ),
    i
  );
}
function Ki(e, t, n = {}) {
  const {
    eventFilter: r,
    ...i
  } = n, { eventFilter: a, pause: f, resume: u, isActive: c } = Yi(r);
  return { stop: Ui(
    e,
    t,
    {
      ...i,
      eventFilter: a
    }
  ), pause: f, resume: u, isActive: c };
}
function qi(e, t = !0, n) {
  Vi() ? xr(e, n) : t ? e() : xn(e);
}
function Cf(e, t, n) {
  const r = Vt(
    e,
    (i, a, f) => {
      i && (n != null && n.once && xn(() => r()), t(i, a, f));
    },
    {
      ...n,
      once: !1
    }
  );
  return r;
}
function lt(e) {
  var t;
  const n = _t(e);
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
}
const yt = Or ? window : void 0;
function dt(...e) {
  let t, n, r, i;
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, i] = e, t = yt) : [t, n, r, i] = e, !t)
    return Ze;
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  const a = [], f = () => {
    a.forEach((h) => h()), a.length = 0;
  }, u = (h, p, g, m) => (h.addEventListener(p, g, m), () => h.removeEventListener(p, g, m)), c = Vt(
    () => [lt(t), _t(i)],
    ([h, p]) => {
      if (f(), !h)
        return;
      const g = zi(p) ? { ...p } : p;
      a.push(
        ...n.flatMap((m) => r.map((b) => u(h, m, b, g)))
      );
    },
    { immediate: !0, flush: "post" }
  ), l = () => {
    c(), f();
  };
  return ki(l), l;
}
let Wn = !1;
function Of(e, t, n = {}) {
  const { window: r = yt, ignore: i = [], capture: a = !0, detectIframe: f = !1 } = n;
  if (!r)
    return Ze;
  Gi && !Wn && (Wn = !0, Array.from(r.document.body.children).forEach((g) => g.addEventListener("click", Ze)), r.document.documentElement.addEventListener("click", Ze));
  let u = !0;
  const c = (g) => i.some((m) => {
    if (typeof m == "string")
      return Array.from(r.document.querySelectorAll(m)).some((b) => b === g.target || g.composedPath().includes(b));
    {
      const b = lt(m);
      return b && (g.target === b || g.composedPath().includes(b));
    }
  }), h = [
    dt(r, "click", (g) => {
      const m = lt(e);
      if (!(!m || m === g.target || g.composedPath().includes(m))) {
        if (g.detail === 0 && (u = !c(g)), !u) {
          u = !0;
          return;
        }
        t(g);
      }
    }, { passive: !0, capture: a }),
    dt(r, "pointerdown", (g) => {
      const m = lt(e);
      u = !c(g) && !!(m && !g.composedPath().includes(m));
    }, { passive: !0 }),
    f && dt(r, "blur", (g) => {
      setTimeout(() => {
        var m;
        const b = lt(e);
        ((m = r.document.activeElement) == null ? void 0 : m.tagName) === "IFRAME" && !(b != null && b.contains(r.document.activeElement)) && t(g);
      }, 0);
    })
  ].filter(Boolean);
  return () => h.forEach((g) => g());
}
const Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Dt = "__vueuse_ssr_handlers__", Ji = /* @__PURE__ */ Zi();
function Zi() {
  return Dt in Ot || (Ot[Dt] = Ot[Dt] || {}), Ot[Dt];
}
function Qi(e, t) {
  return Ji[e] || t;
}
function ea(e) {
  return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
}
const ta = {
  boolean: {
    read: (e) => e === "true",
    write: (e) => String(e)
  },
  object: {
    read: (e) => JSON.parse(e),
    write: (e) => JSON.stringify(e)
  },
  number: {
    read: (e) => Number.parseFloat(e),
    write: (e) => String(e)
  },
  any: {
    read: (e) => e,
    write: (e) => String(e)
  },
  string: {
    read: (e) => e,
    write: (e) => String(e)
  },
  map: {
    read: (e) => new Map(JSON.parse(e)),
    write: (e) => JSON.stringify(Array.from(e.entries()))
  },
  set: {
    read: (e) => new Set(JSON.parse(e)),
    write: (e) => JSON.stringify(Array.from(e))
  },
  date: {
    read: (e) => new Date(e),
    write: (e) => e.toISOString()
  }
}, Xn = "vueuse-storage";
function na(e, t, n, r = {}) {
  var i;
  const {
    flush: a = "pre",
    deep: f = !0,
    listenToStorageChanges: u = !0,
    writeDefaults: c = !0,
    mergeDefaults: l = !1,
    shallow: h,
    window: p = yt,
    eventFilter: g,
    onError: m = (P) => {
      console.error(P);
    },
    initOnMounted: b
  } = r, E = (h ? Ci : kt)(typeof t == "function" ? t() : t);
  if (!n)
    try {
      n = Qi("getDefaultStorage", () => {
        var P;
        return (P = yt) == null ? void 0 : P.localStorage;
      })();
    } catch (P) {
      m(P);
    }
  if (!n)
    return E;
  const y = _t(t), D = ea(y), I = (i = r.serializer) != null ? i : ta[D], { pause: O, resume: z } = Ki(
    E,
    () => $(E.value),
    { flush: a, deep: f, eventFilter: g }
  );
  p && u && qi(() => {
    dt(p, "storage", Z), dt(p, Xn, U), b && Z();
  }), b || Z();
  function G(P, R) {
    p && p.dispatchEvent(new CustomEvent(Xn, {
      detail: {
        key: e,
        oldValue: P,
        newValue: R,
        storageArea: n
      }
    }));
  }
  function $(P) {
    try {
      const R = n.getItem(e);
      if (P == null)
        G(R, null), n.removeItem(e);
      else {
        const te = I.write(P);
        R !== te && (n.setItem(e, te), G(R, te));
      }
    } catch (R) {
      m(R);
    }
  }
  function V(P) {
    const R = P ? P.newValue : n.getItem(e);
    if (R == null)
      return c && y != null && n.setItem(e, I.write(y)), y;
    if (!P && l) {
      const te = I.read(R);
      return typeof l == "function" ? l(te, y) : D === "object" && !Array.isArray(te) ? { ...y, ...te } : te;
    } else
      return typeof R != "string" ? R : I.read(R);
  }
  function Z(P) {
    if (!(P && P.storageArea !== n)) {
      if (P && P.key == null) {
        E.value = y;
        return;
      }
      if (!(P && P.key !== e)) {
        O();
        try {
          (P == null ? void 0 : P.newValue) !== I.write(E.value) && (E.value = V(P));
        } catch (R) {
          m(R);
        } finally {
          P ? xn(z) : z();
        }
      }
    }
  }
  function U(P) {
    Z(P.detail);
  }
  return E;
}
function Df(e, t, n = {}) {
  const { window: r = yt } = n;
  return na(e, t, r == null ? void 0 : r.localStorage, n);
}
var Ir = { exports: {} };
(function(e) {
  (function(t) {
    var n = /^\s+/, r = /\s+$/, i = 0, a = t.round, f = t.min, u = t.max, c = t.random;
    function l(o, d) {
      if (o = o || "", d = d || {}, o instanceof l)
        return o;
      if (!(this instanceof l))
        return new l(o, d);
      var s = h(o);
      this._originalInput = o, this._r = s.r, this._g = s.g, this._b = s.b, this._a = s.a, this._roundA = a(100 * this._a) / 100, this._format = d.format || s.format, this._gradientType = d.gradientType, this._r < 1 && (this._r = a(this._r)), this._g < 1 && (this._g = a(this._g)), this._b < 1 && (this._b = a(this._b)), this._ok = s.ok, this._tc_id = i++;
    }
    l.prototype = {
      isDark: function() {
        return this.getBrightness() < 128;
      },
      isLight: function() {
        return !this.isDark();
      },
      isValid: function() {
        return this._ok;
      },
      getOriginalInput: function() {
        return this._originalInput;
      },
      getFormat: function() {
        return this._format;
      },
      getAlpha: function() {
        return this._a;
      },
      getBrightness: function() {
        var o = this.toRgb();
        return (o.r * 299 + o.g * 587 + o.b * 114) / 1e3;
      },
      getLuminance: function() {
        var o = this.toRgb(), d, s, v, S, w, L;
        return d = o.r / 255, s = o.g / 255, v = o.b / 255, d <= 0.03928 ? S = d / 12.92 : S = t.pow((d + 0.055) / 1.055, 2.4), s <= 0.03928 ? w = s / 12.92 : w = t.pow((s + 0.055) / 1.055, 2.4), v <= 0.03928 ? L = v / 12.92 : L = t.pow((v + 0.055) / 1.055, 2.4), 0.2126 * S + 0.7152 * w + 0.0722 * L;
      },
      setAlpha: function(o) {
        return this._a = k(o), this._roundA = a(100 * this._a) / 100, this;
      },
      toHsv: function() {
        var o = b(this._r, this._g, this._b);
        return { h: o.h * 360, s: o.s, v: o.v, a: this._a };
      },
      toHsvString: function() {
        var o = b(this._r, this._g, this._b), d = a(o.h * 360), s = a(o.s * 100), v = a(o.v * 100);
        return this._a == 1 ? "hsv(" + d + ", " + s + "%, " + v + "%)" : "hsva(" + d + ", " + s + "%, " + v + "%, " + this._roundA + ")";
      },
      toHsl: function() {
        var o = g(this._r, this._g, this._b);
        return { h: o.h * 360, s: o.s, l: o.l, a: this._a };
      },
      toHslString: function() {
        var o = g(this._r, this._g, this._b), d = a(o.h * 360), s = a(o.s * 100), v = a(o.l * 100);
        return this._a == 1 ? "hsl(" + d + ", " + s + "%, " + v + "%)" : "hsla(" + d + ", " + s + "%, " + v + "%, " + this._roundA + ")";
      },
      toHex: function(o) {
        return y(this._r, this._g, this._b, o);
      },
      toHexString: function(o) {
        return "#" + this.toHex(o);
      },
      toHex8: function(o) {
        return D(this._r, this._g, this._b, this._a, o);
      },
      toHex8String: function(o) {
        return "#" + this.toHex8(o);
      },
      toRgb: function() {
        return { r: a(this._r), g: a(this._g), b: a(this._b), a: this._a };
      },
      toRgbString: function() {
        return this._a == 1 ? "rgb(" + a(this._r) + ", " + a(this._g) + ", " + a(this._b) + ")" : "rgba(" + a(this._r) + ", " + a(this._g) + ", " + a(this._b) + ", " + this._roundA + ")";
      },
      toPercentageRgb: function() {
        return { r: a(N(this._r, 255) * 100) + "%", g: a(N(this._g, 255) * 100) + "%", b: a(N(this._b, 255) * 100) + "%", a: this._a };
      },
      toPercentageRgbString: function() {
        return this._a == 1 ? "rgb(" + a(N(this._r, 255) * 100) + "%, " + a(N(this._g, 255) * 100) + "%, " + a(N(this._b, 255) * 100) + "%)" : "rgba(" + a(N(this._r, 255) * 100) + "%, " + a(N(this._g, 255) * 100) + "%, " + a(N(this._b, 255) * 100) + "%, " + this._roundA + ")";
      },
      toName: function() {
        return this._a === 0 ? "transparent" : this._a < 1 ? !1 : T[y(this._r, this._g, this._b, !0)] || !1;
      },
      toFilter: function(o) {
        var d = "#" + I(this._r, this._g, this._b, this._a), s = d, v = this._gradientType ? "GradientType = 1, " : "";
        if (o) {
          var S = l(o);
          s = "#" + I(S._r, S._g, S._b, S._a);
        }
        return "progid:DXImageTransform.Microsoft.gradient(" + v + "startColorstr=" + d + ",endColorstr=" + s + ")";
      },
      toString: function(o) {
        var d = !!o;
        o = o || this._format;
        var s = !1, v = this._a < 1 && this._a >= 0, S = !d && v && (o === "hex" || o === "hex6" || o === "hex3" || o === "hex4" || o === "hex8" || o === "name");
        return S ? o === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (o === "rgb" && (s = this.toRgbString()), o === "prgb" && (s = this.toPercentageRgbString()), (o === "hex" || o === "hex6") && (s = this.toHexString()), o === "hex3" && (s = this.toHexString(!0)), o === "hex4" && (s = this.toHex8String(!0)), o === "hex8" && (s = this.toHex8String()), o === "name" && (s = this.toName()), o === "hsl" && (s = this.toHslString()), o === "hsv" && (s = this.toHsvString()), s || this.toHexString());
      },
      clone: function() {
        return l(this.toString());
      },
      _applyModification: function(o, d) {
        var s = o.apply(null, [this].concat([].slice.call(d)));
        return this._r = s._r, this._g = s._g, this._b = s._b, this.setAlpha(s._a), this;
      },
      lighten: function() {
        return this._applyModification($, arguments);
      },
      brighten: function() {
        return this._applyModification(V, arguments);
      },
      darken: function() {
        return this._applyModification(Z, arguments);
      },
      desaturate: function() {
        return this._applyModification(O, arguments);
      },
      saturate: function() {
        return this._applyModification(z, arguments);
      },
      greyscale: function() {
        return this._applyModification(G, arguments);
      },
      spin: function() {
        return this._applyModification(U, arguments);
      },
      _applyCombination: function(o, d) {
        return o.apply(null, [this].concat([].slice.call(d)));
      },
      analogous: function() {
        return this._applyCombination(K, arguments);
      },
      complement: function() {
        return this._applyCombination(P, arguments);
      },
      monochromatic: function() {
        return this._applyCombination(re, arguments);
      },
      splitcomplement: function() {
        return this._applyCombination(le, arguments);
      },
      triad: function() {
        return this._applyCombination(R, arguments);
      },
      tetrad: function() {
        return this._applyCombination(te, arguments);
      }
    }, l.fromRatio = function(o, d) {
      if (typeof o == "object") {
        var s = {};
        for (var v in o)
          o.hasOwnProperty(v) && (v === "a" ? s[v] = o[v] : s[v] = at(o[v]));
        o = s;
      }
      return l(o, d);
    };
    function h(o) {
      var d = { r: 0, g: 0, b: 0 }, s = 1, v = null, S = null, w = null, L = !1, X = !1;
      return typeof o == "string" && (o = yi(o)), typeof o == "object" && (Ae(o.r) && Ae(o.g) && Ae(o.b) ? (d = p(o.r, o.g, o.b), L = !0, X = String(o.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(o.h) && Ae(o.s) && Ae(o.v) ? (v = at(o.s), S = at(o.v), d = E(o.h, v, S), L = !0, X = "hsv") : Ae(o.h) && Ae(o.s) && Ae(o.l) && (v = at(o.s), w = at(o.l), d = m(o.h, v, w), L = !0, X = "hsl"), o.hasOwnProperty("a") && (s = o.a)), s = k(s), {
        ok: L,
        format: o.format || X,
        r: f(255, u(d.r, 0)),
        g: f(255, u(d.g, 0)),
        b: f(255, u(d.b, 0)),
        a: s
      };
    }
    function p(o, d, s) {
      return {
        r: N(o, 255) * 255,
        g: N(d, 255) * 255,
        b: N(s, 255) * 255
      };
    }
    function g(o, d, s) {
      o = N(o, 255), d = N(d, 255), s = N(s, 255);
      var v = u(o, d, s), S = f(o, d, s), w, L, X = (v + S) / 2;
      if (v == S)
        w = L = 0;
      else {
        var J = v - S;
        switch (L = X > 0.5 ? J / (2 - v - S) : J / (v + S), v) {
          case o:
            w = (d - s) / J + (d < s ? 6 : 0);
            break;
          case d:
            w = (s - o) / J + 2;
            break;
          case s:
            w = (o - d) / J + 4;
            break;
        }
        w /= 6;
      }
      return { h: w, s: L, l: X };
    }
    function m(o, d, s) {
      var v, S, w;
      o = N(o, 360), d = N(d, 100), s = N(s, 100);
      function L(he, ot, _e) {
        return _e < 0 && (_e += 1), _e > 1 && (_e -= 1), _e < 1 / 6 ? he + (ot - he) * 6 * _e : _e < 1 / 2 ? ot : _e < 2 / 3 ? he + (ot - he) * (2 / 3 - _e) * 6 : he;
      }
      if (d === 0)
        v = S = w = s;
      else {
        var X = s < 0.5 ? s * (1 + d) : s + d - s * d, J = 2 * s - X;
        v = L(J, X, o + 1 / 3), S = L(J, X, o), w = L(J, X, o - 1 / 3);
      }
      return { r: v * 255, g: S * 255, b: w * 255 };
    }
    function b(o, d, s) {
      o = N(o, 255), d = N(d, 255), s = N(s, 255);
      var v = u(o, d, s), S = f(o, d, s), w, L, X = v, J = v - S;
      if (L = v === 0 ? 0 : J / v, v == S)
        w = 0;
      else {
        switch (v) {
          case o:
            w = (d - s) / J + (d < s ? 6 : 0);
            break;
          case d:
            w = (s - o) / J + 2;
            break;
          case s:
            w = (o - d) / J + 4;
            break;
        }
        w /= 6;
      }
      return { h: w, s: L, v: X };
    }
    function E(o, d, s) {
      o = N(o, 360) * 6, d = N(d, 100), s = N(s, 100);
      var v = t.floor(o), S = o - v, w = s * (1 - d), L = s * (1 - S * d), X = s * (1 - (1 - S) * d), J = v % 6, he = [s, L, w, w, X, s][J], ot = [X, s, s, L, w, w][J], _e = [w, w, X, s, s, L][J];
      return { r: he * 255, g: ot * 255, b: _e * 255 };
    }
    function y(o, d, s, v) {
      var S = [
        me(a(o).toString(16)),
        me(a(d).toString(16)),
        me(a(s).toString(16))
      ];
      return v && S[0].charAt(0) == S[0].charAt(1) && S[1].charAt(0) == S[1].charAt(1) && S[2].charAt(0) == S[2].charAt(1) ? S[0].charAt(0) + S[1].charAt(0) + S[2].charAt(0) : S.join("");
    }
    function D(o, d, s, v, S) {
      var w = [
        me(a(o).toString(16)),
        me(a(d).toString(16)),
        me(a(s).toString(16)),
        me(kn(v))
      ];
      return S && w[0].charAt(0) == w[0].charAt(1) && w[1].charAt(0) == w[1].charAt(1) && w[2].charAt(0) == w[2].charAt(1) && w[3].charAt(0) == w[3].charAt(1) ? w[0].charAt(0) + w[1].charAt(0) + w[2].charAt(0) + w[3].charAt(0) : w.join("");
    }
    function I(o, d, s, v) {
      var S = [
        me(kn(v)),
        me(a(o).toString(16)),
        me(a(d).toString(16)),
        me(a(s).toString(16))
      ];
      return S.join("");
    }
    l.equals = function(o, d) {
      return !o || !d ? !1 : l(o).toRgbString() == l(d).toRgbString();
    }, l.random = function() {
      return l.fromRatio({
        r: c(),
        g: c(),
        b: c()
      });
    };
    function O(o, d) {
      d = d === 0 ? 0 : d || 10;
      var s = l(o).toHsl();
      return s.s -= d / 100, s.s = Ee(s.s), l(s);
    }
    function z(o, d) {
      d = d === 0 ? 0 : d || 10;
      var s = l(o).toHsl();
      return s.s += d / 100, s.s = Ee(s.s), l(s);
    }
    function G(o) {
      return l(o).desaturate(100);
    }
    function $(o, d) {
      d = d === 0 ? 0 : d || 10;
      var s = l(o).toHsl();
      return s.l += d / 100, s.l = Ee(s.l), l(s);
    }
    function V(o, d) {
      d = d === 0 ? 0 : d || 10;
      var s = l(o).toRgb();
      return s.r = u(0, f(255, s.r - a(255 * -(d / 100)))), s.g = u(0, f(255, s.g - a(255 * -(d / 100)))), s.b = u(0, f(255, s.b - a(255 * -(d / 100)))), l(s);
    }
    function Z(o, d) {
      d = d === 0 ? 0 : d || 10;
      var s = l(o).toHsl();
      return s.l -= d / 100, s.l = Ee(s.l), l(s);
    }
    function U(o, d) {
      var s = l(o).toHsl(), v = (s.h + d) % 360;
      return s.h = v < 0 ? 360 + v : v, l(s);
    }
    function P(o) {
      var d = l(o).toHsl();
      return d.h = (d.h + 180) % 360, l(d);
    }
    function R(o) {
      var d = l(o).toHsl(), s = d.h;
      return [
        l(o),
        l({ h: (s + 120) % 360, s: d.s, l: d.l }),
        l({ h: (s + 240) % 360, s: d.s, l: d.l })
      ];
    }
    function te(o) {
      var d = l(o).toHsl(), s = d.h;
      return [
        l(o),
        l({ h: (s + 90) % 360, s: d.s, l: d.l }),
        l({ h: (s + 180) % 360, s: d.s, l: d.l }),
        l({ h: (s + 270) % 360, s: d.s, l: d.l })
      ];
    }
    function le(o) {
      var d = l(o).toHsl(), s = d.h;
      return [
        l(o),
        l({ h: (s + 72) % 360, s: d.s, l: d.l }),
        l({ h: (s + 216) % 360, s: d.s, l: d.l })
      ];
    }
    function K(o, d, s) {
      d = d || 6, s = s || 30;
      var v = l(o).toHsl(), S = 360 / s, w = [l(o)];
      for (v.h = (v.h - (S * d >> 1) + 720) % 360; --d; )
        v.h = (v.h + S) % 360, w.push(l(v));
      return w;
    }
    function re(o, d) {
      d = d || 6;
      for (var s = l(o).toHsv(), v = s.h, S = s.s, w = s.v, L = [], X = 1 / d; d--; )
        L.push(l({ h: v, s: S, v: w })), w = (w + X) % 1;
      return L;
    }
    l.mix = function(o, d, s) {
      s = s === 0 ? 0 : s || 50;
      var v = l(o).toRgb(), S = l(d).toRgb(), w = s / 100, L = {
        r: (S.r - v.r) * w + v.r,
        g: (S.g - v.g) * w + v.g,
        b: (S.b - v.b) * w + v.b,
        a: (S.a - v.a) * w + v.a
      };
      return l(L);
    }, l.readability = function(o, d) {
      var s = l(o), v = l(d);
      return (t.max(s.getLuminance(), v.getLuminance()) + 0.05) / (t.min(s.getLuminance(), v.getLuminance()) + 0.05);
    }, l.isReadable = function(o, d, s) {
      var v = l.readability(o, d), S, w;
      switch (w = !1, S = wi(s), S.level + S.size) {
        case "AAsmall":
        case "AAAlarge":
          w = v >= 4.5;
          break;
        case "AAlarge":
          w = v >= 3;
          break;
        case "AAAsmall":
          w = v >= 7;
          break;
      }
      return w;
    }, l.mostReadable = function(o, d, s) {
      var v = null, S = 0, w, L, X, J;
      s = s || {}, L = s.includeFallbackColors, X = s.level, J = s.size;
      for (var he = 0; he < d.length; he++)
        w = l.readability(o, d[he]), w > S && (S = w, v = l(d[he]));
      return l.isReadable(o, v, { level: X, size: J }) || !L ? v : (s.includeFallbackColors = !1, l.mostReadable(o, ["#fff", "#000"], s));
    };
    var ae = l.names = {
      aliceblue: "f0f8ff",
      antiquewhite: "faebd7",
      aqua: "0ff",
      aquamarine: "7fffd4",
      azure: "f0ffff",
      beige: "f5f5dc",
      bisque: "ffe4c4",
      black: "000",
      blanchedalmond: "ffebcd",
      blue: "00f",
      blueviolet: "8a2be2",
      brown: "a52a2a",
      burlywood: "deb887",
      burntsienna: "ea7e5d",
      cadetblue: "5f9ea0",
      chartreuse: "7fff00",
      chocolate: "d2691e",
      coral: "ff7f50",
      cornflowerblue: "6495ed",
      cornsilk: "fff8dc",
      crimson: "dc143c",
      cyan: "0ff",
      darkblue: "00008b",
      darkcyan: "008b8b",
      darkgoldenrod: "b8860b",
      darkgray: "a9a9a9",
      darkgreen: "006400",
      darkgrey: "a9a9a9",
      darkkhaki: "bdb76b",
      darkmagenta: "8b008b",
      darkolivegreen: "556b2f",
      darkorange: "ff8c00",
      darkorchid: "9932cc",
      darkred: "8b0000",
      darksalmon: "e9967a",
      darkseagreen: "8fbc8f",
      darkslateblue: "483d8b",
      darkslategray: "2f4f4f",
      darkslategrey: "2f4f4f",
      darkturquoise: "00ced1",
      darkviolet: "9400d3",
      deeppink: "ff1493",
      deepskyblue: "00bfff",
      dimgray: "696969",
      dimgrey: "696969",
      dodgerblue: "1e90ff",
      firebrick: "b22222",
      floralwhite: "fffaf0",
      forestgreen: "228b22",
      fuchsia: "f0f",
      gainsboro: "dcdcdc",
      ghostwhite: "f8f8ff",
      gold: "ffd700",
      goldenrod: "daa520",
      gray: "808080",
      green: "008000",
      greenyellow: "adff2f",
      grey: "808080",
      honeydew: "f0fff0",
      hotpink: "ff69b4",
      indianred: "cd5c5c",
      indigo: "4b0082",
      ivory: "fffff0",
      khaki: "f0e68c",
      lavender: "e6e6fa",
      lavenderblush: "fff0f5",
      lawngreen: "7cfc00",
      lemonchiffon: "fffacd",
      lightblue: "add8e6",
      lightcoral: "f08080",
      lightcyan: "e0ffff",
      lightgoldenrodyellow: "fafad2",
      lightgray: "d3d3d3",
      lightgreen: "90ee90",
      lightgrey: "d3d3d3",
      lightpink: "ffb6c1",
      lightsalmon: "ffa07a",
      lightseagreen: "20b2aa",
      lightskyblue: "87cefa",
      lightslategray: "789",
      lightslategrey: "789",
      lightsteelblue: "b0c4de",
      lightyellow: "ffffe0",
      lime: "0f0",
      limegreen: "32cd32",
      linen: "faf0e6",
      magenta: "f0f",
      maroon: "800000",
      mediumaquamarine: "66cdaa",
      mediumblue: "0000cd",
      mediumorchid: "ba55d3",
      mediumpurple: "9370db",
      mediumseagreen: "3cb371",
      mediumslateblue: "7b68ee",
      mediumspringgreen: "00fa9a",
      mediumturquoise: "48d1cc",
      mediumvioletred: "c71585",
      midnightblue: "191970",
      mintcream: "f5fffa",
      mistyrose: "ffe4e1",
      moccasin: "ffe4b5",
      navajowhite: "ffdead",
      navy: "000080",
      oldlace: "fdf5e6",
      olive: "808000",
      olivedrab: "6b8e23",
      orange: "ffa500",
      orangered: "ff4500",
      orchid: "da70d6",
      palegoldenrod: "eee8aa",
      palegreen: "98fb98",
      paleturquoise: "afeeee",
      palevioletred: "db7093",
      papayawhip: "ffefd5",
      peachpuff: "ffdab9",
      peru: "cd853f",
      pink: "ffc0cb",
      plum: "dda0dd",
      powderblue: "b0e0e6",
      purple: "800080",
      rebeccapurple: "663399",
      red: "f00",
      rosybrown: "bc8f8f",
      royalblue: "4169e1",
      saddlebrown: "8b4513",
      salmon: "fa8072",
      sandybrown: "f4a460",
      seagreen: "2e8b57",
      seashell: "fff5ee",
      sienna: "a0522d",
      silver: "c0c0c0",
      skyblue: "87ceeb",
      slateblue: "6a5acd",
      slategray: "708090",
      slategrey: "708090",
      snow: "fffafa",
      springgreen: "00ff7f",
      steelblue: "4682b4",
      tan: "d2b48c",
      teal: "008080",
      thistle: "d8bfd8",
      tomato: "ff6347",
      turquoise: "40e0d0",
      violet: "ee82ee",
      wheat: "f5deb3",
      white: "fff",
      whitesmoke: "f5f5f5",
      yellow: "ff0",
      yellowgreen: "9acd32"
    }, T = l.hexNames = j(ae);
    function j(o) {
      var d = {};
      for (var s in o)
        o.hasOwnProperty(s) && (d[o[s]] = s);
      return d;
    }
    function k(o) {
      return o = parseFloat(o), (isNaN(o) || o < 0 || o > 1) && (o = 1), o;
    }
    function N(o, d) {
      bi(o) && (o = "100%");
      var s = _i(o);
      return o = f(d, u(0, parseFloat(o))), s && (o = parseInt(o * d, 10) / 100), t.abs(o - d) < 1e-6 ? 1 : o % d / parseFloat(d);
    }
    function Ee(o) {
      return f(1, u(0, o));
    }
    function oe(o) {
      return parseInt(o, 16);
    }
    function bi(o) {
      return typeof o == "string" && o.indexOf(".") != -1 && parseFloat(o) === 1;
    }
    function _i(o) {
      return typeof o == "string" && o.indexOf("%") != -1;
    }
    function me(o) {
      return o.length == 1 ? "0" + o : "" + o;
    }
    function at(o) {
      return o <= 1 && (o = o * 100 + "%"), o;
    }
    function kn(o) {
      return t.round(parseFloat(o) * 255).toString(16);
    }
    function Bn(o) {
      return oe(o) / 255;
    }
    var be = function() {
      var o = "[-\\+]?\\d+%?", d = "[-\\+]?\\d*\\.\\d+%?", s = "(?:" + d + ")|(?:" + o + ")", v = "[\\s|\\(]+(" + s + ")[,|\\s]+(" + s + ")[,|\\s]+(" + s + ")\\s*\\)?", S = "[\\s|\\(]+(" + s + ")[,|\\s]+(" + s + ")[,|\\s]+(" + s + ")[,|\\s]+(" + s + ")\\s*\\)?";
      return {
        CSS_UNIT: new RegExp(s),
        rgb: new RegExp("rgb" + v),
        rgba: new RegExp("rgba" + S),
        hsl: new RegExp("hsl" + v),
        hsla: new RegExp("hsla" + S),
        hsv: new RegExp("hsv" + v),
        hsva: new RegExp("hsva" + S),
        hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
        hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
        hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
        hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
      };
    }();
    function Ae(o) {
      return !!be.CSS_UNIT.exec(o);
    }
    function yi(o) {
      o = o.replace(n, "").replace(r, "").toLowerCase();
      var d = !1;
      if (ae[o])
        o = ae[o], d = !0;
      else if (o == "transparent")
        return { r: 0, g: 0, b: 0, a: 0, format: "name" };
      var s;
      return (s = be.rgb.exec(o)) ? { r: s[1], g: s[2], b: s[3] } : (s = be.rgba.exec(o)) ? { r: s[1], g: s[2], b: s[3], a: s[4] } : (s = be.hsl.exec(o)) ? { h: s[1], s: s[2], l: s[3] } : (s = be.hsla.exec(o)) ? { h: s[1], s: s[2], l: s[3], a: s[4] } : (s = be.hsv.exec(o)) ? { h: s[1], s: s[2], v: s[3] } : (s = be.hsva.exec(o)) ? { h: s[1], s: s[2], v: s[3], a: s[4] } : (s = be.hex8.exec(o)) ? {
        r: oe(s[1]),
        g: oe(s[2]),
        b: oe(s[3]),
        a: Bn(s[4]),
        format: d ? "name" : "hex8"
      } : (s = be.hex6.exec(o)) ? {
        r: oe(s[1]),
        g: oe(s[2]),
        b: oe(s[3]),
        format: d ? "name" : "hex"
      } : (s = be.hex4.exec(o)) ? {
        r: oe(s[1] + "" + s[1]),
        g: oe(s[2] + "" + s[2]),
        b: oe(s[3] + "" + s[3]),
        a: Bn(s[4] + "" + s[4]),
        format: d ? "name" : "hex8"
      } : (s = be.hex3.exec(o)) ? {
        r: oe(s[1] + "" + s[1]),
        g: oe(s[2] + "" + s[2]),
        b: oe(s[3] + "" + s[3]),
        format: d ? "name" : "hex"
      } : !1;
    }
    function wi(o) {
      var d, s;
      return o = o || { level: "AA", size: "small" }, d = (o.level || "AA").toUpperCase(), s = (o.size || "small").toLowerCase(), d !== "AA" && d !== "AAA" && (d = "AA"), s !== "small" && s !== "large" && (s = "small"), { level: d, size: s };
    }
    e.exports ? e.exports = l : window.tinycolor = l;
  })(Math);
})(Ir);
var ra = Ir.exports;
const Pf = /* @__PURE__ */ Ar(ra);
var ia = typeof global == "object" && global && global.Object === Object && global;
const $r = ia;
var aa = typeof self == "object" && self && self.Object === Object && self, oa = $r || aa || Function("return this")();
const Se = oa;
var sa = Se.Symbol;
const tt = sa;
var jr = Object.prototype, la = jr.hasOwnProperty, ua = jr.toString, st = tt ? tt.toStringTag : void 0;
function fa(e) {
  var t = la.call(e, st), n = e[st];
  try {
    e[st] = void 0;
    var r = !0;
  } catch {
  }
  var i = ua.call(e);
  return r && (t ? e[st] = n : delete e[st]), i;
}
var ca = Object.prototype, da = ca.toString;
function ha(e) {
  return da.call(e);
}
var pa = "[object Null]", ga = "[object Undefined]", Yn = tt ? tt.toStringTag : void 0;
function Ge(e) {
  return e == null ? e === void 0 ? ga : pa : Yn && Yn in Object(e) ? fa(e) : ha(e);
}
function Re(e) {
  return e != null && typeof e == "object";
}
var va = "[object Symbol]";
function ma(e) {
  return typeof e == "symbol" || Re(e) && Ge(e) == va;
}
var ba = Array.isArray;
const wt = ba;
var _a = /\s/;
function ya(e) {
  for (var t = e.length; t-- && _a.test(e.charAt(t)); )
    ;
  return t;
}
var wa = /^\s+/;
function Sa(e) {
  return e && e.slice(0, ya(e) + 1).replace(wa, "");
}
function ve(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
var Vn = 0 / 0, Ea = /^[-+]0x[0-9a-f]+$/i, Ta = /^0b[01]+$/i, xa = /^0o[0-7]+$/i, Aa = parseInt;
function Un(e) {
  if (typeof e == "number")
    return e;
  if (ma(e))
    return Vn;
  if (ve(e)) {
    var t = typeof e.valueOf == "function" ? e.valueOf() : e;
    e = ve(t) ? t + "" : t;
  }
  if (typeof e != "string")
    return e === 0 ? e : +e;
  e = Sa(e);
  var n = Ta.test(e);
  return n || xa.test(e) ? Aa(e.slice(2), n ? 2 : 8) : Ea.test(e) ? Vn : +e;
}
function Fr(e) {
  return e;
}
var Ca = "[object AsyncFunction]", Oa = "[object Function]", Da = "[object GeneratorFunction]", Pa = "[object Proxy]";
function An(e) {
  if (!ve(e))
    return !1;
  var t = Ge(e);
  return t == Oa || t == Da || t == Ca || t == Pa;
}
var Ia = Se["__core-js_shared__"];
const en = Ia;
var Kn = function() {
  var e = /[^.]+$/.exec(en && en.keys && en.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function $a(e) {
  return !!Kn && Kn in e;
}
var ja = Function.prototype, Fa = ja.toString;
function We(e) {
  if (e != null) {
    try {
      return Fa.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var Ma = /[\\^$.*+?()[\]{}|]/g, Na = /^\[object .+?Constructor\]$/, Ra = Function.prototype, La = Object.prototype, Ha = Ra.toString, ka = La.hasOwnProperty, Ba = RegExp(
  "^" + Ha.call(ka).replace(Ma, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function za(e) {
  if (!ve(e) || $a(e))
    return !1;
  var t = An(e) ? Ba : Na;
  return t.test(We(e));
}
function Ga(e, t) {
  return e == null ? void 0 : e[t];
}
function Xe(e, t) {
  var n = Ga(e, t);
  return za(n) ? n : void 0;
}
var Wa = Xe(Se, "WeakMap");
const pn = Wa;
var qn = Object.create, Xa = function() {
  function e() {
  }
  return function(t) {
    if (!ve(t))
      return {};
    if (qn)
      return qn(t);
    e.prototype = t;
    var n = new e();
    return e.prototype = void 0, n;
  };
}();
const Ya = Xa;
function Va(e, t, n) {
  switch (n.length) {
    case 0:
      return e.call(t);
    case 1:
      return e.call(t, n[0]);
    case 2:
      return e.call(t, n[0], n[1]);
    case 3:
      return e.call(t, n[0], n[1], n[2]);
  }
  return e.apply(t, n);
}
function Mr(e, t) {
  var n = -1, r = e.length;
  for (t || (t = Array(r)); ++n < r; )
    t[n] = e[n];
  return t;
}
var Ua = 800, Ka = 16, qa = Date.now;
function Ja(e) {
  var t = 0, n = 0;
  return function() {
    var r = qa(), i = Ka - (r - n);
    if (n = r, i > 0) {
      if (++t >= Ua)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
function Za(e) {
  return function() {
    return e;
  };
}
var Qa = function() {
  try {
    var e = Xe(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}();
const Bt = Qa;
var eo = Bt ? function(e, t) {
  return Bt(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: Za(t),
    writable: !0
  });
} : Fr;
const to = eo;
var no = Ja(to);
const ro = no;
function io(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
    ;
  return e;
}
var ao = 9007199254740991, oo = /^(?:0|[1-9]\d*)$/;
function Nr(e, t) {
  var n = typeof e;
  return t = t ?? ao, !!t && (n == "number" || n != "symbol" && oo.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Cn(e, t, n) {
  t == "__proto__" && Bt ? Bt(e, t, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : e[t] = n;
}
function Ut(e, t) {
  return e === t || e !== e && t !== t;
}
var so = Object.prototype, lo = so.hasOwnProperty;
function Rr(e, t, n) {
  var r = e[t];
  (!(lo.call(e, t) && Ut(r, n)) || n === void 0 && !(t in e)) && Cn(e, t, n);
}
function Tt(e, t, n, r) {
  var i = !n;
  n || (n = {});
  for (var a = -1, f = t.length; ++a < f; ) {
    var u = t[a], c = r ? r(n[u], e[u], u, n, e) : void 0;
    c === void 0 && (c = e[u]), i ? Cn(n, u, c) : Rr(n, u, c);
  }
  return n;
}
var Jn = Math.max;
function uo(e, t, n) {
  return t = Jn(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var r = arguments, i = -1, a = Jn(r.length - t, 0), f = Array(a); ++i < a; )
      f[i] = r[t + i];
    i = -1;
    for (var u = Array(t + 1); ++i < t; )
      u[i] = r[i];
    return u[t] = n(f), Va(e, this, u);
  };
}
function fo(e, t) {
  return ro(uo(e, t, Fr), e + "");
}
var co = 9007199254740991;
function Lr(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= co;
}
function Kt(e) {
  return e != null && Lr(e.length) && !An(e);
}
function ho(e, t, n) {
  if (!ve(n))
    return !1;
  var r = typeof t;
  return (r == "number" ? Kt(n) && Nr(t, n.length) : r == "string" && t in n) ? Ut(n[t], e) : !1;
}
function po(e) {
  return fo(function(t, n) {
    var r = -1, i = n.length, a = i > 1 ? n[i - 1] : void 0, f = i > 2 ? n[2] : void 0;
    for (a = e.length > 3 && typeof a == "function" ? (i--, a) : void 0, f && ho(n[0], n[1], f) && (a = i < 3 ? void 0 : a, i = 1), t = Object(t); ++r < i; ) {
      var u = n[r];
      u && e(t, u, r, a);
    }
    return t;
  });
}
var go = Object.prototype;
function On(e) {
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || go;
  return e === n;
}
function vo(e, t) {
  for (var n = -1, r = Array(e); ++n < e; )
    r[n] = t(n);
  return r;
}
var mo = "[object Arguments]";
function Zn(e) {
  return Re(e) && Ge(e) == mo;
}
var Hr = Object.prototype, bo = Hr.hasOwnProperty, _o = Hr.propertyIsEnumerable, yo = Zn(function() {
  return arguments;
}()) ? Zn : function(e) {
  return Re(e) && bo.call(e, "callee") && !_o.call(e, "callee");
};
const gn = yo;
function wo() {
  return !1;
}
var kr = typeof exports == "object" && exports && !exports.nodeType && exports, Qn = kr && typeof module == "object" && module && !module.nodeType && module, So = Qn && Qn.exports === kr, er = So ? Se.Buffer : void 0, Eo = er ? er.isBuffer : void 0, To = Eo || wo;
const Dn = To;
var xo = "[object Arguments]", Ao = "[object Array]", Co = "[object Boolean]", Oo = "[object Date]", Do = "[object Error]", Po = "[object Function]", Io = "[object Map]", $o = "[object Number]", jo = "[object Object]", Fo = "[object RegExp]", Mo = "[object Set]", No = "[object String]", Ro = "[object WeakMap]", Lo = "[object ArrayBuffer]", Ho = "[object DataView]", ko = "[object Float32Array]", Bo = "[object Float64Array]", zo = "[object Int8Array]", Go = "[object Int16Array]", Wo = "[object Int32Array]", Xo = "[object Uint8Array]", Yo = "[object Uint8ClampedArray]", Vo = "[object Uint16Array]", Uo = "[object Uint32Array]", B = {};
B[ko] = B[Bo] = B[zo] = B[Go] = B[Wo] = B[Xo] = B[Yo] = B[Vo] = B[Uo] = !0;
B[xo] = B[Ao] = B[Lo] = B[Co] = B[Ho] = B[Oo] = B[Do] = B[Po] = B[Io] = B[$o] = B[jo] = B[Fo] = B[Mo] = B[No] = B[Ro] = !1;
function Ko(e) {
  return Re(e) && Lr(e.length) && !!B[Ge(e)];
}
function Pn(e) {
  return function(t) {
    return e(t);
  };
}
var Br = typeof exports == "object" && exports && !exports.nodeType && exports, ht = Br && typeof module == "object" && module && !module.nodeType && module, qo = ht && ht.exports === Br, tn = qo && $r.process, Jo = function() {
  try {
    var e = ht && ht.require && ht.require("util").types;
    return e || tn && tn.binding && tn.binding("util");
  } catch {
  }
}();
const nt = Jo;
var tr = nt && nt.isTypedArray, Zo = tr ? Pn(tr) : Ko;
const zr = Zo;
var Qo = Object.prototype, es = Qo.hasOwnProperty;
function Gr(e, t) {
  var n = wt(e), r = !n && gn(e), i = !n && !r && Dn(e), a = !n && !r && !i && zr(e), f = n || r || i || a, u = f ? vo(e.length, String) : [], c = u.length;
  for (var l in e)
    (t || es.call(e, l)) && !(f && // Safari 9 has enumerable `arguments.length` in strict mode.
    (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    i && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
    Nr(l, c))) && u.push(l);
  return u;
}
function Wr(e, t) {
  return function(n) {
    return e(t(n));
  };
}
var ts = Wr(Object.keys, Object);
const ns = ts;
var rs = Object.prototype, is = rs.hasOwnProperty;
function as(e) {
  if (!On(e))
    return ns(e);
  var t = [];
  for (var n in Object(e))
    is.call(e, n) && n != "constructor" && t.push(n);
  return t;
}
function In(e) {
  return Kt(e) ? Gr(e) : as(e);
}
function os(e) {
  var t = [];
  if (e != null)
    for (var n in Object(e))
      t.push(n);
  return t;
}
var ss = Object.prototype, ls = ss.hasOwnProperty;
function us(e) {
  if (!ve(e))
    return os(e);
  var t = On(e), n = [];
  for (var r in e)
    r == "constructor" && (t || !ls.call(e, r)) || n.push(r);
  return n;
}
function xt(e) {
  return Kt(e) ? Gr(e, !0) : us(e);
}
var fs = Xe(Object, "create");
const St = fs;
function cs() {
  this.__data__ = St ? St(null) : {}, this.size = 0;
}
function ds(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var hs = "__lodash_hash_undefined__", ps = Object.prototype, gs = ps.hasOwnProperty;
function vs(e) {
  var t = this.__data__;
  if (St) {
    var n = t[e];
    return n === hs ? void 0 : n;
  }
  return gs.call(t, e) ? t[e] : void 0;
}
var ms = Object.prototype, bs = ms.hasOwnProperty;
function _s(e) {
  var t = this.__data__;
  return St ? t[e] !== void 0 : bs.call(t, e);
}
var ys = "__lodash_hash_undefined__";
function ws(e, t) {
  var n = this.__data__;
  return this.size += this.has(e) ? 0 : 1, n[e] = St && t === void 0 ? ys : t, this;
}
function ze(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
ze.prototype.clear = cs;
ze.prototype.delete = ds;
ze.prototype.get = vs;
ze.prototype.has = _s;
ze.prototype.set = ws;
function Ss() {
  this.__data__ = [], this.size = 0;
}
function qt(e, t) {
  for (var n = e.length; n--; )
    if (Ut(e[n][0], t))
      return n;
  return -1;
}
var Es = Array.prototype, Ts = Es.splice;
function xs(e) {
  var t = this.__data__, n = qt(t, e);
  if (n < 0)
    return !1;
  var r = t.length - 1;
  return n == r ? t.pop() : Ts.call(t, n, 1), --this.size, !0;
}
function As(e) {
  var t = this.__data__, n = qt(t, e);
  return n < 0 ? void 0 : t[n][1];
}
function Cs(e) {
  return qt(this.__data__, e) > -1;
}
function Os(e, t) {
  var n = this.__data__, r = qt(n, e);
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
function Pe(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Pe.prototype.clear = Ss;
Pe.prototype.delete = xs;
Pe.prototype.get = As;
Pe.prototype.has = Cs;
Pe.prototype.set = Os;
var Ds = Xe(Se, "Map");
const Et = Ds;
function Ps() {
  this.size = 0, this.__data__ = {
    hash: new ze(),
    map: new (Et || Pe)(),
    string: new ze()
  };
}
function Is(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function Jt(e, t) {
  var n = e.__data__;
  return Is(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function $s(e) {
  var t = Jt(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
function js(e) {
  return Jt(this, e).get(e);
}
function Fs(e) {
  return Jt(this, e).has(e);
}
function Ms(e, t) {
  var n = Jt(this, e), r = n.size;
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
function it(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
it.prototype.clear = Ps;
it.prototype.delete = $s;
it.prototype.get = js;
it.prototype.has = Fs;
it.prototype.set = Ms;
function Xr(e, t) {
  for (var n = -1, r = t.length, i = e.length; ++n < r; )
    e[i + n] = t[n];
  return e;
}
var Ns = Wr(Object.getPrototypeOf, Object);
const $n = Ns;
var Rs = "[object Object]", Ls = Function.prototype, Hs = Object.prototype, Yr = Ls.toString, ks = Hs.hasOwnProperty, Bs = Yr.call(Object);
function zs(e) {
  if (!Re(e) || Ge(e) != Rs)
    return !1;
  var t = $n(e);
  if (t === null)
    return !0;
  var n = ks.call(t, "constructor") && t.constructor;
  return typeof n == "function" && n instanceof n && Yr.call(n) == Bs;
}
function Gs() {
  this.__data__ = new Pe(), this.size = 0;
}
function Ws(e) {
  var t = this.__data__, n = t.delete(e);
  return this.size = t.size, n;
}
function Xs(e) {
  return this.__data__.get(e);
}
function Ys(e) {
  return this.__data__.has(e);
}
var Vs = 200;
function Us(e, t) {
  var n = this.__data__;
  if (n instanceof Pe) {
    var r = n.__data__;
    if (!Et || r.length < Vs - 1)
      return r.push([e, t]), this.size = ++n.size, this;
    n = this.__data__ = new it(r);
  }
  return n.set(e, t), this.size = n.size, this;
}
function Ye(e) {
  var t = this.__data__ = new Pe(e);
  this.size = t.size;
}
Ye.prototype.clear = Gs;
Ye.prototype.delete = Ws;
Ye.prototype.get = Xs;
Ye.prototype.has = Ys;
Ye.prototype.set = Us;
function Ks(e, t) {
  return e && Tt(t, In(t), e);
}
function qs(e, t) {
  return e && Tt(t, xt(t), e);
}
var Vr = typeof exports == "object" && exports && !exports.nodeType && exports, nr = Vr && typeof module == "object" && module && !module.nodeType && module, Js = nr && nr.exports === Vr, rr = Js ? Se.Buffer : void 0, ir = rr ? rr.allocUnsafe : void 0;
function Ur(e, t) {
  if (t)
    return e.slice();
  var n = e.length, r = ir ? ir(n) : new e.constructor(n);
  return e.copy(r), r;
}
function Zs(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r; ) {
    var f = e[n];
    t(f, n, e) && (a[i++] = f);
  }
  return a;
}
function Kr() {
  return [];
}
var Qs = Object.prototype, el = Qs.propertyIsEnumerable, ar = Object.getOwnPropertySymbols, tl = ar ? function(e) {
  return e == null ? [] : (e = Object(e), Zs(ar(e), function(t) {
    return el.call(e, t);
  }));
} : Kr;
const jn = tl;
function nl(e, t) {
  return Tt(e, jn(e), t);
}
var rl = Object.getOwnPropertySymbols, il = rl ? function(e) {
  for (var t = []; e; )
    Xr(t, jn(e)), e = $n(e);
  return t;
} : Kr;
const qr = il;
function al(e, t) {
  return Tt(e, qr(e), t);
}
function Jr(e, t, n) {
  var r = t(e);
  return wt(e) ? r : Xr(r, n(e));
}
function ol(e) {
  return Jr(e, In, jn);
}
function sl(e) {
  return Jr(e, xt, qr);
}
var ll = Xe(Se, "DataView");
const vn = ll;
var ul = Xe(Se, "Promise");
const mn = ul;
var fl = Xe(Se, "Set");
const bn = fl;
var or = "[object Map]", cl = "[object Object]", sr = "[object Promise]", lr = "[object Set]", ur = "[object WeakMap]", fr = "[object DataView]", dl = We(vn), hl = We(Et), pl = We(mn), gl = We(bn), vl = We(pn), ke = Ge;
(vn && ke(new vn(new ArrayBuffer(1))) != fr || Et && ke(new Et()) != or || mn && ke(mn.resolve()) != sr || bn && ke(new bn()) != lr || pn && ke(new pn()) != ur) && (ke = function(e) {
  var t = Ge(e), n = t == cl ? e.constructor : void 0, r = n ? We(n) : "";
  if (r)
    switch (r) {
      case dl:
        return fr;
      case hl:
        return or;
      case pl:
        return sr;
      case gl:
        return lr;
      case vl:
        return ur;
    }
  return t;
});
const Fn = ke;
var ml = Object.prototype, bl = ml.hasOwnProperty;
function _l(e) {
  var t = e.length, n = new e.constructor(t);
  return t && typeof e[0] == "string" && bl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
}
var yl = Se.Uint8Array;
const cr = yl;
function Mn(e) {
  var t = new e.constructor(e.byteLength);
  return new cr(t).set(new cr(e)), t;
}
function wl(e, t) {
  var n = t ? Mn(e.buffer) : e.buffer;
  return new e.constructor(n, e.byteOffset, e.byteLength);
}
var Sl = /\w*$/;
function El(e) {
  var t = new e.constructor(e.source, Sl.exec(e));
  return t.lastIndex = e.lastIndex, t;
}
var dr = tt ? tt.prototype : void 0, hr = dr ? dr.valueOf : void 0;
function Tl(e) {
  return hr ? Object(hr.call(e)) : {};
}
function Zr(e, t) {
  var n = t ? Mn(e.buffer) : e.buffer;
  return new e.constructor(n, e.byteOffset, e.length);
}
var xl = "[object Boolean]", Al = "[object Date]", Cl = "[object Map]", Ol = "[object Number]", Dl = "[object RegExp]", Pl = "[object Set]", Il = "[object String]", $l = "[object Symbol]", jl = "[object ArrayBuffer]", Fl = "[object DataView]", Ml = "[object Float32Array]", Nl = "[object Float64Array]", Rl = "[object Int8Array]", Ll = "[object Int16Array]", Hl = "[object Int32Array]", kl = "[object Uint8Array]", Bl = "[object Uint8ClampedArray]", zl = "[object Uint16Array]", Gl = "[object Uint32Array]";
function Wl(e, t, n) {
  var r = e.constructor;
  switch (t) {
    case jl:
      return Mn(e);
    case xl:
    case Al:
      return new r(+e);
    case Fl:
      return wl(e, n);
    case Ml:
    case Nl:
    case Rl:
    case Ll:
    case Hl:
    case kl:
    case Bl:
    case zl:
    case Gl:
      return Zr(e, n);
    case Cl:
      return new r();
    case Ol:
    case Il:
      return new r(e);
    case Dl:
      return El(e);
    case Pl:
      return new r();
    case $l:
      return Tl(e);
  }
}
function Qr(e) {
  return typeof e.constructor == "function" && !On(e) ? Ya($n(e)) : {};
}
var Xl = "[object Map]";
function Yl(e) {
  return Re(e) && Fn(e) == Xl;
}
var pr = nt && nt.isMap, Vl = pr ? Pn(pr) : Yl;
const Ul = Vl;
var Kl = "[object Set]";
function ql(e) {
  return Re(e) && Fn(e) == Kl;
}
var gr = nt && nt.isSet, Jl = gr ? Pn(gr) : ql;
const Zl = Jl;
var Ql = 1, eu = 2, tu = 4, ei = "[object Arguments]", nu = "[object Array]", ru = "[object Boolean]", iu = "[object Date]", au = "[object Error]", ti = "[object Function]", ou = "[object GeneratorFunction]", su = "[object Map]", lu = "[object Number]", ni = "[object Object]", uu = "[object RegExp]", fu = "[object Set]", cu = "[object String]", du = "[object Symbol]", hu = "[object WeakMap]", pu = "[object ArrayBuffer]", gu = "[object DataView]", vu = "[object Float32Array]", mu = "[object Float64Array]", bu = "[object Int8Array]", _u = "[object Int16Array]", yu = "[object Int32Array]", wu = "[object Uint8Array]", Su = "[object Uint8ClampedArray]", Eu = "[object Uint16Array]", Tu = "[object Uint32Array]", H = {};
H[ei] = H[nu] = H[pu] = H[gu] = H[ru] = H[iu] = H[vu] = H[mu] = H[bu] = H[_u] = H[yu] = H[su] = H[lu] = H[ni] = H[uu] = H[fu] = H[cu] = H[du] = H[wu] = H[Su] = H[Eu] = H[Tu] = !0;
H[au] = H[ti] = H[hu] = !1;
function Ft(e, t, n, r, i, a) {
  var f, u = t & Ql, c = t & eu, l = t & tu;
  if (n && (f = i ? n(e, r, i, a) : n(e)), f !== void 0)
    return f;
  if (!ve(e))
    return e;
  var h = wt(e);
  if (h) {
    if (f = _l(e), !u)
      return Mr(e, f);
  } else {
    var p = Fn(e), g = p == ti || p == ou;
    if (Dn(e))
      return Ur(e, u);
    if (p == ni || p == ei || g && !i) {
      if (f = c || g ? {} : Qr(e), !u)
        return c ? al(e, qs(f, e)) : nl(e, Ks(f, e));
    } else {
      if (!H[p])
        return i ? e : {};
      f = Wl(e, p, u);
    }
  }
  a || (a = new Ye());
  var m = a.get(e);
  if (m)
    return m;
  a.set(e, f), Zl(e) ? e.forEach(function(y) {
    f.add(Ft(y, t, n, y, e, a));
  }) : Ul(e) && e.forEach(function(y, D) {
    f.set(D, Ft(y, t, n, D, e, a));
  });
  var b = l ? c ? sl : ol : c ? xt : In, E = h ? void 0 : b(e);
  return io(E || e, function(y, D) {
    E && (D = y, y = e[D]), Rr(f, D, Ft(y, t, n, D, e, a));
  }), f;
}
var xu = 1, Au = 4;
function If(e) {
  return Ft(e, xu | Au);
}
function Cu(e) {
  return function(t, n, r) {
    for (var i = -1, a = Object(t), f = r(t), u = f.length; u--; ) {
      var c = f[e ? u : ++i];
      if (n(a[c], c, a) === !1)
        break;
    }
    return t;
  };
}
var Ou = Cu();
const Du = Ou;
var Pu = function() {
  return Se.Date.now();
};
const nn = Pu;
var Iu = "Expected a function", $u = Math.max, ju = Math.min;
function Fu(e, t, n) {
  var r, i, a, f, u, c, l = 0, h = !1, p = !1, g = !0;
  if (typeof e != "function")
    throw new TypeError(Iu);
  t = Un(t) || 0, ve(n) && (h = !!n.leading, p = "maxWait" in n, a = p ? $u(Un(n.maxWait) || 0, t) : a, g = "trailing" in n ? !!n.trailing : g);
  function m($) {
    var V = r, Z = i;
    return r = i = void 0, l = $, f = e.apply(Z, V), f;
  }
  function b($) {
    return l = $, u = setTimeout(D, t), h ? m($) : f;
  }
  function E($) {
    var V = $ - c, Z = $ - l, U = t - V;
    return p ? ju(U, a - Z) : U;
  }
  function y($) {
    var V = $ - c, Z = $ - l;
    return c === void 0 || V >= t || V < 0 || p && Z >= a;
  }
  function D() {
    var $ = nn();
    if (y($))
      return I($);
    u = setTimeout(D, E($));
  }
  function I($) {
    return u = void 0, g && r ? m($) : (r = i = void 0, f);
  }
  function O() {
    u !== void 0 && clearTimeout(u), l = 0, r = c = i = u = void 0;
  }
  function z() {
    return u === void 0 ? f : I(nn());
  }
  function G() {
    var $ = nn(), V = y($);
    if (r = arguments, i = this, c = $, V) {
      if (u === void 0)
        return b(c);
      if (p)
        return clearTimeout(u), u = setTimeout(D, t), m(c);
    }
    return u === void 0 && (u = setTimeout(D, t)), f;
  }
  return G.cancel = O, G.flush = z, G;
}
function _n(e, t, n) {
  (n !== void 0 && !Ut(e[t], n) || n === void 0 && !(t in e)) && Cn(e, t, n);
}
function Mu(e) {
  return Re(e) && Kt(e);
}
function yn(e, t) {
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
    return e[t];
}
function Nu(e) {
  return Tt(e, xt(e));
}
function Ru(e, t, n, r, i, a, f) {
  var u = yn(e, n), c = yn(t, n), l = f.get(c);
  if (l) {
    _n(e, n, l);
    return;
  }
  var h = a ? a(u, c, n + "", e, t, f) : void 0, p = h === void 0;
  if (p) {
    var g = wt(c), m = !g && Dn(c), b = !g && !m && zr(c);
    h = c, g || m || b ? wt(u) ? h = u : Mu(u) ? h = Mr(u) : m ? (p = !1, h = Ur(c, !0)) : b ? (p = !1, h = Zr(c, !0)) : h = [] : zs(c) || gn(c) ? (h = u, gn(u) ? h = Nu(u) : (!ve(u) || An(u)) && (h = Qr(c))) : p = !1;
  }
  p && (f.set(c, h), i(h, c, r, a, f), f.delete(c)), _n(e, n, h);
}
function ri(e, t, n, r, i) {
  e !== t && Du(t, function(a, f) {
    if (i || (i = new Ye()), ve(a))
      Ru(e, t, f, n, ri, r, i);
    else {
      var u = r ? r(yn(e, f), a, f + "", e, t, i) : void 0;
      u === void 0 && (u = a), _n(e, f, u);
    }
  }, xt);
}
var Lu = po(function(e, t, n) {
  ri(e, t, n);
});
const $f = Lu;
var Hu = "Expected a function";
function jf(e, t, n) {
  var r = !0, i = !0;
  if (typeof e != "function")
    throw new TypeError(Hu);
  return ve(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Fu(e, t, {
    leading: r,
    maxWait: t,
    trailing: i
  });
}
var Ve = Ve || {};
Ve.stringify = function() {
  var e = {
    "visit_linear-gradient": function(t) {
      return e.visit_gradient(t);
    },
    "visit_repeating-linear-gradient": function(t) {
      return e.visit_gradient(t);
    },
    "visit_radial-gradient": function(t) {
      return e.visit_gradient(t);
    },
    "visit_repeating-radial-gradient": function(t) {
      return e.visit_gradient(t);
    },
    visit_gradient: function(t) {
      var n = e.visit(t.orientation);
      return n && (n += ", "), t.type + "(" + n + e.visit(t.colorStops) + ")";
    },
    visit_shape: function(t) {
      var n = t.value, r = e.visit(t.at), i = e.visit(t.style);
      return i && (n += " " + i), r && (n += " at " + r), n;
    },
    "visit_default-radial": function(t) {
      var n = "", r = e.visit(t.at);
      return r && (n += r), n;
    },
    "visit_extent-keyword": function(t) {
      var n = t.value, r = e.visit(t.at);
      return r && (n += " at " + r), n;
    },
    "visit_position-keyword": function(t) {
      return t.value;
    },
    visit_position: function(t) {
      return e.visit(t.value.x) + " " + e.visit(t.value.y);
    },
    "visit_%": function(t) {
      return t.value + "%";
    },
    visit_em: function(t) {
      return t.value + "em";
    },
    visit_px: function(t) {
      return t.value + "px";
    },
    visit_literal: function(t) {
      return e.visit_color(t.value, t);
    },
    visit_hex: function(t) {
      return e.visit_color("#" + t.value, t);
    },
    visit_rgb: function(t) {
      return e.visit_color("rgb(" + t.value.join(", ") + ")", t);
    },
    visit_rgba: function(t) {
      return e.visit_color("rgba(" + t.value.join(", ") + ")", t);
    },
    visit_color: function(t, n) {
      var r = t, i = e.visit(n.length);
      return i && (r += " " + i), r;
    },
    visit_angular: function(t) {
      return t.value + "deg";
    },
    visit_directional: function(t) {
      return "to " + t.value;
    },
    visit_array: function(t) {
      var n = "", r = t.length;
      return t.forEach(function(i, a) {
        n += e.visit(i), a < r - 1 && (n += ", ");
      }), n;
    },
    visit: function(t) {
      if (!t)
        return "";
      var n = "";
      if (t instanceof Array)
        return e.visit_array(t, n);
      if (t.type) {
        var r = e["visit_" + t.type];
        if (r)
          return r(t);
        throw Error("Missing visitor visit_" + t.type);
      } else
        throw Error("Invalid node.");
    }
  };
  return function(t) {
    return e.visit(t);
  };
}();
var Ve = Ve || {};
Ve.parse = function() {
  var e = {
    linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,
    repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,
    radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,
    repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,
    sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,
    extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,
    positionKeywords: /^(left|center|right|top|bottom)/i,
    pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,
    percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,
    emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,
    angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,
    startCall: /^\(/,
    endCall: /^\)/,
    comma: /^,/,
    hexColor: /^\#([0-9a-fA-F]+)/,
    literalColor: /^([a-zA-Z]+)/,
    rgbColor: /^rgb/i,
    rgbaColor: /^rgba/i,
    number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/
  }, t = "";
  function n(T) {
    var j = new Error(t + ": " + T);
    throw j.source = t, j;
  }
  function r() {
    var T = i();
    return t.length > 0 && n("Invalid input not EOF"), T;
  }
  function i() {
    return O(a);
  }
  function a() {
    return f(
      "linear-gradient",
      e.linearGradient,
      c
    ) || f(
      "repeating-linear-gradient",
      e.repeatingLinearGradient,
      c
    ) || f(
      "radial-gradient",
      e.radialGradient,
      p
    ) || f(
      "repeating-radial-gradient",
      e.repeatingRadialGradient,
      p
    );
  }
  function f(T, j, k) {
    return u(j, function(N) {
      var Ee = k();
      return Ee && (re(e.comma) || n("Missing comma before color stops")), {
        type: T,
        orientation: Ee,
        colorStops: O(z)
      };
    });
  }
  function u(T, j) {
    var k = re(T);
    if (k) {
      re(e.startCall) || n("Missing (");
      var N = j(k);
      return re(e.endCall) || n("Missing )"), N;
    }
  }
  function c() {
    return l() || h();
  }
  function l() {
    return K("directional", e.sideOrCorner, 1);
  }
  function h() {
    return K("angular", e.angleValue, 1);
  }
  function p() {
    var T, j = g(), k;
    return j && (T = [], T.push(j), k = t, re(e.comma) && (j = g(), j ? T.push(j) : t = k)), T;
  }
  function g() {
    var T = m() || b();
    if (T)
      T.at = y();
    else {
      var j = E();
      if (j) {
        T = j;
        var k = y();
        k && (T.at = k);
      } else {
        var N = D();
        N && (T = {
          type: "default-radial",
          at: N
        });
      }
    }
    return T;
  }
  function m() {
    var T = K("shape", /^(circle)/i, 0);
    return T && (T.style = le() || E()), T;
  }
  function b() {
    var T = K("shape", /^(ellipse)/i, 0);
    return T && (T.style = R() || E()), T;
  }
  function E() {
    return K("extent-keyword", e.extentKeywords, 1);
  }
  function y() {
    if (K("position", /^at/, 0)) {
      var T = D();
      return T || n("Missing positioning value"), T;
    }
  }
  function D() {
    var T = I();
    if (T.x || T.y)
      return {
        type: "position",
        value: T
      };
  }
  function I() {
    return {
      x: R(),
      y: R()
    };
  }
  function O(T) {
    var j = T(), k = [];
    if (j)
      for (k.push(j); re(e.comma); )
        j = T(), j ? k.push(j) : n("One extra comma");
    return k;
  }
  function z() {
    var T = G();
    return T || n("Expected color definition"), T.length = R(), T;
  }
  function G() {
    return V() || U() || Z() || $();
  }
  function $() {
    return K("literal", e.literalColor, 0);
  }
  function V() {
    return K("hex", e.hexColor, 1);
  }
  function Z() {
    return u(e.rgbColor, function() {
      return {
        type: "rgb",
        value: O(P)
      };
    });
  }
  function U() {
    return u(e.rgbaColor, function() {
      return {
        type: "rgba",
        value: O(P)
      };
    });
  }
  function P() {
    return re(e.number)[1];
  }
  function R() {
    return K("%", e.percentageValue, 1) || te() || le();
  }
  function te() {
    return K("position-keyword", e.positionKeywords, 1);
  }
  function le() {
    return K("px", e.pixelValue, 1) || K("em", e.emValue, 1);
  }
  function K(T, j, k) {
    var N = re(j);
    if (N)
      return {
        type: T,
        value: N[k]
      };
  }
  function re(T) {
    var j, k;
    return k = /^[\n\r\t\s]+/.exec(t), k && ae(k[0].length), j = T.exec(t), j && ae(j[0].length), j;
  }
  function ae(T) {
    t = t.substr(T);
  }
  return function(T) {
    return t = T.toString(), r();
  };
}();
var Ff = Ve.parse;
Ve.stringify;
const ku = (e, t) => {
  const n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.abs(r - t.clientX), f = Math.abs(i - t.clientY), u = Math.sqrt(Math.pow(a, 2) + Math.pow(f, 2)), c = f / u, l = Math.acos(c);
  let h = Math.floor(180 / (Math.PI / l));
  return t.clientX > r && t.clientY > i && (h = 180 - h), t.clientX == r && t.clientY > i && (h = 180), t.clientX > r && t.clientY == i && (h = 90), t.clientX < r && t.clientY > i && (h = 180 + h), t.clientX < r && t.clientY == i && (h = 270), t.clientX < r && t.clientY < i && (h = 360 - h), h;
};
let rn = !1;
const Bu = (e, t) => {
  const n = function(i) {
    var a;
    (a = t.drag) == null || a.call(t, i);
  }, r = function(i) {
    var a;
    document.removeEventListener("mousemove", n, !1), document.removeEventListener("mouseup", r, !1), document.onselectstart = null, document.ondragstart = null, rn = !1, (a = t.end) == null || a.call(t, i);
  };
  e && e.addEventListener("mousedown", (i) => {
    var a;
    rn || (document.onselectstart = () => !1, document.ondragstart = () => !1, document.addEventListener("mousemove", n, !1), document.addEventListener("mouseup", r, !1), rn = !0, (a = t.start) == null || a.call(t, i));
  });
}, zu = {
  angle: {
    type: Number,
    default: 0
  },
  size: {
    type: Number,
    default: 16,
    validator: (e) => e >= 16
  },
  borderWidth: {
    type: Number,
    default: 1,
    validator: (e) => e >= 1
  },
  borderColor: {
    type: String,
    default: "#666"
  }
};
var Mf = De({
  name: "Angle",
  props: zu,
  emits: ["update:angle", "change"],
  setup(e, {
    emit: t
  }) {
    const n = kt(null), r = kt(e.angle);
    Vt(() => e.angle, (u) => {
      r.value = u;
    });
    const i = () => {
      let u = Number(r.value);
      isNaN(u) || (u = u > 360 || u < 0 ? e.angle : u, r.value = u === 360 ? 0 : u, t("update:angle", r.value), t("change", r.value));
    }, a = Oi(() => ({
      width: e.size + "px",
      height: e.size + "px",
      borderWidth: e.borderWidth + "px",
      borderColor: e.borderColor,
      transform: `rotate(${r.value}deg)`
    })), f = (u) => {
      n.value && (r.value = ku(n.value, u) % 360, i());
    };
    return xr(() => {
      const u = {
        drag: (c) => {
          f(c);
        },
        end: (c) => {
          f(c);
        }
      };
      n.value && Bu(n.value, u);
    }), () => zn("div", {
      class: "bee-angle"
    }, [zn("div", {
      class: "bee-angle__round",
      ref: n,
      style: a.value
    }, null)]);
  }
});
/**!
 * Sortable 1.15.6
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function vr(e, t) {
  var n = Object.keys(e);
  if (Object.getOwnPropertySymbols) {
    var r = Object.getOwnPropertySymbols(e);
    t && (r = r.filter(function(i) {
      return Object.getOwnPropertyDescriptor(e, i).enumerable;
    })), n.push.apply(n, r);
  }
  return n;
}
function xe(e) {
  for (var t = 1; t < arguments.length; t++) {
    var n = arguments[t] != null ? arguments[t] : {};
    t % 2 ? vr(Object(n), !0).forEach(function(r) {
      Gu(e, r, n[r]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vr(Object(n)).forEach(function(r) {
      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
    });
  }
  return e;
}
function Mt(e) {
  "@babel/helpers - typeof";
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Mt = function(t) {
    return typeof t;
  } : Mt = function(t) {
    return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
  }, Mt(e);
}
function Gu(e, t, n) {
  return t in e ? Object.defineProperty(e, t, {
    value: n,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = n, e;
}
function Oe() {
  return Oe = Object.assign || function(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var r in n)
        Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
    }
    return e;
  }, Oe.apply(this, arguments);
}
function Wu(e, t) {
  if (e == null)
    return {};
  var n = {}, r = Object.keys(e), i, a;
  for (a = 0; a < r.length; a++)
    i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
  return n;
}
function Xu(e, t) {
  if (e == null)
    return {};
  var n = Wu(e, t), r, i;
  if (Object.getOwnPropertySymbols) {
    var a = Object.getOwnPropertySymbols(e);
    for (i = 0; i < a.length; i++)
      r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
  }
  return n;
}
var Yu = "1.15.6";
function Ce(e) {
  if (typeof window < "u" && window.navigator)
    return !!/* @__PURE__ */ navigator.userAgent.match(e);
}
var Ie = Ce(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), At = Ce(/Edge/i), mr = Ce(/firefox/i), pt = Ce(/safari/i) && !Ce(/chrome/i) && !Ce(/android/i), Nn = Ce(/iP(ad|od|hone)/i), ii = Ce(/chrome/i) && Ce(/android/i), ai = {
  capture: !1,
  passive: !1
};
function M(e, t, n) {
  e.addEventListener(t, n, !Ie && ai);
}
function F(e, t, n) {
  e.removeEventListener(t, n, !Ie && ai);
}
function zt(e, t) {
  if (t) {
    if (t[0] === ">" && (t = t.substring(1)), e)
      try {
        if (e.matches)
          return e.matches(t);
        if (e.msMatchesSelector)
          return e.msMatchesSelector(t);
        if (e.webkitMatchesSelector)
          return e.webkitMatchesSelector(t);
      } catch {
        return !1;
      }
    return !1;
  }
}
function oi(e) {
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
}
function we(e, t, n, r) {
  if (e) {
    n = n || document;
    do {
      if (t != null && (t[0] === ">" ? e.parentNode === n && zt(e, t) : zt(e, t)) || r && e === n)
        return e;
      if (e === n)
        break;
    } while (e = oi(e));
  }
  return null;
}
var br = /\s+/g;
function ce(e, t, n) {
  if (e && t)
    if (e.classList)
      e.classList[n ? "add" : "remove"](t);
    else {
      var r = (" " + e.className + " ").replace(br, " ").replace(" " + t + " ", " ");
      e.className = (r + (n ? " " + t : "")).replace(br, " ");
    }
}
function x(e, t, n) {
  var r = e && e.style;
  if (r) {
    if (n === void 0)
      return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
    !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
  }
}
function Qe(e, t) {
  var n = "";
  if (typeof e == "string")
    n = e;
  else
    do {
      var r = x(e, "transform");
      r && r !== "none" && (n = r + " " + n);
    } while (!t && (e = e.parentNode));
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
  return i && new i(n);
}
function si(e, t, n) {
  if (e) {
    var r = e.getElementsByTagName(t), i = 0, a = r.length;
    if (n)
      for (; i < a; i++)
        n(r[i], i);
    return r;
  }
  return [];
}
function Te() {
  var e = document.scrollingElement;
  return e || document.documentElement;
}
function ee(e, t, n, r, i) {
  if (!(!e.getBoundingClientRect && e !== window)) {
    var a, f, u, c, l, h, p;
    if (e !== window && e.parentNode && e !== Te() ? (a = e.getBoundingClientRect(), f = a.top, u = a.left, c = a.bottom, l = a.right, h = a.height, p = a.width) : (f = 0, u = 0, c = window.innerHeight, l = window.innerWidth, h = window.innerHeight, p = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !Ie))
      do
        if (i && i.getBoundingClientRect && (x(i, "transform") !== "none" || n && x(i, "position") !== "static")) {
          var g = i.getBoundingClientRect();
          f -= g.top + parseInt(x(i, "border-top-width")), u -= g.left + parseInt(x(i, "border-left-width")), c = f + a.height, l = u + a.width;
          break;
        }
      while (i = i.parentNode);
    if (r && e !== window) {
      var m = Qe(i || e), b = m && m.a, E = m && m.d;
      m && (f /= E, u /= b, p /= b, h /= E, c = f + h, l = u + p);
    }
    return {
      top: f,
      left: u,
      bottom: c,
      right: l,
      width: p,
      height: h
    };
  }
}
function _r(e, t, n) {
  for (var r = Fe(e, !0), i = ee(e)[t]; r; ) {
    var a = ee(r)[n], f = void 0;
    if (n === "top" || n === "left" ? f = i >= a : f = i <= a, !f)
      return r;
    if (r === Te())
      break;
    r = Fe(r, !1);
  }
  return !1;
}
function rt(e, t, n, r) {
  for (var i = 0, a = 0, f = e.children; a < f.length; ) {
    if (f[a].style.display !== "none" && f[a] !== A.ghost && (r || f[a] !== A.dragged) && we(f[a], n.draggable, e, !1)) {
      if (i === t)
        return f[a];
      i++;
    }
    a++;
  }
  return null;
}
function Rn(e, t) {
  for (var n = e.lastElementChild; n && (n === A.ghost || x(n, "display") === "none" || t && !zt(n, t)); )
    n = n.previousElementSibling;
  return n || null;
}
function pe(e, t) {
  var n = 0;
  if (!e || !e.parentNode)
    return -1;
  for (; e = e.previousElementSibling; )
    e.nodeName.toUpperCase() !== "TEMPLATE" && e !== A.clone && (!t || zt(e, t)) && n++;
  return n;
}
function yr(e) {
  var t = 0, n = 0, r = Te();
  if (e)
    do {
      var i = Qe(e), a = i.a, f = i.d;
      t += e.scrollLeft * a, n += e.scrollTop * f;
    } while (e !== r && (e = e.parentNode));
  return [t, n];
}
function Vu(e, t) {
  for (var n in e)
    if (e.hasOwnProperty(n)) {
      for (var r in t)
        if (t.hasOwnProperty(r) && t[r] === e[n][r])
          return Number(n);
    }
  return -1;
}
function Fe(e, t) {
  if (!e || !e.getBoundingClientRect)
    return Te();
  var n = e, r = !1;
  do
    if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
      var i = x(n);
      if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
        if (!n.getBoundingClientRect || n === document.body)
          return Te();
        if (r || t)
          return n;
        r = !0;
      }
    }
  while (n = n.parentNode);
  return Te();
}
function Uu(e, t) {
  if (e && t)
    for (var n in t)
      t.hasOwnProperty(n) && (e[n] = t[n]);
  return e;
}
function an(e, t) {
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
}
var gt;
function li(e, t) {
  return function() {
    if (!gt) {
      var n = arguments, r = this;
      n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), gt = setTimeout(function() {
        gt = void 0;
      }, t);
    }
  };
}
function Ku() {
  clearTimeout(gt), gt = void 0;
}
function ui(e, t, n) {
  e.scrollLeft += t, e.scrollTop += n;
}
function fi(e) {
  var t = window.Polymer, n = window.jQuery || window.Zepto;
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
}
function ci(e, t, n) {
  var r = {};
  return Array.from(e.children).forEach(function(i) {
    var a, f, u, c;
    if (!(!we(i, t.draggable, e, !1) || i.animated || i === n)) {
      var l = ee(i);
      r.left = Math.min((a = r.left) !== null && a !== void 0 ? a : 1 / 0, l.left), r.top = Math.min((f = r.top) !== null && f !== void 0 ? f : 1 / 0, l.top), r.right = Math.max((u = r.right) !== null && u !== void 0 ? u : -1 / 0, l.right), r.bottom = Math.max((c = r.bottom) !== null && c !== void 0 ? c : -1 / 0, l.bottom);
    }
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
}
var fe = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
function qu() {
  var e = [], t;
  return {
    captureAnimationState: function() {
      if (e = [], !!this.options.animation) {
        var r = [].slice.call(this.el.children);
        r.forEach(function(i) {
          if (!(x(i, "display") === "none" || i === A.ghost)) {
            e.push({
              target: i,
              rect: ee(i)
            });
            var a = xe({}, e[e.length - 1].rect);
            if (i.thisAnimationDuration) {
              var f = Qe(i, !0);
              f && (a.top -= f.f, a.left -= f.e);
            }
            i.fromRect = a;
          }
        });
      }
    },
    addAnimationState: function(r) {
      e.push(r);
    },
    removeAnimationState: function(r) {
      e.splice(Vu(e, {
        target: r
      }), 1);
    },
    animateAll: function(r) {
      var i = this;
      if (!this.options.animation) {
        clearTimeout(t), typeof r == "function" && r();
        return;
      }
      var a = !1, f = 0;
      e.forEach(function(u) {
        var c = 0, l = u.target, h = l.fromRect, p = ee(l), g = l.prevFromRect, m = l.prevToRect, b = u.rect, E = Qe(l, !0);
        E && (p.top -= E.f, p.left -= E.e), l.toRect = p, l.thisAnimationDuration && an(g, p) && !an(h, p) && // Make sure animatingRect is on line between toRect & fromRect
        (b.top - p.top) / (b.left - p.left) === (h.top - p.top) / (h.left - p.left) && (c = Zu(b, g, m, i.options)), an(p, h) || (l.prevFromRect = h, l.prevToRect = p, c || (c = i.options.animation), i.animate(l, b, p, c)), c && (a = !0, f = Math.max(f, c), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
          l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
        }, c), l.thisAnimationDuration = c);
      }), clearTimeout(t), a ? t = setTimeout(function() {
        typeof r == "function" && r();
      }, f) : typeof r == "function" && r(), e = [];
    },
    animate: function(r, i, a, f) {
      if (f) {
        x(r, "transition", ""), x(r, "transform", "");
        var u = Qe(this.el), c = u && u.a, l = u && u.d, h = (i.left - a.left) / (c || 1), p = (i.top - a.top) / (l || 1);
        r.animatingX = !!h, r.animatingY = !!p, x(r, "transform", "translate3d(" + h + "px," + p + "px,0)"), this.forRepaintDummy = Ju(r), x(r, "transition", "transform " + f + "ms" + (this.options.easing ? " " + this.options.easing : "")), x(r, "transform", "translate3d(0,0,0)"), typeof r.animated == "number" && clearTimeout(r.animated), r.animated = setTimeout(function() {
          x(r, "transition", ""), x(r, "transform", ""), r.animated = !1, r.animatingX = !1, r.animatingY = !1;
        }, f);
      }
    }
  };
}
function Ju(e) {
  return e.offsetWidth;
}
function Zu(e, t, n, r) {
  return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * r.animation;
}
var Ue = [], on = {
  initializeByDefault: !0
}, Ct = {
  mount: function(t) {
    for (var n in on)
      on.hasOwnProperty(n) && !(n in t) && (t[n] = on[n]);
    Ue.forEach(function(r) {
      if (r.pluginName === t.pluginName)
        throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
    }), Ue.push(t);
  },
  pluginEvent: function(t, n, r) {
    var i = this;
    this.eventCanceled = !1, r.cancel = function() {
      i.eventCanceled = !0;
    };
    var a = t + "Global";
    Ue.forEach(function(f) {
      n[f.pluginName] && (n[f.pluginName][a] && n[f.pluginName][a](xe({
        sortable: n
      }, r)), n.options[f.pluginName] && n[f.pluginName][t] && n[f.pluginName][t](xe({
        sortable: n
      }, r)));
    });
  },
  initializePlugins: function(t, n, r, i) {
    Ue.forEach(function(u) {
      var c = u.pluginName;
      if (!(!t.options[c] && !u.initializeByDefault)) {
        var l = new u(t, n, t.options);
        l.sortable = t, l.options = t.options, t[c] = l, Oe(r, l.defaults);
      }
    });
    for (var a in t.options)
      if (t.options.hasOwnProperty(a)) {
        var f = this.modifyOption(t, a, t.options[a]);
        typeof f < "u" && (t.options[a] = f);
      }
  },
  getEventProperties: function(t, n) {
    var r = {};
    return Ue.forEach(function(i) {
      typeof i.eventProperties == "function" && Oe(r, i.eventProperties.call(n[i.pluginName], t));
    }), r;
  },
  modifyOption: function(t, n, r) {
    var i;
    return Ue.forEach(function(a) {
      t[a.pluginName] && a.optionListeners && typeof a.optionListeners[n] == "function" && (i = a.optionListeners[n].call(t[a.pluginName], r));
    }), i;
  }
};
function Qu(e) {
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, f = e.toEl, u = e.fromEl, c = e.oldIndex, l = e.newIndex, h = e.oldDraggableIndex, p = e.newDraggableIndex, g = e.originalEvent, m = e.putSortable, b = e.extraEventProperties;
  if (t = t || n && n[fe], !!t) {
    var E, y = t.options, D = "on" + r.charAt(0).toUpperCase() + r.substr(1);
    window.CustomEvent && !Ie && !At ? E = new CustomEvent(r, {
      bubbles: !0,
      cancelable: !0
    }) : (E = document.createEvent("Event"), E.initEvent(r, !0, !0)), E.to = f || n, E.from = u || n, E.item = i || n, E.clone = a, E.oldIndex = c, E.newIndex = l, E.oldDraggableIndex = h, E.newDraggableIndex = p, E.originalEvent = g, E.pullMode = m ? m.lastPutMode : void 0;
    var I = xe(xe({}, b), Ct.getEventProperties(r, t));
    for (var O in I)
      E[O] = I[O];
    n && n.dispatchEvent(E), y[D] && y[D].call(t, E);
  }
}
var ef = ["evt"], ue = function(t, n) {
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = r.evt, a = Xu(r, ef);
  Ct.pluginEvent.bind(A)(t, n, xe({
    dragEl: _,
    parentEl: q,
    ghostEl: C,
    rootEl: W,
    nextEl: Be,
    lastDownEl: Nt,
    cloneEl: Y,
    cloneHidden: je,
    dragStarted: ut,
    putSortable: ne,
    activeSortable: A.active,
    originalEvent: i,
    oldIndex: Je,
    oldDraggableIndex: vt,
    newIndex: de,
    newDraggableIndex: $e,
    hideGhostForTarget: gi,
    unhideGhostForTarget: vi,
    cloneNowHidden: function() {
      je = !0;
    },
    cloneNowShown: function() {
      je = !1;
    },
    dispatchSortableEvent: function(u) {
      se({
        sortable: n,
        name: u,
        originalEvent: i
      });
    }
  }, a));
};
function se(e) {
  Qu(xe({
    putSortable: ne,
    cloneEl: Y,
    targetEl: _,
    rootEl: W,
    oldIndex: Je,
    oldDraggableIndex: vt,
    newIndex: de,
    newDraggableIndex: $e
  }, e));
}
var _, q, C, W, Be, Nt, Y, je, Je, de, vt, $e, Pt, ne, qe = !1, Gt = !1, Wt = [], Le, ye, sn, ln, wr, Sr, ut, Ke, mt, bt = !1, It = !1, Rt, ie, un = [], wn = !1, Xt = [], Zt = typeof document < "u", $t = Nn, Er = At || Ie ? "cssFloat" : "float", tf = Zt && !ii && !Nn && "draggable" in document.createElement("div"), di = function() {
  if (Zt) {
    if (Ie)
      return !1;
    var e = document.createElement("x");
    return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
  }
}(), hi = function(t, n) {
  var r = x(t), i = parseInt(r.width) - parseInt(r.paddingLeft) - parseInt(r.paddingRight) - parseInt(r.borderLeftWidth) - parseInt(r.borderRightWidth), a = rt(t, 0, n), f = rt(t, 1, n), u = a && x(a), c = f && x(f), l = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + ee(a).width, h = c && parseInt(c.marginLeft) + parseInt(c.marginRight) + ee(f).width;
  if (r.display === "flex")
    return r.flexDirection === "column" || r.flexDirection === "column-reverse" ? "vertical" : "horizontal";
  if (r.display === "grid")
    return r.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
  if (a && u.float && u.float !== "none") {
    var p = u.float === "left" ? "left" : "right";
    return f && (c.clear === "both" || c.clear === p) ? "vertical" : "horizontal";
  }
  return a && (u.display === "block" || u.display === "flex" || u.display === "table" || u.display === "grid" || l >= i && r[Er] === "none" || f && r[Er] === "none" && l + h > i) ? "vertical" : "horizontal";
}, nf = function(t, n, r) {
  var i = r ? t.left : t.top, a = r ? t.right : t.bottom, f = r ? t.width : t.height, u = r ? n.left : n.top, c = r ? n.right : n.bottom, l = r ? n.width : n.height;
  return i === u || a === c || i + f / 2 === u + l / 2;
}, rf = function(t, n) {
  var r;
  return Wt.some(function(i) {
    var a = i[fe].options.emptyInsertThreshold;
    if (!(!a || Rn(i))) {
      var f = ee(i), u = t >= f.left - a && t <= f.right + a, c = n >= f.top - a && n <= f.bottom + a;
      if (u && c)
        return r = i;
    }
  }), r;
}, pi = function(t) {
  function n(a, f) {
    return function(u, c, l, h) {
      var p = u.options.group.name && c.options.group.name && u.options.group.name === c.options.group.name;
      if (a == null && (f || p))
        return !0;
      if (a == null || a === !1)
        return !1;
      if (f && a === "clone")
        return a;
      if (typeof a == "function")
        return n(a(u, c, l, h), f)(u, c, l, h);
      var g = (f ? u : c).options.group.name;
      return a === !0 || typeof a == "string" && a === g || a.join && a.indexOf(g) > -1;
    };
  }
  var r = {}, i = t.group;
  (!i || Mt(i) != "object") && (i = {
    name: i
  }), r.name = i.name, r.checkPull = n(i.pull, !0), r.checkPut = n(i.put), r.revertClone = i.revertClone, t.group = r;
}, gi = function() {
  !di && C && x(C, "display", "none");
}, vi = function() {
  !di && C && x(C, "display", "");
};
Zt && !ii && document.addEventListener("click", function(e) {
  if (Gt)
    return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Gt = !1, !1;
}, !0);
var He = function(t) {
  if (_) {
    t = t.touches ? t.touches[0] : t;
    var n = rf(t.clientX, t.clientY);
    if (n) {
      var r = {};
      for (var i in t)
        t.hasOwnProperty(i) && (r[i] = t[i]);
      r.target = r.rootEl = n, r.preventDefault = void 0, r.stopPropagation = void 0, n[fe]._onDragOver(r);
    }
  }
}, af = function(t) {
  _ && _.parentNode[fe]._isOutsideThisEl(t.target);
};
function A(e, t) {
  if (!(e && e.nodeType && e.nodeType === 1))
    throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
  this.el = e, this.options = t = Oe({}, t), e[fe] = this;
  var n = {
    group: null,
    sort: !0,
    disabled: !1,
    store: null,
    handle: null,
    draggable: /^[uo]l$/i.test(e.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 hi(e, this.options);
    },
    ghostClass: "sortable-ghost",
    chosenClass: "sortable-chosen",
    dragClass: "sortable-drag",
    ignore: "a, img",
    filter: null,
    preventOnFilter: !0,
    animation: 0,
    easing: null,
    setData: function(f, u) {
      f.setData("Text", u.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
    },
    // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
    supportPointer: A.supportPointer !== !1 && "PointerEvent" in window && (!pt || Nn),
    emptyInsertThreshold: 5
  };
  Ct.initializePlugins(this, e, n);
  for (var r in n)
    !(r in t) && (t[r] = n[r]);
  pi(t);
  for (var i in this)
    i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
  this.nativeDraggable = t.forceFallback ? !1 : tf, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? M(e, "pointerdown", this._onTapStart) : (M(e, "mousedown", this._onTapStart), M(e, "touchstart", this._onTapStart)), this.nativeDraggable && (M(e, "dragover", this), M(e, "dragenter", this)), Wt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Oe(this, qu());
}
A.prototype = /** @lends Sortable.prototype */
{
  constructor: A,
  _isOutsideThisEl: function(t) {
    !this.el.contains(t) && t !== this.el && (Ke = null);
  },
  _getDirection: function(t, n) {
    return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, _) : this.options.direction;
  },
  _onTapStart: function(t) {
    if (t.cancelable) {
      var n = this, r = this.el, i = this.options, a = i.preventOnFilter, f = t.type, u = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, c = (u || t).target, l = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || c, h = i.filter;
      if (hf(r), !_ && !(/mousedown|pointerdown/.test(f) && t.button !== 0 || i.disabled) && !l.isContentEditable && !(!this.nativeDraggable && pt && c && c.tagName.toUpperCase() === "SELECT") && (c = we(c, i.draggable, r, !1), !(c && c.animated) && Nt !== c)) {
        if (Je = pe(c), vt = pe(c, i.draggable), typeof h == "function") {
          if (h.call(this, t, c, this)) {
            se({
              sortable: n,
              rootEl: l,
              name: "filter",
              targetEl: c,
              toEl: r,
              fromEl: r
            }), ue("filter", n, {
              evt: t
            }), a && t.preventDefault();
            return;
          }
        } else if (h && (h = h.split(",").some(function(p) {
          if (p = we(l, p.trim(), r, !1), p)
            return se({
              sortable: n,
              rootEl: p,
              name: "filter",
              targetEl: c,
              fromEl: r,
              toEl: r
            }), ue("filter", n, {
              evt: t
            }), !0;
        }), h)) {
          a && t.preventDefault();
          return;
        }
        i.handle && !we(l, i.handle, r, !1) || this._prepareDragStart(t, u, c);
      }
    }
  },
  _prepareDragStart: function(t, n, r) {
    var i = this, a = i.el, f = i.options, u = a.ownerDocument, c;
    if (r && !_ && r.parentNode === a) {
      var l = ee(r);
      if (W = a, _ = r, q = _.parentNode, Be = _.nextSibling, Nt = r, Pt = f.group, A.dragged = _, Le = {
        target: _,
        clientX: (n || t).clientX,
        clientY: (n || t).clientY
      }, wr = Le.clientX - l.left, Sr = Le.clientY - l.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, _.style["will-change"] = "all", c = function() {
        if (ue("delayEnded", i, {
          evt: t
        }), A.eventCanceled) {
          i._onDrop();
          return;
        }
        i._disableDelayedDragEvents(), !mr && i.nativeDraggable && (_.draggable = !0), i._triggerDragStart(t, n), se({
          sortable: i,
          name: "choose",
          originalEvent: t
        }), ce(_, f.chosenClass, !0);
      }, f.ignore.split(",").forEach(function(h) {
        si(_, h.trim(), fn);
      }), M(u, "dragover", He), M(u, "mousemove", He), M(u, "touchmove", He), f.supportPointer ? (M(u, "pointerup", i._onDrop), !this.nativeDraggable && M(u, "pointercancel", i._onDrop)) : (M(u, "mouseup", i._onDrop), M(u, "touchend", i._onDrop), M(u, "touchcancel", i._onDrop)), mr && this.nativeDraggable && (this.options.touchStartThreshold = 4, _.draggable = !0), ue("delayStart", this, {
        evt: t
      }), f.delay && (!f.delayOnTouchOnly || n) && (!this.nativeDraggable || !(At || Ie))) {
        if (A.eventCanceled) {
          this._onDrop();
          return;
        }
        f.supportPointer ? (M(u, "pointerup", i._disableDelayedDrag), M(u, "pointercancel", i._disableDelayedDrag)) : (M(u, "mouseup", i._disableDelayedDrag), M(u, "touchend", i._disableDelayedDrag), M(u, "touchcancel", i._disableDelayedDrag)), M(u, "mousemove", i._delayedDragTouchMoveHandler), M(u, "touchmove", i._delayedDragTouchMoveHandler), f.supportPointer && M(u, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(c, f.delay);
      } else
        c();
    }
  },
  _delayedDragTouchMoveHandler: function(t) {
    var n = t.touches ? t.touches[0] : t;
    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() {
    _ && fn(_), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
  },
  _disableDelayedDragEvents: function() {
    var t = this.el.ownerDocument;
    F(t, "mouseup", this._disableDelayedDrag), F(t, "touchend", this._disableDelayedDrag), F(t, "touchcancel", this._disableDelayedDrag), F(t, "pointerup", this._disableDelayedDrag), F(t, "pointercancel", this._disableDelayedDrag), F(t, "mousemove", this._delayedDragTouchMoveHandler), F(t, "touchmove", this._delayedDragTouchMoveHandler), F(t, "pointermove", this._delayedDragTouchMoveHandler);
  },
  _triggerDragStart: function(t, n) {
    n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? M(document, "pointermove", this._onTouchMove) : n ? M(document, "touchmove", this._onTouchMove) : M(document, "mousemove", this._onTouchMove) : (M(_, "dragend", this), M(W, "dragstart", this._onDragStart));
    try {
      document.selection ? Lt(function() {
        document.selection.empty();
      }) : window.getSelection().removeAllRanges();
    } catch {
    }
  },
  _dragStarted: function(t, n) {
    if (qe = !1, W && _) {
      ue("dragStarted", this, {
        evt: n
      }), this.nativeDraggable && M(document, "dragover", af);
      var r = this.options;
      !t && ce(_, r.dragClass, !1), ce(_, r.ghostClass, !0), A.active = this, t && this._appendGhost(), se({
        sortable: this,
        name: "start",
        originalEvent: n
      });
    } else
      this._nulling();
  },
  _emulateDragOver: function() {
    if (ye) {
      this._lastX = ye.clientX, this._lastY = ye.clientY, gi();
      for (var t = document.elementFromPoint(ye.clientX, ye.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(ye.clientX, ye.clientY), t !== n); )
        n = t;
      if (_.parentNode[fe]._isOutsideThisEl(t), n)
        do {
          if (n[fe]) {
            var r = void 0;
            if (r = n[fe]._onDragOver({
              clientX: ye.clientX,
              clientY: ye.clientY,
              target: t,
              rootEl: n
            }), r && !this.options.dragoverBubble)
              break;
          }
          t = n;
        } while (n = oi(n));
      vi();
    }
  },
  _onTouchMove: function(t) {
    if (Le) {
      var n = this.options, r = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, f = C && Qe(C, !0), u = C && f && f.a, c = C && f && f.d, l = $t && ie && yr(ie), h = (a.clientX - Le.clientX + i.x) / (u || 1) + (l ? l[0] - un[0] : 0) / (u || 1), p = (a.clientY - Le.clientY + i.y) / (c || 1) + (l ? l[1] - un[1] : 0) / (c || 1);
      if (!A.active && !qe) {
        if (r && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < r)
          return;
        this._onDragStart(t, !0);
      }
      if (C) {
        f ? (f.e += h - (sn || 0), f.f += p - (ln || 0)) : f = {
          a: 1,
          b: 0,
          c: 0,
          d: 1,
          e: h,
          f: p
        };
        var g = "matrix(".concat(f.a, ",").concat(f.b, ",").concat(f.c, ",").concat(f.d, ",").concat(f.e, ",").concat(f.f, ")");
        x(C, "webkitTransform", g), x(C, "mozTransform", g), x(C, "msTransform", g), x(C, "transform", g), sn = h, ln = p, ye = a;
      }
      t.cancelable && t.preventDefault();
    }
  },
  _appendGhost: function() {
    if (!C) {
      var t = this.options.fallbackOnBody ? document.body : W, n = ee(_, !0, $t, !0, t), r = this.options;
      if ($t) {
        for (ie = t; x(ie, "position") === "static" && x(ie, "transform") === "none" && ie !== document; )
          ie = ie.parentNode;
        ie !== document.body && ie !== document.documentElement ? (ie === document && (ie = Te()), n.top += ie.scrollTop, n.left += ie.scrollLeft) : ie = Te(), un = yr(ie);
      }
      C = _.cloneNode(!0), ce(C, r.ghostClass, !1), ce(C, r.fallbackClass, !0), ce(C, r.dragClass, !0), x(C, "transition", ""), x(C, "transform", ""), x(C, "box-sizing", "border-box"), x(C, "margin", 0), x(C, "top", n.top), x(C, "left", n.left), x(C, "width", n.width), x(C, "height", n.height), x(C, "opacity", "0.8"), x(C, "position", $t ? "absolute" : "fixed"), x(C, "zIndex", "100000"), x(C, "pointerEvents", "none"), A.ghost = C, t.appendChild(C), x(C, "transform-origin", wr / parseInt(C.style.width) * 100 + "% " + Sr / parseInt(C.style.height) * 100 + "%");
    }
  },
  _onDragStart: function(t, n) {
    var r = this, i = t.dataTransfer, a = r.options;
    if (ue("dragStart", this, {
      evt: t
    }), A.eventCanceled) {
      this._onDrop();
      return;
    }
    ue("setupClone", this), A.eventCanceled || (Y = fi(_), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), ce(Y, this.options.chosenClass, !1), A.clone = Y), r.cloneId = Lt(function() {
      ue("clone", r), !A.eventCanceled && (r.options.removeCloneOnHide || W.insertBefore(Y, _), r._hideClone(), se({
        sortable: r,
        name: "clone"
      }));
    }), !n && ce(_, a.dragClass, !0), n ? (Gt = !0, r._loopId = setInterval(r._emulateDragOver, 50)) : (F(document, "mouseup", r._onDrop), F(document, "touchend", r._onDrop), F(document, "touchcancel", r._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(r, i, _)), M(document, "drop", r), x(_, "transform", "translateZ(0)")), qe = !0, r._dragStartId = Lt(r._dragStarted.bind(r, n, t)), M(document, "selectstart", r), ut = !0, window.getSelection().removeAllRanges(), pt && x(document.body, "user-select", "none");
  },
  // Returns true - if no further action is needed (either inserted or another condition)
  _onDragOver: function(t) {
    var n = this.el, r = t.target, i, a, f, u = this.options, c = u.group, l = A.active, h = Pt === c, p = u.sort, g = ne || l, m, b = this, E = !1;
    if (wn)
      return;
    function y(j, k) {
      ue(j, b, xe({
        evt: t,
        isOwner: h,
        axis: m ? "vertical" : "horizontal",
        revert: f,
        dragRect: i,
        targetRect: a,
        canSort: p,
        fromSortable: g,
        target: r,
        completed: I,
        onMove: function(Ee, oe) {
          return jt(W, n, _, i, Ee, ee(Ee), t, oe);
        },
        changed: O
      }, k));
    }
    function D() {
      y("dragOverAnimationCapture"), b.captureAnimationState(), b !== g && g.captureAnimationState();
    }
    function I(j) {
      return y("dragOverCompleted", {
        insertion: j
      }), j && (h ? l._hideClone() : l._showClone(b), b !== g && (ce(_, ne ? ne.options.ghostClass : l.options.ghostClass, !1), ce(_, u.ghostClass, !0)), ne !== b && b !== A.active ? ne = b : b === A.active && ne && (ne = null), g === b && (b._ignoreWhileAnimating = r), b.animateAll(function() {
        y("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
      }), b !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (r === _ && !_.animated || r === n && !r.animated) && (Ke = null), !u.dragoverBubble && !t.rootEl && r !== document && (_.parentNode[fe]._isOutsideThisEl(t.target), !j && He(t)), !u.dragoverBubble && t.stopPropagation && t.stopPropagation(), E = !0;
    }
    function O() {
      de = pe(_), $e = pe(_, u.draggable), se({
        sortable: b,
        name: "change",
        toEl: n,
        newIndex: de,
        newDraggableIndex: $e,
        originalEvent: t
      });
    }
    if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), r = we(r, u.draggable, n, !0), y("dragOver"), A.eventCanceled)
      return E;
    if (_.contains(t.target) || r.animated && r.animatingX && r.animatingY || b._ignoreWhileAnimating === r)
      return I(!1);
    if (Gt = !1, l && !u.disabled && (h ? p || (f = q !== W) : ne === this || (this.lastPutMode = Pt.checkPull(this, l, _, t)) && c.checkPut(this, l, _, t))) {
      if (m = this._getDirection(t, r) === "vertical", i = ee(_), y("dragOverValid"), A.eventCanceled)
        return E;
      if (f)
        return q = W, D(), this._hideClone(), y("revert"), A.eventCanceled || (Be ? W.insertBefore(_, Be) : W.appendChild(_)), I(!0);
      var z = Rn(n, u.draggable);
      if (!z || uf(t, m, this) && !z.animated) {
        if (z === _)
          return I(!1);
        if (z && n === t.target && (r = z), r && (a = ee(r)), jt(W, n, _, i, r, a, t, !!r) !== !1)
          return D(), z && z.nextSibling ? n.insertBefore(_, z.nextSibling) : n.appendChild(_), q = n, O(), I(!0);
      } else if (z && lf(t, m, this)) {
        var G = rt(n, 0, u, !0);
        if (G === _)
          return I(!1);
        if (r = G, a = ee(r), jt(W, n, _, i, r, a, t, !1) !== !1)
          return D(), n.insertBefore(_, G), q = n, O(), I(!0);
      } else if (r.parentNode === n) {
        a = ee(r);
        var $ = 0, V, Z = _.parentNode !== n, U = !nf(_.animated && _.toRect || i, r.animated && r.toRect || a, m), P = m ? "top" : "left", R = _r(r, "top", "top") || _r(_, "top", "top"), te = R ? R.scrollTop : void 0;
        Ke !== r && (V = a[P], bt = !1, It = !U && u.invertSwap || Z), $ = ff(t, r, a, m, U ? 1 : u.swapThreshold, u.invertedSwapThreshold == null ? u.swapThreshold : u.invertedSwapThreshold, It, Ke === r);
        var le;
        if ($ !== 0) {
          var K = pe(_);
          do
            K -= $, le = q.children[K];
          while (le && (x(le, "display") === "none" || le === C));
        }
        if ($ === 0 || le === r)
          return I(!1);
        Ke = r, mt = $;
        var re = r.nextElementSibling, ae = !1;
        ae = $ === 1;
        var T = jt(W, n, _, i, r, a, t, ae);
        if (T !== !1)
          return (T === 1 || T === -1) && (ae = T === 1), wn = !0, setTimeout(sf, 30), D(), ae && !re ? n.appendChild(_) : r.parentNode.insertBefore(_, ae ? re : r), R && ui(R, 0, te - R.scrollTop), q = _.parentNode, V !== void 0 && !It && (Rt = Math.abs(V - ee(r)[P])), O(), I(!0);
      }
      if (n.contains(_))
        return I(!1);
    }
    return !1;
  },
  _ignoreWhileAnimating: null,
  _offMoveEvents: function() {
    F(document, "mousemove", this._onTouchMove), F(document, "touchmove", this._onTouchMove), F(document, "pointermove", this._onTouchMove), F(document, "dragover", He), F(document, "mousemove", He), F(document, "touchmove", He);
  },
  _offUpEvents: function() {
    var t = this.el.ownerDocument;
    F(t, "mouseup", this._onDrop), F(t, "touchend", this._onDrop), F(t, "pointerup", this._onDrop), F(t, "pointercancel", this._onDrop), F(t, "touchcancel", this._onDrop), F(document, "selectstart", this);
  },
  _onDrop: function(t) {
    var n = this.el, r = this.options;
    if (de = pe(_), $e = pe(_, r.draggable), ue("drop", this, {
      evt: t
    }), q = _ && _.parentNode, de = pe(_), $e = pe(_, r.draggable), A.eventCanceled) {
      this._nulling();
      return;
    }
    qe = !1, It = !1, bt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Sn(this.cloneId), Sn(this._dragStartId), this.nativeDraggable && (F(document, "drop", this), F(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), pt && x(document.body, "user-select", ""), x(_, "transform", ""), t && (ut && (t.cancelable && t.preventDefault(), !r.dropBubble && t.stopPropagation()), C && C.parentNode && C.parentNode.removeChild(C), (W === q || ne && ne.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), _ && (this.nativeDraggable && F(_, "dragend", this), fn(_), _.style["will-change"] = "", ut && !qe && ce(_, ne ? ne.options.ghostClass : this.options.ghostClass, !1), ce(_, this.options.chosenClass, !1), se({
      sortable: this,
      name: "unchoose",
      toEl: q,
      newIndex: null,
      newDraggableIndex: null,
      originalEvent: t
    }), W !== q ? (de >= 0 && (se({
      rootEl: q,
      name: "add",
      toEl: q,
      fromEl: W,
      originalEvent: t
    }), se({
      sortable: this,
      name: "remove",
      toEl: q,
      originalEvent: t
    }), se({
      rootEl: q,
      name: "sort",
      toEl: q,
      fromEl: W,
      originalEvent: t
    }), se({
      sortable: this,
      name: "sort",
      toEl: q,
      originalEvent: t
    })), ne && ne.save()) : de !== Je && de >= 0 && (se({
      sortable: this,
      name: "update",
      toEl: q,
      originalEvent: t
    }), se({
      sortable: this,
      name: "sort",
      toEl: q,
      originalEvent: t
    })), A.active && ((de == null || de === -1) && (de = Je, $e = vt), se({
      sortable: this,
      name: "end",
      toEl: q,
      originalEvent: t
    }), this.save()))), this._nulling();
  },
  _nulling: function() {
    ue("nulling", this), W = _ = q = C = Be = Y = Nt = je = Le = ye = ut = de = $e = Je = vt = Ke = mt = ne = Pt = A.dragged = A.ghost = A.clone = A.active = null, Xt.forEach(function(t) {
      t.checked = !0;
    }), Xt.length = sn = ln = 0;
  },
  handleEvent: function(t) {
    switch (t.type) {
      case "drop":
      case "dragend":
        this._onDrop(t);
        break;
      case "dragenter":
      case "dragover":
        _ && (this._onDragOver(t), of(t));
        break;
      case "selectstart":
        t.preventDefault();
        break;
    }
  },
  /**
   * Serializes the item into an array of string.
   * @returns {String[]}
   */
  toArray: function() {
    for (var t = [], n, r = this.el.children, i = 0, a = r.length, f = this.options; i < a; i++)
      n = r[i], we(n, f.draggable, this.el, !1) && t.push(n.getAttribute(f.dataIdAttr) || df(n));
    return t;
  },
  /**
   * Sorts the elements according to the array.
   * @param  {String[]}  order  order of the items
   */
  sort: function(t, n) {
    var r = {}, i = this.el;
    this.toArray().forEach(function(a, f) {
      var u = i.children[f];
      we(u, this.options.draggable, i, !1) && (r[a] = u);
    }, this), n && this.captureAnimationState(), t.forEach(function(a) {
      r[a] && (i.removeChild(r[a]), i.appendChild(r[a]));
    }), n && this.animateAll();
  },
  /**
   * Save the current sorting
   */
  save: function() {
    var t = this.options.store;
    t && t.set && t.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(t, n) {
    return we(t, n || this.options.draggable, this.el, !1);
  },
  /**
   * Set/get option
   * @param   {string} name
   * @param   {*}      [value]
   * @returns {*}
   */
  option: function(t, n) {
    var r = this.options;
    if (n === void 0)
      return r[t];
    var i = Ct.modifyOption(this, t, n);
    typeof i < "u" ? r[t] = i : r[t] = n, t === "group" && pi(r);
  },
  /**
   * Destroy
   */
  destroy: function() {
    ue("destroy", this);
    var t = this.el;
    t[fe] = null, F(t, "mousedown", this._onTapStart), F(t, "touchstart", this._onTapStart), F(t, "pointerdown", this._onTapStart), this.nativeDraggable && (F(t, "dragover", this), F(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
      n.removeAttribute("draggable");
    }), this._onDrop(), this._disableDelayedDragEvents(), Wt.splice(Wt.indexOf(this.el), 1), this.el = t = null;
  },
  _hideClone: function() {
    if (!je) {
      if (ue("hideClone", this), A.eventCanceled)
        return;
      x(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), je = !0;
    }
  },
  _showClone: function(t) {
    if (t.lastPutMode !== "clone") {
      this._hideClone();
      return;
    }
    if (je) {
      if (ue("showClone", this), A.eventCanceled)
        return;
      _.parentNode == W && !this.options.group.revertClone ? W.insertBefore(Y, _) : Be ? W.insertBefore(Y, Be) : W.appendChild(Y), this.options.group.revertClone && this.animate(_, Y), x(Y, "display", ""), je = !1;
    }
  }
};
function of(e) {
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
}
function jt(e, t, n, r, i, a, f, u) {
  var c, l = e[fe], h = l.options.onMove, p;
  return window.CustomEvent && !Ie && !At ? c = new CustomEvent("move", {
    bubbles: !0,
    cancelable: !0
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || ee(t), c.willInsertAfter = u, c.originalEvent = f, e.dispatchEvent(c), h && (p = h.call(l, c, f)), p;
}
function fn(e) {
  e.draggable = !1;
}
function sf() {
  wn = !1;
}
function lf(e, t, n) {
  var r = ee(rt(n.el, 0, n.options, !0)), i = ci(n.el, n.options, C), a = 10;
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
}
function uf(e, t, n) {
  var r = ee(Rn(n.el, n.options.draggable)), i = ci(n.el, n.options, C), a = 10;
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
}
function ff(e, t, n, r, i, a, f, u) {
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, h = r ? n.top : n.left, p = r ? n.bottom : n.right, g = !1;
  if (!f) {
    if (u && Rt < l * i) {
      if (!bt && (mt === 1 ? c > h + l * a / 2 : c < p - l * a / 2) && (bt = !0), bt)
        g = !0;
      else if (mt === 1 ? c < h + Rt : c > p - Rt)
        return -mt;
    } else if (c > h + l * (1 - i) / 2 && c < p - l * (1 - i) / 2)
      return cf(t);
  }
  return g = g || f, g && (c < h + l * a / 2 || c > p - l * a / 2) ? c > h + l / 2 ? 1 : -1 : 0;
}
function cf(e) {
  return pe(_) < pe(e) ? 1 : -1;
}
function df(e) {
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--; )
    r += t.charCodeAt(n);
  return r.toString(36);
}
function hf(e) {
  Xt.length = 0;
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
    var r = t[n];
    r.checked && Xt.push(r);
  }
}
function Lt(e) {
  return setTimeout(e, 0);
}
function Sn(e) {
  return clearTimeout(e);
}
Zt && M(document, "touchmove", function(e) {
  (A.active || qe) && e.cancelable && e.preventDefault();
});
A.utils = {
  on: M,
  off: F,
  css: x,
  find: si,
  is: function(t, n) {
    return !!we(t, n, t, !1);
  },
  extend: Uu,
  throttle: li,
  closest: we,
  toggleClass: ce,
  clone: fi,
  index: pe,
  nextTick: Lt,
  cancelNextTick: Sn,
  detectDirection: hi,
  getChild: rt,
  expando: fe
};
A.get = function(e) {
  return e[fe];
};
A.mount = function() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  t[0].constructor === Array && (t = t[0]), t.forEach(function(r) {
    if (!r.prototype || !r.prototype.constructor)
      throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));
    r.utils && (A.utils = xe(xe({}, A.utils), r.utils)), Ct.mount(r);
  });
};
A.create = function(e, t) {
  return new A(e, t);
};
A.version = Yu;
var Q = [], ft, En, Tn = !1, cn, dn, Yt, ct;
function pf() {
  function e() {
    this.defaults = {
      scroll: !0,
      forceAutoScrollFallback: !1,
      scrollSensitivity: 30,
      scrollSpeed: 10,
      bubbleScroll: !0
    };
    for (var t in this)
      t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
  }
  return e.prototype = {
    dragStarted: function(n) {
      var r = n.originalEvent;
      this.sortable.nativeDraggable ? M(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? M(document, "pointermove", this._handleFallbackAutoScroll) : r.touches ? M(document, "touchmove", this._handleFallbackAutoScroll) : M(document, "mousemove", this._handleFallbackAutoScroll);
    },
    dragOverCompleted: function(n) {
      var r = n.originalEvent;
      !this.options.dragOverBubble && !r.rootEl && this._handleAutoScroll(r);
    },
    drop: function() {
      this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : (F(document, "pointermove", this._handleFallbackAutoScroll), F(document, "touchmove", this._handleFallbackAutoScroll), F(document, "mousemove", this._handleFallbackAutoScroll)), Tr(), Ht(), Ku();
    },
    nulling: function() {
      Yt = En = ft = Tn = ct = cn = dn = null, Q.length = 0;
    },
    _handleFallbackAutoScroll: function(n) {
      this._handleAutoScroll(n, !0);
    },
    _handleAutoScroll: function(n, r) {
      var i = this, a = (n.touches ? n.touches[0] : n).clientX, f = (n.touches ? n.touches[0] : n).clientY, u = document.elementFromPoint(a, f);
      if (Yt = n, r || this.options.forceAutoScrollFallback || At || Ie || pt) {
        hn(n, this.options, u, r);
        var c = Fe(u, !0);
        Tn && (!ct || a !== cn || f !== dn) && (ct && Tr(), ct = setInterval(function() {
          var l = Fe(document.elementFromPoint(a, f), !0);
          l !== c && (c = l, Ht()), hn(n, i.options, l, r);
        }, 10), cn = a, dn = f);
      } else {
        if (!this.options.bubbleScroll || Fe(u, !0) === Te()) {
          Ht();
          return;
        }
        hn(n, this.options, Fe(u, !1), !1);
      }
    }
  }, Oe(e, {
    pluginName: "scroll",
    initializeByDefault: !0
  });
}
function Ht() {
  Q.forEach(function(e) {
    clearInterval(e.pid);
  }), Q = [];
}
function Tr() {
  clearInterval(ct);
}
var hn = li(function(e, t, n, r) {
  if (t.scroll) {
    var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, f = t.scrollSensitivity, u = t.scrollSpeed, c = Te(), l = !1, h;
    En !== n && (En = n, Ht(), ft = t.scroll, h = t.scrollFn, ft === !0 && (ft = Fe(n, !0)));
    var p = 0, g = ft;
    do {
      var m = g, b = ee(m), E = b.top, y = b.bottom, D = b.left, I = b.right, O = b.width, z = b.height, G = void 0, $ = void 0, V = m.scrollWidth, Z = m.scrollHeight, U = x(m), P = m.scrollLeft, R = m.scrollTop;
      m === c ? (G = O < V && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), $ = z < Z && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (G = O < V && (U.overflowX === "auto" || U.overflowX === "scroll"), $ = z < Z && (U.overflowY === "auto" || U.overflowY === "scroll"));
      var te = G && (Math.abs(I - i) <= f && P + O < V) - (Math.abs(D - i) <= f && !!P), le = $ && (Math.abs(y - a) <= f && R + z < Z) - (Math.abs(E - a) <= f && !!R);
      if (!Q[p])
        for (var K = 0; K <= p; K++)
          Q[K] || (Q[K] = {});
      (Q[p].vx != te || Q[p].vy != le || Q[p].el !== m) && (Q[p].el = m, Q[p].vx = te, Q[p].vy = le, clearInterval(Q[p].pid), (te != 0 || le != 0) && (l = !0, Q[p].pid = setInterval((function() {
        r && this.layer === 0 && A.active._onTouchMove(Yt);
        var re = Q[this.layer].vy ? Q[this.layer].vy * u : 0, ae = Q[this.layer].vx ? Q[this.layer].vx * u : 0;
        typeof h == "function" && h.call(A.dragged.parentNode[fe], ae, re, e, Yt, Q[this.layer].el) !== "continue" || ui(Q[this.layer].el, ae, re);
      }).bind({
        layer: p
      }), 24))), p++;
    } while (t.bubbleScroll && g !== c && (g = Fe(g, !1)));
    Tn = l;
  }
}, 30), mi = function(t) {
  var n = t.originalEvent, r = t.putSortable, i = t.dragEl, a = t.activeSortable, f = t.dispatchSortableEvent, u = t.hideGhostForTarget, c = t.unhideGhostForTarget;
  if (n) {
    var l = r || a;
    u();
    var h = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, p = document.elementFromPoint(h.clientX, h.clientY);
    c(), l && !l.el.contains(p) && (f("spill"), this.onSpill({
      dragEl: i,
      putSortable: r
    }));
  }
};
function Ln() {
}
Ln.prototype = {
  startIndex: null,
  dragStart: function(t) {
    var n = t.oldDraggableIndex;
    this.startIndex = n;
  },
  onSpill: function(t) {
    var n = t.dragEl, r = t.putSortable;
    this.sortable.captureAnimationState(), r && r.captureAnimationState();
    var i = rt(this.sortable.el, this.startIndex, this.options);
    i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), r && r.animateAll();
  },
  drop: mi
};
Oe(Ln, {
  pluginName: "revertOnSpill"
});
function Hn() {
}
Hn.prototype = {
  onSpill: function(t) {
    var n = t.dragEl, r = t.putSortable, i = r || this.sortable;
    i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
  },
  drop: mi
};
Oe(Hn, {
  pluginName: "removeOnSpill"
});
A.mount(new pf());
A.mount(Hn, Ln);
export {
  Mf as A,
  A as S,
  Df as a,
  If as b,
  mf as c,
  yf as d,
  Tf as e,
  xf as f,
  Sf as g,
  vf as h,
  bf as i,
  _f as j,
  jf as k,
  wf as l,
  $f as m,
  Of as o,
  Ff as p,
  Ef as q,
  Pf as t,
  Af as u,
  Cf as w
};