wcz-test 6.24.4 → 6.24.5
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/chunks/{DialogsHooks-DOT0O_b4.js → DialogsHooks-DVnj8xmz.js} +178 -3
- package/dist/chunks/DialogsHooks-DVnj8xmz.js.map +1 -0
- package/dist/chunks/FileHooks-GprjzNKW.js +3554 -0
- package/dist/chunks/FileHooks-GprjzNKW.js.map +1 -0
- package/dist/chunks/RouterListItemButton-BvsZysDL.js +959 -0
- package/dist/chunks/RouterListItemButton-BvsZysDL.js.map +1 -0
- package/dist/chunks/_commonjsHelpers-BGn2FbsY.js +35 -0
- package/dist/chunks/_commonjsHelpers-BGn2FbsY.js.map +1 -0
- package/dist/chunks/env-Di2sjb5X.js +104 -0
- package/dist/chunks/env-Di2sjb5X.js.map +1 -0
- package/dist/chunks/i18next-Dx0Bahhj.js +2203 -0
- package/dist/chunks/i18next-Dx0Bahhj.js.map +1 -0
- package/dist/chunks/index-BrFiyyyk.js +327 -0
- package/dist/chunks/index-BrFiyyyk.js.map +1 -0
- package/dist/chunks/session-CPSUX_HJ.js +12970 -0
- package/dist/chunks/session-CPSUX_HJ.js.map +1 -0
- package/dist/chunks/useTranslation-D7I_DXWv.js +406 -0
- package/dist/chunks/useTranslation-D7I_DXWv.js.map +1 -0
- package/dist/chunks/utils-DtlCJSvY.js +2582 -0
- package/dist/chunks/utils-DtlCJSvY.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/components.js +2418 -7
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1011 -5
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +448 -951
- package/dist/index.js.map +1 -1
- package/dist/queries.js +3 -3
- package/dist/server.js +5213 -4
- package/dist/server.js.map +1 -1
- package/dist/utils.js +5 -5
- package/package.json +1 -1
- package/dist/chunks/DialogsHooks-DOT0O_b4.js.map +0 -1
- package/dist/chunks/FileHooks-CF1bPDoe.js +0 -493
- package/dist/chunks/FileHooks-CF1bPDoe.js.map +0 -1
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js +0 -35
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js.map +0 -1
- package/dist/chunks/env-gsqZ6zZD.js +0 -30
- package/dist/chunks/env-gsqZ6zZD.js.map +0 -1
- package/dist/chunks/session-vW7WZadj.js +0 -91
- package/dist/chunks/session-vW7WZadj.js.map +0 -1
- package/dist/chunks/utils-MD9YwOtu.js +0 -91
- package/dist/chunks/utils-MD9YwOtu.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -4,11 +4,9 @@ import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, ListItemBut
|
|
|
4
4
|
import { createServerFn, createIsomorphicFn } from "@tanstack/react-start";
|
|
5
5
|
import { getCookie } from "@tanstack/react-start/server";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
|
-
import
|
|
8
|
-
import LanguageDetector from "i18next-browser-languagedetector";
|
|
7
|
+
import { i as instance } from "./chunks/i18next-Dx0Bahhj.js";
|
|
9
8
|
import * as React from "react";
|
|
10
9
|
import { useState, useId, useRef, Fragment, useEffect, Suspense, useEffectEvent } from "react";
|
|
11
|
-
import { useTranslation, initReactI18next } from "react-i18next";
|
|
12
10
|
import { resources } from "virtual:wcz-layout";
|
|
13
11
|
import z__default from "zod";
|
|
14
12
|
import { D as DialogsContext } from "./chunks/DialogsContext-DoU_8Eeu.js";
|
|
@@ -16,7 +14,7 @@ import Menu$1 from "@mui/icons-material/Menu";
|
|
|
16
14
|
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
17
15
|
import { useThemeProps, styled, useTheme } from "@mui/material/styles";
|
|
18
16
|
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
|
19
|
-
import {
|
|
17
|
+
import { a as clientEnv } from "./chunks/env-Di2sjb5X.js";
|
|
20
18
|
import Box from "@mui/material/Box";
|
|
21
19
|
import Drawer from "@mui/material/Drawer";
|
|
22
20
|
import { useNavigate, useRouterState, Await } from "@tanstack/react-router";
|
|
@@ -32,7 +30,7 @@ import ListItemText from "@mui/material/ListItemText";
|
|
|
32
30
|
import MuiPaper from "@mui/material/Paper";
|
|
33
31
|
import MuiPopper from "@mui/material/Popper";
|
|
34
32
|
import Typography$1 from "@mui/material/Typography";
|
|
35
|
-
import { R as RouterListItemButton } from "./chunks/RouterListItemButton-
|
|
33
|
+
import { p as propTypesExports, R as RouterListItemButton } from "./chunks/RouterListItemButton-BvsZysDL.js";
|
|
36
34
|
import AccountCircle from "@mui/icons-material/AccountCircle";
|
|
37
35
|
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
38
36
|
import Brightness4 from "@mui/icons-material/Brightness4";
|
|
@@ -43,15 +41,16 @@ import LightMode from "@mui/icons-material/LightMode";
|
|
|
43
41
|
import Logout from "@mui/icons-material/Logout";
|
|
44
42
|
import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
|
|
45
43
|
import Translate from "@mui/icons-material/Translate";
|
|
46
|
-
import axios from "
|
|
44
|
+
import { b as axios } from "./chunks/utils-DtlCJSvY.js";
|
|
45
|
+
import { r } from "./chunks/utils-DtlCJSvY.js";
|
|
47
46
|
import { q as queryClient } from "./chunks/queryClient-CNvC95mU.js";
|
|
48
|
-
import { r as requireSession, g as getAccessToken } from "./chunks/session-
|
|
47
|
+
import { r as requireSession, g as getAccessToken } from "./chunks/session-CPSUX_HJ.js";
|
|
48
|
+
import { s as setDefaults, a as setI18n, u as useTranslation } from "./chunks/useTranslation-D7I_DXWv.js";
|
|
49
49
|
import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
|
|
50
50
|
import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
|
|
51
51
|
import localizedFormatPlugin from "dayjs/plugin/localizedFormat.js";
|
|
52
52
|
import isBetweenPlugin from "dayjs/plugin/isBetween.js";
|
|
53
53
|
import advancedFormatPlugin from "dayjs/plugin/advancedFormat.js";
|
|
54
|
-
import { r } from "./chunks/utils-MD9YwOtu.js";
|
|
55
54
|
function _extends() {
|
|
56
55
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
57
56
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -70,929 +69,6 @@ function _objectWithoutPropertiesLoose(r2, e) {
|
|
|
70
69
|
}
|
|
71
70
|
return t;
|
|
72
71
|
}
|
|
73
|
-
var propTypes = { exports: {} };
|
|
74
|
-
var reactIs = { exports: {} };
|
|
75
|
-
var reactIs_production_min = {};
|
|
76
|
-
var hasRequiredReactIs_production_min;
|
|
77
|
-
function requireReactIs_production_min() {
|
|
78
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
79
|
-
hasRequiredReactIs_production_min = 1;
|
|
80
|
-
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r2 = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
81
|
-
function z(a) {
|
|
82
|
-
if ("object" === typeof a && null !== a) {
|
|
83
|
-
var u = a.$$typeof;
|
|
84
|
-
switch (u) {
|
|
85
|
-
case c2:
|
|
86
|
-
switch (a = a.type, a) {
|
|
87
|
-
case l:
|
|
88
|
-
case m:
|
|
89
|
-
case e:
|
|
90
|
-
case g:
|
|
91
|
-
case f:
|
|
92
|
-
case p:
|
|
93
|
-
return a;
|
|
94
|
-
default:
|
|
95
|
-
switch (a = a && a.$$typeof, a) {
|
|
96
|
-
case k:
|
|
97
|
-
case n:
|
|
98
|
-
case t:
|
|
99
|
-
case r2:
|
|
100
|
-
case h:
|
|
101
|
-
return a;
|
|
102
|
-
default:
|
|
103
|
-
return u;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
case d:
|
|
107
|
-
return u;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function A(a) {
|
|
112
|
-
return z(a) === m;
|
|
113
|
-
}
|
|
114
|
-
reactIs_production_min.AsyncMode = l;
|
|
115
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
116
|
-
reactIs_production_min.ContextConsumer = k;
|
|
117
|
-
reactIs_production_min.ContextProvider = h;
|
|
118
|
-
reactIs_production_min.Element = c2;
|
|
119
|
-
reactIs_production_min.ForwardRef = n;
|
|
120
|
-
reactIs_production_min.Fragment = e;
|
|
121
|
-
reactIs_production_min.Lazy = t;
|
|
122
|
-
reactIs_production_min.Memo = r2;
|
|
123
|
-
reactIs_production_min.Portal = d;
|
|
124
|
-
reactIs_production_min.Profiler = g;
|
|
125
|
-
reactIs_production_min.StrictMode = f;
|
|
126
|
-
reactIs_production_min.Suspense = p;
|
|
127
|
-
reactIs_production_min.isAsyncMode = function(a) {
|
|
128
|
-
return A(a) || z(a) === l;
|
|
129
|
-
};
|
|
130
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
131
|
-
reactIs_production_min.isContextConsumer = function(a) {
|
|
132
|
-
return z(a) === k;
|
|
133
|
-
};
|
|
134
|
-
reactIs_production_min.isContextProvider = function(a) {
|
|
135
|
-
return z(a) === h;
|
|
136
|
-
};
|
|
137
|
-
reactIs_production_min.isElement = function(a) {
|
|
138
|
-
return "object" === typeof a && null !== a && a.$$typeof === c2;
|
|
139
|
-
};
|
|
140
|
-
reactIs_production_min.isForwardRef = function(a) {
|
|
141
|
-
return z(a) === n;
|
|
142
|
-
};
|
|
143
|
-
reactIs_production_min.isFragment = function(a) {
|
|
144
|
-
return z(a) === e;
|
|
145
|
-
};
|
|
146
|
-
reactIs_production_min.isLazy = function(a) {
|
|
147
|
-
return z(a) === t;
|
|
148
|
-
};
|
|
149
|
-
reactIs_production_min.isMemo = function(a) {
|
|
150
|
-
return z(a) === r2;
|
|
151
|
-
};
|
|
152
|
-
reactIs_production_min.isPortal = function(a) {
|
|
153
|
-
return z(a) === d;
|
|
154
|
-
};
|
|
155
|
-
reactIs_production_min.isProfiler = function(a) {
|
|
156
|
-
return z(a) === g;
|
|
157
|
-
};
|
|
158
|
-
reactIs_production_min.isStrictMode = function(a) {
|
|
159
|
-
return z(a) === f;
|
|
160
|
-
};
|
|
161
|
-
reactIs_production_min.isSuspense = function(a) {
|
|
162
|
-
return z(a) === p;
|
|
163
|
-
};
|
|
164
|
-
reactIs_production_min.isValidElementType = function(a) {
|
|
165
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r2 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
166
|
-
};
|
|
167
|
-
reactIs_production_min.typeOf = z;
|
|
168
|
-
return reactIs_production_min;
|
|
169
|
-
}
|
|
170
|
-
var reactIs_development = {};
|
|
171
|
-
var hasRequiredReactIs_development;
|
|
172
|
-
function requireReactIs_development() {
|
|
173
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
174
|
-
hasRequiredReactIs_development = 1;
|
|
175
|
-
if (process.env.NODE_ENV !== "production") {
|
|
176
|
-
(function() {
|
|
177
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
178
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
|
|
179
|
-
var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
|
|
180
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
|
|
181
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
|
|
182
|
-
var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
|
|
183
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
|
|
184
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
|
|
185
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
|
|
186
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
|
|
187
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
188
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
|
|
189
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
|
|
190
|
-
var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
191
|
-
var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
|
|
192
|
-
var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
|
|
193
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
|
|
194
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
|
|
195
|
-
var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
196
|
-
function isValidElementType(type) {
|
|
197
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
198
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
199
|
-
}
|
|
200
|
-
function typeOf(object) {
|
|
201
|
-
if (typeof object === "object" && object !== null) {
|
|
202
|
-
var $$typeof = object.$$typeof;
|
|
203
|
-
switch ($$typeof) {
|
|
204
|
-
case REACT_ELEMENT_TYPE:
|
|
205
|
-
var type = object.type;
|
|
206
|
-
switch (type) {
|
|
207
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
208
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
209
|
-
case REACT_FRAGMENT_TYPE:
|
|
210
|
-
case REACT_PROFILER_TYPE:
|
|
211
|
-
case REACT_STRICT_MODE_TYPE:
|
|
212
|
-
case REACT_SUSPENSE_TYPE:
|
|
213
|
-
return type;
|
|
214
|
-
default:
|
|
215
|
-
var $$typeofType = type && type.$$typeof;
|
|
216
|
-
switch ($$typeofType) {
|
|
217
|
-
case REACT_CONTEXT_TYPE:
|
|
218
|
-
case REACT_FORWARD_REF_TYPE:
|
|
219
|
-
case REACT_LAZY_TYPE:
|
|
220
|
-
case REACT_MEMO_TYPE:
|
|
221
|
-
case REACT_PROVIDER_TYPE:
|
|
222
|
-
return $$typeofType;
|
|
223
|
-
default:
|
|
224
|
-
return $$typeof;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
case REACT_PORTAL_TYPE:
|
|
228
|
-
return $$typeof;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return void 0;
|
|
232
|
-
}
|
|
233
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
234
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
235
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
236
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
237
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
238
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
239
|
-
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
240
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
241
|
-
var Memo = REACT_MEMO_TYPE;
|
|
242
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
243
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
244
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
245
|
-
var Suspense2 = REACT_SUSPENSE_TYPE;
|
|
246
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
247
|
-
function isAsyncMode(object) {
|
|
248
|
-
{
|
|
249
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
250
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
251
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
255
|
-
}
|
|
256
|
-
function isConcurrentMode(object) {
|
|
257
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
258
|
-
}
|
|
259
|
-
function isContextConsumer(object) {
|
|
260
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
261
|
-
}
|
|
262
|
-
function isContextProvider(object) {
|
|
263
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
264
|
-
}
|
|
265
|
-
function isElement(object) {
|
|
266
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
267
|
-
}
|
|
268
|
-
function isForwardRef(object) {
|
|
269
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
270
|
-
}
|
|
271
|
-
function isFragment(object) {
|
|
272
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
273
|
-
}
|
|
274
|
-
function isLazy(object) {
|
|
275
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
276
|
-
}
|
|
277
|
-
function isMemo(object) {
|
|
278
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
279
|
-
}
|
|
280
|
-
function isPortal(object) {
|
|
281
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
282
|
-
}
|
|
283
|
-
function isProfiler(object) {
|
|
284
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
285
|
-
}
|
|
286
|
-
function isStrictMode(object) {
|
|
287
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
288
|
-
}
|
|
289
|
-
function isSuspense(object) {
|
|
290
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
291
|
-
}
|
|
292
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
293
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
294
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
295
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
296
|
-
reactIs_development.Element = Element;
|
|
297
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
298
|
-
reactIs_development.Fragment = Fragment2;
|
|
299
|
-
reactIs_development.Lazy = Lazy;
|
|
300
|
-
reactIs_development.Memo = Memo;
|
|
301
|
-
reactIs_development.Portal = Portal;
|
|
302
|
-
reactIs_development.Profiler = Profiler;
|
|
303
|
-
reactIs_development.StrictMode = StrictMode;
|
|
304
|
-
reactIs_development.Suspense = Suspense2;
|
|
305
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
306
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
307
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
308
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
309
|
-
reactIs_development.isElement = isElement;
|
|
310
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
311
|
-
reactIs_development.isFragment = isFragment;
|
|
312
|
-
reactIs_development.isLazy = isLazy;
|
|
313
|
-
reactIs_development.isMemo = isMemo;
|
|
314
|
-
reactIs_development.isPortal = isPortal;
|
|
315
|
-
reactIs_development.isProfiler = isProfiler;
|
|
316
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
317
|
-
reactIs_development.isSuspense = isSuspense;
|
|
318
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
319
|
-
reactIs_development.typeOf = typeOf;
|
|
320
|
-
})();
|
|
321
|
-
}
|
|
322
|
-
return reactIs_development;
|
|
323
|
-
}
|
|
324
|
-
var hasRequiredReactIs;
|
|
325
|
-
function requireReactIs() {
|
|
326
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
327
|
-
hasRequiredReactIs = 1;
|
|
328
|
-
if (process.env.NODE_ENV === "production") {
|
|
329
|
-
reactIs.exports = requireReactIs_production_min();
|
|
330
|
-
} else {
|
|
331
|
-
reactIs.exports = requireReactIs_development();
|
|
332
|
-
}
|
|
333
|
-
return reactIs.exports;
|
|
334
|
-
}
|
|
335
|
-
var objectAssign;
|
|
336
|
-
var hasRequiredObjectAssign;
|
|
337
|
-
function requireObjectAssign() {
|
|
338
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
339
|
-
hasRequiredObjectAssign = 1;
|
|
340
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
341
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
342
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
343
|
-
function toObject(val) {
|
|
344
|
-
if (val === null || val === void 0) {
|
|
345
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
346
|
-
}
|
|
347
|
-
return Object(val);
|
|
348
|
-
}
|
|
349
|
-
function shouldUseNative() {
|
|
350
|
-
try {
|
|
351
|
-
if (!Object.assign) {
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
var test1 = new String("abc");
|
|
355
|
-
test1[5] = "de";
|
|
356
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
357
|
-
return false;
|
|
358
|
-
}
|
|
359
|
-
var test2 = {};
|
|
360
|
-
for (var i = 0; i < 10; i++) {
|
|
361
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
362
|
-
}
|
|
363
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
364
|
-
return test2[n];
|
|
365
|
-
});
|
|
366
|
-
if (order2.join("") !== "0123456789") {
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
369
|
-
var test3 = {};
|
|
370
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
371
|
-
test3[letter] = letter;
|
|
372
|
-
});
|
|
373
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
374
|
-
return false;
|
|
375
|
-
}
|
|
376
|
-
return true;
|
|
377
|
-
} catch (err) {
|
|
378
|
-
return false;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
382
|
-
var from;
|
|
383
|
-
var to = toObject(target);
|
|
384
|
-
var symbols;
|
|
385
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
386
|
-
from = Object(arguments[s]);
|
|
387
|
-
for (var key in from) {
|
|
388
|
-
if (hasOwnProperty.call(from, key)) {
|
|
389
|
-
to[key] = from[key];
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
if (getOwnPropertySymbols) {
|
|
393
|
-
symbols = getOwnPropertySymbols(from);
|
|
394
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
395
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
396
|
-
to[symbols[i]] = from[symbols[i]];
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return to;
|
|
402
|
-
};
|
|
403
|
-
return objectAssign;
|
|
404
|
-
}
|
|
405
|
-
var ReactPropTypesSecret_1;
|
|
406
|
-
var hasRequiredReactPropTypesSecret;
|
|
407
|
-
function requireReactPropTypesSecret() {
|
|
408
|
-
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
|
409
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
410
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
411
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
412
|
-
return ReactPropTypesSecret_1;
|
|
413
|
-
}
|
|
414
|
-
var has;
|
|
415
|
-
var hasRequiredHas;
|
|
416
|
-
function requireHas() {
|
|
417
|
-
if (hasRequiredHas) return has;
|
|
418
|
-
hasRequiredHas = 1;
|
|
419
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
420
|
-
return has;
|
|
421
|
-
}
|
|
422
|
-
var checkPropTypes_1;
|
|
423
|
-
var hasRequiredCheckPropTypes;
|
|
424
|
-
function requireCheckPropTypes() {
|
|
425
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
426
|
-
hasRequiredCheckPropTypes = 1;
|
|
427
|
-
var printWarning = function() {
|
|
428
|
-
};
|
|
429
|
-
if (process.env.NODE_ENV !== "production") {
|
|
430
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
431
|
-
var loggedTypeFailures = {};
|
|
432
|
-
var has2 = /* @__PURE__ */ requireHas();
|
|
433
|
-
printWarning = function(text) {
|
|
434
|
-
var message = "Warning: " + text;
|
|
435
|
-
if (typeof console !== "undefined") {
|
|
436
|
-
console.error(message);
|
|
437
|
-
}
|
|
438
|
-
try {
|
|
439
|
-
throw new Error(message);
|
|
440
|
-
} catch (x) {
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
445
|
-
if (process.env.NODE_ENV !== "production") {
|
|
446
|
-
for (var typeSpecName in typeSpecs) {
|
|
447
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
448
|
-
var error;
|
|
449
|
-
try {
|
|
450
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
451
|
-
var err = Error(
|
|
452
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
453
|
-
);
|
|
454
|
-
err.name = "Invariant Violation";
|
|
455
|
-
throw err;
|
|
456
|
-
}
|
|
457
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
458
|
-
} catch (ex) {
|
|
459
|
-
error = ex;
|
|
460
|
-
}
|
|
461
|
-
if (error && !(error instanceof Error)) {
|
|
462
|
-
printWarning(
|
|
463
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
467
|
-
loggedTypeFailures[error.message] = true;
|
|
468
|
-
var stack = getStack ? getStack() : "";
|
|
469
|
-
printWarning(
|
|
470
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
checkPropTypes.resetWarningCache = function() {
|
|
478
|
-
if (process.env.NODE_ENV !== "production") {
|
|
479
|
-
loggedTypeFailures = {};
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
checkPropTypes_1 = checkPropTypes;
|
|
483
|
-
return checkPropTypes_1;
|
|
484
|
-
}
|
|
485
|
-
var factoryWithTypeCheckers;
|
|
486
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
487
|
-
function requireFactoryWithTypeCheckers() {
|
|
488
|
-
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
|
489
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
490
|
-
var ReactIs = requireReactIs();
|
|
491
|
-
var assign = requireObjectAssign();
|
|
492
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
493
|
-
var has2 = /* @__PURE__ */ requireHas();
|
|
494
|
-
var checkPropTypes = /* @__PURE__ */ requireCheckPropTypes();
|
|
495
|
-
var printWarning = function() {
|
|
496
|
-
};
|
|
497
|
-
if (process.env.NODE_ENV !== "production") {
|
|
498
|
-
printWarning = function(text) {
|
|
499
|
-
var message = "Warning: " + text;
|
|
500
|
-
if (typeof console !== "undefined") {
|
|
501
|
-
console.error(message);
|
|
502
|
-
}
|
|
503
|
-
try {
|
|
504
|
-
throw new Error(message);
|
|
505
|
-
} catch (x) {
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function emptyFunctionThatReturnsNull() {
|
|
510
|
-
return null;
|
|
511
|
-
}
|
|
512
|
-
factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
513
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
514
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
515
|
-
function getIteratorFn(maybeIterable) {
|
|
516
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
517
|
-
if (typeof iteratorFn === "function") {
|
|
518
|
-
return iteratorFn;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
var ANONYMOUS = "<<anonymous>>";
|
|
522
|
-
var ReactPropTypes = {
|
|
523
|
-
array: createPrimitiveTypeChecker("array"),
|
|
524
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
|
525
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
|
526
|
-
func: createPrimitiveTypeChecker("function"),
|
|
527
|
-
number: createPrimitiveTypeChecker("number"),
|
|
528
|
-
object: createPrimitiveTypeChecker("object"),
|
|
529
|
-
string: createPrimitiveTypeChecker("string"),
|
|
530
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
|
531
|
-
any: createAnyTypeChecker(),
|
|
532
|
-
arrayOf: createArrayOfTypeChecker,
|
|
533
|
-
element: createElementTypeChecker(),
|
|
534
|
-
elementType: createElementTypeTypeChecker(),
|
|
535
|
-
instanceOf: createInstanceTypeChecker,
|
|
536
|
-
node: createNodeChecker(),
|
|
537
|
-
objectOf: createObjectOfTypeChecker,
|
|
538
|
-
oneOf: createEnumTypeChecker,
|
|
539
|
-
oneOfType: createUnionTypeChecker,
|
|
540
|
-
shape: createShapeTypeChecker,
|
|
541
|
-
exact: createStrictShapeTypeChecker
|
|
542
|
-
};
|
|
543
|
-
function is(x, y) {
|
|
544
|
-
if (x === y) {
|
|
545
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
546
|
-
} else {
|
|
547
|
-
return x !== x && y !== y;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
function PropTypeError(message, data) {
|
|
551
|
-
this.message = message;
|
|
552
|
-
this.data = data && typeof data === "object" ? data : {};
|
|
553
|
-
this.stack = "";
|
|
554
|
-
}
|
|
555
|
-
PropTypeError.prototype = Error.prototype;
|
|
556
|
-
function createChainableTypeChecker(validate) {
|
|
557
|
-
if (process.env.NODE_ENV !== "production") {
|
|
558
|
-
var manualPropTypeCallCache = {};
|
|
559
|
-
var manualPropTypeWarningCount = 0;
|
|
560
|
-
}
|
|
561
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
562
|
-
componentName = componentName || ANONYMOUS;
|
|
563
|
-
propFullName = propFullName || propName;
|
|
564
|
-
if (secret !== ReactPropTypesSecret) {
|
|
565
|
-
if (throwOnDirectAccess) {
|
|
566
|
-
var err = new Error(
|
|
567
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
568
|
-
);
|
|
569
|
-
err.name = "Invariant Violation";
|
|
570
|
-
throw err;
|
|
571
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
572
|
-
var cacheKey = componentName + ":" + propName;
|
|
573
|
-
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
574
|
-
manualPropTypeWarningCount < 3) {
|
|
575
|
-
printWarning(
|
|
576
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
577
|
-
);
|
|
578
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
579
|
-
manualPropTypeWarningCount++;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
if (props[propName] == null) {
|
|
584
|
-
if (isRequired) {
|
|
585
|
-
if (props[propName] === null) {
|
|
586
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
587
|
-
}
|
|
588
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
589
|
-
}
|
|
590
|
-
return null;
|
|
591
|
-
} else {
|
|
592
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
596
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
597
|
-
return chainedCheckType;
|
|
598
|
-
}
|
|
599
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
600
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
601
|
-
var propValue = props[propName];
|
|
602
|
-
var propType = getPropType(propValue);
|
|
603
|
-
if (propType !== expectedType) {
|
|
604
|
-
var preciseType = getPreciseType(propValue);
|
|
605
|
-
return new PropTypeError(
|
|
606
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
607
|
-
{ expectedType }
|
|
608
|
-
);
|
|
609
|
-
}
|
|
610
|
-
return null;
|
|
611
|
-
}
|
|
612
|
-
return createChainableTypeChecker(validate);
|
|
613
|
-
}
|
|
614
|
-
function createAnyTypeChecker() {
|
|
615
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
616
|
-
}
|
|
617
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
618
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
619
|
-
if (typeof typeChecker !== "function") {
|
|
620
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
621
|
-
}
|
|
622
|
-
var propValue = props[propName];
|
|
623
|
-
if (!Array.isArray(propValue)) {
|
|
624
|
-
var propType = getPropType(propValue);
|
|
625
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
626
|
-
}
|
|
627
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
628
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
629
|
-
if (error instanceof Error) {
|
|
630
|
-
return error;
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
return null;
|
|
634
|
-
}
|
|
635
|
-
return createChainableTypeChecker(validate);
|
|
636
|
-
}
|
|
637
|
-
function createElementTypeChecker() {
|
|
638
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
639
|
-
var propValue = props[propName];
|
|
640
|
-
if (!isValidElement(propValue)) {
|
|
641
|
-
var propType = getPropType(propValue);
|
|
642
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
643
|
-
}
|
|
644
|
-
return null;
|
|
645
|
-
}
|
|
646
|
-
return createChainableTypeChecker(validate);
|
|
647
|
-
}
|
|
648
|
-
function createElementTypeTypeChecker() {
|
|
649
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
650
|
-
var propValue = props[propName];
|
|
651
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
652
|
-
var propType = getPropType(propValue);
|
|
653
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
654
|
-
}
|
|
655
|
-
return null;
|
|
656
|
-
}
|
|
657
|
-
return createChainableTypeChecker(validate);
|
|
658
|
-
}
|
|
659
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
660
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
661
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
662
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
663
|
-
var actualClassName = getClassName(props[propName]);
|
|
664
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
665
|
-
}
|
|
666
|
-
return null;
|
|
667
|
-
}
|
|
668
|
-
return createChainableTypeChecker(validate);
|
|
669
|
-
}
|
|
670
|
-
function createEnumTypeChecker(expectedValues) {
|
|
671
|
-
if (!Array.isArray(expectedValues)) {
|
|
672
|
-
if (process.env.NODE_ENV !== "production") {
|
|
673
|
-
if (arguments.length > 1) {
|
|
674
|
-
printWarning(
|
|
675
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
676
|
-
);
|
|
677
|
-
} else {
|
|
678
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
return emptyFunctionThatReturnsNull;
|
|
682
|
-
}
|
|
683
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
684
|
-
var propValue = props[propName];
|
|
685
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
686
|
-
if (is(propValue, expectedValues[i])) {
|
|
687
|
-
return null;
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
691
|
-
var type = getPreciseType(value);
|
|
692
|
-
if (type === "symbol") {
|
|
693
|
-
return String(value);
|
|
694
|
-
}
|
|
695
|
-
return value;
|
|
696
|
-
});
|
|
697
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
698
|
-
}
|
|
699
|
-
return createChainableTypeChecker(validate);
|
|
700
|
-
}
|
|
701
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
702
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
703
|
-
if (typeof typeChecker !== "function") {
|
|
704
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
705
|
-
}
|
|
706
|
-
var propValue = props[propName];
|
|
707
|
-
var propType = getPropType(propValue);
|
|
708
|
-
if (propType !== "object") {
|
|
709
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
710
|
-
}
|
|
711
|
-
for (var key in propValue) {
|
|
712
|
-
if (has2(propValue, key)) {
|
|
713
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
714
|
-
if (error instanceof Error) {
|
|
715
|
-
return error;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
return null;
|
|
720
|
-
}
|
|
721
|
-
return createChainableTypeChecker(validate);
|
|
722
|
-
}
|
|
723
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
724
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
725
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
726
|
-
return emptyFunctionThatReturnsNull;
|
|
727
|
-
}
|
|
728
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
729
|
-
var checker = arrayOfTypeCheckers[i];
|
|
730
|
-
if (typeof checker !== "function") {
|
|
731
|
-
printWarning(
|
|
732
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
733
|
-
);
|
|
734
|
-
return emptyFunctionThatReturnsNull;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
738
|
-
var expectedTypes = [];
|
|
739
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
740
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
|
741
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
742
|
-
if (checkerResult == null) {
|
|
743
|
-
return null;
|
|
744
|
-
}
|
|
745
|
-
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
746
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
750
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
751
|
-
}
|
|
752
|
-
return createChainableTypeChecker(validate);
|
|
753
|
-
}
|
|
754
|
-
function createNodeChecker() {
|
|
755
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
756
|
-
if (!isNode(props[propName])) {
|
|
757
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
758
|
-
}
|
|
759
|
-
return null;
|
|
760
|
-
}
|
|
761
|
-
return createChainableTypeChecker(validate);
|
|
762
|
-
}
|
|
763
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
764
|
-
return new PropTypeError(
|
|
765
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
766
|
-
);
|
|
767
|
-
}
|
|
768
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
769
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
770
|
-
var propValue = props[propName];
|
|
771
|
-
var propType = getPropType(propValue);
|
|
772
|
-
if (propType !== "object") {
|
|
773
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
774
|
-
}
|
|
775
|
-
for (var key in shapeTypes) {
|
|
776
|
-
var checker = shapeTypes[key];
|
|
777
|
-
if (typeof checker !== "function") {
|
|
778
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
779
|
-
}
|
|
780
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
781
|
-
if (error) {
|
|
782
|
-
return error;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
return null;
|
|
786
|
-
}
|
|
787
|
-
return createChainableTypeChecker(validate);
|
|
788
|
-
}
|
|
789
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
790
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
791
|
-
var propValue = props[propName];
|
|
792
|
-
var propType = getPropType(propValue);
|
|
793
|
-
if (propType !== "object") {
|
|
794
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
795
|
-
}
|
|
796
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
797
|
-
for (var key in allKeys) {
|
|
798
|
-
var checker = shapeTypes[key];
|
|
799
|
-
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
800
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
801
|
-
}
|
|
802
|
-
if (!checker) {
|
|
803
|
-
return new PropTypeError(
|
|
804
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
808
|
-
if (error) {
|
|
809
|
-
return error;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
return null;
|
|
813
|
-
}
|
|
814
|
-
return createChainableTypeChecker(validate);
|
|
815
|
-
}
|
|
816
|
-
function isNode(propValue) {
|
|
817
|
-
switch (typeof propValue) {
|
|
818
|
-
case "number":
|
|
819
|
-
case "string":
|
|
820
|
-
case "undefined":
|
|
821
|
-
return true;
|
|
822
|
-
case "boolean":
|
|
823
|
-
return !propValue;
|
|
824
|
-
case "object":
|
|
825
|
-
if (Array.isArray(propValue)) {
|
|
826
|
-
return propValue.every(isNode);
|
|
827
|
-
}
|
|
828
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
829
|
-
return true;
|
|
830
|
-
}
|
|
831
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
832
|
-
if (iteratorFn) {
|
|
833
|
-
var iterator = iteratorFn.call(propValue);
|
|
834
|
-
var step;
|
|
835
|
-
if (iteratorFn !== propValue.entries) {
|
|
836
|
-
while (!(step = iterator.next()).done) {
|
|
837
|
-
if (!isNode(step.value)) {
|
|
838
|
-
return false;
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
} else {
|
|
842
|
-
while (!(step = iterator.next()).done) {
|
|
843
|
-
var entry = step.value;
|
|
844
|
-
if (entry) {
|
|
845
|
-
if (!isNode(entry[1])) {
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
} else {
|
|
852
|
-
return false;
|
|
853
|
-
}
|
|
854
|
-
return true;
|
|
855
|
-
default:
|
|
856
|
-
return false;
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
function isSymbol(propType, propValue) {
|
|
860
|
-
if (propType === "symbol") {
|
|
861
|
-
return true;
|
|
862
|
-
}
|
|
863
|
-
if (!propValue) {
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
|
867
|
-
return true;
|
|
868
|
-
}
|
|
869
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
870
|
-
return true;
|
|
871
|
-
}
|
|
872
|
-
return false;
|
|
873
|
-
}
|
|
874
|
-
function getPropType(propValue) {
|
|
875
|
-
var propType = typeof propValue;
|
|
876
|
-
if (Array.isArray(propValue)) {
|
|
877
|
-
return "array";
|
|
878
|
-
}
|
|
879
|
-
if (propValue instanceof RegExp) {
|
|
880
|
-
return "object";
|
|
881
|
-
}
|
|
882
|
-
if (isSymbol(propType, propValue)) {
|
|
883
|
-
return "symbol";
|
|
884
|
-
}
|
|
885
|
-
return propType;
|
|
886
|
-
}
|
|
887
|
-
function getPreciseType(propValue) {
|
|
888
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
|
889
|
-
return "" + propValue;
|
|
890
|
-
}
|
|
891
|
-
var propType = getPropType(propValue);
|
|
892
|
-
if (propType === "object") {
|
|
893
|
-
if (propValue instanceof Date) {
|
|
894
|
-
return "date";
|
|
895
|
-
} else if (propValue instanceof RegExp) {
|
|
896
|
-
return "regexp";
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
return propType;
|
|
900
|
-
}
|
|
901
|
-
function getPostfixForTypeWarning(value) {
|
|
902
|
-
var type = getPreciseType(value);
|
|
903
|
-
switch (type) {
|
|
904
|
-
case "array":
|
|
905
|
-
case "object":
|
|
906
|
-
return "an " + type;
|
|
907
|
-
case "boolean":
|
|
908
|
-
case "date":
|
|
909
|
-
case "regexp":
|
|
910
|
-
return "a " + type;
|
|
911
|
-
default:
|
|
912
|
-
return type;
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
function getClassName(propValue) {
|
|
916
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
917
|
-
return ANONYMOUS;
|
|
918
|
-
}
|
|
919
|
-
return propValue.constructor.name;
|
|
920
|
-
}
|
|
921
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
922
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
|
923
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
924
|
-
return ReactPropTypes;
|
|
925
|
-
};
|
|
926
|
-
return factoryWithTypeCheckers;
|
|
927
|
-
}
|
|
928
|
-
var factoryWithThrowingShims;
|
|
929
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
930
|
-
function requireFactoryWithThrowingShims() {
|
|
931
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
932
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
933
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
934
|
-
function emptyFunction() {
|
|
935
|
-
}
|
|
936
|
-
function emptyFunctionWithReset() {
|
|
937
|
-
}
|
|
938
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
939
|
-
factoryWithThrowingShims = function() {
|
|
940
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
941
|
-
if (secret === ReactPropTypesSecret) {
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
var err = new Error(
|
|
945
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
946
|
-
);
|
|
947
|
-
err.name = "Invariant Violation";
|
|
948
|
-
throw err;
|
|
949
|
-
}
|
|
950
|
-
shim.isRequired = shim;
|
|
951
|
-
function getShim() {
|
|
952
|
-
return shim;
|
|
953
|
-
}
|
|
954
|
-
var ReactPropTypes = {
|
|
955
|
-
array: shim,
|
|
956
|
-
bigint: shim,
|
|
957
|
-
bool: shim,
|
|
958
|
-
func: shim,
|
|
959
|
-
number: shim,
|
|
960
|
-
object: shim,
|
|
961
|
-
string: shim,
|
|
962
|
-
symbol: shim,
|
|
963
|
-
any: shim,
|
|
964
|
-
arrayOf: getShim,
|
|
965
|
-
element: shim,
|
|
966
|
-
elementType: shim,
|
|
967
|
-
instanceOf: getShim,
|
|
968
|
-
node: shim,
|
|
969
|
-
objectOf: getShim,
|
|
970
|
-
oneOf: getShim,
|
|
971
|
-
oneOfType: getShim,
|
|
972
|
-
shape: getShim,
|
|
973
|
-
exact: getShim,
|
|
974
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
975
|
-
resetWarningCache: emptyFunction
|
|
976
|
-
};
|
|
977
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
978
|
-
return ReactPropTypes;
|
|
979
|
-
};
|
|
980
|
-
return factoryWithThrowingShims;
|
|
981
|
-
}
|
|
982
|
-
var hasRequiredPropTypes;
|
|
983
|
-
function requirePropTypes() {
|
|
984
|
-
if (hasRequiredPropTypes) return propTypes.exports;
|
|
985
|
-
hasRequiredPropTypes = 1;
|
|
986
|
-
if (process.env.NODE_ENV !== "production") {
|
|
987
|
-
var ReactIs = requireReactIs();
|
|
988
|
-
var throwOnDirectAccess = true;
|
|
989
|
-
propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
990
|
-
} else {
|
|
991
|
-
propTypes.exports = /* @__PURE__ */ requireFactoryWithThrowingShims()();
|
|
992
|
-
}
|
|
993
|
-
return propTypes.exports;
|
|
994
|
-
}
|
|
995
|
-
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
996
72
|
const _excluded = ["localeText"];
|
|
997
73
|
const PickerAdapterContext = /* @__PURE__ */ React.createContext(null);
|
|
998
74
|
if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
|
|
@@ -1623,6 +699,427 @@ class AdapterDayjs {
|
|
|
1623
699
|
return years;
|
|
1624
700
|
};
|
|
1625
701
|
}
|
|
702
|
+
const {
|
|
703
|
+
slice,
|
|
704
|
+
forEach
|
|
705
|
+
} = [];
|
|
706
|
+
function defaults(obj) {
|
|
707
|
+
forEach.call(slice.call(arguments, 1), (source) => {
|
|
708
|
+
if (source) {
|
|
709
|
+
for (const prop in source) {
|
|
710
|
+
if (obj[prop] === void 0) obj[prop] = source[prop];
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
return obj;
|
|
715
|
+
}
|
|
716
|
+
function hasXSS(input) {
|
|
717
|
+
if (typeof input !== "string") return false;
|
|
718
|
+
const xssPatterns = [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i];
|
|
719
|
+
return xssPatterns.some((pattern) => pattern.test(input));
|
|
720
|
+
}
|
|
721
|
+
const fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
722
|
+
const serializeCookie = function(name, val) {
|
|
723
|
+
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
724
|
+
path: "/"
|
|
725
|
+
};
|
|
726
|
+
const opt = options;
|
|
727
|
+
const value = encodeURIComponent(val);
|
|
728
|
+
let str = `${name}=${value}`;
|
|
729
|
+
if (opt.maxAge > 0) {
|
|
730
|
+
const maxAge = opt.maxAge - 0;
|
|
731
|
+
if (Number.isNaN(maxAge)) throw new Error("maxAge should be a Number");
|
|
732
|
+
str += `; Max-Age=${Math.floor(maxAge)}`;
|
|
733
|
+
}
|
|
734
|
+
if (opt.domain) {
|
|
735
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
736
|
+
throw new TypeError("option domain is invalid");
|
|
737
|
+
}
|
|
738
|
+
str += `; Domain=${opt.domain}`;
|
|
739
|
+
}
|
|
740
|
+
if (opt.path) {
|
|
741
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
742
|
+
throw new TypeError("option path is invalid");
|
|
743
|
+
}
|
|
744
|
+
str += `; Path=${opt.path}`;
|
|
745
|
+
}
|
|
746
|
+
if (opt.expires) {
|
|
747
|
+
if (typeof opt.expires.toUTCString !== "function") {
|
|
748
|
+
throw new TypeError("option expires is invalid");
|
|
749
|
+
}
|
|
750
|
+
str += `; Expires=${opt.expires.toUTCString()}`;
|
|
751
|
+
}
|
|
752
|
+
if (opt.httpOnly) str += "; HttpOnly";
|
|
753
|
+
if (opt.secure) str += "; Secure";
|
|
754
|
+
if (opt.sameSite) {
|
|
755
|
+
const sameSite = typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
756
|
+
switch (sameSite) {
|
|
757
|
+
case true:
|
|
758
|
+
str += "; SameSite=Strict";
|
|
759
|
+
break;
|
|
760
|
+
case "lax":
|
|
761
|
+
str += "; SameSite=Lax";
|
|
762
|
+
break;
|
|
763
|
+
case "strict":
|
|
764
|
+
str += "; SameSite=Strict";
|
|
765
|
+
break;
|
|
766
|
+
case "none":
|
|
767
|
+
str += "; SameSite=None";
|
|
768
|
+
break;
|
|
769
|
+
default:
|
|
770
|
+
throw new TypeError("option sameSite is invalid");
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (opt.partitioned) str += "; Partitioned";
|
|
774
|
+
return str;
|
|
775
|
+
};
|
|
776
|
+
const cookie = {
|
|
777
|
+
create(name, value, minutes, domain) {
|
|
778
|
+
let cookieOptions = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
779
|
+
path: "/",
|
|
780
|
+
sameSite: "strict"
|
|
781
|
+
};
|
|
782
|
+
if (minutes) {
|
|
783
|
+
cookieOptions.expires = /* @__PURE__ */ new Date();
|
|
784
|
+
cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1e3);
|
|
785
|
+
}
|
|
786
|
+
if (domain) cookieOptions.domain = domain;
|
|
787
|
+
document.cookie = serializeCookie(name, value, cookieOptions);
|
|
788
|
+
},
|
|
789
|
+
read(name) {
|
|
790
|
+
const nameEQ = `${name}=`;
|
|
791
|
+
const ca = document.cookie.split(";");
|
|
792
|
+
for (let i = 0; i < ca.length; i++) {
|
|
793
|
+
let c2 = ca[i];
|
|
794
|
+
while (c2.charAt(0) === " ") c2 = c2.substring(1, c2.length);
|
|
795
|
+
if (c2.indexOf(nameEQ) === 0) return c2.substring(nameEQ.length, c2.length);
|
|
796
|
+
}
|
|
797
|
+
return null;
|
|
798
|
+
},
|
|
799
|
+
remove(name, domain) {
|
|
800
|
+
this.create(name, "", -1, domain);
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
var cookie$1 = {
|
|
804
|
+
name: "cookie",
|
|
805
|
+
// Deconstruct the options object and extract the lookupCookie property
|
|
806
|
+
lookup(_ref) {
|
|
807
|
+
let {
|
|
808
|
+
lookupCookie
|
|
809
|
+
} = _ref;
|
|
810
|
+
if (lookupCookie && typeof document !== "undefined") {
|
|
811
|
+
return cookie.read(lookupCookie) || void 0;
|
|
812
|
+
}
|
|
813
|
+
return void 0;
|
|
814
|
+
},
|
|
815
|
+
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
816
|
+
cacheUserLanguage(lng, _ref2) {
|
|
817
|
+
let {
|
|
818
|
+
lookupCookie,
|
|
819
|
+
cookieMinutes,
|
|
820
|
+
cookieDomain,
|
|
821
|
+
cookieOptions
|
|
822
|
+
} = _ref2;
|
|
823
|
+
if (lookupCookie && typeof document !== "undefined") {
|
|
824
|
+
cookie.create(lookupCookie, lng, cookieMinutes, cookieDomain, cookieOptions);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
var querystring = {
|
|
829
|
+
name: "querystring",
|
|
830
|
+
// Deconstruct the options object and extract the lookupQuerystring property
|
|
831
|
+
lookup(_ref) {
|
|
832
|
+
let {
|
|
833
|
+
lookupQuerystring
|
|
834
|
+
} = _ref;
|
|
835
|
+
let found;
|
|
836
|
+
if (typeof window !== "undefined") {
|
|
837
|
+
let {
|
|
838
|
+
search
|
|
839
|
+
} = window.location;
|
|
840
|
+
if (!window.location.search && window.location.hash?.indexOf("?") > -1) {
|
|
841
|
+
search = window.location.hash.substring(window.location.hash.indexOf("?"));
|
|
842
|
+
}
|
|
843
|
+
const query = search.substring(1);
|
|
844
|
+
const params = query.split("&");
|
|
845
|
+
for (let i = 0; i < params.length; i++) {
|
|
846
|
+
const pos = params[i].indexOf("=");
|
|
847
|
+
if (pos > 0) {
|
|
848
|
+
const key = params[i].substring(0, pos);
|
|
849
|
+
if (key === lookupQuerystring) {
|
|
850
|
+
found = params[i].substring(pos + 1);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return found;
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
var hash = {
|
|
859
|
+
name: "hash",
|
|
860
|
+
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
861
|
+
lookup(_ref) {
|
|
862
|
+
let {
|
|
863
|
+
lookupHash,
|
|
864
|
+
lookupFromHashIndex
|
|
865
|
+
} = _ref;
|
|
866
|
+
let found;
|
|
867
|
+
if (typeof window !== "undefined") {
|
|
868
|
+
const {
|
|
869
|
+
hash: hash2
|
|
870
|
+
} = window.location;
|
|
871
|
+
if (hash2 && hash2.length > 2) {
|
|
872
|
+
const query = hash2.substring(1);
|
|
873
|
+
if (lookupHash) {
|
|
874
|
+
const params = query.split("&");
|
|
875
|
+
for (let i = 0; i < params.length; i++) {
|
|
876
|
+
const pos = params[i].indexOf("=");
|
|
877
|
+
if (pos > 0) {
|
|
878
|
+
const key = params[i].substring(0, pos);
|
|
879
|
+
if (key === lookupHash) {
|
|
880
|
+
found = params[i].substring(pos + 1);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
if (found) return found;
|
|
886
|
+
if (!found && lookupFromHashIndex > -1) {
|
|
887
|
+
const language = hash2.match(/\/([a-zA-Z-]*)/g);
|
|
888
|
+
if (!Array.isArray(language)) return void 0;
|
|
889
|
+
const index = typeof lookupFromHashIndex === "number" ? lookupFromHashIndex : 0;
|
|
890
|
+
return language[index]?.replace("/", "");
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
return found;
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
let hasLocalStorageSupport = null;
|
|
898
|
+
const localStorageAvailable = () => {
|
|
899
|
+
if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;
|
|
900
|
+
try {
|
|
901
|
+
hasLocalStorageSupport = typeof window !== "undefined" && window.localStorage !== null;
|
|
902
|
+
if (!hasLocalStorageSupport) {
|
|
903
|
+
return false;
|
|
904
|
+
}
|
|
905
|
+
const testKey = "i18next.translate.boo";
|
|
906
|
+
window.localStorage.setItem(testKey, "foo");
|
|
907
|
+
window.localStorage.removeItem(testKey);
|
|
908
|
+
} catch (e) {
|
|
909
|
+
hasLocalStorageSupport = false;
|
|
910
|
+
}
|
|
911
|
+
return hasLocalStorageSupport;
|
|
912
|
+
};
|
|
913
|
+
var localStorage = {
|
|
914
|
+
name: "localStorage",
|
|
915
|
+
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
916
|
+
lookup(_ref) {
|
|
917
|
+
let {
|
|
918
|
+
lookupLocalStorage
|
|
919
|
+
} = _ref;
|
|
920
|
+
if (lookupLocalStorage && localStorageAvailable()) {
|
|
921
|
+
return window.localStorage.getItem(lookupLocalStorage) || void 0;
|
|
922
|
+
}
|
|
923
|
+
return void 0;
|
|
924
|
+
},
|
|
925
|
+
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
926
|
+
cacheUserLanguage(lng, _ref2) {
|
|
927
|
+
let {
|
|
928
|
+
lookupLocalStorage
|
|
929
|
+
} = _ref2;
|
|
930
|
+
if (lookupLocalStorage && localStorageAvailable()) {
|
|
931
|
+
window.localStorage.setItem(lookupLocalStorage, lng);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
let hasSessionStorageSupport = null;
|
|
936
|
+
const sessionStorageAvailable = () => {
|
|
937
|
+
if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;
|
|
938
|
+
try {
|
|
939
|
+
hasSessionStorageSupport = typeof window !== "undefined" && window.sessionStorage !== null;
|
|
940
|
+
if (!hasSessionStorageSupport) {
|
|
941
|
+
return false;
|
|
942
|
+
}
|
|
943
|
+
const testKey = "i18next.translate.boo";
|
|
944
|
+
window.sessionStorage.setItem(testKey, "foo");
|
|
945
|
+
window.sessionStorage.removeItem(testKey);
|
|
946
|
+
} catch (e) {
|
|
947
|
+
hasSessionStorageSupport = false;
|
|
948
|
+
}
|
|
949
|
+
return hasSessionStorageSupport;
|
|
950
|
+
};
|
|
951
|
+
var sessionStorage = {
|
|
952
|
+
name: "sessionStorage",
|
|
953
|
+
lookup(_ref) {
|
|
954
|
+
let {
|
|
955
|
+
lookupSessionStorage
|
|
956
|
+
} = _ref;
|
|
957
|
+
if (lookupSessionStorage && sessionStorageAvailable()) {
|
|
958
|
+
return window.sessionStorage.getItem(lookupSessionStorage) || void 0;
|
|
959
|
+
}
|
|
960
|
+
return void 0;
|
|
961
|
+
},
|
|
962
|
+
cacheUserLanguage(lng, _ref2) {
|
|
963
|
+
let {
|
|
964
|
+
lookupSessionStorage
|
|
965
|
+
} = _ref2;
|
|
966
|
+
if (lookupSessionStorage && sessionStorageAvailable()) {
|
|
967
|
+
window.sessionStorage.setItem(lookupSessionStorage, lng);
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
var navigator$1 = {
|
|
972
|
+
name: "navigator",
|
|
973
|
+
lookup(options) {
|
|
974
|
+
const found = [];
|
|
975
|
+
if (typeof navigator !== "undefined") {
|
|
976
|
+
const {
|
|
977
|
+
languages,
|
|
978
|
+
userLanguage,
|
|
979
|
+
language
|
|
980
|
+
} = navigator;
|
|
981
|
+
if (languages) {
|
|
982
|
+
for (let i = 0; i < languages.length; i++) {
|
|
983
|
+
found.push(languages[i]);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
if (userLanguage) {
|
|
987
|
+
found.push(userLanguage);
|
|
988
|
+
}
|
|
989
|
+
if (language) {
|
|
990
|
+
found.push(language);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
return found.length > 0 ? found : void 0;
|
|
994
|
+
}
|
|
995
|
+
};
|
|
996
|
+
var htmlTag = {
|
|
997
|
+
name: "htmlTag",
|
|
998
|
+
// Deconstruct the options object and extract the htmlTag property
|
|
999
|
+
lookup(_ref) {
|
|
1000
|
+
let {
|
|
1001
|
+
htmlTag: htmlTag2
|
|
1002
|
+
} = _ref;
|
|
1003
|
+
let found;
|
|
1004
|
+
const internalHtmlTag = htmlTag2 || (typeof document !== "undefined" ? document.documentElement : null);
|
|
1005
|
+
if (internalHtmlTag && typeof internalHtmlTag.getAttribute === "function") {
|
|
1006
|
+
found = internalHtmlTag.getAttribute("lang");
|
|
1007
|
+
}
|
|
1008
|
+
return found;
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
var path = {
|
|
1012
|
+
name: "path",
|
|
1013
|
+
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
1014
|
+
lookup(_ref) {
|
|
1015
|
+
let {
|
|
1016
|
+
lookupFromPathIndex
|
|
1017
|
+
} = _ref;
|
|
1018
|
+
if (typeof window === "undefined") return void 0;
|
|
1019
|
+
const language = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
1020
|
+
if (!Array.isArray(language)) return void 0;
|
|
1021
|
+
const index = typeof lookupFromPathIndex === "number" ? lookupFromPathIndex : 0;
|
|
1022
|
+
return language[index]?.replace("/", "");
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
var subdomain = {
|
|
1026
|
+
name: "subdomain",
|
|
1027
|
+
lookup(_ref) {
|
|
1028
|
+
let {
|
|
1029
|
+
lookupFromSubdomainIndex
|
|
1030
|
+
} = _ref;
|
|
1031
|
+
const internalLookupFromSubdomainIndex = typeof lookupFromSubdomainIndex === "number" ? lookupFromSubdomainIndex + 1 : 1;
|
|
1032
|
+
const language = typeof window !== "undefined" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
1033
|
+
if (!language) return void 0;
|
|
1034
|
+
return language[internalLookupFromSubdomainIndex];
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
let canCookies = false;
|
|
1038
|
+
try {
|
|
1039
|
+
document.cookie;
|
|
1040
|
+
canCookies = true;
|
|
1041
|
+
} catch (e) {
|
|
1042
|
+
}
|
|
1043
|
+
const order = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
1044
|
+
if (!canCookies) order.splice(1, 1);
|
|
1045
|
+
const getDefaults = () => ({
|
|
1046
|
+
order,
|
|
1047
|
+
lookupQuerystring: "lng",
|
|
1048
|
+
lookupCookie: "i18next",
|
|
1049
|
+
lookupLocalStorage: "i18nextLng",
|
|
1050
|
+
lookupSessionStorage: "i18nextLng",
|
|
1051
|
+
// cache user language
|
|
1052
|
+
caches: ["localStorage"],
|
|
1053
|
+
excludeCacheFor: ["cimode"],
|
|
1054
|
+
// cookieMinutes: 10,
|
|
1055
|
+
// cookieDomain: 'myDomain'
|
|
1056
|
+
convertDetectedLanguage: (l) => l
|
|
1057
|
+
});
|
|
1058
|
+
class Browser {
|
|
1059
|
+
constructor(services) {
|
|
1060
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1061
|
+
this.type = "languageDetector";
|
|
1062
|
+
this.detectors = {};
|
|
1063
|
+
this.init(services, options);
|
|
1064
|
+
}
|
|
1065
|
+
init() {
|
|
1066
|
+
let services = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
1067
|
+
languageUtils: {}
|
|
1068
|
+
};
|
|
1069
|
+
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1070
|
+
let i18nOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1071
|
+
this.services = services;
|
|
1072
|
+
this.options = defaults(options, this.options || {}, getDefaults());
|
|
1073
|
+
if (typeof this.options.convertDetectedLanguage === "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1) {
|
|
1074
|
+
this.options.convertDetectedLanguage = (l) => l.replace("-", "_");
|
|
1075
|
+
}
|
|
1076
|
+
if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;
|
|
1077
|
+
this.i18nOptions = i18nOptions;
|
|
1078
|
+
this.addDetector(cookie$1);
|
|
1079
|
+
this.addDetector(querystring);
|
|
1080
|
+
this.addDetector(localStorage);
|
|
1081
|
+
this.addDetector(sessionStorage);
|
|
1082
|
+
this.addDetector(navigator$1);
|
|
1083
|
+
this.addDetector(htmlTag);
|
|
1084
|
+
this.addDetector(path);
|
|
1085
|
+
this.addDetector(subdomain);
|
|
1086
|
+
this.addDetector(hash);
|
|
1087
|
+
}
|
|
1088
|
+
addDetector(detector) {
|
|
1089
|
+
this.detectors[detector.name] = detector;
|
|
1090
|
+
return this;
|
|
1091
|
+
}
|
|
1092
|
+
detect() {
|
|
1093
|
+
let detectionOrder = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order;
|
|
1094
|
+
let detected = [];
|
|
1095
|
+
detectionOrder.forEach((detectorName) => {
|
|
1096
|
+
if (this.detectors[detectorName]) {
|
|
1097
|
+
let lookup = this.detectors[detectorName].lookup(this.options);
|
|
1098
|
+
if (lookup && typeof lookup === "string") lookup = [lookup];
|
|
1099
|
+
if (lookup) detected = detected.concat(lookup);
|
|
1100
|
+
}
|
|
1101
|
+
});
|
|
1102
|
+
detected = detected.filter((d) => d !== void 0 && d !== null && !hasXSS(d)).map((d) => this.options.convertDetectedLanguage(d));
|
|
1103
|
+
if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected;
|
|
1104
|
+
return detected.length > 0 ? detected[0] : null;
|
|
1105
|
+
}
|
|
1106
|
+
cacheUserLanguage(lng) {
|
|
1107
|
+
let caches = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
1108
|
+
if (!caches) return;
|
|
1109
|
+
if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;
|
|
1110
|
+
caches.forEach((cacheName) => {
|
|
1111
|
+
if (this.detectors[cacheName]) this.detectors[cacheName].cacheUserLanguage(lng, this.options);
|
|
1112
|
+
});
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
Browser.type = "languageDetector";
|
|
1116
|
+
const initReactI18next = {
|
|
1117
|
+
type: "3rdParty",
|
|
1118
|
+
init(instance2) {
|
|
1119
|
+
setDefaults(instance2.options.react);
|
|
1120
|
+
setI18n(instance2);
|
|
1121
|
+
}
|
|
1122
|
+
};
|
|
1626
1123
|
function DialogsProvider({
|
|
1627
1124
|
children
|
|
1628
1125
|
}) {
|
|
@@ -2501,7 +1998,7 @@ const ToolbarAccount = () => {
|
|
|
2501
1998
|
const open = Boolean(anchorElement);
|
|
2502
1999
|
const {
|
|
2503
2000
|
t,
|
|
2504
|
-
i18n
|
|
2001
|
+
i18n
|
|
2505
2002
|
} = useTranslation();
|
|
2506
2003
|
const {
|
|
2507
2004
|
mode,
|
|
@@ -2514,9 +2011,9 @@ const ToolbarAccount = () => {
|
|
|
2514
2011
|
let t0;
|
|
2515
2012
|
let t1;
|
|
2516
2013
|
let theme;
|
|
2517
|
-
if ($[0] !==
|
|
2518
|
-
const supportedLanguages = (Array.isArray(
|
|
2519
|
-
const languageDisplayNames = new Intl.DisplayNames([
|
|
2014
|
+
if ($[0] !== i18n || $[1] !== mode || $[2] !== setMode || $[3] !== t) {
|
|
2015
|
+
const supportedLanguages = (Array.isArray(i18n.options.supportedLngs) ? i18n.options.supportedLngs : []).filter(_temp$2);
|
|
2016
|
+
const languageDisplayNames = new Intl.DisplayNames([i18n.language], {
|
|
2520
2017
|
type: "language"
|
|
2521
2018
|
});
|
|
2522
2019
|
let t22;
|
|
@@ -2736,7 +2233,7 @@ const ToolbarAccount = () => {
|
|
|
2736
2233
|
}
|
|
2737
2234
|
const t28 = /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: t23, sx: t24, children: [
|
|
2738
2235
|
t25,
|
|
2739
|
-
/* @__PURE__ */ jsx(ListItemText$1, { primary: t26, secondary: capitalize(languageDisplayNames.of(
|
|
2236
|
+
/* @__PURE__ */ jsx(ListItemText$1, { primary: t26, secondary: capitalize(languageDisplayNames.of(i18n.language)) }),
|
|
2740
2237
|
t27
|
|
2741
2238
|
] });
|
|
2742
2239
|
let t29;
|
|
@@ -2878,11 +2375,11 @@ const ToolbarAccount = () => {
|
|
|
2878
2375
|
} else {
|
|
2879
2376
|
t0 = $[76];
|
|
2880
2377
|
}
|
|
2881
|
-
t1 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: () =>
|
|
2882
|
-
/* @__PURE__ */ jsx(ListItemIcon$1, { children:
|
|
2378
|
+
t1 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: () => i18n.changeLanguage(languageCode).finally(() => closeMenu()), selected: i18n.resolvedLanguage === languageCode, children: [
|
|
2379
|
+
/* @__PURE__ */ jsx(ListItemIcon$1, { children: i18n.resolvedLanguage === languageCode && /* @__PURE__ */ jsx(Done, {}) }),
|
|
2883
2380
|
/* @__PURE__ */ jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
|
|
2884
2381
|
] }, languageCode));
|
|
2885
|
-
$[0] =
|
|
2382
|
+
$[0] = i18n;
|
|
2886
2383
|
$[1] = mode;
|
|
2887
2384
|
$[2] = setMode;
|
|
2888
2385
|
$[3] = t;
|
|
@@ -3056,11 +2553,11 @@ function _temp4() {
|
|
|
3056
2553
|
}
|
|
3057
2554
|
const YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
|
|
3058
2555
|
const getNavigationOpenStatus = createIsomorphicFn().server(() => {
|
|
3059
|
-
const
|
|
3060
|
-
return
|
|
2556
|
+
const cookie2 = getCookie("navigationOpen");
|
|
2557
|
+
return cookie2 === "true";
|
|
3061
2558
|
}).client(() => {
|
|
3062
|
-
const
|
|
3063
|
-
return
|
|
2559
|
+
const cookie2 = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
|
|
2560
|
+
return cookie2 ? cookie2.split("=")[1] === "true" : false;
|
|
3064
2561
|
});
|
|
3065
2562
|
const DrawerHeader = styled("div")(({
|
|
3066
2563
|
theme
|
|
@@ -3252,7 +2749,7 @@ function _temp$1(previous) {
|
|
|
3252
2749
|
return newValue;
|
|
3253
2750
|
}
|
|
3254
2751
|
const YEAR_IN_MINUTES = 60 * 24 * 365;
|
|
3255
|
-
|
|
2752
|
+
instance.use(Browser).use(initReactI18next).init({
|
|
3256
2753
|
resources,
|
|
3257
2754
|
fallbackLng: "en",
|
|
3258
2755
|
supportedLngs: Object.keys(resources),
|
|
@@ -3276,9 +2773,9 @@ const LayoutProvider = (t0) => {
|
|
|
3276
2773
|
if ($[0] !== languageChangedHandler) {
|
|
3277
2774
|
t1 = () => {
|
|
3278
2775
|
languageChangedHandler();
|
|
3279
|
-
|
|
2776
|
+
instance.on("languageChanged", languageChangedHandler);
|
|
3280
2777
|
return () => {
|
|
3281
|
-
|
|
2778
|
+
instance.off("languageChanged", languageChangedHandler);
|
|
3282
2779
|
};
|
|
3283
2780
|
};
|
|
3284
2781
|
$[0] = languageChangedHandler;
|
|
@@ -3296,7 +2793,7 @@ const LayoutProvider = (t0) => {
|
|
|
3296
2793
|
useEffect(t1, t2);
|
|
3297
2794
|
let t3;
|
|
3298
2795
|
if ($[3] !== children || $[4] !== navigation) {
|
|
3299
|
-
t3 = /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale:
|
|
2796
|
+
t3 = /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: instance.language, children: /* @__PURE__ */ jsx(DialogsProvider, { children: /* @__PURE__ */ jsx(Layout, { navigation, children }) }) }, instance.language);
|
|
3300
2797
|
$[3] = children;
|
|
3301
2798
|
$[4] = navigation;
|
|
3302
2799
|
$[5] = t3;
|
|
@@ -3315,14 +2812,14 @@ const LayoutProvider = (t0) => {
|
|
|
3315
2812
|
return t4;
|
|
3316
2813
|
};
|
|
3317
2814
|
const setSSRLanguage = createServerFn().handler(async () => {
|
|
3318
|
-
const language = getCookie(
|
|
2815
|
+
const language = getCookie(instance.services.languageDetector.options.lookupCookie) || "en";
|
|
3319
2816
|
z__default.config(z__default.core.locales[language]());
|
|
3320
2817
|
dayjs.locale(language);
|
|
3321
|
-
await
|
|
2818
|
+
await instance.changeLanguage(language);
|
|
3322
2819
|
});
|
|
3323
2820
|
function _temp() {
|
|
3324
|
-
z__default.config(z__default.core.locales[
|
|
3325
|
-
dayjs.locale(
|
|
2821
|
+
z__default.config(z__default.core.locales[instance.language]());
|
|
2822
|
+
dayjs.locale(instance.language);
|
|
3326
2823
|
}
|
|
3327
2824
|
export {
|
|
3328
2825
|
LayoutProvider,
|