@antcde/vue-utils 0.2.36-rc.3 → 0.2.36-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +368 -343
- package/dist/types/index.d.ts +1 -0
- package/dist/types/useOsTour.d.ts +12 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { createSharedComposable as e, objectOmit as t, objectPick as n, useAsyncState as r, useColorMode as i, useMagicKeys as a, useMediaQuery as o, useWindowSize as s, watchDebounced as c, whenever as l } from "@vueuse/core";
|
|
2
|
-
import { computed as u,
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { clone as
|
|
5
|
-
import { BehaviorSubject as
|
|
2
|
+
import { computed as u, getCurrentScope as d, inject as f, onBeforeUnmount as p, onMounted as m, onScopeDispose as h, onUnmounted as g, readonly as _, ref as v, shallowRef as y, watch as b, watchEffect as ee } from "vue";
|
|
3
|
+
import { useI18n as x } from "vue-i18n";
|
|
4
|
+
import { clone as te, isAuthorizationRequired as ne, newCommsClient as re, newCommsHost as ie } from "@antcde/connect-ts";
|
|
5
|
+
import { BehaviorSubject as ae, Subject as S, concat as oe, concatMap as C, debounceTime as w, distinctUntilChanged as se, filter as ce, map as le } from "rxjs";
|
|
6
6
|
// src/apiErrorMessage.ts
|
|
7
|
-
function
|
|
7
|
+
function ue(e, t) {
|
|
8
8
|
let n = e?.response?.data;
|
|
9
9
|
return (n?.errors ? Object.values(n.errors).flat().find((e) => typeof e == "string" && e.length > 0) : void 0) || (typeof n?.message == "string" && n.message.length ? n.message : t);
|
|
10
10
|
}
|
|
11
11
|
// src/deviceType.ts
|
|
12
|
-
var
|
|
12
|
+
var de = {
|
|
13
13
|
tablet: "mdi-tablet",
|
|
14
14
|
kiosk: "mdi-monitor-dashboard",
|
|
15
15
|
display: "mdi-television",
|
|
16
16
|
handheld: "mdi-barcode-scan",
|
|
17
17
|
other: "mdi-devices"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function fe(e) {
|
|
20
|
+
return de[e] ?? de.other;
|
|
21
21
|
}
|
|
22
22
|
// src/formatDate.ts
|
|
23
|
-
var
|
|
23
|
+
var pe = "nl", me = {
|
|
24
24
|
short: {
|
|
25
25
|
day: "2-digit",
|
|
26
26
|
month: "2-digit",
|
|
@@ -56,42 +56,42 @@ var fe = "nl", pe = {
|
|
|
56
56
|
minute: "2-digit",
|
|
57
57
|
hour12: !1
|
|
58
58
|
}
|
|
59
|
-
},
|
|
60
|
-
function
|
|
59
|
+
}, he = /* @__PURE__ */ new Set(["short", "shortDateTime"]);
|
|
60
|
+
function ge(e) {
|
|
61
61
|
return e instanceof Date ? e : new Date(e);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function _e(e) {
|
|
64
64
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
let { preset: n = "short", locale: r =
|
|
66
|
+
function ve(e, t = {}) {
|
|
67
|
+
let { preset: n = "short", locale: r = pe, fallback: i = "" } = t;
|
|
68
68
|
if (e == null || e === "") return i;
|
|
69
|
-
let a =
|
|
69
|
+
let a = ge(e);
|
|
70
70
|
if (Number.isNaN(a.getTime())) return i;
|
|
71
|
-
if (n === "iso") return
|
|
72
|
-
let o =
|
|
73
|
-
return new Intl.DateTimeFormat(o,
|
|
71
|
+
if (n === "iso") return _e(a);
|
|
72
|
+
let o = he.has(n) && /^en\b/i.test(r) ? pe : r;
|
|
73
|
+
return new Intl.DateTimeFormat(o, me[n]).format(a);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
let { preset: r = "medium", locale: i =
|
|
75
|
+
function ye(e, t, n = {}) {
|
|
76
|
+
let { preset: r = "medium", locale: i = pe, fallback: a = "" } = n, o = e == null || e === "" ? null : ge(e), s = t == null || t === "" ? null : ge(t), c = o && !Number.isNaN(o.getTime()) ? o : null, l = s && !Number.isNaN(s.getTime()) ? s : null;
|
|
77
77
|
if (!c && !l) return a;
|
|
78
|
-
if (!c || !l ||
|
|
78
|
+
if (!c || !l || _e(c) === _e(l)) return ve(c ?? l, {
|
|
79
79
|
preset: r === "iso" ? "medium" : r,
|
|
80
80
|
locale: i,
|
|
81
81
|
fallback: a
|
|
82
82
|
});
|
|
83
83
|
let u = r === "iso" ? "medium" : r;
|
|
84
|
-
return new Intl.DateTimeFormat(i,
|
|
84
|
+
return new Intl.DateTimeFormat(i, me[u]).formatRange(c, l);
|
|
85
85
|
}
|
|
86
86
|
// src/refreshLabel.ts
|
|
87
|
-
var
|
|
87
|
+
var be = {
|
|
88
88
|
1: "first",
|
|
89
89
|
2: "second",
|
|
90
90
|
3: "third",
|
|
91
91
|
4: "fourth",
|
|
92
92
|
[-1]: "last"
|
|
93
93
|
};
|
|
94
|
-
function
|
|
94
|
+
function xe(e, t) {
|
|
95
95
|
let { t: n, locale: r, prefix: i } = t, a = (e) => `${i}.${e}`;
|
|
96
96
|
if (e.kind === "interval") return n(a(`interval.${e.preset}`), {});
|
|
97
97
|
if (e.kind === "custom") {
|
|
@@ -137,7 +137,7 @@ function be(e, t) {
|
|
|
137
137
|
} else u = n(a("monthlyNth"), {
|
|
138
138
|
count: s,
|
|
139
139
|
time: l,
|
|
140
|
-
nth: n(a(`nth.${
|
|
140
|
+
nth: n(a(`nth.${be[e.nth]}`), {}),
|
|
141
141
|
weekday: c(e.weekday)
|
|
142
142
|
}, s);
|
|
143
143
|
}
|
|
@@ -148,7 +148,7 @@ function be(e, t) {
|
|
|
148
148
|
}) : u;
|
|
149
149
|
}
|
|
150
150
|
// src/refreshSchedule.ts
|
|
151
|
-
var
|
|
151
|
+
var Se = [
|
|
152
152
|
"MO",
|
|
153
153
|
"TU",
|
|
154
154
|
"WE",
|
|
@@ -156,18 +156,18 @@ var xe = [
|
|
|
156
156
|
"FR",
|
|
157
157
|
"SA",
|
|
158
158
|
"SU"
|
|
159
|
-
],
|
|
159
|
+
], Ce = [
|
|
160
160
|
"hourly",
|
|
161
161
|
"daily",
|
|
162
162
|
"weekly",
|
|
163
163
|
"monthly"
|
|
164
|
-
],
|
|
164
|
+
], we = [
|
|
165
165
|
1,
|
|
166
166
|
2,
|
|
167
167
|
3,
|
|
168
168
|
4,
|
|
169
169
|
-1
|
|
170
|
-
],
|
|
170
|
+
], Te = /* @__PURE__ */ new Set([
|
|
171
171
|
"FREQ",
|
|
172
172
|
"INTERVAL",
|
|
173
173
|
"BYDAY",
|
|
@@ -175,10 +175,10 @@ var xe = [
|
|
|
175
175
|
"BYSETPOS",
|
|
176
176
|
"WKST"
|
|
177
177
|
]);
|
|
178
|
-
function
|
|
178
|
+
function Ee() {
|
|
179
179
|
return new Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function De(e = /* @__PURE__ */ new Date()) {
|
|
182
182
|
let t = (e) => String(e).padStart(2, "0");
|
|
183
183
|
return {
|
|
184
184
|
freq: "weekly",
|
|
@@ -187,49 +187,49 @@ function Ee(e = /* @__PURE__ */ new Date()) {
|
|
|
187
187
|
monthly: null,
|
|
188
188
|
time: "06:00",
|
|
189
189
|
startDate: `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`,
|
|
190
|
-
timezone:
|
|
190
|
+
timezone: Ee()
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Oe(e) {
|
|
194
194
|
return ((/* @__PURE__ */ new Date(`${e}T00:00:00Z`)).getUTCDay() + 6) % 7;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ke(e) {
|
|
197
197
|
let t = e.freq === "hourly" ? "00:00" : e.time ?? "00:00", n = `DTSTART;TZID=${e.timezone}:${e.startDate.replaceAll("-", "")}T${t.replace(":", "")}00`, r = [`FREQ=${e.freq.toUpperCase()}`, `INTERVAL=${Math.max(1, Math.trunc(e.interval))}`];
|
|
198
|
-
return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) =>
|
|
198
|
+
return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) => Se[e]).join(",")}`), e.freq === "monthly" && e.monthly && r.push("day" in e.monthly ? `BYMONTHDAY=${e.monthly.day}` : `BYDAY=${Se[e.monthly.weekday]};BYSETPOS=${e.monthly.nth}`), `${n}\nRRULE:${r.join(";")}`;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
let t =
|
|
200
|
+
function Ae(e) {
|
|
201
|
+
let t = Se.indexOf(e);
|
|
202
202
|
return t >= 0 ? t : null;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function je(e, t) {
|
|
205
205
|
let n = e.get("BYMONTHDAY"), r = e.get("BYDAY");
|
|
206
206
|
if (n && !r) {
|
|
207
207
|
let e = Number(n);
|
|
208
208
|
return Number.isInteger(e) && e >= 1 && e <= 31 ? { day: e } : null;
|
|
209
209
|
}
|
|
210
210
|
if (!r) return n ? null : { day: Number(t.slice(8, 10)) };
|
|
211
|
-
let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ?
|
|
212
|
-
return a !== null &&
|
|
211
|
+
let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ? Ae(i[2]) : null, o = Number(i?.[1] ?? e.get("BYSETPOS"));
|
|
212
|
+
return a !== null && we.includes(o) ? {
|
|
213
213
|
nth: o,
|
|
214
214
|
weekday: a
|
|
215
215
|
} : null;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Me(e) {
|
|
218
218
|
let t = (e ?? "").trim().split(/\r?\n/).map((e) => e.trim()), n = /^DTSTART;TZID=([^:]+):(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})00$/.exec(t.find((e) => e.startsWith("DTSTART")) ?? ""), r = t.find((e) => e.startsWith("RRULE:"));
|
|
219
219
|
if (!n || !r || t.length !== 2) return null;
|
|
220
220
|
let i = new Map(r.slice(6).split(";").map((e) => e.split("=")));
|
|
221
|
-
if ([...i.keys()].some((e) => !
|
|
221
|
+
if ([...i.keys()].some((e) => !Te.has(e))) return null;
|
|
222
222
|
let a = (i.get("FREQ") ?? "").toLowerCase(), o = Number(i.get("INTERVAL") ?? 1);
|
|
223
|
-
if (!
|
|
223
|
+
if (!Ce.includes(a) || !Number.isInteger(o) || o < 1) return null;
|
|
224
224
|
let s = `${n[2]}-${n[3]}-${n[4]}`, c = i.get("BYDAY");
|
|
225
225
|
if ((a === "hourly" || a === "daily") && (c || i.has("BYMONTHDAY") || i.has("BYSETPOS"))) return null;
|
|
226
226
|
let l = [];
|
|
227
227
|
if (a === "weekly") {
|
|
228
|
-
let e = c ? c.split(",").map(
|
|
228
|
+
let e = c ? c.split(",").map(Ae) : [Oe(s)];
|
|
229
229
|
if (e.includes(null) || i.has("BYMONTHDAY") || i.has("BYSETPOS")) return null;
|
|
230
230
|
l = e;
|
|
231
231
|
}
|
|
232
|
-
let u = a === "monthly" ?
|
|
232
|
+
let u = a === "monthly" ? je(i, s) : null;
|
|
233
233
|
return a === "monthly" && !u ? null : {
|
|
234
234
|
freq: a,
|
|
235
235
|
interval: o,
|
|
@@ -240,13 +240,13 @@ function je(e) {
|
|
|
240
240
|
timezone: n[1]
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ne(e, t = Ee()) {
|
|
244
244
|
if (!e) return null;
|
|
245
245
|
if (e.kind === "interval") return {
|
|
246
246
|
kind: "interval",
|
|
247
247
|
preset: e.seconds
|
|
248
248
|
};
|
|
249
|
-
let n =
|
|
249
|
+
let n = Me(e.rule);
|
|
250
250
|
return n ? {
|
|
251
251
|
kind: "schedule",
|
|
252
252
|
spec: n,
|
|
@@ -257,7 +257,7 @@ function Me(e, t = Te()) {
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/weekday.js
|
|
260
|
-
var
|
|
260
|
+
var Pe = [
|
|
261
261
|
"MO",
|
|
262
262
|
"TU",
|
|
263
263
|
"WE",
|
|
@@ -271,13 +271,13 @@ var Ne = [
|
|
|
271
271
|
this.weekday = e, this.n = t;
|
|
272
272
|
}
|
|
273
273
|
return e.fromStr = function(t) {
|
|
274
|
-
return new e(
|
|
274
|
+
return new e(Pe.indexOf(t));
|
|
275
275
|
}, e.prototype.nth = function(t) {
|
|
276
276
|
return this.n === t ? this : new e(this.weekday, t);
|
|
277
277
|
}, e.prototype.equals = function(e) {
|
|
278
278
|
return this.weekday === e.weekday && this.n === e.n;
|
|
279
279
|
}, e.prototype.toString = function() {
|
|
280
|
-
var e =
|
|
280
|
+
var e = Pe[this.weekday];
|
|
281
281
|
return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
|
|
282
282
|
}, e.prototype.getJsWeekday = function() {
|
|
283
283
|
return this.weekday === 6 ? 0 : this.weekday + 1;
|
|
@@ -286,8 +286,8 @@ var Ne = [
|
|
|
286
286
|
return e != null;
|
|
287
287
|
}, D = function(e) {
|
|
288
288
|
return typeof e == "number";
|
|
289
|
-
},
|
|
290
|
-
return typeof e == "string" &&
|
|
289
|
+
}, Fe = function(e) {
|
|
290
|
+
return typeof e == "string" && Pe.includes(e);
|
|
291
291
|
}, O = Array.isArray, k = function(e, t) {
|
|
292
292
|
t === void 0 && (t = e), arguments.length === 1 && (t = e, e = 0);
|
|
293
293
|
for (var n = [], r = e; r < t; r++) n.push(r);
|
|
@@ -297,7 +297,7 @@ var Ne = [
|
|
|
297
297
|
if (O(e)) for (; n < t; n++) r[n] = [].concat(e);
|
|
298
298
|
else for (; n < t; n++) r[n] = e;
|
|
299
299
|
return r;
|
|
300
|
-
},
|
|
300
|
+
}, Ie = function(e) {
|
|
301
301
|
return O(e) ? e : [e];
|
|
302
302
|
};
|
|
303
303
|
function j(e, t, n) {
|
|
@@ -305,13 +305,13 @@ function j(e, t, n) {
|
|
|
305
305
|
var r = String(e);
|
|
306
306
|
return t |= 0, r.length > t ? String(r) : (t -= r.length, t > n.length && (n += A(n, t / n.length)), n.slice(0, t) + String(r));
|
|
307
307
|
}
|
|
308
|
-
var
|
|
308
|
+
var Le = function(e, t, n) {
|
|
309
309
|
var r = e.split(t);
|
|
310
310
|
return n ? r.slice(0, n).concat([r.slice(n).join(t)]) : r;
|
|
311
311
|
}, M = function(e, t) {
|
|
312
312
|
var n = e % t;
|
|
313
313
|
return n * t < 0 ? n + t : n;
|
|
314
|
-
},
|
|
314
|
+
}, Re = function(e, t) {
|
|
315
315
|
return {
|
|
316
316
|
div: Math.floor(e / t),
|
|
317
317
|
mod: M(e, t)
|
|
@@ -324,7 +324,7 @@ var Ie = function(e, t, n) {
|
|
|
324
324
|
return P(e) && e.indexOf(t) !== -1;
|
|
325
325
|
}, I = function(e, t, n, r, i, a) {
|
|
326
326
|
return r === void 0 && (r = 0), i === void 0 && (i = 0), a === void 0 && (a = 0), new Date(Date.UTC(e, t - 1, n, r, i, a));
|
|
327
|
-
},
|
|
327
|
+
}, ze = [
|
|
328
328
|
31,
|
|
329
329
|
28,
|
|
330
330
|
31,
|
|
@@ -337,7 +337,7 @@ var Ie = function(e, t, n) {
|
|
|
337
337
|
31,
|
|
338
338
|
30,
|
|
339
339
|
31
|
|
340
|
-
],
|
|
340
|
+
], Be = 864e5, Ve = I(1970, 1, 1), He = [
|
|
341
341
|
6,
|
|
342
342
|
0,
|
|
343
343
|
1,
|
|
@@ -347,37 +347,37 @@ var Ie = function(e, t, n) {
|
|
|
347
347
|
5
|
|
348
348
|
], L = function(e) {
|
|
349
349
|
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
|
|
350
|
-
},
|
|
350
|
+
}, Ue = function(e) {
|
|
351
351
|
return e instanceof Date;
|
|
352
352
|
}, R = function(e) {
|
|
353
|
-
return
|
|
354
|
-
},
|
|
353
|
+
return Ue(e) && !isNaN(e.getTime());
|
|
354
|
+
}, We = function(e, t) {
|
|
355
355
|
var n = e.getTime() - t.getTime();
|
|
356
|
-
return Math.round(n /
|
|
357
|
-
}, We = function(e) {
|
|
358
|
-
return Ue(e, Be);
|
|
356
|
+
return Math.round(n / Be);
|
|
359
357
|
}, Ge = function(e) {
|
|
360
|
-
return
|
|
358
|
+
return We(e, Ve);
|
|
361
359
|
}, Ke = function(e) {
|
|
360
|
+
return new Date(Ve.getTime() + e * Be);
|
|
361
|
+
}, qe = function(e) {
|
|
362
362
|
var t = e.getUTCMonth();
|
|
363
|
-
return t === 1 && L(e.getUTCFullYear()) ? 29 :
|
|
363
|
+
return t === 1 && L(e.getUTCFullYear()) ? 29 : ze[t];
|
|
364
364
|
}, z = function(e) {
|
|
365
|
-
return
|
|
366
|
-
}, qe = function(e, t) {
|
|
367
|
-
var n = I(e, t + 1, 1);
|
|
368
|
-
return [z(n), Ke(n)];
|
|
365
|
+
return He[e.getUTCDay()];
|
|
369
366
|
}, Je = function(e, t) {
|
|
367
|
+
var n = I(e, t + 1, 1);
|
|
368
|
+
return [z(n), qe(n)];
|
|
369
|
+
}, Ye = function(e, t) {
|
|
370
370
|
return t ||= e, new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
371
|
-
}, Ye = function(e) {
|
|
372
|
-
return new Date(e.getTime());
|
|
373
371
|
}, Xe = function(e) {
|
|
374
|
-
|
|
372
|
+
return new Date(e.getTime());
|
|
373
|
+
}, Ze = function(e) {
|
|
374
|
+
for (var t = [], n = 0; n < e.length; n++) t.push(Xe(e[n]));
|
|
375
375
|
return t;
|
|
376
376
|
}, B = function(e) {
|
|
377
377
|
e.sort(function(e, t) {
|
|
378
378
|
return e.getTime() - t.getTime();
|
|
379
379
|
});
|
|
380
|
-
},
|
|
380
|
+
}, Qe = function(e, t) {
|
|
381
381
|
t === void 0 && (t = !0);
|
|
382
382
|
var n = new Date(e);
|
|
383
383
|
return [
|
|
@@ -390,14 +390,14 @@ var Ie = function(e, t, n) {
|
|
|
390
390
|
j(n.getUTCSeconds(), 2, "0"),
|
|
391
391
|
t ? "Z" : ""
|
|
392
392
|
].join("");
|
|
393
|
-
},
|
|
393
|
+
}, $e = function(e) {
|
|
394
394
|
var t = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);
|
|
395
395
|
if (!t) throw Error(`Invalid UNTIL value: ${e}`);
|
|
396
396
|
return new Date(Date.UTC(parseInt(t[1], 10), parseInt(t[2], 10) - 1, parseInt(t[3], 10), parseInt(t[5], 10) || 0, parseInt(t[6], 10) || 0, parseInt(t[7], 10) || 0));
|
|
397
|
-
}, $e = function(e, t) {
|
|
398
|
-
return e.toLocaleString("sv-SE", { timeZone: t }).replace(" ", "T") + "Z";
|
|
399
397
|
}, et = function(e, t) {
|
|
400
|
-
|
|
398
|
+
return e.toLocaleString("sv-SE", { timeZone: t }).replace(" ", "T") + "Z";
|
|
399
|
+
}, tt = function(e, t) {
|
|
400
|
+
var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(et(e, n)), i = new Date(et(e, t ?? "UTC")).getTime() - r.getTime();
|
|
401
401
|
return new Date(e.getTime() - i);
|
|
402
402
|
}, V = function() {
|
|
403
403
|
function e(e, t) {
|
|
@@ -425,16 +425,16 @@ var Ie = function(e, t, n) {
|
|
|
425
425
|
}, e.prototype.clone = function() {
|
|
426
426
|
return new e(this.method, this.args);
|
|
427
427
|
}, e;
|
|
428
|
-
}(),
|
|
429
|
-
return
|
|
428
|
+
}(), nt = function(e, t) {
|
|
429
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
430
430
|
e.__proto__ = t;
|
|
431
431
|
} || function(e, t) {
|
|
432
432
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
433
|
-
},
|
|
433
|
+
}, nt(e, t);
|
|
434
434
|
};
|
|
435
|
-
function
|
|
435
|
+
function rt(e, t) {
|
|
436
436
|
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
437
|
-
|
|
437
|
+
nt(e, t);
|
|
438
438
|
function n() {
|
|
439
439
|
this.constructor = e;
|
|
440
440
|
}
|
|
@@ -451,8 +451,8 @@ function U(e, t, n) {
|
|
|
451
451
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
452
452
|
}
|
|
453
453
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/callbackiterresult.js
|
|
454
|
-
var
|
|
455
|
-
|
|
454
|
+
var it = function(e) {
|
|
455
|
+
rt(t, e);
|
|
456
456
|
function t(t, n, r) {
|
|
457
457
|
var i = e.call(this, t, n) || this;
|
|
458
458
|
return i.iterator = r, i;
|
|
@@ -460,7 +460,7 @@ var rt = function(e) {
|
|
|
460
460
|
return t.prototype.add = function(e) {
|
|
461
461
|
return this.iterator(e, this._result.length) ? (this._result.push(e), !0) : !1;
|
|
462
462
|
}, t;
|
|
463
|
-
}(V),
|
|
463
|
+
}(V), at = {
|
|
464
464
|
dayNames: [
|
|
465
465
|
"Sunday",
|
|
466
466
|
"Monday",
|
|
@@ -528,15 +528,15 @@ var rt = function(e) {
|
|
|
528
528
|
december: /^dec(ember)?/i,
|
|
529
529
|
comma: /^(,\s*|(and|or)\s*)+/i
|
|
530
530
|
}
|
|
531
|
-
},
|
|
531
|
+
}, ot = function(e, t) {
|
|
532
532
|
return e.indexOf(t) !== -1;
|
|
533
|
-
},
|
|
533
|
+
}, st = function(e) {
|
|
534
534
|
return e.toString();
|
|
535
|
-
},
|
|
535
|
+
}, ct = function(e, t, n) {
|
|
536
536
|
return `${t} ${n}, ${e}`;
|
|
537
537
|
}, W = function() {
|
|
538
538
|
function e(e, t, n, r) {
|
|
539
|
-
if (t === void 0 && (t =
|
|
539
|
+
if (t === void 0 && (t = st), n === void 0 && (n = at), r === void 0 && (r = ct), this.text = [], this.language = n || at, this.gettext = t, this.dateFormatter = r, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
|
|
540
540
|
var i = [].concat(this.options.bymonthday), a = [].concat(this.options.bynmonthday);
|
|
541
541
|
i.sort(function(e, t) {
|
|
542
542
|
return e - t;
|
|
@@ -566,13 +566,13 @@ var rt = function(e) {
|
|
|
566
566
|
var n = !0;
|
|
567
567
|
if (!(t.options.freq in e.IMPLEMENTED) || t.origOptions.until && t.origOptions.count) return !1;
|
|
568
568
|
for (var r in t.origOptions) {
|
|
569
|
-
if (
|
|
569
|
+
if (ot([
|
|
570
570
|
"dtstart",
|
|
571
571
|
"tzid",
|
|
572
572
|
"wkst",
|
|
573
573
|
"freq"
|
|
574
574
|
], r)) return !0;
|
|
575
|
-
if (!
|
|
575
|
+
if (!ot(e.IMPLEMENTED[t.options.freq], r)) return !1;
|
|
576
576
|
}
|
|
577
577
|
return n;
|
|
578
578
|
}, e.prototype.isFullyConvertible = function() {
|
|
@@ -661,7 +661,7 @@ var rt = function(e) {
|
|
|
661
661
|
};
|
|
662
662
|
return n ? a(e.map(o), r, n) : e.map(o).join(r + " ");
|
|
663
663
|
}, e;
|
|
664
|
-
}(),
|
|
664
|
+
}(), lt = function() {
|
|
665
665
|
function e(e) {
|
|
666
666
|
this.done = !0, this.rules = e;
|
|
667
667
|
}
|
|
@@ -702,9 +702,9 @@ var rt = function(e) {
|
|
|
702
702
|
throw Error("expected " + e + " but found " + this.symbol);
|
|
703
703
|
}, e;
|
|
704
704
|
}();
|
|
705
|
-
function
|
|
706
|
-
t === void 0 && (t =
|
|
707
|
-
var n = {}, r = new
|
|
705
|
+
function ut(e, t) {
|
|
706
|
+
t === void 0 && (t = at);
|
|
707
|
+
var n = {}, r = new lt(t.tokens);
|
|
708
708
|
return r.start(e) ? (i(), n) : null;
|
|
709
709
|
function i() {
|
|
710
710
|
r.expect("every");
|
|
@@ -876,12 +876,12 @@ var G;
|
|
|
876
876
|
(function(e) {
|
|
877
877
|
e[e.YEARLY = 0] = "YEARLY", e[e.MONTHLY = 1] = "MONTHLY", e[e.WEEKLY = 2] = "WEEKLY", e[e.DAILY = 3] = "DAILY", e[e.HOURLY = 4] = "HOURLY", e[e.MINUTELY = 5] = "MINUTELY", e[e.SECONDLY = 6] = "SECONDLY";
|
|
878
878
|
})(G ||= {});
|
|
879
|
-
function
|
|
879
|
+
function dt(e) {
|
|
880
880
|
return e < G.HOURLY;
|
|
881
881
|
}
|
|
882
882
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/nlp/index.js
|
|
883
|
-
var
|
|
884
|
-
return t === void 0 && (t =
|
|
883
|
+
var ft = function(e, t) {
|
|
884
|
+
return t === void 0 && (t = at), new $(ut(e, t) || void 0);
|
|
885
885
|
}, K = [
|
|
886
886
|
"count",
|
|
887
887
|
"until",
|
|
@@ -891,9 +891,9 @@ var dt = function(e, t) {
|
|
|
891
891
|
"bymonth"
|
|
892
892
|
];
|
|
893
893
|
W.IMPLEMENTED = [], W.IMPLEMENTED[G.HOURLY] = K, W.IMPLEMENTED[G.MINUTELY] = K, W.IMPLEMENTED[G.DAILY] = ["byhour"].concat(K), W.IMPLEMENTED[G.WEEKLY] = K, W.IMPLEMENTED[G.MONTHLY] = K, W.IMPLEMENTED[G.YEARLY] = ["byweekno", "byyearday"].concat(K);
|
|
894
|
-
var
|
|
894
|
+
var pt = function(e, t, n, r) {
|
|
895
895
|
return new W(e, t, n, r).toString();
|
|
896
|
-
},
|
|
896
|
+
}, mt = W.isFullyConvertible, ht = function() {
|
|
897
897
|
function e(e, t, n, r) {
|
|
898
898
|
this.hour = e, this.minute = t, this.second = n, this.millisecond = r || 0;
|
|
899
899
|
}
|
|
@@ -908,8 +908,8 @@ var ft = function(e, t, n, r) {
|
|
|
908
908
|
}, e.prototype.getTime = function() {
|
|
909
909
|
return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
|
|
910
910
|
}, e;
|
|
911
|
-
}(),
|
|
912
|
-
|
|
911
|
+
}(), gt = function(e) {
|
|
912
|
+
rt(t, e);
|
|
913
913
|
function t(t, n, r, i, a, o, s) {
|
|
914
914
|
var c = e.call(this, i, a, o, s) || this;
|
|
915
915
|
return c.year = t, c.month = n, c.day = r, c;
|
|
@@ -940,27 +940,27 @@ var ft = function(e, t, n, r) {
|
|
|
940
940
|
}, t.prototype.addHours = function(e, t, n) {
|
|
941
941
|
for (t && (this.hour += Math.floor((23 - this.hour) / e) * e);;) {
|
|
942
942
|
this.hour += e;
|
|
943
|
-
var r =
|
|
943
|
+
var r = Re(this.hour, 24), i = r.div, a = r.mod;
|
|
944
944
|
if (i && (this.hour = a, this.addDaily(i)), N(n) || F(n, this.hour)) break;
|
|
945
945
|
}
|
|
946
946
|
}, t.prototype.addMinutes = function(e, t, n, r) {
|
|
947
947
|
for (t && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / e) * e);;) {
|
|
948
948
|
this.minute += e;
|
|
949
|
-
var i =
|
|
949
|
+
var i = Re(this.minute, 60), a = i.div, o = i.mod;
|
|
950
950
|
if (a && (this.minute = o, this.addHours(a, !1, n)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute))) break;
|
|
951
951
|
}
|
|
952
952
|
}, t.prototype.addSeconds = function(e, t, n, r, i) {
|
|
953
953
|
for (t && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / e) * e);;) {
|
|
954
954
|
this.second += e;
|
|
955
|
-
var a =
|
|
955
|
+
var a = Re(this.second, 60), o = a.div, s = a.mod;
|
|
956
956
|
if (o && (this.second = s, this.addMinutes(o, !1, n, r)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute)) && (N(i) || F(i, this.second))) break;
|
|
957
957
|
}
|
|
958
958
|
}, t.prototype.fixDay = function() {
|
|
959
959
|
if (!(this.day <= 28)) {
|
|
960
|
-
var e =
|
|
960
|
+
var e = Je(this.year, this.month - 1)[1];
|
|
961
961
|
if (!(this.day <= e)) for (; this.day > e;) {
|
|
962
962
|
if (this.day -= e, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > 9999)) return;
|
|
963
|
-
e =
|
|
963
|
+
e = Je(this.year, this.month - 1)[1];
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
}, t.prototype.add = function(e, t) {
|
|
@@ -975,18 +975,18 @@ var ft = function(e, t, n, r) {
|
|
|
975
975
|
case G.SECONDLY: return this.addSeconds(r, t, a, o, s);
|
|
976
976
|
}
|
|
977
977
|
}, t;
|
|
978
|
-
}(
|
|
978
|
+
}(ht);
|
|
979
979
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parseoptions.js
|
|
980
|
-
function
|
|
980
|
+
function _t(e) {
|
|
981
981
|
for (var t = [], n = Object.keys(e), r = 0, i = n; r < i.length; r++) {
|
|
982
982
|
var a = i[r];
|
|
983
|
-
F(
|
|
983
|
+
F(rn, a) || t.push(a), Ue(e[a]) && !R(e[a]) && t.push(a);
|
|
984
984
|
}
|
|
985
985
|
if (t.length) throw Error("Invalid options: " + t.join(", "));
|
|
986
986
|
return H({}, e);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
var t = H(H({},
|
|
988
|
+
function vt(e) {
|
|
989
|
+
var t = H(H({}, nn), _t(e));
|
|
990
990
|
if (E(t.byeaster) && (t.freq = $.YEARLY), !(E(t.freq) && $.FREQUENCIES[t.freq])) throw Error(`Invalid frequency: ${t.freq} ${e.freq}`);
|
|
991
991
|
if (t.dtstart ||= new Date((/* @__PURE__ */ new Date()).setMilliseconds(0)), E(t.wkst) ? D(t.wkst) || (t.wkst = t.wkst.weekday) : t.wkst = $.MO.weekday, E(t.bysetpos)) {
|
|
992
992
|
D(t.bysetpos) && (t.bysetpos = [t.bysetpos]);
|
|
@@ -1014,56 +1014,56 @@ function _t(e) {
|
|
|
1014
1014
|
} else t.bymonthday < 0 ? (t.bynmonthday = [t.bymonthday], t.bymonthday = []) : (t.bynmonthday = [], t.bymonthday = [t.bymonthday]);
|
|
1015
1015
|
if (E(t.byweekno) && !O(t.byweekno) && (t.byweekno = [t.byweekno]), !E(t.byweekday)) t.bynweekday = null;
|
|
1016
1016
|
else if (D(t.byweekday)) t.byweekday = [t.byweekday], t.bynweekday = null;
|
|
1017
|
-
else if (
|
|
1017
|
+
else if (Fe(t.byweekday)) t.byweekday = [T.fromStr(t.byweekday).weekday], t.bynweekday = null;
|
|
1018
1018
|
else if (t.byweekday instanceof T) !t.byweekday.n || t.freq > $.MONTHLY ? (t.byweekday = [t.byweekday.weekday], t.bynweekday = null) : (t.bynweekday = [[t.byweekday.weekday, t.byweekday.n]], t.byweekday = null);
|
|
1019
1019
|
else {
|
|
1020
1020
|
for (var o = [], s = [], n = 0; n < t.byweekday.length; n++) {
|
|
1021
1021
|
var c = t.byweekday[n];
|
|
1022
|
-
D(c) ? o.push(c) :
|
|
1022
|
+
D(c) ? o.push(c) : Fe(c) ? o.push(T.fromStr(c).weekday) : !c.n || t.freq > $.MONTHLY ? o.push(c.weekday) : s.push([c.weekday, c.n]);
|
|
1023
1023
|
}
|
|
1024
1024
|
t.byweekday = P(o) ? o : null, t.bynweekday = P(s) ? s : null;
|
|
1025
1025
|
}
|
|
1026
1026
|
return E(t.byhour) ? D(t.byhour) && (t.byhour = [t.byhour]) : t.byhour = t.freq < $.HOURLY ? [t.dtstart.getUTCHours()] : null, E(t.byminute) ? D(t.byminute) && (t.byminute = [t.byminute]) : t.byminute = t.freq < $.MINUTELY ? [t.dtstart.getUTCMinutes()] : null, E(t.bysecond) ? D(t.bysecond) && (t.bysecond = [t.bysecond]) : t.bysecond = t.freq < $.SECONDLY ? [t.dtstart.getUTCSeconds()] : null, { parsedOptions: t };
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function yt(e) {
|
|
1029
1029
|
var t = e.dtstart.getTime() % 1e3;
|
|
1030
|
-
if (!
|
|
1030
|
+
if (!dt(e.freq)) return [];
|
|
1031
1031
|
var n = [];
|
|
1032
1032
|
return e.byhour.forEach(function(r) {
|
|
1033
1033
|
e.byminute.forEach(function(i) {
|
|
1034
1034
|
e.bysecond.forEach(function(e) {
|
|
1035
|
-
n.push(new
|
|
1035
|
+
n.push(new ht(r, i, e, t));
|
|
1036
1036
|
});
|
|
1037
1037
|
});
|
|
1038
1038
|
}), n;
|
|
1039
1039
|
}
|
|
1040
1040
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parsestring.js
|
|
1041
|
-
function
|
|
1042
|
-
var t = e.split("\n").map(
|
|
1041
|
+
function bt(e) {
|
|
1042
|
+
var t = e.split("\n").map(St).filter(function(e) {
|
|
1043
1043
|
return e !== null;
|
|
1044
1044
|
});
|
|
1045
1045
|
return H(H({}, t[0]), t[1]);
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function xt(e) {
|
|
1048
1048
|
var t = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);
|
|
1049
1049
|
if (!n) return t;
|
|
1050
1050
|
var r = n[1], i = n[2];
|
|
1051
|
-
return r && (t.tzid = r), t.dtstart =
|
|
1051
|
+
return r && (t.tzid = r), t.dtstart = $e(i), t;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function St(e) {
|
|
1054
1054
|
if (e = e.replace(/^\s+|\s+$/, ""), !e.length) return null;
|
|
1055
1055
|
var t = /^([A-Z]+?)[:;]/.exec(e.toUpperCase());
|
|
1056
|
-
if (!t) return
|
|
1056
|
+
if (!t) return Ct(e);
|
|
1057
1057
|
var n = t[1];
|
|
1058
1058
|
switch (n.toUpperCase()) {
|
|
1059
1059
|
case "RRULE":
|
|
1060
|
-
case "EXRULE": return
|
|
1061
|
-
case "DTSTART": return
|
|
1060
|
+
case "EXRULE": return Ct(e);
|
|
1061
|
+
case "DTSTART": return xt(e);
|
|
1062
1062
|
default: throw Error(`Unsupported RFC prop ${n} in ${e}`);
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
var t =
|
|
1065
|
+
function Ct(e) {
|
|
1066
|
+
var t = xt(e.replace(/^RRULE:/i, ""));
|
|
1067
1067
|
return e.replace(/^(?:RRULE|EXRULE):/i, "").split(";").forEach(function(n) {
|
|
1068
1068
|
var r = n.split("="), i = r[0], a = r[1];
|
|
1069
1069
|
switch (i.toUpperCase()) {
|
|
@@ -1083,20 +1083,20 @@ function St(e) {
|
|
|
1083
1083
|
case "BYHOUR":
|
|
1084
1084
|
case "BYMINUTE":
|
|
1085
1085
|
case "BYSECOND":
|
|
1086
|
-
var o =
|
|
1086
|
+
var o = wt(a), s = i.toLowerCase();
|
|
1087
1087
|
t[s] = o;
|
|
1088
1088
|
break;
|
|
1089
1089
|
case "BYWEEKDAY":
|
|
1090
1090
|
case "BYDAY":
|
|
1091
|
-
t.byweekday =
|
|
1091
|
+
t.byweekday = Et(a);
|
|
1092
1092
|
break;
|
|
1093
1093
|
case "DTSTART":
|
|
1094
1094
|
case "TZID":
|
|
1095
|
-
var c =
|
|
1095
|
+
var c = xt(e);
|
|
1096
1096
|
t.tzid = c.tzid, t.dtstart = c.dtstart;
|
|
1097
1097
|
break;
|
|
1098
1098
|
case "UNTIL":
|
|
1099
|
-
t.until =
|
|
1099
|
+
t.until = $e(a);
|
|
1100
1100
|
break;
|
|
1101
1101
|
case "BYEASTER":
|
|
1102
1102
|
t.byeaster = Number(a);
|
|
@@ -1105,13 +1105,13 @@ function St(e) {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
}), t;
|
|
1107
1107
|
}
|
|
1108
|
-
function Ct(e) {
|
|
1109
|
-
return e.indexOf(",") === -1 ? wt(e) : e.split(",").map(wt);
|
|
1110
|
-
}
|
|
1111
1108
|
function wt(e) {
|
|
1112
|
-
return
|
|
1109
|
+
return e.indexOf(",") === -1 ? Tt(e) : e.split(",").map(Tt);
|
|
1113
1110
|
}
|
|
1114
1111
|
function Tt(e) {
|
|
1112
|
+
return /^[+-]?\d+$/.test(e) ? Number(e) : e;
|
|
1113
|
+
}
|
|
1114
|
+
function Et(e) {
|
|
1115
1115
|
return e.split(",").map(function(e) {
|
|
1116
1116
|
if (e.length === 2) return Q[e];
|
|
1117
1117
|
var t = e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
|
|
@@ -1121,7 +1121,7 @@ function Tt(e) {
|
|
|
1121
1121
|
});
|
|
1122
1122
|
}
|
|
1123
1123
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/datewithzone.js
|
|
1124
|
-
var
|
|
1124
|
+
var Dt = function() {
|
|
1125
1125
|
function e(e, t) {
|
|
1126
1126
|
if (isNaN(e.getTime())) throw RangeError("Invalid date passed to DateWithZone");
|
|
1127
1127
|
this.date = e, this.tzid = t;
|
|
@@ -1133,17 +1133,17 @@ var Et = function() {
|
|
|
1133
1133
|
enumerable: !1,
|
|
1134
1134
|
configurable: !0
|
|
1135
1135
|
}), e.prototype.toString = function() {
|
|
1136
|
-
var e =
|
|
1136
|
+
var e = Qe(this.date.getTime(), this.isUTC);
|
|
1137
1137
|
return this.isUTC ? `:${e}` : `;TZID=${this.tzid}:${e}`;
|
|
1138
1138
|
}, e.prototype.getTime = function() {
|
|
1139
1139
|
return this.date.getTime();
|
|
1140
1140
|
}, e.prototype.rezonedDate = function() {
|
|
1141
|
-
return this.isUTC ? this.date :
|
|
1141
|
+
return this.isUTC ? this.date : tt(this.date, this.tzid);
|
|
1142
1142
|
}, e;
|
|
1143
1143
|
}();
|
|
1144
1144
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/optionstostring.js
|
|
1145
|
-
function
|
|
1146
|
-
for (var t = [], n = "", r = Object.keys(e), i = Object.keys(
|
|
1145
|
+
function Ot(e) {
|
|
1146
|
+
for (var t = [], n = "", r = Object.keys(e), i = Object.keys(nn), a = 0; a < r.length; a++) if (r[a] !== "tzid" && F(i, r[a])) {
|
|
1147
1147
|
var o = r[a].toUpperCase(), s = e[r[a]], c = "";
|
|
1148
1148
|
if (!(!E(s) || O(s) && !s.length)) {
|
|
1149
1149
|
switch (o) {
|
|
@@ -1154,15 +1154,15 @@ function Dt(e) {
|
|
|
1154
1154
|
c = D(s) ? new T(s).toString() : s.toString();
|
|
1155
1155
|
break;
|
|
1156
1156
|
case "BYWEEKDAY":
|
|
1157
|
-
o = "BYDAY", c =
|
|
1157
|
+
o = "BYDAY", c = Ie(s).map(function(e) {
|
|
1158
1158
|
return e instanceof T ? e : O(e) ? new T(e[0], e[1]) : new T(e);
|
|
1159
1159
|
}).toString();
|
|
1160
1160
|
break;
|
|
1161
1161
|
case "DTSTART":
|
|
1162
|
-
n =
|
|
1162
|
+
n = kt(s, e.tzid);
|
|
1163
1163
|
break;
|
|
1164
1164
|
case "UNTIL":
|
|
1165
|
-
c =
|
|
1165
|
+
c = Qe(s, !e.tzid);
|
|
1166
1166
|
break;
|
|
1167
1167
|
default: if (O(s)) {
|
|
1168
1168
|
for (var l = [], u = 0; u < s.length; u++) l[u] = String(s[u]);
|
|
@@ -1179,26 +1179,26 @@ function Dt(e) {
|
|
|
1179
1179
|
return !!e;
|
|
1180
1180
|
}).join("\n");
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return e ? "DTSTART" + new
|
|
1182
|
+
function kt(e, t) {
|
|
1183
|
+
return e ? "DTSTART" + new Dt(new Date(e), t).toString() : "";
|
|
1184
1184
|
}
|
|
1185
1185
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/cache.js
|
|
1186
|
-
function
|
|
1186
|
+
function At(e, t) {
|
|
1187
1187
|
return Array.isArray(e) ? !Array.isArray(t) || e.length !== t.length ? !1 : e.every(function(e, n) {
|
|
1188
1188
|
return e.getTime() === t[n].getTime();
|
|
1189
1189
|
}) : e instanceof Date ? t instanceof Date && e.getTime() === t.getTime() : e === t;
|
|
1190
1190
|
}
|
|
1191
|
-
var
|
|
1191
|
+
var jt = function() {
|
|
1192
1192
|
function e() {
|
|
1193
1193
|
this.all = !1, this.before = [], this.after = [], this.between = [];
|
|
1194
1194
|
}
|
|
1195
1195
|
return e.prototype._cacheAdd = function(e, t, n) {
|
|
1196
|
-
t &&= t instanceof Date ?
|
|
1196
|
+
t &&= t instanceof Date ? Xe(t) : Ze(t), e === "all" ? this.all = t : (n._value = t, this[e].push(n));
|
|
1197
1197
|
}, e.prototype._cacheGet = function(e, t) {
|
|
1198
1198
|
var n = !1, r = t ? Object.keys(t) : [], i = function(e) {
|
|
1199
1199
|
for (var n = 0; n < r.length; n++) {
|
|
1200
1200
|
var i = r[n];
|
|
1201
|
-
if (!
|
|
1201
|
+
if (!At(t[i], e[i])) return !0;
|
|
1202
1202
|
}
|
|
1203
1203
|
return !1;
|
|
1204
1204
|
}, a = this[e];
|
|
@@ -1214,9 +1214,9 @@ var At = function() {
|
|
|
1214
1214
|
for (var c = new V(e, t), o = 0; o < this.all.length && c.accept(this.all[o]); o++);
|
|
1215
1215
|
n = c.getValue(), this._cacheAdd(e, n, t);
|
|
1216
1216
|
}
|
|
1217
|
-
return O(n) ?
|
|
1217
|
+
return O(n) ? Ze(n) : n instanceof Date ? Xe(n) : n;
|
|
1218
1218
|
}, e;
|
|
1219
|
-
}(),
|
|
1219
|
+
}(), Mt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 28), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Nt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 29), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Pt = k(1, 29), Ft = k(1, 30), q = k(1, 31), J = k(1, 32), It = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Ft, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), Lt = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Pt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), Rt = k(-28, 0), zt = k(-29, 0), Y = k(-30, 0), X = k(-31, 0), Bt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), zt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Vt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), Rt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Ht = [
|
|
1220
1220
|
0,
|
|
1221
1221
|
31,
|
|
1222
1222
|
60,
|
|
@@ -1230,7 +1230,7 @@ var At = function() {
|
|
|
1230
1230
|
305,
|
|
1231
1231
|
335,
|
|
1232
1232
|
366
|
|
1233
|
-
],
|
|
1233
|
+
], Ut = [
|
|
1234
1234
|
0,
|
|
1235
1235
|
31,
|
|
1236
1236
|
59,
|
|
@@ -1244,18 +1244,18 @@ var At = function() {
|
|
|
1244
1244
|
304,
|
|
1245
1245
|
334,
|
|
1246
1246
|
365
|
|
1247
|
-
],
|
|
1247
|
+
], Wt = (function() {
|
|
1248
1248
|
for (var e = [], t = 0; t < 55; t++) e = e.concat(k(7));
|
|
1249
1249
|
return e;
|
|
1250
1250
|
})();
|
|
1251
1251
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/yearinfo.js
|
|
1252
|
-
function
|
|
1253
|
-
var n = I(e, 1, 1), r = L(e) ? 366 : 365, i = L(e + 1) ? 366 : 365, a =
|
|
1252
|
+
function Gt(e, t) {
|
|
1253
|
+
var n = I(e, 1, 1), r = L(e) ? 366 : 365, i = L(e + 1) ? 366 : 365, a = Ge(n), o = z(n), s = H(H({
|
|
1254
1254
|
yearlen: r,
|
|
1255
1255
|
nextyearlen: i,
|
|
1256
1256
|
yearordinal: a,
|
|
1257
1257
|
yearweekday: o
|
|
1258
|
-
},
|
|
1258
|
+
}, Kt(e)), { wnomask: null });
|
|
1259
1259
|
if (N(t.byweekno)) return s;
|
|
1260
1260
|
s.wnomask = A(0, r + 7);
|
|
1261
1261
|
var c, l, u = c = M(7 - o + t.wkst, 7);
|
|
@@ -1283,24 +1283,24 @@ function Wt(e, t) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
return s;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Kt(e) {
|
|
1287
1287
|
var t = L(e) ? 366 : 365, n = z(I(e, 1, 1));
|
|
1288
1288
|
return t === 365 ? {
|
|
1289
|
-
mmask:
|
|
1289
|
+
mmask: Mt,
|
|
1290
|
+
mdaymask: Lt,
|
|
1291
|
+
nmdaymask: Vt,
|
|
1292
|
+
wdaymask: Wt.slice(n),
|
|
1293
|
+
mrange: Ut
|
|
1294
|
+
} : {
|
|
1295
|
+
mmask: Nt,
|
|
1290
1296
|
mdaymask: It,
|
|
1291
1297
|
nmdaymask: Bt,
|
|
1292
|
-
wdaymask:
|
|
1298
|
+
wdaymask: Wt.slice(n),
|
|
1293
1299
|
mrange: Ht
|
|
1294
|
-
} : {
|
|
1295
|
-
mmask: Mt,
|
|
1296
|
-
mdaymask: Ft,
|
|
1297
|
-
nmdaymask: zt,
|
|
1298
|
-
wdaymask: Ut.slice(n),
|
|
1299
|
-
mrange: Vt
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
1302
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/monthinfo.js
|
|
1303
|
-
function
|
|
1303
|
+
function qt(e, t, n, r, i, a) {
|
|
1304
1304
|
var o = {
|
|
1305
1305
|
lastyear: e,
|
|
1306
1306
|
lastmonth: t,
|
|
@@ -1319,23 +1319,23 @@ function Kt(e, t, n, r, i, a) {
|
|
|
1319
1319
|
return o;
|
|
1320
1320
|
}
|
|
1321
1321
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/easter.js
|
|
1322
|
-
function
|
|
1322
|
+
function Jt(e, t) {
|
|
1323
1323
|
t === void 0 && (t = 0);
|
|
1324
1324
|
var n = e % 19, r = Math.floor(e / 100), i = e % 100, a = Math.floor(r / 4), o = r % 4, s = Math.floor((r + 8) / 25), c = Math.floor((r - s + 1) / 3), l = Math.floor(19 * n + r - a - c + 15) % 30, u = Math.floor(i / 4), d = i % 4, f = Math.floor(32 + 2 * o + 2 * u - l - d) % 7, p = Math.floor((n + 11 * l + 22 * f) / 451), m = Math.floor((l + f - 7 * p + 114) / 31), h = (l + f - 7 * p + 114) % 31 + 1, g = Date.UTC(e, m - 1, h + t);
|
|
1325
1325
|
return [Math.ceil((g - Date.UTC(e, 0, 1)) / 864e5)];
|
|
1326
1326
|
}
|
|
1327
1327
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/index.js
|
|
1328
|
-
var
|
|
1328
|
+
var Yt = function() {
|
|
1329
1329
|
function e(e) {
|
|
1330
1330
|
this.options = e;
|
|
1331
1331
|
}
|
|
1332
1332
|
return e.prototype.rebuild = function(e, t) {
|
|
1333
1333
|
var n = this.options;
|
|
1334
|
-
if (e !== this.lastyear && (this.yearinfo =
|
|
1334
|
+
if (e !== this.lastyear && (this.yearinfo = Gt(e, n)), P(n.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
|
|
1335
1335
|
var r = this.yearinfo, i = r.yearlen, a = r.mrange, o = r.wdaymask;
|
|
1336
|
-
this.monthinfo =
|
|
1336
|
+
this.monthinfo = qt(e, t, i, a, o, n);
|
|
1337
1337
|
}
|
|
1338
|
-
E(n.byeaster) && (this.eastermask =
|
|
1338
|
+
E(n.byeaster) && (this.eastermask = Jt(e, n.byeaster));
|
|
1339
1339
|
}, Object.defineProperty(e.prototype, "lastyear", {
|
|
1340
1340
|
get: function() {
|
|
1341
1341
|
return this.monthinfo ? this.monthinfo.lastyear : null;
|
|
@@ -1422,14 +1422,14 @@ var Jt = function() {
|
|
|
1422
1422
|
r
|
|
1423
1423
|
];
|
|
1424
1424
|
}, e.prototype.wdayset = function(e, t, n) {
|
|
1425
|
-
for (var r = A(null, this.yearlen + 7), i =
|
|
1425
|
+
for (var r = A(null, this.yearlen + 7), i = Ge(I(e, t, n)) - this.yearordinal, a = i, o = 0; o < 7 && (r[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); o++);
|
|
1426
1426
|
return [
|
|
1427
1427
|
r,
|
|
1428
1428
|
a,
|
|
1429
1429
|
i
|
|
1430
1430
|
];
|
|
1431
1431
|
}, e.prototype.ddayset = function(e, t, n) {
|
|
1432
|
-
var r = A(null, this.yearlen), i =
|
|
1432
|
+
var r = A(null, this.yearlen), i = Ge(I(e, t, n)) - this.yearordinal;
|
|
1433
1433
|
return r[i] = i, [
|
|
1434
1434
|
r,
|
|
1435
1435
|
i,
|
|
@@ -1442,11 +1442,11 @@ var Jt = function() {
|
|
|
1442
1442
|
}), B(a), a;
|
|
1443
1443
|
}, e.prototype.mtimeset = function(e, t, n, r) {
|
|
1444
1444
|
var i = this.options.bysecond.map(function(n) {
|
|
1445
|
-
return new
|
|
1445
|
+
return new ht(e, t, n, r);
|
|
1446
1446
|
});
|
|
1447
1447
|
return B(i), i;
|
|
1448
1448
|
}, e.prototype.stimeset = function(e, t, n, r) {
|
|
1449
|
-
return [new
|
|
1449
|
+
return [new ht(e, t, n, r)];
|
|
1450
1450
|
}, e.prototype.getdayset = function(e) {
|
|
1451
1451
|
switch (e) {
|
|
1452
1452
|
case G.YEARLY: return this.ydayset.bind(this);
|
|
@@ -1464,7 +1464,7 @@ var Jt = function() {
|
|
|
1464
1464
|
}, e;
|
|
1465
1465
|
}();
|
|
1466
1466
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/poslist.js
|
|
1467
|
-
function
|
|
1467
|
+
function Xt(e, t, n, r, i, a) {
|
|
1468
1468
|
for (var o = [], s = 0; s < e.length; s++) {
|
|
1469
1469
|
var c = void 0, l = void 0, u = e[s];
|
|
1470
1470
|
u < 0 ? (c = Math.floor(u / t.length), l = M(u, t.length)) : (c = Math.floor((u - 1) / t.length), l = M(u - 1, t.length));
|
|
@@ -1474,62 +1474,62 @@ function Yt(e, t, n, r, i, a) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
var m = void 0;
|
|
1476
1476
|
m = c < 0 ? d.slice(c)[0] : d[c];
|
|
1477
|
-
var h = t[l], g =
|
|
1477
|
+
var h = t[l], g = Ye(Ke(i.yearordinal + m), h);
|
|
1478
1478
|
F(o, g) || o.push(g);
|
|
1479
1479
|
}
|
|
1480
1480
|
return B(o), o;
|
|
1481
1481
|
}
|
|
1482
1482
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/index.js
|
|
1483
|
-
function
|
|
1483
|
+
function Zt(e, t) {
|
|
1484
1484
|
var n = t.dtstart, r = t.freq, i = t.interval, a = t.until, o = t.bysetpos, s = t.count;
|
|
1485
1485
|
if (s === 0 || i === 0) return Z(e);
|
|
1486
|
-
var c =
|
|
1486
|
+
var c = gt.fromDate(n), l = new Yt(t);
|
|
1487
1487
|
l.rebuild(c.year, c.month);
|
|
1488
|
-
for (var u =
|
|
1489
|
-
var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h =
|
|
1490
|
-
if (P(o)) for (var g =
|
|
1488
|
+
for (var u = tn(l, c, t);;) {
|
|
1489
|
+
var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h = en(f, p, m, l, t);
|
|
1490
|
+
if (P(o)) for (var g = Xt(o, u, p, m, l, f), _ = 0; _ < g.length; _++) {
|
|
1491
1491
|
var v = g[_];
|
|
1492
1492
|
if (a && v > a) return Z(e);
|
|
1493
1493
|
if (v >= n) {
|
|
1494
|
-
var y =
|
|
1494
|
+
var y = $t(v, t);
|
|
1495
1495
|
if (!e.accept(y) || s && (--s, !s)) return Z(e);
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
else for (var _ = p; _ < m; _++) {
|
|
1499
1499
|
var b = f[_];
|
|
1500
|
-
if (E(b)) for (var ee =
|
|
1501
|
-
var te = u[x], v =
|
|
1500
|
+
if (E(b)) for (var ee = Ke(l.yearordinal + b), x = 0; x < u.length; x++) {
|
|
1501
|
+
var te = u[x], v = Ye(ee, te);
|
|
1502
1502
|
if (a && v > a) return Z(e);
|
|
1503
1503
|
if (v >= n) {
|
|
1504
|
-
var y =
|
|
1504
|
+
var y = $t(v, t);
|
|
1505
1505
|
if (!e.accept(y) || s && (--s, !s)) return Z(e);
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
1509
|
if (t.interval === 0 || (c.add(t, h), c.year > 9999)) return Z(e);
|
|
1510
|
-
|
|
1510
|
+
dt(r) || (u = l.gettimeset(r)(c.hour, c.minute, c.second, 0)), l.rebuild(c.year, c.month);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Qt(e, t, n) {
|
|
1514
1514
|
var r = n.bymonth, i = n.byweekno, a = n.byweekday, o = n.byeaster, s = n.bymonthday, c = n.bynmonthday, l = n.byyearday;
|
|
1515
1515
|
return P(r) && !F(r, e.mmask[t]) || P(i) && !e.wnomask[t] || P(a) && !F(a, e.wdaymask[t]) || P(e.nwdaymask) && !e.nwdaymask[t] || o !== null && !F(e.eastermask, t) || (P(s) || P(c)) && !F(s, e.mdaymask[t]) && !F(c, e.nmdaymask[t]) || P(l) && (t < e.yearlen && !F(l, t + 1) && !F(l, -e.yearlen + t) || t >= e.yearlen && !F(l, t + 1 - e.yearlen) && !F(l, -e.nextyearlen + t - e.yearlen));
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return new
|
|
1517
|
+
function $t(e, t) {
|
|
1518
|
+
return new Dt(e, t.tzid).rezonedDate();
|
|
1519
1519
|
}
|
|
1520
1520
|
function Z(e) {
|
|
1521
1521
|
return e.getValue();
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function en(e, t, n, r, i) {
|
|
1524
1524
|
for (var a = !1, o = t; o < n; o++) {
|
|
1525
1525
|
var s = e[o];
|
|
1526
|
-
a =
|
|
1526
|
+
a = Qt(r, s, i), a && (e[s] = null);
|
|
1527
1527
|
}
|
|
1528
1528
|
return a;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function tn(e, t, n) {
|
|
1531
1531
|
var r = n.freq, i = n.byhour, a = n.byminute, o = n.bysecond;
|
|
1532
|
-
return
|
|
1532
|
+
return dt(r) ? yt(n) : r >= $.HOURLY && P(i) && !F(i, t.hour) || r >= $.MINUTELY && P(a) && !F(a, t.minute) || r >= $.SECONDLY && P(o) && !F(o, t.second) ? [] : e.gettimeset(r)(t.hour, t.minute, t.second, t.millisecond);
|
|
1533
1533
|
}
|
|
1534
1534
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrule.js
|
|
1535
1535
|
var Q = {
|
|
@@ -1540,7 +1540,7 @@ var Q = {
|
|
|
1540
1540
|
FR: new T(4),
|
|
1541
1541
|
SA: new T(5),
|
|
1542
1542
|
SU: new T(6)
|
|
1543
|
-
},
|
|
1543
|
+
}, nn = {
|
|
1544
1544
|
freq: G.YEARLY,
|
|
1545
1545
|
dtstart: null,
|
|
1546
1546
|
interval: 1,
|
|
@@ -1560,26 +1560,26 @@ var Q = {
|
|
|
1560
1560
|
byminute: null,
|
|
1561
1561
|
bysecond: null,
|
|
1562
1562
|
byeaster: null
|
|
1563
|
-
},
|
|
1563
|
+
}, rn = Object.keys(nn), $ = function() {
|
|
1564
1564
|
function e(e, t) {
|
|
1565
|
-
e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new
|
|
1566
|
-
var n =
|
|
1565
|
+
e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new jt(), this.origOptions = _t(e);
|
|
1566
|
+
var n = vt(e).parsedOptions;
|
|
1567
1567
|
this.options = n;
|
|
1568
1568
|
}
|
|
1569
1569
|
return e.parseText = function(e, t) {
|
|
1570
|
-
return
|
|
1570
|
+
return ut(e, t);
|
|
1571
1571
|
}, e.fromText = function(e, t) {
|
|
1572
|
-
return
|
|
1572
|
+
return ft(e, t);
|
|
1573
1573
|
}, e.fromString = function(t) {
|
|
1574
1574
|
return new e(e.parseString(t) || void 0);
|
|
1575
1575
|
}, e.prototype._iter = function(e) {
|
|
1576
|
-
return
|
|
1576
|
+
return Zt(e, this.options);
|
|
1577
1577
|
}, e.prototype._cacheGet = function(e, t) {
|
|
1578
1578
|
return this._cache ? this._cache._cacheGet(e, t) : !1;
|
|
1579
1579
|
}, e.prototype._cacheAdd = function(e, t, n) {
|
|
1580
1580
|
if (this._cache) return this._cache._cacheAdd(e, t, n);
|
|
1581
1581
|
}, e.prototype.all = function(e) {
|
|
1582
|
-
if (e) return this._iter(new
|
|
1582
|
+
if (e) return this._iter(new it("all", {}, e));
|
|
1583
1583
|
var t = this._cacheGet("all");
|
|
1584
1584
|
return t === !1 && (t = this._iter(new V("all", {})), this._cacheAdd("all", t)), t;
|
|
1585
1585
|
}, e.prototype.between = function(e, t, n, r) {
|
|
@@ -1589,7 +1589,7 @@ var Q = {
|
|
|
1589
1589
|
after: e,
|
|
1590
1590
|
inc: n
|
|
1591
1591
|
};
|
|
1592
|
-
if (r) return this._iter(new
|
|
1592
|
+
if (r) return this._iter(new it("between", i, r));
|
|
1593
1593
|
var a = this._cacheGet("between", i);
|
|
1594
1594
|
return a === !1 && (a = this._iter(new V("between", i)), this._cacheAdd("between", a, i)), a;
|
|
1595
1595
|
}, e.prototype.before = function(e, t) {
|
|
@@ -1609,11 +1609,11 @@ var Q = {
|
|
|
1609
1609
|
}, e.prototype.count = function() {
|
|
1610
1610
|
return this.all().length;
|
|
1611
1611
|
}, e.prototype.toString = function() {
|
|
1612
|
-
return
|
|
1612
|
+
return Ot(this.origOptions);
|
|
1613
1613
|
}, e.prototype.toText = function(e, t, n) {
|
|
1614
|
-
return
|
|
1614
|
+
return pt(this, e, t, n);
|
|
1615
1615
|
}, e.prototype.isFullyConvertibleToText = function() {
|
|
1616
|
-
return
|
|
1616
|
+
return mt(this);
|
|
1617
1617
|
}, e.prototype.clone = function() {
|
|
1618
1618
|
return new e(this.origOptions);
|
|
1619
1619
|
}, e.FREQUENCIES = [
|
|
@@ -1624,10 +1624,10 @@ var Q = {
|
|
|
1624
1624
|
"HOURLY",
|
|
1625
1625
|
"MINUTELY",
|
|
1626
1626
|
"SECONDLY"
|
|
1627
|
-
], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString =
|
|
1627
|
+
], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString = bt, e.optionsToString = Ot, e;
|
|
1628
1628
|
}();
|
|
1629
1629
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterset.js
|
|
1630
|
-
function
|
|
1630
|
+
function an(e, t, n, r, i, a) {
|
|
1631
1631
|
var o = {}, s = e.accept;
|
|
1632
1632
|
function c(e, t) {
|
|
1633
1633
|
n.forEach(function(n) {
|
|
@@ -1637,7 +1637,7 @@ function rn(e, t, n, r, i, a) {
|
|
|
1637
1637
|
});
|
|
1638
1638
|
}
|
|
1639
1639
|
i.forEach(function(e) {
|
|
1640
|
-
var t = new
|
|
1640
|
+
var t = new Dt(e, a).rezonedDate();
|
|
1641
1641
|
o[Number(t)] = !0;
|
|
1642
1642
|
}), e.accept = function(e) {
|
|
1643
1643
|
var t = Number(e);
|
|
@@ -1647,11 +1647,11 @@ function rn(e, t, n, r, i, a) {
|
|
|
1647
1647
|
return o[t] ? !0 : (o[t] = !0, s.call(this, e));
|
|
1648
1648
|
});
|
|
1649
1649
|
for (var l = 0; l < r.length; l++) {
|
|
1650
|
-
var u = new
|
|
1650
|
+
var u = new Dt(r[l], a).rezonedDate();
|
|
1651
1651
|
if (!e.accept(new Date(u.getTime()))) break;
|
|
1652
1652
|
}
|
|
1653
1653
|
t.forEach(function(t) {
|
|
1654
|
-
|
|
1654
|
+
Zt(e, t.options);
|
|
1655
1655
|
});
|
|
1656
1656
|
var d = e._result;
|
|
1657
1657
|
switch (B(d), e.method) {
|
|
@@ -1662,7 +1662,7 @@ function rn(e, t, n, r, i, a) {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrulestr.js
|
|
1665
|
-
var
|
|
1665
|
+
var on = {
|
|
1666
1666
|
dtstart: null,
|
|
1667
1667
|
cache: !1,
|
|
1668
1668
|
unfold: !1,
|
|
@@ -1670,26 +1670,26 @@ var an = {
|
|
|
1670
1670
|
compatible: !1,
|
|
1671
1671
|
tzid: null
|
|
1672
1672
|
};
|
|
1673
|
-
function
|
|
1674
|
-
var n = [], r = [], i = [], a = [], o =
|
|
1675
|
-
return
|
|
1673
|
+
function sn(e, t) {
|
|
1674
|
+
var n = [], r = [], i = [], a = [], o = xt(e), s = o.dtstart, c = o.tzid;
|
|
1675
|
+
return mn(e, t.unfold).forEach(function(e) {
|
|
1676
1676
|
if (e) {
|
|
1677
|
-
var t =
|
|
1677
|
+
var t = pn(e), o = t.name, s = t.parms, l = t.value;
|
|
1678
1678
|
switch (o.toUpperCase()) {
|
|
1679
1679
|
case "RRULE":
|
|
1680
1680
|
if (s.length) throw Error(`unsupported RRULE parm: ${s.join(",")}`);
|
|
1681
|
-
n.push(
|
|
1681
|
+
n.push(bt(e));
|
|
1682
1682
|
break;
|
|
1683
1683
|
case "RDATE":
|
|
1684
1684
|
var u = (/RDATE(?:;TZID=([^:=]+))?/i.exec(e) ?? [])[1];
|
|
1685
|
-
u && !c && (c = u), r = r.concat(
|
|
1685
|
+
u && !c && (c = u), r = r.concat(gn(l, s));
|
|
1686
1686
|
break;
|
|
1687
1687
|
case "EXRULE":
|
|
1688
1688
|
if (s.length) throw Error(`unsupported EXRULE parm: ${s.join(",")}`);
|
|
1689
|
-
i.push(
|
|
1689
|
+
i.push(bt(l));
|
|
1690
1690
|
break;
|
|
1691
1691
|
case "EXDATE":
|
|
1692
|
-
a = a.concat(
|
|
1692
|
+
a = a.concat(gn(l, s));
|
|
1693
1693
|
break;
|
|
1694
1694
|
case "DTSTART": break;
|
|
1695
1695
|
default: throw Error("unsupported property: " + o);
|
|
@@ -1704,52 +1704,52 @@ function on(e, t) {
|
|
|
1704
1704
|
exdatevals: a
|
|
1705
1705
|
};
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
var n =
|
|
1707
|
+
function cn(e, t) {
|
|
1708
|
+
var n = sn(e, t), r = n.rrulevals, i = n.rdatevals, a = n.exrulevals, o = n.exdatevals, s = n.dtstart, c = n.tzid, l = t.cache === !1;
|
|
1709
1709
|
if (t.compatible && (t.forceset = !0, t.unfold = !0), t.forceset || r.length > 1 || i.length || a.length || o.length) {
|
|
1710
|
-
var u = new
|
|
1710
|
+
var u = new vn(l);
|
|
1711
1711
|
return u.dtstart(s), u.tzid(c || void 0), r.forEach(function(e) {
|
|
1712
|
-
u.rrule(new $(
|
|
1712
|
+
u.rrule(new $(un(e, s, c), l));
|
|
1713
1713
|
}), i.forEach(function(e) {
|
|
1714
1714
|
u.rdate(e);
|
|
1715
1715
|
}), a.forEach(function(e) {
|
|
1716
|
-
u.exrule(new $(
|
|
1716
|
+
u.exrule(new $(un(e, s, c), l));
|
|
1717
1717
|
}), o.forEach(function(e) {
|
|
1718
1718
|
u.exdate(e);
|
|
1719
1719
|
}), t.compatible && t.dtstart && u.rdate(s), u;
|
|
1720
1720
|
}
|
|
1721
1721
|
var d = r[0] || {};
|
|
1722
|
-
return new $(
|
|
1722
|
+
return new $(un(d, d.dtstart || t.dtstart || s, d.tzid || t.tzid || c), l);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
return t === void 0 && (t = {}),
|
|
1724
|
+
function ln(e, t) {
|
|
1725
|
+
return t === void 0 && (t = {}), cn(e, dn(t));
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function un(e, t, n) {
|
|
1728
1728
|
return H(H({}, e), {
|
|
1729
1729
|
dtstart: t,
|
|
1730
1730
|
tzid: n
|
|
1731
1731
|
});
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1734
|
-
var t = [], n = Object.keys(e), r = Object.keys(
|
|
1733
|
+
function dn(e) {
|
|
1734
|
+
var t = [], n = Object.keys(e), r = Object.keys(on);
|
|
1735
1735
|
if (n.forEach(function(e) {
|
|
1736
1736
|
F(r, e) || t.push(e);
|
|
1737
1737
|
}), t.length) throw Error("Invalid options: " + t.join(", "));
|
|
1738
|
-
return H(H({},
|
|
1738
|
+
return H(H({}, on), e);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function fn(e) {
|
|
1741
1741
|
if (e.indexOf(":") === -1) return {
|
|
1742
1742
|
name: "RRULE",
|
|
1743
1743
|
value: e
|
|
1744
1744
|
};
|
|
1745
|
-
var t =
|
|
1745
|
+
var t = Le(e, ":", 1);
|
|
1746
1746
|
return {
|
|
1747
1747
|
name: t[0],
|
|
1748
1748
|
value: t[1]
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
var t =
|
|
1751
|
+
function pn(e) {
|
|
1752
|
+
var t = fn(e), n = t.name, r = t.value, i = n.split(";");
|
|
1753
1753
|
if (!i) throw Error("empty property name");
|
|
1754
1754
|
return {
|
|
1755
1755
|
name: i[0].toUpperCase(),
|
|
@@ -1757,7 +1757,7 @@ function fn(e) {
|
|
|
1757
1757
|
value: r
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function mn(e, t) {
|
|
1761
1761
|
if (t === void 0 && (t = !1), e &&= e.trim(), !e) throw Error("Invalid empty string");
|
|
1762
1762
|
if (!t) return e.split(/\s/);
|
|
1763
1763
|
for (var n = e.split("\n"), r = 0; r < n.length;) {
|
|
@@ -1766,18 +1766,18 @@ function pn(e, t) {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
return n;
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function hn(e) {
|
|
1770
1770
|
e.forEach(function(e) {
|
|
1771
1771
|
if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e)) throw Error("unsupported RDATE/EXDATE parm: " + e);
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1775
|
-
return
|
|
1776
|
-
return
|
|
1774
|
+
function gn(e, t) {
|
|
1775
|
+
return hn(t), e.split(",").map(function(e) {
|
|
1776
|
+
return $e(e);
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
1779
|
// ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rruleset.js
|
|
1780
|
-
function
|
|
1780
|
+
function _n(e) {
|
|
1781
1781
|
var t = this;
|
|
1782
1782
|
return function(n) {
|
|
1783
1783
|
if (n !== void 0 && (t[`_${e}`] = n), t[`_${e}`] !== void 0) return t[`_${e}`];
|
|
@@ -1787,30 +1787,30 @@ function gn(e) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
|
-
var
|
|
1791
|
-
|
|
1790
|
+
var vn = function(e) {
|
|
1791
|
+
rt(t, e);
|
|
1792
1792
|
function t(t) {
|
|
1793
1793
|
t === void 0 && (t = !1);
|
|
1794
1794
|
var n = e.call(this, {}, t) || this;
|
|
1795
|
-
return n.dtstart =
|
|
1795
|
+
return n.dtstart = _n.apply(n, ["dtstart"]), n.tzid = _n.apply(n, ["tzid"]), n._rrule = [], n._rdate = [], n._exrule = [], n._exdate = [], n;
|
|
1796
1796
|
}
|
|
1797
1797
|
return t.prototype._iter = function(e) {
|
|
1798
|
-
return
|
|
1798
|
+
return an(e, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
|
|
1799
1799
|
}, t.prototype.rrule = function(e) {
|
|
1800
|
-
|
|
1800
|
+
yn(e, this._rrule);
|
|
1801
1801
|
}, t.prototype.exrule = function(e) {
|
|
1802
|
-
|
|
1802
|
+
yn(e, this._exrule);
|
|
1803
1803
|
}, t.prototype.rdate = function(e) {
|
|
1804
|
-
|
|
1804
|
+
bn(e, this._rdate);
|
|
1805
1805
|
}, t.prototype.exdate = function(e) {
|
|
1806
|
-
|
|
1806
|
+
bn(e, this._exdate);
|
|
1807
1807
|
}, t.prototype.rrules = function() {
|
|
1808
1808
|
return this._rrule.map(function(e) {
|
|
1809
|
-
return
|
|
1809
|
+
return ln(e.toString());
|
|
1810
1810
|
});
|
|
1811
1811
|
}, t.prototype.exrules = function() {
|
|
1812
1812
|
return this._exrule.map(function(e) {
|
|
1813
|
-
return
|
|
1813
|
+
return ln(e.toString());
|
|
1814
1814
|
});
|
|
1815
1815
|
}, t.prototype.rdates = function() {
|
|
1816
1816
|
return this._rdate.map(function(e) {
|
|
@@ -1822,7 +1822,7 @@ var _n = function(e) {
|
|
|
1822
1822
|
});
|
|
1823
1823
|
}, t.prototype.valueOf = function() {
|
|
1824
1824
|
var e = [];
|
|
1825
|
-
return !this._rrule.length && this._dtstart && (e = e.concat(
|
|
1825
|
+
return !this._rrule.length && this._dtstart && (e = e.concat(Ot({ dtstart: this._dtstart }))), this._rrule.forEach(function(t) {
|
|
1826
1826
|
e = e.concat(t.toString().split("\n"));
|
|
1827
1827
|
}), this._exrule.forEach(function(t) {
|
|
1828
1828
|
e = e.concat(t.toString().split("\n").map(function(e) {
|
|
@@ -1830,7 +1830,7 @@ var _n = function(e) {
|
|
|
1830
1830
|
}).filter(function(e) {
|
|
1831
1831
|
return !/^DTSTART/.test(e);
|
|
1832
1832
|
}));
|
|
1833
|
-
}), this._rdate.length && e.push(
|
|
1833
|
+
}), this._rdate.length && e.push(xn("RDATE", this._rdate, this.tzid())), this._exdate.length && e.push(xn("EXDATE", this._exdate, this.tzid())), e;
|
|
1834
1834
|
}, t.prototype.toString = function() {
|
|
1835
1835
|
return this.valueOf().join("\n");
|
|
1836
1836
|
}, t.prototype.clone = function() {
|
|
@@ -1846,27 +1846,27 @@ var _n = function(e) {
|
|
|
1846
1846
|
}), e;
|
|
1847
1847
|
}, t;
|
|
1848
1848
|
}($);
|
|
1849
|
-
function
|
|
1849
|
+
function yn(e, t) {
|
|
1850
1850
|
if (!(e instanceof $)) throw TypeError(String(e) + " is not RRule instance");
|
|
1851
1851
|
F(t.map(String), String(e)) || t.push(e);
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function bn(e, t) {
|
|
1854
1854
|
if (!(e instanceof Date)) throw TypeError(String(e) + " is not Date instance");
|
|
1855
1855
|
F(t.map(Number), Number(e)) || (t.push(e), B(t));
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function xn(e, t, n) {
|
|
1858
1858
|
var r = !n || n.toUpperCase() === "UTC";
|
|
1859
1859
|
return `${r ? `${e}:` : `${e};TZID=${n}:`}${t.map(function(e) {
|
|
1860
|
-
return
|
|
1860
|
+
return Qe(e.valueOf(), r);
|
|
1861
1861
|
}).join(",")}`;
|
|
1862
1862
|
}
|
|
1863
1863
|
// src/refreshScheduleOccurrences.ts
|
|
1864
|
-
var
|
|
1864
|
+
var Sn = {
|
|
1865
1865
|
hourly: $.HOURLY,
|
|
1866
1866
|
daily: $.DAILY,
|
|
1867
1867
|
weekly: $.WEEKLY,
|
|
1868
1868
|
monthly: $.MONTHLY
|
|
1869
|
-
},
|
|
1869
|
+
}, Cn = [
|
|
1870
1870
|
$.MO,
|
|
1871
1871
|
$.TU,
|
|
1872
1872
|
$.WE,
|
|
@@ -1875,7 +1875,7 @@ var xn = {
|
|
|
1875
1875
|
$.SA,
|
|
1876
1876
|
$.SU
|
|
1877
1877
|
];
|
|
1878
|
-
function
|
|
1878
|
+
function wn(e, t) {
|
|
1879
1879
|
let n = new Intl.DateTimeFormat("en-US", {
|
|
1880
1880
|
timeZone: t,
|
|
1881
1881
|
hourCycle: "h23",
|
|
@@ -1888,51 +1888,51 @@ function Cn(e, t) {
|
|
|
1888
1888
|
}).formatToParts(new Date(e)), r = (e) => Number(n.find((t) => t.type === e)?.value);
|
|
1889
1889
|
return Date.UTC(r("year"), r("month") - 1, r("day"), r("hour"), r("minute"), r("second")) - e;
|
|
1890
1890
|
}
|
|
1891
|
-
var
|
|
1892
|
-
function
|
|
1893
|
-
let n = e.getTime(), r =
|
|
1891
|
+
var Tn = 864e5;
|
|
1892
|
+
function En(e, t) {
|
|
1893
|
+
let n = e.getTime(), r = wn(n - Tn, t), i = wn(n + Tn, t), a = [n - r, n - i].filter((e) => e + wn(e, t) === n);
|
|
1894
1894
|
return new Date(a.length ? Math.min(...a) : n - r);
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function Dn(e, t = 3, n = /* @__PURE__ */ new Date()) {
|
|
1897
1897
|
let [r, i] = (e.freq === "hourly" ? "00:00" : e.time ?? "00:00").split(":").map(Number), [a, o, s] = e.startDate.split("-").map(Number), c = e.freq === "weekly", l = e.freq === "monthly" ? e.monthly : null, u = new $({
|
|
1898
|
-
freq:
|
|
1898
|
+
freq: Sn[e.freq],
|
|
1899
1899
|
interval: Math.max(1, e.interval),
|
|
1900
1900
|
dtstart: new Date(Date.UTC(a, o - 1, s, r, i)),
|
|
1901
|
-
byweekday: c ? (e.weekdays.length ? e.weekdays : [
|
|
1901
|
+
byweekday: c ? (e.weekdays.length ? e.weekdays : [Oe(e.startDate)]).map((e) => Cn[e]) : l && "nth" in l ? [Cn[l.weekday]] : null,
|
|
1902
1902
|
bysetpos: l && "nth" in l ? l.nth : null,
|
|
1903
1903
|
bymonthday: l && "day" in l ? l.day : null
|
|
1904
|
-
}), d = new Date(n.getTime() +
|
|
1904
|
+
}), d = new Date(n.getTime() + wn(n.getTime(), e.timezone)), f = [], p = u.after(d, !0);
|
|
1905
1905
|
for (; p && f.length < t;) f.push({
|
|
1906
|
-
at:
|
|
1906
|
+
at: En(p, e.timezone),
|
|
1907
1907
|
wall: p
|
|
1908
1908
|
}), p = u.after(p, !1);
|
|
1909
1909
|
return f;
|
|
1910
1910
|
}
|
|
1911
1911
|
// src/taskPriority.ts
|
|
1912
|
-
var
|
|
1912
|
+
var On = [
|
|
1913
1913
|
"low",
|
|
1914
1914
|
"normal",
|
|
1915
1915
|
"high",
|
|
1916
1916
|
"urgent"
|
|
1917
|
-
],
|
|
1917
|
+
], kn = {
|
|
1918
1918
|
low: "mdi-signal-cellular-1",
|
|
1919
1919
|
normal: "mdi-signal-cellular-2",
|
|
1920
1920
|
high: "mdi-signal-cellular-3",
|
|
1921
1921
|
urgent: "mdi-alert"
|
|
1922
|
-
},
|
|
1922
|
+
}, An = {
|
|
1923
1923
|
low: "blue-lighten-1",
|
|
1924
1924
|
normal: "green-lighten-1",
|
|
1925
1925
|
high: "yellow-lighten-1",
|
|
1926
1926
|
urgent: "red-lighten-1"
|
|
1927
1927
|
};
|
|
1928
|
-
function An(e) {
|
|
1929
|
-
return On[e];
|
|
1930
|
-
}
|
|
1931
1928
|
function jn(e) {
|
|
1932
1929
|
return kn[e];
|
|
1933
1930
|
}
|
|
1931
|
+
function Mn(e) {
|
|
1932
|
+
return An[e];
|
|
1933
|
+
}
|
|
1934
1934
|
// src/useAntColorMode.ts
|
|
1935
|
-
function
|
|
1935
|
+
function Nn(e, t) {
|
|
1936
1936
|
let r = i(t), a = u(() => e.context.value.darkMode), o = u(() => {
|
|
1937
1937
|
switch (a.value) {
|
|
1938
1938
|
case null: return "auto";
|
|
@@ -1957,21 +1957,21 @@ function Mn(e, t) {
|
|
|
1957
1957
|
]));
|
|
1958
1958
|
}
|
|
1959
1959
|
// src/useAntI18n.ts
|
|
1960
|
-
function
|
|
1961
|
-
let n =
|
|
1962
|
-
return
|
|
1960
|
+
function Pn(e, t) {
|
|
1961
|
+
let n = x(t);
|
|
1962
|
+
return b(() => e.context.value.user?.language, (e) => n.locale.value = e ?? "en", { immediate: !0 }), n;
|
|
1963
1963
|
}
|
|
1964
1964
|
// src/useAppQueryParam.ts
|
|
1965
|
-
function
|
|
1965
|
+
function Fn(e) {
|
|
1966
1966
|
let t = Array.isArray(e) ? e[0] : e;
|
|
1967
1967
|
return typeof t == "string" && t !== "" ? t : null;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1970
|
-
let r =
|
|
1971
|
-
e.route?.query && (r.value =
|
|
1969
|
+
function In(e, t, n = {}) {
|
|
1970
|
+
let r = v(void 0), i = e.signal.receive((e) => {
|
|
1971
|
+
e.route?.query && (r.value = Fn(e.route.query[t]));
|
|
1972
1972
|
});
|
|
1973
|
-
return
|
|
1974
|
-
get: () => r.value === void 0 ?
|
|
1973
|
+
return h(i), u({
|
|
1974
|
+
get: () => r.value === void 0 ? Fn(e.context.value?.initialRouteQuery?.[t]) : r.value,
|
|
1975
1975
|
set: (i) => {
|
|
1976
1976
|
r.value = i, e.signal({ route: {
|
|
1977
1977
|
query: { [t]: i },
|
|
@@ -1981,49 +1981,49 @@ function Fn(e, t, n = {}) {
|
|
|
1981
1981
|
});
|
|
1982
1982
|
}
|
|
1983
1983
|
// src/useAppTourMode.ts
|
|
1984
|
-
var
|
|
1985
|
-
function
|
|
1984
|
+
var Ln = v(!1), Rn = v(null);
|
|
1985
|
+
function zn() {
|
|
1986
1986
|
function e(e) {
|
|
1987
|
-
|
|
1988
|
-
|
|
1987
|
+
b(() => e.value.tourMode, (e) => {
|
|
1988
|
+
Ln.value = !!e, e || (Rn.value = null);
|
|
1989
1989
|
}, { immediate: !0 });
|
|
1990
1990
|
}
|
|
1991
1991
|
function t(e) {
|
|
1992
|
-
|
|
1992
|
+
Ln.value && (Rn.value = e);
|
|
1993
1993
|
}
|
|
1994
1994
|
function n() {
|
|
1995
|
-
|
|
1995
|
+
Ln.value = !1, Rn.value = null;
|
|
1996
1996
|
}
|
|
1997
1997
|
return {
|
|
1998
|
-
isActive:
|
|
1999
|
-
activeZoneId:
|
|
1998
|
+
isActive: _(Ln),
|
|
1999
|
+
activeZoneId: _(Rn),
|
|
2000
2000
|
connectContext: e,
|
|
2001
2001
|
setActiveZone: t,
|
|
2002
2002
|
exit: n
|
|
2003
2003
|
};
|
|
2004
2004
|
}
|
|
2005
2005
|
// src/useCommsClient.ts
|
|
2006
|
-
function
|
|
2007
|
-
let i =
|
|
2006
|
+
function Bn(e, n, r) {
|
|
2007
|
+
let i = v({}), a = re({
|
|
2008
2008
|
parent: window.parent,
|
|
2009
2009
|
connect: e,
|
|
2010
2010
|
manifest: r
|
|
2011
|
-
}), o =
|
|
2011
|
+
}), o = v(""), s = u({
|
|
2012
2012
|
get: () => o.value,
|
|
2013
2013
|
set: (e) => a.appState.set(e)
|
|
2014
2014
|
});
|
|
2015
|
-
return a.context.subscribe((e) => i.value = e),
|
|
2015
|
+
return a.context.subscribe((e) => i.value = e), oe(a.appState.get(), a.appState).subscribe((e) => o.value = e), Hn(a.signal, a, n), p(() => a.unsubscribe()), Object.assign(t(a, [
|
|
2016
2016
|
"context",
|
|
2017
2017
|
"toolbar",
|
|
2018
2018
|
"appState"
|
|
2019
2019
|
]), {
|
|
2020
2020
|
context: i,
|
|
2021
|
-
toolbar:
|
|
2021
|
+
toolbar: Vn(a),
|
|
2022
2022
|
appState: s
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2026
|
-
let t =
|
|
2025
|
+
function Vn(e) {
|
|
2026
|
+
let t = v(""), n = {
|
|
2027
2027
|
title: u({
|
|
2028
2028
|
get: () => e.toolbar.get().title,
|
|
2029
2029
|
set: (t) => e.toolbar.set((e) => ({
|
|
@@ -2073,22 +2073,22 @@ function Bn(e) {
|
|
|
2073
2073
|
}))
|
|
2074
2074
|
})
|
|
2075
2075
|
};
|
|
2076
|
-
return e.toolbar.pipe(
|
|
2076
|
+
return e.toolbar.pipe(le((e) => e.search.input ?? ""), se(), w(300)).forEach((e) => t.value = e), n;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2079
|
-
let r = a(), i = r.ctrl ?? u(() => !1), o = r.shift ?? u(() => !1), s = new
|
|
2078
|
+
function Hn(e, t, n) {
|
|
2079
|
+
let r = a(), i = r.ctrl ?? u(() => !1), o = r.shift ?? u(() => !1), s = new S(), c = s.pipe(C(n ?? ((e) => Promise.resolve(e))), C((t) => e(t))).subscribe();
|
|
2080
2080
|
return t.add(c), c.add(l(i, () => s.next({ hotkeys: { ctrl: !0 } }))), c.add(l(o, () => s.next({ hotkeys: { shift: !0 } }))), c;
|
|
2081
2081
|
}
|
|
2082
2082
|
// src/useCommsHost.ts
|
|
2083
|
-
function
|
|
2084
|
-
let { context: t } = e, n = new
|
|
2083
|
+
function Un(e) {
|
|
2084
|
+
let { context: t } = e, n = new ae({}), r = (e) => n.next(e(n.value)), i = v(), a = new ae(void 0), o = b(i, (e) => a.next(e), { immediate: !0 }), s = a.asObservable().pipe(le((e) => e?.contentWindow), ce((e) => !!e)), l = ie({
|
|
2085
2085
|
...e,
|
|
2086
2086
|
contextChanges: n,
|
|
2087
2087
|
windowChanges: s
|
|
2088
2088
|
});
|
|
2089
|
-
Object.entries(t).map(([e, t]) =>
|
|
2089
|
+
Object.entries(t).map(([e, t]) => b(t, (t) => r((n) => ({
|
|
2090
2090
|
...n,
|
|
2091
|
-
[e]:
|
|
2091
|
+
[e]: te(t)
|
|
2092
2092
|
})), { immediate: !0 })).forEach((e) => l.scope.add(e)), l.toolbar.subscribe((t) => {
|
|
2093
2093
|
let n = e.toolbar;
|
|
2094
2094
|
n.title.value = t.title, n.subtitle.value = t.subtitle, n.searchEnabled.value = t.search?.enabled ?? !1, n.search.value = t.search?.input, n.menu.value = t.menu, n.isLoading.value = t?.isLoading ?? !1;
|
|
@@ -2098,16 +2098,16 @@ function Hn(e) {
|
|
|
2098
2098
|
debounce: 100
|
|
2099
2099
|
});
|
|
2100
2100
|
l.scope.add(o), l.scope.add(d);
|
|
2101
|
-
let f =
|
|
2101
|
+
let f = v(l.appState.get()), p = u({
|
|
2102
2102
|
get: () => f.value,
|
|
2103
2103
|
set: (e) => l.appState.set(e)
|
|
2104
2104
|
});
|
|
2105
2105
|
l.appState.changes.subscribe((e) => f.value = e);
|
|
2106
|
-
let m =
|
|
2106
|
+
let m = v(!1);
|
|
2107
2107
|
l.isConnectionInitialized.subscribe((e) => m.value = e);
|
|
2108
|
-
let h =
|
|
2108
|
+
let h = v(null);
|
|
2109
2109
|
l.manifest?.subscribe((e) => h.value = e);
|
|
2110
|
-
let { unsubscribe: g, signal:
|
|
2110
|
+
let { unsubscribe: g, signal: _, closed: y } = l;
|
|
2111
2111
|
return {
|
|
2112
2112
|
...e,
|
|
2113
2113
|
client: i,
|
|
@@ -2115,21 +2115,21 @@ function Hn(e) {
|
|
|
2115
2115
|
isConnectionInitialized: m,
|
|
2116
2116
|
manifest: h,
|
|
2117
2117
|
unsubscribe: g,
|
|
2118
|
-
signal:
|
|
2119
|
-
closed:
|
|
2118
|
+
signal: _,
|
|
2119
|
+
closed: y
|
|
2120
2120
|
};
|
|
2121
2121
|
}
|
|
2122
2122
|
// src/useDeviceClass.ts
|
|
2123
|
-
var
|
|
2123
|
+
var Wn = {
|
|
2124
2124
|
handheld: 768,
|
|
2125
2125
|
phone: 1105,
|
|
2126
2126
|
tablet: 1280
|
|
2127
|
-
},
|
|
2127
|
+
}, Gn = e(() => {
|
|
2128
2128
|
let { width: e, height: t } = s(), n = o("(pointer: coarse)"), r = u(() => {
|
|
2129
2129
|
let t = e.value;
|
|
2130
|
-
return t <
|
|
2130
|
+
return t < Wn.handheld || t < Wn.phone && n.value ? "phone" : t < Wn.tablet ? "tablet" : "desktop";
|
|
2131
2131
|
});
|
|
2132
|
-
return typeof document < "u" &&
|
|
2132
|
+
return typeof document < "u" && ee(() => {
|
|
2133
2133
|
document.documentElement.dataset.device = r.value, document.documentElement.dataset.pointer = n.value ? "coarse" : "fine";
|
|
2134
2134
|
}), {
|
|
2135
2135
|
device: r,
|
|
@@ -2143,12 +2143,12 @@ var Un = {
|
|
|
2143
2143
|
};
|
|
2144
2144
|
});
|
|
2145
2145
|
// src/useFeature.ts
|
|
2146
|
-
function
|
|
2146
|
+
function Kn(e, t) {
|
|
2147
2147
|
return u(() => e.value?.features?.[t] === !0);
|
|
2148
2148
|
}
|
|
2149
2149
|
// src/useHostDevice.ts
|
|
2150
|
-
function
|
|
2151
|
-
let t =
|
|
2150
|
+
function qn(e) {
|
|
2151
|
+
let t = Gn(), n = u(() => e.value?.device?.class ?? t.device.value);
|
|
2152
2152
|
return {
|
|
2153
2153
|
device: n,
|
|
2154
2154
|
isPhone: u(() => n.value === "phone"),
|
|
@@ -2157,8 +2157,33 @@ function Kn(e) {
|
|
|
2157
2157
|
isTouch: u(() => e.value?.device?.touch ?? t.isCoarsePointer.value)
|
|
2158
2158
|
};
|
|
2159
2159
|
}
|
|
2160
|
+
// src/useOsTour.ts
|
|
2161
|
+
function Jn(e) {
|
|
2162
|
+
let t = /* @__PURE__ */ new Set();
|
|
2163
|
+
d() && h(() => {
|
|
2164
|
+
for (let e of t) e();
|
|
2165
|
+
});
|
|
2166
|
+
function n(n, r) {
|
|
2167
|
+
return new Promise((i) => {
|
|
2168
|
+
let a = () => {}, o = () => s("dismissed");
|
|
2169
|
+
function s(e) {
|
|
2170
|
+
a(), t.delete(o), i(e);
|
|
2171
|
+
}
|
|
2172
|
+
a = e.signal.receive((e) => {
|
|
2173
|
+
e.tourEnded && r(e.tourEnded) && s(e.tourEnded.outcome);
|
|
2174
|
+
}), t.add(o), e.signal({ startTour: n });
|
|
2175
|
+
});
|
|
2176
|
+
}
|
|
2177
|
+
return {
|
|
2178
|
+
pointAt: (e, t) => n({
|
|
2179
|
+
zone: e,
|
|
2180
|
+
...t
|
|
2181
|
+
}, (t) => t.zone === e),
|
|
2182
|
+
startTour: (e) => n({ tour: e }, (t) => t.tour === e)
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2160
2185
|
// src/usePermissions.ts
|
|
2161
|
-
function
|
|
2186
|
+
function Yn(e) {
|
|
2162
2187
|
let t = u(() => e.value?.user), n = u(() => e.value?.license), r = u(() => e.value?.project), i = u(() => !1), a = u(() => !!n.value?.user_is_admin), o = u(() => !!r.value?.user_is_admin || a.value);
|
|
2163
2188
|
function s(e) {
|
|
2164
2189
|
return !t.value || !n.value ? !1 : a.value ? !0 : (n.value.user_roles ?? []).some((t) => t.name === e);
|
|
@@ -2183,8 +2208,8 @@ function qn(e) {
|
|
|
2183
2208
|
};
|
|
2184
2209
|
}
|
|
2185
2210
|
// src/useTemplateVersioning.ts
|
|
2186
|
-
function
|
|
2187
|
-
let t =
|
|
2211
|
+
function Xn(e) {
|
|
2212
|
+
let t = y(null), n = y(null), r = y(null), i = y(null), a = y([]), o = y(null), s = v(!1), c = v(!1), l = v(!1), d = v(!1), f = v(!1), p = v(!1), m = u(() => t.value?.has_update ?? !1), h = u(() => t.value?.current_version ?? null), g = u(() => t.value?.latest_version ?? null), _ = u(() => n.value ? n.value.added.length + n.value.removed.length + n.value.modified.length + n.value.relations_added.length + n.value.relations_removed.length : 0);
|
|
2188
2213
|
async function b(n) {
|
|
2189
2214
|
s.value = !0;
|
|
2190
2215
|
try {
|
|
@@ -2270,27 +2295,27 @@ function Jn(e) {
|
|
|
2270
2295
|
return o.value = null, null;
|
|
2271
2296
|
}
|
|
2272
2297
|
}
|
|
2273
|
-
let S =
|
|
2298
|
+
let S = y([]), oe = v(!1), C = v(!1), w = y([]);
|
|
2274
2299
|
async function se(t) {
|
|
2275
|
-
|
|
2300
|
+
oe.value = !0;
|
|
2276
2301
|
try {
|
|
2277
2302
|
let n = await e.tasks.getInstances(t);
|
|
2278
2303
|
return S.value = n?.data ?? [], S.value;
|
|
2279
2304
|
} catch {
|
|
2280
2305
|
return S.value = [], [];
|
|
2281
2306
|
} finally {
|
|
2282
|
-
|
|
2307
|
+
oe.value = !1;
|
|
2283
2308
|
}
|
|
2284
2309
|
}
|
|
2285
2310
|
async function ce(t, n) {
|
|
2286
|
-
|
|
2311
|
+
C.value = !0, w.value = [];
|
|
2287
2312
|
try {
|
|
2288
2313
|
let r = await e.tasks.pushSync(t, n);
|
|
2289
2314
|
return w.value = r?.data ?? [], w.value;
|
|
2290
2315
|
} catch {
|
|
2291
2316
|
return w.value = [], [];
|
|
2292
2317
|
} finally {
|
|
2293
|
-
|
|
2318
|
+
C.value = !1;
|
|
2294
2319
|
}
|
|
2295
2320
|
}
|
|
2296
2321
|
function le() {
|
|
@@ -2311,12 +2336,12 @@ function Jn(e) {
|
|
|
2311
2336
|
isSyncing: d,
|
|
2312
2337
|
isPublishing: f,
|
|
2313
2338
|
isFetchingVersions: p,
|
|
2314
|
-
isFetchingInstances:
|
|
2315
|
-
isPushSyncing:
|
|
2339
|
+
isFetchingInstances: oe,
|
|
2340
|
+
isPushSyncing: C,
|
|
2316
2341
|
hasUpdate: m,
|
|
2317
2342
|
currentVersion: h,
|
|
2318
2343
|
availableVersion: g,
|
|
2319
|
-
totalChanges:
|
|
2344
|
+
totalChanges: _,
|
|
2320
2345
|
checkForUpdates: b,
|
|
2321
2346
|
fetchDiff: ee,
|
|
2322
2347
|
fetchUserCustomizations: te,
|
|
@@ -2331,9 +2356,9 @@ function Jn(e) {
|
|
|
2331
2356
|
};
|
|
2332
2357
|
}
|
|
2333
2358
|
// src/useTriggerDispatch.ts
|
|
2334
|
-
function
|
|
2359
|
+
function Zn(e, t = {}) {
|
|
2335
2360
|
let n = t.authorizationTimeoutMs ?? 3e5, r = /* @__PURE__ */ new Set();
|
|
2336
|
-
|
|
2361
|
+
h(() => {
|
|
2337
2362
|
for (let e of r) e();
|
|
2338
2363
|
});
|
|
2339
2364
|
function i(t) {
|
|
@@ -2352,23 +2377,23 @@ function Yn(e, t = {}) {
|
|
|
2352
2377
|
}
|
|
2353
2378
|
async function a(e) {
|
|
2354
2379
|
let t = await e();
|
|
2355
|
-
return !
|
|
2380
|
+
return !ne(t) || !await i(t) ? t : e();
|
|
2356
2381
|
}
|
|
2357
2382
|
return { dispatch: a };
|
|
2358
2383
|
}
|
|
2359
2384
|
// src/utils.ts
|
|
2360
|
-
function
|
|
2361
|
-
let [t, n] =
|
|
2385
|
+
function Qn(e = "comms") {
|
|
2386
|
+
let [t, n] = $n(e, () => Bn(), (e) => e.unsubscribe());
|
|
2362
2387
|
return {
|
|
2363
2388
|
provideComms: t,
|
|
2364
2389
|
injectComms: n
|
|
2365
2390
|
};
|
|
2366
2391
|
}
|
|
2367
|
-
function
|
|
2392
|
+
function $n(e, t, n) {
|
|
2368
2393
|
let r, i = () => (!r && (r = t()), r);
|
|
2369
|
-
return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () =>
|
|
2394
|
+
return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () => f(e)()];
|
|
2370
2395
|
}
|
|
2371
|
-
function
|
|
2396
|
+
function er(e, n, i) {
|
|
2372
2397
|
let a = r(e, n, {
|
|
2373
2398
|
immediate: !1,
|
|
2374
2399
|
...i
|
|
@@ -2378,8 +2403,8 @@ function Qn(e, n, i) {
|
|
|
2378
2403
|
executeDelayed: a.execute
|
|
2379
2404
|
});
|
|
2380
2405
|
}
|
|
2381
|
-
function
|
|
2382
|
-
let t, n =
|
|
2383
|
-
return
|
|
2406
|
+
function tr(e) {
|
|
2407
|
+
let t, n = v(void 0);
|
|
2408
|
+
return m(() => t = e.signal.receive((e) => n.value = e)), g(() => t?.()), [_(n), () => t?.()];
|
|
2384
2409
|
}
|
|
2385
|
-
export {
|
|
2410
|
+
export { Wn as DEVICE_BREAKPOINTS, Se as SCHEDULE_DAYS, On as TASK_PRIORITIES, ue as apiErrorMessage, Ee as browserZone, ke as buildScheduleRule, De as defaultScheduleSpec, Ne as describeRefresh, fe as deviceTypeIcon, ve as formatDate, ye as formatDateRange, xe as formatRefreshLabel, Dn as nextOccurrences, Me as parseScheduleRule, Mn as taskPriorityColor, jn as taskPriorityIcon, Nn as useAntColorMode, Pn as useAntI18n, er as useApi, In as useAppQueryParam, zn as useAppTourMode, Bn as useCommsClient, Un as useCommsHost, Qn as useCommsInjection, Gn as useDeviceClass, Kn as useFeature, qn as useHostDevice, Jn as useOsTour, Yn as usePermissions, tr as useSignal, $n as useSingleton, Xn as useTemplateVersioning, Zn as useTriggerDispatch, Oe as weekdayOf };
|