@tmf_ciclica/ciclicastorybook 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +28 -28
- package/dist/index.es.js +1239 -1229
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as J from "react";
|
|
2
|
-
import jt, { useState as We, useMemo as Ue, useEffect as
|
|
2
|
+
import jt, { useState as We, useMemo as Ue, useEffect as se, useLayoutEffect as Co, useContext as dt, useRef as De, useImperativeHandle as Lt, memo as Ge, forwardRef as yn, cloneElement as Qi } from "react";
|
|
3
3
|
import { useTranslation as $e, Trans as So } from "react-i18next";
|
|
4
4
|
import { motion as wo } from "framer-motion";
|
|
5
5
|
import { create as ca } from "zustand";
|
|
@@ -51,11 +51,11 @@ function xa() {
|
|
|
51
51
|
Vo = 1;
|
|
52
52
|
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
53
53
|
function s(l, c, u) {
|
|
54
|
-
var p,
|
|
54
|
+
var p, d = {}, h = null, v = null;
|
|
55
55
|
u !== void 0 && (h = "" + u), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
56
|
-
for (p in c) r.call(c, p) && !i.hasOwnProperty(p) && (
|
|
57
|
-
if (l && l.defaultProps) for (p in c = l.defaultProps, c)
|
|
58
|
-
return { $$typeof: t, type: l, key: h, ref: v, props:
|
|
56
|
+
for (p in c) r.call(c, p) && !i.hasOwnProperty(p) && (d[p] = c[p]);
|
|
57
|
+
if (l && l.defaultProps) for (p in c = l.defaultProps, c) d[p] === void 0 && (d[p] = c[p]);
|
|
58
|
+
return { $$typeof: t, type: l, key: h, ref: v, props: d, _owner: o.current };
|
|
59
59
|
}
|
|
60
60
|
return kn.Fragment = n, kn.jsx = s, kn.jsxs = s, kn;
|
|
61
61
|
}
|
|
@@ -72,54 +72,54 @@ var On = {};
|
|
|
72
72
|
var qo;
|
|
73
73
|
function Ca() {
|
|
74
74
|
return qo || (qo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
75
|
-
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"),
|
|
75
|
+
var e = jt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, f = "@@iterator";
|
|
76
76
|
function x(g) {
|
|
77
77
|
if (g === null || typeof g != "object")
|
|
78
78
|
return null;
|
|
79
|
-
var
|
|
80
|
-
return typeof
|
|
79
|
+
var E = b && g[b] || g[f];
|
|
80
|
+
return typeof E == "function" ? E : null;
|
|
81
81
|
}
|
|
82
82
|
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
83
|
-
function
|
|
83
|
+
function R(g) {
|
|
84
84
|
{
|
|
85
|
-
for (var
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
for (var E = arguments.length, M = new Array(E > 1 ? E - 1 : 0), te = 1; te < E; te++)
|
|
86
|
+
M[te - 1] = arguments[te];
|
|
87
|
+
w("error", g, M);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function w(g, E, M) {
|
|
91
91
|
{
|
|
92
|
-
var
|
|
93
|
-
G !== "" && (
|
|
94
|
-
var
|
|
92
|
+
var te = C.ReactDebugCurrentFrame, G = te.getStackAddendum();
|
|
93
|
+
G !== "" && (E += "%s", M = M.concat([G]));
|
|
94
|
+
var oe = M.map(function(ue) {
|
|
95
95
|
return String(ue);
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
oe.unshift("Warning: " + E), Function.prototype.apply.call(console[g], console, oe);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
var
|
|
100
|
+
var k = !1, _ = !1, D = !1, y = !1, T = !1, S;
|
|
101
101
|
S = Symbol.for("react.module.reference");
|
|
102
102
|
function $(g) {
|
|
103
|
-
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i ||
|
|
103
|
+
return !!(typeof g == "string" || typeof g == "function" || g === r || g === i || T || g === o || g === u || g === p || y || g === v || k || _ || D || typeof g == "object" && g !== null && (g.$$typeof === h || g.$$typeof === d || g.$$typeof === s || g.$$typeof === l || g.$$typeof === c || // This needs to include all possible module reference object
|
|
104
104
|
// types supported by any Flight configuration anywhere since
|
|
105
105
|
// we don't know which Flight build this will end up being used
|
|
106
106
|
// with.
|
|
107
107
|
g.$$typeof === S || g.getModuleId !== void 0));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
var
|
|
111
|
-
if (
|
|
112
|
-
return
|
|
113
|
-
var G =
|
|
114
|
-
return G !== "" ?
|
|
109
|
+
function N(g, E, M) {
|
|
110
|
+
var te = g.displayName;
|
|
111
|
+
if (te)
|
|
112
|
+
return te;
|
|
113
|
+
var G = E.displayName || E.name || "";
|
|
114
|
+
return G !== "" ? M + "(" + G + ")" : M;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function X(g) {
|
|
117
117
|
return g.displayName || "Context";
|
|
118
118
|
}
|
|
119
119
|
function B(g) {
|
|
120
120
|
if (g == null)
|
|
121
121
|
return null;
|
|
122
|
-
if (typeof g.tag == "number" &&
|
|
122
|
+
if (typeof g.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
|
123
123
|
return g.displayName || g.name || null;
|
|
124
124
|
if (typeof g == "string")
|
|
125
125
|
return g;
|
|
@@ -140,20 +140,20 @@ function Ca() {
|
|
|
140
140
|
if (typeof g == "object")
|
|
141
141
|
switch (g.$$typeof) {
|
|
142
142
|
case l:
|
|
143
|
-
var
|
|
144
|
-
return
|
|
143
|
+
var E = g;
|
|
144
|
+
return X(E) + ".Consumer";
|
|
145
145
|
case s:
|
|
146
|
-
var
|
|
147
|
-
return
|
|
146
|
+
var M = g;
|
|
147
|
+
return X(M._context) + ".Provider";
|
|
148
148
|
case c:
|
|
149
|
-
return
|
|
150
|
-
case
|
|
151
|
-
var
|
|
152
|
-
return
|
|
149
|
+
return N(g, g.render, "ForwardRef");
|
|
150
|
+
case d:
|
|
151
|
+
var te = g.displayName || null;
|
|
152
|
+
return te !== null ? te : B(g.type) || "Memo";
|
|
153
153
|
case h: {
|
|
154
|
-
var G = g,
|
|
154
|
+
var G = g, oe = G._payload, ue = G._init;
|
|
155
155
|
try {
|
|
156
|
-
return B(ue(
|
|
156
|
+
return B(ue(oe));
|
|
157
157
|
} catch {
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
@@ -161,18 +161,18 @@ function Ca() {
|
|
|
161
161
|
}
|
|
162
162
|
return null;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
164
|
+
var Y = Object.assign, V = 0, ie, re, Ee, je, O, A, Q;
|
|
165
|
+
function q() {
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
q.__reactDisabledLog = !0;
|
|
168
168
|
function F() {
|
|
169
169
|
{
|
|
170
|
-
if (
|
|
171
|
-
|
|
170
|
+
if (V === 0) {
|
|
171
|
+
ie = console.log, re = console.info, Ee = console.warn, je = console.error, O = console.group, A = console.groupCollapsed, Q = console.groupEnd;
|
|
172
172
|
var g = {
|
|
173
173
|
configurable: !0,
|
|
174
174
|
enumerable: !0,
|
|
175
|
-
value:
|
|
175
|
+
value: q,
|
|
176
176
|
writable: !0
|
|
177
177
|
};
|
|
178
178
|
Object.defineProperties(console, {
|
|
@@ -185,79 +185,79 @@ function Ca() {
|
|
|
185
185
|
groupEnd: g
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
V++;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function ee() {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (V--, V === 0) {
|
|
194
194
|
var g = {
|
|
195
195
|
configurable: !0,
|
|
196
196
|
enumerable: !0,
|
|
197
197
|
writable: !0
|
|
198
198
|
};
|
|
199
199
|
Object.defineProperties(console, {
|
|
200
|
-
log:
|
|
201
|
-
value:
|
|
200
|
+
log: Y({}, g, {
|
|
201
|
+
value: ie
|
|
202
202
|
}),
|
|
203
|
-
info:
|
|
204
|
-
value:
|
|
203
|
+
info: Y({}, g, {
|
|
204
|
+
value: re
|
|
205
205
|
}),
|
|
206
|
-
warn:
|
|
206
|
+
warn: Y({}, g, {
|
|
207
207
|
value: Ee
|
|
208
208
|
}),
|
|
209
|
-
error:
|
|
209
|
+
error: Y({}, g, {
|
|
210
210
|
value: je
|
|
211
211
|
}),
|
|
212
|
-
group:
|
|
212
|
+
group: Y({}, g, {
|
|
213
213
|
value: O
|
|
214
214
|
}),
|
|
215
|
-
groupCollapsed:
|
|
215
|
+
groupCollapsed: Y({}, g, {
|
|
216
216
|
value: A
|
|
217
217
|
}),
|
|
218
|
-
groupEnd:
|
|
219
|
-
value:
|
|
218
|
+
groupEnd: Y({}, g, {
|
|
219
|
+
value: Q
|
|
220
220
|
})
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
V < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
function U(g,
|
|
226
|
+
var K = C.ReactCurrentDispatcher, H;
|
|
227
|
+
function U(g, E, M) {
|
|
228
228
|
{
|
|
229
|
-
if (
|
|
229
|
+
if (H === void 0)
|
|
230
230
|
try {
|
|
231
231
|
throw Error();
|
|
232
232
|
} catch (G) {
|
|
233
|
-
var
|
|
234
|
-
|
|
233
|
+
var te = G.stack.trim().match(/\n( *(at )?)/);
|
|
234
|
+
H = te && te[1] || "";
|
|
235
235
|
}
|
|
236
236
|
return `
|
|
237
|
-
` +
|
|
237
|
+
` + H + g;
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
var Z = !1,
|
|
240
|
+
var Z = !1, ne;
|
|
241
241
|
{
|
|
242
242
|
var be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
243
|
-
|
|
243
|
+
ne = new be();
|
|
244
244
|
}
|
|
245
|
-
function j(g,
|
|
245
|
+
function j(g, E) {
|
|
246
246
|
if (!g || Z)
|
|
247
247
|
return "";
|
|
248
248
|
{
|
|
249
|
-
var
|
|
250
|
-
if (
|
|
251
|
-
return
|
|
249
|
+
var M = ne.get(g);
|
|
250
|
+
if (M !== void 0)
|
|
251
|
+
return M;
|
|
252
252
|
}
|
|
253
|
-
var
|
|
253
|
+
var te;
|
|
254
254
|
Z = !0;
|
|
255
255
|
var G = Error.prepareStackTrace;
|
|
256
256
|
Error.prepareStackTrace = void 0;
|
|
257
|
-
var
|
|
258
|
-
|
|
257
|
+
var oe;
|
|
258
|
+
oe = K.current, K.current = null, F();
|
|
259
259
|
try {
|
|
260
|
-
if (
|
|
260
|
+
if (E) {
|
|
261
261
|
var ue = function() {
|
|
262
262
|
throw Error();
|
|
263
263
|
};
|
|
@@ -269,14 +269,14 @@ function Ca() {
|
|
|
269
269
|
try {
|
|
270
270
|
Reflect.construct(ue, []);
|
|
271
271
|
} catch (Xe) {
|
|
272
|
-
|
|
272
|
+
te = Xe;
|
|
273
273
|
}
|
|
274
274
|
Reflect.construct(g, [], ue);
|
|
275
275
|
} else {
|
|
276
276
|
try {
|
|
277
277
|
ue.call();
|
|
278
278
|
} catch (Xe) {
|
|
279
|
-
|
|
279
|
+
te = Xe;
|
|
280
280
|
}
|
|
281
281
|
g.call(ue.prototype);
|
|
282
282
|
}
|
|
@@ -284,47 +284,47 @@ function Ca() {
|
|
|
284
284
|
try {
|
|
285
285
|
throw Error();
|
|
286
286
|
} catch (Xe) {
|
|
287
|
-
|
|
287
|
+
te = Xe;
|
|
288
288
|
}
|
|
289
289
|
g();
|
|
290
290
|
}
|
|
291
291
|
} catch (Xe) {
|
|
292
|
-
if (Xe &&
|
|
293
|
-
for (var
|
|
294
|
-
`), we =
|
|
295
|
-
`), Ae =
|
|
292
|
+
if (Xe && te && typeof Xe.stack == "string") {
|
|
293
|
+
for (var ce = Xe.stack.split(`
|
|
294
|
+
`), we = te.stack.split(`
|
|
295
|
+
`), Ae = ce.length - 1, Ne = we.length - 1; Ae >= 1 && Ne >= 0 && ce[Ae] !== we[Ne]; )
|
|
296
296
|
Ne--;
|
|
297
297
|
for (; Ae >= 1 && Ne >= 0; Ae--, Ne--)
|
|
298
|
-
if (
|
|
298
|
+
if (ce[Ae] !== we[Ne]) {
|
|
299
299
|
if (Ae !== 1 || Ne !== 1)
|
|
300
300
|
do
|
|
301
|
-
if (Ae--, Ne--, Ne < 0 ||
|
|
301
|
+
if (Ae--, Ne--, Ne < 0 || ce[Ae] !== we[Ne]) {
|
|
302
302
|
var lt = `
|
|
303
|
-
` +
|
|
304
|
-
return g.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", g.displayName)), typeof g == "function" &&
|
|
303
|
+
` + ce[Ae].replace(" at new ", " at ");
|
|
304
|
+
return g.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", g.displayName)), typeof g == "function" && ne.set(g, lt), lt;
|
|
305
305
|
}
|
|
306
306
|
while (Ae >= 1 && Ne >= 0);
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
} finally {
|
|
311
|
-
Z = !1,
|
|
311
|
+
Z = !1, K.current = oe, ee(), Error.prepareStackTrace = G;
|
|
312
312
|
}
|
|
313
313
|
var Qt = g ? g.displayName || g.name : "", Dt = Qt ? U(Qt) : "";
|
|
314
|
-
return typeof g == "function" &&
|
|
314
|
+
return typeof g == "function" && ne.set(g, Dt), Dt;
|
|
315
315
|
}
|
|
316
|
-
function _e(g,
|
|
316
|
+
function _e(g, E, M) {
|
|
317
317
|
return j(g, !1);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
var
|
|
321
|
-
return !!(
|
|
319
|
+
function ae(g) {
|
|
320
|
+
var E = g.prototype;
|
|
321
|
+
return !!(E && E.isReactComponent);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function le(g, E, M) {
|
|
324
324
|
if (g == null)
|
|
325
325
|
return "";
|
|
326
326
|
if (typeof g == "function")
|
|
327
|
-
return j(g,
|
|
327
|
+
return j(g, ae(g));
|
|
328
328
|
if (typeof g == "string")
|
|
329
329
|
return U(g);
|
|
330
330
|
switch (g) {
|
|
@@ -337,12 +337,12 @@ function Ca() {
|
|
|
337
337
|
switch (g.$$typeof) {
|
|
338
338
|
case c:
|
|
339
339
|
return _e(g.render);
|
|
340
|
-
case
|
|
341
|
-
return
|
|
340
|
+
case d:
|
|
341
|
+
return le(g.type, E, M);
|
|
342
342
|
case h: {
|
|
343
|
-
var
|
|
343
|
+
var te = g, G = te._payload, oe = te._init;
|
|
344
344
|
try {
|
|
345
|
-
return
|
|
345
|
+
return le(oe(G), E, M);
|
|
346
346
|
} catch {
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -352,27 +352,27 @@ function Ca() {
|
|
|
352
352
|
var Oe = Object.prototype.hasOwnProperty, He = {}, Ke = C.ReactDebugCurrentFrame;
|
|
353
353
|
function gt(g) {
|
|
354
354
|
if (g) {
|
|
355
|
-
var
|
|
356
|
-
Ke.setExtraStackFrame(
|
|
355
|
+
var E = g._owner, M = le(g.type, g._source, E ? E.type : null);
|
|
356
|
+
Ke.setExtraStackFrame(M);
|
|
357
357
|
} else
|
|
358
358
|
Ke.setExtraStackFrame(null);
|
|
359
359
|
}
|
|
360
|
-
function Fe(g,
|
|
360
|
+
function Fe(g, E, M, te, G) {
|
|
361
361
|
{
|
|
362
|
-
var
|
|
362
|
+
var oe = Function.call.bind(Oe);
|
|
363
363
|
for (var ue in g)
|
|
364
|
-
if (
|
|
365
|
-
var
|
|
364
|
+
if (oe(g, ue)) {
|
|
365
|
+
var ce = void 0;
|
|
366
366
|
try {
|
|
367
367
|
if (typeof g[ue] != "function") {
|
|
368
|
-
var we = Error((
|
|
368
|
+
var we = Error((te || "React class") + ": " + M + " type `" + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[ue] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
369
369
|
throw we.name = "Invariant Violation", we;
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
ce = g[ue](E, ue, te, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
372
372
|
} catch (Ae) {
|
|
373
|
-
|
|
373
|
+
ce = Ae;
|
|
374
374
|
}
|
|
375
|
-
|
|
375
|
+
ce && !(ce instanceof Error) && (gt(G), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", te || "React class", M, ue, typeof ce), gt(null)), ce instanceof Error && !(ce.message in He) && (He[ce.message] = !0, gt(G), R("Failed %s type: %s", M, ce.message), gt(null));
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -382,8 +382,8 @@ function Ca() {
|
|
|
382
382
|
}
|
|
383
383
|
function xn(g) {
|
|
384
384
|
{
|
|
385
|
-
var
|
|
386
|
-
return
|
|
385
|
+
var E = typeof Symbol == "function" && Symbol.toStringTag, M = E && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
386
|
+
return M;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
function Cn(g) {
|
|
@@ -398,107 +398,107 @@ function Ca() {
|
|
|
398
398
|
}
|
|
399
399
|
function Kt(g) {
|
|
400
400
|
if (Cn(g))
|
|
401
|
-
return
|
|
401
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", xn(g)), Sn(g);
|
|
402
402
|
}
|
|
403
403
|
var kt = C.ReactCurrentOwner, P = {
|
|
404
404
|
key: !0,
|
|
405
405
|
ref: !0,
|
|
406
406
|
__self: !0,
|
|
407
407
|
__source: !0
|
|
408
|
-
}, I,
|
|
408
|
+
}, I, W;
|
|
409
409
|
function de(g) {
|
|
410
410
|
if (Oe.call(g, "ref")) {
|
|
411
|
-
var
|
|
412
|
-
if (
|
|
411
|
+
var E = Object.getOwnPropertyDescriptor(g, "ref").get;
|
|
412
|
+
if (E && E.isReactWarning)
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
415
|
return g.ref !== void 0;
|
|
416
416
|
}
|
|
417
417
|
function pe(g) {
|
|
418
418
|
if (Oe.call(g, "key")) {
|
|
419
|
-
var
|
|
420
|
-
if (
|
|
419
|
+
var E = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
420
|
+
if (E && E.isReactWarning)
|
|
421
421
|
return !1;
|
|
422
422
|
}
|
|
423
423
|
return g.key !== void 0;
|
|
424
424
|
}
|
|
425
|
-
function fe(g,
|
|
425
|
+
function fe(g, E) {
|
|
426
426
|
typeof g.ref == "string" && kt.current;
|
|
427
427
|
}
|
|
428
|
-
function tt(g,
|
|
428
|
+
function tt(g, E) {
|
|
429
429
|
{
|
|
430
|
-
var
|
|
431
|
-
I || (I = !0,
|
|
430
|
+
var M = function() {
|
|
431
|
+
I || (I = !0, R("%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://reactjs.org/link/special-props)", E));
|
|
432
432
|
};
|
|
433
|
-
|
|
434
|
-
get:
|
|
433
|
+
M.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
434
|
+
get: M,
|
|
435
435
|
configurable: !0
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function at(g,
|
|
439
|
+
function at(g, E) {
|
|
440
440
|
{
|
|
441
|
-
var
|
|
442
|
-
|
|
441
|
+
var M = function() {
|
|
442
|
+
W || (W = !0, R("%s: `ref` 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://reactjs.org/link/special-props)", E));
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
get:
|
|
444
|
+
M.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
445
|
+
get: M,
|
|
446
446
|
configurable: !0
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var he = function(g,
|
|
451
|
-
var
|
|
450
|
+
var he = function(g, E, M, te, G, oe, ue) {
|
|
451
|
+
var ce = {
|
|
452
452
|
// This tag allows us to uniquely identify this as a React Element
|
|
453
453
|
$$typeof: t,
|
|
454
454
|
// Built-in properties that belong on the element
|
|
455
455
|
type: g,
|
|
456
|
-
key:
|
|
457
|
-
ref:
|
|
456
|
+
key: E,
|
|
457
|
+
ref: M,
|
|
458
458
|
props: ue,
|
|
459
459
|
// Record the component responsible for creating this element.
|
|
460
|
-
_owner:
|
|
460
|
+
_owner: oe
|
|
461
461
|
};
|
|
462
|
-
return
|
|
462
|
+
return ce._store = {}, Object.defineProperty(ce._store, "validated", {
|
|
463
463
|
configurable: !1,
|
|
464
464
|
enumerable: !1,
|
|
465
465
|
writable: !0,
|
|
466
466
|
value: !1
|
|
467
|
-
}), Object.defineProperty(
|
|
467
|
+
}), Object.defineProperty(ce, "_self", {
|
|
468
468
|
configurable: !1,
|
|
469
469
|
enumerable: !1,
|
|
470
470
|
writable: !1,
|
|
471
|
-
value:
|
|
472
|
-
}), Object.defineProperty(
|
|
471
|
+
value: te
|
|
472
|
+
}), Object.defineProperty(ce, "_source", {
|
|
473
473
|
configurable: !1,
|
|
474
474
|
enumerable: !1,
|
|
475
475
|
writable: !1,
|
|
476
476
|
value: G
|
|
477
|
-
}), Object.freeze && (Object.freeze(
|
|
477
|
+
}), Object.freeze && (Object.freeze(ce.props), Object.freeze(ce)), ce;
|
|
478
478
|
};
|
|
479
|
-
function Je(g,
|
|
479
|
+
function Je(g, E, M, te, G) {
|
|
480
480
|
{
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
for (
|
|
484
|
-
Oe.call(
|
|
481
|
+
var oe, ue = {}, ce = null, we = null;
|
|
482
|
+
M !== void 0 && (Kt(M), ce = "" + M), pe(E) && (Kt(E.key), ce = "" + E.key), de(E) && (we = E.ref, fe(E, G));
|
|
483
|
+
for (oe in E)
|
|
484
|
+
Oe.call(E, oe) && !P.hasOwnProperty(oe) && (ue[oe] = E[oe]);
|
|
485
485
|
if (g && g.defaultProps) {
|
|
486
486
|
var Ae = g.defaultProps;
|
|
487
|
-
for (
|
|
488
|
-
ue[
|
|
487
|
+
for (oe in Ae)
|
|
488
|
+
ue[oe] === void 0 && (ue[oe] = Ae[oe]);
|
|
489
489
|
}
|
|
490
|
-
if (
|
|
490
|
+
if (ce || we) {
|
|
491
491
|
var Ne = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
|
492
|
-
|
|
492
|
+
ce && tt(ue, Ne), we && at(ue, Ne);
|
|
493
493
|
}
|
|
494
|
-
return he(g,
|
|
494
|
+
return he(g, ce, we, G, te, kt.current, ue);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
var yt = C.ReactCurrentOwner, wn = C.ReactDebugCurrentFrame;
|
|
498
498
|
function Ct(g) {
|
|
499
499
|
if (g) {
|
|
500
|
-
var
|
|
501
|
-
wn.setExtraStackFrame(
|
|
500
|
+
var E = g._owner, M = le(g.type, g._source, E ? E.type : null);
|
|
501
|
+
wn.setExtraStackFrame(M);
|
|
502
502
|
} else
|
|
503
503
|
wn.setExtraStackFrame(null);
|
|
504
504
|
}
|
|
@@ -525,120 +525,120 @@ Check the render method of \`` + g + "`.";
|
|
|
525
525
|
var Gt = {};
|
|
526
526
|
function Nr(g) {
|
|
527
527
|
{
|
|
528
|
-
var
|
|
529
|
-
if (!
|
|
530
|
-
var
|
|
531
|
-
|
|
528
|
+
var E = Zt();
|
|
529
|
+
if (!E) {
|
|
530
|
+
var M = typeof g == "string" ? g : g.displayName || g.name;
|
|
531
|
+
M && (E = `
|
|
532
532
|
|
|
533
|
-
Check the top-level render call using <` +
|
|
533
|
+
Check the top-level render call using <` + M + ">.");
|
|
534
534
|
}
|
|
535
|
-
return
|
|
535
|
+
return E;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function Jt(g,
|
|
538
|
+
function Jt(g, E) {
|
|
539
539
|
{
|
|
540
540
|
if (!g._store || g._store.validated || g.key != null)
|
|
541
541
|
return;
|
|
542
542
|
g._store.validated = !0;
|
|
543
|
-
var
|
|
544
|
-
if (Gt[
|
|
543
|
+
var M = Nr(E);
|
|
544
|
+
if (Gt[M])
|
|
545
545
|
return;
|
|
546
|
-
Gt[
|
|
547
|
-
var
|
|
548
|
-
g && g._owner && g._owner !== yt.current && (
|
|
546
|
+
Gt[M] = !0;
|
|
547
|
+
var te = "";
|
|
548
|
+
g && g._owner && g._owner !== yt.current && (te = " It was passed a child from " + B(g._owner.type) + "."), Ct(g), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, te), Ct(null);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function Xt(g,
|
|
551
|
+
function Xt(g, E) {
|
|
552
552
|
{
|
|
553
553
|
if (typeof g != "object")
|
|
554
554
|
return;
|
|
555
555
|
if (Nt(g))
|
|
556
|
-
for (var
|
|
557
|
-
var
|
|
558
|
-
It(
|
|
556
|
+
for (var M = 0; M < g.length; M++) {
|
|
557
|
+
var te = g[M];
|
|
558
|
+
It(te) && Jt(te, E);
|
|
559
559
|
}
|
|
560
560
|
else if (It(g))
|
|
561
561
|
g._store && (g._store.validated = !0);
|
|
562
562
|
else if (g) {
|
|
563
563
|
var G = x(g);
|
|
564
564
|
if (typeof G == "function" && G !== g.entries)
|
|
565
|
-
for (var
|
|
566
|
-
It(ue.value) && Jt(ue.value,
|
|
565
|
+
for (var oe = G.call(g), ue; !(ue = oe.next()).done; )
|
|
566
|
+
It(ue.value) && Jt(ue.value, E);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
function Tn(g) {
|
|
571
571
|
{
|
|
572
|
-
var
|
|
573
|
-
if (
|
|
572
|
+
var E = g.type;
|
|
573
|
+
if (E == null || typeof E == "string")
|
|
574
574
|
return;
|
|
575
|
-
var
|
|
576
|
-
if (typeof
|
|
577
|
-
|
|
578
|
-
else if (typeof
|
|
575
|
+
var M;
|
|
576
|
+
if (typeof E == "function")
|
|
577
|
+
M = E.propTypes;
|
|
578
|
+
else if (typeof E == "object" && (E.$$typeof === c || // Note: Memo only checks outer props here.
|
|
579
579
|
// Inner props are checked in the reconciler.
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
E.$$typeof === d))
|
|
581
|
+
M = E.propTypes;
|
|
582
582
|
else
|
|
583
583
|
return;
|
|
584
|
-
if (
|
|
585
|
-
var
|
|
586
|
-
Fe(
|
|
587
|
-
} else if (
|
|
584
|
+
if (M) {
|
|
585
|
+
var te = B(E);
|
|
586
|
+
Fe(M, g.props, "prop", te, g);
|
|
587
|
+
} else if (E.PropTypes !== void 0 && !Yt) {
|
|
588
588
|
Yt = !0;
|
|
589
|
-
var G = B(
|
|
590
|
-
|
|
589
|
+
var G = B(E);
|
|
590
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
591
591
|
}
|
|
592
|
-
typeof
|
|
592
|
+
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
function Ir(g) {
|
|
596
596
|
{
|
|
597
|
-
for (var
|
|
598
|
-
var
|
|
599
|
-
if (
|
|
600
|
-
Ct(g),
|
|
597
|
+
for (var E = Object.keys(g.props), M = 0; M < E.length; M++) {
|
|
598
|
+
var te = E[M];
|
|
599
|
+
if (te !== "children" && te !== "key") {
|
|
600
|
+
Ct(g), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), Ct(null);
|
|
601
601
|
break;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
g.ref !== null && (Ct(g),
|
|
604
|
+
g.ref !== null && (Ct(g), R("Invalid attribute `ref` supplied to `React.Fragment`."), Ct(null));
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
var Zn = {};
|
|
608
|
-
function Gn(g,
|
|
608
|
+
function Gn(g, E, M, te, G, oe) {
|
|
609
609
|
{
|
|
610
610
|
var ue = $(g);
|
|
611
611
|
if (!ue) {
|
|
612
|
-
var
|
|
613
|
-
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (
|
|
612
|
+
var ce = "";
|
|
613
|
+
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (ce += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
614
614
|
var we = Yn();
|
|
615
|
-
we ?
|
|
615
|
+
we ? ce += we : ce += Zt();
|
|
616
616
|
var Ae;
|
|
617
|
-
g === null ? Ae = "null" : Nt(g) ? Ae = "array" : g !== void 0 && g.$$typeof === t ? (Ae = "<" + (B(g.type) || "Unknown") + " />",
|
|
617
|
+
g === null ? Ae = "null" : Nt(g) ? Ae = "array" : g !== void 0 && g.$$typeof === t ? (Ae = "<" + (B(g.type) || "Unknown") + " />", ce = " Did you accidentally export a JSX literal instead of a component?") : Ae = typeof g, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ae, ce);
|
|
618
618
|
}
|
|
619
|
-
var Ne = Je(g,
|
|
619
|
+
var Ne = Je(g, E, M, G, oe);
|
|
620
620
|
if (Ne == null)
|
|
621
621
|
return Ne;
|
|
622
622
|
if (ue) {
|
|
623
|
-
var lt =
|
|
623
|
+
var lt = E.children;
|
|
624
624
|
if (lt !== void 0)
|
|
625
|
-
if (
|
|
625
|
+
if (te)
|
|
626
626
|
if (Nt(lt)) {
|
|
627
627
|
for (var Qt = 0; Qt < lt.length; Qt++)
|
|
628
628
|
Xt(lt[Qt], g);
|
|
629
629
|
Object.freeze && Object.freeze(lt);
|
|
630
630
|
} else
|
|
631
|
-
|
|
631
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
632
632
|
else
|
|
633
633
|
Xt(lt, g);
|
|
634
634
|
}
|
|
635
|
-
if (Oe.call(
|
|
636
|
-
var Dt = B(g), Xe = Object.keys(
|
|
635
|
+
if (Oe.call(E, "key")) {
|
|
636
|
+
var Dt = B(g), Xe = Object.keys(E).filter(function(la) {
|
|
637
637
|
return la !== "key";
|
|
638
638
|
}), Br = Xe.length > 0 ? "{key: someKey, " + Xe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
639
639
|
if (!Zn[Dt + Br]) {
|
|
640
640
|
var aa = Xe.length > 0 ? "{" + Xe.join(": ..., ") + ": ...}" : "{}";
|
|
641
|
-
|
|
641
|
+
R(`A props object containing a "key" prop is being spread into JSX:
|
|
642
642
|
let props = %s;
|
|
643
643
|
<%s {...props} />
|
|
644
644
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -649,11 +649,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
649
649
|
return g === r ? Ir(Ne) : Tn(Ne), Ne;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function Dr(g,
|
|
653
|
-
return Gn(g,
|
|
652
|
+
function Dr(g, E, M) {
|
|
653
|
+
return Gn(g, E, M, !0);
|
|
654
654
|
}
|
|
655
|
-
function Fr(g,
|
|
656
|
-
return Gn(g,
|
|
655
|
+
function Fr(g, E, M) {
|
|
656
|
+
return Gn(g, E, M, !1);
|
|
657
657
|
}
|
|
658
658
|
var zr = Fr, En = Dr;
|
|
659
659
|
On.Fragment = r, On.jsx = zr, On.jsxs = En;
|
|
@@ -691,8 +691,8 @@ var Ko;
|
|
|
691
691
|
function Fa() {
|
|
692
692
|
if (Ko) return ye;
|
|
693
693
|
Ko = 1;
|
|
694
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
695
|
-
function
|
|
694
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
695
|
+
function w(_) {
|
|
696
696
|
if (typeof _ == "object" && _ !== null) {
|
|
697
697
|
var D = _.$$typeof;
|
|
698
698
|
switch (D) {
|
|
@@ -703,7 +703,7 @@ function Fa() {
|
|
|
703
703
|
case r:
|
|
704
704
|
case i:
|
|
705
705
|
case o:
|
|
706
|
-
case
|
|
706
|
+
case d:
|
|
707
707
|
return _;
|
|
708
708
|
default:
|
|
709
709
|
switch (_ = _ && _.$$typeof, _) {
|
|
@@ -722,36 +722,36 @@ function Fa() {
|
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
725
|
+
function k(_) {
|
|
726
|
+
return w(_) === u;
|
|
727
727
|
}
|
|
728
|
-
return ye.AsyncMode = c, ye.ConcurrentMode = u, ye.ContextConsumer = l, ye.ContextProvider = s, ye.Element = t, ye.ForwardRef = p, ye.Fragment = r, ye.Lazy = b, ye.Memo = v, ye.Portal = n, ye.Profiler = i, ye.StrictMode = o, ye.Suspense =
|
|
729
|
-
return
|
|
730
|
-
}, ye.isConcurrentMode =
|
|
731
|
-
return
|
|
728
|
+
return ye.AsyncMode = c, ye.ConcurrentMode = u, ye.ContextConsumer = l, ye.ContextProvider = s, ye.Element = t, ye.ForwardRef = p, ye.Fragment = r, ye.Lazy = b, ye.Memo = v, ye.Portal = n, ye.Profiler = i, ye.StrictMode = o, ye.Suspense = d, ye.isAsyncMode = function(_) {
|
|
729
|
+
return k(_) || w(_) === c;
|
|
730
|
+
}, ye.isConcurrentMode = k, ye.isContextConsumer = function(_) {
|
|
731
|
+
return w(_) === l;
|
|
732
732
|
}, ye.isContextProvider = function(_) {
|
|
733
|
-
return
|
|
733
|
+
return w(_) === s;
|
|
734
734
|
}, ye.isElement = function(_) {
|
|
735
735
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
736
736
|
}, ye.isForwardRef = function(_) {
|
|
737
|
-
return
|
|
737
|
+
return w(_) === p;
|
|
738
738
|
}, ye.isFragment = function(_) {
|
|
739
|
-
return
|
|
739
|
+
return w(_) === r;
|
|
740
740
|
}, ye.isLazy = function(_) {
|
|
741
|
-
return
|
|
741
|
+
return w(_) === b;
|
|
742
742
|
}, ye.isMemo = function(_) {
|
|
743
|
-
return
|
|
743
|
+
return w(_) === v;
|
|
744
744
|
}, ye.isPortal = function(_) {
|
|
745
|
-
return
|
|
745
|
+
return w(_) === n;
|
|
746
746
|
}, ye.isProfiler = function(_) {
|
|
747
|
-
return
|
|
747
|
+
return w(_) === i;
|
|
748
748
|
}, ye.isStrictMode = function(_) {
|
|
749
|
-
return
|
|
749
|
+
return w(_) === o;
|
|
750
750
|
}, ye.isSuspense = function(_) {
|
|
751
|
-
return
|
|
751
|
+
return w(_) === d;
|
|
752
752
|
}, ye.isValidElementType = function(_) {
|
|
753
|
-
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ ===
|
|
754
|
-
}, ye.typeOf =
|
|
753
|
+
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === u || _ === i || _ === o || _ === d || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === b || _.$$typeof === v || _.$$typeof === s || _.$$typeof === l || _.$$typeof === p || _.$$typeof === x || _.$$typeof === C || _.$$typeof === R || _.$$typeof === f);
|
|
754
|
+
}, ye.typeOf = w, ye;
|
|
755
755
|
}
|
|
756
756
|
var ve = {};
|
|
757
757
|
/** @license React v16.13.1
|
|
@@ -765,34 +765,34 @@ var ve = {};
|
|
|
765
765
|
var Yo;
|
|
766
766
|
function za() {
|
|
767
767
|
return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
768
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112,
|
|
769
|
-
function
|
|
768
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
|
|
769
|
+
function w(j) {
|
|
770
770
|
return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
771
|
-
j === r || j === u || j === i || j === o || j ===
|
|
771
|
+
j === r || j === u || j === i || j === o || j === d || j === h || typeof j == "object" && j !== null && (j.$$typeof === b || j.$$typeof === v || j.$$typeof === s || j.$$typeof === l || j.$$typeof === p || j.$$typeof === x || j.$$typeof === C || j.$$typeof === R || j.$$typeof === f);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function k(j) {
|
|
774
774
|
if (typeof j == "object" && j !== null) {
|
|
775
775
|
var _e = j.$$typeof;
|
|
776
776
|
switch (_e) {
|
|
777
777
|
case t:
|
|
778
|
-
var
|
|
779
|
-
switch (
|
|
778
|
+
var ae = j.type;
|
|
779
|
+
switch (ae) {
|
|
780
780
|
case c:
|
|
781
781
|
case u:
|
|
782
782
|
case r:
|
|
783
783
|
case i:
|
|
784
784
|
case o:
|
|
785
|
-
case
|
|
786
|
-
return
|
|
785
|
+
case d:
|
|
786
|
+
return ae;
|
|
787
787
|
default:
|
|
788
|
-
var
|
|
789
|
-
switch (
|
|
788
|
+
var le = ae && ae.$$typeof;
|
|
789
|
+
switch (le) {
|
|
790
790
|
case l:
|
|
791
791
|
case p:
|
|
792
792
|
case b:
|
|
793
793
|
case v:
|
|
794
794
|
case s:
|
|
795
|
-
return
|
|
795
|
+
return le;
|
|
796
796
|
default:
|
|
797
797
|
return _e;
|
|
798
798
|
}
|
|
@@ -802,47 +802,47 @@ function za() {
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
|
-
var _ = c, D = u, y = l,
|
|
805
|
+
var _ = c, D = u, y = l, T = s, S = t, $ = p, N = r, X = b, B = v, Y = n, V = i, ie = o, re = d, Ee = !1;
|
|
806
806
|
function je(j) {
|
|
807
|
-
return Ee || (Ee = !0, 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.")), O(j) ||
|
|
807
|
+
return Ee || (Ee = !0, 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.")), O(j) || k(j) === c;
|
|
808
808
|
}
|
|
809
809
|
function O(j) {
|
|
810
|
-
return
|
|
810
|
+
return k(j) === u;
|
|
811
811
|
}
|
|
812
812
|
function A(j) {
|
|
813
|
-
return
|
|
813
|
+
return k(j) === l;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
815
|
+
function Q(j) {
|
|
816
|
+
return k(j) === s;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function q(j) {
|
|
819
819
|
return typeof j == "object" && j !== null && j.$$typeof === t;
|
|
820
820
|
}
|
|
821
821
|
function F(j) {
|
|
822
|
-
return
|
|
822
|
+
return k(j) === p;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return
|
|
826
|
-
}
|
|
827
|
-
function Y(j) {
|
|
828
|
-
return E(j) === b;
|
|
824
|
+
function ee(j) {
|
|
825
|
+
return k(j) === r;
|
|
829
826
|
}
|
|
830
827
|
function K(j) {
|
|
831
|
-
return
|
|
828
|
+
return k(j) === b;
|
|
829
|
+
}
|
|
830
|
+
function H(j) {
|
|
831
|
+
return k(j) === v;
|
|
832
832
|
}
|
|
833
833
|
function U(j) {
|
|
834
|
-
return
|
|
834
|
+
return k(j) === n;
|
|
835
835
|
}
|
|
836
836
|
function Z(j) {
|
|
837
|
-
return
|
|
837
|
+
return k(j) === i;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function ne(j) {
|
|
840
|
+
return k(j) === o;
|
|
841
841
|
}
|
|
842
842
|
function be(j) {
|
|
843
|
-
return
|
|
843
|
+
return k(j) === d;
|
|
844
844
|
}
|
|
845
|
-
ve.AsyncMode = _, ve.ConcurrentMode = D, ve.ContextConsumer = y, ve.ContextProvider =
|
|
845
|
+
ve.AsyncMode = _, ve.ConcurrentMode = D, ve.ContextConsumer = y, ve.ContextProvider = T, ve.Element = S, ve.ForwardRef = $, ve.Fragment = N, ve.Lazy = X, ve.Memo = B, ve.Portal = Y, ve.Profiler = V, ve.StrictMode = ie, ve.Suspense = re, ve.isAsyncMode = je, ve.isConcurrentMode = O, ve.isContextConsumer = A, ve.isContextProvider = Q, ve.isElement = q, ve.isForwardRef = F, ve.isFragment = ee, ve.isLazy = K, ve.isMemo = H, ve.isPortal = U, ve.isProfiler = Z, ve.isStrictMode = ne, ve.isSuspense = be, ve.isValidElementType = w, ve.typeOf = k;
|
|
846
846
|
}()), ve;
|
|
847
847
|
}
|
|
848
848
|
var Zo;
|
|
@@ -889,8 +889,8 @@ function Ba() {
|
|
|
889
889
|
return Ur = o() ? Object.assign : function(i, s) {
|
|
890
890
|
for (var l, c = r(i), u, p = 1; p < arguments.length; p++) {
|
|
891
891
|
l = Object(arguments[p]);
|
|
892
|
-
for (var
|
|
893
|
-
t.call(l,
|
|
892
|
+
for (var d in l)
|
|
893
|
+
t.call(l, d) && (c[d] = l[d]);
|
|
894
894
|
if (e) {
|
|
895
895
|
u = e(l);
|
|
896
896
|
for (var h = 0; h < u.length; h++)
|
|
@@ -932,7 +932,7 @@ function Ua() {
|
|
|
932
932
|
if (process.env.NODE_ENV !== "production") {
|
|
933
933
|
for (var p in i)
|
|
934
934
|
if (r(i, p)) {
|
|
935
|
-
var
|
|
935
|
+
var d;
|
|
936
936
|
try {
|
|
937
937
|
if (typeof i[p] != "function") {
|
|
938
938
|
var h = Error(
|
|
@@ -940,17 +940,17 @@ function Ua() {
|
|
|
940
940
|
);
|
|
941
941
|
throw h.name = "Invariant Violation", h;
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
d = i[p](s, p, c, l, null, t);
|
|
944
944
|
} catch (b) {
|
|
945
|
-
|
|
945
|
+
d = b;
|
|
946
946
|
}
|
|
947
|
-
if (
|
|
948
|
-
(c || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
949
|
-
),
|
|
950
|
-
n[
|
|
947
|
+
if (d && !(d instanceof Error) && e(
|
|
948
|
+
(c || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
949
|
+
), d instanceof Error && !(d.message in n)) {
|
|
950
|
+
n[d.message] = !0;
|
|
951
951
|
var v = u ? u() : "";
|
|
952
952
|
e(
|
|
953
|
-
"Failed " + l + " type: " +
|
|
953
|
+
"Failed " + l + " type: " + d.message + (v ?? "")
|
|
954
954
|
);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
@@ -979,7 +979,7 @@ function Va() {
|
|
|
979
979
|
}
|
|
980
980
|
return Hr = function(l, c) {
|
|
981
981
|
var u = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
982
|
-
function
|
|
982
|
+
function d(O) {
|
|
983
983
|
var A = O && (u && O[u] || O[p]);
|
|
984
984
|
if (typeof A == "function")
|
|
985
985
|
return A;
|
|
@@ -993,55 +993,55 @@ function Va() {
|
|
|
993
993
|
object: C("object"),
|
|
994
994
|
string: C("string"),
|
|
995
995
|
symbol: C("symbol"),
|
|
996
|
-
any:
|
|
997
|
-
arrayOf:
|
|
998
|
-
element:
|
|
996
|
+
any: R(),
|
|
997
|
+
arrayOf: w,
|
|
998
|
+
element: k(),
|
|
999
999
|
elementType: _(),
|
|
1000
1000
|
instanceOf: D,
|
|
1001
1001
|
node: $(),
|
|
1002
|
-
objectOf:
|
|
1002
|
+
objectOf: T,
|
|
1003
1003
|
oneOf: y,
|
|
1004
1004
|
oneOfType: S,
|
|
1005
|
-
shape:
|
|
1005
|
+
shape: X,
|
|
1006
1006
|
exact: B
|
|
1007
1007
|
};
|
|
1008
1008
|
function b(O, A) {
|
|
1009
1009
|
return O === A ? O !== 0 || 1 / O === 1 / A : O !== O && A !== A;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function f(O, A) {
|
|
1012
1012
|
this.message = O, this.data = A && typeof A == "object" ? A : {}, this.stack = "";
|
|
1013
1013
|
}
|
|
1014
|
-
|
|
1014
|
+
f.prototype = Error.prototype;
|
|
1015
1015
|
function x(O) {
|
|
1016
1016
|
if (process.env.NODE_ENV !== "production")
|
|
1017
|
-
var A = {},
|
|
1018
|
-
function
|
|
1019
|
-
if (U = U || h,
|
|
1017
|
+
var A = {}, Q = 0;
|
|
1018
|
+
function q(ee, K, H, U, Z, ne, be) {
|
|
1019
|
+
if (U = U || h, ne = ne || H, be !== n) {
|
|
1020
1020
|
if (c) {
|
|
1021
1021
|
var j = new Error(
|
|
1022
1022
|
"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"
|
|
1023
1023
|
);
|
|
1024
1024
|
throw j.name = "Invariant Violation", j;
|
|
1025
1025
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1026
|
-
var _e = U + ":" +
|
|
1026
|
+
var _e = U + ":" + H;
|
|
1027
1027
|
!A[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1028
|
-
|
|
1029
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1030
|
-
), A[_e] = !0,
|
|
1028
|
+
Q < 3 && (i(
|
|
1029
|
+
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + U + "`. 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."
|
|
1030
|
+
), A[_e] = !0, Q++);
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
return
|
|
1033
|
+
return K[H] == null ? ee ? K[H] === null ? new f("The " + Z + " `" + ne + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new f("The " + Z + " `" + ne + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : O(K, H, U, Z, ne);
|
|
1034
1034
|
}
|
|
1035
|
-
var F =
|
|
1036
|
-
return F.isRequired =
|
|
1035
|
+
var F = q.bind(null, !1);
|
|
1036
|
+
return F.isRequired = q.bind(null, !0), F;
|
|
1037
1037
|
}
|
|
1038
1038
|
function C(O) {
|
|
1039
|
-
function A(
|
|
1040
|
-
var U =
|
|
1039
|
+
function A(Q, q, F, ee, K, H) {
|
|
1040
|
+
var U = Q[q], Z = ie(U);
|
|
1041
1041
|
if (Z !== O) {
|
|
1042
|
-
var
|
|
1043
|
-
return new
|
|
1044
|
-
"Invalid " +
|
|
1042
|
+
var ne = re(U);
|
|
1043
|
+
return new f(
|
|
1044
|
+
"Invalid " + ee + " `" + K + "` of type " + ("`" + ne + "` supplied to `" + F + "`, expected ") + ("`" + O + "`."),
|
|
1045
1045
|
{ expectedType: O }
|
|
1046
1046
|
);
|
|
1047
1047
|
}
|
|
@@ -1049,54 +1049,54 @@ function Va() {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
return x(A);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function R() {
|
|
1053
1053
|
return x(s);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
function A(
|
|
1055
|
+
function w(O) {
|
|
1056
|
+
function A(Q, q, F, ee, K) {
|
|
1057
1057
|
if (typeof O != "function")
|
|
1058
|
-
return new
|
|
1059
|
-
var
|
|
1060
|
-
if (!Array.isArray(
|
|
1061
|
-
var U =
|
|
1062
|
-
return new
|
|
1058
|
+
return new f("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
|
|
1059
|
+
var H = Q[q];
|
|
1060
|
+
if (!Array.isArray(H)) {
|
|
1061
|
+
var U = ie(H);
|
|
1062
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an array."));
|
|
1063
1063
|
}
|
|
1064
|
-
for (var Z = 0; Z <
|
|
1065
|
-
var
|
|
1066
|
-
if (
|
|
1067
|
-
return
|
|
1064
|
+
for (var Z = 0; Z < H.length; Z++) {
|
|
1065
|
+
var ne = O(H, Z, F, ee, K + "[" + Z + "]", n);
|
|
1066
|
+
if (ne instanceof Error)
|
|
1067
|
+
return ne;
|
|
1068
1068
|
}
|
|
1069
1069
|
return null;
|
|
1070
1070
|
}
|
|
1071
1071
|
return x(A);
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
function O(A,
|
|
1075
|
-
var
|
|
1076
|
-
if (!l(
|
|
1077
|
-
var
|
|
1078
|
-
return new
|
|
1073
|
+
function k() {
|
|
1074
|
+
function O(A, Q, q, F, ee) {
|
|
1075
|
+
var K = A[Q];
|
|
1076
|
+
if (!l(K)) {
|
|
1077
|
+
var H = ie(K);
|
|
1078
|
+
return new f("Invalid " + F + " `" + ee + "` of type " + ("`" + H + "` supplied to `" + q + "`, expected a single ReactElement."));
|
|
1079
1079
|
}
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
1082
1082
|
return x(O);
|
|
1083
1083
|
}
|
|
1084
1084
|
function _() {
|
|
1085
|
-
function O(A,
|
|
1086
|
-
var
|
|
1087
|
-
if (!e.isValidElementType(
|
|
1088
|
-
var
|
|
1089
|
-
return new
|
|
1085
|
+
function O(A, Q, q, F, ee) {
|
|
1086
|
+
var K = A[Q];
|
|
1087
|
+
if (!e.isValidElementType(K)) {
|
|
1088
|
+
var H = ie(K);
|
|
1089
|
+
return new f("Invalid " + F + " `" + ee + "` of type " + ("`" + H + "` supplied to `" + q + "`, expected a single ReactElement type."));
|
|
1090
1090
|
}
|
|
1091
1091
|
return null;
|
|
1092
1092
|
}
|
|
1093
1093
|
return x(O);
|
|
1094
1094
|
}
|
|
1095
1095
|
function D(O) {
|
|
1096
|
-
function A(
|
|
1097
|
-
if (!(
|
|
1098
|
-
var
|
|
1099
|
-
return new
|
|
1096
|
+
function A(Q, q, F, ee, K) {
|
|
1097
|
+
if (!(Q[q] instanceof O)) {
|
|
1098
|
+
var H = O.name || h, U = je(Q[q]);
|
|
1099
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected ") + ("instance of `" + H + "`."));
|
|
1100
1100
|
}
|
|
1101
1101
|
return null;
|
|
1102
1102
|
}
|
|
@@ -1107,30 +1107,30 @@ function Va() {
|
|
|
1107
1107
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1108
1108
|
"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])."
|
|
1109
1109
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
1110
|
-
function A(
|
|
1111
|
-
for (var
|
|
1112
|
-
if (b(
|
|
1110
|
+
function A(Q, q, F, ee, K) {
|
|
1111
|
+
for (var H = Q[q], U = 0; U < O.length; U++)
|
|
1112
|
+
if (b(H, O[U]))
|
|
1113
1113
|
return null;
|
|
1114
1114
|
var Z = JSON.stringify(O, function(be, j) {
|
|
1115
|
-
var _e =
|
|
1115
|
+
var _e = re(j);
|
|
1116
1116
|
return _e === "symbol" ? String(j) : j;
|
|
1117
1117
|
});
|
|
1118
|
-
return new
|
|
1118
|
+
return new f("Invalid " + ee + " `" + K + "` of value `" + String(H) + "` " + ("supplied to `" + F + "`, expected one of " + Z + "."));
|
|
1119
1119
|
}
|
|
1120
1120
|
return x(A);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
function A(
|
|
1122
|
+
function T(O) {
|
|
1123
|
+
function A(Q, q, F, ee, K) {
|
|
1124
1124
|
if (typeof O != "function")
|
|
1125
|
-
return new
|
|
1126
|
-
var
|
|
1125
|
+
return new f("Property `" + K + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
|
|
1126
|
+
var H = Q[q], U = ie(H);
|
|
1127
1127
|
if (U !== "object")
|
|
1128
|
-
return new
|
|
1129
|
-
for (var Z in
|
|
1130
|
-
if (r(
|
|
1131
|
-
var
|
|
1132
|
-
if (
|
|
1133
|
-
return
|
|
1128
|
+
return new f("Invalid " + ee + " `" + K + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an object."));
|
|
1129
|
+
for (var Z in H)
|
|
1130
|
+
if (r(H, Z)) {
|
|
1131
|
+
var ne = O(H, Z, F, ee, K + "." + Z, n);
|
|
1132
|
+
if (ne instanceof Error)
|
|
1133
|
+
return ne;
|
|
1134
1134
|
}
|
|
1135
1135
|
return null;
|
|
1136
1136
|
}
|
|
@@ -1140,45 +1140,45 @@ function Va() {
|
|
|
1140
1140
|
if (!Array.isArray(O))
|
|
1141
1141
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
1142
1142
|
for (var A = 0; A < O.length; A++) {
|
|
1143
|
-
var
|
|
1144
|
-
if (typeof
|
|
1143
|
+
var Q = O[A];
|
|
1144
|
+
if (typeof Q != "function")
|
|
1145
1145
|
return i(
|
|
1146
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ee(
|
|
1146
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ee(Q) + " at index " + A + "."
|
|
1147
1147
|
), s;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
for (var Z = [],
|
|
1151
|
-
var be = O[
|
|
1149
|
+
function q(F, ee, K, H, U) {
|
|
1150
|
+
for (var Z = [], ne = 0; ne < O.length; ne++) {
|
|
1151
|
+
var be = O[ne], j = be(F, ee, K, H, U, n);
|
|
1152
1152
|
if (j == null)
|
|
1153
1153
|
return null;
|
|
1154
1154
|
j.data && r(j.data, "expectedType") && Z.push(j.data.expectedType);
|
|
1155
1155
|
}
|
|
1156
1156
|
var _e = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
1157
|
-
return new
|
|
1157
|
+
return new f("Invalid " + H + " `" + U + "` supplied to " + ("`" + K + "`" + _e + "."));
|
|
1158
1158
|
}
|
|
1159
|
-
return x(
|
|
1159
|
+
return x(q);
|
|
1160
1160
|
}
|
|
1161
1161
|
function $() {
|
|
1162
|
-
function O(A,
|
|
1163
|
-
return
|
|
1162
|
+
function O(A, Q, q, F, ee) {
|
|
1163
|
+
return Y(A[Q]) ? null : new f("Invalid " + F + " `" + ee + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
1164
1164
|
}
|
|
1165
1165
|
return x(O);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return new
|
|
1169
|
-
(O || "React class") + ": " + A + " type `" +
|
|
1167
|
+
function N(O, A, Q, q, F) {
|
|
1168
|
+
return new f(
|
|
1169
|
+
(O || "React class") + ": " + A + " type `" + Q + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
function A(
|
|
1174
|
-
var
|
|
1172
|
+
function X(O) {
|
|
1173
|
+
function A(Q, q, F, ee, K) {
|
|
1174
|
+
var H = Q[q], U = ie(H);
|
|
1175
1175
|
if (U !== "object")
|
|
1176
|
-
return new
|
|
1176
|
+
return new f("Invalid " + ee + " `" + K + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
1177
1177
|
for (var Z in O) {
|
|
1178
|
-
var
|
|
1179
|
-
if (typeof
|
|
1180
|
-
return
|
|
1181
|
-
var be =
|
|
1178
|
+
var ne = O[Z];
|
|
1179
|
+
if (typeof ne != "function")
|
|
1180
|
+
return N(F, ee, K, Z, re(ne));
|
|
1181
|
+
var be = ne(H, Z, F, ee, K + "." + Z, n);
|
|
1182
1182
|
if (be)
|
|
1183
1183
|
return be;
|
|
1184
1184
|
}
|
|
@@ -1187,21 +1187,21 @@ function Va() {
|
|
|
1187
1187
|
return x(A);
|
|
1188
1188
|
}
|
|
1189
1189
|
function B(O) {
|
|
1190
|
-
function A(
|
|
1191
|
-
var
|
|
1190
|
+
function A(Q, q, F, ee, K) {
|
|
1191
|
+
var H = Q[q], U = ie(H);
|
|
1192
1192
|
if (U !== "object")
|
|
1193
|
-
return new
|
|
1194
|
-
var Z = t({},
|
|
1195
|
-
for (var
|
|
1196
|
-
var be = O[
|
|
1197
|
-
if (r(O,
|
|
1198
|
-
return
|
|
1193
|
+
return new f("Invalid " + ee + " `" + K + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
1194
|
+
var Z = t({}, Q[q], O);
|
|
1195
|
+
for (var ne in Z) {
|
|
1196
|
+
var be = O[ne];
|
|
1197
|
+
if (r(O, ne) && typeof be != "function")
|
|
1198
|
+
return N(F, ee, K, ne, re(be));
|
|
1199
1199
|
if (!be)
|
|
1200
|
-
return new
|
|
1201
|
-
"Invalid " +
|
|
1200
|
+
return new f(
|
|
1201
|
+
"Invalid " + ee + " `" + K + "` key `" + ne + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(Q[q], null, " ") + `
|
|
1202
1202
|
Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
1203
1203
|
);
|
|
1204
|
-
var j = be(
|
|
1204
|
+
var j = be(H, ne, F, ee, K + "." + ne, n);
|
|
1205
1205
|
if (j)
|
|
1206
1206
|
return j;
|
|
1207
1207
|
}
|
|
@@ -1209,7 +1209,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return x(A);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Y(O) {
|
|
1213
1213
|
switch (typeof O) {
|
|
1214
1214
|
case "number":
|
|
1215
1215
|
case "string":
|
|
@@ -1219,20 +1219,20 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1219
1219
|
return !O;
|
|
1220
1220
|
case "object":
|
|
1221
1221
|
if (Array.isArray(O))
|
|
1222
|
-
return O.every(
|
|
1222
|
+
return O.every(Y);
|
|
1223
1223
|
if (O === null || l(O))
|
|
1224
1224
|
return !0;
|
|
1225
|
-
var A =
|
|
1225
|
+
var A = d(O);
|
|
1226
1226
|
if (A) {
|
|
1227
|
-
var
|
|
1227
|
+
var Q = A.call(O), q;
|
|
1228
1228
|
if (A !== O.entries) {
|
|
1229
|
-
for (; !(
|
|
1230
|
-
if (!
|
|
1229
|
+
for (; !(q = Q.next()).done; )
|
|
1230
|
+
if (!Y(q.value))
|
|
1231
1231
|
return !1;
|
|
1232
1232
|
} else
|
|
1233
|
-
for (; !(
|
|
1234
|
-
var F =
|
|
1235
|
-
if (F && !
|
|
1233
|
+
for (; !(q = Q.next()).done; ) {
|
|
1234
|
+
var F = q.value;
|
|
1235
|
+
if (F && !Y(F[1]))
|
|
1236
1236
|
return !1;
|
|
1237
1237
|
}
|
|
1238
1238
|
} else
|
|
@@ -1242,17 +1242,17 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1242
1242
|
return !1;
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function V(O, A) {
|
|
1246
1246
|
return O === "symbol" ? !0 : A ? A["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && A instanceof Symbol : !1;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function ie(O) {
|
|
1249
1249
|
var A = typeof O;
|
|
1250
|
-
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" :
|
|
1250
|
+
return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : V(A, O) ? "symbol" : A;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function re(O) {
|
|
1253
1253
|
if (typeof O > "u" || O === null)
|
|
1254
1254
|
return "" + O;
|
|
1255
|
-
var A =
|
|
1255
|
+
var A = ie(O);
|
|
1256
1256
|
if (A === "object") {
|
|
1257
1257
|
if (O instanceof Date)
|
|
1258
1258
|
return "date";
|
|
@@ -1262,7 +1262,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
1262
1262
|
return A;
|
|
1263
1263
|
}
|
|
1264
1264
|
function Ee(O) {
|
|
1265
|
-
var A =
|
|
1265
|
+
var A = re(O);
|
|
1266
1266
|
switch (A) {
|
|
1267
1267
|
case "array":
|
|
1268
1268
|
case "object":
|
|
@@ -1291,8 +1291,8 @@ function qa() {
|
|
|
1291
1291
|
function n() {
|
|
1292
1292
|
}
|
|
1293
1293
|
return n.resetWarningCache = t, Kr = function() {
|
|
1294
|
-
function r(s, l, c, u, p,
|
|
1295
|
-
if (
|
|
1294
|
+
function r(s, l, c, u, p, d) {
|
|
1295
|
+
if (d !== e) {
|
|
1296
1296
|
var h = new Error(
|
|
1297
1297
|
"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"
|
|
1298
1298
|
);
|
|
@@ -1352,7 +1352,7 @@ const a = /* @__PURE__ */ ns(Ha), is = ({
|
|
|
1352
1352
|
fontColor: c,
|
|
1353
1353
|
moreInfo: u
|
|
1354
1354
|
}) => {
|
|
1355
|
-
const { name: p, date:
|
|
1355
|
+
const { name: p, date: d, id: h } = e;
|
|
1356
1356
|
return /* @__PURE__ */ m.jsxs(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
@@ -1369,7 +1369,7 @@ const a = /* @__PURE__ */ ns(Ha), is = ({
|
|
|
1369
1369
|
),
|
|
1370
1370
|
/* @__PURE__ */ m.jsx("span", { style: { color: s ? l : c }, children: p })
|
|
1371
1371
|
] }),
|
|
1372
|
-
/* @__PURE__ */ m.jsx("div", { className: Rn.ambitDate, children: new Date(
|
|
1372
|
+
/* @__PURE__ */ m.jsx("div", { className: Rn.ambitDate, children: new Date(d).toLocaleDateString() })
|
|
1373
1373
|
] }),
|
|
1374
1374
|
/* @__PURE__ */ m.jsxs("div", { className: Rn.ambitButtons, children: [
|
|
1375
1375
|
i && /* @__PURE__ */ m.jsx("img", { src: Ho }),
|
|
@@ -1426,11 +1426,11 @@ const Ka = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%20
|
|
|
1426
1426
|
]
|
|
1427
1427
|
}
|
|
1428
1428
|
),
|
|
1429
|
-
e && e.length > 0 && e.map((
|
|
1429
|
+
e && e.length > 0 && e.map((d) => /* @__PURE__ */ m.jsx(
|
|
1430
1430
|
is,
|
|
1431
1431
|
{
|
|
1432
|
-
isActive: t ==
|
|
1433
|
-
ambit:
|
|
1432
|
+
isActive: t == d.id,
|
|
1433
|
+
ambit: d,
|
|
1434
1434
|
fontColor: n,
|
|
1435
1435
|
activeColor: r,
|
|
1436
1436
|
onClickCopy: s,
|
|
@@ -1438,7 +1438,7 @@ const Ka = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%20
|
|
|
1438
1438
|
onClickFilters: c,
|
|
1439
1439
|
onClickAmbit: u
|
|
1440
1440
|
},
|
|
1441
|
-
`ambitKey${
|
|
1441
|
+
`ambitKey${d.id}`
|
|
1442
1442
|
))
|
|
1443
1443
|
] });
|
|
1444
1444
|
};
|
|
@@ -1497,12 +1497,12 @@ const sl = ({
|
|
|
1497
1497
|
const {
|
|
1498
1498
|
icon: u,
|
|
1499
1499
|
activeIcon: p,
|
|
1500
|
-
isActive:
|
|
1500
|
+
isActive: d,
|
|
1501
1501
|
name: h,
|
|
1502
1502
|
onClick: v
|
|
1503
1503
|
} = l, b = /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1504
1504
|
n && r === "left" && /* @__PURE__ */ m.jsx("span", { className: Ft.buttonName, children: s(h) }),
|
|
1505
|
-
/* @__PURE__ */ m.jsx("img", { src:
|
|
1505
|
+
/* @__PURE__ */ m.jsx("img", { src: d ? p : u, alt: s(h) }),
|
|
1506
1506
|
n && r === "right" && /* @__PURE__ */ m.jsx("span", { className: Ft.buttonName, children: s(h) })
|
|
1507
1507
|
] });
|
|
1508
1508
|
return /* @__PURE__ */ m.jsxs("div", { className: "tooltip-parent", children: [
|
|
@@ -1511,7 +1511,7 @@ const sl = ({
|
|
|
1511
1511
|
{
|
|
1512
1512
|
onClick: v,
|
|
1513
1513
|
className: `${Ft.button}
|
|
1514
|
-
${
|
|
1514
|
+
${d && Ft.active}`,
|
|
1515
1515
|
children: b
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
@@ -1615,7 +1615,7 @@ const Am = () => /* @__PURE__ */ m.jsx("div", { children: "EditAmbit" }), ul = "
|
|
|
1615
1615
|
const { t: s } = $e(), { tematicalFiltersSelected: l } = qe((u) => u), c = (u) => {
|
|
1616
1616
|
qe.setState((p) => ({
|
|
1617
1617
|
tematicalFiltersSelected: p.tematicalFiltersSelected.filter(
|
|
1618
|
-
(
|
|
1618
|
+
(d) => d.code !== u
|
|
1619
1619
|
)
|
|
1620
1620
|
}));
|
|
1621
1621
|
};
|
|
@@ -1768,8 +1768,8 @@ let po = function(e) {
|
|
|
1768
1768
|
o.setState({ pending: !0 });
|
|
1769
1769
|
const c = o.getTouchPosition(l);
|
|
1770
1770
|
if (o.isScrolling === void 0) {
|
|
1771
|
-
const
|
|
1772
|
-
o.isScrolling = Math.abs(h) > Math.abs(
|
|
1771
|
+
const d = c[0] - o.startPosition[0], h = c[1] - o.startPosition[1];
|
|
1772
|
+
o.isScrolling = Math.abs(h) > Math.abs(d);
|
|
1773
1773
|
}
|
|
1774
1774
|
if (o.isScrolling) return void o.setState({ index: -1 });
|
|
1775
1775
|
const u = o.getDiffPosition(c[0]), p = o.getValueFromPosition(u);
|
|
@@ -1837,11 +1837,11 @@ let po = function(e) {
|
|
|
1837
1837
|
}, o.renderThumb = (l, c) => {
|
|
1838
1838
|
const u = o.props.thumbClassName + " " + o.props.thumbClassName + "-" + c + " " + (o.state.index === c ? o.props.thumbActiveClassName : ""), p = { ref: (h) => {
|
|
1839
1839
|
o["thumb" + c] = h;
|
|
1840
|
-
}, key: o.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: o.createOnMouseDown(c), onTouchStart: o.createOnTouchStart(c), onFocus: o.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": o.props.orientation, "aria-valuenow": o.state.value[c], "aria-valuemin": o.props.min, "aria-valuemax": o.props.max, "aria-label": Array.isArray(o.props.ariaLabel) ? o.props.ariaLabel[c] : o.props.ariaLabel, "aria-labelledby": Array.isArray(o.props.ariaLabelledby) ? o.props.ariaLabelledby[c] : o.props.ariaLabelledby, "aria-disabled": o.props.disabled },
|
|
1841
|
-
return o.props.ariaValuetext && (p["aria-valuetext"] = typeof o.props.ariaValuetext == "string" ? o.props.ariaValuetext : o.props.ariaValuetext(
|
|
1840
|
+
}, key: o.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: o.createOnMouseDown(c), onTouchStart: o.createOnTouchStart(c), onFocus: o.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": o.props.orientation, "aria-valuenow": o.state.value[c], "aria-valuemin": o.props.min, "aria-valuemax": o.props.max, "aria-label": Array.isArray(o.props.ariaLabel) ? o.props.ariaLabel[c] : o.props.ariaLabel, "aria-labelledby": Array.isArray(o.props.ariaLabelledby) ? o.props.ariaLabelledby[c] : o.props.ariaLabelledby, "aria-disabled": o.props.disabled }, d = { index: c, value: er(o.state.value), valueNow: o.state.value[c] };
|
|
1841
|
+
return o.props.ariaValuetext && (p["aria-valuetext"] = typeof o.props.ariaValuetext == "string" ? o.props.ariaValuetext : o.props.ariaValuetext(d)), o.props.renderThumb(p, d);
|
|
1842
1842
|
}, o.renderTrack = (l, c, u) => {
|
|
1843
|
-
const p = { key: o.props.trackClassName + "-" + l, className: o.props.trackClassName + " " + o.props.trackClassName + "-" + l, style: o.buildTrackStyle(c, o.state.upperBound - u) },
|
|
1844
|
-
return o.props.renderTrack(p,
|
|
1843
|
+
const p = { key: o.props.trackClassName + "-" + l, className: o.props.trackClassName + " " + o.props.trackClassName + "-" + l, style: o.buildTrackStyle(c, o.state.upperBound - u) }, d = { index: l, value: er(o.state.value) };
|
|
1844
|
+
return o.props.renderTrack(p, d);
|
|
1845
1845
|
};
|
|
1846
1846
|
let i = Gr(r.value);
|
|
1847
1847
|
i.length || (i = Gr(r.defaultValue)), o.pendingResizeTimeouts = [];
|
|
@@ -1896,8 +1896,8 @@ let po = function(e) {
|
|
|
1896
1896
|
}, n.resize = function() {
|
|
1897
1897
|
const { slider: r, thumb0: o } = this;
|
|
1898
1898
|
if (!r || !o) return;
|
|
1899
|
-
const i = this.sizeKey(), s = r.getBoundingClientRect(), l = r[i], c = s[this.posMaxKey()], u = s[this.posMinKey()], p = o.getBoundingClientRect()[i.replace("client", "").toLowerCase()],
|
|
1900
|
-
this.state.upperBound ===
|
|
1899
|
+
const i = this.sizeKey(), s = r.getBoundingClientRect(), l = r[i], c = s[this.posMaxKey()], u = s[this.posMinKey()], p = o.getBoundingClientRect()[i.replace("client", "").toLowerCase()], d = l - p, h = Math.abs(c - u);
|
|
1900
|
+
this.state.upperBound === d && this.state.sliderLength === h && this.state.thumbSize === p || this.setState({ upperBound: d, sliderLength: h, thumbSize: p });
|
|
1901
1901
|
}, n.calcOffset = function(r) {
|
|
1902
1902
|
const o = this.props.max - this.props.min;
|
|
1903
1903
|
return o === 0 ? 0 : (r - this.props.min) / o * this.state.upperBound;
|
|
@@ -1936,28 +1936,28 @@ let po = function(e) {
|
|
|
1936
1936
|
const o = this.state.value.slice(), { index: i } = this.state, { length: s } = o, l = o[i];
|
|
1937
1937
|
if (r === l) return;
|
|
1938
1938
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
1939
|
-
const { pearling: c, max: u, min: p, minDistance:
|
|
1939
|
+
const { pearling: c, max: u, min: p, minDistance: d } = this.props;
|
|
1940
1940
|
if (!c) {
|
|
1941
1941
|
if (i > 0) {
|
|
1942
1942
|
const h = o[i - 1];
|
|
1943
|
-
r < h +
|
|
1943
|
+
r < h + d && (r = h + d);
|
|
1944
1944
|
}
|
|
1945
1945
|
if (i < s - 1) {
|
|
1946
1946
|
const h = o[i + 1];
|
|
1947
|
-
r > h -
|
|
1947
|
+
r > h - d && (r = h - d);
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
|
-
o[i] = r, c && s > 1 && (r > l ? (this.pushSucceeding(o,
|
|
1950
|
+
o[i] = r, c && s > 1 && (r > l ? (this.pushSucceeding(o, d, i), function(h, v, b, f) {
|
|
1951
1951
|
for (let x = 0; x < h; x += 1) {
|
|
1952
|
-
const C =
|
|
1952
|
+
const C = f - x * b;
|
|
1953
1953
|
v[h - 1 - x] > C && (v[h - 1 - x] = C);
|
|
1954
1954
|
}
|
|
1955
|
-
}(s, o,
|
|
1955
|
+
}(s, o, d, u)) : r < l && (this.pushPreceding(o, d, i), function(h, v, b, f) {
|
|
1956
1956
|
for (let x = 0; x < h; x += 1) {
|
|
1957
|
-
const C =
|
|
1957
|
+
const C = f + x * b;
|
|
1958
1958
|
v[x] < C && (v[x] = C);
|
|
1959
1959
|
}
|
|
1960
|
-
}(s, o,
|
|
1960
|
+
}(s, o, d, p))), this.setState({ value: o }, this.fireChangeEvent.bind(this, "onChange"));
|
|
1961
1961
|
}, n.pushSucceeding = function(r, o, i) {
|
|
1962
1962
|
let s, l;
|
|
1963
1963
|
for (s = i, l = r[s] + o; r[s + 1] !== null && l > r[s + 1]; s += 1, l = r[s] + o) r[s + 1] = fo(l, this.props);
|
|
@@ -2082,114 +2082,117 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2082
2082
|
checkboxContainer: wl,
|
|
2083
2083
|
absoluteSliderContainer: Tl
|
|
2084
2084
|
}, Eo = ({
|
|
2085
|
-
indicator: e
|
|
2085
|
+
indicator: e,
|
|
2086
2086
|
//onChangeBothType
|
|
2087
|
+
activeColor: t
|
|
2087
2088
|
}) => {
|
|
2088
|
-
const [
|
|
2089
|
-
type:
|
|
2090
|
-
name:
|
|
2091
|
-
values:
|
|
2092
|
-
minValue:
|
|
2093
|
-
maxValue:
|
|
2094
|
-
unit:
|
|
2095
|
-
} = e || {},
|
|
2096
|
-
() =>
|
|
2097
|
-
[
|
|
2098
|
-
),
|
|
2099
|
-
() =>
|
|
2100
|
-
[
|
|
2089
|
+
const [n, r] = We(), {
|
|
2090
|
+
type: o,
|
|
2091
|
+
name: i,
|
|
2092
|
+
values: s,
|
|
2093
|
+
minValue: l,
|
|
2094
|
+
maxValue: c,
|
|
2095
|
+
unit: u
|
|
2096
|
+
} = e || {}, p = Ue(
|
|
2097
|
+
() => o == "cat" || n == "cat",
|
|
2098
|
+
[n, o]
|
|
2099
|
+
), d = Ue(
|
|
2100
|
+
() => o == "abs" || n == "abs",
|
|
2101
|
+
[n, o]
|
|
2101
2102
|
), {
|
|
2102
|
-
tematicalFiltersSelected:
|
|
2103
|
-
selectedIndicator:
|
|
2104
|
-
fontColor:
|
|
2105
|
-
inputsColor:
|
|
2106
|
-
} = qe((
|
|
2107
|
-
if (
|
|
2108
|
-
const { min:
|
|
2109
|
-
let
|
|
2110
|
-
|
|
2111
|
-
let
|
|
2112
|
-
(
|
|
2103
|
+
tematicalFiltersSelected: h,
|
|
2104
|
+
selectedIndicator: v,
|
|
2105
|
+
fontColor: b,
|
|
2106
|
+
inputsColor: f
|
|
2107
|
+
} = qe((R) => R), x = (R) => {
|
|
2108
|
+
if (R) {
|
|
2109
|
+
const { min: w, max: k, valueClicked: _, allValues: D } = R || {}, { code: y, type: T } = e || {}, S = d ? "abs" : p ? "cat" : "both";
|
|
2110
|
+
let $ = y[0];
|
|
2111
|
+
T == "both" && ($ = S == "cat" ? y[1] : y[0]), S == "cat" ? qe.setState((N) => {
|
|
2112
|
+
let X = N.tematicalFiltersSelected.find(
|
|
2113
|
+
(B) => B.code === $
|
|
2113
2114
|
);
|
|
2114
|
-
if (
|
|
2115
|
-
let
|
|
2116
|
-
if (
|
|
2117
|
-
if (
|
|
2118
|
-
(
|
|
2119
|
-
),
|
|
2115
|
+
if (X) {
|
|
2116
|
+
let B = [X.values];
|
|
2117
|
+
if (X.values.includes(_)) {
|
|
2118
|
+
if (B = X.values.filter(
|
|
2119
|
+
(Y) => Y !== _
|
|
2120
|
+
), B.length < 1)
|
|
2120
2121
|
return {
|
|
2121
|
-
tematicalFiltersSelected:
|
|
2122
|
-
(
|
|
2122
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.filter(
|
|
2123
|
+
(Y) => Y.code !== $
|
|
2123
2124
|
)
|
|
2124
2125
|
};
|
|
2125
2126
|
} else
|
|
2126
|
-
|
|
2127
|
+
B = [...X.values, _];
|
|
2127
2128
|
return {
|
|
2128
|
-
tematicalFiltersSelected:
|
|
2129
|
-
(
|
|
2129
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.map(
|
|
2130
|
+
(Y) => Y.code === $ ? { ...Y, values: B } : Y
|
|
2130
2131
|
)
|
|
2131
2132
|
};
|
|
2132
2133
|
} else {
|
|
2133
|
-
console.log("entra aqui: ",
|
|
2134
|
-
let
|
|
2134
|
+
console.log("entra aqui: ", D, " ", _);
|
|
2135
|
+
let B = D.map((Y, V) => V);
|
|
2135
2136
|
return {
|
|
2136
2137
|
tematicalFiltersSelected: [
|
|
2137
|
-
...
|
|
2138
|
+
...h,
|
|
2138
2139
|
{
|
|
2139
2140
|
type: "cat",
|
|
2140
|
-
code:
|
|
2141
|
-
values:
|
|
2141
|
+
code: $,
|
|
2142
|
+
values: B.filter((Y) => Y !== _),
|
|
2143
|
+
name: e.name
|
|
2142
2144
|
}
|
|
2143
2145
|
]
|
|
2144
2146
|
};
|
|
2145
2147
|
}
|
|
2146
|
-
}) :
|
|
2147
|
-
let
|
|
2148
|
-
(
|
|
2148
|
+
}) : S == "abs" && qe.setState((N) => {
|
|
2149
|
+
let X = N.tematicalFiltersSelected.find(
|
|
2150
|
+
(B) => B.code === $
|
|
2149
2151
|
);
|
|
2150
|
-
if (
|
|
2151
|
-
let
|
|
2152
|
-
return
|
|
2153
|
-
tematicalFiltersSelected:
|
|
2154
|
-
(
|
|
2152
|
+
if (X) {
|
|
2153
|
+
let B = { ...X };
|
|
2154
|
+
return B.min = w, B.max = k, {
|
|
2155
|
+
tematicalFiltersSelected: N.tematicalFiltersSelected.map(
|
|
2156
|
+
(Y) => Y.code === $ ? B : Y
|
|
2155
2157
|
)
|
|
2156
2158
|
};
|
|
2157
2159
|
} else
|
|
2158
2160
|
return {
|
|
2159
2161
|
tematicalFiltersSelected: [
|
|
2160
|
-
...
|
|
2161
|
-
{ type: "abs", code:
|
|
2162
|
+
...h,
|
|
2163
|
+
{ type: "abs", code: $, min: w, max: k }
|
|
2162
2164
|
]
|
|
2163
2165
|
};
|
|
2164
2166
|
});
|
|
2165
2167
|
}
|
|
2166
|
-
},
|
|
2167
|
-
const
|
|
2168
|
-
if ((
|
|
2169
|
-
for (const
|
|
2170
|
-
|
|
2171
|
-
return
|
|
2172
|
-
}, [
|
|
2168
|
+
}, C = Ue(() => {
|
|
2169
|
+
const R = {};
|
|
2170
|
+
if ((h == null ? void 0 : h.length) > 0)
|
|
2171
|
+
for (const w of h)
|
|
2172
|
+
w.type === "cat" ? R[w.code] = new Set(w.values) : R[w.code] = [w.min, w.max];
|
|
2173
|
+
return R;
|
|
2174
|
+
}, [h]);
|
|
2173
2175
|
return /* @__PURE__ */ m.jsx("div", { className: nr.tematicalFiltersInputContainer, children: /* @__PURE__ */ m.jsxs(
|
|
2174
2176
|
Vt,
|
|
2175
2177
|
{
|
|
2176
2178
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
2177
|
-
title:
|
|
2178
|
-
isOpen:
|
|
2179
|
+
title: i,
|
|
2180
|
+
isOpen: v == `id${i}`,
|
|
2179
2181
|
onClick: () => qe.setState(() => ({
|
|
2180
|
-
selectedIndicator:
|
|
2182
|
+
selectedIndicator: v == `id${i}` ? "" : `id${i}`
|
|
2181
2183
|
})),
|
|
2182
2184
|
showBottomBar: !1,
|
|
2183
2185
|
height: 38,
|
|
2184
2186
|
titleMarginChildren: 14,
|
|
2185
2187
|
className: "tematicalFiltersInputContainer",
|
|
2186
|
-
color:
|
|
2188
|
+
color: b,
|
|
2189
|
+
activeColor: t,
|
|
2187
2190
|
children: [
|
|
2188
|
-
|
|
2191
|
+
o == "both" && /* @__PURE__ */ m.jsxs(
|
|
2189
2192
|
"div",
|
|
2190
2193
|
{
|
|
2191
2194
|
className: nr.inputTypeContainer,
|
|
2192
|
-
style: { color:
|
|
2195
|
+
style: { color: b },
|
|
2193
2196
|
children: [
|
|
2194
2197
|
/* @__PURE__ */ m.jsxs("label", { children: [
|
|
2195
2198
|
/* @__PURE__ */ m.jsx(
|
|
@@ -2199,12 +2202,12 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2199
2202
|
name: "tipo",
|
|
2200
2203
|
value: "abs",
|
|
2201
2204
|
onChange: () => {
|
|
2202
|
-
|
|
2205
|
+
r("abs");
|
|
2203
2206
|
},
|
|
2204
2207
|
style: {
|
|
2205
2208
|
marginRight: 4,
|
|
2206
|
-
backgroundColor:
|
|
2207
|
-
border: `1.5px solid ${
|
|
2209
|
+
backgroundColor: n == "abs" ? f : "white",
|
|
2210
|
+
border: `1.5px solid ${n == "abs" ? f : b}`
|
|
2208
2211
|
}
|
|
2209
2212
|
}
|
|
2210
2213
|
),
|
|
@@ -2218,12 +2221,12 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2218
2221
|
name: "tipo",
|
|
2219
2222
|
value: "cat",
|
|
2220
2223
|
onChange: () => {
|
|
2221
|
-
|
|
2224
|
+
r("cat");
|
|
2222
2225
|
},
|
|
2223
2226
|
style: {
|
|
2224
2227
|
marginRight: 4,
|
|
2225
|
-
backgroundColor:
|
|
2226
|
-
border: `1.5px solid ${
|
|
2228
|
+
backgroundColor: n == "cat" ? f : "white",
|
|
2229
|
+
border: `1.5px solid ${n == "cat" ? f : b}`
|
|
2227
2230
|
}
|
|
2228
2231
|
}
|
|
2229
2232
|
),
|
|
@@ -2232,26 +2235,26 @@ const Cl = "_tematicalFiltersInputContainer_1vm1r_2", Sl = "_inputTypeContainer_
|
|
|
2232
2235
|
]
|
|
2233
2236
|
}
|
|
2234
2237
|
),
|
|
2235
|
-
|
|
2236
|
-
var
|
|
2238
|
+
p && /* @__PURE__ */ m.jsx("div", { className: nr.checkboxContainer, children: s.map((R, w) => {
|
|
2239
|
+
var k;
|
|
2237
2240
|
return /* @__PURE__ */ m.jsx(
|
|
2238
2241
|
cs,
|
|
2239
2242
|
{
|
|
2240
|
-
onClick: () =>
|
|
2241
|
-
indicator:
|
|
2242
|
-
value: ((
|
|
2243
|
+
onClick: () => x({ valueClicked: w, allValues: s }),
|
|
2244
|
+
indicator: R,
|
|
2245
|
+
value: ((k = C[e.code[o == "both" ? 1 : 0]]) == null ? void 0 : k.has(w)) || !C[e.code[o == "both" ? 1 : 0]]
|
|
2243
2246
|
},
|
|
2244
|
-
`checkbox-${
|
|
2247
|
+
`checkbox-${w}`
|
|
2245
2248
|
);
|
|
2246
2249
|
}) }),
|
|
2247
|
-
|
|
2250
|
+
d && /* @__PURE__ */ m.jsx("div", { className: nr.absoluteSliderContainer, children: /* @__PURE__ */ m.jsx(
|
|
2248
2251
|
us,
|
|
2249
2252
|
{
|
|
2250
|
-
onChange:
|
|
2251
|
-
min:
|
|
2252
|
-
max:
|
|
2253
|
-
unit:
|
|
2254
|
-
value:
|
|
2253
|
+
onChange: x,
|
|
2254
|
+
min: l,
|
|
2255
|
+
max: c,
|
|
2256
|
+
unit: u,
|
|
2257
|
+
value: C[e.code[0]]
|
|
2255
2258
|
}
|
|
2256
2259
|
) })
|
|
2257
2260
|
]
|
|
@@ -2269,23 +2272,25 @@ Eo.propTypes = {
|
|
|
2269
2272
|
title: a.string
|
|
2270
2273
|
})
|
|
2271
2274
|
)
|
|
2272
|
-
})
|
|
2275
|
+
}),
|
|
2276
|
+
activeColor: a.string
|
|
2273
2277
|
//onChangeBothType: PropTypes.func,
|
|
2274
2278
|
};
|
|
2275
2279
|
const fs = ({
|
|
2276
2280
|
subcategory: e,
|
|
2277
|
-
fontColor: t
|
|
2281
|
+
fontColor: t,
|
|
2282
|
+
activeColor: n
|
|
2278
2283
|
//onChangeBothType,
|
|
2279
2284
|
}) => {
|
|
2280
|
-
const { activeSubcategory:
|
|
2285
|
+
const { activeSubcategory: r } = qe((s) => s), { name: o, indicators: i } = e || {};
|
|
2281
2286
|
return /* @__PURE__ */ m.jsx(
|
|
2282
2287
|
Vt,
|
|
2283
2288
|
{
|
|
2284
|
-
title:
|
|
2285
|
-
isOpen:
|
|
2289
|
+
title: o,
|
|
2290
|
+
isOpen: r == `id${o}`,
|
|
2286
2291
|
onClick: () => {
|
|
2287
|
-
qe.setState((
|
|
2288
|
-
activeSubcategory:
|
|
2292
|
+
qe.setState((s) => ({
|
|
2293
|
+
activeSubcategory: s.activeSubcategory === `id${o}` ? "" : `id${o}`
|
|
2289
2294
|
}));
|
|
2290
2295
|
},
|
|
2291
2296
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
@@ -2293,13 +2298,14 @@ const fs = ({
|
|
|
2293
2298
|
titleMarginChildren: 20,
|
|
2294
2299
|
height: 49,
|
|
2295
2300
|
color: t,
|
|
2296
|
-
|
|
2301
|
+
activeColor: n,
|
|
2302
|
+
children: i == null ? void 0 : i.map((s, l) => /* @__PURE__ */ m.jsx(
|
|
2297
2303
|
Eo,
|
|
2298
2304
|
{
|
|
2299
|
-
indicator:
|
|
2305
|
+
indicator: s,
|
|
2300
2306
|
fontColor: t
|
|
2301
2307
|
},
|
|
2302
|
-
`indicatorSub-${
|
|
2308
|
+
`indicatorSub-${l}`
|
|
2303
2309
|
))
|
|
2304
2310
|
}
|
|
2305
2311
|
);
|
|
@@ -2313,41 +2319,44 @@ fs.propTypes = {
|
|
|
2313
2319
|
value: a.string
|
|
2314
2320
|
})
|
|
2315
2321
|
)
|
|
2316
|
-
})
|
|
2322
|
+
}),
|
|
2323
|
+
activeColor: a.string
|
|
2317
2324
|
//onChangeBothType: PropTypes.func,
|
|
2318
2325
|
};
|
|
2319
2326
|
const ds = ({
|
|
2320
|
-
category: e
|
|
2327
|
+
category: e,
|
|
2321
2328
|
// onChangeBothType,
|
|
2329
|
+
activeColor: t
|
|
2322
2330
|
}) => {
|
|
2323
|
-
const { name:
|
|
2331
|
+
const { name: n, subcategories: r, indicators: o } = e || {}, { activeCategory: i, fontColor: s } = qe((l) => l);
|
|
2324
2332
|
return e && /* @__PURE__ */ m.jsx(
|
|
2325
2333
|
Vt,
|
|
2326
2334
|
{
|
|
2327
2335
|
onClick: () => {
|
|
2328
|
-
qe.setState((
|
|
2329
|
-
activeCategory:
|
|
2336
|
+
qe.setState((l) => ({
|
|
2337
|
+
activeCategory: i === `id${n}` ? "" : `id${n}`
|
|
2330
2338
|
}));
|
|
2331
2339
|
},
|
|
2332
|
-
title:
|
|
2333
|
-
isOpen:
|
|
2340
|
+
title: n,
|
|
2341
|
+
isOpen: i === `id${n}`,
|
|
2334
2342
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
2335
2343
|
showBottomBar: !1,
|
|
2336
|
-
color:
|
|
2337
|
-
|
|
2344
|
+
color: s,
|
|
2345
|
+
activeColor: t,
|
|
2346
|
+
children: r ? r.map((l, c) => /* @__PURE__ */ m.jsx(
|
|
2338
2347
|
fs,
|
|
2339
2348
|
{
|
|
2340
|
-
subcategory:
|
|
2341
|
-
fontColor:
|
|
2349
|
+
subcategory: l,
|
|
2350
|
+
fontColor: s
|
|
2342
2351
|
},
|
|
2343
|
-
`subcategory-${
|
|
2344
|
-
)) :
|
|
2352
|
+
`subcategory-${c}`
|
|
2353
|
+
)) : o && o.map((l, c) => /* @__PURE__ */ m.jsx(
|
|
2345
2354
|
Eo,
|
|
2346
2355
|
{
|
|
2347
|
-
indicator:
|
|
2348
|
-
fontColor:
|
|
2356
|
+
indicator: l,
|
|
2357
|
+
fontColor: s
|
|
2349
2358
|
},
|
|
2350
|
-
`indicator-${
|
|
2359
|
+
`indicator-${c}`
|
|
2351
2360
|
))
|
|
2352
2361
|
}
|
|
2353
2362
|
);
|
|
@@ -2357,7 +2366,8 @@ ds.propTypes = {
|
|
|
2357
2366
|
name: a.string.isRequired,
|
|
2358
2367
|
subcategories: a.array,
|
|
2359
2368
|
indicators: a.array
|
|
2360
|
-
})
|
|
2369
|
+
}),
|
|
2370
|
+
activeColor: a.string
|
|
2361
2371
|
//onChangeBothType: PropTypes.func,
|
|
2362
2372
|
};
|
|
2363
2373
|
const ps = ({
|
|
@@ -2369,11 +2379,11 @@ const ps = ({
|
|
|
2369
2379
|
inputsColor: o = "#605B56"
|
|
2370
2380
|
}) => {
|
|
2371
2381
|
const { tematicalFiltersSelected: i } = qe((l) => l), { t: s } = $e();
|
|
2372
|
-
return
|
|
2382
|
+
return se(() => {
|
|
2373
2383
|
console.log("filtersSelected changed: ", i);
|
|
2374
|
-
}, [i]),
|
|
2384
|
+
}, [i]), se(() => {
|
|
2375
2385
|
r && qe.setState(() => ({ fontColor: r }));
|
|
2376
|
-
}, [r]),
|
|
2386
|
+
}, [r]), se(() => {
|
|
2377
2387
|
o && qe.setState(() => ({ inputsColor: o }));
|
|
2378
2388
|
}, [o]), /* @__PURE__ */ m.jsx(
|
|
2379
2389
|
Vt,
|
|
@@ -2418,11 +2428,11 @@ const El = "_FiltersAmbitContainer_6o4gt_2", kl = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
2418
2428
|
onChangeAppliedFilters: l
|
|
2419
2429
|
}) => {
|
|
2420
2430
|
const { t: c } = $e(), { tematicalFiltersSelected: u } = qe((p) => p);
|
|
2421
|
-
return
|
|
2431
|
+
return se(() => {
|
|
2422
2432
|
n && n.length > 0 && qe.setState((p) => ({
|
|
2423
2433
|
tematicalFiltersSelected: n
|
|
2424
2434
|
}));
|
|
2425
|
-
}, [n]),
|
|
2435
|
+
}, [n]), se(() => {
|
|
2426
2436
|
console.log("filtersSelected changed: ", u), l(u);
|
|
2427
2437
|
}, [u]), /* @__PURE__ */ m.jsxs("div", { className: $n.FiltersAmbitContainer, children: [
|
|
2428
2438
|
/* @__PURE__ */ m.jsxs("div", { className: $n.FiltersAmbitHeader, children: [
|
|
@@ -2478,9 +2488,9 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2478
2488
|
numberOfDivisions: c = 7,
|
|
2479
2489
|
maxValue: u = null
|
|
2480
2490
|
}) => {
|
|
2481
|
-
const { t: p } = $e(), { xScale:
|
|
2491
|
+
const { t: p } = $e(), { xScale: d, ticks: h, height: v } = Ue(() => {
|
|
2482
2492
|
if (e && e.length > 0) {
|
|
2483
|
-
const b = (e == null ? void 0 : e.length) * (n + r) + i * 2,
|
|
2493
|
+
const b = (e == null ? void 0 : e.length) * (n + r) + i * 2, f = Bo.max(e, (R) => R.value) || 1, x = Bo.scaleLinear().domain([0, u || f]).range([0, t - l]), C = Array.from({ length: c + 1 }, (R, w) => u ? u / c * w : f / c * w);
|
|
2484
2494
|
return {
|
|
2485
2495
|
xScale: x,
|
|
2486
2496
|
ticks: C,
|
|
@@ -2502,8 +2512,8 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2502
2512
|
u
|
|
2503
2513
|
]);
|
|
2504
2514
|
return /* @__PURE__ */ m.jsx("div", { className: Ll.barChartContainer, children: /* @__PURE__ */ m.jsx("svg", { width: t + s * 2, height: v, children: /* @__PURE__ */ m.jsxs("g", { transform: `translate(0,${r})`, children: [
|
|
2505
|
-
/* @__PURE__ */ m.jsx("g", { transform: `translate(${l + s}, 0)`, children: h.map((b,
|
|
2506
|
-
const x =
|
|
2515
|
+
/* @__PURE__ */ m.jsx("g", { transform: `translate(${l + s}, 0)`, children: h.map((b, f) => {
|
|
2516
|
+
const x = d(b);
|
|
2507
2517
|
return /* @__PURE__ */ m.jsxs("g", { transform: `translate(${x}, 0)`, children: [
|
|
2508
2518
|
/* @__PURE__ */ m.jsx(
|
|
2509
2519
|
"line",
|
|
@@ -2523,10 +2533,10 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2523
2533
|
children: parseInt(b)
|
|
2524
2534
|
}
|
|
2525
2535
|
)
|
|
2526
|
-
] },
|
|
2536
|
+
] }, f);
|
|
2527
2537
|
}) }),
|
|
2528
|
-
e && e.length > 0 && (e == null ? void 0 : e.map((b,
|
|
2529
|
-
const x =
|
|
2538
|
+
e && e.length > 0 && (e == null ? void 0 : e.map((b, f) => {
|
|
2539
|
+
const x = d(b.value), C = f * (n + r);
|
|
2530
2540
|
return /* @__PURE__ */ m.jsxs(
|
|
2531
2541
|
"g",
|
|
2532
2542
|
{
|
|
@@ -2553,7 +2563,7 @@ const Pl = "_barChartContainer_d2f1z_2", Ll = {
|
|
|
2553
2563
|
)
|
|
2554
2564
|
]
|
|
2555
2565
|
},
|
|
2556
|
-
|
|
2566
|
+
f
|
|
2557
2567
|
);
|
|
2558
2568
|
}))
|
|
2559
2569
|
] }) }) });
|
|
@@ -2657,8 +2667,8 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2657
2667
|
multiple: l = !1,
|
|
2658
2668
|
onChangeType: c
|
|
2659
2669
|
}) => {
|
|
2660
|
-
const { t: u } = $e(), { name: p, type:
|
|
2661
|
-
|
|
2670
|
+
const { t: u } = $e(), { name: p, type: d } = e, [h, v] = We(!1);
|
|
2671
|
+
se(() => {
|
|
2662
2672
|
o && v(
|
|
2663
2673
|
l ? o.some(
|
|
2664
2674
|
(x) => x.name == String(p)
|
|
@@ -2724,7 +2734,7 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2724
2734
|
]
|
|
2725
2735
|
}
|
|
2726
2736
|
)
|
|
2727
|
-
] }) }) }),
|
|
2737
|
+
] }) }) }), f = () => /* @__PURE__ */ m.jsx("div", { className: ze.switchExternalContainer, children: /* @__PURE__ */ m.jsx("div", { className: ze.switchType, children: /* @__PURE__ */ m.jsx("div", { className: ze.switchTypeOptions, children: t.map((x, C) => /* @__PURE__ */ m.jsxs(
|
|
2728
2738
|
"div",
|
|
2729
2739
|
{
|
|
2730
2740
|
className: ze.optionContainer,
|
|
@@ -2771,8 +2781,8 @@ const Il = "_indicatorsCategory_1cu33_2", Dl = "_title_1cu33_5", Fl = "_list_1cu
|
|
|
2771
2781
|
]
|
|
2772
2782
|
}
|
|
2773
2783
|
),
|
|
2774
|
-
(o == null ? void 0 : o.name) === p &&
|
|
2775
|
-
(o == null ? void 0 : o.name) === p &&
|
|
2784
|
+
(o == null ? void 0 : o.name) === p && d === "both" && /* @__PURE__ */ m.jsx("div", { children: b() }),
|
|
2785
|
+
(o == null ? void 0 : o.name) === p && d === "twoUnits" && /* @__PURE__ */ m.jsx("div", { children: f() })
|
|
2776
2786
|
]
|
|
2777
2787
|
}
|
|
2778
2788
|
);
|
|
@@ -2804,10 +2814,10 @@ const Gl = "_indicatorsSubCategory_1dzsi_2", Jl = "_list_1dzsi_8", ii = {
|
|
|
2804
2814
|
onClickIndicator: c,
|
|
2805
2815
|
multiple: u,
|
|
2806
2816
|
activeIndicatorType: p,
|
|
2807
|
-
onChangeType:
|
|
2817
|
+
onChangeType: d
|
|
2808
2818
|
}) => {
|
|
2809
2819
|
const { t: h } = $e(), [v, b] = We(!1);
|
|
2810
|
-
return
|
|
2820
|
+
return se(() => {
|
|
2811
2821
|
b(o == s);
|
|
2812
2822
|
}, [o, s]), /* @__PURE__ */ m.jsxs(
|
|
2813
2823
|
wo.div,
|
|
@@ -2827,17 +2837,17 @@ const Gl = "_indicatorsSubCategory_1dzsi_2", Jl = "_list_1dzsi_8", ii = {
|
|
|
2827
2837
|
}
|
|
2828
2838
|
)
|
|
2829
2839
|
] }) }),
|
|
2830
|
-
t && /* @__PURE__ */ m.jsx("div", { className: ii.list, children: t == null ? void 0 : t.map((
|
|
2840
|
+
t && /* @__PURE__ */ m.jsx("div", { className: ii.list, children: t == null ? void 0 : t.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
2831
2841
|
ko,
|
|
2832
2842
|
{
|
|
2833
|
-
indicator:
|
|
2843
|
+
indicator: f,
|
|
2834
2844
|
defaultColor: n,
|
|
2835
2845
|
activeColor: r,
|
|
2836
2846
|
activeIndicator: l,
|
|
2837
2847
|
onClickIndicator: c,
|
|
2838
2848
|
multiple: u,
|
|
2839
2849
|
activeIndicatorType: p,
|
|
2840
|
-
onChangeType:
|
|
2850
|
+
onChangeType: d
|
|
2841
2851
|
},
|
|
2842
2852
|
"indicator" + x
|
|
2843
2853
|
)) })
|
|
@@ -2869,13 +2879,13 @@ const gs = ({
|
|
|
2869
2879
|
activeIndicator: c,
|
|
2870
2880
|
onClickIndicator: u,
|
|
2871
2881
|
multiple: p,
|
|
2872
|
-
activeIndicatorType:
|
|
2882
|
+
activeIndicatorType: d,
|
|
2873
2883
|
onChangeType: h
|
|
2874
2884
|
}) => {
|
|
2875
2885
|
var x;
|
|
2876
|
-
const { t: v } = $e(), [b,
|
|
2877
|
-
return
|
|
2878
|
-
|
|
2886
|
+
const { t: v } = $e(), [b, f] = We(!1);
|
|
2887
|
+
return se(() => {
|
|
2888
|
+
f(i === t);
|
|
2879
2889
|
}, [i, t]), /* @__PURE__ */ m.jsxs(
|
|
2880
2890
|
wo.div,
|
|
2881
2891
|
{
|
|
@@ -2900,10 +2910,10 @@ const gs = ({
|
|
|
2900
2910
|
)
|
|
2901
2911
|
] }),
|
|
2902
2912
|
e.subcategories ? e.subcategories.map(
|
|
2903
|
-
({ name: C, subcategory:
|
|
2913
|
+
({ name: C, subcategory: R, indicators: w }, k) => /* @__PURE__ */ m.jsx(
|
|
2904
2914
|
ms,
|
|
2905
2915
|
{
|
|
2906
|
-
id:
|
|
2916
|
+
id: R,
|
|
2907
2917
|
activeSubCategory: s,
|
|
2908
2918
|
subcName: C,
|
|
2909
2919
|
onClickSubCategory: l,
|
|
@@ -2912,13 +2922,13 @@ const gs = ({
|
|
|
2912
2922
|
multiple: p,
|
|
2913
2923
|
activeColor: n,
|
|
2914
2924
|
defaultColor: r,
|
|
2915
|
-
indicators:
|
|
2916
|
-
activeIndicatorType:
|
|
2925
|
+
indicators: w,
|
|
2926
|
+
activeIndicatorType: d,
|
|
2917
2927
|
onChangeType: h
|
|
2918
2928
|
},
|
|
2919
|
-
`subcKey ${
|
|
2929
|
+
`subcKey ${k}`
|
|
2920
2930
|
)
|
|
2921
|
-
) : /* @__PURE__ */ m.jsx("div", { className: Jr.list, children: (x = e.indicators) == null ? void 0 : x.map((C,
|
|
2931
|
+
) : /* @__PURE__ */ m.jsx("div", { className: Jr.list, children: (x = e.indicators) == null ? void 0 : x.map((C, R) => /* @__PURE__ */ m.jsx(
|
|
2922
2932
|
ko,
|
|
2923
2933
|
{
|
|
2924
2934
|
indicator: C,
|
|
@@ -2928,10 +2938,10 @@ const gs = ({
|
|
|
2928
2938
|
activeIndicator: c,
|
|
2929
2939
|
onClickIndicator: u,
|
|
2930
2940
|
multiple: p,
|
|
2931
|
-
activeIndicatorType:
|
|
2941
|
+
activeIndicatorType: d,
|
|
2932
2942
|
onChangeType: h
|
|
2933
2943
|
},
|
|
2934
|
-
`indicator${
|
|
2944
|
+
`indicator${R}`
|
|
2935
2945
|
)) })
|
|
2936
2946
|
]
|
|
2937
2947
|
}
|
|
@@ -2968,62 +2978,62 @@ const Xl = "_indicatorsList_fklyu_2", Ql = "_title_fklyu_6", si = {
|
|
|
2968
2978
|
changeIndType: s,
|
|
2969
2979
|
activeIndicatorType: l
|
|
2970
2980
|
}) => {
|
|
2971
|
-
const { t: c } = $e(), [u, p] = We(), [
|
|
2972
|
-
p(u ==
|
|
2973
|
-
}, x = (
|
|
2974
|
-
h(
|
|
2975
|
-
}, C = ({ indicator:
|
|
2976
|
-
console.log("onClickIndicator: ",
|
|
2977
|
-
},
|
|
2981
|
+
const { t: c } = $e(), [u, p] = We(), [d, h] = We(), [v, b] = We(), f = (k) => {
|
|
2982
|
+
p(u == k ? null : k);
|
|
2983
|
+
}, x = (k) => {
|
|
2984
|
+
h(d == k ? null : k);
|
|
2985
|
+
}, C = ({ indicator: k }) => {
|
|
2986
|
+
console.log("onClickIndicator: ", k), R(k);
|
|
2987
|
+
}, R = (k) => {
|
|
2978
2988
|
if (!o)
|
|
2979
2989
|
b(
|
|
2980
|
-
(v == null ? void 0 : v.name) ==
|
|
2990
|
+
(v == null ? void 0 : v.name) == k.name ? null : k
|
|
2981
2991
|
);
|
|
2982
2992
|
else {
|
|
2983
2993
|
let _ = v && v.length > 0 ? [...v] : [];
|
|
2984
2994
|
b(
|
|
2985
2995
|
_ != null && _.some(
|
|
2986
|
-
(D) => D.name ==
|
|
2996
|
+
(D) => D.name == k.name
|
|
2987
2997
|
) ? _.filter(
|
|
2988
|
-
(D) => D.name != String(
|
|
2989
|
-
) : [..._,
|
|
2990
|
-
),
|
|
2998
|
+
(D) => D.name != String(k.name)
|
|
2999
|
+
) : [..._, k]
|
|
3000
|
+
), k.type == "both" && s("cat");
|
|
2991
3001
|
}
|
|
2992
3002
|
};
|
|
2993
|
-
|
|
3003
|
+
se(() => {
|
|
2994
3004
|
console.log("activeindicator changed to: ", v), r && typeof r == "function" && v && r({ activeIndicator: v });
|
|
2995
3005
|
}, [v]), Co(() => {
|
|
2996
3006
|
if (i && !v)
|
|
2997
3007
|
if (o && i && Array.isArray(i)) {
|
|
2998
|
-
let
|
|
2999
|
-
b([...
|
|
3008
|
+
let k = v && v.length > 0 ? [...v] : [];
|
|
3009
|
+
b([...k, ...i]), w(i[0].name);
|
|
3000
3010
|
} else
|
|
3001
|
-
|
|
3011
|
+
R(i), w(i.name);
|
|
3002
3012
|
}, []);
|
|
3003
|
-
const
|
|
3013
|
+
const w = (k) => {
|
|
3004
3014
|
const _ = e.find((D) => {
|
|
3005
3015
|
if (D.subcategories) {
|
|
3006
3016
|
let y = D.subcategories.find(
|
|
3007
|
-
(
|
|
3017
|
+
(T) => T.indicators.find((S) => S.name == k)
|
|
3008
3018
|
);
|
|
3009
3019
|
if (y)
|
|
3010
3020
|
return h(y.subcategory), y;
|
|
3011
3021
|
} else
|
|
3012
|
-
return D.indicators.some((y) => y.name ==
|
|
3022
|
+
return D.indicators.some((y) => y.name == k);
|
|
3013
3023
|
});
|
|
3014
3024
|
_ && p(_.category);
|
|
3015
3025
|
};
|
|
3016
3026
|
return /* @__PURE__ */ m.jsxs("div", { className: si.indicatorsList, children: [
|
|
3017
3027
|
/* @__PURE__ */ m.jsx("h2", { className: si.title, style: { color: n }, children: c("indicators.indicators") }),
|
|
3018
|
-
e.map((
|
|
3028
|
+
e.map((k, _) => /* @__PURE__ */ m.jsx(
|
|
3019
3029
|
gs,
|
|
3020
3030
|
{
|
|
3021
|
-
id:
|
|
3022
|
-
cat:
|
|
3023
|
-
onClickCategory:
|
|
3031
|
+
id: k.category,
|
|
3032
|
+
cat: k,
|
|
3033
|
+
onClickCategory: f,
|
|
3024
3034
|
activeCategory: u,
|
|
3025
3035
|
onClickSubCategory: x,
|
|
3026
|
-
activeSubCategory:
|
|
3036
|
+
activeSubCategory: d,
|
|
3027
3037
|
onClickIndicator: C,
|
|
3028
3038
|
activeIndicator: v,
|
|
3029
3039
|
activeColor: t,
|
|
@@ -3144,11 +3154,11 @@ const ac = "_legendContainer_atg3j_3", lc = "_closeButton_atg3j_18", cc = "_titl
|
|
|
3144
3154
|
children: [
|
|
3145
3155
|
/* @__PURE__ */ m.jsx("button", { className: Ye.closeButton, onClick: c }),
|
|
3146
3156
|
t && /* @__PURE__ */ m.jsx("div", { className: Ye.titleContainer, children: /* @__PURE__ */ m.jsx("h2", { children: t }) }),
|
|
3147
|
-
n && n.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.infoContainer, children: /* @__PURE__ */ m.jsx("ul", { children: n.map(({ title: p, value:
|
|
3157
|
+
n && n.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.infoContainer, children: /* @__PURE__ */ m.jsx("ul", { children: n.map(({ title: p, value: d }) => /* @__PURE__ */ m.jsxs("li", { children: [
|
|
3148
3158
|
/* @__PURE__ */ m.jsx("h3", { className: Ye.title, children: `${p}:` }),
|
|
3149
3159
|
/* @__PURE__ */ m.jsxs("span", { className: Ye.value, children: [
|
|
3150
3160
|
" ",
|
|
3151
|
-
|
|
3161
|
+
d
|
|
3152
3162
|
] })
|
|
3153
3163
|
] }, t)) }) }),
|
|
3154
3164
|
/* @__PURE__ */ m.jsx("h3", { className: Ye.titleLegendList, children: o ? /* @__PURE__ */ m.jsx(So, { i18nKey: o, components: { sup: /* @__PURE__ */ m.jsx("sup", {}) } }) : u("mainUse") }),
|
|
@@ -3175,12 +3185,12 @@ const ac = "_legendContainer_atg3j_3", lc = "_closeButton_atg3j_18", cc = "_titl
|
|
|
3175
3185
|
] })
|
|
3176
3186
|
] })
|
|
3177
3187
|
] }) : r && r.length > 0 && /* @__PURE__ */ m.jsx("div", { className: Ye.gridContainer, children: r.map(
|
|
3178
|
-
({ title: p, color:
|
|
3188
|
+
({ title: p, color: d }) => /* @__PURE__ */ m.jsxs("div", { className: Ye.elementLegendContainer, children: [
|
|
3179
3189
|
/* @__PURE__ */ m.jsx(
|
|
3180
3190
|
"div",
|
|
3181
3191
|
{
|
|
3182
3192
|
className: Ye.colorDot,
|
|
3183
|
-
style: { backgroundColor:
|
|
3193
|
+
style: { backgroundColor: d }
|
|
3184
3194
|
}
|
|
3185
3195
|
),
|
|
3186
3196
|
/* @__PURE__ */ m.jsxs("div", { className: Ye.titleLegendElement, children: [
|
|
@@ -3713,7 +3723,7 @@ function Pc(e) {
|
|
|
3713
3723
|
}
|
|
3714
3724
|
return Array.from(t);
|
|
3715
3725
|
}
|
|
3716
|
-
const Lc = typeof document < "u" ? Co :
|
|
3726
|
+
const Lc = typeof document < "u" ? Co : se, Ac = [
|
|
3717
3727
|
"baseApiUrl",
|
|
3718
3728
|
"maxParallelImageRequests",
|
|
3719
3729
|
"workerClass",
|
|
@@ -3731,9 +3741,9 @@ function Mc(e, t) {
|
|
|
3731
3741
|
const vn = J.createContext(null);
|
|
3732
3742
|
function Nc(e, t) {
|
|
3733
3743
|
const n = dt(Sc), [r, o] = We(null), i = De(), { current: s } = De({ mapLib: null, map: null });
|
|
3734
|
-
|
|
3744
|
+
se(() => {
|
|
3735
3745
|
const u = e.mapLib;
|
|
3736
|
-
let p = !0,
|
|
3746
|
+
let p = !0, d;
|
|
3737
3747
|
return Promise.resolve(u || import("mapbox-gl")).then((h) => {
|
|
3738
3748
|
if (!p)
|
|
3739
3749
|
return;
|
|
@@ -3742,7 +3752,7 @@ function Nc(e, t) {
|
|
|
3742
3752
|
const v = "Map" in h ? h : h.default;
|
|
3743
3753
|
if (!v.Map)
|
|
3744
3754
|
throw new Error("Invalid mapLib");
|
|
3745
|
-
Mc(v, e), e.reuseMaps && (
|
|
3755
|
+
Mc(v, e), e.reuseMaps && (d = hn.reuse(e, i.current)), d || (d = new hn(v.Map, e, i.current)), s.map = jc(d), s.mapLib = v, o(d), n == null || n.onMapMount(s.map, e.id);
|
|
3746
3756
|
}).catch((h) => {
|
|
3747
3757
|
const { onError: v } = e;
|
|
3748
3758
|
v ? v({
|
|
@@ -3751,7 +3761,7 @@ function Nc(e, t) {
|
|
|
3751
3761
|
error: h
|
|
3752
3762
|
}) : console.error(h);
|
|
3753
3763
|
}), () => {
|
|
3754
|
-
p = !1,
|
|
3764
|
+
p = !1, d && (n == null || n.onMapUnmount(e.id), e.reuseMaps ? d.recycle() : d.destroy());
|
|
3755
3765
|
};
|
|
3756
3766
|
}, []), Lc(() => {
|
|
3757
3767
|
r && r.setProps(e);
|
|
@@ -3796,44 +3806,44 @@ function mi(e) {
|
|
|
3796
3806
|
Ge(yn((e, t) => {
|
|
3797
3807
|
const { map: n, mapLib: r } = dt(vn), o = De({ props: e }), i = Ue(() => {
|
|
3798
3808
|
let C = !1;
|
|
3799
|
-
J.Children.forEach(e.children, (
|
|
3800
|
-
|
|
3809
|
+
J.Children.forEach(e.children, (k) => {
|
|
3810
|
+
k && (C = !0);
|
|
3801
3811
|
});
|
|
3802
|
-
const
|
|
3812
|
+
const R = {
|
|
3803
3813
|
...e,
|
|
3804
3814
|
element: C ? document.createElement("div") : null
|
|
3805
|
-
},
|
|
3806
|
-
return
|
|
3815
|
+
}, w = new r.Marker(R);
|
|
3816
|
+
return w.setLngLat([e.longitude, e.latitude]), w.getElement().addEventListener("click", (k) => {
|
|
3807
3817
|
var _, D;
|
|
3808
3818
|
(D = (_ = o.current.props).onClick) == null || D.call(_, {
|
|
3809
3819
|
type: "click",
|
|
3810
|
-
target:
|
|
3811
|
-
originalEvent:
|
|
3820
|
+
target: w,
|
|
3821
|
+
originalEvent: k
|
|
3812
3822
|
});
|
|
3813
|
-
}),
|
|
3823
|
+
}), w.on("dragstart", (k) => {
|
|
3814
3824
|
var D, y;
|
|
3815
|
-
const _ =
|
|
3825
|
+
const _ = k;
|
|
3816
3826
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragStart) == null || y.call(D, _);
|
|
3817
|
-
}),
|
|
3827
|
+
}), w.on("drag", (k) => {
|
|
3818
3828
|
var D, y;
|
|
3819
|
-
const _ =
|
|
3829
|
+
const _ = k;
|
|
3820
3830
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDrag) == null || y.call(D, _);
|
|
3821
|
-
}),
|
|
3831
|
+
}), w.on("dragend", (k) => {
|
|
3822
3832
|
var D, y;
|
|
3823
|
-
const _ =
|
|
3833
|
+
const _ = k;
|
|
3824
3834
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragEnd) == null || y.call(D, _);
|
|
3825
|
-
}),
|
|
3835
|
+
}), w;
|
|
3826
3836
|
}, []);
|
|
3827
|
-
|
|
3837
|
+
se(() => (i.addTo(n.getMap()), () => {
|
|
3828
3838
|
i.remove();
|
|
3829
3839
|
}), []);
|
|
3830
|
-
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup:
|
|
3831
|
-
|
|
3840
|
+
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup: d = null, rotation: h = 0, rotationAlignment: v = "auto", pitchAlignment: b = "auto" } = e;
|
|
3841
|
+
se(() => {
|
|
3832
3842
|
qt(i.getElement(), u);
|
|
3833
3843
|
}, [u]), Lt(t, () => i, []);
|
|
3834
|
-
const
|
|
3835
|
-
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !wc(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !==
|
|
3836
|
-
const x = ys(
|
|
3844
|
+
const f = o.current.props;
|
|
3845
|
+
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !wc(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !== d && i.setPopup(d);
|
|
3846
|
+
const x = ys(f.className, e.className);
|
|
3837
3847
|
if (x)
|
|
3838
3848
|
for (const C of x)
|
|
3839
3849
|
i.toggleClassName(C);
|
|
@@ -3843,11 +3853,11 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3843
3853
|
const { map: n, mapLib: r } = dt(vn), o = Ue(() => document.createElement("div"), []), i = De({ props: e }), s = Ue(() => {
|
|
3844
3854
|
const l = { ...e }, c = new r.Popup(l);
|
|
3845
3855
|
return c.setLngLat([e.longitude, e.latitude]), c.once("open", (u) => {
|
|
3846
|
-
var p,
|
|
3847
|
-
(
|
|
3856
|
+
var p, d;
|
|
3857
|
+
(d = (p = i.current.props).onOpen) == null || d.call(p, u);
|
|
3848
3858
|
}), c;
|
|
3849
3859
|
}, []);
|
|
3850
|
-
if (
|
|
3860
|
+
if (se(() => {
|
|
3851
3861
|
const l = (c) => {
|
|
3852
3862
|
var u, p;
|
|
3853
3863
|
(p = (u = i.current.props).onClose) == null || p.call(u, c);
|
|
@@ -3855,7 +3865,7 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3855
3865
|
return s.on("close", l), s.setDOMContent(o).addTo(n.getMap()), () => {
|
|
3856
3866
|
s.off("close", l), s.isOpen() && s.remove();
|
|
3857
3867
|
};
|
|
3858
|
-
}, []),
|
|
3868
|
+
}, []), se(() => {
|
|
3859
3869
|
qt(s.getElement(), e.style);
|
|
3860
3870
|
}, [e.style]), Lt(t, () => s, []), s.isOpen()) {
|
|
3861
3871
|
const l = i.current.props;
|
|
@@ -3870,7 +3880,7 @@ const Fc = Ge(yn((e, t) => {
|
|
|
3870
3880
|
}));
|
|
3871
3881
|
function Un(e, t, n, r) {
|
|
3872
3882
|
const o = dt(vn), i = Ue(() => e(o), []);
|
|
3873
|
-
return
|
|
3883
|
+
return se(() => {
|
|
3874
3884
|
const s = t, l = typeof t == "function" ? t : null, { map: c } = o;
|
|
3875
3885
|
return c.hasControl(i) || c.addControl(i, s == null ? void 0 : s.position), () => {
|
|
3876
3886
|
l && l(o), c.hasControl(i) && c.removeControl(i);
|
|
@@ -3881,7 +3891,7 @@ function zc(e) {
|
|
|
3881
3891
|
const t = Un(({ mapLib: n }) => new n.AttributionControl(e), {
|
|
3882
3892
|
position: e.position
|
|
3883
3893
|
});
|
|
3884
|
-
return
|
|
3894
|
+
return se(() => {
|
|
3885
3895
|
qt(t._container, e.style);
|
|
3886
3896
|
}, [e.style]), null;
|
|
3887
3897
|
}
|
|
@@ -3890,7 +3900,7 @@ function Bc(e) {
|
|
|
3890
3900
|
const t = Un(({ mapLib: n }) => new n.FullscreenControl({
|
|
3891
3901
|
container: e.containerId && document.getElementById(e.containerId)
|
|
3892
3902
|
}), { position: e.position });
|
|
3893
|
-
return
|
|
3903
|
+
return se(() => {
|
|
3894
3904
|
qt(t._controlContainer, e.style);
|
|
3895
3905
|
}, [e.style]), null;
|
|
3896
3906
|
}
|
|
@@ -3917,7 +3927,7 @@ function Uc(e, t) {
|
|
|
3917
3927
|
(u = (c = n.current.props).onTrackUserLocationEnd) == null || u.call(c, l);
|
|
3918
3928
|
}), i;
|
|
3919
3929
|
}, { position: e.position });
|
|
3920
|
-
return n.current.props = e, Lt(t, () => r, []),
|
|
3930
|
+
return n.current.props = e, Lt(t, () => r, []), se(() => {
|
|
3921
3931
|
qt(r._container, e.style);
|
|
3922
3932
|
}, [e.style]), null;
|
|
3923
3933
|
}
|
|
@@ -3926,7 +3936,7 @@ function Vc(e) {
|
|
|
3926
3936
|
const t = Un(({ mapLib: n }) => new n.NavigationControl(e), {
|
|
3927
3937
|
position: e.position
|
|
3928
3938
|
});
|
|
3929
|
-
return
|
|
3939
|
+
return se(() => {
|
|
3930
3940
|
qt(t._container, e.style);
|
|
3931
3941
|
}, [e.style]), null;
|
|
3932
3942
|
}
|
|
@@ -3937,7 +3947,7 @@ function Wc(e) {
|
|
|
3937
3947
|
}), n = De(e), r = n.current;
|
|
3938
3948
|
n.current = e;
|
|
3939
3949
|
const { style: o } = e;
|
|
3940
|
-
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit),
|
|
3950
|
+
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit), se(() => {
|
|
3941
3951
|
qt(t._container, o);
|
|
3942
3952
|
}, [o]), null;
|
|
3943
3953
|
}
|
|
@@ -3969,7 +3979,7 @@ function Yc(e, t, n) {
|
|
|
3969
3979
|
}
|
|
3970
3980
|
function Zc(e) {
|
|
3971
3981
|
const t = dt(vn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-source-${Hc++}`, []);
|
|
3972
|
-
|
|
3982
|
+
se(() => {
|
|
3973
3983
|
if (t) {
|
|
3974
3984
|
const s = () => setTimeout(() => r((l) => l + 1), 0);
|
|
3975
3985
|
return t.on("styledata", s), s(), () => {
|
|
@@ -3995,17 +4005,17 @@ function Gc(e, t, n, r) {
|
|
|
3995
4005
|
const { layout: o = {}, paint: i = {}, filter: s, minzoom: l, maxzoom: c, beforeId: u } = n;
|
|
3996
4006
|
if (u !== r.beforeId && e.moveLayer(t, u), o !== r.layout) {
|
|
3997
4007
|
const p = r.layout || {};
|
|
3998
|
-
for (const
|
|
3999
|
-
rt(o[
|
|
4000
|
-
for (const
|
|
4001
|
-
o.hasOwnProperty(
|
|
4008
|
+
for (const d in o)
|
|
4009
|
+
rt(o[d], p[d]) || e.setLayoutProperty(t, d, o[d]);
|
|
4010
|
+
for (const d in p)
|
|
4011
|
+
o.hasOwnProperty(d) || e.setLayoutProperty(t, d, void 0);
|
|
4002
4012
|
}
|
|
4003
4013
|
if (i !== r.paint) {
|
|
4004
4014
|
const p = r.paint || {};
|
|
4005
|
-
for (const
|
|
4006
|
-
rt(i[
|
|
4007
|
-
for (const
|
|
4008
|
-
i.hasOwnProperty(
|
|
4015
|
+
for (const d in i)
|
|
4016
|
+
rt(i[d], p[d]) || e.setPaintProperty(t, d, i[d]);
|
|
4017
|
+
for (const d in p)
|
|
4018
|
+
i.hasOwnProperty(d) || e.setPaintProperty(t, d, void 0);
|
|
4009
4019
|
}
|
|
4010
4020
|
rt(s, r.filter) || e.setFilter(t, s), (l !== r.minzoom || c !== r.maxzoom) && e.setLayerZoomRange(t, l, c);
|
|
4011
4021
|
}
|
|
@@ -4018,7 +4028,7 @@ function Jc(e, t, n) {
|
|
|
4018
4028
|
let Xc = 0;
|
|
4019
4029
|
function Qc(e) {
|
|
4020
4030
|
const t = dt(vn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-layer-${Xc++}`, []);
|
|
4021
|
-
if (
|
|
4031
|
+
if (se(() => {
|
|
4022
4032
|
if (t) {
|
|
4023
4033
|
const s = () => r((l) => l + 1);
|
|
4024
4034
|
return t.on("styledata", s), s(), () => {
|
|
@@ -4052,19 +4062,19 @@ const nu = ({
|
|
|
4052
4062
|
sources: u = [],
|
|
4053
4063
|
layers: p = []
|
|
4054
4064
|
}) => {
|
|
4055
|
-
const
|
|
4056
|
-
return
|
|
4057
|
-
if (
|
|
4058
|
-
const
|
|
4059
|
-
|
|
4060
|
-
C.type == "symbol" && C.id != "professionals" && (b ?
|
|
4065
|
+
const d = De(), [h, v] = We(null), b = co((f) => f.mapState.showTexts);
|
|
4066
|
+
return se(() => {
|
|
4067
|
+
if (d.current) {
|
|
4068
|
+
const f = d.current.getMap();
|
|
4069
|
+
f.getStyle().layers.map((C) => {
|
|
4070
|
+
C.type == "symbol" && C.id != "professionals" && (b ? f.setLayoutProperty(C.id, "visibility", "visible") : f.setLayoutProperty(C.id, "visibility", "none"));
|
|
4061
4071
|
});
|
|
4062
4072
|
}
|
|
4063
4073
|
}, [b]), /* @__PURE__ */ m.jsx("div", { className: `${tu.mapContainer}`, style: i, children: /* @__PURE__ */ m.jsxs(
|
|
4064
4074
|
Ic,
|
|
4065
4075
|
{
|
|
4066
4076
|
initialViewState: e,
|
|
4067
|
-
ref:
|
|
4077
|
+
ref: d,
|
|
4068
4078
|
hash: !1,
|
|
4069
4079
|
maxZoom: t,
|
|
4070
4080
|
minZoom: n,
|
|
@@ -4072,18 +4082,18 @@ const nu = ({
|
|
|
4072
4082
|
onClick: s,
|
|
4073
4083
|
interactiveLayerIds: l,
|
|
4074
4084
|
children: [
|
|
4075
|
-
u.length && u.map((
|
|
4085
|
+
u.length && u.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
4076
4086
|
Zc,
|
|
4077
4087
|
{
|
|
4078
|
-
...
|
|
4079
|
-
children: p.length && p.map((C,
|
|
4080
|
-
if (C.sourceId ==
|
|
4088
|
+
...f,
|
|
4089
|
+
children: p.length && p.map((C, R) => {
|
|
4090
|
+
if (C.sourceId == f.id) return /* @__PURE__ */ m.jsx(
|
|
4081
4091
|
Qc,
|
|
4082
4092
|
{
|
|
4083
4093
|
...C.layer,
|
|
4084
4094
|
beforeId: o
|
|
4085
4095
|
},
|
|
4086
|
-
|
|
4096
|
+
R
|
|
4087
4097
|
);
|
|
4088
4098
|
})
|
|
4089
4099
|
},
|
|
@@ -4244,8 +4254,8 @@ var An = function(e, t, n) {
|
|
|
4244
4254
|
var c = 15 - t;
|
|
4245
4255
|
for (o = 0; o < r; ++o)
|
|
4246
4256
|
if (e[o])
|
|
4247
|
-
for (var u = o << 4 | e[o], p = t - e[o],
|
|
4248
|
-
l[ho[
|
|
4257
|
+
for (var u = o << 4 | e[o], p = t - e[o], d = s[e[o] - 1]++ << p, h = d | (1 << p) - 1; d <= h; ++d)
|
|
4258
|
+
l[ho[d] >> c] = u;
|
|
4249
4259
|
} else
|
|
4250
4260
|
for (l = new fn(r), o = 0; o < r; ++o)
|
|
4251
4261
|
e[o] && (l[o] = ho[s[e[o] - 1]++] >> 15 - e[o]);
|
|
@@ -4309,91 +4319,91 @@ var lu = /* @__PURE__ */ An(Vn, 9, 1), cu = /* @__PURE__ */ An(Ss, 5, 1), Qr = f
|
|
|
4309
4319
|
var _e = new ot(Math.max(j * 2, be));
|
|
4310
4320
|
_e.set(n), n = _e;
|
|
4311
4321
|
}
|
|
4312
|
-
}, p = t.f || 0,
|
|
4322
|
+
}, p = t.f || 0, d = t.p || 0, h = t.b || 0, v = t.l, b = t.d, f = t.m, x = t.n, C = o * 8;
|
|
4313
4323
|
do {
|
|
4314
4324
|
if (!v) {
|
|
4315
|
-
p = ht(e,
|
|
4316
|
-
var
|
|
4317
|
-
if (
|
|
4318
|
-
if (
|
|
4319
|
-
v = lu, b = cu,
|
|
4320
|
-
else if (
|
|
4321
|
-
var D = ht(e,
|
|
4322
|
-
|
|
4323
|
-
for (var S = new ot(
|
|
4324
|
-
$[ou[
|
|
4325
|
-
|
|
4326
|
-
for (var
|
|
4327
|
-
var
|
|
4328
|
-
|
|
4329
|
-
var
|
|
4330
|
-
if (
|
|
4331
|
-
S[
|
|
4325
|
+
p = ht(e, d, 1);
|
|
4326
|
+
var R = ht(e, d + 1, 3);
|
|
4327
|
+
if (d += 3, R)
|
|
4328
|
+
if (R == 1)
|
|
4329
|
+
v = lu, b = cu, f = 9, x = 5;
|
|
4330
|
+
else if (R == 2) {
|
|
4331
|
+
var D = ht(e, d, 31) + 257, y = ht(e, d + 10, 15) + 4, T = D + ht(e, d + 5, 31) + 1;
|
|
4332
|
+
d += 14;
|
|
4333
|
+
for (var S = new ot(T), $ = new ot(19), N = 0; N < y; ++N)
|
|
4334
|
+
$[ou[N]] = ht(e, d + N * 3, 7);
|
|
4335
|
+
d += y * 3;
|
|
4336
|
+
for (var X = Qr($), B = (1 << X) - 1, Y = An($, X, 1), N = 0; N < T; ) {
|
|
4337
|
+
var V = Y[ht(e, d, B)];
|
|
4338
|
+
d += V & 15;
|
|
4339
|
+
var w = V >> 4;
|
|
4340
|
+
if (w < 16)
|
|
4341
|
+
S[N++] = w;
|
|
4332
4342
|
else {
|
|
4333
|
-
var
|
|
4334
|
-
for (
|
|
4335
|
-
S[
|
|
4343
|
+
var ie = 0, re = 0;
|
|
4344
|
+
for (w == 16 ? (re = 3 + ht(e, d, 3), d += 2, ie = S[N - 1]) : w == 17 ? (re = 3 + ht(e, d, 7), d += 3) : w == 18 && (re = 11 + ht(e, d, 127), d += 7); re--; )
|
|
4345
|
+
S[N++] = ie;
|
|
4336
4346
|
}
|
|
4337
4347
|
}
|
|
4338
4348
|
var Ee = S.subarray(0, D), je = S.subarray(D);
|
|
4339
|
-
|
|
4349
|
+
f = Qr(Ee), x = Qr(je), v = An(Ee, f, 1), b = An(je, x, 1);
|
|
4340
4350
|
} else
|
|
4341
4351
|
nt(1);
|
|
4342
4352
|
else {
|
|
4343
|
-
var
|
|
4353
|
+
var w = uu(d) + 4, k = e[w - 4] | e[w - 3] << 8, _ = w + k;
|
|
4344
4354
|
if (_ > o) {
|
|
4345
4355
|
c && nt(0);
|
|
4346
4356
|
break;
|
|
4347
4357
|
}
|
|
4348
|
-
l && u(h +
|
|
4358
|
+
l && u(h + k), n.set(e.subarray(w, _), h), t.b = h += k, t.p = d = _ * 8, t.f = p;
|
|
4349
4359
|
continue;
|
|
4350
4360
|
}
|
|
4351
|
-
if (
|
|
4361
|
+
if (d > C) {
|
|
4352
4362
|
c && nt(0);
|
|
4353
4363
|
break;
|
|
4354
4364
|
}
|
|
4355
4365
|
}
|
|
4356
4366
|
l && u(h + 131072);
|
|
4357
|
-
for (var O = (1 <<
|
|
4358
|
-
var
|
|
4359
|
-
if (
|
|
4367
|
+
for (var O = (1 << f) - 1, A = (1 << x) - 1, Q = d; ; Q = d) {
|
|
4368
|
+
var ie = v[eo(e, d) & O], q = ie >> 4;
|
|
4369
|
+
if (d += ie & 15, d > C) {
|
|
4360
4370
|
c && nt(0);
|
|
4361
4371
|
break;
|
|
4362
4372
|
}
|
|
4363
|
-
if (
|
|
4364
|
-
n[h++] =
|
|
4365
|
-
else if (
|
|
4366
|
-
|
|
4373
|
+
if (ie || nt(2), q < 256)
|
|
4374
|
+
n[h++] = q;
|
|
4375
|
+
else if (q == 256) {
|
|
4376
|
+
Q = d, v = null;
|
|
4367
4377
|
break;
|
|
4368
4378
|
} else {
|
|
4369
|
-
var F =
|
|
4370
|
-
if (
|
|
4371
|
-
var
|
|
4372
|
-
F = ht(e,
|
|
4379
|
+
var F = q - 254;
|
|
4380
|
+
if (q > 264) {
|
|
4381
|
+
var N = q - 257, ee = vs[N];
|
|
4382
|
+
F = ht(e, d, (1 << ee) - 1) + Cs[N], d += ee;
|
|
4373
4383
|
}
|
|
4374
|
-
var
|
|
4375
|
-
|
|
4376
|
-
var je = au[
|
|
4377
|
-
if (
|
|
4378
|
-
var
|
|
4379
|
-
je += eo(e,
|
|
4384
|
+
var K = b[eo(e, d) & A], H = K >> 4;
|
|
4385
|
+
K || nt(3), d += K & 15;
|
|
4386
|
+
var je = au[H];
|
|
4387
|
+
if (H > 3) {
|
|
4388
|
+
var ee = bs[H];
|
|
4389
|
+
je += eo(e, d) & (1 << ee) - 1, d += ee;
|
|
4380
4390
|
}
|
|
4381
|
-
if (
|
|
4391
|
+
if (d > C) {
|
|
4382
4392
|
c && nt(0);
|
|
4383
4393
|
break;
|
|
4384
4394
|
}
|
|
4385
4395
|
l && u(h + 131072);
|
|
4386
4396
|
var U = h + F;
|
|
4387
4397
|
if (h < je) {
|
|
4388
|
-
var Z = i - je,
|
|
4389
|
-
for (Z + h < 0 && nt(3); h <
|
|
4398
|
+
var Z = i - je, ne = Math.min(je, U);
|
|
4399
|
+
for (Z + h < 0 && nt(3); h < ne; ++h)
|
|
4390
4400
|
n[h] = r[Z + h];
|
|
4391
4401
|
}
|
|
4392
4402
|
for (; h < U; ++h)
|
|
4393
4403
|
n[h] = n[h - je];
|
|
4394
4404
|
}
|
|
4395
4405
|
}
|
|
4396
|
-
t.l = v, t.p =
|
|
4406
|
+
t.l = v, t.p = Q, t.b = h, t.f = p, v && (p = 1, t.m = f, t.d = b, t.n = x);
|
|
4397
4407
|
} while (!p);
|
|
4398
4408
|
return h != n.length && s ? fu(n, 0, h) : n.subarray(0, h);
|
|
4399
4409
|
}, pu = /* @__PURE__ */ new ot(0), hu = function(e) {
|
|
@@ -4452,7 +4462,7 @@ Se((e, t) => {
|
|
|
4452
4462
|
p.tileType === 1 ? console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details.") : p.tileType === 2 ? r = "image/png" : p.tileType === 3 ? r = "image/jpeg" : p.tileType === 4 ? r = "image/webp" : p.tileType === 5 && (r = "image/avif");
|
|
4453
4463
|
}), n = !0), e.getZxy(i.z, i.x, i.y, u).then((p) => {
|
|
4454
4464
|
if (p) {
|
|
4455
|
-
let
|
|
4465
|
+
let d = new Blob([p.data], { type: r }), h = window.URL.createObjectURL(d);
|
|
4456
4466
|
l.src = h, l.cancel = void 0, s(void 0, l);
|
|
4457
4467
|
}
|
|
4458
4468
|
}).catch((p) => {
|
|
@@ -4474,16 +4484,16 @@ var wu = Se((e) => (t, n) => {
|
|
|
4474
4484
|
if (n.type === "json") {
|
|
4475
4485
|
let v = n.url.substr(10), b = this.tiles.get(v);
|
|
4476
4486
|
if (b || (b = new gi(v), this.tiles.set(v, b)), this.metadata) return { data: yield b.getTileJson(n.url) };
|
|
4477
|
-
let
|
|
4478
|
-
return (
|
|
4487
|
+
let f = yield b.getHeader();
|
|
4488
|
+
return (f.minLon >= f.maxLon || f.minLat >= f.maxLat) && console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`), { data: { tiles: [`${n.url}/{z}/{x}/{y}`], minzoom: f.minZoom, maxzoom: f.maxZoom, bounds: [f.minLon, f.minLat, f.maxLon, f.maxLat] } };
|
|
4479
4489
|
}
|
|
4480
4490
|
let o = new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/), i = n.url.match(o);
|
|
4481
4491
|
if (!i) throw new Error("Invalid PMTiles protocol URL");
|
|
4482
4492
|
let s = i[1], l = this.tiles.get(s);
|
|
4483
4493
|
l || (l = new gi(s), this.tiles.set(s, l));
|
|
4484
|
-
let c = i[2], u = i[3], p = i[4],
|
|
4494
|
+
let c = i[2], u = i[3], p = i[4], d = yield l.getHeader(), h = yield l == null ? void 0 : l.getZxy(+c, +u, +p, r.signal);
|
|
4485
4495
|
if (h) return { data: new Uint8Array(h.data), cacheControl: h.cacheControl, expires: h.expires };
|
|
4486
|
-
if (
|
|
4496
|
+
if (d.tileType === 1) {
|
|
4487
4497
|
if (this.errorOnMissingTile) throw new Error("Tile not found.");
|
|
4488
4498
|
return { data: new Uint8Array() };
|
|
4489
4499
|
}
|
|
@@ -4625,8 +4635,8 @@ var js = class {
|
|
|
4625
4635
|
let p = u.headers.get("Etag");
|
|
4626
4636
|
if (p != null && p.startsWith("W/") && (p = null), u.status === 416 || o && p && p !== o) throw this.mustReload = !0, new mo(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);
|
|
4627
4637
|
if (u.status >= 300) throw new Error(`Bad response code: ${u.status}`);
|
|
4628
|
-
let
|
|
4629
|
-
if (u.status === 200 && (!
|
|
4638
|
+
let d = u.headers.get("Content-Length");
|
|
4639
|
+
if (u.status === 200 && (!d || +d > n)) throw i && i.abort(), new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");
|
|
4630
4640
|
return { data: yield u.arrayBuffer(), etag: p || void 0, cacheControl: u.headers.get("Cache-Control") || void 0, expires: u.headers.get("Expires") || void 0 };
|
|
4631
4641
|
});
|
|
4632
4642
|
}
|
|
@@ -4787,13 +4797,13 @@ var Au = As, Ms = class {
|
|
|
4787
4797
|
if (t < s.minZoom || t > s.maxZoom) return;
|
|
4788
4798
|
let l = s.rootDirectoryOffset, c = s.rootDirectoryLength;
|
|
4789
4799
|
for (let u = 0; u <= 3; u++) {
|
|
4790
|
-
let p = yield this.cache.getDirectory(this.source, l, c, s),
|
|
4791
|
-
if (
|
|
4792
|
-
if (
|
|
4793
|
-
let h = yield this.source.getBytes(s.tileDataOffset +
|
|
4800
|
+
let p = yield this.cache.getDirectory(this.source, l, c, s), d = $s(p, i);
|
|
4801
|
+
if (d) {
|
|
4802
|
+
if (d.runLength > 0) {
|
|
4803
|
+
let h = yield this.source.getBytes(s.tileDataOffset + d.offset, d.length, o, s.etag);
|
|
4794
4804
|
return { data: yield this.decompress(h.data, s.tileCompression), cacheControl: h.cacheControl, expires: h.expires };
|
|
4795
4805
|
}
|
|
4796
|
-
l = s.leafDirectoryOffset +
|
|
4806
|
+
l = s.leafDirectoryOffset + d.offset, c = d.length;
|
|
4797
4807
|
} else return;
|
|
4798
4808
|
}
|
|
4799
4809
|
throw new Error("Maximum directory depth exceeded");
|
|
@@ -5193,7 +5203,7 @@ function Uu(e) {
|
|
|
5193
5203
|
}
|
|
5194
5204
|
return Array.from(t);
|
|
5195
5205
|
}
|
|
5196
|
-
const Vu = typeof document < "u" ? Co :
|
|
5206
|
+
const Vu = typeof document < "u" ? Co : se;
|
|
5197
5207
|
function qu(e, t) {
|
|
5198
5208
|
const { RTLTextPlugin: n, maxParallelImageRequests: r, workerCount: o, workerUrl: i } = t;
|
|
5199
5209
|
if (n && e.getRTLTextPluginStatus && e.getRTLTextPluginStatus() === "unavailable") {
|
|
@@ -5207,9 +5217,9 @@ function qu(e, t) {
|
|
|
5207
5217
|
const bn = J.createContext(null);
|
|
5208
5218
|
function Wu(e, t) {
|
|
5209
5219
|
const n = dt(Mu), [r, o] = We(null), i = De(), { current: s } = De({ mapLib: null, map: null });
|
|
5210
|
-
|
|
5220
|
+
se(() => {
|
|
5211
5221
|
const u = e.mapLib;
|
|
5212
|
-
let p = !0,
|
|
5222
|
+
let p = !0, d;
|
|
5213
5223
|
return Promise.resolve(u || import("maplibre-gl")).then((h) => {
|
|
5214
5224
|
if (!p)
|
|
5215
5225
|
return;
|
|
@@ -5218,7 +5228,7 @@ function Wu(e, t) {
|
|
|
5218
5228
|
const v = "Map" in h ? h : h.default;
|
|
5219
5229
|
if (!v.Map)
|
|
5220
5230
|
throw new Error("Invalid mapLib");
|
|
5221
|
-
qu(v, e), e.reuseMaps && (
|
|
5231
|
+
qu(v, e), e.reuseMaps && (d = mn.reuse(e, i.current)), d || (d = new mn(v.Map, e, i.current)), s.map = Bu(d), s.mapLib = v, o(d), n == null || n.onMapMount(s.map, e.id);
|
|
5222
5232
|
}).catch((h) => {
|
|
5223
5233
|
const { onError: v } = e;
|
|
5224
5234
|
v ? v({
|
|
@@ -5228,7 +5238,7 @@ function Wu(e, t) {
|
|
|
5228
5238
|
error: h
|
|
5229
5239
|
}) : console.error(h);
|
|
5230
5240
|
}), () => {
|
|
5231
|
-
p = !1,
|
|
5241
|
+
p = !1, d && (n == null || n.onMapUnmount(e.id), e.reuseMaps ? d.recycle() : d.destroy());
|
|
5232
5242
|
};
|
|
5233
5243
|
}, []), Vu(() => {
|
|
5234
5244
|
r && r.setProps(e);
|
|
@@ -5273,44 +5283,44 @@ function wi(e) {
|
|
|
5273
5283
|
Ge(yn((e, t) => {
|
|
5274
5284
|
const { map: n, mapLib: r } = dt(bn), o = De({ props: e }), i = Ue(() => {
|
|
5275
5285
|
let C = !1;
|
|
5276
|
-
J.Children.forEach(e.children, (
|
|
5277
|
-
|
|
5286
|
+
J.Children.forEach(e.children, (k) => {
|
|
5287
|
+
k && (C = !0);
|
|
5278
5288
|
});
|
|
5279
|
-
const
|
|
5289
|
+
const R = {
|
|
5280
5290
|
...e,
|
|
5281
5291
|
element: C ? document.createElement("div") : void 0
|
|
5282
|
-
},
|
|
5283
|
-
return
|
|
5292
|
+
}, w = new r.Marker(R);
|
|
5293
|
+
return w.setLngLat([e.longitude, e.latitude]), w.getElement().addEventListener("click", (k) => {
|
|
5284
5294
|
var _, D;
|
|
5285
5295
|
(D = (_ = o.current.props).onClick) == null || D.call(_, {
|
|
5286
5296
|
type: "click",
|
|
5287
|
-
target:
|
|
5288
|
-
originalEvent:
|
|
5297
|
+
target: w,
|
|
5298
|
+
originalEvent: k
|
|
5289
5299
|
});
|
|
5290
|
-
}),
|
|
5300
|
+
}), w.on("dragstart", (k) => {
|
|
5291
5301
|
var D, y;
|
|
5292
|
-
const _ =
|
|
5302
|
+
const _ = k;
|
|
5293
5303
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragStart) == null || y.call(D, _);
|
|
5294
|
-
}),
|
|
5304
|
+
}), w.on("drag", (k) => {
|
|
5295
5305
|
var D, y;
|
|
5296
|
-
const _ =
|
|
5306
|
+
const _ = k;
|
|
5297
5307
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDrag) == null || y.call(D, _);
|
|
5298
|
-
}),
|
|
5308
|
+
}), w.on("dragend", (k) => {
|
|
5299
5309
|
var D, y;
|
|
5300
|
-
const _ =
|
|
5310
|
+
const _ = k;
|
|
5301
5311
|
_.lngLat = i.getLngLat(), (y = (D = o.current.props).onDragEnd) == null || y.call(D, _);
|
|
5302
|
-
}),
|
|
5312
|
+
}), w;
|
|
5303
5313
|
}, []);
|
|
5304
|
-
|
|
5314
|
+
se(() => (i.addTo(n.getMap()), () => {
|
|
5305
5315
|
i.remove();
|
|
5306
5316
|
}), []);
|
|
5307
|
-
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup:
|
|
5308
|
-
|
|
5317
|
+
const { longitude: s, latitude: l, offset: c, style: u, draggable: p = !1, popup: d = null, rotation: h = 0, rotationAlignment: v = "auto", pitchAlignment: b = "auto" } = e;
|
|
5318
|
+
se(() => {
|
|
5309
5319
|
wt(i.getElement(), u);
|
|
5310
5320
|
}, [u]), Lt(t, () => i, []);
|
|
5311
|
-
const
|
|
5312
|
-
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !Nu(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !==
|
|
5313
|
-
const x = Ns(
|
|
5321
|
+
const f = o.current.props;
|
|
5322
|
+
(i.getLngLat().lng !== s || i.getLngLat().lat !== l) && i.setLngLat([s, l]), c && !Nu(i.getOffset(), c) && i.setOffset(c), i.isDraggable() !== p && i.setDraggable(p), i.getRotation() !== h && i.setRotation(h), i.getRotationAlignment() !== v && i.setRotationAlignment(v), i.getPitchAlignment() !== b && i.setPitchAlignment(b), i.getPopup() !== d && i.setPopup(d);
|
|
5323
|
+
const x = Ns(f.className, e.className);
|
|
5314
5324
|
if (x)
|
|
5315
5325
|
for (const C of x)
|
|
5316
5326
|
i.toggleClassName(C);
|
|
@@ -5320,11 +5330,11 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5320
5330
|
const { map: n, mapLib: r } = dt(bn), o = Ue(() => document.createElement("div"), []), i = De({ props: e }), s = Ue(() => {
|
|
5321
5331
|
const l = { ...e }, c = new r.Popup(l);
|
|
5322
5332
|
return c.setLngLat([e.longitude, e.latitude]), c.once("open", (u) => {
|
|
5323
|
-
var p,
|
|
5324
|
-
(
|
|
5333
|
+
var p, d;
|
|
5334
|
+
(d = (p = i.current.props).onOpen) == null || d.call(p, u);
|
|
5325
5335
|
}), c;
|
|
5326
5336
|
}, []);
|
|
5327
|
-
if (
|
|
5337
|
+
if (se(() => {
|
|
5328
5338
|
const l = (c) => {
|
|
5329
5339
|
var u, p;
|
|
5330
5340
|
(p = (u = i.current.props).onClose) == null || p.call(u, c);
|
|
@@ -5332,7 +5342,7 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5332
5342
|
return s.on("close", l), s.setDOMContent(o).addTo(n.getMap()), () => {
|
|
5333
5343
|
s.off("close", l), s.isOpen() && s.remove();
|
|
5334
5344
|
};
|
|
5335
|
-
}, []),
|
|
5345
|
+
}, []), se(() => {
|
|
5336
5346
|
wt(s.getElement(), e.style);
|
|
5337
5347
|
}, [e.style]), Lt(t, () => s, []), s.isOpen()) {
|
|
5338
5348
|
const l = i.current.props;
|
|
@@ -5347,7 +5357,7 @@ const Yu = Ge(yn((e, t) => {
|
|
|
5347
5357
|
}));
|
|
5348
5358
|
function Wt(e, t, n, r) {
|
|
5349
5359
|
const o = dt(bn), i = Ue(() => e(o), []);
|
|
5350
|
-
return
|
|
5360
|
+
return se(() => {
|
|
5351
5361
|
const s = t, l = typeof t == "function" ? t : null, { map: c } = o;
|
|
5352
5362
|
return c.hasControl(i) || c.addControl(i, s == null ? void 0 : s.position), () => {
|
|
5353
5363
|
l && l(o), c.hasControl(i) && c.removeControl(i);
|
|
@@ -5358,7 +5368,7 @@ function Zu(e) {
|
|
|
5358
5368
|
const t = Wt(({ mapLib: n }) => new n.AttributionControl(e), {
|
|
5359
5369
|
position: e.position
|
|
5360
5370
|
});
|
|
5361
|
-
return
|
|
5371
|
+
return se(() => {
|
|
5362
5372
|
wt(t._container, e.style);
|
|
5363
5373
|
}, [e.style]), null;
|
|
5364
5374
|
}
|
|
@@ -5367,7 +5377,7 @@ function Gu(e) {
|
|
|
5367
5377
|
const t = Wt(({ mapLib: n }) => new n.FullscreenControl({
|
|
5368
5378
|
container: e.containerId && document.getElementById(e.containerId)
|
|
5369
5379
|
}), { position: e.position });
|
|
5370
|
-
return
|
|
5380
|
+
return se(() => {
|
|
5371
5381
|
wt(t._controlContainer, e.style);
|
|
5372
5382
|
}, [e.style]), null;
|
|
5373
5383
|
}
|
|
@@ -5394,7 +5404,7 @@ function Ju(e, t) {
|
|
|
5394
5404
|
(u = (c = n.current.props).onTrackUserLocationEnd) == null || u.call(c, l);
|
|
5395
5405
|
}), i;
|
|
5396
5406
|
}, { position: e.position });
|
|
5397
|
-
return n.current.props = e, Lt(t, () => r, []),
|
|
5407
|
+
return n.current.props = e, Lt(t, () => r, []), se(() => {
|
|
5398
5408
|
wt(r._container, e.style);
|
|
5399
5409
|
}, [e.style]), null;
|
|
5400
5410
|
}
|
|
@@ -5403,7 +5413,7 @@ function Xu(e) {
|
|
|
5403
5413
|
const t = Wt(({ mapLib: n }) => new n.NavigationControl(e), {
|
|
5404
5414
|
position: e.position
|
|
5405
5415
|
});
|
|
5406
|
-
return
|
|
5416
|
+
return se(() => {
|
|
5407
5417
|
wt(t._container, e.style);
|
|
5408
5418
|
}, [e.style]), null;
|
|
5409
5419
|
}
|
|
@@ -5414,7 +5424,7 @@ function ef(e) {
|
|
|
5414
5424
|
}), n = De(e), r = n.current;
|
|
5415
5425
|
n.current = e;
|
|
5416
5426
|
const { style: o } = e;
|
|
5417
|
-
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit),
|
|
5427
|
+
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit), se(() => {
|
|
5418
5428
|
wt(t._container, o);
|
|
5419
5429
|
}, [o]), null;
|
|
5420
5430
|
}
|
|
@@ -5423,14 +5433,14 @@ function tf(e) {
|
|
|
5423
5433
|
const t = Wt(({ mapLib: n }) => new n.TerrainControl(e), {
|
|
5424
5434
|
position: e.position
|
|
5425
5435
|
});
|
|
5426
|
-
return
|
|
5436
|
+
return se(() => {
|
|
5427
5437
|
wt(t._container, e.style);
|
|
5428
5438
|
}, [e.style]), null;
|
|
5429
5439
|
}
|
|
5430
5440
|
Ge(tf);
|
|
5431
5441
|
function nf(e) {
|
|
5432
5442
|
const t = Wt(({ mapLib: n }) => new n.LogoControl(e), { position: e.position });
|
|
5433
|
-
return
|
|
5443
|
+
return se(() => {
|
|
5434
5444
|
wt(t._container, e.style);
|
|
5435
5445
|
}, [e.style]), null;
|
|
5436
5446
|
}
|
|
@@ -5480,7 +5490,7 @@ function sf(e, t, n) {
|
|
|
5480
5490
|
}
|
|
5481
5491
|
function af(e) {
|
|
5482
5492
|
const t = dt(bn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-source-${rf++}`, []);
|
|
5483
|
-
|
|
5493
|
+
se(() => {
|
|
5484
5494
|
if (t) {
|
|
5485
5495
|
const s = () => setTimeout(() => r((l) => l + 1), 0);
|
|
5486
5496
|
return t.on("styledata", s), s(), () => {
|
|
@@ -5506,17 +5516,17 @@ function lf(e, t, n, r) {
|
|
|
5506
5516
|
const { layout: o = {}, paint: i = {}, filter: s, minzoom: l, maxzoom: c, beforeId: u } = n;
|
|
5507
5517
|
if (u !== r.beforeId && e.moveLayer(t, u), o !== r.layout) {
|
|
5508
5518
|
const p = r.layout || {};
|
|
5509
|
-
for (const
|
|
5510
|
-
Qe(o[
|
|
5511
|
-
for (const
|
|
5512
|
-
o.hasOwnProperty(
|
|
5519
|
+
for (const d in o)
|
|
5520
|
+
Qe(o[d], p[d]) || e.setLayoutProperty(t, d, o[d]);
|
|
5521
|
+
for (const d in p)
|
|
5522
|
+
o.hasOwnProperty(d) || e.setLayoutProperty(t, d, void 0);
|
|
5513
5523
|
}
|
|
5514
5524
|
if (i !== r.paint) {
|
|
5515
5525
|
const p = r.paint || {};
|
|
5516
|
-
for (const
|
|
5517
|
-
Qe(i[
|
|
5518
|
-
for (const
|
|
5519
|
-
i.hasOwnProperty(
|
|
5526
|
+
for (const d in i)
|
|
5527
|
+
Qe(i[d], p[d]) || e.setPaintProperty(t, d, i[d]);
|
|
5528
|
+
for (const d in p)
|
|
5529
|
+
i.hasOwnProperty(d) || e.setPaintProperty(t, d, void 0);
|
|
5520
5530
|
}
|
|
5521
5531
|
Qe(s, r.filter) || e.setFilter(t, s), (l !== r.minzoom || c !== r.maxzoom) && e.setLayerZoomRange(t, l, c);
|
|
5522
5532
|
}
|
|
@@ -5529,7 +5539,7 @@ function cf(e, t, n) {
|
|
|
5529
5539
|
let uf = 0;
|
|
5530
5540
|
function ff(e) {
|
|
5531
5541
|
const t = dt(bn).map.getMap(), n = De(e), [, r] = We(0), o = Ue(() => e.id || `jsx-layer-${uf++}`, []);
|
|
5532
|
-
if (
|
|
5542
|
+
if (se(() => {
|
|
5533
5543
|
if (t) {
|
|
5534
5544
|
const s = () => r((l) => l + 1);
|
|
5535
5545
|
return t.on("styledata", s), s(), () => {
|
|
@@ -5574,22 +5584,22 @@ const df = "_mapContainer_ivruh_3", pf = {
|
|
|
5574
5584
|
sources: c = [],
|
|
5575
5585
|
layers: u = [],
|
|
5576
5586
|
filters: p,
|
|
5577
|
-
popUpParams:
|
|
5587
|
+
popUpParams: d,
|
|
5578
5588
|
onClosePopUp: h,
|
|
5579
5589
|
showTexts: v
|
|
5580
5590
|
}) => {
|
|
5581
5591
|
console.log(p);
|
|
5582
5592
|
const b = De();
|
|
5583
|
-
return
|
|
5593
|
+
return se(() => {
|
|
5584
5594
|
if (b.current) {
|
|
5585
|
-
const
|
|
5586
|
-
|
|
5587
|
-
C.type == "symbol" && C.id != "professionals" && (v ?
|
|
5595
|
+
const f = b.current.getMap();
|
|
5596
|
+
f.getStyle().layers.map((C) => {
|
|
5597
|
+
C.type == "symbol" && C.id != "professionals" && (v ? f.setLayoutProperty(C.id, "visibility", "visible") : f.setLayoutProperty(C.id, "visibility", "none"));
|
|
5588
5598
|
});
|
|
5589
5599
|
}
|
|
5590
|
-
}, [v]),
|
|
5591
|
-
let
|
|
5592
|
-
return Uo.addProtocol("pmtiles",
|
|
5600
|
+
}, [v]), se(() => {
|
|
5601
|
+
let f = new Tu();
|
|
5602
|
+
return Uo.addProtocol("pmtiles", f.tile), () => {
|
|
5593
5603
|
Uo.removeProtocol("pmtiles");
|
|
5594
5604
|
};
|
|
5595
5605
|
}, []), /* @__PURE__ */ m.jsx("div", { className: `${pf.mapContainer}`, style: i && i, children: /* @__PURE__ */ m.jsxs(
|
|
@@ -5604,32 +5614,32 @@ const df = "_mapContainer_ivruh_3", pf = {
|
|
|
5604
5614
|
onClick: s,
|
|
5605
5615
|
interactiveLayerIds: l,
|
|
5606
5616
|
children: [
|
|
5607
|
-
c.length && c.map((
|
|
5617
|
+
c.length && c.map((f, x) => /* @__PURE__ */ m.jsx(
|
|
5608
5618
|
af,
|
|
5609
5619
|
{
|
|
5610
|
-
...
|
|
5611
|
-
children: u.length && u.map((C,
|
|
5612
|
-
if (C.sourceId ==
|
|
5620
|
+
...f,
|
|
5621
|
+
children: u.length && u.map((C, R) => {
|
|
5622
|
+
if (C.sourceId == f.id) return /* @__PURE__ */ m.jsx(
|
|
5613
5623
|
ff,
|
|
5614
5624
|
{
|
|
5615
5625
|
...C.layer,
|
|
5616
5626
|
beforeId: o,
|
|
5617
5627
|
filter: p && p
|
|
5618
5628
|
},
|
|
5619
|
-
|
|
5629
|
+
R
|
|
5620
5630
|
);
|
|
5621
5631
|
})
|
|
5622
5632
|
},
|
|
5623
5633
|
x
|
|
5624
5634
|
)),
|
|
5625
5635
|
/* @__PURE__ */ m.jsx(Qu, { position: "bottom-right", visualizePitch: !0 }),
|
|
5626
|
-
|
|
5636
|
+
d && /* @__PURE__ */ m.jsx(
|
|
5627
5637
|
Yu,
|
|
5628
5638
|
{
|
|
5629
|
-
longitude:
|
|
5630
|
-
latitude:
|
|
5639
|
+
longitude: d.lng,
|
|
5640
|
+
latitude: d.lat,
|
|
5631
5641
|
onClose: h,
|
|
5632
|
-
children: /* @__PURE__ */ m.jsx(gf, { props:
|
|
5642
|
+
children: /* @__PURE__ */ m.jsx(gf, { props: d.props })
|
|
5633
5643
|
}
|
|
5634
5644
|
)
|
|
5635
5645
|
]
|
|
@@ -5820,153 +5830,153 @@ function Lf() {
|
|
|
5820
5830
|
var e = Ds();
|
|
5821
5831
|
Object.defineProperty(Re, "__esModule", {
|
|
5822
5832
|
value: !0
|
|
5823
|
-
}), Re.alpha = b, Re.blend = D, Re.colorChannel = void 0, Re.darken = x, Re.decomposeColor = s, Re.emphasize =
|
|
5833
|
+
}), Re.alpha = b, Re.blend = D, Re.colorChannel = void 0, Re.darken = x, Re.decomposeColor = s, Re.emphasize = k, Re.getContrastRatio = v, Re.getLuminance = h, Re.hexToRgb = o, Re.hslToRgb = d, Re.lighten = R, Re.private_safeAlpha = f, Re.private_safeColorChannel = void 0, Re.private_safeDarken = C, Re.private_safeEmphasize = _, Re.private_safeLighten = w, Re.recomposeColor = u, Re.rgbToHex = p;
|
|
5824
5834
|
var t = e($f), n = e(Pf);
|
|
5825
|
-
function r(y,
|
|
5826
|
-
return process.env.NODE_ENV !== "production" && (y <
|
|
5835
|
+
function r(y, T = 0, S = 1) {
|
|
5836
|
+
return process.env.NODE_ENV !== "production" && (y < T || y > S) && console.error(`MUI: The value provided ${y} is out of range [${T}, ${S}].`), (0, n.default)(y, T, S);
|
|
5827
5837
|
}
|
|
5828
5838
|
function o(y) {
|
|
5829
5839
|
y = y.slice(1);
|
|
5830
|
-
const
|
|
5831
|
-
let S = y.match(
|
|
5832
|
-
return S && S[0].length === 1 && (S = S.map(($) => $ + $)), S ? `rgb${S.length === 4 ? "a" : ""}(${S.map(($,
|
|
5840
|
+
const T = new RegExp(`.{1,${y.length >= 6 ? 2 : 1}}`, "g");
|
|
5841
|
+
let S = y.match(T);
|
|
5842
|
+
return S && S[0].length === 1 && (S = S.map(($) => $ + $)), S ? `rgb${S.length === 4 ? "a" : ""}(${S.map(($, N) => N < 3 ? parseInt($, 16) : Math.round(parseInt($, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
5833
5843
|
}
|
|
5834
5844
|
function i(y) {
|
|
5835
|
-
const
|
|
5836
|
-
return
|
|
5845
|
+
const T = y.toString(16);
|
|
5846
|
+
return T.length === 1 ? `0${T}` : T;
|
|
5837
5847
|
}
|
|
5838
5848
|
function s(y) {
|
|
5839
5849
|
if (y.type)
|
|
5840
5850
|
return y;
|
|
5841
5851
|
if (y.charAt(0) === "#")
|
|
5842
5852
|
return s(o(y));
|
|
5843
|
-
const
|
|
5853
|
+
const T = y.indexOf("("), S = y.substring(0, T);
|
|
5844
5854
|
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(S) === -1)
|
|
5845
5855
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${y}\` color.
|
|
5846
5856
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, t.default)(9, y));
|
|
5847
|
-
let $ = y.substring(
|
|
5857
|
+
let $ = y.substring(T + 1, y.length - 1), N;
|
|
5848
5858
|
if (S === "color") {
|
|
5849
|
-
if ($ = $.split(" "),
|
|
5850
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${
|
|
5851
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, t.default)(10,
|
|
5859
|
+
if ($ = $.split(" "), N = $.shift(), $.length === 4 && $[3].charAt(0) === "/" && ($[3] = $[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(N) === -1)
|
|
5860
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${N}\` color space.
|
|
5861
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, t.default)(10, N));
|
|
5852
5862
|
} else
|
|
5853
5863
|
$ = $.split(",");
|
|
5854
|
-
return $ = $.map((
|
|
5864
|
+
return $ = $.map((X) => parseFloat(X)), {
|
|
5855
5865
|
type: S,
|
|
5856
5866
|
values: $,
|
|
5857
|
-
colorSpace:
|
|
5867
|
+
colorSpace: N
|
|
5858
5868
|
};
|
|
5859
5869
|
}
|
|
5860
5870
|
const l = (y) => {
|
|
5861
|
-
const
|
|
5862
|
-
return
|
|
5871
|
+
const T = s(y);
|
|
5872
|
+
return T.values.slice(0, 3).map((S, $) => T.type.indexOf("hsl") !== -1 && $ !== 0 ? `${S}%` : S).join(" ");
|
|
5863
5873
|
};
|
|
5864
5874
|
Re.colorChannel = l;
|
|
5865
|
-
const c = (y,
|
|
5875
|
+
const c = (y, T) => {
|
|
5866
5876
|
try {
|
|
5867
5877
|
return l(y);
|
|
5868
5878
|
} catch {
|
|
5869
|
-
return
|
|
5879
|
+
return T && process.env.NODE_ENV !== "production" && console.warn(T), y;
|
|
5870
5880
|
}
|
|
5871
5881
|
};
|
|
5872
5882
|
Re.private_safeColorChannel = c;
|
|
5873
5883
|
function u(y) {
|
|
5874
5884
|
const {
|
|
5875
|
-
type:
|
|
5885
|
+
type: T,
|
|
5876
5886
|
colorSpace: S
|
|
5877
5887
|
} = y;
|
|
5878
5888
|
let {
|
|
5879
5889
|
values: $
|
|
5880
5890
|
} = y;
|
|
5881
|
-
return
|
|
5891
|
+
return T.indexOf("rgb") !== -1 ? $ = $.map((N, X) => X < 3 ? parseInt(N, 10) : N) : T.indexOf("hsl") !== -1 && ($[1] = `${$[1]}%`, $[2] = `${$[2]}%`), T.indexOf("color") !== -1 ? $ = `${S} ${$.join(" ")}` : $ = `${$.join(", ")}`, `${T}(${$})`;
|
|
5882
5892
|
}
|
|
5883
5893
|
function p(y) {
|
|
5884
5894
|
if (y.indexOf("#") === 0)
|
|
5885
5895
|
return y;
|
|
5886
5896
|
const {
|
|
5887
|
-
values:
|
|
5897
|
+
values: T
|
|
5888
5898
|
} = s(y);
|
|
5889
|
-
return `#${
|
|
5899
|
+
return `#${T.map((S, $) => i($ === 3 ? Math.round(255 * S) : S)).join("")}`;
|
|
5890
5900
|
}
|
|
5891
|
-
function
|
|
5901
|
+
function d(y) {
|
|
5892
5902
|
y = s(y);
|
|
5893
5903
|
const {
|
|
5894
|
-
values:
|
|
5895
|
-
} = y, S =
|
|
5896
|
-
let
|
|
5897
|
-
const
|
|
5898
|
-
return y.type === "hsla" && (
|
|
5899
|
-
type:
|
|
5900
|
-
values:
|
|
5904
|
+
values: T
|
|
5905
|
+
} = y, S = T[0], $ = T[1] / 100, N = T[2] / 100, X = $ * Math.min(N, 1 - N), B = (ie, re = (ie + S / 30) % 12) => N - X * Math.max(Math.min(re - 3, 9 - re, 1), -1);
|
|
5906
|
+
let Y = "rgb";
|
|
5907
|
+
const V = [Math.round(B(0) * 255), Math.round(B(8) * 255), Math.round(B(4) * 255)];
|
|
5908
|
+
return y.type === "hsla" && (Y += "a", V.push(T[3])), u({
|
|
5909
|
+
type: Y,
|
|
5910
|
+
values: V
|
|
5901
5911
|
});
|
|
5902
5912
|
}
|
|
5903
5913
|
function h(y) {
|
|
5904
5914
|
y = s(y);
|
|
5905
|
-
let
|
|
5906
|
-
return
|
|
5915
|
+
let T = y.type === "hsl" || y.type === "hsla" ? s(d(y)).values : y.values;
|
|
5916
|
+
return T = T.map((S) => (y.type !== "color" && (S /= 255), S <= 0.03928 ? S / 12.92 : ((S + 0.055) / 1.055) ** 2.4)), Number((0.2126 * T[0] + 0.7152 * T[1] + 0.0722 * T[2]).toFixed(3));
|
|
5907
5917
|
}
|
|
5908
|
-
function v(y,
|
|
5909
|
-
const S = h(y), $ = h(
|
|
5918
|
+
function v(y, T) {
|
|
5919
|
+
const S = h(y), $ = h(T);
|
|
5910
5920
|
return (Math.max(S, $) + 0.05) / (Math.min(S, $) + 0.05);
|
|
5911
5921
|
}
|
|
5912
|
-
function b(y,
|
|
5913
|
-
return y = s(y),
|
|
5922
|
+
function b(y, T) {
|
|
5923
|
+
return y = s(y), T = r(T), (y.type === "rgb" || y.type === "hsl") && (y.type += "a"), y.type === "color" ? y.values[3] = `/${T}` : y.values[3] = T, u(y);
|
|
5914
5924
|
}
|
|
5915
|
-
function
|
|
5925
|
+
function f(y, T, S) {
|
|
5916
5926
|
try {
|
|
5917
|
-
return b(y,
|
|
5927
|
+
return b(y, T);
|
|
5918
5928
|
} catch {
|
|
5919
5929
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5920
5930
|
}
|
|
5921
5931
|
}
|
|
5922
|
-
function x(y,
|
|
5923
|
-
if (y = s(y),
|
|
5924
|
-
y.values[2] *= 1 -
|
|
5932
|
+
function x(y, T) {
|
|
5933
|
+
if (y = s(y), T = r(T), y.type.indexOf("hsl") !== -1)
|
|
5934
|
+
y.values[2] *= 1 - T;
|
|
5925
5935
|
else if (y.type.indexOf("rgb") !== -1 || y.type.indexOf("color") !== -1)
|
|
5926
5936
|
for (let S = 0; S < 3; S += 1)
|
|
5927
|
-
y.values[S] *= 1 -
|
|
5937
|
+
y.values[S] *= 1 - T;
|
|
5928
5938
|
return u(y);
|
|
5929
5939
|
}
|
|
5930
|
-
function C(y,
|
|
5940
|
+
function C(y, T, S) {
|
|
5931
5941
|
try {
|
|
5932
|
-
return x(y,
|
|
5942
|
+
return x(y, T);
|
|
5933
5943
|
} catch {
|
|
5934
5944
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5935
5945
|
}
|
|
5936
5946
|
}
|
|
5937
|
-
function
|
|
5938
|
-
if (y = s(y),
|
|
5939
|
-
y.values[2] += (100 - y.values[2]) *
|
|
5947
|
+
function R(y, T) {
|
|
5948
|
+
if (y = s(y), T = r(T), y.type.indexOf("hsl") !== -1)
|
|
5949
|
+
y.values[2] += (100 - y.values[2]) * T;
|
|
5940
5950
|
else if (y.type.indexOf("rgb") !== -1)
|
|
5941
5951
|
for (let S = 0; S < 3; S += 1)
|
|
5942
|
-
y.values[S] += (255 - y.values[S]) *
|
|
5952
|
+
y.values[S] += (255 - y.values[S]) * T;
|
|
5943
5953
|
else if (y.type.indexOf("color") !== -1)
|
|
5944
5954
|
for (let S = 0; S < 3; S += 1)
|
|
5945
|
-
y.values[S] += (1 - y.values[S]) *
|
|
5955
|
+
y.values[S] += (1 - y.values[S]) * T;
|
|
5946
5956
|
return u(y);
|
|
5947
5957
|
}
|
|
5948
|
-
function
|
|
5958
|
+
function w(y, T, S) {
|
|
5949
5959
|
try {
|
|
5950
|
-
return
|
|
5960
|
+
return R(y, T);
|
|
5951
5961
|
} catch {
|
|
5952
5962
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5953
5963
|
}
|
|
5954
5964
|
}
|
|
5955
|
-
function
|
|
5956
|
-
return h(y) > 0.5 ? x(y,
|
|
5965
|
+
function k(y, T = 0.15) {
|
|
5966
|
+
return h(y) > 0.5 ? x(y, T) : R(y, T);
|
|
5957
5967
|
}
|
|
5958
|
-
function _(y,
|
|
5968
|
+
function _(y, T, S) {
|
|
5959
5969
|
try {
|
|
5960
|
-
return
|
|
5970
|
+
return k(y, T);
|
|
5961
5971
|
} catch {
|
|
5962
5972
|
return S && process.env.NODE_ENV !== "production" && console.warn(S), y;
|
|
5963
5973
|
}
|
|
5964
5974
|
}
|
|
5965
|
-
function D(y,
|
|
5966
|
-
const
|
|
5975
|
+
function D(y, T, S, $ = 1) {
|
|
5976
|
+
const N = (V, ie) => Math.round((V ** (1 / $) * (1 - S) + ie ** (1 / $) * S) ** $), X = s(y), B = s(T), Y = [N(X.values[0], B.values[0]), N(X.values[1], B.values[1]), N(X.values[2], B.values[2])];
|
|
5967
5977
|
return u({
|
|
5968
5978
|
type: "rgb",
|
|
5969
|
-
values:
|
|
5979
|
+
values: Y
|
|
5970
5980
|
});
|
|
5971
5981
|
}
|
|
5972
5982
|
return Re;
|
|
@@ -6021,14 +6031,14 @@ function Df(e) {
|
|
|
6021
6031
|
className: i
|
|
6022
6032
|
} = e;
|
|
6023
6033
|
if (!t) {
|
|
6024
|
-
const v = Pt(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = z({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style),
|
|
6025
|
-
return v.length > 0 && (
|
|
6026
|
-
props:
|
|
6034
|
+
const v = Pt(n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = z({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), f = z({}, n, o, r);
|
|
6035
|
+
return v.length > 0 && (f.className = v), Object.keys(b).length > 0 && (f.style = b), {
|
|
6036
|
+
props: f,
|
|
6027
6037
|
internalRef: void 0
|
|
6028
6038
|
};
|
|
6029
6039
|
}
|
|
6030
|
-
const s = fr(z({}, o, r)), l = Ri(r), c = Ri(o), u = t(s), p = Pt(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className),
|
|
6031
|
-
return p.length > 0 && (h.className = p), Object.keys(
|
|
6040
|
+
const s = fr(z({}, o, r)), l = Ri(r), c = Ri(o), u = t(s), p = Pt(u == null ? void 0 : u.className, n == null ? void 0 : n.className, i, o == null ? void 0 : o.className, r == null ? void 0 : r.className), d = z({}, u == null ? void 0 : u.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), h = z({}, u, n, c, l);
|
|
6041
|
+
return p.length > 0 && (h.className = p), Object.keys(d).length > 0 && (h.style = d), {
|
|
6032
6042
|
props: h,
|
|
6033
6043
|
internalRef: u.ref
|
|
6034
6044
|
};
|
|
@@ -6096,29 +6106,29 @@ var $i;
|
|
|
6096
6106
|
function Uf() {
|
|
6097
6107
|
if ($i) return xe;
|
|
6098
6108
|
$i = 1;
|
|
6099
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"),
|
|
6100
|
-
function b(
|
|
6101
|
-
if (typeof
|
|
6102
|
-
var x =
|
|
6109
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
6110
|
+
function b(f) {
|
|
6111
|
+
if (typeof f == "object" && f !== null) {
|
|
6112
|
+
var x = f.$$typeof;
|
|
6103
6113
|
switch (x) {
|
|
6104
6114
|
case e:
|
|
6105
|
-
switch (
|
|
6115
|
+
switch (f = f.type, f) {
|
|
6106
6116
|
case n:
|
|
6107
6117
|
case o:
|
|
6108
6118
|
case r:
|
|
6109
6119
|
case c:
|
|
6110
6120
|
case u:
|
|
6111
6121
|
case h:
|
|
6112
|
-
return
|
|
6122
|
+
return f;
|
|
6113
6123
|
default:
|
|
6114
|
-
switch (
|
|
6124
|
+
switch (f = f && f.$$typeof, f) {
|
|
6115
6125
|
case s:
|
|
6116
6126
|
case l:
|
|
6117
|
-
case
|
|
6127
|
+
case d:
|
|
6118
6128
|
case p:
|
|
6119
|
-
return
|
|
6129
|
+
return f;
|
|
6120
6130
|
case i:
|
|
6121
|
-
return
|
|
6131
|
+
return f;
|
|
6122
6132
|
default:
|
|
6123
6133
|
return x;
|
|
6124
6134
|
}
|
|
@@ -6128,32 +6138,32 @@ function Uf() {
|
|
|
6128
6138
|
}
|
|
6129
6139
|
}
|
|
6130
6140
|
}
|
|
6131
|
-
return xe.ContextConsumer = i, xe.ContextProvider = s, xe.Element = e, xe.ForwardRef = l, xe.Fragment = n, xe.Lazy =
|
|
6132
|
-
return b(
|
|
6133
|
-
}, xe.isContextProvider = function(
|
|
6134
|
-
return b(
|
|
6135
|
-
}, xe.isElement = function(
|
|
6136
|
-
return typeof
|
|
6137
|
-
}, xe.isForwardRef = function(
|
|
6138
|
-
return b(
|
|
6139
|
-
}, xe.isFragment = function(
|
|
6140
|
-
return b(
|
|
6141
|
-
}, xe.isLazy = function(
|
|
6142
|
-
return b(
|
|
6143
|
-
}, xe.isMemo = function(
|
|
6144
|
-
return b(
|
|
6145
|
-
}, xe.isPortal = function(
|
|
6146
|
-
return b(
|
|
6147
|
-
}, xe.isProfiler = function(
|
|
6148
|
-
return b(
|
|
6149
|
-
}, xe.isStrictMode = function(
|
|
6150
|
-
return b(
|
|
6151
|
-
}, xe.isSuspense = function(
|
|
6152
|
-
return b(
|
|
6153
|
-
}, xe.isSuspenseList = function(
|
|
6154
|
-
return b(
|
|
6155
|
-
}, xe.isValidElementType = function(
|
|
6156
|
-
return typeof
|
|
6141
|
+
return xe.ContextConsumer = i, xe.ContextProvider = s, xe.Element = e, xe.ForwardRef = l, xe.Fragment = n, xe.Lazy = d, xe.Memo = p, xe.Portal = t, xe.Profiler = o, xe.StrictMode = r, xe.Suspense = c, xe.SuspenseList = u, xe.isContextConsumer = function(f) {
|
|
6142
|
+
return b(f) === i;
|
|
6143
|
+
}, xe.isContextProvider = function(f) {
|
|
6144
|
+
return b(f) === s;
|
|
6145
|
+
}, xe.isElement = function(f) {
|
|
6146
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
6147
|
+
}, xe.isForwardRef = function(f) {
|
|
6148
|
+
return b(f) === l;
|
|
6149
|
+
}, xe.isFragment = function(f) {
|
|
6150
|
+
return b(f) === n;
|
|
6151
|
+
}, xe.isLazy = function(f) {
|
|
6152
|
+
return b(f) === d;
|
|
6153
|
+
}, xe.isMemo = function(f) {
|
|
6154
|
+
return b(f) === p;
|
|
6155
|
+
}, xe.isPortal = function(f) {
|
|
6156
|
+
return b(f) === t;
|
|
6157
|
+
}, xe.isProfiler = function(f) {
|
|
6158
|
+
return b(f) === o;
|
|
6159
|
+
}, xe.isStrictMode = function(f) {
|
|
6160
|
+
return b(f) === r;
|
|
6161
|
+
}, xe.isSuspense = function(f) {
|
|
6162
|
+
return b(f) === c;
|
|
6163
|
+
}, xe.isSuspenseList = function(f) {
|
|
6164
|
+
return b(f) === u;
|
|
6165
|
+
}, xe.isValidElementType = function(f) {
|
|
6166
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === o || f === r || f === c || f === u || typeof f == "object" && f !== null && (f.$$typeof === d || f.$$typeof === p || f.$$typeof === s || f.$$typeof === i || f.$$typeof === l || f.$$typeof === v || f.getModuleId !== void 0);
|
|
6157
6167
|
}, xe.typeOf = b, xe;
|
|
6158
6168
|
}
|
|
6159
6169
|
var Ce = {};
|
|
@@ -6169,28 +6179,28 @@ var Ce = {};
|
|
|
6169
6179
|
var ji;
|
|
6170
6180
|
function Vf() {
|
|
6171
6181
|
return ji || (ji = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6172
|
-
function e(
|
|
6173
|
-
if (typeof
|
|
6174
|
-
var x =
|
|
6182
|
+
function e(f) {
|
|
6183
|
+
if (typeof f == "object" && f !== null) {
|
|
6184
|
+
var x = f.$$typeof;
|
|
6175
6185
|
switch (x) {
|
|
6176
6186
|
case t:
|
|
6177
|
-
switch (
|
|
6187
|
+
switch (f = f.type, f) {
|
|
6178
6188
|
case r:
|
|
6179
6189
|
case i:
|
|
6180
6190
|
case o:
|
|
6181
6191
|
case u:
|
|
6182
6192
|
case p:
|
|
6183
6193
|
case v:
|
|
6184
|
-
return
|
|
6194
|
+
return f;
|
|
6185
6195
|
default:
|
|
6186
|
-
switch (
|
|
6196
|
+
switch (f = f && f.$$typeof, f) {
|
|
6187
6197
|
case l:
|
|
6188
6198
|
case c:
|
|
6189
6199
|
case h:
|
|
6190
|
-
case
|
|
6191
|
-
return
|
|
6200
|
+
case d:
|
|
6201
|
+
return f;
|
|
6192
6202
|
case s:
|
|
6193
|
-
return
|
|
6203
|
+
return f;
|
|
6194
6204
|
default:
|
|
6195
6205
|
return x;
|
|
6196
6206
|
}
|
|
@@ -6200,33 +6210,33 @@ function Vf() {
|
|
|
6200
6210
|
}
|
|
6201
6211
|
}
|
|
6202
6212
|
}
|
|
6203
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"),
|
|
6204
|
-
Ce.ContextConsumer = s, Ce.ContextProvider = l, Ce.Element = t, Ce.ForwardRef = c, Ce.Fragment = r, Ce.Lazy = h, Ce.Memo =
|
|
6205
|
-
return e(
|
|
6206
|
-
}, Ce.isContextProvider = function(
|
|
6207
|
-
return e(
|
|
6208
|
-
}, Ce.isElement = function(
|
|
6209
|
-
return typeof
|
|
6210
|
-
}, Ce.isForwardRef = function(
|
|
6211
|
-
return e(
|
|
6212
|
-
}, Ce.isFragment = function(
|
|
6213
|
-
return e(
|
|
6214
|
-
}, Ce.isLazy = function(
|
|
6215
|
-
return e(
|
|
6216
|
-
}, Ce.isMemo = function(
|
|
6217
|
-
return e(
|
|
6218
|
-
}, Ce.isPortal = function(
|
|
6219
|
-
return e(
|
|
6220
|
-
}, Ce.isProfiler = function(
|
|
6221
|
-
return e(
|
|
6222
|
-
}, Ce.isStrictMode = function(
|
|
6223
|
-
return e(
|
|
6224
|
-
}, Ce.isSuspense = function(
|
|
6225
|
-
return e(
|
|
6226
|
-
}, Ce.isSuspenseList = function(
|
|
6227
|
-
return e(
|
|
6228
|
-
}, Ce.isValidElementType = function(
|
|
6229
|
-
return typeof
|
|
6213
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
6214
|
+
Ce.ContextConsumer = s, Ce.ContextProvider = l, Ce.Element = t, Ce.ForwardRef = c, Ce.Fragment = r, Ce.Lazy = h, Ce.Memo = d, Ce.Portal = n, Ce.Profiler = i, Ce.StrictMode = o, Ce.Suspense = u, Ce.SuspenseList = p, Ce.isContextConsumer = function(f) {
|
|
6215
|
+
return e(f) === s;
|
|
6216
|
+
}, Ce.isContextProvider = function(f) {
|
|
6217
|
+
return e(f) === l;
|
|
6218
|
+
}, Ce.isElement = function(f) {
|
|
6219
|
+
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
6220
|
+
}, Ce.isForwardRef = function(f) {
|
|
6221
|
+
return e(f) === c;
|
|
6222
|
+
}, Ce.isFragment = function(f) {
|
|
6223
|
+
return e(f) === r;
|
|
6224
|
+
}, Ce.isLazy = function(f) {
|
|
6225
|
+
return e(f) === h;
|
|
6226
|
+
}, Ce.isMemo = function(f) {
|
|
6227
|
+
return e(f) === d;
|
|
6228
|
+
}, Ce.isPortal = function(f) {
|
|
6229
|
+
return e(f) === n;
|
|
6230
|
+
}, Ce.isProfiler = function(f) {
|
|
6231
|
+
return e(f) === i;
|
|
6232
|
+
}, Ce.isStrictMode = function(f) {
|
|
6233
|
+
return e(f) === o;
|
|
6234
|
+
}, Ce.isSuspense = function(f) {
|
|
6235
|
+
return e(f) === u;
|
|
6236
|
+
}, Ce.isSuspenseList = function(f) {
|
|
6237
|
+
return e(f) === p;
|
|
6238
|
+
}, Ce.isValidElementType = function(f) {
|
|
6239
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === i || f === o || f === u || f === p || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === d || f.$$typeof === l || f.$$typeof === s || f.$$typeof === c || f.$$typeof === b || f.getModuleId !== void 0);
|
|
6230
6240
|
}, Ce.typeOf = e;
|
|
6231
6241
|
}()), Ce;
|
|
6232
6242
|
}
|
|
@@ -6583,19 +6593,19 @@ function gd(e) {
|
|
|
6583
6593
|
min: c = 0,
|
|
6584
6594
|
name: u,
|
|
6585
6595
|
onChange: p,
|
|
6586
|
-
onChangeCommitted:
|
|
6596
|
+
onChangeCommitted: d,
|
|
6587
6597
|
orientation: h = "horizontal",
|
|
6588
6598
|
rootRef: v,
|
|
6589
6599
|
scale: b = md,
|
|
6590
|
-
step:
|
|
6600
|
+
step: f = 1,
|
|
6591
6601
|
shiftStep: x = 10,
|
|
6592
6602
|
tabIndex: C,
|
|
6593
|
-
value:
|
|
6594
|
-
} = e,
|
|
6595
|
-
controlled:
|
|
6603
|
+
value: R
|
|
6604
|
+
} = e, w = J.useRef(void 0), [k, _] = J.useState(-1), [D, y] = J.useState(-1), [T, S] = J.useState(!1), $ = J.useRef(0), [N, X] = Zf({
|
|
6605
|
+
controlled: R,
|
|
6596
6606
|
default: n ?? c,
|
|
6597
6607
|
name: "Slider"
|
|
6598
|
-
}), B = p && ((P, I,
|
|
6608
|
+
}), B = p && ((P, I, W) => {
|
|
6599
6609
|
const de = P.nativeEvent || P, pe = new de.constructor(de.type, de);
|
|
6600
6610
|
Object.defineProperty(pe, "target", {
|
|
6601
6611
|
writable: !0,
|
|
@@ -6603,95 +6613,95 @@ function gd(e) {
|
|
|
6603
6613
|
value: I,
|
|
6604
6614
|
name: u
|
|
6605
6615
|
}
|
|
6606
|
-
}), p(pe, I,
|
|
6607
|
-
}),
|
|
6608
|
-
let
|
|
6609
|
-
|
|
6610
|
-
const
|
|
6611
|
-
value: c +
|
|
6612
|
-
})) : s || [],
|
|
6616
|
+
}), p(pe, I, W);
|
|
6617
|
+
}), Y = Array.isArray(N);
|
|
6618
|
+
let V = Y ? N.slice().sort(Vs) : [N];
|
|
6619
|
+
V = V.map((P) => P == null ? c : un(P, c, l));
|
|
6620
|
+
const ie = s === !0 && f !== null ? [...Array(Math.floor((l - c) / f) + 1)].map((P, I) => ({
|
|
6621
|
+
value: c + f * I
|
|
6622
|
+
})) : s || [], re = ie.map((P) => P.value), {
|
|
6613
6623
|
isFocusVisibleRef: Ee,
|
|
6614
6624
|
onBlur: je,
|
|
6615
6625
|
onFocus: O,
|
|
6616
6626
|
ref: A
|
|
6617
|
-
} = rd(), [
|
|
6618
|
-
var
|
|
6627
|
+
} = rd(), [Q, q] = J.useState(-1), F = J.useRef(null), ee = go(A, F), K = go(v, ee), H = (P) => (I) => {
|
|
6628
|
+
var W;
|
|
6619
6629
|
const de = Number(I.currentTarget.getAttribute("data-index"));
|
|
6620
|
-
O(I), Ee.current === !0 &&
|
|
6630
|
+
O(I), Ee.current === !0 && q(de), y(de), P == null || (W = P.onFocus) == null || W.call(P, I);
|
|
6621
6631
|
}, U = (P) => (I) => {
|
|
6622
|
-
var
|
|
6623
|
-
je(I), Ee.current === !1 &&
|
|
6632
|
+
var W;
|
|
6633
|
+
je(I), Ee.current === !1 && q(-1), y(-1), P == null || (W = P.onBlur) == null || W.call(P, I);
|
|
6624
6634
|
}, Z = (P, I) => {
|
|
6625
|
-
const
|
|
6635
|
+
const W = Number(P.currentTarget.getAttribute("data-index")), de = V[W], pe = re.indexOf(de);
|
|
6626
6636
|
let fe = I;
|
|
6627
|
-
if (
|
|
6628
|
-
const tt =
|
|
6629
|
-
fe > tt ? fe = tt : fe <
|
|
6637
|
+
if (ie && f == null) {
|
|
6638
|
+
const tt = re[re.length - 1];
|
|
6639
|
+
fe > tt ? fe = tt : fe < re[0] ? fe = re[0] : fe = fe < de ? re[pe - 1] : re[pe + 1];
|
|
6630
6640
|
}
|
|
6631
|
-
if (fe = un(fe, c, l),
|
|
6632
|
-
o && (fe = un(fe,
|
|
6641
|
+
if (fe = un(fe, c, l), Y) {
|
|
6642
|
+
o && (fe = un(fe, V[W - 1] || -1 / 0, V[W + 1] || 1 / 0));
|
|
6633
6643
|
const tt = fe;
|
|
6634
6644
|
fe = Ii({
|
|
6635
|
-
values:
|
|
6645
|
+
values: V,
|
|
6636
6646
|
newValue: fe,
|
|
6637
|
-
index:
|
|
6647
|
+
index: W
|
|
6638
6648
|
});
|
|
6639
|
-
let at =
|
|
6649
|
+
let at = W;
|
|
6640
6650
|
o || (at = fe.indexOf(tt)), ir({
|
|
6641
6651
|
sliderRef: F,
|
|
6642
6652
|
activeIndex: at
|
|
6643
6653
|
});
|
|
6644
6654
|
}
|
|
6645
|
-
|
|
6646
|
-
},
|
|
6647
|
-
var
|
|
6648
|
-
if (
|
|
6649
|
-
const de = Number(I.currentTarget.getAttribute("data-index")), pe =
|
|
6655
|
+
X(fe), q(W), B && !sr(fe, N) && B(P, fe, W), d && d(P, fe);
|
|
6656
|
+
}, ne = (P) => (I) => {
|
|
6657
|
+
var W;
|
|
6658
|
+
if (f !== null) {
|
|
6659
|
+
const de = Number(I.currentTarget.getAttribute("data-index")), pe = V[de];
|
|
6650
6660
|
let fe = null;
|
|
6651
6661
|
(I.key === "ArrowLeft" || I.key === "ArrowDown") && I.shiftKey || I.key === "PageDown" ? fe = Math.max(pe - x, c) : ((I.key === "ArrowRight" || I.key === "ArrowUp") && I.shiftKey || I.key === "PageUp") && (fe = Math.min(pe + x, l)), fe !== null && (Z(I, fe), I.preventDefault());
|
|
6652
6662
|
}
|
|
6653
|
-
P == null || (
|
|
6663
|
+
P == null || (W = P.onKeyDown) == null || W.call(P, I);
|
|
6654
6664
|
};
|
|
6655
6665
|
Us(() => {
|
|
6656
6666
|
if (r && F.current.contains(document.activeElement)) {
|
|
6657
6667
|
var P;
|
|
6658
6668
|
(P = document.activeElement) == null || P.blur();
|
|
6659
6669
|
}
|
|
6660
|
-
}, [r]), r &&
|
|
6670
|
+
}, [r]), r && k !== -1 && _(-1), r && Q !== -1 && q(-1);
|
|
6661
6671
|
const be = (P) => (I) => {
|
|
6662
|
-
var
|
|
6663
|
-
(
|
|
6672
|
+
var W;
|
|
6673
|
+
(W = P.onChange) == null || W.call(P, I), Z(I, I.target.valueAsNumber);
|
|
6664
6674
|
}, j = J.useRef(void 0);
|
|
6665
6675
|
let _e = h;
|
|
6666
6676
|
i && h === "horizontal" && (_e += "-reverse");
|
|
6667
|
-
const
|
|
6677
|
+
const ae = ({
|
|
6668
6678
|
finger: P,
|
|
6669
6679
|
move: I = !1
|
|
6670
6680
|
}) => {
|
|
6671
6681
|
const {
|
|
6672
|
-
current:
|
|
6682
|
+
current: W
|
|
6673
6683
|
} = F, {
|
|
6674
6684
|
width: de,
|
|
6675
6685
|
height: pe,
|
|
6676
6686
|
bottom: fe,
|
|
6677
6687
|
left: tt
|
|
6678
|
-
} =
|
|
6688
|
+
} = W.getBoundingClientRect();
|
|
6679
6689
|
let at;
|
|
6680
6690
|
_e.indexOf("vertical") === 0 ? at = (fe - P.y) / pe : at = (P.x - tt) / de, _e.indexOf("-reverse") !== -1 && (at = 1 - at);
|
|
6681
6691
|
let he;
|
|
6682
|
-
if (he = fd(at, c, l),
|
|
6683
|
-
he = pd(he,
|
|
6692
|
+
if (he = fd(at, c, l), f)
|
|
6693
|
+
he = pd(he, f, c);
|
|
6684
6694
|
else {
|
|
6685
|
-
const yt = Ni(
|
|
6686
|
-
he =
|
|
6695
|
+
const yt = Ni(re, he);
|
|
6696
|
+
he = re[yt];
|
|
6687
6697
|
}
|
|
6688
6698
|
he = un(he, c, l);
|
|
6689
6699
|
let Je = 0;
|
|
6690
|
-
if (
|
|
6691
|
-
I ? Je = j.current : Je = Ni(
|
|
6700
|
+
if (Y) {
|
|
6701
|
+
I ? Je = j.current : Je = Ni(V, he), o && (he = un(he, V[Je - 1] || -1 / 0, V[Je + 1] || 1 / 0));
|
|
6692
6702
|
const yt = he;
|
|
6693
6703
|
he = Ii({
|
|
6694
|
-
values:
|
|
6704
|
+
values: V,
|
|
6695
6705
|
newValue: he,
|
|
6696
6706
|
index: Je
|
|
6697
6707
|
}), o && I || (Je = he.indexOf(yt), j.current = Je);
|
|
@@ -6700,8 +6710,8 @@ function gd(e) {
|
|
|
6700
6710
|
newValue: he,
|
|
6701
6711
|
activeIndex: Je
|
|
6702
6712
|
};
|
|
6703
|
-
},
|
|
6704
|
-
const I = or(P,
|
|
6713
|
+
}, le = ro((P) => {
|
|
6714
|
+
const I = or(P, w);
|
|
6705
6715
|
if (!I)
|
|
6706
6716
|
return;
|
|
6707
6717
|
if ($.current += 1, P.type === "mousemove" && P.buttons === 0) {
|
|
@@ -6709,9 +6719,9 @@ function gd(e) {
|
|
|
6709
6719
|
return;
|
|
6710
6720
|
}
|
|
6711
6721
|
const {
|
|
6712
|
-
newValue:
|
|
6722
|
+
newValue: W,
|
|
6713
6723
|
activeIndex: de
|
|
6714
|
-
} =
|
|
6724
|
+
} = ae({
|
|
6715
6725
|
finger: I,
|
|
6716
6726
|
move: !0
|
|
6717
6727
|
});
|
|
@@ -6719,49 +6729,49 @@ function gd(e) {
|
|
|
6719
6729
|
sliderRef: F,
|
|
6720
6730
|
activeIndex: de,
|
|
6721
6731
|
setActive: _
|
|
6722
|
-
}), W
|
|
6732
|
+
}), X(W), !T && $.current > ud && S(!0), B && !sr(W, N) && B(P, W, de);
|
|
6723
6733
|
}), Oe = ro((P) => {
|
|
6724
|
-
const I = or(P,
|
|
6734
|
+
const I = or(P, w);
|
|
6725
6735
|
if (S(!1), !I)
|
|
6726
6736
|
return;
|
|
6727
6737
|
const {
|
|
6728
|
-
newValue:
|
|
6729
|
-
} =
|
|
6738
|
+
newValue: W
|
|
6739
|
+
} = ae({
|
|
6730
6740
|
finger: I,
|
|
6731
6741
|
move: !0
|
|
6732
6742
|
});
|
|
6733
|
-
_(-1), P.type === "touchend" && y(-1),
|
|
6743
|
+
_(-1), P.type === "touchend" && y(-1), d && d(P, W), w.current = void 0, Ke();
|
|
6734
6744
|
}), He = ro((P) => {
|
|
6735
6745
|
if (r)
|
|
6736
6746
|
return;
|
|
6737
6747
|
Di() || P.preventDefault();
|
|
6738
6748
|
const I = P.changedTouches[0];
|
|
6739
|
-
I != null && (
|
|
6740
|
-
const
|
|
6741
|
-
if (
|
|
6749
|
+
I != null && (w.current = I.identifier);
|
|
6750
|
+
const W = or(P, w);
|
|
6751
|
+
if (W !== !1) {
|
|
6742
6752
|
const {
|
|
6743
6753
|
newValue: pe,
|
|
6744
6754
|
activeIndex: fe
|
|
6745
|
-
} =
|
|
6746
|
-
finger:
|
|
6755
|
+
} = ae({
|
|
6756
|
+
finger: W
|
|
6747
6757
|
});
|
|
6748
6758
|
ir({
|
|
6749
6759
|
sliderRef: F,
|
|
6750
6760
|
activeIndex: fe,
|
|
6751
6761
|
setActive: _
|
|
6752
|
-
}),
|
|
6762
|
+
}), X(pe), B && !sr(pe, N) && B(P, pe, fe);
|
|
6753
6763
|
}
|
|
6754
6764
|
$.current = 0;
|
|
6755
6765
|
const de = dr(F.current);
|
|
6756
|
-
de.addEventListener("touchmove",
|
|
6766
|
+
de.addEventListener("touchmove", le, {
|
|
6757
6767
|
passive: !0
|
|
6758
6768
|
}), de.addEventListener("touchend", Oe, {
|
|
6759
6769
|
passive: !0
|
|
6760
6770
|
});
|
|
6761
6771
|
}), Ke = J.useCallback(() => {
|
|
6762
6772
|
const P = dr(F.current);
|
|
6763
|
-
P.removeEventListener("mousemove",
|
|
6764
|
-
}, [Oe,
|
|
6773
|
+
P.removeEventListener("mousemove", le), P.removeEventListener("mouseup", Oe), P.removeEventListener("touchmove", le), P.removeEventListener("touchend", Oe);
|
|
6774
|
+
}, [Oe, le]);
|
|
6765
6775
|
J.useEffect(() => {
|
|
6766
6776
|
const {
|
|
6767
6777
|
current: P
|
|
@@ -6775,59 +6785,59 @@ function gd(e) {
|
|
|
6775
6785
|
r && Ke();
|
|
6776
6786
|
}, [r, Ke]);
|
|
6777
6787
|
const gt = (P) => (I) => {
|
|
6778
|
-
var
|
|
6779
|
-
if ((
|
|
6788
|
+
var W;
|
|
6789
|
+
if ((W = P.onMouseDown) == null || W.call(P, I), r || I.defaultPrevented || I.button !== 0)
|
|
6780
6790
|
return;
|
|
6781
6791
|
I.preventDefault();
|
|
6782
|
-
const de = or(I,
|
|
6792
|
+
const de = or(I, w);
|
|
6783
6793
|
if (de !== !1) {
|
|
6784
6794
|
const {
|
|
6785
6795
|
newValue: fe,
|
|
6786
6796
|
activeIndex: tt
|
|
6787
|
-
} =
|
|
6797
|
+
} = ae({
|
|
6788
6798
|
finger: de
|
|
6789
6799
|
});
|
|
6790
6800
|
ir({
|
|
6791
6801
|
sliderRef: F,
|
|
6792
6802
|
activeIndex: tt,
|
|
6793
6803
|
setActive: _
|
|
6794
|
-
}),
|
|
6804
|
+
}), X(fe), B && !sr(fe, N) && B(I, fe, tt);
|
|
6795
6805
|
}
|
|
6796
6806
|
$.current = 0;
|
|
6797
6807
|
const pe = dr(F.current);
|
|
6798
|
-
pe.addEventListener("mousemove",
|
|
6808
|
+
pe.addEventListener("mousemove", le, {
|
|
6799
6809
|
passive: !0
|
|
6800
6810
|
}), pe.addEventListener("mouseup", Oe);
|
|
6801
|
-
}, Fe = vr(
|
|
6802
|
-
const I = fr(P),
|
|
6811
|
+
}, Fe = vr(Y ? V[0] : c, c, l), Et = vr(V[V.length - 1], c, l) - Fe, Nt = (P = {}) => {
|
|
6812
|
+
const I = fr(P), W = {
|
|
6803
6813
|
onMouseDown: gt(I || {})
|
|
6804
|
-
}, de = z({}, I,
|
|
6814
|
+
}, de = z({}, I, W);
|
|
6805
6815
|
return z({}, P, {
|
|
6806
|
-
ref:
|
|
6816
|
+
ref: K
|
|
6807
6817
|
}, de);
|
|
6808
6818
|
}, xn = (P) => (I) => {
|
|
6809
|
-
var
|
|
6810
|
-
(
|
|
6819
|
+
var W;
|
|
6820
|
+
(W = P.onMouseOver) == null || W.call(P, I);
|
|
6811
6821
|
const de = Number(I.currentTarget.getAttribute("data-index"));
|
|
6812
6822
|
y(de);
|
|
6813
6823
|
}, Cn = (P) => (I) => {
|
|
6814
|
-
var
|
|
6815
|
-
(
|
|
6824
|
+
var W;
|
|
6825
|
+
(W = P.onMouseLeave) == null || W.call(P, I), y(-1);
|
|
6816
6826
|
};
|
|
6817
6827
|
return {
|
|
6818
|
-
active:
|
|
6828
|
+
active: k,
|
|
6819
6829
|
axis: _e,
|
|
6820
6830
|
axisProps: hd,
|
|
6821
|
-
dragging:
|
|
6822
|
-
focusedThumbIndex:
|
|
6831
|
+
dragging: T,
|
|
6832
|
+
focusedThumbIndex: Q,
|
|
6823
6833
|
getHiddenInputProps: (P = {}) => {
|
|
6824
6834
|
var I;
|
|
6825
|
-
const
|
|
6826
|
-
onChange: be(
|
|
6827
|
-
onFocus:
|
|
6828
|
-
onBlur: U(
|
|
6829
|
-
onKeyDown:
|
|
6830
|
-
}, pe = z({},
|
|
6835
|
+
const W = fr(P), de = {
|
|
6836
|
+
onChange: be(W || {}),
|
|
6837
|
+
onFocus: H(W || {}),
|
|
6838
|
+
onBlur: U(W || {}),
|
|
6839
|
+
onKeyDown: ne(W || {})
|
|
6840
|
+
}, pe = z({}, W, de);
|
|
6831
6841
|
return z({
|
|
6832
6842
|
tabIndex: C,
|
|
6833
6843
|
"aria-labelledby": t,
|
|
@@ -6851,22 +6861,22 @@ function gd(e) {
|
|
|
6851
6861
|
},
|
|
6852
6862
|
getRootProps: Nt,
|
|
6853
6863
|
getThumbProps: (P = {}) => {
|
|
6854
|
-
const I = fr(P),
|
|
6864
|
+
const I = fr(P), W = {
|
|
6855
6865
|
onMouseOver: xn(I || {}),
|
|
6856
6866
|
onMouseLeave: Cn(I || {})
|
|
6857
6867
|
};
|
|
6858
|
-
return z({}, P, I,
|
|
6868
|
+
return z({}, P, I, W);
|
|
6859
6869
|
},
|
|
6860
|
-
marks:
|
|
6870
|
+
marks: ie,
|
|
6861
6871
|
open: D,
|
|
6862
|
-
range:
|
|
6863
|
-
rootRef:
|
|
6872
|
+
range: Y,
|
|
6873
|
+
rootRef: K,
|
|
6864
6874
|
trackLeap: Et,
|
|
6865
6875
|
trackOffset: Fe,
|
|
6866
|
-
values:
|
|
6876
|
+
values: V,
|
|
6867
6877
|
getThumbStyle: (P) => ({
|
|
6868
6878
|
// So the non active thumb doesn't show its label on hover.
|
|
6869
|
-
pointerEvents:
|
|
6879
|
+
pointerEvents: k !== -1 && k !== P ? "none" : void 0
|
|
6870
6880
|
})
|
|
6871
6881
|
};
|
|
6872
6882
|
}
|
|
@@ -6911,7 +6921,7 @@ function qs(e) {
|
|
|
6911
6921
|
function p(h) {
|
|
6912
6922
|
return s.indexOf(h) + 1 < s.length ? u(h, s[s.indexOf(h) + 1]) : l(h);
|
|
6913
6923
|
}
|
|
6914
|
-
function
|
|
6924
|
+
function d(h) {
|
|
6915
6925
|
const v = s.indexOf(h);
|
|
6916
6926
|
return v === 0 ? l(s[1]) : v === s.length - 1 ? c(s[v]) : u(h, s[s.indexOf(h) + 1]).replace("@media", "@media not all and");
|
|
6917
6927
|
}
|
|
@@ -6922,7 +6932,7 @@ function qs(e) {
|
|
|
6922
6932
|
down: c,
|
|
6923
6933
|
between: u,
|
|
6924
6934
|
only: p,
|
|
6925
|
-
not:
|
|
6935
|
+
not: d,
|
|
6926
6936
|
unit: n
|
|
6927
6937
|
}, o);
|
|
6928
6938
|
}
|
|
@@ -7010,9 +7020,9 @@ function Me(e) {
|
|
|
7010
7020
|
if (s[t] == null)
|
|
7011
7021
|
return null;
|
|
7012
7022
|
const l = s[t], c = s.theme, u = wr(c, r) || {};
|
|
7013
|
-
return St(s, l, (
|
|
7014
|
-
let h = br(u, o,
|
|
7015
|
-
return
|
|
7023
|
+
return St(s, l, (d) => {
|
|
7024
|
+
let h = br(u, o, d);
|
|
7025
|
+
return d === h && typeof d == "string" && (h = br(u, o, `${t}${d === "default" ? "" : mt(d)}`, d)), n === !1 ? h : {
|
|
7016
7026
|
[n]: h
|
|
7017
7027
|
};
|
|
7018
7028
|
});
|
|
@@ -7566,7 +7576,7 @@ function Ks() {
|
|
|
7566
7576
|
cssProperty: c = n,
|
|
7567
7577
|
themeKey: u,
|
|
7568
7578
|
transform: p,
|
|
7569
|
-
style:
|
|
7579
|
+
style: d
|
|
7570
7580
|
} = l;
|
|
7571
7581
|
if (r == null)
|
|
7572
7582
|
return null;
|
|
@@ -7575,10 +7585,10 @@ function Ks() {
|
|
|
7575
7585
|
[n]: r
|
|
7576
7586
|
};
|
|
7577
7587
|
const h = wr(o, u) || {};
|
|
7578
|
-
return
|
|
7579
|
-
let
|
|
7580
|
-
return b ===
|
|
7581
|
-
[c]:
|
|
7588
|
+
return d ? d(s) : St(s, r, (b) => {
|
|
7589
|
+
let f = br(h, p, b);
|
|
7590
|
+
return b === f && typeof b == "string" && (f = br(h, p, `${n}${b === "default" ? "" : mt(b)}`, b)), c === !1 ? f : {
|
|
7591
|
+
[c]: f
|
|
7582
7592
|
};
|
|
7583
7593
|
});
|
|
7584
7594
|
}
|
|
@@ -7599,7 +7609,7 @@ function Ks() {
|
|
|
7599
7609
|
return c;
|
|
7600
7610
|
if (!u)
|
|
7601
7611
|
return null;
|
|
7602
|
-
const p = _d(i.breakpoints),
|
|
7612
|
+
const p = _d(i.breakpoints), d = Object.keys(p);
|
|
7603
7613
|
let h = p;
|
|
7604
7614
|
return Object.keys(u).forEach((v) => {
|
|
7605
7615
|
const b = ap(u[v], i);
|
|
@@ -7608,19 +7618,19 @@ function Ks() {
|
|
|
7608
7618
|
if (s[v])
|
|
7609
7619
|
h = In(h, e(v, b, i, s));
|
|
7610
7620
|
else {
|
|
7611
|
-
const
|
|
7621
|
+
const f = St({
|
|
7612
7622
|
theme: i
|
|
7613
7623
|
}, b, (x) => ({
|
|
7614
7624
|
[v]: x
|
|
7615
7625
|
}));
|
|
7616
|
-
sp(
|
|
7626
|
+
sp(f, b) ? h[v] = t({
|
|
7617
7627
|
sx: b,
|
|
7618
7628
|
theme: i
|
|
7619
|
-
}) : h = In(h,
|
|
7629
|
+
}) : h = In(h, f);
|
|
7620
7630
|
}
|
|
7621
7631
|
else
|
|
7622
7632
|
h = In(h, e(v, b, i, s));
|
|
7623
|
-
}), xd(
|
|
7633
|
+
}), xd(d, h);
|
|
7624
7634
|
}
|
|
7625
7635
|
return Array.isArray(o) ? o.map(l) : l(o);
|
|
7626
7636
|
}
|
|
@@ -7653,9 +7663,9 @@ function Zs(e = {}, ...t) {
|
|
|
7653
7663
|
spacing: c,
|
|
7654
7664
|
shape: z({}, bd, i)
|
|
7655
7665
|
}, s);
|
|
7656
|
-
return u.applyStyles = Ys, u = t.reduce((p,
|
|
7666
|
+
return u.applyStyles = Ys, u = t.reduce((p, d) => _t(p, d), u), u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(d) {
|
|
7657
7667
|
return Pr({
|
|
7658
|
-
sx:
|
|
7668
|
+
sx: d,
|
|
7659
7669
|
theme: this
|
|
7660
7670
|
});
|
|
7661
7671
|
}, u;
|
|
@@ -7859,19 +7869,19 @@ function Ep(e) {
|
|
|
7859
7869
|
return ta(mr("", null, null, null, [""], e = ea(e), 0, [0], e));
|
|
7860
7870
|
}
|
|
7861
7871
|
function mr(e, t, n, r, o, i, s, l, c) {
|
|
7862
|
-
for (var u = 0, p = 0,
|
|
7863
|
-
switch (b =
|
|
7872
|
+
for (var u = 0, p = 0, d = s, h = 0, v = 0, b = 0, f = 1, x = 1, C = 1, R = 0, w = "", k = o, _ = i, D = r, y = w; x; )
|
|
7873
|
+
switch (b = R, R = st()) {
|
|
7864
7874
|
// (
|
|
7865
7875
|
case 40:
|
|
7866
|
-
if (b != 108 && Ve(y,
|
|
7867
|
-
bo(y += ge(hr(
|
|
7876
|
+
if (b != 108 && Ve(y, d - 1) == 58) {
|
|
7877
|
+
bo(y += ge(hr(R), "&", "&\f"), "&\f") != -1 && (C = -1);
|
|
7868
7878
|
break;
|
|
7869
7879
|
}
|
|
7870
7880
|
// " ' [
|
|
7871
7881
|
case 34:
|
|
7872
7882
|
case 39:
|
|
7873
7883
|
case 91:
|
|
7874
|
-
y += hr(
|
|
7884
|
+
y += hr(R);
|
|
7875
7885
|
break;
|
|
7876
7886
|
// \t \n \r \s
|
|
7877
7887
|
case 9:
|
|
@@ -7896,29 +7906,29 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7896
7906
|
}
|
|
7897
7907
|
break;
|
|
7898
7908
|
// {
|
|
7899
|
-
case 123 *
|
|
7909
|
+
case 123 * f:
|
|
7900
7910
|
l[u++] = vt(y) * C;
|
|
7901
7911
|
// } ; \0
|
|
7902
|
-
case 125 *
|
|
7912
|
+
case 125 * f:
|
|
7903
7913
|
case 59:
|
|
7904
7914
|
case 0:
|
|
7905
|
-
switch (
|
|
7915
|
+
switch (R) {
|
|
7906
7916
|
// \0 }
|
|
7907
7917
|
case 0:
|
|
7908
7918
|
case 125:
|
|
7909
7919
|
x = 0;
|
|
7910
7920
|
// ;
|
|
7911
7921
|
case 59 + p:
|
|
7912
|
-
C == -1 && (y = ge(y, /\f/g, "")), v > 0 && vt(y) -
|
|
7922
|
+
C == -1 && (y = ge(y, /\f/g, "")), v > 0 && vt(y) - d && lr(v > 32 ? Ui(y + ";", r, n, d - 1) : Ui(ge(y, " ", "") + ";", r, n, d - 2), c);
|
|
7913
7923
|
break;
|
|
7914
7924
|
// @ ;
|
|
7915
7925
|
case 59:
|
|
7916
7926
|
y += ";";
|
|
7917
7927
|
// { rule/at-rule
|
|
7918
7928
|
default:
|
|
7919
|
-
if (lr(D = Bi(y, t, n, u, p, o, l,
|
|
7929
|
+
if (lr(D = Bi(y, t, n, u, p, o, l, w, k = [], _ = [], d), i), R === 123)
|
|
7920
7930
|
if (p === 0)
|
|
7921
|
-
mr(y, t, D, D,
|
|
7931
|
+
mr(y, t, D, D, k, i, d, l, _);
|
|
7922
7932
|
else
|
|
7923
7933
|
switch (h === 99 && Ve(y, 3) === 110 ? 100 : h) {
|
|
7924
7934
|
// d l m s
|
|
@@ -7926,25 +7936,25 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7926
7936
|
case 108:
|
|
7927
7937
|
case 109:
|
|
7928
7938
|
case 115:
|
|
7929
|
-
mr(e, D, D, r && lr(Bi(e, D, D, 0, 0, o, l,
|
|
7939
|
+
mr(e, D, D, r && lr(Bi(e, D, D, 0, 0, o, l, w, o, k = [], d), _), o, _, d, l, r ? k : _);
|
|
7930
7940
|
break;
|
|
7931
7941
|
default:
|
|
7932
7942
|
mr(y, D, D, D, [""], _, 0, l, _);
|
|
7933
7943
|
}
|
|
7934
7944
|
}
|
|
7935
|
-
u = p = v = 0,
|
|
7945
|
+
u = p = v = 0, f = C = 1, w = y = "", d = s;
|
|
7936
7946
|
break;
|
|
7937
7947
|
// :
|
|
7938
7948
|
case 58:
|
|
7939
|
-
|
|
7949
|
+
d = 1 + vt(y), v = b;
|
|
7940
7950
|
default:
|
|
7941
|
-
if (
|
|
7942
|
-
if (
|
|
7943
|
-
--
|
|
7944
|
-
else if (
|
|
7951
|
+
if (f < 1) {
|
|
7952
|
+
if (R == 123)
|
|
7953
|
+
--f;
|
|
7954
|
+
else if (R == 125 && f++ == 0 && xp() == 125)
|
|
7945
7955
|
continue;
|
|
7946
7956
|
}
|
|
7947
|
-
switch (y += Lr(
|
|
7957
|
+
switch (y += Lr(R), R * f) {
|
|
7948
7958
|
// &
|
|
7949
7959
|
case 38:
|
|
7950
7960
|
C = p > 0 ? 1 : (y += "\f", -1);
|
|
@@ -7955,19 +7965,19 @@ function mr(e, t, n, r, o, i, s, l, c) {
|
|
|
7955
7965
|
break;
|
|
7956
7966
|
// @
|
|
7957
7967
|
case 64:
|
|
7958
|
-
xt() === 45 && (y += hr(st())), h = xt(), p =
|
|
7968
|
+
xt() === 45 && (y += hr(st())), h = xt(), p = d = vt(w = y += Tp(pr())), R++;
|
|
7959
7969
|
break;
|
|
7960
7970
|
// -
|
|
7961
7971
|
case 45:
|
|
7962
|
-
b === 45 && vt(y) == 2 && (
|
|
7972
|
+
b === 45 && vt(y) == 2 && (f = 0);
|
|
7963
7973
|
}
|
|
7964
7974
|
}
|
|
7965
7975
|
return i;
|
|
7966
7976
|
}
|
|
7967
7977
|
function Bi(e, t, n, r, o, i, s, l, c, u, p) {
|
|
7968
|
-
for (var
|
|
7969
|
-
for (var C = 0,
|
|
7970
|
-
(
|
|
7978
|
+
for (var d = o - 1, h = o === 0 ? i : [""], v = Fo(h), b = 0, f = 0, x = 0; b < r; ++b)
|
|
7979
|
+
for (var C = 0, R = Fn(e, d + 1, d = mp(f = s[b])), w = e; C < v; ++C)
|
|
7980
|
+
(w = Xs(f > 0 ? h[C] + " " + R : ge(R, /&\f/g, h[C]))) && (c[x++] = w);
|
|
7971
7981
|
return Mr(e, t, n, o === 0 ? Io : l, c, u, p);
|
|
7972
7982
|
}
|
|
7973
7983
|
function kp(e, t, n) {
|
|
@@ -8235,9 +8245,9 @@ var Np = function(t, n, r, o) {
|
|
|
8235
8245
|
var n = t.key;
|
|
8236
8246
|
if (n === "css") {
|
|
8237
8247
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
8238
|
-
Array.prototype.forEach.call(r, function(
|
|
8239
|
-
var x =
|
|
8240
|
-
x.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
8248
|
+
Array.prototype.forEach.call(r, function(f) {
|
|
8249
|
+
var x = f.getAttribute("data-emotion");
|
|
8250
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
|
|
8241
8251
|
});
|
|
8242
8252
|
}
|
|
8243
8253
|
var o = t.stylisPlugins || Ip, i = {}, s, l = [];
|
|
@@ -8245,21 +8255,21 @@ var Np = function(t, n, r, o) {
|
|
|
8245
8255
|
// this means we will ignore elements which don't have a space in them which
|
|
8246
8256
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
8247
8257
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
8248
|
-
function(
|
|
8249
|
-
for (var x =
|
|
8258
|
+
function(f) {
|
|
8259
|
+
for (var x = f.getAttribute("data-emotion").split(" "), C = 1; C < x.length; C++)
|
|
8250
8260
|
i[x[C]] = !0;
|
|
8251
|
-
l.push(
|
|
8261
|
+
l.push(f);
|
|
8252
8262
|
}
|
|
8253
8263
|
);
|
|
8254
8264
|
var c, u = [Ap, Mp];
|
|
8255
8265
|
{
|
|
8256
|
-
var p,
|
|
8257
|
-
p.insert(
|
|
8258
|
-
})], h = Rp(u.concat(o,
|
|
8266
|
+
var p, d = [Op, $p(function(f) {
|
|
8267
|
+
p.insert(f);
|
|
8268
|
+
})], h = Rp(u.concat(o, d)), v = function(x) {
|
|
8259
8269
|
return pn(Ep(x), h);
|
|
8260
8270
|
};
|
|
8261
|
-
c = function(x, C,
|
|
8262
|
-
p =
|
|
8271
|
+
c = function(x, C, R, w) {
|
|
8272
|
+
p = R, v(x ? x + "{" + C.styles + "}" : C.styles), w && (b.inserted[C.name] = !0);
|
|
8263
8273
|
};
|
|
8264
8274
|
}
|
|
8265
8275
|
var b = {
|
|
@@ -8643,28 +8653,28 @@ function nh(e) {
|
|
|
8643
8653
|
contrastThreshold: n = 3,
|
|
8644
8654
|
tonalOffset: r = 0.2
|
|
8645
8655
|
} = e, o = Tt(e, Zp), i = e.primary || Gp(t), s = e.secondary || Jp(t), l = e.error || Xp(t), c = e.info || Qp(t), u = e.success || eh(t), p = e.warning || th(t);
|
|
8646
|
-
function f
|
|
8647
|
-
const x = bt.getContrastRatio(
|
|
8656
|
+
function d(f) {
|
|
8657
|
+
const x = bt.getContrastRatio(f, io.text.primary) >= n ? io.text.primary : qi.text.primary;
|
|
8648
8658
|
if (process.env.NODE_ENV !== "production") {
|
|
8649
|
-
const C = bt.getContrastRatio(
|
|
8650
|
-
C < 3 && console.error([`MUI: The contrast ratio of ${C}:1 for ${x} on ${
|
|
8659
|
+
const C = bt.getContrastRatio(f, x);
|
|
8660
|
+
C < 3 && console.error([`MUI: The contrast ratio of ${C}:1 for ${x} on ${f}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
8651
8661
|
`));
|
|
8652
8662
|
}
|
|
8653
8663
|
return x;
|
|
8654
8664
|
}
|
|
8655
8665
|
const h = ({
|
|
8656
|
-
color:
|
|
8666
|
+
color: f,
|
|
8657
8667
|
name: x,
|
|
8658
8668
|
mainShade: C = 500,
|
|
8659
|
-
lightShade:
|
|
8660
|
-
darkShade:
|
|
8669
|
+
lightShade: R = 300,
|
|
8670
|
+
darkShade: w = 700
|
|
8661
8671
|
}) => {
|
|
8662
|
-
if (
|
|
8672
|
+
if (f = z({}, f), !f.main && f[C] && (f.main = f[C]), !f.hasOwnProperty("main"))
|
|
8663
8673
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
8664
8674
|
The color object needs to have a \`main\` property or a \`${C}\` property.` : Dn(11, x ? ` (${x})` : "", C));
|
|
8665
|
-
if (typeof
|
|
8675
|
+
if (typeof f.main != "string")
|
|
8666
8676
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${x ? ` (${x})` : ""} provided to augmentColor(color) is invalid.
|
|
8667
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
8677
|
+
\`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
|
|
8668
8678
|
|
|
8669
8679
|
Did you intend to use one of the following approaches?
|
|
8670
8680
|
|
|
@@ -8676,8 +8686,8 @@ const theme1 = createTheme({ palette: {
|
|
|
8676
8686
|
|
|
8677
8687
|
const theme2 = createTheme({ palette: {
|
|
8678
8688
|
primary: { main: green[500] },
|
|
8679
|
-
} });` : Dn(12, x ? ` (${x})` : "", JSON.stringify(
|
|
8680
|
-
return Wi(
|
|
8689
|
+
} });` : Dn(12, x ? ` (${x})` : "", JSON.stringify(f.main)));
|
|
8690
|
+
return Wi(f, "light", R, r), Wi(f, "dark", w, r), f.contrastText || (f.contrastText = d(f.main)), f;
|
|
8681
8691
|
}, v = {
|
|
8682
8692
|
dark: io,
|
|
8683
8693
|
light: qi
|
|
@@ -8727,7 +8737,7 @@ const theme2 = createTheme({ palette: {
|
|
|
8727
8737
|
// the background and the text.
|
|
8728
8738
|
contrastThreshold: n,
|
|
8729
8739
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
8730
|
-
getContrastText:
|
|
8740
|
+
getContrastText: d,
|
|
8731
8741
|
// Generate a rich color object.
|
|
8732
8742
|
augmentColor: h,
|
|
8733
8743
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -8758,31 +8768,31 @@ function ih(e, t) {
|
|
|
8758
8768
|
htmlFontSize: u = 16,
|
|
8759
8769
|
// Apply the CSS properties to all the variants.
|
|
8760
8770
|
allVariants: p,
|
|
8761
|
-
pxToRem:
|
|
8771
|
+
pxToRem: d
|
|
8762
8772
|
} = n, h = Tt(n, rh);
|
|
8763
8773
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof u != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
8764
|
-
const v = o / 14, b =
|
|
8774
|
+
const v = o / 14, b = d || ((C) => `${C / u * v}rem`), f = (C, R, w, k, _) => z({
|
|
8765
8775
|
fontFamily: r,
|
|
8766
8776
|
fontWeight: C,
|
|
8767
|
-
fontSize: b(
|
|
8777
|
+
fontSize: b(R),
|
|
8768
8778
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
8769
|
-
lineHeight:
|
|
8779
|
+
lineHeight: w
|
|
8770
8780
|
}, r === Ki ? {
|
|
8771
|
-
letterSpacing: `${oh(
|
|
8781
|
+
letterSpacing: `${oh(k / R)}em`
|
|
8772
8782
|
} : {}, _, p), x = {
|
|
8773
|
-
h1:
|
|
8774
|
-
h2:
|
|
8775
|
-
h3:
|
|
8776
|
-
h4:
|
|
8777
|
-
h5:
|
|
8778
|
-
h6:
|
|
8779
|
-
subtitle1:
|
|
8780
|
-
subtitle2:
|
|
8781
|
-
body1:
|
|
8782
|
-
body2:
|
|
8783
|
-
button:
|
|
8784
|
-
caption:
|
|
8785
|
-
overline:
|
|
8783
|
+
h1: f(i, 96, 1.167, -1.5),
|
|
8784
|
+
h2: f(i, 60, 1.2, -0.5),
|
|
8785
|
+
h3: f(s, 48, 1.167, 0),
|
|
8786
|
+
h4: f(s, 34, 1.235, 0.25),
|
|
8787
|
+
h5: f(s, 24, 1.334, 0),
|
|
8788
|
+
h6: f(l, 20, 1.6, 0.15),
|
|
8789
|
+
subtitle1: f(s, 16, 1.75, 0.15),
|
|
8790
|
+
subtitle2: f(l, 14, 1.57, 0.1),
|
|
8791
|
+
body1: f(s, 16, 1.5, 0.15),
|
|
8792
|
+
body2: f(s, 14, 1.43, 0.15),
|
|
8793
|
+
button: f(l, 14, 1.75, 0.4, Hi),
|
|
8794
|
+
caption: f(s, 12, 1.66, 0.4),
|
|
8795
|
+
overline: f(s, 12, 2.66, 1, Hi),
|
|
8786
8796
|
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
8787
8797
|
inherit: {
|
|
8788
8798
|
fontFamily: "inherit",
|
|
@@ -8853,8 +8863,8 @@ function hh(e) {
|
|
|
8853
8863
|
delay: c = 0
|
|
8854
8864
|
} = i, u = Tt(i, uh);
|
|
8855
8865
|
if (process.env.NODE_ENV !== "production") {
|
|
8856
|
-
const p = (h) => typeof h == "string",
|
|
8857
|
-
!p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !
|
|
8866
|
+
const p = (h) => typeof h == "string", d = (h) => !isNaN(parseFloat(h));
|
|
8867
|
+
!p(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !d(s) && !p(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), p(l) || console.error('MUI: Argument "easing" must be a string.'), !d(c) && !p(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
8858
8868
|
`)), Object.keys(u).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`);
|
|
8859
8869
|
}
|
|
8860
8870
|
return (Array.isArray(o) ? o : [o]).map((p) => `${p} ${typeof s == "string" ? s : Yi(s)} ${l} ${typeof c == "string" ? c : Yi(c)}`).join(",");
|
|
@@ -8895,17 +8905,17 @@ function yh(e = {}, ...t) {
|
|
|
8895
8905
|
transitions: hh(o),
|
|
8896
8906
|
zIndex: z({}, mh)
|
|
8897
8907
|
});
|
|
8898
|
-
if (u = _t(u, s), u = t.reduce((p,
|
|
8899
|
-
const p = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"],
|
|
8908
|
+
if (u = _t(u, s), u = t.reduce((p, d) => _t(p, d), u), process.env.NODE_ENV !== "production") {
|
|
8909
|
+
const p = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], d = (h, v) => {
|
|
8900
8910
|
let b;
|
|
8901
8911
|
for (b in h) {
|
|
8902
|
-
const
|
|
8903
|
-
if (p.indexOf(b) !== -1 && Object.keys(
|
|
8912
|
+
const f = h[b];
|
|
8913
|
+
if (p.indexOf(b) !== -1 && Object.keys(f).length > 0) {
|
|
8904
8914
|
if (process.env.NODE_ENV !== "production") {
|
|
8905
8915
|
const x = Ao("", b);
|
|
8906
8916
|
console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${b}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${x}' syntax:`, JSON.stringify({
|
|
8907
8917
|
root: {
|
|
8908
|
-
[`&.${x}`]:
|
|
8918
|
+
[`&.${x}`]: f
|
|
8909
8919
|
}
|
|
8910
8920
|
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
8911
8921
|
`));
|
|
@@ -8916,12 +8926,12 @@ function yh(e = {}, ...t) {
|
|
|
8916
8926
|
};
|
|
8917
8927
|
Object.keys(u.components).forEach((h) => {
|
|
8918
8928
|
const v = u.components[h].styleOverrides;
|
|
8919
|
-
v && h.indexOf("Mui") === 0 &&
|
|
8929
|
+
v && h.indexOf("Mui") === 0 && d(v, h);
|
|
8920
8930
|
});
|
|
8921
8931
|
}
|
|
8922
|
-
return u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(
|
|
8932
|
+
return u.unstable_sxConfig = z({}, Hn, s == null ? void 0 : s.unstable_sxConfig), u.unstable_sx = function(d) {
|
|
8923
8933
|
return Pr({
|
|
8924
|
-
sx:
|
|
8934
|
+
sx: d,
|
|
8925
8935
|
theme: this
|
|
8926
8936
|
});
|
|
8927
8937
|
}, u;
|
|
@@ -8967,30 +8977,30 @@ function Oh() {
|
|
|
8967
8977
|
value: !0
|
|
8968
8978
|
}), Ut.default = D, Ut.shouldForwardProp = x, Ut.systemDefaultTheme = void 0;
|
|
8969
8979
|
var t = e(_h()), n = e(xh()), r = v(Ch), o = Sh, i = e(wh), s = e(Th), l = e(Eh), c = e(kh);
|
|
8970
|
-
const u = ["ownerState"], p = ["variants"],
|
|
8980
|
+
const u = ["ownerState"], p = ["variants"], d = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
8971
8981
|
function h(y) {
|
|
8972
8982
|
if (typeof WeakMap != "function") return null;
|
|
8973
|
-
var
|
|
8983
|
+
var T = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
|
|
8974
8984
|
return (h = function($) {
|
|
8975
|
-
return $ ? S :
|
|
8985
|
+
return $ ? S : T;
|
|
8976
8986
|
})(y);
|
|
8977
8987
|
}
|
|
8978
|
-
function v(y,
|
|
8988
|
+
function v(y, T) {
|
|
8979
8989
|
if (y && y.__esModule) return y;
|
|
8980
8990
|
if (y === null || typeof y != "object" && typeof y != "function") return { default: y };
|
|
8981
|
-
var S = h(
|
|
8991
|
+
var S = h(T);
|
|
8982
8992
|
if (S && S.has(y)) return S.get(y);
|
|
8983
|
-
var $ = { __proto__: null },
|
|
8984
|
-
for (var
|
|
8985
|
-
var B =
|
|
8986
|
-
B && (B.get || B.set) ? Object.defineProperty($,
|
|
8993
|
+
var $ = { __proto__: null }, N = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
8994
|
+
for (var X in y) if (X !== "default" && Object.prototype.hasOwnProperty.call(y, X)) {
|
|
8995
|
+
var B = N ? Object.getOwnPropertyDescriptor(y, X) : null;
|
|
8996
|
+
B && (B.get || B.set) ? Object.defineProperty($, X, B) : $[X] = y[X];
|
|
8987
8997
|
}
|
|
8988
8998
|
return $.default = y, S && S.set(y, $), $;
|
|
8989
8999
|
}
|
|
8990
9000
|
function b(y) {
|
|
8991
9001
|
return Object.keys(y).length === 0;
|
|
8992
9002
|
}
|
|
8993
|
-
function
|
|
9003
|
+
function f(y) {
|
|
8994
9004
|
return typeof y == "string" && // 96 is one less than the char code
|
|
8995
9005
|
// for "a" so this is checking that
|
|
8996
9006
|
// it's a lowercase character
|
|
@@ -8999,127 +9009,127 @@ function Oh() {
|
|
|
8999
9009
|
function x(y) {
|
|
9000
9010
|
return y !== "ownerState" && y !== "theme" && y !== "sx" && y !== "as";
|
|
9001
9011
|
}
|
|
9002
|
-
const C = Ut.systemDefaultTheme = (0, l.default)(),
|
|
9003
|
-
function
|
|
9012
|
+
const C = Ut.systemDefaultTheme = (0, l.default)(), R = (y) => y && y.charAt(0).toLowerCase() + y.slice(1);
|
|
9013
|
+
function w({
|
|
9004
9014
|
defaultTheme: y,
|
|
9005
|
-
theme:
|
|
9015
|
+
theme: T,
|
|
9006
9016
|
themeId: S
|
|
9007
9017
|
}) {
|
|
9008
|
-
return b(
|
|
9018
|
+
return b(T) ? y : T[S] || T;
|
|
9009
9019
|
}
|
|
9010
|
-
function
|
|
9011
|
-
return y ? (
|
|
9020
|
+
function k(y) {
|
|
9021
|
+
return y ? (T, S) => S[y] : null;
|
|
9012
9022
|
}
|
|
9013
|
-
function _(y,
|
|
9023
|
+
function _(y, T) {
|
|
9014
9024
|
let {
|
|
9015
9025
|
ownerState: S
|
|
9016
|
-
} =
|
|
9017
|
-
const
|
|
9026
|
+
} = T, $ = (0, n.default)(T, u);
|
|
9027
|
+
const N = typeof y == "function" ? y((0, t.default)({
|
|
9018
9028
|
ownerState: S
|
|
9019
9029
|
}, $)) : y;
|
|
9020
|
-
if (Array.isArray(
|
|
9021
|
-
return
|
|
9030
|
+
if (Array.isArray(N))
|
|
9031
|
+
return N.flatMap((X) => _(X, (0, t.default)({
|
|
9022
9032
|
ownerState: S
|
|
9023
9033
|
}, $)));
|
|
9024
|
-
if (
|
|
9034
|
+
if (N && typeof N == "object" && Array.isArray(N.variants)) {
|
|
9025
9035
|
const {
|
|
9026
|
-
variants:
|
|
9027
|
-
} =
|
|
9028
|
-
let
|
|
9029
|
-
return
|
|
9030
|
-
let
|
|
9031
|
-
typeof
|
|
9036
|
+
variants: X = []
|
|
9037
|
+
} = N;
|
|
9038
|
+
let Y = (0, n.default)(N, p);
|
|
9039
|
+
return X.forEach((V) => {
|
|
9040
|
+
let ie = !0;
|
|
9041
|
+
typeof V.props == "function" ? ie = V.props((0, t.default)({
|
|
9032
9042
|
ownerState: S
|
|
9033
|
-
}, $, S)) : Object.keys(
|
|
9034
|
-
(S == null ? void 0 : S[
|
|
9035
|
-
}),
|
|
9043
|
+
}, $, S)) : Object.keys(V.props).forEach((re) => {
|
|
9044
|
+
(S == null ? void 0 : S[re]) !== V.props[re] && $[re] !== V.props[re] && (ie = !1);
|
|
9045
|
+
}), ie && (Array.isArray(Y) || (Y = [Y]), Y.push(typeof V.style == "function" ? V.style((0, t.default)({
|
|
9036
9046
|
ownerState: S
|
|
9037
|
-
}, $, S)) :
|
|
9038
|
-
}),
|
|
9047
|
+
}, $, S)) : V.style));
|
|
9048
|
+
}), Y;
|
|
9039
9049
|
}
|
|
9040
|
-
return
|
|
9050
|
+
return N;
|
|
9041
9051
|
}
|
|
9042
9052
|
function D(y = {}) {
|
|
9043
9053
|
const {
|
|
9044
|
-
themeId:
|
|
9054
|
+
themeId: T,
|
|
9045
9055
|
defaultTheme: S = C,
|
|
9046
9056
|
rootShouldForwardProp: $ = x,
|
|
9047
|
-
slotShouldForwardProp:
|
|
9048
|
-
} = y,
|
|
9049
|
-
theme:
|
|
9057
|
+
slotShouldForwardProp: N = x
|
|
9058
|
+
} = y, X = (B) => (0, c.default)((0, t.default)({}, B, {
|
|
9059
|
+
theme: w((0, t.default)({}, B, {
|
|
9050
9060
|
defaultTheme: S,
|
|
9051
|
-
themeId:
|
|
9061
|
+
themeId: T
|
|
9052
9062
|
}))
|
|
9053
9063
|
}));
|
|
9054
|
-
return
|
|
9064
|
+
return X.__mui_systemSx = !0, (B, Y = {}) => {
|
|
9055
9065
|
(0, r.internal_processStyles)(B, (U) => U.filter((Z) => !(Z != null && Z.__mui_systemSx)));
|
|
9056
9066
|
const {
|
|
9057
|
-
name:
|
|
9058
|
-
slot:
|
|
9059
|
-
skipVariantsResolver:
|
|
9067
|
+
name: V,
|
|
9068
|
+
slot: ie,
|
|
9069
|
+
skipVariantsResolver: re,
|
|
9060
9070
|
skipSx: Ee,
|
|
9061
9071
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
9062
9072
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9063
|
-
overridesResolver: je =
|
|
9064
|
-
} =
|
|
9073
|
+
overridesResolver: je = k(R(ie))
|
|
9074
|
+
} = Y, O = (0, n.default)(Y, d), A = re !== void 0 ? re : (
|
|
9065
9075
|
// TODO v6: remove `Root` in the next major release
|
|
9066
9076
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
9067
|
-
|
|
9068
|
-
),
|
|
9069
|
-
let
|
|
9070
|
-
process.env.NODE_ENV !== "production" &&
|
|
9077
|
+
ie && ie !== "Root" && ie !== "root" || !1
|
|
9078
|
+
), Q = Ee || !1;
|
|
9079
|
+
let q;
|
|
9080
|
+
process.env.NODE_ENV !== "production" && V && (q = `${V}-${R(ie || "Root")}`);
|
|
9071
9081
|
let F = x;
|
|
9072
|
-
|
|
9073
|
-
const
|
|
9082
|
+
ie === "Root" || ie === "root" ? F = $ : ie ? F = N : f(B) && (F = void 0);
|
|
9083
|
+
const ee = (0, r.default)(B, (0, t.default)({
|
|
9074
9084
|
shouldForwardProp: F,
|
|
9075
|
-
label:
|
|
9076
|
-
}, O)),
|
|
9077
|
-
theme:
|
|
9085
|
+
label: q
|
|
9086
|
+
}, O)), K = (U) => typeof U == "function" && U.__emotion_real !== U || (0, o.isPlainObject)(U) ? (Z) => _(U, (0, t.default)({}, Z, {
|
|
9087
|
+
theme: w({
|
|
9078
9088
|
theme: Z.theme,
|
|
9079
9089
|
defaultTheme: S,
|
|
9080
|
-
themeId:
|
|
9090
|
+
themeId: T
|
|
9081
9091
|
})
|
|
9082
|
-
})) : U,
|
|
9083
|
-
let
|
|
9084
|
-
const be = Z ? Z.map(
|
|
9085
|
-
|
|
9086
|
-
const
|
|
9092
|
+
})) : U, H = (U, ...Z) => {
|
|
9093
|
+
let ne = K(U);
|
|
9094
|
+
const be = Z ? Z.map(K) : [];
|
|
9095
|
+
V && je && be.push((ae) => {
|
|
9096
|
+
const le = w((0, t.default)({}, ae, {
|
|
9087
9097
|
defaultTheme: S,
|
|
9088
|
-
themeId:
|
|
9098
|
+
themeId: T
|
|
9089
9099
|
}));
|
|
9090
|
-
if (!
|
|
9100
|
+
if (!le.components || !le.components[V] || !le.components[V].styleOverrides)
|
|
9091
9101
|
return null;
|
|
9092
|
-
const Oe =
|
|
9102
|
+
const Oe = le.components[V].styleOverrides, He = {};
|
|
9093
9103
|
return Object.entries(Oe).forEach(([Ke, gt]) => {
|
|
9094
|
-
He[Ke] = _(gt, (0, t.default)({},
|
|
9095
|
-
theme:
|
|
9104
|
+
He[Ke] = _(gt, (0, t.default)({}, ae, {
|
|
9105
|
+
theme: le
|
|
9096
9106
|
}));
|
|
9097
|
-
}), je(
|
|
9098
|
-
}),
|
|
9099
|
-
var
|
|
9100
|
-
const Oe =
|
|
9107
|
+
}), je(ae, He);
|
|
9108
|
+
}), V && !A && be.push((ae) => {
|
|
9109
|
+
var le;
|
|
9110
|
+
const Oe = w((0, t.default)({}, ae, {
|
|
9101
9111
|
defaultTheme: S,
|
|
9102
|
-
themeId:
|
|
9103
|
-
})), He = Oe == null || (
|
|
9112
|
+
themeId: T
|
|
9113
|
+
})), He = Oe == null || (le = Oe.components) == null || (le = le[V]) == null ? void 0 : le.variants;
|
|
9104
9114
|
return _({
|
|
9105
9115
|
variants: He
|
|
9106
|
-
}, (0, t.default)({},
|
|
9116
|
+
}, (0, t.default)({}, ae, {
|
|
9107
9117
|
theme: Oe
|
|
9108
9118
|
}));
|
|
9109
|
-
}),
|
|
9119
|
+
}), Q || be.push(X);
|
|
9110
9120
|
const j = be.length - Z.length;
|
|
9111
9121
|
if (Array.isArray(U) && j > 0) {
|
|
9112
|
-
const
|
|
9113
|
-
|
|
9122
|
+
const ae = new Array(j).fill("");
|
|
9123
|
+
ne = [...U, ...ae], ne.raw = [...U.raw, ...ae];
|
|
9114
9124
|
}
|
|
9115
|
-
const _e =
|
|
9125
|
+
const _e = ee(ne, ...be);
|
|
9116
9126
|
if (process.env.NODE_ENV !== "production") {
|
|
9117
|
-
let
|
|
9118
|
-
|
|
9127
|
+
let ae;
|
|
9128
|
+
V && (ae = `${V}${(0, i.default)(ie || "")}`), ae === void 0 && (ae = `Styled(${(0, s.default)(B)})`), _e.displayName = ae;
|
|
9119
9129
|
}
|
|
9120
9130
|
return B.muiName && (_e.muiName = B.muiName), _e;
|
|
9121
9131
|
};
|
|
9122
|
-
return
|
|
9132
|
+
return ee.withConfig && (H.withConfig = ee.withConfig), H;
|
|
9123
9133
|
};
|
|
9124
9134
|
}
|
|
9125
9135
|
return Ut;
|
|
@@ -9721,51 +9731,51 @@ const zh = Ht("span", {
|
|
|
9721
9731
|
}, Yh = ({
|
|
9722
9732
|
children: e
|
|
9723
9733
|
}) => e, sa = /* @__PURE__ */ J.forwardRef(function(t, n) {
|
|
9724
|
-
var r, o, i, s, l, c, u, p,
|
|
9725
|
-
const
|
|
9734
|
+
var r, o, i, s, l, c, u, p, d, h, v, b, f, x, C, R, w, k, _, D, y, T, S, $;
|
|
9735
|
+
const N = Mh({
|
|
9726
9736
|
props: t,
|
|
9727
9737
|
name: "MuiSlider"
|
|
9728
|
-
}),
|
|
9738
|
+
}), X = Mf(), {
|
|
9729
9739
|
"aria-label": B,
|
|
9730
|
-
"aria-valuetext":
|
|
9731
|
-
"aria-labelledby":
|
|
9740
|
+
"aria-valuetext": Y,
|
|
9741
|
+
"aria-labelledby": V,
|
|
9732
9742
|
// eslint-disable-next-line react/prop-types
|
|
9733
|
-
component:
|
|
9734
|
-
components:
|
|
9743
|
+
component: ie = "span",
|
|
9744
|
+
components: re = {},
|
|
9735
9745
|
componentsProps: Ee = {},
|
|
9736
9746
|
color: je = "primary",
|
|
9737
9747
|
classes: O,
|
|
9738
9748
|
className: A,
|
|
9739
|
-
disableSwap:
|
|
9740
|
-
disabled:
|
|
9749
|
+
disableSwap: Q = !1,
|
|
9750
|
+
disabled: q = !1,
|
|
9741
9751
|
getAriaLabel: F,
|
|
9742
|
-
getAriaValueText:
|
|
9743
|
-
marks:
|
|
9744
|
-
max:
|
|
9752
|
+
getAriaValueText: ee,
|
|
9753
|
+
marks: K = !1,
|
|
9754
|
+
max: H = 100,
|
|
9745
9755
|
min: U = 0,
|
|
9746
9756
|
orientation: Z = "horizontal",
|
|
9747
|
-
shiftStep:
|
|
9757
|
+
shiftStep: ne = 10,
|
|
9748
9758
|
size: be = "medium",
|
|
9749
9759
|
step: j = 1,
|
|
9750
9760
|
scale: _e = Xi,
|
|
9751
|
-
slotProps:
|
|
9752
|
-
slots:
|
|
9761
|
+
slotProps: ae,
|
|
9762
|
+
slots: le,
|
|
9753
9763
|
track: Oe = "normal",
|
|
9754
9764
|
valueLabelDisplay: He = "off",
|
|
9755
9765
|
valueLabelFormat: Ke = Xi
|
|
9756
|
-
} =
|
|
9757
|
-
isRtl:
|
|
9758
|
-
max:
|
|
9766
|
+
} = N, gt = Tt(N, Fh), Fe = z({}, N, {
|
|
9767
|
+
isRtl: X,
|
|
9768
|
+
max: H,
|
|
9759
9769
|
min: U,
|
|
9760
9770
|
classes: O,
|
|
9761
|
-
disabled:
|
|
9762
|
-
disableSwap:
|
|
9771
|
+
disabled: q,
|
|
9772
|
+
disableSwap: Q,
|
|
9763
9773
|
orientation: Z,
|
|
9764
|
-
marks:
|
|
9774
|
+
marks: K,
|
|
9765
9775
|
color: je,
|
|
9766
9776
|
size: be,
|
|
9767
9777
|
step: j,
|
|
9768
|
-
shiftStep:
|
|
9778
|
+
shiftStep: ne,
|
|
9769
9779
|
scale: _e,
|
|
9770
9780
|
track: Oe,
|
|
9771
9781
|
valueLabelDisplay: He,
|
|
@@ -9780,7 +9790,7 @@ const zh = Ht("span", {
|
|
|
9780
9790
|
axis: kt,
|
|
9781
9791
|
focusedThumbIndex: P,
|
|
9782
9792
|
range: I,
|
|
9783
|
-
dragging:
|
|
9793
|
+
dragging: W,
|
|
9784
9794
|
marks: de,
|
|
9785
9795
|
values: pe,
|
|
9786
9796
|
trackOffset: fe,
|
|
@@ -9789,14 +9799,14 @@ const zh = Ht("span", {
|
|
|
9789
9799
|
} = gd(z({}, Fe, {
|
|
9790
9800
|
rootRef: n
|
|
9791
9801
|
}));
|
|
9792
|
-
Fe.marked = de.length > 0 && de.some((G) => G.label), Fe.dragging =
|
|
9793
|
-
const he = Kh(Fe), Je = (r = (o =
|
|
9802
|
+
Fe.marked = de.length > 0 && de.some((G) => G.label), Fe.dragging = W, Fe.focusedThumbIndex = P;
|
|
9803
|
+
const he = Kh(Fe), Je = (r = (o = le == null ? void 0 : le.root) != null ? o : re.Root) != null ? r : zh, yt = (i = (s = le == null ? void 0 : le.rail) != null ? s : re.Rail) != null ? i : Bh, wn = (l = (c = le == null ? void 0 : le.track) != null ? c : re.Track) != null ? l : Uh, Ct = (u = (p = le == null ? void 0 : le.thumb) != null ? p : re.Thumb) != null ? u : Vh, Yt = (d = (h = le == null ? void 0 : le.valueLabel) != null ? h : re.ValueLabel) != null ? d : qh, It = (v = (b = le == null ? void 0 : le.mark) != null ? b : re.Mark) != null ? v : Wh, Zt = (f = (x = le == null ? void 0 : le.markLabel) != null ? x : re.MarkLabel) != null ? f : Hh, Yn = (C = (R = le == null ? void 0 : le.input) != null ? R : re.Input) != null ? C : "input", Gt = (w = ae == null ? void 0 : ae.root) != null ? w : Ee.root, Nr = (k = ae == null ? void 0 : ae.rail) != null ? k : Ee.rail, Jt = (_ = ae == null ? void 0 : ae.track) != null ? _ : Ee.track, Xt = (D = ae == null ? void 0 : ae.thumb) != null ? D : Ee.thumb, Tn = (y = ae == null ? void 0 : ae.valueLabel) != null ? y : Ee.valueLabel, Ir = (T = ae == null ? void 0 : ae.mark) != null ? T : Ee.mark, Zn = (S = ae == null ? void 0 : ae.markLabel) != null ? S : Ee.markLabel, Gn = ($ = ae == null ? void 0 : ae.input) != null ? $ : Ee.input, Dr = Rt({
|
|
9794
9804
|
elementType: Je,
|
|
9795
9805
|
getSlotProps: Nt,
|
|
9796
9806
|
externalSlotProps: Gt,
|
|
9797
9807
|
externalForwardedProps: gt,
|
|
9798
9808
|
additionalProps: z({}, Nh(Je) && {
|
|
9799
|
-
as:
|
|
9809
|
+
as: ie
|
|
9800
9810
|
}),
|
|
9801
9811
|
ownerState: z({}, Fe, Gt == null ? void 0 : Gt.ownerState),
|
|
9802
9812
|
className: [he.root, A]
|
|
@@ -9824,72 +9834,72 @@ const zh = Ht("span", {
|
|
|
9824
9834
|
externalSlotProps: Tn,
|
|
9825
9835
|
ownerState: z({}, Fe, Tn == null ? void 0 : Tn.ownerState),
|
|
9826
9836
|
className: he.valueLabel
|
|
9827
|
-
}),
|
|
9837
|
+
}), E = Rt({
|
|
9828
9838
|
elementType: It,
|
|
9829
9839
|
externalSlotProps: Ir,
|
|
9830
9840
|
ownerState: Fe,
|
|
9831
9841
|
className: he.mark
|
|
9832
|
-
}),
|
|
9842
|
+
}), M = Rt({
|
|
9833
9843
|
elementType: Zt,
|
|
9834
9844
|
externalSlotProps: Zn,
|
|
9835
9845
|
ownerState: Fe,
|
|
9836
9846
|
className: he.markLabel
|
|
9837
|
-
}),
|
|
9847
|
+
}), te = Rt({
|
|
9838
9848
|
elementType: Yn,
|
|
9839
9849
|
getSlotProps: xn,
|
|
9840
9850
|
externalSlotProps: Gn,
|
|
9841
9851
|
ownerState: Fe
|
|
9842
9852
|
});
|
|
9843
9853
|
return /* @__PURE__ */ m.jsxs(Je, z({}, Dr, {
|
|
9844
|
-
children: [/* @__PURE__ */ m.jsx(yt, z({}, Fr)), /* @__PURE__ */ m.jsx(wn, z({}, zr)), de.filter((G) => G.value >= U && G.value <=
|
|
9845
|
-
const ue = vr(G.value, U,
|
|
9854
|
+
children: [/* @__PURE__ */ m.jsx(yt, z({}, Fr)), /* @__PURE__ */ m.jsx(wn, z({}, zr)), de.filter((G) => G.value >= U && G.value <= H).map((G, oe) => {
|
|
9855
|
+
const ue = vr(G.value, U, H), ce = Et[kt].offset(ue);
|
|
9846
9856
|
let we;
|
|
9847
9857
|
return Oe === !1 ? we = pe.indexOf(G.value) !== -1 : we = Oe === "normal" && (I ? G.value >= pe[0] && G.value <= pe[pe.length - 1] : G.value <= pe[0]) || Oe === "inverted" && (I ? G.value <= pe[0] || G.value >= pe[pe.length - 1] : G.value >= pe[0]), /* @__PURE__ */ m.jsxs(J.Fragment, {
|
|
9848
9858
|
children: [/* @__PURE__ */ m.jsx(It, z({
|
|
9849
|
-
"data-index":
|
|
9850
|
-
},
|
|
9859
|
+
"data-index": oe
|
|
9860
|
+
}, E, !Nn(It) && {
|
|
9851
9861
|
markActive: we
|
|
9852
9862
|
}, {
|
|
9853
|
-
style: z({},
|
|
9854
|
-
className: Pt(
|
|
9863
|
+
style: z({}, ce, E.style),
|
|
9864
|
+
className: Pt(E.className, we && he.markActive)
|
|
9855
9865
|
})), G.label != null ? /* @__PURE__ */ m.jsx(Zt, z({
|
|
9856
9866
|
"aria-hidden": !0,
|
|
9857
|
-
"data-index":
|
|
9858
|
-
},
|
|
9867
|
+
"data-index": oe
|
|
9868
|
+
}, M, !Nn(Zt) && {
|
|
9859
9869
|
markLabelActive: we
|
|
9860
9870
|
}, {
|
|
9861
|
-
style: z({},
|
|
9862
|
-
className: Pt(he.markLabel,
|
|
9871
|
+
style: z({}, ce, M.style),
|
|
9872
|
+
className: Pt(he.markLabel, M.className, we && he.markLabelActive),
|
|
9863
9873
|
children: G.label
|
|
9864
9874
|
})) : null]
|
|
9865
|
-
},
|
|
9866
|
-
}), pe.map((G,
|
|
9867
|
-
const ue = vr(G, U,
|
|
9875
|
+
}, oe);
|
|
9876
|
+
}), pe.map((G, oe) => {
|
|
9877
|
+
const ue = vr(G, U, H), ce = Et[kt].offset(ue), we = He === "off" ? Yh : Yt;
|
|
9868
9878
|
return (
|
|
9869
9879
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
9870
9880
|
/* @__PURE__ */ m.jsx(we, z({}, !Nn(we) && {
|
|
9871
9881
|
valueLabelFormat: Ke,
|
|
9872
9882
|
valueLabelDisplay: He,
|
|
9873
|
-
value: typeof Ke == "function" ? Ke(_e(G),
|
|
9874
|
-
index:
|
|
9875
|
-
open: Sn ===
|
|
9876
|
-
disabled:
|
|
9883
|
+
value: typeof Ke == "function" ? Ke(_e(G), oe) : Ke,
|
|
9884
|
+
index: oe,
|
|
9885
|
+
open: Sn === oe || Kt === oe || He === "on",
|
|
9886
|
+
disabled: q
|
|
9877
9887
|
}, g, {
|
|
9878
9888
|
children: /* @__PURE__ */ m.jsx(Ct, z({
|
|
9879
|
-
"data-index":
|
|
9889
|
+
"data-index": oe
|
|
9880
9890
|
}, En, {
|
|
9881
|
-
className: Pt(he.thumb, En.className, Kt ===
|
|
9882
|
-
style: z({},
|
|
9891
|
+
className: Pt(he.thumb, En.className, Kt === oe && he.active, P === oe && he.focusVisible),
|
|
9892
|
+
style: z({}, ce, at(oe), En.style),
|
|
9883
9893
|
children: /* @__PURE__ */ m.jsx(Yn, z({
|
|
9884
|
-
"data-index":
|
|
9885
|
-
"aria-label": F ? F(
|
|
9894
|
+
"data-index": oe,
|
|
9895
|
+
"aria-label": F ? F(oe) : B,
|
|
9886
9896
|
"aria-valuenow": _e(G),
|
|
9887
|
-
"aria-labelledby":
|
|
9888
|
-
"aria-valuetext":
|
|
9889
|
-
value: pe[
|
|
9890
|
-
},
|
|
9897
|
+
"aria-labelledby": V,
|
|
9898
|
+
"aria-valuetext": ee ? ee(_e(G), oe) : Y,
|
|
9899
|
+
value: pe[oe]
|
|
9900
|
+
}, te))
|
|
9891
9901
|
}))
|
|
9892
|
-
}),
|
|
9902
|
+
}), oe)
|
|
9893
9903
|
);
|
|
9894
9904
|
})]
|
|
9895
9905
|
}));
|
|
@@ -10166,30 +10176,30 @@ const Zh = "_slider_a19yo_2", Gh = "_playButton_a19yo_17", Jh = "_hover_a19yo_20
|
|
|
10166
10176
|
sliderOpen: Xh,
|
|
10167
10177
|
sliderResults: Qh
|
|
10168
10178
|
}, em = ({ onResults: e = !1, defaultYear: t = 2025, firstYear: n = 2025, lastYear: r = 2050, zIndex: o = 10, rightBarOpen: i = !1 }) => {
|
|
10169
|
-
const [s, l] = We(t), c = es(), u = (C,
|
|
10170
|
-
l(
|
|
10171
|
-
}, [p,
|
|
10172
|
-
|
|
10179
|
+
const [s, l] = We(t), c = es(), u = (C, R) => {
|
|
10180
|
+
l(R), c(to(R - 2e3));
|
|
10181
|
+
}, [p, d] = We(!1), h = () => {
|
|
10182
|
+
d(!0);
|
|
10173
10183
|
}, v = () => {
|
|
10174
|
-
|
|
10184
|
+
d(!1);
|
|
10175
10185
|
};
|
|
10176
|
-
((C,
|
|
10177
|
-
const
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
}, [C]),
|
|
10181
|
-
function
|
|
10182
|
-
|
|
10186
|
+
((C, R) => {
|
|
10187
|
+
const w = De();
|
|
10188
|
+
se(() => {
|
|
10189
|
+
w.current = C;
|
|
10190
|
+
}, [C]), se(() => {
|
|
10191
|
+
function k() {
|
|
10192
|
+
w.current();
|
|
10183
10193
|
}
|
|
10184
10194
|
{
|
|
10185
|
-
let _ = setInterval(
|
|
10195
|
+
let _ = setInterval(k, R);
|
|
10186
10196
|
return () => clearInterval(_);
|
|
10187
10197
|
}
|
|
10188
|
-
}, [
|
|
10198
|
+
}, [R]);
|
|
10189
10199
|
})(() => {
|
|
10190
10200
|
p && (s != 2050 ? (l(s + 1), c(to(s - 2e3 + 1))) : (l(2025), c(to(25))));
|
|
10191
10201
|
}, 1e3);
|
|
10192
|
-
const
|
|
10202
|
+
const f = fa({
|
|
10193
10203
|
palette: {
|
|
10194
10204
|
primary: {
|
|
10195
10205
|
main: "#605b56"
|
|
@@ -10217,7 +10227,7 @@ const Zh = "_slider_a19yo_2", Gh = "_playButton_a19yo_17", Jh = "_hover_a19yo_20
|
|
|
10217
10227
|
{ label: "", value: 2041 },
|
|
10218
10228
|
{ label: "", value: 2050 }
|
|
10219
10229
|
];
|
|
10220
|
-
return /* @__PURE__ */ m.jsx(va, { theme:
|
|
10230
|
+
return /* @__PURE__ */ m.jsx(va, { theme: f, children: /* @__PURE__ */ m.jsxs(
|
|
10221
10231
|
da,
|
|
10222
10232
|
{
|
|
10223
10233
|
sx: { width: 400 },
|