negative-space 2.5.0 → 2.5.2

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.
@@ -1,2274 +1,3 @@
1
- import { useNSUI } from '@negative-space/provider';
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJS = (cb, mod) => function __require() {
10
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
-
29
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js
30
- var require_react_production = __commonJS({
31
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js"(exports$1) {
32
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
33
- var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
34
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
35
- var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
36
- var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
37
- var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
38
- var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
39
- var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
40
- var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
41
- var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
42
- var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
43
- var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
44
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
45
- function getIteratorFn(maybeIterable) {
46
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
47
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
48
- return "function" === typeof maybeIterable ? maybeIterable : null;
49
- }
50
- var ReactNoopUpdateQueue = {
51
- isMounted: function() {
52
- return false;
53
- },
54
- enqueueForceUpdate: function() {
55
- },
56
- enqueueReplaceState: function() {
57
- },
58
- enqueueSetState: function() {
59
- }
60
- };
61
- var assign = Object.assign;
62
- var emptyObject = {};
63
- function Component(props, context, updater) {
64
- this.props = props;
65
- this.context = context;
66
- this.refs = emptyObject;
67
- this.updater = updater || ReactNoopUpdateQueue;
68
- }
69
- Component.prototype.isReactComponent = {};
70
- Component.prototype.setState = function(partialState, callback) {
71
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
72
- throw Error(
73
- "takes an object of state variables to update or a function which returns an object of state variables."
74
- );
75
- this.updater.enqueueSetState(this, partialState, callback, "setState");
76
- };
77
- Component.prototype.forceUpdate = function(callback) {
78
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
79
- };
80
- function ComponentDummy() {
81
- }
82
- ComponentDummy.prototype = Component.prototype;
83
- function PureComponent(props, context, updater) {
84
- this.props = props;
85
- this.context = context;
86
- this.refs = emptyObject;
87
- this.updater = updater || ReactNoopUpdateQueue;
88
- }
89
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
90
- pureComponentPrototype.constructor = PureComponent;
91
- assign(pureComponentPrototype, Component.prototype);
92
- pureComponentPrototype.isPureReactComponent = true;
93
- var isArrayImpl = Array.isArray;
94
- function noop() {
95
- }
96
- var ReactSharedInternals = { H: null, A: null, T: null, S: null };
97
- var hasOwnProperty = Object.prototype.hasOwnProperty;
98
- function ReactElement(type, key, props) {
99
- var refProp = props.ref;
100
- return {
101
- $$typeof: REACT_ELEMENT_TYPE,
102
- type,
103
- key,
104
- ref: void 0 !== refProp ? refProp : null,
105
- props
106
- };
107
- }
108
- function cloneAndReplaceKey(oldElement, newKey) {
109
- return ReactElement(oldElement.type, newKey, oldElement.props);
110
- }
111
- function isValidElement(object) {
112
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
113
- }
114
- function escape(key) {
115
- var escaperLookup = { "=": "=0", ":": "=2" };
116
- return "$" + key.replace(/[=:]/g, function(match) {
117
- return escaperLookup[match];
118
- });
119
- }
120
- var userProvidedKeyEscapeRegex = /\/+/g;
121
- function getElementKey(element, index) {
122
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
123
- }
124
- function resolveThenable(thenable) {
125
- switch (thenable.status) {
126
- case "fulfilled":
127
- return thenable.value;
128
- case "rejected":
129
- throw thenable.reason;
130
- default:
131
- switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
132
- function(fulfilledValue) {
133
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
134
- },
135
- function(error) {
136
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
137
- }
138
- )), thenable.status) {
139
- case "fulfilled":
140
- return thenable.value;
141
- case "rejected":
142
- throw thenable.reason;
143
- }
144
- }
145
- throw thenable;
146
- }
147
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
148
- var type = typeof children;
149
- if ("undefined" === type || "boolean" === type) children = null;
150
- var invokeCallback = false;
151
- if (null === children) invokeCallback = true;
152
- else
153
- switch (type) {
154
- case "bigint":
155
- case "string":
156
- case "number":
157
- invokeCallback = true;
158
- break;
159
- case "object":
160
- switch (children.$$typeof) {
161
- case REACT_ELEMENT_TYPE:
162
- case REACT_PORTAL_TYPE:
163
- invokeCallback = true;
164
- break;
165
- case REACT_LAZY_TYPE:
166
- return invokeCallback = children._init, mapIntoArray(
167
- invokeCallback(children._payload),
168
- array,
169
- escapedPrefix,
170
- nameSoFar,
171
- callback
172
- );
173
- }
174
- }
175
- if (invokeCallback)
176
- 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) {
177
- return c;
178
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
179
- callback,
180
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
181
- userProvidedKeyEscapeRegex,
182
- "$&/"
183
- ) + "/") + invokeCallback
184
- )), array.push(callback)), 1;
185
- invokeCallback = 0;
186
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
187
- if (isArrayImpl(children))
188
- for (var i = 0; i < children.length; i++)
189
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
190
- nameSoFar,
191
- array,
192
- escapedPrefix,
193
- type,
194
- callback
195
- );
196
- else if (i = getIteratorFn(children), "function" === typeof i)
197
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
198
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
199
- nameSoFar,
200
- array,
201
- escapedPrefix,
202
- type,
203
- callback
204
- );
205
- else if ("object" === type) {
206
- if ("function" === typeof children.then)
207
- return mapIntoArray(
208
- resolveThenable(children),
209
- array,
210
- escapedPrefix,
211
- nameSoFar,
212
- callback
213
- );
214
- array = String(children);
215
- throw Error(
216
- "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."
217
- );
218
- }
219
- return invokeCallback;
220
- }
221
- function mapChildren(children, func, context) {
222
- if (null == children) return children;
223
- var result = [], count = 0;
224
- mapIntoArray(children, result, "", "", function(child) {
225
- return func.call(context, child, count++);
226
- });
227
- return result;
228
- }
229
- function lazyInitializer(payload) {
230
- if (-1 === payload._status) {
231
- var ctor = payload._result;
232
- ctor = ctor();
233
- ctor.then(
234
- function(moduleObject) {
235
- if (0 === payload._status || -1 === payload._status)
236
- payload._status = 1, payload._result = moduleObject;
237
- },
238
- function(error) {
239
- if (0 === payload._status || -1 === payload._status)
240
- payload._status = 2, payload._result = error;
241
- }
242
- );
243
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
244
- }
245
- if (1 === payload._status) return payload._result.default;
246
- throw payload._result;
247
- }
248
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
249
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
250
- var event = new window.ErrorEvent("error", {
251
- bubbles: true,
252
- cancelable: true,
253
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
254
- error
255
- });
256
- if (!window.dispatchEvent(event)) return;
257
- } else if ("object" === typeof process && "function" === typeof process.emit) {
258
- process.emit("uncaughtException", error);
259
- return;
260
- }
261
- console.error(error);
262
- };
263
- var Children = {
264
- map: mapChildren,
265
- forEach: function(children, forEachFunc, forEachContext) {
266
- mapChildren(
267
- children,
268
- function() {
269
- forEachFunc.apply(this, arguments);
270
- },
271
- forEachContext
272
- );
273
- },
274
- count: function(children) {
275
- var n = 0;
276
- mapChildren(children, function() {
277
- n++;
278
- });
279
- return n;
280
- },
281
- toArray: function(children) {
282
- return mapChildren(children, function(child) {
283
- return child;
284
- }) || [];
285
- },
286
- only: function(children) {
287
- if (!isValidElement(children))
288
- throw Error(
289
- "React.Children.only expected to receive a single React element child."
290
- );
291
- return children;
292
- }
293
- };
294
- exports$1.Activity = REACT_ACTIVITY_TYPE;
295
- exports$1.Children = Children;
296
- exports$1.Component = Component;
297
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
298
- exports$1.Profiler = REACT_PROFILER_TYPE;
299
- exports$1.PureComponent = PureComponent;
300
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
301
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
302
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
303
- exports$1.__COMPILER_RUNTIME = {
304
- __proto__: null,
305
- c: function(size) {
306
- return ReactSharedInternals.H.useMemoCache(size);
307
- }
308
- };
309
- exports$1.cache = function(fn) {
310
- return function() {
311
- return fn.apply(null, arguments);
312
- };
313
- };
314
- exports$1.cacheSignal = function() {
315
- return null;
316
- };
317
- exports$1.cloneElement = function(element, config, children) {
318
- if (null === element || void 0 === element)
319
- throw Error(
320
- "The argument must be a React element, but you passed " + element + "."
321
- );
322
- var props = assign({}, element.props), key = element.key;
323
- if (null != config)
324
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
325
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
326
- var propName = arguments.length - 2;
327
- if (1 === propName) props.children = children;
328
- else if (1 < propName) {
329
- for (var childArray = Array(propName), i = 0; i < propName; i++)
330
- childArray[i] = arguments[i + 2];
331
- props.children = childArray;
332
- }
333
- return ReactElement(element.type, key, props);
334
- };
335
- exports$1.createContext = function(defaultValue) {
336
- defaultValue = {
337
- $$typeof: REACT_CONTEXT_TYPE,
338
- _currentValue: defaultValue,
339
- _currentValue2: defaultValue,
340
- _threadCount: 0,
341
- Provider: null,
342
- Consumer: null
343
- };
344
- defaultValue.Provider = defaultValue;
345
- defaultValue.Consumer = {
346
- $$typeof: REACT_CONSUMER_TYPE,
347
- _context: defaultValue
348
- };
349
- return defaultValue;
350
- };
351
- exports$1.createElement = function(type, config, children) {
352
- var propName, props = {}, key = null;
353
- if (null != config)
354
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
355
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
356
- var childrenLength = arguments.length - 2;
357
- if (1 === childrenLength) props.children = children;
358
- else if (1 < childrenLength) {
359
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
360
- childArray[i] = arguments[i + 2];
361
- props.children = childArray;
362
- }
363
- if (type && type.defaultProps)
364
- for (propName in childrenLength = type.defaultProps, childrenLength)
365
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
366
- return ReactElement(type, key, props);
367
- };
368
- exports$1.createRef = function() {
369
- return { current: null };
370
- };
371
- exports$1.forwardRef = function(render) {
372
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
373
- };
374
- exports$1.isValidElement = isValidElement;
375
- exports$1.lazy = function(ctor) {
376
- return {
377
- $$typeof: REACT_LAZY_TYPE,
378
- _payload: { _status: -1, _result: ctor },
379
- _init: lazyInitializer
380
- };
381
- };
382
- exports$1.memo = function(type, compare) {
383
- return {
384
- $$typeof: REACT_MEMO_TYPE,
385
- type,
386
- compare: void 0 === compare ? null : compare
387
- };
388
- };
389
- exports$1.startTransition = function(scope) {
390
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
391
- ReactSharedInternals.T = currentTransition;
392
- try {
393
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
394
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
395
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
396
- } catch (error) {
397
- reportGlobalError(error);
398
- } finally {
399
- null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
400
- }
401
- };
402
- exports$1.unstable_useCacheRefresh = function() {
403
- return ReactSharedInternals.H.useCacheRefresh();
404
- };
405
- exports$1.use = function(usable) {
406
- return ReactSharedInternals.H.use(usable);
407
- };
408
- exports$1.useActionState = function(action, initialState, permalink) {
409
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
410
- };
411
- exports$1.useCallback = function(callback, deps) {
412
- return ReactSharedInternals.H.useCallback(callback, deps);
413
- };
414
- exports$1.useContext = function(Context) {
415
- return ReactSharedInternals.H.useContext(Context);
416
- };
417
- exports$1.useDebugValue = function() {
418
- };
419
- exports$1.useDeferredValue = function(value, initialValue) {
420
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
421
- };
422
- exports$1.useEffect = function(create, deps) {
423
- return ReactSharedInternals.H.useEffect(create, deps);
424
- };
425
- exports$1.useEffectEvent = function(callback) {
426
- return ReactSharedInternals.H.useEffectEvent(callback);
427
- };
428
- exports$1.useId = function() {
429
- return ReactSharedInternals.H.useId();
430
- };
431
- exports$1.useImperativeHandle = function(ref, create, deps) {
432
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
433
- };
434
- exports$1.useInsertionEffect = function(create, deps) {
435
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
436
- };
437
- exports$1.useLayoutEffect = function(create, deps) {
438
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
439
- };
440
- exports$1.useMemo = function(create, deps) {
441
- return ReactSharedInternals.H.useMemo(create, deps);
442
- };
443
- exports$1.useOptimistic = function(passthrough, reducer) {
444
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
445
- };
446
- exports$1.useReducer = function(reducer, initialArg, init) {
447
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
448
- };
449
- exports$1.useRef = function(initialValue) {
450
- return ReactSharedInternals.H.useRef(initialValue);
451
- };
452
- exports$1.useState = function(initialState) {
453
- return ReactSharedInternals.H.useState(initialState);
454
- };
455
- exports$1.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
456
- return ReactSharedInternals.H.useSyncExternalStore(
457
- subscribe,
458
- getSnapshot,
459
- getServerSnapshot
460
- );
461
- };
462
- exports$1.useTransition = function() {
463
- return ReactSharedInternals.H.useTransition();
464
- };
465
- exports$1.version = "19.2.3";
466
- }
467
- });
468
-
469
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js
470
- var require_react_development = __commonJS({
471
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js"(exports$1, module) {
472
- "production" !== process.env.NODE_ENV && (function() {
473
- function defineDeprecationWarning(methodName, info) {
474
- Object.defineProperty(Component.prototype, methodName, {
475
- get: function() {
476
- console.warn(
477
- "%s(...) is deprecated in plain JavaScript React classes. %s",
478
- info[0],
479
- info[1]
480
- );
481
- }
482
- });
483
- }
484
- function getIteratorFn(maybeIterable) {
485
- if (null === maybeIterable || "object" !== typeof maybeIterable)
486
- return null;
487
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
488
- return "function" === typeof maybeIterable ? maybeIterable : null;
489
- }
490
- function warnNoop(publicInstance, callerName) {
491
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
492
- var warningKey = publicInstance + "." + callerName;
493
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
494
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
495
- callerName,
496
- publicInstance
497
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
498
- }
499
- function Component(props, context, updater) {
500
- this.props = props;
501
- this.context = context;
502
- this.refs = emptyObject;
503
- this.updater = updater || ReactNoopUpdateQueue;
504
- }
505
- function ComponentDummy() {
506
- }
507
- function PureComponent(props, context, updater) {
508
- this.props = props;
509
- this.context = context;
510
- this.refs = emptyObject;
511
- this.updater = updater || ReactNoopUpdateQueue;
512
- }
513
- function noop() {
514
- }
515
- function testStringCoercion(value) {
516
- return "" + value;
517
- }
518
- function checkKeyStringCoercion(value) {
519
- try {
520
- testStringCoercion(value);
521
- var JSCompiler_inline_result = false;
522
- } catch (e) {
523
- JSCompiler_inline_result = true;
524
- }
525
- if (JSCompiler_inline_result) {
526
- JSCompiler_inline_result = console;
527
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
528
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
529
- JSCompiler_temp_const.call(
530
- JSCompiler_inline_result,
531
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
532
- JSCompiler_inline_result$jscomp$0
533
- );
534
- return testStringCoercion(value);
535
- }
536
- }
537
- function getComponentNameFromType(type) {
538
- if (null == type) return null;
539
- if ("function" === typeof type)
540
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
541
- if ("string" === typeof type) return type;
542
- switch (type) {
543
- case REACT_FRAGMENT_TYPE:
544
- return "Fragment";
545
- case REACT_PROFILER_TYPE:
546
- return "Profiler";
547
- case REACT_STRICT_MODE_TYPE:
548
- return "StrictMode";
549
- case REACT_SUSPENSE_TYPE:
550
- return "Suspense";
551
- case REACT_SUSPENSE_LIST_TYPE:
552
- return "SuspenseList";
553
- case REACT_ACTIVITY_TYPE:
554
- return "Activity";
555
- }
556
- if ("object" === typeof type)
557
- switch ("number" === typeof type.tag && console.error(
558
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
559
- ), type.$$typeof) {
560
- case REACT_PORTAL_TYPE:
561
- return "Portal";
562
- case REACT_CONTEXT_TYPE:
563
- return type.displayName || "Context";
564
- case REACT_CONSUMER_TYPE:
565
- return (type._context.displayName || "Context") + ".Consumer";
566
- case REACT_FORWARD_REF_TYPE:
567
- var innerType = type.render;
568
- type = type.displayName;
569
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
570
- return type;
571
- case REACT_MEMO_TYPE:
572
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
573
- case REACT_LAZY_TYPE:
574
- innerType = type._payload;
575
- type = type._init;
576
- try {
577
- return getComponentNameFromType(type(innerType));
578
- } catch (x) {
579
- }
580
- }
581
- return null;
582
- }
583
- function getTaskName(type) {
584
- if (type === REACT_FRAGMENT_TYPE) return "<>";
585
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
586
- return "<...>";
587
- try {
588
- var name = getComponentNameFromType(type);
589
- return name ? "<" + name + ">" : "<...>";
590
- } catch (x) {
591
- return "<...>";
592
- }
593
- }
594
- function getOwner() {
595
- var dispatcher = ReactSharedInternals.A;
596
- return null === dispatcher ? null : dispatcher.getOwner();
597
- }
598
- function UnknownOwner() {
599
- return Error("react-stack-top-frame");
600
- }
601
- function hasValidKey(config) {
602
- if (hasOwnProperty.call(config, "key")) {
603
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
604
- if (getter && getter.isReactWarning) return false;
605
- }
606
- return void 0 !== config.key;
607
- }
608
- function defineKeyPropWarningGetter(props, displayName) {
609
- function warnAboutAccessingKey() {
610
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
611
- "%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)",
612
- displayName
613
- ));
614
- }
615
- warnAboutAccessingKey.isReactWarning = true;
616
- Object.defineProperty(props, "key", {
617
- get: warnAboutAccessingKey,
618
- configurable: true
619
- });
620
- }
621
- function elementRefGetterWithDeprecationWarning() {
622
- var componentName = getComponentNameFromType(this.type);
623
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
624
- "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."
625
- ));
626
- componentName = this.props.ref;
627
- return void 0 !== componentName ? componentName : null;
628
- }
629
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
630
- var refProp = props.ref;
631
- type = {
632
- $$typeof: REACT_ELEMENT_TYPE,
633
- type,
634
- key,
635
- props,
636
- _owner: owner
637
- };
638
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
639
- enumerable: false,
640
- get: elementRefGetterWithDeprecationWarning
641
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
642
- type._store = {};
643
- Object.defineProperty(type._store, "validated", {
644
- configurable: false,
645
- enumerable: false,
646
- writable: true,
647
- value: 0
648
- });
649
- Object.defineProperty(type, "_debugInfo", {
650
- configurable: false,
651
- enumerable: false,
652
- writable: true,
653
- value: null
654
- });
655
- Object.defineProperty(type, "_debugStack", {
656
- configurable: false,
657
- enumerable: false,
658
- writable: true,
659
- value: debugStack
660
- });
661
- Object.defineProperty(type, "_debugTask", {
662
- configurable: false,
663
- enumerable: false,
664
- writable: true,
665
- value: debugTask
666
- });
667
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
668
- return type;
669
- }
670
- function cloneAndReplaceKey(oldElement, newKey) {
671
- newKey = ReactElement(
672
- oldElement.type,
673
- newKey,
674
- oldElement.props,
675
- oldElement._owner,
676
- oldElement._debugStack,
677
- oldElement._debugTask
678
- );
679
- oldElement._store && (newKey._store.validated = oldElement._store.validated);
680
- return newKey;
681
- }
682
- function validateChildKeys(node) {
683
- 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));
684
- }
685
- function isValidElement(object) {
686
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
687
- }
688
- function escape(key) {
689
- var escaperLookup = { "=": "=0", ":": "=2" };
690
- return "$" + key.replace(/[=:]/g, function(match) {
691
- return escaperLookup[match];
692
- });
693
- }
694
- function getElementKey(element, index) {
695
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
696
- }
697
- function resolveThenable(thenable) {
698
- switch (thenable.status) {
699
- case "fulfilled":
700
- return thenable.value;
701
- case "rejected":
702
- throw thenable.reason;
703
- default:
704
- switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
705
- function(fulfilledValue) {
706
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
707
- },
708
- function(error) {
709
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
710
- }
711
- )), thenable.status) {
712
- case "fulfilled":
713
- return thenable.value;
714
- case "rejected":
715
- throw thenable.reason;
716
- }
717
- }
718
- throw thenable;
719
- }
720
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
721
- var type = typeof children;
722
- if ("undefined" === type || "boolean" === type) children = null;
723
- var invokeCallback = false;
724
- if (null === children) invokeCallback = true;
725
- else
726
- switch (type) {
727
- case "bigint":
728
- case "string":
729
- case "number":
730
- invokeCallback = true;
731
- break;
732
- case "object":
733
- switch (children.$$typeof) {
734
- case REACT_ELEMENT_TYPE:
735
- case REACT_PORTAL_TYPE:
736
- invokeCallback = true;
737
- break;
738
- case REACT_LAZY_TYPE:
739
- return invokeCallback = children._init, mapIntoArray(
740
- invokeCallback(children._payload),
741
- array,
742
- escapedPrefix,
743
- nameSoFar,
744
- callback
745
- );
746
- }
747
- }
748
- if (invokeCallback) {
749
- invokeCallback = children;
750
- callback = callback(invokeCallback);
751
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
752
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
753
- return c;
754
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
755
- callback,
756
- escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
757
- userProvidedKeyEscapeRegex,
758
- "$&/"
759
- ) + "/") + childKey
760
- ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
761
- return 1;
762
- }
763
- invokeCallback = 0;
764
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
765
- if (isArrayImpl(children))
766
- for (var i = 0; i < children.length; i++)
767
- nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
768
- nameSoFar,
769
- array,
770
- escapedPrefix,
771
- type,
772
- callback
773
- );
774
- else if (i = getIteratorFn(children), "function" === typeof i)
775
- for (i === children.entries && (didWarnAboutMaps || console.warn(
776
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
777
- ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
778
- nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
779
- nameSoFar,
780
- array,
781
- escapedPrefix,
782
- type,
783
- callback
784
- );
785
- else if ("object" === type) {
786
- if ("function" === typeof children.then)
787
- return mapIntoArray(
788
- resolveThenable(children),
789
- array,
790
- escapedPrefix,
791
- nameSoFar,
792
- callback
793
- );
794
- array = String(children);
795
- throw Error(
796
- "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."
797
- );
798
- }
799
- return invokeCallback;
800
- }
801
- function mapChildren(children, func, context) {
802
- if (null == children) return children;
803
- var result = [], count = 0;
804
- mapIntoArray(children, result, "", "", function(child) {
805
- return func.call(context, child, count++);
806
- });
807
- return result;
808
- }
809
- function lazyInitializer(payload) {
810
- if (-1 === payload._status) {
811
- var ioInfo = payload._ioInfo;
812
- null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
813
- ioInfo = payload._result;
814
- var thenable = ioInfo();
815
- thenable.then(
816
- function(moduleObject) {
817
- if (0 === payload._status || -1 === payload._status) {
818
- payload._status = 1;
819
- payload._result = moduleObject;
820
- var _ioInfo = payload._ioInfo;
821
- null != _ioInfo && (_ioInfo.end = performance.now());
822
- void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
823
- }
824
- },
825
- function(error) {
826
- if (0 === payload._status || -1 === payload._status) {
827
- payload._status = 2;
828
- payload._result = error;
829
- var _ioInfo2 = payload._ioInfo;
830
- null != _ioInfo2 && (_ioInfo2.end = performance.now());
831
- void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
832
- }
833
- }
834
- );
835
- ioInfo = payload._ioInfo;
836
- if (null != ioInfo) {
837
- ioInfo.value = thenable;
838
- var displayName = thenable.displayName;
839
- "string" === typeof displayName && (ioInfo.name = displayName);
840
- }
841
- -1 === payload._status && (payload._status = 0, payload._result = thenable);
842
- }
843
- if (1 === payload._status)
844
- return ioInfo = payload._result, void 0 === ioInfo && console.error(
845
- "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?",
846
- ioInfo
847
- ), "default" in ioInfo || console.error(
848
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
849
- ioInfo
850
- ), ioInfo.default;
851
- throw payload._result;
852
- }
853
- function resolveDispatcher() {
854
- var dispatcher = ReactSharedInternals.H;
855
- null === dispatcher && console.error(
856
- "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."
857
- );
858
- return dispatcher;
859
- }
860
- function releaseAsyncTransition() {
861
- ReactSharedInternals.asyncTransitions--;
862
- }
863
- function enqueueTask(task) {
864
- if (null === enqueueTaskImpl)
865
- try {
866
- var requireString = ("require" + Math.random()).slice(0, 7);
867
- enqueueTaskImpl = (module && module[requireString]).call(
868
- module,
869
- "timers"
870
- ).setImmediate;
871
- } catch (_err) {
872
- enqueueTaskImpl = function(callback) {
873
- false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
874
- "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."
875
- ));
876
- var channel = new MessageChannel();
877
- channel.port1.onmessage = callback;
878
- channel.port2.postMessage(void 0);
879
- };
880
- }
881
- return enqueueTaskImpl(task);
882
- }
883
- function aggregateErrors(errors) {
884
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
885
- }
886
- function popActScope(prevActQueue, prevActScopeDepth) {
887
- prevActScopeDepth !== actScopeDepth - 1 && console.error(
888
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
889
- );
890
- actScopeDepth = prevActScopeDepth;
891
- }
892
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
893
- var queue = ReactSharedInternals.actQueue;
894
- if (null !== queue)
895
- if (0 !== queue.length)
896
- try {
897
- flushActQueue(queue);
898
- enqueueTask(function() {
899
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
900
- });
901
- return;
902
- } catch (error) {
903
- ReactSharedInternals.thrownErrors.push(error);
904
- }
905
- else ReactSharedInternals.actQueue = null;
906
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
907
- }
908
- function flushActQueue(queue) {
909
- if (!isFlushing) {
910
- isFlushing = true;
911
- var i = 0;
912
- try {
913
- for (; i < queue.length; i++) {
914
- var callback = queue[i];
915
- do {
916
- ReactSharedInternals.didUsePromise = false;
917
- var continuation = callback(false);
918
- if (null !== continuation) {
919
- if (ReactSharedInternals.didUsePromise) {
920
- queue[i] = callback;
921
- queue.splice(0, i);
922
- return;
923
- }
924
- callback = continuation;
925
- } else break;
926
- } while (1);
927
- }
928
- queue.length = 0;
929
- } catch (error) {
930
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
931
- } finally {
932
- isFlushing = false;
933
- }
934
- }
935
- }
936
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
937
- 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 = {
938
- isMounted: function() {
939
- return false;
940
- },
941
- enqueueForceUpdate: function(publicInstance) {
942
- warnNoop(publicInstance, "forceUpdate");
943
- },
944
- enqueueReplaceState: function(publicInstance) {
945
- warnNoop(publicInstance, "replaceState");
946
- },
947
- enqueueSetState: function(publicInstance) {
948
- warnNoop(publicInstance, "setState");
949
- }
950
- }, assign = Object.assign, emptyObject = {};
951
- Object.freeze(emptyObject);
952
- Component.prototype.isReactComponent = {};
953
- Component.prototype.setState = function(partialState, callback) {
954
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
955
- throw Error(
956
- "takes an object of state variables to update or a function which returns an object of state variables."
957
- );
958
- this.updater.enqueueSetState(this, partialState, callback, "setState");
959
- };
960
- Component.prototype.forceUpdate = function(callback) {
961
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
962
- };
963
- var deprecatedAPIs = {
964
- isMounted: [
965
- "isMounted",
966
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
967
- ],
968
- replaceState: [
969
- "replaceState",
970
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
971
- ]
972
- };
973
- for (fnName in deprecatedAPIs)
974
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
975
- ComponentDummy.prototype = Component.prototype;
976
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
977
- deprecatedAPIs.constructor = PureComponent;
978
- assign(deprecatedAPIs, Component.prototype);
979
- deprecatedAPIs.isPureReactComponent = true;
980
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
981
- H: null,
982
- A: null,
983
- T: null,
984
- S: null,
985
- actQueue: null,
986
- asyncTransitions: 0,
987
- isBatchingLegacy: false,
988
- didScheduleLegacyUpdate: false,
989
- didUsePromise: false,
990
- thrownErrors: [],
991
- getCurrentStack: null,
992
- recentlyCreatedOwnerStacks: 0
993
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
994
- return null;
995
- };
996
- deprecatedAPIs = {
997
- react_stack_bottom_frame: function(callStackForError) {
998
- return callStackForError();
999
- }
1000
- };
1001
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1002
- var didWarnAboutElementRef = {};
1003
- var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1004
- deprecatedAPIs,
1005
- UnknownOwner
1006
- )();
1007
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1008
- var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1009
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1010
- var event = new window.ErrorEvent("error", {
1011
- bubbles: true,
1012
- cancelable: true,
1013
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1014
- error
1015
- });
1016
- if (!window.dispatchEvent(event)) return;
1017
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1018
- process.emit("uncaughtException", error);
1019
- return;
1020
- }
1021
- console.error(error);
1022
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1023
- queueMicrotask(function() {
1024
- return queueMicrotask(callback);
1025
- });
1026
- } : enqueueTask;
1027
- deprecatedAPIs = Object.freeze({
1028
- __proto__: null,
1029
- c: function(size) {
1030
- return resolveDispatcher().useMemoCache(size);
1031
- }
1032
- });
1033
- var fnName = {
1034
- map: mapChildren,
1035
- forEach: function(children, forEachFunc, forEachContext) {
1036
- mapChildren(
1037
- children,
1038
- function() {
1039
- forEachFunc.apply(this, arguments);
1040
- },
1041
- forEachContext
1042
- );
1043
- },
1044
- count: function(children) {
1045
- var n = 0;
1046
- mapChildren(children, function() {
1047
- n++;
1048
- });
1049
- return n;
1050
- },
1051
- toArray: function(children) {
1052
- return mapChildren(children, function(child) {
1053
- return child;
1054
- }) || [];
1055
- },
1056
- only: function(children) {
1057
- if (!isValidElement(children))
1058
- throw Error(
1059
- "React.Children.only expected to receive a single React element child."
1060
- );
1061
- return children;
1062
- }
1063
- };
1064
- exports$1.Activity = REACT_ACTIVITY_TYPE;
1065
- exports$1.Children = fnName;
1066
- exports$1.Component = Component;
1067
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1068
- exports$1.Profiler = REACT_PROFILER_TYPE;
1069
- exports$1.PureComponent = PureComponent;
1070
- exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
1071
- exports$1.Suspense = REACT_SUSPENSE_TYPE;
1072
- exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1073
- exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1074
- exports$1.act = function(callback) {
1075
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1076
- actScopeDepth++;
1077
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1078
- try {
1079
- var result = callback();
1080
- } catch (error) {
1081
- ReactSharedInternals.thrownErrors.push(error);
1082
- }
1083
- if (0 < ReactSharedInternals.thrownErrors.length)
1084
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1085
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1086
- var thenable = result;
1087
- queueSeveralMicrotasks(function() {
1088
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1089
- "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 () => ...);"
1090
- ));
1091
- });
1092
- return {
1093
- then: function(resolve, reject) {
1094
- didAwaitActCall = true;
1095
- thenable.then(
1096
- function(returnValue) {
1097
- popActScope(prevActQueue, prevActScopeDepth);
1098
- if (0 === prevActScopeDepth) {
1099
- try {
1100
- flushActQueue(queue), enqueueTask(function() {
1101
- return recursivelyFlushAsyncActWork(
1102
- returnValue,
1103
- resolve,
1104
- reject
1105
- );
1106
- });
1107
- } catch (error$0) {
1108
- ReactSharedInternals.thrownErrors.push(error$0);
1109
- }
1110
- if (0 < ReactSharedInternals.thrownErrors.length) {
1111
- var _thrownError = aggregateErrors(
1112
- ReactSharedInternals.thrownErrors
1113
- );
1114
- ReactSharedInternals.thrownErrors.length = 0;
1115
- reject(_thrownError);
1116
- }
1117
- } else resolve(returnValue);
1118
- },
1119
- function(error) {
1120
- popActScope(prevActQueue, prevActScopeDepth);
1121
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1122
- ReactSharedInternals.thrownErrors
1123
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1124
- }
1125
- );
1126
- }
1127
- };
1128
- }
1129
- var returnValue$jscomp$0 = result;
1130
- popActScope(prevActQueue, prevActScopeDepth);
1131
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1132
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1133
- "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(() => ...)"
1134
- ));
1135
- }), ReactSharedInternals.actQueue = null);
1136
- if (0 < ReactSharedInternals.thrownErrors.length)
1137
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1138
- return {
1139
- then: function(resolve, reject) {
1140
- didAwaitActCall = true;
1141
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1142
- return recursivelyFlushAsyncActWork(
1143
- returnValue$jscomp$0,
1144
- resolve,
1145
- reject
1146
- );
1147
- })) : resolve(returnValue$jscomp$0);
1148
- }
1149
- };
1150
- };
1151
- exports$1.cache = function(fn) {
1152
- return function() {
1153
- return fn.apply(null, arguments);
1154
- };
1155
- };
1156
- exports$1.cacheSignal = function() {
1157
- return null;
1158
- };
1159
- exports$1.captureOwnerStack = function() {
1160
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1161
- return null === getCurrentStack ? null : getCurrentStack();
1162
- };
1163
- exports$1.cloneElement = function(element, config, children) {
1164
- if (null === element || void 0 === element)
1165
- throw Error(
1166
- "The argument must be a React element, but you passed " + element + "."
1167
- );
1168
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1169
- if (null != config) {
1170
- var JSCompiler_inline_result;
1171
- a: {
1172
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1173
- config,
1174
- "ref"
1175
- ).get) && JSCompiler_inline_result.isReactWarning) {
1176
- JSCompiler_inline_result = false;
1177
- break a;
1178
- }
1179
- JSCompiler_inline_result = void 0 !== config.ref;
1180
- }
1181
- JSCompiler_inline_result && (owner = getOwner());
1182
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1183
- for (propName in config)
1184
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1185
- }
1186
- var propName = arguments.length - 2;
1187
- if (1 === propName) props.children = children;
1188
- else if (1 < propName) {
1189
- JSCompiler_inline_result = Array(propName);
1190
- for (var i = 0; i < propName; i++)
1191
- JSCompiler_inline_result[i] = arguments[i + 2];
1192
- props.children = JSCompiler_inline_result;
1193
- }
1194
- props = ReactElement(
1195
- element.type,
1196
- key,
1197
- props,
1198
- owner,
1199
- element._debugStack,
1200
- element._debugTask
1201
- );
1202
- for (key = 2; key < arguments.length; key++)
1203
- validateChildKeys(arguments[key]);
1204
- return props;
1205
- };
1206
- exports$1.createContext = function(defaultValue) {
1207
- defaultValue = {
1208
- $$typeof: REACT_CONTEXT_TYPE,
1209
- _currentValue: defaultValue,
1210
- _currentValue2: defaultValue,
1211
- _threadCount: 0,
1212
- Provider: null,
1213
- Consumer: null
1214
- };
1215
- defaultValue.Provider = defaultValue;
1216
- defaultValue.Consumer = {
1217
- $$typeof: REACT_CONSUMER_TYPE,
1218
- _context: defaultValue
1219
- };
1220
- defaultValue._currentRenderer = null;
1221
- defaultValue._currentRenderer2 = null;
1222
- return defaultValue;
1223
- };
1224
- exports$1.createElement = function(type, config, children) {
1225
- for (var i = 2; i < arguments.length; i++)
1226
- validateChildKeys(arguments[i]);
1227
- i = {};
1228
- var key = null;
1229
- if (null != config)
1230
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1231
- "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"
1232
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
1233
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1234
- var childrenLength = arguments.length - 2;
1235
- if (1 === childrenLength) i.children = children;
1236
- else if (1 < childrenLength) {
1237
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1238
- childArray[_i] = arguments[_i + 2];
1239
- Object.freeze && Object.freeze(childArray);
1240
- i.children = childArray;
1241
- }
1242
- if (type && type.defaultProps)
1243
- for (propName in childrenLength = type.defaultProps, childrenLength)
1244
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1245
- key && defineKeyPropWarningGetter(
1246
- i,
1247
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1248
- );
1249
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1250
- return ReactElement(
1251
- type,
1252
- key,
1253
- i,
1254
- getOwner(),
1255
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1256
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1257
- );
1258
- };
1259
- exports$1.createRef = function() {
1260
- var refObject = { current: null };
1261
- Object.seal(refObject);
1262
- return refObject;
1263
- };
1264
- exports$1.forwardRef = function(render) {
1265
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1266
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1267
- ) : "function" !== typeof render ? console.error(
1268
- "forwardRef requires a render function but was given %s.",
1269
- null === render ? "null" : typeof render
1270
- ) : 0 !== render.length && 2 !== render.length && console.error(
1271
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1272
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1273
- );
1274
- null != render && null != render.defaultProps && console.error(
1275
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1276
- );
1277
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1278
- Object.defineProperty(elementType, "displayName", {
1279
- enumerable: false,
1280
- configurable: true,
1281
- get: function() {
1282
- return ownName;
1283
- },
1284
- set: function(name) {
1285
- ownName = name;
1286
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1287
- }
1288
- });
1289
- return elementType;
1290
- };
1291
- exports$1.isValidElement = isValidElement;
1292
- exports$1.lazy = function(ctor) {
1293
- ctor = { _status: -1, _result: ctor };
1294
- var lazyType = {
1295
- $$typeof: REACT_LAZY_TYPE,
1296
- _payload: ctor,
1297
- _init: lazyInitializer
1298
- }, ioInfo = {
1299
- name: "lazy",
1300
- start: -1,
1301
- end: -1,
1302
- value: null,
1303
- owner: null,
1304
- debugStack: Error("react-stack-top-frame"),
1305
- debugTask: console.createTask ? console.createTask("lazy()") : null
1306
- };
1307
- ctor._ioInfo = ioInfo;
1308
- lazyType._debugInfo = [{ awaited: ioInfo }];
1309
- return lazyType;
1310
- };
1311
- exports$1.memo = function(type, compare) {
1312
- null == type && console.error(
1313
- "memo: The first argument must be a component. Instead received: %s",
1314
- null === type ? "null" : typeof type
1315
- );
1316
- compare = {
1317
- $$typeof: REACT_MEMO_TYPE,
1318
- type,
1319
- compare: void 0 === compare ? null : compare
1320
- };
1321
- var ownName;
1322
- Object.defineProperty(compare, "displayName", {
1323
- enumerable: false,
1324
- configurable: true,
1325
- get: function() {
1326
- return ownName;
1327
- },
1328
- set: function(name) {
1329
- ownName = name;
1330
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1331
- }
1332
- });
1333
- return compare;
1334
- };
1335
- exports$1.startTransition = function(scope) {
1336
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1337
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1338
- ReactSharedInternals.T = currentTransition;
1339
- try {
1340
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1341
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1342
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
1343
- } catch (error) {
1344
- reportGlobalError(error);
1345
- } finally {
1346
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1347
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1348
- )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
1349
- "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."
1350
- ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1351
- }
1352
- };
1353
- exports$1.unstable_useCacheRefresh = function() {
1354
- return resolveDispatcher().useCacheRefresh();
1355
- };
1356
- exports$1.use = function(usable) {
1357
- return resolveDispatcher().use(usable);
1358
- };
1359
- exports$1.useActionState = function(action, initialState, permalink) {
1360
- return resolveDispatcher().useActionState(
1361
- action,
1362
- initialState,
1363
- permalink
1364
- );
1365
- };
1366
- exports$1.useCallback = function(callback, deps) {
1367
- return resolveDispatcher().useCallback(callback, deps);
1368
- };
1369
- exports$1.useContext = function(Context) {
1370
- var dispatcher = resolveDispatcher();
1371
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1372
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1373
- );
1374
- return dispatcher.useContext(Context);
1375
- };
1376
- exports$1.useDebugValue = function(value, formatterFn) {
1377
- return resolveDispatcher().useDebugValue(value, formatterFn);
1378
- };
1379
- exports$1.useDeferredValue = function(value, initialValue) {
1380
- return resolveDispatcher().useDeferredValue(value, initialValue);
1381
- };
1382
- exports$1.useEffect = function(create, deps) {
1383
- null == create && console.warn(
1384
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1385
- );
1386
- return resolveDispatcher().useEffect(create, deps);
1387
- };
1388
- exports$1.useEffectEvent = function(callback) {
1389
- return resolveDispatcher().useEffectEvent(callback);
1390
- };
1391
- exports$1.useId = function() {
1392
- return resolveDispatcher().useId();
1393
- };
1394
- exports$1.useImperativeHandle = function(ref, create, deps) {
1395
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1396
- };
1397
- exports$1.useInsertionEffect = function(create, deps) {
1398
- null == create && console.warn(
1399
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1400
- );
1401
- return resolveDispatcher().useInsertionEffect(create, deps);
1402
- };
1403
- exports$1.useLayoutEffect = function(create, deps) {
1404
- null == create && console.warn(
1405
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1406
- );
1407
- return resolveDispatcher().useLayoutEffect(create, deps);
1408
- };
1409
- exports$1.useMemo = function(create, deps) {
1410
- return resolveDispatcher().useMemo(create, deps);
1411
- };
1412
- exports$1.useOptimistic = function(passthrough, reducer) {
1413
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1414
- };
1415
- exports$1.useReducer = function(reducer, initialArg, init) {
1416
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1417
- };
1418
- exports$1.useRef = function(initialValue) {
1419
- return resolveDispatcher().useRef(initialValue);
1420
- };
1421
- exports$1.useState = function(initialState) {
1422
- return resolveDispatcher().useState(initialState);
1423
- };
1424
- exports$1.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1425
- return resolveDispatcher().useSyncExternalStore(
1426
- subscribe,
1427
- getSnapshot,
1428
- getServerSnapshot
1429
- );
1430
- };
1431
- exports$1.useTransition = function() {
1432
- return resolveDispatcher().useTransition();
1433
- };
1434
- exports$1.version = "19.2.3";
1435
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1436
- })();
1437
- }
1438
- });
1439
-
1440
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js
1441
- var require_react = __commonJS({
1442
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"(exports$1, module) {
1443
- if (process.env.NODE_ENV === "production") {
1444
- module.exports = require_react_production();
1445
- } else {
1446
- module.exports = require_react_development();
1447
- }
1448
- }
1449
- });
1450
-
1451
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js
1452
- var require_react_jsx_runtime_production = __commonJS({
1453
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js"(exports$1) {
1454
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
1455
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
1456
- function jsxProd(type, config, maybeKey) {
1457
- var key = null;
1458
- void 0 !== maybeKey && (key = "" + maybeKey);
1459
- void 0 !== config.key && (key = "" + config.key);
1460
- if ("key" in config) {
1461
- maybeKey = {};
1462
- for (var propName in config)
1463
- "key" !== propName && (maybeKey[propName] = config[propName]);
1464
- } else maybeKey = config;
1465
- config = maybeKey.ref;
1466
- return {
1467
- $$typeof: REACT_ELEMENT_TYPE,
1468
- type,
1469
- key,
1470
- ref: void 0 !== config ? config : null,
1471
- props: maybeKey
1472
- };
1473
- }
1474
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1475
- exports$1.jsx = jsxProd;
1476
- exports$1.jsxs = jsxProd;
1477
- }
1478
- });
1479
-
1480
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js
1481
- var require_react_jsx_runtime_development = __commonJS({
1482
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js"(exports$1) {
1483
- "production" !== process.env.NODE_ENV && (function() {
1484
- function getComponentNameFromType(type) {
1485
- if (null == type) return null;
1486
- if ("function" === typeof type)
1487
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1488
- if ("string" === typeof type) return type;
1489
- switch (type) {
1490
- case REACT_FRAGMENT_TYPE:
1491
- return "Fragment";
1492
- case REACT_PROFILER_TYPE:
1493
- return "Profiler";
1494
- case REACT_STRICT_MODE_TYPE:
1495
- return "StrictMode";
1496
- case REACT_SUSPENSE_TYPE:
1497
- return "Suspense";
1498
- case REACT_SUSPENSE_LIST_TYPE:
1499
- return "SuspenseList";
1500
- case REACT_ACTIVITY_TYPE:
1501
- return "Activity";
1502
- }
1503
- if ("object" === typeof type)
1504
- switch ("number" === typeof type.tag && console.error(
1505
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1506
- ), type.$$typeof) {
1507
- case REACT_PORTAL_TYPE:
1508
- return "Portal";
1509
- case REACT_CONTEXT_TYPE:
1510
- return type.displayName || "Context";
1511
- case REACT_CONSUMER_TYPE:
1512
- return (type._context.displayName || "Context") + ".Consumer";
1513
- case REACT_FORWARD_REF_TYPE:
1514
- var innerType = type.render;
1515
- type = type.displayName;
1516
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1517
- return type;
1518
- case REACT_MEMO_TYPE:
1519
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1520
- case REACT_LAZY_TYPE:
1521
- innerType = type._payload;
1522
- type = type._init;
1523
- try {
1524
- return getComponentNameFromType(type(innerType));
1525
- } catch (x) {
1526
- }
1527
- }
1528
- return null;
1529
- }
1530
- function testStringCoercion(value) {
1531
- return "" + value;
1532
- }
1533
- function checkKeyStringCoercion(value) {
1534
- try {
1535
- testStringCoercion(value);
1536
- var JSCompiler_inline_result = false;
1537
- } catch (e) {
1538
- JSCompiler_inline_result = true;
1539
- }
1540
- if (JSCompiler_inline_result) {
1541
- JSCompiler_inline_result = console;
1542
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1543
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1544
- JSCompiler_temp_const.call(
1545
- JSCompiler_inline_result,
1546
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1547
- JSCompiler_inline_result$jscomp$0
1548
- );
1549
- return testStringCoercion(value);
1550
- }
1551
- }
1552
- function getTaskName(type) {
1553
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1554
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1555
- return "<...>";
1556
- try {
1557
- var name = getComponentNameFromType(type);
1558
- return name ? "<" + name + ">" : "<...>";
1559
- } catch (x) {
1560
- return "<...>";
1561
- }
1562
- }
1563
- function getOwner() {
1564
- var dispatcher = ReactSharedInternals.A;
1565
- return null === dispatcher ? null : dispatcher.getOwner();
1566
- }
1567
- function UnknownOwner() {
1568
- return Error("react-stack-top-frame");
1569
- }
1570
- function hasValidKey(config) {
1571
- if (hasOwnProperty.call(config, "key")) {
1572
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1573
- if (getter && getter.isReactWarning) return false;
1574
- }
1575
- return void 0 !== config.key;
1576
- }
1577
- function defineKeyPropWarningGetter(props, displayName) {
1578
- function warnAboutAccessingKey() {
1579
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1580
- "%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)",
1581
- displayName
1582
- ));
1583
- }
1584
- warnAboutAccessingKey.isReactWarning = true;
1585
- Object.defineProperty(props, "key", {
1586
- get: warnAboutAccessingKey,
1587
- configurable: true
1588
- });
1589
- }
1590
- function elementRefGetterWithDeprecationWarning() {
1591
- var componentName = getComponentNameFromType(this.type);
1592
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1593
- "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."
1594
- ));
1595
- componentName = this.props.ref;
1596
- return void 0 !== componentName ? componentName : null;
1597
- }
1598
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
1599
- var refProp = props.ref;
1600
- type = {
1601
- $$typeof: REACT_ELEMENT_TYPE,
1602
- type,
1603
- key,
1604
- props,
1605
- _owner: owner
1606
- };
1607
- null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
1608
- enumerable: false,
1609
- get: elementRefGetterWithDeprecationWarning
1610
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1611
- type._store = {};
1612
- Object.defineProperty(type._store, "validated", {
1613
- configurable: false,
1614
- enumerable: false,
1615
- writable: true,
1616
- value: 0
1617
- });
1618
- Object.defineProperty(type, "_debugInfo", {
1619
- configurable: false,
1620
- enumerable: false,
1621
- writable: true,
1622
- value: null
1623
- });
1624
- Object.defineProperty(type, "_debugStack", {
1625
- configurable: false,
1626
- enumerable: false,
1627
- writable: true,
1628
- value: debugStack
1629
- });
1630
- Object.defineProperty(type, "_debugTask", {
1631
- configurable: false,
1632
- enumerable: false,
1633
- writable: true,
1634
- value: debugTask
1635
- });
1636
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1637
- return type;
1638
- }
1639
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
1640
- var children = config.children;
1641
- if (void 0 !== children)
1642
- if (isStaticChildren)
1643
- if (isArrayImpl(children)) {
1644
- for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1645
- validateChildKeys(children[isStaticChildren]);
1646
- Object.freeze && Object.freeze(children);
1647
- } else
1648
- console.error(
1649
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1650
- );
1651
- else validateChildKeys(children);
1652
- if (hasOwnProperty.call(config, "key")) {
1653
- children = getComponentNameFromType(type);
1654
- var keys = Object.keys(config).filter(function(k) {
1655
- return "key" !== k;
1656
- });
1657
- isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1658
- didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1659
- '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} />',
1660
- isStaticChildren,
1661
- children,
1662
- keys,
1663
- children
1664
- ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1665
- }
1666
- children = null;
1667
- void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1668
- hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1669
- if ("key" in config) {
1670
- maybeKey = {};
1671
- for (var propName in config)
1672
- "key" !== propName && (maybeKey[propName] = config[propName]);
1673
- } else maybeKey = config;
1674
- children && defineKeyPropWarningGetter(
1675
- maybeKey,
1676
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1677
- );
1678
- return ReactElement(
1679
- type,
1680
- children,
1681
- maybeKey,
1682
- getOwner(),
1683
- debugStack,
1684
- debugTask
1685
- );
1686
- }
1687
- function validateChildKeys(node) {
1688
- 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));
1689
- }
1690
- function isValidElement(object) {
1691
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
1692
- }
1693
- var React8 = require_react(), 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"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1694
- return null;
1695
- };
1696
- React8 = {
1697
- react_stack_bottom_frame: function(callStackForError) {
1698
- return callStackForError();
1699
- }
1700
- };
1701
- var specialPropKeyWarningShown;
1702
- var didWarnAboutElementRef = {};
1703
- var unknownOwnerDebugStack = React8.react_stack_bottom_frame.bind(
1704
- React8,
1705
- UnknownOwner
1706
- )();
1707
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1708
- var didWarnAboutKeySpread = {};
1709
- exports$1.Fragment = REACT_FRAGMENT_TYPE;
1710
- exports$1.jsx = function(type, config, maybeKey) {
1711
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1712
- return jsxDEVImpl(
1713
- type,
1714
- config,
1715
- maybeKey,
1716
- false,
1717
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1718
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1719
- );
1720
- };
1721
- exports$1.jsxs = function(type, config, maybeKey) {
1722
- var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1723
- return jsxDEVImpl(
1724
- type,
1725
- config,
1726
- maybeKey,
1727
- true,
1728
- trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1729
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1730
- );
1731
- };
1732
- })();
1733
- }
1734
- });
1735
-
1736
- // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js
1737
- var require_jsx_runtime = __commonJS({
1738
- "../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js"(exports$1, module) {
1739
- if (process.env.NODE_ENV === "production") {
1740
- module.exports = require_react_jsx_runtime_production();
1741
- } else {
1742
- module.exports = require_react_jsx_runtime_development();
1743
- }
1744
- }
1745
- });
1746
-
1747
- // ../ui/primitive/collection/src/Collection.tsx
1748
- var import_react4 = __toESM(require_react());
1749
-
1750
- // ../ui/layout/grid/src/Grid.tsx
1751
- var import_react = __toESM(require_react());
1752
-
1753
- // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
1754
- function r(e) {
1755
- var t, f, n = "";
1756
- if ("string" == typeof e || "number" == typeof e) n += e;
1757
- else if ("object" == typeof e) if (Array.isArray(e)) {
1758
- var o = e.length;
1759
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
1760
- } else for (f in e) e[f] && (n && (n += " "), n += f);
1761
- return n;
1762
- }
1763
- function clsx() {
1764
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1765
- return n;
1766
- }
1767
- var clsx_default = clsx;
1768
-
1769
- // ../core/system/src/cn.ts
1770
- function cn(...inputs) {
1771
- return clsx_default(inputs);
1772
- }
1773
-
1774
- // ../ui/layout/grid/src/Grid.tsx
1775
- var import_jsx_runtime = __toESM(require_jsx_runtime());
1776
- var Grid = (0, import_react.forwardRef)(
1777
- ({
1778
- as,
1779
- columns = 2,
1780
- rows = 1,
1781
- gap = "0.5rem",
1782
- alignItems = "start",
1783
- justifyItems = "start",
1784
- alignContent = "start",
1785
- justifyContent = "start",
1786
- className,
1787
- style,
1788
- children,
1789
- ...props
1790
- }, ref) => {
1791
- const Component = as ?? "div";
1792
- const { global } = useNSUI();
1793
- const gridStyle = {
1794
- display: "grid",
1795
- gridTemplateColumns: `repeat(${columns}, 1fr)`,
1796
- gridTemplateRows: rows === "auto" ? "auto" : `repeat(${rows}, 1fr)`,
1797
- gap,
1798
- alignItems,
1799
- justifyItems,
1800
- alignContent,
1801
- justifyContent,
1802
- ...style
1803
- };
1804
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1805
- Component,
1806
- {
1807
- ...props,
1808
- ref,
1809
- className: cn(`${global.prefixCls}-grid`, className),
1810
- style: gridStyle,
1811
- children
1812
- }
1813
- );
1814
- }
1815
- );
1816
- Grid.displayName = "Grid";
1817
-
1818
- // ../core/hooks/roving-focus/src/index.ts
1819
- var import_react2 = __toESM(require_react());
1820
- function useRovingFocus(options = {}) {
1821
- const { wrap = true, allowHorizontal = true, containerRole } = options;
1822
- const items = (0, import_react2.useRef)([]);
1823
- const activeIdRef = (0, import_react2.useRef)(null);
1824
- const [activeId, _setActiveId] = (0, import_react2.useState)(null);
1825
- const hasInteractedRef = (0, import_react2.useRef)(false);
1826
- const [hasInteracted, _setHasInteracted] = (0, import_react2.useState)(false);
1827
- const setActiveId = (0, import_react2.useCallback)((id) => {
1828
- activeIdRef.current = id;
1829
- _setActiveId(id);
1830
- }, []);
1831
- const setHasInteracted = (0, import_react2.useCallback)((value) => {
1832
- hasInteractedRef.current = value;
1833
- _setHasInteracted(value);
1834
- }, []);
1835
- const registerItem = (0, import_react2.useCallback)(
1836
- (item) => {
1837
- const idx = items.current.findIndex((i) => i.id === item.id);
1838
- if (idx === -1) {
1839
- items.current.push(item);
1840
- } else {
1841
- items.current[idx] = item;
1842
- }
1843
- if (!activeIdRef.current && !item.disabled) {
1844
- setActiveId(item.id);
1845
- }
1846
- },
1847
- [setActiveId]
1848
- );
1849
- const unregisterItem = (0, import_react2.useCallback)(
1850
- (id) => {
1851
- items.current = items.current.filter((i) => i.id !== id);
1852
- if (activeIdRef.current === id) {
1853
- const next = items.current.find((i) => !i.disabled);
1854
- setActiveId(next?.id ?? null);
1855
- }
1856
- },
1857
- [setActiveId]
1858
- );
1859
- const move = (0, import_react2.useCallback)(
1860
- (dir) => {
1861
- setHasInteracted(true);
1862
- const enabled = items.current.filter((i) => !i.disabled);
1863
- if (!enabled.length) return;
1864
- const idx = enabled.findIndex((i) => i.id === activeIdRef.current);
1865
- const nextIdx = wrap ? (idx + dir + enabled.length) % enabled.length : Math.min(Math.max(idx + dir, 0), enabled.length - 1);
1866
- const next = enabled[nextIdx];
1867
- setActiveId(next.id);
1868
- next.ref.current?.focus();
1869
- },
1870
- [wrap, setActiveId, setHasInteracted]
1871
- );
1872
- const focusFirst = (0, import_react2.useCallback)(() => {
1873
- const first = items.current.find((i) => !i.disabled);
1874
- if (!first) return;
1875
- setHasInteracted(true);
1876
- setActiveId(first.id);
1877
- first.ref.current?.focus();
1878
- }, [setActiveId, setHasInteracted]);
1879
- const focusLast = (0, import_react2.useCallback)(() => {
1880
- const enabled = items.current.filter((i) => !i.disabled);
1881
- const last = enabled[enabled.length - 1];
1882
- if (!last) return;
1883
- setHasInteracted(true);
1884
- setActiveId(last.id);
1885
- last.ref.current?.focus();
1886
- }, [setActiveId, setHasInteracted]);
1887
- const focusItem = (0, import_react2.useCallback)(
1888
- (id) => {
1889
- setHasInteracted(true);
1890
- setActiveId(id);
1891
- },
1892
- [setActiveId, setHasInteracted]
1893
- );
1894
- const getFirstEnabledId = (0, import_react2.useCallback)(
1895
- () => items.current.find((i) => !i.disabled)?.id ?? null,
1896
- []
1897
- );
1898
- const reset = (0, import_react2.useCallback)(() => {
1899
- setHasInteracted(false);
1900
- }, [setHasInteracted]);
1901
- const handleGroupKeyDown = (0, import_react2.useCallback)(
1902
- (e) => {
1903
- const isArrow = ["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(e.key);
1904
- if (!isArrow) return;
1905
- if (!e.currentTarget.contains(document.activeElement)) return;
1906
- if (e.currentTarget !== document.activeElement) return;
1907
- e.preventDefault();
1908
- focusFirst();
1909
- },
1910
- [focusFirst]
1911
- );
1912
- const handleGroupBlur = (0, import_react2.useCallback)(
1913
- (e) => {
1914
- const currentTarget = e.currentTarget;
1915
- setTimeout(() => {
1916
- if (!currentTarget.contains(document.activeElement)) reset();
1917
- }, 0);
1918
- },
1919
- [reset]
1920
- );
1921
- const handleItemKeyDown = (0, import_react2.useCallback)(
1922
- (e, itemId, onSelect, containerRef) => {
1923
- if (e.key === "Tab") {
1924
- if (e.shiftKey) {
1925
- e.preventDefault();
1926
- reset();
1927
- const container = containerRef?.current ?? (containerRole ? e.target.closest(
1928
- `[role="${containerRole}"]`
1929
- ) : null);
1930
- container?.focus();
1931
- } else {
1932
- reset();
1933
- }
1934
- return;
1935
- }
1936
- if (e.key === "ArrowDown" || allowHorizontal && e.key === "ArrowRight") {
1937
- e.preventDefault();
1938
- move(1);
1939
- return;
1940
- }
1941
- if (e.key === "ArrowUp" || allowHorizontal && e.key === "ArrowLeft") {
1942
- e.preventDefault();
1943
- move(-1);
1944
- return;
1945
- }
1946
- if (e.key === "Home") {
1947
- e.preventDefault();
1948
- focusFirst();
1949
- return;
1950
- }
1951
- if (e.key === "End") {
1952
- e.preventDefault();
1953
- focusLast();
1954
- return;
1955
- }
1956
- if (e.key === "Enter" || e.key === " ") {
1957
- e.preventDefault();
1958
- onSelect?.(itemId);
1959
- }
1960
- },
1961
- [allowHorizontal, move, focusFirst, focusLast, reset, containerRole]
1962
- );
1963
- return {
1964
- activeId,
1965
- hasInteracted,
1966
- registerItem,
1967
- unregisterItem,
1968
- focusItem,
1969
- focusFirst,
1970
- focusLast,
1971
- getFirstEnabledId,
1972
- reset,
1973
- handleGroupKeyDown,
1974
- handleItemKeyDown,
1975
- handleGroupBlur
1976
- };
1977
- }
1978
-
1979
- // ../ui/primitive/collection/src/CollectionContext.ts
1980
- var import_react3 = __toESM(require_react());
1981
- var CollectionContext = import_react3.default.createContext(null);
1982
-
1983
- // ../ui/primitive/collection/src/Collection.tsx
1984
- var import_jsx_runtime2 = __toESM(require_jsx_runtime());
1985
- function Collection({
1986
- children,
1987
- disabled = false,
1988
- columns = 1,
1989
- rovingOptions,
1990
- ...props
1991
- }) {
1992
- const ref = (0, import_react4.useRef)(null);
1993
- const roving = useRovingFocus(rovingOptions);
1994
- const ctxValue = (0, import_react4.useMemo)(
1995
- () => ({
1996
- registerItem: roving.registerItem,
1997
- unregisterItem: roving.unregisterItem,
1998
- focusItem: roving.focusItem,
1999
- handleItemKeyDown: roving.handleItemKeyDown,
2000
- activeId: roving.activeId,
2001
- hasInteracted: roving.hasInteracted,
2002
- containerRef: ref,
2003
- disabled
2004
- }),
2005
- [
2006
- roving.registerItem,
2007
- roving.unregisterItem,
2008
- roving.focusItem,
2009
- roving.handleItemKeyDown,
2010
- roving.activeId,
2011
- roving.hasInteracted,
2012
- disabled
2013
- ]
2014
- );
2015
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionContext.Provider, { value: ctxValue, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2016
- Grid,
2017
- {
2018
- ref,
2019
- columns,
2020
- tabIndex: disabled ? -1 : roving.hasInteracted ? -1 : 0,
2021
- "aria-disabled": disabled || void 0,
2022
- onKeyDown: disabled ? void 0 : roving.handleGroupKeyDown,
2023
- onBlur: disabled ? void 0 : roving.handleGroupBlur,
2024
- ...props,
2025
- children
2026
- }
2027
- ) });
2028
- }
2029
- Collection.displayName = "Collection";
2030
-
2031
- // ../ui/primitive/collection/src/CollectionGroup.tsx
2032
- var import_react6 = __toESM(require_react());
2033
-
2034
- // ../ui/typography/heading/src/Heading.tsx
2035
- var import_react5 = __toESM(require_react());
2036
- var import_jsx_runtime3 = __toESM(require_jsx_runtime());
2037
- var Heading = (0, import_react5.forwardRef)(
2038
- ({ as, children, className, ...props }, ref) => {
2039
- const { global, components } = useNSUI();
2040
- const Component = as ?? components.heading.typeElement;
2041
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component, { ...props, ref, className: cn(`${global.prefixCls}-heading`, className), children });
2042
- }
2043
- );
2044
- Heading.displayName = "Heading";
2045
-
2046
- // ../ui/primitive/collection/src/CollectionGroup.tsx
2047
- var import_jsx_runtime4 = __toESM(require_jsx_runtime());
2048
- function CollectionGroup({
2049
- children,
2050
- classNames,
2051
- styles,
2052
- label,
2053
- headingAs = "h3",
2054
- ...props
2055
- }) {
2056
- const id = (0, import_react6.useId)();
2057
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
2058
- "div",
2059
- {
2060
- role: "group",
2061
- "aria-labelledby": label ? id : void 0,
2062
- className: classNames?.root,
2063
- style: styles?.root,
2064
- ...props,
2065
- children: [
2066
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Heading, { id, as: headingAs, className: classNames?.label, style: styles?.label, children: label }),
2067
- children
2068
- ]
2069
- }
2070
- );
2071
- }
2072
- CollectionGroup.displayName = "CollectionGroup";
2073
-
2074
- // ../ui/primitive/collection/src/CollectionItem.tsx
2075
- var import_react8 = __toESM(require_react());
2076
-
2077
- // ../ui/layout/flex/src/Flex.tsx
2078
- var import_react7 = __toESM(require_react());
2079
- var import_jsx_runtime5 = __toESM(require_jsx_runtime());
2080
- var Flex = (0, import_react7.forwardRef)(
2081
- ({
2082
- as,
2083
- direction = "row",
2084
- wrap = "nowrap",
2085
- alignItems = "flex-start",
2086
- justify = "flex-start",
2087
- gap = "0.5rem",
2088
- className,
2089
- style,
2090
- children,
2091
- ...props
2092
- }, ref) => {
2093
- const Component = as ?? "div";
2094
- const { global } = useNSUI();
2095
- const flexStyle = {
2096
- display: "flex",
2097
- flexDirection: direction,
2098
- flexWrap: wrap,
2099
- alignItems,
2100
- justifyContent: justify,
2101
- gap,
2102
- ...style
2103
- };
2104
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2105
- Component,
2106
- {
2107
- ...props,
2108
- ref,
2109
- className: cn(`${global.prefixCls}-flex`, className),
2110
- style: flexStyle,
2111
- children
2112
- }
2113
- );
2114
- }
2115
- );
2116
- Flex.displayName = "Flex";
2117
-
2118
- // ../ui/primitive/collection/src/CollectionItem.tsx
2119
- var import_jsx_runtime6 = __toESM(require_jsx_runtime());
2120
- function CollectionItem({
2121
- children,
2122
- value,
2123
- disabled = false,
2124
- selected,
2125
- role = "option",
2126
- classNames,
2127
- styles,
2128
- onClick,
2129
- onSelect,
2130
- alignItems = "center",
2131
- ...props
2132
- }) {
2133
- const ref = (0, import_react8.useRef)(null);
2134
- const generatedId = (0, import_react8.useId)();
2135
- const itemId = value ?? generatedId;
2136
- const ctx = (0, import_react8.useContext)(CollectionContext);
2137
- const registerItem = ctx?.registerItem;
2138
- const unregisterItem = ctx?.unregisterItem;
2139
- const focusItem = ctx?.focusItem;
2140
- const handleItemKeyDown = ctx?.handleItemKeyDown;
2141
- const containerRef = ctx?.containerRef;
2142
- const isDisabled = disabled || (ctx?.disabled ?? false);
2143
- (0, import_react8.useEffect)(() => {
2144
- if (!registerItem || !unregisterItem) return;
2145
- registerItem({
2146
- id: itemId,
2147
- ref,
2148
- disabled: isDisabled
2149
- });
2150
- return () => unregisterItem(itemId);
2151
- }, [itemId, isDisabled, registerItem, unregisterItem]);
2152
- const handleClick = (event) => {
2153
- if (isDisabled) return;
2154
- focusItem?.(itemId);
2155
- onClick?.(value, event);
2156
- };
2157
- const handleFocus = () => {
2158
- if (!isDisabled) focusItem?.(itemId);
2159
- };
2160
- const handleKeyDown = (e) => {
2161
- if (isDisabled || !handleItemKeyDown) return;
2162
- handleItemKeyDown(
2163
- e,
2164
- itemId,
2165
- () => {
2166
- onSelect?.(value);
2167
- onClick?.(value, e);
2168
- },
2169
- containerRef
2170
- );
2171
- };
2172
- const tabIndex = isDisabled ? -1 : !ctx ? 0 : -1;
2173
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2174
- Flex,
2175
- {
2176
- ref,
2177
- as: "li",
2178
- role,
2179
- alignItems,
2180
- tabIndex,
2181
- "aria-disabled": isDisabled || void 0,
2182
- "aria-selected": selected,
2183
- onFocus: handleFocus,
2184
- onClick: handleClick,
2185
- onKeyDown: handleKeyDown,
2186
- className: classNames?.root,
2187
- style: styles?.root,
2188
- ...props,
2189
- children
2190
- }
2191
- );
2192
- }
2193
- CollectionItem.displayName = "CollectionItem";
2194
-
2195
- // ../ui/layout/divider/src/Divider.tsx
2196
- var import_jsx_runtime7 = __toESM(require_jsx_runtime());
2197
- var Divider = ({
2198
- orientation = "horizontal",
2199
- className,
2200
- style,
2201
- ...props
2202
- }) => {
2203
- const { global } = useNSUI();
2204
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2205
- "hr",
2206
- {
2207
- ...props,
2208
- "aria-hidden": "true",
2209
- className: cn(
2210
- `${global.prefixCls}-divider`,
2211
- `${global.prefixCls}-divider-${orientation}`,
2212
- className
2213
- ),
2214
- style
2215
- }
2216
- );
2217
- };
2218
-
2219
- // ../ui/primitive/collection/src/CollectionSeparator.tsx
2220
- var import_jsx_runtime8 = __toESM(require_jsx_runtime());
2221
- function CollectionSeparator(props) {
2222
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Divider, { role: "separator", ...props });
2223
- }
2224
- CollectionSeparator.displayName = "CollectionSeparator";
2225
- /*! Bundled license information:
2226
-
2227
- react/cjs/react.production.js:
2228
- (**
2229
- * @license React
2230
- * react.production.js
2231
- *
2232
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2233
- *
2234
- * This source code is licensed under the MIT license found in the
2235
- * LICENSE file in the root directory of this source tree.
2236
- *)
2237
-
2238
- react/cjs/react.development.js:
2239
- (**
2240
- * @license React
2241
- * react.development.js
2242
- *
2243
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2244
- *
2245
- * This source code is licensed under the MIT license found in the
2246
- * LICENSE file in the root directory of this source tree.
2247
- *)
2248
-
2249
- react/cjs/react-jsx-runtime.production.js:
2250
- (**
2251
- * @license React
2252
- * react-jsx-runtime.production.js
2253
- *
2254
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2255
- *
2256
- * This source code is licensed under the MIT license found in the
2257
- * LICENSE file in the root directory of this source tree.
2258
- *)
2259
-
2260
- react/cjs/react-jsx-runtime.development.js:
2261
- (**
2262
- * @license React
2263
- * react-jsx-runtime.development.js
2264
- *
2265
- * Copyright (c) Meta Platforms, Inc. and affiliates.
2266
- *
2267
- * This source code is licensed under the MIT license found in the
2268
- * LICENSE file in the root directory of this source tree.
2269
- *)
2270
- */
2271
-
2272
- export { Collection, CollectionGroup, CollectionItem, CollectionSeparator };
1
+ export * from '@negative-space/primitive';
2273
2
  //# sourceMappingURL=index.mjs.map
2274
3
  //# sourceMappingURL=index.mjs.map