@sigtes/ui 0.4.0 → 0.4.1
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/{Button-4bFnDFTG.js → Button-5NOkO3IC.js} +163 -143
- package/dist/Button-CfO2renX.cjs +22 -0
- package/dist/components.cjs.js +46 -109
- package/dist/components.es.js +4006 -8060
- package/dist/globals.css +1 -1
- package/dist/pages.cjs.js +18 -2
- package/dist/pages.es.js +534 -473
- package/package.json +2 -2
- package/dist/Button-BZQNLEhf.cjs +0 -6
- package/dist/components/form/Form.d.ts +0 -23
package/dist/pages.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import
|
|
2
|
+
import { j as y, B as oe } from "./Button-5NOkO3IC.js";
|
|
3
|
+
import Je, { useEffect as xe, createContext as Oe, useContext as Ve } from "react";
|
|
4
4
|
import "next-themes";
|
|
5
|
-
function
|
|
5
|
+
function mr({
|
|
6
6
|
error: n,
|
|
7
7
|
reset: t,
|
|
8
8
|
router: r
|
|
9
9
|
}) {
|
|
10
|
-
return
|
|
10
|
+
return xe(() => {
|
|
11
11
|
console.error(n);
|
|
12
|
-
}, [n]), /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
12
|
+
}, [n]), /* @__PURE__ */ y.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ y.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
13
|
+
/* @__PURE__ */ y.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
14
|
+
/* @__PURE__ */ y.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "500" }),
|
|
15
|
+
/* @__PURE__ */ y.jsx("h1", { children: "Um erro ocorreu!" })
|
|
16
16
|
] }),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
/* @__PURE__ */ y.jsx(
|
|
18
|
+
oe,
|
|
19
19
|
{
|
|
20
20
|
onClick: () => {
|
|
21
21
|
t(), r.replace("/");
|
|
@@ -25,11 +25,21 @@ function hr({
|
|
|
25
25
|
)
|
|
26
26
|
] }) });
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
var re = { exports: {} }, I = {};
|
|
29
|
+
/**
|
|
30
|
+
* @license React
|
|
31
|
+
* react-jsx-runtime.production.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/
|
|
38
|
+
var me;
|
|
39
|
+
function Ke() {
|
|
40
|
+
if (me) return I;
|
|
41
|
+
me = 1;
|
|
42
|
+
var n = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
33
43
|
function r(e, a, o) {
|
|
34
44
|
var s = null;
|
|
35
45
|
if (o !== void 0 && (s = "" + o), a.key !== void 0 && (s = "" + a.key), "key" in a) {
|
|
@@ -45,46 +55,56 @@ function Ve() {
|
|
|
45
55
|
props: o
|
|
46
56
|
};
|
|
47
57
|
}
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
return I.Fragment = t, I.jsx = r, I.jsxs = r, I;
|
|
59
|
+
}
|
|
60
|
+
var R = {};
|
|
61
|
+
/**
|
|
62
|
+
* @license React
|
|
63
|
+
* react-jsx-runtime.development.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/
|
|
70
|
+
var fe;
|
|
71
|
+
function et() {
|
|
72
|
+
return fe || (fe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
53
73
|
function n(i) {
|
|
54
74
|
if (i == null) return null;
|
|
55
75
|
if (typeof i == "function")
|
|
56
|
-
return i.$$typeof ===
|
|
76
|
+
return i.$$typeof === _e ? null : i.displayName || i.name || null;
|
|
57
77
|
if (typeof i == "string") return i;
|
|
58
78
|
switch (i) {
|
|
59
|
-
case
|
|
79
|
+
case L:
|
|
60
80
|
return "Fragment";
|
|
61
|
-
case
|
|
81
|
+
case q:
|
|
62
82
|
return "Profiler";
|
|
63
|
-
case
|
|
83
|
+
case _:
|
|
64
84
|
return "StrictMode";
|
|
65
|
-
case
|
|
85
|
+
case Be:
|
|
66
86
|
return "Suspense";
|
|
67
|
-
case
|
|
87
|
+
case Xe:
|
|
68
88
|
return "SuspenseList";
|
|
69
|
-
case
|
|
89
|
+
case Ge:
|
|
70
90
|
return "Activity";
|
|
71
91
|
}
|
|
72
92
|
if (typeof i == "object")
|
|
73
93
|
switch (typeof i.tag == "number" && console.error(
|
|
74
94
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
75
95
|
), i.$$typeof) {
|
|
76
|
-
case
|
|
96
|
+
case Q:
|
|
77
97
|
return "Portal";
|
|
78
|
-
case
|
|
79
|
-
return i.displayName || "Context";
|
|
80
|
-
case
|
|
98
|
+
case U:
|
|
99
|
+
return (i.displayName || "Context") + ".Provider";
|
|
100
|
+
case J:
|
|
81
101
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
82
|
-
case
|
|
102
|
+
case Ae:
|
|
83
103
|
var c = i.render;
|
|
84
104
|
return i = i.displayName, i || (i = c.displayName || c.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
85
105
|
case Ze:
|
|
86
106
|
return c = i.displayName || null, c !== null ? c : n(i.type) || "Memo";
|
|
87
|
-
case
|
|
107
|
+
case ie:
|
|
88
108
|
c = i._payload, i = i._init;
|
|
89
109
|
try {
|
|
90
110
|
return n(i(c));
|
|
@@ -105,17 +125,17 @@ function Ke() {
|
|
|
105
125
|
}
|
|
106
126
|
if (c) {
|
|
107
127
|
c = console;
|
|
108
|
-
var g = c.error,
|
|
128
|
+
var g = c.error, b = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
109
129
|
return g.call(
|
|
110
130
|
c,
|
|
111
131
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
112
|
-
|
|
132
|
+
b
|
|
113
133
|
), t(i);
|
|
114
134
|
}
|
|
115
135
|
}
|
|
116
136
|
function e(i) {
|
|
117
|
-
if (i ===
|
|
118
|
-
if (typeof i == "object" && i !== null && i.$$typeof ===
|
|
137
|
+
if (i === L) return "<>";
|
|
138
|
+
if (typeof i == "object" && i !== null && i.$$typeof === ie)
|
|
119
139
|
return "<...>";
|
|
120
140
|
try {
|
|
121
141
|
var c = n(i);
|
|
@@ -125,14 +145,14 @@ function Ke() {
|
|
|
125
145
|
}
|
|
126
146
|
}
|
|
127
147
|
function a() {
|
|
128
|
-
var i =
|
|
148
|
+
var i = V.A;
|
|
129
149
|
return i === null ? null : i.getOwner();
|
|
130
150
|
}
|
|
131
151
|
function o() {
|
|
132
152
|
return Error("react-stack-top-frame");
|
|
133
153
|
}
|
|
134
154
|
function s(i) {
|
|
135
|
-
if (
|
|
155
|
+
if (se.call(i, "key")) {
|
|
136
156
|
var c = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
137
157
|
if (c && c.isReactWarning) return !1;
|
|
138
158
|
}
|
|
@@ -140,7 +160,7 @@ function Ke() {
|
|
|
140
160
|
}
|
|
141
161
|
function u(i, c) {
|
|
142
162
|
function g() {
|
|
143
|
-
|
|
163
|
+
ue || (ue = !0, console.error(
|
|
144
164
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
145
165
|
c
|
|
146
166
|
));
|
|
@@ -152,19 +172,18 @@ function Ke() {
|
|
|
152
172
|
}
|
|
153
173
|
function h() {
|
|
154
174
|
var i = n(this.type);
|
|
155
|
-
return
|
|
175
|
+
return ce[i] || (ce[i] = !0, console.error(
|
|
156
176
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
157
177
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
158
178
|
}
|
|
159
|
-
function v(i, c, g,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
$$typeof: B,
|
|
179
|
+
function v(i, c, g, b, T, S, ee, te) {
|
|
180
|
+
return g = S.ref, i = {
|
|
181
|
+
$$typeof: C,
|
|
163
182
|
type: i,
|
|
164
183
|
key: c,
|
|
165
|
-
props:
|
|
166
|
-
_owner:
|
|
167
|
-
}, (
|
|
184
|
+
props: S,
|
|
185
|
+
_owner: T
|
|
186
|
+
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(i, "ref", {
|
|
168
187
|
enumerable: !1,
|
|
169
188
|
get: h
|
|
170
189
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -181,117 +200,120 @@ function Ke() {
|
|
|
181
200
|
configurable: !1,
|
|
182
201
|
enumerable: !1,
|
|
183
202
|
writable: !0,
|
|
184
|
-
value:
|
|
203
|
+
value: ee
|
|
185
204
|
}), Object.defineProperty(i, "_debugTask", {
|
|
186
205
|
configurable: !1,
|
|
187
206
|
enumerable: !1,
|
|
188
207
|
writable: !0,
|
|
189
|
-
value:
|
|
208
|
+
value: te
|
|
190
209
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
191
210
|
}
|
|
192
|
-
function f(i, c, g,
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
195
|
-
if (
|
|
196
|
-
if (Re(
|
|
197
|
-
for (
|
|
198
|
-
m(b
|
|
199
|
-
Object.freeze && Object.freeze(
|
|
211
|
+
function f(i, c, g, b, T, S, ee, te) {
|
|
212
|
+
var w = c.children;
|
|
213
|
+
if (w !== void 0)
|
|
214
|
+
if (b)
|
|
215
|
+
if (Re(w)) {
|
|
216
|
+
for (b = 0; b < w.length; b++)
|
|
217
|
+
m(w[b]);
|
|
218
|
+
Object.freeze && Object.freeze(w);
|
|
200
219
|
} else
|
|
201
220
|
console.error(
|
|
202
221
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
203
222
|
);
|
|
204
|
-
else m(
|
|
205
|
-
if (
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
return
|
|
223
|
+
else m(w);
|
|
224
|
+
if (se.call(c, "key")) {
|
|
225
|
+
w = n(i);
|
|
226
|
+
var Y = Object.keys(c).filter(function(Qe) {
|
|
227
|
+
return Qe !== "key";
|
|
209
228
|
});
|
|
210
|
-
|
|
229
|
+
b = 0 < Y.length ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}", he[w + b] || (Y = 0 < Y.length ? "{" + Y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
211
230
|
`A props object containing a "key" prop is being spread into JSX:
|
|
212
231
|
let props = %s;
|
|
213
232
|
<%s {...props} />
|
|
214
233
|
React keys must be passed directly to JSX without using spread:
|
|
215
234
|
let props = %s;
|
|
216
235
|
<%s key={someKey} {...props} />`,
|
|
217
|
-
y,
|
|
218
236
|
b,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
237
|
+
w,
|
|
238
|
+
Y,
|
|
239
|
+
w
|
|
240
|
+
), he[w + b] = !0);
|
|
222
241
|
}
|
|
223
|
-
if (
|
|
242
|
+
if (w = null, g !== void 0 && (r(g), w = "" + g), s(c) && (r(c.key), w = "" + c.key), "key" in c) {
|
|
224
243
|
g = {};
|
|
225
|
-
for (var
|
|
226
|
-
|
|
244
|
+
for (var ne in c)
|
|
245
|
+
ne !== "key" && (g[ne] = c[ne]);
|
|
227
246
|
} else g = c;
|
|
228
|
-
return
|
|
247
|
+
return w && u(
|
|
229
248
|
g,
|
|
230
249
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
231
250
|
), v(
|
|
232
251
|
i,
|
|
233
|
-
|
|
234
|
-
|
|
252
|
+
w,
|
|
253
|
+
S,
|
|
254
|
+
T,
|
|
235
255
|
a(),
|
|
236
|
-
|
|
237
|
-
ee
|
|
256
|
+
g,
|
|
257
|
+
ee,
|
|
258
|
+
te
|
|
238
259
|
);
|
|
239
260
|
}
|
|
240
261
|
function m(i) {
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
function M(i) {
|
|
244
|
-
return typeof i == "object" && i !== null && i.$$typeof === B;
|
|
262
|
+
typeof i == "object" && i !== null && i.$$typeof === C && i._store && (i._store.validated = 1);
|
|
245
263
|
}
|
|
246
|
-
var
|
|
264
|
+
var M = Je, C = Symbol.for("react.transitional.element"), Q = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), U = Symbol.for("react.context"), Ae = Symbol.for("react.forward_ref"), Be = Symbol.for("react.suspense"), Xe = Symbol.for("react.suspense_list"), Ze = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), Ge = Symbol.for("react.activity"), _e = Symbol.for("react.client.reference"), V = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, Re = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
247
265
|
return null;
|
|
248
266
|
};
|
|
249
|
-
|
|
267
|
+
M = {
|
|
250
268
|
react_stack_bottom_frame: function(i) {
|
|
251
269
|
return i();
|
|
252
270
|
}
|
|
253
271
|
};
|
|
254
|
-
var
|
|
255
|
-
|
|
272
|
+
var ue, ce = {}, de = M.react_stack_bottom_frame.bind(
|
|
273
|
+
M,
|
|
256
274
|
o
|
|
257
|
-
)(),
|
|
258
|
-
|
|
259
|
-
var
|
|
275
|
+
)(), le = K(e(o)), he = {};
|
|
276
|
+
R.Fragment = L, R.jsx = function(i, c, g, b, T) {
|
|
277
|
+
var S = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
260
278
|
return f(
|
|
261
279
|
i,
|
|
262
280
|
c,
|
|
263
281
|
g,
|
|
264
282
|
!1,
|
|
265
|
-
|
|
266
|
-
|
|
283
|
+
b,
|
|
284
|
+
T,
|
|
285
|
+
S ? Error("react-stack-top-frame") : de,
|
|
286
|
+
S ? K(e(i)) : le
|
|
267
287
|
);
|
|
268
|
-
},
|
|
269
|
-
var
|
|
288
|
+
}, R.jsxs = function(i, c, g, b, T) {
|
|
289
|
+
var S = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
270
290
|
return f(
|
|
271
291
|
i,
|
|
272
292
|
c,
|
|
273
293
|
g,
|
|
274
294
|
!0,
|
|
275
|
-
|
|
276
|
-
|
|
295
|
+
b,
|
|
296
|
+
T,
|
|
297
|
+
S ? Error("react-stack-top-frame") : de,
|
|
298
|
+
S ? K(e(i)) : le
|
|
277
299
|
);
|
|
278
300
|
};
|
|
279
|
-
})()),
|
|
301
|
+
})()), R;
|
|
280
302
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
283
|
-
return
|
|
303
|
+
var ge;
|
|
304
|
+
function tt() {
|
|
305
|
+
return ge || (ge = 1, process.env.NODE_ENV === "production" ? re.exports = Ke() : re.exports = et()), re.exports;
|
|
284
306
|
}
|
|
285
|
-
|
|
286
|
-
const
|
|
307
|
+
tt();
|
|
308
|
+
const nt = {
|
|
287
309
|
id: "",
|
|
288
310
|
username: "",
|
|
289
311
|
email: "",
|
|
290
312
|
created_at: null,
|
|
291
313
|
updated_at: null,
|
|
292
314
|
features: []
|
|
293
|
-
},
|
|
294
|
-
user:
|
|
315
|
+
}, rt = Oe({
|
|
316
|
+
user: nt,
|
|
295
317
|
isLoading: !0,
|
|
296
318
|
fetchUser: async () => {
|
|
297
319
|
},
|
|
@@ -299,16 +321,16 @@ const tt = {
|
|
|
299
321
|
},
|
|
300
322
|
login: async () => !1
|
|
301
323
|
});
|
|
302
|
-
function
|
|
303
|
-
return
|
|
324
|
+
function at() {
|
|
325
|
+
return Ve(rt);
|
|
304
326
|
}
|
|
305
|
-
function
|
|
327
|
+
function z(n) {
|
|
306
328
|
return (t = {}) => {
|
|
307
329
|
const r = t.width ? String(t.width) : n.defaultWidth;
|
|
308
330
|
return n.formats[r] || n.formats[n.defaultWidth];
|
|
309
331
|
};
|
|
310
332
|
}
|
|
311
|
-
function
|
|
333
|
+
function k(n) {
|
|
312
334
|
return (t, r) => {
|
|
313
335
|
const e = r?.context ? String(r.context) : "standalone";
|
|
314
336
|
let a;
|
|
@@ -323,14 +345,14 @@ function S(n) {
|
|
|
323
345
|
return a[o];
|
|
324
346
|
};
|
|
325
347
|
}
|
|
326
|
-
function
|
|
348
|
+
function D(n) {
|
|
327
349
|
return (t, r = {}) => {
|
|
328
350
|
const e = r.width, a = e && n.matchPatterns[e] || n.matchPatterns[n.defaultMatchWidth], o = t.match(a);
|
|
329
351
|
if (!o)
|
|
330
352
|
return null;
|
|
331
|
-
const s = o[0], u = e && n.parsePatterns[e] || n.parsePatterns[n.defaultParseWidth], h = Array.isArray(u) ?
|
|
353
|
+
const s = o[0], u = e && n.parsePatterns[e] || n.parsePatterns[n.defaultParseWidth], h = Array.isArray(u) ? it(u, (m) => m.test(s)) : (
|
|
332
354
|
// [TODO] -- I challenge you to fix the type
|
|
333
|
-
|
|
355
|
+
ot(u, (m) => m.test(s))
|
|
334
356
|
);
|
|
335
357
|
let v;
|
|
336
358
|
v = n.valueCallback ? n.valueCallback(h) : h, v = r.valueCallback ? (
|
|
@@ -341,17 +363,17 @@ function k(n) {
|
|
|
341
363
|
return { value: v, rest: f };
|
|
342
364
|
};
|
|
343
365
|
}
|
|
344
|
-
function
|
|
366
|
+
function ot(n, t) {
|
|
345
367
|
for (const r in n)
|
|
346
368
|
if (Object.prototype.hasOwnProperty.call(n, r) && t(n[r]))
|
|
347
369
|
return r;
|
|
348
370
|
}
|
|
349
|
-
function
|
|
371
|
+
function it(n, t) {
|
|
350
372
|
for (let r = 0; r < n.length; r++)
|
|
351
373
|
if (t(n[r]))
|
|
352
374
|
return r;
|
|
353
375
|
}
|
|
354
|
-
function
|
|
376
|
+
function Pe(n) {
|
|
355
377
|
return (t, r = {}) => {
|
|
356
378
|
const e = t.match(n.matchPattern);
|
|
357
379
|
if (!e) return null;
|
|
@@ -363,29 +385,29 @@ function xe(n) {
|
|
|
363
385
|
return { value: s, rest: u };
|
|
364
386
|
};
|
|
365
387
|
}
|
|
366
|
-
const
|
|
388
|
+
const Te = 6048e5, st = 864e5, pe = Symbol.for("constructDateFrom");
|
|
367
389
|
function p(n, t) {
|
|
368
|
-
return typeof n == "function" ? n(t) : n && typeof n == "object" &&
|
|
390
|
+
return typeof n == "function" ? n(t) : n && typeof n == "object" && pe in n ? n[pe](t) : n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
369
391
|
}
|
|
370
|
-
function
|
|
392
|
+
function $(n, ...t) {
|
|
371
393
|
const r = p.bind(
|
|
372
394
|
null,
|
|
373
395
|
t.find((e) => typeof e == "object")
|
|
374
396
|
);
|
|
375
397
|
return t.map(r);
|
|
376
398
|
}
|
|
377
|
-
let
|
|
378
|
-
function
|
|
379
|
-
return
|
|
399
|
+
let ut = {};
|
|
400
|
+
function G() {
|
|
401
|
+
return ut;
|
|
380
402
|
}
|
|
381
403
|
function l(n, t) {
|
|
382
404
|
return p(t || n, n);
|
|
383
405
|
}
|
|
384
|
-
function
|
|
385
|
-
const r =
|
|
406
|
+
function H(n, t) {
|
|
407
|
+
const r = G(), e = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = l(n, t?.in), o = a.getDay(), s = (o < e ? 7 : 0) + o - e;
|
|
386
408
|
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
387
409
|
}
|
|
388
|
-
const
|
|
410
|
+
const ct = {
|
|
389
411
|
lessThanXSeconds: {
|
|
390
412
|
one: "less than a second",
|
|
391
413
|
other: "less than {{count}} seconds"
|
|
@@ -447,26 +469,26 @@ const ut = {
|
|
|
447
469
|
one: "almost 1 year",
|
|
448
470
|
other: "almost {{count}} years"
|
|
449
471
|
}
|
|
450
|
-
},
|
|
472
|
+
}, dt = (n, t, r) => {
|
|
451
473
|
let e;
|
|
452
|
-
const a =
|
|
474
|
+
const a = ct[n];
|
|
453
475
|
return typeof a == "string" ? e = a : t === 1 ? e = a.one : e = a.other.replace("{{count}}", t.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
454
|
-
},
|
|
476
|
+
}, lt = {
|
|
455
477
|
lastWeek: "'last' eeee 'at' p",
|
|
456
478
|
yesterday: "'yesterday at' p",
|
|
457
479
|
today: "'today at' p",
|
|
458
480
|
tomorrow: "'tomorrow at' p",
|
|
459
481
|
nextWeek: "eeee 'at' p",
|
|
460
482
|
other: "P"
|
|
461
|
-
},
|
|
483
|
+
}, ht = (n, t, r, e) => lt[n], mt = {
|
|
462
484
|
narrow: ["B", "A"],
|
|
463
485
|
abbreviated: ["BC", "AD"],
|
|
464
486
|
wide: ["Before Christ", "Anno Domini"]
|
|
465
|
-
},
|
|
487
|
+
}, ft = {
|
|
466
488
|
narrow: ["1", "2", "3", "4"],
|
|
467
489
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
468
490
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
469
|
-
},
|
|
491
|
+
}, gt = {
|
|
470
492
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
471
493
|
abbreviated: [
|
|
472
494
|
"Jan",
|
|
@@ -496,7 +518,7 @@ const ut = {
|
|
|
496
518
|
"November",
|
|
497
519
|
"December"
|
|
498
520
|
]
|
|
499
|
-
},
|
|
521
|
+
}, pt = {
|
|
500
522
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
501
523
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
502
524
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -509,7 +531,7 @@ const ut = {
|
|
|
509
531
|
"Friday",
|
|
510
532
|
"Saturday"
|
|
511
533
|
]
|
|
512
|
-
},
|
|
534
|
+
}, yt = {
|
|
513
535
|
narrow: {
|
|
514
536
|
am: "a",
|
|
515
537
|
pm: "p",
|
|
@@ -540,7 +562,7 @@ const ut = {
|
|
|
540
562
|
evening: "evening",
|
|
541
563
|
night: "night"
|
|
542
564
|
}
|
|
543
|
-
},
|
|
565
|
+
}, bt = {
|
|
544
566
|
narrow: {
|
|
545
567
|
am: "a",
|
|
546
568
|
pm: "p",
|
|
@@ -571,7 +593,7 @@ const ut = {
|
|
|
571
593
|
evening: "in the evening",
|
|
572
594
|
night: "at night"
|
|
573
595
|
}
|
|
574
|
-
},
|
|
596
|
+
}, wt = (n, t) => {
|
|
575
597
|
const r = Number(n), e = r % 100;
|
|
576
598
|
if (e > 20 || e < 10)
|
|
577
599
|
switch (e % 10) {
|
|
@@ -583,44 +605,44 @@ const ut = {
|
|
|
583
605
|
return r + "rd";
|
|
584
606
|
}
|
|
585
607
|
return r + "th";
|
|
586
|
-
},
|
|
587
|
-
ordinalNumber:
|
|
588
|
-
era:
|
|
589
|
-
values:
|
|
608
|
+
}, vt = {
|
|
609
|
+
ordinalNumber: wt,
|
|
610
|
+
era: k({
|
|
611
|
+
values: mt,
|
|
590
612
|
defaultWidth: "wide"
|
|
591
613
|
}),
|
|
592
|
-
quarter:
|
|
593
|
-
values:
|
|
614
|
+
quarter: k({
|
|
615
|
+
values: ft,
|
|
594
616
|
defaultWidth: "wide",
|
|
595
617
|
argumentCallback: (n) => n - 1
|
|
596
618
|
}),
|
|
597
|
-
month:
|
|
598
|
-
values: ft,
|
|
599
|
-
defaultWidth: "wide"
|
|
600
|
-
}),
|
|
601
|
-
day: S({
|
|
619
|
+
month: k({
|
|
602
620
|
values: gt,
|
|
603
621
|
defaultWidth: "wide"
|
|
604
622
|
}),
|
|
605
|
-
|
|
623
|
+
day: k({
|
|
606
624
|
values: pt,
|
|
625
|
+
defaultWidth: "wide"
|
|
626
|
+
}),
|
|
627
|
+
dayPeriod: k({
|
|
628
|
+
values: yt,
|
|
607
629
|
defaultWidth: "wide",
|
|
608
|
-
formattingValues:
|
|
630
|
+
formattingValues: bt,
|
|
609
631
|
defaultFormattingWidth: "wide"
|
|
610
632
|
})
|
|
611
|
-
},
|
|
633
|
+
}, Mt = /^(\d+)(th|st|nd|rd)?/i, St = /\d+/i, kt = {
|
|
612
634
|
narrow: /^(b|a)/i,
|
|
613
635
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
614
636
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
615
|
-
}, kt = {
|
|
616
|
-
any: [/^b/i, /^(a|c)/i]
|
|
617
637
|
}, Dt = {
|
|
638
|
+
any: [/^b/i, /^(a|c)/i]
|
|
639
|
+
}, xt = {
|
|
618
640
|
narrow: /^[1234]/i,
|
|
619
641
|
abbreviated: /^q[1234]/i,
|
|
620
642
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
621
|
-
}, xt = {
|
|
622
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
623
643
|
}, Ot = {
|
|
644
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
645
|
+
}, Pt = {
|
|
624
646
|
narrow: /^[jfmasond]/i,
|
|
625
647
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
626
648
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
@@ -653,18 +675,18 @@ const ut = {
|
|
|
653
675
|
/^n/i,
|
|
654
676
|
/^d/i
|
|
655
677
|
]
|
|
656
|
-
},
|
|
678
|
+
}, Wt = {
|
|
657
679
|
narrow: /^[smtwf]/i,
|
|
658
680
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
659
681
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
660
682
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
661
|
-
},
|
|
683
|
+
}, Nt = {
|
|
662
684
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
663
685
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
664
|
-
},
|
|
686
|
+
}, jt = {
|
|
665
687
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
666
688
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
667
|
-
},
|
|
689
|
+
}, Ct = {
|
|
668
690
|
any: {
|
|
669
691
|
am: /^a/i,
|
|
670
692
|
pm: /^p/i,
|
|
@@ -675,83 +697,83 @@ const ut = {
|
|
|
675
697
|
evening: /evening/i,
|
|
676
698
|
night: /night/i
|
|
677
699
|
}
|
|
678
|
-
},
|
|
679
|
-
ordinalNumber:
|
|
680
|
-
matchPattern:
|
|
681
|
-
parsePattern:
|
|
700
|
+
}, Yt = {
|
|
701
|
+
ordinalNumber: Pe({
|
|
702
|
+
matchPattern: Mt,
|
|
703
|
+
parsePattern: St,
|
|
682
704
|
valueCallback: (n) => parseInt(n, 10)
|
|
683
705
|
}),
|
|
684
|
-
era:
|
|
685
|
-
matchPatterns:
|
|
706
|
+
era: D({
|
|
707
|
+
matchPatterns: kt,
|
|
686
708
|
defaultMatchWidth: "wide",
|
|
687
|
-
parsePatterns:
|
|
709
|
+
parsePatterns: Dt,
|
|
688
710
|
defaultParseWidth: "any"
|
|
689
711
|
}),
|
|
690
|
-
quarter:
|
|
691
|
-
matchPatterns:
|
|
712
|
+
quarter: D({
|
|
713
|
+
matchPatterns: xt,
|
|
692
714
|
defaultMatchWidth: "wide",
|
|
693
|
-
parsePatterns:
|
|
715
|
+
parsePatterns: Ot,
|
|
694
716
|
defaultParseWidth: "any",
|
|
695
717
|
valueCallback: (n) => n + 1
|
|
696
718
|
}),
|
|
697
|
-
month:
|
|
698
|
-
matchPatterns:
|
|
719
|
+
month: D({
|
|
720
|
+
matchPatterns: Pt,
|
|
699
721
|
defaultMatchWidth: "wide",
|
|
700
722
|
parsePatterns: Tt,
|
|
701
723
|
defaultParseWidth: "any"
|
|
702
724
|
}),
|
|
703
|
-
day:
|
|
704
|
-
matchPatterns:
|
|
725
|
+
day: D({
|
|
726
|
+
matchPatterns: Wt,
|
|
705
727
|
defaultMatchWidth: "wide",
|
|
706
|
-
parsePatterns:
|
|
728
|
+
parsePatterns: Nt,
|
|
707
729
|
defaultParseWidth: "any"
|
|
708
730
|
}),
|
|
709
|
-
dayPeriod:
|
|
710
|
-
matchPatterns:
|
|
731
|
+
dayPeriod: D({
|
|
732
|
+
matchPatterns: jt,
|
|
711
733
|
defaultMatchWidth: "any",
|
|
712
|
-
parsePatterns:
|
|
734
|
+
parsePatterns: Ct,
|
|
713
735
|
defaultParseWidth: "any"
|
|
714
736
|
})
|
|
715
|
-
},
|
|
737
|
+
}, Ft = {
|
|
716
738
|
full: "EEEE, MMMM do, y",
|
|
717
739
|
long: "MMMM do, y",
|
|
718
740
|
medium: "MMM d, y",
|
|
719
741
|
short: "MM/dd/yyyy"
|
|
720
|
-
},
|
|
742
|
+
}, Et = {
|
|
721
743
|
full: "h:mm:ss a zzzz",
|
|
722
744
|
long: "h:mm:ss a z",
|
|
723
745
|
medium: "h:mm:ss a",
|
|
724
746
|
short: "h:mm a"
|
|
725
|
-
},
|
|
747
|
+
}, zt = {
|
|
726
748
|
full: "{{date}} 'at' {{time}}",
|
|
727
749
|
long: "{{date}} 'at' {{time}}",
|
|
728
750
|
medium: "{{date}}, {{time}}",
|
|
729
751
|
short: "{{date}}, {{time}}"
|
|
730
|
-
},
|
|
731
|
-
date:
|
|
732
|
-
formats:
|
|
752
|
+
}, Ht = {
|
|
753
|
+
date: z({
|
|
754
|
+
formats: Ft,
|
|
733
755
|
defaultWidth: "full"
|
|
734
756
|
}),
|
|
735
|
-
time:
|
|
736
|
-
formats:
|
|
757
|
+
time: z({
|
|
758
|
+
formats: Et,
|
|
737
759
|
defaultWidth: "full"
|
|
738
760
|
}),
|
|
739
|
-
dateTime:
|
|
740
|
-
formats:
|
|
761
|
+
dateTime: z({
|
|
762
|
+
formats: zt,
|
|
741
763
|
defaultWidth: "full"
|
|
742
764
|
})
|
|
743
|
-
},
|
|
765
|
+
}, E = {
|
|
744
766
|
code: "en-US",
|
|
745
|
-
formatDistance:
|
|
746
|
-
formatLong:
|
|
747
|
-
formatRelative:
|
|
748
|
-
localize:
|
|
749
|
-
match:
|
|
767
|
+
formatDistance: dt,
|
|
768
|
+
formatLong: Ht,
|
|
769
|
+
formatRelative: ht,
|
|
770
|
+
localize: vt,
|
|
771
|
+
match: Yt,
|
|
750
772
|
options: {
|
|
751
773
|
weekStartsOn: 0,
|
|
752
774
|
firstWeekContainsDate: 1
|
|
753
775
|
}
|
|
754
|
-
},
|
|
776
|
+
}, $t = {
|
|
755
777
|
lessThanXSeconds: {
|
|
756
778
|
one: "menos de um segundo",
|
|
757
779
|
other: "menos de {{count}} segundos"
|
|
@@ -813,39 +835,39 @@ const ut = {
|
|
|
813
835
|
one: "quase 1 ano",
|
|
814
836
|
other: "quase {{count}} anos"
|
|
815
837
|
}
|
|
816
|
-
},
|
|
838
|
+
}, Lt = (n, t, r) => {
|
|
817
839
|
let e;
|
|
818
|
-
const a =
|
|
840
|
+
const a = $t[n];
|
|
819
841
|
return typeof a == "string" ? e = a : t === 1 ? e = a.one : e = a.other.replace("{{count}}", String(t)), r?.addSuffix ? r.comparison && r.comparison > 0 ? "em " + e : "há " + e : e;
|
|
820
|
-
},
|
|
842
|
+
}, qt = {
|
|
821
843
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
822
844
|
long: "d 'de' MMMM 'de' y",
|
|
823
845
|
medium: "d MMM y",
|
|
824
846
|
short: "dd/MM/yyyy"
|
|
825
|
-
},
|
|
847
|
+
}, Ut = {
|
|
826
848
|
full: "HH:mm:ss zzzz",
|
|
827
849
|
long: "HH:mm:ss z",
|
|
828
850
|
medium: "HH:mm:ss",
|
|
829
851
|
short: "HH:mm"
|
|
830
|
-
},
|
|
852
|
+
}, It = {
|
|
831
853
|
full: "{{date}} 'às' {{time}}",
|
|
832
854
|
long: "{{date}} 'às' {{time}}",
|
|
833
855
|
medium: "{{date}}, {{time}}",
|
|
834
856
|
short: "{{date}}, {{time}}"
|
|
835
|
-
},
|
|
836
|
-
date:
|
|
837
|
-
formats: Lt,
|
|
838
|
-
defaultWidth: "full"
|
|
839
|
-
}),
|
|
840
|
-
time: H({
|
|
857
|
+
}, At = {
|
|
858
|
+
date: z({
|
|
841
859
|
formats: qt,
|
|
842
860
|
defaultWidth: "full"
|
|
843
861
|
}),
|
|
844
|
-
|
|
862
|
+
time: z({
|
|
845
863
|
formats: Ut,
|
|
846
864
|
defaultWidth: "full"
|
|
865
|
+
}),
|
|
866
|
+
dateTime: z({
|
|
867
|
+
formats: It,
|
|
868
|
+
defaultWidth: "full"
|
|
847
869
|
})
|
|
848
|
-
},
|
|
870
|
+
}, Bt = {
|
|
849
871
|
lastWeek: (n) => {
|
|
850
872
|
const t = n.getDay();
|
|
851
873
|
return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
|
|
@@ -855,18 +877,18 @@ const ut = {
|
|
|
855
877
|
tomorrow: "'amanhã às' p",
|
|
856
878
|
nextWeek: "eeee 'às' p",
|
|
857
879
|
other: "P"
|
|
858
|
-
},
|
|
859
|
-
const a =
|
|
880
|
+
}, Xt = (n, t, r, e) => {
|
|
881
|
+
const a = Bt[n];
|
|
860
882
|
return typeof a == "function" ? a(t) : a;
|
|
861
883
|
}, Zt = {
|
|
862
884
|
narrow: ["AC", "DC"],
|
|
863
885
|
abbreviated: ["AC", "DC"],
|
|
864
886
|
wide: ["antes de cristo", "depois de cristo"]
|
|
865
|
-
},
|
|
887
|
+
}, Gt = {
|
|
866
888
|
narrow: ["1", "2", "3", "4"],
|
|
867
889
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
868
890
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
869
|
-
},
|
|
891
|
+
}, _t = {
|
|
870
892
|
narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
|
|
871
893
|
abbreviated: [
|
|
872
894
|
"jan",
|
|
@@ -917,7 +939,7 @@ const ut = {
|
|
|
917
939
|
"sexta-feira",
|
|
918
940
|
"sábado"
|
|
919
941
|
]
|
|
920
|
-
},
|
|
942
|
+
}, Qt = {
|
|
921
943
|
narrow: {
|
|
922
944
|
am: "a",
|
|
923
945
|
pm: "p",
|
|
@@ -948,7 +970,7 @@ const ut = {
|
|
|
948
970
|
evening: "tarde",
|
|
949
971
|
night: "noite"
|
|
950
972
|
}
|
|
951
|
-
},
|
|
973
|
+
}, Jt = {
|
|
952
974
|
narrow: {
|
|
953
975
|
am: "a",
|
|
954
976
|
pm: "p",
|
|
@@ -979,52 +1001,52 @@ const ut = {
|
|
|
979
1001
|
evening: "da tarde",
|
|
980
1002
|
night: "da noite"
|
|
981
1003
|
}
|
|
982
|
-
},
|
|
1004
|
+
}, Vt = (n, t) => {
|
|
983
1005
|
const r = Number(n);
|
|
984
1006
|
return t?.unit === "week" ? r + "ª" : r + "º";
|
|
985
|
-
},
|
|
986
|
-
ordinalNumber:
|
|
987
|
-
era:
|
|
1007
|
+
}, Kt = {
|
|
1008
|
+
ordinalNumber: Vt,
|
|
1009
|
+
era: k({
|
|
988
1010
|
values: Zt,
|
|
989
1011
|
defaultWidth: "wide"
|
|
990
1012
|
}),
|
|
991
|
-
quarter:
|
|
992
|
-
values:
|
|
1013
|
+
quarter: k({
|
|
1014
|
+
values: Gt,
|
|
993
1015
|
defaultWidth: "wide",
|
|
994
1016
|
argumentCallback: (n) => n - 1
|
|
995
1017
|
}),
|
|
996
|
-
month:
|
|
997
|
-
values:
|
|
1018
|
+
month: k({
|
|
1019
|
+
values: _t,
|
|
998
1020
|
defaultWidth: "wide"
|
|
999
1021
|
}),
|
|
1000
|
-
day:
|
|
1022
|
+
day: k({
|
|
1001
1023
|
values: Rt,
|
|
1002
1024
|
defaultWidth: "wide"
|
|
1003
1025
|
}),
|
|
1004
|
-
dayPeriod:
|
|
1005
|
-
values:
|
|
1026
|
+
dayPeriod: k({
|
|
1027
|
+
values: Qt,
|
|
1006
1028
|
defaultWidth: "wide",
|
|
1007
|
-
formattingValues:
|
|
1029
|
+
formattingValues: Jt,
|
|
1008
1030
|
defaultFormattingWidth: "wide"
|
|
1009
1031
|
})
|
|
1010
|
-
},
|
|
1032
|
+
}, en = /^(\d+)[ºªo]?/i, tn = /\d+/i, nn = {
|
|
1011
1033
|
narrow: /^(ac|dc|a|d)/i,
|
|
1012
1034
|
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
1013
1035
|
wide: /^(antes de cristo|depois de cristo)/i
|
|
1014
|
-
},
|
|
1036
|
+
}, rn = {
|
|
1015
1037
|
any: [/^ac/i, /^dc/i],
|
|
1016
1038
|
wide: [/^antes de cristo/i, /^depois de cristo/i]
|
|
1017
|
-
},
|
|
1039
|
+
}, an = {
|
|
1018
1040
|
narrow: /^[1234]/i,
|
|
1019
1041
|
abbreviated: /^T[1234]/i,
|
|
1020
1042
|
wide: /^[1234](º)? trimestre/i
|
|
1021
|
-
}, an = {
|
|
1022
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1023
1043
|
}, on = {
|
|
1044
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1045
|
+
}, sn = {
|
|
1024
1046
|
narrow: /^[jfmajsond]/i,
|
|
1025
1047
|
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
1026
1048
|
wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
|
|
1027
|
-
},
|
|
1049
|
+
}, un = {
|
|
1028
1050
|
narrow: [
|
|
1029
1051
|
/^j/i,
|
|
1030
1052
|
/^f/i,
|
|
@@ -1053,19 +1075,19 @@ const ut = {
|
|
|
1053
1075
|
/^nov/i,
|
|
1054
1076
|
/^dez/i
|
|
1055
1077
|
]
|
|
1056
|
-
},
|
|
1078
|
+
}, cn = {
|
|
1057
1079
|
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1058
1080
|
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1059
1081
|
abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
|
|
1060
1082
|
wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
|
|
1061
|
-
},
|
|
1083
|
+
}, dn = {
|
|
1062
1084
|
short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
|
|
1063
1085
|
narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
|
|
1064
1086
|
any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]
|
|
1065
|
-
},
|
|
1087
|
+
}, ln = {
|
|
1066
1088
|
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
1067
1089
|
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
1068
|
-
},
|
|
1090
|
+
}, hn = {
|
|
1069
1091
|
any: {
|
|
1070
1092
|
am: /^a/i,
|
|
1071
1093
|
pm: /^p/i,
|
|
@@ -1076,56 +1098,56 @@ const ut = {
|
|
|
1076
1098
|
evening: /tarde/i,
|
|
1077
1099
|
night: /noite/i
|
|
1078
1100
|
}
|
|
1079
|
-
},
|
|
1080
|
-
ordinalNumber:
|
|
1081
|
-
matchPattern:
|
|
1082
|
-
parsePattern:
|
|
1101
|
+
}, mn = {
|
|
1102
|
+
ordinalNumber: Pe({
|
|
1103
|
+
matchPattern: en,
|
|
1104
|
+
parsePattern: tn,
|
|
1083
1105
|
valueCallback: (n) => parseInt(n, 10)
|
|
1084
1106
|
}),
|
|
1085
|
-
era:
|
|
1086
|
-
matchPatterns:
|
|
1107
|
+
era: D({
|
|
1108
|
+
matchPatterns: nn,
|
|
1087
1109
|
defaultMatchWidth: "wide",
|
|
1088
|
-
parsePatterns:
|
|
1110
|
+
parsePatterns: rn,
|
|
1089
1111
|
defaultParseWidth: "any"
|
|
1090
1112
|
}),
|
|
1091
|
-
quarter:
|
|
1092
|
-
matchPatterns:
|
|
1113
|
+
quarter: D({
|
|
1114
|
+
matchPatterns: an,
|
|
1093
1115
|
defaultMatchWidth: "wide",
|
|
1094
|
-
parsePatterns:
|
|
1116
|
+
parsePatterns: on,
|
|
1095
1117
|
defaultParseWidth: "any",
|
|
1096
1118
|
valueCallback: (n) => n + 1
|
|
1097
1119
|
}),
|
|
1098
|
-
month:
|
|
1099
|
-
matchPatterns:
|
|
1120
|
+
month: D({
|
|
1121
|
+
matchPatterns: sn,
|
|
1100
1122
|
defaultMatchWidth: "wide",
|
|
1101
|
-
parsePatterns:
|
|
1123
|
+
parsePatterns: un,
|
|
1102
1124
|
defaultParseWidth: "any"
|
|
1103
1125
|
}),
|
|
1104
|
-
day:
|
|
1105
|
-
matchPatterns:
|
|
1126
|
+
day: D({
|
|
1127
|
+
matchPatterns: cn,
|
|
1106
1128
|
defaultMatchWidth: "wide",
|
|
1107
|
-
parsePatterns:
|
|
1129
|
+
parsePatterns: dn,
|
|
1108
1130
|
defaultParseWidth: "any"
|
|
1109
1131
|
}),
|
|
1110
|
-
dayPeriod:
|
|
1111
|
-
matchPatterns:
|
|
1132
|
+
dayPeriod: D({
|
|
1133
|
+
matchPatterns: ln,
|
|
1112
1134
|
defaultMatchWidth: "any",
|
|
1113
|
-
parsePatterns:
|
|
1135
|
+
parsePatterns: hn,
|
|
1114
1136
|
defaultParseWidth: "any"
|
|
1115
1137
|
})
|
|
1116
|
-
},
|
|
1138
|
+
}, fn = {
|
|
1117
1139
|
code: "pt-BR",
|
|
1118
|
-
formatDistance:
|
|
1119
|
-
formatLong:
|
|
1120
|
-
formatRelative:
|
|
1121
|
-
localize:
|
|
1122
|
-
match:
|
|
1140
|
+
formatDistance: Lt,
|
|
1141
|
+
formatLong: At,
|
|
1142
|
+
formatRelative: Xt,
|
|
1143
|
+
localize: Kt,
|
|
1144
|
+
match: mn,
|
|
1123
1145
|
options: {
|
|
1124
1146
|
weekStartsOn: 0,
|
|
1125
1147
|
firstWeekContainsDate: 1
|
|
1126
1148
|
}
|
|
1127
1149
|
};
|
|
1128
|
-
function
|
|
1150
|
+
function gn(n, t, r = "long") {
|
|
1129
1151
|
return new Intl.DateTimeFormat("en-US", {
|
|
1130
1152
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
1131
1153
|
hour: "numeric",
|
|
@@ -1133,74 +1155,74 @@ function fn(n, t, r = "long") {
|
|
|
1133
1155
|
timeZoneName: r
|
|
1134
1156
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
1135
1157
|
}
|
|
1136
|
-
const
|
|
1137
|
-
function
|
|
1158
|
+
const pn = {}, A = {};
|
|
1159
|
+
function N(n, t) {
|
|
1138
1160
|
try {
|
|
1139
|
-
const r = (
|
|
1161
|
+
const r = (pn[n] ||= new Intl.DateTimeFormat("en-US", {
|
|
1140
1162
|
timeZone: n,
|
|
1141
1163
|
timeZoneName: "longOffset"
|
|
1142
1164
|
}).format)(t).split("GMT")[1];
|
|
1143
|
-
return r in
|
|
1165
|
+
return r in A ? A[r] : ye(r, r.split(":"));
|
|
1144
1166
|
} catch {
|
|
1145
|
-
if (n in
|
|
1146
|
-
const r = n?.match(
|
|
1147
|
-
return r ?
|
|
1167
|
+
if (n in A) return A[n];
|
|
1168
|
+
const r = n?.match(yn);
|
|
1169
|
+
return r ? ye(n, r.slice(1)) : NaN;
|
|
1148
1170
|
}
|
|
1149
1171
|
}
|
|
1150
|
-
const
|
|
1151
|
-
function
|
|
1172
|
+
const yn = /([+-]\d\d):?(\d\d)?/;
|
|
1173
|
+
function ye(n, t) {
|
|
1152
1174
|
const r = +(t[0] || 0), e = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
1153
|
-
return
|
|
1175
|
+
return A[n] = r * 60 + e > 0 ? r * 60 + e + a : r * 60 - e - a;
|
|
1154
1176
|
}
|
|
1155
|
-
class
|
|
1177
|
+
class x extends Date {
|
|
1156
1178
|
//#region static
|
|
1157
1179
|
constructor(...t) {
|
|
1158
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(
|
|
1180
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(N(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), We(this), ae(this)) : this.setTime(Date.now());
|
|
1159
1181
|
}
|
|
1160
1182
|
static tz(t, ...r) {
|
|
1161
|
-
return r.length ? new
|
|
1183
|
+
return r.length ? new x(...r, t) : new x(Date.now(), t);
|
|
1162
1184
|
}
|
|
1163
1185
|
//#endregion
|
|
1164
1186
|
//#region time zone
|
|
1165
1187
|
withTimeZone(t) {
|
|
1166
|
-
return new
|
|
1188
|
+
return new x(+this, t);
|
|
1167
1189
|
}
|
|
1168
1190
|
getTimezoneOffset() {
|
|
1169
|
-
const t = -
|
|
1191
|
+
const t = -N(this.timeZone, this);
|
|
1170
1192
|
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
1171
1193
|
}
|
|
1172
1194
|
//#endregion
|
|
1173
1195
|
//#region time
|
|
1174
1196
|
setTime(t) {
|
|
1175
|
-
return Date.prototype.setTime.apply(this, arguments),
|
|
1197
|
+
return Date.prototype.setTime.apply(this, arguments), ae(this), +this;
|
|
1176
1198
|
}
|
|
1177
1199
|
//#endregion
|
|
1178
1200
|
//#region date-fns integration
|
|
1179
|
-
[
|
|
1180
|
-
return new
|
|
1201
|
+
[Symbol.for("constructDateFrom")](t) {
|
|
1202
|
+
return new x(+new Date(t), this.timeZone);
|
|
1181
1203
|
}
|
|
1182
1204
|
//#endregion
|
|
1183
1205
|
}
|
|
1184
|
-
const
|
|
1206
|
+
const be = /^(get|set)(?!UTC)/;
|
|
1185
1207
|
Object.getOwnPropertyNames(Date.prototype).forEach((n) => {
|
|
1186
|
-
if (!
|
|
1187
|
-
const t = n.replace(
|
|
1188
|
-
|
|
1208
|
+
if (!be.test(n)) return;
|
|
1209
|
+
const t = n.replace(be, "$1UTC");
|
|
1210
|
+
x.prototype[t] && (n.startsWith("get") ? x.prototype[n] = function() {
|
|
1189
1211
|
return this.internal[t]();
|
|
1190
|
-
} : (
|
|
1191
|
-
return Date.prototype[t].apply(this.internal, arguments),
|
|
1192
|
-
},
|
|
1193
|
-
return Date.prototype[t].apply(this, arguments),
|
|
1212
|
+
} : (x.prototype[n] = function() {
|
|
1213
|
+
return Date.prototype[t].apply(this.internal, arguments), bn(this), +this;
|
|
1214
|
+
}, x.prototype[t] = function() {
|
|
1215
|
+
return Date.prototype[t].apply(this, arguments), ae(this), +this;
|
|
1194
1216
|
}));
|
|
1195
1217
|
});
|
|
1196
|
-
function
|
|
1197
|
-
n.internal.setTime(+n), n.internal.setUTCSeconds(n.internal.getUTCSeconds() - Math.round(-
|
|
1218
|
+
function ae(n) {
|
|
1219
|
+
n.internal.setTime(+n), n.internal.setUTCSeconds(n.internal.getUTCSeconds() - Math.round(-N(n.timeZone, n) * 60));
|
|
1198
1220
|
}
|
|
1199
|
-
function
|
|
1200
|
-
Date.prototype.setFullYear.call(n, n.internal.getUTCFullYear(), n.internal.getUTCMonth(), n.internal.getUTCDate()), Date.prototype.setHours.call(n, n.internal.getUTCHours(), n.internal.getUTCMinutes(), n.internal.getUTCSeconds(), n.internal.getUTCMilliseconds()),
|
|
1221
|
+
function bn(n) {
|
|
1222
|
+
Date.prototype.setFullYear.call(n, n.internal.getUTCFullYear(), n.internal.getUTCMonth(), n.internal.getUTCDate()), Date.prototype.setHours.call(n, n.internal.getUTCHours(), n.internal.getUTCMinutes(), n.internal.getUTCSeconds(), n.internal.getUTCMilliseconds()), We(n);
|
|
1201
1223
|
}
|
|
1202
|
-
function
|
|
1203
|
-
const t =
|
|
1224
|
+
function We(n) {
|
|
1225
|
+
const t = N(n.timeZone, n), r = t > 0 ? Math.floor(t) : Math.ceil(t), e = /* @__PURE__ */ new Date(+n);
|
|
1204
1226
|
e.setUTCHours(e.getUTCHours() - 1);
|
|
1205
1227
|
const a = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), o = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = a - o, u = Date.prototype.getHours.apply(n) !== n.internal.getUTCHours();
|
|
1206
1228
|
s && u && n.internal.setUTCMinutes(n.internal.getUTCMinutes() + s);
|
|
@@ -1208,19 +1230,19 @@ function Te(n) {
|
|
|
1208
1230
|
h && Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + h);
|
|
1209
1231
|
const v = /* @__PURE__ */ new Date(+n);
|
|
1210
1232
|
v.setUTCSeconds(0);
|
|
1211
|
-
const f = a > 0 ? v.getSeconds() : (v.getSeconds() - 60) % 60, m = Math.round(-(
|
|
1233
|
+
const f = a > 0 ? v.getSeconds() : (v.getSeconds() - 60) % 60, m = Math.round(-(N(n.timeZone, n) * 60)) % 60;
|
|
1212
1234
|
(m || f) && (n.internal.setUTCSeconds(n.internal.getUTCSeconds() + m), Date.prototype.setUTCSeconds.call(n, Date.prototype.getUTCSeconds.call(n) + m + f));
|
|
1213
|
-
const M =
|
|
1214
|
-
if (
|
|
1215
|
-
Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) +
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1235
|
+
const M = N(n.timeZone, n), C = M > 0 ? Math.floor(M) : Math.ceil(M), Q = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - C, L = C !== r, _ = Q - h;
|
|
1236
|
+
if (L && _) {
|
|
1237
|
+
Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + _);
|
|
1238
|
+
const q = N(n.timeZone, n), J = q > 0 ? Math.floor(q) : Math.ceil(q), U = C - J;
|
|
1239
|
+
U && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + U), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + U));
|
|
1218
1240
|
}
|
|
1219
1241
|
}
|
|
1220
|
-
class
|
|
1242
|
+
class j extends x {
|
|
1221
1243
|
//#region static
|
|
1222
1244
|
static tz(t, ...r) {
|
|
1223
|
-
return r.length ? new
|
|
1245
|
+
return r.length ? new j(...r, t) : new j(Date.now(), t);
|
|
1224
1246
|
}
|
|
1225
1247
|
//#endregion
|
|
1226
1248
|
//#region representation
|
|
@@ -1237,7 +1259,7 @@ class N extends D {
|
|
|
1237
1259
|
}
|
|
1238
1260
|
toTimeString() {
|
|
1239
1261
|
const t = this.internal.toUTCString().split(" ")[4], [r, e, a] = this.tzComponents();
|
|
1240
|
-
return `${t} GMT${r}${e}${a} (${
|
|
1262
|
+
return `${t} GMT${r}${e}${a} (${gn(this.timeZone, this)})`;
|
|
1241
1263
|
}
|
|
1242
1264
|
toLocaleString(t, r) {
|
|
1243
1265
|
return Date.prototype.toLocaleString.call(this, t, {
|
|
@@ -1265,19 +1287,19 @@ class N extends D {
|
|
|
1265
1287
|
}
|
|
1266
1288
|
//#endregion
|
|
1267
1289
|
withTimeZone(t) {
|
|
1268
|
-
return new
|
|
1290
|
+
return new j(+this, t);
|
|
1269
1291
|
}
|
|
1270
1292
|
//#region date-fns integration
|
|
1271
|
-
[
|
|
1272
|
-
return new
|
|
1293
|
+
[Symbol.for("constructDateFrom")](t) {
|
|
1294
|
+
return new j(+new Date(t), this.timeZone);
|
|
1273
1295
|
}
|
|
1274
1296
|
//#endregion
|
|
1275
1297
|
}
|
|
1276
|
-
function
|
|
1298
|
+
function Ne(n, t, r) {
|
|
1277
1299
|
const e = l(n, r?.in);
|
|
1278
1300
|
return isNaN(t) ? p(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
1279
1301
|
}
|
|
1280
|
-
function
|
|
1302
|
+
function je(n, t, r) {
|
|
1281
1303
|
const e = l(n, r?.in);
|
|
1282
1304
|
if (isNaN(t)) return p(n, NaN);
|
|
1283
1305
|
if (!t)
|
|
@@ -1291,18 +1313,18 @@ function We(n, t, r) {
|
|
|
1291
1313
|
a
|
|
1292
1314
|
), e);
|
|
1293
1315
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return
|
|
1316
|
+
function X(n, t) {
|
|
1317
|
+
return H(n, { ...t, weekStartsOn: 1 });
|
|
1296
1318
|
}
|
|
1297
|
-
function
|
|
1319
|
+
function Ce(n, t) {
|
|
1298
1320
|
const r = l(n, t?.in), e = r.getFullYear(), a = p(r, 0);
|
|
1299
1321
|
a.setFullYear(e + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1300
|
-
const o =
|
|
1322
|
+
const o = X(a), s = p(r, 0);
|
|
1301
1323
|
s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0);
|
|
1302
|
-
const u =
|
|
1324
|
+
const u = X(s);
|
|
1303
1325
|
return r.getTime() >= o.getTime() ? e + 1 : r.getTime() >= u.getTime() ? e : e - 1;
|
|
1304
1326
|
}
|
|
1305
|
-
function
|
|
1327
|
+
function we(n) {
|
|
1306
1328
|
const t = l(n), r = new Date(
|
|
1307
1329
|
Date.UTC(
|
|
1308
1330
|
t.getFullYear(),
|
|
@@ -1316,29 +1338,29 @@ function ye(n) {
|
|
|
1316
1338
|
);
|
|
1317
1339
|
return r.setUTCFullYear(t.getFullYear()), +n - +r;
|
|
1318
1340
|
}
|
|
1319
|
-
function
|
|
1341
|
+
function Z(n, t) {
|
|
1320
1342
|
const r = l(n, t?.in);
|
|
1321
1343
|
return r.setHours(0, 0, 0, 0), r;
|
|
1322
1344
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const [e, a] =
|
|
1345
|
+
function Ye(n, t, r) {
|
|
1346
|
+
const [e, a] = $(
|
|
1325
1347
|
r?.in,
|
|
1326
1348
|
n,
|
|
1327
1349
|
t
|
|
1328
|
-
), o =
|
|
1329
|
-
return Math.round((u - h) /
|
|
1330
|
-
}
|
|
1331
|
-
function bn(n, t) {
|
|
1332
|
-
const r = Ne(n, t), e = p(n, 0);
|
|
1333
|
-
return e.setFullYear(r, 0, 4), e.setHours(0, 0, 0, 0), _(e);
|
|
1350
|
+
), o = Z(e), s = Z(a), u = +o - we(o), h = +s - we(s);
|
|
1351
|
+
return Math.round((u - h) / st);
|
|
1334
1352
|
}
|
|
1335
|
-
function wn(n, t
|
|
1336
|
-
|
|
1353
|
+
function wn(n, t) {
|
|
1354
|
+
const r = Ce(n, t), e = p(n, 0);
|
|
1355
|
+
return e.setFullYear(r, 0, 4), e.setHours(0, 0, 0, 0), X(e);
|
|
1337
1356
|
}
|
|
1338
1357
|
function vn(n, t, r) {
|
|
1339
|
-
return
|
|
1358
|
+
return Ne(n, t * 7, r);
|
|
1359
|
+
}
|
|
1360
|
+
function Mn(n, t, r) {
|
|
1361
|
+
return je(n, t * 12, r);
|
|
1340
1362
|
}
|
|
1341
|
-
function
|
|
1363
|
+
function Sn(n, t) {
|
|
1342
1364
|
let r, e = t?.in;
|
|
1343
1365
|
return n.forEach((a) => {
|
|
1344
1366
|
!e && typeof a == "object" && (e = p.bind(null, a));
|
|
@@ -1346,7 +1368,7 @@ function Mn(n, t) {
|
|
|
1346
1368
|
(!r || r < o || isNaN(+o)) && (r = o);
|
|
1347
1369
|
}), p(e, r || NaN);
|
|
1348
1370
|
}
|
|
1349
|
-
function
|
|
1371
|
+
function kn(n, t) {
|
|
1350
1372
|
let r, e = t?.in;
|
|
1351
1373
|
return n.forEach((a) => {
|
|
1352
1374
|
!e && typeof a == "object" && (e = p.bind(null, a));
|
|
@@ -1354,38 +1376,38 @@ function Sn(n, t) {
|
|
|
1354
1376
|
(!r || r > o || isNaN(+o)) && (r = o);
|
|
1355
1377
|
}), p(e, r || NaN);
|
|
1356
1378
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const [e, a] =
|
|
1379
|
+
function Dn(n, t, r) {
|
|
1380
|
+
const [e, a] = $(
|
|
1359
1381
|
r?.in,
|
|
1360
1382
|
n,
|
|
1361
1383
|
t
|
|
1362
1384
|
);
|
|
1363
|
-
return +
|
|
1385
|
+
return +Z(e) == +Z(a);
|
|
1364
1386
|
}
|
|
1365
|
-
function
|
|
1387
|
+
function Fe(n) {
|
|
1366
1388
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
1367
1389
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return !(!
|
|
1390
|
+
function xn(n) {
|
|
1391
|
+
return !(!Fe(n) && typeof n != "number" || isNaN(+l(n)));
|
|
1370
1392
|
}
|
|
1371
|
-
function
|
|
1372
|
-
const [e, a] =
|
|
1393
|
+
function On(n, t, r) {
|
|
1394
|
+
const [e, a] = $(
|
|
1373
1395
|
r?.in,
|
|
1374
1396
|
n,
|
|
1375
1397
|
t
|
|
1376
1398
|
), o = e.getFullYear() - a.getFullYear(), s = e.getMonth() - a.getMonth();
|
|
1377
1399
|
return o * 12 + s;
|
|
1378
1400
|
}
|
|
1379
|
-
function
|
|
1401
|
+
function Pn(n, t) {
|
|
1380
1402
|
const r = l(n, t?.in), e = r.getMonth();
|
|
1381
1403
|
return r.setFullYear(r.getFullYear(), e + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
1382
1404
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const [r, e] =
|
|
1405
|
+
function Ee(n, t) {
|
|
1406
|
+
const [r, e] = $(n, t.start, t.end);
|
|
1385
1407
|
return { start: r, end: e };
|
|
1386
1408
|
}
|
|
1387
1409
|
function Tn(n, t) {
|
|
1388
|
-
const { start: r, end: e } =
|
|
1410
|
+
const { start: r, end: e } = Ee(t?.in, n);
|
|
1389
1411
|
let a = +r > +e;
|
|
1390
1412
|
const o = a ? +r : +e, s = a ? e : r;
|
|
1391
1413
|
s.setHours(0, 0, 0, 0), s.setDate(1);
|
|
@@ -1395,20 +1417,20 @@ function Tn(n, t) {
|
|
|
1395
1417
|
h.push(p(r, s)), s.setMonth(s.getMonth() + u);
|
|
1396
1418
|
return a ? h.reverse() : h;
|
|
1397
1419
|
}
|
|
1398
|
-
function
|
|
1420
|
+
function Wn(n, t) {
|
|
1399
1421
|
const r = l(n, t?.in);
|
|
1400
1422
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
1401
1423
|
}
|
|
1402
|
-
function
|
|
1424
|
+
function Nn(n, t) {
|
|
1403
1425
|
const r = l(n, t?.in), e = r.getFullYear();
|
|
1404
1426
|
return r.setFullYear(e + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
|
|
1405
1427
|
}
|
|
1406
|
-
function
|
|
1428
|
+
function ze(n, t) {
|
|
1407
1429
|
const r = l(n, t?.in);
|
|
1408
1430
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
1409
1431
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const { start: r, end: e } =
|
|
1432
|
+
function jn(n, t) {
|
|
1433
|
+
const { start: r, end: e } = Ee(t?.in, n);
|
|
1412
1434
|
let a = +r > +e;
|
|
1413
1435
|
const o = a ? +r : +e, s = a ? e : r;
|
|
1414
1436
|
s.setHours(0, 0, 0, 0), s.setMonth(0, 1);
|
|
@@ -1419,41 +1441,41 @@ function Nn(n, t) {
|
|
|
1419
1441
|
return a ? h.reverse() : h;
|
|
1420
1442
|
}
|
|
1421
1443
|
function He(n, t) {
|
|
1422
|
-
const r =
|
|
1444
|
+
const r = G(), e = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = l(n, t?.in), o = a.getDay(), s = (o < e ? -7 : 0) + 6 - (o - e);
|
|
1423
1445
|
return a.setDate(a.getDate() + s), a.setHours(23, 59, 59, 999), a;
|
|
1424
1446
|
}
|
|
1425
|
-
function
|
|
1447
|
+
function Cn(n, t) {
|
|
1426
1448
|
return He(n, { ...t, weekStartsOn: 1 });
|
|
1427
1449
|
}
|
|
1428
|
-
function
|
|
1450
|
+
function Yn(n, t) {
|
|
1429
1451
|
const r = l(n, t?.in);
|
|
1430
|
-
return
|
|
1452
|
+
return Ye(r, ze(r)) + 1;
|
|
1431
1453
|
}
|
|
1432
1454
|
function $e(n, t) {
|
|
1433
|
-
const r = l(n, t?.in), e = +
|
|
1434
|
-
return Math.round(e /
|
|
1455
|
+
const r = l(n, t?.in), e = +X(r) - +wn(r);
|
|
1456
|
+
return Math.round(e / Te) + 1;
|
|
1435
1457
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const r = l(n, t?.in), e = r.getFullYear(), a =
|
|
1458
|
+
function Le(n, t) {
|
|
1459
|
+
const r = l(n, t?.in), e = r.getFullYear(), a = G(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = p(t?.in || n, 0);
|
|
1438
1460
|
s.setFullYear(e + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
1439
|
-
const u =
|
|
1461
|
+
const u = H(s, t), h = p(t?.in || n, 0);
|
|
1440
1462
|
h.setFullYear(e, 0, o), h.setHours(0, 0, 0, 0);
|
|
1441
|
-
const v =
|
|
1463
|
+
const v = H(h, t);
|
|
1442
1464
|
return +r >= +u ? e + 1 : +r >= +v ? e : e - 1;
|
|
1443
1465
|
}
|
|
1444
|
-
function
|
|
1445
|
-
const r =
|
|
1446
|
-
return o.setFullYear(a, 0, e), o.setHours(0, 0, 0, 0),
|
|
1466
|
+
function Fn(n, t) {
|
|
1467
|
+
const r = G(), e = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, a = Le(n, t), o = p(t?.in || n, 0);
|
|
1468
|
+
return o.setFullYear(a, 0, e), o.setHours(0, 0, 0, 0), H(o, t);
|
|
1447
1469
|
}
|
|
1448
|
-
function
|
|
1449
|
-
const r = l(n, t?.in), e =
|
|
1450
|
-
return Math.round(e /
|
|
1470
|
+
function qe(n, t) {
|
|
1471
|
+
const r = l(n, t?.in), e = +H(r, t) - +Fn(r, t);
|
|
1472
|
+
return Math.round(e / Te) + 1;
|
|
1451
1473
|
}
|
|
1452
1474
|
function d(n, t) {
|
|
1453
1475
|
const r = n < 0 ? "-" : "", e = Math.abs(n).toString().padStart(t, "0");
|
|
1454
1476
|
return r + e;
|
|
1455
1477
|
}
|
|
1456
|
-
const
|
|
1478
|
+
const P = {
|
|
1457
1479
|
// Year
|
|
1458
1480
|
y(n, t) {
|
|
1459
1481
|
const r = n.getFullYear(), e = r > 0 ? r : 1 - r;
|
|
@@ -1479,6 +1501,7 @@ const T = {
|
|
|
1479
1501
|
return r;
|
|
1480
1502
|
case "aaaaa":
|
|
1481
1503
|
return r[0];
|
|
1504
|
+
case "aaaa":
|
|
1482
1505
|
default:
|
|
1483
1506
|
return r === "am" ? "a.m." : "p.m.";
|
|
1484
1507
|
}
|
|
@@ -1506,14 +1529,14 @@ const T = {
|
|
|
1506
1529
|
);
|
|
1507
1530
|
return d(a, t.length);
|
|
1508
1531
|
}
|
|
1509
|
-
},
|
|
1532
|
+
}, F = {
|
|
1510
1533
|
midnight: "midnight",
|
|
1511
1534
|
noon: "noon",
|
|
1512
1535
|
morning: "morning",
|
|
1513
1536
|
afternoon: "afternoon",
|
|
1514
1537
|
evening: "evening",
|
|
1515
1538
|
night: "night"
|
|
1516
|
-
},
|
|
1539
|
+
}, ve = {
|
|
1517
1540
|
// Era
|
|
1518
1541
|
G: function(n, t, r) {
|
|
1519
1542
|
const e = n.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1526,6 +1549,8 @@ const T = {
|
|
|
1526
1549
|
// A, B
|
|
1527
1550
|
case "GGGGG":
|
|
1528
1551
|
return r.era(e, { width: "narrow" });
|
|
1552
|
+
// Anno Domini, Before Christ
|
|
1553
|
+
case "GGGG":
|
|
1529
1554
|
default:
|
|
1530
1555
|
return r.era(e, { width: "wide" });
|
|
1531
1556
|
}
|
|
@@ -1536,11 +1561,11 @@ const T = {
|
|
|
1536
1561
|
const e = n.getFullYear(), a = e > 0 ? e : 1 - e;
|
|
1537
1562
|
return r.ordinalNumber(a, { unit: "year" });
|
|
1538
1563
|
}
|
|
1539
|
-
return
|
|
1564
|
+
return P.y(n, t);
|
|
1540
1565
|
},
|
|
1541
1566
|
// Local week-numbering year
|
|
1542
1567
|
Y: function(n, t, r, e) {
|
|
1543
|
-
const a =
|
|
1568
|
+
const a = Le(n, e), o = a > 0 ? a : 1 - a;
|
|
1544
1569
|
if (t === "YY") {
|
|
1545
1570
|
const s = o % 100;
|
|
1546
1571
|
return d(s, 2);
|
|
@@ -1549,7 +1574,7 @@ const T = {
|
|
|
1549
1574
|
},
|
|
1550
1575
|
// ISO week-numbering year
|
|
1551
1576
|
R: function(n, t) {
|
|
1552
|
-
const r =
|
|
1577
|
+
const r = Ce(n);
|
|
1553
1578
|
return d(r, t.length);
|
|
1554
1579
|
},
|
|
1555
1580
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1590,6 +1615,8 @@ const T = {
|
|
|
1590
1615
|
width: "narrow",
|
|
1591
1616
|
context: "formatting"
|
|
1592
1617
|
});
|
|
1618
|
+
// 1st quarter, 2nd quarter, ...
|
|
1619
|
+
case "QQQQ":
|
|
1593
1620
|
default:
|
|
1594
1621
|
return r.quarter(e, {
|
|
1595
1622
|
width: "wide",
|
|
@@ -1622,6 +1649,8 @@ const T = {
|
|
|
1622
1649
|
width: "narrow",
|
|
1623
1650
|
context: "standalone"
|
|
1624
1651
|
});
|
|
1652
|
+
// 1st quarter, 2nd quarter, ...
|
|
1653
|
+
case "qqqq":
|
|
1625
1654
|
default:
|
|
1626
1655
|
return r.quarter(e, {
|
|
1627
1656
|
width: "wide",
|
|
@@ -1635,7 +1664,7 @@ const T = {
|
|
|
1635
1664
|
switch (t) {
|
|
1636
1665
|
case "M":
|
|
1637
1666
|
case "MM":
|
|
1638
|
-
return
|
|
1667
|
+
return P.M(n, t);
|
|
1639
1668
|
// 1st, 2nd, ..., 12th
|
|
1640
1669
|
case "Mo":
|
|
1641
1670
|
return r.ordinalNumber(e + 1, { unit: "month" });
|
|
@@ -1651,6 +1680,8 @@ const T = {
|
|
|
1651
1680
|
width: "narrow",
|
|
1652
1681
|
context: "formatting"
|
|
1653
1682
|
});
|
|
1683
|
+
// January, February, ..., December
|
|
1684
|
+
case "MMMM":
|
|
1654
1685
|
default:
|
|
1655
1686
|
return r.month(e, { width: "wide", context: "formatting" });
|
|
1656
1687
|
}
|
|
@@ -1680,13 +1711,15 @@ const T = {
|
|
|
1680
1711
|
width: "narrow",
|
|
1681
1712
|
context: "standalone"
|
|
1682
1713
|
});
|
|
1714
|
+
// January, February, ..., December
|
|
1715
|
+
case "LLLL":
|
|
1683
1716
|
default:
|
|
1684
1717
|
return r.month(e, { width: "wide", context: "standalone" });
|
|
1685
1718
|
}
|
|
1686
1719
|
},
|
|
1687
1720
|
// Local week of year
|
|
1688
1721
|
w: function(n, t, r, e) {
|
|
1689
|
-
const a =
|
|
1722
|
+
const a = qe(n, e);
|
|
1690
1723
|
return t === "wo" ? r.ordinalNumber(a, { unit: "week" }) : d(a, t.length);
|
|
1691
1724
|
},
|
|
1692
1725
|
// ISO week of year
|
|
@@ -1696,11 +1729,11 @@ const T = {
|
|
|
1696
1729
|
},
|
|
1697
1730
|
// Day of the month
|
|
1698
1731
|
d: function(n, t, r) {
|
|
1699
|
-
return t === "do" ? r.ordinalNumber(n.getDate(), { unit: "date" }) :
|
|
1732
|
+
return t === "do" ? r.ordinalNumber(n.getDate(), { unit: "date" }) : P.d(n, t);
|
|
1700
1733
|
},
|
|
1701
1734
|
// Day of year
|
|
1702
1735
|
D: function(n, t, r) {
|
|
1703
|
-
const e =
|
|
1736
|
+
const e = Yn(n);
|
|
1704
1737
|
return t === "Do" ? r.ordinalNumber(e, { unit: "dayOfYear" }) : d(e, t.length);
|
|
1705
1738
|
},
|
|
1706
1739
|
// Day of week
|
|
@@ -1727,6 +1760,8 @@ const T = {
|
|
|
1727
1760
|
width: "short",
|
|
1728
1761
|
context: "formatting"
|
|
1729
1762
|
});
|
|
1763
|
+
// Tuesday
|
|
1764
|
+
case "EEEE":
|
|
1730
1765
|
default:
|
|
1731
1766
|
return r.day(e, {
|
|
1732
1767
|
width: "wide",
|
|
@@ -1764,6 +1799,8 @@ const T = {
|
|
|
1764
1799
|
width: "short",
|
|
1765
1800
|
context: "formatting"
|
|
1766
1801
|
});
|
|
1802
|
+
// Tuesday
|
|
1803
|
+
case "eeee":
|
|
1767
1804
|
default:
|
|
1768
1805
|
return r.day(a, {
|
|
1769
1806
|
width: "wide",
|
|
@@ -1801,6 +1838,8 @@ const T = {
|
|
|
1801
1838
|
width: "short",
|
|
1802
1839
|
context: "standalone"
|
|
1803
1840
|
});
|
|
1841
|
+
// Tuesday
|
|
1842
|
+
case "cccc":
|
|
1804
1843
|
default:
|
|
1805
1844
|
return r.day(a, {
|
|
1806
1845
|
width: "wide",
|
|
@@ -1839,6 +1878,8 @@ const T = {
|
|
|
1839
1878
|
width: "short",
|
|
1840
1879
|
context: "formatting"
|
|
1841
1880
|
});
|
|
1881
|
+
// Tuesday
|
|
1882
|
+
case "iiii":
|
|
1842
1883
|
default:
|
|
1843
1884
|
return r.day(e, {
|
|
1844
1885
|
width: "wide",
|
|
@@ -1866,6 +1907,7 @@ const T = {
|
|
|
1866
1907
|
width: "narrow",
|
|
1867
1908
|
context: "formatting"
|
|
1868
1909
|
});
|
|
1910
|
+
case "aaaa":
|
|
1869
1911
|
default:
|
|
1870
1912
|
return r.dayPeriod(e, {
|
|
1871
1913
|
width: "wide",
|
|
@@ -1877,7 +1919,7 @@ const T = {
|
|
|
1877
1919
|
b: function(n, t, r) {
|
|
1878
1920
|
const e = n.getHours();
|
|
1879
1921
|
let a;
|
|
1880
|
-
switch (e === 12 ? a =
|
|
1922
|
+
switch (e === 12 ? a = F.noon : e === 0 ? a = F.midnight : a = e / 12 >= 1 ? "pm" : "am", t) {
|
|
1881
1923
|
case "b":
|
|
1882
1924
|
case "bb":
|
|
1883
1925
|
return r.dayPeriod(a, {
|
|
@@ -1894,6 +1936,7 @@ const T = {
|
|
|
1894
1936
|
width: "narrow",
|
|
1895
1937
|
context: "formatting"
|
|
1896
1938
|
});
|
|
1939
|
+
case "bbbb":
|
|
1897
1940
|
default:
|
|
1898
1941
|
return r.dayPeriod(a, {
|
|
1899
1942
|
width: "wide",
|
|
@@ -1905,7 +1948,7 @@ const T = {
|
|
|
1905
1948
|
B: function(n, t, r) {
|
|
1906
1949
|
const e = n.getHours();
|
|
1907
1950
|
let a;
|
|
1908
|
-
switch (e >= 17 ? a =
|
|
1951
|
+
switch (e >= 17 ? a = F.evening : e >= 12 ? a = F.afternoon : e >= 4 ? a = F.morning : a = F.night, t) {
|
|
1909
1952
|
case "B":
|
|
1910
1953
|
case "BB":
|
|
1911
1954
|
case "BBB":
|
|
@@ -1918,6 +1961,7 @@ const T = {
|
|
|
1918
1961
|
width: "narrow",
|
|
1919
1962
|
context: "formatting"
|
|
1920
1963
|
});
|
|
1964
|
+
case "BBBB":
|
|
1921
1965
|
default:
|
|
1922
1966
|
return r.dayPeriod(a, {
|
|
1923
1967
|
width: "wide",
|
|
@@ -1931,11 +1975,11 @@ const T = {
|
|
|
1931
1975
|
let e = n.getHours() % 12;
|
|
1932
1976
|
return e === 0 && (e = 12), r.ordinalNumber(e, { unit: "hour" });
|
|
1933
1977
|
}
|
|
1934
|
-
return
|
|
1978
|
+
return P.h(n, t);
|
|
1935
1979
|
},
|
|
1936
1980
|
// Hour [0-23]
|
|
1937
1981
|
H: function(n, t, r) {
|
|
1938
|
-
return t === "Ho" ? r.ordinalNumber(n.getHours(), { unit: "hour" }) :
|
|
1982
|
+
return t === "Ho" ? r.ordinalNumber(n.getHours(), { unit: "hour" }) : P.H(n, t);
|
|
1939
1983
|
},
|
|
1940
1984
|
// Hour [0-11]
|
|
1941
1985
|
K: function(n, t, r) {
|
|
@@ -1949,15 +1993,15 @@ const T = {
|
|
|
1949
1993
|
},
|
|
1950
1994
|
// Minute
|
|
1951
1995
|
m: function(n, t, r) {
|
|
1952
|
-
return t === "mo" ? r.ordinalNumber(n.getMinutes(), { unit: "minute" }) :
|
|
1996
|
+
return t === "mo" ? r.ordinalNumber(n.getMinutes(), { unit: "minute" }) : P.m(n, t);
|
|
1953
1997
|
},
|
|
1954
1998
|
// Second
|
|
1955
1999
|
s: function(n, t, r) {
|
|
1956
|
-
return t === "so" ? r.ordinalNumber(n.getSeconds(), { unit: "second" }) :
|
|
2000
|
+
return t === "so" ? r.ordinalNumber(n.getSeconds(), { unit: "second" }) : P.s(n, t);
|
|
1957
2001
|
},
|
|
1958
2002
|
// Fraction of second
|
|
1959
2003
|
S: function(n, t) {
|
|
1960
|
-
return
|
|
2004
|
+
return P.S(n, t);
|
|
1961
2005
|
},
|
|
1962
2006
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1963
2007
|
X: function(n, t, r) {
|
|
@@ -1967,16 +2011,21 @@ const T = {
|
|
|
1967
2011
|
switch (t) {
|
|
1968
2012
|
// Hours and optional minutes
|
|
1969
2013
|
case "X":
|
|
1970
|
-
return
|
|
2014
|
+
return Se(e);
|
|
1971
2015
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1972
2016
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1973
2017
|
// so this token always has the same output as `XX`
|
|
1974
2018
|
case "XXXX":
|
|
1975
2019
|
case "XX":
|
|
1976
|
-
return
|
|
2020
|
+
return W(e);
|
|
2021
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
2022
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2023
|
+
// so this token always has the same output as `XXX`
|
|
2024
|
+
case "XXXXX":
|
|
2025
|
+
case "XXX":
|
|
1977
2026
|
// Hours and minutes with `:` delimiter
|
|
1978
2027
|
default:
|
|
1979
|
-
return
|
|
2028
|
+
return W(e, ":");
|
|
1980
2029
|
}
|
|
1981
2030
|
},
|
|
1982
2031
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1985,16 +2034,21 @@ const T = {
|
|
|
1985
2034
|
switch (t) {
|
|
1986
2035
|
// Hours and optional minutes
|
|
1987
2036
|
case "x":
|
|
1988
|
-
return
|
|
2037
|
+
return Se(e);
|
|
1989
2038
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1990
2039
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1991
2040
|
// so this token always has the same output as `xx`
|
|
1992
2041
|
case "xxxx":
|
|
1993
2042
|
case "xx":
|
|
1994
|
-
return
|
|
2043
|
+
return W(e);
|
|
2044
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
2045
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2046
|
+
// so this token always has the same output as `xxx`
|
|
2047
|
+
case "xxxxx":
|
|
2048
|
+
case "xxx":
|
|
1995
2049
|
// Hours and minutes with `:` delimiter
|
|
1996
2050
|
default:
|
|
1997
|
-
return
|
|
2051
|
+
return W(e, ":");
|
|
1998
2052
|
}
|
|
1999
2053
|
},
|
|
2000
2054
|
// Timezone (GMT)
|
|
@@ -2005,9 +2059,11 @@ const T = {
|
|
|
2005
2059
|
case "O":
|
|
2006
2060
|
case "OO":
|
|
2007
2061
|
case "OOO":
|
|
2008
|
-
return "GMT" +
|
|
2062
|
+
return "GMT" + Me(e, ":");
|
|
2063
|
+
// Long
|
|
2064
|
+
case "OOOO":
|
|
2009
2065
|
default:
|
|
2010
|
-
return "GMT" +
|
|
2066
|
+
return "GMT" + W(e, ":");
|
|
2011
2067
|
}
|
|
2012
2068
|
},
|
|
2013
2069
|
// Timezone (specific non-location)
|
|
@@ -2018,9 +2074,11 @@ const T = {
|
|
|
2018
2074
|
case "z":
|
|
2019
2075
|
case "zz":
|
|
2020
2076
|
case "zzz":
|
|
2021
|
-
return "GMT" +
|
|
2077
|
+
return "GMT" + Me(e, ":");
|
|
2078
|
+
// Long
|
|
2079
|
+
case "zzzz":
|
|
2022
2080
|
default:
|
|
2023
|
-
return "GMT" +
|
|
2081
|
+
return "GMT" + W(e, ":");
|
|
2024
2082
|
}
|
|
2025
2083
|
},
|
|
2026
2084
|
// Seconds timestamp
|
|
@@ -2033,18 +2091,18 @@ const T = {
|
|
|
2033
2091
|
return d(+n, t.length);
|
|
2034
2092
|
}
|
|
2035
2093
|
};
|
|
2036
|
-
function
|
|
2094
|
+
function Me(n, t = "") {
|
|
2037
2095
|
const r = n > 0 ? "-" : "+", e = Math.abs(n), a = Math.trunc(e / 60), o = e % 60;
|
|
2038
2096
|
return o === 0 ? r + String(a) : r + String(a) + t + d(o, 2);
|
|
2039
2097
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") + d(Math.abs(n) / 60, 2) :
|
|
2098
|
+
function Se(n, t) {
|
|
2099
|
+
return n % 60 === 0 ? (n > 0 ? "-" : "+") + d(Math.abs(n) / 60, 2) : W(n, t);
|
|
2042
2100
|
}
|
|
2043
|
-
function
|
|
2101
|
+
function W(n, t = "") {
|
|
2044
2102
|
const r = n > 0 ? "-" : "+", e = Math.abs(n), a = d(Math.trunc(e / 60), 2), o = d(e % 60, 2);
|
|
2045
2103
|
return r + a + t + o;
|
|
2046
2104
|
}
|
|
2047
|
-
const
|
|
2105
|
+
const ke = (n, t) => {
|
|
2048
2106
|
switch (n) {
|
|
2049
2107
|
case "P":
|
|
2050
2108
|
return t.date({ width: "short" });
|
|
@@ -2052,10 +2110,11 @@ const Me = (n, t) => {
|
|
|
2052
2110
|
return t.date({ width: "medium" });
|
|
2053
2111
|
case "PPP":
|
|
2054
2112
|
return t.date({ width: "long" });
|
|
2113
|
+
case "PPPP":
|
|
2055
2114
|
default:
|
|
2056
2115
|
return t.date({ width: "full" });
|
|
2057
2116
|
}
|
|
2058
|
-
},
|
|
2117
|
+
}, Ue = (n, t) => {
|
|
2059
2118
|
switch (n) {
|
|
2060
2119
|
case "p":
|
|
2061
2120
|
return t.time({ width: "short" });
|
|
@@ -2063,13 +2122,14 @@ const Me = (n, t) => {
|
|
|
2063
2122
|
return t.time({ width: "medium" });
|
|
2064
2123
|
case "ppp":
|
|
2065
2124
|
return t.time({ width: "long" });
|
|
2125
|
+
case "pppp":
|
|
2066
2126
|
default:
|
|
2067
2127
|
return t.time({ width: "full" });
|
|
2068
2128
|
}
|
|
2069
|
-
},
|
|
2129
|
+
}, En = (n, t) => {
|
|
2070
2130
|
const r = n.match(/(P+)(p+)?/) || [], e = r[1], a = r[2];
|
|
2071
2131
|
if (!a)
|
|
2072
|
-
return
|
|
2132
|
+
return ke(n, t);
|
|
2073
2133
|
let o;
|
|
2074
2134
|
switch (e) {
|
|
2075
2135
|
case "P":
|
|
@@ -2081,50 +2141,51 @@ const Me = (n, t) => {
|
|
|
2081
2141
|
case "PPP":
|
|
2082
2142
|
o = t.dateTime({ width: "long" });
|
|
2083
2143
|
break;
|
|
2144
|
+
case "PPPP":
|
|
2084
2145
|
default:
|
|
2085
2146
|
o = t.dateTime({ width: "full" });
|
|
2086
2147
|
break;
|
|
2087
2148
|
}
|
|
2088
|
-
return o.replace("{{date}}",
|
|
2089
|
-
},
|
|
2090
|
-
p:
|
|
2091
|
-
P:
|
|
2092
|
-
},
|
|
2093
|
-
function Ln(n) {
|
|
2094
|
-
return $n.test(n);
|
|
2095
|
-
}
|
|
2149
|
+
return o.replace("{{date}}", ke(e, t)).replace("{{time}}", Ue(a, t));
|
|
2150
|
+
}, zn = {
|
|
2151
|
+
p: Ue,
|
|
2152
|
+
P: En
|
|
2153
|
+
}, Hn = /^D+$/, $n = /^Y+$/, Ln = ["D", "DD", "YY", "YYYY"];
|
|
2096
2154
|
function qn(n) {
|
|
2097
|
-
return
|
|
2155
|
+
return Hn.test(n);
|
|
2098
2156
|
}
|
|
2099
|
-
function Un(n
|
|
2100
|
-
|
|
2101
|
-
if (console.warn(e), En.includes(n)) throw new RangeError(e);
|
|
2157
|
+
function Un(n) {
|
|
2158
|
+
return $n.test(n);
|
|
2102
2159
|
}
|
|
2103
2160
|
function In(n, t, r) {
|
|
2161
|
+
const e = An(n, t, r);
|
|
2162
|
+
if (console.warn(e), Ln.includes(n)) throw new RangeError(e);
|
|
2163
|
+
}
|
|
2164
|
+
function An(n, t, r) {
|
|
2104
2165
|
const e = n[0] === "Y" ? "years" : "days of the month";
|
|
2105
2166
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${e} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2106
2167
|
}
|
|
2107
|
-
const
|
|
2108
|
-
function
|
|
2109
|
-
const e =
|
|
2110
|
-
if (!
|
|
2168
|
+
const Bn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zn = /^'([^]*?)'?$/, Gn = /''/g, _n = /[a-zA-Z]/;
|
|
2169
|
+
function B(n, t, r) {
|
|
2170
|
+
const e = G(), a = r?.locale ?? e.locale ?? E, o = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? e.firstWeekContainsDate ?? e.locale?.options?.firstWeekContainsDate ?? 1, s = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? e.weekStartsOn ?? e.locale?.options?.weekStartsOn ?? 0, u = l(n, r?.in);
|
|
2171
|
+
if (!xn(u))
|
|
2111
2172
|
throw new RangeError("Invalid time value");
|
|
2112
|
-
let h = t.match(
|
|
2173
|
+
let h = t.match(Xn).map((f) => {
|
|
2113
2174
|
const m = f[0];
|
|
2114
2175
|
if (m === "p" || m === "P") {
|
|
2115
|
-
const M =
|
|
2176
|
+
const M = zn[m];
|
|
2116
2177
|
return M(f, a.formatLong);
|
|
2117
2178
|
}
|
|
2118
2179
|
return f;
|
|
2119
|
-
}).join("").match(
|
|
2180
|
+
}).join("").match(Bn).map((f) => {
|
|
2120
2181
|
if (f === "''")
|
|
2121
2182
|
return { isToken: !1, value: "'" };
|
|
2122
2183
|
const m = f[0];
|
|
2123
2184
|
if (m === "'")
|
|
2124
2185
|
return { isToken: !1, value: Rn(f) };
|
|
2125
|
-
if (
|
|
2186
|
+
if (ve[m])
|
|
2126
2187
|
return { isToken: !0, value: f };
|
|
2127
|
-
if (m.match(
|
|
2188
|
+
if (m.match(_n))
|
|
2128
2189
|
throw new RangeError(
|
|
2129
2190
|
"Format string contains an unescaped latin alphabet character `" + m + "`"
|
|
2130
2191
|
);
|
|
@@ -2139,76 +2200,76 @@ function I(n, t, r) {
|
|
|
2139
2200
|
return h.map((f) => {
|
|
2140
2201
|
if (!f.isToken) return f.value;
|
|
2141
2202
|
const m = f.value;
|
|
2142
|
-
(!r?.useAdditionalWeekYearTokens &&
|
|
2143
|
-
const M =
|
|
2203
|
+
(!r?.useAdditionalWeekYearTokens && Un(m) || !r?.useAdditionalDayOfYearTokens && qn(m)) && In(m, t, String(n));
|
|
2204
|
+
const M = ve[m[0]];
|
|
2144
2205
|
return M(u, m, a.localize, v);
|
|
2145
2206
|
}).join("");
|
|
2146
2207
|
}
|
|
2147
2208
|
function Rn(n) {
|
|
2148
2209
|
const t = n.match(Zn);
|
|
2149
|
-
return t ? t[1].replace(
|
|
2210
|
+
return t ? t[1].replace(Gn, "'") : n;
|
|
2150
2211
|
}
|
|
2151
|
-
function
|
|
2212
|
+
function Qn(n, t) {
|
|
2152
2213
|
const r = l(n, t?.in), e = r.getFullYear(), a = r.getMonth(), o = p(r, 0);
|
|
2153
2214
|
return o.setFullYear(e, a + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
2154
2215
|
}
|
|
2155
|
-
function
|
|
2216
|
+
function Jn(n, t) {
|
|
2156
2217
|
return l(n, t?.in).getMonth();
|
|
2157
2218
|
}
|
|
2158
|
-
function
|
|
2219
|
+
function Vn(n, t) {
|
|
2159
2220
|
return l(n, t?.in).getFullYear();
|
|
2160
2221
|
}
|
|
2161
|
-
function
|
|
2222
|
+
function Kn(n, t) {
|
|
2162
2223
|
return +l(n) > +l(t);
|
|
2163
2224
|
}
|
|
2164
|
-
function
|
|
2225
|
+
function er(n, t) {
|
|
2165
2226
|
return +l(n) < +l(t);
|
|
2166
2227
|
}
|
|
2167
|
-
function
|
|
2168
|
-
const [e, a] =
|
|
2228
|
+
function tr(n, t, r) {
|
|
2229
|
+
const [e, a] = $(
|
|
2169
2230
|
r?.in,
|
|
2170
2231
|
n,
|
|
2171
2232
|
t
|
|
2172
2233
|
);
|
|
2173
2234
|
return e.getFullYear() === a.getFullYear() && e.getMonth() === a.getMonth();
|
|
2174
2235
|
}
|
|
2175
|
-
function
|
|
2176
|
-
const [e, a] =
|
|
2236
|
+
function nr(n, t, r) {
|
|
2237
|
+
const [e, a] = $(
|
|
2177
2238
|
r?.in,
|
|
2178
2239
|
n,
|
|
2179
2240
|
t
|
|
2180
2241
|
);
|
|
2181
2242
|
return e.getFullYear() === a.getFullYear();
|
|
2182
2243
|
}
|
|
2183
|
-
function
|
|
2244
|
+
function rr(n, t, r) {
|
|
2184
2245
|
const e = l(n, r?.in), a = e.getFullYear(), o = e.getDate(), s = p(n, 0);
|
|
2185
2246
|
s.setFullYear(a, t, 15), s.setHours(0, 0, 0, 0);
|
|
2186
|
-
const u =
|
|
2247
|
+
const u = Qn(s);
|
|
2187
2248
|
return e.setMonth(t, Math.min(o, u)), e;
|
|
2188
2249
|
}
|
|
2189
|
-
function
|
|
2250
|
+
function ar(n, t, r) {
|
|
2190
2251
|
const e = l(n, r?.in);
|
|
2191
2252
|
return isNaN(+e) ? p(n, NaN) : (e.setFullYear(t), e);
|
|
2192
2253
|
}
|
|
2193
|
-
const
|
|
2194
|
-
function
|
|
2195
|
-
const r = t.startOfMonth(n), e = r.getDay() > 0 ? r.getDay() : 7, a = t.addDays(n, -e + 1), o = t.addDays(a,
|
|
2196
|
-
return t.getMonth(n) === t.getMonth(o) ?
|
|
2254
|
+
const De = 5, or = 4;
|
|
2255
|
+
function ir(n, t) {
|
|
2256
|
+
const r = t.startOfMonth(n), e = r.getDay() > 0 ? r.getDay() : 7, a = t.addDays(n, -e + 1), o = t.addDays(a, De * 7 - 1);
|
|
2257
|
+
return t.getMonth(n) === t.getMonth(o) ? De : or;
|
|
2197
2258
|
}
|
|
2198
|
-
function
|
|
2259
|
+
function Ie(n, t) {
|
|
2199
2260
|
const r = t.startOfMonth(n), e = r.getDay();
|
|
2200
2261
|
return e === 1 ? r : e === 0 ? t.addDays(r, -6) : t.addDays(r, -1 * (e - 1));
|
|
2201
2262
|
}
|
|
2202
|
-
function
|
|
2203
|
-
const r =
|
|
2263
|
+
function sr(n, t) {
|
|
2264
|
+
const r = Ie(n, t), e = ir(n, t);
|
|
2204
2265
|
return t.addDays(r, e * 7 - 1);
|
|
2205
2266
|
}
|
|
2206
|
-
const
|
|
2207
|
-
...
|
|
2267
|
+
const ur = {
|
|
2268
|
+
...E,
|
|
2208
2269
|
labels: {
|
|
2209
2270
|
labelDayButton: (n, t, r, e) => {
|
|
2210
2271
|
let a;
|
|
2211
|
-
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) =>
|
|
2272
|
+
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) => B(s, u, { locale: E, ...r });
|
|
2212
2273
|
let o = a(n, "PPPP");
|
|
2213
2274
|
return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
|
|
2214
2275
|
},
|
|
@@ -2219,11 +2280,11 @@ const sr = {
|
|
|
2219
2280
|
labelYearDropdown: "Choose the Year",
|
|
2220
2281
|
labelGrid: (n, t, r) => {
|
|
2221
2282
|
let e;
|
|
2222
|
-
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) =>
|
|
2283
|
+
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) => B(a, o, { locale: E, ...t }), e(n, "LLLL yyyy");
|
|
2223
2284
|
},
|
|
2224
2285
|
labelGridcell: (n, t, r, e) => {
|
|
2225
2286
|
let a;
|
|
2226
|
-
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) =>
|
|
2287
|
+
e && typeof e.format == "function" ? a = e.format.bind(e) : a = (s, u) => B(s, u, { locale: E, ...r });
|
|
2227
2288
|
let o = a(n, "PPPP");
|
|
2228
2289
|
return t?.today && (o = `Today, ${o}`), o;
|
|
2229
2290
|
},
|
|
@@ -2231,11 +2292,11 @@ const sr = {
|
|
|
2231
2292
|
labelWeekNumberHeader: "Week Number",
|
|
2232
2293
|
labelWeekday: (n, t, r) => {
|
|
2233
2294
|
let e;
|
|
2234
|
-
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) =>
|
|
2295
|
+
return r && typeof r.format == "function" ? e = r.format.bind(r) : e = (a, o) => B(a, o, { locale: E, ...t }), e(n, "cccc");
|
|
2235
2296
|
}
|
|
2236
2297
|
}
|
|
2237
2298
|
};
|
|
2238
|
-
class
|
|
2299
|
+
class O {
|
|
2239
2300
|
/**
|
|
2240
2301
|
* Creates an instance of `DateLib`.
|
|
2241
2302
|
*
|
|
@@ -2243,18 +2304,18 @@ class x {
|
|
|
2243
2304
|
* @param overrides Custom overrides for the date library functions.
|
|
2244
2305
|
*/
|
|
2245
2306
|
constructor(t, r) {
|
|
2246
|
-
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ?
|
|
2247
|
-
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) :
|
|
2307
|
+
this.Date = Date, this.today = () => this.overrides?.today ? this.overrides.today() : this.options.timeZone ? j.tz(this.options.timeZone) : new this.Date(), this.newDate = (e, a, o) => this.overrides?.newDate ? this.overrides.newDate(e, a, o) : this.options.timeZone ? new j(e, a, o, this.options.timeZone) : new Date(e, a, o), this.addDays = (e, a) => this.overrides?.addDays ? this.overrides.addDays(e, a) : Ne(e, a), this.addMonths = (e, a) => this.overrides?.addMonths ? this.overrides.addMonths(e, a) : je(e, a), this.addWeeks = (e, a) => this.overrides?.addWeeks ? this.overrides.addWeeks(e, a) : vn(e, a), this.addYears = (e, a) => this.overrides?.addYears ? this.overrides.addYears(e, a) : Mn(e, a), this.differenceInCalendarDays = (e, a) => this.overrides?.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(e, a) : Ye(e, a), this.differenceInCalendarMonths = (e, a) => this.overrides?.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(e, a) : On(e, a), this.eachMonthOfInterval = (e) => this.overrides?.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(e) : Tn(e), this.eachYearOfInterval = (e) => {
|
|
2308
|
+
const a = this.overrides?.eachYearOfInterval ? this.overrides.eachYearOfInterval(e) : jn(e), o = new Set(a.map((u) => this.getYear(u)));
|
|
2248
2309
|
if (o.size === a.length)
|
|
2249
2310
|
return a;
|
|
2250
2311
|
const s = [];
|
|
2251
2312
|
return o.forEach((u) => {
|
|
2252
2313
|
s.push(new Date(u, 0, 1));
|
|
2253
2314
|
}), s;
|
|
2254
|
-
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) :
|
|
2255
|
-
const s = this.overrides?.format ? this.overrides.format(e, a, this.options) :
|
|
2315
|
+
}, this.endOfBroadcastWeek = (e) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(e) : sr(e, this), this.endOfISOWeek = (e) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(e) : Cn(e), this.endOfMonth = (e) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(e) : Pn(e), this.endOfWeek = (e, a) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(e, a) : He(e, this.options), this.endOfYear = (e) => this.overrides?.endOfYear ? this.overrides.endOfYear(e) : Nn(e), this.format = (e, a, o) => {
|
|
2316
|
+
const s = this.overrides?.format ? this.overrides.format(e, a, this.options) : B(e, a, this.options);
|
|
2256
2317
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(s) : s;
|
|
2257
|
-
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) : $e(e), this.getMonth = (e, a) => this.overrides?.getMonth ? this.overrides.getMonth(e, this.options) :
|
|
2318
|
+
}, this.getISOWeek = (e) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(e) : $e(e), this.getMonth = (e, a) => this.overrides?.getMonth ? this.overrides.getMonth(e, this.options) : Jn(e, this.options), this.getYear = (e, a) => this.overrides?.getYear ? this.overrides.getYear(e, this.options) : Vn(e, this.options), this.getWeek = (e, a) => this.overrides?.getWeek ? this.overrides.getWeek(e, this.options) : qe(e, this.options), this.isAfter = (e, a) => this.overrides?.isAfter ? this.overrides.isAfter(e, a) : Kn(e, a), this.isBefore = (e, a) => this.overrides?.isBefore ? this.overrides.isBefore(e, a) : er(e, a), this.isDate = (e) => this.overrides?.isDate ? this.overrides.isDate(e) : Fe(e), this.isSameDay = (e, a) => this.overrides?.isSameDay ? this.overrides.isSameDay(e, a) : Dn(e, a), this.isSameMonth = (e, a) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(e, a) : tr(e, a), this.isSameYear = (e, a) => this.overrides?.isSameYear ? this.overrides.isSameYear(e, a) : nr(e, a), this.max = (e) => this.overrides?.max ? this.overrides.max(e) : Sn(e), this.min = (e) => this.overrides?.min ? this.overrides.min(e) : kn(e), this.setMonth = (e, a) => this.overrides?.setMonth ? this.overrides.setMonth(e, a) : rr(e, a), this.setYear = (e, a) => this.overrides?.setYear ? this.overrides.setYear(e, a) : ar(e, a), this.startOfBroadcastWeek = (e, a) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(e, this) : Ie(e, this), this.startOfDay = (e) => this.overrides?.startOfDay ? this.overrides.startOfDay(e) : Z(e), this.startOfISOWeek = (e) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(e) : X(e), this.startOfMonth = (e) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(e) : Wn(e), this.startOfWeek = (e, a) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(e, this.options) : H(e, this.options), this.startOfYear = (e) => this.overrides?.startOfYear ? this.overrides.startOfYear(e) : ze(e), this.options = { locale: ur, ...t }, this.overrides = r;
|
|
2258
2319
|
}
|
|
2259
2320
|
/**
|
|
2260
2321
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -2298,7 +2359,7 @@ class x {
|
|
|
2298
2359
|
*/
|
|
2299
2360
|
getMonthYearOrder() {
|
|
2300
2361
|
const t = this.options.locale?.code;
|
|
2301
|
-
return t &&
|
|
2362
|
+
return t && O.yearFirstLocales.has(t) ? "year-first" : "month-first";
|
|
2302
2363
|
}
|
|
2303
2364
|
/**
|
|
2304
2365
|
* Formats the month/year pair respecting locale conventions.
|
|
@@ -2307,7 +2368,7 @@ class x {
|
|
|
2307
2368
|
*/
|
|
2308
2369
|
formatMonthYear(t) {
|
|
2309
2370
|
const { locale: r, timeZone: e, numerals: a } = this.options, o = r?.code;
|
|
2310
|
-
if (o &&
|
|
2371
|
+
if (o && O.yearFirstLocales.has(o))
|
|
2311
2372
|
try {
|
|
2312
2373
|
return new Intl.DateTimeFormat(o, {
|
|
2313
2374
|
month: "long",
|
|
@@ -2321,7 +2382,7 @@ class x {
|
|
|
2321
2382
|
return this.format(t, s);
|
|
2322
2383
|
}
|
|
2323
2384
|
}
|
|
2324
|
-
|
|
2385
|
+
O.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
2325
2386
|
"eu",
|
|
2326
2387
|
"hu",
|
|
2327
2388
|
"ja",
|
|
@@ -2340,12 +2401,12 @@ x.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
2340
2401
|
"zh-HK",
|
|
2341
2402
|
"zh-TW"
|
|
2342
2403
|
]);
|
|
2343
|
-
new
|
|
2344
|
-
const
|
|
2345
|
-
...
|
|
2404
|
+
new O();
|
|
2405
|
+
const cr = {
|
|
2406
|
+
...fn,
|
|
2346
2407
|
labels: {
|
|
2347
2408
|
labelDayButton: (n, t, r, e) => {
|
|
2348
|
-
let a = (e ?? new
|
|
2409
|
+
let a = (e ?? new O(r)).format(n, "PPPP");
|
|
2349
2410
|
return t.today && (a = `Hoje, ${a}`), t.selected && (a = `${a}, selecionado`), a;
|
|
2350
2411
|
},
|
|
2351
2412
|
labelMonthDropdown: "Escolha o mês",
|
|
@@ -2353,30 +2414,30 @@ const ur = {
|
|
|
2353
2414
|
labelPrevious: "Ir para o mês anterior",
|
|
2354
2415
|
labelWeekNumber: (n) => `Semana ${n}`,
|
|
2355
2416
|
labelYearDropdown: "Escolha o ano",
|
|
2356
|
-
labelGrid: (n, t, r) => (r ?? new
|
|
2417
|
+
labelGrid: (n, t, r) => (r ?? new O(t)).formatMonthYear(n),
|
|
2357
2418
|
labelGridcell: (n, t, r, e) => {
|
|
2358
|
-
let a = (e ?? new
|
|
2419
|
+
let a = (e ?? new O(r)).format(n, "PPPP");
|
|
2359
2420
|
return t?.today && (a = `Hoje, ${a}`), a;
|
|
2360
2421
|
},
|
|
2361
2422
|
labelNav: "Barra de navegação",
|
|
2362
2423
|
labelWeekNumberHeader: "Número da semana",
|
|
2363
|
-
labelWeekday: (n, t, r) => (r ?? new
|
|
2424
|
+
labelWeekday: (n, t, r) => (r ?? new O(t)).format(n, "cccc")
|
|
2364
2425
|
}
|
|
2365
2426
|
};
|
|
2366
|
-
|
|
2367
|
-
locale:
|
|
2427
|
+
Oe({
|
|
2428
|
+
locale: cr
|
|
2368
2429
|
});
|
|
2369
|
-
function
|
|
2370
|
-
const { user: t, logout: r } =
|
|
2371
|
-
return
|
|
2430
|
+
function fr({ router: n }) {
|
|
2431
|
+
const { user: t, logout: r } = at();
|
|
2432
|
+
return xe(() => {
|
|
2372
2433
|
t.id === "" && n.push("/login");
|
|
2373
|
-
}), /* @__PURE__ */
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2434
|
+
}), /* @__PURE__ */ y.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ y.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
2435
|
+
/* @__PURE__ */ y.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
2436
|
+
/* @__PURE__ */ y.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "403" }),
|
|
2437
|
+
/* @__PURE__ */ y.jsx("h1", { children: "Acesso Negado" })
|
|
2377
2438
|
] }),
|
|
2378
|
-
/* @__PURE__ */
|
|
2379
|
-
|
|
2439
|
+
/* @__PURE__ */ y.jsx(
|
|
2440
|
+
oe,
|
|
2380
2441
|
{
|
|
2381
2442
|
variant: "destructive",
|
|
2382
2443
|
onClick: () => {
|
|
@@ -2387,17 +2448,17 @@ function mr({ router: n }) {
|
|
|
2387
2448
|
)
|
|
2388
2449
|
] }) });
|
|
2389
2450
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return /* @__PURE__ */
|
|
2392
|
-
/* @__PURE__ */
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */
|
|
2451
|
+
function gr({ router: n }) {
|
|
2452
|
+
return /* @__PURE__ */ y.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ y.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
|
|
2453
|
+
/* @__PURE__ */ y.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
|
|
2454
|
+
/* @__PURE__ */ y.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "404" }),
|
|
2455
|
+
/* @__PURE__ */ y.jsx("h1", { children: "Página não encontrada" })
|
|
2395
2456
|
] }),
|
|
2396
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ y.jsx(oe, { onClick: () => n.replace("/"), children: "Voltar ao Início" })
|
|
2397
2458
|
] }) });
|
|
2398
2459
|
}
|
|
2399
2460
|
export {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2461
|
+
mr as Error,
|
|
2462
|
+
fr as Forbidden,
|
|
2463
|
+
gr as NotFoundPage
|
|
2403
2464
|
};
|