r3ui-lib 1.2.31 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/login.css +1 -1
- package/dist/login.es.js +1441 -1396
- package/dist/login.umd.js +5 -5
- package/dist/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +7883 -7783
- package/dist/r3ui-lib.umd.js +30 -30
- package/dist/types/components/SsoLoginScreen.vue.d.ts.map +1 -1
- package/dist/types/components/dropdowns/DefaultDropDown.vue.d.ts.map +1 -1
- package/dist/types/components/tables/Table.vue.d.ts +2 -0
- package/dist/types/components/tables/Table.vue.d.ts.map +1 -1
- package/dist/types/composables/table/useRemoteTable.d.ts +6 -1
- package/dist/types/composables/table/useRemoteTable.d.ts.map +1 -1
- package/dist/types/main.d.ts +1 -1
- package/dist/types/main.d.ts.map +1 -1
- package/dist/types/utils/auth/exchangePasswordToken.d.ts.map +1 -1
- package/dist/types/utils/auth/handlePkceCallback.d.ts.map +1 -1
- package/dist/types/utils/auth/logout.d.ts +1 -1
- package/dist/types/utils/auth/logout.d.ts.map +1 -1
- package/dist/types/utils/auth/runLogoutHandler.d.ts.map +1 -1
- package/dist/types/utils/auth/signInWithSSO.d.ts +1 -0
- package/dist/types/utils/auth/signInWithSSO.d.ts.map +1 -1
- package/dist/types/utils/tableAjaxRequest.d.ts +1 -0
- package/dist/types/utils/tableAjaxRequest.d.ts.map +1 -1
- package/dist/types/utils/upstreamHttpStatus.d.ts +9 -0
- package/dist/types/utils/upstreamHttpStatus.d.ts.map +1 -0
- package/nuxt-errors/app/error.vue +85 -0
- package/nuxt-errors/composables/presentPageError.ts +21 -0
- package/nuxt-errors/error.vue +85 -0
- package/nuxt-errors/nuxt.config.ts +6 -0
- package/nuxt-errors/plugins/app-error-log.client.ts +21 -0
- package/nuxt-errors/utils/classifyTransport.ts +56 -0
- package/nuxt-errors/utils/cloneJson.ts +17 -0
- package/nuxt-errors/utils/extractHttpStatus.ts +51 -0
- package/nuxt-errors/utils/extractLaravel.ts +73 -0
- package/nuxt-errors/utils/extractRequestId.ts +53 -0
- package/nuxt-errors/utils/isHttpStatus.ts +3 -0
- package/nuxt-errors/utils/logAppError.ts +68 -0
- package/nuxt-errors/utils/normalizeAppError.ts +178 -0
- package/nuxt-errors/utils/presentAppError.ts +115 -0
- package/nuxt-errors/utils/publicHttpMessage.ts +23 -0
- package/nuxt-errors/utils/serializeCause.ts +25 -0
- package/nuxt-errors/utils/types.ts +55 -0
- package/package.json +4 -1
package/dist/login.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [
|
|
5
|
-
s
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { ref as es, computed as ae, createElementBlock as P, openBlock as b, createElementVNode as Y, createTextVNode as ts, toDisplayString as V, createCommentVNode as De, Fragment as rr, renderList as rs, withKeys as zt, withModifiers as Le, normalizeClass as ye, defineComponent as _e, normalizeStyle as Zt, renderSlot as He, createVNode as ve, createBlock as sr, unref as ss, withCtx as Bt } from "vue";
|
|
2
|
+
const Be = (e, t) => {
|
|
3
|
+
const r = e.__vccOpts || e;
|
|
4
|
+
for (const [s, n] of t)
|
|
5
|
+
r[s] = n;
|
|
6
|
+
return r;
|
|
7
|
+
}, ns = { class: "custom-dropdown" }, as = { style: { "border-bottom": "2px solid #000" } }, is = { class: "dropdown-list-wrapper" }, os = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "custom-dropdown-menu"
|
|
10
|
-
},
|
|
10
|
+
}, ls = ["disabled", "onClick", "onKeydown"], us = {
|
|
11
11
|
__name: "DefaultDropDown",
|
|
12
12
|
props: {
|
|
13
13
|
links: {
|
|
@@ -28,61 +28,68 @@ const ze = (e, t) => {
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(e) {
|
|
31
|
-
const t = e,
|
|
32
|
-
l && (l.preventDefault(), l.stopPropagation()),
|
|
31
|
+
const t = e, r = es(!1), s = (l) => {
|
|
32
|
+
l && (l.preventDefault(), l.stopPropagation()), r.value = !r.value;
|
|
33
33
|
}, n = (l) => {
|
|
34
34
|
if (typeof l != "function") {
|
|
35
|
-
|
|
35
|
+
s();
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
l(),
|
|
38
|
+
l(), s();
|
|
39
39
|
}, a = (l) => {
|
|
40
40
|
l && (l.preventDefault(), l.stopPropagation()), setTimeout(() => {
|
|
41
|
-
|
|
41
|
+
r.value = !1;
|
|
42
42
|
}, 100);
|
|
43
43
|
}, i = ae(() => t.type === "profile");
|
|
44
|
-
return (l,
|
|
45
|
-
i.value ? (b(),
|
|
44
|
+
return (l, u) => (b(), P("div", ns, [
|
|
45
|
+
i.value ? (b(), P("a", {
|
|
46
46
|
key: 0,
|
|
47
47
|
href: "#",
|
|
48
48
|
class: "cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",
|
|
49
|
-
onClick:
|
|
49
|
+
onClick: s,
|
|
50
50
|
onBlur: a
|
|
51
51
|
}, [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
], 32)) : (b(),
|
|
52
|
+
u[1] || (u[1] = Y("div", { class: "circl" }, null, -1)),
|
|
53
|
+
ts(" " + V(e.title), 1)
|
|
54
|
+
], 32)) : (b(), P("a", {
|
|
55
55
|
key: 1,
|
|
56
56
|
href: "#",
|
|
57
57
|
class: "link-dark",
|
|
58
58
|
type: "button",
|
|
59
|
-
onClick:
|
|
59
|
+
onClick: s,
|
|
60
60
|
onBlur: a
|
|
61
61
|
}, [
|
|
62
|
-
Y("span",
|
|
63
|
-
|
|
62
|
+
Y("span", as, V(e.title), 1),
|
|
63
|
+
u[2] || (u[2] = Y("i", {
|
|
64
64
|
class: "bi bi-chevron-up dropdown-edit",
|
|
65
65
|
style: { "font-size": "12px", "padding-inline-start": "5px" }
|
|
66
66
|
}, null, -1))
|
|
67
67
|
], 32)),
|
|
68
|
-
Y("div",
|
|
69
|
-
|
|
70
|
-
(b(!0),
|
|
71
|
-
f.hidden ? De("", !0) : (b(),
|
|
68
|
+
Y("div", is, [
|
|
69
|
+
r.value ? (b(), P("ul", os, [
|
|
70
|
+
(b(!0), P(rr, null, rs(e.links, (f, M) => (b(), P("li", { key: M }, [
|
|
71
|
+
f.hidden ? De("", !0) : (b(), P("button", {
|
|
72
72
|
key: 0,
|
|
73
|
+
type: "button",
|
|
73
74
|
class: ye(["dropdown-item", { disabled: f?.disabled }]),
|
|
74
|
-
|
|
75
|
-
onMousedown:
|
|
76
|
-
|
|
75
|
+
disabled: !!f?.disabled,
|
|
76
|
+
onMousedown: u[0] || (u[0] = Le(() => {
|
|
77
|
+
}, ["prevent"])),
|
|
78
|
+
onClick: (x) => n(f?.action),
|
|
79
|
+
onKeydown: [
|
|
80
|
+
zt(Le((x) => n(f?.action), ["prevent"]), ["enter"]),
|
|
81
|
+
zt(Le((x) => n(f?.action), ["prevent"]), ["space"])
|
|
82
|
+
]
|
|
83
|
+
}, V(f?.title), 43, ls))
|
|
77
84
|
]))), 128))
|
|
78
85
|
])) : De("", !0)
|
|
79
86
|
])
|
|
80
87
|
]));
|
|
81
88
|
}
|
|
82
|
-
},
|
|
89
|
+
}, ds = /* @__PURE__ */ Be(us, [["__scopeId", "data-v-93106856"]]), cs = "data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++5krcuRFTlpzgi2bTcBrGJ6N8wVQrRyV+viICfNGaBer7eOUb7i+r6/kq/5v3jISXPKmJYwzOwxcyOfWS4uYqRxHMc6ODjI7EJMMxIuLS0dN8cw1bVqtVoVwXr5v4yOMXPfNM3vp9knbGTvcUd7uVvMk6znn/ZiMd4tOyjgbuSggEc39o+9/RO/LVcg6D6YqxBcBSjoOwQPDA8GXPzfwTO63Z/4m3i3XEEBD7NfHO9A8OjL/an3fuMdy8KlxWWAb4GoCpb5L4IHcB9Emxhgi27ux/77GGlG+2lNaUOPmXtCiLWkDiYVo0nFhKnwff9aUvsyEdhk5kdIiRvkPmGbvu9vTCLD0tJSxTCM1W63uzKtrZpdYlLBzK3TTDzybrkCEzp7PLq+f+1Y7RXwBJxJ1PDAeEo39lP7Ff/zi2Uoq04zgagPwRuT2gckWT5bbMKgR2CeNDlo7Y4VbMqs87SoElHDMIznSbOJEOKu7nhWMLOXRsjBYLAj3aDUG0FEFQDNNFtHePXqlUdEy47jTJ1DGQwGy7gghAEAGGgk2FPhHWuq38dvLjdRoJ2MhAGACgirvFdOn3WZj9dHmK2g/f9OXWTHu+UKLi3ugLCagTBAgt26Kudjl40TUcU0zaQbM2s5unY7IhkzZB7RRyCiShbiAOgfHR09mqZtiUzfOQvC8G65AkJyXFUqZr53/EO5BebH2k7H8ADqAXAB0rljjfSOzTP2EWrybllLZN67UkWBkqvAA9uTXMiI3ZGCTRkLRG4GM29C02GJyEJABNVIp16vO2rsoJnBerLtTDAMIxYY27bdTAiyXSHEJhFtAfgFwOcIZsNVhG5aiOT3Ui7dJ6Km4zgbWWMN6Zpl6YhnUwtmphAGABbMW0gYlMLgN5eb0N1vRgtFatNff47kjni33ICBVVC4o1KTd8vP6KYmDlFnLqJNgNf11hgWWDSh9j+T7wOItM275QrgfwdWvBCGB+Ymfj/cGsVc0o1dRVClETZmbHeENKZpVoQQkVMHg8Ha69evE2+oLtj1ff9W2HDZiSIGCyHa29vbG0ntToJsUx21+oZhrMjNJcJ4h6BTtG3bbgORYFNL8hB6AKpHR0ePAWSKbXzfnzhiMrPX7XZPfWsl3rtSBfxoByDaBPPy+L3gKoBUMYB3yxUwR+83wwOZD+jGT9r+QTf327x3pQcSzyMzk65jB3ZGG/BFm756n6gi8tvKFoaHbyNts2YmKdBjMEePM9r47eBbVaCQgf8K/1D2QIjGSAGZ3Ih7pos70ggDAN1ut60ek7PQGLpONBwOZ5JUZWY9jL7v+7c1hImgWCw2oezWIuu/tBBCjDbga9y5c6eZxbbhcPiXtM9H+y5naWt2+Gpg3Qbzs6hBGVzb2GxFfQjco+t6wozPuv5TTzNbNGInmpqY1xepVQ90zesDHL2+0vd4r9yIDBAAwPDoxv5KmqJHN/bXoBAbgMM7lqWup1E790QpT474qedoyNifRMY0SCVOdfeaWaRh13X7tm2vAbgvt2/1kOKaSBcPAGAYxuM7d+5ge3s7wWUYf2eSGNFSbR2pf0IIPimXjffK8eDfxxpM04qM6kFVdXI7u+UK1I4uRItuvs8mxRcWNzA47IPIA9M7FMQvsXN8NZ7hPv3P/6b2kWD2U9wz5igRCA/ByhdFqjsexlOo7t+fFu6qpInFHZNaHQwGOn9Z/Z76p8y0x7AQ4hHRR7VcujqZcw2dTmcdQGrHH6Hb7fZs2+5DxnqGYTyu1Wq30uR1qdAlYV19LEZYniYiF8DMpJGKmPLf8DrdfO/x24qFQcQVqvCOZSWOvOosw/Doq/eZXetgRkD6+URVcLh30+Q+YlITMUbQ2NPQkgpo63IvCRfoxVzGAn2caaQIEIEsMddCjowtZm4o3/G63e4z5XS1batWq2XOkodHXvlQo8h0e4y80rRoAxi7ZkTUME2zUavV2qZpPjNN080iEjCzVyqVYoQI53NYHSmPi88Wo0ugGR4EbQBBJ+Y3l/uRWCBQ0JI6qhKgT/ZApkFA4oNoH0m4Bu9YFv5jsQpgFaq3wfAg8NHtL9F9+Aqp/CkGJN/vw4wfDs80uil6eUQmIrJY3mQiqkp1KOaGMEf9V50ih0DJyiov9hAaeX3fj0mKvu+faskJET1j5lg8Q0QNIURDCAHbtl3DMDZevHixycxWeCYcgZkbKrlqtZrqQs2803+CxNxSRlgP4f88QUGTAXp05iTE4tjg3D9XQebk/MevB73IrDY80PQFakr3MozADnVyGRsQzKTj90KNZbiX2aUEgAIqumuNSUNEsUCMiBrK+9RrMHNLo4jNmp+JjDhy6W/4UD/JTbJtO+n2Rr7f6XQ+Tzvh5cuXrm3bLtJL+h3f9z0AmwkxTdLa/IgIIYSY/YlmOndKLZVh7iH83yQpaAZXIJRjvx58r70uFZ6AM+RaSsXbCBPUoFuxGSEYoDMmXakPIVpxl5GqEYZNO0OSYYGVH8/wwurZLJ3bFUI4ugBWR8Ypcaz4SOduZmxfi2KxuIJgdE7D6HM11+UVi0WtWxCKf/pCiExiRhqCmSGmTsXdV1OJGZIUNOKYEpgY+2QhjC7AF8dcjMfwwGjh/3+/phKG31YsTQJ2unsrRFxV/fXg+wIwjhPUHzxSlkaI/TAhRJOINicsiIq0KxOamaRbACiVSh/C79VRPCkGkOvts1wiE2lc1/Ucx7k3oZ5s1FbkcyJqJcU8zNwCgJNbealIzAwPJWzx23LUZnX2SHKXRbaOx2/KTqLbFL1Q/H7HyeaCpQtIZMlKAUW942aqGHFwYMXiESMx458EVZnr0e1+vwAAw+EwdsOEEJHydF0BIhE53W430XAdGZnZ3d7ePvVVh4ZhEPSSeeRGpIkdKiYRZzAYvJO/edzRmLmdpuxpRJNjQysxEyoY4K3mbPVAuoIWOk97dAhP1rdFESQIK6H3mmy92iZv0o33kXsWSzYaaPHf/7w1SZaOID4AJEJ7L0HrwaUxzuBHsLCwEPFbXdf1iCiSESeiZdu2E0u5dWTE7IFuZKRLknc7nc56p9O5F35JFysCIYTeP09A6KljkWCYmb3Xr1/31N8shDiTLZP0EvOU0NWgMWIDHP/rctxlu7nv0Y39p+pLTTbCV5KRRSPeRyg+G8WTjWShaCbWsell5WziU+K9lMqcEdhI6ujr6VwFWWqiKifrSVXAOjKewOIq1a5q1ipkTWVCooiQBtd1vU6ns8LM4TjHldcY/2Zmbp/ZyktVYj4OAgVNgRkf5IZiOX5eHLx3pRqLK34/jP7/mspm+nJf30ficrGTVKApoXgRvJypovvSn6KzIwDwR/VxRJrMyUciUl0NK6kKWFOkObO+T0QxdyYhwRqDpjJhplmv2+22O53ONWZeMU3zGQAYhjHuUMyslWZPGlqJOVDH2qkvVuITEQ/k6fpPPZAaC1BTulXpIBHLo8TdP+WazMl9LyjyjPahtGLUmFpGFi4tpq7X4b3L6wBH+zPDw28H4zCkoKvITfPzdfJrUhWwxnWaOQchr+8hOhI06/X6h5cvX2qTnMr+YmNME8+kYVR/J+MZR7btndmSZY3EDEEPJmW++c3lx4jkn5LKf3gdUQWuAhPP+Z/lVnhV5jjxKODAwN1Y8lGtEwuuqcjCEyoBTNqEH2nX4d2yo62aLixuYHjYVGY7h/fKb0FYGa345B3Lwn9+5kD4q9rlCWQ+CJO9kFCRm2q4YRjrQkRGEevw8PAhQqUSCYpcw7btTFP7CMzsqOqcYRjfap4ruVqr1R5K2/vAmLRVTlhwdFKkGeHo6Gh5pNgR0Zm4Zdq6MDXJlwQDnlIlond1CosbODpoREv8UYFAG5cWwW8u9+V1LTCC9cA6JU0VAfauVMG+Wq6f/p8YC08hDlvRqumg+jh2uWten/9xeQ0G1NinAsZz3isHqz6ZLQgB7ZYZjIZaxW1kEQFUmKa5BSW2MAwj8scliAAWghki80snZ8use2xWkY8CXyaihkzMOkhOkPUm/c5pQUThaf0kdsycjGAJ80dMUxfGpN5brctF17w+BO7F3LlxO6zLiahow1dda82APfRT/xNZx6a6vYmxDX318zpYk6caIcluhgeYt3X7Jxi6xWGT8gWu6/bVchkA1fCj6WZd3jy6VNIH3W53TUecjG02Op3O7ZPcwEL+9nAnqNbr9VOtidPLoikdRMVAxMtmNMoYINWooDp4ijiN+mC04OMaXd9fibmLRMqAPbmyGQAw5LhMbyYv76Ab+2vwsZJIep3Nvx3cTlr2UGDmD7KyNjA7o8tiGMaWeq4kiguMk5AzuT9CiNS1Md1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/6KYRiWEOJYal0i/HhuZJqdZejmvsc/KPVdh5yYER4v0Notr8Gk+yA40iUL7eQilzwT9+jLn9NjuiE/gxEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e", hs = ["src", "alt"], fs = /* @__PURE__ */ _e({
|
|
83
90
|
__name: "Logo",
|
|
84
91
|
props: {
|
|
85
|
-
src: { default:
|
|
92
|
+
src: { default: cs },
|
|
86
93
|
alt: { default: "Logo" },
|
|
87
94
|
width: { default: 154 },
|
|
88
95
|
height: { default: 50 },
|
|
@@ -95,7 +102,7 @@ const ze = (e, t) => {
|
|
|
95
102
|
showText: { type: Boolean, default: !0 }
|
|
96
103
|
},
|
|
97
104
|
setup(e) {
|
|
98
|
-
const t = e,
|
|
105
|
+
const t = e, r = ae(() => t.src?.startsWith("~/") ? t.src.replace("~/", "/") : t.src), s = ae(() => {
|
|
99
106
|
const l = "r3ui-logo";
|
|
100
107
|
return t.className ? `${l} ${t.className}` : l;
|
|
101
108
|
}), n = ae(() => ({
|
|
@@ -107,26 +114,26 @@ const ze = (e, t) => {
|
|
|
107
114
|
color: t.textColor,
|
|
108
115
|
fontWeight: t.textWeight
|
|
109
116
|
}));
|
|
110
|
-
return (l,
|
|
117
|
+
return (l, u) => (b(), P("div", {
|
|
111
118
|
class: ye(["r3ui-logo-container", a.value])
|
|
112
119
|
}, [
|
|
113
120
|
Y("img", {
|
|
114
|
-
src:
|
|
121
|
+
src: r.value,
|
|
115
122
|
alt: l.alt,
|
|
116
|
-
class: ye(
|
|
117
|
-
style:
|
|
118
|
-
}, null, 14,
|
|
119
|
-
l.brandText && l.brandText.trim() && l.showText ? (b(),
|
|
123
|
+
class: ye(s.value),
|
|
124
|
+
style: Zt(n.value)
|
|
125
|
+
}, null, 14, hs),
|
|
126
|
+
l.brandText && l.brandText.trim() && l.showText ? (b(), P("span", {
|
|
120
127
|
key: 0,
|
|
121
128
|
class: "r3ui-logo-text",
|
|
122
|
-
style:
|
|
129
|
+
style: Zt(i.value)
|
|
123
130
|
}, V(l.brandText), 5)) : De("", !0)
|
|
124
131
|
], 2));
|
|
125
132
|
}
|
|
126
|
-
}),
|
|
133
|
+
}), nr = /* @__PURE__ */ Be(fs, [["__scopeId", "data-v-57bc5457"]]), ms = { class: "navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header" }, ys = { class: "row align-items-center" }, _s = { class: "col-auto pe-0" }, gs = { class: "col-auto ps-0 text-wrap mx-3 r3ui-header-label" }, ws = { class: "row" }, ps = { class: "col-auto d-flex align-items-center" }, ks = {
|
|
127
134
|
key: 1,
|
|
128
135
|
class: "text-muted"
|
|
129
|
-
},
|
|
136
|
+
}, Ss = { class: "col-auto" }, vs = /* @__PURE__ */ _e({
|
|
130
137
|
__name: "Header",
|
|
131
138
|
props: {
|
|
132
139
|
isAuthenticated: { type: Boolean, default: !1 },
|
|
@@ -140,62 +147,62 @@ const ze = (e, t) => {
|
|
|
140
147
|
},
|
|
141
148
|
emits: ["navigate", "logout"],
|
|
142
149
|
setup(e, { emit: t }) {
|
|
143
|
-
const
|
|
150
|
+
const r = e, s = t, n = ae(() => r.rawDropdownLinks.map((a) => a.name === "logout" ? { ...a, action: () => s("logout") } : a.name.includes("http") ? {
|
|
144
151
|
...a,
|
|
145
|
-
action: () =>
|
|
152
|
+
action: () => s("navigate", a.name, {
|
|
146
153
|
external: !0
|
|
147
154
|
})
|
|
148
|
-
} : { ...a, action: () =>
|
|
149
|
-
return (a, i) => (b(),
|
|
155
|
+
} : { ...a, action: () => s("navigate", `/${a.name}`) }));
|
|
156
|
+
return (a, i) => (b(), P("div", ms, [
|
|
150
157
|
Y("div", {
|
|
151
|
-
class: ye([
|
|
158
|
+
class: ye([r.isAuthenticated ? "container-fluid" : "container"])
|
|
152
159
|
}, [
|
|
153
160
|
Y("a", {
|
|
154
161
|
href: "/",
|
|
155
|
-
onClick: i[0] || (i[0] =
|
|
162
|
+
onClick: i[0] || (i[0] = Le(() => s("navigate", "/"), ["prevent"])),
|
|
156
163
|
class: "text-decoration-none r3ui-header-link"
|
|
157
164
|
}, [
|
|
158
|
-
Y("div",
|
|
159
|
-
Y("div",
|
|
160
|
-
|
|
161
|
-
ve(
|
|
165
|
+
Y("div", ys, [
|
|
166
|
+
Y("div", _s, [
|
|
167
|
+
He(a.$slots, "logo", {}, () => [
|
|
168
|
+
ve(nr, {
|
|
162
169
|
class: "r3ui-header-logo",
|
|
163
|
-
brandText:
|
|
170
|
+
brandText: r.brandText
|
|
164
171
|
}, null, 8, ["brandText"])
|
|
165
172
|
], !0)
|
|
166
173
|
]),
|
|
167
|
-
Y("div",
|
|
174
|
+
Y("div", gs, V(r.brandText), 1)
|
|
168
175
|
])
|
|
169
176
|
]),
|
|
170
|
-
Y("div",
|
|
171
|
-
Y("div",
|
|
172
|
-
|
|
177
|
+
Y("div", ws, [
|
|
178
|
+
Y("div", ps, [
|
|
179
|
+
r.isAuthenticated ? (b(), sr(ds, {
|
|
173
180
|
key: 0,
|
|
174
181
|
type: "profile",
|
|
175
|
-
title:
|
|
182
|
+
title: r.user?.name || "",
|
|
176
183
|
links: n.value
|
|
177
184
|
}, null, 8, ["title", "links"])) : De("", !0),
|
|
178
|
-
|
|
185
|
+
r.isAuthenticated ? De("", !0) : (b(), P("div", ks, V(r.loginText), 1))
|
|
179
186
|
]),
|
|
180
|
-
Y("div",
|
|
181
|
-
|
|
187
|
+
Y("div", Ss, [
|
|
188
|
+
He(a.$slots, "language-selector", {}, void 0, !0)
|
|
182
189
|
])
|
|
183
190
|
])
|
|
184
191
|
], 2)
|
|
185
192
|
]));
|
|
186
193
|
}
|
|
187
|
-
}),
|
|
194
|
+
}), Ms = /* @__PURE__ */ Be(vs, [["__scopeId", "data-v-a63a7e7f"]]);
|
|
188
195
|
//! moment.js
|
|
189
196
|
//! version : 2.30.1
|
|
190
197
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
191
198
|
//! license : MIT
|
|
192
199
|
//! momentjs.com
|
|
193
|
-
var
|
|
194
|
-
function
|
|
195
|
-
return
|
|
200
|
+
var ar;
|
|
201
|
+
function d() {
|
|
202
|
+
return ar.apply(null, arguments);
|
|
196
203
|
}
|
|
197
|
-
function
|
|
198
|
-
|
|
204
|
+
function Ds(e) {
|
|
205
|
+
ar = e;
|
|
199
206
|
}
|
|
200
207
|
function E(e) {
|
|
201
208
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
@@ -206,7 +213,7 @@ function oe(e) {
|
|
|
206
213
|
function g(e, t) {
|
|
207
214
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
208
215
|
}
|
|
209
|
-
function
|
|
216
|
+
function kt(e) {
|
|
210
217
|
if (Object.getOwnPropertyNames)
|
|
211
218
|
return Object.getOwnPropertyNames(e).length === 0;
|
|
212
219
|
var t;
|
|
@@ -215,7 +222,7 @@ function _t(e) {
|
|
|
215
222
|
return !1;
|
|
216
223
|
return !0;
|
|
217
224
|
}
|
|
218
|
-
function
|
|
225
|
+
function N(e) {
|
|
219
226
|
return e === void 0;
|
|
220
227
|
}
|
|
221
228
|
function X(e) {
|
|
@@ -224,21 +231,21 @@ function X(e) {
|
|
|
224
231
|
function xe(e) {
|
|
225
232
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
226
233
|
}
|
|
227
|
-
function
|
|
228
|
-
var
|
|
229
|
-
for (
|
|
230
|
-
|
|
231
|
-
return
|
|
234
|
+
function ir(e, t) {
|
|
235
|
+
var r = [], s, n = e.length;
|
|
236
|
+
for (s = 0; s < n; ++s)
|
|
237
|
+
r.push(t(e[s], s));
|
|
238
|
+
return r;
|
|
232
239
|
}
|
|
233
240
|
function te(e, t) {
|
|
234
|
-
for (var
|
|
235
|
-
g(t,
|
|
241
|
+
for (var r in t)
|
|
242
|
+
g(t, r) && (e[r] = t[r]);
|
|
236
243
|
return g(t, "toString") && (e.toString = t.toString), g(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
237
244
|
}
|
|
238
|
-
function j(e, t,
|
|
239
|
-
return
|
|
245
|
+
function j(e, t, r, s) {
|
|
246
|
+
return xr(e, t, r, s, !0).utc();
|
|
240
247
|
}
|
|
241
|
-
function
|
|
248
|
+
function Ys() {
|
|
242
249
|
return {
|
|
243
250
|
empty: !1,
|
|
244
251
|
unusedTokens: [],
|
|
@@ -259,52 +266,52 @@ function kr() {
|
|
|
259
266
|
};
|
|
260
267
|
}
|
|
261
268
|
function m(e) {
|
|
262
|
-
return e._pf == null && (e._pf =
|
|
269
|
+
return e._pf == null && (e._pf = Ys()), e._pf;
|
|
263
270
|
}
|
|
264
|
-
var
|
|
265
|
-
Array.prototype.some ?
|
|
266
|
-
var t = Object(this),
|
|
267
|
-
for (
|
|
268
|
-
if (
|
|
271
|
+
var ct;
|
|
272
|
+
Array.prototype.some ? ct = Array.prototype.some : ct = function(e) {
|
|
273
|
+
var t = Object(this), r = t.length >>> 0, s;
|
|
274
|
+
for (s = 0; s < r; s++)
|
|
275
|
+
if (s in t && e.call(this, t[s], s, t))
|
|
269
276
|
return !0;
|
|
270
277
|
return !1;
|
|
271
278
|
};
|
|
272
|
-
function
|
|
273
|
-
var t = null,
|
|
274
|
-
if (
|
|
279
|
+
function St(e) {
|
|
280
|
+
var t = null, r = !1, s = e._d && !isNaN(e._d.getTime());
|
|
281
|
+
if (s && (t = m(e), r = ct.call(t.parsedDateParts, function(n) {
|
|
275
282
|
return n != null;
|
|
276
|
-
}),
|
|
277
|
-
e._isValid =
|
|
283
|
+
}), s = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && r), e._strict && (s = s && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
|
|
284
|
+
e._isValid = s;
|
|
278
285
|
else
|
|
279
|
-
return
|
|
286
|
+
return s;
|
|
280
287
|
return e._isValid;
|
|
281
288
|
}
|
|
282
|
-
function
|
|
289
|
+
function qe(e) {
|
|
283
290
|
var t = j(NaN);
|
|
284
291
|
return e != null ? te(m(t), e) : m(t).userInvalidated = !0, t;
|
|
285
292
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
if (
|
|
290
|
-
for (
|
|
291
|
-
|
|
293
|
+
var qt = d.momentProperties = [], it = !1;
|
|
294
|
+
function vt(e, t) {
|
|
295
|
+
var r, s, n, a = qt.length;
|
|
296
|
+
if (N(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), N(t._i) || (e._i = t._i), N(t._f) || (e._f = t._f), N(t._l) || (e._l = t._l), N(t._strict) || (e._strict = t._strict), N(t._tzm) || (e._tzm = t._tzm), N(t._isUTC) || (e._isUTC = t._isUTC), N(t._offset) || (e._offset = t._offset), N(t._pf) || (e._pf = m(t)), N(t._locale) || (e._locale = t._locale), a > 0)
|
|
297
|
+
for (r = 0; r < a; r++)
|
|
298
|
+
s = qt[r], n = t[s], N(n) || (e[s] = n);
|
|
292
299
|
return e;
|
|
293
300
|
}
|
|
294
301
|
function Pe(e) {
|
|
295
|
-
|
|
302
|
+
vt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), it === !1 && (it = !0, d.updateOffset(this), it = !1);
|
|
296
303
|
}
|
|
297
304
|
function F(e) {
|
|
298
305
|
return e instanceof Pe || e != null && e._isAMomentObject != null;
|
|
299
306
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
307
|
+
function or(e) {
|
|
308
|
+
d.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
302
309
|
}
|
|
303
|
-
function
|
|
304
|
-
var
|
|
310
|
+
function R(e, t) {
|
|
311
|
+
var r = !0;
|
|
305
312
|
return te(function() {
|
|
306
|
-
if (
|
|
307
|
-
var
|
|
313
|
+
if (d.deprecationHandler != null && d.deprecationHandler(null, e), r) {
|
|
314
|
+
var s = [], n, a, i, l = arguments.length;
|
|
308
315
|
for (a = 0; a < l; a++) {
|
|
309
316
|
if (n = "", typeof arguments[a] == "object") {
|
|
310
317
|
n += `
|
|
@@ -314,53 +321,53 @@ function A(e, t) {
|
|
|
314
321
|
n = n.slice(0, -2);
|
|
315
322
|
} else
|
|
316
323
|
n = arguments[a];
|
|
317
|
-
|
|
324
|
+
s.push(n);
|
|
318
325
|
}
|
|
319
|
-
|
|
326
|
+
or(
|
|
320
327
|
e + `
|
|
321
|
-
Arguments: ` + Array.prototype.slice.call(
|
|
328
|
+
Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
322
329
|
` + new Error().stack
|
|
323
|
-
),
|
|
330
|
+
), r = !1;
|
|
324
331
|
}
|
|
325
332
|
return t.apply(this, arguments);
|
|
326
333
|
}, t);
|
|
327
334
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
330
|
-
|
|
335
|
+
var Qt = {};
|
|
336
|
+
function lr(e, t) {
|
|
337
|
+
d.deprecationHandler != null && d.deprecationHandler(e, t), Qt[e] || (or(t), Qt[e] = !0);
|
|
331
338
|
}
|
|
332
|
-
|
|
333
|
-
|
|
339
|
+
d.suppressDeprecationWarnings = !1;
|
|
340
|
+
d.deprecationHandler = null;
|
|
334
341
|
function z(e) {
|
|
335
342
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
336
343
|
}
|
|
337
|
-
function
|
|
338
|
-
var t,
|
|
339
|
-
for (
|
|
340
|
-
g(e,
|
|
344
|
+
function Os(e) {
|
|
345
|
+
var t, r;
|
|
346
|
+
for (r in e)
|
|
347
|
+
g(e, r) && (t = e[r], z(t) ? this[r] = t : this["_" + r] = t);
|
|
341
348
|
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
342
349
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
343
350
|
);
|
|
344
351
|
}
|
|
345
|
-
function
|
|
346
|
-
var
|
|
347
|
-
for (
|
|
348
|
-
g(t,
|
|
349
|
-
for (
|
|
350
|
-
g(e,
|
|
351
|
-
return
|
|
352
|
+
function ht(e, t) {
|
|
353
|
+
var r = te({}, e), s;
|
|
354
|
+
for (s in t)
|
|
355
|
+
g(t, s) && (oe(e[s]) && oe(t[s]) ? (r[s] = {}, te(r[s], e[s]), te(r[s], t[s])) : t[s] != null ? r[s] = t[s] : delete r[s]);
|
|
356
|
+
for (s in e)
|
|
357
|
+
g(e, s) && !g(t, s) && oe(e[s]) && (r[s] = te({}, r[s]));
|
|
358
|
+
return r;
|
|
352
359
|
}
|
|
353
|
-
function
|
|
360
|
+
function Mt(e) {
|
|
354
361
|
e != null && this.set(e);
|
|
355
362
|
}
|
|
356
|
-
var
|
|
357
|
-
Object.keys ?
|
|
358
|
-
var t,
|
|
363
|
+
var ft;
|
|
364
|
+
Object.keys ? ft = Object.keys : ft = function(e) {
|
|
365
|
+
var t, r = [];
|
|
359
366
|
for (t in e)
|
|
360
|
-
g(e, t) &&
|
|
361
|
-
return
|
|
367
|
+
g(e, t) && r.push(t);
|
|
368
|
+
return r;
|
|
362
369
|
};
|
|
363
|
-
var
|
|
370
|
+
var bs = {
|
|
364
371
|
sameDay: "[Today at] LT",
|
|
365
372
|
nextDay: "[Tomorrow at] LT",
|
|
366
373
|
nextWeek: "dddd [at] LT",
|
|
@@ -368,58 +375,58 @@ var vr = {
|
|
|
368
375
|
lastWeek: "[Last] dddd [at] LT",
|
|
369
376
|
sameElse: "L"
|
|
370
377
|
};
|
|
371
|
-
function
|
|
372
|
-
var
|
|
373
|
-
return z(
|
|
374
|
-
}
|
|
375
|
-
function G(e, t,
|
|
376
|
-
var
|
|
377
|
-
return (a ?
|
|
378
|
-
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
381
|
-
var n =
|
|
382
|
-
typeof
|
|
383
|
-
return this[
|
|
384
|
-
}), e && (
|
|
378
|
+
function Ts(e, t, r) {
|
|
379
|
+
var s = this._calendar[e] || this._calendar.sameElse;
|
|
380
|
+
return z(s) ? s.call(t, r) : s;
|
|
381
|
+
}
|
|
382
|
+
function G(e, t, r) {
|
|
383
|
+
var s = "" + Math.abs(e), n = t - s.length, a = e >= 0;
|
|
384
|
+
return (a ? r ? "+" : "" : "-") + Math.pow(10, Math.max(0, n)).toString().substr(1) + s;
|
|
385
|
+
}
|
|
386
|
+
var Dt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, Ce = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, ot = {}, he = {};
|
|
387
|
+
function h(e, t, r, s) {
|
|
388
|
+
var n = s;
|
|
389
|
+
typeof s == "string" && (n = function() {
|
|
390
|
+
return this[s]();
|
|
391
|
+
}), e && (he[e] = n), t && (he[t[0]] = function() {
|
|
385
392
|
return G(n.apply(this, arguments), t[1], t[2]);
|
|
386
|
-
}),
|
|
393
|
+
}), r && (he[r] = function() {
|
|
387
394
|
return this.localeData().ordinal(
|
|
388
395
|
n.apply(this, arguments),
|
|
389
396
|
e
|
|
390
397
|
);
|
|
391
398
|
});
|
|
392
399
|
}
|
|
393
|
-
function
|
|
400
|
+
function xs(e) {
|
|
394
401
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
395
402
|
}
|
|
396
|
-
function
|
|
397
|
-
var t = e.match(
|
|
398
|
-
for (
|
|
399
|
-
|
|
403
|
+
function Ps(e) {
|
|
404
|
+
var t = e.match(Dt), r, s;
|
|
405
|
+
for (r = 0, s = t.length; r < s; r++)
|
|
406
|
+
he[t[r]] ? t[r] = he[t[r]] : t[r] = xs(t[r]);
|
|
400
407
|
return function(n) {
|
|
401
408
|
var a = "", i;
|
|
402
|
-
for (i = 0; i <
|
|
409
|
+
for (i = 0; i < s; i++)
|
|
403
410
|
a += z(t[i]) ? t[i].call(n, e) : t[i];
|
|
404
411
|
return a;
|
|
405
412
|
};
|
|
406
413
|
}
|
|
407
|
-
function
|
|
408
|
-
return e.isValid() ? (t =
|
|
414
|
+
function Ie(e, t) {
|
|
415
|
+
return e.isValid() ? (t = ur(t, e.localeData()), ot[t] = ot[t] || Ps(t), ot[t](e)) : e.localeData().invalidDate();
|
|
409
416
|
}
|
|
410
|
-
function
|
|
411
|
-
var
|
|
412
|
-
function
|
|
417
|
+
function ur(e, t) {
|
|
418
|
+
var r = 5;
|
|
419
|
+
function s(n) {
|
|
413
420
|
return t.longDateFormat(n) || n;
|
|
414
421
|
}
|
|
415
|
-
for (Ce.lastIndex = 0;
|
|
422
|
+
for (Ce.lastIndex = 0; r >= 0 && Ce.test(e); )
|
|
416
423
|
e = e.replace(
|
|
417
424
|
Ce,
|
|
418
|
-
|
|
419
|
-
), Ce.lastIndex = 0,
|
|
425
|
+
s
|
|
426
|
+
), Ce.lastIndex = 0, r -= 1;
|
|
420
427
|
return e;
|
|
421
428
|
}
|
|
422
|
-
var
|
|
429
|
+
var Ns = {
|
|
423
430
|
LTS: "h:mm:ss A",
|
|
424
431
|
LT: "h:mm A",
|
|
425
432
|
L: "MM/DD/YYYY",
|
|
@@ -427,21 +434,21 @@ var Or = {
|
|
|
427
434
|
LLL: "MMMM D, YYYY h:mm A",
|
|
428
435
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
429
436
|
};
|
|
430
|
-
function
|
|
431
|
-
var t = this._longDateFormat[e],
|
|
432
|
-
return t || !
|
|
433
|
-
return
|
|
437
|
+
function Ws(e) {
|
|
438
|
+
var t = this._longDateFormat[e], r = this._longDateFormat[e.toUpperCase()];
|
|
439
|
+
return t || !r ? t : (this._longDateFormat[e] = r.match(Dt).map(function(s) {
|
|
440
|
+
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
434
441
|
}).join(""), this._longDateFormat[e]);
|
|
435
442
|
}
|
|
436
|
-
var
|
|
437
|
-
function
|
|
443
|
+
var Cs = "Invalid date";
|
|
444
|
+
function Rs() {
|
|
438
445
|
return this._invalidDate;
|
|
439
446
|
}
|
|
440
|
-
var
|
|
441
|
-
function
|
|
447
|
+
var As = "%d", Ls = /\d{1,2}/;
|
|
448
|
+
function Is(e) {
|
|
442
449
|
return this._ordinal.replace("%d", e);
|
|
443
450
|
}
|
|
444
|
-
var
|
|
451
|
+
var Es = {
|
|
445
452
|
future: "in %s",
|
|
446
453
|
past: "%s ago",
|
|
447
454
|
s: "a few seconds",
|
|
@@ -459,15 +466,15 @@ var Cr = {
|
|
|
459
466
|
y: "a year",
|
|
460
467
|
yy: "%d years"
|
|
461
468
|
};
|
|
462
|
-
function
|
|
463
|
-
var n = this._relativeTime[
|
|
464
|
-
return z(n) ? n(e, t,
|
|
469
|
+
function Fs(e, t, r, s) {
|
|
470
|
+
var n = this._relativeTime[r];
|
|
471
|
+
return z(n) ? n(e, t, r, s) : n.replace(/%d/i, e);
|
|
465
472
|
}
|
|
466
|
-
function
|
|
467
|
-
var
|
|
468
|
-
return z(
|
|
473
|
+
function Us(e, t) {
|
|
474
|
+
var r = this._relativeTime[e > 0 ? "future" : "past"];
|
|
475
|
+
return z(r) ? r(t) : r.replace(/%s/i, t);
|
|
469
476
|
}
|
|
470
|
-
var
|
|
477
|
+
var Jt = {
|
|
471
478
|
D: "date",
|
|
472
479
|
dates: "date",
|
|
473
480
|
date: "date",
|
|
@@ -517,16 +524,16 @@ var zt = {
|
|
|
517
524
|
years: "year",
|
|
518
525
|
year: "year"
|
|
519
526
|
};
|
|
520
|
-
function
|
|
521
|
-
return typeof e == "string" ?
|
|
527
|
+
function A(e) {
|
|
528
|
+
return typeof e == "string" ? Jt[e] || Jt[e.toLowerCase()] : void 0;
|
|
522
529
|
}
|
|
523
|
-
function
|
|
524
|
-
var t = {},
|
|
525
|
-
for (
|
|
526
|
-
g(e,
|
|
530
|
+
function Yt(e) {
|
|
531
|
+
var t = {}, r, s;
|
|
532
|
+
for (s in e)
|
|
533
|
+
g(e, s) && (r = A(s), r && (t[r] = e[s]));
|
|
527
534
|
return t;
|
|
528
535
|
}
|
|
529
|
-
var
|
|
536
|
+
var Hs = {
|
|
530
537
|
date: 9,
|
|
531
538
|
day: 11,
|
|
532
539
|
weekday: 11,
|
|
@@ -544,30 +551,30 @@ var Lr = {
|
|
|
544
551
|
isoWeek: 5,
|
|
545
552
|
year: 1
|
|
546
553
|
};
|
|
547
|
-
function
|
|
548
|
-
var t = [],
|
|
549
|
-
for (
|
|
550
|
-
g(e,
|
|
551
|
-
return t.sort(function(
|
|
552
|
-
return
|
|
554
|
+
function Vs(e) {
|
|
555
|
+
var t = [], r;
|
|
556
|
+
for (r in e)
|
|
557
|
+
g(e, r) && t.push({ unit: r, priority: Hs[r] });
|
|
558
|
+
return t.sort(function(s, n) {
|
|
559
|
+
return s.priority - n.priority;
|
|
553
560
|
}), t;
|
|
554
561
|
}
|
|
555
|
-
var
|
|
556
|
-
|
|
557
|
-
function
|
|
558
|
-
|
|
559
|
-
return
|
|
562
|
+
var dr = /\d/, W = /\d\d/, cr = /\d{3}/, Ot = /\d{4}/, Qe = /[+-]?\d{6}/, S = /\d\d?/, hr = /\d\d\d\d?/, fr = /\d\d\d\d\d\d?/, Je = /\d{1,3}/, bt = /\d{1,4}/, Ke = /[+-]?\d{1,6}/, ge = /\d+/, Xe = /[+-]?\d+/, Gs = /Z|[+-]\d\d:?\d\d/gi, $e = /Z|[+-]\d\d(?::?\d\d)?/gi, js = /[+-]?\d+(\.\d{1,3})?/, Ne = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, we = /^[1-9]\d?/, Tt = /^([1-9]\d|\d)/, Ve;
|
|
563
|
+
Ve = {};
|
|
564
|
+
function c(e, t, r) {
|
|
565
|
+
Ve[e] = z(t) ? t : function(s, n) {
|
|
566
|
+
return s && r ? r : t;
|
|
560
567
|
};
|
|
561
568
|
}
|
|
562
|
-
function
|
|
563
|
-
return g(
|
|
569
|
+
function zs(e, t) {
|
|
570
|
+
return g(Ve, e) ? Ve[e](t._strict, t._locale) : new RegExp(Zs(e));
|
|
564
571
|
}
|
|
565
|
-
function
|
|
572
|
+
function Zs(e) {
|
|
566
573
|
return J(
|
|
567
574
|
e.replace("\\", "").replace(
|
|
568
575
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
569
|
-
function(t,
|
|
570
|
-
return
|
|
576
|
+
function(t, r, s, n, a) {
|
|
577
|
+
return r || s || n || a;
|
|
571
578
|
}
|
|
572
579
|
)
|
|
573
580
|
);
|
|
@@ -579,108 +586,108 @@ function C(e) {
|
|
|
579
586
|
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
580
587
|
}
|
|
581
588
|
function y(e) {
|
|
582
|
-
var t = +e,
|
|
583
|
-
return t !== 0 && isFinite(t) && (
|
|
589
|
+
var t = +e, r = 0;
|
|
590
|
+
return t !== 0 && isFinite(t) && (r = C(t)), r;
|
|
584
591
|
}
|
|
585
|
-
var
|
|
592
|
+
var mt = {};
|
|
586
593
|
function p(e, t) {
|
|
587
|
-
var
|
|
588
|
-
for (typeof e == "string" && (e = [e]), X(t) && (
|
|
594
|
+
var r, s = t, n;
|
|
595
|
+
for (typeof e == "string" && (e = [e]), X(t) && (s = function(a, i) {
|
|
589
596
|
i[t] = y(a);
|
|
590
|
-
}), n = e.length,
|
|
591
|
-
|
|
597
|
+
}), n = e.length, r = 0; r < n; r++)
|
|
598
|
+
mt[e[r]] = s;
|
|
592
599
|
}
|
|
593
600
|
function We(e, t) {
|
|
594
|
-
p(e, function(
|
|
595
|
-
n._w = n._w || {}, t(
|
|
601
|
+
p(e, function(r, s, n, a) {
|
|
602
|
+
n._w = n._w || {}, t(r, n._w, n, a);
|
|
596
603
|
});
|
|
597
604
|
}
|
|
598
|
-
function
|
|
599
|
-
t != null && g(
|
|
605
|
+
function Bs(e, t, r) {
|
|
606
|
+
t != null && g(mt, e) && mt[e](t, r._a, r, e);
|
|
600
607
|
}
|
|
601
|
-
function
|
|
608
|
+
function et(e) {
|
|
602
609
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
603
610
|
}
|
|
604
|
-
var T = 0, q = 1, H = 2, O = 3, I = 4, Q = 5, ie = 6,
|
|
605
|
-
|
|
611
|
+
var T = 0, q = 1, H = 2, O = 3, I = 4, Q = 5, ie = 6, qs = 7, Qs = 8;
|
|
612
|
+
h("Y", 0, 0, function() {
|
|
606
613
|
var e = this.year();
|
|
607
614
|
return e <= 9999 ? G(e, 4) : "+" + e;
|
|
608
615
|
});
|
|
609
|
-
|
|
616
|
+
h(0, ["YY", 2], 0, function() {
|
|
610
617
|
return this.year() % 100;
|
|
611
618
|
});
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
619
|
+
h(0, ["YYYY", 4], 0, "year");
|
|
620
|
+
h(0, ["YYYYY", 5], 0, "year");
|
|
621
|
+
h(0, ["YYYYYY", 6, !0], 0, "year");
|
|
622
|
+
c("Y", Xe);
|
|
623
|
+
c("YY", S, W);
|
|
624
|
+
c("YYYY", bt, Ot);
|
|
625
|
+
c("YYYYY", Ke, Qe);
|
|
626
|
+
c("YYYYYY", Ke, Qe);
|
|
620
627
|
p(["YYYYY", "YYYYYY"], T);
|
|
621
628
|
p("YYYY", function(e, t) {
|
|
622
|
-
t[T] = e.length === 2 ?
|
|
629
|
+
t[T] = e.length === 2 ? d.parseTwoDigitYear(e) : y(e);
|
|
623
630
|
});
|
|
624
631
|
p("YY", function(e, t) {
|
|
625
|
-
t[T] =
|
|
632
|
+
t[T] = d.parseTwoDigitYear(e);
|
|
626
633
|
});
|
|
627
634
|
p("Y", function(e, t) {
|
|
628
635
|
t[T] = parseInt(e, 10);
|
|
629
636
|
});
|
|
630
637
|
function Me(e) {
|
|
631
|
-
return
|
|
638
|
+
return et(e) ? 366 : 365;
|
|
632
639
|
}
|
|
633
|
-
|
|
640
|
+
d.parseTwoDigitYear = function(e) {
|
|
634
641
|
return y(e) + (y(e) > 68 ? 1900 : 2e3);
|
|
635
642
|
};
|
|
636
|
-
var
|
|
637
|
-
function
|
|
638
|
-
return
|
|
643
|
+
var mr = pe("FullYear", !0);
|
|
644
|
+
function Js() {
|
|
645
|
+
return et(this.year());
|
|
639
646
|
}
|
|
640
647
|
function pe(e, t) {
|
|
641
|
-
return function(
|
|
642
|
-
return
|
|
648
|
+
return function(r) {
|
|
649
|
+
return r != null ? (yr(this, e, r), d.updateOffset(this, t), this) : Ye(this, e);
|
|
643
650
|
};
|
|
644
651
|
}
|
|
645
652
|
function Ye(e, t) {
|
|
646
653
|
if (!e.isValid())
|
|
647
654
|
return NaN;
|
|
648
|
-
var
|
|
655
|
+
var r = e._d, s = e._isUTC;
|
|
649
656
|
switch (t) {
|
|
650
657
|
case "Milliseconds":
|
|
651
|
-
return
|
|
658
|
+
return s ? r.getUTCMilliseconds() : r.getMilliseconds();
|
|
652
659
|
case "Seconds":
|
|
653
|
-
return
|
|
660
|
+
return s ? r.getUTCSeconds() : r.getSeconds();
|
|
654
661
|
case "Minutes":
|
|
655
|
-
return
|
|
662
|
+
return s ? r.getUTCMinutes() : r.getMinutes();
|
|
656
663
|
case "Hours":
|
|
657
|
-
return
|
|
664
|
+
return s ? r.getUTCHours() : r.getHours();
|
|
658
665
|
case "Date":
|
|
659
|
-
return
|
|
666
|
+
return s ? r.getUTCDate() : r.getDate();
|
|
660
667
|
case "Day":
|
|
661
|
-
return
|
|
668
|
+
return s ? r.getUTCDay() : r.getDay();
|
|
662
669
|
case "Month":
|
|
663
|
-
return
|
|
670
|
+
return s ? r.getUTCMonth() : r.getMonth();
|
|
664
671
|
case "FullYear":
|
|
665
|
-
return
|
|
672
|
+
return s ? r.getUTCFullYear() : r.getFullYear();
|
|
666
673
|
default:
|
|
667
674
|
return NaN;
|
|
668
675
|
}
|
|
669
676
|
}
|
|
670
|
-
function
|
|
671
|
-
var
|
|
672
|
-
if (!(!e.isValid() || isNaN(
|
|
673
|
-
switch (
|
|
677
|
+
function yr(e, t, r) {
|
|
678
|
+
var s, n, a, i, l;
|
|
679
|
+
if (!(!e.isValid() || isNaN(r))) {
|
|
680
|
+
switch (s = e._d, n = e._isUTC, t) {
|
|
674
681
|
case "Milliseconds":
|
|
675
|
-
return void (n ?
|
|
682
|
+
return void (n ? s.setUTCMilliseconds(r) : s.setMilliseconds(r));
|
|
676
683
|
case "Seconds":
|
|
677
|
-
return void (n ?
|
|
684
|
+
return void (n ? s.setUTCSeconds(r) : s.setSeconds(r));
|
|
678
685
|
case "Minutes":
|
|
679
|
-
return void (n ?
|
|
686
|
+
return void (n ? s.setUTCMinutes(r) : s.setMinutes(r));
|
|
680
687
|
case "Hours":
|
|
681
|
-
return void (n ?
|
|
688
|
+
return void (n ? s.setUTCHours(r) : s.setHours(r));
|
|
682
689
|
case "Date":
|
|
683
|
-
return void (n ?
|
|
690
|
+
return void (n ? s.setUTCDate(r) : s.setDate(r));
|
|
684
691
|
// case 'Day': // Not real
|
|
685
692
|
// return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
|
|
686
693
|
// case 'Month': // Not used because we need to pass two variables
|
|
@@ -691,23 +698,23 @@ function hs(e, t, s) {
|
|
|
691
698
|
default:
|
|
692
699
|
return;
|
|
693
700
|
}
|
|
694
|
-
a =
|
|
701
|
+
a = r, i = e.month(), l = e.date(), l = l === 29 && i === 1 && !et(a) ? 28 : l, n ? s.setUTCFullYear(a, i, l) : s.setFullYear(a, i, l);
|
|
695
702
|
}
|
|
696
703
|
}
|
|
697
|
-
function
|
|
698
|
-
return e =
|
|
704
|
+
function Ks(e) {
|
|
705
|
+
return e = A(e), z(this[e]) ? this[e]() : this;
|
|
699
706
|
}
|
|
700
|
-
function
|
|
707
|
+
function Xs(e, t) {
|
|
701
708
|
if (typeof e == "object") {
|
|
702
|
-
e =
|
|
703
|
-
var
|
|
704
|
-
for (
|
|
705
|
-
this[s
|
|
706
|
-
} else if (e =
|
|
709
|
+
e = Yt(e);
|
|
710
|
+
var r = Vs(e), s, n = r.length;
|
|
711
|
+
for (s = 0; s < n; s++)
|
|
712
|
+
this[r[s].unit](e[r[s].unit]);
|
|
713
|
+
} else if (e = A(e), z(this[e]))
|
|
707
714
|
return this[e](t);
|
|
708
715
|
return this;
|
|
709
716
|
}
|
|
710
|
-
function
|
|
717
|
+
function $s(e, t) {
|
|
711
718
|
return (e % t + t) % t;
|
|
712
719
|
}
|
|
713
720
|
var D;
|
|
@@ -718,75 +725,75 @@ Array.prototype.indexOf ? D = Array.prototype.indexOf : D = function(e) {
|
|
|
718
725
|
return t;
|
|
719
726
|
return -1;
|
|
720
727
|
};
|
|
721
|
-
function
|
|
728
|
+
function xt(e, t) {
|
|
722
729
|
if (isNaN(e) || isNaN(t))
|
|
723
730
|
return NaN;
|
|
724
|
-
var
|
|
725
|
-
return e += (t -
|
|
731
|
+
var r = $s(t, 12);
|
|
732
|
+
return e += (t - r) / 12, r === 1 ? et(e) ? 29 : 28 : 31 - r % 7 % 2;
|
|
726
733
|
}
|
|
727
|
-
|
|
734
|
+
h("M", ["MM", 2], "Mo", function() {
|
|
728
735
|
return this.month() + 1;
|
|
729
736
|
});
|
|
730
|
-
|
|
737
|
+
h("MMM", 0, 0, function(e) {
|
|
731
738
|
return this.localeData().monthsShort(this, e);
|
|
732
739
|
});
|
|
733
|
-
|
|
740
|
+
h("MMMM", 0, 0, function(e) {
|
|
734
741
|
return this.localeData().months(this, e);
|
|
735
742
|
});
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
743
|
+
c("M", S, we);
|
|
744
|
+
c("MM", S, W);
|
|
745
|
+
c("MMM", function(e, t) {
|
|
739
746
|
return t.monthsShortRegex(e);
|
|
740
747
|
});
|
|
741
|
-
|
|
748
|
+
c("MMMM", function(e, t) {
|
|
742
749
|
return t.monthsRegex(e);
|
|
743
750
|
});
|
|
744
751
|
p(["M", "MM"], function(e, t) {
|
|
745
752
|
t[q] = y(e) - 1;
|
|
746
753
|
});
|
|
747
|
-
p(["MMM", "MMMM"], function(e, t,
|
|
748
|
-
var n =
|
|
749
|
-
n != null ? t[q] = n : m(
|
|
754
|
+
p(["MMM", "MMMM"], function(e, t, r, s) {
|
|
755
|
+
var n = r._locale.monthsParse(e, s, r._strict);
|
|
756
|
+
n != null ? t[q] = n : m(r).invalidMonth = e;
|
|
750
757
|
});
|
|
751
|
-
var
|
|
758
|
+
var en = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
752
759
|
"_"
|
|
753
|
-
),
|
|
754
|
-
function
|
|
755
|
-
return e ? E(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat ||
|
|
760
|
+
), _r = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), gr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, tn = Ne, rn = Ne;
|
|
761
|
+
function sn(e, t) {
|
|
762
|
+
return e ? E(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || gr).test(t) ? "format" : "standalone"][e.month()] : E(this._months) ? this._months : this._months.standalone;
|
|
756
763
|
}
|
|
757
|
-
function
|
|
758
|
-
return e ? E(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[
|
|
764
|
+
function nn(e, t) {
|
|
765
|
+
return e ? E(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[gr.test(t) ? "format" : "standalone"][e.month()] : E(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
759
766
|
}
|
|
760
|
-
function
|
|
761
|
-
var
|
|
767
|
+
function an(e, t, r) {
|
|
768
|
+
var s, n, a, i = e.toLocaleLowerCase();
|
|
762
769
|
if (!this._monthsParse)
|
|
763
|
-
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [],
|
|
764
|
-
a = j([2e3,
|
|
770
|
+
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
771
|
+
a = j([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(
|
|
765
772
|
a,
|
|
766
773
|
""
|
|
767
|
-
).toLocaleLowerCase(), this._longMonthsParse[
|
|
768
|
-
return
|
|
774
|
+
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(a, "").toLocaleLowerCase();
|
|
775
|
+
return r ? t === "MMM" ? (n = D.call(this._shortMonthsParse, i), n !== -1 ? n : null) : (n = D.call(this._longMonthsParse, i), n !== -1 ? n : null) : t === "MMM" ? (n = D.call(this._shortMonthsParse, i), n !== -1 ? n : (n = D.call(this._longMonthsParse, i), n !== -1 ? n : null)) : (n = D.call(this._longMonthsParse, i), n !== -1 ? n : (n = D.call(this._shortMonthsParse, i), n !== -1 ? n : null));
|
|
769
776
|
}
|
|
770
|
-
function
|
|
771
|
-
var
|
|
777
|
+
function on(e, t, r) {
|
|
778
|
+
var s, n, a;
|
|
772
779
|
if (this._monthsParseExact)
|
|
773
|
-
return
|
|
774
|
-
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []),
|
|
775
|
-
if (n = j([2e3,
|
|
780
|
+
return an.call(this, e, t, r);
|
|
781
|
+
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
|
|
782
|
+
if (n = j([2e3, s]), r && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
|
|
776
783
|
"^" + this.months(n, "").replace(".", "") + "$",
|
|
777
784
|
"i"
|
|
778
|
-
), this._shortMonthsParse[
|
|
785
|
+
), this._shortMonthsParse[s] = new RegExp(
|
|
779
786
|
"^" + this.monthsShort(n, "").replace(".", "") + "$",
|
|
780
787
|
"i"
|
|
781
|
-
)), !
|
|
782
|
-
return
|
|
783
|
-
if (
|
|
784
|
-
return
|
|
785
|
-
if (!
|
|
786
|
-
return
|
|
788
|
+
)), !r && !this._monthsParse[s] && (a = "^" + this.months(n, "") + "|^" + this.monthsShort(n, ""), this._monthsParse[s] = new RegExp(a.replace(".", ""), "i")), r && t === "MMMM" && this._longMonthsParse[s].test(e))
|
|
789
|
+
return s;
|
|
790
|
+
if (r && t === "MMM" && this._shortMonthsParse[s].test(e))
|
|
791
|
+
return s;
|
|
792
|
+
if (!r && this._monthsParse[s].test(e))
|
|
793
|
+
return s;
|
|
787
794
|
}
|
|
788
795
|
}
|
|
789
|
-
function
|
|
796
|
+
function wr(e, t) {
|
|
790
797
|
if (!e.isValid())
|
|
791
798
|
return e;
|
|
792
799
|
if (typeof t == "string") {
|
|
@@ -795,260 +802,260 @@ function ms(e, t) {
|
|
|
795
802
|
else if (t = e.localeData().monthsParse(t), !X(t))
|
|
796
803
|
return e;
|
|
797
804
|
}
|
|
798
|
-
var
|
|
799
|
-
return
|
|
805
|
+
var r = t, s = e.date();
|
|
806
|
+
return s = s < 29 ? s : Math.min(s, xt(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, s) : e._d.setMonth(r, s), e;
|
|
800
807
|
}
|
|
801
|
-
function
|
|
802
|
-
return e != null ? (
|
|
808
|
+
function pr(e) {
|
|
809
|
+
return e != null ? (wr(this, e), d.updateOffset(this, !0), this) : Ye(this, "Month");
|
|
803
810
|
}
|
|
804
|
-
function
|
|
805
|
-
return
|
|
811
|
+
function ln() {
|
|
812
|
+
return xt(this.year(), this.month());
|
|
806
813
|
}
|
|
807
|
-
function
|
|
808
|
-
return this._monthsParseExact ? (g(this, "_monthsRegex") ||
|
|
814
|
+
function un(e) {
|
|
815
|
+
return this._monthsParseExact ? (g(this, "_monthsRegex") || kr.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (g(this, "_monthsShortRegex") || (this._monthsShortRegex = tn), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
809
816
|
}
|
|
810
|
-
function
|
|
811
|
-
return this._monthsParseExact ? (g(this, "_monthsRegex") ||
|
|
817
|
+
function dn(e) {
|
|
818
|
+
return this._monthsParseExact ? (g(this, "_monthsRegex") || kr.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (g(this, "_monthsRegex") || (this._monthsRegex = rn), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
812
819
|
}
|
|
813
|
-
function
|
|
814
|
-
function e(
|
|
815
|
-
return f.length -
|
|
820
|
+
function kr() {
|
|
821
|
+
function e(u, f) {
|
|
822
|
+
return f.length - u.length;
|
|
816
823
|
}
|
|
817
|
-
var t = [],
|
|
824
|
+
var t = [], r = [], s = [], n, a, i, l;
|
|
818
825
|
for (n = 0; n < 12; n++)
|
|
819
|
-
a = j([2e3, n]), i = J(this.monthsShort(a, "")), l = J(this.months(a, "")), t.push(i),
|
|
820
|
-
t.sort(e),
|
|
821
|
-
"^(" +
|
|
826
|
+
a = j([2e3, n]), i = J(this.monthsShort(a, "")), l = J(this.months(a, "")), t.push(i), r.push(l), s.push(l), s.push(i);
|
|
827
|
+
t.sort(e), r.sort(e), s.sort(e), this._monthsRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
828
|
+
"^(" + r.join("|") + ")",
|
|
822
829
|
"i"
|
|
823
830
|
), this._monthsShortStrictRegex = new RegExp(
|
|
824
831
|
"^(" + t.join("|") + ")",
|
|
825
832
|
"i"
|
|
826
833
|
);
|
|
827
834
|
}
|
|
828
|
-
function
|
|
835
|
+
function cn(e, t, r, s, n, a, i) {
|
|
829
836
|
var l;
|
|
830
|
-
return e < 100 && e >= 0 ? (l = new Date(e + 400, t,
|
|
837
|
+
return e < 100 && e >= 0 ? (l = new Date(e + 400, t, r, s, n, a, i), isFinite(l.getFullYear()) && l.setFullYear(e)) : l = new Date(e, t, r, s, n, a, i), l;
|
|
831
838
|
}
|
|
832
839
|
function Oe(e) {
|
|
833
|
-
var t,
|
|
834
|
-
return e < 100 && e >= 0 ? (
|
|
840
|
+
var t, r;
|
|
841
|
+
return e < 100 && e >= 0 ? (r = Array.prototype.slice.call(arguments), r[0] = e + 400, t = new Date(Date.UTC.apply(null, r)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
|
|
835
842
|
}
|
|
836
|
-
function
|
|
837
|
-
var
|
|
838
|
-
return -n +
|
|
843
|
+
function Ge(e, t, r) {
|
|
844
|
+
var s = 7 + t - r, n = (7 + Oe(e, 0, s).getUTCDay() - t) % 7;
|
|
845
|
+
return -n + s - 1;
|
|
839
846
|
}
|
|
840
|
-
function
|
|
841
|
-
var a = (7 +
|
|
842
|
-
return l <= 0 ? (
|
|
843
|
-
year:
|
|
847
|
+
function Sr(e, t, r, s, n) {
|
|
848
|
+
var a = (7 + r - s) % 7, i = Ge(e, s, n), l = 1 + 7 * (t - 1) + a + i, u, f;
|
|
849
|
+
return l <= 0 ? (u = e - 1, f = Me(u) + l) : l > Me(e) ? (u = e + 1, f = l - Me(e)) : (u = e, f = l), {
|
|
850
|
+
year: u,
|
|
844
851
|
dayOfYear: f
|
|
845
852
|
};
|
|
846
853
|
}
|
|
847
|
-
function be(e, t,
|
|
848
|
-
var
|
|
849
|
-
return n < 1 ? (i = e.year() - 1, a = n + K(i, t,
|
|
854
|
+
function be(e, t, r) {
|
|
855
|
+
var s = Ge(e.year(), t, r), n = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, a, i;
|
|
856
|
+
return n < 1 ? (i = e.year() - 1, a = n + K(i, t, r)) : n > K(e.year(), t, r) ? (a = n - K(e.year(), t, r), i = e.year() + 1) : (i = e.year(), a = n), {
|
|
850
857
|
week: a,
|
|
851
858
|
year: i
|
|
852
859
|
};
|
|
853
860
|
}
|
|
854
|
-
function K(e, t,
|
|
855
|
-
var
|
|
856
|
-
return (Me(e) -
|
|
861
|
+
function K(e, t, r) {
|
|
862
|
+
var s = Ge(e, t, r), n = Ge(e + 1, t, r);
|
|
863
|
+
return (Me(e) - s + n) / 7;
|
|
857
864
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
865
|
+
h("w", ["ww", 2], "wo", "week");
|
|
866
|
+
h("W", ["WW", 2], "Wo", "isoWeek");
|
|
867
|
+
c("w", S, we);
|
|
868
|
+
c("ww", S, W);
|
|
869
|
+
c("W", S, we);
|
|
870
|
+
c("WW", S, W);
|
|
864
871
|
We(
|
|
865
872
|
["w", "ww", "W", "WW"],
|
|
866
|
-
function(e, t,
|
|
867
|
-
t[
|
|
873
|
+
function(e, t, r, s) {
|
|
874
|
+
t[s.substr(0, 1)] = y(e);
|
|
868
875
|
}
|
|
869
876
|
);
|
|
870
|
-
function
|
|
877
|
+
function hn(e) {
|
|
871
878
|
return be(e, this._week.dow, this._week.doy).week;
|
|
872
879
|
}
|
|
873
|
-
var
|
|
880
|
+
var fn = {
|
|
874
881
|
dow: 0,
|
|
875
882
|
// Sunday is the first day of the week.
|
|
876
883
|
doy: 6
|
|
877
884
|
// The week that contains Jan 6th is the first week of the year.
|
|
878
885
|
};
|
|
879
|
-
function
|
|
886
|
+
function mn() {
|
|
880
887
|
return this._week.dow;
|
|
881
888
|
}
|
|
882
|
-
function
|
|
889
|
+
function yn() {
|
|
883
890
|
return this._week.doy;
|
|
884
891
|
}
|
|
885
|
-
function
|
|
892
|
+
function _n(e) {
|
|
886
893
|
var t = this.localeData().week(this);
|
|
887
894
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
888
895
|
}
|
|
889
|
-
function
|
|
896
|
+
function gn(e) {
|
|
890
897
|
var t = be(this, 1, 4).week;
|
|
891
898
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
892
899
|
}
|
|
893
|
-
|
|
894
|
-
|
|
900
|
+
h("d", 0, "do", "day");
|
|
901
|
+
h("dd", 0, 0, function(e) {
|
|
895
902
|
return this.localeData().weekdaysMin(this, e);
|
|
896
903
|
});
|
|
897
|
-
|
|
904
|
+
h("ddd", 0, 0, function(e) {
|
|
898
905
|
return this.localeData().weekdaysShort(this, e);
|
|
899
906
|
});
|
|
900
|
-
|
|
907
|
+
h("dddd", 0, 0, function(e) {
|
|
901
908
|
return this.localeData().weekdays(this, e);
|
|
902
909
|
});
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
910
|
+
h("e", 0, 0, "weekday");
|
|
911
|
+
h("E", 0, 0, "isoWeekday");
|
|
912
|
+
c("d", S);
|
|
913
|
+
c("e", S);
|
|
914
|
+
c("E", S);
|
|
915
|
+
c("dd", function(e, t) {
|
|
909
916
|
return t.weekdaysMinRegex(e);
|
|
910
917
|
});
|
|
911
|
-
|
|
918
|
+
c("ddd", function(e, t) {
|
|
912
919
|
return t.weekdaysShortRegex(e);
|
|
913
920
|
});
|
|
914
|
-
|
|
921
|
+
c("dddd", function(e, t) {
|
|
915
922
|
return t.weekdaysRegex(e);
|
|
916
923
|
});
|
|
917
|
-
We(["dd", "ddd", "dddd"], function(e, t,
|
|
918
|
-
var n =
|
|
919
|
-
n != null ? t.d = n : m(
|
|
924
|
+
We(["dd", "ddd", "dddd"], function(e, t, r, s) {
|
|
925
|
+
var n = r._locale.weekdaysParse(e, s, r._strict);
|
|
926
|
+
n != null ? t.d = n : m(r).invalidWeekday = e;
|
|
920
927
|
});
|
|
921
|
-
We(["d", "e", "E"], function(e, t,
|
|
922
|
-
t[
|
|
928
|
+
We(["d", "e", "E"], function(e, t, r, s) {
|
|
929
|
+
t[s] = y(e);
|
|
923
930
|
});
|
|
924
|
-
function
|
|
931
|
+
function wn(e, t) {
|
|
925
932
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
926
933
|
}
|
|
927
|
-
function
|
|
934
|
+
function pn(e, t) {
|
|
928
935
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
929
936
|
}
|
|
930
|
-
function
|
|
937
|
+
function Pt(e, t) {
|
|
931
938
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
932
939
|
}
|
|
933
|
-
var
|
|
934
|
-
function
|
|
935
|
-
var
|
|
936
|
-
return e === !0 ?
|
|
940
|
+
var kn = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), vr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Sn = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), vn = Ne, Mn = Ne, Dn = Ne;
|
|
941
|
+
function Yn(e, t) {
|
|
942
|
+
var r = E(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
943
|
+
return e === !0 ? Pt(r, this._week.dow) : e ? r[e.day()] : r;
|
|
937
944
|
}
|
|
938
|
-
function
|
|
939
|
-
return e === !0 ?
|
|
945
|
+
function On(e) {
|
|
946
|
+
return e === !0 ? Pt(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
940
947
|
}
|
|
941
|
-
function
|
|
942
|
-
return e === !0 ?
|
|
948
|
+
function bn(e) {
|
|
949
|
+
return e === !0 ? Pt(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
943
950
|
}
|
|
944
|
-
function
|
|
945
|
-
var
|
|
951
|
+
function Tn(e, t, r) {
|
|
952
|
+
var s, n, a, i = e.toLocaleLowerCase();
|
|
946
953
|
if (!this._weekdaysParse)
|
|
947
|
-
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [],
|
|
948
|
-
a = j([2e3, 1]).day(
|
|
954
|
+
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
955
|
+
a = j([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(
|
|
949
956
|
a,
|
|
950
957
|
""
|
|
951
|
-
).toLocaleLowerCase(), this._shortWeekdaysParse[
|
|
958
|
+
).toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(
|
|
952
959
|
a,
|
|
953
960
|
""
|
|
954
|
-
).toLocaleLowerCase(), this._weekdaysParse[
|
|
955
|
-
return
|
|
961
|
+
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(a, "").toLocaleLowerCase();
|
|
962
|
+
return r ? t === "dddd" ? (n = D.call(this._weekdaysParse, i), n !== -1 ? n : null) : t === "ddd" ? (n = D.call(this._shortWeekdaysParse, i), n !== -1 ? n : null) : (n = D.call(this._minWeekdaysParse, i), n !== -1 ? n : null) : t === "dddd" ? (n = D.call(this._weekdaysParse, i), n !== -1 || (n = D.call(this._shortWeekdaysParse, i), n !== -1) ? n : (n = D.call(this._minWeekdaysParse, i), n !== -1 ? n : null)) : t === "ddd" ? (n = D.call(this._shortWeekdaysParse, i), n !== -1 || (n = D.call(this._weekdaysParse, i), n !== -1) ? n : (n = D.call(this._minWeekdaysParse, i), n !== -1 ? n : null)) : (n = D.call(this._minWeekdaysParse, i), n !== -1 || (n = D.call(this._weekdaysParse, i), n !== -1) ? n : (n = D.call(this._shortWeekdaysParse, i), n !== -1 ? n : null));
|
|
956
963
|
}
|
|
957
|
-
function
|
|
958
|
-
var
|
|
964
|
+
function xn(e, t, r) {
|
|
965
|
+
var s, n, a;
|
|
959
966
|
if (this._weekdaysParseExact)
|
|
960
|
-
return
|
|
961
|
-
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []),
|
|
962
|
-
if (n = j([2e3, 1]).day(
|
|
967
|
+
return Tn.call(this, e, t, r);
|
|
968
|
+
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
|
|
969
|
+
if (n = j([2e3, 1]).day(s), r && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
|
|
963
970
|
"^" + this.weekdays(n, "").replace(".", "\\.?") + "$",
|
|
964
971
|
"i"
|
|
965
|
-
), this._shortWeekdaysParse[
|
|
972
|
+
), this._shortWeekdaysParse[s] = new RegExp(
|
|
966
973
|
"^" + this.weekdaysShort(n, "").replace(".", "\\.?") + "$",
|
|
967
974
|
"i"
|
|
968
|
-
), this._minWeekdaysParse[
|
|
975
|
+
), this._minWeekdaysParse[s] = new RegExp(
|
|
969
976
|
"^" + this.weekdaysMin(n, "").replace(".", "\\.?") + "$",
|
|
970
977
|
"i"
|
|
971
|
-
)), this._weekdaysParse[
|
|
972
|
-
return
|
|
973
|
-
if (
|
|
974
|
-
return
|
|
975
|
-
if (
|
|
976
|
-
return
|
|
977
|
-
if (!
|
|
978
|
-
return
|
|
978
|
+
)), this._weekdaysParse[s] || (a = "^" + this.weekdays(n, "") + "|^" + this.weekdaysShort(n, "") + "|^" + this.weekdaysMin(n, ""), this._weekdaysParse[s] = new RegExp(a.replace(".", ""), "i")), r && t === "dddd" && this._fullWeekdaysParse[s].test(e))
|
|
979
|
+
return s;
|
|
980
|
+
if (r && t === "ddd" && this._shortWeekdaysParse[s].test(e))
|
|
981
|
+
return s;
|
|
982
|
+
if (r && t === "dd" && this._minWeekdaysParse[s].test(e))
|
|
983
|
+
return s;
|
|
984
|
+
if (!r && this._weekdaysParse[s].test(e))
|
|
985
|
+
return s;
|
|
979
986
|
}
|
|
980
987
|
}
|
|
981
|
-
function
|
|
988
|
+
function Pn(e) {
|
|
982
989
|
if (!this.isValid())
|
|
983
990
|
return e != null ? this : NaN;
|
|
984
991
|
var t = Ye(this, "Day");
|
|
985
|
-
return e != null ? (e =
|
|
992
|
+
return e != null ? (e = wn(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
986
993
|
}
|
|
987
|
-
function
|
|
994
|
+
function Nn(e) {
|
|
988
995
|
if (!this.isValid())
|
|
989
996
|
return e != null ? this : NaN;
|
|
990
997
|
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
991
998
|
return e == null ? t : this.add(e - t, "d");
|
|
992
999
|
}
|
|
993
|
-
function
|
|
1000
|
+
function Wn(e) {
|
|
994
1001
|
if (!this.isValid())
|
|
995
1002
|
return e != null ? this : NaN;
|
|
996
1003
|
if (e != null) {
|
|
997
|
-
var t =
|
|
1004
|
+
var t = pn(e, this.localeData());
|
|
998
1005
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
999
1006
|
} else
|
|
1000
1007
|
return this.day() || 7;
|
|
1001
1008
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") ||
|
|
1009
|
+
function Cn(e) {
|
|
1010
|
+
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Nt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (g(this, "_weekdaysRegex") || (this._weekdaysRegex = vn), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
1004
1011
|
}
|
|
1005
|
-
function
|
|
1006
|
-
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") ||
|
|
1012
|
+
function Rn(e) {
|
|
1013
|
+
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Nt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (g(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Mn), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
1007
1014
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") ||
|
|
1015
|
+
function An(e) {
|
|
1016
|
+
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Nt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (g(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Dn), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
1010
1017
|
}
|
|
1011
|
-
function
|
|
1012
|
-
function e(M,
|
|
1013
|
-
return
|
|
1018
|
+
function Nt() {
|
|
1019
|
+
function e(M, x) {
|
|
1020
|
+
return x.length - M.length;
|
|
1014
1021
|
}
|
|
1015
|
-
var t = [],
|
|
1022
|
+
var t = [], r = [], s = [], n = [], a, i, l, u, f;
|
|
1016
1023
|
for (a = 0; a < 7; a++)
|
|
1017
|
-
i = j([2e3, 1]).day(a), l = J(this.weekdaysMin(i, "")),
|
|
1018
|
-
t.sort(e),
|
|
1019
|
-
"^(" +
|
|
1024
|
+
i = j([2e3, 1]).day(a), l = J(this.weekdaysMin(i, "")), u = J(this.weekdaysShort(i, "")), f = J(this.weekdays(i, "")), t.push(l), r.push(u), s.push(f), n.push(l), n.push(u), n.push(f);
|
|
1025
|
+
t.sort(e), r.sort(e), s.sort(e), n.sort(e), this._weekdaysRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
1026
|
+
"^(" + s.join("|") + ")",
|
|
1020
1027
|
"i"
|
|
1021
1028
|
), this._weekdaysShortStrictRegex = new RegExp(
|
|
1022
|
-
"^(" +
|
|
1029
|
+
"^(" + r.join("|") + ")",
|
|
1023
1030
|
"i"
|
|
1024
1031
|
), this._weekdaysMinStrictRegex = new RegExp(
|
|
1025
1032
|
"^(" + t.join("|") + ")",
|
|
1026
1033
|
"i"
|
|
1027
1034
|
);
|
|
1028
1035
|
}
|
|
1029
|
-
function
|
|
1036
|
+
function Wt() {
|
|
1030
1037
|
return this.hours() % 12 || 12;
|
|
1031
1038
|
}
|
|
1032
|
-
function
|
|
1039
|
+
function Ln() {
|
|
1033
1040
|
return this.hours() || 24;
|
|
1034
1041
|
}
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
return "" +
|
|
1042
|
+
h("H", ["HH", 2], 0, "hour");
|
|
1043
|
+
h("h", ["hh", 2], 0, Wt);
|
|
1044
|
+
h("k", ["kk", 2], 0, Ln);
|
|
1045
|
+
h("hmm", 0, 0, function() {
|
|
1046
|
+
return "" + Wt.apply(this) + G(this.minutes(), 2);
|
|
1040
1047
|
});
|
|
1041
|
-
|
|
1042
|
-
return "" +
|
|
1048
|
+
h("hmmss", 0, 0, function() {
|
|
1049
|
+
return "" + Wt.apply(this) + G(this.minutes(), 2) + G(this.seconds(), 2);
|
|
1043
1050
|
});
|
|
1044
|
-
|
|
1051
|
+
h("Hmm", 0, 0, function() {
|
|
1045
1052
|
return "" + this.hours() + G(this.minutes(), 2);
|
|
1046
1053
|
});
|
|
1047
|
-
|
|
1054
|
+
h("Hmmss", 0, 0, function() {
|
|
1048
1055
|
return "" + this.hours() + G(this.minutes(), 2) + G(this.seconds(), 2);
|
|
1049
1056
|
});
|
|
1050
|
-
function
|
|
1051
|
-
|
|
1057
|
+
function Mr(e, t) {
|
|
1058
|
+
h(e, 0, 0, function() {
|
|
1052
1059
|
return this.localeData().meridiem(
|
|
1053
1060
|
this.hours(),
|
|
1054
1061
|
this.minutes(),
|
|
@@ -1056,144 +1063,144 @@ function ps(e, t) {
|
|
|
1056
1063
|
);
|
|
1057
1064
|
});
|
|
1058
1065
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
function
|
|
1066
|
+
Mr("a", !0);
|
|
1067
|
+
Mr("A", !1);
|
|
1068
|
+
function Dr(e, t) {
|
|
1062
1069
|
return t._meridiemParse;
|
|
1063
1070
|
}
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1071
|
+
c("a", Dr);
|
|
1072
|
+
c("A", Dr);
|
|
1073
|
+
c("H", S, Tt);
|
|
1074
|
+
c("h", S, we);
|
|
1075
|
+
c("k", S, we);
|
|
1076
|
+
c("HH", S, W);
|
|
1077
|
+
c("hh", S, W);
|
|
1078
|
+
c("kk", S, W);
|
|
1079
|
+
c("hmm", hr);
|
|
1080
|
+
c("hmmss", fr);
|
|
1081
|
+
c("Hmm", hr);
|
|
1082
|
+
c("Hmmss", fr);
|
|
1076
1083
|
p(["H", "HH"], O);
|
|
1077
|
-
p(["k", "kk"], function(e, t,
|
|
1078
|
-
var
|
|
1079
|
-
t[O] =
|
|
1084
|
+
p(["k", "kk"], function(e, t, r) {
|
|
1085
|
+
var s = y(e);
|
|
1086
|
+
t[O] = s === 24 ? 0 : s;
|
|
1080
1087
|
});
|
|
1081
|
-
p(["a", "A"], function(e, t,
|
|
1082
|
-
|
|
1088
|
+
p(["a", "A"], function(e, t, r) {
|
|
1089
|
+
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
1083
1090
|
});
|
|
1084
|
-
p(["h", "hh"], function(e, t,
|
|
1085
|
-
t[O] = y(e), m(
|
|
1091
|
+
p(["h", "hh"], function(e, t, r) {
|
|
1092
|
+
t[O] = y(e), m(r).bigHour = !0;
|
|
1086
1093
|
});
|
|
1087
|
-
p("hmm", function(e, t,
|
|
1088
|
-
var
|
|
1089
|
-
t[O] = y(e.substr(0,
|
|
1094
|
+
p("hmm", function(e, t, r) {
|
|
1095
|
+
var s = e.length - 2;
|
|
1096
|
+
t[O] = y(e.substr(0, s)), t[I] = y(e.substr(s)), m(r).bigHour = !0;
|
|
1090
1097
|
});
|
|
1091
|
-
p("hmmss", function(e, t,
|
|
1092
|
-
var
|
|
1093
|
-
t[O] = y(e.substr(0,
|
|
1098
|
+
p("hmmss", function(e, t, r) {
|
|
1099
|
+
var s = e.length - 4, n = e.length - 2;
|
|
1100
|
+
t[O] = y(e.substr(0, s)), t[I] = y(e.substr(s, 2)), t[Q] = y(e.substr(n)), m(r).bigHour = !0;
|
|
1094
1101
|
});
|
|
1095
|
-
p("Hmm", function(e, t,
|
|
1096
|
-
var
|
|
1097
|
-
t[O] = y(e.substr(0,
|
|
1102
|
+
p("Hmm", function(e, t, r) {
|
|
1103
|
+
var s = e.length - 2;
|
|
1104
|
+
t[O] = y(e.substr(0, s)), t[I] = y(e.substr(s));
|
|
1098
1105
|
});
|
|
1099
|
-
p("Hmmss", function(e, t,
|
|
1100
|
-
var
|
|
1101
|
-
t[O] = y(e.substr(0,
|
|
1106
|
+
p("Hmmss", function(e, t, r) {
|
|
1107
|
+
var s = e.length - 4, n = e.length - 2;
|
|
1108
|
+
t[O] = y(e.substr(0, s)), t[I] = y(e.substr(s, 2)), t[Q] = y(e.substr(n));
|
|
1102
1109
|
});
|
|
1103
|
-
function
|
|
1110
|
+
function In(e) {
|
|
1104
1111
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
1105
1112
|
}
|
|
1106
|
-
var
|
|
1107
|
-
function
|
|
1108
|
-
return e > 11 ?
|
|
1109
|
-
}
|
|
1110
|
-
var
|
|
1111
|
-
calendar:
|
|
1112
|
-
longDateFormat:
|
|
1113
|
-
invalidDate:
|
|
1114
|
-
ordinal:
|
|
1115
|
-
dayOfMonthOrdinalParse:
|
|
1116
|
-
relativeTime:
|
|
1117
|
-
months:
|
|
1118
|
-
monthsShort:
|
|
1119
|
-
week:
|
|
1120
|
-
weekdays:
|
|
1121
|
-
weekdaysMin:
|
|
1122
|
-
weekdaysShort:
|
|
1123
|
-
meridiemParse:
|
|
1113
|
+
var En = /[ap]\.?m?\.?/i, Fn = pe("Hours", !0);
|
|
1114
|
+
function Un(e, t, r) {
|
|
1115
|
+
return e > 11 ? r ? "pm" : "PM" : r ? "am" : "AM";
|
|
1116
|
+
}
|
|
1117
|
+
var Yr = {
|
|
1118
|
+
calendar: bs,
|
|
1119
|
+
longDateFormat: Ns,
|
|
1120
|
+
invalidDate: Cs,
|
|
1121
|
+
ordinal: As,
|
|
1122
|
+
dayOfMonthOrdinalParse: Ls,
|
|
1123
|
+
relativeTime: Es,
|
|
1124
|
+
months: en,
|
|
1125
|
+
monthsShort: _r,
|
|
1126
|
+
week: fn,
|
|
1127
|
+
weekdays: kn,
|
|
1128
|
+
weekdaysMin: Sn,
|
|
1129
|
+
weekdaysShort: vr,
|
|
1130
|
+
meridiemParse: En
|
|
1124
1131
|
}, v = {}, ke = {}, Te;
|
|
1125
|
-
function
|
|
1126
|
-
var
|
|
1127
|
-
for (
|
|
1128
|
-
if (e[
|
|
1129
|
-
return
|
|
1130
|
-
return
|
|
1132
|
+
function Hn(e, t) {
|
|
1133
|
+
var r, s = Math.min(e.length, t.length);
|
|
1134
|
+
for (r = 0; r < s; r += 1)
|
|
1135
|
+
if (e[r] !== t[r])
|
|
1136
|
+
return r;
|
|
1137
|
+
return s;
|
|
1131
1138
|
}
|
|
1132
|
-
function
|
|
1139
|
+
function Kt(e) {
|
|
1133
1140
|
return e && e.toLowerCase().replace("_", "-");
|
|
1134
1141
|
}
|
|
1135
|
-
function
|
|
1136
|
-
for (var t = 0,
|
|
1137
|
-
for (a =
|
|
1138
|
-
if (n =
|
|
1142
|
+
function Vn(e) {
|
|
1143
|
+
for (var t = 0, r, s, n, a; t < e.length; ) {
|
|
1144
|
+
for (a = Kt(e[t]).split("-"), r = a.length, s = Kt(e[t + 1]), s = s ? s.split("-") : null; r > 0; ) {
|
|
1145
|
+
if (n = tt(a.slice(0, r).join("-")), n)
|
|
1139
1146
|
return n;
|
|
1140
|
-
if (
|
|
1147
|
+
if (s && s.length >= r && Hn(a, s) >= r - 1)
|
|
1141
1148
|
break;
|
|
1142
|
-
|
|
1149
|
+
r--;
|
|
1143
1150
|
}
|
|
1144
1151
|
t++;
|
|
1145
1152
|
}
|
|
1146
1153
|
return Te;
|
|
1147
1154
|
}
|
|
1148
|
-
function
|
|
1155
|
+
function Gn(e) {
|
|
1149
1156
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
1150
1157
|
}
|
|
1151
|
-
function
|
|
1152
|
-
var t = null,
|
|
1153
|
-
if (v[e] === void 0 && typeof module < "u" && module && module.exports &&
|
|
1158
|
+
function tt(e) {
|
|
1159
|
+
var t = null, r;
|
|
1160
|
+
if (v[e] === void 0 && typeof module < "u" && module && module.exports && Gn(e))
|
|
1154
1161
|
try {
|
|
1155
|
-
t = Te._abbr,
|
|
1162
|
+
t = Te._abbr, r = require, r("./locale/" + e), se(t);
|
|
1156
1163
|
} catch {
|
|
1157
1164
|
v[e] = null;
|
|
1158
1165
|
}
|
|
1159
1166
|
return v[e];
|
|
1160
1167
|
}
|
|
1161
|
-
function
|
|
1162
|
-
var
|
|
1163
|
-
return e && (
|
|
1168
|
+
function se(e, t) {
|
|
1169
|
+
var r;
|
|
1170
|
+
return e && (N(t) ? r = $(e) : r = Ct(e, t), r ? Te = r : typeof console < "u" && console.warn && console.warn(
|
|
1164
1171
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
1165
1172
|
)), Te._abbr;
|
|
1166
1173
|
}
|
|
1167
|
-
function
|
|
1174
|
+
function Ct(e, t) {
|
|
1168
1175
|
if (t !== null) {
|
|
1169
|
-
var
|
|
1176
|
+
var r, s = Yr;
|
|
1170
1177
|
if (t.abbr = e, v[e] != null)
|
|
1171
|
-
|
|
1178
|
+
lr(
|
|
1172
1179
|
"defineLocaleOverride",
|
|
1173
1180
|
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
|
|
1174
|
-
),
|
|
1181
|
+
), s = v[e]._config;
|
|
1175
1182
|
else if (t.parentLocale != null)
|
|
1176
1183
|
if (v[t.parentLocale] != null)
|
|
1177
|
-
|
|
1178
|
-
else if (
|
|
1179
|
-
|
|
1184
|
+
s = v[t.parentLocale]._config;
|
|
1185
|
+
else if (r = tt(t.parentLocale), r != null)
|
|
1186
|
+
s = r._config;
|
|
1180
1187
|
else
|
|
1181
1188
|
return ke[t.parentLocale] || (ke[t.parentLocale] = []), ke[t.parentLocale].push({
|
|
1182
1189
|
name: e,
|
|
1183
1190
|
config: t
|
|
1184
1191
|
}), null;
|
|
1185
|
-
return v[e] = new
|
|
1186
|
-
|
|
1187
|
-
}),
|
|
1192
|
+
return v[e] = new Mt(ht(s, t)), ke[e] && ke[e].forEach(function(n) {
|
|
1193
|
+
Ct(n.name, n.config);
|
|
1194
|
+
}), se(e), v[e];
|
|
1188
1195
|
} else
|
|
1189
1196
|
return delete v[e], null;
|
|
1190
1197
|
}
|
|
1191
|
-
function
|
|
1198
|
+
function jn(e, t) {
|
|
1192
1199
|
if (t != null) {
|
|
1193
|
-
var
|
|
1194
|
-
v[e] != null && v[e].parentLocale != null ? v[e].set(
|
|
1200
|
+
var r, s, n = Yr;
|
|
1201
|
+
v[e] != null && v[e].parentLocale != null ? v[e].set(ht(v[e]._config, t)) : (s = tt(e), s != null && (n = s._config), t = ht(n, t), s == null && (t.abbr = e), r = new Mt(t), r.parentLocale = v[e], v[e] = r), se(e);
|
|
1195
1202
|
} else
|
|
1196
|
-
v[e] != null && (v[e].parentLocale != null ? (v[e] = v[e].parentLocale, e ===
|
|
1203
|
+
v[e] != null && (v[e].parentLocale != null ? (v[e] = v[e].parentLocale, e === se() && se(e)) : v[e] != null && delete v[e]);
|
|
1197
1204
|
return v[e];
|
|
1198
1205
|
}
|
|
1199
1206
|
function $(e) {
|
|
@@ -1201,20 +1208,20 @@ function $(e) {
|
|
|
1201
1208
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1202
1209
|
return Te;
|
|
1203
1210
|
if (!E(e)) {
|
|
1204
|
-
if (t =
|
|
1211
|
+
if (t = tt(e), t)
|
|
1205
1212
|
return t;
|
|
1206
1213
|
e = [e];
|
|
1207
1214
|
}
|
|
1208
|
-
return
|
|
1215
|
+
return Vn(e);
|
|
1209
1216
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1217
|
+
function zn() {
|
|
1218
|
+
return ft(v);
|
|
1212
1219
|
}
|
|
1213
|
-
function
|
|
1214
|
-
var t,
|
|
1215
|
-
return
|
|
1220
|
+
function Rt(e) {
|
|
1221
|
+
var t, r = e._a;
|
|
1222
|
+
return r && m(e).overflow === -2 && (t = r[q] < 0 || r[q] > 11 ? q : r[H] < 1 || r[H] > xt(r[T], r[q]) ? H : r[O] < 0 || r[O] > 24 || r[O] === 24 && (r[I] !== 0 || r[Q] !== 0 || r[ie] !== 0) ? O : r[I] < 0 || r[I] > 59 ? I : r[Q] < 0 || r[Q] > 59 ? Q : r[ie] < 0 || r[ie] > 999 ? ie : -1, m(e)._overflowDayOfYear && (t < T || t > H) && (t = H), m(e)._overflowWeeks && t === -1 && (t = qs), m(e)._overflowWeekday && t === -1 && (t = Qs), m(e).overflow = t), e;
|
|
1216
1223
|
}
|
|
1217
|
-
var
|
|
1224
|
+
var Zn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Bn = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, qn = /Z|[+-]\d\d(?::?\d\d)?/, Re = [
|
|
1218
1225
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
1219
1226
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
1220
1227
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -1228,7 +1235,7 @@ var Hn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1228
1235
|
["YYYYDDD", /\d{7}/],
|
|
1229
1236
|
["YYYYMM", /\d{6}/, !1],
|
|
1230
1237
|
["YYYY", /\d{4}/, !1]
|
|
1231
|
-
],
|
|
1238
|
+
], lt = [
|
|
1232
1239
|
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
1233
1240
|
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
1234
1241
|
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
@@ -1238,7 +1245,7 @@ var Hn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1238
1245
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
1239
1246
|
["HHmm", /\d\d\d\d/],
|
|
1240
1247
|
["HH", /\d\d/]
|
|
1241
|
-
],
|
|
1248
|
+
], Qn = /^\/?Date\((-?\d+)/i, Jn = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, Kn = {
|
|
1242
1249
|
UT: 0,
|
|
1243
1250
|
GMT: 0,
|
|
1244
1251
|
EDT: -240,
|
|
@@ -1250,12 +1257,12 @@ var Hn = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1250
1257
|
PDT: -420,
|
|
1251
1258
|
PST: -480
|
|
1252
1259
|
};
|
|
1253
|
-
function
|
|
1254
|
-
var t,
|
|
1260
|
+
function Or(e) {
|
|
1261
|
+
var t, r, s = e._i, n = Zn.exec(s) || Bn.exec(s), a, i, l, u, f = Re.length, M = lt.length;
|
|
1255
1262
|
if (n) {
|
|
1256
|
-
for (m(e).iso = !0, t = 0,
|
|
1257
|
-
if (
|
|
1258
|
-
i =
|
|
1263
|
+
for (m(e).iso = !0, t = 0, r = f; t < r; t++)
|
|
1264
|
+
if (Re[t][1].exec(n[1])) {
|
|
1265
|
+
i = Re[t][0], a = Re[t][2] !== !1;
|
|
1259
1266
|
break;
|
|
1260
1267
|
}
|
|
1261
1268
|
if (i == null) {
|
|
@@ -1263,9 +1270,9 @@ function vs(e) {
|
|
|
1263
1270
|
return;
|
|
1264
1271
|
}
|
|
1265
1272
|
if (n[3]) {
|
|
1266
|
-
for (t = 0,
|
|
1267
|
-
if (
|
|
1268
|
-
l = (n[2] || " ") +
|
|
1273
|
+
for (t = 0, r = M; t < r; t++)
|
|
1274
|
+
if (lt[t][1].exec(n[3])) {
|
|
1275
|
+
l = (n[2] || " ") + lt[t][0];
|
|
1269
1276
|
break;
|
|
1270
1277
|
}
|
|
1271
1278
|
if (l == null) {
|
|
@@ -1278,224 +1285,224 @@ function vs(e) {
|
|
|
1278
1285
|
return;
|
|
1279
1286
|
}
|
|
1280
1287
|
if (n[4])
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1288
|
+
if (qn.exec(n[4]))
|
|
1289
|
+
u = "Z";
|
|
1283
1290
|
else {
|
|
1284
1291
|
e._isValid = !1;
|
|
1285
1292
|
return;
|
|
1286
1293
|
}
|
|
1287
|
-
e._f = i + (l || "") + (
|
|
1294
|
+
e._f = i + (l || "") + (u || ""), Lt(e);
|
|
1288
1295
|
} else
|
|
1289
1296
|
e._isValid = !1;
|
|
1290
1297
|
}
|
|
1291
|
-
function
|
|
1298
|
+
function Xn(e, t, r, s, n, a) {
|
|
1292
1299
|
var i = [
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
parseInt(s, 10),
|
|
1300
|
+
$n(e),
|
|
1301
|
+
_r.indexOf(t),
|
|
1296
1302
|
parseInt(r, 10),
|
|
1303
|
+
parseInt(s, 10),
|
|
1297
1304
|
parseInt(n, 10)
|
|
1298
1305
|
];
|
|
1299
1306
|
return a && i.push(parseInt(a, 10)), i;
|
|
1300
1307
|
}
|
|
1301
|
-
function
|
|
1308
|
+
function $n(e) {
|
|
1302
1309
|
var t = parseInt(e, 10);
|
|
1303
1310
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
1304
1311
|
}
|
|
1305
|
-
function
|
|
1312
|
+
function ea(e) {
|
|
1306
1313
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1307
1314
|
}
|
|
1308
|
-
function
|
|
1315
|
+
function ta(e, t, r) {
|
|
1309
1316
|
if (e) {
|
|
1310
|
-
var
|
|
1317
|
+
var s = vr.indexOf(e), n = new Date(
|
|
1311
1318
|
t[0],
|
|
1312
1319
|
t[1],
|
|
1313
1320
|
t[2]
|
|
1314
1321
|
).getDay();
|
|
1315
|
-
if (
|
|
1316
|
-
return m(
|
|
1322
|
+
if (s !== n)
|
|
1323
|
+
return m(r).weekdayMismatch = !0, r._isValid = !1, !1;
|
|
1317
1324
|
}
|
|
1318
1325
|
return !0;
|
|
1319
1326
|
}
|
|
1320
|
-
function
|
|
1327
|
+
function ra(e, t, r) {
|
|
1321
1328
|
if (e)
|
|
1322
|
-
return
|
|
1329
|
+
return Kn[e];
|
|
1323
1330
|
if (t)
|
|
1324
1331
|
return 0;
|
|
1325
|
-
var
|
|
1332
|
+
var s = parseInt(r, 10), n = s % 100, a = (s - n) / 100;
|
|
1326
1333
|
return a * 60 + n;
|
|
1327
1334
|
}
|
|
1328
|
-
function
|
|
1329
|
-
var t =
|
|
1335
|
+
function br(e) {
|
|
1336
|
+
var t = Jn.exec(ea(e._i)), r;
|
|
1330
1337
|
if (t) {
|
|
1331
|
-
if (
|
|
1338
|
+
if (r = Xn(
|
|
1332
1339
|
t[4],
|
|
1333
1340
|
t[3],
|
|
1334
1341
|
t[2],
|
|
1335
1342
|
t[5],
|
|
1336
1343
|
t[6],
|
|
1337
1344
|
t[7]
|
|
1338
|
-
), !
|
|
1345
|
+
), !ta(t[1], r, e))
|
|
1339
1346
|
return;
|
|
1340
|
-
e._a =
|
|
1347
|
+
e._a = r, e._tzm = ra(t[8], t[9], t[10]), e._d = Oe.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), m(e).rfc2822 = !0;
|
|
1341
1348
|
} else
|
|
1342
1349
|
e._isValid = !1;
|
|
1343
1350
|
}
|
|
1344
|
-
function
|
|
1345
|
-
var t =
|
|
1351
|
+
function sa(e) {
|
|
1352
|
+
var t = Qn.exec(e._i);
|
|
1346
1353
|
if (t !== null) {
|
|
1347
1354
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
1348
1355
|
return;
|
|
1349
1356
|
}
|
|
1350
|
-
if (
|
|
1357
|
+
if (Or(e), e._isValid === !1)
|
|
1351
1358
|
delete e._isValid;
|
|
1352
1359
|
else
|
|
1353
1360
|
return;
|
|
1354
|
-
if (
|
|
1361
|
+
if (br(e), e._isValid === !1)
|
|
1355
1362
|
delete e._isValid;
|
|
1356
1363
|
else
|
|
1357
1364
|
return;
|
|
1358
|
-
e._strict ? e._isValid = !1 :
|
|
1365
|
+
e._strict ? e._isValid = !1 : d.createFromInputFallback(e);
|
|
1359
1366
|
}
|
|
1360
|
-
|
|
1367
|
+
d.createFromInputFallback = R(
|
|
1361
1368
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
1362
1369
|
function(e) {
|
|
1363
1370
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1364
1371
|
}
|
|
1365
1372
|
);
|
|
1366
|
-
function de(e, t,
|
|
1367
|
-
return e ?? t ??
|
|
1373
|
+
function de(e, t, r) {
|
|
1374
|
+
return e ?? t ?? r;
|
|
1368
1375
|
}
|
|
1369
|
-
function
|
|
1370
|
-
var t = new Date(
|
|
1376
|
+
function na(e) {
|
|
1377
|
+
var t = new Date(d.now());
|
|
1371
1378
|
return e._useUTC ? [
|
|
1372
1379
|
t.getUTCFullYear(),
|
|
1373
1380
|
t.getUTCMonth(),
|
|
1374
1381
|
t.getUTCDate()
|
|
1375
1382
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
1376
1383
|
}
|
|
1377
|
-
function
|
|
1378
|
-
var t,
|
|
1384
|
+
function At(e) {
|
|
1385
|
+
var t, r, s = [], n, a, i;
|
|
1379
1386
|
if (!e._d) {
|
|
1380
|
-
for (n =
|
|
1381
|
-
e._a[t] =
|
|
1387
|
+
for (n = na(e), e._w && e._a[H] == null && e._a[q] == null && aa(e), e._dayOfYear != null && (i = de(e._a[T], n[T]), (e._dayOfYear > Me(i) || e._dayOfYear === 0) && (m(e)._overflowDayOfYear = !0), r = Oe(i, 0, e._dayOfYear), e._a[q] = r.getUTCMonth(), e._a[H] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1388
|
+
e._a[t] = s[t] = n[t];
|
|
1382
1389
|
for (; t < 7; t++)
|
|
1383
|
-
e._a[t] =
|
|
1384
|
-
e._a[O] === 24 && e._a[I] === 0 && e._a[Q] === 0 && e._a[ie] === 0 && (e._nextDay = !0, e._a[O] = 0), e._d = (e._useUTC ? Oe :
|
|
1390
|
+
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1391
|
+
e._a[O] === 24 && e._a[I] === 0 && e._a[Q] === 0 && e._a[ie] === 0 && (e._nextDay = !0, e._a[O] = 0), e._d = (e._useUTC ? Oe : cn).apply(
|
|
1385
1392
|
null,
|
|
1386
|
-
|
|
1393
|
+
s
|
|
1387
1394
|
), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[O] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (m(e).weekdayMismatch = !0);
|
|
1388
1395
|
}
|
|
1389
1396
|
}
|
|
1390
|
-
function
|
|
1391
|
-
var t,
|
|
1392
|
-
t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4,
|
|
1397
|
+
function aa(e) {
|
|
1398
|
+
var t, r, s, n, a, i, l, u, f;
|
|
1399
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (a = 1, i = 4, r = de(
|
|
1393
1400
|
t.GG,
|
|
1394
1401
|
e._a[T],
|
|
1395
1402
|
be(k(), 1, 4).year
|
|
1396
|
-
),
|
|
1403
|
+
), s = de(t.W, 1), n = de(t.E, 1), (n < 1 || n > 7) && (u = !0)) : (a = e._locale._week.dow, i = e._locale._week.doy, f = be(k(), a, i), r = de(t.gg, e._a[T], f.year), s = de(t.w, f.week), t.d != null ? (n = t.d, (n < 0 || n > 6) && (u = !0)) : t.e != null ? (n = t.e + a, (t.e < 0 || t.e > 6) && (u = !0)) : n = a), s < 1 || s > K(r, a, i) ? m(e)._overflowWeeks = !0 : u != null ? m(e)._overflowWeekday = !0 : (l = Sr(r, s, n, a, i), e._a[T] = l.year, e._dayOfYear = l.dayOfYear);
|
|
1397
1404
|
}
|
|
1398
|
-
|
|
1405
|
+
d.ISO_8601 = function() {
|
|
1399
1406
|
};
|
|
1400
|
-
|
|
1407
|
+
d.RFC_2822 = function() {
|
|
1401
1408
|
};
|
|
1402
|
-
function
|
|
1403
|
-
if (e._f ===
|
|
1404
|
-
|
|
1409
|
+
function Lt(e) {
|
|
1410
|
+
if (e._f === d.ISO_8601) {
|
|
1411
|
+
Or(e);
|
|
1405
1412
|
return;
|
|
1406
1413
|
}
|
|
1407
|
-
if (e._f ===
|
|
1408
|
-
|
|
1414
|
+
if (e._f === d.RFC_2822) {
|
|
1415
|
+
br(e);
|
|
1409
1416
|
return;
|
|
1410
1417
|
}
|
|
1411
1418
|
e._a = [], m(e).empty = !0;
|
|
1412
|
-
var t = "" + e._i,
|
|
1413
|
-
for (n =
|
|
1414
|
-
a = n[
|
|
1415
|
-
t.indexOf(
|
|
1416
|
-
),
|
|
1417
|
-
m(e).charsLeftOver = l -
|
|
1419
|
+
var t = "" + e._i, r, s, n, a, i, l = t.length, u = 0, f, M;
|
|
1420
|
+
for (n = ur(e._f, e._locale).match(Dt) || [], M = n.length, r = 0; r < M; r++)
|
|
1421
|
+
a = n[r], s = (t.match(zs(a, e)) || [])[0], s && (i = t.substr(0, t.indexOf(s)), i.length > 0 && m(e).unusedInput.push(i), t = t.slice(
|
|
1422
|
+
t.indexOf(s) + s.length
|
|
1423
|
+
), u += s.length), he[a] ? (s ? m(e).empty = !1 : m(e).unusedTokens.push(a), Bs(a, s, e)) : e._strict && !s && m(e).unusedTokens.push(a);
|
|
1424
|
+
m(e).charsLeftOver = l - u, t.length > 0 && m(e).unusedInput.push(t), e._a[O] <= 12 && m(e).bigHour === !0 && e._a[O] > 0 && (m(e).bigHour = void 0), m(e).parsedDateParts = e._a.slice(0), m(e).meridiem = e._meridiem, e._a[O] = ia(
|
|
1418
1425
|
e._locale,
|
|
1419
1426
|
e._a[O],
|
|
1420
1427
|
e._meridiem
|
|
1421
|
-
), f = m(e).era, f !== null && (e._a[T] = e._locale.erasConvertYear(f, e._a[T])),
|
|
1428
|
+
), f = m(e).era, f !== null && (e._a[T] = e._locale.erasConvertYear(f, e._a[T])), At(e), Rt(e);
|
|
1422
1429
|
}
|
|
1423
|
-
function
|
|
1424
|
-
var
|
|
1425
|
-
return
|
|
1430
|
+
function ia(e, t, r) {
|
|
1431
|
+
var s;
|
|
1432
|
+
return r == null ? t : e.meridiemHour != null ? e.meridiemHour(t, r) : (e.isPM != null && (s = e.isPM(r), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
1426
1433
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var t,
|
|
1429
|
-
if (
|
|
1434
|
+
function oa(e) {
|
|
1435
|
+
var t, r, s, n, a, i, l = !1, u = e._f.length;
|
|
1436
|
+
if (u === 0) {
|
|
1430
1437
|
m(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1431
1438
|
return;
|
|
1432
1439
|
}
|
|
1433
|
-
for (n = 0; n <
|
|
1434
|
-
a = 0, i = !1, t =
|
|
1435
|
-
te(e,
|
|
1440
|
+
for (n = 0; n < u; n++)
|
|
1441
|
+
a = 0, i = !1, t = vt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[n], Lt(t), St(t) && (i = !0), a += m(t).charsLeftOver, a += m(t).unusedTokens.length * 10, m(t).score = a, l ? a < s && (s = a, r = t) : (s == null || a < s || i) && (s = a, r = t, i && (l = !0));
|
|
1442
|
+
te(e, r || t);
|
|
1436
1443
|
}
|
|
1437
|
-
function
|
|
1444
|
+
function la(e) {
|
|
1438
1445
|
if (!e._d) {
|
|
1439
|
-
var t =
|
|
1440
|
-
e._a =
|
|
1441
|
-
[t.year, t.month,
|
|
1442
|
-
function(
|
|
1443
|
-
return
|
|
1446
|
+
var t = Yt(e._i), r = t.day === void 0 ? t.date : t.day;
|
|
1447
|
+
e._a = ir(
|
|
1448
|
+
[t.year, t.month, r, t.hour, t.minute, t.second, t.millisecond],
|
|
1449
|
+
function(s) {
|
|
1450
|
+
return s && parseInt(s, 10);
|
|
1444
1451
|
}
|
|
1445
|
-
),
|
|
1452
|
+
), At(e);
|
|
1446
1453
|
}
|
|
1447
1454
|
}
|
|
1448
|
-
function
|
|
1449
|
-
var t = new Pe(
|
|
1455
|
+
function ua(e) {
|
|
1456
|
+
var t = new Pe(Rt(Tr(e)));
|
|
1450
1457
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1451
1458
|
}
|
|
1452
|
-
function
|
|
1453
|
-
var t = e._i,
|
|
1454
|
-
return e._locale = e._locale || $(e._l), t === null ||
|
|
1459
|
+
function Tr(e) {
|
|
1460
|
+
var t = e._i, r = e._f;
|
|
1461
|
+
return e._locale = e._locale || $(e._l), t === null || r === void 0 && t === "" ? qe({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new Pe(Rt(t)) : (xe(t) ? e._d = t : E(r) ? oa(e) : r ? Lt(e) : da(e), St(e) || (e._d = null), e));
|
|
1455
1462
|
}
|
|
1456
|
-
function
|
|
1463
|
+
function da(e) {
|
|
1457
1464
|
var t = e._i;
|
|
1458
|
-
|
|
1459
|
-
return parseInt(
|
|
1460
|
-
}),
|
|
1465
|
+
N(t) ? e._d = new Date(d.now()) : xe(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? sa(e) : E(t) ? (e._a = ir(t.slice(0), function(r) {
|
|
1466
|
+
return parseInt(r, 10);
|
|
1467
|
+
}), At(e)) : oe(t) ? la(e) : X(t) ? e._d = new Date(t) : d.createFromInputFallback(e);
|
|
1461
1468
|
}
|
|
1462
|
-
function
|
|
1469
|
+
function xr(e, t, r, s, n) {
|
|
1463
1470
|
var a = {};
|
|
1464
|
-
return (t === !0 || t === !1) && (
|
|
1471
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (r === !0 || r === !1) && (s = r, r = void 0), (oe(e) && kt(e) || E(e) && e.length === 0) && (e = void 0), a._isAMomentObject = !0, a._useUTC = a._isUTC = n, a._l = r, a._i = e, a._f = t, a._strict = s, ua(a);
|
|
1465
1472
|
}
|
|
1466
|
-
function k(e, t,
|
|
1467
|
-
return
|
|
1473
|
+
function k(e, t, r, s) {
|
|
1474
|
+
return xr(e, t, r, s, !1);
|
|
1468
1475
|
}
|
|
1469
|
-
var
|
|
1476
|
+
var ca = R(
|
|
1470
1477
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1471
1478
|
function() {
|
|
1472
1479
|
var e = k.apply(null, arguments);
|
|
1473
|
-
return this.isValid() && e.isValid() ? e < this ? this : e :
|
|
1480
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : qe();
|
|
1474
1481
|
}
|
|
1475
|
-
),
|
|
1482
|
+
), ha = R(
|
|
1476
1483
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1477
1484
|
function() {
|
|
1478
1485
|
var e = k.apply(null, arguments);
|
|
1479
|
-
return this.isValid() && e.isValid() ? e > this ? this : e :
|
|
1486
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : qe();
|
|
1480
1487
|
}
|
|
1481
1488
|
);
|
|
1482
|
-
function
|
|
1483
|
-
var
|
|
1489
|
+
function Pr(e, t) {
|
|
1490
|
+
var r, s;
|
|
1484
1491
|
if (t.length === 1 && E(t[0]) && (t = t[0]), !t.length)
|
|
1485
1492
|
return k();
|
|
1486
|
-
for (
|
|
1487
|
-
(!t[
|
|
1488
|
-
return
|
|
1493
|
+
for (r = t[0], s = 1; s < t.length; ++s)
|
|
1494
|
+
(!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1495
|
+
return r;
|
|
1489
1496
|
}
|
|
1490
|
-
function
|
|
1497
|
+
function fa() {
|
|
1491
1498
|
var e = [].slice.call(arguments, 0);
|
|
1492
|
-
return
|
|
1499
|
+
return Pr("isBefore", e);
|
|
1493
1500
|
}
|
|
1494
|
-
function
|
|
1501
|
+
function ma() {
|
|
1495
1502
|
var e = [].slice.call(arguments, 0);
|
|
1496
|
-
return
|
|
1503
|
+
return Pr("isAfter", e);
|
|
1497
1504
|
}
|
|
1498
|
-
var
|
|
1505
|
+
var ya = function() {
|
|
1499
1506
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
1500
1507
|
}, Se = [
|
|
1501
1508
|
"year",
|
|
@@ -1508,191 +1515,191 @@ var da = function() {
|
|
|
1508
1515
|
"second",
|
|
1509
1516
|
"millisecond"
|
|
1510
1517
|
];
|
|
1511
|
-
function
|
|
1512
|
-
var t,
|
|
1518
|
+
function _a(e) {
|
|
1519
|
+
var t, r = !1, s, n = Se.length;
|
|
1513
1520
|
for (t in e)
|
|
1514
1521
|
if (g(e, t) && !(D.call(Se, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
1515
1522
|
return !1;
|
|
1516
|
-
for (
|
|
1517
|
-
if (e[Se[
|
|
1518
|
-
if (
|
|
1523
|
+
for (s = 0; s < n; ++s)
|
|
1524
|
+
if (e[Se[s]]) {
|
|
1525
|
+
if (r)
|
|
1519
1526
|
return !1;
|
|
1520
|
-
parseFloat(e[Se[
|
|
1527
|
+
parseFloat(e[Se[s]]) !== y(e[Se[s]]) && (r = !0);
|
|
1521
1528
|
}
|
|
1522
1529
|
return !0;
|
|
1523
1530
|
}
|
|
1524
|
-
function
|
|
1531
|
+
function ga() {
|
|
1525
1532
|
return this._isValid;
|
|
1526
1533
|
}
|
|
1527
|
-
function
|
|
1534
|
+
function wa() {
|
|
1528
1535
|
return U(NaN);
|
|
1529
1536
|
}
|
|
1530
|
-
function
|
|
1531
|
-
var t =
|
|
1532
|
-
this._isValid =
|
|
1533
|
-
|
|
1534
|
-
l * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +n +
|
|
1537
|
+
function rt(e) {
|
|
1538
|
+
var t = Yt(e), r = t.year || 0, s = t.quarter || 0, n = t.month || 0, a = t.week || t.isoWeek || 0, i = t.day || 0, l = t.hour || 0, u = t.minute || 0, f = t.second || 0, M = t.millisecond || 0;
|
|
1539
|
+
this._isValid = _a(t), this._milliseconds = +M + f * 1e3 + // 1000
|
|
1540
|
+
u * 6e4 + // 1000 * 60
|
|
1541
|
+
l * 1e3 * 60 * 60, this._days = +i + a * 7, this._months = +n + s * 3 + r * 12, this._data = {}, this._locale = $(), this._bubble();
|
|
1535
1542
|
}
|
|
1536
|
-
function
|
|
1537
|
-
return e instanceof
|
|
1543
|
+
function Ee(e) {
|
|
1544
|
+
return e instanceof rt;
|
|
1538
1545
|
}
|
|
1539
|
-
function
|
|
1546
|
+
function yt(e) {
|
|
1540
1547
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1541
1548
|
}
|
|
1542
|
-
function
|
|
1543
|
-
var
|
|
1544
|
-
for (i = 0; i <
|
|
1549
|
+
function pa(e, t, r) {
|
|
1550
|
+
var s = Math.min(e.length, t.length), n = Math.abs(e.length - t.length), a = 0, i;
|
|
1551
|
+
for (i = 0; i < s; i++)
|
|
1545
1552
|
y(e[i]) !== y(t[i]) && a++;
|
|
1546
1553
|
return a + n;
|
|
1547
1554
|
}
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1550
|
-
var
|
|
1551
|
-
return
|
|
1555
|
+
function Nr(e, t) {
|
|
1556
|
+
h(e, 0, 0, function() {
|
|
1557
|
+
var r = this.utcOffset(), s = "+";
|
|
1558
|
+
return r < 0 && (r = -r, s = "-"), s + G(~~(r / 60), 2) + t + G(~~r % 60, 2);
|
|
1552
1559
|
});
|
|
1553
1560
|
}
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
p(["Z", "ZZ"], function(e, t,
|
|
1559
|
-
|
|
1561
|
+
Nr("Z", ":");
|
|
1562
|
+
Nr("ZZ", "");
|
|
1563
|
+
c("Z", $e);
|
|
1564
|
+
c("ZZ", $e);
|
|
1565
|
+
p(["Z", "ZZ"], function(e, t, r) {
|
|
1566
|
+
r._useUTC = !0, r._tzm = It($e, e);
|
|
1560
1567
|
});
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1563
|
-
var
|
|
1564
|
-
return
|
|
1568
|
+
var ka = /([\+\-]|\d\d)/gi;
|
|
1569
|
+
function It(e, t) {
|
|
1570
|
+
var r = (t || "").match(e), s, n, a;
|
|
1571
|
+
return r === null ? null : (s = r[r.length - 1] || [], n = (s + "").match(ka) || ["-", 0, 0], a = +(n[1] * 60) + y(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
|
|
1565
1572
|
}
|
|
1566
|
-
function
|
|
1567
|
-
var
|
|
1568
|
-
return t._isUTC ? (
|
|
1573
|
+
function Et(e, t) {
|
|
1574
|
+
var r, s;
|
|
1575
|
+
return t._isUTC ? (r = t.clone(), s = (F(e) || xe(e) ? e.valueOf() : k(e).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + s), d.updateOffset(r, !1), r) : k(e).local();
|
|
1569
1576
|
}
|
|
1570
|
-
function
|
|
1577
|
+
function _t(e) {
|
|
1571
1578
|
return -Math.round(e._d.getTimezoneOffset());
|
|
1572
1579
|
}
|
|
1573
|
-
|
|
1580
|
+
d.updateOffset = function() {
|
|
1574
1581
|
};
|
|
1575
|
-
function
|
|
1576
|
-
var
|
|
1582
|
+
function Sa(e, t, r) {
|
|
1583
|
+
var s = this._offset || 0, n;
|
|
1577
1584
|
if (!this.isValid())
|
|
1578
1585
|
return e != null ? this : NaN;
|
|
1579
1586
|
if (e != null) {
|
|
1580
1587
|
if (typeof e == "string") {
|
|
1581
|
-
if (e =
|
|
1588
|
+
if (e = It($e, e), e === null)
|
|
1582
1589
|
return this;
|
|
1583
|
-
} else Math.abs(e) < 16 && !
|
|
1584
|
-
return !this._isUTC && t && (n =
|
|
1590
|
+
} else Math.abs(e) < 16 && !r && (e = e * 60);
|
|
1591
|
+
return !this._isUTC && t && (n = _t(this)), this._offset = e, this._isUTC = !0, n != null && this.add(n, "m"), s !== e && (!t || this._changeInProgress ? Rr(
|
|
1585
1592
|
this,
|
|
1586
|
-
U(e -
|
|
1593
|
+
U(e - s, "m"),
|
|
1587
1594
|
1,
|
|
1588
1595
|
!1
|
|
1589
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
1596
|
+
) : this._changeInProgress || (this._changeInProgress = !0, d.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
1590
1597
|
} else
|
|
1591
|
-
return this._isUTC ?
|
|
1598
|
+
return this._isUTC ? s : _t(this);
|
|
1592
1599
|
}
|
|
1593
|
-
function
|
|
1600
|
+
function va(e, t) {
|
|
1594
1601
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
1595
1602
|
}
|
|
1596
|
-
function
|
|
1603
|
+
function Ma(e) {
|
|
1597
1604
|
return this.utcOffset(0, e);
|
|
1598
1605
|
}
|
|
1599
|
-
function
|
|
1600
|
-
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(
|
|
1606
|
+
function Da(e) {
|
|
1607
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(_t(this), "m")), this;
|
|
1601
1608
|
}
|
|
1602
|
-
function
|
|
1609
|
+
function Ya() {
|
|
1603
1610
|
if (this._tzm != null)
|
|
1604
1611
|
this.utcOffset(this._tzm, !1, !0);
|
|
1605
1612
|
else if (typeof this._i == "string") {
|
|
1606
|
-
var e =
|
|
1613
|
+
var e = It(Gs, this._i);
|
|
1607
1614
|
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
1608
1615
|
}
|
|
1609
1616
|
return this;
|
|
1610
1617
|
}
|
|
1611
|
-
function
|
|
1618
|
+
function Oa(e) {
|
|
1612
1619
|
return this.isValid() ? (e = e ? k(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1613
1620
|
}
|
|
1614
|
-
function
|
|
1621
|
+
function ba() {
|
|
1615
1622
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
1616
1623
|
}
|
|
1617
|
-
function
|
|
1618
|
-
if (!
|
|
1624
|
+
function Ta() {
|
|
1625
|
+
if (!N(this._isDSTShifted))
|
|
1619
1626
|
return this._isDSTShifted;
|
|
1620
1627
|
var e = {}, t;
|
|
1621
|
-
return
|
|
1628
|
+
return vt(e, this), e = Tr(e), e._a ? (t = e._isUTC ? j(e._a) : k(e._a), this._isDSTShifted = this.isValid() && pa(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
1622
1629
|
}
|
|
1623
|
-
function
|
|
1630
|
+
function xa() {
|
|
1624
1631
|
return this.isValid() ? !this._isUTC : !1;
|
|
1625
1632
|
}
|
|
1626
|
-
function
|
|
1633
|
+
function Pa() {
|
|
1627
1634
|
return this.isValid() ? this._isUTC : !1;
|
|
1628
1635
|
}
|
|
1629
|
-
function
|
|
1636
|
+
function Wr() {
|
|
1630
1637
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
1631
1638
|
}
|
|
1632
|
-
var
|
|
1639
|
+
var Na = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Wa = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
1633
1640
|
function U(e, t) {
|
|
1634
|
-
var
|
|
1635
|
-
return
|
|
1641
|
+
var r = e, s = null, n, a, i;
|
|
1642
|
+
return Ee(e) ? r = {
|
|
1636
1643
|
ms: e._milliseconds,
|
|
1637
1644
|
d: e._days,
|
|
1638
1645
|
M: e._months
|
|
1639
|
-
} : X(e) || !isNaN(+e) ? (
|
|
1646
|
+
} : X(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Na.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
|
|
1640
1647
|
y: 0,
|
|
1641
|
-
d: y(
|
|
1642
|
-
h: y(
|
|
1643
|
-
m: y(
|
|
1644
|
-
s: y(
|
|
1645
|
-
ms: y(
|
|
1648
|
+
d: y(s[H]) * n,
|
|
1649
|
+
h: y(s[O]) * n,
|
|
1650
|
+
m: y(s[I]) * n,
|
|
1651
|
+
s: y(s[Q]) * n,
|
|
1652
|
+
ms: y(yt(s[ie] * 1e3)) * n
|
|
1646
1653
|
// the millisecond decimal point is included in the match
|
|
1647
|
-
}) : (
|
|
1648
|
-
y: ne(
|
|
1649
|
-
M: ne(
|
|
1650
|
-
w: ne(
|
|
1651
|
-
d: ne(
|
|
1652
|
-
h: ne(
|
|
1653
|
-
m: ne(
|
|
1654
|
-
s: ne(
|
|
1655
|
-
}) :
|
|
1656
|
-
k(
|
|
1657
|
-
k(
|
|
1658
|
-
),
|
|
1659
|
-
}
|
|
1660
|
-
U.fn =
|
|
1661
|
-
U.invalid =
|
|
1654
|
+
}) : (s = Wa.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
|
|
1655
|
+
y: ne(s[2], n),
|
|
1656
|
+
M: ne(s[3], n),
|
|
1657
|
+
w: ne(s[4], n),
|
|
1658
|
+
d: ne(s[5], n),
|
|
1659
|
+
h: ne(s[6], n),
|
|
1660
|
+
m: ne(s[7], n),
|
|
1661
|
+
s: ne(s[8], n)
|
|
1662
|
+
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (i = Ca(
|
|
1663
|
+
k(r.from),
|
|
1664
|
+
k(r.to)
|
|
1665
|
+
), r = {}, r.ms = i.milliseconds, r.M = i.months), a = new rt(r), Ee(e) && g(e, "_locale") && (a._locale = e._locale), Ee(e) && g(e, "_isValid") && (a._isValid = e._isValid), a;
|
|
1666
|
+
}
|
|
1667
|
+
U.fn = rt.prototype;
|
|
1668
|
+
U.invalid = wa;
|
|
1662
1669
|
function ne(e, t) {
|
|
1663
|
-
var
|
|
1664
|
-
return (isNaN(
|
|
1670
|
+
var r = e && parseFloat(e.replace(",", "."));
|
|
1671
|
+
return (isNaN(r) ? 0 : r) * t;
|
|
1665
1672
|
}
|
|
1666
|
-
function
|
|
1667
|
-
var
|
|
1668
|
-
return
|
|
1673
|
+
function Xt(e, t) {
|
|
1674
|
+
var r = {};
|
|
1675
|
+
return r.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(r.months, "M").isAfter(t) && --r.months, r.milliseconds = +t - +e.clone().add(r.months, "M"), r;
|
|
1669
1676
|
}
|
|
1670
|
-
function
|
|
1671
|
-
var
|
|
1672
|
-
return e.isValid() && t.isValid() ? (t =
|
|
1677
|
+
function Ca(e, t) {
|
|
1678
|
+
var r;
|
|
1679
|
+
return e.isValid() && t.isValid() ? (t = Et(t, e), e.isBefore(t) ? r = Xt(e, t) : (r = Xt(t, e), r.milliseconds = -r.milliseconds, r.months = -r.months), r) : { milliseconds: 0, months: 0 };
|
|
1673
1680
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return function(
|
|
1681
|
+
function Cr(e, t) {
|
|
1682
|
+
return function(r, s) {
|
|
1676
1683
|
var n, a;
|
|
1677
|
-
return
|
|
1684
|
+
return s !== null && !isNaN(+s) && (lr(
|
|
1678
1685
|
t,
|
|
1679
1686
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
1680
|
-
), a =
|
|
1687
|
+
), a = r, r = s, s = a), n = U(r, s), Rr(this, n, e), this;
|
|
1681
1688
|
};
|
|
1682
1689
|
}
|
|
1683
|
-
function
|
|
1684
|
-
var n = t._milliseconds, a =
|
|
1685
|
-
e.isValid() && (
|
|
1690
|
+
function Rr(e, t, r, s) {
|
|
1691
|
+
var n = t._milliseconds, a = yt(t._days), i = yt(t._months);
|
|
1692
|
+
e.isValid() && (s = s ?? !0, i && wr(e, Ye(e, "Month") + i * r), a && yr(e, "Date", Ye(e, "Date") + a * r), n && e._d.setTime(e._d.valueOf() + n * r), s && d.updateOffset(e, a || i));
|
|
1686
1693
|
}
|
|
1687
|
-
var
|
|
1688
|
-
function
|
|
1694
|
+
var Ra = Cr(1, "add"), Aa = Cr(-1, "subtract");
|
|
1695
|
+
function Ar(e) {
|
|
1689
1696
|
return typeof e == "string" || e instanceof String;
|
|
1690
1697
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return F(e) || xe(e) ||
|
|
1698
|
+
function La(e) {
|
|
1699
|
+
return F(e) || xe(e) || Ar(e) || X(e) || Ea(e) || Ia(e) || e === null || e === void 0;
|
|
1693
1700
|
}
|
|
1694
|
-
function
|
|
1695
|
-
var t = oe(e) && !
|
|
1701
|
+
function Ia(e) {
|
|
1702
|
+
var t = oe(e) && !kt(e), r = !1, s = [
|
|
1696
1703
|
"years",
|
|
1697
1704
|
"year",
|
|
1698
1705
|
"y",
|
|
@@ -1717,19 +1724,19 @@ function Wa(e) {
|
|
|
1717
1724
|
"milliseconds",
|
|
1718
1725
|
"millisecond",
|
|
1719
1726
|
"ms"
|
|
1720
|
-
], n, a, i =
|
|
1727
|
+
], n, a, i = s.length;
|
|
1721
1728
|
for (n = 0; n < i; n += 1)
|
|
1722
|
-
a =
|
|
1723
|
-
return t &&
|
|
1729
|
+
a = s[n], r = r || g(e, a);
|
|
1730
|
+
return t && r;
|
|
1724
1731
|
}
|
|
1725
|
-
function
|
|
1726
|
-
var t = E(e),
|
|
1727
|
-
return t && (
|
|
1728
|
-
return !X(
|
|
1729
|
-
}).length === 0), t &&
|
|
1732
|
+
function Ea(e) {
|
|
1733
|
+
var t = E(e), r = !1;
|
|
1734
|
+
return t && (r = e.filter(function(s) {
|
|
1735
|
+
return !X(s) && Ar(e);
|
|
1736
|
+
}).length === 0), t && r;
|
|
1730
1737
|
}
|
|
1731
|
-
function
|
|
1732
|
-
var t = oe(e) && !
|
|
1738
|
+
function Fa(e) {
|
|
1739
|
+
var t = oe(e) && !kt(e), r = !1, s = [
|
|
1733
1740
|
"sameDay",
|
|
1734
1741
|
"nextDay",
|
|
1735
1742
|
"lastDay",
|
|
@@ -1737,183 +1744,183 @@ function Aa(e) {
|
|
|
1737
1744
|
"lastWeek",
|
|
1738
1745
|
"sameElse"
|
|
1739
1746
|
], n, a;
|
|
1740
|
-
for (n = 0; n <
|
|
1741
|
-
a =
|
|
1742
|
-
return t &&
|
|
1747
|
+
for (n = 0; n < s.length; n += 1)
|
|
1748
|
+
a = s[n], r = r || g(e, a);
|
|
1749
|
+
return t && r;
|
|
1743
1750
|
}
|
|
1744
|
-
function
|
|
1745
|
-
var
|
|
1746
|
-
return
|
|
1751
|
+
function Ua(e, t) {
|
|
1752
|
+
var r = e.diff(t, "days", !0);
|
|
1753
|
+
return r < -6 ? "sameElse" : r < -1 ? "lastWeek" : r < 0 ? "lastDay" : r < 1 ? "sameDay" : r < 2 ? "nextDay" : r < 7 ? "nextWeek" : "sameElse";
|
|
1747
1754
|
}
|
|
1748
|
-
function
|
|
1749
|
-
arguments.length === 1 && (arguments[0] ?
|
|
1750
|
-
var
|
|
1755
|
+
function Ha(e, t) {
|
|
1756
|
+
arguments.length === 1 && (arguments[0] ? La(arguments[0]) ? (e = arguments[0], t = void 0) : Fa(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
1757
|
+
var r = e || k(), s = Et(r, this).startOf("day"), n = d.calendarFormat(this, s) || "sameElse", a = t && (z(t[n]) ? t[n].call(this, r) : t[n]);
|
|
1751
1758
|
return this.format(
|
|
1752
|
-
a || this.localeData().calendar(n, this, k(
|
|
1759
|
+
a || this.localeData().calendar(n, this, k(r))
|
|
1753
1760
|
);
|
|
1754
1761
|
}
|
|
1755
|
-
function
|
|
1762
|
+
function Va() {
|
|
1756
1763
|
return new Pe(this);
|
|
1757
1764
|
}
|
|
1758
|
-
function
|
|
1759
|
-
var
|
|
1760
|
-
return this.isValid() &&
|
|
1765
|
+
function Ga(e, t) {
|
|
1766
|
+
var r = F(e) ? e : k(e);
|
|
1767
|
+
return this.isValid() && r.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1761
1768
|
}
|
|
1762
|
-
function
|
|
1763
|
-
var
|
|
1764
|
-
return this.isValid() &&
|
|
1769
|
+
function ja(e, t) {
|
|
1770
|
+
var r = F(e) ? e : k(e);
|
|
1771
|
+
return this.isValid() && r.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : !1;
|
|
1765
1772
|
}
|
|
1766
|
-
function
|
|
1773
|
+
function za(e, t, r, s) {
|
|
1767
1774
|
var n = F(e) ? e : k(e), a = F(t) ? t : k(t);
|
|
1768
|
-
return this.isValid() && n.isValid() && a.isValid() ? (
|
|
1775
|
+
return this.isValid() && n.isValid() && a.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(n, r) : !this.isBefore(n, r)) && (s[1] === ")" ? this.isBefore(a, r) : !this.isAfter(a, r))) : !1;
|
|
1769
1776
|
}
|
|
1770
|
-
function
|
|
1771
|
-
var
|
|
1772
|
-
return this.isValid() &&
|
|
1777
|
+
function Za(e, t) {
|
|
1778
|
+
var r = F(e) ? e : k(e), s;
|
|
1779
|
+
return this.isValid() && r.isValid() ? (t = A(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (s = r.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
1773
1780
|
}
|
|
1774
|
-
function
|
|
1781
|
+
function Ba(e, t) {
|
|
1775
1782
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
1776
1783
|
}
|
|
1777
|
-
function
|
|
1784
|
+
function qa(e, t) {
|
|
1778
1785
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
1779
1786
|
}
|
|
1780
|
-
function
|
|
1781
|
-
var
|
|
1787
|
+
function Qa(e, t, r) {
|
|
1788
|
+
var s, n, a;
|
|
1782
1789
|
if (!this.isValid())
|
|
1783
1790
|
return NaN;
|
|
1784
|
-
if (
|
|
1791
|
+
if (s = Et(e, this), !s.isValid())
|
|
1785
1792
|
return NaN;
|
|
1786
|
-
switch (n = (
|
|
1793
|
+
switch (n = (s.utcOffset() - this.utcOffset()) * 6e4, t = A(t), t) {
|
|
1787
1794
|
case "year":
|
|
1788
|
-
a =
|
|
1795
|
+
a = Fe(this, s) / 12;
|
|
1789
1796
|
break;
|
|
1790
1797
|
case "month":
|
|
1791
|
-
a =
|
|
1798
|
+
a = Fe(this, s);
|
|
1792
1799
|
break;
|
|
1793
1800
|
case "quarter":
|
|
1794
|
-
a =
|
|
1801
|
+
a = Fe(this, s) / 3;
|
|
1795
1802
|
break;
|
|
1796
1803
|
case "second":
|
|
1797
|
-
a = (this -
|
|
1804
|
+
a = (this - s) / 1e3;
|
|
1798
1805
|
break;
|
|
1799
1806
|
// 1000
|
|
1800
1807
|
case "minute":
|
|
1801
|
-
a = (this -
|
|
1808
|
+
a = (this - s) / 6e4;
|
|
1802
1809
|
break;
|
|
1803
1810
|
// 1000 * 60
|
|
1804
1811
|
case "hour":
|
|
1805
|
-
a = (this -
|
|
1812
|
+
a = (this - s) / 36e5;
|
|
1806
1813
|
break;
|
|
1807
1814
|
// 1000 * 60 * 60
|
|
1808
1815
|
case "day":
|
|
1809
|
-
a = (this -
|
|
1816
|
+
a = (this - s - n) / 864e5;
|
|
1810
1817
|
break;
|
|
1811
1818
|
// 1000 * 60 * 60 * 24, negate dst
|
|
1812
1819
|
case "week":
|
|
1813
|
-
a = (this -
|
|
1820
|
+
a = (this - s - n) / 6048e5;
|
|
1814
1821
|
break;
|
|
1815
1822
|
// 1000 * 60 * 60 * 24 * 7, negate dst
|
|
1816
1823
|
default:
|
|
1817
|
-
a = this -
|
|
1824
|
+
a = this - s;
|
|
1818
1825
|
}
|
|
1819
|
-
return
|
|
1826
|
+
return r ? a : C(a);
|
|
1820
1827
|
}
|
|
1821
|
-
function
|
|
1828
|
+
function Fe(e, t) {
|
|
1822
1829
|
if (e.date() < t.date())
|
|
1823
|
-
return -
|
|
1824
|
-
var
|
|
1825
|
-
return t -
|
|
1830
|
+
return -Fe(t, e);
|
|
1831
|
+
var r = (t.year() - e.year()) * 12 + (t.month() - e.month()), s = e.clone().add(r, "months"), n, a;
|
|
1832
|
+
return t - s < 0 ? (n = e.clone().add(r - 1, "months"), a = (t - s) / (s - n)) : (n = e.clone().add(r + 1, "months"), a = (t - s) / (n - s)), -(r + a) || 0;
|
|
1826
1833
|
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
function
|
|
1834
|
+
d.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
1835
|
+
d.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1836
|
+
function Ja() {
|
|
1830
1837
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
1831
1838
|
}
|
|
1832
|
-
function
|
|
1839
|
+
function Ka(e) {
|
|
1833
1840
|
if (!this.isValid())
|
|
1834
1841
|
return null;
|
|
1835
|
-
var t = e !== !0,
|
|
1836
|
-
return
|
|
1837
|
-
|
|
1842
|
+
var t = e !== !0, r = t ? this.clone().utc() : this;
|
|
1843
|
+
return r.year() < 0 || r.year() > 9999 ? Ie(
|
|
1844
|
+
r,
|
|
1838
1845
|
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
1839
|
-
) : z(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z",
|
|
1840
|
-
|
|
1846
|
+
) : z(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Ie(r, "Z")) : Ie(
|
|
1847
|
+
r,
|
|
1841
1848
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
1842
1849
|
);
|
|
1843
1850
|
}
|
|
1844
|
-
function
|
|
1851
|
+
function Xa() {
|
|
1845
1852
|
if (!this.isValid())
|
|
1846
1853
|
return "moment.invalid(/* " + this._i + " */)";
|
|
1847
|
-
var e = "moment", t = "",
|
|
1848
|
-
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"),
|
|
1854
|
+
var e = "moment", t = "", r, s, n, a;
|
|
1855
|
+
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", n = "-MM-DD[T]HH:mm:ss.SSS", a = t + '[")]', this.format(r + s + n + a);
|
|
1849
1856
|
}
|
|
1850
|
-
function
|
|
1851
|
-
e || (e = this.isUtc() ?
|
|
1852
|
-
var t =
|
|
1857
|
+
function $a(e) {
|
|
1858
|
+
e || (e = this.isUtc() ? d.defaultFormatUtc : d.defaultFormat);
|
|
1859
|
+
var t = Ie(this, e);
|
|
1853
1860
|
return this.localeData().postformat(t);
|
|
1854
1861
|
}
|
|
1855
|
-
function
|
|
1862
|
+
function ei(e, t) {
|
|
1856
1863
|
return this.isValid() && (F(e) && e.isValid() || k(e).isValid()) ? U({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1857
1864
|
}
|
|
1858
|
-
function
|
|
1865
|
+
function ti(e) {
|
|
1859
1866
|
return this.from(k(), e);
|
|
1860
1867
|
}
|
|
1861
|
-
function
|
|
1868
|
+
function ri(e, t) {
|
|
1862
1869
|
return this.isValid() && (F(e) && e.isValid() || k(e).isValid()) ? U({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1863
1870
|
}
|
|
1864
|
-
function
|
|
1871
|
+
function si(e) {
|
|
1865
1872
|
return this.to(k(), e);
|
|
1866
1873
|
}
|
|
1867
|
-
function
|
|
1874
|
+
function Lr(e) {
|
|
1868
1875
|
var t;
|
|
1869
1876
|
return e === void 0 ? this._locale._abbr : (t = $(e), t != null && (this._locale = t), this);
|
|
1870
1877
|
}
|
|
1871
|
-
var
|
|
1878
|
+
var Ir = R(
|
|
1872
1879
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
1873
1880
|
function(e) {
|
|
1874
1881
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
1875
1882
|
}
|
|
1876
1883
|
);
|
|
1877
|
-
function
|
|
1884
|
+
function Er() {
|
|
1878
1885
|
return this._locale;
|
|
1879
1886
|
}
|
|
1880
|
-
var
|
|
1887
|
+
var je = 1e3, fe = 60 * je, ze = 60 * fe, Fr = (365 * 400 + 97) * 24 * ze;
|
|
1881
1888
|
function me(e, t) {
|
|
1882
1889
|
return (e % t + t) % t;
|
|
1883
1890
|
}
|
|
1884
|
-
function
|
|
1885
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t,
|
|
1891
|
+
function Ur(e, t, r) {
|
|
1892
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, r) - Fr : new Date(e, t, r).valueOf();
|
|
1886
1893
|
}
|
|
1887
|
-
function
|
|
1888
|
-
return e < 100 && e >= 0 ? Date.UTC(e + 400, t,
|
|
1894
|
+
function Hr(e, t, r) {
|
|
1895
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - Fr : Date.UTC(e, t, r);
|
|
1889
1896
|
}
|
|
1890
|
-
function
|
|
1891
|
-
var t,
|
|
1892
|
-
if (e =
|
|
1897
|
+
function ni(e) {
|
|
1898
|
+
var t, r;
|
|
1899
|
+
if (e = A(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1893
1900
|
return this;
|
|
1894
|
-
switch (
|
|
1901
|
+
switch (r = this._isUTC ? Hr : Ur, e) {
|
|
1895
1902
|
case "year":
|
|
1896
|
-
t =
|
|
1903
|
+
t = r(this.year(), 0, 1);
|
|
1897
1904
|
break;
|
|
1898
1905
|
case "quarter":
|
|
1899
|
-
t =
|
|
1906
|
+
t = r(
|
|
1900
1907
|
this.year(),
|
|
1901
1908
|
this.month() - this.month() % 3,
|
|
1902
1909
|
1
|
|
1903
1910
|
);
|
|
1904
1911
|
break;
|
|
1905
1912
|
case "month":
|
|
1906
|
-
t =
|
|
1913
|
+
t = r(this.year(), this.month(), 1);
|
|
1907
1914
|
break;
|
|
1908
1915
|
case "week":
|
|
1909
|
-
t =
|
|
1916
|
+
t = r(
|
|
1910
1917
|
this.year(),
|
|
1911
1918
|
this.month(),
|
|
1912
1919
|
this.date() - this.weekday()
|
|
1913
1920
|
);
|
|
1914
1921
|
break;
|
|
1915
1922
|
case "isoWeek":
|
|
1916
|
-
t =
|
|
1923
|
+
t = r(
|
|
1917
1924
|
this.year(),
|
|
1918
1925
|
this.month(),
|
|
1919
1926
|
this.date() - (this.isoWeekday() - 1)
|
|
@@ -1921,50 +1928,50 @@ function $a(e) {
|
|
|
1921
1928
|
break;
|
|
1922
1929
|
case "day":
|
|
1923
1930
|
case "date":
|
|
1924
|
-
t =
|
|
1931
|
+
t = r(this.year(), this.month(), this.date());
|
|
1925
1932
|
break;
|
|
1926
1933
|
case "hour":
|
|
1927
1934
|
t = this._d.valueOf(), t -= me(
|
|
1928
1935
|
t + (this._isUTC ? 0 : this.utcOffset() * fe),
|
|
1929
|
-
|
|
1936
|
+
ze
|
|
1930
1937
|
);
|
|
1931
1938
|
break;
|
|
1932
1939
|
case "minute":
|
|
1933
1940
|
t = this._d.valueOf(), t -= me(t, fe);
|
|
1934
1941
|
break;
|
|
1935
1942
|
case "second":
|
|
1936
|
-
t = this._d.valueOf(), t -= me(t,
|
|
1943
|
+
t = this._d.valueOf(), t -= me(t, je);
|
|
1937
1944
|
break;
|
|
1938
1945
|
}
|
|
1939
|
-
return this._d.setTime(t),
|
|
1946
|
+
return this._d.setTime(t), d.updateOffset(this, !0), this;
|
|
1940
1947
|
}
|
|
1941
|
-
function
|
|
1942
|
-
var t,
|
|
1943
|
-
if (e =
|
|
1948
|
+
function ai(e) {
|
|
1949
|
+
var t, r;
|
|
1950
|
+
if (e = A(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1944
1951
|
return this;
|
|
1945
|
-
switch (
|
|
1952
|
+
switch (r = this._isUTC ? Hr : Ur, e) {
|
|
1946
1953
|
case "year":
|
|
1947
|
-
t =
|
|
1954
|
+
t = r(this.year() + 1, 0, 1) - 1;
|
|
1948
1955
|
break;
|
|
1949
1956
|
case "quarter":
|
|
1950
|
-
t =
|
|
1957
|
+
t = r(
|
|
1951
1958
|
this.year(),
|
|
1952
1959
|
this.month() - this.month() % 3 + 3,
|
|
1953
1960
|
1
|
|
1954
1961
|
) - 1;
|
|
1955
1962
|
break;
|
|
1956
1963
|
case "month":
|
|
1957
|
-
t =
|
|
1964
|
+
t = r(this.year(), this.month() + 1, 1) - 1;
|
|
1958
1965
|
break;
|
|
1959
1966
|
case "week":
|
|
1960
|
-
t =
|
|
1967
|
+
t = r(
|
|
1961
1968
|
this.year(),
|
|
1962
1969
|
this.month(),
|
|
1963
1970
|
this.date() - this.weekday() + 7
|
|
1964
1971
|
) - 1;
|
|
1965
1972
|
break;
|
|
1966
1973
|
case "isoWeek":
|
|
1967
|
-
t =
|
|
1974
|
+
t = r(
|
|
1968
1975
|
this.year(),
|
|
1969
1976
|
this.month(),
|
|
1970
1977
|
this.date() - (this.isoWeekday() - 1) + 7
|
|
@@ -1972,33 +1979,33 @@ function ei(e) {
|
|
|
1972
1979
|
break;
|
|
1973
1980
|
case "day":
|
|
1974
1981
|
case "date":
|
|
1975
|
-
t =
|
|
1982
|
+
t = r(this.year(), this.month(), this.date() + 1) - 1;
|
|
1976
1983
|
break;
|
|
1977
1984
|
case "hour":
|
|
1978
|
-
t = this._d.valueOf(), t +=
|
|
1985
|
+
t = this._d.valueOf(), t += ze - me(
|
|
1979
1986
|
t + (this._isUTC ? 0 : this.utcOffset() * fe),
|
|
1980
|
-
|
|
1987
|
+
ze
|
|
1981
1988
|
) - 1;
|
|
1982
1989
|
break;
|
|
1983
1990
|
case "minute":
|
|
1984
1991
|
t = this._d.valueOf(), t += fe - me(t, fe) - 1;
|
|
1985
1992
|
break;
|
|
1986
1993
|
case "second":
|
|
1987
|
-
t = this._d.valueOf(), t +=
|
|
1994
|
+
t = this._d.valueOf(), t += je - me(t, je) - 1;
|
|
1988
1995
|
break;
|
|
1989
1996
|
}
|
|
1990
|
-
return this._d.setTime(t),
|
|
1997
|
+
return this._d.setTime(t), d.updateOffset(this, !0), this;
|
|
1991
1998
|
}
|
|
1992
|
-
function
|
|
1999
|
+
function ii() {
|
|
1993
2000
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
1994
2001
|
}
|
|
1995
|
-
function
|
|
2002
|
+
function oi() {
|
|
1996
2003
|
return Math.floor(this.valueOf() / 1e3);
|
|
1997
2004
|
}
|
|
1998
|
-
function
|
|
2005
|
+
function li() {
|
|
1999
2006
|
return new Date(this.valueOf());
|
|
2000
2007
|
}
|
|
2001
|
-
function
|
|
2008
|
+
function ui() {
|
|
2002
2009
|
var e = this;
|
|
2003
2010
|
return [
|
|
2004
2011
|
e.year(),
|
|
@@ -2010,7 +2017,7 @@ function ni() {
|
|
|
2010
2017
|
e.millisecond()
|
|
2011
2018
|
];
|
|
2012
2019
|
}
|
|
2013
|
-
function
|
|
2020
|
+
function di() {
|
|
2014
2021
|
var e = this;
|
|
2015
2022
|
return {
|
|
2016
2023
|
years: e.year(),
|
|
@@ -2022,19 +2029,19 @@ function ai() {
|
|
|
2022
2029
|
milliseconds: e.milliseconds()
|
|
2023
2030
|
};
|
|
2024
2031
|
}
|
|
2025
|
-
function
|
|
2032
|
+
function ci() {
|
|
2026
2033
|
return this.isValid() ? this.toISOString() : null;
|
|
2027
2034
|
}
|
|
2028
|
-
function
|
|
2029
|
-
return
|
|
2035
|
+
function hi() {
|
|
2036
|
+
return St(this);
|
|
2030
2037
|
}
|
|
2031
|
-
function
|
|
2038
|
+
function fi() {
|
|
2032
2039
|
return te({}, m(this));
|
|
2033
2040
|
}
|
|
2034
|
-
function
|
|
2041
|
+
function mi() {
|
|
2035
2042
|
return m(this).overflow;
|
|
2036
2043
|
}
|
|
2037
|
-
function
|
|
2044
|
+
function yi() {
|
|
2038
2045
|
return {
|
|
2039
2046
|
input: this._i,
|
|
2040
2047
|
format: this._f,
|
|
@@ -2043,173 +2050,173 @@ function di() {
|
|
|
2043
2050
|
strict: this._strict
|
|
2044
2051
|
};
|
|
2045
2052
|
}
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2053
|
+
h("N", 0, 0, "eraAbbr");
|
|
2054
|
+
h("NN", 0, 0, "eraAbbr");
|
|
2055
|
+
h("NNN", 0, 0, "eraAbbr");
|
|
2056
|
+
h("NNNN", 0, 0, "eraName");
|
|
2057
|
+
h("NNNNN", 0, 0, "eraNarrow");
|
|
2058
|
+
h("y", ["y", 1], "yo", "eraYear");
|
|
2059
|
+
h("y", ["yy", 2], 0, "eraYear");
|
|
2060
|
+
h("y", ["yyy", 3], 0, "eraYear");
|
|
2061
|
+
h("y", ["yyyy", 4], 0, "eraYear");
|
|
2062
|
+
c("N", Ft);
|
|
2063
|
+
c("NN", Ft);
|
|
2064
|
+
c("NNN", Ft);
|
|
2065
|
+
c("NNNN", Oi);
|
|
2066
|
+
c("NNNNN", bi);
|
|
2060
2067
|
p(
|
|
2061
2068
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
2062
|
-
function(e, t,
|
|
2063
|
-
var n =
|
|
2064
|
-
n ? m(
|
|
2069
|
+
function(e, t, r, s) {
|
|
2070
|
+
var n = r._locale.erasParse(e, s, r._strict);
|
|
2071
|
+
n ? m(r).era = n : m(r).invalidEra = e;
|
|
2065
2072
|
}
|
|
2066
2073
|
);
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2074
|
+
c("y", ge);
|
|
2075
|
+
c("yy", ge);
|
|
2076
|
+
c("yyy", ge);
|
|
2077
|
+
c("yyyy", ge);
|
|
2078
|
+
c("yo", Ti);
|
|
2072
2079
|
p(["y", "yy", "yyy", "yyyy"], T);
|
|
2073
|
-
p(["yo"], function(e, t,
|
|
2080
|
+
p(["yo"], function(e, t, r, s) {
|
|
2074
2081
|
var n;
|
|
2075
|
-
|
|
2082
|
+
r._locale._eraYearOrdinalRegex && (n = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[T] = r._locale.eraYearOrdinalParse(e, n) : t[T] = parseInt(e, 10);
|
|
2076
2083
|
});
|
|
2077
|
-
function
|
|
2078
|
-
var
|
|
2079
|
-
for (
|
|
2080
|
-
switch (typeof a[
|
|
2084
|
+
function _i(e, t) {
|
|
2085
|
+
var r, s, n, a = this._eras || $("en")._eras;
|
|
2086
|
+
for (r = 0, s = a.length; r < s; ++r) {
|
|
2087
|
+
switch (typeof a[r].since) {
|
|
2081
2088
|
case "string":
|
|
2082
|
-
n =
|
|
2089
|
+
n = d(a[r].since).startOf("day"), a[r].since = n.valueOf();
|
|
2083
2090
|
break;
|
|
2084
2091
|
}
|
|
2085
|
-
switch (typeof a[
|
|
2092
|
+
switch (typeof a[r].until) {
|
|
2086
2093
|
case "undefined":
|
|
2087
|
-
a[
|
|
2094
|
+
a[r].until = 1 / 0;
|
|
2088
2095
|
break;
|
|
2089
2096
|
case "string":
|
|
2090
|
-
n =
|
|
2097
|
+
n = d(a[r].until).startOf("day").valueOf(), a[r].until = n.valueOf();
|
|
2091
2098
|
break;
|
|
2092
2099
|
}
|
|
2093
2100
|
}
|
|
2094
2101
|
return a;
|
|
2095
2102
|
}
|
|
2096
|
-
function
|
|
2097
|
-
var
|
|
2098
|
-
for (e = e.toUpperCase(),
|
|
2099
|
-
if (i = a[
|
|
2103
|
+
function gi(e, t, r) {
|
|
2104
|
+
var s, n, a = this.eras(), i, l, u;
|
|
2105
|
+
for (e = e.toUpperCase(), s = 0, n = a.length; s < n; ++s)
|
|
2106
|
+
if (i = a[s].name.toUpperCase(), l = a[s].abbr.toUpperCase(), u = a[s].narrow.toUpperCase(), r)
|
|
2100
2107
|
switch (t) {
|
|
2101
2108
|
case "N":
|
|
2102
2109
|
case "NN":
|
|
2103
2110
|
case "NNN":
|
|
2104
2111
|
if (l === e)
|
|
2105
|
-
return a[
|
|
2112
|
+
return a[s];
|
|
2106
2113
|
break;
|
|
2107
2114
|
case "NNNN":
|
|
2108
2115
|
if (i === e)
|
|
2109
|
-
return a[
|
|
2116
|
+
return a[s];
|
|
2110
2117
|
break;
|
|
2111
2118
|
case "NNNNN":
|
|
2112
|
-
if (
|
|
2113
|
-
return a[
|
|
2119
|
+
if (u === e)
|
|
2120
|
+
return a[s];
|
|
2114
2121
|
break;
|
|
2115
2122
|
}
|
|
2116
|
-
else if ([i, l,
|
|
2117
|
-
return a[
|
|
2118
|
-
}
|
|
2119
|
-
function
|
|
2120
|
-
var
|
|
2121
|
-
return t === void 0 ?
|
|
2122
|
-
}
|
|
2123
|
-
function
|
|
2124
|
-
var e, t,
|
|
2125
|
-
for (e = 0, t =
|
|
2126
|
-
if (
|
|
2127
|
-
return
|
|
2123
|
+
else if ([i, l, u].indexOf(e) >= 0)
|
|
2124
|
+
return a[s];
|
|
2125
|
+
}
|
|
2126
|
+
function wi(e, t) {
|
|
2127
|
+
var r = e.since <= e.until ? 1 : -1;
|
|
2128
|
+
return t === void 0 ? d(e.since).year() : d(e.since).year() + (t - e.offset) * r;
|
|
2129
|
+
}
|
|
2130
|
+
function pi() {
|
|
2131
|
+
var e, t, r, s = this.localeData().eras();
|
|
2132
|
+
for (e = 0, t = s.length; e < t; ++e)
|
|
2133
|
+
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
2134
|
+
return s[e].name;
|
|
2128
2135
|
return "";
|
|
2129
2136
|
}
|
|
2130
|
-
function
|
|
2131
|
-
var e, t,
|
|
2132
|
-
for (e = 0, t =
|
|
2133
|
-
if (
|
|
2134
|
-
return
|
|
2137
|
+
function ki() {
|
|
2138
|
+
var e, t, r, s = this.localeData().eras();
|
|
2139
|
+
for (e = 0, t = s.length; e < t; ++e)
|
|
2140
|
+
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
2141
|
+
return s[e].narrow;
|
|
2135
2142
|
return "";
|
|
2136
2143
|
}
|
|
2137
|
-
function
|
|
2138
|
-
var e, t,
|
|
2139
|
-
for (e = 0, t =
|
|
2140
|
-
if (
|
|
2141
|
-
return
|
|
2144
|
+
function Si() {
|
|
2145
|
+
var e, t, r, s = this.localeData().eras();
|
|
2146
|
+
for (e = 0, t = s.length; e < t; ++e)
|
|
2147
|
+
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
2148
|
+
return s[e].abbr;
|
|
2142
2149
|
return "";
|
|
2143
2150
|
}
|
|
2144
|
-
function
|
|
2145
|
-
var e, t,
|
|
2151
|
+
function vi() {
|
|
2152
|
+
var e, t, r, s, n = this.localeData().eras();
|
|
2146
2153
|
for (e = 0, t = n.length; e < t; ++e)
|
|
2147
|
-
if (
|
|
2148
|
-
return (this.year() -
|
|
2154
|
+
if (r = n[e].since <= n[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), n[e].since <= s && s <= n[e].until || n[e].until <= s && s <= n[e].since)
|
|
2155
|
+
return (this.year() - d(n[e].since).year()) * r + n[e].offset;
|
|
2149
2156
|
return this.year();
|
|
2150
2157
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return g(this, "_erasNameRegex") ||
|
|
2158
|
+
function Mi(e) {
|
|
2159
|
+
return g(this, "_erasNameRegex") || Ut.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
2153
2160
|
}
|
|
2154
|
-
function
|
|
2155
|
-
return g(this, "_erasAbbrRegex") ||
|
|
2161
|
+
function Di(e) {
|
|
2162
|
+
return g(this, "_erasAbbrRegex") || Ut.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
2156
2163
|
}
|
|
2157
|
-
function
|
|
2158
|
-
return g(this, "_erasNarrowRegex") ||
|
|
2164
|
+
function Yi(e) {
|
|
2165
|
+
return g(this, "_erasNarrowRegex") || Ut.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
2159
2166
|
}
|
|
2160
|
-
function
|
|
2167
|
+
function Ft(e, t) {
|
|
2161
2168
|
return t.erasAbbrRegex(e);
|
|
2162
2169
|
}
|
|
2163
|
-
function
|
|
2170
|
+
function Oi(e, t) {
|
|
2164
2171
|
return t.erasNameRegex(e);
|
|
2165
2172
|
}
|
|
2166
|
-
function
|
|
2173
|
+
function bi(e, t) {
|
|
2167
2174
|
return t.erasNarrowRegex(e);
|
|
2168
2175
|
}
|
|
2169
|
-
function
|
|
2176
|
+
function Ti(e, t) {
|
|
2170
2177
|
return t._eraYearOrdinalRegex || ge;
|
|
2171
2178
|
}
|
|
2172
|
-
function
|
|
2173
|
-
var e = [], t = [],
|
|
2179
|
+
function Ut() {
|
|
2180
|
+
var e = [], t = [], r = [], s = [], n, a, i, l, u, f = this.eras();
|
|
2174
2181
|
for (n = 0, a = f.length; n < a; ++n)
|
|
2175
|
-
i = J(f[n].name), l = J(f[n].abbr),
|
|
2176
|
-
this._erasRegex = new RegExp("^(" +
|
|
2177
|
-
"^(" +
|
|
2182
|
+
i = J(f[n].name), l = J(f[n].abbr), u = J(f[n].narrow), t.push(i), e.push(l), r.push(u), s.push(i), s.push(l), s.push(u);
|
|
2183
|
+
this._erasRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
2184
|
+
"^(" + r.join("|") + ")",
|
|
2178
2185
|
"i"
|
|
2179
2186
|
);
|
|
2180
2187
|
}
|
|
2181
|
-
|
|
2188
|
+
h(0, ["gg", 2], 0, function() {
|
|
2182
2189
|
return this.weekYear() % 100;
|
|
2183
2190
|
});
|
|
2184
|
-
|
|
2191
|
+
h(0, ["GG", 2], 0, function() {
|
|
2185
2192
|
return this.isoWeekYear() % 100;
|
|
2186
2193
|
});
|
|
2187
|
-
function
|
|
2188
|
-
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2194
|
+
function st(e, t) {
|
|
2195
|
+
h(0, [e, e.length], 0, t);
|
|
2196
|
+
}
|
|
2197
|
+
st("gggg", "weekYear");
|
|
2198
|
+
st("ggggg", "weekYear");
|
|
2199
|
+
st("GGGG", "isoWeekYear");
|
|
2200
|
+
st("GGGGG", "isoWeekYear");
|
|
2201
|
+
c("G", Xe);
|
|
2202
|
+
c("g", Xe);
|
|
2203
|
+
c("GG", S, W);
|
|
2204
|
+
c("gg", S, W);
|
|
2205
|
+
c("GGGG", bt, Ot);
|
|
2206
|
+
c("gggg", bt, Ot);
|
|
2207
|
+
c("GGGGG", Ke, Qe);
|
|
2208
|
+
c("ggggg", Ke, Qe);
|
|
2202
2209
|
We(
|
|
2203
2210
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2204
|
-
function(e, t,
|
|
2205
|
-
t[
|
|
2211
|
+
function(e, t, r, s) {
|
|
2212
|
+
t[s.substr(0, 2)] = y(e);
|
|
2206
2213
|
}
|
|
2207
2214
|
);
|
|
2208
|
-
We(["gg", "GG"], function(e, t,
|
|
2209
|
-
t[
|
|
2215
|
+
We(["gg", "GG"], function(e, t, r, s) {
|
|
2216
|
+
t[s] = d.parseTwoDigitYear(e);
|
|
2210
2217
|
});
|
|
2211
|
-
function
|
|
2212
|
-
return
|
|
2218
|
+
function xi(e) {
|
|
2219
|
+
return Vr.call(
|
|
2213
2220
|
this,
|
|
2214
2221
|
e,
|
|
2215
2222
|
this.week(),
|
|
@@ -2218,8 +2225,8 @@ function Di(e) {
|
|
|
2218
2225
|
this.localeData()._week.doy
|
|
2219
2226
|
);
|
|
2220
2227
|
}
|
|
2221
|
-
function
|
|
2222
|
-
return
|
|
2228
|
+
function Pi(e) {
|
|
2229
|
+
return Vr.call(
|
|
2223
2230
|
this,
|
|
2224
2231
|
e,
|
|
2225
2232
|
this.isoWeek(),
|
|
@@ -2228,293 +2235,293 @@ function Yi(e) {
|
|
|
2228
2235
|
4
|
|
2229
2236
|
);
|
|
2230
2237
|
}
|
|
2231
|
-
function
|
|
2238
|
+
function Ni() {
|
|
2232
2239
|
return K(this.year(), 1, 4);
|
|
2233
2240
|
}
|
|
2234
|
-
function
|
|
2241
|
+
function Wi() {
|
|
2235
2242
|
return K(this.isoWeekYear(), 1, 4);
|
|
2236
2243
|
}
|
|
2237
|
-
function
|
|
2244
|
+
function Ci() {
|
|
2238
2245
|
var e = this.localeData()._week;
|
|
2239
2246
|
return K(this.year(), e.dow, e.doy);
|
|
2240
2247
|
}
|
|
2241
|
-
function
|
|
2248
|
+
function Ri() {
|
|
2242
2249
|
var e = this.localeData()._week;
|
|
2243
2250
|
return K(this.weekYear(), e.dow, e.doy);
|
|
2244
2251
|
}
|
|
2245
|
-
function
|
|
2252
|
+
function Vr(e, t, r, s, n) {
|
|
2246
2253
|
var a;
|
|
2247
|
-
return e == null ? be(this,
|
|
2254
|
+
return e == null ? be(this, s, n).year : (a = K(e, s, n), t > a && (t = a), Ai.call(this, e, t, r, s, n));
|
|
2248
2255
|
}
|
|
2249
|
-
function
|
|
2250
|
-
var a =
|
|
2256
|
+
function Ai(e, t, r, s, n) {
|
|
2257
|
+
var a = Sr(e, t, r, s, n), i = Oe(a.year, 0, a.dayOfYear);
|
|
2251
2258
|
return this.year(i.getUTCFullYear()), this.month(i.getUTCMonth()), this.date(i.getUTCDate()), this;
|
|
2252
2259
|
}
|
|
2253
|
-
|
|
2254
|
-
|
|
2260
|
+
h("Q", 0, "Qo", "quarter");
|
|
2261
|
+
c("Q", dr);
|
|
2255
2262
|
p("Q", function(e, t) {
|
|
2256
2263
|
t[q] = (y(e) - 1) * 3;
|
|
2257
2264
|
});
|
|
2258
|
-
function
|
|
2265
|
+
function Li(e) {
|
|
2259
2266
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2260
2267
|
}
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2268
|
+
h("D", ["DD", 2], "Do", "date");
|
|
2269
|
+
c("D", S, we);
|
|
2270
|
+
c("DD", S, W);
|
|
2271
|
+
c("Do", function(e, t) {
|
|
2265
2272
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2266
2273
|
});
|
|
2267
2274
|
p(["D", "DD"], H);
|
|
2268
2275
|
p("Do", function(e, t) {
|
|
2269
2276
|
t[H] = y(e.match(S)[0]);
|
|
2270
2277
|
});
|
|
2271
|
-
var
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
p(["DDD", "DDDD"], function(e, t,
|
|
2276
|
-
|
|
2278
|
+
var Gr = pe("Date", !0);
|
|
2279
|
+
h("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2280
|
+
c("DDD", Je);
|
|
2281
|
+
c("DDDD", cr);
|
|
2282
|
+
p(["DDD", "DDDD"], function(e, t, r) {
|
|
2283
|
+
r._dayOfYear = y(e);
|
|
2277
2284
|
});
|
|
2278
|
-
function
|
|
2285
|
+
function Ii(e) {
|
|
2279
2286
|
var t = Math.round(
|
|
2280
2287
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
2281
2288
|
) + 1;
|
|
2282
2289
|
return e == null ? t : this.add(e - t, "d");
|
|
2283
2290
|
}
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2291
|
+
h("m", ["mm", 2], 0, "minute");
|
|
2292
|
+
c("m", S, Tt);
|
|
2293
|
+
c("mm", S, W);
|
|
2287
2294
|
p(["m", "mm"], I);
|
|
2288
|
-
var
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2295
|
+
var Ei = pe("Minutes", !1);
|
|
2296
|
+
h("s", ["ss", 2], 0, "second");
|
|
2297
|
+
c("s", S, Tt);
|
|
2298
|
+
c("ss", S, W);
|
|
2292
2299
|
p(["s", "ss"], Q);
|
|
2293
|
-
var
|
|
2294
|
-
|
|
2300
|
+
var Fi = pe("Seconds", !1);
|
|
2301
|
+
h("S", 0, 0, function() {
|
|
2295
2302
|
return ~~(this.millisecond() / 100);
|
|
2296
2303
|
});
|
|
2297
|
-
|
|
2304
|
+
h(0, ["SS", 2], 0, function() {
|
|
2298
2305
|
return ~~(this.millisecond() / 10);
|
|
2299
2306
|
});
|
|
2300
|
-
|
|
2301
|
-
|
|
2307
|
+
h(0, ["SSS", 3], 0, "millisecond");
|
|
2308
|
+
h(0, ["SSSS", 4], 0, function() {
|
|
2302
2309
|
return this.millisecond() * 10;
|
|
2303
2310
|
});
|
|
2304
|
-
|
|
2311
|
+
h(0, ["SSSSS", 5], 0, function() {
|
|
2305
2312
|
return this.millisecond() * 100;
|
|
2306
2313
|
});
|
|
2307
|
-
|
|
2314
|
+
h(0, ["SSSSSS", 6], 0, function() {
|
|
2308
2315
|
return this.millisecond() * 1e3;
|
|
2309
2316
|
});
|
|
2310
|
-
|
|
2317
|
+
h(0, ["SSSSSSS", 7], 0, function() {
|
|
2311
2318
|
return this.millisecond() * 1e4;
|
|
2312
2319
|
});
|
|
2313
|
-
|
|
2320
|
+
h(0, ["SSSSSSSS", 8], 0, function() {
|
|
2314
2321
|
return this.millisecond() * 1e5;
|
|
2315
2322
|
});
|
|
2316
|
-
|
|
2323
|
+
h(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2317
2324
|
return this.millisecond() * 1e6;
|
|
2318
2325
|
});
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
var
|
|
2323
|
-
for (
|
|
2324
|
-
|
|
2325
|
-
function
|
|
2326
|
+
c("S", Je, dr);
|
|
2327
|
+
c("SS", Je, W);
|
|
2328
|
+
c("SSS", Je, cr);
|
|
2329
|
+
var re, jr;
|
|
2330
|
+
for (re = "SSSS"; re.length <= 9; re += "S")
|
|
2331
|
+
c(re, ge);
|
|
2332
|
+
function Ui(e, t) {
|
|
2326
2333
|
t[ie] = y(("0." + e) * 1e3);
|
|
2327
2334
|
}
|
|
2328
|
-
for (
|
|
2329
|
-
p(
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
function
|
|
2335
|
+
for (re = "S"; re.length <= 9; re += "S")
|
|
2336
|
+
p(re, Ui);
|
|
2337
|
+
jr = pe("Milliseconds", !1);
|
|
2338
|
+
h("z", 0, 0, "zoneAbbr");
|
|
2339
|
+
h("zz", 0, 0, "zoneName");
|
|
2340
|
+
function Hi() {
|
|
2334
2341
|
return this._isUTC ? "UTC" : "";
|
|
2335
2342
|
}
|
|
2336
|
-
function
|
|
2343
|
+
function Vi() {
|
|
2337
2344
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2338
2345
|
}
|
|
2339
2346
|
var o = Pe.prototype;
|
|
2340
|
-
o.add =
|
|
2341
|
-
o.calendar =
|
|
2342
|
-
o.clone =
|
|
2343
|
-
o.diff =
|
|
2344
|
-
o.endOf =
|
|
2345
|
-
o.format =
|
|
2346
|
-
o.from =
|
|
2347
|
-
o.fromNow =
|
|
2348
|
-
o.to =
|
|
2349
|
-
o.toNow =
|
|
2350
|
-
o.get =
|
|
2351
|
-
o.invalidAt =
|
|
2352
|
-
o.isAfter =
|
|
2353
|
-
o.isBefore =
|
|
2354
|
-
o.isBetween =
|
|
2355
|
-
o.isSame =
|
|
2356
|
-
o.isSameOrAfter =
|
|
2357
|
-
o.isSameOrBefore =
|
|
2358
|
-
o.isValid =
|
|
2359
|
-
o.lang =
|
|
2360
|
-
o.locale =
|
|
2361
|
-
o.localeData =
|
|
2362
|
-
o.max =
|
|
2363
|
-
o.min =
|
|
2364
|
-
o.parsingFlags =
|
|
2365
|
-
o.set =
|
|
2366
|
-
o.startOf =
|
|
2367
|
-
o.subtract =
|
|
2368
|
-
o.toArray =
|
|
2369
|
-
o.toObject =
|
|
2370
|
-
o.toDate =
|
|
2371
|
-
o.toISOString =
|
|
2372
|
-
o.inspect =
|
|
2347
|
+
o.add = Ra;
|
|
2348
|
+
o.calendar = Ha;
|
|
2349
|
+
o.clone = Va;
|
|
2350
|
+
o.diff = Qa;
|
|
2351
|
+
o.endOf = ai;
|
|
2352
|
+
o.format = $a;
|
|
2353
|
+
o.from = ei;
|
|
2354
|
+
o.fromNow = ti;
|
|
2355
|
+
o.to = ri;
|
|
2356
|
+
o.toNow = si;
|
|
2357
|
+
o.get = Ks;
|
|
2358
|
+
o.invalidAt = mi;
|
|
2359
|
+
o.isAfter = Ga;
|
|
2360
|
+
o.isBefore = ja;
|
|
2361
|
+
o.isBetween = za;
|
|
2362
|
+
o.isSame = Za;
|
|
2363
|
+
o.isSameOrAfter = Ba;
|
|
2364
|
+
o.isSameOrBefore = qa;
|
|
2365
|
+
o.isValid = hi;
|
|
2366
|
+
o.lang = Ir;
|
|
2367
|
+
o.locale = Lr;
|
|
2368
|
+
o.localeData = Er;
|
|
2369
|
+
o.max = ha;
|
|
2370
|
+
o.min = ca;
|
|
2371
|
+
o.parsingFlags = fi;
|
|
2372
|
+
o.set = Xs;
|
|
2373
|
+
o.startOf = ni;
|
|
2374
|
+
o.subtract = Aa;
|
|
2375
|
+
o.toArray = ui;
|
|
2376
|
+
o.toObject = di;
|
|
2377
|
+
o.toDate = li;
|
|
2378
|
+
o.toISOString = Ka;
|
|
2379
|
+
o.inspect = Xa;
|
|
2373
2380
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2374
2381
|
return "Moment<" + this.format() + ">";
|
|
2375
2382
|
});
|
|
2376
|
-
o.toJSON =
|
|
2377
|
-
o.toString =
|
|
2378
|
-
o.unix =
|
|
2379
|
-
o.valueOf =
|
|
2380
|
-
o.creationData =
|
|
2381
|
-
o.eraName =
|
|
2382
|
-
o.eraNarrow =
|
|
2383
|
-
o.eraAbbr =
|
|
2384
|
-
o.eraYear =
|
|
2385
|
-
o.year =
|
|
2386
|
-
o.isLeapYear =
|
|
2387
|
-
o.weekYear =
|
|
2388
|
-
o.isoWeekYear =
|
|
2389
|
-
o.quarter = o.quarters =
|
|
2390
|
-
o.month =
|
|
2391
|
-
o.daysInMonth =
|
|
2392
|
-
o.week = o.weeks =
|
|
2393
|
-
o.isoWeek = o.isoWeeks =
|
|
2394
|
-
o.weeksInYear =
|
|
2395
|
-
o.weeksInWeekYear =
|
|
2396
|
-
o.isoWeeksInYear =
|
|
2397
|
-
o.isoWeeksInISOWeekYear =
|
|
2398
|
-
o.date =
|
|
2399
|
-
o.day = o.days =
|
|
2400
|
-
o.weekday =
|
|
2401
|
-
o.isoWeekday =
|
|
2402
|
-
o.dayOfYear =
|
|
2403
|
-
o.hour = o.hours =
|
|
2404
|
-
o.minute = o.minutes =
|
|
2405
|
-
o.second = o.seconds =
|
|
2406
|
-
o.millisecond = o.milliseconds =
|
|
2407
|
-
o.utcOffset =
|
|
2408
|
-
o.utc =
|
|
2409
|
-
o.local =
|
|
2410
|
-
o.parseZone =
|
|
2411
|
-
o.hasAlignedHourOffset =
|
|
2412
|
-
o.isDST =
|
|
2413
|
-
o.isLocal =
|
|
2414
|
-
o.isUtcOffset =
|
|
2415
|
-
o.isUtc =
|
|
2416
|
-
o.isUTC =
|
|
2417
|
-
o.zoneAbbr =
|
|
2418
|
-
o.zoneName =
|
|
2419
|
-
o.dates =
|
|
2383
|
+
o.toJSON = ci;
|
|
2384
|
+
o.toString = Ja;
|
|
2385
|
+
o.unix = oi;
|
|
2386
|
+
o.valueOf = ii;
|
|
2387
|
+
o.creationData = yi;
|
|
2388
|
+
o.eraName = pi;
|
|
2389
|
+
o.eraNarrow = ki;
|
|
2390
|
+
o.eraAbbr = Si;
|
|
2391
|
+
o.eraYear = vi;
|
|
2392
|
+
o.year = mr;
|
|
2393
|
+
o.isLeapYear = Js;
|
|
2394
|
+
o.weekYear = xi;
|
|
2395
|
+
o.isoWeekYear = Pi;
|
|
2396
|
+
o.quarter = o.quarters = Li;
|
|
2397
|
+
o.month = pr;
|
|
2398
|
+
o.daysInMonth = ln;
|
|
2399
|
+
o.week = o.weeks = _n;
|
|
2400
|
+
o.isoWeek = o.isoWeeks = gn;
|
|
2401
|
+
o.weeksInYear = Ci;
|
|
2402
|
+
o.weeksInWeekYear = Ri;
|
|
2403
|
+
o.isoWeeksInYear = Ni;
|
|
2404
|
+
o.isoWeeksInISOWeekYear = Wi;
|
|
2405
|
+
o.date = Gr;
|
|
2406
|
+
o.day = o.days = Pn;
|
|
2407
|
+
o.weekday = Nn;
|
|
2408
|
+
o.isoWeekday = Wn;
|
|
2409
|
+
o.dayOfYear = Ii;
|
|
2410
|
+
o.hour = o.hours = Fn;
|
|
2411
|
+
o.minute = o.minutes = Ei;
|
|
2412
|
+
o.second = o.seconds = Fi;
|
|
2413
|
+
o.millisecond = o.milliseconds = jr;
|
|
2414
|
+
o.utcOffset = Sa;
|
|
2415
|
+
o.utc = Ma;
|
|
2416
|
+
o.local = Da;
|
|
2417
|
+
o.parseZone = Ya;
|
|
2418
|
+
o.hasAlignedHourOffset = Oa;
|
|
2419
|
+
o.isDST = ba;
|
|
2420
|
+
o.isLocal = xa;
|
|
2421
|
+
o.isUtcOffset = Pa;
|
|
2422
|
+
o.isUtc = Wr;
|
|
2423
|
+
o.isUTC = Wr;
|
|
2424
|
+
o.zoneAbbr = Hi;
|
|
2425
|
+
o.zoneName = Vi;
|
|
2426
|
+
o.dates = R(
|
|
2420
2427
|
"dates accessor is deprecated. Use date instead.",
|
|
2421
|
-
|
|
2428
|
+
Gr
|
|
2422
2429
|
);
|
|
2423
|
-
o.months =
|
|
2430
|
+
o.months = R(
|
|
2424
2431
|
"months accessor is deprecated. Use month instead",
|
|
2425
|
-
|
|
2432
|
+
pr
|
|
2426
2433
|
);
|
|
2427
|
-
o.years =
|
|
2434
|
+
o.years = R(
|
|
2428
2435
|
"years accessor is deprecated. Use year instead",
|
|
2429
|
-
|
|
2436
|
+
mr
|
|
2430
2437
|
);
|
|
2431
|
-
o.zone =
|
|
2438
|
+
o.zone = R(
|
|
2432
2439
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2433
|
-
|
|
2440
|
+
va
|
|
2434
2441
|
);
|
|
2435
|
-
o.isDSTShifted =
|
|
2442
|
+
o.isDSTShifted = R(
|
|
2436
2443
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2437
|
-
|
|
2444
|
+
Ta
|
|
2438
2445
|
);
|
|
2439
|
-
function
|
|
2446
|
+
function Gi(e) {
|
|
2440
2447
|
return k(e * 1e3);
|
|
2441
2448
|
}
|
|
2442
|
-
function
|
|
2449
|
+
function ji() {
|
|
2443
2450
|
return k.apply(null, arguments).parseZone();
|
|
2444
2451
|
}
|
|
2445
|
-
function
|
|
2452
|
+
function zr(e) {
|
|
2446
2453
|
return e;
|
|
2447
2454
|
}
|
|
2448
|
-
var w =
|
|
2449
|
-
w.calendar =
|
|
2450
|
-
w.longDateFormat =
|
|
2451
|
-
w.invalidDate =
|
|
2452
|
-
w.ordinal =
|
|
2453
|
-
w.preparse =
|
|
2454
|
-
w.postformat =
|
|
2455
|
-
w.relativeTime =
|
|
2456
|
-
w.pastFuture =
|
|
2457
|
-
w.set =
|
|
2458
|
-
w.eras =
|
|
2459
|
-
w.erasParse =
|
|
2460
|
-
w.erasConvertYear =
|
|
2461
|
-
w.erasAbbrRegex =
|
|
2462
|
-
w.erasNameRegex =
|
|
2463
|
-
w.erasNarrowRegex =
|
|
2464
|
-
w.months =
|
|
2465
|
-
w.monthsShort =
|
|
2466
|
-
w.monthsParse =
|
|
2467
|
-
w.monthsRegex =
|
|
2468
|
-
w.monthsShortRegex =
|
|
2469
|
-
w.week =
|
|
2470
|
-
w.firstDayOfYear =
|
|
2471
|
-
w.firstDayOfWeek =
|
|
2472
|
-
w.weekdays =
|
|
2473
|
-
w.weekdaysMin =
|
|
2474
|
-
w.weekdaysShort =
|
|
2475
|
-
w.weekdaysParse =
|
|
2476
|
-
w.weekdaysRegex =
|
|
2477
|
-
w.weekdaysShortRegex =
|
|
2478
|
-
w.weekdaysMinRegex =
|
|
2479
|
-
w.isPM =
|
|
2480
|
-
w.meridiem =
|
|
2481
|
-
function
|
|
2482
|
-
var n = $(), a = j().set(
|
|
2483
|
-
return n[
|
|
2484
|
-
}
|
|
2485
|
-
function
|
|
2455
|
+
var w = Mt.prototype;
|
|
2456
|
+
w.calendar = Ts;
|
|
2457
|
+
w.longDateFormat = Ws;
|
|
2458
|
+
w.invalidDate = Rs;
|
|
2459
|
+
w.ordinal = Is;
|
|
2460
|
+
w.preparse = zr;
|
|
2461
|
+
w.postformat = zr;
|
|
2462
|
+
w.relativeTime = Fs;
|
|
2463
|
+
w.pastFuture = Us;
|
|
2464
|
+
w.set = Os;
|
|
2465
|
+
w.eras = _i;
|
|
2466
|
+
w.erasParse = gi;
|
|
2467
|
+
w.erasConvertYear = wi;
|
|
2468
|
+
w.erasAbbrRegex = Di;
|
|
2469
|
+
w.erasNameRegex = Mi;
|
|
2470
|
+
w.erasNarrowRegex = Yi;
|
|
2471
|
+
w.months = sn;
|
|
2472
|
+
w.monthsShort = nn;
|
|
2473
|
+
w.monthsParse = on;
|
|
2474
|
+
w.monthsRegex = dn;
|
|
2475
|
+
w.monthsShortRegex = un;
|
|
2476
|
+
w.week = hn;
|
|
2477
|
+
w.firstDayOfYear = yn;
|
|
2478
|
+
w.firstDayOfWeek = mn;
|
|
2479
|
+
w.weekdays = Yn;
|
|
2480
|
+
w.weekdaysMin = bn;
|
|
2481
|
+
w.weekdaysShort = On;
|
|
2482
|
+
w.weekdaysParse = xn;
|
|
2483
|
+
w.weekdaysRegex = Cn;
|
|
2484
|
+
w.weekdaysShortRegex = Rn;
|
|
2485
|
+
w.weekdaysMinRegex = An;
|
|
2486
|
+
w.isPM = In;
|
|
2487
|
+
w.meridiem = Un;
|
|
2488
|
+
function Ze(e, t, r, s) {
|
|
2489
|
+
var n = $(), a = j().set(s, t);
|
|
2490
|
+
return n[r](a, e);
|
|
2491
|
+
}
|
|
2492
|
+
function Zr(e, t, r) {
|
|
2486
2493
|
if (X(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
2487
|
-
return
|
|
2488
|
-
var
|
|
2489
|
-
for (
|
|
2490
|
-
n[
|
|
2494
|
+
return Ze(e, t, r, "month");
|
|
2495
|
+
var s, n = [];
|
|
2496
|
+
for (s = 0; s < 12; s++)
|
|
2497
|
+
n[s] = Ze(e, s, r, "month");
|
|
2491
2498
|
return n;
|
|
2492
2499
|
}
|
|
2493
|
-
function
|
|
2494
|
-
typeof e == "boolean" ? (X(t) && (
|
|
2500
|
+
function Ht(e, t, r, s) {
|
|
2501
|
+
typeof e == "boolean" ? (X(t) && (r = t, t = void 0), t = t || "") : (t = e, r = t, e = !1, X(t) && (r = t, t = void 0), t = t || "");
|
|
2495
2502
|
var n = $(), a = e ? n._week.dow : 0, i, l = [];
|
|
2496
|
-
if (
|
|
2497
|
-
return
|
|
2503
|
+
if (r != null)
|
|
2504
|
+
return Ze(t, (r + a) % 7, s, "day");
|
|
2498
2505
|
for (i = 0; i < 7; i++)
|
|
2499
|
-
l[i] =
|
|
2506
|
+
l[i] = Ze(t, (i + a) % 7, s, "day");
|
|
2500
2507
|
return l;
|
|
2501
2508
|
}
|
|
2502
|
-
function
|
|
2503
|
-
return
|
|
2509
|
+
function zi(e, t) {
|
|
2510
|
+
return Zr(e, t, "months");
|
|
2504
2511
|
}
|
|
2505
|
-
function
|
|
2506
|
-
return
|
|
2512
|
+
function Zi(e, t) {
|
|
2513
|
+
return Zr(e, t, "monthsShort");
|
|
2507
2514
|
}
|
|
2508
|
-
function
|
|
2509
|
-
return
|
|
2515
|
+
function Bi(e, t, r) {
|
|
2516
|
+
return Ht(e, t, r, "weekdays");
|
|
2510
2517
|
}
|
|
2511
|
-
function
|
|
2512
|
-
return
|
|
2518
|
+
function qi(e, t, r) {
|
|
2519
|
+
return Ht(e, t, r, "weekdaysShort");
|
|
2513
2520
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return
|
|
2521
|
+
function Qi(e, t, r) {
|
|
2522
|
+
return Ht(e, t, r, "weekdaysMin");
|
|
2516
2523
|
}
|
|
2517
|
-
|
|
2524
|
+
se("en", {
|
|
2518
2525
|
eras: [
|
|
2519
2526
|
{
|
|
2520
2527
|
since: "0001-01-01",
|
|
@@ -2535,74 +2542,74 @@ re("en", {
|
|
|
2535
2542
|
],
|
|
2536
2543
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
2537
2544
|
ordinal: function(e) {
|
|
2538
|
-
var t = e % 10,
|
|
2539
|
-
return e +
|
|
2545
|
+
var t = e % 10, r = y(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
2546
|
+
return e + r;
|
|
2540
2547
|
}
|
|
2541
2548
|
});
|
|
2542
|
-
|
|
2549
|
+
d.lang = R(
|
|
2543
2550
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
2544
|
-
|
|
2551
|
+
se
|
|
2545
2552
|
);
|
|
2546
|
-
|
|
2553
|
+
d.langData = R(
|
|
2547
2554
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
2548
2555
|
$
|
|
2549
2556
|
);
|
|
2550
2557
|
var Z = Math.abs;
|
|
2551
|
-
function
|
|
2558
|
+
function Ji() {
|
|
2552
2559
|
var e = this._data;
|
|
2553
2560
|
return this._milliseconds = Z(this._milliseconds), this._days = Z(this._days), this._months = Z(this._months), e.milliseconds = Z(e.milliseconds), e.seconds = Z(e.seconds), e.minutes = Z(e.minutes), e.hours = Z(e.hours), e.months = Z(e.months), e.years = Z(e.years), this;
|
|
2554
2561
|
}
|
|
2555
|
-
function
|
|
2556
|
-
var n = U(t,
|
|
2557
|
-
return e._milliseconds +=
|
|
2562
|
+
function Br(e, t, r, s) {
|
|
2563
|
+
var n = U(t, r);
|
|
2564
|
+
return e._milliseconds += s * n._milliseconds, e._days += s * n._days, e._months += s * n._months, e._bubble();
|
|
2558
2565
|
}
|
|
2559
|
-
function
|
|
2560
|
-
return
|
|
2566
|
+
function Ki(e, t) {
|
|
2567
|
+
return Br(this, e, t, 1);
|
|
2561
2568
|
}
|
|
2562
|
-
function
|
|
2563
|
-
return
|
|
2569
|
+
function Xi(e, t) {
|
|
2570
|
+
return Br(this, e, t, -1);
|
|
2564
2571
|
}
|
|
2565
|
-
function
|
|
2572
|
+
function $t(e) {
|
|
2566
2573
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2567
2574
|
}
|
|
2568
|
-
function
|
|
2569
|
-
var e = this._milliseconds, t = this._days,
|
|
2570
|
-
return e >= 0 && t >= 0 &&
|
|
2575
|
+
function $i() {
|
|
2576
|
+
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, n, a, i, l, u;
|
|
2577
|
+
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += $t(gt(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, n = C(e / 1e3), s.seconds = n % 60, a = C(n / 60), s.minutes = a % 60, i = C(a / 60), s.hours = i % 24, t += C(i / 24), u = C(qr(t)), r += u, t -= $t(gt(u)), l = C(r / 12), r %= 12, s.days = t, s.months = r, s.years = l, this;
|
|
2571
2578
|
}
|
|
2572
|
-
function
|
|
2579
|
+
function qr(e) {
|
|
2573
2580
|
return e * 4800 / 146097;
|
|
2574
2581
|
}
|
|
2575
|
-
function
|
|
2582
|
+
function gt(e) {
|
|
2576
2583
|
return e * 146097 / 4800;
|
|
2577
2584
|
}
|
|
2578
|
-
function
|
|
2585
|
+
function eo(e) {
|
|
2579
2586
|
if (!this.isValid())
|
|
2580
2587
|
return NaN;
|
|
2581
|
-
var t,
|
|
2582
|
-
if (e =
|
|
2583
|
-
switch (t = this._days +
|
|
2588
|
+
var t, r, s = this._milliseconds;
|
|
2589
|
+
if (e = A(e), e === "month" || e === "quarter" || e === "year")
|
|
2590
|
+
switch (t = this._days + s / 864e5, r = this._months + qr(t), e) {
|
|
2584
2591
|
case "month":
|
|
2585
|
-
return
|
|
2592
|
+
return r;
|
|
2586
2593
|
case "quarter":
|
|
2587
|
-
return
|
|
2594
|
+
return r / 3;
|
|
2588
2595
|
case "year":
|
|
2589
|
-
return
|
|
2596
|
+
return r / 12;
|
|
2590
2597
|
}
|
|
2591
2598
|
else
|
|
2592
|
-
switch (t = this._days + Math.round(
|
|
2599
|
+
switch (t = this._days + Math.round(gt(this._months)), e) {
|
|
2593
2600
|
case "week":
|
|
2594
|
-
return t / 7 +
|
|
2601
|
+
return t / 7 + s / 6048e5;
|
|
2595
2602
|
case "day":
|
|
2596
|
-
return t +
|
|
2603
|
+
return t + s / 864e5;
|
|
2597
2604
|
case "hour":
|
|
2598
|
-
return t * 24 +
|
|
2605
|
+
return t * 24 + s / 36e5;
|
|
2599
2606
|
case "minute":
|
|
2600
|
-
return t * 1440 +
|
|
2607
|
+
return t * 1440 + s / 6e4;
|
|
2601
2608
|
case "second":
|
|
2602
|
-
return t * 86400 +
|
|
2609
|
+
return t * 86400 + s / 1e3;
|
|
2603
2610
|
// Math.floor prevents floating point math errors here
|
|
2604
2611
|
case "millisecond":
|
|
2605
|
-
return Math.floor(t * 864e5) +
|
|
2612
|
+
return Math.floor(t * 864e5) + s;
|
|
2606
2613
|
default:
|
|
2607
2614
|
throw new Error("Unknown unit " + e);
|
|
2608
2615
|
}
|
|
@@ -2612,23 +2619,23 @@ function ee(e) {
|
|
|
2612
2619
|
return this.as(e);
|
|
2613
2620
|
};
|
|
2614
2621
|
}
|
|
2615
|
-
var
|
|
2616
|
-
function
|
|
2622
|
+
var Qr = ee("ms"), to = ee("s"), ro = ee("m"), so = ee("h"), no = ee("d"), ao = ee("w"), io = ee("M"), oo = ee("Q"), lo = ee("y"), uo = Qr;
|
|
2623
|
+
function co() {
|
|
2617
2624
|
return U(this);
|
|
2618
2625
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return e =
|
|
2626
|
+
function ho(e) {
|
|
2627
|
+
return e = A(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2621
2628
|
}
|
|
2622
2629
|
function le(e) {
|
|
2623
2630
|
return function() {
|
|
2624
2631
|
return this.isValid() ? this._data[e] : NaN;
|
|
2625
2632
|
};
|
|
2626
2633
|
}
|
|
2627
|
-
var
|
|
2628
|
-
function
|
|
2634
|
+
var fo = le("milliseconds"), mo = le("seconds"), yo = le("minutes"), _o = le("hours"), go = le("days"), wo = le("months"), po = le("years");
|
|
2635
|
+
function ko() {
|
|
2629
2636
|
return C(this.days() / 7);
|
|
2630
2637
|
}
|
|
2631
|
-
var B = Math.round,
|
|
2638
|
+
var B = Math.round, ce = {
|
|
2632
2639
|
ss: 44,
|
|
2633
2640
|
// a few seconds to seconds
|
|
2634
2641
|
s: 45,
|
|
@@ -2644,114 +2651,114 @@ var B = Math.round, he = {
|
|
|
2644
2651
|
M: 11
|
|
2645
2652
|
// months to year
|
|
2646
2653
|
};
|
|
2647
|
-
function
|
|
2648
|
-
return n.relativeTime(t || 1, !!
|
|
2654
|
+
function So(e, t, r, s, n) {
|
|
2655
|
+
return n.relativeTime(t || 1, !!r, e, s);
|
|
2649
2656
|
}
|
|
2650
|
-
function
|
|
2651
|
-
var n = U(e).abs(), a = B(n.as("s")), i = B(n.as("m")), l = B(n.as("h")),
|
|
2652
|
-
return
|
|
2657
|
+
function vo(e, t, r, s) {
|
|
2658
|
+
var n = U(e).abs(), a = B(n.as("s")), i = B(n.as("m")), l = B(n.as("h")), u = B(n.as("d")), f = B(n.as("M")), M = B(n.as("w")), x = B(n.as("y")), L = a <= r.ss && ["s", a] || a < r.s && ["ss", a] || i <= 1 && ["m"] || i < r.m && ["mm", i] || l <= 1 && ["h"] || l < r.h && ["hh", l] || u <= 1 && ["d"] || u < r.d && ["dd", u];
|
|
2659
|
+
return r.w != null && (L = L || M <= 1 && ["w"] || M < r.w && ["ww", M]), L = L || f <= 1 && ["M"] || f < r.M && ["MM", f] || x <= 1 && ["y"] || ["yy", x], L[2] = t, L[3] = +e > 0, L[4] = s, So.apply(null, L);
|
|
2653
2660
|
}
|
|
2654
|
-
function
|
|
2661
|
+
function Mo(e) {
|
|
2655
2662
|
return e === void 0 ? B : typeof e == "function" ? (B = e, !0) : !1;
|
|
2656
2663
|
}
|
|
2657
|
-
function
|
|
2658
|
-
return
|
|
2664
|
+
function Do(e, t) {
|
|
2665
|
+
return ce[e] === void 0 ? !1 : t === void 0 ? ce[e] : (ce[e] = t, e === "s" && (ce.ss = t - 1), !0);
|
|
2659
2666
|
}
|
|
2660
|
-
function
|
|
2667
|
+
function Yo(e, t) {
|
|
2661
2668
|
if (!this.isValid())
|
|
2662
2669
|
return this.localeData().invalidDate();
|
|
2663
|
-
var
|
|
2664
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (
|
|
2670
|
+
var r = !1, s = ce, n, a;
|
|
2671
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({}, ce, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), n = this.localeData(), a = vo(this, !r, s, n), r && (a = n.pastFuture(+this, a)), n.postformat(a);
|
|
2665
2672
|
}
|
|
2666
|
-
var
|
|
2673
|
+
var ut = Math.abs;
|
|
2667
2674
|
function ue(e) {
|
|
2668
2675
|
return (e > 0) - (e < 0) || +e;
|
|
2669
2676
|
}
|
|
2670
|
-
function
|
|
2677
|
+
function nt() {
|
|
2671
2678
|
if (!this.isValid())
|
|
2672
2679
|
return this.localeData().invalidDate();
|
|
2673
|
-
var e =
|
|
2674
|
-
return l ? (
|
|
2675
|
-
}
|
|
2676
|
-
var _ =
|
|
2677
|
-
_.isValid =
|
|
2678
|
-
_.abs =
|
|
2679
|
-
_.add =
|
|
2680
|
-
_.subtract =
|
|
2681
|
-
_.as =
|
|
2682
|
-
_.asMilliseconds =
|
|
2683
|
-
_.asSeconds =
|
|
2684
|
-
_.asMinutes =
|
|
2685
|
-
_.asHours =
|
|
2686
|
-
_.asDays =
|
|
2687
|
-
_.asWeeks =
|
|
2688
|
-
_.asMonths =
|
|
2689
|
-
_.asQuarters =
|
|
2690
|
-
_.asYears =
|
|
2691
|
-
_.valueOf =
|
|
2692
|
-
_._bubble =
|
|
2693
|
-
_.clone =
|
|
2694
|
-
_.get =
|
|
2695
|
-
_.milliseconds =
|
|
2696
|
-
_.seconds =
|
|
2697
|
-
_.minutes =
|
|
2698
|
-
_.hours =
|
|
2699
|
-
_.days =
|
|
2700
|
-
_.weeks =
|
|
2701
|
-
_.months =
|
|
2702
|
-
_.years =
|
|
2703
|
-
_.humanize =
|
|
2704
|
-
_.toISOString =
|
|
2705
|
-
_.toString =
|
|
2706
|
-
_.toJSON =
|
|
2707
|
-
_.locale =
|
|
2708
|
-
_.localeData =
|
|
2709
|
-
_.toIsoString =
|
|
2680
|
+
var e = ut(this._milliseconds) / 1e3, t = ut(this._days), r = ut(this._months), s, n, a, i, l = this.asSeconds(), u, f, M, x;
|
|
2681
|
+
return l ? (s = C(e / 60), n = C(s / 60), e %= 60, s %= 60, a = C(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", u = l < 0 ? "-" : "", f = ue(this._months) !== ue(l) ? "-" : "", M = ue(this._days) !== ue(l) ? "-" : "", x = ue(this._milliseconds) !== ue(l) ? "-" : "", u + "P" + (a ? f + a + "Y" : "") + (r ? f + r + "M" : "") + (t ? M + t + "D" : "") + (n || s || e ? "T" : "") + (n ? x + n + "H" : "") + (s ? x + s + "M" : "") + (e ? x + i + "S" : "")) : "P0D";
|
|
2682
|
+
}
|
|
2683
|
+
var _ = rt.prototype;
|
|
2684
|
+
_.isValid = ga;
|
|
2685
|
+
_.abs = Ji;
|
|
2686
|
+
_.add = Ki;
|
|
2687
|
+
_.subtract = Xi;
|
|
2688
|
+
_.as = eo;
|
|
2689
|
+
_.asMilliseconds = Qr;
|
|
2690
|
+
_.asSeconds = to;
|
|
2691
|
+
_.asMinutes = ro;
|
|
2692
|
+
_.asHours = so;
|
|
2693
|
+
_.asDays = no;
|
|
2694
|
+
_.asWeeks = ao;
|
|
2695
|
+
_.asMonths = io;
|
|
2696
|
+
_.asQuarters = oo;
|
|
2697
|
+
_.asYears = lo;
|
|
2698
|
+
_.valueOf = uo;
|
|
2699
|
+
_._bubble = $i;
|
|
2700
|
+
_.clone = co;
|
|
2701
|
+
_.get = ho;
|
|
2702
|
+
_.milliseconds = fo;
|
|
2703
|
+
_.seconds = mo;
|
|
2704
|
+
_.minutes = yo;
|
|
2705
|
+
_.hours = _o;
|
|
2706
|
+
_.days = go;
|
|
2707
|
+
_.weeks = ko;
|
|
2708
|
+
_.months = wo;
|
|
2709
|
+
_.years = po;
|
|
2710
|
+
_.humanize = Yo;
|
|
2711
|
+
_.toISOString = nt;
|
|
2712
|
+
_.toString = nt;
|
|
2713
|
+
_.toJSON = nt;
|
|
2714
|
+
_.locale = Lr;
|
|
2715
|
+
_.localeData = Er;
|
|
2716
|
+
_.toIsoString = R(
|
|
2710
2717
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
2711
|
-
|
|
2718
|
+
nt
|
|
2712
2719
|
);
|
|
2713
|
-
_.lang =
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
p("X", function(e, t,
|
|
2719
|
-
|
|
2720
|
+
_.lang = Ir;
|
|
2721
|
+
h("X", 0, 0, "unix");
|
|
2722
|
+
h("x", 0, 0, "valueOf");
|
|
2723
|
+
c("x", Xe);
|
|
2724
|
+
c("X", js);
|
|
2725
|
+
p("X", function(e, t, r) {
|
|
2726
|
+
r._d = new Date(parseFloat(e) * 1e3);
|
|
2720
2727
|
});
|
|
2721
|
-
p("x", function(e, t,
|
|
2722
|
-
|
|
2728
|
+
p("x", function(e, t, r) {
|
|
2729
|
+
r._d = new Date(y(e));
|
|
2723
2730
|
});
|
|
2724
2731
|
//! moment.js
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2732
|
+
d.version = "2.30.1";
|
|
2733
|
+
Ds(k);
|
|
2734
|
+
d.fn = o;
|
|
2735
|
+
d.min = fa;
|
|
2736
|
+
d.max = ma;
|
|
2737
|
+
d.now = ya;
|
|
2738
|
+
d.utc = j;
|
|
2739
|
+
d.unix = Gi;
|
|
2740
|
+
d.months = zi;
|
|
2741
|
+
d.isDate = xe;
|
|
2742
|
+
d.locale = se;
|
|
2743
|
+
d.invalid = qe;
|
|
2744
|
+
d.duration = U;
|
|
2745
|
+
d.isMoment = F;
|
|
2746
|
+
d.weekdays = Bi;
|
|
2747
|
+
d.parseZone = ji;
|
|
2748
|
+
d.localeData = $;
|
|
2749
|
+
d.isDuration = Ee;
|
|
2750
|
+
d.monthsShort = Zi;
|
|
2751
|
+
d.weekdaysMin = Qi;
|
|
2752
|
+
d.defineLocale = Ct;
|
|
2753
|
+
d.updateLocale = jn;
|
|
2754
|
+
d.locales = zn;
|
|
2755
|
+
d.weekdaysShort = qi;
|
|
2756
|
+
d.normalizeUnits = A;
|
|
2757
|
+
d.relativeTimeRounding = Mo;
|
|
2758
|
+
d.relativeTimeThreshold = Do;
|
|
2759
|
+
d.calendarFormat = Ua;
|
|
2760
|
+
d.prototype = o;
|
|
2761
|
+
d.HTML5_FMT = {
|
|
2755
2762
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
2756
2763
|
// <input type="datetime-local" />
|
|
2757
2764
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -2771,16 +2778,16 @@ u.HTML5_FMT = {
|
|
|
2771
2778
|
MONTH: "YYYY-MM"
|
|
2772
2779
|
// <input type="month" />
|
|
2773
2780
|
};
|
|
2774
|
-
const
|
|
2781
|
+
const Oo = { class: "d-flex align-items-center justify-content-center bg-white shadow-sm py-3" }, bo = /* @__PURE__ */ _e({
|
|
2775
2782
|
__name: "Footer",
|
|
2776
2783
|
props: {
|
|
2777
2784
|
copyrightText: { type: String, required: !0 }
|
|
2778
2785
|
},
|
|
2779
2786
|
setup(e) {
|
|
2780
2787
|
const t = e;
|
|
2781
|
-
return (
|
|
2788
|
+
return (r, s) => (b(), P("footer", Oo, V(t.copyrightText) + " " + V(ss(d)().year()), 1));
|
|
2782
2789
|
}
|
|
2783
|
-
}),
|
|
2790
|
+
}), Ko = /* @__PURE__ */ _e({
|
|
2784
2791
|
__name: "LoginLayoutFrame",
|
|
2785
2792
|
props: {
|
|
2786
2793
|
loginText: {},
|
|
@@ -2796,31 +2803,31 @@ const So = { class: "d-flex align-items-center justify-content-center bg-white s
|
|
|
2796
2803
|
throw new Error("LoginLayoutFrame: brandText обязателен");
|
|
2797
2804
|
if (!t.copyrightText.trim())
|
|
2798
2805
|
throw new Error("LoginLayoutFrame: copyrightText обязателен");
|
|
2799
|
-
return (
|
|
2800
|
-
ve(
|
|
2806
|
+
return (r, s) => (b(), P(rr, null, [
|
|
2807
|
+
ve(Ms, {
|
|
2801
2808
|
"is-authenticated": !1,
|
|
2802
|
-
"login-text":
|
|
2809
|
+
"login-text": r.loginText,
|
|
2803
2810
|
"raw-dropdown-links": [],
|
|
2804
|
-
"brand-text":
|
|
2811
|
+
"brand-text": r.brandText
|
|
2805
2812
|
}, {
|
|
2806
|
-
logo:
|
|
2807
|
-
ve(
|
|
2813
|
+
logo: Bt(() => [
|
|
2814
|
+
ve(nr)
|
|
2808
2815
|
]),
|
|
2809
|
-
"language-selector":
|
|
2810
|
-
|
|
2816
|
+
"language-selector": Bt(() => [
|
|
2817
|
+
He(r.$slots, "language-selector")
|
|
2811
2818
|
]),
|
|
2812
2819
|
_: 3
|
|
2813
2820
|
}, 8, ["login-text", "brand-text"]),
|
|
2814
2821
|
Y("main", {
|
|
2815
|
-
class: ye(
|
|
2822
|
+
class: ye(r.mainClass),
|
|
2816
2823
|
style: { "min-height": "80vh" }
|
|
2817
2824
|
}, [
|
|
2818
|
-
|
|
2825
|
+
He(r.$slots, "default")
|
|
2819
2826
|
], 2),
|
|
2820
|
-
ve(
|
|
2827
|
+
ve(bo, { "copyright-text": r.copyrightText }, null, 8, ["copyright-text"])
|
|
2821
2828
|
], 64));
|
|
2822
2829
|
}
|
|
2823
|
-
}),
|
|
2830
|
+
}), To = {
|
|
2824
2831
|
__name: "Spinner",
|
|
2825
2832
|
props: {
|
|
2826
2833
|
isSmall: {
|
|
@@ -2829,22 +2836,22 @@ const So = { class: "d-flex align-items-center justify-content-center bg-white s
|
|
|
2829
2836
|
}
|
|
2830
2837
|
},
|
|
2831
2838
|
setup(e) {
|
|
2832
|
-
return (t,
|
|
2839
|
+
return (t, r) => (b(), P("div", {
|
|
2833
2840
|
class: ye(["spinner-border", { "spinner-border-sm": e.isSmall }]),
|
|
2834
2841
|
role: "status"
|
|
2835
2842
|
}, null, 2));
|
|
2836
2843
|
}
|
|
2837
|
-
},
|
|
2844
|
+
}, xo = {
|
|
2838
2845
|
class: "container",
|
|
2839
2846
|
"data-test": "SsoLoginPending"
|
|
2840
|
-
},
|
|
2847
|
+
}, Po = { class: "row justify-content-center" }, No = { class: "col-md-8" }, Wo = { class: "card" }, Co = { class: "card-header" }, Ro = { class: "card-body" }, Ao = {
|
|
2841
2848
|
class: "login-spinner text-center",
|
|
2842
2849
|
role: "status",
|
|
2843
2850
|
"aria-live": "polite"
|
|
2844
|
-
},
|
|
2851
|
+
}, Lo = {
|
|
2845
2852
|
class: "visually-hidden",
|
|
2846
2853
|
"data-test": "SsoLoginPending-status"
|
|
2847
|
-
},
|
|
2854
|
+
}, Io = /* @__PURE__ */ _e({
|
|
2848
2855
|
__name: "SsoLoginPending",
|
|
2849
2856
|
props: {
|
|
2850
2857
|
title: {},
|
|
@@ -2856,15 +2863,15 @@ const So = { class: "d-flex align-items-center justify-content-center bg-white s
|
|
|
2856
2863
|
throw new Error("SsoLoginPending: title обязателен");
|
|
2857
2864
|
if (!t.statusText.trim())
|
|
2858
2865
|
throw new Error("SsoLoginPending: statusText обязателен");
|
|
2859
|
-
return (
|
|
2860
|
-
Y("div",
|
|
2861
|
-
Y("div",
|
|
2862
|
-
Y("div",
|
|
2863
|
-
Y("div",
|
|
2864
|
-
Y("div",
|
|
2865
|
-
Y("div",
|
|
2866
|
-
ve(
|
|
2867
|
-
Y("span",
|
|
2866
|
+
return (r, s) => (b(), P("div", xo, [
|
|
2867
|
+
Y("div", Po, [
|
|
2868
|
+
Y("div", No, [
|
|
2869
|
+
Y("div", Wo, [
|
|
2870
|
+
Y("div", Co, V(r.title), 1),
|
|
2871
|
+
Y("div", Ro, [
|
|
2872
|
+
Y("div", Ao, [
|
|
2873
|
+
ve(To),
|
|
2874
|
+
Y("span", Lo, V(r.statusText), 1)
|
|
2868
2875
|
])
|
|
2869
2876
|
])
|
|
2870
2877
|
])
|
|
@@ -2872,8 +2879,8 @@ const So = { class: "d-flex align-items-center justify-content-center bg-white s
|
|
|
2872
2879
|
])
|
|
2873
2880
|
]));
|
|
2874
2881
|
}
|
|
2875
|
-
}),
|
|
2876
|
-
function
|
|
2882
|
+
}), Eo = /* @__PURE__ */ Be(Io, [["__scopeId", "data-v-6eb41b83"]]), er = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";
|
|
2883
|
+
function Jr() {
|
|
2877
2884
|
const e = globalThis.crypto;
|
|
2878
2885
|
if (!e)
|
|
2879
2886
|
throw new Error("Web Crypto API is not available.");
|
|
@@ -2883,76 +2890,102 @@ function Zs() {
|
|
|
2883
2890
|
throw new Error("Web Crypto subtle digest is not available.");
|
|
2884
2891
|
return e;
|
|
2885
2892
|
}
|
|
2886
|
-
function
|
|
2887
|
-
const t =
|
|
2888
|
-
t.getRandomValues(
|
|
2889
|
-
let
|
|
2890
|
-
return
|
|
2891
|
-
|
|
2892
|
-
}),
|
|
2893
|
+
function Kr(e) {
|
|
2894
|
+
const t = Jr(), r = new Uint8Array(e);
|
|
2895
|
+
t.getRandomValues(r);
|
|
2896
|
+
let s = "";
|
|
2897
|
+
return r.forEach((n) => {
|
|
2898
|
+
s += er[n % er.length];
|
|
2899
|
+
}), s;
|
|
2893
2900
|
}
|
|
2894
|
-
function
|
|
2901
|
+
function Fo(e) {
|
|
2895
2902
|
const t = new Uint8Array(e);
|
|
2896
|
-
let
|
|
2897
|
-
return t.forEach((
|
|
2898
|
-
|
|
2899
|
-
}), btoa(
|
|
2903
|
+
let r = "";
|
|
2904
|
+
return t.forEach((s) => {
|
|
2905
|
+
r += String.fromCharCode(s);
|
|
2906
|
+
}), btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
|
|
2900
2907
|
}
|
|
2901
|
-
function
|
|
2908
|
+
function Uo(e = 64) {
|
|
2902
2909
|
if (!Number.isInteger(e) || e < 43 || e > 128)
|
|
2903
2910
|
throw new Error("PKCE code_verifier length must be between 43 and 128.");
|
|
2904
|
-
return
|
|
2911
|
+
return Kr(e);
|
|
2905
2912
|
}
|
|
2906
|
-
async function
|
|
2907
|
-
const t =
|
|
2908
|
-
return
|
|
2913
|
+
async function Ho(e) {
|
|
2914
|
+
const t = Jr(), s = new TextEncoder().encode(e), n = await t.subtle.digest("SHA-256", s);
|
|
2915
|
+
return Fo(n);
|
|
2909
2916
|
}
|
|
2910
|
-
async function
|
|
2911
|
-
const t =
|
|
2912
|
-
return { codeVerifier: t, codeChallenge:
|
|
2917
|
+
async function Vo(e = 64) {
|
|
2918
|
+
const t = Uo(e), r = await Ho(t);
|
|
2919
|
+
return { codeVerifier: t, codeChallenge: r };
|
|
2913
2920
|
}
|
|
2914
|
-
function
|
|
2921
|
+
function Go(e = 32) {
|
|
2915
2922
|
if (!Number.isInteger(e) || e < 16 || e > 128)
|
|
2916
2923
|
throw new Error("OAuth state length must be between 16 and 128.");
|
|
2917
|
-
return
|
|
2924
|
+
return Kr(e);
|
|
2918
2925
|
}
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2926
|
+
function Ae(e) {
|
|
2927
|
+
return Number.isInteger(e) && Number(e) >= 400 && Number(e) < 600;
|
|
2928
|
+
}
|
|
2929
|
+
function wt(e, t = /* @__PURE__ */ new Set()) {
|
|
2930
|
+
if (e == null)
|
|
2931
|
+
return;
|
|
2932
|
+
if (typeof e == "number")
|
|
2933
|
+
return Ae(e) ? e : void 0;
|
|
2934
|
+
if (typeof e != "object" || t.has(e))
|
|
2935
|
+
return;
|
|
2936
|
+
if (t.add(e), typeof Response < "u" && e instanceof Response)
|
|
2937
|
+
return Ae(e.status) ? e.status : void 0;
|
|
2938
|
+
const r = e;
|
|
2939
|
+
if (Ae(r.status))
|
|
2940
|
+
return r.status;
|
|
2941
|
+
if (Ae(r.statusCode))
|
|
2942
|
+
return r.statusCode;
|
|
2943
|
+
const s = wt(r.response, t);
|
|
2944
|
+
return s !== void 0 ? s : wt(r.cause, t);
|
|
2945
|
+
}
|
|
2946
|
+
function Xr(e) {
|
|
2947
|
+
return e === 400 ? "Bad Request" : e === 401 ? "Unauthorized" : e === 403 ? "Forbidden" : e === 404 ? "Not Found" : e === 409 ? "Conflict" : e === 422 ? "Unprocessable Entity" : e === 429 ? "Too Many Requests" : e === 502 ? "Bad Gateway" : e === 503 ? "Service Unavailable" : e === 504 ? "Gateway Timeout" : e >= 500 ? "Internal Server Error" : "Request failed";
|
|
2948
|
+
}
|
|
2949
|
+
function pt(e, t = 500) {
|
|
2950
|
+
return wt(e) ?? t;
|
|
2951
|
+
}
|
|
2952
|
+
const jo = "Web Crypto API недоступен. Используйте HTTPS или обновите браузер.", zo = "NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.", Vt = "r3ui-sso-start-lock", Gt = "r3ui-sso-auth-url";
|
|
2953
|
+
let Ue = !1;
|
|
2954
|
+
function Zo() {
|
|
2922
2955
|
try {
|
|
2923
|
-
return sessionStorage.getItem(
|
|
2956
|
+
return sessionStorage.getItem(Vt) === "1";
|
|
2924
2957
|
} catch {
|
|
2925
2958
|
return !1;
|
|
2926
2959
|
}
|
|
2927
2960
|
}
|
|
2928
|
-
function
|
|
2961
|
+
function Bo() {
|
|
2929
2962
|
try {
|
|
2930
|
-
const e = sessionStorage.getItem(
|
|
2963
|
+
const e = sessionStorage.getItem(Gt);
|
|
2931
2964
|
return typeof e == "string" && e.length > 0 ? e : null;
|
|
2932
2965
|
} catch {
|
|
2933
2966
|
return null;
|
|
2934
2967
|
}
|
|
2935
2968
|
}
|
|
2936
|
-
function
|
|
2969
|
+
function tr() {
|
|
2937
2970
|
try {
|
|
2938
|
-
sessionStorage.setItem(
|
|
2971
|
+
sessionStorage.setItem(Vt, "1");
|
|
2939
2972
|
} catch {
|
|
2940
2973
|
}
|
|
2941
2974
|
}
|
|
2942
|
-
function
|
|
2975
|
+
function qo(e) {
|
|
2943
2976
|
try {
|
|
2944
|
-
sessionStorage.setItem(
|
|
2977
|
+
sessionStorage.setItem(Gt, e);
|
|
2945
2978
|
} catch {
|
|
2946
2979
|
}
|
|
2947
2980
|
}
|
|
2948
|
-
function
|
|
2949
|
-
|
|
2981
|
+
function dt() {
|
|
2982
|
+
Ue = !1;
|
|
2950
2983
|
try {
|
|
2951
|
-
sessionStorage.removeItem(
|
|
2984
|
+
sessionStorage.removeItem(Vt), sessionStorage.removeItem(Gt);
|
|
2952
2985
|
} catch {
|
|
2953
2986
|
}
|
|
2954
2987
|
}
|
|
2955
|
-
async function
|
|
2988
|
+
async function Qo(e) {
|
|
2956
2989
|
if (!e || typeof e.setLoading != "function")
|
|
2957
2990
|
throw new Error("signInWithSSO: deps.setLoading обязателен");
|
|
2958
2991
|
if (typeof e.getPublicConfig != "function")
|
|
@@ -2963,37 +2996,37 @@ async function jo(e) {
|
|
|
2963
2996
|
throw new Error("signInWithSSO: deps.showError обязателен");
|
|
2964
2997
|
if (typeof window > "u")
|
|
2965
2998
|
return;
|
|
2966
|
-
const t = e.redirectTo ?? ((
|
|
2967
|
-
window.location.href =
|
|
2968
|
-
}),
|
|
2999
|
+
const t = e.redirectTo ?? ((u) => {
|
|
3000
|
+
window.location.href = u;
|
|
3001
|
+
}), s = {
|
|
2969
3002
|
maxAge: 300,
|
|
2970
3003
|
sameSite: "lax",
|
|
2971
3004
|
secure: (e.isSecure ?? (() => window.location.protocol === "https:"))(),
|
|
2972
3005
|
path: "/"
|
|
2973
3006
|
}, n = () => {
|
|
2974
|
-
const
|
|
2975
|
-
return typeof
|
|
3007
|
+
const u = e.useCookie("pkce_state", s).value;
|
|
3008
|
+
return typeof u == "string" && u.length > 0 ? u : null;
|
|
2976
3009
|
}, a = () => {
|
|
2977
|
-
const
|
|
2978
|
-
return n() ? (
|
|
3010
|
+
const u = Bo();
|
|
3011
|
+
return n() ? (Ue = !0, tr(), u && t(u), !0) : !1;
|
|
2979
3012
|
};
|
|
2980
|
-
if (
|
|
3013
|
+
if (Ue)
|
|
2981
3014
|
return;
|
|
2982
|
-
if (
|
|
3015
|
+
if (Zo()) {
|
|
2983
3016
|
if (a())
|
|
2984
3017
|
return;
|
|
2985
|
-
|
|
3018
|
+
dt();
|
|
2986
3019
|
}
|
|
2987
3020
|
e.setLoading(!0);
|
|
2988
|
-
const i = e.generatePkcePair ??
|
|
3021
|
+
const i = e.generatePkcePair ?? Vo, l = e.generateState ?? Go;
|
|
2989
3022
|
try {
|
|
2990
|
-
const { authApiUrl:
|
|
2991
|
-
if (!
|
|
3023
|
+
const { authApiUrl: u, ssoClientId: f, origin: M } = e.getPublicConfig();
|
|
3024
|
+
if (!u || !f)
|
|
2992
3025
|
throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");
|
|
2993
3026
|
if (typeof M != "string" || M !== window.location.origin) {
|
|
2994
3027
|
e.setLoading(!1), e.showError({
|
|
2995
3028
|
statusCode: 400,
|
|
2996
|
-
statusMessage:
|
|
3029
|
+
statusMessage: zo
|
|
2997
3030
|
});
|
|
2998
3031
|
return;
|
|
2999
3032
|
}
|
|
@@ -3001,33 +3034,39 @@ async function jo(e) {
|
|
|
3001
3034
|
e.setLoading(!1);
|
|
3002
3035
|
return;
|
|
3003
3036
|
}
|
|
3004
|
-
|
|
3005
|
-
let
|
|
3037
|
+
Ue = !0, tr();
|
|
3038
|
+
let x, L, at;
|
|
3006
3039
|
try {
|
|
3007
|
-
({ codeVerifier:
|
|
3040
|
+
({ codeVerifier: x, codeChallenge: L } = await i()), at = l();
|
|
3008
3041
|
} catch {
|
|
3009
|
-
|
|
3042
|
+
dt(), e.setLoading(!1), e.showError({
|
|
3010
3043
|
statusCode: 500,
|
|
3011
|
-
statusMessage:
|
|
3044
|
+
statusMessage: jo
|
|
3012
3045
|
});
|
|
3013
3046
|
return;
|
|
3014
3047
|
}
|
|
3015
|
-
e.useCookie("pkce_verifier",
|
|
3016
|
-
const
|
|
3048
|
+
e.useCookie("pkce_verifier", s).value = x, e.useCookie("pkce_state", s).value = at;
|
|
3049
|
+
const $r = `${M}/api/auth/callback`, jt = `${u}/oauth/authorize?` + new URLSearchParams({
|
|
3017
3050
|
client_id: f,
|
|
3018
|
-
redirect_uri:
|
|
3051
|
+
redirect_uri: $r,
|
|
3019
3052
|
response_type: "code",
|
|
3020
3053
|
scope: "*",
|
|
3021
3054
|
code_challenge: L,
|
|
3022
3055
|
code_challenge_method: "S256",
|
|
3023
|
-
state:
|
|
3056
|
+
state: at
|
|
3057
|
+
});
|
|
3058
|
+
qo(jt), t(jt);
|
|
3059
|
+
} catch (u) {
|
|
3060
|
+
dt(), e.setLoading(!1);
|
|
3061
|
+
const f = pt(u, 500), M = u instanceof Error && u.message.trim() ? u.message : Xr(f);
|
|
3062
|
+
e.showError({
|
|
3063
|
+
statusCode: f,
|
|
3064
|
+
statusMessage: M,
|
|
3065
|
+
cause: u
|
|
3024
3066
|
});
|
|
3025
|
-
Go(Ut), t(Ut);
|
|
3026
|
-
} catch {
|
|
3027
|
-
lt(), e.setLoading(!1);
|
|
3028
3067
|
}
|
|
3029
3068
|
}
|
|
3030
|
-
const
|
|
3069
|
+
const Xo = /* @__PURE__ */ _e({
|
|
3031
3070
|
__name: "SsoLoginScreen",
|
|
3032
3071
|
props: {
|
|
3033
3072
|
title: {},
|
|
@@ -3048,24 +3087,30 @@ const Bo = /* @__PURE__ */ _e({
|
|
|
3048
3087
|
throw new Error("SsoLoginScreen: useCookie обязателен");
|
|
3049
3088
|
if (typeof t.showError != "function")
|
|
3050
3089
|
throw new Error("SsoLoginScreen: showError обязателен");
|
|
3051
|
-
return
|
|
3090
|
+
return Qo({
|
|
3052
3091
|
setLoading: () => {
|
|
3053
3092
|
},
|
|
3054
3093
|
getPublicConfig: t.getPublicConfig,
|
|
3055
3094
|
useCookie: t.useCookie,
|
|
3056
3095
|
showError: t.showError
|
|
3057
|
-
})
|
|
3058
|
-
|
|
3059
|
-
|
|
3096
|
+
}).catch((r) => {
|
|
3097
|
+
t.showError({
|
|
3098
|
+
statusCode: pt(r, 500),
|
|
3099
|
+
statusMessage: r instanceof Error && r.message.trim() ? r.message : Xr(pt(r, 500)),
|
|
3100
|
+
cause: r
|
|
3101
|
+
});
|
|
3102
|
+
}), (r, s) => (b(), sr(Eo, {
|
|
3103
|
+
title: r.title,
|
|
3104
|
+
"status-text": r.statusText
|
|
3060
3105
|
}, null, 8, ["title", "status-text"]));
|
|
3061
3106
|
}
|
|
3062
3107
|
});
|
|
3063
3108
|
export {
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3109
|
+
bo as Footer,
|
|
3110
|
+
Ms as Header,
|
|
3111
|
+
Ko as LoginLayoutFrame,
|
|
3112
|
+
nr as Logo,
|
|
3113
|
+
Eo as SsoLoginPending,
|
|
3114
|
+
Xo as SsoLoginScreen,
|
|
3115
|
+
Qo as signInWithSSO
|
|
3071
3116
|
};
|