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