@das-fed/upf-utils 6.4.0-dev.289 → 6.4.0-dev.291
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/api-services/modules/app-manage/es5.js +1120 -1110
- package/api-services/modules/app-manage/index.js +932 -918
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +860 -857
- package/api-services/modules/authentication/index.js +674 -670
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +854 -856
- package/api-services/modules/bems/index.js +670 -674
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1134 -1122
- package/api-services/modules/contract/index.js +948 -930
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +850 -848
- package/api-services/modules/duty-manage/index.js +670 -666
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1122 -1134
- package/api-services/modules/enterpriseright/index.js +930 -948
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1367 -1355
- package/api-services/modules/file/es5.js +1221 -1224
- package/api-services/modules/file/index.js +993 -997
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1134 -1122
- package/api-services/modules/gateway-edge/index.js +948 -930
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1086 -1068
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1241 -1229
- package/api-services/modules/iot/index.js +1039 -1021
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1151 -1139
- package/api-services/modules/justauth/index.js +962 -944
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +852 -850
- package/api-services/modules/knowledge/index.js +671 -667
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1133 -1124
- package/api-services/modules/link/index.js +947 -933
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1122 -1134
- package/api-services/modules/permission/index.js +930 -948
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1133 -1124
- package/api-services/modules/portal/index.js +947 -933
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +857 -860
- package/api-services/modules/space-manage/index.js +670 -674
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1114 -1126
- package/api-services/modules/supplier/index.js +920 -938
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1134 -1122
- package/api-services/modules/supplychain-manage/index.js +948 -930
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/browser-importmap.json +18 -0
- package/browser.d.ts +5 -0
- package/browser.js +120 -0
- package/browser.js.gz +0 -0
- package/common-info/getPermissionMethod/es5.js +1376 -1388
- package/common-info/getPermissionMethod/index.js +1137 -1155
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +1 -1
- package/common-tools/timezone-format/es5.js +389 -373
- package/common-tools/timezone-format/index.d.ts +1 -1
- package/common-tools/timezone-format/index.js +284 -279
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +849 -851
- package/create-api-service/index.js +667 -671
- package/create-api-service/index.js.gz +0 -0
- package/package.json +7 -7
- package/release-meta.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import f from "dayjs";
|
|
2
|
-
import { ref as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { ref as Le } from "vue";
|
|
3
|
+
import Ce from "dayjs/plugin/utc";
|
|
4
|
+
import ke from "dayjs/plugin/timezone";
|
|
5
5
|
import "@das-fed/upf-utils/config";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
6
|
+
const se = "/api/admin/basic-application/sys-info/v1/license/time-zone-packed-data";
|
|
7
|
+
function be() {
|
|
8
8
|
if (typeof localStorage > "u")
|
|
9
9
|
return null;
|
|
10
10
|
try {
|
|
@@ -13,18 +13,18 @@ function Le() {
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const e =
|
|
16
|
+
function Ne() {
|
|
17
|
+
const e = be();
|
|
18
18
|
if (!(e == null || e === ""))
|
|
19
19
|
return e.trim().startsWith("Bearer ") ? e.trim() : `Bearer ${e.trim()}`;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization :
|
|
21
|
+
function ae(e = {}) {
|
|
22
|
+
const t = e.authorization !== void 0 ? e.authorization === "" || e.authorization == null ? void 0 : e.authorization : Ne(), n = { ...e.headers || {} };
|
|
23
23
|
if (t != null && t !== "" && (n.Authorization = t), Object.keys(n).length !== 0)
|
|
24
24
|
return { headers: n };
|
|
25
25
|
}
|
|
26
|
-
let
|
|
27
|
-
const
|
|
26
|
+
let C = null, _ = null;
|
|
27
|
+
const K = [
|
|
28
28
|
"utc",
|
|
29
29
|
"uct",
|
|
30
30
|
"zulu",
|
|
@@ -43,8 +43,8 @@ const J = [
|
|
|
43
43
|
"etc/gmt+0",
|
|
44
44
|
"etc/gmt-0",
|
|
45
45
|
"etc/greenwich"
|
|
46
|
-
],
|
|
47
|
-
function
|
|
46
|
+
], Pe = { u: [1 / 0], o: [0] };
|
|
47
|
+
function ie(e) {
|
|
48
48
|
if (!e || typeof e != "object")
|
|
49
49
|
throw new Error("Invalid IANA response: expected an object");
|
|
50
50
|
const t = e;
|
|
@@ -57,7 +57,7 @@ function se(e) {
|
|
|
57
57
|
links: Array.isArray(n) ? n : []
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function Oe(e, t) {
|
|
61
61
|
if (typeof fetch != "function")
|
|
62
62
|
throw new Error("fetch is not available. Pass preloadFromApi options.fetchJson.");
|
|
63
63
|
const n = await fetch(e, t);
|
|
@@ -65,68 +65,68 @@ async function ke(e, t) {
|
|
|
65
65
|
throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
|
|
66
66
|
return n.json();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function ce(e) {
|
|
69
|
+
return _ = ie(e), C = $e(_), _;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
71
|
+
function Ye() {
|
|
72
|
+
return _;
|
|
73
73
|
}
|
|
74
|
-
async function
|
|
75
|
-
const t = e.url ??
|
|
74
|
+
async function ve(e = {}) {
|
|
75
|
+
const t = e.url ?? se, n = ae({
|
|
76
76
|
authorization: e.authorization,
|
|
77
77
|
headers: e.headers
|
|
78
|
-
}), o = await (e.fetchJson ??
|
|
79
|
-
return
|
|
78
|
+
}), o = await (e.fetchJson ?? Oe)(t, n), s = e.parseResponse ? e.parseResponse(o) : ie(o);
|
|
79
|
+
return ce(s);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
81
|
+
function Ue() {
|
|
82
|
+
C = null, _ = null;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function X(e) {
|
|
85
85
|
return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ve(e) {
|
|
88
88
|
let t = 1, n = 0, r = 0, o = 1;
|
|
89
89
|
const s = e.split("."), i = s[0], c = s[1] || "";
|
|
90
90
|
e.charCodeAt(0) === 45 && (t = -1);
|
|
91
91
|
for (let a = 0; a < i.length; a++) {
|
|
92
92
|
const u = i.charCodeAt(a);
|
|
93
|
-
u !== 45 && (n = 60 * n +
|
|
93
|
+
u !== 45 && (n = 60 * n + X(u));
|
|
94
94
|
}
|
|
95
95
|
for (let a = 0; a < c.length; a++)
|
|
96
|
-
o = o / 60, r +=
|
|
96
|
+
o = o / 60, r += X(c.charCodeAt(a)) * o;
|
|
97
97
|
return (n + r) * t;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function V(e) {
|
|
100
100
|
const t = [];
|
|
101
101
|
for (const n of e)
|
|
102
|
-
t.push(
|
|
102
|
+
t.push(Ve(n));
|
|
103
103
|
return t;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function q(e) {
|
|
106
106
|
const t = e.trim();
|
|
107
107
|
return t ? t.split(" ") : [];
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Fe(e) {
|
|
110
110
|
let t = 0;
|
|
111
111
|
const n = [];
|
|
112
112
|
for (const r of e)
|
|
113
113
|
t += r, n.push(Math.round(t * 6e4));
|
|
114
114
|
return n.push(1 / 0), n;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function xe(e, t) {
|
|
117
117
|
const n = [];
|
|
118
118
|
for (const r of t)
|
|
119
119
|
n.push(e[r]);
|
|
120
120
|
return n;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function k(e) {
|
|
123
123
|
return typeof e == "string" ? e.trim().toLowerCase() : "";
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function je(e) {
|
|
126
126
|
const t = e.split("|");
|
|
127
127
|
if (t.length < 5)
|
|
128
128
|
throw new Error("Invalid packed zone format");
|
|
129
|
-
const n =
|
|
129
|
+
const n = k(t[0]), r = V(q(t[2])), o = V(t[3].split("")), s = Fe(V(q(t[4]))), i = xe(r, o);
|
|
130
130
|
return {
|
|
131
131
|
name: n,
|
|
132
132
|
rule: {
|
|
@@ -135,42 +135,42 @@ function Fe(e) {
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const r =
|
|
138
|
+
function Re(e, t, n) {
|
|
139
|
+
const r = k(t), o = k(n);
|
|
140
140
|
if (!r || !o) return;
|
|
141
141
|
const s = e[r], i = e[o];
|
|
142
142
|
s && !i ? e[o] = s : i && !s && (e[r] = i);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const t =
|
|
146
|
-
|
|
144
|
+
function He(e) {
|
|
145
|
+
const t = K.map((n) => e[n]).find(Boolean) || Pe;
|
|
146
|
+
K.forEach((n) => {
|
|
147
147
|
e[n] || (e[n] = t);
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function $e(e) {
|
|
151
151
|
if (!e || !Array.isArray(e.zones))
|
|
152
152
|
throw new TypeError("packed iana data must contain zones array");
|
|
153
153
|
const t = {};
|
|
154
154
|
for (const r of e.zones) {
|
|
155
|
-
const o =
|
|
155
|
+
const o = je(r);
|
|
156
156
|
t[o.name] = o.rule;
|
|
157
157
|
}
|
|
158
158
|
const n = e.links || [];
|
|
159
159
|
for (const r of n) {
|
|
160
160
|
const o = r.split("|");
|
|
161
|
-
o.length < 2 ||
|
|
161
|
+
o.length < 2 || Re(t, o[0], o[1]);
|
|
162
162
|
}
|
|
163
|
-
return
|
|
163
|
+
return He(t), t;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!
|
|
165
|
+
function Ge() {
|
|
166
|
+
if (!C)
|
|
167
167
|
throw new Error(
|
|
168
168
|
"IANA data not loaded. Await dayjsTimezoneIanaPlugin.preloadFromApi({ url: ... }) before dayjs.extend(dayjsTimezoneIanaPlugin)."
|
|
169
169
|
);
|
|
170
|
-
return
|
|
170
|
+
return C;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
const r =
|
|
172
|
+
function Be(e, t, n) {
|
|
173
|
+
const r = k(t), o = n[r];
|
|
174
174
|
if (o === void 0)
|
|
175
175
|
throw Error("Unknown Time Zone " + t);
|
|
176
176
|
const s = o.o, i = o.u, c = i.length - 1;
|
|
@@ -182,26 +182,26 @@ function He(e, t, n) {
|
|
|
182
182
|
}
|
|
183
183
|
return s[c];
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const Je = (e, t, n) => {
|
|
186
186
|
var a, u;
|
|
187
187
|
let r = "";
|
|
188
188
|
const o = n.tz, s = (a = o == null ? void 0 : o.guess) == null ? void 0 : a.bind(o), i = (u = o == null ? void 0 : o.setDefault) == null ? void 0 : u.bind(o), c = (m, y, I) => {
|
|
189
|
-
const
|
|
190
|
-
return (typeof n.utc == "function" ? n.utc(m, g) : n(m, g).utc()).tz(
|
|
189
|
+
const L = I || y || r, g = I ? y : void 0;
|
|
190
|
+
return (typeof n.utc == "function" ? n.utc(m, g) : n(m, g).utc()).tz(L);
|
|
191
191
|
};
|
|
192
192
|
o && Object.assign(c, o), c.setDefault = (m) => {
|
|
193
193
|
r = m, i == null || i(m);
|
|
194
194
|
}, c.guess = () => s ? s() : typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat().resolvedOptions().timeZone || r || "UTC" : r || "UTC", n.tz = c, t.prototype.tz = function(m = r, y) {
|
|
195
195
|
var A;
|
|
196
|
-
const I = m || ((A = c.guess) == null ? void 0 : A.call(c)) || "UTC",
|
|
196
|
+
const I = m || ((A = c.guess) == null ? void 0 : A.call(c)) || "UTC", L = this.utc().valueOf(), g = Be(L, I, Ge());
|
|
197
197
|
return this.utcOffset(-g, y);
|
|
198
198
|
};
|
|
199
|
-
}, T =
|
|
200
|
-
T.preloadFromApi =
|
|
201
|
-
T.preloadFromData =
|
|
202
|
-
T.getCachedPackedData =
|
|
203
|
-
T.clearIanaCache =
|
|
204
|
-
function
|
|
199
|
+
}, T = Je;
|
|
200
|
+
T.preloadFromApi = ve;
|
|
201
|
+
T.preloadFromData = ce;
|
|
202
|
+
T.getCachedPackedData = Ye;
|
|
203
|
+
T.clearIanaCache = Ue;
|
|
204
|
+
function We(e) {
|
|
205
205
|
if (!e || typeof e != "object")
|
|
206
206
|
throw new Error("Invalid IANA response: expected an object");
|
|
207
207
|
const t = e;
|
|
@@ -214,7 +214,7 @@ function $e(e) {
|
|
|
214
214
|
links: Array.isArray(n) ? n : []
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function fe(e, t) {
|
|
218
218
|
const n = e == null ? void 0 : e.tz;
|
|
219
219
|
if (!n || typeof n.load != "function")
|
|
220
220
|
throw new Error("moment.tz.load is missing. Import moment-timezone before calling loadIanaData.");
|
|
@@ -222,7 +222,7 @@ function ie(e, t) {
|
|
|
222
222
|
throw new Error("Invalid packed IANA data: zones must be an array");
|
|
223
223
|
e.tz.load(t);
|
|
224
224
|
}
|
|
225
|
-
async function
|
|
225
|
+
async function Ke(e, t) {
|
|
226
226
|
if (typeof fetch != "function")
|
|
227
227
|
throw new Error("fetch is not available. Pass loadIanaFromApi options.fetchJson in Node or polyfill fetch.");
|
|
228
228
|
const n = await fetch(e, t);
|
|
@@ -230,21 +230,21 @@ async function Be(e, t) {
|
|
|
230
230
|
throw new Error(`IANA request failed: ${n.status} ${n.statusText}`);
|
|
231
231
|
return n.json();
|
|
232
232
|
}
|
|
233
|
-
async function
|
|
234
|
-
let r =
|
|
233
|
+
async function Q(e, t, n) {
|
|
234
|
+
let r = se, o = {};
|
|
235
235
|
typeof t == "string" ? (r = t, o = n ?? {}) : t != null && (o = t);
|
|
236
|
-
const s =
|
|
236
|
+
const s = ae({
|
|
237
237
|
authorization: o.authorization,
|
|
238
238
|
headers: o.headers
|
|
239
|
-
}), c = await (o.fetchJson ??
|
|
240
|
-
return
|
|
239
|
+
}), c = await (o.fetchJson ?? Ke)(r, s), a = o.parseResponse ? o.parseResponse(c) : We(c);
|
|
240
|
+
return fe(e, a), a;
|
|
241
241
|
}
|
|
242
|
-
f.extend(
|
|
243
|
-
f.extend(
|
|
244
|
-
const E = "zh-CN",
|
|
242
|
+
f.extend(Ce);
|
|
243
|
+
f.extend(ke);
|
|
244
|
+
const E = "zh-CN", Xe = "YYYY.MM.DD HH:mm:ss", w = "YYYY-MM-DD HH:mm:ss", qe = "YYYY-MM-DD HH:mm:ss.SSS", Qe = "YYYY-MM-DDTHH:mm:ssZ", ue = "YYYY-MM-DD HH:mm", O = "UTC", R = "timeZone", le = "timezonechange", et = "__UPF_TIMEZONE_CHANGE__", tt = "ianatimezonedatachange", ee = {
|
|
245
245
|
zh: "夏令时",
|
|
246
246
|
default: "DST"
|
|
247
|
-
},
|
|
247
|
+
}, nt = [
|
|
248
248
|
"UTC",
|
|
249
249
|
"UCT",
|
|
250
250
|
"Zulu",
|
|
@@ -263,47 +263,47 @@ const E = "zh-CN", Je = "YYYY.MM.DD HH:mm:ss", w = "YYYY-MM-DD HH:mm:ss", We = "
|
|
|
263
263
|
"Etc/GMT+0",
|
|
264
264
|
"Etc/GMT-0",
|
|
265
265
|
"Etc/Greenwich"
|
|
266
|
-
],
|
|
267
|
-
var
|
|
268
|
-
const
|
|
266
|
+
], rt = f, p = /* @__PURE__ */ new Set();
|
|
267
|
+
var re, oe;
|
|
268
|
+
const ot = (oe = (re = f.tz) == null ? void 0 : re.guess) == null ? void 0 : oe.bind(f.tz);
|
|
269
269
|
let b = !1;
|
|
270
270
|
const l = (e) => (e || "").trim(), F = (e) => {
|
|
271
271
|
const t = l(e);
|
|
272
272
|
t && p.add(t);
|
|
273
|
-
},
|
|
273
|
+
}, st = () => nt.forEach(F), D = () => typeof window > "u" ? void 0 : window, at = (e) => ({
|
|
274
274
|
version: typeof e.version == "string" ? e.version : void 0,
|
|
275
275
|
zones: Array.isArray(e.zones) ? e.zones.filter((t) => typeof t == "string") : [],
|
|
276
276
|
links: Array.isArray(e.links) ? e.links.filter((t) => typeof t == "string") : []
|
|
277
|
-
}),
|
|
278
|
-
...
|
|
277
|
+
}), N = (e, t, n = Date.now()) => ({
|
|
278
|
+
...at(e),
|
|
279
279
|
source: t,
|
|
280
280
|
timestamp: n
|
|
281
|
-
}),
|
|
282
|
-
const n =
|
|
281
|
+
}), Y = (e, t = "iana") => {
|
|
282
|
+
const n = N(e, t);
|
|
283
283
|
try {
|
|
284
284
|
const r = D();
|
|
285
|
-
r && (r.__UPF_IANA_TIMEZONE_DATA__ = n, r.dispatchEvent(new CustomEvent(
|
|
285
|
+
r && (r.__UPF_IANA_TIMEZONE_DATA__ = n, r.dispatchEvent(new CustomEvent(tt, { detail: n })));
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
288
|
return n;
|
|
289
|
-
},
|
|
289
|
+
}, it = () => {
|
|
290
290
|
var r;
|
|
291
291
|
const e = D(), t = e == null ? void 0 : e.__UPF_IANA_TIMEZONE_DATA__;
|
|
292
292
|
if (t && Array.isArray(t.zones) && t.zones.length)
|
|
293
|
-
return
|
|
293
|
+
return N(
|
|
294
294
|
t,
|
|
295
295
|
t.source === "fallback" ? "fallback" : "iana",
|
|
296
296
|
Number(t.timestamp || Date.now())
|
|
297
297
|
);
|
|
298
298
|
const n = (r = T.getCachedPackedData) == null ? void 0 : r.call(T);
|
|
299
|
-
return n ?
|
|
300
|
-
},
|
|
299
|
+
return n ? N(n, "iana") : null;
|
|
300
|
+
}, Gt = it, Bt = () => {
|
|
301
301
|
var t, n;
|
|
302
302
|
const e = D();
|
|
303
303
|
if (!(e != null && e.name)) return null;
|
|
304
304
|
try {
|
|
305
305
|
const r = (n = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData) == null ? void 0 : n.ianaTimeZoneData;
|
|
306
|
-
return !r || !Array.isArray(r.zones) || !r.zones.length ? null :
|
|
306
|
+
return !r || !Array.isArray(r.zones) || !r.zones.length ? null : N(
|
|
307
307
|
r,
|
|
308
308
|
r.source === "fallback" ? "fallback" : "iana",
|
|
309
309
|
Number(r.timestamp || Date.now())
|
|
@@ -311,18 +311,18 @@ const l = (e) => (e || "").trim(), F = (e) => {
|
|
|
311
311
|
} catch {
|
|
312
312
|
return null;
|
|
313
313
|
}
|
|
314
|
-
},
|
|
314
|
+
}, H = () => {
|
|
315
315
|
try {
|
|
316
|
-
return typeof sessionStorage > "u" ? "" : l(sessionStorage.getItem(
|
|
316
|
+
return typeof sessionStorage > "u" ? "" : l(sessionStorage.getItem(R));
|
|
317
317
|
} catch {
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
},
|
|
320
|
+
}, ct = (e) => {
|
|
321
321
|
try {
|
|
322
|
-
typeof sessionStorage < "u" && sessionStorage.setItem(
|
|
322
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(R, e);
|
|
323
323
|
} catch {
|
|
324
324
|
}
|
|
325
|
-
},
|
|
325
|
+
}, $ = () => {
|
|
326
326
|
var t;
|
|
327
327
|
const e = D();
|
|
328
328
|
if (!(e != null && e.name)) return "";
|
|
@@ -332,20 +332,20 @@ const l = (e) => (e || "").trim(), F = (e) => {
|
|
|
332
332
|
} catch {
|
|
333
333
|
return "";
|
|
334
334
|
}
|
|
335
|
-
},
|
|
335
|
+
}, me = (e, t) => ({
|
|
336
336
|
timeZone: l(e),
|
|
337
337
|
source: t,
|
|
338
338
|
timestamp: Date.now()
|
|
339
|
-
}),
|
|
340
|
-
let
|
|
341
|
-
const
|
|
339
|
+
}), P = Le(H() || $()), x = /* @__PURE__ */ new Set();
|
|
340
|
+
let te = !1;
|
|
341
|
+
const de = () => {
|
|
342
342
|
if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
|
|
343
343
|
try {
|
|
344
344
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
345
345
|
} catch {
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
|
-
},
|
|
348
|
+
}, ft = (e) => {
|
|
349
349
|
if (!e) return !1;
|
|
350
350
|
if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
|
|
351
351
|
try {
|
|
@@ -355,69 +355,69 @@ const le = () => {
|
|
|
355
355
|
}
|
|
356
356
|
}, z = (e) => {
|
|
357
357
|
const t = l(e);
|
|
358
|
-
return t ? p.size ? p.has(t) :
|
|
359
|
-
},
|
|
358
|
+
return t ? p.size ? p.has(t) : ft(t) : !1;
|
|
359
|
+
}, v = (e) => (p.clear(), e.zones.forEach((t) => {
|
|
360
360
|
const n = t.split("|")[0];
|
|
361
361
|
F(n);
|
|
362
362
|
}), (e.links || []).forEach((t) => {
|
|
363
363
|
t.split("|").forEach((n) => {
|
|
364
364
|
F(n);
|
|
365
365
|
});
|
|
366
|
-
}),
|
|
367
|
-
const n = T.preloadFromData(e), r =
|
|
368
|
-
return b || (f.extend(T), b = !0),
|
|
369
|
-
},
|
|
370
|
-
const t = await T.preloadFromApi(e), n =
|
|
371
|
-
return b || (f.extend(T), b = !0),
|
|
372
|
-
},
|
|
373
|
-
const { url: n, ...r } = t, o = n ? await
|
|
374
|
-
return
|
|
375
|
-
},
|
|
366
|
+
}), st(), Array.from(p)), Jt = () => Array.from(p), Wt = async (e, t = {}) => {
|
|
367
|
+
const n = T.preloadFromData(e), r = v(n);
|
|
368
|
+
return b || (f.extend(T), b = !0), G(t.defaultTimeZone), t.syncRuntimeSnapshot !== !1 && Y(n, t.runtimeSource || "iana"), { data: n, knownTimeZones: r };
|
|
369
|
+
}, Kt = async (e = {}) => {
|
|
370
|
+
const t = await T.preloadFromApi(e), n = v(t);
|
|
371
|
+
return b || (f.extend(T), b = !0), G(e.defaultTimeZone), e.syncRuntimeSnapshot !== !1 && Y(t, e.runtimeSource || "iana"), { data: t, knownTimeZones: n };
|
|
372
|
+
}, Xt = (e, t) => (fe(e, t), v(t), Y(t, "iana"), t), qt = async (e, t = {}) => {
|
|
373
|
+
const { url: n, ...r } = t, o = n ? await Q(e, n, r) : await Q(e, r);
|
|
374
|
+
return v(o), Y(o, "iana"), o;
|
|
375
|
+
}, Te = () => {
|
|
376
376
|
var n;
|
|
377
|
-
const e = (n = f.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e :
|
|
377
|
+
const e = (n = f.tz) == null ? void 0 : n.guess, t = typeof e == "function" ? e : ot;
|
|
378
378
|
try {
|
|
379
379
|
return t == null ? void 0 : t();
|
|
380
380
|
} catch {
|
|
381
381
|
return;
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, G = (e) => {
|
|
384
384
|
var r, o;
|
|
385
385
|
const t = l(e), n = f.tz;
|
|
386
386
|
return t ? z(t) ? ((o = n == null ? void 0 : n.setDefault) == null || o.call(n, t), !0) : !1 : ((r = n == null ? void 0 : n.setDefault) == null || r.call(n, O), !0);
|
|
387
|
-
},
|
|
388
|
-
|
|
387
|
+
}, ut = (e) => {
|
|
388
|
+
x.forEach((t) => {
|
|
389
389
|
try {
|
|
390
390
|
t(e.timeZone, e);
|
|
391
391
|
} catch {
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
|
-
},
|
|
394
|
+
}, lt = (e) => {
|
|
395
395
|
var t;
|
|
396
396
|
try {
|
|
397
|
-
(t = D()) == null || t.dispatchEvent(new CustomEvent(
|
|
397
|
+
(t = D()) == null || t.dispatchEvent(new CustomEvent(le, { detail: e }));
|
|
398
398
|
} catch {
|
|
399
399
|
}
|
|
400
|
-
},
|
|
401
|
-
const n = l(e), r =
|
|
402
|
-
o && (
|
|
400
|
+
}, B = (e, t = {}) => {
|
|
401
|
+
const n = l(e), r = me(n, t.source), o = P.value !== n;
|
|
402
|
+
o && (P.value = n);
|
|
403
403
|
try {
|
|
404
404
|
const s = D();
|
|
405
405
|
s && (s.__UPF_TIMEZONE_SNAPSHOT__ = r);
|
|
406
406
|
} catch {
|
|
407
407
|
}
|
|
408
|
-
return t.persist !== !1 &&
|
|
409
|
-
},
|
|
408
|
+
return t.persist !== !1 && ct(n), t.syncDefault !== !1 && G(n), t.notify !== !1 && o && ut(r), t.dispatchEvent !== !1 && lt(r), n;
|
|
409
|
+
}, Qt = (e, t = {}) => B(l(e), {
|
|
410
410
|
persist: !0,
|
|
411
411
|
notify: !0,
|
|
412
412
|
dispatchEvent: !0,
|
|
413
413
|
syncDefault: !0,
|
|
414
414
|
...t
|
|
415
|
-
}),
|
|
416
|
-
const t =
|
|
417
|
-
return t ||
|
|
418
|
-
},
|
|
415
|
+
}), en = (e = "sync") => {
|
|
416
|
+
const t = H() || $();
|
|
417
|
+
return t || P.value ? B(t, { source: e, dispatchEvent: !1 }) : "";
|
|
418
|
+
}, tn = (e) => (x.add(e), () => x.delete(e)), mt = (e) => {
|
|
419
419
|
var n, r, o, s;
|
|
420
|
-
if (typeof e == "string") return
|
|
420
|
+
if (typeof e == "string") return me(e);
|
|
421
421
|
if (!e || typeof e != "object") return null;
|
|
422
422
|
const t = "timeZone" in e ? e.timeZone : e != null && e.detail && "timeZone" in e.detail ? e.detail.timeZone : e != null && e.params && "timeZone" in e.params ? e.params.timeZone : void 0;
|
|
423
423
|
return t == null ? null : {
|
|
@@ -425,41 +425,41 @@ const le = () => {
|
|
|
425
425
|
source: e.source || ((n = e.detail) == null ? void 0 : n.source) || ((r = e.params) == null ? void 0 : r.source),
|
|
426
426
|
timestamp: Number(e.timestamp || ((o = e.detail) == null ? void 0 : o.timestamp) || ((s = e.params) == null ? void 0 : s.timestamp) || Date.now())
|
|
427
427
|
};
|
|
428
|
-
},
|
|
429
|
-
const n =
|
|
430
|
-
n &&
|
|
428
|
+
}, J = (e, t) => {
|
|
429
|
+
const n = mt(e);
|
|
430
|
+
n && B(n.timeZone, {
|
|
431
431
|
source: n.source || t,
|
|
432
432
|
dispatchEvent: !1
|
|
433
433
|
});
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
e.key ===
|
|
438
|
-
},
|
|
434
|
+
}, dt = (e) => {
|
|
435
|
+
J(e.detail, "window-event");
|
|
436
|
+
}, Tt = (e) => {
|
|
437
|
+
e.key === R && J({ timeZone: e.newValue || "", source: "storage" }, "storage");
|
|
438
|
+
}, ht = (e) => {
|
|
439
439
|
const t = e.data;
|
|
440
|
-
!t || t.type !==
|
|
441
|
-
},
|
|
440
|
+
!t || t.type !== et || J(t.detail || t, "message");
|
|
441
|
+
}, Zt = () => {
|
|
442
442
|
const e = D();
|
|
443
|
-
return !e ||
|
|
443
|
+
return !e || te ? !1 : (te = !0, e.addEventListener(le, dt), e.addEventListener("storage", Tt), e.addEventListener("message", ht), !0);
|
|
444
444
|
};
|
|
445
|
-
|
|
446
|
-
const
|
|
447
|
-
const t = l(
|
|
445
|
+
Zt();
|
|
446
|
+
const yt = () => {
|
|
447
|
+
const t = l(P.value) || H() || $() || Te() || de();
|
|
448
448
|
return z(t) ? l(t) : O;
|
|
449
449
|
}, d = (e) => {
|
|
450
|
-
const t = l(e) ||
|
|
450
|
+
const t = l(e) || yt();
|
|
451
451
|
return z(t) ? t : O;
|
|
452
|
-
},
|
|
453
|
-
const e =
|
|
452
|
+
}, he = () => {
|
|
453
|
+
const e = Te() || de();
|
|
454
454
|
return z(e) ? l(e) : O;
|
|
455
|
-
},
|
|
455
|
+
}, Ze = (e = {}) => {
|
|
456
456
|
const t = l(e.timeZone);
|
|
457
|
-
return t ? d(t) : e.useClientTimeZone ? d() :
|
|
458
|
-
},
|
|
457
|
+
return t ? d(t) : e.useClientTimeZone ? d() : he();
|
|
458
|
+
}, W = (e) => e === "instant" || e === "local" ? e : "none", ye = (e = {}) => W(e.timeZoneMode) !== "none", gt = () => {
|
|
459
459
|
var e;
|
|
460
460
|
return typeof window < "u" && ((e = window.navigator) != null && e.language) ? window.navigator.language : E;
|
|
461
|
-
},
|
|
462
|
-
const r = e ||
|
|
461
|
+
}, ge = (e, t = []) => {
|
|
462
|
+
const r = e || gt() || E, o = r.toLowerCase();
|
|
463
463
|
if (!t.length)
|
|
464
464
|
return o === "en" ? "en-US" : o === "zh" || o === "zh-cn" ? E : r;
|
|
465
465
|
const s = t.find((a) => a.toLowerCase() === o);
|
|
@@ -471,71 +471,76 @@ const Tt = () => {
|
|
|
471
471
|
if (e == null || e === "") return f();
|
|
472
472
|
const t = f(e);
|
|
473
473
|
return t.isValid() ? t : f();
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
}, Z = (e) => e == null || e === "", h = (e) => f.isDayjs(e) ? e : Z(e) ? f() : f(e), De = /(?:[zZ]|[+-]\d{2}:?\d{2})$/, Dt = /^\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[ T]\d{1,2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?)?$/, It = (e) => {
|
|
475
|
+
if (typeof e != "string") return !1;
|
|
476
|
+
const t = e.trim();
|
|
477
|
+
return Dt.test(t) && !De.test(t);
|
|
478
|
+
}, At = (e) => typeof e == "string" && De.test(e.trim()), S = (e) => f(e.format(qe)), j = (e, t) => h(e).tz(t, !0), Et = (e, t = {}) => {
|
|
479
|
+
const n = W(t.timeZoneMode);
|
|
480
|
+
if (n === "none") return h(e);
|
|
481
|
+
const r = Ze(t);
|
|
478
482
|
if (n === "local")
|
|
479
|
-
return
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
+
return Z(e) ? S(f().tz(r)) : f.isDayjs(e) ? S(e.tz(r)) : S(j(e, r));
|
|
484
|
+
if (It(e)) return S(j(e, r));
|
|
485
|
+
const o = h(e);
|
|
486
|
+
return o.isValid() ? S(o.tz(r)) : o;
|
|
487
|
+
}, Ie = (e, t = !1) => {
|
|
483
488
|
const n = l(e);
|
|
484
489
|
return n ? d(n) : t ? d() : "";
|
|
485
|
-
},
|
|
486
|
-
const n =
|
|
490
|
+
}, nn = () => rt, rn = (e, t = {}) => ye(t) ? Z(e) ? null : Et(e, t) : e, pt = (e, t = {}) => {
|
|
491
|
+
const n = W(t.timeZoneMode), r = t.timeZoneValueFormat || (n === "instant" ? Qe : w);
|
|
487
492
|
return e.format(r);
|
|
488
|
-
},
|
|
489
|
-
if (!
|
|
490
|
-
const n =
|
|
493
|
+
}, on = (e, t = {}) => {
|
|
494
|
+
if (!ye(t) || Z(e)) return e;
|
|
495
|
+
const n = Ze(t), r = h(e);
|
|
491
496
|
if (!r.isValid()) return e;
|
|
492
|
-
const o = r.
|
|
493
|
-
return
|
|
494
|
-
},
|
|
497
|
+
const o = r.tz(n, !At(e));
|
|
498
|
+
return pt(o, t);
|
|
499
|
+
}, wt = (e, t) => M(e).tz(d(t)).utcOffset(), zt = (e, t, n = ue) => M(e).tz(d(t)).format(n), St = /^(\d{4}-\d{2}-\d{2})/, _t = (e = {}) => {
|
|
495
500
|
const t = l(e.timeZone);
|
|
496
|
-
return t ? d(t) : e.useClientTimeZone === !1 ?
|
|
497
|
-
},
|
|
498
|
-
if (
|
|
501
|
+
return t ? d(t) : e.useClientTimeZone === !1 ? he() : d();
|
|
502
|
+
}, Mt = (e, t, n) => {
|
|
503
|
+
if (Z(e)) return "";
|
|
499
504
|
if (n === "instant") {
|
|
500
|
-
const o =
|
|
505
|
+
const o = h(e);
|
|
501
506
|
return o.isValid() ? o.tz(t).format("YYYY-MM-DD") : "";
|
|
502
507
|
}
|
|
503
508
|
if (typeof e == "string") {
|
|
504
|
-
const o = e.trim().match(
|
|
509
|
+
const o = e.trim().match(St);
|
|
505
510
|
if (o != null && o[1]) return o[1];
|
|
506
511
|
}
|
|
507
|
-
const r =
|
|
512
|
+
const r = h(e);
|
|
508
513
|
return r.isValid() ? r.format("YYYY-MM-DD") : "";
|
|
509
|
-
},
|
|
510
|
-
const r =
|
|
514
|
+
}, Ae = (e, t = {}, n) => {
|
|
515
|
+
const r = _t(t), o = Mt(e, r, t.inputMode || "date");
|
|
511
516
|
if (!o) return;
|
|
512
|
-
const s =
|
|
517
|
+
const s = j(o, r);
|
|
513
518
|
if (s.isValid())
|
|
514
519
|
return (n === "start" ? s.startOf("day") : s.endOf("day")).valueOf();
|
|
515
|
-
},
|
|
516
|
-
const n = t.format || w, r =
|
|
517
|
-
if (!r) return
|
|
520
|
+
}, sn = (e, t = {}) => Ae(e, t, "start"), an = (e, t = {}) => Ae(e, t, "end"), Lt = (e, t) => h(e).format(t.format), Ee = (e, t) => {
|
|
521
|
+
const n = t.format || w, r = Ie(t.timeZone, t.useClientTimeZone);
|
|
522
|
+
if (!r) return Lt(e, { format: n });
|
|
518
523
|
if (t.inputMode === "local")
|
|
519
|
-
return
|
|
520
|
-
const o =
|
|
524
|
+
return Z(e) ? f().tz(r).format(n) : f.tz(e, r).format(n);
|
|
525
|
+
const o = h(e);
|
|
521
526
|
return o.isValid() ? o.tz(r).format(n) : o.format(n);
|
|
522
|
-
},
|
|
527
|
+
}, Ct = (e) => typeof e == "function" && typeof (e == null ? void 0 : e.tz) == "function", kt = (e, t) => {
|
|
523
528
|
var a, u;
|
|
524
529
|
const { moment: n } = t, r = t.format || w;
|
|
525
|
-
if (!
|
|
526
|
-
const o =
|
|
530
|
+
if (!Ct(n)) return Ee(e, { ...t, dateLibrary: "dayjs" });
|
|
531
|
+
const o = Z(e) ? void 0 : e, s = Ie(t.timeZone, t.useClientTimeZone);
|
|
527
532
|
if (!s || typeof n.tz != "function") return n(o).format(r);
|
|
528
533
|
if (t.inputMode === "local")
|
|
529
|
-
return
|
|
534
|
+
return Z(e) ? ((u = (a = n()).tz) == null ? void 0 : u.call(a, s).format(r)) || n().format(r) : n.tz(o, s).format(r);
|
|
530
535
|
const i = n(o);
|
|
531
536
|
return (typeof i.tz == "function" ? i.tz(s) : n.tz(o, s)).format(r);
|
|
532
|
-
},
|
|
537
|
+
}, pe = (e, t = {}) => {
|
|
533
538
|
const n = typeof t == "string" ? { format: t } : t || {}, r = {
|
|
534
539
|
...n,
|
|
535
540
|
format: n.format || w
|
|
536
541
|
};
|
|
537
|
-
return r.dateLibrary === "moment" ?
|
|
538
|
-
},
|
|
542
|
+
return r.dateLibrary === "moment" ? kt(e, r) : Ee(e, r);
|
|
543
|
+
}, bt = (e, t, n) => new Intl.DateTimeFormat(n, {
|
|
539
544
|
timeZone: t,
|
|
540
545
|
year: "numeric",
|
|
541
546
|
month: "2-digit",
|
|
@@ -544,7 +549,7 @@ const Tt = () => {
|
|
|
544
549
|
minute: "2-digit",
|
|
545
550
|
second: "2-digit",
|
|
546
551
|
hourCycle: "h23"
|
|
547
|
-
}).formatToParts(e).reduce((o, s) => (s.type !== "literal" && (o[s.type] = s.value), o), {}),
|
|
552
|
+
}).formatToParts(e).reduce((o, s) => (s.type !== "literal" && (o[s.type] = s.value), o), {}), Nt = (e, t, n) => {
|
|
548
553
|
const r = {
|
|
549
554
|
YYYY: t.year || "0000",
|
|
550
555
|
YY: (t.year || "0000").slice(-2),
|
|
@@ -561,36 +566,36 @@ const Tt = () => {
|
|
|
561
566
|
SSS: n
|
|
562
567
|
};
|
|
563
568
|
return e.replace(/YYYY|SSS|YY|MM|DD|HH|mm|ss|M|D|H|m|s/g, (o) => r[o] ?? o);
|
|
564
|
-
},
|
|
565
|
-
const n = typeof t == "string" ? { format: t } : t || {}, r = n.format || w, o =
|
|
569
|
+
}, cn = (e, t = {}) => {
|
|
570
|
+
const n = typeof t == "string" ? { format: t } : t || {}, r = n.format || w, o = ge(n.locale || E), s = d(n.timeZone), i = h(e);
|
|
566
571
|
if (!i.isValid()) return i.format(r);
|
|
567
572
|
try {
|
|
568
|
-
const c = i.toDate(), a =
|
|
569
|
-
return
|
|
573
|
+
const c = i.toDate(), a = bt(c, s, o), u = String(c.getMilliseconds()).padStart(3, "0");
|
|
574
|
+
return Nt(r, a, u);
|
|
570
575
|
} catch {
|
|
571
|
-
return
|
|
576
|
+
return pe(e, { format: r, timeZone: s });
|
|
572
577
|
}
|
|
573
|
-
},
|
|
574
|
-
const n =
|
|
575
|
-
return `UTC${r}${
|
|
576
|
-
},
|
|
578
|
+
}, fn = (e, t = w, n = {}) => pe(e, { ...n, format: t }), ne = (e) => String(e).padStart(2, "0"), we = (e) => `UTC${e}`, ze = (e, t) => {
|
|
579
|
+
const n = wt(e, t), r = n >= 0 ? "+" : "-", o = Math.abs(n);
|
|
580
|
+
return `UTC${r}${ne(Math.floor(o / 60))}:${ne(o % 60)}`;
|
|
581
|
+
}, Pt = (e, t = /* @__PURE__ */ new Date()) => {
|
|
577
582
|
const n = e.currentUtcOffsetText || e.baseUtcOffsetText;
|
|
578
|
-
return n ? `UTC${n}` :
|
|
579
|
-
},
|
|
583
|
+
return n ? `UTC${n}` : ze(t, e.timeZoneId);
|
|
584
|
+
}, Ot = (e, t) => {
|
|
580
585
|
const n = e.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
|
|
581
586
|
if (!n[1]) return t;
|
|
582
587
|
const r = n[1].startsWith("-") ? "-" : "+", o = n[1].replace(/[+-]/, "").padStart(2, "0"), s = n[2] || "00";
|
|
583
588
|
return `UTC${r}${o}:${s}`;
|
|
584
|
-
},
|
|
589
|
+
}, Yt = (e, t, n) => {
|
|
585
590
|
var o, s;
|
|
586
|
-
const r =
|
|
591
|
+
const r = we(n.format("Z"));
|
|
587
592
|
try {
|
|
588
593
|
const i = Intl.DateTimeFormat.supportedLocalesOf([t])[0] || t, c = (s = (o = new Intl.DateTimeFormat(i, { timeZone: e, timeZoneName: "long" }).formatToParts(n.toDate()).find((a) => a.type === "timeZoneName")) == null ? void 0 : o.value) == null ? void 0 : s.trim();
|
|
589
|
-
return c ? /^(gmt|utc)/i.test(c) ?
|
|
594
|
+
return c ? /^(gmt|utc)/i.test(c) ? Ot(c, r) : c : r;
|
|
590
595
|
} catch {
|
|
591
596
|
return r;
|
|
592
597
|
}
|
|
593
|
-
},
|
|
598
|
+
}, Se = (e, t) => {
|
|
594
599
|
const n = t.year();
|
|
595
600
|
return Array.from(
|
|
596
601
|
new Set(
|
|
@@ -600,38 +605,38 @@ const Tt = () => {
|
|
|
600
605
|
})
|
|
601
606
|
)
|
|
602
607
|
);
|
|
603
|
-
},
|
|
608
|
+
}, _e = (e, t) => {
|
|
604
609
|
const n = d(e);
|
|
605
610
|
if (!z(n)) return !1;
|
|
606
611
|
const r = M(t).tz(n);
|
|
607
|
-
return
|
|
608
|
-
},
|
|
612
|
+
return Se(n, r).length > 1;
|
|
613
|
+
}, U = (e, t) => {
|
|
609
614
|
const n = d(e);
|
|
610
615
|
if (!z(n)) return !1;
|
|
611
|
-
const r = M(t).tz(n), o =
|
|
616
|
+
const r = M(t).tz(n), o = Se(n, r);
|
|
612
617
|
return o.length <= 1 ? !1 : r.utcOffset() === Math.max(...o);
|
|
613
|
-
},
|
|
618
|
+
}, un = (e, t) => U(e, t), Me = (e) => {
|
|
614
619
|
if (e === 1 || e === "1") return !0;
|
|
615
620
|
if (e === 0 || e === "0") return !1;
|
|
616
|
-
},
|
|
617
|
-
const n =
|
|
618
|
-
return typeof n == "boolean" ? n :
|
|
619
|
-
},
|
|
620
|
-
const n =
|
|
621
|
-
return typeof n == "boolean" ? n :
|
|
622
|
-
},
|
|
623
|
-
const r = n.tzShowName ||
|
|
621
|
+
}, vt = (e, t) => {
|
|
622
|
+
const n = Me(e.dynamicOffsetFlag);
|
|
623
|
+
return typeof n == "boolean" ? n : _e(e.timeZoneId, t);
|
|
624
|
+
}, Ut = (e, t) => {
|
|
625
|
+
const n = Me(e.currentDstFlag);
|
|
626
|
+
return typeof n == "boolean" ? n : U(e.timeZoneId, t);
|
|
627
|
+
}, ln = (e, t = /* @__PURE__ */ new Date()) => e.map((n) => {
|
|
628
|
+
const r = n.tzShowName || Pt(n, t), o = vt(n, t);
|
|
624
629
|
return {
|
|
625
630
|
value: n.timeZoneId,
|
|
626
631
|
zoneName: r,
|
|
627
632
|
label: r,
|
|
628
633
|
hasDST: o,
|
|
629
|
-
isDST: o ?
|
|
634
|
+
isDST: o ? Ut(n, t) : !1
|
|
630
635
|
};
|
|
631
|
-
}),
|
|
636
|
+
}), Vt = (e) => {
|
|
632
637
|
const t = e.toLowerCase().split("-")[0];
|
|
633
|
-
return
|
|
634
|
-
},
|
|
638
|
+
return ee[t] || ee.default;
|
|
639
|
+
}, Ft = (e) => typeof e.showDaylightSavingLabel == "boolean" ? e.showDaylightSavingLabel : e.showDaylightSavingMarker ?? !0, mn = (e, t, n = {}) => {
|
|
635
640
|
const {
|
|
636
641
|
showZoneLabel: r = !0,
|
|
637
642
|
zoneLabel: o,
|
|
@@ -639,13 +644,13 @@ const Tt = () => {
|
|
|
639
644
|
isDST: i,
|
|
640
645
|
standardTimeLabel: c,
|
|
641
646
|
daylightSavingLabel: a,
|
|
642
|
-
format: u =
|
|
643
|
-
} = n, m = d(t), y =
|
|
644
|
-
return r ? [y, o ||
|
|
645
|
-
},
|
|
646
|
-
const t =
|
|
647
|
+
format: u = ue
|
|
648
|
+
} = n, m = d(t), y = zt(e, m, u), I = typeof s == "boolean" ? s : _e(m, e), g = (typeof i == "boolean" ? i : U(m, e)) ? a : c, A = I && g ? `[${g}]` : "";
|
|
649
|
+
return r ? [y, o || ze(e, m), A].filter(Boolean).join(" ") : [y, A].filter(Boolean).join(" ");
|
|
650
|
+
}, dn = (e = {}) => {
|
|
651
|
+
const t = ge(e.locale, e.supportedLocales), n = d(e.timeZone), r = M(e.value).tz(n), o = Yt(n, t, r), s = we(r.format("Z")), i = U(n, r), c = i ? Vt(t) : "", a = Ft(e), u = i && a ? `${o} - ${c}` : o;
|
|
647
652
|
return {
|
|
648
|
-
formattedValue: r.format(e.format ||
|
|
653
|
+
formattedValue: r.format(e.format || Xe),
|
|
649
654
|
locale: t,
|
|
650
655
|
timeZone: n,
|
|
651
656
|
timeZoneName: o,
|
|
@@ -657,65 +662,65 @@ const Tt = () => {
|
|
|
657
662
|
};
|
|
658
663
|
};
|
|
659
664
|
export {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
665
|
+
tt as IANA_TIMEZONE_DATA_CHANGE_EVENT,
|
|
666
|
+
le as TIMEZONE_CHANGE_EVENT,
|
|
667
|
+
se as TIME_ZONE_PACKED_DATA_URL,
|
|
668
|
+
et as UPF_TIMEZONE_MESSAGE_TYPE,
|
|
669
|
+
Wt as applyDayjsIanaTimeZoneData,
|
|
670
|
+
Xt as applyMomentIanaTimeZoneData,
|
|
671
|
+
ie as assertPackedIanaData,
|
|
672
|
+
We as assertPackedIanaTzData,
|
|
673
|
+
ae as buildIanaFetchInit,
|
|
674
|
+
ln as buildTimeZoneDisplayOptions,
|
|
675
|
+
Ue as clearDayjsIanaCache,
|
|
676
|
+
P as clientTimeZone,
|
|
677
|
+
$e as createIanaDbFromPackedData,
|
|
673
678
|
T as dayjsTimezoneIanaPlugin,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
679
|
+
mn as formatClientLocalDateTimeLine,
|
|
680
|
+
zt as formatInTimeZone,
|
|
681
|
+
pe as formatLocalDateTime,
|
|
682
|
+
cn as formatLocalDateTimeIntl,
|
|
683
|
+
ze as formatTimeZoneOffsetLabel,
|
|
684
|
+
on as fromTimeZonePickerValue,
|
|
685
|
+
be as getAccessTokenFromLocalStorage,
|
|
686
|
+
Ye as getCachedDayjsPackedIanaData,
|
|
687
|
+
yt as getClientTimeZone,
|
|
688
|
+
Ne as getDefaultIanaAuthorization,
|
|
689
|
+
Jt as getKnownTimeZoneIds,
|
|
690
|
+
it as getRuntimeIanaTimeZoneDataSnapshot,
|
|
691
|
+
Gt as getRuntimeNameZoneDataSnapshot,
|
|
692
|
+
nn as getTimeZoneDayjs,
|
|
693
|
+
dn as getTimeZoneDisplayInfo,
|
|
694
|
+
wt as getZoneUtcOffset,
|
|
695
|
+
Zt as initClientTimeZoneSync,
|
|
696
|
+
un as isDaylightSavingTime,
|
|
692
697
|
z as isKnownTimeZone,
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
698
|
+
Ct as isMomentTimezoneFormatInstance,
|
|
699
|
+
ye as isTimeZonePickerModeEnabled,
|
|
700
|
+
Kt as loadDayjsIanaTimeZoneData,
|
|
701
|
+
fe as loadIanaData,
|
|
702
|
+
Q as loadIanaFromApi,
|
|
703
|
+
fe as loadMomentIanaData,
|
|
704
|
+
Q as loadMomentIanaFromApi,
|
|
705
|
+
qt as loadMomentIanaTimeZoneData,
|
|
706
|
+
ge as normalizeLocaleCode,
|
|
707
|
+
tn as onClientTimeZoneChange,
|
|
708
|
+
ve as preloadDayjsIanaFromApi,
|
|
709
|
+
ce as preloadDayjsIanaFromData,
|
|
710
|
+
Bt as readInjectedParentIanaTimeZoneDataSnapshot,
|
|
711
|
+
v as rebuildKnownTimeZoneIds,
|
|
712
|
+
Ze as resolvePickerTimeZone,
|
|
708
713
|
d as resolveTimeZone,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
714
|
+
Pt as resolveUtcOffsetFallback,
|
|
715
|
+
Qt as setClientTimeZone,
|
|
716
|
+
G as setDefaultTimeZone,
|
|
717
|
+
Y as setRuntimeIanaTimeZoneDataSnapshot,
|
|
718
|
+
en as syncClientTimeZone,
|
|
719
|
+
rt as timeZoneDayjs,
|
|
720
|
+
_e as timeZoneHasDST,
|
|
721
|
+
U as timeZoneIsDST,
|
|
722
|
+
fn as toLocalDate,
|
|
723
|
+
rn as toTimeZonePickerValue,
|
|
724
|
+
an as toTimestampAtZoneEndOfDay,
|
|
725
|
+
sn as toTimestampAtZoneStartOfDay
|
|
721
726
|
};
|