@cccsaurora/clue-ui 1.2.3 → 1.2.4-dev.278

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.
Files changed (188) hide show
  1. package/ActionForm-BdW0Za1y.js +5956 -0
  2. package/AnnotationDetails-BHZFzyt-.js +175 -0
  3. package/AnnotationPreview-DGoyoxRb.js +188 -0
  4. package/ClueEnrichContext-CJEJxrgs.js +541 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_MapCache-WmuDdwuH.js +222 -0
  7. package/_Uint8Array-B7JqpgFX.js +128 -0
  8. package/_baseAssignValue-CGTuELqU.js +25 -0
  9. package/_baseClone-CkNrTyhm.js +283 -0
  10. package/_baseExtremum-kob8QXyt.js +18 -0
  11. package/_baseFlatten-jIR_sN_-.js +92 -0
  12. package/_baseGet-Bx3A4Qfp.js +108 -0
  13. package/_baseIsEqual-C5OTWzTk.js +208 -0
  14. package/_baseIteratee-avi7MX2o.js +126 -0
  15. package/_baseSlice-GAv_YFTT.js +20 -0
  16. package/_baseSum-D0WC1dN0.js +13 -0
  17. package/_baseUniq-BI9GIHMF.js +115 -0
  18. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  19. package/_createAggregator-QD8MzKwe.js +63 -0
  20. package/_getPrototype-CU0j_POw.js +5 -0
  21. package/_getTag-Ckxxfr88.js +126 -0
  22. package/_isIterateeCall-Ds3sw2SF.js +17 -0
  23. package/_setToArray-CaPKQhcz.js +33 -0
  24. package/cloneDeep-DJrLSw8W.js +8 -0
  25. package/components/AnnotationBody.js +49 -35
  26. package/components/AnnotationDetailPopover.js +36 -30
  27. package/components/AnnotationDetails.js +7 -7
  28. package/components/AnnotationEntry.js +35 -35
  29. package/components/AnnotationPreview.js +5 -5
  30. package/components/ClassificationChip.js +44 -23
  31. package/components/CountBadge.js +31 -26
  32. package/components/EnrichedCard.js +110 -97
  33. package/components/EnrichedChip.js +130 -105
  34. package/components/EnrichedTypography.js +133 -107
  35. package/components/ErrorBoundary.js +28 -24
  36. package/components/RetryFailedEnrichments.js +10 -9
  37. package/components/SourcePicker.js +57 -49
  38. package/components/actions/ActionForm.js +4 -4
  39. package/components/actions/ExecutePopover.js +75 -59
  40. package/components/actions/ResultModal.js +4 -4
  41. package/components/actions/form/schemaAdapter.js +39 -23
  42. package/components/actions/formats/FileResult.js +86 -59
  43. package/components/actions/formats/index.js +21 -10
  44. package/components/display/graph/ExpandMoreButton.js +10 -10
  45. package/components/display/graph/elements/NodeCard.js +111 -91
  46. package/components/display/graph/elements/NodeTag.js +15 -13
  47. package/components/display/graph/index.js +261 -202
  48. package/components/display/graph/visualizations/Leaf.js +88 -69
  49. package/components/display/graph/visualizations/cloud/index.js +98 -81
  50. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  51. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  52. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  53. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  56. package/components/display/graph/visualizations/icons/index.js +14 -13
  57. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  58. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  59. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  60. package/components/display/graph/visualizations/tree/index.js +408 -306
  61. package/components/display/icons/Iconified.js +27 -12
  62. package/components/display/json/index.js +4 -4
  63. package/components/display/markdown/index.js +8678 -5770
  64. package/components/enrichment/EnrichPopover.js +54 -46
  65. package/components/fetchers/Fetcher.js +158 -119
  66. package/components/fetchers/PreviewModal.js +20 -17
  67. package/components/fetchers/StatusChip.js +21 -17
  68. package/components/group/Entry.js +13 -11
  69. package/components/group/Group.js +13 -10
  70. package/components/group/GroupControl.js +76 -65
  71. package/components/stats/QueryStatus.js +43 -33
  72. package/countBy-c6S3dvSW.js +14 -0
  73. package/data/event.js +6 -4
  74. package/database/index.js +2 -2
  75. package/debounce-bV0h5FC5.js +92 -0
  76. package/en/translation.json +1 -1
  77. package/fr/translation.json +1 -1
  78. package/get-DSsNkRQs.js +8 -0
  79. package/groupBy-xqz-n0Vd.js +14 -0
  80. package/hooks/ClueActionContext.js +6 -6
  81. package/hooks/ClueComponentContext.js +29 -23
  82. package/hooks/ClueConfigProvider.js +14 -12
  83. package/hooks/ClueDatabaseContext.js +19 -13
  84. package/hooks/ClueEnrichContext.js +8 -8
  85. package/hooks/ClueFetcherContext.js +83 -56
  86. package/hooks/ClueGroupContext.js +17 -14
  87. package/hooks/CluePopupContext.js +5 -5
  88. package/hooks/ClueProvider.js +12 -10
  89. package/hooks/selectors.js +7 -7
  90. package/hooks/useActionResult.d.ts +1 -0
  91. package/hooks/useActionResult.js +4 -2
  92. package/hooks/useAnnotations.js +47 -31
  93. package/hooks/useClue.js +6 -4
  94. package/hooks/useClueActions.js +3 -3
  95. package/hooks/useClueConfig.js +6 -4
  96. package/hooks/useClueTypeConfig.js +3 -3
  97. package/hooks/useComparator.js +722 -435
  98. package/hooks/useErrors.js +22 -18
  99. package/hooks/useFetcherResult.d.ts +1 -0
  100. package/hooks/useFetcherResult.js +33 -24
  101. package/hooks/useMyHighlights.js +66 -36
  102. package/hooks/useMyLocalStorage.js +66 -37
  103. package/iconify-CXMreGTg.js +1782 -0
  104. package/icons/Action.js +66 -49
  105. package/icons/Assessment.js +85 -69
  106. package/icons/Context.js +77 -63
  107. package/icons/Opinion.js +76 -60
  108. package/icons/iconMap.js +2 -2
  109. package/identity-CPGTqrE4.js +6 -0
  110. package/index-AMfoEg_6.js +696 -0
  111. package/index-B6C2a_Lg.js +1172 -0
  112. package/index-C12gPw2W.js +17698 -0
  113. package/index-DCKkHTvx.js +15750 -0
  114. package/index-JcKyZeoY.js +465 -0
  115. package/isNil-CIubwp4T.js +6 -0
  116. package/isObject-FTY-5JQX.js +7 -0
  117. package/isObjectLike-OAgjjZye.js +48 -0
  118. package/isSymbol-Xd2FsJyp.js +8 -0
  119. package/last-CUCl67Im.js +7 -0
  120. package/main.js +60 -60
  121. package/maxBy-IKHzFrCS.js +8 -0
  122. package/package.json +1 -1
  123. package/sortBy-DfSj8IoJ.js +96 -0
  124. package/sumBy-D-hb_NY-.js +8 -0
  125. package/text/Frequency.js +42 -23
  126. package/toFinite-Bc55msYj.js +16 -0
  127. package/toNumber-DPxy1FBy.js +39 -0
  128. package/types/WithActionData.d.ts +2 -1
  129. package/useClueTypeConfig-Z1LFp01b.js +3289 -0
  130. package/utils/chain.js +92 -65
  131. package/utils/classificationParser.js +519 -256
  132. package/utils/constants.js +35 -10
  133. package/utils/graph.js +72 -45
  134. package/utils/hashUtil.js +7 -7
  135. package/utils/line.js +131 -81
  136. package/utils/loggerUtil.js +5 -3
  137. package/utils/sessionStorage.js +41 -27
  138. package/utils/time.js +423 -423
  139. package/utils/utils.js +9 -9
  140. package/utils/window.js +21 -10
  141. package/utils-HmNPuoDB.js +199 -0
  142. package/ActionForm-DlOXqMUx.js +0 -4460
  143. package/AnnotationDetails-Bk-p0F6h.js +0 -160
  144. package/AnnotationPreview-jzZvkCxJ.js +0 -140
  145. package/ClueEnrichContext-KqRuuWNS.js +0 -418
  146. package/FlexOne-BXWFOd1T.js +0 -6
  147. package/_MapCache-BiTi0iqu.js +0 -180
  148. package/_Uint8Array-BQNOM9Rr.js +0 -101
  149. package/_baseAssignValue-CNMLQZco.js +0 -20
  150. package/_baseClone-BnT-6pyM.js +0 -207
  151. package/_baseExtremum-Ca2EHgy2.js +0 -16
  152. package/_baseFlatten-Bfr_Molw.js +0 -72
  153. package/_baseGet-DSZygzyq.js +0 -79
  154. package/_baseIsEqual-VgvaAFZG.js +0 -147
  155. package/_baseIteratee-Dbfsw5z8.js +0 -95
  156. package/_baseSlice-M5RKzt1A.js +0 -10
  157. package/_baseSum-wEbgNeUs.js +0 -10
  158. package/_baseUniq-BJcj69PL.js +0 -79
  159. package/_commonjsHelpers-DaMA6jEr.js +0 -8
  160. package/_createAggregator-k3TuAnxT.js +0 -53
  161. package/_getPrototype-Cr1Mk7BC.js +0 -5
  162. package/_getTag-CK2Sffaq.js +0 -90
  163. package/_isIterateeCall-DkJP7Rbx.js +0 -13
  164. package/_setToArray-C7yMOeww.js +0 -29
  165. package/cloneDeep-CF8TtLHr.js +0 -8
  166. package/countBy-CdYegFSu.js +0 -8
  167. package/debounce-DryYcbJ4.js +0 -56
  168. package/get-CH7kz5Ix.js +0 -8
  169. package/groupBy-br8xmD2R.js +0 -8
  170. package/iconify-BBckr5AQ.js +0 -1263
  171. package/identity-ByMq8VxU.js +0 -6
  172. package/index-BHAe_V9n.js +0 -12768
  173. package/index-BK-zfYhR.js +0 -358
  174. package/index-CA5CUNZO.js +0 -975
  175. package/index-Dj5C04IX.js +0 -568
  176. package/index-p5_wX7q1.js +0 -11729
  177. package/isNil-CjWwlQS3.js +0 -6
  178. package/isObject-B53jY8Qg.js +0 -7
  179. package/isObjectLike-BatpeCIi.js +0 -29
  180. package/isSymbol-C3_SC0Qp.js +0 -8
  181. package/last-7CdUxN0r.js +0 -7
  182. package/maxBy-Bc0dYHcO.js +0 -8
  183. package/sortBy-DY2JBf9n.js +0 -75
  184. package/sumBy-DuMASLPd.js +0 -8
  185. package/toFinite-BMy6GObD.js +0 -14
  186. package/toNumber-YVhnnJv4.js +0 -31
  187. package/useClueTypeConfig-Ct9Ygter.js +0 -2292
  188. package/utils-DmwSUrum.js +0 -129
package/utils/time.js CHANGED
@@ -1,536 +1,536 @@
1
- import { c as G, g as Q } from "../_commonjsHelpers-DaMA6jEr.js";
2
- var X = { exports: {} };
3
- (function(z, K) {
4
- (function(H, v) {
5
- z.exports = v();
6
- })(G, function() {
7
- var H = 1e3, v = 6e4, N = 36e5, j = "millisecond", _ = "second", w = "minute", $ = "hour", m = "day", O = "week", M = "month", W = "quarter", T = "year", Y = "date", o = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
8
- var r = ["th", "st", "nd", "rd"], t = i % 100;
9
- return "[" + i + (r[(t - 20) % 10] || r[t] || r[0]) + "]";
10
- } }, p = function(i, r, t) {
11
- var u = String(i);
12
- return !u || u.length >= r ? i : "" + Array(r + 1 - u.length).join(t) + i;
13
- }, F = { s: p, z: function(i) {
14
- var r = -i.utcOffset(), t = Math.abs(r), u = Math.floor(t / 60), n = t % 60;
15
- return (r <= 0 ? "+" : "-") + p(u, 2, "0") + ":" + p(n, 2, "0");
16
- }, m: function i(r, t) {
17
- if (r.date() < t.date()) return -i(t, r);
18
- var u = 12 * (t.year() - r.year()) + (t.month() - r.month()), n = r.clone().add(u, M), h = t - n < 0, f = r.clone().add(u + (h ? -1 : 1), M);
19
- return +(-(u + (t - n) / (h ? n - f : f - n)) || 0);
20
- }, a: function(i) {
21
- return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
22
- }, p: function(i) {
23
- return { M, y: T, w: O, d: m, D: Y, h: $, m: w, s: _, ms: j, Q: W }[i] || String(i || "").toLowerCase().replace(/s$/, "");
24
- }, u: function(i) {
25
- return i === void 0;
26
- } }, D = "en", c = {};
27
- c[D] = L;
28
- var s = "$isDayjsObject", e = function(i) {
29
- return i instanceof x || !(!i || !i[s]);
30
- }, l = function i(r, t, u) {
31
- var n;
32
- if (!r) return D;
33
- if (typeof r == "string") {
34
- var h = r.toLowerCase();
35
- c[h] && (n = h), t && (c[h] = t, n = h);
36
- var f = r.split("-");
37
- if (!n && f.length > 1) return i(f[0]);
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "../_commonjsHelpers-DWwsNxpa.js";
2
+ var dayjs_min = { exports: {} };
3
+ (function(module, exports$1) {
4
+ !function(t, e) {
5
+ module.exports = e();
6
+ }(commonjsGlobal, function() {
7
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
8
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
9
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
10
+ } }, m = function(t2, e2, n2) {
11
+ var r2 = String(t2);
12
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
13
+ }, v = { s: m, z: function(t2) {
14
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
15
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
16
+ }, m: function t2(e2, n2) {
17
+ if (e2.date() < n2.date()) return -t2(n2, e2);
18
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
19
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
20
+ }, a: function(t2) {
21
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
22
+ }, p: function(t2) {
23
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
24
+ }, u: function(t2) {
25
+ return void 0 === t2;
26
+ } }, g = "en", D = {};
27
+ D[g] = M;
28
+ var p = "$isDayjsObject", S = function(t2) {
29
+ return t2 instanceof _ || !(!t2 || !t2[p]);
30
+ }, w = function t2(e2, n2, r2) {
31
+ var i2;
32
+ if (!e2) return g;
33
+ if ("string" == typeof e2) {
34
+ var s2 = e2.toLowerCase();
35
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
36
+ var u2 = e2.split("-");
37
+ if (!i2 && u2.length > 1) return t2(u2[0]);
38
38
  } else {
39
- var y = r.name;
40
- c[y] = r, n = y;
39
+ var a2 = e2.name;
40
+ D[a2] = e2, i2 = a2;
41
41
  }
42
- return !u && n && (D = n), n || !u && D;
43
- }, d = function(i, r) {
44
- if (e(i)) return i.clone();
45
- var t = typeof r == "object" ? r : {};
46
- return t.date = i, t.args = arguments, new x(t);
47
- }, a = F;
48
- a.l = l, a.i = e, a.w = function(i, r) {
49
- return d(i, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
42
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
43
+ }, O = function(t2, e2) {
44
+ if (S(t2)) return t2.clone();
45
+ var n2 = "object" == typeof e2 ? e2 : {};
46
+ return n2.date = t2, n2.args = arguments, new _(n2);
47
+ }, b = v;
48
+ b.l = w, b.i = S, b.w = function(t2, e2) {
49
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
50
50
  };
51
- var x = function() {
52
- function i(t) {
53
- this.$L = l(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[s] = !0;
51
+ var _ = function() {
52
+ function M2(t2) {
53
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
54
54
  }
55
- var r = i.prototype;
56
- return r.parse = function(t) {
57
- this.$d = function(u) {
58
- var n = u.date, h = u.utc;
59
- if (n === null) return /* @__PURE__ */ new Date(NaN);
60
- if (a.u(n)) return /* @__PURE__ */ new Date();
61
- if (n instanceof Date) return new Date(n);
62
- if (typeof n == "string" && !/Z$/i.test(n)) {
63
- var f = n.match(g);
64
- if (f) {
65
- var y = f[2] - 1 || 0, S = (f[7] || "0").substring(0, 3);
66
- return h ? new Date(Date.UTC(f[1], y, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, S)) : new Date(f[1], y, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, S);
55
+ var m2 = M2.prototype;
56
+ return m2.parse = function(t2) {
57
+ this.$d = function(t3) {
58
+ var e2 = t3.date, n2 = t3.utc;
59
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
60
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
61
+ if (e2 instanceof Date) return new Date(e2);
62
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
63
+ var r2 = e2.match($);
64
+ if (r2) {
65
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
66
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
67
67
  }
68
68
  }
69
- return new Date(n);
70
- }(t), this.init();
71
- }, r.init = function() {
72
- var t = this.$d;
73
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
74
- }, r.$utils = function() {
75
- return a;
76
- }, r.isValid = function() {
77
- return this.$d.toString() !== o;
78
- }, r.isSame = function(t, u) {
79
- var n = d(t);
80
- return this.startOf(u) <= n && n <= this.endOf(u);
81
- }, r.isAfter = function(t, u) {
82
- return d(t) < this.startOf(u);
83
- }, r.isBefore = function(t, u) {
84
- return this.endOf(u) < d(t);
85
- }, r.$g = function(t, u, n) {
86
- return a.u(t) ? this[u] : this.set(n, t);
87
- }, r.unix = function() {
69
+ return new Date(e2);
70
+ }(t2), this.init();
71
+ }, m2.init = function() {
72
+ var t2 = this.$d;
73
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
74
+ }, m2.$utils = function() {
75
+ return b;
76
+ }, m2.isValid = function() {
77
+ return !(this.$d.toString() === l);
78
+ }, m2.isSame = function(t2, e2) {
79
+ var n2 = O(t2);
80
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
81
+ }, m2.isAfter = function(t2, e2) {
82
+ return O(t2) < this.startOf(e2);
83
+ }, m2.isBefore = function(t2, e2) {
84
+ return this.endOf(e2) < O(t2);
85
+ }, m2.$g = function(t2, e2, n2) {
86
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
87
+ }, m2.unix = function() {
88
88
  return Math.floor(this.valueOf() / 1e3);
89
- }, r.valueOf = function() {
89
+ }, m2.valueOf = function() {
90
90
  return this.$d.getTime();
91
- }, r.startOf = function(t, u) {
92
- var n = this, h = !!a.u(u) || u, f = a.p(t), y = function(Z, I) {
93
- var E = a.w(n.$u ? Date.UTC(n.$y, I, Z) : new Date(n.$y, I, Z), n);
94
- return h ? E : E.endOf(m);
95
- }, S = function(Z, I) {
96
- return a.w(n.toDate()[Z].apply(n.toDate("s"), (h ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(I)), n);
97
- }, k = this.$W, U = this.$M, A = this.$D, J = "set" + (this.$u ? "UTC" : "");
98
- switch (f) {
99
- case T:
100
- return h ? y(1, 0) : y(31, 11);
101
- case M:
102
- return h ? y(1, U) : y(0, U + 1);
103
- case O:
104
- var P = this.$locale().weekStart || 0, B = (k < P ? k + 7 : k) - P;
105
- return y(h ? A - B : A + (6 - B), U);
106
- case m:
107
- case Y:
108
- return S(J + "Hours", 0);
109
- case $:
110
- return S(J + "Minutes", 1);
111
- case w:
112
- return S(J + "Seconds", 2);
113
- case _:
114
- return S(J + "Milliseconds", 3);
91
+ }, m2.startOf = function(t2, e2) {
92
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
93
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
94
+ return r2 ? i2 : i2.endOf(a);
95
+ }, $2 = function(t3, e3) {
96
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
97
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
98
+ switch (f2) {
99
+ case h:
100
+ return r2 ? l2(1, 0) : l2(31, 11);
101
+ case c:
102
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
103
+ case o:
104
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
105
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
106
+ case a:
107
+ case d:
108
+ return $2(v2 + "Hours", 0);
109
+ case u:
110
+ return $2(v2 + "Minutes", 1);
111
+ case s:
112
+ return $2(v2 + "Seconds", 2);
113
+ case i:
114
+ return $2(v2 + "Milliseconds", 3);
115
115
  default:
116
116
  return this.clone();
117
117
  }
118
- }, r.endOf = function(t) {
119
- return this.startOf(t, !1);
120
- }, r.$set = function(t, u) {
121
- var n, h = a.p(t), f = "set" + (this.$u ? "UTC" : ""), y = (n = {}, n[m] = f + "Date", n[Y] = f + "Date", n[M] = f + "Month", n[T] = f + "FullYear", n[$] = f + "Hours", n[w] = f + "Minutes", n[_] = f + "Seconds", n[j] = f + "Milliseconds", n)[h], S = h === m ? this.$D + (u - this.$W) : u;
122
- if (h === M || h === T) {
123
- var k = this.clone().set(Y, 1);
124
- k.$d[y](S), k.init(), this.$d = k.set(Y, Math.min(this.$D, k.daysInMonth())).$d;
125
- } else y && this.$d[y](S);
118
+ }, m2.endOf = function(t2) {
119
+ return this.startOf(t2, false);
120
+ }, m2.$set = function(t2, e2) {
121
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
122
+ if (o2 === c || o2 === h) {
123
+ var y2 = this.clone().set(d, 1);
124
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
125
+ } else l2 && this.$d[l2]($2);
126
126
  return this.init(), this;
127
- }, r.set = function(t, u) {
128
- return this.clone().$set(t, u);
129
- }, r.get = function(t) {
130
- return this[a.p(t)]();
131
- }, r.add = function(t, u) {
132
- var n, h = this;
133
- t = Number(t);
134
- var f = a.p(u), y = function(U) {
135
- var A = d(h);
136
- return a.w(A.date(A.date() + Math.round(U * t)), h);
127
+ }, m2.set = function(t2, e2) {
128
+ return this.clone().$set(t2, e2);
129
+ }, m2.get = function(t2) {
130
+ return this[b.p(t2)]();
131
+ }, m2.add = function(r2, f2) {
132
+ var d2, l2 = this;
133
+ r2 = Number(r2);
134
+ var $2 = b.p(f2), y2 = function(t2) {
135
+ var e2 = O(l2);
136
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
137
137
  };
138
- if (f === M) return this.set(M, this.$M + t);
139
- if (f === T) return this.set(T, this.$y + t);
140
- if (f === m) return y(1);
141
- if (f === O) return y(7);
142
- var S = (n = {}, n[w] = v, n[$] = N, n[_] = H, n)[f] || 1, k = this.$d.getTime() + t * S;
143
- return a.w(k, this);
144
- }, r.subtract = function(t, u) {
145
- return this.add(-1 * t, u);
146
- }, r.format = function(t) {
147
- var u = this, n = this.$locale();
148
- if (!this.isValid()) return n.invalidDate || o;
149
- var h = t || "YYYY-MM-DDTHH:mm:ssZ", f = a.z(this), y = this.$H, S = this.$m, k = this.$M, U = n.weekdays, A = n.months, J = n.meridiem, P = function(I, E, V, q) {
150
- return I && (I[E] || I(u, h)) || V[E].slice(0, q);
151
- }, B = function(I) {
152
- return a.s(y % 12 || 12, I, "0");
153
- }, Z = J || function(I, E, V) {
154
- var q = I < 12 ? "AM" : "PM";
155
- return V ? q.toLowerCase() : q;
138
+ if ($2 === c) return this.set(c, this.$M + r2);
139
+ if ($2 === h) return this.set(h, this.$y + r2);
140
+ if ($2 === a) return y2(1);
141
+ if ($2 === o) return y2(7);
142
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
143
+ return b.w(m3, this);
144
+ }, m2.subtract = function(t2, e2) {
145
+ return this.add(-1 * t2, e2);
146
+ }, m2.format = function(t2) {
147
+ var e2 = this, n2 = this.$locale();
148
+ if (!this.isValid()) return n2.invalidDate || l;
149
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
150
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
151
+ }, d2 = function(t3) {
152
+ return b.s(s2 % 12 || 12, t3, "0");
153
+ }, $2 = f2 || function(t3, e3, n3) {
154
+ var r3 = t3 < 12 ? "AM" : "PM";
155
+ return n3 ? r3.toLowerCase() : r3;
156
156
  };
157
- return h.replace(b, function(I, E) {
158
- return E || function(V) {
159
- switch (V) {
157
+ return r2.replace(y, function(t3, r3) {
158
+ return r3 || function(t4) {
159
+ switch (t4) {
160
160
  case "YY":
161
- return String(u.$y).slice(-2);
161
+ return String(e2.$y).slice(-2);
162
162
  case "YYYY":
163
- return a.s(u.$y, 4, "0");
163
+ return b.s(e2.$y, 4, "0");
164
164
  case "M":
165
- return k + 1;
165
+ return a2 + 1;
166
166
  case "MM":
167
- return a.s(k + 1, 2, "0");
167
+ return b.s(a2 + 1, 2, "0");
168
168
  case "MMM":
169
- return P(n.monthsShort, k, A, 3);
169
+ return h2(n2.monthsShort, a2, c2, 3);
170
170
  case "MMMM":
171
- return P(A, k);
171
+ return h2(c2, a2);
172
172
  case "D":
173
- return u.$D;
173
+ return e2.$D;
174
174
  case "DD":
175
- return a.s(u.$D, 2, "0");
175
+ return b.s(e2.$D, 2, "0");
176
176
  case "d":
177
- return String(u.$W);
177
+ return String(e2.$W);
178
178
  case "dd":
179
- return P(n.weekdaysMin, u.$W, U, 2);
179
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
180
180
  case "ddd":
181
- return P(n.weekdaysShort, u.$W, U, 3);
181
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
182
182
  case "dddd":
183
- return U[u.$W];
183
+ return o2[e2.$W];
184
184
  case "H":
185
- return String(y);
185
+ return String(s2);
186
186
  case "HH":
187
- return a.s(y, 2, "0");
187
+ return b.s(s2, 2, "0");
188
188
  case "h":
189
- return B(1);
189
+ return d2(1);
190
190
  case "hh":
191
- return B(2);
191
+ return d2(2);
192
192
  case "a":
193
- return Z(y, S, !0);
193
+ return $2(s2, u2, true);
194
194
  case "A":
195
- return Z(y, S, !1);
195
+ return $2(s2, u2, false);
196
196
  case "m":
197
- return String(S);
197
+ return String(u2);
198
198
  case "mm":
199
- return a.s(S, 2, "0");
199
+ return b.s(u2, 2, "0");
200
200
  case "s":
201
- return String(u.$s);
201
+ return String(e2.$s);
202
202
  case "ss":
203
- return a.s(u.$s, 2, "0");
203
+ return b.s(e2.$s, 2, "0");
204
204
  case "SSS":
205
- return a.s(u.$ms, 3, "0");
205
+ return b.s(e2.$ms, 3, "0");
206
206
  case "Z":
207
- return f;
207
+ return i2;
208
208
  }
209
209
  return null;
210
- }(I) || f.replace(":", "");
210
+ }(t3) || i2.replace(":", "");
211
211
  });
212
- }, r.utcOffset = function() {
212
+ }, m2.utcOffset = function() {
213
213
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
214
- }, r.diff = function(t, u, n) {
215
- var h, f = this, y = a.p(u), S = d(t), k = (S.utcOffset() - this.utcOffset()) * v, U = this - S, A = function() {
216
- return a.m(f, S);
214
+ }, m2.diff = function(r2, d2, l2) {
215
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
216
+ return b.m(y2, m3);
217
217
  };
218
- switch (y) {
219
- case T:
220
- h = A() / 12;
218
+ switch (M3) {
219
+ case h:
220
+ $2 = D2() / 12;
221
221
  break;
222
- case M:
223
- h = A();
222
+ case c:
223
+ $2 = D2();
224
224
  break;
225
- case W:
226
- h = A() / 3;
225
+ case f:
226
+ $2 = D2() / 3;
227
227
  break;
228
- case O:
229
- h = (U - k) / 6048e5;
228
+ case o:
229
+ $2 = (g2 - v2) / 6048e5;
230
230
  break;
231
- case m:
232
- h = (U - k) / 864e5;
231
+ case a:
232
+ $2 = (g2 - v2) / 864e5;
233
233
  break;
234
- case $:
235
- h = U / N;
234
+ case u:
235
+ $2 = g2 / n;
236
236
  break;
237
- case w:
238
- h = U / v;
237
+ case s:
238
+ $2 = g2 / e;
239
239
  break;
240
- case _:
241
- h = U / H;
240
+ case i:
241
+ $2 = g2 / t;
242
242
  break;
243
243
  default:
244
- h = U;
244
+ $2 = g2;
245
245
  }
246
- return n ? h : a.a(h);
247
- }, r.daysInMonth = function() {
248
- return this.endOf(M).$D;
249
- }, r.$locale = function() {
250
- return c[this.$L];
251
- }, r.locale = function(t, u) {
252
- if (!t) return this.$L;
253
- var n = this.clone(), h = l(t, u, !0);
254
- return h && (n.$L = h), n;
255
- }, r.clone = function() {
256
- return a.w(this.$d, this);
257
- }, r.toDate = function() {
246
+ return l2 ? $2 : b.a($2);
247
+ }, m2.daysInMonth = function() {
248
+ return this.endOf(c).$D;
249
+ }, m2.$locale = function() {
250
+ return D[this.$L];
251
+ }, m2.locale = function(t2, e2) {
252
+ if (!t2) return this.$L;
253
+ var n2 = this.clone(), r2 = w(t2, e2, true);
254
+ return r2 && (n2.$L = r2), n2;
255
+ }, m2.clone = function() {
256
+ return b.w(this.$d, this);
257
+ }, m2.toDate = function() {
258
258
  return new Date(this.valueOf());
259
- }, r.toJSON = function() {
259
+ }, m2.toJSON = function() {
260
260
  return this.isValid() ? this.toISOString() : null;
261
- }, r.toISOString = function() {
261
+ }, m2.toISOString = function() {
262
262
  return this.$d.toISOString();
263
- }, r.toString = function() {
263
+ }, m2.toString = function() {
264
264
  return this.$d.toUTCString();
265
- }, i;
266
- }(), C = x.prototype;
267
- return d.prototype = C, [["$ms", j], ["$s", _], ["$m", w], ["$H", $], ["$W", m], ["$M", M], ["$y", T], ["$D", Y]].forEach(function(i) {
268
- C[i[1]] = function(r) {
269
- return this.$g(r, i[0], i[1]);
265
+ }, M2;
266
+ }(), k = _.prototype;
267
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
268
+ k[t2[1]] = function(e2) {
269
+ return this.$g(e2, t2[0], t2[1]);
270
270
  };
271
- }), d.extend = function(i, r) {
272
- return i.$i || (i(r, x, d), i.$i = !0), d;
273
- }, d.locale = l, d.isDayjs = e, d.unix = function(i) {
274
- return d(1e3 * i);
275
- }, d.en = c[D], d.Ls = c, d.p = {}, d;
271
+ }), O.extend = function(t2, e2) {
272
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
273
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
274
+ return O(1e3 * t2);
275
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
276
276
  });
277
- })(X);
278
- var rt = X.exports;
279
- const R = /* @__PURE__ */ Q(rt);
280
- var tt = { exports: {} };
281
- (function(z, K) {
282
- (function(H, v) {
283
- z.exports = v();
284
- })(G, function() {
285
- var H, v, N = 1e3, j = 6e4, _ = 36e5, w = 864e5, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = 31536e6, O = 2628e6, M = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, W = { years: m, months: O, days: w, hours: _, minutes: j, seconds: N, milliseconds: 1, weeks: 6048e5 }, T = function(c) {
286
- return c instanceof F;
287
- }, Y = function(c, s, e) {
288
- return new F(c, e, s.$l);
289
- }, o = function(c) {
290
- return v.p(c) + "s";
291
- }, g = function(c) {
292
- return c < 0;
293
- }, b = function(c) {
294
- return g(c) ? Math.ceil(c) : Math.floor(c);
295
- }, L = function(c) {
296
- return Math.abs(c);
297
- }, p = function(c, s) {
298
- return c ? g(c) ? { negative: !0, format: "" + L(c) + s } : { negative: !1, format: "" + c + s } : { negative: !1, format: "" };
299
- }, F = function() {
300
- function c(e, l, d) {
301
- var a = this;
302
- if (this.$d = {}, this.$l = d, e === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), l) return Y(e * W[o(l)], this);
303
- if (typeof e == "number") return this.$ms = e, this.parseFromMilliseconds(), this;
304
- if (typeof e == "object") return Object.keys(e).forEach(function(i) {
305
- a.$d[o(i)] = e[i];
277
+ })(dayjs_min);
278
+ var dayjs_minExports = dayjs_min.exports;
279
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
280
+ var duration$1 = { exports: {} };
281
+ (function(module, exports$1) {
282
+ !function(t, s) {
283
+ module.exports = s();
284
+ }(commonjsGlobal, function() {
285
+ var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
286
+ return t2 instanceof g;
287
+ }, f = function(t2, s2, n2) {
288
+ return new g(t2, n2, s2.$l);
289
+ }, m = function(t2) {
290
+ return s.p(t2) + "s";
291
+ }, l = function(t2) {
292
+ return t2 < 0;
293
+ }, $ = function(t2) {
294
+ return l(t2) ? Math.ceil(t2) : Math.floor(t2);
295
+ }, y = function(t2) {
296
+ return Math.abs(t2);
297
+ }, v = function(t2, s2) {
298
+ return t2 ? l(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
299
+ }, g = function() {
300
+ function l2(t2, s2, n2) {
301
+ var i2 = this;
302
+ if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s2) return f(t2 * h[m(s2)], this);
303
+ if ("number" == typeof t2) return this.$ms = t2, this.parseFromMilliseconds(), this;
304
+ if ("object" == typeof t2) return Object.keys(t2).forEach(function(s3) {
305
+ i2.$d[m(s3)] = t2[s3];
306
306
  }), this.calMilliseconds(), this;
307
- if (typeof e == "string") {
308
- var x = e.match(M);
309
- if (x) {
310
- var C = x.slice(2).map(function(i) {
311
- return i != null ? Number(i) : 0;
307
+ if ("string" == typeof t2) {
308
+ var e2 = t2.match(a);
309
+ if (e2) {
310
+ var r2 = e2.slice(2).map(function(t3) {
311
+ return null != t3 ? Number(t3) : 0;
312
312
  });
313
- return this.$d.years = C[0], this.$d.months = C[1], this.$d.weeks = C[2], this.$d.days = C[3], this.$d.hours = C[4], this.$d.minutes = C[5], this.$d.seconds = C[6], this.calMilliseconds(), this;
313
+ return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
314
314
  }
315
315
  }
316
316
  return this;
317
317
  }
318
- var s = c.prototype;
319
- return s.calMilliseconds = function() {
320
- var e = this;
321
- this.$ms = Object.keys(this.$d).reduce(function(l, d) {
322
- return l + (e.$d[d] || 0) * W[d];
318
+ var y2 = l2.prototype;
319
+ return y2.calMilliseconds = function() {
320
+ var t2 = this;
321
+ this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
322
+ return s2 + (t2.$d[n2] || 0) * h[n2];
323
323
  }, 0);
324
- }, s.parseFromMilliseconds = function() {
325
- var e = this.$ms;
326
- this.$d.years = b(e / m), e %= m, this.$d.months = b(e / O), e %= O, this.$d.days = b(e / w), e %= w, this.$d.hours = b(e / _), e %= _, this.$d.minutes = b(e / j), e %= j, this.$d.seconds = b(e / N), e %= N, this.$d.milliseconds = e;
327
- }, s.toISOString = function() {
328
- var e = p(this.$d.years, "Y"), l = p(this.$d.months, "M"), d = +this.$d.days || 0;
329
- this.$d.weeks && (d += 7 * this.$d.weeks);
330
- var a = p(d, "D"), x = p(this.$d.hours, "H"), C = p(this.$d.minutes, "M"), i = this.$d.seconds || 0;
331
- this.$d.milliseconds && (i += this.$d.milliseconds / 1e3, i = Math.round(1e3 * i) / 1e3);
332
- var r = p(i, "S"), t = e.negative || l.negative || a.negative || x.negative || C.negative || r.negative, u = x.format || C.format || r.format ? "T" : "", n = (t ? "-" : "") + "P" + e.format + l.format + a.format + u + x.format + C.format + r.format;
333
- return n === "P" || n === "-P" ? "P0D" : n;
334
- }, s.toJSON = function() {
324
+ }, y2.parseFromMilliseconds = function() {
325
+ var t2 = this.$ms;
326
+ this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / d), t2 %= d, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
327
+ }, y2.toISOString = function() {
328
+ var t2 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
329
+ this.$d.weeks && (n2 += 7 * this.$d.weeks);
330
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
331
+ this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
332
+ var u2 = v(o2, "S"), d2 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
333
+ return "P" === h2 || "-P" === h2 ? "P0D" : h2;
334
+ }, y2.toJSON = function() {
335
335
  return this.toISOString();
336
- }, s.format = function(e) {
337
- var l = e || "YYYY-MM-DDTHH:mm:ss", d = { Y: this.$d.years, YY: v.s(this.$d.years, 2, "0"), YYYY: v.s(this.$d.years, 4, "0"), M: this.$d.months, MM: v.s(this.$d.months, 2, "0"), D: this.$d.days, DD: v.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: v.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: v.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: v.s(this.$d.seconds, 2, "0"), SSS: v.s(this.$d.milliseconds, 3, "0") };
338
- return l.replace($, function(a, x) {
339
- return x || String(d[a]);
336
+ }, y2.format = function(t2) {
337
+ var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s.s(this.$d.years, 2, "0"), YYYY: s.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s.s(this.$d.seconds, 2, "0"), SSS: s.s(this.$d.milliseconds, 3, "0") };
338
+ return n2.replace(o, function(t3, s2) {
339
+ return s2 || String(i2[t3]);
340
340
  });
341
- }, s.as = function(e) {
342
- return this.$ms / W[o(e)];
343
- }, s.get = function(e) {
344
- var l = this.$ms, d = o(e);
345
- return d === "milliseconds" ? l %= 1e3 : l = d === "weeks" ? b(l / W[d]) : this.$d[d], l || 0;
346
- }, s.add = function(e, l, d) {
347
- var a;
348
- return a = l ? e * W[o(l)] : T(e) ? e.$ms : Y(e, this).$ms, Y(this.$ms + a * (d ? -1 : 1), this);
349
- }, s.subtract = function(e, l) {
350
- return this.add(e, l, !0);
351
- }, s.locale = function(e) {
352
- var l = this.clone();
353
- return l.$l = e, l;
354
- }, s.clone = function() {
355
- return Y(this.$ms, this);
356
- }, s.humanize = function(e) {
357
- return H().add(this.$ms, "ms").locale(this.$l).fromNow(!e);
358
- }, s.valueOf = function() {
341
+ }, y2.as = function(t2) {
342
+ return this.$ms / h[m(t2)];
343
+ }, y2.get = function(t2) {
344
+ var s2 = this.$ms, n2 = m(t2);
345
+ return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / h[n2]) : this.$d[n2], s2 || 0;
346
+ }, y2.add = function(t2, s2, n2) {
347
+ var i2;
348
+ return i2 = s2 ? t2 * h[m(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
349
+ }, y2.subtract = function(t2, s2) {
350
+ return this.add(t2, s2, true);
351
+ }, y2.locale = function(t2) {
352
+ var s2 = this.clone();
353
+ return s2.$l = t2, s2;
354
+ }, y2.clone = function() {
355
+ return f(this.$ms, this);
356
+ }, y2.humanize = function(s2) {
357
+ return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
358
+ }, y2.valueOf = function() {
359
359
  return this.asMilliseconds();
360
- }, s.milliseconds = function() {
360
+ }, y2.milliseconds = function() {
361
361
  return this.get("milliseconds");
362
- }, s.asMilliseconds = function() {
362
+ }, y2.asMilliseconds = function() {
363
363
  return this.as("milliseconds");
364
- }, s.seconds = function() {
364
+ }, y2.seconds = function() {
365
365
  return this.get("seconds");
366
- }, s.asSeconds = function() {
366
+ }, y2.asSeconds = function() {
367
367
  return this.as("seconds");
368
- }, s.minutes = function() {
368
+ }, y2.minutes = function() {
369
369
  return this.get("minutes");
370
- }, s.asMinutes = function() {
370
+ }, y2.asMinutes = function() {
371
371
  return this.as("minutes");
372
- }, s.hours = function() {
372
+ }, y2.hours = function() {
373
373
  return this.get("hours");
374
- }, s.asHours = function() {
374
+ }, y2.asHours = function() {
375
375
  return this.as("hours");
376
- }, s.days = function() {
376
+ }, y2.days = function() {
377
377
  return this.get("days");
378
- }, s.asDays = function() {
378
+ }, y2.asDays = function() {
379
379
  return this.as("days");
380
- }, s.weeks = function() {
380
+ }, y2.weeks = function() {
381
381
  return this.get("weeks");
382
- }, s.asWeeks = function() {
382
+ }, y2.asWeeks = function() {
383
383
  return this.as("weeks");
384
- }, s.months = function() {
384
+ }, y2.months = function() {
385
385
  return this.get("months");
386
- }, s.asMonths = function() {
386
+ }, y2.asMonths = function() {
387
387
  return this.as("months");
388
- }, s.years = function() {
388
+ }, y2.years = function() {
389
389
  return this.get("years");
390
- }, s.asYears = function() {
390
+ }, y2.asYears = function() {
391
391
  return this.as("years");
392
- }, c;
393
- }(), D = function(c, s, e) {
394
- return c.add(s.years() * e, "y").add(s.months() * e, "M").add(s.days() * e, "d").add(s.hours() * e, "h").add(s.minutes() * e, "m").add(s.seconds() * e, "s").add(s.milliseconds() * e, "ms");
392
+ }, l2;
393
+ }(), p = function(t2, s2, n2) {
394
+ return t2.add(s2.years() * n2, "y").add(s2.months() * n2, "M").add(s2.days() * n2, "d").add(s2.hours() * n2, "h").add(s2.minutes() * n2, "m").add(s2.seconds() * n2, "s").add(s2.milliseconds() * n2, "ms");
395
395
  };
396
- return function(c, s, e) {
397
- H = e, v = e().$utils(), e.duration = function(a, x) {
398
- var C = e.locale();
399
- return Y(a, { $l: C }, x);
400
- }, e.isDuration = T;
401
- var l = s.prototype.add, d = s.prototype.subtract;
402
- s.prototype.add = function(a, x) {
403
- return T(a) ? D(this, a, 1) : l.bind(this)(a, x);
404
- }, s.prototype.subtract = function(a, x) {
405
- return T(a) ? D(this, a, -1) : d.bind(this)(a, x);
396
+ return function(n2, i2, e2) {
397
+ t = e2, s = e2().$utils(), e2.duration = function(t2, s2) {
398
+ var n3 = e2.locale();
399
+ return f(t2, { $l: n3 }, s2);
400
+ }, e2.isDuration = c;
401
+ var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
402
+ i2.prototype.add = function(t2, s2) {
403
+ return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s2);
404
+ }, i2.prototype.subtract = function(t2, s2) {
405
+ return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s2);
406
406
  };
407
407
  };
408
408
  });
409
- })(tt);
410
- var st = tt.exports;
411
- const it = /* @__PURE__ */ Q(st);
412
- var et = { exports: {} };
413
- (function(z, K) {
414
- (function(H, v) {
415
- z.exports = v();
416
- })(G, function() {
417
- return function(H, v, N) {
418
- H = H || {};
419
- var j = v.prototype, _ = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
420
- function w(m, O, M, W) {
421
- return j.fromToBase(m, O, M, W);
409
+ })(duration$1);
410
+ var durationExports = duration$1.exports;
411
+ const duration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
412
+ var relativeTime$1 = { exports: {} };
413
+ (function(module, exports$1) {
414
+ !function(r, e) {
415
+ module.exports = e();
416
+ }(commonjsGlobal, function() {
417
+ return function(r, e, t) {
418
+ r = r || {};
419
+ var n = e.prototype, o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
420
+ function i(r2, e2, t2, o2) {
421
+ return n.fromToBase(r2, e2, t2, o2);
422
422
  }
423
- N.en.relativeTime = _, j.fromToBase = function(m, O, M, W, T) {
424
- for (var Y, o, g, b = M.$locale().relativeTime || _, L = H.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], p = L.length, F = 0; F < p; F += 1) {
425
- var D = L[F];
426
- D.d && (Y = W ? N(m).diff(M, D.d, !0) : M.diff(m, D.d, !0));
427
- var c = (H.rounding || Math.round)(Math.abs(Y));
428
- if (g = Y > 0, c <= D.r || !D.r) {
429
- c <= 1 && F > 0 && (D = L[F - 1]);
430
- var s = b[D.l];
431
- T && (c = T("" + c)), o = typeof s == "string" ? s.replace("%d", c) : s(c, O, D.l, g);
423
+ t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
424
+ for (var f, a, s, l = i2.$locale().relativeTime || o, h = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
425
+ var y = h[c];
426
+ y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
427
+ var p = (r.rounding || Math.round)(Math.abs(f));
428
+ if (s = f > 0, p <= y.r || !y.r) {
429
+ p <= 1 && c > 0 && (y = h[c - 1]);
430
+ var v = l[y.l];
431
+ u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s);
432
432
  break;
433
433
  }
434
434
  }
435
- if (O) return o;
436
- var e = g ? b.future : b.past;
437
- return typeof e == "function" ? e(o) : e.replace("%s", o);
438
- }, j.to = function(m, O) {
439
- return w(m, O, this, !0);
440
- }, j.from = function(m, O) {
441
- return w(m, O, this);
435
+ if (n2) return a;
436
+ var M = s ? l.future : l.past;
437
+ return "function" == typeof M ? M(a) : M.replace("%s", a);
438
+ }, n.to = function(r2, e2) {
439
+ return i(r2, e2, this, true);
440
+ }, n.from = function(r2, e2) {
441
+ return i(r2, e2, this);
442
442
  };
443
- var $ = function(m) {
444
- return m.$u ? N.utc() : N();
443
+ var d = function(r2) {
444
+ return r2.$u ? t.utc() : t();
445
445
  };
446
- j.toNow = function(m) {
447
- return this.to($(this), m);
448
- }, j.fromNow = function(m) {
449
- return this.from($(this), m);
446
+ n.toNow = function(r2) {
447
+ return this.to(d(this), r2);
448
+ }, n.fromNow = function(r2) {
449
+ return this.from(d(this), r2);
450
450
  };
451
451
  };
452
452
  });
453
- })(et);
454
- var ut = et.exports;
455
- const ot = /* @__PURE__ */ Q(ut);
456
- var nt = { exports: {} };
457
- (function(z, K) {
458
- (function(H, v) {
459
- z.exports = v();
460
- })(G, function() {
461
- var H = "minute", v = /[+-]\d\d(?::?\d\d)?/g, N = /([+-]|\d\d)/g;
462
- return function(j, _, w) {
463
- var $ = _.prototype;
464
- w.utc = function(o) {
465
- var g = { date: o, utc: !0, args: arguments };
466
- return new _(g);
467
- }, $.utc = function(o) {
468
- var g = w(this.toDate(), { locale: this.$L, utc: !0 });
469
- return o ? g.add(this.utcOffset(), H) : g;
470
- }, $.local = function() {
471
- return w(this.toDate(), { locale: this.$L, utc: !1 });
453
+ })(relativeTime$1);
454
+ var relativeTimeExports = relativeTime$1.exports;
455
+ const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
456
+ var utc$1 = { exports: {} };
457
+ (function(module, exports$1) {
458
+ !function(t, i) {
459
+ module.exports = i();
460
+ }(commonjsGlobal, function() {
461
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
462
+ return function(s, f, n) {
463
+ var u = f.prototype;
464
+ n.utc = function(t2) {
465
+ var i2 = { date: t2, utc: true, args: arguments };
466
+ return new f(i2);
467
+ }, u.utc = function(i2) {
468
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
469
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
470
+ }, u.local = function() {
471
+ return n(this.toDate(), { locale: this.$L, utc: false });
472
472
  };
473
- var m = $.parse;
474
- $.parse = function(o) {
475
- o.utc && (this.$u = !0), this.$utils().u(o.$offset) || (this.$offset = o.$offset), m.call(this, o);
473
+ var r = u.parse;
474
+ u.parse = function(t2) {
475
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
476
476
  };
477
- var O = $.init;
478
- $.init = function() {
477
+ var o = u.init;
478
+ u.init = function() {
479
479
  if (this.$u) {
480
- var o = this.$d;
481
- this.$y = o.getUTCFullYear(), this.$M = o.getUTCMonth(), this.$D = o.getUTCDate(), this.$W = o.getUTCDay(), this.$H = o.getUTCHours(), this.$m = o.getUTCMinutes(), this.$s = o.getUTCSeconds(), this.$ms = o.getUTCMilliseconds();
482
- } else O.call(this);
480
+ var t2 = this.$d;
481
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
482
+ } else o.call(this);
483
483
  };
484
- var M = $.utcOffset;
485
- $.utcOffset = function(o, g) {
486
- var b = this.$utils().u;
487
- if (b(o)) return this.$u ? 0 : b(this.$offset) ? M.call(this) : this.$offset;
488
- if (typeof o == "string" && (o = function(D) {
489
- D === void 0 && (D = "");
490
- var c = D.match(v);
491
- if (!c) return null;
492
- var s = ("" + c[0]).match(N) || ["-", 0, 0], e = s[0], l = 60 * +s[1] + +s[2];
493
- return l === 0 ? 0 : e === "+" ? l : -l;
494
- }(o), o === null)) return this;
495
- var L = Math.abs(o) <= 16 ? 60 * o : o;
496
- if (L === 0) return this.utc(g);
497
- var p = this.clone();
498
- if (g) return p.$offset = L, p.$u = !1, p;
499
- var F = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
500
- return (p = this.local().add(L + F, H)).$offset = L, p.$x.$localOffset = F, p;
484
+ var a = u.utcOffset;
485
+ u.utcOffset = function(s2, f2) {
486
+ var n2 = this.$utils().u;
487
+ if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
488
+ if ("string" == typeof s2 && (s2 = function(t2) {
489
+ void 0 === t2 && (t2 = "");
490
+ var s3 = t2.match(i);
491
+ if (!s3) return null;
492
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
493
+ return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
494
+ }(s2), null === s2)) return this;
495
+ var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
496
+ if (0 === u2) return this.utc(f2);
497
+ var r2 = this.clone();
498
+ if (f2) return r2.$offset = u2, r2.$u = false, r2;
499
+ var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
500
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
501
501
  };
502
- var W = $.format;
503
- $.format = function(o) {
504
- var g = o || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
505
- return W.call(this, g);
506
- }, $.valueOf = function() {
507
- var o = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
508
- return this.$d.valueOf() - 6e4 * o;
509
- }, $.isUTC = function() {
502
+ var h = u.format;
503
+ u.format = function(t2) {
504
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
505
+ return h.call(this, i2);
506
+ }, u.valueOf = function() {
507
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
508
+ return this.$d.valueOf() - 6e4 * t2;
509
+ }, u.isUTC = function() {
510
510
  return !!this.$u;
511
- }, $.toISOString = function() {
511
+ }, u.toISOString = function() {
512
512
  return this.toDate().toISOString();
513
- }, $.toString = function() {
513
+ }, u.toString = function() {
514
514
  return this.toDate().toUTCString();
515
515
  };
516
- var T = $.toDate;
517
- $.toDate = function(o) {
518
- return o === "s" && this.$offset ? w(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : T.call(this);
516
+ var l = u.toDate;
517
+ u.toDate = function(t2) {
518
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
519
519
  };
520
- var Y = $.diff;
521
- $.diff = function(o, g, b) {
522
- if (o && this.$u === o.$u) return Y.call(this, o, g, b);
523
- var L = this.local(), p = w(o).local();
524
- return Y.call(L, p, g, b);
520
+ var c = u.diff;
521
+ u.diff = function(t2, i2, e2) {
522
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
523
+ var s2 = this.local(), f2 = n(t2).local();
524
+ return c.call(s2, f2, i2, e2);
525
525
  };
526
526
  };
527
527
  });
528
- })(nt);
529
- var at = nt.exports;
530
- const ct = /* @__PURE__ */ Q(at);
531
- R.extend(ct);
532
- R.extend(it);
533
- R.extend(ot);
528
+ })(utc$1);
529
+ var utcExports = utc$1.exports;
530
+ const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
531
+ dayjs.extend(utc);
532
+ dayjs.extend(duration);
533
+ dayjs.extend(relativeTime);
534
534
  export {
535
- R as dayjs
535
+ dayjs
536
536
  };