yk-element-components
Version:
1,558 lines • 287 kB
JavaScript
import { defineComponent as Qa, ref as ei, watch as ti, onMounted as ri, openBlock as ni, createElementBlock as ai } from "vue";
var At = function(t, e) {
return At = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
r.__proto__ = n;
} || function(r, n) {
for (var a in n)
Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
}, At(t, e);
};
function R(t, e) {
if (typeof e != "function" && e !== null)
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
At(t, e);
function r() {
this.constructor = t;
}
t.prototype = e === null ? Object.create(e) : (r.prototype = e.prototype, new r());
}
var h = function() {
return h = Object.assign || function(e) {
for (var r, n = 1, a = arguments.length; n < a; n++) {
r = arguments[n];
for (var i in r)
Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
}
return e;
}, h.apply(this, arguments);
};
function N(t, e, r) {
if (r || arguments.length === 2)
for (var n = 0, a = e.length, i; n < a; n++)
(i || !(n in e)) && (i || (i = Array.prototype.slice.call(e, 0, n)), i[n] = e[n]);
return t.concat(i || Array.prototype.slice.call(e));
}
var lt, T, Dn, we, Sr, Cn, Xe = {}, Rn = [], ii = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
function K(t, e) {
for (var r in e)
t[r] = e[r];
return t;
}
function wn(t) {
var e = t.parentNode;
e && e.removeChild(t);
}
function ee(t, e, r) {
var n, a, i, o = {};
for (i in e)
i == "key" ? n = e[i] : i == "ref" ? a = e[i] : o[i] = e[i];
if (arguments.length > 2 && (o.children = arguments.length > 3 ? lt.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null)
for (i in t.defaultProps)
o[i] === void 0 && (o[i] = t.defaultProps[i]);
return qe(t, o, n, a, null);
}
function qe(t, e, r, n, a) {
var i = { type: t, props: e, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: a == null ? ++Dn : a };
return a == null && T.vnode != null && T.vnode(i), i;
}
function oi() {
return { current: null };
}
function se(t) {
return t.children;
}
function q(t, e) {
this.props = t, this.context = e;
}
function Pe(t, e) {
if (e == null)
return t.__ ? Pe(t.__, t.__.__k.indexOf(t) + 1) : null;
for (var r; e < t.__k.length; e++)
if ((r = t.__k[e]) != null && r.__e != null)
return r.__e;
return typeof t.type == "function" ? Pe(t) : null;
}
function Tn(t) {
var e, r;
if ((t = t.__) != null && t.__c != null) {
for (t.__e = t.__c.base = null, e = 0; e < t.__k.length; e++)
if ((r = t.__k[e]) != null && r.__e != null) {
t.__e = t.__c.base = r.__e;
break;
}
return Tn(t);
}
}
function Nt(t) {
(!t.__d && (t.__d = !0) && we.push(t) && !$e.__r++ || Sr !== T.debounceRendering) && ((Sr = T.debounceRendering) || setTimeout)($e);
}
function $e() {
for (var t; $e.__r = we.length; )
t = we.sort(function(e, r) {
return e.__v.__b - r.__v.__b;
}), we = [], t.some(function(e) {
var r, n, a, i, o, s;
e.__d && (o = (i = (r = e).__v).__e, (s = r.__P) && (n = [], (a = K({}, i)).__v = i.__v + 1, jt(s, i, a, r.__n, s.ownerSVGElement !== void 0, i.__h != null ? [o] : null, n, o == null ? Pe(i) : o, i.__h), In(n, i), i.__e != o && Tn(i)));
});
}
function _n(t, e, r, n, a, i, o, s, l, c) {
var u, f, v, d, p, E, S, g = n && n.__k || Rn, b = g.length;
for (r.__k = [], u = 0; u < e.length; u++)
if ((d = r.__k[u] = (d = e[u]) == null || typeof d == "boolean" ? null : typeof d == "string" || typeof d == "number" || typeof d == "bigint" ? qe(null, d, null, null, d) : Array.isArray(d) ? qe(se, { children: d }, null, null, null) : d.__b > 0 ? qe(d.type, d.props, d.key, d.ref ? d.ref : null, d.__v) : d) != null) {
if (d.__ = r, d.__b = r.__b + 1, (v = g[u]) === null || v && d.key == v.key && d.type === v.type)
g[u] = void 0;
else
for (f = 0; f < b; f++) {
if ((v = g[f]) && d.key == v.key && d.type === v.type) {
g[f] = void 0;
break;
}
v = null;
}
jt(t, d, v = v || Xe, a, i, o, s, l, c), p = d.__e, (f = d.ref) && v.ref != f && (S || (S = []), v.ref && S.push(v.ref, null, d), S.push(f, d.__c || p, d)), p != null ? (E == null && (E = p), typeof d.type == "function" && d.__k === v.__k ? d.__d = l = Mn(d, l, t) : l = kn(t, d, v, g, p, l), typeof r.type == "function" && (r.__d = l)) : l && v.__e == l && l.parentNode != t && (l = Pe(v));
}
for (r.__e = E, u = b; u--; )
g[u] != null && Hn(g[u], g[u]);
if (S)
for (u = 0; u < S.length; u++)
Pn(S[u], S[++u], S[++u]);
}
function Mn(t, e, r) {
for (var n, a = t.__k, i = 0; a && i < a.length; i++)
(n = a[i]) && (n.__ = t, e = typeof n.type == "function" ? Mn(n, e, r) : kn(r, n, n, a, n.__e, e));
return e;
}
function Ke(t, e) {
return e = e || [], t == null || typeof t == "boolean" || (Array.isArray(t) ? t.some(function(r) {
Ke(r, e);
}) : e.push(t)), e;
}
function kn(t, e, r, n, a, i) {
var o, s, l;
if (e.__d !== void 0)
o = e.__d, e.__d = void 0;
else if (r == null || a != i || a.parentNode == null)
e:
if (i == null || i.parentNode !== t)
t.appendChild(a), o = null;
else {
for (s = i, l = 0; (s = s.nextSibling) && l < n.length; l += 2)
if (s == a)
break e;
t.insertBefore(a, i), o = i;
}
return o !== void 0 ? o : a.nextSibling;
}
function si(t, e, r, n, a) {
var i;
for (i in r)
i === "children" || i === "key" || i in e || Je(t, i, null, r[i], n);
for (i in e)
a && typeof e[i] != "function" || i === "children" || i === "key" || i === "value" || i === "checked" || r[i] === e[i] || Je(t, i, e[i], r[i], n);
}
function br(t, e, r) {
e[0] === "-" ? t.setProperty(e, r) : t[e] = r == null ? "" : typeof r != "number" || ii.test(e) ? r : r + "px";
}
function Je(t, e, r, n, a) {
var i;
e:
if (e === "style")
if (typeof r == "string")
t.style.cssText = r;
else {
if (typeof n == "string" && (t.style.cssText = n = ""), n)
for (e in n)
r && e in r || br(t.style, e, "");
if (r)
for (e in r)
n && r[e] === n[e] || br(t.style, e, r[e]);
}
else if (e[0] === "o" && e[1] === "n")
i = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in t ? e.toLowerCase().slice(2) : e.slice(2), t.l || (t.l = {}), t.l[e + i] = r, r ? n || t.addEventListener(e, i ? Cr : Dr, i) : t.removeEventListener(e, i ? Cr : Dr, i);
else if (e !== "dangerouslySetInnerHTML") {
if (a)
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e in t)
try {
t[e] = r == null ? "" : r;
break e;
} catch {
}
typeof r == "function" || (r == null || r === !1 && e.indexOf("-") == -1 ? t.removeAttribute(e) : t.setAttribute(e, r));
}
}
function Dr(t) {
this.l[t.type + !1](T.event ? T.event(t) : t);
}
function Cr(t) {
this.l[t.type + !0](T.event ? T.event(t) : t);
}
function jt(t, e, r, n, a, i, o, s, l) {
var c, u, f, v, d, p, E, S, g, b, C, D, I, _, P, w = e.type;
if (e.constructor !== void 0)
return null;
r.__h != null && (l = r.__h, s = e.__e = r.__e, e.__h = null, i = [s]), (c = T.__b) && c(e);
try {
e:
if (typeof w == "function") {
if (S = e.props, g = (c = w.contextType) && n[c.__c], b = c ? g ? g.props.value : c.__ : n, r.__c ? E = (u = e.__c = r.__c).__ = u.__E : ("prototype" in w && w.prototype.render ? e.__c = u = new w(S, b) : (e.__c = u = new q(S, b), u.constructor = w, u.render = ui), g && g.sub(u), u.props = S, u.state || (u.state = {}), u.context = b, u.__n = n, f = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), w.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = K({}, u.__s)), K(u.__s, w.getDerivedStateFromProps(S, u.__s))), v = u.props, d = u.state, f)
w.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount);
else {
if (w.getDerivedStateFromProps == null && S !== v && u.componentWillReceiveProps != null && u.componentWillReceiveProps(S, b), !u.__e && u.shouldComponentUpdate != null && u.shouldComponentUpdate(S, u.__s, b) === !1 || e.__v === r.__v) {
for (u.props = S, u.state = u.__s, e.__v !== r.__v && (u.__d = !1), u.__v = e, e.__e = r.__e, e.__k = r.__k, e.__k.forEach(function(A) {
A && (A.__ = e);
}), C = 0; C < u._sb.length; C++)
u.__h.push(u._sb[C]);
u._sb = [], u.__h.length && o.push(u);
break e;
}
u.componentWillUpdate != null && u.componentWillUpdate(S, u.__s, b), u.componentDidUpdate != null && u.__h.push(function() {
u.componentDidUpdate(v, d, p);
});
}
if (u.context = b, u.props = S, u.__v = e, u.__P = t, D = T.__r, I = 0, "prototype" in w && w.prototype.render) {
for (u.state = u.__s, u.__d = !1, D && D(e), c = u.render(u.props, u.state, u.context), _ = 0; _ < u._sb.length; _++)
u.__h.push(u._sb[_]);
u._sb = [];
} else
do
u.__d = !1, D && D(e), c = u.render(u.props, u.state, u.context), u.state = u.__s;
while (u.__d && ++I < 25);
u.state = u.__s, u.getChildContext != null && (n = K(K({}, n), u.getChildContext())), f || u.getSnapshotBeforeUpdate == null || (p = u.getSnapshotBeforeUpdate(v, d)), P = c != null && c.type === se && c.key == null ? c.props.children : c, _n(t, Array.isArray(P) ? P : [P], e, r, n, a, i, o, s, l), u.base = e.__e, e.__h = null, u.__h.length && o.push(u), E && (u.__E = u.__ = null), u.__e = !1;
} else
i == null && e.__v === r.__v ? (e.__k = r.__k, e.__e = r.__e) : e.__e = li(r.__e, e, r, n, a, i, o, l);
(c = T.diffed) && c(e);
} catch (A) {
e.__v = null, (l || i != null) && (e.__e = s, e.__h = !!l, i[i.indexOf(s)] = null), T.__e(A, e, r);
}
}
function In(t, e) {
T.__c && T.__c(e, t), t.some(function(r) {
try {
t = r.__h, r.__h = [], t.some(function(n) {
n.call(r);
});
} catch (n) {
T.__e(n, r.__v);
}
});
}
function li(t, e, r, n, a, i, o, s) {
var l, c, u, f = r.props, v = e.props, d = e.type, p = 0;
if (d === "svg" && (a = !0), i != null) {
for (; p < i.length; p++)
if ((l = i[p]) && "setAttribute" in l == !!d && (d ? l.localName === d : l.nodeType === 3)) {
t = l, i[p] = null;
break;
}
}
if (t == null) {
if (d === null)
return document.createTextNode(v);
t = a ? document.createElementNS("http://www.w3.org/2000/svg", d) : document.createElement(d, v.is && v), i = null, s = !1;
}
if (d === null)
f === v || s && t.data === v || (t.data = v);
else {
if (i = i && lt.call(t.childNodes), c = (f = r.props || Xe).dangerouslySetInnerHTML, u = v.dangerouslySetInnerHTML, !s) {
if (i != null)
for (f = {}, p = 0; p < t.attributes.length; p++)
f[t.attributes[p].name] = t.attributes[p].value;
(u || c) && (u && (c && u.__html == c.__html || u.__html === t.innerHTML) || (t.innerHTML = u && u.__html || ""));
}
if (si(t, v, f, a, s), u)
e.__k = [];
else if (p = e.props.children, _n(t, Array.isArray(p) ? p : [p], e, r, n, a && d !== "foreignObject", i, o, i ? i[0] : r.__k && Pe(r, 0), s), i != null)
for (p = i.length; p--; )
i[p] != null && wn(i[p]);
s || ("value" in v && (p = v.value) !== void 0 && (p !== t.value || d === "progress" && !p || d === "option" && p !== f.value) && Je(t, "value", p, f.value, !1), "checked" in v && (p = v.checked) !== void 0 && p !== t.checked && Je(t, "checked", p, f.checked, !1));
}
return t;
}
function Pn(t, e, r) {
try {
typeof t == "function" ? t(e) : t.current = e;
} catch (n) {
T.__e(n, r);
}
}
function Hn(t, e, r) {
var n, a;
if (T.unmount && T.unmount(t), (n = t.ref) && (n.current && n.current !== t.__e || Pn(n, null, e)), (n = t.__c) != null) {
if (n.componentWillUnmount)
try {
n.componentWillUnmount();
} catch (i) {
T.__e(i, e);
}
n.base = n.__P = null, t.__c = void 0;
}
if (n = t.__k)
for (a = 0; a < n.length; a++)
n[a] && Hn(n[a], e, r || typeof t.type != "function");
r || t.__e == null || wn(t.__e), t.__ = t.__e = t.__d = void 0;
}
function ui(t, e, r) {
return this.constructor(t, r);
}
function He(t, e, r) {
var n, a, i;
T.__ && T.__(t, e), a = (n = typeof r == "function") ? null : r && r.__k || e.__k, i = [], jt(e, t = (!n && r || e).__k = ee(se, null, [t]), a || Xe, Xe, e.ownerSVGElement !== void 0, !n && r ? [r] : a ? null : e.firstChild ? lt.call(e.childNodes) : null, i, !n && r ? r : a ? a.__e : e.firstChild, n), In(i, t);
}
function ci(t, e) {
var r = { __c: e = "__cC" + Cn++, __: t, Consumer: function(n, a) {
return n.children(a);
}, Provider: function(n) {
var a, i;
return this.getChildContext || (a = [], (i = {})[e] = this, this.getChildContext = function() {
return i;
}, this.shouldComponentUpdate = function(o) {
this.props.value !== o.value && a.some(Nt);
}, this.sub = function(o) {
a.push(o);
var s = o.componentWillUnmount;
o.componentWillUnmount = function() {
a.splice(a.indexOf(o), 1), s && s.call(o);
};
}), n.children;
} };
return r.Provider.__ = r.Consumer.contextType = r;
}
lt = Rn.slice, T = { __e: function(t, e, r, n) {
for (var a, i, o; e = e.__; )
if ((a = e.__c) && !a.__)
try {
if ((i = a.constructor) && i.getDerivedStateFromError != null && (a.setState(i.getDerivedStateFromError(t)), o = a.__d), a.componentDidCatch != null && (a.componentDidCatch(t, n || {}), o = a.__d), o)
return a.__E = a;
} catch (s) {
t = s;
}
throw t;
} }, Dn = 0, q.prototype.setState = function(t, e) {
var r;
r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = K({}, this.state), typeof t == "function" && (t = t(K({}, r), this.props)), t && K(r, t), t != null && this.__v && (e && this._sb.push(e), Nt(this));
}, q.prototype.forceUpdate = function(t) {
this.__v && (this.__e = !0, t && this.__h.push(t), Nt(this));
}, q.prototype.render = se, we = [], $e.__r = 0, Cn = 0;
var j, yt, Rr, xn = [], Et = [], wr = T.__b, Tr = T.__r, _r = T.diffed, Mr = T.__c, kr = T.unmount;
function fi() {
for (var t; t = xn.shift(); )
if (t.__P && t.__H)
try {
t.__H.__h.forEach(Ye), t.__H.__h.forEach(Ot), t.__H.__h = [];
} catch (e) {
t.__H.__h = [], T.__e(e, t.__v);
}
}
T.__b = function(t) {
typeof t.type != "function" || t.__m || t.__ === null ? t.__m || (t.__m = t.__ && t.__.__m ? t.__.__m : "") : t.__m = (t.__ && t.__.__m ? t.__.__m : "") + (t.__ && t.__.__k ? t.__.__k.indexOf(t) : 0), j = null, wr && wr(t);
}, T.__r = function(t) {
Tr && Tr(t);
var e = (j = t.__c).__H;
e && (yt === j ? (e.__h = [], j.__h = [], e.__.forEach(function(r) {
r.__N && (r.__ = r.__N), r.__V = Et, r.__N = r.i = void 0;
})) : (e.__h.forEach(Ye), e.__h.forEach(Ot), e.__h = [])), yt = j;
}, T.diffed = function(t) {
_r && _r(t);
var e = t.__c;
e && e.__H && (e.__H.__h.length && (xn.push(e) !== 1 && Rr === T.requestAnimationFrame || ((Rr = T.requestAnimationFrame) || di)(fi)), e.__H.__.forEach(function(r) {
r.i && (r.__H = r.i), r.__V !== Et && (r.__ = r.__V), r.i = void 0, r.__V = Et;
})), yt = j = null;
}, T.__c = function(t, e) {
e.some(function(r) {
try {
r.__h.forEach(Ye), r.__h = r.__h.filter(function(n) {
return !n.__ || Ot(n);
});
} catch (n) {
e.some(function(a) {
a.__h && (a.__h = []);
}), e = [], T.__e(n, r.__v);
}
}), Mr && Mr(t, e);
}, T.unmount = function(t) {
kr && kr(t);
var e, r = t.__c;
r && r.__H && (r.__H.__.forEach(function(n) {
try {
Ye(n);
} catch (a) {
e = a;
}
}), r.__H = void 0, e && T.__e(e, r.__v));
};
var Ir = typeof requestAnimationFrame == "function";
function di(t) {
var e, r = function() {
clearTimeout(n), Ir && cancelAnimationFrame(e), setTimeout(t);
}, n = setTimeout(r, 100);
Ir && (e = requestAnimationFrame(r));
}
function Ye(t) {
var e = j, r = t.__c;
typeof r == "function" && (t.__c = void 0, r()), j = e;
}
function Ot(t) {
var e = j;
t.__c = t.__(), j = e;
}
function vi(t, e) {
for (var r in e)
t[r] = e[r];
return t;
}
function Pr(t, e) {
for (var r in t)
if (r !== "__source" && !(r in e))
return !0;
for (var n in e)
if (n !== "__source" && t[n] !== e[n])
return !0;
return !1;
}
function Hr(t) {
this.props = t;
}
(Hr.prototype = new q()).isPureReactComponent = !0, Hr.prototype.shouldComponentUpdate = function(t, e) {
return Pr(this.props, t) || Pr(this.state, e);
};
var xr = T.__b;
T.__b = function(t) {
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), xr && xr(t);
};
var pi = T.__e;
T.__e = function(t, e, r, n) {
if (t.then) {
for (var a, i = e; i = i.__; )
if ((a = i.__c) && a.__c)
return e.__e == null && (e.__e = r.__e, e.__k = r.__k), a.__c(t, e);
}
pi(t, e, r, n);
};
var Ar = T.unmount;
function An(t, e, r) {
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(n) {
typeof n.__c == "function" && n.__c();
}), t.__c.__H = null), (t = vi({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = e), t.__c = null), t.__k = t.__k && t.__k.map(function(n) {
return An(n, e, r);
})), t;
}
function Nn(t, e, r) {
return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(n) {
return Nn(n, e, r);
}), t.__c && t.__c.__P === e && (t.__e && r.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = r)), t;
}
function St() {
this.__u = 0, this.t = null, this.__b = null;
}
function On(t) {
var e = t.__.__c;
return e && e.__a && e.__a(t);
}
function We() {
this.u = null, this.o = null;
}
T.unmount = function(t) {
var e = t.__c;
e && e.__R && e.__R(), e && t.__h === !0 && (t.type = null), Ar && Ar(t);
}, (St.prototype = new q()).__c = function(t, e) {
var r = e.__c, n = this;
n.t == null && (n.t = []), n.t.push(r);
var a = On(n.__v), i = !1, o = function() {
i || (i = !0, r.__R = null, a ? a(s) : s());
};
r.__R = o;
var s = function() {
if (!--n.__u) {
if (n.state.__a) {
var c = n.state.__a;
n.__v.__k[0] = Nn(c, c.__c.__P, c.__c.__O);
}
var u;
for (n.setState({ __a: n.__b = null }); u = n.t.pop(); )
u.forceUpdate();
}
}, l = e.__h === !0;
n.__u++ || l || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(o, o);
}, St.prototype.componentWillUnmount = function() {
this.t = [];
}, St.prototype.render = function(t, e) {
if (this.__b) {
if (this.__v.__k) {
var r = document.createElement("div"), n = this.__v.__k[0].__c;
this.__v.__k[0] = An(this.__b, r, n.__O = n.__P);
}
this.__b = null;
}
var a = e.__a && ee(se, null, t.fallback);
return a && (a.__h = null), [ee(se, null, e.__a ? null : t.children), a];
};
var Nr = function(t, e, r) {
if (++r[1] === r[0] && t.o.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.o.size))
for (r = t.u; r; ) {
for (; r.length > 3; )
r.pop()();
if (r[1] < r[0])
break;
t.u = r = r[2];
}
};
function hi(t) {
return this.getChildContext = function() {
return t.context;
}, t.children;
}
function gi(t) {
var e = this, r = t.i;
e.componentWillUnmount = function() {
He(null, e.l), e.l = null, e.i = null;
}, e.i && e.i !== r && e.componentWillUnmount(), t.__v ? (e.l || (e.i = r, e.l = { nodeType: 1, parentNode: r, childNodes: [], appendChild: function(n) {
this.childNodes.push(n), e.i.appendChild(n);
}, insertBefore: function(n, a) {
this.childNodes.push(n), e.i.appendChild(n);
}, removeChild: function(n) {
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.i.removeChild(n);
} }), He(ee(hi, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
}
function mi(t, e) {
var r = ee(gi, { __v: t, i: e });
return r.containerInfo = e, r;
}
(We.prototype = new q()).__a = function(t) {
var e = this, r = On(e.__v), n = e.o.get(t);
return n[0]++, function(a) {
var i = function() {
e.props.revealOrder ? (n.push(a), Nr(e, t, n)) : a();
};
r ? r(i) : i();
};
}, We.prototype.render = function(t) {
this.u = null, this.o = /* @__PURE__ */ new Map();
var e = Ke(t.children);
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
for (var r = e.length; r--; )
this.o.set(e[r], this.u = [1, 0, this.u]);
return t.children;
}, We.prototype.componentDidUpdate = We.prototype.componentDidMount = function() {
var t = this;
this.o.forEach(function(e, r) {
Nr(t, r, e);
});
};
var yi = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ei = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Si = typeof document < "u", bi = function(t) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(t);
};
q.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
Object.defineProperty(q.prototype, t, { configurable: !0, get: function() {
return this["UNSAFE_" + t];
}, set: function(e) {
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
} });
});
var Or = T.event;
function Di() {
}
function Ci() {
return this.cancelBubble;
}
function Ri() {
return this.defaultPrevented;
}
T.event = function(t) {
return Or && (t = Or(t)), t.persist = Di, t.isPropagationStopped = Ci, t.isDefaultPrevented = Ri, t.nativeEvent = t;
};
var Lr = { configurable: !0, get: function() {
return this.class;
} }, Ur = T.vnode;
T.vnode = function(t) {
var e = t.type, r = t.props, n = r;
if (typeof e == "string") {
var a = e.indexOf("-") === -1;
for (var i in n = {}, r) {
var o = r[i];
Si && i === "children" && e === "noscript" || i === "value" && "defaultValue" in r && o == null || (i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && o === !0 ? o = "" : /ondoubleclick/i.test(i) ? i = "ondblclick" : /^onchange(textarea|input)/i.test(i + e) && !bi(r.type) ? i = "oninput" : /^onfocus$/i.test(i) ? i = "onfocusin" : /^onblur$/i.test(i) ? i = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i) ? i = i.toLowerCase() : a && Ei.test(i) ? i = i.replace(/[A-Z0-9]/g, "-$&").toLowerCase() : o === null && (o = void 0), /^oninput$/i.test(i) && (i = i.toLowerCase(), n[i] && (i = "oninputCapture")), n[i] = o);
}
e == "select" && n.multiple && Array.isArray(n.value) && (n.value = Ke(r.children).forEach(function(s) {
s.props.selected = n.value.indexOf(s.props.value) != -1;
})), e == "select" && n.defaultValue != null && (n.value = Ke(r.children).forEach(function(s) {
s.props.selected = n.multiple ? n.defaultValue.indexOf(s.props.value) != -1 : n.defaultValue == s.props.value;
})), t.props = n, r.class != r.className && (Lr.enumerable = "className" in r, r.className != null && (n.class = r.className), Object.defineProperty(n, "className", Lr));
}
t.$$typeof = yi, Ur && Ur(t);
};
var Vr = T.__r;
T.__r = function(t) {
Vr && Vr(t), t.__c;
};
var Wr = typeof globalThis < "u" ? globalThis : window;
Wr.FullCalendarVDom ? console.warn("FullCalendar VDOM already loaded") : Wr.FullCalendarVDom = {
Component: q,
createElement: ee,
render: He,
createRef: oi,
Fragment: se,
createContext: _i,
createPortal: mi,
flushSync: wi,
unmountComponentAtNode: Mi
};
function wi(t) {
t();
var e = T.debounceRendering, r = [];
function n(a) {
r.push(a);
}
for (T.debounceRendering = n, He(ee(Ti, {}), document.createElement("div")); r.length; )
r.shift()();
T.debounceRendering = e;
}
var Ti = function(t) {
R(e, t);
function e() {
return t !== null && t.apply(this, arguments) || this;
}
return e.prototype.render = function() {
return ee("div", {});
}, e.prototype.componentDidMount = function() {
this.setState({});
}, e;
}(q);
function _i(t) {
var e = ci(t), r = e.Provider;
return e.Provider = function() {
var n = this, a = !this.getChildContext, i = r.apply(this, arguments);
if (a) {
var o = [];
this.shouldComponentUpdate = function(s) {
n.props.value !== s.value && o.forEach(function(l) {
l.context = s.value, l.forceUpdate();
});
}, this.sub = function(s) {
o.push(s);
var l = s.componentWillUnmount;
s.componentWillUnmount = function() {
o.splice(o.indexOf(s), 1), l && l.call(s);
};
};
}
return i;
}, e;
}
function Mi(t) {
He(null, t);
}
if (typeof FullCalendarVDom > "u")
throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");
var Zt = FullCalendarVDom.Component, m = FullCalendarVDom.createElement, ki = FullCalendarVDom.render, G = FullCalendarVDom.createRef, B = FullCalendarVDom.Fragment, Ln = FullCalendarVDom.createContext, Ii = FullCalendarVDom.createPortal, Br = FullCalendarVDom.flushSync, Pi = FullCalendarVDom.unmountComponentAtNode;
/*!
FullCalendar v5.11.3
Docs & License: https://fullcalendar.io/
(c) 2022 Adam Shaw
*/
var ve = function() {
function t(e, r) {
this.context = e, this.internalEventSource = r;
}
return t.prototype.remove = function() {
this.context.dispatch({
type: "REMOVE_EVENT_SOURCE",
sourceId: this.internalEventSource.sourceId
});
}, t.prototype.refetch = function() {
this.context.dispatch({
type: "FETCH_EVENT_SOURCES",
sourceIds: [this.internalEventSource.sourceId],
isRefetch: !0
});
}, Object.defineProperty(t.prototype, "id", {
get: function() {
return this.internalEventSource.publicId;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "url", {
get: function() {
return this.internalEventSource.meta.url;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(t.prototype, "format", {
get: function() {
return this.internalEventSource.meta.format;
},
enumerable: !1,
configurable: !0
}), t;
}();
function Xt(t) {
t.parentNode && t.parentNode.removeChild(t);
}
function V(t, e) {
if (t.closest)
return t.closest(e);
if (!document.documentElement.contains(t))
return null;
do {
if (Hi(t, e))
return t;
t = t.parentElement || t.parentNode;
} while (t !== null && t.nodeType === 1);
return null;
}
function Hi(t, e) {
var r = t.matches || t.matchesSelector || t.msMatchesSelector;
return r.call(t, e);
}
function xi(t, e) {
for (var r = t instanceof HTMLElement ? [t] : t, n = [], a = 0; a < r.length; a += 1)
for (var i = r[a].querySelectorAll(e), o = 0; o < i.length; o += 1)
n.push(i[o]);
return n;
}
var Ai = /(top|left|right|bottom|width|height)$/i;
function Te(t, e) {
for (var r in e)
Un(t, r, e[r]);
}
function Un(t, e, r) {
r == null ? t.style[e] = "" : typeof r == "number" && Ai.test(e) ? t.style[e] = r + "px" : t.style[e] = r;
}
function Vn(t) {
var e, r;
return (r = (e = t.composedPath) === null || e === void 0 ? void 0 : e.call(t)[0]) !== null && r !== void 0 ? r : t.target;
}
function Wn(t) {
return t.getRootNode ? t.getRootNode() : document;
}
var Fr = 0;
function ut() {
return Fr += 1, "fc-dom-" + Fr;
}
function ct(t) {
t.preventDefault();
}
function Ni(t, e) {
return function(r) {
var n = V(r.target, t);
n && e.call(n, r, n);
};
}
function Bn(t, e, r, n) {
var a = Ni(r, n);
return t.addEventListener(e, a), function() {
t.removeEventListener(e, a);
};
}
function Oi(t, e, r, n) {
var a;
return Bn(t, "mouseover", e, function(i, o) {
if (o !== a) {
a = o, r(i, o);
var s = function(l) {
a = null, n(l, o), o.removeEventListener("mouseleave", s);
};
o.addEventListener("mouseleave", s);
}
});
}
var zr = [
"webkitTransitionEnd",
"otransitionend",
"oTransitionEnd",
"msTransitionEnd",
"transitionend"
];
function Li(t, e) {
var r = function(n) {
e(n), zr.forEach(function(a) {
t.removeEventListener(a, r);
});
};
zr.forEach(function(n) {
t.addEventListener(n, r);
});
}
function Fn(t) {
return h({ onClick: t }, zn(t));
}
function zn(t) {
return {
tabIndex: 0,
onKeyDown: function(e) {
(e.key === "Enter" || e.key === " ") && (t(e), e.preventDefault());
}
};
}
var Gr = 0;
function Se() {
return Gr += 1, String(Gr);
}
function $t() {
document.body.classList.add("fc-not-allowed");
}
function Kt() {
document.body.classList.remove("fc-not-allowed");
}
function Ui(t) {
t.classList.add("fc-unselectable"), t.addEventListener("selectstart", ct);
}
function Vi(t) {
t.classList.remove("fc-unselectable"), t.removeEventListener("selectstart", ct);
}
function Wi(t) {
t.addEventListener("contextmenu", ct);
}
function Bi(t) {
t.removeEventListener("contextmenu", ct);
}
function Fi(t) {
var e = [], r = [], n, a;
for (typeof t == "string" ? r = t.split(/\s*,\s*/) : typeof t == "function" ? r = [t] : Array.isArray(t) && (r = t), n = 0; n < r.length; n += 1)
a = r[n], typeof a == "string" ? e.push(a.charAt(0) === "-" ? { field: a.substring(1), order: -1 } : { field: a, order: 1 }) : typeof a == "function" && e.push({ func: a });
return e;
}
function zi(t, e, r) {
var n, a;
for (n = 0; n < r.length; n += 1)
if (a = Gi(t, e, r[n]), a)
return a;
return 0;
}
function Gi(t, e, r) {
return r.func ? r.func(t, e) : qi(t[r.field], e[r.field]) * (r.order || 1);
}
function qi(t, e) {
return !t && !e ? 0 : e == null ? -1 : t == null ? 1 : typeof t == "string" || typeof e == "string" ? String(t).localeCompare(String(e)) : t - e;
}
function bt(t, e) {
var r = String(t);
return "000".substr(0, e - r.length) + r;
}
function _e(t, e, r) {
return typeof t == "function" ? t.apply(void 0, e) : typeof t == "string" ? e.reduce(function(n, a, i) {
return n.replace("$" + i, a || "");
}, t) : r;
}
function Yi(t, e) {
return t - e;
}
function Dt(t) {
return t % 1 === 0;
}
function ji(t) {
var e = t.querySelector(".fc-scrollgrid-shrink-frame"), r = t.querySelector(".fc-scrollgrid-shrink-cushion");
if (!e)
throw new Error("needs fc-scrollgrid-shrink-frame className");
if (!r)
throw new Error("needs fc-scrollgrid-shrink-cushion className");
return t.getBoundingClientRect().width - e.getBoundingClientRect().width + r.getBoundingClientRect().width;
}
var Zi = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
function qr(t, e) {
var r = J(t);
return r[2] += e * 7, F(r);
}
function W(t, e) {
var r = J(t);
return r[2] += e, F(r);
}
function le(t, e) {
var r = J(t);
return r[6] += e, F(r);
}
function Xi(t, e) {
return be(t, e) / 7;
}
function be(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60 * 24);
}
function $i(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60 * 60);
}
function Ki(t, e) {
return (e.valueOf() - t.valueOf()) / (1e3 * 60);
}
function Ji(t, e) {
return (e.valueOf() - t.valueOf()) / 1e3;
}
function Qi(t, e) {
var r = H(t), n = H(e);
return {
years: 0,
months: 0,
days: Math.round(be(r, n)),
milliseconds: e.valueOf() - n.valueOf() - (t.valueOf() - r.valueOf())
};
}
function eo(t, e) {
var r = Qe(t, e);
return r !== null && r % 7 === 0 ? r / 7 : null;
}
function Qe(t, e) {
return Q(t) === Q(e) ? Math.round(be(t, e)) : null;
}
function H(t) {
return F([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate()
]);
}
function to(t) {
return F([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours()
]);
}
function ro(t) {
return F([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours(),
t.getUTCMinutes()
]);
}
function no(t) {
return F([
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours(),
t.getUTCMinutes(),
t.getUTCSeconds()
]);
}
function ao(t, e, r) {
var n = t.getUTCFullYear(), a = Ct(t, n, e, r);
if (a < 1)
return Ct(t, n - 1, e, r);
var i = Ct(t, n + 1, e, r);
return i >= 1 ? Math.min(a, i) : a;
}
function Ct(t, e, r, n) {
var a = F([e, 0, 1 + io(e, r, n)]), i = H(t), o = Math.round(be(a, i));
return Math.floor(o / 7) + 1;
}
function io(t, e, r) {
var n = 7 + e - r, a = (7 + F([t, 0, n]).getUTCDay() - e) % 7;
return -a + n - 1;
}
function Yr(t) {
return [
t.getFullYear(),
t.getMonth(),
t.getDate(),
t.getHours(),
t.getMinutes(),
t.getSeconds(),
t.getMilliseconds()
];
}
function jr(t) {
return new Date(
t[0],
t[1] || 0,
t[2] == null ? 1 : t[2],
t[3] || 0,
t[4] || 0,
t[5] || 0
);
}
function J(t) {
return [
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate(),
t.getUTCHours(),
t.getUTCMinutes(),
t.getUTCSeconds(),
t.getUTCMilliseconds()
];
}
function F(t) {
return t.length === 1 && (t = t.concat([0])), new Date(Date.UTC.apply(Date, t));
}
function Gn(t) {
return !isNaN(t.valueOf());
}
function Q(t) {
return t.getUTCHours() * 1e3 * 60 * 60 + t.getUTCMinutes() * 1e3 * 60 + t.getUTCSeconds() * 1e3 + t.getUTCMilliseconds();
}
function Jt(t, e, r, n) {
return {
instanceId: Se(),
defId: t,
range: e,
forcedStartTzo: r == null ? null : r,
forcedEndTzo: n == null ? null : n
};
}
var et = Object.prototype.hasOwnProperty;
function Qt(t, e) {
var r = {};
if (e)
for (var n in e) {
for (var a = [], i = t.length - 1; i >= 0; i -= 1) {
var o = t[i][n];
if (typeof o == "object" && o)
a.unshift(o);
else if (o !== void 0) {
r[n] = o;
break;
}
}
a.length && (r[n] = Qt(a));
}
for (var i = t.length - 1; i >= 0; i -= 1) {
var s = t[i];
for (var l in s)
l in r || (r[l] = s[l]);
}
return r;
}
function ue(t, e) {
var r = {};
for (var n in t)
e(t[n], n) && (r[n] = t[n]);
return r;
}
function ce(t, e) {
var r = {};
for (var n in t)
r[n] = e(t[n], n);
return r;
}
function qn(t) {
for (var e = {}, r = 0, n = t; r < n.length; r++) {
var a = n[r];
e[a] = !0;
}
return e;
}
function er(t) {
var e = [];
for (var r in t)
e.push(t[r]);
return e;
}
function X(t, e) {
if (t === e)
return !0;
for (var r in t)
if (et.call(t, r) && !(r in e))
return !1;
for (var r in e)
if (et.call(e, r) && t[r] !== e[r])
return !1;
return !0;
}
function Zr(t, e) {
var r = [];
for (var n in t)
et.call(t, n) && (n in e || r.push(n));
for (var n in e)
et.call(e, n) && t[n] !== e[n] && r.push(n);
return r;
}
function Rt(t, e, r) {
if (r === void 0 && (r = {}), t === e)
return !0;
for (var n in e)
if (!(n in t && oo(t[n], e[n], r[n])))
return !1;
for (var n in t)
if (!(n in e))
return !1;
return !0;
}
function oo(t, e, r) {
return t === e || r === !0 ? !0 : r ? r(t, e) : !1;
}
function so(t, e, r, n) {
e === void 0 && (e = 0), n === void 0 && (n = 1);
var a = [];
r == null && (r = Object.keys(t).length);
for (var i = e; i < r; i += n) {
var o = t[i];
o !== void 0 && a.push(o);
}
return a;
}
function lo(t, e, r, n) {
for (var a = 0; a < n.length; a += 1) {
var i = n[a].parse(t, r);
if (i) {
var o = t.allDay;
return o == null && (o = e, o == null && (o = i.allDayGuess, o == null && (o = !1))), {
allDay: o,
duration: i.duration,
typeData: i.typeData,
typeId: a
};
}
}
return null;
}
function me(t, e, r) {
var n = r.dateEnv, a = r.pluginHooks, i = r.options, o = t.defs, s = t.instances;
s = ue(s, function(S) {
return !o[S.defId].recurringDef;
});
for (var l in o) {
var c = o[l];
if (c.recurringDef) {
var u = c.recurringDef.duration;
u || (u = c.allDay ? i.defaultAllDayEventDuration : i.defaultTimedEventDuration);
for (var f = uo(c, u, e, n, a.recurringTypes), v = 0, d = f; v < d.length; v++) {
var p = d[v], E = Jt(l, {
start: p,
end: n.add(p, u)
});
s[E.instanceId] = E;
}
}
}
return { defs: o, instances: s };
}
function uo(t, e, r, n, a) {
var i = a[t.recurringDef.typeId], o = i.expand(t.recurringDef.typeData, {
start: n.subtract(r.start, e),
end: r.end
}, n);
return t.allDay && (o = o.map(H)), o;
}
var co = /^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;
function k(t, e) {
var r;
return typeof t == "string" ? fo(t) : typeof t == "object" && t ? Xr(t) : typeof t == "number" ? Xr((r = {}, r[e || "milliseconds"] = t, r)) : null;
}
function fo(t) {
var e = co.exec(t);
if (e) {
var r = e[1] ? -1 : 1;
return {
years: 0,
months: 0,
days: r * (e[2] ? parseInt(e[2], 10) : 0),
milliseconds: r * ((e[3] ? parseInt(e[3], 10) : 0) * 60 * 60 * 1e3 + (e[4] ? parseInt(e[4], 10) : 0) * 60 * 1e3 + (e[5] ? parseInt(e[5], 10) : 0) * 1e3 + (e[6] ? parseInt(e[6], 10) : 0))
};
}
return null;
}
function Xr(t) {
var e = {
years: t.years || t.year || 0,
months: t.months || t.month || 0,
days: t.days || t.day || 0,
milliseconds: (t.hours || t.hour || 0) * 60 * 60 * 1e3 + (t.minutes || t.minute || 0) * 60 * 1e3 + (t.seconds || t.second || 0) * 1e3 + (t.milliseconds || t.millisecond || t.ms || 0)
}, r = t.weeks || t.week;
return r && (e.days += r * 7, e.specifiedWeeks = !0), e;
}
function vo(t, e) {
return t.years === e.years && t.months === e.months && t.days === e.days && t.milliseconds === e.milliseconds;
}
function po(t, e) {
return {
years: t.years - e.years,
months: t.months - e.months,
days: t.days - e.days,
milliseconds: t.milliseconds - e.milliseconds
};
}
function ho(t) {
return he(t) / 365;
}
function go(t) {
return he(t) / 30;
}
function he(t) {
return xe(t) / 864e5;
}
function xe(t) {
return t.years * (365 * 864e5) + t.months * (30 * 864e5) + t.days * 864e5 + t.milliseconds;
}
function Lt(t) {
var e = t.milliseconds;
if (e) {
if (e % 1e3 !== 0)
return { unit: "millisecond", value: e };
if (e % (1e3 * 60) !== 0)
return { unit: "second", value: e / 1e3 };
if (e % (1e3 * 60 * 60) !== 0)
return { unit: "minute", value: e / (1e3 * 60) };
if (e)
return { unit: "hour", value: e / (1e3 * 60 * 60) };
}
return t.days ? t.specifiedWeeks && t.days % 7 === 0 ? { unit: "week", value: t.days / 7 } : { unit: "day", value: t.days } : t.months ? { unit: "month", value: t.months } : t.years ? { unit: "year", value: t.years } : { unit: "millisecond", value: 0 };
}
function mo(t, e, r) {
r === void 0 && (r = !1);
var n = t.toISOString();
return n = n.replace(".000", ""), r && (n = n.replace("T00:00:00Z", "")), n.length > 10 && (e == null ? n = n.replace("Z", "") : e !== 0 && (n = n.replace("Z", tr(e, !0)))), n;
}
function Yn(t) {
return t.toISOString().replace(/T.*$/, "");
}
function tr(t, e) {
e === void 0 && (e = !1);
var r = t < 0 ? "-" : "+", n = Math.abs(t), a = Math.floor(n / 60), i = Math.round(n % 60);
return e ? r + bt(a, 2) + ":" + bt(i, 2) : "GMT" + r + a + (i ? ":" + bt(i, 2) : "");
}
function ye(t, e, r) {
if (t === e)
return !0;
var n = t.length, a;
if (n !== e.length)
return !1;
for (a = 0; a < n; a += 1)
if (!(r ? r(t[a], e[a]) : t[a] === e[a]))
return !1;
return !0;
}
function M(t, e, r) {
var n, a;
return function() {
for (var i = [], o = 0; o < arguments.length; o++)
i[o] = arguments[o];
if (!n)
a = t.apply(this, i);
else if (!ye(n, i)) {
r && r(a);
var s = t.apply(this, i);
(!e || !e(s, a)) && (a = s);
}
return n = i, a;
};
}
function je(t, e, r) {
var n = this, a, i;
return function(o) {
if (!a)
i = t.call(n, o);
else if (!X(a, o)) {
r && r(i);
var s = t.call(n, o);
(!e || !e(s, i)) && (i = s);
}
return a = o, i;
};
}
var $r = {
week: 3,
separator: 0,
omitZeroMinute: 0,
meridiem: 0,
omitCommas: 0
}, tt = {
timeZoneName: 7,
era: 6,
year: 5,
month: 4,
day: 2,
weekday: 2,
hour: 1,
minute: 1,
second: 1
}, Be = /\s*([ap])\.?m\.?/i, yo = /,/g, Eo = /\s+/g, So = /\u200e/g, bo = /UTC|GMT/, Do = function() {
function t(e) {
var r = {}, n = {}, a = 0;
for (var i in e)
i in $r ? (n[i] = e[i], a = Math.max($r[i], a)) : (r[i] = e[i], i in tt && (a = Math.max(tt[i], a)));
this.standardDateProps = r, this.extendedSettings = n, this.severity = a, this.buildFormattingFunc = M(Kr);
}
return t.prototype.format = function(e, r) {
return this.buildFormattingFunc(this.standardDateProps, this.extendedSettings, r)(e);
}, t.prototype.formatRange = function(e, r, n, a) {
var i = this, o = i.standardDateProps, s = i.extendedSettings, l = Mo(e.marker, r.marker, n.calendarSystem);
if (!l)
return this.format(e, n);
var c = l;
c > 1 && (o.year === "numeric" || o.year === "2-digit") && (o.month === "numeric" || o.month === "2-digit") && (o.day === "numeric" || o.day === "2-digit") && (c = 1);
var u = this.format(e, n), f = this.format(r, n);
if (u === f)
return u;
var v = ko(o, c), d = Kr(v, s, n), p = d(e), E = d(r), S = Io(u, p, f, E), g = s.separator || a || n.defaultSeparator || "";
return S ? S.before + p + g + E + S.after : u + g + f;
}, t.prototype.getLargestUnit = function() {
switch (this.severity) {
case 7:
case 6:
case 5:
return "year";
case 4:
return "month";
case 3:
return "week";
case 2:
return "day";
default:
return "time";
}
}, t;
}();
function Kr(t, e, r) {
var n = Object.keys(t).length;
return n === 1 && t.timeZoneName === "short" ? function(a) {
return tr(a.timeZoneOffset);
} : n === 0 && e.week ? function(a) {
return _o(r.computeWeekNumber(a.marker), r.weekText, r.weekTextLong, r.locale, e.week);
} : Co(t, e, r);
}
function Co(t, e, r) {
t = h({}, t), e = h({}, e), Ro(t, e), t.timeZone = "UTC";
var n = new Intl.DateTimeFormat(r.locale.codes, t), a;
if (e.omitZeroMinute) {
var i = h({}, t);
delete i.minute, a = new Intl.DateTimeFormat(r.locale.codes, i);
}
return function(o) {
var s = o.marker, l;
a && !s.getUTCMinutes() ? l = a : l = n;
var c = l.format(s);
return wo(c, o, t, e, r);
};
}
function Ro(t, e) {
t.timeZoneName && (t.hour || (t.hour = "2-digit"), t.minute || (t.minute = "2-digit")), t.timeZoneName === "long" && (t.timeZoneName = "short"), e.omitZeroMinute && (t.second || t.millisecond) && delete e.omitZeroMinute;
}
function wo(t, e, r, n, a) {
return t = t.replace(So, ""), r.timeZoneName === "short" && (t = To(t, a.timeZone === "UTC" || e.timeZoneOffset == null ? "UTC" : tr(e.timeZoneOffset))), n.omitCommas && (t = t.replace(yo, "").trim()), n.omitZeroMinute && (t = t.replace(":00", "")), n.meridiem === !1 ? t = t.replace(Be, "").trim() : n.meridiem === "narrow" ? t = t.replace(Be, function(i, o) {
return o.toLocaleLowerCase();
}) : n.meridiem === "short" ? t = t.replace(Be, function(i, o) {
return o.toLocaleLowerCase() + "m";
}) : n.meridiem === "lowercase" && (t = t.replace(Be, function(i) {
return i.toLocaleLowerCase();
})), t = t.replace(Eo, " "), t = t.trim(), t;
}
function To(t, e) {
var r = !1;
return t = t.replace(bo, function() {
return r = !0, e;
}), r || (t += " " + e), t;
}
function _o(t, e, r, n, a) {
var i = [];
return a === "long" ? i.push(r) : (a === "short" || a === "narrow") && i.push(e), (a === "long" || a === "short") && i.push(" "), i.push(n.simpleNumberFormat.format(t)), n.options.direction === "rtl" && i.reverse(), i.join("");
}
function Mo(t, e, r) {
return r.getMarkerYear(t) !== r.getMarkerYear(e) ? 5 : r.getMarkerMonth(t) !== r.getMarkerMonth(e) ? 4 : r.getMarkerDay(t) !== r.getMarkerDay(e) ? 2 : Q(t) !== Q(e) ? 1 : 0;
}
function ko(t, e) {
var r = {};
for (var n in t)
(!(n in tt) || tt[n] <= e) && (r[n] = t[n]);
return r;
}
function Io(t, e, r, n) {
for (var a = 0; a < t.length; ) {
var i = t.indexOf(e, a);
if (i === -1)
break;
var o = t.substr(0, i);
a = i + e.length;
for (var s = t.substr(a), l = 0; l < r.length; ) {
var c = r.indexOf(n, l);
if (c === -1)
break;
var u = r.substr(0, c);
l = c + n.length;
var f = r.substr(l);
if (o === u && s === f)
return {
before: o,
after: s
};
}
}
return null;
}
function Jr(t, e) {
var r = e.markerToArray(t.marker);
return {
marker: t.marker,
timeZoneOffset: t.timeZoneOffset,
array: r,
year: r[0],
month: r[1],
day: r[2],
hour: r[3],
minute: r[4],
second: r[5],
millisecond: r[6]
};
}
function rt(t, e, r, n) {
var a = Jr(t, r.calendarSystem), i = e ? Jr(e, r.calendarSystem) : null;
return {
date: a,
start: a,
end: i,
timeZone: r.timeZone,
localeCodes: r.locale.codes,
defaultSeparator: n || r.defaultSeparator
};
}
var Po = function() {
function t(e) {
this.cmdStr = e;
}
return t.prototype.format = function(e, r, n) {
return r.cmdFormatter(this.cmdStr, rt(e, null, r, n));
}, t.prototype.formatRange = function(e, r, n, a) {
return n.cmdFormatter(this.cmdStr, rt(e, r, n, a));
}, t;
}(), Ho = function() {
function t(e) {
this.func = e;
}
return t.prototype.format = function(e, r, n) {
return this.func(rt(e, null, r, n));
}, t.prototype.formatRange = function(e, r, n, a) {
return this.func(rt(e, r, n, a));
}, t;
}();
function U(t) {
return typeof t == "object" && t ? new Do(t) : typeof t == "string" ? new Po(t) : typeof t == "function" ? new Ho(t) : null;
}
var Qr = {
navLinkDayClick: y,
navLinkWeekClick: y,
duration: k,
bootstrapFontAwesome: y,
buttonIcons: y,
customButtons: y,
defaultAllDayEventDuration: k,
defaultTimedEventDuration: k,
nextDayThreshold: k,
scrollTime: k,
scrollTimeReset: Boolean,
slotMinTime: k,
slotMaxTime: k,
dayPopoverFormat: U,
slotDuration: k,
snapDuration: k,
headerToolbar: y,
footerToolbar: y,
defaultRangeSeparator: String,
titleRangeSeparator: String,
forceEventDuration: Boolean,
dayHeaders: Boolean,
dayHeaderFormat: U,
dayHeaderClassNames: y,
dayHeaderContent: y,
dayHeaderDidMount: y,
dayHeaderWillUnmount: y,
dayCellClassNames: y,
dayCellContent: y,
dayCellDidMount: y,
dayCellWillUnmount: y,
initialView: String,
aspectRatio: Number,
weekends: Boolean,
weekNumberCalculation: y,
weekNumbers: Boolean,
weekNumberClassNames: y,
weekNumberContent: y,
weekNumberDidMount: y,
weekNumberWillUnmount: y,
editable: Boolean,
viewClassNames: y,
viewDidMount: y,
viewWillUnmount: y,
nowIndicator: Boolean,
nowIndicatorClassNames: y,
nowIndicatorContent: y,
nowIndicatorDidMount: y,
nowIndicatorWillUnmount: y,
showNonCurrentDates: Boolean,
lazyFetching: Boolean,
startParam: String,
endParam: String,
timeZoneParam: String,
timeZone: String,
locales: y,
locale: y,
themeSystem: String,
dragRevertDuration: Number,
dragScroll: Boolean,
allDayMaintainDuration: Boolean,
unselectAuto: Boolean,
dropAccept: y,
eventOrder: Fi,
eventOrderStrict: Boolean,
handleWindowResize: Boolean,
windowResizeDelay: Number,
longPressDelay: Number,
eventDragMinDistance: Number,
expandRows: Boolean,
height: y,
contentHeight: y,
direction: String,
weekNumberFormat: U,
eventResizableFromStart: Boolean,
displayEventTime: Boolean,
displayEventEnd: Boolean,
weekText: String,
weekTextLong: String,
progressiveEventRendering: Boolean,
businessHours: y,
initialDate: y,
now: y,
eventDataTransform: y,
stickyHeaderDates: y,
stickyFooterScrollbar: y,
viewHeight: y,
defaultAllDay: Boolean,
eventSourceFailure: y,
eventSourceSuccess: y,
eventDisplay: String,
eventStartEditable: Boolean,
eventDurationEditable: Boolean,
eventOverlap: y,
eventConstraint: y,
eventAllow: y,
eventBackgroundColor: String,
eventBorderColor: String,
eventTextColor: String,
eventColor: String,
eventClassNames: y,
eventContent: y,
eventDidMount: y,
eventWillUnmount: y,
selectConstraint: y,
selectOverlap: y,
selectAllow: y,
droppable: Boolean,
unselectCancel: String,
slotLabelFormat: y,
slotLaneClassNames: y,
slotLaneContent: y,
slotLaneDidMount: y,
slotLaneWillUnmount: y,
slotLabelClassNames: y,
slotLabelContent: y,
slotLabelDidMount: y,
slotLabelWillUnmount: y,
dayMaxEvents: y,
dayMaxEventRows: y,
dayMinWidth: Number,
slotLabelInterval: k,
allDayText: String,
allDayClassNames: y,
allDayContent: y,
allDayDidMount: y,
allDayWillUnmount: y,
slotMinWidth: Number,
navLinks: Boolean,
eventTimeFormat: U,
rerenderDelay: Number,
moreLinkText: y,
moreLinkHint: y,
selectMinDistance: Number,
selectable: Boolean,
selectLongPressDelay: Number,
eventLongPressDelay: Number,
selectMirror: Boole