@syntrologie/adapt-nav 2.27.0 → 2.29.0
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/NavWidgetLit.d.ts +7 -0
- package/dist/NavWidgetLit.d.ts.map +1 -1
- package/dist/cdn.d.ts +55 -0
- package/dist/cdn.d.ts.map +1 -0
- package/dist/cdn.js +33 -0
- package/dist/cdn.js.map +7 -0
- package/dist/chunk-VG3E3ALH.js +668 -0
- package/dist/chunk-VG3E3ALH.js.map +7 -0
- package/dist/{chunk-CAJZJCHL.js → chunk-XO4TLMHA.js} +187 -7
- package/dist/chunk-XO4TLMHA.js.map +7 -0
- package/dist/editor.d.ts +1 -2
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +647 -1472
- package/dist/editor.js.map +3 -3
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +8 -622
- package/dist/runtime.js.map +4 -4
- package/dist/schema.d.ts +107 -76
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/schema.js.map +2 -2
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -1
- package/dist/chunk-7DTOSQNC.js +0 -43
- package/dist/chunk-7DTOSQNC.js.map +0 -7
- package/dist/chunk-CAJZJCHL.js.map +0 -7
package/dist/editor.js
CHANGED
|
@@ -1,977 +1,490 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS,
|
|
3
|
-
__toESM
|
|
4
|
-
|
|
3
|
+
__toESM,
|
|
4
|
+
normalizeRoute,
|
|
5
|
+
routesMatch
|
|
6
|
+
} from "./chunk-XO4TLMHA.js";
|
|
5
7
|
|
|
6
|
-
// ../../../node_modules/react/cjs/react.
|
|
7
|
-
var
|
|
8
|
-
"../../../node_modules/react/cjs/react.
|
|
8
|
+
// ../../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
9
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
10
|
+
"../../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
9
11
|
"use strict";
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if ("string" === typeof type) return type;
|
|
80
|
-
switch (type) {
|
|
81
|
-
case REACT_FRAGMENT_TYPE:
|
|
82
|
-
return "Fragment";
|
|
83
|
-
case REACT_PROFILER_TYPE:
|
|
84
|
-
return "Profiler";
|
|
85
|
-
case REACT_STRICT_MODE_TYPE:
|
|
86
|
-
return "StrictMode";
|
|
87
|
-
case REACT_SUSPENSE_TYPE:
|
|
88
|
-
return "Suspense";
|
|
89
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
90
|
-
return "SuspenseList";
|
|
91
|
-
case REACT_ACTIVITY_TYPE:
|
|
92
|
-
return "Activity";
|
|
93
|
-
}
|
|
94
|
-
if ("object" === typeof type)
|
|
95
|
-
switch ("number" === typeof type.tag && console.error(
|
|
96
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
97
|
-
), type.$$typeof) {
|
|
98
|
-
case REACT_PORTAL_TYPE:
|
|
99
|
-
return "Portal";
|
|
100
|
-
case REACT_CONTEXT_TYPE:
|
|
101
|
-
return type.displayName || "Context";
|
|
102
|
-
case REACT_CONSUMER_TYPE:
|
|
103
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
104
|
-
case REACT_FORWARD_REF_TYPE:
|
|
105
|
-
var innerType = type.render;
|
|
106
|
-
type = type.displayName;
|
|
107
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
108
|
-
return type;
|
|
109
|
-
case REACT_MEMO_TYPE:
|
|
110
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
111
|
-
case REACT_LAZY_TYPE:
|
|
112
|
-
innerType = type._payload;
|
|
113
|
-
type = type._init;
|
|
114
|
-
try {
|
|
115
|
-
return getComponentNameFromType(type(innerType));
|
|
116
|
-
} catch (x) {
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
function getTaskName(type) {
|
|
122
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
123
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
124
|
-
return "<...>";
|
|
125
|
-
try {
|
|
126
|
-
var name = getComponentNameFromType(type);
|
|
127
|
-
return name ? "<" + name + ">" : "<...>";
|
|
128
|
-
} catch (x) {
|
|
129
|
-
return "<...>";
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
function getOwner() {
|
|
133
|
-
var dispatcher = ReactSharedInternals.A;
|
|
134
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
135
|
-
}
|
|
136
|
-
function UnknownOwner() {
|
|
137
|
-
return Error("react-stack-top-frame");
|
|
138
|
-
}
|
|
139
|
-
function hasValidKey(config) {
|
|
140
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
141
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
142
|
-
if (getter && getter.isReactWarning) return false;
|
|
143
|
-
}
|
|
144
|
-
return void 0 !== config.key;
|
|
145
|
-
}
|
|
146
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
147
|
-
function warnAboutAccessingKey() {
|
|
148
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
149
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
150
|
-
displayName
|
|
151
|
-
));
|
|
152
|
-
}
|
|
153
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
154
|
-
Object.defineProperty(props, "key", {
|
|
155
|
-
get: warnAboutAccessingKey,
|
|
156
|
-
configurable: true
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
160
|
-
var componentName = getComponentNameFromType(this.type);
|
|
161
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
162
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
163
|
-
));
|
|
164
|
-
componentName = this.props.ref;
|
|
165
|
-
return void 0 !== componentName ? componentName : null;
|
|
166
|
-
}
|
|
167
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
168
|
-
var refProp = props.ref;
|
|
169
|
-
type = {
|
|
170
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
171
|
-
type,
|
|
172
|
-
key,
|
|
173
|
-
props,
|
|
174
|
-
_owner: owner
|
|
175
|
-
};
|
|
176
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
177
|
-
enumerable: false,
|
|
178
|
-
get: elementRefGetterWithDeprecationWarning
|
|
179
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
180
|
-
type._store = {};
|
|
181
|
-
Object.defineProperty(type._store, "validated", {
|
|
182
|
-
configurable: false,
|
|
183
|
-
enumerable: false,
|
|
184
|
-
writable: true,
|
|
185
|
-
value: 0
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
188
|
-
configurable: false,
|
|
189
|
-
enumerable: false,
|
|
190
|
-
writable: true,
|
|
191
|
-
value: null
|
|
192
|
-
});
|
|
193
|
-
Object.defineProperty(type, "_debugStack", {
|
|
194
|
-
configurable: false,
|
|
195
|
-
enumerable: false,
|
|
196
|
-
writable: true,
|
|
197
|
-
value: debugStack
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(type, "_debugTask", {
|
|
200
|
-
configurable: false,
|
|
201
|
-
enumerable: false,
|
|
202
|
-
writable: true,
|
|
203
|
-
value: debugTask
|
|
204
|
-
});
|
|
205
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
206
|
-
return type;
|
|
12
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
13
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
14
|
+
function jsxProd(type, config, maybeKey) {
|
|
15
|
+
var key = null;
|
|
16
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
17
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
18
|
+
if ("key" in config) {
|
|
19
|
+
maybeKey = {};
|
|
20
|
+
for (var propName in config)
|
|
21
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
22
|
+
} else maybeKey = config;
|
|
23
|
+
config = maybeKey.ref;
|
|
24
|
+
return {
|
|
25
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
26
|
+
type,
|
|
27
|
+
key,
|
|
28
|
+
ref: void 0 !== config ? config : null,
|
|
29
|
+
props: maybeKey
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
33
|
+
exports.jsx = jsxProd;
|
|
34
|
+
exports.jsxs = jsxProd;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// ../../../node_modules/react/jsx-runtime.js
|
|
39
|
+
var require_jsx_runtime = __commonJS({
|
|
40
|
+
"../../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
41
|
+
"use strict";
|
|
42
|
+
if (true) {
|
|
43
|
+
module.exports = require_react_jsx_runtime_production();
|
|
44
|
+
} else {
|
|
45
|
+
module.exports = null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// ../../../node_modules/react/cjs/react.production.js
|
|
51
|
+
var require_react_production = __commonJS({
|
|
52
|
+
"../../../node_modules/react/cjs/react.production.js"(exports) {
|
|
53
|
+
"use strict";
|
|
54
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
55
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
56
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
57
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
58
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
59
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
60
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
61
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
62
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
63
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
64
|
+
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
65
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
66
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
67
|
+
function getIteratorFn(maybeIterable) {
|
|
68
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
69
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
70
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
71
|
+
}
|
|
72
|
+
var ReactNoopUpdateQueue = {
|
|
73
|
+
isMounted: function() {
|
|
74
|
+
return false;
|
|
75
|
+
},
|
|
76
|
+
enqueueForceUpdate: function() {
|
|
77
|
+
},
|
|
78
|
+
enqueueReplaceState: function() {
|
|
79
|
+
},
|
|
80
|
+
enqueueSetState: function() {
|
|
207
81
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
82
|
+
};
|
|
83
|
+
var assign = Object.assign;
|
|
84
|
+
var emptyObject = {};
|
|
85
|
+
function Component(props, context, updater) {
|
|
86
|
+
this.props = props;
|
|
87
|
+
this.context = context;
|
|
88
|
+
this.refs = emptyObject;
|
|
89
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
90
|
+
}
|
|
91
|
+
Component.prototype.isReactComponent = {};
|
|
92
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
93
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
94
|
+
throw Error(
|
|
95
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
216
96
|
);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
case REACT_LAZY_TYPE:
|
|
277
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
278
|
-
invokeCallback(children._payload),
|
|
279
|
-
array,
|
|
280
|
-
escapedPrefix,
|
|
281
|
-
nameSoFar,
|
|
282
|
-
callback
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
if (invokeCallback) {
|
|
287
|
-
invokeCallback = children;
|
|
288
|
-
callback = callback(invokeCallback);
|
|
289
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
290
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
291
|
-
return c;
|
|
292
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
293
|
-
callback,
|
|
294
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
295
|
-
userProvidedKeyEscapeRegex,
|
|
296
|
-
"$&/"
|
|
297
|
-
) + "/") + childKey
|
|
298
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
299
|
-
return 1;
|
|
300
|
-
}
|
|
301
|
-
invokeCallback = 0;
|
|
302
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
303
|
-
if (isArrayImpl(children))
|
|
304
|
-
for (var i = 0; i < children.length; i++)
|
|
305
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
306
|
-
nameSoFar,
|
|
307
|
-
array,
|
|
308
|
-
escapedPrefix,
|
|
309
|
-
type,
|
|
310
|
-
callback
|
|
311
|
-
);
|
|
312
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
313
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
314
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
315
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
316
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
317
|
-
nameSoFar,
|
|
318
|
-
array,
|
|
319
|
-
escapedPrefix,
|
|
320
|
-
type,
|
|
321
|
-
callback
|
|
322
|
-
);
|
|
323
|
-
else if ("object" === type) {
|
|
324
|
-
if ("function" === typeof children.then)
|
|
325
|
-
return mapIntoArray(
|
|
326
|
-
resolveThenable(children),
|
|
327
|
-
array,
|
|
328
|
-
escapedPrefix,
|
|
329
|
-
nameSoFar,
|
|
330
|
-
callback
|
|
331
|
-
);
|
|
332
|
-
array = String(children);
|
|
333
|
-
throw Error(
|
|
334
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
return invokeCallback;
|
|
338
|
-
}
|
|
339
|
-
function mapChildren(children, func, context) {
|
|
340
|
-
if (null == children) return children;
|
|
341
|
-
var result = [], count = 0;
|
|
342
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
343
|
-
return func.call(context, child, count++);
|
|
344
|
-
});
|
|
345
|
-
return result;
|
|
346
|
-
}
|
|
347
|
-
function lazyInitializer(payload) {
|
|
348
|
-
if (-1 === payload._status) {
|
|
349
|
-
var ioInfo = payload._ioInfo;
|
|
350
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
351
|
-
ioInfo = payload._result;
|
|
352
|
-
var thenable = ioInfo();
|
|
353
|
-
thenable.then(
|
|
354
|
-
function(moduleObject) {
|
|
355
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
356
|
-
payload._status = 1;
|
|
357
|
-
payload._result = moduleObject;
|
|
358
|
-
var _ioInfo = payload._ioInfo;
|
|
359
|
-
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
360
|
-
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
361
|
-
}
|
|
97
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
98
|
+
};
|
|
99
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
100
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
101
|
+
};
|
|
102
|
+
function ComponentDummy() {
|
|
103
|
+
}
|
|
104
|
+
ComponentDummy.prototype = Component.prototype;
|
|
105
|
+
function PureComponent(props, context, updater) {
|
|
106
|
+
this.props = props;
|
|
107
|
+
this.context = context;
|
|
108
|
+
this.refs = emptyObject;
|
|
109
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
110
|
+
}
|
|
111
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
112
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
113
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
114
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
115
|
+
var isArrayImpl = Array.isArray;
|
|
116
|
+
function noop() {
|
|
117
|
+
}
|
|
118
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null };
|
|
119
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
120
|
+
function ReactElement(type, key, props) {
|
|
121
|
+
var refProp = props.ref;
|
|
122
|
+
return {
|
|
123
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
124
|
+
type,
|
|
125
|
+
key,
|
|
126
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
127
|
+
props
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
131
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
132
|
+
}
|
|
133
|
+
function isValidElement(object) {
|
|
134
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
135
|
+
}
|
|
136
|
+
function escape2(key) {
|
|
137
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
138
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
139
|
+
return escaperLookup[match];
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
143
|
+
function getElementKey(element, index) {
|
|
144
|
+
return "object" === typeof element && null !== element && null != element.key ? escape2("" + element.key) : index.toString(36);
|
|
145
|
+
}
|
|
146
|
+
function resolveThenable(thenable) {
|
|
147
|
+
switch (thenable.status) {
|
|
148
|
+
case "fulfilled":
|
|
149
|
+
return thenable.value;
|
|
150
|
+
case "rejected":
|
|
151
|
+
throw thenable.reason;
|
|
152
|
+
default:
|
|
153
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
154
|
+
function(fulfilledValue) {
|
|
155
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
362
156
|
},
|
|
363
157
|
function(error) {
|
|
364
|
-
|
|
365
|
-
payload._status = 2;
|
|
366
|
-
payload._result = error;
|
|
367
|
-
var _ioInfo2 = payload._ioInfo;
|
|
368
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
369
|
-
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
370
|
-
}
|
|
158
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
371
159
|
}
|
|
372
|
-
)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
378
|
-
}
|
|
379
|
-
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
380
|
-
}
|
|
381
|
-
if (1 === payload._status)
|
|
382
|
-
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
383
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
384
|
-
ioInfo
|
|
385
|
-
), "default" in ioInfo || console.error(
|
|
386
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
387
|
-
ioInfo
|
|
388
|
-
), ioInfo.default;
|
|
389
|
-
throw payload._result;
|
|
390
|
-
}
|
|
391
|
-
function resolveDispatcher() {
|
|
392
|
-
var dispatcher = ReactSharedInternals.H;
|
|
393
|
-
null === dispatcher && console.error(
|
|
394
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
395
|
-
);
|
|
396
|
-
return dispatcher;
|
|
397
|
-
}
|
|
398
|
-
function releaseAsyncTransition() {
|
|
399
|
-
ReactSharedInternals.asyncTransitions--;
|
|
400
|
-
}
|
|
401
|
-
function enqueueTask(task) {
|
|
402
|
-
if (null === enqueueTaskImpl)
|
|
403
|
-
try {
|
|
404
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
405
|
-
enqueueTaskImpl = (module && module[requireString]).call(
|
|
406
|
-
module,
|
|
407
|
-
"timers"
|
|
408
|
-
).setImmediate;
|
|
409
|
-
} catch (_err) {
|
|
410
|
-
enqueueTaskImpl = function(callback) {
|
|
411
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
412
|
-
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
|
|
413
|
-
));
|
|
414
|
-
var channel = new MessageChannel();
|
|
415
|
-
channel.port1.onmessage = callback;
|
|
416
|
-
channel.port2.postMessage(void 0);
|
|
417
|
-
};
|
|
160
|
+
)), thenable.status) {
|
|
161
|
+
case "fulfilled":
|
|
162
|
+
return thenable.value;
|
|
163
|
+
case "rejected":
|
|
164
|
+
throw thenable.reason;
|
|
418
165
|
}
|
|
419
|
-
return enqueueTaskImpl(task);
|
|
420
|
-
}
|
|
421
|
-
function aggregateErrors(errors) {
|
|
422
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
423
|
-
}
|
|
424
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
425
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
426
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
427
|
-
);
|
|
428
|
-
actScopeDepth = prevActScopeDepth;
|
|
429
|
-
}
|
|
430
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
431
|
-
var queue = ReactSharedInternals.actQueue;
|
|
432
|
-
if (null !== queue)
|
|
433
|
-
if (0 !== queue.length)
|
|
434
|
-
try {
|
|
435
|
-
flushActQueue(queue);
|
|
436
|
-
enqueueTask(function() {
|
|
437
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
438
|
-
});
|
|
439
|
-
return;
|
|
440
|
-
} catch (error) {
|
|
441
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
442
|
-
}
|
|
443
|
-
else ReactSharedInternals.actQueue = null;
|
|
444
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
445
166
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
167
|
+
throw thenable;
|
|
168
|
+
}
|
|
169
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
170
|
+
var type = typeof children;
|
|
171
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
172
|
+
var invokeCallback = false;
|
|
173
|
+
if (null === children) invokeCallback = true;
|
|
174
|
+
else
|
|
175
|
+
switch (type) {
|
|
176
|
+
case "bigint":
|
|
177
|
+
case "string":
|
|
178
|
+
case "number":
|
|
179
|
+
invokeCallback = true;
|
|
180
|
+
break;
|
|
181
|
+
case "object":
|
|
182
|
+
switch (children.$$typeof) {
|
|
183
|
+
case REACT_ELEMENT_TYPE:
|
|
184
|
+
case REACT_PORTAL_TYPE:
|
|
185
|
+
invokeCallback = true;
|
|
186
|
+
break;
|
|
187
|
+
case REACT_LAZY_TYPE:
|
|
188
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
189
|
+
invokeCallback(children._payload),
|
|
190
|
+
array,
|
|
191
|
+
escapedPrefix,
|
|
192
|
+
nameSoFar,
|
|
193
|
+
callback
|
|
194
|
+
);
|
|
465
195
|
}
|
|
466
|
-
queue.length = 0;
|
|
467
|
-
} catch (error) {
|
|
468
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
469
|
-
} finally {
|
|
470
|
-
isFlushing = false;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
475
|
-
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
476
|
-
isMounted: function() {
|
|
477
|
-
return false;
|
|
478
|
-
},
|
|
479
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
480
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
481
|
-
},
|
|
482
|
-
enqueueReplaceState: function(publicInstance) {
|
|
483
|
-
warnNoop(publicInstance, "replaceState");
|
|
484
|
-
},
|
|
485
|
-
enqueueSetState: function(publicInstance) {
|
|
486
|
-
warnNoop(publicInstance, "setState");
|
|
487
196
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
197
|
+
if (invokeCallback)
|
|
198
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
199
|
+
return c;
|
|
200
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
201
|
+
callback,
|
|
202
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
203
|
+
userProvidedKeyEscapeRegex,
|
|
204
|
+
"$&/"
|
|
205
|
+
) + "/") + invokeCallback
|
|
206
|
+
)), array.push(callback)), 1;
|
|
207
|
+
invokeCallback = 0;
|
|
208
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
209
|
+
if (isArrayImpl(children))
|
|
210
|
+
for (var i = 0; i < children.length; i++)
|
|
211
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
212
|
+
nameSoFar,
|
|
213
|
+
array,
|
|
214
|
+
escapedPrefix,
|
|
215
|
+
type,
|
|
216
|
+
callback
|
|
495
217
|
);
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
505
|
-
],
|
|
506
|
-
replaceState: [
|
|
507
|
-
"replaceState",
|
|
508
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
509
|
-
]
|
|
510
|
-
};
|
|
511
|
-
for (fnName in deprecatedAPIs)
|
|
512
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
513
|
-
ComponentDummy.prototype = Component.prototype;
|
|
514
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
515
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
516
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
517
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
518
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
519
|
-
H: null,
|
|
520
|
-
A: null,
|
|
521
|
-
T: null,
|
|
522
|
-
S: null,
|
|
523
|
-
actQueue: null,
|
|
524
|
-
asyncTransitions: 0,
|
|
525
|
-
isBatchingLegacy: false,
|
|
526
|
-
didScheduleLegacyUpdate: false,
|
|
527
|
-
didUsePromise: false,
|
|
528
|
-
thrownErrors: [],
|
|
529
|
-
getCurrentStack: null,
|
|
530
|
-
recentlyCreatedOwnerStacks: 0
|
|
531
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
532
|
-
return null;
|
|
533
|
-
};
|
|
534
|
-
deprecatedAPIs = {
|
|
535
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
536
|
-
return callStackForError();
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
540
|
-
var didWarnAboutElementRef = {};
|
|
541
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
542
|
-
deprecatedAPIs,
|
|
543
|
-
UnknownOwner
|
|
544
|
-
)();
|
|
545
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
546
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
547
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
548
|
-
var event = new window.ErrorEvent("error", {
|
|
549
|
-
bubbles: true,
|
|
550
|
-
cancelable: true,
|
|
551
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
552
|
-
error
|
|
553
|
-
});
|
|
554
|
-
if (!window.dispatchEvent(event)) return;
|
|
555
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
556
|
-
process.emit("uncaughtException", error);
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
console.error(error);
|
|
560
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
561
|
-
queueMicrotask(function() {
|
|
562
|
-
return queueMicrotask(callback);
|
|
563
|
-
});
|
|
564
|
-
} : enqueueTask;
|
|
565
|
-
deprecatedAPIs = Object.freeze({
|
|
566
|
-
__proto__: null,
|
|
567
|
-
c: function(size) {
|
|
568
|
-
return resolveDispatcher().useMemoCache(size);
|
|
569
|
-
}
|
|
570
|
-
});
|
|
571
|
-
var fnName = {
|
|
572
|
-
map: mapChildren,
|
|
573
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
574
|
-
mapChildren(
|
|
575
|
-
children,
|
|
576
|
-
function() {
|
|
577
|
-
forEachFunc.apply(this, arguments);
|
|
578
|
-
},
|
|
579
|
-
forEachContext
|
|
218
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
219
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
220
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
221
|
+
nameSoFar,
|
|
222
|
+
array,
|
|
223
|
+
escapedPrefix,
|
|
224
|
+
type,
|
|
225
|
+
callback
|
|
580
226
|
);
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
toArray: function(children) {
|
|
590
|
-
return mapChildren(children, function(child) {
|
|
591
|
-
return child;
|
|
592
|
-
}) || [];
|
|
593
|
-
},
|
|
594
|
-
only: function(children) {
|
|
595
|
-
if (!isValidElement(children))
|
|
596
|
-
throw Error(
|
|
597
|
-
"React.Children.only expected to receive a single React element child."
|
|
598
|
-
);
|
|
599
|
-
return children;
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
603
|
-
exports.Children = fnName;
|
|
604
|
-
exports.Component = Component;
|
|
605
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
606
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
607
|
-
exports.PureComponent = PureComponent;
|
|
608
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
609
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
610
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
611
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
612
|
-
exports.act = function(callback) {
|
|
613
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
614
|
-
actScopeDepth++;
|
|
615
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
616
|
-
try {
|
|
617
|
-
var result = callback();
|
|
618
|
-
} catch (error) {
|
|
619
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
620
|
-
}
|
|
621
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
622
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
623
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
624
|
-
var thenable = result;
|
|
625
|
-
queueSeveralMicrotasks(function() {
|
|
626
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
627
|
-
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
628
|
-
));
|
|
629
|
-
});
|
|
630
|
-
return {
|
|
631
|
-
then: function(resolve, reject) {
|
|
632
|
-
didAwaitActCall = true;
|
|
633
|
-
thenable.then(
|
|
634
|
-
function(returnValue) {
|
|
635
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
636
|
-
if (0 === prevActScopeDepth) {
|
|
637
|
-
try {
|
|
638
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
639
|
-
return recursivelyFlushAsyncActWork(
|
|
640
|
-
returnValue,
|
|
641
|
-
resolve,
|
|
642
|
-
reject
|
|
643
|
-
);
|
|
644
|
-
});
|
|
645
|
-
} catch (error$0) {
|
|
646
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
647
|
-
}
|
|
648
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
649
|
-
var _thrownError = aggregateErrors(
|
|
650
|
-
ReactSharedInternals.thrownErrors
|
|
651
|
-
);
|
|
652
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
653
|
-
reject(_thrownError);
|
|
654
|
-
}
|
|
655
|
-
} else resolve(returnValue);
|
|
656
|
-
},
|
|
657
|
-
function(error) {
|
|
658
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
659
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
660
|
-
ReactSharedInternals.thrownErrors
|
|
661
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
662
|
-
}
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
var returnValue$jscomp$0 = result;
|
|
668
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
669
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
670
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
671
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
672
|
-
));
|
|
673
|
-
}), ReactSharedInternals.actQueue = null);
|
|
674
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
675
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
676
|
-
return {
|
|
677
|
-
then: function(resolve, reject) {
|
|
678
|
-
didAwaitActCall = true;
|
|
679
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
680
|
-
return recursivelyFlushAsyncActWork(
|
|
681
|
-
returnValue$jscomp$0,
|
|
682
|
-
resolve,
|
|
683
|
-
reject
|
|
684
|
-
);
|
|
685
|
-
})) : resolve(returnValue$jscomp$0);
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
exports.cache = function(fn) {
|
|
690
|
-
return function() {
|
|
691
|
-
return fn.apply(null, arguments);
|
|
692
|
-
};
|
|
693
|
-
};
|
|
694
|
-
exports.cacheSignal = function() {
|
|
695
|
-
return null;
|
|
696
|
-
};
|
|
697
|
-
exports.captureOwnerStack = function() {
|
|
698
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
699
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
700
|
-
};
|
|
701
|
-
exports.cloneElement = function(element, config, children) {
|
|
702
|
-
if (null === element || void 0 === element)
|
|
703
|
-
throw Error(
|
|
704
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
227
|
+
else if ("object" === type) {
|
|
228
|
+
if ("function" === typeof children.then)
|
|
229
|
+
return mapIntoArray(
|
|
230
|
+
resolveThenable(children),
|
|
231
|
+
array,
|
|
232
|
+
escapedPrefix,
|
|
233
|
+
nameSoFar,
|
|
234
|
+
callback
|
|
705
235
|
);
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
a: {
|
|
710
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
711
|
-
config,
|
|
712
|
-
"ref"
|
|
713
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
714
|
-
JSCompiler_inline_result = false;
|
|
715
|
-
break a;
|
|
716
|
-
}
|
|
717
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
718
|
-
}
|
|
719
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
720
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
721
|
-
for (propName in config)
|
|
722
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
723
|
-
}
|
|
724
|
-
var propName = arguments.length - 2;
|
|
725
|
-
if (1 === propName) props.children = children;
|
|
726
|
-
else if (1 < propName) {
|
|
727
|
-
JSCompiler_inline_result = Array(propName);
|
|
728
|
-
for (var i = 0; i < propName; i++)
|
|
729
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
730
|
-
props.children = JSCompiler_inline_result;
|
|
731
|
-
}
|
|
732
|
-
props = ReactElement(
|
|
733
|
-
element.type,
|
|
734
|
-
key,
|
|
735
|
-
props,
|
|
736
|
-
owner,
|
|
737
|
-
element._debugStack,
|
|
738
|
-
element._debugTask
|
|
739
|
-
);
|
|
740
|
-
for (key = 2; key < arguments.length; key++)
|
|
741
|
-
validateChildKeys(arguments[key]);
|
|
742
|
-
return props;
|
|
743
|
-
};
|
|
744
|
-
exports.createContext = function(defaultValue) {
|
|
745
|
-
defaultValue = {
|
|
746
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
747
|
-
_currentValue: defaultValue,
|
|
748
|
-
_currentValue2: defaultValue,
|
|
749
|
-
_threadCount: 0,
|
|
750
|
-
Provider: null,
|
|
751
|
-
Consumer: null
|
|
752
|
-
};
|
|
753
|
-
defaultValue.Provider = defaultValue;
|
|
754
|
-
defaultValue.Consumer = {
|
|
755
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
756
|
-
_context: defaultValue
|
|
757
|
-
};
|
|
758
|
-
defaultValue._currentRenderer = null;
|
|
759
|
-
defaultValue._currentRenderer2 = null;
|
|
760
|
-
return defaultValue;
|
|
761
|
-
};
|
|
762
|
-
exports.createElement = function(type, config, children) {
|
|
763
|
-
for (var i = 2; i < arguments.length; i++)
|
|
764
|
-
validateChildKeys(arguments[i]);
|
|
765
|
-
i = {};
|
|
766
|
-
var key = null;
|
|
767
|
-
if (null != config)
|
|
768
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
769
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
770
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
771
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
772
|
-
var childrenLength = arguments.length - 2;
|
|
773
|
-
if (1 === childrenLength) i.children = children;
|
|
774
|
-
else if (1 < childrenLength) {
|
|
775
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
776
|
-
childArray[_i] = arguments[_i + 2];
|
|
777
|
-
Object.freeze && Object.freeze(childArray);
|
|
778
|
-
i.children = childArray;
|
|
779
|
-
}
|
|
780
|
-
if (type && type.defaultProps)
|
|
781
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
782
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
783
|
-
key && defineKeyPropWarningGetter(
|
|
784
|
-
i,
|
|
785
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
786
|
-
);
|
|
787
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
788
|
-
return ReactElement(
|
|
789
|
-
type,
|
|
790
|
-
key,
|
|
791
|
-
i,
|
|
792
|
-
getOwner(),
|
|
793
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
794
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
795
|
-
);
|
|
796
|
-
};
|
|
797
|
-
exports.createRef = function() {
|
|
798
|
-
var refObject = { current: null };
|
|
799
|
-
Object.seal(refObject);
|
|
800
|
-
return refObject;
|
|
801
|
-
};
|
|
802
|
-
exports.forwardRef = function(render) {
|
|
803
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
804
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
805
|
-
) : "function" !== typeof render ? console.error(
|
|
806
|
-
"forwardRef requires a render function but was given %s.",
|
|
807
|
-
null === render ? "null" : typeof render
|
|
808
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
809
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
810
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
236
|
+
array = String(children);
|
|
237
|
+
throw Error(
|
|
238
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
811
239
|
);
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
240
|
+
}
|
|
241
|
+
return invokeCallback;
|
|
242
|
+
}
|
|
243
|
+
function mapChildren(children, func, context) {
|
|
244
|
+
if (null == children) return children;
|
|
245
|
+
var result = [], count = 0;
|
|
246
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
247
|
+
return func.call(context, child, count++);
|
|
248
|
+
});
|
|
249
|
+
return result;
|
|
250
|
+
}
|
|
251
|
+
function lazyInitializer(payload) {
|
|
252
|
+
if (-1 === payload._status) {
|
|
253
|
+
var ctor = payload._result;
|
|
254
|
+
ctor = ctor();
|
|
255
|
+
ctor.then(
|
|
256
|
+
function(moduleObject) {
|
|
257
|
+
if (0 === payload._status || -1 === payload._status)
|
|
258
|
+
payload._status = 1, payload._result = moduleObject;
|
|
821
259
|
},
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
260
|
+
function(error) {
|
|
261
|
+
if (0 === payload._status || -1 === payload._status)
|
|
262
|
+
payload._status = 2, payload._result = error;
|
|
825
263
|
}
|
|
826
|
-
});
|
|
827
|
-
return elementType;
|
|
828
|
-
};
|
|
829
|
-
exports.isValidElement = isValidElement;
|
|
830
|
-
exports.lazy = function(ctor) {
|
|
831
|
-
ctor = { _status: -1, _result: ctor };
|
|
832
|
-
var lazyType = {
|
|
833
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
834
|
-
_payload: ctor,
|
|
835
|
-
_init: lazyInitializer
|
|
836
|
-
}, ioInfo = {
|
|
837
|
-
name: "lazy",
|
|
838
|
-
start: -1,
|
|
839
|
-
end: -1,
|
|
840
|
-
value: null,
|
|
841
|
-
owner: null,
|
|
842
|
-
debugStack: Error("react-stack-top-frame"),
|
|
843
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
844
|
-
};
|
|
845
|
-
ctor._ioInfo = ioInfo;
|
|
846
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
847
|
-
return lazyType;
|
|
848
|
-
};
|
|
849
|
-
exports.memo = function(type, compare) {
|
|
850
|
-
null == type && console.error(
|
|
851
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
852
|
-
null === type ? "null" : typeof type
|
|
853
264
|
);
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
set: function(name) {
|
|
867
|
-
ownName = name;
|
|
868
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
869
|
-
}
|
|
265
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
266
|
+
}
|
|
267
|
+
if (1 === payload._status) return payload._result.default;
|
|
268
|
+
throw payload._result;
|
|
269
|
+
}
|
|
270
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
271
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
272
|
+
var event = new window.ErrorEvent("error", {
|
|
273
|
+
bubbles: true,
|
|
274
|
+
cancelable: true,
|
|
275
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
276
|
+
error
|
|
870
277
|
});
|
|
871
|
-
return
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
888
|
-
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
exports.unstable_useCacheRefresh = function() {
|
|
892
|
-
return resolveDispatcher().useCacheRefresh();
|
|
893
|
-
};
|
|
894
|
-
exports.use = function(usable) {
|
|
895
|
-
return resolveDispatcher().use(usable);
|
|
896
|
-
};
|
|
897
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
898
|
-
return resolveDispatcher().useActionState(
|
|
899
|
-
action,
|
|
900
|
-
initialState,
|
|
901
|
-
permalink
|
|
902
|
-
);
|
|
903
|
-
};
|
|
904
|
-
exports.useCallback = function(callback, deps) {
|
|
905
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
906
|
-
};
|
|
907
|
-
exports.useContext = function(Context) {
|
|
908
|
-
var dispatcher = resolveDispatcher();
|
|
909
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
910
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
911
|
-
);
|
|
912
|
-
return dispatcher.useContext(Context);
|
|
913
|
-
};
|
|
914
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
915
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
916
|
-
};
|
|
917
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
918
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
919
|
-
};
|
|
920
|
-
exports.useEffect = function(create, deps) {
|
|
921
|
-
null == create && console.warn(
|
|
922
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
923
|
-
);
|
|
924
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
925
|
-
};
|
|
926
|
-
exports.useEffectEvent = function(callback) {
|
|
927
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
928
|
-
};
|
|
929
|
-
exports.useId = function() {
|
|
930
|
-
return resolveDispatcher().useId();
|
|
931
|
-
};
|
|
932
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
933
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
934
|
-
};
|
|
935
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
936
|
-
null == create && console.warn(
|
|
937
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
278
|
+
if (!window.dispatchEvent(event)) return;
|
|
279
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
280
|
+
process.emit("uncaughtException", error);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
console.error(error);
|
|
284
|
+
};
|
|
285
|
+
var Children = {
|
|
286
|
+
map: mapChildren,
|
|
287
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
288
|
+
mapChildren(
|
|
289
|
+
children,
|
|
290
|
+
function() {
|
|
291
|
+
forEachFunc.apply(this, arguments);
|
|
292
|
+
},
|
|
293
|
+
forEachContext
|
|
938
294
|
);
|
|
939
|
-
|
|
295
|
+
},
|
|
296
|
+
count: function(children) {
|
|
297
|
+
var n = 0;
|
|
298
|
+
mapChildren(children, function() {
|
|
299
|
+
n++;
|
|
300
|
+
});
|
|
301
|
+
return n;
|
|
302
|
+
},
|
|
303
|
+
toArray: function(children) {
|
|
304
|
+
return mapChildren(children, function(child) {
|
|
305
|
+
return child;
|
|
306
|
+
}) || [];
|
|
307
|
+
},
|
|
308
|
+
only: function(children) {
|
|
309
|
+
if (!isValidElement(children))
|
|
310
|
+
throw Error(
|
|
311
|
+
"React.Children.only expected to receive a single React element child."
|
|
312
|
+
);
|
|
313
|
+
return children;
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
317
|
+
exports.Children = Children;
|
|
318
|
+
exports.Component = Component;
|
|
319
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
320
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
321
|
+
exports.PureComponent = PureComponent;
|
|
322
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
323
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
324
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
325
|
+
exports.__COMPILER_RUNTIME = {
|
|
326
|
+
__proto__: null,
|
|
327
|
+
c: function(size) {
|
|
328
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
exports.cache = function(fn) {
|
|
332
|
+
return function() {
|
|
333
|
+
return fn.apply(null, arguments);
|
|
940
334
|
};
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
335
|
+
};
|
|
336
|
+
exports.cacheSignal = function() {
|
|
337
|
+
return null;
|
|
338
|
+
};
|
|
339
|
+
exports.cloneElement = function(element, config, children) {
|
|
340
|
+
if (null === element || void 0 === element)
|
|
341
|
+
throw Error(
|
|
342
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
944
343
|
);
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
|
|
344
|
+
var props = assign({}, element.props), key = element.key;
|
|
345
|
+
if (null != config)
|
|
346
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
347
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
348
|
+
var propName = arguments.length - 2;
|
|
349
|
+
if (1 === propName) props.children = children;
|
|
350
|
+
else if (1 < propName) {
|
|
351
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
352
|
+
childArray[i] = arguments[i + 2];
|
|
353
|
+
props.children = childArray;
|
|
354
|
+
}
|
|
355
|
+
return ReactElement(element.type, key, props);
|
|
356
|
+
};
|
|
357
|
+
exports.createContext = function(defaultValue) {
|
|
358
|
+
defaultValue = {
|
|
359
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
360
|
+
_currentValue: defaultValue,
|
|
361
|
+
_currentValue2: defaultValue,
|
|
362
|
+
_threadCount: 0,
|
|
363
|
+
Provider: null,
|
|
364
|
+
Consumer: null
|
|
958
365
|
};
|
|
959
|
-
|
|
960
|
-
|
|
366
|
+
defaultValue.Provider = defaultValue;
|
|
367
|
+
defaultValue.Consumer = {
|
|
368
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
369
|
+
_context: defaultValue
|
|
961
370
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
)
|
|
371
|
+
return defaultValue;
|
|
372
|
+
};
|
|
373
|
+
exports.createElement = function(type, config, children) {
|
|
374
|
+
var propName, props = {}, key = null;
|
|
375
|
+
if (null != config)
|
|
376
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
377
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
378
|
+
var childrenLength = arguments.length - 2;
|
|
379
|
+
if (1 === childrenLength) props.children = children;
|
|
380
|
+
else if (1 < childrenLength) {
|
|
381
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
382
|
+
childArray[i] = arguments[i + 2];
|
|
383
|
+
props.children = childArray;
|
|
384
|
+
}
|
|
385
|
+
if (type && type.defaultProps)
|
|
386
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
387
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
388
|
+
return ReactElement(type, key, props);
|
|
389
|
+
};
|
|
390
|
+
exports.createRef = function() {
|
|
391
|
+
return { current: null };
|
|
392
|
+
};
|
|
393
|
+
exports.forwardRef = function(render) {
|
|
394
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
395
|
+
};
|
|
396
|
+
exports.isValidElement = isValidElement;
|
|
397
|
+
exports.lazy = function(ctor) {
|
|
398
|
+
return {
|
|
399
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
400
|
+
_payload: { _status: -1, _result: ctor },
|
|
401
|
+
_init: lazyInitializer
|
|
968
402
|
};
|
|
969
|
-
|
|
970
|
-
|
|
403
|
+
};
|
|
404
|
+
exports.memo = function(type, compare) {
|
|
405
|
+
return {
|
|
406
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
407
|
+
type,
|
|
408
|
+
compare: void 0 === compare ? null : compare
|
|
971
409
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
410
|
+
};
|
|
411
|
+
exports.startTransition = function(scope) {
|
|
412
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
413
|
+
ReactSharedInternals.T = currentTransition;
|
|
414
|
+
try {
|
|
415
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
416
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
417
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
418
|
+
} catch (error) {
|
|
419
|
+
reportGlobalError(error);
|
|
420
|
+
} finally {
|
|
421
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
exports.unstable_useCacheRefresh = function() {
|
|
425
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
426
|
+
};
|
|
427
|
+
exports.use = function(usable) {
|
|
428
|
+
return ReactSharedInternals.H.use(usable);
|
|
429
|
+
};
|
|
430
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
431
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
432
|
+
};
|
|
433
|
+
exports.useCallback = function(callback, deps) {
|
|
434
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
435
|
+
};
|
|
436
|
+
exports.useContext = function(Context) {
|
|
437
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
438
|
+
};
|
|
439
|
+
exports.useDebugValue = function() {
|
|
440
|
+
};
|
|
441
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
442
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
443
|
+
};
|
|
444
|
+
exports.useEffect = function(create, deps) {
|
|
445
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
446
|
+
};
|
|
447
|
+
exports.useEffectEvent = function(callback) {
|
|
448
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
449
|
+
};
|
|
450
|
+
exports.useId = function() {
|
|
451
|
+
return ReactSharedInternals.H.useId();
|
|
452
|
+
};
|
|
453
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
454
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
455
|
+
};
|
|
456
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
457
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
458
|
+
};
|
|
459
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
460
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
461
|
+
};
|
|
462
|
+
exports.useMemo = function(create, deps) {
|
|
463
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
464
|
+
};
|
|
465
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
466
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
467
|
+
};
|
|
468
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
469
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
470
|
+
};
|
|
471
|
+
exports.useRef = function(initialValue) {
|
|
472
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
473
|
+
};
|
|
474
|
+
exports.useState = function(initialState) {
|
|
475
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
476
|
+
};
|
|
477
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
478
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
479
|
+
subscribe,
|
|
480
|
+
getSnapshot,
|
|
481
|
+
getServerSnapshot
|
|
482
|
+
);
|
|
483
|
+
};
|
|
484
|
+
exports.useTransition = function() {
|
|
485
|
+
return ReactSharedInternals.H.useTransition();
|
|
486
|
+
};
|
|
487
|
+
exports.version = "19.2.1";
|
|
975
488
|
}
|
|
976
489
|
});
|
|
977
490
|
|
|
@@ -979,524 +492,160 @@ var require_react_development = __commonJS({
|
|
|
979
492
|
var require_react = __commonJS({
|
|
980
493
|
"../../../node_modules/react/index.js"(exports, module) {
|
|
981
494
|
"use strict";
|
|
982
|
-
if (
|
|
983
|
-
module.exports =
|
|
495
|
+
if (true) {
|
|
496
|
+
module.exports = require_react_production();
|
|
984
497
|
} else {
|
|
985
|
-
module.exports =
|
|
498
|
+
module.exports = null;
|
|
986
499
|
}
|
|
987
500
|
}
|
|
988
501
|
});
|
|
989
502
|
|
|
990
|
-
// ../../../node_modules/react/cjs/react-
|
|
991
|
-
var
|
|
992
|
-
"../../../node_modules/react/cjs/react-
|
|
503
|
+
// ../../../node_modules/react-dom/cjs/react-dom.production.js
|
|
504
|
+
var require_react_dom_production = __commonJS({
|
|
505
|
+
"../../../node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
993
506
|
"use strict";
|
|
994
|
-
(
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
case REACT_FRAGMENT_TYPE:
|
|
1002
|
-
return "Fragment";
|
|
1003
|
-
case REACT_PROFILER_TYPE:
|
|
1004
|
-
return "Profiler";
|
|
1005
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1006
|
-
return "StrictMode";
|
|
1007
|
-
case REACT_SUSPENSE_TYPE:
|
|
1008
|
-
return "Suspense";
|
|
1009
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1010
|
-
return "SuspenseList";
|
|
1011
|
-
case REACT_ACTIVITY_TYPE:
|
|
1012
|
-
return "Activity";
|
|
1013
|
-
}
|
|
1014
|
-
if ("object" === typeof type)
|
|
1015
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1016
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1017
|
-
), type.$$typeof) {
|
|
1018
|
-
case REACT_PORTAL_TYPE:
|
|
1019
|
-
return "Portal";
|
|
1020
|
-
case REACT_CONTEXT_TYPE:
|
|
1021
|
-
return type.displayName || "Context";
|
|
1022
|
-
case REACT_CONSUMER_TYPE:
|
|
1023
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1024
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1025
|
-
var innerType = type.render;
|
|
1026
|
-
type = type.displayName;
|
|
1027
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1028
|
-
return type;
|
|
1029
|
-
case REACT_MEMO_TYPE:
|
|
1030
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1031
|
-
case REACT_LAZY_TYPE:
|
|
1032
|
-
innerType = type._payload;
|
|
1033
|
-
type = type._init;
|
|
1034
|
-
try {
|
|
1035
|
-
return getComponentNameFromType(type(innerType));
|
|
1036
|
-
} catch (x) {
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
return null;
|
|
1040
|
-
}
|
|
1041
|
-
function testStringCoercion(value) {
|
|
1042
|
-
return "" + value;
|
|
1043
|
-
}
|
|
1044
|
-
function checkKeyStringCoercion(value) {
|
|
1045
|
-
try {
|
|
1046
|
-
testStringCoercion(value);
|
|
1047
|
-
var JSCompiler_inline_result = false;
|
|
1048
|
-
} catch (e) {
|
|
1049
|
-
JSCompiler_inline_result = true;
|
|
1050
|
-
}
|
|
1051
|
-
if (JSCompiler_inline_result) {
|
|
1052
|
-
JSCompiler_inline_result = console;
|
|
1053
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1054
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1055
|
-
JSCompiler_temp_const.call(
|
|
1056
|
-
JSCompiler_inline_result,
|
|
1057
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1058
|
-
JSCompiler_inline_result$jscomp$0
|
|
1059
|
-
);
|
|
1060
|
-
return testStringCoercion(value);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
function getTaskName(type) {
|
|
1064
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1065
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1066
|
-
return "<...>";
|
|
1067
|
-
try {
|
|
1068
|
-
var name = getComponentNameFromType(type);
|
|
1069
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1070
|
-
} catch (x) {
|
|
1071
|
-
return "<...>";
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
function getOwner() {
|
|
1075
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1076
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1077
|
-
}
|
|
1078
|
-
function UnknownOwner() {
|
|
1079
|
-
return Error("react-stack-top-frame");
|
|
1080
|
-
}
|
|
1081
|
-
function hasValidKey(config) {
|
|
1082
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1083
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1084
|
-
if (getter && getter.isReactWarning) return false;
|
|
1085
|
-
}
|
|
1086
|
-
return void 0 !== config.key;
|
|
1087
|
-
}
|
|
1088
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1089
|
-
function warnAboutAccessingKey() {
|
|
1090
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1091
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
1092
|
-
displayName
|
|
1093
|
-
));
|
|
1094
|
-
}
|
|
1095
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1096
|
-
Object.defineProperty(props, "key", {
|
|
1097
|
-
get: warnAboutAccessingKey,
|
|
1098
|
-
configurable: true
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1102
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1103
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1104
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1105
|
-
));
|
|
1106
|
-
componentName = this.props.ref;
|
|
1107
|
-
return void 0 !== componentName ? componentName : null;
|
|
1108
|
-
}
|
|
1109
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1110
|
-
var refProp = props.ref;
|
|
1111
|
-
type = {
|
|
1112
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1113
|
-
type,
|
|
1114
|
-
key,
|
|
1115
|
-
props,
|
|
1116
|
-
_owner: owner
|
|
1117
|
-
};
|
|
1118
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1119
|
-
enumerable: false,
|
|
1120
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1121
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1122
|
-
type._store = {};
|
|
1123
|
-
Object.defineProperty(type._store, "validated", {
|
|
1124
|
-
configurable: false,
|
|
1125
|
-
enumerable: false,
|
|
1126
|
-
writable: true,
|
|
1127
|
-
value: 0
|
|
1128
|
-
});
|
|
1129
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1130
|
-
configurable: false,
|
|
1131
|
-
enumerable: false,
|
|
1132
|
-
writable: true,
|
|
1133
|
-
value: null
|
|
1134
|
-
});
|
|
1135
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1136
|
-
configurable: false,
|
|
1137
|
-
enumerable: false,
|
|
1138
|
-
writable: true,
|
|
1139
|
-
value: debugStack
|
|
1140
|
-
});
|
|
1141
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1142
|
-
configurable: false,
|
|
1143
|
-
enumerable: false,
|
|
1144
|
-
writable: true,
|
|
1145
|
-
value: debugTask
|
|
1146
|
-
});
|
|
1147
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1148
|
-
return type;
|
|
1149
|
-
}
|
|
1150
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1151
|
-
var children = config.children;
|
|
1152
|
-
if (void 0 !== children)
|
|
1153
|
-
if (isStaticChildren)
|
|
1154
|
-
if (isArrayImpl(children)) {
|
|
1155
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1156
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1157
|
-
Object.freeze && Object.freeze(children);
|
|
1158
|
-
} else
|
|
1159
|
-
console.error(
|
|
1160
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1161
|
-
);
|
|
1162
|
-
else validateChildKeys(children);
|
|
1163
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1164
|
-
children = getComponentNameFromType(type);
|
|
1165
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1166
|
-
return "key" !== k;
|
|
1167
|
-
});
|
|
1168
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1169
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1170
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1171
|
-
isStaticChildren,
|
|
1172
|
-
children,
|
|
1173
|
-
keys,
|
|
1174
|
-
children
|
|
1175
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1176
|
-
}
|
|
1177
|
-
children = null;
|
|
1178
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1179
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1180
|
-
if ("key" in config) {
|
|
1181
|
-
maybeKey = {};
|
|
1182
|
-
for (var propName in config)
|
|
1183
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1184
|
-
} else maybeKey = config;
|
|
1185
|
-
children && defineKeyPropWarningGetter(
|
|
1186
|
-
maybeKey,
|
|
1187
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1188
|
-
);
|
|
1189
|
-
return ReactElement(
|
|
1190
|
-
type,
|
|
1191
|
-
children,
|
|
1192
|
-
maybeKey,
|
|
1193
|
-
getOwner(),
|
|
1194
|
-
debugStack,
|
|
1195
|
-
debugTask
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
function validateChildKeys(node) {
|
|
1199
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1200
|
-
}
|
|
1201
|
-
function isValidElement(object) {
|
|
1202
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
507
|
+
var React = require_react();
|
|
508
|
+
function formatProdErrorMessage(code) {
|
|
509
|
+
var url = "https://react.dev/errors/" + code;
|
|
510
|
+
if (1 < arguments.length) {
|
|
511
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
512
|
+
for (var i = 2; i < arguments.length; i++)
|
|
513
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
1203
514
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
return jsxDEVImpl(
|
|
1235
|
-
type,
|
|
1236
|
-
config,
|
|
1237
|
-
maybeKey,
|
|
1238
|
-
true,
|
|
1239
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1240
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1241
|
-
);
|
|
515
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
516
|
+
}
|
|
517
|
+
function noop() {
|
|
518
|
+
}
|
|
519
|
+
var Internals = {
|
|
520
|
+
d: {
|
|
521
|
+
f: noop,
|
|
522
|
+
r: function() {
|
|
523
|
+
throw Error(formatProdErrorMessage(522));
|
|
524
|
+
},
|
|
525
|
+
D: noop,
|
|
526
|
+
C: noop,
|
|
527
|
+
L: noop,
|
|
528
|
+
m: noop,
|
|
529
|
+
X: noop,
|
|
530
|
+
S: noop,
|
|
531
|
+
M: noop
|
|
532
|
+
},
|
|
533
|
+
p: 0,
|
|
534
|
+
findDOMNode: null
|
|
535
|
+
};
|
|
536
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
537
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
538
|
+
var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
539
|
+
return {
|
|
540
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
541
|
+
key: null == key ? null : "" + key,
|
|
542
|
+
children,
|
|
543
|
+
containerInfo,
|
|
544
|
+
implementation
|
|
1242
545
|
};
|
|
1243
|
-
})();
|
|
1244
|
-
}
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
// ../../../node_modules/react/jsx-runtime.js
|
|
1248
|
-
var require_jsx_runtime = __commonJS({
|
|
1249
|
-
"../../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
1250
|
-
"use strict";
|
|
1251
|
-
if (false) {
|
|
1252
|
-
module.exports = null;
|
|
1253
|
-
} else {
|
|
1254
|
-
module.exports = require_react_jsx_runtime_development();
|
|
1255
546
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
JSCompiler_inline_result = true;
|
|
1276
|
-
}
|
|
1277
|
-
JSCompiler_inline_result && (console.error(
|
|
1278
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1279
|
-
"function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
|
|
1280
|
-
), testStringCoercion(key));
|
|
1281
|
-
return {
|
|
1282
|
-
$$typeof: REACT_PORTAL_TYPE,
|
|
1283
|
-
key: null == key ? null : "" + key,
|
|
1284
|
-
children,
|
|
1285
|
-
containerInfo,
|
|
1286
|
-
implementation
|
|
1287
|
-
};
|
|
1288
|
-
}
|
|
1289
|
-
function getCrossOriginStringAs(as, input) {
|
|
1290
|
-
if ("font" === as) return "";
|
|
1291
|
-
if ("string" === typeof input)
|
|
1292
|
-
return "use-credentials" === input ? input : "";
|
|
1293
|
-
}
|
|
1294
|
-
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
1295
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
|
|
1296
|
-
}
|
|
1297
|
-
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
1298
|
-
return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
|
|
547
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
548
|
+
function getCrossOriginStringAs(as, input) {
|
|
549
|
+
if ("font" === as) return "";
|
|
550
|
+
if ("string" === typeof input)
|
|
551
|
+
return "use-credentials" === input ? input : "";
|
|
552
|
+
}
|
|
553
|
+
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
554
|
+
exports.createPortal = function(children, container) {
|
|
555
|
+
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
556
|
+
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
557
|
+
throw Error(formatProdErrorMessage(299));
|
|
558
|
+
return createPortal$1(children, container, null, key);
|
|
559
|
+
};
|
|
560
|
+
exports.flushSync = function(fn) {
|
|
561
|
+
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
562
|
+
try {
|
|
563
|
+
if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
|
|
564
|
+
} finally {
|
|
565
|
+
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
|
|
1299
566
|
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
567
|
+
};
|
|
568
|
+
exports.preconnect = function(href, options) {
|
|
569
|
+
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
570
|
+
};
|
|
571
|
+
exports.prefetchDNS = function(href) {
|
|
572
|
+
"string" === typeof href && Internals.d.D(href);
|
|
573
|
+
};
|
|
574
|
+
exports.preinit = function(href, options) {
|
|
575
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
576
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
577
|
+
"style" === as ? Internals.d.S(
|
|
578
|
+
href,
|
|
579
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
580
|
+
{
|
|
581
|
+
crossOrigin,
|
|
582
|
+
integrity,
|
|
583
|
+
fetchPriority
|
|
584
|
+
}
|
|
585
|
+
) : "script" === as && Internals.d.X(href, {
|
|
586
|
+
crossOrigin,
|
|
587
|
+
integrity,
|
|
588
|
+
fetchPriority,
|
|
589
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
590
|
+
});
|
|
1306
591
|
}
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
592
|
+
};
|
|
593
|
+
exports.preinitModule = function(href, options) {
|
|
594
|
+
if ("string" === typeof href)
|
|
595
|
+
if ("object" === typeof options && null !== options) {
|
|
596
|
+
if (null == options.as || "script" === options.as) {
|
|
597
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
598
|
+
options.as,
|
|
599
|
+
options.crossOrigin
|
|
1314
600
|
);
|
|
1315
|
-
|
|
1316
|
-
D: noop,
|
|
1317
|
-
C: noop,
|
|
1318
|
-
L: noop,
|
|
1319
|
-
m: noop,
|
|
1320
|
-
X: noop,
|
|
1321
|
-
S: noop,
|
|
1322
|
-
M: noop
|
|
1323
|
-
},
|
|
1324
|
-
p: 0,
|
|
1325
|
-
findDOMNode: null
|
|
1326
|
-
}, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1327
|
-
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
1328
|
-
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
1329
|
-
);
|
|
1330
|
-
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
|
|
1331
|
-
exports.createPortal = function(children, container) {
|
|
1332
|
-
var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
1333
|
-
if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
|
|
1334
|
-
throw Error("Target container is not a DOM element.");
|
|
1335
|
-
return createPortal$1(children, container, null, key);
|
|
1336
|
-
};
|
|
1337
|
-
exports.flushSync = function(fn) {
|
|
1338
|
-
var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
|
|
1339
|
-
try {
|
|
1340
|
-
if (ReactSharedInternals.T = null, Internals.p = 2, fn)
|
|
1341
|
-
return fn();
|
|
1342
|
-
} finally {
|
|
1343
|
-
ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
|
|
1344
|
-
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
};
|
|
1348
|
-
exports.preconnect = function(href, options) {
|
|
1349
|
-
"string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
|
|
1350
|
-
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
1351
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1352
|
-
) : null != options && "string" !== typeof options.crossOrigin && console.error(
|
|
1353
|
-
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
1354
|
-
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
1355
|
-
) : console.error(
|
|
1356
|
-
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1357
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1358
|
-
);
|
|
1359
|
-
"string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
|
|
1360
|
-
};
|
|
1361
|
-
exports.prefetchDNS = function(href) {
|
|
1362
|
-
if ("string" !== typeof href || !href)
|
|
1363
|
-
console.error(
|
|
1364
|
-
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1365
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1366
|
-
);
|
|
1367
|
-
else if (1 < arguments.length) {
|
|
1368
|
-
var options = arguments[1];
|
|
1369
|
-
"object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
|
|
1370
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
1371
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1372
|
-
) : console.error(
|
|
1373
|
-
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
1374
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1375
|
-
);
|
|
1376
|
-
}
|
|
1377
|
-
"string" === typeof href && Internals.d.D(href);
|
|
1378
|
-
};
|
|
1379
|
-
exports.preinit = function(href, options) {
|
|
1380
|
-
"string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
|
|
1381
|
-
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
1382
|
-
getValueDescriptorExpectingEnumForWarning(options)
|
|
1383
|
-
) : "style" !== options.as && "script" !== options.as && console.error(
|
|
1384
|
-
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
1385
|
-
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
1386
|
-
) : console.error(
|
|
1387
|
-
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
1388
|
-
getValueDescriptorExpectingObjectForWarning(href)
|
|
1389
|
-
);
|
|
1390
|
-
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
1391
|
-
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
|
|
1392
|
-
"style" === as ? Internals.d.S(
|
|
1393
|
-
href,
|
|
1394
|
-
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
1395
|
-
{
|
|
601
|
+
Internals.d.M(href, {
|
|
1396
602
|
crossOrigin,
|
|
1397
|
-
integrity,
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
) : "script" === as && Internals.d.X(href, {
|
|
1401
|
-
crossOrigin,
|
|
1402
|
-
integrity,
|
|
1403
|
-
fetchPriority,
|
|
1404
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
};
|
|
1408
|
-
exports.preinitModule = function(href, options) {
|
|
1409
|
-
var encountered = "";
|
|
1410
|
-
"string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
|
|
1411
|
-
void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
|
|
1412
|
-
if (encountered)
|
|
1413
|
-
console.error(
|
|
1414
|
-
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
1415
|
-
encountered
|
|
1416
|
-
);
|
|
1417
|
-
else
|
|
1418
|
-
switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
|
|
1419
|
-
case "script":
|
|
1420
|
-
break;
|
|
1421
|
-
default:
|
|
1422
|
-
encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
|
|
1423
|
-
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
1424
|
-
encountered,
|
|
1425
|
-
href
|
|
1426
|
-
);
|
|
603
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
604
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
605
|
+
});
|
|
1427
606
|
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
)
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
encountered,
|
|
1453
|
-
options.crossOrigin
|
|
1454
|
-
);
|
|
1455
|
-
Internals.d.L(href, encountered, {
|
|
607
|
+
} else null == options && Internals.d.M(href);
|
|
608
|
+
};
|
|
609
|
+
exports.preload = function(href, options) {
|
|
610
|
+
if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
|
|
611
|
+
var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
612
|
+
Internals.d.L(href, as, {
|
|
613
|
+
crossOrigin,
|
|
614
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0,
|
|
615
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
616
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
617
|
+
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
618
|
+
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
619
|
+
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
620
|
+
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
621
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
exports.preloadModule = function(href, options) {
|
|
626
|
+
if ("string" === typeof href)
|
|
627
|
+
if (options) {
|
|
628
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
629
|
+
Internals.d.m(href, {
|
|
630
|
+
as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
|
|
1456
631
|
crossOrigin,
|
|
1457
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1458
|
-
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
1459
|
-
type: "string" === typeof options.type ? options.type : void 0,
|
|
1460
|
-
fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
|
|
1461
|
-
referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
|
|
1462
|
-
imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
1463
|
-
imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
1464
|
-
media: "string" === typeof options.media ? options.media : void 0
|
|
632
|
+
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1465
633
|
});
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
crossOrigin: encountered,
|
|
1482
|
-
integrity: "string" === typeof options.integrity ? options.integrity : void 0
|
|
1483
|
-
})) : Internals.d.m(href));
|
|
1484
|
-
};
|
|
1485
|
-
exports.requestFormReset = function(form) {
|
|
1486
|
-
Internals.d.r(form);
|
|
1487
|
-
};
|
|
1488
|
-
exports.unstable_batchedUpdates = function(fn, a) {
|
|
1489
|
-
return fn(a);
|
|
1490
|
-
};
|
|
1491
|
-
exports.useFormState = function(action, initialState, permalink) {
|
|
1492
|
-
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
1493
|
-
};
|
|
1494
|
-
exports.useFormStatus = function() {
|
|
1495
|
-
return resolveDispatcher().useHostTransitionStatus();
|
|
1496
|
-
};
|
|
1497
|
-
exports.version = "19.2.1";
|
|
1498
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1499
|
-
})();
|
|
634
|
+
} else Internals.d.m(href);
|
|
635
|
+
};
|
|
636
|
+
exports.requestFormReset = function(form) {
|
|
637
|
+
Internals.d.r(form);
|
|
638
|
+
};
|
|
639
|
+
exports.unstable_batchedUpdates = function(fn, a) {
|
|
640
|
+
return fn(a);
|
|
641
|
+
};
|
|
642
|
+
exports.useFormState = function(action, initialState, permalink) {
|
|
643
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
644
|
+
};
|
|
645
|
+
exports.useFormStatus = function() {
|
|
646
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
647
|
+
};
|
|
648
|
+
exports.version = "19.2.1";
|
|
1500
649
|
}
|
|
1501
650
|
});
|
|
1502
651
|
|
|
@@ -1504,11 +653,24 @@ var require_react_dom_development = __commonJS({
|
|
|
1504
653
|
var require_react_dom = __commonJS({
|
|
1505
654
|
"../../../node_modules/react-dom/index.js"(exports, module) {
|
|
1506
655
|
"use strict";
|
|
1507
|
-
|
|
656
|
+
function checkDCE() {
|
|
657
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
if (false) {
|
|
661
|
+
throw new Error("^_^");
|
|
662
|
+
}
|
|
663
|
+
try {
|
|
664
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
665
|
+
} catch (err) {
|
|
666
|
+
console.error(err);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
if (true) {
|
|
1508
670
|
checkDCE();
|
|
1509
|
-
module.exports =
|
|
671
|
+
module.exports = require_react_dom_production();
|
|
1510
672
|
} else {
|
|
1511
|
-
module.exports =
|
|
673
|
+
module.exports = null;
|
|
1512
674
|
}
|
|
1513
675
|
}
|
|
1514
676
|
});
|
|
@@ -4921,6 +4083,7 @@ var EditorTextareaLit = class extends LitElement6 {
|
|
|
4921
4083
|
}
|
|
4922
4084
|
}
|
|
4923
4085
|
_handleChange(e) {
|
|
4086
|
+
e.stopPropagation();
|
|
4924
4087
|
const target = e.target;
|
|
4925
4088
|
this.value = target.value;
|
|
4926
4089
|
target.style.height = "auto";
|
|
@@ -4934,6 +4097,7 @@ var EditorTextareaLit = class extends LitElement6 {
|
|
|
4934
4097
|
);
|
|
4935
4098
|
}
|
|
4936
4099
|
_handleInput(e) {
|
|
4100
|
+
e.stopPropagation();
|
|
4937
4101
|
const target = e.target;
|
|
4938
4102
|
this.value = target.value;
|
|
4939
4103
|
target.style.height = "auto";
|
|
@@ -4966,13 +4130,14 @@ var EditorTextareaLit = class extends LitElement6 {
|
|
|
4966
4130
|
class=${classes}
|
|
4967
4131
|
name=${this.name ?? ""}
|
|
4968
4132
|
placeholder=${this.placeholder ?? ""}
|
|
4133
|
+
.value=${this.value ?? ""}
|
|
4969
4134
|
?disabled=${this.disabled}
|
|
4970
4135
|
?required=${this.required}
|
|
4971
4136
|
?readonly=${this.readonly}
|
|
4972
4137
|
rows=${this.rows ?? ""}
|
|
4973
4138
|
@change=${this._handleChange}
|
|
4974
4139
|
@input=${this._handleInput}
|
|
4975
|
-
|
|
4140
|
+
></textarea>
|
|
4976
4141
|
</div>
|
|
4977
4142
|
`;
|
|
4978
4143
|
}
|
|
@@ -6155,11 +5320,23 @@ var NavWidgetLitEditableMountable = {
|
|
|
6155
5320
|
var getCurrentPath = () => window.location.pathname;
|
|
6156
5321
|
var routeMatchesCurrent = (route) => {
|
|
6157
5322
|
const current = getCurrentPath();
|
|
6158
|
-
if (route
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
5323
|
+
if (route.endsWith("/*")) {
|
|
5324
|
+
const prefix = route.slice(0, -2);
|
|
5325
|
+
try {
|
|
5326
|
+
const canonicalPrefix = prefix ? normalizeRoute(prefix) : "";
|
|
5327
|
+
const canonicalCurrent = normalizeRoute(current || "/");
|
|
5328
|
+
return canonicalCurrent.toLowerCase().startsWith(canonicalPrefix.toLowerCase());
|
|
5329
|
+
} catch {
|
|
5330
|
+
return false;
|
|
5331
|
+
}
|
|
5332
|
+
}
|
|
5333
|
+
try {
|
|
5334
|
+
const canonicalRoute = normalizeRoute(route || "/");
|
|
5335
|
+
const canonicalCurrent = normalizeRoute(current || "/");
|
|
5336
|
+
return routesMatch(canonicalRoute, canonicalCurrent);
|
|
5337
|
+
} catch {
|
|
5338
|
+
return false;
|
|
5339
|
+
}
|
|
6163
5340
|
};
|
|
6164
5341
|
var firstRoute = (anchor) => {
|
|
6165
5342
|
const r = anchor?.route;
|
|
@@ -6169,8 +5346,8 @@ var firstRoute = (anchor) => {
|
|
|
6169
5346
|
var flattenItems = (config) => {
|
|
6170
5347
|
const actions = (config.actions || []).filter(isOwnAction);
|
|
6171
5348
|
return actions.map((tip, i) => {
|
|
6172
|
-
const anchor = tip.
|
|
6173
|
-
const legacyHref = tip.
|
|
5349
|
+
const anchor = tip.config.anchor;
|
|
5350
|
+
const legacyHref = tip.config.href;
|
|
6174
5351
|
const selector = anchor?.selector && anchor.selector !== "*" ? anchor.selector : void 0;
|
|
6175
5352
|
const route = firstRoute(anchor) ?? legacyHref;
|
|
6176
5353
|
const raw = tip;
|
|
@@ -6184,7 +5361,7 @@ var flattenItems = (config) => {
|
|
|
6184
5361
|
summary: topTitle || summarizeNavItem(tip),
|
|
6185
5362
|
trigger: describeTrigger(tip.triggerWhen),
|
|
6186
5363
|
rationale: tip.rationale?.why,
|
|
6187
|
-
description: topDescription ||
|
|
5364
|
+
description: topDescription || tip.config.description,
|
|
6188
5365
|
validation: validation && validation.length > 0 ? validation : void 0,
|
|
6189
5366
|
selector,
|
|
6190
5367
|
route: typeof route === "string" ? route : void 0,
|
|
@@ -6353,12 +5530,10 @@ var NavEditorLit = class extends LitElement14 {
|
|
|
6353
5530
|
window.removeEventListener("popstate", this._onPopstate);
|
|
6354
5531
|
super.disconnectedCallback();
|
|
6355
5532
|
}
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
super.updated(changed);
|
|
6361
|
-
if (changed.has("config")) this._runDetection();
|
|
5533
|
+
willUpdate(changed) {
|
|
5534
|
+
if (changed.has("config") && this.config) {
|
|
5535
|
+
this._detectionMap = runDetection(flattenItems(this.config));
|
|
5536
|
+
}
|
|
6362
5537
|
}
|
|
6363
5538
|
_emitConfig(updated) {
|
|
6364
5539
|
if (!this.onChange) return;
|
|
@@ -6436,10 +5611,10 @@ export {
|
|
|
6436
5611
|
};
|
|
6437
5612
|
/*! Bundled license information:
|
|
6438
5613
|
|
|
6439
|
-
react/cjs/react.
|
|
5614
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
6440
5615
|
(**
|
|
6441
5616
|
* @license React
|
|
6442
|
-
* react.
|
|
5617
|
+
* react-jsx-runtime.production.js
|
|
6443
5618
|
*
|
|
6444
5619
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6445
5620
|
*
|
|
@@ -6447,10 +5622,10 @@ react/cjs/react.development.js:
|
|
|
6447
5622
|
* LICENSE file in the root directory of this source tree.
|
|
6448
5623
|
*)
|
|
6449
5624
|
|
|
6450
|
-
react/cjs/react
|
|
5625
|
+
react/cjs/react.production.js:
|
|
6451
5626
|
(**
|
|
6452
5627
|
* @license React
|
|
6453
|
-
* react
|
|
5628
|
+
* react.production.js
|
|
6454
5629
|
*
|
|
6455
5630
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6456
5631
|
*
|
|
@@ -6458,10 +5633,10 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
6458
5633
|
* LICENSE file in the root directory of this source tree.
|
|
6459
5634
|
*)
|
|
6460
5635
|
|
|
6461
|
-
react-dom/cjs/react-dom.
|
|
5636
|
+
react-dom/cjs/react-dom.production.js:
|
|
6462
5637
|
(**
|
|
6463
5638
|
* @license React
|
|
6464
|
-
* react-dom.
|
|
5639
|
+
* react-dom.production.js
|
|
6465
5640
|
*
|
|
6466
5641
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6467
5642
|
*
|