@oneclick.dev/cms-core-modules 0.0.53 → 0.0.54

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 (126) hide show
  1. package/dist/CalendarDate-CRT2Viyt.mjs +830 -0
  2. package/dist/CalendarDate-CWtpXgpD.js +1 -0
  3. package/dist/Components-D9yIIosM.mjs +623 -0
  4. package/dist/Components-DXbx0RLV.js +1 -0
  5. package/dist/ContentEditor-DRJFQKCv.mjs +34915 -0
  6. package/dist/ContentEditor-DzTi8fSZ.js +290 -0
  7. package/dist/Create-BP8TX6rj.js +1 -0
  8. package/dist/Create-Bwf1RXdG.mjs +1248 -0
  9. package/dist/DateFormatter-BbcSwTs4.js +1 -0
  10. package/dist/DateFormatter-CbO0PVUK.mjs +99 -0
  11. package/dist/Detail-B-PnkcXD.mjs +3473 -0
  12. package/dist/Detail-BVlGSjOq.mjs +380 -0
  13. package/dist/Detail-C4E1T87K.mjs +26 -0
  14. package/dist/Detail-CNfTDUE5.js +1 -0
  15. package/dist/Detail-Cd5CBVN0.js +1 -0
  16. package/dist/Detail-CpfOQChd.mjs +585 -0
  17. package/dist/Detail-CwagT6gQ.mjs +650 -0
  18. package/dist/Detail-DUo6qKqO.js +1 -0
  19. package/dist/Detail-Dd_OkpcN.js +1 -0
  20. package/dist/Detail-mvSGbnFU.js +1 -0
  21. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-BWuKVkvV.js +1 -0
  22. package/dist/EditLayout.vue_vue_type_script_setup_true_lang-D0-EcU0_.mjs +55 -0
  23. package/dist/Entries-DcpPvlYj.js +1 -0
  24. package/dist/Entries-QLMtTYLX.mjs +713 -0
  25. package/dist/Find-BPR0uU-Z.mjs +229 -0
  26. package/dist/Find-BidEQJxT.js +1 -0
  27. package/dist/GlobalStyling-CMzPRd18.js +17 -0
  28. package/dist/GlobalStyling-DoLHUJeV.mjs +988 -0
  29. package/dist/Overview-BDlBCUI_.js +1 -0
  30. package/dist/Overview-BH3NwvNX.mjs +26 -0
  31. package/dist/Overview-BLsZMHNW.mjs +178 -0
  32. package/dist/Overview-BNMZ9MUK.js +1 -0
  33. package/dist/Overview-BbvfH1u-.js +1 -0
  34. package/dist/Overview-CDN88OSM.mjs +190 -0
  35. package/dist/Overview-CEPodGCn.mjs +311 -0
  36. package/dist/Overview-CvquDPhB.js +1 -0
  37. package/dist/Overview-D54pjmI6.mjs +633 -0
  38. package/dist/Overview-D67UjG6n.mjs +947 -0
  39. package/dist/Overview-KT2Mgfh5.js +1 -0
  40. package/dist/Overview-T-lsy3UZ.js +1 -0
  41. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-0xZSq0rx.js +1 -0
  42. package/dist/RegularSlotEditor.vue_vue_type_script_setup_true_lang-Bj_PVLLV.mjs +392 -0
  43. package/dist/TableView-CpO53xcX.js +111 -0
  44. package/dist/TableView-D9J5rUls.mjs +72921 -0
  45. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-B_AtWnHa.js +1 -0
  46. package/dist/TemplateList.vue_vue_type_script_setup_true_lang-BiLAkhIA.mjs +40 -0
  47. package/dist/View-DlHBZbFu.js +1 -0
  48. package/dist/View-Dv5QMrSn.mjs +25 -0
  49. package/dist/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  50. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  51. package/dist/agenda-B49oKGeh.mjs +706 -0
  52. package/dist/agenda-DipQ5IWP.js +1 -0
  53. package/dist/availability-C7q9tq6l.js +1 -0
  54. package/dist/availability-DeCkqiu8.mjs +613 -0
  55. package/dist/cms-core-modules.css +1 -1
  56. package/dist/countries-BTPvmrsb.mjs +4 -0
  57. package/dist/countries-CgZ081No.js +1 -0
  58. package/dist/exceptions-D3b18TiY.mjs +647 -0
  59. package/dist/exceptions-DJ9zWX3k.js +1 -0
  60. package/dist/floating-ui.dom-C82nbomj.js +1 -0
  61. package/dist/floating-ui.dom-ouSgPqty.mjs +1133 -0
  62. package/dist/google-CvtuJwgk.mjs +4 -0
  63. package/dist/google-D4N3gb01.js +1 -0
  64. package/dist/index--jjEzba7.mjs +24 -0
  65. package/dist/index-9HVlmvK3.js +1 -0
  66. package/dist/index-BEGU8Kme.mjs +12 -0
  67. package/dist/index-Bwi1mtkq.mjs +24 -0
  68. package/dist/index-BzuHN-r8.mjs +24 -0
  69. package/dist/index-CImCyE3L.mjs +24 -0
  70. package/dist/index-CKPshlZ8-BQiiP6r_.mjs +1264 -0
  71. package/dist/index-CKPshlZ8-CIz1tDwX.js +1 -0
  72. package/dist/index-CQiY-oTN.mjs +24 -0
  73. package/dist/index-CSxYBeVA.js +1 -0
  74. package/dist/index-CkiNvRzs.js +1 -0
  75. package/dist/index-Co4ON2Di.js +1 -0
  76. package/dist/index-CwqrAU-H.js +1 -0
  77. package/dist/index-Cz-baGax.js +1 -0
  78. package/dist/index-D2a6wEPh.js +1 -0
  79. package/dist/index-DFQGVHTs.js +1 -0
  80. package/dist/index-DI6mydpm.mjs +138 -0
  81. package/dist/index-DMoyoaks.mjs +22 -0
  82. package/dist/index-DT1wWnUk.mjs +24 -0
  83. package/dist/index-DUeFrD-B.js +1 -0
  84. package/dist/index-DsnoK4ia.mjs +579 -0
  85. package/dist/index-R2oUDsjx.js +1 -0
  86. package/dist/index-RLz1QPrf.mjs +203 -0
  87. package/dist/index-UtjLbLw-.js +1 -0
  88. package/dist/index-_mG-aU3Z.mjs +87 -0
  89. package/dist/index-_sQDF1pH.js +1 -0
  90. package/dist/index-ijdf0d9-.js +1 -0
  91. package/dist/index-klI238nT.mjs +24 -0
  92. package/dist/index.cjs.js +1 -330
  93. package/dist/index.mjs +287 -69051
  94. package/dist/interpolation-BNUjI7LH.js +1 -0
  95. package/dist/interpolation-BpGXqOz8.mjs +59 -0
  96. package/dist/payment-kTjsV0Jj.js +1 -0
  97. package/dist/payment-zpCM0LD-.mjs +981 -0
  98. package/dist/regular-C4_3YXqx.mjs +602 -0
  99. package/dist/regular-DFwPEbZO.js +1 -0
  100. package/dist/regular-slots-4ooEpICB.mjs +67 -0
  101. package/dist/regular-slots-BAVGbomI.js +1 -0
  102. package/dist/resources-MpQkSstv.mjs +563 -0
  103. package/dist/resources-iM28T3dD.js +1 -0
  104. package/dist/src/appointments/index.d.ts +4 -28
  105. package/dist/src/appointments/routes.d.ts +3 -9
  106. package/dist/src/content-manager/index.d.ts +5 -147
  107. package/dist/src/content-manager/routes.d.ts +4 -128
  108. package/dist/src/custom/index.d.ts +2 -2
  109. package/dist/src/custom/routes.d.ts +1 -1
  110. package/dist/src/mail-templates/index.d.ts +2 -30
  111. package/dist/src/mail-templates/routes.d.ts +1 -11
  112. package/dist/src/product-collections/index.d.ts +2 -30
  113. package/dist/src/product-collections/routes.d.ts +1 -11
  114. package/dist/src/products/index.d.ts +2 -30
  115. package/dist/src/products/routes.d.ts +1 -11
  116. package/dist/src/promo-codes/index.d.ts +2 -30
  117. package/dist/src/promo-codes/routes.d.ts +1 -11
  118. package/dist/src/shipping-options/index.d.ts +2 -30
  119. package/dist/src/shipping-options/routes.d.ts +1 -11
  120. package/dist/src/table/index.d.ts +2 -70
  121. package/dist/src/table/routes.d.ts +1 -51
  122. package/dist/utils-BVKy9S2J.mjs +29 -0
  123. package/dist/utils-D6CaKJbp.js +2 -0
  124. package/dist/vee-validate-zod-BPQyEfpF.js +1 -0
  125. package/dist/vee-validate-zod-IXkfh-6Q.mjs +4402 -0
  126. package/package.json +3 -3
@@ -0,0 +1,830 @@
1
+ function O(e, t) {
2
+ return e - t * Math.floor(e / t);
3
+ }
4
+ const Q = 1721426;
5
+ function C(e, t, r, n) {
6
+ t = N(e, t);
7
+ let a = t - 1, c = -2;
8
+ return r <= 2 ? c = 0 : Y(t) && (c = -1), Q - 1 + 365 * a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + Math.floor((367 * r - 362) / 12 + c + n);
9
+ }
10
+ function Y(e) {
11
+ return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
12
+ }
13
+ function N(e, t) {
14
+ return e === "BC" ? 1 - t : t;
15
+ }
16
+ function $e(e) {
17
+ let t = "AD";
18
+ return e <= 0 && (t = "BC", e = 1 - e), [
19
+ t,
20
+ e
21
+ ];
22
+ }
23
+ const ye = {
24
+ standard: [
25
+ 31,
26
+ 28,
27
+ 31,
28
+ 30,
29
+ 31,
30
+ 30,
31
+ 31,
32
+ 31,
33
+ 30,
34
+ 31,
35
+ 30,
36
+ 31
37
+ ],
38
+ leapyear: [
39
+ 31,
40
+ 29,
41
+ 31,
42
+ 30,
43
+ 31,
44
+ 30,
45
+ 31,
46
+ 31,
47
+ 30,
48
+ 31,
49
+ 30,
50
+ 31
51
+ ]
52
+ };
53
+ class D {
54
+ fromJulianDay(t) {
55
+ let r = t, n = r - Q, a = Math.floor(n / 146097), c = O(n, 146097), o = Math.floor(c / 36524), i = O(c, 36524), s = Math.floor(i / 1461), h = O(i, 1461), M = Math.floor(h / 365), p = a * 400 + o * 100 + s * 4 + M + (o !== 4 && M !== 4 ? 1 : 0), [w, m] = $e(p), y = r - C(w, m, 1, 1), B = 2;
56
+ r < C(w, m, 3, 1) ? B = 0 : Y(m) && (B = 1);
57
+ let V = Math.floor(((y + B) * 12 + 373) / 367), ue = r - C(w, m, V, 1) + 1;
58
+ return new I(w, m, V, ue);
59
+ }
60
+ toJulianDay(t) {
61
+ return C(t.era, t.year, t.month, t.day);
62
+ }
63
+ getDaysInMonth(t) {
64
+ return ye[Y(t.year) ? "leapyear" : "standard"][t.month - 1];
65
+ }
66
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
67
+ getMonthsInYear(t) {
68
+ return 12;
69
+ }
70
+ getDaysInYear(t) {
71
+ return Y(t.year) ? 366 : 365;
72
+ }
73
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
74
+ getYearsInEra(t) {
75
+ return 9999;
76
+ }
77
+ getEras() {
78
+ return [
79
+ "BC",
80
+ "AD"
81
+ ];
82
+ }
83
+ isInverseEra(t) {
84
+ return t.era === "BC";
85
+ }
86
+ balanceDate(t) {
87
+ t.year <= 0 && (t.era = t.era === "BC" ? "AD" : "BC", t.year = 1 - t.year);
88
+ }
89
+ constructor() {
90
+ this.identifier = "gregory";
91
+ }
92
+ }
93
+ const me = {
94
+ "001": 1,
95
+ AD: 1,
96
+ AE: 6,
97
+ AF: 6,
98
+ AI: 1,
99
+ AL: 1,
100
+ AM: 1,
101
+ AN: 1,
102
+ AR: 1,
103
+ AT: 1,
104
+ AU: 1,
105
+ AX: 1,
106
+ AZ: 1,
107
+ BA: 1,
108
+ BE: 1,
109
+ BG: 1,
110
+ BH: 6,
111
+ BM: 1,
112
+ BN: 1,
113
+ BY: 1,
114
+ CH: 1,
115
+ CL: 1,
116
+ CM: 1,
117
+ CN: 1,
118
+ CR: 1,
119
+ CY: 1,
120
+ CZ: 1,
121
+ DE: 1,
122
+ DJ: 6,
123
+ DK: 1,
124
+ DZ: 6,
125
+ EC: 1,
126
+ EE: 1,
127
+ EG: 6,
128
+ ES: 1,
129
+ FI: 1,
130
+ FJ: 1,
131
+ FO: 1,
132
+ FR: 1,
133
+ GB: 1,
134
+ GE: 1,
135
+ GF: 1,
136
+ GP: 1,
137
+ GR: 1,
138
+ HR: 1,
139
+ HU: 1,
140
+ IE: 1,
141
+ IQ: 6,
142
+ IR: 6,
143
+ IS: 1,
144
+ IT: 1,
145
+ JO: 6,
146
+ KG: 1,
147
+ KW: 6,
148
+ KZ: 1,
149
+ LB: 1,
150
+ LI: 1,
151
+ LK: 1,
152
+ LT: 1,
153
+ LU: 1,
154
+ LV: 1,
155
+ LY: 6,
156
+ MC: 1,
157
+ MD: 1,
158
+ ME: 1,
159
+ MK: 1,
160
+ MN: 1,
161
+ MQ: 1,
162
+ MV: 5,
163
+ MY: 1,
164
+ NL: 1,
165
+ NO: 1,
166
+ NZ: 1,
167
+ OM: 6,
168
+ PL: 1,
169
+ QA: 6,
170
+ RE: 1,
171
+ RO: 1,
172
+ RS: 1,
173
+ RU: 1,
174
+ SD: 6,
175
+ SE: 1,
176
+ SI: 1,
177
+ SK: 1,
178
+ SM: 1,
179
+ SY: 6,
180
+ TJ: 1,
181
+ TM: 1,
182
+ TR: 1,
183
+ UA: 1,
184
+ UY: 1,
185
+ UZ: 1,
186
+ VA: 1,
187
+ VN: 1,
188
+ XK: 1
189
+ };
190
+ function X(e, t) {
191
+ return t = l(t, e.calendar), e.era === t.era && e.year === t.year && e.month === t.month && e.day === t.day;
192
+ }
193
+ function be(e, t) {
194
+ return t = l(t, e.calendar), e = K(e), t = K(t), e.era === t.era && e.year === t.year && e.month === t.month;
195
+ }
196
+ function Pe(e, t) {
197
+ return W(e.calendar, t.calendar) && X(e, t);
198
+ }
199
+ function Ve(e, t) {
200
+ return W(e.calendar, t.calendar) && be(e, t);
201
+ }
202
+ function W(e, t) {
203
+ var r, n, a, c;
204
+ return (c = (a = (r = e.isEqual) === null || r === void 0 ? void 0 : r.call(e, t)) !== null && a !== void 0 ? a : (n = t.isEqual) === null || n === void 0 ? void 0 : n.call(t, e)) !== null && c !== void 0 ? c : e.identifier === t.identifier;
205
+ }
206
+ function Ge(e, t) {
207
+ return X(e, pe(t));
208
+ }
209
+ function Ke(e, t, r) {
210
+ let n = e.calendar.toJulianDay(e), a = ge(t), c = Math.ceil(n + 1 - a) % 7;
211
+ return c < 0 && (c += 7), c;
212
+ }
213
+ function Me(e) {
214
+ return u(Date.now(), e);
215
+ }
216
+ function pe(e) {
217
+ return ve(Me(e));
218
+ }
219
+ function ee(e, t) {
220
+ return e.calendar.toJulianDay(e) - t.calendar.toJulianDay(t);
221
+ }
222
+ function we(e, t) {
223
+ return G(e) - G(t);
224
+ }
225
+ function G(e) {
226
+ return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
227
+ }
228
+ let Z = null;
229
+ function te() {
230
+ return Z == null && (Z = new Intl.DateTimeFormat().resolvedOptions().timeZone), Z;
231
+ }
232
+ function K(e) {
233
+ return e.subtract({
234
+ days: e.day - 1
235
+ });
236
+ }
237
+ function je(e) {
238
+ return e.add({
239
+ days: e.calendar.getDaysInMonth(e) - e.day
240
+ });
241
+ }
242
+ const j = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
243
+ function De(e) {
244
+ if (Intl.Locale) {
245
+ let r = j.get(e);
246
+ return r || (r = new Intl.Locale(e).maximize().region, r && j.set(e, r)), r;
247
+ }
248
+ let t = e.split("-")[1];
249
+ return t === "u" ? void 0 : t;
250
+ }
251
+ function ge(e) {
252
+ let t = R.get(e);
253
+ if (!t) {
254
+ if (Intl.Locale) {
255
+ let n = new Intl.Locale(e);
256
+ if ("getWeekInfo" in n && (t = n.getWeekInfo(), t))
257
+ return R.set(e, t), t.firstDay;
258
+ }
259
+ let r = De(e);
260
+ if (e.includes("-fw-")) {
261
+ let n = e.split("-fw-")[1].split("-")[0];
262
+ n === "mon" ? t = {
263
+ firstDay: 1
264
+ } : n === "tue" ? t = {
265
+ firstDay: 2
266
+ } : n === "wed" ? t = {
267
+ firstDay: 3
268
+ } : n === "thu" ? t = {
269
+ firstDay: 4
270
+ } : n === "fri" ? t = {
271
+ firstDay: 5
272
+ } : n === "sat" ? t = {
273
+ firstDay: 6
274
+ } : t = {
275
+ firstDay: 0
276
+ };
277
+ } else e.includes("-ca-iso8601") ? t = {
278
+ firstDay: 1
279
+ } : t = {
280
+ firstDay: r && me[r] || 0
281
+ };
282
+ R.set(e, t);
283
+ }
284
+ return t.firstDay;
285
+ }
286
+ function g(e) {
287
+ e = l(e, new D());
288
+ let t = N(e.era, e.year);
289
+ return re(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
290
+ }
291
+ function re(e, t, r, n, a, c, o) {
292
+ let i = /* @__PURE__ */ new Date();
293
+ return i.setUTCHours(n, a, c, o), i.setUTCFullYear(e, t - 1, r), i.getTime();
294
+ }
295
+ function L(e, t) {
296
+ if (t === "UTC") return 0;
297
+ if (e > 0 && t === te()) return new Date(e).getTimezoneOffset() * -6e4;
298
+ let { year: r, month: n, day: a, hour: c, minute: o, second: i } = ne(e, t);
299
+ return re(r, n, a, c, o, i, 0) - Math.floor(e / 1e3) * 1e3;
300
+ }
301
+ const _ = /* @__PURE__ */ new Map();
302
+ function ne(e, t) {
303
+ let r = _.get(t);
304
+ r || (r = new Intl.DateTimeFormat("en-US", {
305
+ timeZone: t,
306
+ hour12: !1,
307
+ era: "short",
308
+ year: "numeric",
309
+ month: "numeric",
310
+ day: "numeric",
311
+ hour: "numeric",
312
+ minute: "numeric",
313
+ second: "numeric"
314
+ }), _.set(t, r));
315
+ let n = r.formatToParts(new Date(e)), a = {};
316
+ for (let c of n) c.type !== "literal" && (a[c.type] = c.value);
317
+ return {
318
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
319
+ year: a.era === "BC" || a.era === "B" ? -a.year + 1 : +a.year,
320
+ month: +a.month,
321
+ day: +a.day,
322
+ hour: a.hour === "24" ? 0 : +a.hour,
323
+ minute: +a.minute,
324
+ second: +a.second
325
+ };
326
+ }
327
+ const z = 864e5;
328
+ function xe(e, t, r, n) {
329
+ return (r === n ? [
330
+ r
331
+ ] : [
332
+ r,
333
+ n
334
+ ]).filter((c) => Ie(e, t, c));
335
+ }
336
+ function Ie(e, t, r) {
337
+ let n = ne(r, t);
338
+ return e.year === n.year && e.month === n.month && e.day === n.day && e.hour === n.hour && e.minute === n.minute && e.second === n.second;
339
+ }
340
+ function d(e, t, r = "compatible") {
341
+ let n = x(e);
342
+ if (t === "UTC") return g(n);
343
+ if (t === te() && r === "compatible") {
344
+ n = l(n, new D());
345
+ let s = /* @__PURE__ */ new Date(), h = N(n.era, n.year);
346
+ return s.setFullYear(h, n.month - 1, n.day), s.setHours(n.hour, n.minute, n.second, n.millisecond), s.getTime();
347
+ }
348
+ let a = g(n), c = L(a - z, t), o = L(a + z, t), i = xe(n, t, a - c, a - o);
349
+ if (i.length === 1) return i[0];
350
+ if (i.length > 1) switch (r) {
351
+ // 'compatible' means 'earlier' for "fall back" transitions
352
+ case "compatible":
353
+ case "earlier":
354
+ return i[0];
355
+ case "later":
356
+ return i[i.length - 1];
357
+ case "reject":
358
+ throw new RangeError("Multiple possible absolute times found");
359
+ }
360
+ switch (r) {
361
+ case "earlier":
362
+ return Math.min(a - c, a - o);
363
+ // 'compatible' means 'later' for "spring forward" transitions
364
+ case "compatible":
365
+ case "later":
366
+ return Math.max(a - c, a - o);
367
+ case "reject":
368
+ throw new RangeError("No such absolute time found");
369
+ }
370
+ }
371
+ function ae(e, t, r = "compatible") {
372
+ return new Date(d(e, t, r));
373
+ }
374
+ function u(e, t) {
375
+ let r = L(e, t), n = new Date(e + r), a = n.getUTCFullYear(), c = n.getUTCMonth() + 1, o = n.getUTCDate(), i = n.getUTCHours(), s = n.getUTCMinutes(), h = n.getUTCSeconds(), M = n.getUTCMilliseconds();
376
+ return new E(a < 1 ? "BC" : "AD", a < 1 ? -a + 1 : a, c, o, t, r, i, s, h, M);
377
+ }
378
+ function ve(e) {
379
+ return new I(e.calendar, e.era, e.year, e.month, e.day);
380
+ }
381
+ function x(e, t) {
382
+ let r = 0, n = 0, a = 0, c = 0;
383
+ if ("timeZone" in e) ({ hour: r, minute: n, second: a, millisecond: c } = e);
384
+ else if ("hour" in e && !t) return e;
385
+ return t && ({ hour: r, minute: n, second: a, millisecond: c } = t), new S(e.calendar, e.era, e.year, e.month, e.day, r, n, a, c);
386
+ }
387
+ function l(e, t) {
388
+ if (W(e.calendar, t)) return e;
389
+ let r = t.fromJulianDay(e.calendar.toJulianDay(e)), n = e.copy();
390
+ return n.calendar = t, n.era = r.era, n.year = r.year, n.month = r.month, n.day = r.day, b(n), n;
391
+ }
392
+ function Se(e, t, r) {
393
+ if (e instanceof E)
394
+ return e.timeZone === t ? e : Ce(e, t);
395
+ let n = d(e, t, r);
396
+ return u(n, t);
397
+ }
398
+ function Ee(e) {
399
+ let t = g(e) - e.offset;
400
+ return new Date(t);
401
+ }
402
+ function Ce(e, t) {
403
+ let r = g(e) - e.offset;
404
+ return l(u(r, t), e.calendar);
405
+ }
406
+ const v = 36e5;
407
+ function U(e, t) {
408
+ let r = e.copy(), n = "hour" in r ? Ue(r, t) : 0;
409
+ T(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, F(r), ce(r), r.day += (t.weeks || 0) * 7, r.day += t.days || 0, r.day += n, Ae(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
410
+ let a = r.calendar.getYearsInEra(r);
411
+ if (r.year > a) {
412
+ var c, o;
413
+ let s = (c = (o = r.calendar).isInverseEra) === null || c === void 0 ? void 0 : c.call(o, r);
414
+ r.year = a, r.month = s ? 1 : r.calendar.getMonthsInYear(r), r.day = s ? 1 : r.calendar.getDaysInMonth(r);
415
+ }
416
+ r.month < 1 && (r.month = 1, r.day = 1);
417
+ let i = r.calendar.getMonthsInYear(r);
418
+ return r.month > i && (r.month = i, r.day = r.calendar.getDaysInMonth(r)), r.day = Math.max(1, Math.min(r.calendar.getDaysInMonth(r), r.day)), r;
419
+ }
420
+ function T(e, t) {
421
+ var r, n;
422
+ !((r = (n = e.calendar).isInverseEra) === null || r === void 0) && r.call(n, e) && (t = -t), e.year += t;
423
+ }
424
+ function F(e) {
425
+ for (; e.month < 1; )
426
+ T(e, -1), e.month += e.calendar.getMonthsInYear(e);
427
+ let t = 0;
428
+ for (; e.month > (t = e.calendar.getMonthsInYear(e)); )
429
+ e.month -= t, T(e, 1);
430
+ }
431
+ function Ae(e) {
432
+ for (; e.day < 1; )
433
+ e.month--, F(e), e.day += e.calendar.getDaysInMonth(e);
434
+ for (; e.day > e.calendar.getDaysInMonth(e); )
435
+ e.day -= e.calendar.getDaysInMonth(e), e.month++, F(e);
436
+ }
437
+ function ce(e) {
438
+ e.month = Math.max(1, Math.min(e.calendar.getMonthsInYear(e), e.month)), e.day = Math.max(1, Math.min(e.calendar.getDaysInMonth(e), e.day));
439
+ }
440
+ function b(e) {
441
+ e.calendar.constrainDate && e.calendar.constrainDate(e), e.year = Math.max(1, Math.min(e.calendar.getYearsInEra(e), e.year)), ce(e);
442
+ }
443
+ function oe(e) {
444
+ let t = {};
445
+ for (let r in e) typeof e[r] == "number" && (t[r] = -e[r]);
446
+ return t;
447
+ }
448
+ function ie(e, t) {
449
+ return U(e, oe(t));
450
+ }
451
+ function J(e, t) {
452
+ let r = e.copy();
453
+ return t.era != null && (r.era = t.era), t.year != null && (r.year = t.year), t.month != null && (r.month = t.month), t.day != null && (r.day = t.day), b(r), r;
454
+ }
455
+ function k(e, t) {
456
+ let r = e.copy();
457
+ return t.hour != null && (r.hour = t.hour), t.minute != null && (r.minute = t.minute), t.second != null && (r.second = t.second), t.millisecond != null && (r.millisecond = t.millisecond), ke(r), r;
458
+ }
459
+ function Ye(e) {
460
+ e.second += Math.floor(e.millisecond / 1e3), e.millisecond = A(e.millisecond, 1e3), e.minute += Math.floor(e.second / 60), e.second = A(e.second, 60), e.hour += Math.floor(e.minute / 60), e.minute = A(e.minute, 60);
461
+ let t = Math.floor(e.hour / 24);
462
+ return e.hour = A(e.hour, 24), t;
463
+ }
464
+ function ke(e) {
465
+ e.millisecond = Math.max(0, Math.min(e.millisecond, 1e3)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
466
+ }
467
+ function A(e, t) {
468
+ let r = e % t;
469
+ return r < 0 && (r += t), r;
470
+ }
471
+ function Ue(e, t) {
472
+ return e.hour += t.hours || 0, e.minute += t.minutes || 0, e.second += t.seconds || 0, e.millisecond += t.milliseconds || 0, Ye(e);
473
+ }
474
+ function q(e, t, r, n) {
475
+ let a = e.copy();
476
+ switch (t) {
477
+ case "era": {
478
+ let i = e.calendar.getEras(), s = i.indexOf(e.era);
479
+ if (s < 0) throw new Error("Invalid era: " + e.era);
480
+ s = $(s, r, 0, i.length - 1, n?.round), a.era = i[s], b(a);
481
+ break;
482
+ }
483
+ case "year":
484
+ var c, o;
485
+ !((c = (o = a.calendar).isInverseEra) === null || c === void 0) && c.call(o, a) && (r = -r), a.year = $(e.year, r, -1 / 0, 9999, n?.round), a.year === -1 / 0 && (a.year = 1), a.calendar.balanceYearMonth && a.calendar.balanceYearMonth(a, e);
486
+ break;
487
+ case "month":
488
+ a.month = $(e.month, r, 1, e.calendar.getMonthsInYear(e), n?.round);
489
+ break;
490
+ case "day":
491
+ a.day = $(e.day, r, 1, e.calendar.getDaysInMonth(e), n?.round);
492
+ break;
493
+ default:
494
+ throw new Error("Unsupported field " + t);
495
+ }
496
+ return e.calendar.balanceDate && e.calendar.balanceDate(a), b(a), a;
497
+ }
498
+ function se(e, t, r, n) {
499
+ let a = e.copy();
500
+ switch (t) {
501
+ case "hour": {
502
+ let c = e.hour, o = 0, i = 23;
503
+ if (n?.hourCycle === 12) {
504
+ let s = c >= 12;
505
+ o = s ? 12 : 0, i = s ? 23 : 11;
506
+ }
507
+ a.hour = $(c, r, o, i, n?.round);
508
+ break;
509
+ }
510
+ case "minute":
511
+ a.minute = $(e.minute, r, 0, 59, n?.round);
512
+ break;
513
+ case "second":
514
+ a.second = $(e.second, r, 0, 59, n?.round);
515
+ break;
516
+ case "millisecond":
517
+ a.millisecond = $(e.millisecond, r, 0, 999, n?.round);
518
+ break;
519
+ default:
520
+ throw new Error("Unsupported field " + t);
521
+ }
522
+ return a;
523
+ }
524
+ function $(e, t, r, n, a = !1) {
525
+ if (a) {
526
+ e += Math.sign(t), e < r && (e = n);
527
+ let c = Math.abs(t);
528
+ t > 0 ? e = Math.ceil(e / c) * c : e = Math.floor(e / c) * c, e > n && (e = r);
529
+ } else
530
+ e += t, e < r ? e = n - (r - e - 1) : e > n && (e = r + (e - n - 1));
531
+ return e;
532
+ }
533
+ function le(e, t) {
534
+ let r;
535
+ if (t.years != null && t.years !== 0 || t.months != null && t.months !== 0 || t.weeks != null && t.weeks !== 0 || t.days != null && t.days !== 0) {
536
+ let a = U(x(e), {
537
+ years: t.years,
538
+ months: t.months,
539
+ weeks: t.weeks,
540
+ days: t.days
541
+ });
542
+ r = d(a, e.timeZone);
543
+ } else
544
+ r = g(e) - e.offset;
545
+ r += t.milliseconds || 0, r += (t.seconds || 0) * 1e3, r += (t.minutes || 0) * 6e4, r += (t.hours || 0) * 36e5;
546
+ let n = u(r, e.timeZone);
547
+ return l(n, e.calendar);
548
+ }
549
+ function Be(e, t) {
550
+ return le(e, oe(t));
551
+ }
552
+ function Oe(e, t, r, n) {
553
+ switch (t) {
554
+ case "hour": {
555
+ let a = 0, c = 23;
556
+ if (n?.hourCycle === 12) {
557
+ let y = e.hour >= 12;
558
+ a = y ? 12 : 0, c = y ? 23 : 11;
559
+ }
560
+ let o = x(e), i = l(k(o, {
561
+ hour: a
562
+ }), new D()), s = [
563
+ d(i, e.timeZone, "earlier"),
564
+ d(i, e.timeZone, "later")
565
+ ].filter((y) => u(y, e.timeZone).day === i.day)[0], h = l(k(o, {
566
+ hour: c
567
+ }), new D()), M = [
568
+ d(h, e.timeZone, "earlier"),
569
+ d(h, e.timeZone, "later")
570
+ ].filter((y) => u(y, e.timeZone).day === h.day).pop(), p = g(e) - e.offset, w = Math.floor(p / v), m = p % v;
571
+ return p = $(w, r, Math.floor(s / v), Math.floor(M / v), n?.round) * v + m, l(u(p, e.timeZone), e.calendar);
572
+ }
573
+ case "minute":
574
+ case "second":
575
+ case "millisecond":
576
+ return se(e, t, r, n);
577
+ case "era":
578
+ case "year":
579
+ case "month":
580
+ case "day": {
581
+ let a = q(x(e), t, r, n), c = d(a, e.timeZone);
582
+ return l(u(c, e.timeZone), e.calendar);
583
+ }
584
+ default:
585
+ throw new Error("Unsupported field " + t);
586
+ }
587
+ }
588
+ function Ze(e, t, r) {
589
+ let n = x(e), a = k(J(n, t), t);
590
+ if (a.compare(n) === 0) return e;
591
+ let c = d(a, e.timeZone, r);
592
+ return l(u(c, e.timeZone), e.calendar);
593
+ }
594
+ const Re = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, Le = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/, fe = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
595
+ function _e(e) {
596
+ let t = e.match(Re);
597
+ if (!t)
598
+ throw fe.test(e) ? new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`) : new Error("Invalid ISO 8601 date string: " + e);
599
+ let r = new I(f(t[1], 0, 9999), f(t[2], 1, 12), 1);
600
+ return r.day = f(t[3], 1, r.calendar.getDaysInMonth(r)), r;
601
+ }
602
+ function ze(e) {
603
+ let t = e.match(Le);
604
+ if (!t)
605
+ throw fe.test(e) ? new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`) : new Error("Invalid ISO 8601 date time string: " + e);
606
+ let r = f(t[1], -9999, 9999), n = r < 1 ? "BC" : "AD", a = new S(n, r < 1 ? -r + 1 : r, f(t[2], 1, 12), 1, t[4] ? f(t[4], 0, 23) : 0, t[5] ? f(t[5], 0, 59) : 0, t[6] ? f(t[6], 0, 59) : 0, t[7] ? f(t[7], 0, 1 / 0) * 1e3 : 0);
607
+ return a.day = f(t[3], 0, a.calendar.getDaysInMonth(a)), a;
608
+ }
609
+ function f(e, t, r) {
610
+ let n = Number(e);
611
+ if (n < t || n > r) throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);
612
+ return n;
613
+ }
614
+ function Te(e) {
615
+ return `${String(e.hour).padStart(2, "0")}:${String(e.minute).padStart(2, "0")}:${String(e.second).padStart(2, "0")}${e.millisecond ? String(e.millisecond / 1e3).slice(1) : ""}`;
616
+ }
617
+ function he(e) {
618
+ let t = l(e, new D()), r;
619
+ return t.era === "BC" ? r = t.year === 1 ? "0000" : "-" + String(Math.abs(1 - t.year)).padStart(6, "00") : r = String(t.year).padStart(4, "0"), `${r}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
620
+ }
621
+ function de(e) {
622
+ return `${he(e)}T${Te(e)}`;
623
+ }
624
+ function Fe(e) {
625
+ let t = Math.sign(e) < 0 ? "-" : "+";
626
+ e = Math.abs(e);
627
+ let r = Math.floor(e / 36e5), n = Math.floor(e % 36e5 / 6e4), a = Math.floor(e % 36e5 % 6e4 / 1e3), c = `${t}${String(r).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
628
+ return a !== 0 && (c += `:${String(a).padStart(2, "0")}`), c;
629
+ }
630
+ function Ne(e) {
631
+ return `${de(e)}${Fe(e.offset)}[${e.timeZone}]`;
632
+ }
633
+ function We(e, t) {
634
+ if (t.has(e))
635
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
636
+ }
637
+ function H(e, t, r) {
638
+ We(e, t), t.set(e, r);
639
+ }
640
+ function P(e) {
641
+ let t = typeof e[0] == "object" ? e.shift() : new D(), r;
642
+ if (typeof e[0] == "string") r = e.shift();
643
+ else {
644
+ let o = t.getEras();
645
+ r = o[o.length - 1];
646
+ }
647
+ let n = e.shift(), a = e.shift(), c = e.shift();
648
+ return [
649
+ t,
650
+ r,
651
+ n,
652
+ a,
653
+ c
654
+ ];
655
+ }
656
+ var Je = /* @__PURE__ */ new WeakMap();
657
+ class I {
658
+ /** Returns a copy of this date. */
659
+ copy() {
660
+ return this.era ? new I(this.calendar, this.era, this.year, this.month, this.day) : new I(this.calendar, this.year, this.month, this.day);
661
+ }
662
+ /** Returns a new `CalendarDate` with the given duration added to it. */
663
+ add(t) {
664
+ return U(this, t);
665
+ }
666
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */
667
+ subtract(t) {
668
+ return ie(this, t);
669
+ }
670
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
671
+ set(t) {
672
+ return J(this, t);
673
+ }
674
+ /**
675
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
676
+ * When the resulting value reaches the limits of the field, it wraps around.
677
+ */
678
+ cycle(t, r, n) {
679
+ return q(this, t, r, n);
680
+ }
681
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
682
+ toDate(t) {
683
+ return ae(this, t);
684
+ }
685
+ /** Converts the date to an ISO 8601 formatted string. */
686
+ toString() {
687
+ return he(this);
688
+ }
689
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
690
+ compare(t) {
691
+ return ee(this, t);
692
+ }
693
+ constructor(...t) {
694
+ H(this, Je, {
695
+ writable: !0,
696
+ value: void 0
697
+ });
698
+ let [r, n, a, c, o] = P(t);
699
+ this.calendar = r, this.era = n, this.year = a, this.month = c, this.day = o, b(this);
700
+ }
701
+ }
702
+ var qe = /* @__PURE__ */ new WeakMap();
703
+ class S {
704
+ /** Returns a copy of this date. */
705
+ copy() {
706
+ return this.era ? new S(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond) : new S(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
707
+ }
708
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */
709
+ add(t) {
710
+ return U(this, t);
711
+ }
712
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
713
+ subtract(t) {
714
+ return ie(this, t);
715
+ }
716
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
717
+ set(t) {
718
+ return J(k(this, t), t);
719
+ }
720
+ /**
721
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
722
+ * When the resulting value reaches the limits of the field, it wraps around.
723
+ */
724
+ cycle(t, r, n) {
725
+ switch (t) {
726
+ case "era":
727
+ case "year":
728
+ case "month":
729
+ case "day":
730
+ return q(this, t, r, n);
731
+ default:
732
+ return se(this, t, r, n);
733
+ }
734
+ }
735
+ /** Converts the date to a native JavaScript Date object in the given time zone. */
736
+ toDate(t, r) {
737
+ return ae(this, t, r);
738
+ }
739
+ /** Converts the date to an ISO 8601 formatted string. */
740
+ toString() {
741
+ return de(this);
742
+ }
743
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
744
+ compare(t) {
745
+ let r = ee(this, t);
746
+ return r === 0 ? we(this, x(t)) : r;
747
+ }
748
+ constructor(...t) {
749
+ H(this, qe, {
750
+ writable: !0,
751
+ value: void 0
752
+ });
753
+ let [r, n, a, c, o] = P(t);
754
+ this.calendar = r, this.era = n, this.year = a, this.month = c, this.day = o, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, b(this);
755
+ }
756
+ }
757
+ var He = /* @__PURE__ */ new WeakMap();
758
+ class E {
759
+ /** Returns a copy of this date. */
760
+ copy() {
761
+ return this.era ? new E(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond) : new E(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
762
+ }
763
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */
764
+ add(t) {
765
+ return le(this, t);
766
+ }
767
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
768
+ subtract(t) {
769
+ return Be(this, t);
770
+ }
771
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
772
+ set(t, r) {
773
+ return Ze(this, t, r);
774
+ }
775
+ /**
776
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
777
+ * When the resulting value reaches the limits of the field, it wraps around.
778
+ */
779
+ cycle(t, r, n) {
780
+ return Oe(this, t, r, n);
781
+ }
782
+ /** Converts the date to a native JavaScript Date object. */
783
+ toDate() {
784
+ return Ee(this);
785
+ }
786
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
787
+ toString() {
788
+ return Ne(this);
789
+ }
790
+ /** Converts the date to an ISO 8601 formatted string in UTC. */
791
+ toAbsoluteString() {
792
+ return this.toDate().toISOString();
793
+ }
794
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
795
+ compare(t) {
796
+ return this.toDate().getTime() - Se(t, this.timeZone).toDate().getTime();
797
+ }
798
+ constructor(...t) {
799
+ H(this, He, {
800
+ writable: !0,
801
+ value: void 0
802
+ });
803
+ let [r, n, a, c, o] = P(t), i = t.shift(), s = t.shift();
804
+ this.calendar = r, this.era = n, this.year = a, this.month = c, this.day = o, this.timeZone = i, this.offset = s, this.hour = t.shift() || 0, this.minute = t.shift() || 0, this.second = t.shift() || 0, this.millisecond = t.shift() || 0, b(this);
805
+ }
806
+ }
807
+ export {
808
+ D as $,
809
+ I as a,
810
+ N as b,
811
+ $e as c,
812
+ O as d,
813
+ C as e,
814
+ Y as f,
815
+ te as g,
816
+ l as h,
817
+ S as i,
818
+ E as j,
819
+ Ke as k,
820
+ K as l,
821
+ je as m,
822
+ pe as n,
823
+ Ve as o,
824
+ X as p,
825
+ Pe as q,
826
+ Ge as r,
827
+ be as s,
828
+ ze as t,
829
+ _e as u
830
+ };