UNPKG

when-off

Version:

一个用于处理日期、日历、节假日和工作日的 TypeScript 工具库, 并且提供各个国家法定节假日和调休安排信息数据

1,927 lines 80.4 kB
!(function (t, n) { 'object' == typeof exports && 'undefined' != typeof module ? (module.exports = n()) : 'function' == typeof define && define.amd ? define(n) : ((t = 'undefined' != typeof globalThis ? globalThis : t || self).DateTravel = n()); })(this, function () { 'use strict'; var t = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : 'undefined' != typeof global ? global : 'undefined' != typeof self ? self : {}; function n(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, 'default') ? t.default : t; } var e, r, i = {}; function o() { if (r) return e; r = 1; var n = function (t) { return t && t.Math === Math && t; }; return (e = n('object' == typeof globalThis && globalThis) || n('object' == typeof window && window) || n('object' == typeof self && self) || n('object' == typeof t && t) || n('object' == typeof e && e) || (function () { return this; })() || Function('return this')()); } var a, u, s, c, l, f, d, p, h, g, v, y, b, m, x, w, S, D, O, $, k, M, T, E, C, j, I, A, L, P, z, F, _, B, Y, H, q, U = { exports: {} }; function R() { if (c) return s; c = 1; var t = o(), n = Object.defineProperty; return (s = function (e, r) { try { n(t, e, { value: r, configurable: !0, writable: !0 }); } catch (n) { t[e] = r; } return r; }); } function W() { if (l) return U.exports; l = 1; var t = u ? a : ((u = 1), (a = !1)), n = o(), e = R(), r = '__core-js_shared__', i = (U.exports = n[r] || e(r, {})); return ( (i.versions || (i.versions = [])).push({ version: '3.46.0', mode: t ? 'pure' : 'global', copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)', license: 'https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE', source: 'https://github.com/zloirock/core-js', }), U.exports ); } function N() { if (d) return f; d = 1; var t = W(); return (f = function (n, e) { return t[n] || (t[n] = e || {}); }); } function V() { return h ? p : ((h = 1), (p = function (t) { try { return !!t(); } catch (t) { return !0; } })); } function X() { if (v) return g; v = 1; var t = V(); return (g = !t(function () { var t = function () {}.bind(); return 'function' != typeof t || t.hasOwnProperty('prototype'); })); } function G() { if (b) return y; b = 1; var t = X(), n = Function.prototype, e = n.call, r = t && n.bind.bind(e, e); return ( (y = t ? r : function (t) { return function () { return e.apply(t, arguments); }; }), y ); } function J() { return x ? m : ((x = 1), (m = function (t) { return null == t; })); } function Z() { if (S) return w; S = 1; var t = J(), n = TypeError; return (w = function (e) { if (t(e)) throw new n("Can't call method on " + e); return e; }); } function K() { if (O) return D; O = 1; var t = Z(), n = Object; return (D = function (e) { return n(t(e)); }); } function Q() { if (k) return $; k = 1; var t = G(), n = K(), e = t({}.hasOwnProperty); return ($ = Object.hasOwn || function (t, r) { return e(n(t), r); }); } function tt() { if (T) return M; T = 1; var t = G(), n = 0, e = Math.random(), r = t((1.1).toString); return (M = function (t) { return 'Symbol(' + (void 0 === t ? '' : t) + ')_' + r(++n + e, 36); }); } function nt() { if (I) return j; I = 1; var t, n, e = o(), r = (function () { if (C) return E; C = 1; var t = o().navigator, n = t && t.userAgent; return (E = n ? String(n) : ''); })(), i = e.process, a = e.Deno, u = (i && i.versions) || (a && a.version), s = u && u.v8; return ( s && (n = (t = s.split('.'))[0] > 0 && t[0] < 4 ? 1 : +(t[0] + t[1])), !n && r && (!(t = r.match(/Edge\/(\d+)/)) || t[1] >= 74) && (t = r.match(/Chrome\/(\d+)/)) && (n = +t[1]), (j = n) ); } function et() { if (L) return A; L = 1; var t = nt(), n = V(), e = o().String; return (A = !!Object.getOwnPropertySymbols && !n(function () { var n = Symbol('symbol detection'); return !e(n) || !(Object(n) instanceof Symbol) || (!Symbol.sham && t && t < 41); })); } function rt() { if (z) return P; z = 1; var t = et(); return (P = t && !Symbol.sham && 'symbol' == typeof Symbol.iterator); } function it() { if (_) return F; _ = 1; var t = o(), n = N(), e = Q(), r = tt(), i = et(), a = rt(), u = t.Symbol, s = n('wks'), c = a ? u.for || u : (u && u.withoutSetter) || r; return (F = function (t) { return (e(s, t) || (s[t] = i && e(u, t) ? u[t] : c('Symbol.' + t)), s[t]); }); } function ot() { if (Y) return B; Y = 1; var t = {}; return ((t[it()('toStringTag')] = 'z'), (B = '[object z]' === String(t))); } function at() { if (q) return H; q = 1; var t = 'object' == typeof document && document.all; return (H = void 0 === t && void 0 !== t ? function (n) { return 'function' == typeof n || n === t; } : function (t) { return 'function' == typeof t; }); } var ut, st, ct, lt, ft, dt, pt, ht, gt, vt, yt, bt, mt, xt, wt, St, Dt, Ot, $t, kt, Mt, Tt, Et, Ct, jt, It, At, Lt, Pt, zt, Ft, _t, Bt, Yt = {}; function Ht() { if (st) return ut; st = 1; var t = V(); return (ut = !t(function () { return ( 7 !== Object.defineProperty({}, 1, { get: function () { return 7; }, })[1] ); })); } function qt() { if (lt) return ct; lt = 1; var t = at(); return (ct = function (n) { return 'object' == typeof n ? null !== n : t(n); }); } function Ut() { if (ht) return pt; ht = 1; var t = Ht(), n = V(), e = (function () { if (dt) return ft; dt = 1; var t = o(), n = qt(), e = t.document, r = n(e) && n(e.createElement); return (ft = function (t) { return r ? e.createElement(t) : {}; }); })(); return (pt = !t && !n(function () { return ( 7 !== Object.defineProperty(e('div'), 'a', { get: function () { return 7; }, }).a ); })); } function Rt() { if (bt) return yt; bt = 1; var t = qt(), n = String, e = TypeError; return (yt = function (r) { if (t(r)) return r; throw new e(n(r) + ' is not an object'); }); } function Wt() { if (xt) return mt; xt = 1; var t = X(), n = Function.prototype.call; return ( (mt = t ? n.bind(n) : function () { return n.apply(n, arguments); }), mt ); } function Nt() { if (St) return wt; St = 1; var t = o(), n = at(); return ( (wt = function (e, r) { return arguments.length < 2 ? ((i = t[e]), n(i) ? i : void 0) : t[e] && t[e][r]; var i; }), wt ); } function Vt() { if (Ot) return Dt; Ot = 1; var t = G(); return (Dt = t({}.isPrototypeOf)); } function Xt() { if (kt) return $t; kt = 1; var t = Nt(), n = at(), e = Vt(), r = rt(), i = Object; return ($t = r ? function (t) { return 'symbol' == typeof t; } : function (r) { var o = t('Symbol'); return n(o) && e(o.prototype, i(r)); }); } function Gt() { if (Tt) return Mt; Tt = 1; var t = String; return (Mt = function (n) { try { return t(n); } catch (t) { return 'Object'; } }); } function Jt() { if (Ct) return Et; Ct = 1; var t = at(), n = Gt(), e = TypeError; return (Et = function (r) { if (t(r)) return r; throw new e(n(r) + ' is not a function'); }); } function Zt() { if (It) return jt; It = 1; var t = Jt(), n = J(); return (jt = function (e, r) { var i = e[r]; return n(i) ? void 0 : t(i); }); } function Kt() { if (Lt) return At; Lt = 1; var t = Wt(), n = at(), e = qt(), r = TypeError; return (At = function (i, o) { var a, u; if ('string' === o && n((a = i.toString)) && !e((u = t(a, i)))) return u; if (n((a = i.valueOf)) && !e((u = t(a, i)))) return u; if ('string' !== o && n((a = i.toString)) && !e((u = t(a, i)))) return u; throw new r("Can't convert object to primitive value"); }); } function Qt() { if (zt) return Pt; zt = 1; var t = Wt(), n = qt(), e = Xt(), r = Zt(), i = Kt(), o = it(), a = TypeError, u = o('toPrimitive'); return (Pt = function (o, s) { if (!n(o) || e(o)) return o; var c, l = r(o, u); if (l) { if ((void 0 === s && (s = 'default'), (c = t(l, o, s)), !n(c) || e(c))) return c; throw new a("Can't convert object to primitive value"); } return (void 0 === s && (s = 'number'), i(o, s)); }); } function tn() { if (_t) return Ft; _t = 1; var t = Qt(), n = Xt(); return (Ft = function (e) { var r = t(e, 'string'); return n(r) ? r : r + ''; }); } function nn() { if (Bt) return Yt; Bt = 1; var t = Ht(), n = Ut(), e = (function () { if (vt) return gt; vt = 1; var t = Ht(), n = V(); return (gt = t && n(function () { return ( 42 !== Object.defineProperty(function () {}, 'prototype', { value: 42, writable: !1 }) .prototype ); })); })(), r = Rt(), i = tn(), o = TypeError, a = Object.defineProperty, u = Object.getOwnPropertyDescriptor, s = 'enumerable', c = 'configurable', l = 'writable'; return ( (Yt.f = t ? e ? function (t, n, e) { if ( (r(t), (n = i(n)), r(e), 'function' == typeof t && 'prototype' === n && 'value' in e && l in e && !e[l]) ) { var o = u(t, n); o && o[l] && ((t[n] = e.value), (e = { configurable: c in e ? e[c] : o[c], enumerable: s in e ? e[s] : o[s], writable: !1, })); } return a(t, n, e); } : a : function (t, e, u) { if ((r(t), (e = i(e)), r(u), n)) try { return a(t, e, u); } catch (t) {} if ('get' in u || 'set' in u) throw new o('Accessors not supported'); return ('value' in u && (t[e] = u.value), t); }), Yt ); } var en, rn, on, an, un, sn, cn, ln, fn, dn, pn, hn, gn, vn, yn, bn, mn, xn, wn, Sn, Dn, On, $n, kn, Mn, Tn, En = { exports: {} }; function Cn() { if (rn) return en; rn = 1; var t = Ht(), n = Q(), e = Function.prototype, r = t && Object.getOwnPropertyDescriptor, i = n(e, 'name'), o = i && 'something' === function () {}.name, a = i && (!t || (t && r(e, 'name').configurable)); return (en = { EXISTS: i, PROPER: o, CONFIGURABLE: a }); } function jn() { if (an) return on; an = 1; var t = G(), n = at(), e = W(), r = t(Function.toString); return ( n(e.inspectSource) || (e.inspectSource = function (t) { return r(t); }), (on = e.inspectSource) ); } function In() { return ln ? cn : ((ln = 1), (cn = function (t, n) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: n }; })); } function An() { if (dn) return fn; dn = 1; var t = Ht(), n = nn(), e = In(); return (fn = t ? function (t, r, i) { return n.f(t, r, e(1, i)); } : function (t, n, e) { return ((t[n] = e), t); }); } function Ln() { if (hn) return pn; hn = 1; var t = N(), n = tt(), e = t('keys'); return (pn = function (t) { return e[t] || (e[t] = n(t)); }); } function Pn() { return vn ? gn : ((vn = 1), (gn = {})); } function zn() { if (bn) return yn; bn = 1; var t, n, e, r = (function () { if (sn) return un; sn = 1; var t = o(), n = at(), e = t.WeakMap; return (un = n(e) && /native code/.test(String(e))); })(), i = o(), a = qt(), u = An(), s = Q(), c = W(), l = Ln(), f = Pn(), d = 'Object already initialized', p = i.TypeError, h = i.WeakMap; if (r || c.state) { var g = c.state || (c.state = new h()); ((g.get = g.get), (g.has = g.has), (g.set = g.set), (t = function (t, n) { if (g.has(t)) throw new p(d); return ((n.facade = t), g.set(t, n), n); }), (n = function (t) { return g.get(t) || {}; }), (e = function (t) { return g.has(t); })); } else { var v = l('state'); ((f[v] = !0), (t = function (t, n) { if (s(t, v)) throw new p(d); return ((n.facade = t), u(t, v, n), n); }), (n = function (t) { return s(t, v) ? t[v] : {}; }), (e = function (t) { return s(t, v); })); } return (yn = { set: t, get: n, has: e, enforce: function (r) { return e(r) ? n(r) : t(r, {}); }, getterFor: function (t) { return function (e) { var r; if (!a(e) || (r = n(e)).type !== t) throw new p('Incompatible receiver, ' + t + ' required'); return r; }; }, }); } function Fn() { if (mn) return En.exports; mn = 1; var t = G(), n = V(), e = at(), r = Q(), i = Ht(), o = Cn().CONFIGURABLE, a = jn(), u = zn(), s = u.enforce, c = u.get, l = String, f = Object.defineProperty, d = t(''.slice), p = t(''.replace), h = t([].join), g = i && !n(function () { return 8 !== f(function () {}, 'length', { value: 8 }).length; }), v = String(String).split('String'), y = (En.exports = function (t, n, e) { ('Symbol(' === d(l(n), 0, 7) && (n = '[' + p(l(n), /^Symbol\(([^)]*)\).*$/, '$1') + ']'), e && e.getter && (n = 'get ' + n), e && e.setter && (n = 'set ' + n), (!r(t, 'name') || (o && t.name !== n)) && (i ? f(t, 'name', { value: n, configurable: !0 }) : (t.name = n)), g && e && r(e, 'arity') && t.length !== e.arity && f(t, 'length', { value: e.arity })); try { e && r(e, 'constructor') && e.constructor ? i && f(t, 'prototype', { writable: !1 }) : t.prototype && (t.prototype = void 0); } catch (t) {} var a = s(t); return (r(a, 'source') || (a.source = h(v, 'string' == typeof n ? n : '')), t); }); return ( (Function.prototype.toString = y(function () { return (e(this) && c(this).source) || a(this); }, 'toString')), En.exports ); } function _n() { if (wn) return xn; wn = 1; var t = at(), n = nn(), e = Fn(), r = R(); return (xn = function (i, o, a, u) { u || (u = {}); var s = u.enumerable, c = void 0 !== u.name ? u.name : o; if ((t(a) && e(a, c, u), u.global)) s ? (i[o] = a) : r(o, a); else { try { u.unsafe ? i[o] && (s = !0) : delete i[o]; } catch (t) {} s ? (i[o] = a) : n.f(i, o, { value: a, enumerable: !1, configurable: !u.nonConfigurable, writable: !u.nonWritable, }); } return i; }); } function Bn() { if (Dn) return Sn; Dn = 1; var t = G(), n = t({}.toString), e = t(''.slice); return (Sn = function (t) { return e(n(t), 8, -1); }); } function Yn() { if ($n) return On; $n = 1; var t = ot(), n = at(), e = Bn(), r = it()('toStringTag'), i = Object, o = 'Arguments' === e( (function () { return arguments; })(), ); return (On = t ? e : function (t) { var a, u, s; return void 0 === t ? 'Undefined' : null === t ? 'Null' : 'string' == typeof (u = (function (t, n) { try { return t[n]; } catch (t) {} })((a = i(t)), r)) ? u : o ? e(a) : 'Object' === (s = e(a)) && n(a.callee) ? 'Arguments' : s; }); } !(function () { if (Tn) return i; Tn = 1; var t = ot(), n = _n(), e = (function () { if (Mn) return kn; Mn = 1; var t = ot(), n = Yn(); return (kn = t ? {}.toString : function () { return '[object ' + n(this) + ']'; }); })(); t || n(Object.prototype, 'toString', e, { unsafe: !0 }); })(); var Hn, qn, Un, Rn, Wn, Nn, Vn, Xn, Gn, Jn = {}; function Zn() { if (Xn) return Vn; Xn = 1; var t = Wt(), n = Q(), e = Vt(), r = (function () { if (Rn) return Un; Rn = 1; var t = o(), n = V(), e = t.RegExp, r = !n(function () { var t = !0; try { e('.', 'd'); } catch (n) { t = !1; } var n = {}, r = '', i = t ? 'dgimsy' : 'gimsy', o = function (t, e) { Object.defineProperty(n, t, { get: function () { return ((r += e), !0); }, }); }, a = { dotAll: 's', global: 'g', ignoreCase: 'i', multiline: 'm', sticky: 'y' }; for (var u in (t && (a.hasIndices = 'd'), a)) o(u, a[u]); return ( Object.getOwnPropertyDescriptor(e.prototype, 'flags').get.call(n) !== i || r !== i ); }); return (Un = { correct: r }); })(), i = (function () { if (Nn) return Wn; Nn = 1; var t = Rt(); return (Wn = function () { var n = t(this), e = ''; return ( n.hasIndices && (e += 'd'), n.global && (e += 'g'), n.ignoreCase && (e += 'i'), n.multiline && (e += 'm'), n.dotAll && (e += 's'), n.unicode && (e += 'u'), n.unicodeSets && (e += 'v'), n.sticky && (e += 'y'), e ); }); })(), a = RegExp.prototype; return (Vn = r.correct ? function (t) { return t.flags; } : function (o) { return r.correct || !e(a, o) || n(o, 'flags') ? o.flags : t(i, o); }); } (!(function () { if (Gn) return Jn; Gn = 1; var t = Cn().PROPER, n = _n(), e = Rt(), r = (function () { if (qn) return Hn; qn = 1; var t = Yn(), n = String; return (Hn = function (e) { if ('Symbol' === t(e)) throw new TypeError('Cannot convert a Symbol value to a string'); return n(e); }); })(), i = V(), o = Zn(), a = 'toString', u = RegExp.prototype, s = u[a], c = i(function () { return '/a/b' !== s.call({ source: 'a', flags: 'b' }); }), l = t && s.name !== a; (c || l) && n( u, a, function () { var t = e(this); return '/' + r(t.source) + '/' + r(o(t)); }, { unsafe: !0 }, ); })(), 'function' == typeof SuppressedError && SuppressedError); var Kn, Qn, te, ne, ee, re, ie = {}, oe = {}, ae = {}; function ue() { if (ee) return ne; ee = 1; var t = (function () { if (te) return Qn; te = 1; var t = G(), n = V(), e = Bn(), r = Object, i = t(''.split); return (Qn = n(function () { return !r('z').propertyIsEnumerable(0); }) ? function (t) { return 'String' === e(t) ? i(t, '') : r(t); } : r); })(), n = Z(); return (ne = function (e) { return t(n(e)); }); } function se() { if (re) return oe; re = 1; var t = Ht(), n = Wt(), e = (function () { if (Kn) return ae; Kn = 1; var t = {}.propertyIsEnumerable, n = Object.getOwnPropertyDescriptor, e = n && !t.call({ 1: 2 }, 1); return ( (ae.f = e ? function (t) { var e = n(this, t); return !!e && e.enumerable; } : t), ae ); })(), r = In(), i = ue(), o = tn(), a = Q(), u = Ut(), s = Object.getOwnPropertyDescriptor; return ( (oe.f = t ? s : function (t, c) { if (((t = i(t)), (c = o(c)), u)) try { return s(t, c); } catch (t) {} if (a(t, c)) return r(!n(e.f, t, c), t[c]); }), oe ); } var ce, le, fe, de, pe, he, ge, ve, ye, be, me, xe, we, Se, De, Oe, $e, ke = {}; function Me() { if (de) return fe; de = 1; var t = (function () { if (le) return ce; le = 1; var t = Math.ceil, n = Math.floor; return (ce = Math.trunc || function (e) { var r = +e; return (r > 0 ? n : t)(r); }); })(); return (fe = function (n) { var e = +n; return e != e || 0 === e ? 0 : t(e); }); } function Te() { if (he) return pe; he = 1; var t = Me(), n = Math.max, e = Math.min; return (pe = function (r, i) { var o = t(r); return o < 0 ? n(o + i, 0) : e(o, i); }); } function Ee() { if (ve) return ge; ve = 1; var t = Me(), n = Math.min; return (ge = function (e) { var r = t(e); return r > 0 ? n(r, 9007199254740991) : 0; }); } function Ce() { if (be) return ye; be = 1; var t = Ee(); return (ye = function (n) { return t(n.length); }); } function je() { if (Se) return we; Se = 1; var t = G(), n = Q(), e = ue(), r = (function () { if (xe) return me; xe = 1; var t = ue(), n = Te(), e = Ce(), r = function (r) { return function (i, o, a) { var u = t(i), s = e(u); if (0 === s) return !r && -1; var c, l = n(a, s); if (r && o != o) { for (; s > l; ) if ((c = u[l++]) != c) return !0; } else for (; s > l; l++) if ((r || l in u) && u[l] === o) return r || l || 0; return !r && -1; }; }; return (me = { includes: r(!0), indexOf: r(!1) }); })().indexOf, i = Pn(), o = t([].push); return (we = function (t, a) { var u, s = e(t), c = 0, l = []; for (u in s) !n(i, u) && n(s, u) && o(l, u); for (; a.length > c; ) n(s, (u = a[c++])) && (~r(l, u) || o(l, u)); return l; }); } var Ie, Ae, Le, Pe, ze, Fe, _e, Be, Ye, He, qe, Ue, Re, We, Ne, Ve, Xe, Ge, Je, Ze, Ke, Qe, tr, nr, er = {}; function rr() { if (Le) return Ae; Le = 1; var t = Nt(), n = G(), e = (function () { if ($e) return ke; $e = 1; var t = je(), n = ( Oe ? De : ((Oe = 1), (De = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf', ])) ).concat('length', 'prototype'); return ( (ke.f = Object.getOwnPropertyNames || function (e) { return t(e, n); }), ke ); })(), r = (Ie || ((Ie = 1), (er.f = Object.getOwnPropertySymbols)), er), i = Rt(), o = n([].concat); return (Ae = t('Reflect', 'ownKeys') || function (t) { var n = e.f(i(t)), a = r.f; return a ? o(n, a(t)) : n; }); } function ir() { if (ze) return Pe; ze = 1; var t = Q(), n = rr(), e = se(), r = nn(); return (Pe = function (i, o, a) { for (var u = n(o), s = r.f, c = e.f, l = 0; l < u.length; l++) { var f = u[l]; t(i, f) || (a && t(a, f)) || s(i, f, c(o, f)); } }); } function or() { if (Ye) return Be; Ye = 1; var t = o(), n = se().f, e = An(), r = _n(), i = R(), a = ir(), u = (function () { if (_e) return Fe; _e = 1; var t = V(), n = at(), e = /#|\.prototype\./, r = function (e, r) { var s = o[i(e)]; return s === u || (s !== a && (n(r) ? t(r) : !!r)); }, i = (r.normalize = function (t) { return String(t).replace(e, '.').toLowerCase(); }), o = (r.data = {}), a = (r.NATIVE = 'N'), u = (r.POLYFILL = 'P'); return (Fe = r); })(); return (Be = function (o, s) { var c, l, f, d, p, h = o.target, g = o.global, v = o.stat; if ((c = g ? t : v ? t[h] || i(h, {}) : t[h] && t[h].prototype)) for (l in s) { if ( ((d = s[l]), (f = o.dontCallGetSet ? (p = n(c, l)) && p.value : c[l]), !u(g ? l : h + (v ? '.' : '#') + l, o.forced) && void 0 !== f) ) { if (typeof d == typeof f) continue; a(d, f); } ((o.sham || (f && f.sham)) && e(d, 'sham', !0), r(c, l, d, o)); } }); } function ar() { if (qe) return He; qe = 1; var t = Bn(); return (He = Array.isArray || function (n) { return 'Array' === t(n); }); } function ur() { if (Re) return Ue; Re = 1; var t = TypeError; return (Ue = function (n) { if (n > 9007199254740991) throw t('Maximum allowed index exceeded'); return n; }); } function sr() { if (Ne) return We; Ne = 1; var t = Ht(), n = nn(), e = In(); return (We = function (r, i, o) { t ? n.f(r, i, e(0, o)) : (r[i] = o); }); } function cr() { if (Xe) return Ve; Xe = 1; var t = G(), n = V(), e = at(), r = Yn(), i = Nt(), o = jn(), a = function () {}, u = i('Reflect', 'construct'), s = /^\s*(?:class|function)\b/, c = t(s.exec), l = !s.test(a), f = function (t) { if (!e(t)) return !1; try { return (u(a, [], t), !0); } catch (t) { return !1; } }, d = function (t) { if (!e(t)) return !1; switch (r(t)) { case 'AsyncFunction': case 'GeneratorFunction': case 'AsyncGeneratorFunction': return !1; } try { return l || !!c(s, o(t)); } catch (t) { return !0; } }; return ( (d.sham = !0), (Ve = !u || n(function () { var t; return ( f(f.call) || !f(Object) || !f(function () { t = !0; }) || t ); }) ? d : f) ); } function lr() { if (Je) return Ge; Je = 1; var t = ar(), n = cr(), e = qt(), r = it()('species'), i = Array; return (Ge = function (o) { var a; return ( t(o) && ((a = o.constructor), ((n(a) && (a === i || t(a.prototype))) || (e(a) && null === (a = a[r]))) && (a = void 0)), void 0 === a ? i : a ); }); } function fr() { if (Ke) return Ze; Ke = 1; var t = lr(); return (Ze = function (n, e) { return new (t(n))(0 === e ? 0 : e); }); } function dr() { if (tr) return Qe; tr = 1; var t = V(), n = it(), e = nt(), r = n('species'); return (Qe = function (n) { return ( e >= 51 || !t(function () { var t = []; return ( ((t.constructor = {})[r] = function () { return { foo: 1 }; }), 1 !== t[n](Boolean).foo ); }) ); }); } !(function () { if (nr) return ie; nr = 1; var t = or(), n = V(), e = ar(), r = qt(), i = K(), o = Ce(), a = ur(), u = sr(), s = fr(), c = dr(), l = it(), f = nt(), d = l('isConcatSpreadable'), p = f >= 51 || !n(function () { var t = []; return ((t[d] = !1), t.concat()[0] !== t); }), h = function (t) { if (!r(t)) return !1; var n = t[d]; return void 0 !== n ? !!n : e(t); }; t( { target: 'Array', proto: !0, arity: 1, forced: !p || !c('concat') }, { concat: function (t) { var n, e, r, c, l, f = i(this), d = s(f, 0), p = 0; for (n = -1, r = arguments.length; n < r; n++) if (h((l = -1 === n ? f : arguments[n]))) for (c = o(l), a(p + c), e = 0; e < c; e++, p++) e in l && u(d, p, l[e]); else (a(p + 1), u(d, p++, l)); return ((d.length = p), d); }, }, ); })(); /** * @license lucide v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const pr = { xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, viewBox: '0 0 24 24', fill: 'none', stroke: 'currentColor', 'stroke-width': 2, 'stroke-linecap': 'round', 'stroke-linejoin': 'round', }, hr = ([t, n, e]) => { const r = document.createElementNS('http://www.w3.org/2000/svg', t); return ( Object.keys(n).forEach((t) => { r.setAttribute(t, String(n[t])); }), e?.length && e.forEach((t) => { const n = hr(t); r.appendChild(n); }), r ); }, gr = (t) => 'string' == typeof t ? t : t && t.class ? t.class && 'string' == typeof t.class ? t.class.split(' ') : t.class && Array.isArray(t.class) ? t.class : '' : '', vr = (t, { nameAttr: n, icons: e, attrs: r }) => { const i = t.getAttribute(n); if (null == i) return; const o = e[i.replace(/(\w)(\w*)(_|-|\s*)/g, (t, n, e) => n.toUpperCase() + e.toLowerCase())]; if (!o) return console.warn(`${t.outerHTML} icon name was not found in the provided icons object.`); const a = ((t) => Array.from(t.attributes).reduce((t, n) => ((t[n.name] = n.value), t), {}))( t, ), u = { ...pr, 'data-lucide': i, ...r, ...a }, s = ['lucide', `lucide-${i}`, a, r] .flatMap(gr) .map((t) => t.trim()) .filter(Boolean) .filter((t, n, e) => e.indexOf(t) === n) .join(' '); s && Object.assign(u, { class: s }); const c = ((t, n = {}) => { const e = { ...pr, ...n }; return hr(['svg', e, t]); })(o, u); return t.parentNode?.replaceChild(c, t); }, yr = [['path', { d: 'M20 6 9 17l-5-5' }]], br = [['path', { d: 'm15 18-6-6 6-6' }]], mr = [['path', { d: 'm9 18 6-6-6-6' }]], xr = [ ['path', { d: 'M12 6v6l4 2' }], ['circle', { cx: '12', cy: '12', r: '10' }], ], wr = [ ['rect', { x: '14', y: '3', width: '5', height: '18', rx: '1' }], ['rect', { x: '5', y: '3', width: '5', height: '18', rx: '1' }], ], Sr = [ [ 'path', { d: 'M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z' }, ], ], Dr = ({ icons: t = {}, nameAttr: n = 'data-lucide', attrs: e = {}, root: r = document, inTemplates: i, } = {}) => { if (!Object.values(t).length) throw new Error( "Please provide an icons object.\nIf you want to use all the icons you can import it like:\n `import { createIcons, icons } from 'lucide';\nlucide.createIcons({icons});`", ); if (void 0 === r) throw new Error('`createIcons()` only works in a browser environment.'); if ( (Array.from(r.querySelectorAll(`[${n}]`)).forEach((r) => vr(r, { nameAttr: n, icons: t, attrs: e }), ), i) ) { Array.from(r.querySelectorAll('template')).forEach((r) => Dr({ icons: t, nameAttr: n, attrs: e, root: r.content, inTemplates: i }), ); } if ('data-lucide' === n) { const n = r.querySelectorAll('[icon-name]'); n.length > 0 && (console.warn( '[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide', ), Array.from(n).forEach((n) => vr(n, { nameAttr: 'icon-name', icons: t, attrs: e }))); } }; /** * @license lucide v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var Or, $r = { exports: {} }; var kr = (Or || ((Or = 1), (function (t) { t.exports = (function () { var t = 1e3, n = 6e4, e = 36e5, r = 'millisecond', i = 'second', o = 'minute', a = 'hour', u = 'day', s = 'week', c = 'month', l = 'quarter', f = 'year', d = 'date', p = 'Invalid Date', h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: 'en', weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( '_', ), ordinal: function (t) { var n = ['th', 'st', 'nd', 'rd'], e = t % 100; return '[' + t + (n[(e - 20) % 10] || n[e] || n[0]) + ']'; }, }, y = function (t, n, e) { var r = String(t); return !r || r.length >= n ? t : '' + Array(n + 1 - r.length).join(e) + t; }, b = { s: y, z: function (t) { var n = -t.utcOffset(), e = Math.abs(n), r = Math.floor(e / 60), i = e % 60; return (n <= 0 ? '+' : '-') + y(r, 2, '0') + ':' + y(i, 2, '0'); }, m: function t(n, e) { if (n.date() < e.date()) return -t(e, n); var r = 12 * (e.year() - n.year()) + (e.month() - n.month()), i = n.clone().add(r, c), o = e - i < 0, a = n.clone().add(r + (o ? -1 : 1), c); return +(-(r + (e - i) / (o ? i - a : a - i)) || 0); }, a: function (t) { return t < 0 ? Math.ceil(t) || 0 : Math.floor(t); }, p: function (t) { return ( { M: c, y: f, w: s, d: u, D: d, h: a, m: o, s: i, ms: r, Q: l }[t] || String(t || '') .toLowerCase() .replace(/s$/, '') ); }, u: function (t) { return void 0 === t; }, }, m = 'en', x = {}; x[m] = v; var w = '$isDayjsObject', S = function (t) { return t instanceof k || !(!t || !t[w]); }, D = function t(n, e, r) { var i; if (!n) return m; if ('string' == typeof n) { var o = n.toLowerCase(); (x[o] && (i = o), e && ((x[o] = e), (i = o))); var a = n.split('-'); if (!i && a.length > 1) return t(a[0]); } else { var u = n.name; ((x[u] = n), (i = u)); } return (!r && i && (m = i), i || (!r && m)); }, O = function (t, n) { if (S(t)) return t.clone(); var e = 'object' == typeof n ? n : {}; return ((e.date = t), (e.args = arguments), new k(e)); }, $ = b; (($.l = D), ($.i = S), ($.w = function (t, n) { return O(t, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset }); })); var k = (function () { function v(t) { ((this.$L = D(t.locale, null, !0)), this.parse(t), (this.$x = this.$x || t.x || {}), (this[w] = !0)); } var y = v.prototype; return ( (y.parse = function (t) { ((this.$d = (function (t) { var n = t.date, e = t.utc; if (null === n) return new Date(NaN); if ($.u(n)) return new Date(); if (n instanceof Date) return new Date(n); if ('string' == typeof n && !/Z$/i.test(n)) { var r = n.match(h); if (r) { var i = r[2] - 1 || 0, o = (r[7] || '0').substring(0, 3); return e ? new Date( Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, o), ) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, o); } } return new Date(n); })(t)), this.init()); }), (y.init = function () { var t = this.$d; ((this.$y = t.getFullYear()), (this.$M = t.getMonth()), (this.$D = t.getDate()), (this.$W = t.getDay()), (this.$H = t.getHours()), (this.$m = t.getMinutes()), (this.$s = t.getSeconds()), (this.$ms = t.getMilliseconds())); }), (y.$utils = function () { return $; }), (y.isValid = function () { return !(this.$d.toString() === p); }), (y.isSame = function (t, n) { var e = O(t); return this.startOf(n) <= e && e <= this.endOf(n); }), (y.isAfter = function (t, n) { return O(t) < this.startOf(n); }), (y.isBefore = function (t, n) { return this.endOf(n) < O(t); }), (y.$g = function (t, n, e) { return $.u(t) ? this[n] : this.set(e, t); }), (y.unix = function () { return Math.floor(this.valueOf() / 1e3); }), (y.valueOf = function () { return this.$d.getTime(); }), (y.startOf = function (t, n) { var e = this, r = !!$.u(n) || n, l = $.p(t), p = function (t, n) { var i = $.w(e.$u ? Date.UTC(e.$y, n, t) : new Date(e.$y, n, t), e); return r ? i : i.endOf(u); }, h = function (t, n) { return $.w( e .toDate() [ t ].apply(e.toDate('s'), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(n)), e, ); }, g = this.$W, v = this.$M, y = this.$D, b = 'set' + (this.$u ? 'UTC' : ''); switch (l) { case f: return r ? p(1, 0) : p(31, 11); case c: return r ? p(1, v) : p(0, v + 1); case s: var m = this.$locale().weekStart || 0, x = (g < m ? g + 7 : g) - m; return p(r ? y - x : y + (6 - x), v); case u: case d: return h(b + 'Hours', 0); case a: return h(b + 'Minutes', 1); case o: return h(b + 'Seconds', 2); case i: return h(b + 'Milliseconds', 3); default: return this.clone(); } }), (y.endOf = function (t) { return this.startOf(t, !1); }), (y.$set = function (t, n) { var e, s = $.p(t), l = 'set' + (this.$u ? 'UTC' : ''), p = ((e = {}), (e[u] = l + 'Date'), (e[d] = l + 'Date'), (e[c] = l + 'Month'), (e[f] = l + 'FullYear'), (e[a] = l + 'Hours'), (e[o] = l + 'Minutes'), (e[i] = l + 'Seconds'), (e[r] = l + 'Milliseconds'), e)[s], h = s === u ? this.$D + (n - this.$W) : n; if (s === c || s === f) { var g = this.clone().set(d, 1); (g.$d[p](h), g.init(), (this.$d = g.set(d, Math.min(this.$D, g.daysInMonth())).$d)); } else p && this.$d[p](h); return (this.init(), this); }), (y.set = function (t, n) { return this.clone().$set(t, n); }), (y.get = function (t) { return this[$.p(t)](); }), (y.add = function (r, l) { var d, p = this; r = Number(r); var h = $.p(l), g = function (t) { var n = O(p); return $.w(n.date(n.date() + Math.round(t * r)), p); }; if (h === c) return this.set(c, this.$M + r); if (h === f) return this.set(f, this.$y + r); if (h === u) return g(1); if (h === s) return g(7); var v = ((d = {}), (d[o] = n), (d[a] = e), (d[i] = t), d)[h] || 1, y = this.$d.getTime() + r * v; return $.w(y, this); }), (y.subtract = function (t, n) { return this.add(-1 * t, n); }), (y.format = function (t) { var n = this, e = this.$locale(); if (!this.isValid()) return e.invalidDate || p; var r = t || 'YYYY-MM-DDTHH:mm:ssZ', i = $.z(this), o = this.$H, a = this.$m, u = this.$M, s = e.weekdays, c = e.months, l = e.meridiem, f = function (t, e, i, o) { return (t && (t[e] || t(n, r))) || i[e].slice(0, o); }, d = function (t) { return $.s(o % 12 || 12, t, '0'); }, h = l || function (t, n, e) { var r = t < 12 ? 'AM' : 'PM'; return e ? r.toLowerCase() : r; }; return r.replace(g, function (t, r) { return ( r || (function (t) { switch (t) { case 'YY': return String(n.$y).slice(-2); case 'YYYY': return $.s(n.$y, 4, '0'); case 'M': return u + 1; case 'MM': return $.s(u + 1, 2, '0'); case 'MMM': return f(e.monthsShort, u, c, 3); case 'MMMM': return f(c, u); case 'D': return n.$D; case 'DD': return $.s(n.$D, 2, '0'); case 'd': return String(n.$W); case 'dd': return f(e.weekdaysMin, n.$W, s, 2); case 'ddd': return f(e.weekdaysShort, n.$W, s, 3); case 'dddd': return s[n.$W]; case 'H': return String(o); case 'HH': return $.s(o, 2, '0'); case 'h': return d