@genexus/genexus-ide-ui 1.1.47 → 1.1.49

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 (137) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
  3. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  4. package/dist/cjs/gx-ide-name-picker.cjs.entry.js +109 -0
  5. package/dist/cjs/gx-ide-name-picker.cjs.entry.js.map +1 -0
  6. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
  8. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
  9. package/dist/cjs/gx-ide-plugin-details.cjs.entry.js +1 -1
  10. package/dist/cjs/gx-ide-plugin-details.cjs.entry.js.map +1 -1
  11. package/dist/cjs/gx-ide-select-user-team.cjs.entry.js +1 -1
  12. package/dist/cjs/gx-ide-select-user-team.cjs.entry.js.map +1 -1
  13. package/dist/cjs/gx-ide-start-page.cjs.entry.js +20 -38
  14. package/dist/cjs/gx-ide-start-page.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +2 -2
  16. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
  17. package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +1 -1
  18. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
  19. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +2 -2
  20. package/dist/cjs/gx-ide-ww-files.cjs.entry.js +1 -1
  21. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
  22. package/dist/cjs/{helpers-263b5f4e.js → helpers-21c9cd02.js} +7 -3
  23. package/dist/cjs/helpers-21c9cd02.js.map +1 -0
  24. package/dist/cjs/loader.cjs.js +1 -1
  25. package/dist/cjs/{tabular-grid-render-b1767da2.js → tabular-grid-render-4350dbaf.js} +2 -2
  26. package/dist/cjs/{tabular-grid-render-b1767da2.js.map → tabular-grid-render-4350dbaf.js.map} +1 -1
  27. package/dist/collection/collection-manifest.json +1 -0
  28. package/dist/collection/common/helpers.js +7 -3
  29. package/dist/collection/common/helpers.js.map +1 -1
  30. package/dist/collection/components/name-picker/gx-ide-assets/name-picker/langs/name-picker.lang.en.json +13 -0
  31. package/dist/collection/components/name-picker/gx-ide-assets/name-picker/langs/name-picker.lang.ja.json +13 -0
  32. package/dist/collection/components/name-picker/gx-ide-assets/name-picker/langs/name-picker.lang.zh.json +13 -0
  33. package/dist/collection/components/name-picker/name-picker.css +21 -0
  34. package/dist/collection/components/name-picker/name-picker.js +184 -0
  35. package/dist/collection/components/name-picker/name-picker.js.map +1 -0
  36. package/dist/collection/components/plugin-details/plugin-details.css +1 -3
  37. package/dist/collection/components/select-user-team/select-user-team.css +2 -0
  38. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.en.json +0 -4
  39. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.ja.json +0 -4
  40. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.zh.json +0 -4
  41. package/dist/collection/components/start-page/start-page.css +13 -100
  42. package/dist/collection/components/start-page/start-page.js +44 -109
  43. package/dist/collection/components/start-page/start-page.js.map +1 -1
  44. package/dist/collection/testing/locale.e2e.js +1 -0
  45. package/dist/collection/testing/locale.e2e.js.map +1 -1
  46. package/dist/components/gx-ide-name-picker.d.ts +11 -0
  47. package/dist/components/gx-ide-name-picker.js +131 -0
  48. package/dist/components/gx-ide-name-picker.js.map +1 -0
  49. package/dist/components/gx-ide-plugin-details.js +1 -1
  50. package/dist/components/gx-ide-plugin-details.js.map +1 -1
  51. package/dist/components/gx-ide-select-user-team.js +1 -1
  52. package/dist/components/gx-ide-select-user-team.js.map +1 -1
  53. package/dist/components/gx-ide-start-page.js +23 -43
  54. package/dist/components/gx-ide-start-page.js.map +1 -1
  55. package/dist/components/helpers.js +6 -2
  56. package/dist/components/helpers.js.map +1 -1
  57. package/dist/esm/genexus-ide-ui.js +1 -1
  58. package/dist/esm/gx-ide-ai-message.entry.js +1 -1
  59. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  60. package/dist/esm/gx-ide-name-picker.entry.js +105 -0
  61. package/dist/esm/gx-ide-name-picker.entry.js.map +1 -0
  62. package/dist/esm/gx-ide-new-environment.entry.js +1 -1
  63. package/dist/esm/gx-ide-new-kb.entry.js +1 -1
  64. package/dist/esm/gx-ide-object-selector.entry.js +1 -1
  65. package/dist/esm/gx-ide-plugin-details.entry.js +1 -1
  66. package/dist/esm/gx-ide-plugin-details.entry.js.map +1 -1
  67. package/dist/esm/gx-ide-select-user-team.entry.js +1 -1
  68. package/dist/esm/gx-ide-select-user-team.entry.js.map +1 -1
  69. package/dist/esm/gx-ide-start-page.entry.js +20 -38
  70. package/dist/esm/gx-ide-start-page.entry.js.map +1 -1
  71. package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +2 -2
  72. package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
  73. package/dist/esm/gx-ide-team-dev-history.entry.js +1 -1
  74. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
  75. package/dist/esm/gx-ide-team-dev-update.entry.js +2 -2
  76. package/dist/esm/gx-ide-ww-files.entry.js +1 -1
  77. package/dist/esm/gx-ide-ww-images.entry.js +1 -1
  78. package/dist/esm/{helpers-b180a2d1.js → helpers-7960f084.js} +7 -3
  79. package/dist/esm/helpers-7960f084.js.map +1 -0
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/{tabular-grid-render-96d67a8c.js → tabular-grid-render-f7eb612b.js} +2 -2
  82. package/dist/esm/{tabular-grid-render-96d67a8c.js.map → tabular-grid-render-f7eb612b.js.map} +1 -1
  83. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  84. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  85. package/dist/genexus-ide-ui/gx-ide-assets/name-picker/langs/name-picker.lang.en.json +13 -0
  86. package/dist/genexus-ide-ui/gx-ide-assets/name-picker/langs/name-picker.lang.ja.json +13 -0
  87. package/dist/genexus-ide-ui/gx-ide-assets/name-picker/langs/name-picker.lang.zh.json +13 -0
  88. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.en.json +0 -4
  89. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.ja.json +0 -4
  90. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.zh.json +0 -4
  91. package/dist/genexus-ide-ui/{p-137a252f.entry.js → p-12b563fe.entry.js} +2 -2
  92. package/dist/genexus-ide-ui/{p-57ed2623.entry.js → p-2b38e18e.entry.js} +2 -2
  93. package/dist/genexus-ide-ui/{p-af975c83.entry.js → p-4b680e46.entry.js} +2 -2
  94. package/dist/genexus-ide-ui/{p-6f5cf136.entry.js → p-4cc2b3e6.entry.js} +6 -6
  95. package/dist/genexus-ide-ui/p-4cc2b3e6.entry.js.map +1 -0
  96. package/dist/genexus-ide-ui/{p-a58048e9.entry.js → p-4e3ad78d.entry.js} +3 -3
  97. package/dist/genexus-ide-ui/{p-3ccd331f.entry.js → p-5624d287.entry.js} +2 -2
  98. package/dist/genexus-ide-ui/{p-24573081.entry.js → p-59908901.entry.js} +2 -2
  99. package/dist/genexus-ide-ui/{p-18bbaa49.entry.js → p-60302626.entry.js} +26 -26
  100. package/dist/genexus-ide-ui/p-60302626.entry.js.map +1 -0
  101. package/dist/genexus-ide-ui/{p-11a60dbe.entry.js → p-646ddf49.entry.js} +2 -2
  102. package/dist/genexus-ide-ui/{p-c8270f7d.js → p-77c2e69d.js} +2 -2
  103. package/dist/genexus-ide-ui/{p-31c1b79d.entry.js → p-7f091892.entry.js} +2 -2
  104. package/dist/genexus-ide-ui/{p-1972b953.js → p-8c15538c.js} +13 -10
  105. package/dist/genexus-ide-ui/p-8c15538c.js.map +1 -0
  106. package/dist/genexus-ide-ui/{p-072419f9.entry.js → p-8c867f9a.entry.js} +2 -2
  107. package/dist/genexus-ide-ui/{p-d18c51fe.entry.js → p-a7883e6b.entry.js} +3 -3
  108. package/dist/genexus-ide-ui/{p-7a28161f.entry.js → p-c1ad1cc6.entry.js} +2 -2
  109. package/dist/genexus-ide-ui/{p-ab1e2886.entry.js → p-e2b0ee82.entry.js} +549 -575
  110. package/dist/genexus-ide-ui/p-e2b0ee82.entry.js.map +1 -0
  111. package/dist/genexus-ide-ui/p-e3bce13e.entry.js +143 -0
  112. package/dist/genexus-ide-ui/p-e3bce13e.entry.js.map +1 -0
  113. package/dist/genexus-ide-ui/{p-083d8e94.entry.js → p-ed87224f.entry.js} +3 -3
  114. package/dist/types/components/name-picker/name-picker.d.ts +27 -0
  115. package/dist/types/components/start-page/start-page.d.ts +19 -32
  116. package/dist/types/components.d.ts +45 -20
  117. package/package.json +1 -1
  118. package/dist/cjs/helpers-263b5f4e.js.map +0 -1
  119. package/dist/collection/pages/assets/images/plugin/python-logo.svg +0 -16
  120. package/dist/esm/helpers-b180a2d1.js.map +0 -1
  121. package/dist/genexus-ide-ui/p-18bbaa49.entry.js.map +0 -1
  122. package/dist/genexus-ide-ui/p-1972b953.js.map +0 -1
  123. package/dist/genexus-ide-ui/p-6f5cf136.entry.js.map +0 -1
  124. package/dist/genexus-ide-ui/p-ab1e2886.entry.js.map +0 -1
  125. /package/dist/genexus-ide-ui/{p-137a252f.entry.js.map → p-12b563fe.entry.js.map} +0 -0
  126. /package/dist/genexus-ide-ui/{p-57ed2623.entry.js.map → p-2b38e18e.entry.js.map} +0 -0
  127. /package/dist/genexus-ide-ui/{p-af975c83.entry.js.map → p-4b680e46.entry.js.map} +0 -0
  128. /package/dist/genexus-ide-ui/{p-a58048e9.entry.js.map → p-4e3ad78d.entry.js.map} +0 -0
  129. /package/dist/genexus-ide-ui/{p-3ccd331f.entry.js.map → p-5624d287.entry.js.map} +0 -0
  130. /package/dist/genexus-ide-ui/{p-24573081.entry.js.map → p-59908901.entry.js.map} +0 -0
  131. /package/dist/genexus-ide-ui/{p-11a60dbe.entry.js.map → p-646ddf49.entry.js.map} +0 -0
  132. /package/dist/genexus-ide-ui/{p-c8270f7d.js.map → p-77c2e69d.js.map} +0 -0
  133. /package/dist/genexus-ide-ui/{p-31c1b79d.entry.js.map → p-7f091892.entry.js.map} +0 -0
  134. /package/dist/genexus-ide-ui/{p-072419f9.entry.js.map → p-8c867f9a.entry.js.map} +0 -0
  135. /package/dist/genexus-ide-ui/{p-d18c51fe.entry.js.map → p-a7883e6b.entry.js.map} +0 -0
  136. /package/dist/genexus-ide-ui/{p-7a28161f.entry.js.map → p-c1ad1cc6.entry.js.map} +0 -0
  137. /package/dist/genexus-ide-ui/{p-083d8e94.entry.js.map → p-ed87224f.entry.js.map} +0 -0
@@ -1,10 +1,8 @@
1
- import { r as n, h as e, H as t, a } from "./p-97107ecc.js";
1
+ import { r as e, h as t, H as n, a } from "./p-97107ecc.js";
2
2
 
3
- import { g as i } from "./p-401bfc97.js";
3
+ import { g as o } from "./p-401bfc97.js";
4
4
 
5
- import { L as o } from "./p-311eedf3.js";
6
-
7
- import { f as r } from "./p-1972b953.js";
5
+ import { L as r } from "./p-311eedf3.js";
8
6
 
9
7
  /**
10
8
  * @module constants
@@ -26,13 +24,13 @@ import { f as r } from "./p-1972b953.js";
26
24
  * @constant
27
25
  * @name minutesInMonth
28
26
  * @summary Minutes in 1 month.
29
- */ const s = 43200;
27
+ */ const i = 43200;
30
28
 
31
29
  /**
32
30
  * @constant
33
31
  * @name minutesInDay
34
32
  * @summary Minutes in 1 day.
35
- */ const c = 1440;
33
+ */ const s = 1440;
36
34
 
37
35
  /**
38
36
  * @constant
@@ -44,7 +42,7 @@ import { f as r } from "./p-1972b953.js";
44
42
  * from the reference date to the new date. It's useful for extensions like
45
43
  * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
46
44
  * a constructor argument.
47
- */ const d = Symbol.for("constructDateFrom");
45
+ */ const c = Symbol.for("constructDateFrom");
48
46
 
49
47
  /**
50
48
  * @name constructFrom
@@ -80,11 +78,11 @@ import { f as r } from "./p-1972b953.js";
80
78
  * date.getTime() // Use the date value to create a new date
81
79
  * );
82
80
  * }
83
- */ function constructFrom(n, e) {
84
- if (typeof n === "function") return n(e);
85
- if (n && typeof n === "object" && d in n) return n[d](e);
86
- if (n instanceof Date) return new n.constructor(e);
87
- return new Date(e);
81
+ */ function constructFrom(e, t) {
82
+ if (typeof e === "function") return e(t);
83
+ if (e && typeof e === "object" && c in e) return e[c](t);
84
+ if (e instanceof Date) return new e.constructor(t);
85
+ return new Date(t);
88
86
  }
89
87
 
90
88
  /**
@@ -124,15 +122,15 @@ import { f as r } from "./p-1972b953.js";
124
122
  * // Convert the timestamp to date:
125
123
  * const result = toDate(1392098430000)
126
124
  * //=> Tue Feb 11 2014 11:30:30
127
- */ function toDate(n, e) {
125
+ */ function toDate(e, t) {
128
126
  // [TODO] Get rid of `toDate` or `constructFrom`?
129
- return constructFrom(e || n, n);
127
+ return constructFrom(t || e, e);
130
128
  }
131
129
 
132
- let l = {};
130
+ let d = {};
133
131
 
134
132
  function getDefaultOptions() {
135
- return l;
133
+ return d;
136
134
  }
137
135
 
138
136
  /**
@@ -164,15 +162,15 @@ function getDefaultOptions() {
164
162
  * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
165
163
  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
166
164
  * //=> Mon Sep 01 2014 00:00:00
167
- */ function startOfWeek(n, e) {
168
- const t = getDefaultOptions();
169
- const a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0;
170
- const i = toDate(n, e?.in);
171
- const o = i.getDay();
172
- const r = (o < a ? 7 : 0) + o - a;
173
- i.setDate(i.getDate() - r);
174
- i.setHours(0, 0, 0, 0);
175
- return i;
165
+ */ function startOfWeek(e, t) {
166
+ const n = getDefaultOptions();
167
+ const a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0;
168
+ const o = toDate(e, t?.in);
169
+ const r = o.getDay();
170
+ const i = (r < a ? 7 : 0) + r - a;
171
+ o.setDate(o.getDate() - i);
172
+ o.setHours(0, 0, 0, 0);
173
+ return o;
176
174
  }
177
175
 
178
176
  /**
@@ -185,16 +183,16 @@ function getDefaultOptions() {
185
183
  * which would lead to incorrect calculations.
186
184
  *
187
185
  * This function returns the timezone offset in milliseconds that takes seconds in account.
188
- */ function getTimezoneOffsetInMilliseconds(n) {
189
- const e = toDate(n);
190
- const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
191
- t.setUTCFullYear(e.getFullYear());
192
- return +n - +t;
186
+ */ function getTimezoneOffsetInMilliseconds(e) {
187
+ const t = toDate(e);
188
+ const n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
189
+ n.setUTCFullYear(t.getFullYear());
190
+ return +e - +n;
193
191
  }
194
192
 
195
- function normalizeDates(n, ...e) {
196
- const t = constructFrom.bind(null, n || e.find((n => typeof n === "object")));
197
- return e.map(t);
193
+ function normalizeDates(e, ...t) {
194
+ const n = constructFrom.bind(null, e || t.find((e => typeof e === "object")));
195
+ return t.map(n);
198
196
  }
199
197
 
200
198
  /**
@@ -228,11 +226,11 @@ function normalizeDates(n, ...e) {
228
226
  * // Mon Jul 10 1989 00:00:00,
229
227
  * // Sun Jul 02 1995 00:00:00
230
228
  * // ]
231
- */ function compareAsc(n, e) {
232
- const t = +toDate(n) - +toDate(e);
233
- if (t < 0) return -1; else if (t > 0) return 1;
229
+ */ function compareAsc(e, t) {
230
+ const n = +toDate(e) - +toDate(t);
231
+ if (n < 0) return -1; else if (n > 0) return 1;
234
232
  // Return 0 if diff is 0; return NaN if diff is NaN
235
- return t;
233
+ return n;
236
234
  }
237
235
 
238
236
  /**
@@ -262,8 +260,8 @@ function normalizeDates(n, ...e) {
262
260
  * // differently in different timezones and return false for the same date.
263
261
  * return isSameDay(date, constructNow(date));
264
262
  * }
265
- */ function constructNow(n) {
266
- return constructFrom(n, Date.now());
263
+ */ function constructNow(e) {
264
+ return constructFrom(e, Date.now());
267
265
  }
268
266
 
269
267
  /**
@@ -290,17 +288,17 @@ function normalizeDates(n, ...e) {
290
288
  * new Date(2014, 0, 31)
291
289
  * )
292
290
  * //=> 8
293
- */ function differenceInCalendarMonths(n, e, t) {
294
- const [a, i] = normalizeDates(t?.in, n, e);
295
- const o = a.getFullYear() - i.getFullYear();
296
- const r = a.getMonth() - i.getMonth();
297
- return o * 12 + r;
291
+ */ function differenceInCalendarMonths(e, t, n) {
292
+ const [a, o] = normalizeDates(n?.in, e, t);
293
+ const r = a.getFullYear() - o.getFullYear();
294
+ const i = a.getMonth() - o.getMonth();
295
+ return r * 12 + i;
298
296
  }
299
297
 
300
- function getRoundingMethod(n) {
301
- return e => {
302
- const t = n ? Math[n] : Math.trunc;
303
- const a = t(e);
298
+ function getRoundingMethod(e) {
299
+ return t => {
300
+ const n = e ? Math[e] : Math.trunc;
301
+ const a = n(t);
304
302
  // Prevent negative zero
305
303
  return a === 0 ? 0 : a;
306
304
  };
@@ -327,8 +325,8 @@ function getRoundingMethod(n) {
327
325
  * new Date(2014, 6, 2, 12, 30, 20, 600)
328
326
  * )
329
327
  * //=> 1100
330
- */ function differenceInMilliseconds(n, e) {
331
- return +toDate(n) - +toDate(e);
328
+ */ function differenceInMilliseconds(e, t) {
329
+ return +toDate(e) - +toDate(t);
332
330
  }
333
331
 
334
332
  /**
@@ -355,10 +353,10 @@ function getRoundingMethod(n) {
355
353
  * // The end of a day for 2 September 2014 11:55:00:
356
354
  * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
357
355
  * //=> Tue Sep 02 2014 23:59:59.999
358
- */ function endOfDay(n, e) {
359
- const t = toDate(n, e?.in);
360
- t.setHours(23, 59, 59, 999);
361
- return t;
356
+ */ function endOfDay(e, t) {
357
+ const n = toDate(e, t?.in);
358
+ n.setHours(23, 59, 59, 999);
359
+ return n;
362
360
  }
363
361
 
364
362
  /**
@@ -385,12 +383,12 @@ function getRoundingMethod(n) {
385
383
  * // The end of a month for 2 September 2014 11:55:00:
386
384
  * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
387
385
  * //=> Tue Sep 30 2014 23:59:59.999
388
- */ function endOfMonth(n, e) {
389
- const t = toDate(n, e?.in);
390
- const a = t.getMonth();
391
- t.setFullYear(t.getFullYear(), a + 1, 0);
392
- t.setHours(23, 59, 59, 999);
393
- return t;
386
+ */ function endOfMonth(e, t) {
387
+ const n = toDate(e, t?.in);
388
+ const a = n.getMonth();
389
+ n.setFullYear(n.getFullYear(), a + 1, 0);
390
+ n.setHours(23, 59, 59, 999);
391
+ return n;
394
392
  }
395
393
 
396
394
  /**
@@ -410,9 +408,9 @@ function getRoundingMethod(n) {
410
408
  * // Is 28 February 2014 the last day of a month?
411
409
  * const result = isLastDayOfMonth(new Date(2014, 1, 28))
412
410
  * //=> true
413
- */ function isLastDayOfMonth(n, e) {
414
- const t = toDate(n, e?.in);
415
- return +endOfDay(t, e) === +endOfMonth(t, e);
411
+ */ function isLastDayOfMonth(e, t) {
412
+ const n = toDate(e, t?.in);
413
+ return +endOfDay(n, t) === +endOfMonth(n, t);
416
414
  }
417
415
 
418
416
  /**
@@ -433,18 +431,18 @@ function getRoundingMethod(n) {
433
431
  * // How many full months are between 31 January 2014 and 1 September 2014?
434
432
  * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
435
433
  * //=> 7
436
- */ function differenceInMonths(n, e, t) {
437
- const [a, i, o] = normalizeDates(t?.in, n, n, e);
438
- const r = compareAsc(i, o);
439
- const s = Math.abs(differenceInCalendarMonths(i, o));
434
+ */ function differenceInMonths(e, t, n) {
435
+ const [a, o, r] = normalizeDates(n?.in, e, e, t);
436
+ const i = compareAsc(o, r);
437
+ const s = Math.abs(differenceInCalendarMonths(o, r));
440
438
  if (s < 1) return 0;
441
- if (i.getMonth() === 1 && i.getDate() > 27) i.setDate(30);
442
- i.setMonth(i.getMonth() - r * s);
443
- let c = compareAsc(i, o) === -r;
444
- if (isLastDayOfMonth(a) && s === 1 && compareAsc(a, o) === 1) {
439
+ if (o.getMonth() === 1 && o.getDate() > 27) o.setDate(30);
440
+ o.setMonth(o.getMonth() - i * s);
441
+ let c = compareAsc(o, r) === -i;
442
+ if (isLastDayOfMonth(a) && s === 1 && compareAsc(a, r) === 1) {
445
443
  c = false;
446
444
  }
447
- const d = r * (s - +c);
445
+ const d = i * (s - +c);
448
446
  return d === 0 ? 0 : d;
449
447
  }
450
448
 
@@ -473,12 +471,12 @@ function getRoundingMethod(n) {
473
471
  * new Date(2014, 6, 2, 12, 30, 7, 999)
474
472
  * )
475
473
  * //=> 12
476
- */ function differenceInSeconds(n, e, t) {
477
- const a = differenceInMilliseconds(n, e) / 1e3;
478
- return getRoundingMethod(t?.roundingMethod)(a);
474
+ */ function differenceInSeconds(e, t, n) {
475
+ const a = differenceInMilliseconds(e, t) / 1e3;
476
+ return getRoundingMethod(n?.roundingMethod)(a);
479
477
  }
480
478
 
481
- const u = {
479
+ const l = {
482
480
  lessThanXSeconds: {
483
481
  one: "less than a second",
484
482
  other: "less than {{count}} seconds"
@@ -542,18 +540,18 @@ const u = {
542
540
  }
543
541
  };
544
542
 
545
- const formatDistance$3 = (n, e, t) => {
543
+ const formatDistance$3 = (e, t, n) => {
546
544
  let a;
547
- const i = u[n];
548
- if (typeof i === "string") {
549
- a = i;
550
- } else if (e === 1) {
551
- a = i.one;
545
+ const o = l[e];
546
+ if (typeof o === "string") {
547
+ a = o;
548
+ } else if (t === 1) {
549
+ a = o.one;
552
550
  } else {
553
- a = i.other.replace("{{count}}", e.toString());
551
+ a = o.other.replace("{{count}}", t.toString());
554
552
  }
555
- if (t?.addSuffix) {
556
- if (t.comparison && t.comparison > 0) {
553
+ if (n?.addSuffix) {
554
+ if (n.comparison && n.comparison > 0) {
557
555
  return "in " + a;
558
556
  } else {
559
557
  return a + " ago";
@@ -562,52 +560,52 @@ const formatDistance$3 = (n, e, t) => {
562
560
  return a;
563
561
  };
564
562
 
565
- function buildFormatLongFn(n) {
566
- return (e = {}) => {
563
+ function buildFormatLongFn(e) {
564
+ return (t = {}) => {
567
565
  // TODO: Remove String()
568
- const t = e.width ? String(e.width) : n.defaultWidth;
569
- const a = n.formats[t] || n.formats[n.defaultWidth];
566
+ const n = t.width ? String(t.width) : e.defaultWidth;
567
+ const a = e.formats[n] || e.formats[e.defaultWidth];
570
568
  return a;
571
569
  };
572
570
  }
573
571
 
574
- const h = {
572
+ const u = {
575
573
  full: "EEEE, MMMM do, y",
576
574
  long: "MMMM do, y",
577
575
  medium: "MMM d, y",
578
576
  short: "MM/dd/yyyy"
579
577
  };
580
578
 
581
- const m = {
579
+ const h = {
582
580
  full: "h:mm:ss a zzzz",
583
581
  long: "h:mm:ss a z",
584
582
  medium: "h:mm:ss a",
585
583
  short: "h:mm a"
586
584
  };
587
585
 
588
- const f = {
586
+ const m = {
589
587
  full: "{{date}} 'at' {{time}}",
590
588
  long: "{{date}} 'at' {{time}}",
591
589
  medium: "{{date}}, {{time}}",
592
590
  short: "{{date}}, {{time}}"
593
591
  };
594
592
 
595
- const g = {
593
+ const f = {
596
594
  date: buildFormatLongFn({
597
- formats: h,
595
+ formats: u,
598
596
  defaultWidth: "full"
599
597
  }),
600
598
  time: buildFormatLongFn({
601
- formats: m,
599
+ formats: h,
602
600
  defaultWidth: "full"
603
601
  }),
604
602
  dateTime: buildFormatLongFn({
605
- formats: f,
603
+ formats: m,
606
604
  defaultWidth: "full"
607
605
  })
608
606
  };
609
607
 
610
- const b = {
608
+ const g = {
611
609
  lastWeek: "'last' eeee 'at' p",
612
610
  yesterday: "'yesterday at' p",
613
611
  today: "'today at' p",
@@ -616,7 +614,7 @@ const b = {
616
614
  other: "P"
617
615
  };
618
616
 
619
- const formatRelative$2 = (n, e, t, a) => b[n]
617
+ const formatRelative$2 = (e, t, n, a) => g[e]
620
618
  /**
621
619
  * The localize function argument callback which allows to convert raw value to
622
620
  * the actual type.
@@ -649,32 +647,32 @@ const formatRelative$2 = (n, e, t, a) => b[n]
649
647
  * The tuple of localized month values. The first element represents January.
650
648
  */;
651
649
 
652
- function buildLocalizeFn(n) {
653
- return (e, t) => {
654
- const a = t?.context ? String(t.context) : "standalone";
655
- let i;
656
- if (a === "formatting" && n.formattingValues) {
657
- const e = n.defaultFormattingWidth || n.defaultWidth;
658
- const a = t?.width ? String(t.width) : e;
659
- i = n.formattingValues[a] || n.formattingValues[e];
650
+ function buildLocalizeFn(e) {
651
+ return (t, n) => {
652
+ const a = n?.context ? String(n.context) : "standalone";
653
+ let o;
654
+ if (a === "formatting" && e.formattingValues) {
655
+ const t = e.defaultFormattingWidth || e.defaultWidth;
656
+ const a = n?.width ? String(n.width) : t;
657
+ o = e.formattingValues[a] || e.formattingValues[t];
660
658
  } else {
661
- const e = n.defaultWidth;
662
- const a = t?.width ? String(t.width) : n.defaultWidth;
663
- i = n.values[a] || n.values[e];
659
+ const t = e.defaultWidth;
660
+ const a = n?.width ? String(n.width) : e.defaultWidth;
661
+ o = e.values[a] || e.values[t];
664
662
  }
665
- const o = n.argumentCallback ? n.argumentCallback(e) : e;
663
+ const r = e.argumentCallback ? e.argumentCallback(t) : t;
666
664
  // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
667
- return i[o];
665
+ return o[r];
668
666
  };
669
667
  }
670
668
 
671
- const p = {
669
+ const b = {
672
670
  narrow: [ "B", "A" ],
673
671
  abbreviated: [ "BC", "AD" ],
674
672
  wide: [ "Before Christ", "Anno Domini" ]
675
673
  };
676
674
 
677
- const y = {
675
+ const p = {
678
676
  narrow: [ "1", "2", "3", "4" ],
679
677
  abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
680
678
  wide: [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ]
@@ -684,20 +682,20 @@ const y = {
684
682
  // If you are making a new locale based on this one, check if the same is true for the language you're working on.
685
683
  // Generally, formatted dates should look like they are in the middle of a sentence,
686
684
  // e.g. in Spanish language the weekdays and months should be in the lowercase.
687
- const w = {
685
+ const y = {
688
686
  narrow: [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ],
689
687
  abbreviated: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ],
690
688
  wide: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]
691
689
  };
692
690
 
693
- const v = {
691
+ const w = {
694
692
  narrow: [ "S", "M", "T", "W", "T", "F", "S" ],
695
693
  short: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ],
696
694
  abbreviated: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
697
695
  wide: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]
698
696
  };
699
697
 
700
- const _ = {
698
+ const v = {
701
699
  narrow: {
702
700
  am: "a",
703
701
  pm: "p",
@@ -763,74 +761,74 @@ const M = {
763
761
  }
764
762
  };
765
763
 
766
- const ordinalNumber$2 = (n, e) => {
767
- const t = Number(n);
764
+ const ordinalNumber$2 = (e, t) => {
765
+ const n = Number(e);
768
766
  // If ordinal numbers depend on context, for example,
769
767
  // if they are different for different grammatical genders,
770
768
  // use `options.unit`.
771
769
 
772
770
  // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
773
771
  // 'day', 'hour', 'minute', 'second'.
774
- const a = t % 100;
772
+ const a = n % 100;
775
773
  if (a > 20 || a < 10) {
776
774
  switch (a % 10) {
777
775
  case 1:
778
- return t + "st";
776
+ return n + "st";
779
777
 
780
778
  case 2:
781
- return t + "nd";
779
+ return n + "nd";
782
780
 
783
781
  case 3:
784
- return t + "rd";
782
+ return n + "rd";
785
783
  }
786
784
  }
787
- return t + "th";
785
+ return n + "th";
788
786
  };
789
787
 
790
- const k = {
788
+ const _ = {
791
789
  ordinalNumber: ordinalNumber$2,
792
790
  era: buildLocalizeFn({
793
- values: p,
791
+ values: b,
794
792
  defaultWidth: "wide"
795
793
  }),
796
794
  quarter: buildLocalizeFn({
797
- values: y,
795
+ values: p,
798
796
  defaultWidth: "wide",
799
- argumentCallback: n => n - 1
797
+ argumentCallback: e => e - 1
800
798
  }),
801
799
  month: buildLocalizeFn({
802
- values: w,
800
+ values: y,
803
801
  defaultWidth: "wide"
804
802
  }),
805
803
  day: buildLocalizeFn({
806
- values: v,
804
+ values: w,
807
805
  defaultWidth: "wide"
808
806
  }),
809
807
  dayPeriod: buildLocalizeFn({
810
- values: _,
808
+ values: v,
811
809
  defaultWidth: "wide",
812
810
  formattingValues: M,
813
811
  defaultFormattingWidth: "wide"
814
812
  })
815
813
  };
816
814
 
817
- function buildMatchFn(n) {
818
- return (e, t = {}) => {
819
- const a = t.width;
820
- const i = a && n.matchPatterns[a] || n.matchPatterns[n.defaultMatchWidth];
821
- const o = e.match(i);
822
- if (!o) {
815
+ function buildMatchFn(e) {
816
+ return (t, n = {}) => {
817
+ const a = n.width;
818
+ const o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth];
819
+ const r = t.match(o);
820
+ if (!r) {
823
821
  return null;
824
822
  }
825
- const r = o[0];
826
- const s = a && n.parsePatterns[a] || n.parsePatterns[n.defaultParseWidth];
827
- const c = Array.isArray(s) ? findIndex(s, (n => n.test(r))) : // [TODO] -- I challenge you to fix the type
828
- findKey(s, (n => n.test(r)));
823
+ const i = r[0];
824
+ const s = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth];
825
+ const c = Array.isArray(s) ? findIndex(s, (e => e.test(i))) : // [TODO] -- I challenge you to fix the type
826
+ findKey(s, (e => e.test(i)));
829
827
  let d;
830
- d = n.valueCallback ? n.valueCallback(c) : c;
831
- d = t.valueCallback ? // [TODO] -- I challenge you to fix the type
832
- t.valueCallback(d) : d;
833
- const l = e.slice(r.length);
828
+ d = e.valueCallback ? e.valueCallback(c) : c;
829
+ d = n.valueCallback ? // [TODO] -- I challenge you to fix the type
830
+ n.valueCallback(d) : d;
831
+ const l = t.slice(i.length);
834
832
  return {
835
833
  value: d,
836
834
  rest: l
@@ -838,78 +836,78 @@ function buildMatchFn(n) {
838
836
  };
839
837
  }
840
838
 
841
- function findKey(n, e) {
842
- for (const t in n) {
843
- if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t])) {
844
- return t;
839
+ function findKey(e, t) {
840
+ for (const n in e) {
841
+ if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) {
842
+ return n;
845
843
  }
846
844
  }
847
845
  return undefined;
848
846
  }
849
847
 
850
- function findIndex(n, e) {
851
- for (let t = 0; t < n.length; t++) {
852
- if (e(n[t])) {
853
- return t;
848
+ function findIndex(e, t) {
849
+ for (let n = 0; n < e.length; n++) {
850
+ if (t(e[n])) {
851
+ return n;
854
852
  }
855
853
  }
856
854
  return undefined;
857
855
  }
858
856
 
859
- function buildMatchPatternFn(n) {
860
- return (e, t = {}) => {
861
- const a = e.match(n.matchPattern);
857
+ function buildMatchPatternFn(e) {
858
+ return (t, n = {}) => {
859
+ const a = t.match(e.matchPattern);
862
860
  if (!a) return null;
863
- const i = a[0];
864
- const o = e.match(n.parsePattern);
865
- if (!o) return null;
866
- let r = n.valueCallback ? n.valueCallback(o[0]) : o[0];
861
+ const o = a[0];
862
+ const r = t.match(e.parsePattern);
863
+ if (!r) return null;
864
+ let i = e.valueCallback ? e.valueCallback(r[0]) : r[0];
867
865
  // [TODO] I challenge you to fix the type
868
- r = t.valueCallback ? t.valueCallback(r) : r;
869
- const s = e.slice(i.length);
866
+ i = n.valueCallback ? n.valueCallback(i) : i;
867
+ const s = t.slice(o.length);
870
868
  return {
871
- value: r,
869
+ value: i,
872
870
  rest: s
873
871
  };
874
872
  };
875
873
  }
876
874
 
877
- const W = /^(\d+)(th|st|nd|rd)?/i;
875
+ const k = /^(\d+)(th|st|nd|rd)?/i;
878
876
 
879
- const x = /\d+/i;
877
+ const W = /\d+/i;
880
878
 
881
- const F = {
879
+ const x = {
882
880
  narrow: /^(b|a)/i,
883
881
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
884
882
  wide: /^(before christ|before common era|anno domini|common era)/i
885
883
  };
886
884
 
887
- const P = {
885
+ const F = {
888
886
  any: [ /^b/i, /^(a|c)/i ]
889
887
  };
890
888
 
891
- const z = {
889
+ const P = {
892
890
  narrow: /^[1234]/i,
893
891
  abbreviated: /^q[1234]/i,
894
892
  wide: /^[1234](th|st|nd|rd)? quarter/i
895
893
  };
896
894
 
897
- const D = {
895
+ const z = {
898
896
  any: [ /1/i, /2/i, /3/i, /4/i ]
899
897
  };
900
898
 
901
- const S = {
899
+ const D = {
902
900
  narrow: /^[jfmasond]/i,
903
901
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
904
902
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
905
903
  };
906
904
 
907
- const T = {
905
+ const S = {
908
906
  narrow: [ /^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i ],
909
907
  any: [ /^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i ]
910
908
  };
911
909
 
912
- const C = {
910
+ const T = {
913
911
  narrow: /^[smtwf]/i,
914
912
  short: /^(su|mo|tu|we|th|fr|sa)/i,
915
913
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -921,12 +919,12 @@ const X = {
921
919
  any: [ /^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i ]
922
920
  };
923
921
 
924
- const L = {
922
+ const C = {
925
923
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
926
924
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
927
925
  };
928
926
 
929
- const j = {
927
+ const L = {
930
928
  any: {
931
929
  am: /^a/i,
932
930
  pm: /^p/i,
@@ -941,39 +939,39 @@ const j = {
941
939
 
942
940
  const A = {
943
941
  ordinalNumber: buildMatchPatternFn({
944
- matchPattern: W,
945
- parsePattern: x,
946
- valueCallback: n => parseInt(n, 10)
942
+ matchPattern: k,
943
+ parsePattern: W,
944
+ valueCallback: e => parseInt(e, 10)
947
945
  }),
948
946
  era: buildMatchFn({
949
- matchPatterns: F,
947
+ matchPatterns: x,
950
948
  defaultMatchWidth: "wide",
951
- parsePatterns: P,
949
+ parsePatterns: F,
952
950
  defaultParseWidth: "any"
953
951
  }),
954
952
  quarter: buildMatchFn({
955
- matchPatterns: z,
953
+ matchPatterns: P,
956
954
  defaultMatchWidth: "wide",
957
- parsePatterns: D,
955
+ parsePatterns: z,
958
956
  defaultParseWidth: "any",
959
- valueCallback: n => n + 1
957
+ valueCallback: e => e + 1
960
958
  }),
961
959
  month: buildMatchFn({
962
- matchPatterns: S,
960
+ matchPatterns: D,
963
961
  defaultMatchWidth: "wide",
964
- parsePatterns: T,
962
+ parsePatterns: S,
965
963
  defaultParseWidth: "any"
966
964
  }),
967
965
  day: buildMatchFn({
968
- matchPatterns: C,
966
+ matchPatterns: T,
969
967
  defaultMatchWidth: "wide",
970
968
  parsePatterns: X,
971
969
  defaultParseWidth: "any"
972
970
  }),
973
971
  dayPeriod: buildMatchFn({
974
- matchPatterns: L,
972
+ matchPatterns: C,
975
973
  defaultMatchWidth: "any",
976
- parsePatterns: j,
974
+ parsePatterns: L,
977
975
  defaultParseWidth: "any"
978
976
  })
979
977
  };
@@ -985,12 +983,12 @@ const A = {
985
983
  * @iso-639-2 eng
986
984
  * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
987
985
  * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
988
- */ const I = {
986
+ */ const j = {
989
987
  code: "en-US",
990
988
  formatDistance: formatDistance$3,
991
- formatLong: g,
989
+ formatLong: f,
992
990
  formatRelative: formatRelative$2,
993
- localize: k,
991
+ localize: _,
994
992
  match: A,
995
993
  options: {
996
994
  weekStartsOn: 0 /* Sunday */ ,
@@ -1078,84 +1076,84 @@ const A = {
1078
1076
  * locale: eoLocale
1079
1077
  * })
1080
1078
  * //=> 'pli ol 1 jaro'
1081
- */ function formatDistance$2(n, e, t) {
1079
+ */ function formatDistance$2(e, t, n) {
1082
1080
  const a = getDefaultOptions();
1083
- const i = t?.locale ?? a.locale ?? I;
1084
- const o = 2520;
1085
- const r = compareAsc(n, e);
1086
- if (isNaN(r)) throw new RangeError("Invalid time value");
1087
- const d = Object.assign({}, t, {
1088
- addSuffix: t?.addSuffix,
1089
- comparison: r
1081
+ const o = n?.locale ?? a.locale ?? j;
1082
+ const r = 2520;
1083
+ const c = compareAsc(e, t);
1084
+ if (isNaN(c)) throw new RangeError("Invalid time value");
1085
+ const d = Object.assign({}, n, {
1086
+ addSuffix: n?.addSuffix,
1087
+ comparison: c
1090
1088
  });
1091
- const [l, u] = normalizeDates(t?.in, ...r > 0 ? [ e, n ] : [ n, e ]);
1089
+ const [l, u] = normalizeDates(n?.in, ...c > 0 ? [ t, e ] : [ e, t ]);
1092
1090
  const h = differenceInSeconds(u, l);
1093
1091
  const m = (getTimezoneOffsetInMilliseconds(u) - getTimezoneOffsetInMilliseconds(l)) / 1e3;
1094
1092
  const f = Math.round((h - m) / 60);
1095
1093
  let g;
1096
1094
  // 0 up to 2 mins
1097
1095
  if (f < 2) {
1098
- if (t?.includeSeconds) {
1096
+ if (n?.includeSeconds) {
1099
1097
  if (h < 5) {
1100
- return i.formatDistance("lessThanXSeconds", 5, d);
1098
+ return o.formatDistance("lessThanXSeconds", 5, d);
1101
1099
  } else if (h < 10) {
1102
- return i.formatDistance("lessThanXSeconds", 10, d);
1100
+ return o.formatDistance("lessThanXSeconds", 10, d);
1103
1101
  } else if (h < 20) {
1104
- return i.formatDistance("lessThanXSeconds", 20, d);
1102
+ return o.formatDistance("lessThanXSeconds", 20, d);
1105
1103
  } else if (h < 40) {
1106
- return i.formatDistance("halfAMinute", 0, d);
1104
+ return o.formatDistance("halfAMinute", 0, d);
1107
1105
  } else if (h < 60) {
1108
- return i.formatDistance("lessThanXMinutes", 1, d);
1106
+ return o.formatDistance("lessThanXMinutes", 1, d);
1109
1107
  } else {
1110
- return i.formatDistance("xMinutes", 1, d);
1108
+ return o.formatDistance("xMinutes", 1, d);
1111
1109
  }
1112
1110
  } else {
1113
1111
  if (f === 0) {
1114
- return i.formatDistance("lessThanXMinutes", 1, d);
1112
+ return o.formatDistance("lessThanXMinutes", 1, d);
1115
1113
  } else {
1116
- return i.formatDistance("xMinutes", f, d);
1114
+ return o.formatDistance("xMinutes", f, d);
1117
1115
  }
1118
1116
  }
1119
1117
  // 2 mins up to 0.75 hrs
1120
1118
  } else if (f < 45) {
1121
- return i.formatDistance("xMinutes", f, d);
1119
+ return o.formatDistance("xMinutes", f, d);
1122
1120
  // 0.75 hrs up to 1.5 hrs
1123
1121
  } else if (f < 90) {
1124
- return i.formatDistance("aboutXHours", 1, d);
1122
+ return o.formatDistance("aboutXHours", 1, d);
1125
1123
  // 1.5 hrs up to 24 hrs
1126
- } else if (f < c) {
1127
- const n = Math.round(f / 60);
1128
- return i.formatDistance("aboutXHours", n, d);
1124
+ } else if (f < s) {
1125
+ const e = Math.round(f / 60);
1126
+ return o.formatDistance("aboutXHours", e, d);
1129
1127
  // 1 day up to 1.75 days
1130
- } else if (f < o) {
1131
- return i.formatDistance("xDays", 1, d);
1128
+ } else if (f < r) {
1129
+ return o.formatDistance("xDays", 1, d);
1132
1130
  // 1.75 days up to 30 days
1133
- } else if (f < s) {
1134
- const n = Math.round(f / c);
1135
- return i.formatDistance("xDays", n, d);
1131
+ } else if (f < i) {
1132
+ const e = Math.round(f / s);
1133
+ return o.formatDistance("xDays", e, d);
1136
1134
  // 1 month up to 2 months
1137
- } else if (f < s * 2) {
1138
- g = Math.round(f / s);
1139
- return i.formatDistance("aboutXMonths", g, d);
1135
+ } else if (f < i * 2) {
1136
+ g = Math.round(f / i);
1137
+ return o.formatDistance("aboutXMonths", g, d);
1140
1138
  }
1141
1139
  g = differenceInMonths(u, l);
1142
1140
  // 2 months up to 12 months
1143
1141
  if (g < 12) {
1144
- const n = Math.round(f / s);
1145
- return i.formatDistance("xMonths", n, d);
1142
+ const e = Math.round(f / i);
1143
+ return o.formatDistance("xMonths", e, d);
1146
1144
  // 1 year up to max Date
1147
1145
  } else {
1148
- const n = g % 12;
1149
- const e = Math.trunc(g / 12);
1146
+ const e = g % 12;
1147
+ const t = Math.trunc(g / 12);
1150
1148
  // N years up to 1 years 3 months
1151
- if (n < 3) {
1152
- return i.formatDistance("aboutXYears", e, d);
1149
+ if (e < 3) {
1150
+ return o.formatDistance("aboutXYears", t, d);
1153
1151
  // N years 3 months up to N years 9 months
1154
- } else if (n < 9) {
1155
- return i.formatDistance("overXYears", e, d);
1152
+ } else if (e < 9) {
1153
+ return o.formatDistance("overXYears", t, d);
1156
1154
  // N years 9 months up to N year 12 months
1157
1155
  } else {
1158
- return i.formatDistance("almostXYears", e + 1, d);
1156
+ return o.formatDistance("almostXYears", t + 1, d);
1159
1157
  }
1160
1158
  }
1161
1159
  }
@@ -1243,8 +1241,8 @@ const A = {
1243
1241
  * {locale: eoLocale}
1244
1242
  * )
1245
1243
  * //=> 'pli ol 1 jaro'
1246
- */ function formatDistanceToNow(n, e) {
1247
- return formatDistance$2(n, constructNow(n), e);
1244
+ */ function formatDistanceToNow(e, t) {
1245
+ return formatDistance$2(e, constructNow(e), t);
1248
1246
  }
1249
1247
 
1250
1248
  /**
@@ -1281,12 +1279,12 @@ const A = {
1281
1279
  * // Are 1 January 2014 and 1 January 2015 in the same week?
1282
1280
  * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
1283
1281
  * //=> false
1284
- */ function isSameWeek(n, e, t) {
1285
- const [a, i] = normalizeDates(t?.in, n, e);
1286
- return +startOfWeek(a, t) === +startOfWeek(i, t);
1282
+ */ function isSameWeek(e, t, n) {
1283
+ const [a, o] = normalizeDates(n?.in, e, t);
1284
+ return +startOfWeek(a, n) === +startOfWeek(o, n);
1287
1285
  }
1288
1286
 
1289
- const O = {
1287
+ const I = {
1290
1288
  lessThanXSeconds: {
1291
1289
  one: "1秒未満",
1292
1290
  other: "{{count}}秒未満",
@@ -1354,27 +1352,27 @@ const O = {
1354
1352
  }
1355
1353
  };
1356
1354
 
1357
- const formatDistance$1 = (n, e, t) => {
1358
- t = t || {};
1355
+ const formatDistance$1 = (e, t, n) => {
1356
+ n = n || {};
1359
1357
  let a;
1360
- const i = O[n];
1361
- if (typeof i === "string") {
1362
- a = i;
1363
- } else if (e === 1) {
1364
- if (t.addSuffix && i.oneWithSuffix) {
1365
- a = i.oneWithSuffix;
1358
+ const o = I[e];
1359
+ if (typeof o === "string") {
1360
+ a = o;
1361
+ } else if (t === 1) {
1362
+ if (n.addSuffix && o.oneWithSuffix) {
1363
+ a = o.oneWithSuffix;
1366
1364
  } else {
1367
- a = i.one;
1365
+ a = o.one;
1368
1366
  }
1369
1367
  } else {
1370
- if (t.addSuffix && i.otherWithSuffix) {
1371
- a = i.otherWithSuffix.replace("{{count}}", String(e));
1368
+ if (n.addSuffix && o.otherWithSuffix) {
1369
+ a = o.otherWithSuffix.replace("{{count}}", String(t));
1372
1370
  } else {
1373
- a = i.other.replace("{{count}}", String(e));
1371
+ a = o.other.replace("{{count}}", String(t));
1374
1372
  }
1375
1373
  }
1376
- if (t.addSuffix) {
1377
- if (t.comparison && t.comparison > 0) {
1374
+ if (n.addSuffix) {
1375
+ if (n.comparison && n.comparison > 0) {
1378
1376
  return a + "後";
1379
1377
  } else {
1380
1378
  return a + "前";
@@ -1383,38 +1381,38 @@ const formatDistance$1 = (n, e, t) => {
1383
1381
  return a;
1384
1382
  };
1385
1383
 
1386
- const N = {
1384
+ const O = {
1387
1385
  full: "y年M月d日EEEE",
1388
1386
  long: "y年M月d日",
1389
1387
  medium: "y/MM/dd",
1390
1388
  short: "y/MM/dd"
1391
1389
  };
1392
1390
 
1393
- const E = {
1391
+ const N = {
1394
1392
  full: "H時mm分ss秒 zzzz",
1395
1393
  long: "H:mm:ss z",
1396
1394
  medium: "H:mm:ss",
1397
1395
  short: "H:mm"
1398
1396
  };
1399
1397
 
1400
- const Y = {
1398
+ const E = {
1401
1399
  full: "{{date}} {{time}}",
1402
1400
  long: "{{date}} {{time}}",
1403
1401
  medium: "{{date}} {{time}}",
1404
1402
  short: "{{date}} {{time}}"
1405
1403
  };
1406
1404
 
1407
- const q = {
1405
+ const Y = {
1408
1406
  date: buildFormatLongFn({
1409
- formats: N,
1407
+ formats: O,
1410
1408
  defaultWidth: "full"
1411
1409
  }),
1412
1410
  time: buildFormatLongFn({
1413
- formats: E,
1411
+ formats: N,
1414
1412
  defaultWidth: "full"
1415
1413
  }),
1416
1414
  dateTime: buildFormatLongFn({
1417
- formats: Y,
1415
+ formats: E,
1418
1416
  defaultWidth: "full"
1419
1417
  })
1420
1418
  };
@@ -1428,34 +1426,34 @@ const H = {
1428
1426
  other: "P"
1429
1427
  };
1430
1428
 
1431
- const formatRelative$1 = (n, e, t, a) => H[n];
1429
+ const formatRelative$1 = (e, t, n, a) => H[e];
1432
1430
 
1433
- const $ = {
1431
+ const q = {
1434
1432
  narrow: [ "BC", "AC" ],
1435
1433
  abbreviated: [ "紀元前", "西暦" ],
1436
1434
  wide: [ "紀元前", "西暦" ]
1437
1435
  };
1438
1436
 
1439
- const J = {
1437
+ const $ = {
1440
1438
  narrow: [ "1", "2", "3", "4" ],
1441
1439
  abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
1442
1440
  wide: [ "第1四半期", "第2四半期", "第3四半期", "第4四半期" ]
1443
1441
  };
1444
1442
 
1445
- const Q = {
1443
+ const J = {
1446
1444
  narrow: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],
1447
1445
  abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
1448
1446
  wide: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ]
1449
1447
  };
1450
1448
 
1451
- const R = {
1449
+ const Q = {
1452
1450
  narrow: [ "日", "月", "火", "水", "木", "金", "土" ],
1453
1451
  short: [ "日", "月", "火", "水", "木", "金", "土" ],
1454
1452
  abbreviated: [ "日", "月", "火", "水", "木", "金", "土" ],
1455
1453
  wide: [ "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日" ]
1456
1454
  };
1457
1455
 
1458
- const B = {
1456
+ const R = {
1459
1457
  narrow: {
1460
1458
  am: "午前",
1461
1459
  pm: "午後",
@@ -1488,7 +1486,7 @@ const B = {
1488
1486
  }
1489
1487
  };
1490
1488
 
1491
- const V = {
1489
+ const B = {
1492
1490
  narrow: {
1493
1491
  am: "午前",
1494
1492
  pm: "午後",
@@ -1521,117 +1519,117 @@ const V = {
1521
1519
  }
1522
1520
  };
1523
1521
 
1524
- const ordinalNumber$1 = (n, e) => {
1525
- const t = Number(n);
1526
- const a = String(e?.unit);
1522
+ const ordinalNumber$1 = (e, t) => {
1523
+ const n = Number(e);
1524
+ const a = String(t?.unit);
1527
1525
  switch (a) {
1528
1526
  case "year":
1529
- return `${t}年`;
1527
+ return `${n}年`;
1530
1528
 
1531
1529
  case "quarter":
1532
- return `第${t}四半期`;
1530
+ return `第${n}四半期`;
1533
1531
 
1534
1532
  case "month":
1535
- return `${t}月`;
1533
+ return `${n}月`;
1536
1534
 
1537
1535
  case "week":
1538
- return `第${t}週`;
1536
+ return `第${n}週`;
1539
1537
 
1540
1538
  case "date":
1541
- return `${t}日`;
1539
+ return `${n}日`;
1542
1540
 
1543
1541
  case "hour":
1544
- return `${t}時`;
1542
+ return `${n}時`;
1545
1543
 
1546
1544
  case "minute":
1547
- return `${t}分`;
1545
+ return `${n}分`;
1548
1546
 
1549
1547
  case "second":
1550
- return `${t}秒`;
1548
+ return `${n}秒`;
1551
1549
 
1552
1550
  default:
1553
- return `${t}`;
1551
+ return `${n}`;
1554
1552
  }
1555
1553
  };
1556
1554
 
1557
- const K = {
1555
+ const V = {
1558
1556
  ordinalNumber: ordinalNumber$1,
1559
1557
  era: buildLocalizeFn({
1560
- values: $,
1558
+ values: q,
1561
1559
  defaultWidth: "wide"
1562
1560
  }),
1563
1561
  quarter: buildLocalizeFn({
1564
- values: J,
1562
+ values: $,
1565
1563
  defaultWidth: "wide",
1566
- argumentCallback: n => Number(n) - 1
1564
+ argumentCallback: e => Number(e) - 1
1567
1565
  }),
1568
1566
  month: buildLocalizeFn({
1569
- values: Q,
1567
+ values: J,
1570
1568
  defaultWidth: "wide"
1571
1569
  }),
1572
1570
  day: buildLocalizeFn({
1573
- values: R,
1571
+ values: Q,
1574
1572
  defaultWidth: "wide"
1575
1573
  }),
1576
1574
  dayPeriod: buildLocalizeFn({
1577
- values: B,
1575
+ values: R,
1578
1576
  defaultWidth: "wide",
1579
- formattingValues: V,
1577
+ formattingValues: B,
1580
1578
  defaultFormattingWidth: "wide"
1581
1579
  })
1582
1580
  };
1583
1581
 
1584
- const G = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
1582
+ const K = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
1585
1583
 
1586
- const U = /\d+/i;
1584
+ const G = /\d+/i;
1587
1585
 
1588
- const Z = {
1586
+ const U = {
1589
1587
  narrow: /^(B\.?C\.?|A\.?D\.?)/i,
1590
1588
  abbreviated: /^(紀元[前後]|西暦)/i,
1591
1589
  wide: /^(紀元[前後]|西暦)/i
1592
1590
  };
1593
1591
 
1594
- const nn = {
1592
+ const Z = {
1595
1593
  narrow: [ /^B/i, /^A/i ],
1596
1594
  any: [ /^(紀元前)/i, /^(西暦|紀元後)/i ]
1597
1595
  };
1598
1596
 
1599
- const en = {
1597
+ const ee = {
1600
1598
  narrow: /^[1234]/i,
1601
1599
  abbreviated: /^Q[1234]/i,
1602
1600
  wide: /^第[1234一二三四1234]四半期/i
1603
1601
  };
1604
1602
 
1605
- const tn = {
1603
+ const te = {
1606
1604
  any: [ /(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i ]
1607
1605
  };
1608
1606
 
1609
- const an = {
1607
+ const ne = {
1610
1608
  narrow: /^([123456789]|1[012])/,
1611
1609
  abbreviated: /^([123456789]|1[012])月/i,
1612
1610
  wide: /^([123456789]|1[012])月/i
1613
1611
  };
1614
1612
 
1615
- const on = {
1613
+ const ae = {
1616
1614
  any: [ /^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/ ]
1617
1615
  };
1618
1616
 
1619
- const rn = {
1617
+ const oe = {
1620
1618
  narrow: /^[日月火水木金土]/,
1621
1619
  short: /^[日月火水木金土]/,
1622
1620
  abbreviated: /^[日月火水木金土]/,
1623
1621
  wide: /^[日月火水木金土]曜日/
1624
1622
  };
1625
1623
 
1626
- const sn = {
1624
+ const re = {
1627
1625
  any: [ /^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/ ]
1628
1626
  };
1629
1627
 
1630
- const cn = {
1628
+ const ie = {
1631
1629
  any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i
1632
1630
  };
1633
1631
 
1634
- const dn = {
1632
+ const se = {
1635
1633
  any: {
1636
1634
  am: /^(A|午前)/i,
1637
1635
  pm: /^(P|午後)/i,
@@ -1644,43 +1642,43 @@ const dn = {
1644
1642
  }
1645
1643
  };
1646
1644
 
1647
- const ln = {
1645
+ const ce = {
1648
1646
  ordinalNumber: buildMatchPatternFn({
1649
- matchPattern: G,
1650
- parsePattern: U,
1651
- valueCallback: function(n) {
1652
- return parseInt(n, 10);
1647
+ matchPattern: K,
1648
+ parsePattern: G,
1649
+ valueCallback: function(e) {
1650
+ return parseInt(e, 10);
1653
1651
  }
1654
1652
  }),
1655
1653
  era: buildMatchFn({
1656
- matchPatterns: Z,
1654
+ matchPatterns: U,
1657
1655
  defaultMatchWidth: "wide",
1658
- parsePatterns: nn,
1656
+ parsePatterns: Z,
1659
1657
  defaultParseWidth: "any"
1660
1658
  }),
1661
1659
  quarter: buildMatchFn({
1662
- matchPatterns: en,
1660
+ matchPatterns: ee,
1663
1661
  defaultMatchWidth: "wide",
1664
- parsePatterns: tn,
1662
+ parsePatterns: te,
1665
1663
  defaultParseWidth: "any",
1666
- valueCallback: n => n + 1
1664
+ valueCallback: e => e + 1
1667
1665
  }),
1668
1666
  month: buildMatchFn({
1669
- matchPatterns: an,
1667
+ matchPatterns: ne,
1670
1668
  defaultMatchWidth: "wide",
1671
- parsePatterns: on,
1669
+ parsePatterns: ae,
1672
1670
  defaultParseWidth: "any"
1673
1671
  }),
1674
1672
  day: buildMatchFn({
1675
- matchPatterns: rn,
1673
+ matchPatterns: oe,
1676
1674
  defaultMatchWidth: "wide",
1677
- parsePatterns: sn,
1675
+ parsePatterns: re,
1678
1676
  defaultParseWidth: "any"
1679
1677
  }),
1680
1678
  dayPeriod: buildMatchFn({
1681
- matchPatterns: cn,
1679
+ matchPatterns: ie,
1682
1680
  defaultMatchWidth: "any",
1683
- parsePatterns: dn,
1681
+ parsePatterns: se,
1684
1682
  defaultParseWidth: "any"
1685
1683
  })
1686
1684
  };
@@ -1695,20 +1693,20 @@ const ln = {
1695
1693
  * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb)
1696
1694
  * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
1697
1695
  * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles)
1698
- */ const un = {
1696
+ */ const de = {
1699
1697
  code: "ja",
1700
1698
  formatDistance: formatDistance$1,
1701
- formatLong: q,
1699
+ formatLong: Y,
1702
1700
  formatRelative: formatRelative$1,
1703
- localize: K,
1704
- match: ln,
1701
+ localize: V,
1702
+ match: ce,
1705
1703
  options: {
1706
1704
  weekStartsOn: 0 /* Sunday */ ,
1707
1705
  firstWeekContainsDate: 1
1708
1706
  }
1709
1707
  };
1710
1708
 
1711
- const hn = {
1709
+ const le = {
1712
1710
  lessThanXSeconds: {
1713
1711
  one: "不到 1 秒",
1714
1712
  other: "不到 {{count}} 秒"
@@ -1772,18 +1770,18 @@ const hn = {
1772
1770
  }
1773
1771
  };
1774
1772
 
1775
- const formatDistance = (n, e, t) => {
1773
+ const formatDistance = (e, t, n) => {
1776
1774
  let a;
1777
- const i = hn[n];
1778
- if (typeof i === "string") {
1779
- a = i;
1780
- } else if (e === 1) {
1781
- a = i.one;
1775
+ const o = le[e];
1776
+ if (typeof o === "string") {
1777
+ a = o;
1778
+ } else if (t === 1) {
1779
+ a = o.one;
1782
1780
  } else {
1783
- a = i.other.replace("{{count}}", String(e));
1781
+ a = o.other.replace("{{count}}", String(t));
1784
1782
  }
1785
- if (t?.addSuffix) {
1786
- if (t.comparison && t.comparison > 0) {
1783
+ if (n?.addSuffix) {
1784
+ if (n.comparison && n.comparison > 0) {
1787
1785
  return a + "内";
1788
1786
  } else {
1789
1787
  return a + "前";
@@ -1792,48 +1790,48 @@ const formatDistance = (n, e, t) => {
1792
1790
  return a;
1793
1791
  };
1794
1792
 
1795
- const mn = {
1793
+ const ue = {
1796
1794
  full: "y'年'M'月'd'日' EEEE",
1797
1795
  long: "y'年'M'月'd'日'",
1798
1796
  medium: "yyyy-MM-dd",
1799
1797
  short: "yy-MM-dd"
1800
1798
  };
1801
1799
 
1802
- const fn = {
1800
+ const he = {
1803
1801
  full: "zzzz a h:mm:ss",
1804
1802
  long: "z a h:mm:ss",
1805
1803
  medium: "a h:mm:ss",
1806
1804
  short: "a h:mm"
1807
1805
  };
1808
1806
 
1809
- const gn = {
1807
+ const me = {
1810
1808
  full: "{{date}} {{time}}",
1811
1809
  long: "{{date}} {{time}}",
1812
1810
  medium: "{{date}} {{time}}",
1813
1811
  short: "{{date}} {{time}}"
1814
1812
  };
1815
1813
 
1816
- const bn = {
1814
+ const fe = {
1817
1815
  date: buildFormatLongFn({
1818
- formats: mn,
1816
+ formats: ue,
1819
1817
  defaultWidth: "full"
1820
1818
  }),
1821
1819
  time: buildFormatLongFn({
1822
- formats: fn,
1820
+ formats: he,
1823
1821
  defaultWidth: "full"
1824
1822
  }),
1825
1823
  dateTime: buildFormatLongFn({
1826
- formats: gn,
1824
+ formats: me,
1827
1825
  defaultWidth: "full"
1828
1826
  })
1829
1827
  };
1830
1828
 
1831
- function checkWeek(n, e, t) {
1829
+ function checkWeek(e, t, n) {
1832
1830
  const a = "eeee p";
1833
- if (isSameWeek(n, e, t)) {
1831
+ if (isSameWeek(e, t, n)) {
1834
1832
  return a;
1835
1833
  // in same week
1836
- } else if (n.getTime() > e.getTime()) {
1834
+ } else if (e.getTime() > t.getTime()) {
1837
1835
  return "'下个'" + a;
1838
1836
  // in next week
1839
1837
  }
@@ -1841,7 +1839,7 @@ function checkWeek(n, e, t) {
1841
1839
  // in last week
1842
1840
  }
1843
1841
 
1844
- const pn = {
1842
+ const ge = {
1845
1843
  lastWeek: checkWeek,
1846
1844
  // days before yesterday, maybe in this week or last week
1847
1845
  yesterday: "'昨天' p",
@@ -1852,40 +1850,40 @@ const pn = {
1852
1850
  other: "PP p"
1853
1851
  };
1854
1852
 
1855
- const formatRelative = (n, e, t, a) => {
1856
- const i = pn[n];
1857
- if (typeof i === "function") {
1858
- return i(e, t, a);
1853
+ const formatRelative = (e, t, n, a) => {
1854
+ const o = ge[e];
1855
+ if (typeof o === "function") {
1856
+ return o(t, n, a);
1859
1857
  }
1860
- return i;
1858
+ return o;
1861
1859
  };
1862
1860
 
1863
- const yn = {
1861
+ const be = {
1864
1862
  narrow: [ "前", "公元" ],
1865
1863
  abbreviated: [ "前", "公元" ],
1866
1864
  wide: [ "公元前", "公元" ]
1867
1865
  };
1868
1866
 
1869
- const wn = {
1867
+ const pe = {
1870
1868
  narrow: [ "1", "2", "3", "4" ],
1871
1869
  abbreviated: [ "第一季", "第二季", "第三季", "第四季" ],
1872
1870
  wide: [ "第一季度", "第二季度", "第三季度", "第四季度" ]
1873
1871
  };
1874
1872
 
1875
- const vn = {
1873
+ const ye = {
1876
1874
  narrow: [ "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二" ],
1877
1875
  abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
1878
1876
  wide: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ]
1879
1877
  };
1880
1878
 
1881
- const _n = {
1879
+ const we = {
1882
1880
  narrow: [ "日", "一", "二", "三", "四", "五", "六" ],
1883
1881
  short: [ "日", "一", "二", "三", "四", "五", "六" ],
1884
1882
  abbreviated: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
1885
1883
  wide: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ]
1886
1884
  };
1887
1885
 
1888
- const Mn = {
1886
+ const ve = {
1889
1887
  narrow: {
1890
1888
  am: "上",
1891
1889
  pm: "下",
@@ -1918,7 +1916,7 @@ const Mn = {
1918
1916
  }
1919
1917
  };
1920
1918
 
1921
- const kn = {
1919
+ const Me = {
1922
1920
  narrow: {
1923
1921
  am: "上",
1924
1922
  pm: "下",
@@ -1951,104 +1949,104 @@ const kn = {
1951
1949
  }
1952
1950
  };
1953
1951
 
1954
- const ordinalNumber = (n, e) => {
1955
- const t = Number(n);
1956
- switch (e?.unit) {
1952
+ const ordinalNumber = (e, t) => {
1953
+ const n = Number(e);
1954
+ switch (t?.unit) {
1957
1955
  case "date":
1958
- return t.toString() + "日";
1956
+ return n.toString() + "日";
1959
1957
 
1960
1958
  case "hour":
1961
- return t.toString() + "时";
1959
+ return n.toString() + "时";
1962
1960
 
1963
1961
  case "minute":
1964
- return t.toString() + "分";
1962
+ return n.toString() + "分";
1965
1963
 
1966
1964
  case "second":
1967
- return t.toString() + "秒";
1965
+ return n.toString() + "秒";
1968
1966
 
1969
1967
  default:
1970
- return "第 " + t.toString();
1968
+ return "第 " + n.toString();
1971
1969
  }
1972
1970
  };
1973
1971
 
1974
- const Wn = {
1972
+ const _e = {
1975
1973
  ordinalNumber,
1976
1974
  era: buildLocalizeFn({
1977
- values: yn,
1975
+ values: be,
1978
1976
  defaultWidth: "wide"
1979
1977
  }),
1980
1978
  quarter: buildLocalizeFn({
1981
- values: wn,
1979
+ values: pe,
1982
1980
  defaultWidth: "wide",
1983
- argumentCallback: n => n - 1
1981
+ argumentCallback: e => e - 1
1984
1982
  }),
1985
1983
  month: buildLocalizeFn({
1986
- values: vn,
1984
+ values: ye,
1987
1985
  defaultWidth: "wide"
1988
1986
  }),
1989
1987
  day: buildLocalizeFn({
1990
- values: _n,
1988
+ values: we,
1991
1989
  defaultWidth: "wide"
1992
1990
  }),
1993
1991
  dayPeriod: buildLocalizeFn({
1994
- values: Mn,
1992
+ values: ve,
1995
1993
  defaultWidth: "wide",
1996
- formattingValues: kn,
1994
+ formattingValues: Me,
1997
1995
  defaultFormattingWidth: "wide"
1998
1996
  })
1999
1997
  };
2000
1998
 
2001
- const xn = /^(第\s*)?\d+(日|时|分|秒)?/i;
1999
+ const ke = /^(第\s*)?\d+(日|时|分|秒)?/i;
2002
2000
 
2003
- const Fn = /\d+/i;
2001
+ const We = /\d+/i;
2004
2002
 
2005
- const Pn = {
2003
+ const xe = {
2006
2004
  narrow: /^(前)/i,
2007
2005
  abbreviated: /^(前)/i,
2008
2006
  wide: /^(公元前|公元)/i
2009
2007
  };
2010
2008
 
2011
- const zn = {
2009
+ const Fe = {
2012
2010
  any: [ /^(前)/i, /^(公元)/i ]
2013
2011
  };
2014
2012
 
2015
- const Dn = {
2013
+ const Pe = {
2016
2014
  narrow: /^[1234]/i,
2017
2015
  abbreviated: /^第[一二三四]刻/i,
2018
2016
  wide: /^第[一二三四]刻钟/i
2019
2017
  };
2020
2018
 
2021
- const Sn = {
2019
+ const ze = {
2022
2020
  any: [ /(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i ]
2023
2021
  };
2024
2022
 
2025
- const Tn = {
2023
+ const De = {
2026
2024
  narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
2027
2025
  abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
2028
2026
  wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
2029
2027
  };
2030
2028
 
2031
- const Cn = {
2029
+ const Se = {
2032
2030
  narrow: [ /^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i ],
2033
2031
  any: [ /^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i ]
2034
2032
  };
2035
2033
 
2036
- const Xn = {
2034
+ const Te = {
2037
2035
  narrow: /^[一二三四五六日]/i,
2038
2036
  short: /^[一二三四五六日]/i,
2039
2037
  abbreviated: /^周[一二三四五六日]/i,
2040
2038
  wide: /^星期[一二三四五六日]/i
2041
2039
  };
2042
2040
 
2043
- const Ln = {
2041
+ const Xe = {
2044
2042
  any: [ /日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i ]
2045
2043
  };
2046
2044
 
2047
- const jn = {
2045
+ const Ce = {
2048
2046
  any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
2049
2047
  };
2050
2048
 
2051
- const An = {
2049
+ const Le = {
2052
2050
  any: {
2053
2051
  am: /^上午?/i,
2054
2052
  pm: /^下午?/i,
@@ -2061,41 +2059,41 @@ const An = {
2061
2059
  }
2062
2060
  };
2063
2061
 
2064
- const In = {
2062
+ const Ae = {
2065
2063
  ordinalNumber: buildMatchPatternFn({
2066
- matchPattern: xn,
2067
- parsePattern: Fn,
2068
- valueCallback: n => parseInt(n, 10)
2064
+ matchPattern: ke,
2065
+ parsePattern: We,
2066
+ valueCallback: e => parseInt(e, 10)
2069
2067
  }),
2070
2068
  era: buildMatchFn({
2071
- matchPatterns: Pn,
2069
+ matchPatterns: xe,
2072
2070
  defaultMatchWidth: "wide",
2073
- parsePatterns: zn,
2071
+ parsePatterns: Fe,
2074
2072
  defaultParseWidth: "any"
2075
2073
  }),
2076
2074
  quarter: buildMatchFn({
2077
- matchPatterns: Dn,
2075
+ matchPatterns: Pe,
2078
2076
  defaultMatchWidth: "wide",
2079
- parsePatterns: Sn,
2077
+ parsePatterns: ze,
2080
2078
  defaultParseWidth: "any",
2081
- valueCallback: n => n + 1
2079
+ valueCallback: e => e + 1
2082
2080
  }),
2083
2081
  month: buildMatchFn({
2084
- matchPatterns: Tn,
2082
+ matchPatterns: De,
2085
2083
  defaultMatchWidth: "wide",
2086
- parsePatterns: Cn,
2084
+ parsePatterns: Se,
2087
2085
  defaultParseWidth: "any"
2088
2086
  }),
2089
2087
  day: buildMatchFn({
2090
- matchPatterns: Xn,
2088
+ matchPatterns: Te,
2091
2089
  defaultMatchWidth: "wide",
2092
- parsePatterns: Ln,
2090
+ parsePatterns: Xe,
2093
2091
  defaultParseWidth: "any"
2094
2092
  }),
2095
2093
  dayPeriod: buildMatchFn({
2096
- matchPatterns: jn,
2094
+ matchPatterns: Ce,
2097
2095
  defaultMatchWidth: "any",
2098
- parsePatterns: An,
2096
+ parsePatterns: Le,
2099
2097
  defaultParseWidth: "any"
2100
2098
  })
2101
2099
  };
@@ -2110,317 +2108,293 @@ const In = {
2110
2108
  * @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
2111
2109
  * @author Carney Wu [@cubicwork](https://github.com/cubicwork)
2112
2110
  * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
2113
- */ const On = {
2111
+ */ const je = {
2114
2112
  code: "zh-CN",
2115
2113
  formatDistance,
2116
- formatLong: bn,
2114
+ formatLong: fe,
2117
2115
  formatRelative,
2118
- localize: Wn,
2119
- match: In,
2116
+ localize: _e,
2117
+ match: Ae,
2120
2118
  options: {
2121
2119
  weekStartsOn: 1 /* Monday */ ,
2122
2120
  firstWeekContainsDate: 4
2123
2121
  }
2124
2122
  };
2125
2123
 
2126
- const Nn = '/*Gx Ide*/\n/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n:host {\n --common-spacing: var(--mer-spacing--lg);\n --spacing-body-block-start: var(--common-spacing);\n --spacing-body-block-end: var(--common-spacing);\n --spacing-body-inline-start: var(--common-spacing);\n --spacing-body-inline-end: 0;\n --spacing-body-inline-start: 0;\n display: grid;\n block-size: 100%;\n overflow: auto;\n}\n\n:host(.spacing-body) .section-secondary,\n:host(.spacing-body) .section-create-new-kb__header,\n:host(.spacing-body) .section-create-new-kb__actions,\n:host(.spacing-body-inline) .section-secondary,\n:host(.spacing-body-inline) .section-create-new-kb__header,\n:host(.spacing-body-inline) .section-create-new-kb__actions {\n padding-inline-start: var(--common-spacing);\n padding-inline-end: var(--common-spacing);\n}\n\n:host(.spacing-body-inline-start) .section-secondary,\n:host(.spacing-body-inline-start) .section-create-new-kb__actions {\n padding-inline-start: var(--common-spacing);\n}\n\n:host(.spacing-body-inline-end) .section-secondary,\n:host(.spacing-body-inline-end) .section-create-new-kb__actions {\n padding-inline-end: var(--common-spacing);\n}\n\n.main {\n animation: fadeIn var(--mer-timing--fast) forwards;\n display: grid;\n block-size: 100%;\n overflow: auto;\n opacity: 0;\n grid-template-rows: max-content 1fr;\n gap: var(--mer-spacing--lg);\n}\n\n@keyframes bounce {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-30px);\n }\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.section-create-new-kb__actions,\n.section-secondary__actions {\n display: grid;\n grid-auto-flow: column;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n padding-block-end: var(--mer-spacing--xs);\n}\n\n.card-filled,\n.card-outlined {\n display: grid;\n gap: var(--mer-spacing--md);\n align-content: space-between;\n border-radius: var(--mer-border__radius--md);\n}\n\n.card-filled {\n background-color: var(--mer-surface__elevation--01);\n padding: var(--mer-spacing--md);\n}\n\n.card-outlined {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n grid-template-columns: max-content 1fr;\n align-items: center;\n padding: var(--mer-spacing--md) var(--mer-spacing--md) var(--mer-spacing--xs) var(--mer-spacing--md);\n}\n\n.icon-capsule {\n pointer-events: none;\n display: inline-flex;\n block-size: 40px;\n inline-size: 40px;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n border: var(--mer-border__width--sm) dashed var(--mer-border-color__on-elevation--02);\n}\n.icon-capsule .icon-circular {\n --ch-image-size: 20px;\n}\n\n.card__header {\n display: grid;\n gap: var(--mer-spacing--sm);\n justify-items: self-start;\n}\n\n.card__header-description {\n display: grid;\n gap: var(--mer-spacing--xs);\n --font-weight-regular: 300;\n}\n\n.section-create-new-kb {\n display: grid;\n grid-auto-rows: max-content;\n gap: var(--mer-spacing--lg);\n}\n.section-create-new-kb__header {\n display: grid;\n gap: var(--mer-spacing--xs);\n}\n.section-create-new-kb__title {\n color: var(--mer-text__bright);\n font-weight: 500;\n}\n.section-create-new-kb__actions {\n display: grid;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n grid-auto-flow: column;\n grid-auto-columns: 330px;\n}\n\n.samples-buttons-container {\n flex-wrap: wrap;\n}\n\n.section-secondary {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n}\n.section-secondary__title {\n display: grid;\n grid-template-columns: 1fr max-content 1fr;\n gap: var(--mer-spacing--md);\n align-items: center;\n font-weight: 300;\n}\n.section-secondary__title::before, .section-secondary__title::after {\n content: "";\n block-size: var(--mer-border__width--sm);\n background-color: var(--mer-border-color__on-elevation--01);\n}\n.section-secondary__actions {\n display: grid;\n}\n.section-secondary__actions--two-cards {\n grid-template-columns: repeat(2, minmax(430px, 1fr));\n}\n.section-secondary__actions--multiple-cards {\n grid-auto-columns: 670px;\n}\n\n.section-no-kbs {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n grid-template-rows: max-content max-content;\n gap: var(--mer-spacing--md);\n}\n\n.section-kbs {\n background-color: var(--mer-surface__elevation--01);\n border-radius: var(--mer-border__radius--sm);\n padding: var(--mer-spacing--sm);\n display: grid;\n container-type: inline-size;\n grid-template-rows: auto 1fr;\n overflow: hidden;\n}\n.section-kbs__header {\n display: grid;\n grid-template-columns: max-content 230px;\n align-items: center;\n gap: var(--mer-spacing--xl);\n border-block-end: var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);\n padding-block-end: var(--mer-spacing--sm);\n}\n.section-kbs__header--no-border {\n border-block-end-color: transparent !important;\n}\n.section-kbs__title {\n align-items: center;\n display: flex;\n min-block-size: 31px;\n}\n.section-kbs__filter--hidden {\n opacity: 0;\n}\n.section-kbs__list {\n display: grid;\n grid-auto-rows: max-content;\n grid-template-columns: 1fr 1fr;\n row-gap: var(--mer-spacing--xs);\n column-gap: var(--mer-spacing--md);\n overflow: auto;\n position: relative;\n padding-block-start: var(--mer-spacing--sm);\n}\n.section-kbs__list--empty {\n grid-template-columns: 1fr;\n grid-auto-rows: 1fr;\n overflow: hidden;\n}\n@container (max-width: 768px) {\n .section-kbs__list {\n grid-template-columns: 1fr;\n }\n}\n\n.kb__item {\n --font-weight-regular: 300;\n background-color: var(--mer-surface__elevation--02);\n padding: var(--mer-spacing--sm);\n display: grid;\n grid-template-columns: auto max-content;\n gap: var(--mer-spacing--3xl);\n}\n.kb__details {\n display: grid;\n grid-template-columns: max-content 1fr;\n align-items: center;\n gap: var(--mer-spacing--sm);\n}\n.kb__name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n}\n.kb__name:hover {\n color: var(--mer-text__bright);\n}\n.kb__modified {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: end;\n font-variant-numeric: tabular-nums;\n}\n\n.hiChar {\n color: var(--mer-color__primary--200);\n filter: brightness(1.3);\n}\n\n.loader {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n}\n\n.heading-2,\n.heading-3 {\n margin: 0;\n font-weight: 600 !important;\n color: #ffffff !important;\n}\n\n.card-filled .heading-3 {\n color: var(--mer-text__on-surface) !important;\n}\n\n.text-body-regular-m,\n.card__footer {\n font-weight: var(--mer-font__weight--light) !important;\n --control__font-weight--regular: var(--mer-font__weight--light);\n}\n\n.card__header-description {\n --line-height-tight: 1.7;\n --font-weight-regular: 300;\n}\n\n.card__header-title {\n color: var(--mer-text__bright);\n}\n\n.button-tertiary-no-padding-inline-start.button-tertiary {\n padding-inline-start: 0;\n}';
2124
+ const Ie = ":host{display:grid;block-size:100%;overflow:auto}.main{animation:fadeIn var(--mer-timing--fast) forwards;display:grid;block-size:100%;overflow:auto;opacity:0;grid-template-rows:max-content 1fr;gap:var(--mer-spacing--xl);min-block-size:635px}@keyframes bounce{0%{transform:translateY(0)}100%{transform:translateY(-30px)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.section-create-new-kb__actions,.section-secondary__actions{display:grid;grid-auto-flow:column;gap:var(--mer-spacing--md);overflow-x:auto;padding-block-end:var(--mer-spacing--xs)}.card-filled,.card-outlined{display:grid;gap:var(--mer-spacing--xl);align-content:space-between;border:var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--lg)}.card-filled{background-color:var(--mer-surface__elevation--01)}.icon-capsule{pointer-events:none;display:inline-flex;block-size:40px;inline-size:40px;justify-content:center;align-items:center;border-radius:50%;border:var(--mer-border__width--sm) dashed var(--mer-border-color__on-elevation--02)}.card__header{display:grid;gap:var(--mer-spacing--sm)}.card__header-description{display:grid;gap:var(--mer-spacing--2xs)}.section-create-new-kb{display:grid;grid-auto-rows:max-content;gap:var(--mer-spacing--lg)}.section-create-new-kb__header{display:grid;gap:var(--mer-spacing--2xs)}.section-create-new-kb__actions{display:grid;gap:var(--mer-spacing--md);overflow-x:auto;grid-auto-flow:column;grid-auto-columns:430px}.section-secondary{display:grid;block-size:100%;position:relative;overflow:auto}.section-secondary__actions{display:grid;gap:var(--mer-spacing--sm)}.section-secondary__actions--two-cards{grid-template-columns:repeat(2, minmax(430px, 1fr))}.section-secondary__actions--multiple-cards{grid-auto-columns:670px}.section-kbs{background-color:var(--mer-surface__elevation--01);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--sm);display:grid;grid-template-rows:auto 1fr;overflow:hidden}.section-kbs__header{display:grid;grid-template-columns:max-content 230px;align-items:center;gap:var(--mer-spacing--xl);border-block-end:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--03);padding-block-end:var(--mer-spacing--sm)}.section-kbs__header--no-border{border-block-end-color:transparent !important}.section-kbs__title{align-items:center;display:flex;min-block-size:31px}.section-kbs__filter--hidden{opacity:0}.section-kbs__list{display:grid;grid-auto-rows:max-content;grid-template-columns:1fr 1fr;row-gap:var(--mer-spacing--xs);column-gap:var(--mer-spacing--md);overflow:auto;position:relative;padding-block-start:var(--mer-spacing--sm)}.section-kbs__list--empty{grid-template-columns:1fr;grid-auto-rows:1fr;overflow:hidden}.kb__item{background-color:var(--mer-surface__elevation--02);padding:var(--mer-spacing--sm);display:grid;grid-template-columns:284px 1fr;gap:var(--mer-spacing--md)}.kb__details{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:var(--mer-spacing--sm)}.kb__name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration:underline;cursor:pointer}.kb__name:hover{color:var(--mer-text__bright)}.kb__modified{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}.loader{border:var(--mer-border__width--sm) solid var(--mer-border-color__on-surface)}.heading-2,.heading-3{margin:0;font-weight:600 !important;color:#ffffff !important}.card-filled .heading-3{color:var(--mer-text__on-surface) !important}.text-body-regular-m,.card__footer{font-weight:var(--mer-font__weight--light) !important;--control__font-weight--regular:var(--mer-font__weight--light)}";
2127
2125
 
2128
- var En = undefined && undefined.__classPrivateFieldGet || function(n, e, t, a) {
2129
- if (t === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
2130
- if (typeof e === "function" ? n !== e || !a : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2131
- return t === "m" ? a : t === "a" ? a.call(n) : a ? a.value : e.get(n);
2126
+ var Oe = undefined && undefined.__classPrivateFieldGet || function(e, t, n, a) {
2127
+ if (n === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
2128
+ if (typeof t === "function" ? e !== t || !a : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2129
+ return n === "m" ? a : n === "a" ? a.call(e) : a ? a.value : t.get(e);
2132
2130
  };
2133
2131
 
2134
- var Yn = undefined && undefined.__classPrivateFieldSet || function(n, e, t, a, i) {
2132
+ var Ne = undefined && undefined.__classPrivateFieldSet || function(e, t, n, a, o) {
2135
2133
  if (a === "m") throw new TypeError("Private method is not writable");
2136
- if (a === "a" && !i) throw new TypeError("Private accessor was defined without a setter");
2137
- if (typeof e === "function" ? n !== e || !i : !e.has(n)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2138
- return a === "a" ? i.call(n, t) : i ? i.value = t : e.set(n, t), t;
2134
+ if (a === "a" && !o) throw new TypeError("Private accessor was defined without a setter");
2135
+ if (typeof t === "function" ? e !== t || !o : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2136
+ return a === "a" ? o.call(e, n) : o ? o.value = n : t.set(e, n), n;
2139
2137
  };
2140
2138
 
2141
- var qn, Hn, $n, Jn, Qn, Rn, Bn, Vn, Kn, Gn;
2139
+ var Ee, Ye, He, qe, $e, Je, Qe, Re, Be, Ve;
2142
2140
 
2143
- const Un = {
2144
- en: I,
2145
- ja: un,
2146
- "zh-CN": On,
2147
- "zh-TW": On,
2148
- "zh-HK": On
2141
+ // const locale = enUS; // use `zhCN` for Chinese, `ja` for Japanese, `enUS` for English
2142
+ const Ke = {
2143
+ en: j,
2144
+ ja: de,
2145
+ "zh-CN": je,
2146
+ "zh-TW": je,
2147
+ "zh-HK": je
2149
2148
  };
2150
2149
 
2151
- const Zn = i({
2150
+ const Ge = o({
2152
2151
  category: "system",
2153
2152
  name: "detail",
2154
2153
  colorType: "primary"
2155
2154
  });
2156
2155
 
2157
- const ne = i({
2156
+ const Ue = o({
2158
2157
  category: "window-tools",
2159
2158
  name: "filter",
2160
2159
  colorType: "on-elevation"
2161
2160
  });
2162
2161
 
2163
- const ee = i({
2162
+ const Ze = o({
2164
2163
  category: "objects",
2165
2164
  name: "knowledge-base"
2166
2165
  });
2167
2166
 
2168
- const te = i({
2167
+ const et = o({
2169
2168
  category: "system",
2170
2169
  name: "search",
2171
2170
  colorType: "on-elevation"
2172
2171
  });
2173
2172
 
2174
- const ae = [ "resets/box-sizing", "utils/typography", "utils/layout", "components/edit", "components/icon", "components/button", "chameleon/scrollbar", "utils/typography" ];
2173
+ const tt = [ "resets/box-sizing", "utils/typography", "utils/layout", "components/edit", "components/icon", "components/button", "chameleon/scrollbar", "utils/typography" ];
2175
2174
 
2176
- const ie = class {
2177
- constructor(t) {
2178
- n(this, t);
2179
- qn.add(this);
2175
+ const nt = class {
2176
+ constructor(n) {
2177
+ e(this, n);
2178
+ Ee.add(this);
2180
2179
  /**
2181
2180
  * The component hard-coded strings translations.
2182
2181
  */
2183
2182
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
2184
- Hn.set(this, void 0);
2185
- $n.set(this, void 0);
2186
- Jn.set(this, (n => e => {
2187
- e.stopPropagation();
2188
- this.createKBCallback(n);
2183
+ Ye.set(this, void 0);
2184
+ He.set(this, void 0);
2185
+ qe.set(this, (e => t => {
2186
+ t.stopPropagation();
2187
+ this.createKBCallback(e);
2189
2188
  }));
2190
- Qn.set(this, (n => {
2191
- this.kbFilterValue = n.detail;
2189
+ $e.set(this, (e => t => {
2190
+ t.stopPropagation();
2191
+ this.openKbCallback(e);
2192
2192
  }));
2193
- Rn.set(this, (n => e => {
2194
- e.stopPropagation();
2195
- this.openKbCallback(n);
2193
+ Je.set(this, (e => {
2194
+ this.kbFilterValue = e.detail;
2196
2195
  }));
2197
- Vn.set(this, (() => {
2198
- const n = this.kbs.length < this.kbsFilterThreshold;
2199
- const t = this.filteredKbs.length === 0;
2196
+ Qe.set(this, (() => {
2197
+ const e = this.kbs.length < this.kbsFilterThreshold;
2198
+ const n = this.filteredKbs.length === 0;
2200
2199
  let a;
2201
2200
  // Evaluate what is the content to display.
2202
2201
  if (this.filteredKbs.length > 0) {
2203
- a = En(this, Kn, "f").call(this);
2202
+ a = Oe(this, Re, "f").call(this);
2204
2203
  } else {
2205
2204
  // No kb has pass the filter. Display an empty-state.
2206
- a = e("gx-ide-empty-state", {
2205
+ a = t("gx-ide-empty-state", {
2207
2206
  isAnimated: true,
2208
- stateIconSrc: ne,
2209
- stateTitle: En(this, Hn, "f").recentKBs.noMatches
2207
+ stateIconSrc: Ue,
2208
+ stateTitle: Oe(this, Ye, "f").recentKBs.noMatches
2210
2209
  });
2211
2210
  }
2212
- return e("section", {
2211
+ return t("section", {
2213
2212
  class: "section-kbs"
2214
- }, e("header", {
2213
+ }, t("header", {
2215
2214
  class: {
2216
2215
  "section-kbs__header": true
2217
2216
  }
2218
- }, e("label", {
2217
+ }, t("label", {
2219
2218
  class: "subtitle-regular-s section-kbs__title",
2220
2219
  htmlFor: "filter-kbs"
2221
- }, En(this, Hn, "f").recentKBs.title), e("ch-edit", {
2220
+ }, Oe(this, Ye, "f").recentKBs.title), t("ch-edit", {
2222
2221
  // Render always, and display or hide, ro prevent FOUC, and also prevent
2223
2222
  // the header block-size from growing a little bit when the input renders.
2224
2223
  id: "filter-kbs",
2225
2224
  value: this.kbFilterValue,
2226
2225
  class: {
2227
2226
  input: true,
2228
- "section-kbs__filter--hidden": n
2227
+ "section-kbs__filter--hidden": e
2229
2228
  },
2230
- startImgSrc: te,
2231
- placeholder: En(this, Hn, "f").recentKBs.filterKbsPlaceholder,
2232
- onInput: !n && En(this, Qn, "f"),
2233
- disabled: n
2234
- })), e("div", {
2229
+ startImgSrc: et,
2230
+ placeholder: Oe(this, Ye, "f").recentKBs.filterKbsPlaceholder,
2231
+ onInput: !e && Oe(this, Je, "f"),
2232
+ disabled: e
2233
+ })), t("div", {
2235
2234
  class: {
2236
2235
  "section-kbs__list": true,
2237
- "section-kbs__list--empty": t,
2236
+ "section-kbs__list--empty": n,
2238
2237
  scrollable: true
2239
2238
  }
2240
- }, this.filteredKbs.length > 0 ? En(this, Kn, "f").call(this) : a));
2239
+ }, this.filteredKbs.length > 0 ? Oe(this, Re, "f").call(this) : a));
2241
2240
  }));
2242
- Kn.set(this, (() => {
2243
- var n;
2244
- return (n = this.filteredKbs) === null || n === void 0 ? void 0 : n.map(((n, t) => {
2241
+ Re.set(this, (() => {
2242
+ var e;
2243
+ return (e = this.filteredKbs) === null || e === void 0 ? void 0 : e.map(((e, n) => {
2245
2244
  // relative time ago
2246
2245
  var a;
2247
- const i = n.lastOpenedDate ? formatDistanceToNow(new Date(n.lastOpenedDate), {
2246
+ const o = e.lastOpenedDate ? formatDistanceToNow(new Date(e.lastOpenedDate), {
2248
2247
  addSuffix: true,
2249
- locale: En(this, $n, "f")
2248
+ locale: Oe(this, He, "f")
2250
2249
  }) : undefined;
2251
- // convert date to date format, since toISOString() requires date as Date.
2252
- const o = n.lastOpenedDate ? new Date(n.lastOpenedDate) : undefined;
2253
- let s = r(o, "date-time-short");
2254
2250
  // icon
2255
- const c = (a = n.icon) !== null && a !== void 0 ? a : ee;
2256
- return e("article", {
2251
+ const r = (a = e.icon) !== null && a !== void 0 ? a : Ze;
2252
+ return t("article", {
2257
2253
  class: "kb__item",
2258
- key: t
2259
- }, e("div", {
2254
+ key: n
2255
+ }, t("div", {
2260
2256
  class: "kb__details"
2261
- }, e("ch-image", {
2257
+ }, t("ch-image", {
2262
2258
  class: "icon-md",
2263
- src: c
2264
- }), e("button", {
2259
+ src: r
2260
+ }), t("p", {
2265
2261
  class: "body-regular-m kb__name",
2266
- onClick: En(this, Rn, "f").call(this, n.id)
2267
- }, n.name)), i && e("p", {
2262
+ onClick: Oe(this, $e, "f").call(this, e.id)
2263
+ }, e.name)), o && t("div", {
2268
2264
  class: "body-regular-m kb__modified"
2269
- }, `${En(this, Hn, "f").recentKBs.opened}`, " ", e("time", {
2270
- dateTime: s
2271
- }, s)));
2265
+ }, `${Oe(this, Ye, "f").recentKBs.opened} ${o}`));
2272
2266
  }));
2273
2267
  }));
2274
- Gn.set(this, (() => {
2268
+ Ve.set(this, (() => {
2275
2269
  if (!this.secondarySection) {
2276
2270
  return null;
2277
2271
  }
2278
- const n = this.secondarySection.cards.length > 2;
2279
- return e("section", {
2272
+ const e = this.secondarySection.cards.length > 2;
2273
+ return t("section", {
2280
2274
  // Recent Knowledge Bases
2281
- class: "section-no-kbs"
2282
- }, e("header", null, e("h2", {
2283
- class: "body-regular-s section-secondary__title"
2284
- }, this.secondarySection.title)), e("section", {
2275
+ class: "section-secondary"
2276
+ }, t("header", null, t("h2", {
2277
+ class: "subtitle-regular-s"
2278
+ }, this.secondarySection.title)), t("section", {
2285
2279
  class: {
2286
2280
  "section-secondary__actions": true,
2287
- "section-secondary__actions--two-cards": !n,
2288
- "section-secondary__actions--multiple-cards": n,
2281
+ "section-secondary__actions--two-cards": !e,
2282
+ "section-secondary__actions--multiple-cards": e,
2289
2283
  scrollable: true
2290
2284
  }
2291
- }, this.secondarySection.cards.map(((n, t) => e("article", {
2285
+ }, this.secondarySection.cards.map(((e, n) => t("article", {
2292
2286
  class: "card card-outlined",
2293
- key: t
2294
- }, e("span", {
2287
+ key: n
2288
+ }, t("header", {
2289
+ class: "card__header"
2290
+ }, t("span", {
2295
2291
  class: "icon-capsule"
2296
- }, e("ch-image", {
2292
+ }, t("ch-image", {
2297
2293
  class: "icon-md icon-circular",
2298
- src: n.icon.src,
2299
- "aria-label": n.icon.ariaLabel
2300
- })), e("header", {
2301
- class: "card__header"
2302
- }, e("h2", {
2303
- class: "subtitle-semi-bold-xs card__header-title"
2304
- }, n.title), n.description.map((n => e("p", {
2305
- class: "body-regular-s card__header-description"
2306
- }, n))), n.action && e("button", {
2307
- class: "button-tertiary button-icon-and-text button-tertiary-no-padding-inline-start",
2308
- onClick: n.action.callback && n.action.callback
2309
- }, e("ch-image", {
2294
+ src: e.icon.src,
2295
+ "aria-label": e.icon.ariaLabel
2296
+ })), t("div", {
2297
+ class: "card__header-description"
2298
+ }, t("h2", {
2299
+ class: "subtitle-regular-s"
2300
+ }, e.title), e.description.map((e => t("p", {
2301
+ class: "body-regular-m"
2302
+ }, e))))), t("footer", {
2303
+ class: "card__footer"
2304
+ }, e.action && t("button", {
2305
+ class: "button-tertiary button-icon-and-text",
2306
+ onClick: e.action.callback && e.action.callback
2307
+ }, t("ch-image", {
2310
2308
  class: "icon-md",
2311
- src: Zn
2312
- }), n.action.caption)))))));
2309
+ src: Ge
2310
+ }), e.action.caption)))))));
2313
2311
  }));
2314
- this.filteredKbs = undefined;
2315
2312
  this.kbFilterValue = "";
2313
+ this.filteredKbs = undefined;
2316
2314
  this.loading = true;
2317
2315
  this.createKBCallback = undefined;
2318
- this.kbs = undefined;
2319
- this.kbsFilterThreshold = undefined;
2320
2316
  this.openKbCallback = undefined;
2321
- this.openSampleCallback = undefined;
2322
- this.samples = undefined;
2323
2317
  this.secondarySection = undefined;
2318
+ this.kbs = undefined;
2319
+ this.kbsFilterThreshold = undefined;
2324
2320
  }
2325
- kbFilterValueChanged(n) {
2326
- this.filteredKbs = this.kbs.filter((e => e.name.toLowerCase().includes(n.toLocaleLowerCase())));
2321
+ kbFilterValueChanged(e) {
2322
+ this.filteredKbs = this.kbs.filter((t => t.name.toLowerCase().includes(e.toLocaleLowerCase())));
2327
2323
  }
2328
- kbsChanged(n) {
2329
- this.filteredKbs = n;
2324
+ kbsChanged(e) {
2325
+ this.filteredKbs = e;
2330
2326
  this.kbFilterValue = "";
2331
2327
  // clear filter
2332
2328
  }
2333
2329
  async componentWillLoad() {
2334
- Yn(this, Hn, await o.getComponentStrings(this.el), "f");
2330
+ Ne(this, Ye, await r.getComponentStrings(this.el), "f");
2335
2331
  // initialize filteredKbs
2336
2332
  this.kbsChanged(this.kbs);
2337
2333
  // get user language to display the kb "last opened" value in the appropriate language.
2338
- const n = document.documentElement.lang;
2339
- Yn(this, $n, Un[n], "f");
2334
+ const e = document.documentElement.lang;
2335
+ Ne(this, He, Ke[e], "f");
2340
2336
  }
2341
2337
  render() {
2342
- var n, a;
2343
- this.loading = (!this.kbs || ((n = this.kbs) === null || n === void 0 ? void 0 : n.length) === 0) && !this.secondarySection;
2344
- const i = this.createKBCallback;
2345
- const o = this.openKbCallback;
2346
- const r = ((a = this.samples) === null || a === void 0 ? void 0 : a.length) && this.openSampleCallback;
2347
- const s = i || o || r;
2348
- return e(t, {
2349
- class: "scrollable"
2350
- }, e("ch-theme", {
2351
- model: ae
2352
- }), e("main", {
2338
+ var e;
2339
+ this.loading = (!this.kbs || ((e = this.kbs) === null || e === void 0 ? void 0 : e.length) === 0) && !this.secondarySection;
2340
+ return t(n, {
2341
+ class: "widget scrollable spacing-body"
2342
+ }, t("ch-theme", {
2343
+ model: tt
2344
+ }), t("main", {
2353
2345
  class: "main scrollable"
2354
- }, e("section", {
2346
+ }, t("section", {
2355
2347
  // Create a new Knowledge Base
2356
2348
  class: "section-create-new-kb"
2357
- }, e("header", {
2349
+ }, t("header", {
2358
2350
  // main header
2359
- class: "section-create-new-kb__header"
2360
- }, e("h1", {
2361
- class: "heading-5 section-create-new-kb__title"
2362
- }, En(this, Hn, "f").createKB.title), e("p", {
2351
+ class: "section-create-new__header"
2352
+ }, t("h1", {
2353
+ class: "heading-4"
2354
+ }, Oe(this, Ye, "f").createKB.title), t("p", {
2363
2355
  class: "body-regular-m"
2364
- }, En(this, Hn, "f").createKB.description)), s && e("section", {
2356
+ }, Oe(this, Ye, "f").createKB.description)), t("section", {
2365
2357
  class: "section-create-new-kb__actions scrollable"
2366
- }, i && e("article", {
2358
+ }, t("article", {
2367
2359
  // create project
2368
2360
  class: "card card-filled"
2369
- }, e("header", {
2361
+ }, t("header", {
2370
2362
  class: "card__header"
2371
- }, e("div", {
2363
+ }, t("div", {
2372
2364
  class: "card__header-description"
2373
- }, e("h2", {
2374
- class: "subtitle-semi-bold-xs card__header-title"
2375
- }, En(this, Hn, "f").createProject.title), e("p", {
2376
- class: "body-regular-s"
2377
- }, En(this, Hn, "f").createProject.description))), e("footer", {
2365
+ }, t("h2", {
2366
+ class: "subtitle-regular-s"
2367
+ }, Oe(this, Ye, "f").createProject.title), t("p", {
2368
+ class: "body-regular-m"
2369
+ }, Oe(this, Ye, "f").createProject.description))), t("footer", {
2378
2370
  class: "card__footer"
2379
- }, e("button", {
2371
+ }, t("button", {
2380
2372
  class: "button-primary",
2381
- onClick: En(this, Jn, "f").call(this, false)
2382
- }, En(this, Hn, "f").createProject.buttonCaption))), o && e("article", {
2373
+ onClick: Oe(this, qe, "f").call(this, false)
2374
+ }, Oe(this, Ye, "f").createProject.buttonCaption))), t("article", {
2383
2375
  // open existing project
2384
2376
  class: "card-filled"
2385
- }, e("header", {
2377
+ }, t("header", {
2386
2378
  class: "card__header"
2387
- }, e("div", {
2379
+ }, t("div", {
2388
2380
  class: "card__header-description"
2389
- }, e("h2", {
2390
- class: "subtitle-semi-bold-xs"
2391
- }, En(this, Hn, "f").openExistingProject.title), e("p", {
2392
- class: "body-regular-s"
2393
- }, En(this, Hn, "f").openExistingProject.description))), e("footer", {
2381
+ }, t("h2", {
2382
+ class: "subtitle-regular-s"
2383
+ }, Oe(this, Ye, "f").openExistingProject.title), t("p", {
2384
+ class: "body-regular-m"
2385
+ }, Oe(this, Ye, "f").openExistingProject.description))), t("footer", {
2394
2386
  class: "card__footer"
2395
- }, e("button", {
2387
+ }, t("button", {
2396
2388
  class: "button-secondary cancel-btn",
2397
- onClick: En(this, Jn, "f").call(this, true)
2398
- }, En(this, Hn, "f").openExistingProject.buttonCaption))), r ? e("article", {
2399
- // view samples
2400
- class: "card-filled"
2401
- }, e("header", {
2402
- class: "card__header"
2403
- }, e("div", {
2404
- class: "card__header-description"
2405
- }, e("h2", {
2406
- class: "subtitle-semi-bold-xs"
2407
- }, En(this, Hn, "f").viewSamples.title), e("p", {
2408
- class: "body-regular-s"
2409
- }, En(this, Hn, "f").viewSamples.description))), e("footer", {
2410
- class: "card__footer"
2411
- }, e("div", {
2412
- class: "buttons-spacer samples-buttons-container"
2413
- }, this.samples.map((n => e("button", {
2414
- class: "button-secondary",
2415
- onClick: () => this.openSampleCallback(n)
2416
- }, n.name)))))) : null)), e("section", {
2389
+ onClick: Oe(this, qe, "f").call(this, true)
2390
+ }, Oe(this, Ye, "f").openExistingProject.buttonCaption))))), t("section", {
2417
2391
  class: "section-secondary scrollable"
2418
- }, this.loading ? e("gx-ide-loader", {
2392
+ }, this.loading ? t("gx-ide-loader", {
2419
2393
  class: "loader",
2420
- loaderTitle: En(this, Hn, "f").recentKBs.loaderTitle,
2421
- description: En(this, Hn, "f").recentKBs.loaderDescription,
2394
+ loaderTitle: Oe(this, Ye, "f").recentKBs.loaderTitle,
2395
+ description: Oe(this, Ye, "f").recentKBs.loaderDescription,
2422
2396
  show: true
2423
- }) : En(this, qn, "m", Bn).call(this))));
2397
+ }) : Oe(this, Ee, "m", Be).call(this))));
2424
2398
  }
2425
2399
  static get assetsDirs() {
2426
2400
  return [ "gx-ide-assets/start-page" ];
@@ -2436,12 +2410,12 @@ const ie = class {
2436
2410
  }
2437
2411
  };
2438
2412
 
2439
- Hn = new WeakMap, $n = new WeakMap, Jn = new WeakMap, Qn = new WeakMap, Rn = new WeakMap,
2440
- Vn = new WeakMap, Kn = new WeakMap, Gn = new WeakMap, qn = new WeakSet, Bn = function _GxIdeStartPage_evaluateContentToRender() {
2441
- return this.kbs && this.kbs.length > 0 ? En(this, Vn, "f").call(this) : En(this, Gn, "f").call(this);
2413
+ Ye = new WeakMap, He = new WeakMap, qe = new WeakMap, $e = new WeakMap, Je = new WeakMap,
2414
+ Qe = new WeakMap, Re = new WeakMap, Ve = new WeakMap, Ee = new WeakSet, Be = function _GxIdeStartPage_evaluateContentToRender() {
2415
+ return this.kbs && this.kbs.length > 0 ? Oe(this, Qe, "f").call(this) : Oe(this, Ve, "f").call(this);
2442
2416
  };
2443
2417
 
2444
- ie.style = Nn;
2418
+ nt.style = Ie;
2445
2419
 
2446
- export { ie as gx_ide_start_page };
2447
- //# sourceMappingURL=p-ab1e2886.entry.js.map
2420
+ export { nt as gx_ide_start_page };
2421
+ //# sourceMappingURL=p-e2b0ee82.entry.js.map