@edux-design/buttons 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,1894 @@
1
+ // src/elements/Button.jsx
2
+ import React, { forwardRef } from "react";
3
+ import { cx } from "@edux-design/utils";
4
+ var Button = forwardRef(
5
+ ({
6
+ children,
7
+ size = "medium",
8
+ isSecondary,
9
+ isDanger,
10
+ isBare,
11
+ isStretched,
12
+ disabled,
13
+ className,
14
+ ...props
15
+ }, ref) => {
16
+ let variant = "primary";
17
+ if (isBare) variant = "bare";
18
+ if (isSecondary) variant = "secondary";
19
+ if (isDanger) variant = "danger";
20
+ if (disabled) variant = "disabled";
21
+ if (process.env.NODE_ENV !== "production") {
22
+ const count = [isSecondary, isDanger, isBare].filter(Boolean).length;
23
+ if (count > 1) {
24
+ console.warn(
25
+ "[Button]: Multiple variant props passed. Using the highest priority only."
26
+ );
27
+ }
28
+ }
29
+ const defaults = "flex justify-center items-center focus:shadow-focus focus-visible:shadow-focus outline-none transition-all duration-300 ease-in-out";
30
+ const fonts = "text-bold tracking-normal hover:underline hover:underline-offset-(--underline-offset-btn) active:underline active:underline-offset-(--underline-offset-btn)";
31
+ const sizes = {
32
+ small: "h-[36px] py-8 px-16 rounded-lg text-sm",
33
+ medium: "h-[44px] py-8 px-16 rounded-lg text-base",
34
+ large: "h-[56px] py-8 px-16 rounded-lg text-lg"
35
+ };
36
+ const width = isStretched ? "w-full" : "w-fit-content";
37
+ const variants = {
38
+ primary: "border-2 border-border-primary-emphasis bg-bg-primary-base text-white hover:bg-border-focus hover:text-fg-base hover:border-border-emphasis hover:shadow-md active:bg-border-focus active:bg-bg-focus-overlay active:text-fg-base",
39
+ secondary: "border-2 border-border-primary-base bg-bg-base text-fg-primary-emphasis hover:shadow-md hover:bg-bg-primary-subtle active:bg-bg-primary-subtle-90",
40
+ bare: "bg-bg-base text-fg-primary-emphasis hover:bg-bg-minimal active:bg-bg-minimal-5",
41
+ danger: "bg-bg-danger-base border-2 border-border-danger-emphasis text-white hover:bg-bg-danger-base-5 active:bg-bg-danger-base-10",
42
+ disabled: "border-2 border-border-subtle bg-bg-inactive text-fg-inactive hover:no-underline"
43
+ };
44
+ const STYLES = cx(defaults, sizes[size], width, fonts, variants[variant]);
45
+ return /* @__PURE__ */ React.createElement(
46
+ "button",
47
+ {
48
+ role: "button",
49
+ type: "button",
50
+ "aria-disabled": disabled,
51
+ disabled,
52
+ className: STYLES,
53
+ ref,
54
+ ...props
55
+ },
56
+ children
57
+ );
58
+ }
59
+ );
60
+
61
+ // src/elements/MenuButton.jsx
62
+ import React3 from "react";
63
+
64
+ // src/util/MenuButtonContext.jsx
65
+ import React2, { createContext, useContext } from "react";
66
+ var MenuButtonContext = createContext();
67
+
68
+ // src/elements/MenuButton.jsx
69
+ import { cx as cx2 } from "@edux-design/utils";
70
+
71
+ // ../icons/dist/index.mjs
72
+ var __create = Object.create;
73
+ var __defProp = Object.defineProperty;
74
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
75
+ var __getOwnPropNames = Object.getOwnPropertyNames;
76
+ var __getProtoOf = Object.getPrototypeOf;
77
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
78
+ var __commonJS = (cb, mod) => function __require() {
79
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
80
+ };
81
+ var __copyProps = (to, from, except, desc) => {
82
+ if (from && typeof from === "object" || typeof from === "function") {
83
+ for (let key of __getOwnPropNames(from))
84
+ if (!__hasOwnProp.call(to, key) && key !== except)
85
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
86
+ }
87
+ return to;
88
+ };
89
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
90
+ // If the importer is in node compatibility mode or this is not an ESM
91
+ // file that has been converted to a CommonJS file using a Babel-
92
+ // compatible transform (i.e. "__esModule" has not been set), then set
93
+ // "default" to the CommonJS "module.exports" for node compatibility.
94
+ !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
95
+ mod
96
+ ));
97
+ var require_react_jsx_runtime_production = __commonJS({
98
+ "../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
99
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
100
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
101
+ function jsxProd(type, config, maybeKey) {
102
+ var key = null;
103
+ void 0 !== maybeKey && (key = "" + maybeKey);
104
+ void 0 !== config.key && (key = "" + config.key);
105
+ if ("key" in config) {
106
+ maybeKey = {};
107
+ for (var propName in config)
108
+ "key" !== propName && (maybeKey[propName] = config[propName]);
109
+ } else maybeKey = config;
110
+ config = maybeKey.ref;
111
+ return {
112
+ $$typeof: REACT_ELEMENT_TYPE,
113
+ type,
114
+ key,
115
+ ref: void 0 !== config ? config : null,
116
+ props: maybeKey
117
+ };
118
+ }
119
+ exports.Fragment = REACT_FRAGMENT_TYPE;
120
+ exports.jsx = jsxProd;
121
+ exports.jsxs = jsxProd;
122
+ }
123
+ });
124
+ var require_react_production = __commonJS({
125
+ "../../node_modules/react/cjs/react.production.js"(exports) {
126
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
127
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
128
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
129
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
130
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
131
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
132
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
133
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
134
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
135
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
136
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
137
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
138
+ function getIteratorFn(maybeIterable) {
139
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
140
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
141
+ return "function" === typeof maybeIterable ? maybeIterable : null;
142
+ }
143
+ var ReactNoopUpdateQueue = {
144
+ isMounted: function() {
145
+ return false;
146
+ },
147
+ enqueueForceUpdate: function() {
148
+ },
149
+ enqueueReplaceState: function() {
150
+ },
151
+ enqueueSetState: function() {
152
+ }
153
+ };
154
+ var assign = Object.assign;
155
+ var emptyObject = {};
156
+ function Component(props, context, updater) {
157
+ this.props = props;
158
+ this.context = context;
159
+ this.refs = emptyObject;
160
+ this.updater = updater || ReactNoopUpdateQueue;
161
+ }
162
+ Component.prototype.isReactComponent = {};
163
+ Component.prototype.setState = function(partialState, callback) {
164
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
165
+ throw Error(
166
+ "takes an object of state variables to update or a function which returns an object of state variables."
167
+ );
168
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
169
+ };
170
+ Component.prototype.forceUpdate = function(callback) {
171
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
172
+ };
173
+ function ComponentDummy() {
174
+ }
175
+ ComponentDummy.prototype = Component.prototype;
176
+ function PureComponent(props, context, updater) {
177
+ this.props = props;
178
+ this.context = context;
179
+ this.refs = emptyObject;
180
+ this.updater = updater || ReactNoopUpdateQueue;
181
+ }
182
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
183
+ pureComponentPrototype.constructor = PureComponent;
184
+ assign(pureComponentPrototype, Component.prototype);
185
+ pureComponentPrototype.isPureReactComponent = true;
186
+ var isArrayImpl = Array.isArray;
187
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
188
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
189
+ function ReactElement(type, key, self, source, owner, props) {
190
+ self = props.ref;
191
+ return {
192
+ $$typeof: REACT_ELEMENT_TYPE,
193
+ type,
194
+ key,
195
+ ref: void 0 !== self ? self : null,
196
+ props
197
+ };
198
+ }
199
+ function cloneAndReplaceKey(oldElement, newKey) {
200
+ return ReactElement(
201
+ oldElement.type,
202
+ newKey,
203
+ void 0,
204
+ void 0,
205
+ void 0,
206
+ oldElement.props
207
+ );
208
+ }
209
+ function isValidElement(object) {
210
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
211
+ }
212
+ function escape(key) {
213
+ var escaperLookup = { "=": "=0", ":": "=2" };
214
+ return "$" + key.replace(/[=:]/g, function(match) {
215
+ return escaperLookup[match];
216
+ });
217
+ }
218
+ var userProvidedKeyEscapeRegex = /\/+/g;
219
+ function getElementKey(element, index) {
220
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
221
+ }
222
+ function noop$1() {
223
+ }
224
+ function resolveThenable(thenable) {
225
+ switch (thenable.status) {
226
+ case "fulfilled":
227
+ return thenable.value;
228
+ case "rejected":
229
+ throw thenable.reason;
230
+ default:
231
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
232
+ function(fulfilledValue) {
233
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
234
+ },
235
+ function(error) {
236
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
237
+ }
238
+ )), thenable.status) {
239
+ case "fulfilled":
240
+ return thenable.value;
241
+ case "rejected":
242
+ throw thenable.reason;
243
+ }
244
+ }
245
+ throw thenable;
246
+ }
247
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
248
+ var type = typeof children;
249
+ if ("undefined" === type || "boolean" === type) children = null;
250
+ var invokeCallback = false;
251
+ if (null === children) invokeCallback = true;
252
+ else
253
+ switch (type) {
254
+ case "bigint":
255
+ case "string":
256
+ case "number":
257
+ invokeCallback = true;
258
+ break;
259
+ case "object":
260
+ switch (children.$$typeof) {
261
+ case REACT_ELEMENT_TYPE:
262
+ case REACT_PORTAL_TYPE:
263
+ invokeCallback = true;
264
+ break;
265
+ case REACT_LAZY_TYPE:
266
+ return invokeCallback = children._init, mapIntoArray(
267
+ invokeCallback(children._payload),
268
+ array,
269
+ escapedPrefix,
270
+ nameSoFar,
271
+ callback
272
+ );
273
+ }
274
+ }
275
+ if (invokeCallback)
276
+ 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) {
277
+ return c;
278
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
279
+ callback,
280
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
281
+ userProvidedKeyEscapeRegex,
282
+ "$&/"
283
+ ) + "/") + invokeCallback
284
+ )), array.push(callback)), 1;
285
+ invokeCallback = 0;
286
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
287
+ if (isArrayImpl(children))
288
+ for (var i = 0; i < children.length; i++)
289
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
290
+ nameSoFar,
291
+ array,
292
+ escapedPrefix,
293
+ type,
294
+ callback
295
+ );
296
+ else if (i = getIteratorFn(children), "function" === typeof i)
297
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
298
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
299
+ nameSoFar,
300
+ array,
301
+ escapedPrefix,
302
+ type,
303
+ callback
304
+ );
305
+ else if ("object" === type) {
306
+ if ("function" === typeof children.then)
307
+ return mapIntoArray(
308
+ resolveThenable(children),
309
+ array,
310
+ escapedPrefix,
311
+ nameSoFar,
312
+ callback
313
+ );
314
+ array = String(children);
315
+ throw Error(
316
+ "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."
317
+ );
318
+ }
319
+ return invokeCallback;
320
+ }
321
+ function mapChildren(children, func, context) {
322
+ if (null == children) return children;
323
+ var result = [], count = 0;
324
+ mapIntoArray(children, result, "", "", function(child) {
325
+ return func.call(context, child, count++);
326
+ });
327
+ return result;
328
+ }
329
+ function lazyInitializer(payload) {
330
+ if (-1 === payload._status) {
331
+ var ctor = payload._result;
332
+ ctor = ctor();
333
+ ctor.then(
334
+ function(moduleObject) {
335
+ if (0 === payload._status || -1 === payload._status)
336
+ payload._status = 1, payload._result = moduleObject;
337
+ },
338
+ function(error) {
339
+ if (0 === payload._status || -1 === payload._status)
340
+ payload._status = 2, payload._result = error;
341
+ }
342
+ );
343
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
344
+ }
345
+ if (1 === payload._status) return payload._result.default;
346
+ throw payload._result;
347
+ }
348
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
349
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
350
+ var event = new window.ErrorEvent("error", {
351
+ bubbles: true,
352
+ cancelable: true,
353
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
354
+ error
355
+ });
356
+ if (!window.dispatchEvent(event)) return;
357
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
358
+ process.emit("uncaughtException", error);
359
+ return;
360
+ }
361
+ console.error(error);
362
+ };
363
+ function noop() {
364
+ }
365
+ exports.Children = {
366
+ map: mapChildren,
367
+ forEach: function(children, forEachFunc, forEachContext) {
368
+ mapChildren(
369
+ children,
370
+ function() {
371
+ forEachFunc.apply(this, arguments);
372
+ },
373
+ forEachContext
374
+ );
375
+ },
376
+ count: function(children) {
377
+ var n = 0;
378
+ mapChildren(children, function() {
379
+ n++;
380
+ });
381
+ return n;
382
+ },
383
+ toArray: function(children) {
384
+ return mapChildren(children, function(child) {
385
+ return child;
386
+ }) || [];
387
+ },
388
+ only: function(children) {
389
+ if (!isValidElement(children))
390
+ throw Error(
391
+ "React.Children.only expected to receive a single React element child."
392
+ );
393
+ return children;
394
+ }
395
+ };
396
+ exports.Component = Component;
397
+ exports.Fragment = REACT_FRAGMENT_TYPE;
398
+ exports.Profiler = REACT_PROFILER_TYPE;
399
+ exports.PureComponent = PureComponent;
400
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
401
+ exports.Suspense = REACT_SUSPENSE_TYPE;
402
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
403
+ exports.__COMPILER_RUNTIME = {
404
+ __proto__: null,
405
+ c: function(size) {
406
+ return ReactSharedInternals.H.useMemoCache(size);
407
+ }
408
+ };
409
+ exports.cache = function(fn) {
410
+ return function() {
411
+ return fn.apply(null, arguments);
412
+ };
413
+ };
414
+ exports.cloneElement = function(element, config, children) {
415
+ if (null === element || void 0 === element)
416
+ throw Error(
417
+ "The argument must be a React element, but you passed " + element + "."
418
+ );
419
+ var props = assign({}, element.props), key = element.key, owner = void 0;
420
+ if (null != config)
421
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
422
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
423
+ var propName = arguments.length - 2;
424
+ if (1 === propName) props.children = children;
425
+ else if (1 < propName) {
426
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
427
+ childArray[i] = arguments[i + 2];
428
+ props.children = childArray;
429
+ }
430
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
431
+ };
432
+ exports.createContext = function(defaultValue) {
433
+ defaultValue = {
434
+ $$typeof: REACT_CONTEXT_TYPE,
435
+ _currentValue: defaultValue,
436
+ _currentValue2: defaultValue,
437
+ _threadCount: 0,
438
+ Provider: null,
439
+ Consumer: null
440
+ };
441
+ defaultValue.Provider = defaultValue;
442
+ defaultValue.Consumer = {
443
+ $$typeof: REACT_CONSUMER_TYPE,
444
+ _context: defaultValue
445
+ };
446
+ return defaultValue;
447
+ };
448
+ exports.createElement = function(type, config, children) {
449
+ var propName, props = {}, key = null;
450
+ if (null != config)
451
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
452
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
453
+ var childrenLength = arguments.length - 2;
454
+ if (1 === childrenLength) props.children = children;
455
+ else if (1 < childrenLength) {
456
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
457
+ childArray[i] = arguments[i + 2];
458
+ props.children = childArray;
459
+ }
460
+ if (type && type.defaultProps)
461
+ for (propName in childrenLength = type.defaultProps, childrenLength)
462
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
463
+ return ReactElement(type, key, void 0, void 0, null, props);
464
+ };
465
+ exports.createRef = function() {
466
+ return { current: null };
467
+ };
468
+ exports.forwardRef = function(render) {
469
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
470
+ };
471
+ exports.isValidElement = isValidElement;
472
+ exports.lazy = function(ctor) {
473
+ return {
474
+ $$typeof: REACT_LAZY_TYPE,
475
+ _payload: { _status: -1, _result: ctor },
476
+ _init: lazyInitializer
477
+ };
478
+ };
479
+ exports.memo = function(type, compare) {
480
+ return {
481
+ $$typeof: REACT_MEMO_TYPE,
482
+ type,
483
+ compare: void 0 === compare ? null : compare
484
+ };
485
+ };
486
+ exports.startTransition = function(scope) {
487
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
488
+ ReactSharedInternals.T = currentTransition;
489
+ try {
490
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
491
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
492
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
493
+ } catch (error) {
494
+ reportGlobalError(error);
495
+ } finally {
496
+ ReactSharedInternals.T = prevTransition;
497
+ }
498
+ };
499
+ exports.unstable_useCacheRefresh = function() {
500
+ return ReactSharedInternals.H.useCacheRefresh();
501
+ };
502
+ exports.use = function(usable) {
503
+ return ReactSharedInternals.H.use(usable);
504
+ };
505
+ exports.useActionState = function(action, initialState, permalink) {
506
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
507
+ };
508
+ exports.useCallback = function(callback, deps) {
509
+ return ReactSharedInternals.H.useCallback(callback, deps);
510
+ };
511
+ exports.useContext = function(Context) {
512
+ return ReactSharedInternals.H.useContext(Context);
513
+ };
514
+ exports.useDebugValue = function() {
515
+ };
516
+ exports.useDeferredValue = function(value, initialValue) {
517
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
518
+ };
519
+ exports.useEffect = function(create, createDeps, update) {
520
+ var dispatcher = ReactSharedInternals.H;
521
+ if ("function" === typeof update)
522
+ throw Error(
523
+ "useEffect CRUD overload is not enabled in this build of React."
524
+ );
525
+ return dispatcher.useEffect(create, createDeps);
526
+ };
527
+ exports.useId = function() {
528
+ return ReactSharedInternals.H.useId();
529
+ };
530
+ exports.useImperativeHandle = function(ref, create, deps) {
531
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
532
+ };
533
+ exports.useInsertionEffect = function(create, deps) {
534
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
535
+ };
536
+ exports.useLayoutEffect = function(create, deps) {
537
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
538
+ };
539
+ exports.useMemo = function(create, deps) {
540
+ return ReactSharedInternals.H.useMemo(create, deps);
541
+ };
542
+ exports.useOptimistic = function(passthrough, reducer) {
543
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
544
+ };
545
+ exports.useReducer = function(reducer, initialArg, init) {
546
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
547
+ };
548
+ exports.useRef = function(initialValue) {
549
+ return ReactSharedInternals.H.useRef(initialValue);
550
+ };
551
+ exports.useState = function(initialState) {
552
+ return ReactSharedInternals.H.useState(initialState);
553
+ };
554
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
555
+ return ReactSharedInternals.H.useSyncExternalStore(
556
+ subscribe,
557
+ getSnapshot,
558
+ getServerSnapshot
559
+ );
560
+ };
561
+ exports.useTransition = function() {
562
+ return ReactSharedInternals.H.useTransition();
563
+ };
564
+ exports.version = "19.1.1";
565
+ }
566
+ });
567
+ var require_react_development = __commonJS({
568
+ "../../node_modules/react/cjs/react.development.js"(exports, module) {
569
+ "production" !== process.env.NODE_ENV && (function() {
570
+ function defineDeprecationWarning(methodName, info) {
571
+ Object.defineProperty(Component.prototype, methodName, {
572
+ get: function() {
573
+ console.warn(
574
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
575
+ info[0],
576
+ info[1]
577
+ );
578
+ }
579
+ });
580
+ }
581
+ function getIteratorFn(maybeIterable) {
582
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
583
+ return null;
584
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
585
+ return "function" === typeof maybeIterable ? maybeIterable : null;
586
+ }
587
+ function warnNoop(publicInstance, callerName) {
588
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
589
+ var warningKey = publicInstance + "." + callerName;
590
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
591
+ "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.",
592
+ callerName,
593
+ publicInstance
594
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
595
+ }
596
+ function Component(props, context, updater) {
597
+ this.props = props;
598
+ this.context = context;
599
+ this.refs = emptyObject;
600
+ this.updater = updater || ReactNoopUpdateQueue;
601
+ }
602
+ function ComponentDummy() {
603
+ }
604
+ function PureComponent(props, context, updater) {
605
+ this.props = props;
606
+ this.context = context;
607
+ this.refs = emptyObject;
608
+ this.updater = updater || ReactNoopUpdateQueue;
609
+ }
610
+ function testStringCoercion(value) {
611
+ return "" + value;
612
+ }
613
+ function checkKeyStringCoercion(value) {
614
+ try {
615
+ testStringCoercion(value);
616
+ var JSCompiler_inline_result = false;
617
+ } catch (e) {
618
+ JSCompiler_inline_result = true;
619
+ }
620
+ if (JSCompiler_inline_result) {
621
+ JSCompiler_inline_result = console;
622
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
623
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
624
+ JSCompiler_temp_const.call(
625
+ JSCompiler_inline_result,
626
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
627
+ JSCompiler_inline_result$jscomp$0
628
+ );
629
+ return testStringCoercion(value);
630
+ }
631
+ }
632
+ function getComponentNameFromType(type) {
633
+ if (null == type) return null;
634
+ if ("function" === typeof type)
635
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
636
+ if ("string" === typeof type) return type;
637
+ switch (type) {
638
+ case REACT_FRAGMENT_TYPE:
639
+ return "Fragment";
640
+ case REACT_PROFILER_TYPE:
641
+ return "Profiler";
642
+ case REACT_STRICT_MODE_TYPE:
643
+ return "StrictMode";
644
+ case REACT_SUSPENSE_TYPE:
645
+ return "Suspense";
646
+ case REACT_SUSPENSE_LIST_TYPE:
647
+ return "SuspenseList";
648
+ case REACT_ACTIVITY_TYPE:
649
+ return "Activity";
650
+ }
651
+ if ("object" === typeof type)
652
+ switch ("number" === typeof type.tag && console.error(
653
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
654
+ ), type.$$typeof) {
655
+ case REACT_PORTAL_TYPE:
656
+ return "Portal";
657
+ case REACT_CONTEXT_TYPE:
658
+ return (type.displayName || "Context") + ".Provider";
659
+ case REACT_CONSUMER_TYPE:
660
+ return (type._context.displayName || "Context") + ".Consumer";
661
+ case REACT_FORWARD_REF_TYPE:
662
+ var innerType = type.render;
663
+ type = type.displayName;
664
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
665
+ return type;
666
+ case REACT_MEMO_TYPE:
667
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
668
+ case REACT_LAZY_TYPE:
669
+ innerType = type._payload;
670
+ type = type._init;
671
+ try {
672
+ return getComponentNameFromType(type(innerType));
673
+ } catch (x) {
674
+ }
675
+ }
676
+ return null;
677
+ }
678
+ function getTaskName(type) {
679
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
680
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
681
+ return "<...>";
682
+ try {
683
+ var name = getComponentNameFromType(type);
684
+ return name ? "<" + name + ">" : "<...>";
685
+ } catch (x) {
686
+ return "<...>";
687
+ }
688
+ }
689
+ function getOwner() {
690
+ var dispatcher = ReactSharedInternals.A;
691
+ return null === dispatcher ? null : dispatcher.getOwner();
692
+ }
693
+ function UnknownOwner() {
694
+ return Error("react-stack-top-frame");
695
+ }
696
+ function hasValidKey(config) {
697
+ if (hasOwnProperty.call(config, "key")) {
698
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
699
+ if (getter && getter.isReactWarning) return false;
700
+ }
701
+ return void 0 !== config.key;
702
+ }
703
+ function defineKeyPropWarningGetter(props, displayName) {
704
+ function warnAboutAccessingKey() {
705
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
706
+ "%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)",
707
+ displayName
708
+ ));
709
+ }
710
+ warnAboutAccessingKey.isReactWarning = true;
711
+ Object.defineProperty(props, "key", {
712
+ get: warnAboutAccessingKey,
713
+ configurable: true
714
+ });
715
+ }
716
+ function elementRefGetterWithDeprecationWarning() {
717
+ var componentName = getComponentNameFromType(this.type);
718
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
719
+ "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."
720
+ ));
721
+ componentName = this.props.ref;
722
+ return void 0 !== componentName ? componentName : null;
723
+ }
724
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
725
+ self = props.ref;
726
+ type = {
727
+ $$typeof: REACT_ELEMENT_TYPE,
728
+ type,
729
+ key,
730
+ props,
731
+ _owner: owner
732
+ };
733
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
734
+ enumerable: false,
735
+ get: elementRefGetterWithDeprecationWarning
736
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
737
+ type._store = {};
738
+ Object.defineProperty(type._store, "validated", {
739
+ configurable: false,
740
+ enumerable: false,
741
+ writable: true,
742
+ value: 0
743
+ });
744
+ Object.defineProperty(type, "_debugInfo", {
745
+ configurable: false,
746
+ enumerable: false,
747
+ writable: true,
748
+ value: null
749
+ });
750
+ Object.defineProperty(type, "_debugStack", {
751
+ configurable: false,
752
+ enumerable: false,
753
+ writable: true,
754
+ value: debugStack
755
+ });
756
+ Object.defineProperty(type, "_debugTask", {
757
+ configurable: false,
758
+ enumerable: false,
759
+ writable: true,
760
+ value: debugTask
761
+ });
762
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
763
+ return type;
764
+ }
765
+ function cloneAndReplaceKey(oldElement, newKey) {
766
+ newKey = ReactElement(
767
+ oldElement.type,
768
+ newKey,
769
+ void 0,
770
+ void 0,
771
+ oldElement._owner,
772
+ oldElement.props,
773
+ oldElement._debugStack,
774
+ oldElement._debugTask
775
+ );
776
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
777
+ return newKey;
778
+ }
779
+ function isValidElement(object) {
780
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
781
+ }
782
+ function escape(key) {
783
+ var escaperLookup = { "=": "=0", ":": "=2" };
784
+ return "$" + key.replace(/[=:]/g, function(match) {
785
+ return escaperLookup[match];
786
+ });
787
+ }
788
+ function getElementKey(element, index) {
789
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
790
+ }
791
+ function noop$1() {
792
+ }
793
+ function resolveThenable(thenable) {
794
+ switch (thenable.status) {
795
+ case "fulfilled":
796
+ return thenable.value;
797
+ case "rejected":
798
+ throw thenable.reason;
799
+ default:
800
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
801
+ function(fulfilledValue) {
802
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
803
+ },
804
+ function(error) {
805
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
806
+ }
807
+ )), thenable.status) {
808
+ case "fulfilled":
809
+ return thenable.value;
810
+ case "rejected":
811
+ throw thenable.reason;
812
+ }
813
+ }
814
+ throw thenable;
815
+ }
816
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
817
+ var type = typeof children;
818
+ if ("undefined" === type || "boolean" === type) children = null;
819
+ var invokeCallback = false;
820
+ if (null === children) invokeCallback = true;
821
+ else
822
+ switch (type) {
823
+ case "bigint":
824
+ case "string":
825
+ case "number":
826
+ invokeCallback = true;
827
+ break;
828
+ case "object":
829
+ switch (children.$$typeof) {
830
+ case REACT_ELEMENT_TYPE:
831
+ case REACT_PORTAL_TYPE:
832
+ invokeCallback = true;
833
+ break;
834
+ case REACT_LAZY_TYPE:
835
+ return invokeCallback = children._init, mapIntoArray(
836
+ invokeCallback(children._payload),
837
+ array,
838
+ escapedPrefix,
839
+ nameSoFar,
840
+ callback
841
+ );
842
+ }
843
+ }
844
+ if (invokeCallback) {
845
+ invokeCallback = children;
846
+ callback = callback(invokeCallback);
847
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
848
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
849
+ return c;
850
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
851
+ callback,
852
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
853
+ userProvidedKeyEscapeRegex,
854
+ "$&/"
855
+ ) + "/") + childKey
856
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
857
+ return 1;
858
+ }
859
+ invokeCallback = 0;
860
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
861
+ if (isArrayImpl(children))
862
+ for (var i = 0; i < children.length; i++)
863
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
864
+ nameSoFar,
865
+ array,
866
+ escapedPrefix,
867
+ type,
868
+ callback
869
+ );
870
+ else if (i = getIteratorFn(children), "function" === typeof i)
871
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
872
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
873
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
874
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
875
+ nameSoFar,
876
+ array,
877
+ escapedPrefix,
878
+ type,
879
+ callback
880
+ );
881
+ else if ("object" === type) {
882
+ if ("function" === typeof children.then)
883
+ return mapIntoArray(
884
+ resolveThenable(children),
885
+ array,
886
+ escapedPrefix,
887
+ nameSoFar,
888
+ callback
889
+ );
890
+ array = String(children);
891
+ throw Error(
892
+ "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."
893
+ );
894
+ }
895
+ return invokeCallback;
896
+ }
897
+ function mapChildren(children, func, context) {
898
+ if (null == children) return children;
899
+ var result = [], count = 0;
900
+ mapIntoArray(children, result, "", "", function(child) {
901
+ return func.call(context, child, count++);
902
+ });
903
+ return result;
904
+ }
905
+ function lazyInitializer(payload) {
906
+ if (-1 === payload._status) {
907
+ var ctor = payload._result;
908
+ ctor = ctor();
909
+ ctor.then(
910
+ function(moduleObject) {
911
+ if (0 === payload._status || -1 === payload._status)
912
+ payload._status = 1, payload._result = moduleObject;
913
+ },
914
+ function(error) {
915
+ if (0 === payload._status || -1 === payload._status)
916
+ payload._status = 2, payload._result = error;
917
+ }
918
+ );
919
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
920
+ }
921
+ if (1 === payload._status)
922
+ return ctor = payload._result, void 0 === ctor && console.error(
923
+ "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?",
924
+ ctor
925
+ ), "default" in ctor || console.error(
926
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
927
+ ctor
928
+ ), ctor.default;
929
+ throw payload._result;
930
+ }
931
+ function resolveDispatcher() {
932
+ var dispatcher = ReactSharedInternals.H;
933
+ null === dispatcher && console.error(
934
+ "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."
935
+ );
936
+ return dispatcher;
937
+ }
938
+ function noop() {
939
+ }
940
+ function enqueueTask(task) {
941
+ if (null === enqueueTaskImpl)
942
+ try {
943
+ var requireString = ("require" + Math.random()).slice(0, 7);
944
+ enqueueTaskImpl = (module && module[requireString]).call(
945
+ module,
946
+ "timers"
947
+ ).setImmediate;
948
+ } catch (_err) {
949
+ enqueueTaskImpl = function(callback) {
950
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
951
+ "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."
952
+ ));
953
+ var channel = new MessageChannel();
954
+ channel.port1.onmessage = callback;
955
+ channel.port2.postMessage(void 0);
956
+ };
957
+ }
958
+ return enqueueTaskImpl(task);
959
+ }
960
+ function aggregateErrors(errors) {
961
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
962
+ }
963
+ function popActScope(prevActQueue, prevActScopeDepth) {
964
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
965
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
966
+ );
967
+ actScopeDepth = prevActScopeDepth;
968
+ }
969
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
970
+ var queue = ReactSharedInternals.actQueue;
971
+ if (null !== queue)
972
+ if (0 !== queue.length)
973
+ try {
974
+ flushActQueue(queue);
975
+ enqueueTask(function() {
976
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
977
+ });
978
+ return;
979
+ } catch (error) {
980
+ ReactSharedInternals.thrownErrors.push(error);
981
+ }
982
+ else ReactSharedInternals.actQueue = null;
983
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
984
+ }
985
+ function flushActQueue(queue) {
986
+ if (!isFlushing) {
987
+ isFlushing = true;
988
+ var i = 0;
989
+ try {
990
+ for (; i < queue.length; i++) {
991
+ var callback = queue[i];
992
+ do {
993
+ ReactSharedInternals.didUsePromise = false;
994
+ var continuation = callback(false);
995
+ if (null !== continuation) {
996
+ if (ReactSharedInternals.didUsePromise) {
997
+ queue[i] = callback;
998
+ queue.splice(0, i);
999
+ return;
1000
+ }
1001
+ callback = continuation;
1002
+ } else break;
1003
+ } while (1);
1004
+ }
1005
+ queue.length = 0;
1006
+ } catch (error) {
1007
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1008
+ } finally {
1009
+ isFlushing = false;
1010
+ }
1011
+ }
1012
+ }
1013
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1014
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1015
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
1016
+ isMounted: function() {
1017
+ return false;
1018
+ },
1019
+ enqueueForceUpdate: function(publicInstance) {
1020
+ warnNoop(publicInstance, "forceUpdate");
1021
+ },
1022
+ enqueueReplaceState: function(publicInstance) {
1023
+ warnNoop(publicInstance, "replaceState");
1024
+ },
1025
+ enqueueSetState: function(publicInstance) {
1026
+ warnNoop(publicInstance, "setState");
1027
+ }
1028
+ }, assign = Object.assign, emptyObject = {};
1029
+ Object.freeze(emptyObject);
1030
+ Component.prototype.isReactComponent = {};
1031
+ Component.prototype.setState = function(partialState, callback) {
1032
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
1033
+ throw Error(
1034
+ "takes an object of state variables to update or a function which returns an object of state variables."
1035
+ );
1036
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
1037
+ };
1038
+ Component.prototype.forceUpdate = function(callback) {
1039
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1040
+ };
1041
+ var deprecatedAPIs = {
1042
+ isMounted: [
1043
+ "isMounted",
1044
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1045
+ ],
1046
+ replaceState: [
1047
+ "replaceState",
1048
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1049
+ ]
1050
+ }, fnName;
1051
+ for (fnName in deprecatedAPIs)
1052
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1053
+ ComponentDummy.prototype = Component.prototype;
1054
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1055
+ deprecatedAPIs.constructor = PureComponent;
1056
+ assign(deprecatedAPIs, Component.prototype);
1057
+ deprecatedAPIs.isPureReactComponent = true;
1058
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1059
+ H: null,
1060
+ A: null,
1061
+ T: null,
1062
+ S: null,
1063
+ V: null,
1064
+ actQueue: null,
1065
+ isBatchingLegacy: false,
1066
+ didScheduleLegacyUpdate: false,
1067
+ didUsePromise: false,
1068
+ thrownErrors: [],
1069
+ getCurrentStack: null,
1070
+ recentlyCreatedOwnerStacks: 0
1071
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1072
+ return null;
1073
+ };
1074
+ deprecatedAPIs = {
1075
+ react_stack_bottom_frame: function(callStackForError) {
1076
+ return callStackForError();
1077
+ }
1078
+ };
1079
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1080
+ var didWarnAboutElementRef = {};
1081
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1082
+ deprecatedAPIs,
1083
+ UnknownOwner
1084
+ )();
1085
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1086
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1087
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1088
+ var event = new window.ErrorEvent("error", {
1089
+ bubbles: true,
1090
+ cancelable: true,
1091
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1092
+ error
1093
+ });
1094
+ if (!window.dispatchEvent(event)) return;
1095
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1096
+ process.emit("uncaughtException", error);
1097
+ return;
1098
+ }
1099
+ console.error(error);
1100
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1101
+ queueMicrotask(function() {
1102
+ return queueMicrotask(callback);
1103
+ });
1104
+ } : enqueueTask;
1105
+ deprecatedAPIs = Object.freeze({
1106
+ __proto__: null,
1107
+ c: function(size) {
1108
+ return resolveDispatcher().useMemoCache(size);
1109
+ }
1110
+ });
1111
+ exports.Children = {
1112
+ map: mapChildren,
1113
+ forEach: function(children, forEachFunc, forEachContext) {
1114
+ mapChildren(
1115
+ children,
1116
+ function() {
1117
+ forEachFunc.apply(this, arguments);
1118
+ },
1119
+ forEachContext
1120
+ );
1121
+ },
1122
+ count: function(children) {
1123
+ var n = 0;
1124
+ mapChildren(children, function() {
1125
+ n++;
1126
+ });
1127
+ return n;
1128
+ },
1129
+ toArray: function(children) {
1130
+ return mapChildren(children, function(child) {
1131
+ return child;
1132
+ }) || [];
1133
+ },
1134
+ only: function(children) {
1135
+ if (!isValidElement(children))
1136
+ throw Error(
1137
+ "React.Children.only expected to receive a single React element child."
1138
+ );
1139
+ return children;
1140
+ }
1141
+ };
1142
+ exports.Component = Component;
1143
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1144
+ exports.Profiler = REACT_PROFILER_TYPE;
1145
+ exports.PureComponent = PureComponent;
1146
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1147
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1148
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1149
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1150
+ exports.act = function(callback) {
1151
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1152
+ actScopeDepth++;
1153
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1154
+ try {
1155
+ var result = callback();
1156
+ } catch (error) {
1157
+ ReactSharedInternals.thrownErrors.push(error);
1158
+ }
1159
+ if (0 < ReactSharedInternals.thrownErrors.length)
1160
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1161
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1162
+ var thenable = result;
1163
+ queueSeveralMicrotasks(function() {
1164
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1165
+ "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 () => ...);"
1166
+ ));
1167
+ });
1168
+ return {
1169
+ then: function(resolve, reject) {
1170
+ didAwaitActCall = true;
1171
+ thenable.then(
1172
+ function(returnValue) {
1173
+ popActScope(prevActQueue, prevActScopeDepth);
1174
+ if (0 === prevActScopeDepth) {
1175
+ try {
1176
+ flushActQueue(queue), enqueueTask(function() {
1177
+ return recursivelyFlushAsyncActWork(
1178
+ returnValue,
1179
+ resolve,
1180
+ reject
1181
+ );
1182
+ });
1183
+ } catch (error$0) {
1184
+ ReactSharedInternals.thrownErrors.push(error$0);
1185
+ }
1186
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1187
+ var _thrownError = aggregateErrors(
1188
+ ReactSharedInternals.thrownErrors
1189
+ );
1190
+ ReactSharedInternals.thrownErrors.length = 0;
1191
+ reject(_thrownError);
1192
+ }
1193
+ } else resolve(returnValue);
1194
+ },
1195
+ function(error) {
1196
+ popActScope(prevActQueue, prevActScopeDepth);
1197
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1198
+ ReactSharedInternals.thrownErrors
1199
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1200
+ }
1201
+ );
1202
+ }
1203
+ };
1204
+ }
1205
+ var returnValue$jscomp$0 = result;
1206
+ popActScope(prevActQueue, prevActScopeDepth);
1207
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1208
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1209
+ "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(() => ...)"
1210
+ ));
1211
+ }), ReactSharedInternals.actQueue = null);
1212
+ if (0 < ReactSharedInternals.thrownErrors.length)
1213
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1214
+ return {
1215
+ then: function(resolve, reject) {
1216
+ didAwaitActCall = true;
1217
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1218
+ return recursivelyFlushAsyncActWork(
1219
+ returnValue$jscomp$0,
1220
+ resolve,
1221
+ reject
1222
+ );
1223
+ })) : resolve(returnValue$jscomp$0);
1224
+ }
1225
+ };
1226
+ };
1227
+ exports.cache = function(fn) {
1228
+ return function() {
1229
+ return fn.apply(null, arguments);
1230
+ };
1231
+ };
1232
+ exports.captureOwnerStack = function() {
1233
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1234
+ return null === getCurrentStack ? null : getCurrentStack();
1235
+ };
1236
+ exports.cloneElement = function(element, config, children) {
1237
+ if (null === element || void 0 === element)
1238
+ throw Error(
1239
+ "The argument must be a React element, but you passed " + element + "."
1240
+ );
1241
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1242
+ if (null != config) {
1243
+ var JSCompiler_inline_result;
1244
+ a: {
1245
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1246
+ config,
1247
+ "ref"
1248
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1249
+ JSCompiler_inline_result = false;
1250
+ break a;
1251
+ }
1252
+ JSCompiler_inline_result = void 0 !== config.ref;
1253
+ }
1254
+ JSCompiler_inline_result && (owner = getOwner());
1255
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1256
+ for (propName in config)
1257
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1258
+ }
1259
+ var propName = arguments.length - 2;
1260
+ if (1 === propName) props.children = children;
1261
+ else if (1 < propName) {
1262
+ JSCompiler_inline_result = Array(propName);
1263
+ for (var i = 0; i < propName; i++)
1264
+ JSCompiler_inline_result[i] = arguments[i + 2];
1265
+ props.children = JSCompiler_inline_result;
1266
+ }
1267
+ props = ReactElement(
1268
+ element.type,
1269
+ key,
1270
+ void 0,
1271
+ void 0,
1272
+ owner,
1273
+ props,
1274
+ element._debugStack,
1275
+ element._debugTask
1276
+ );
1277
+ for (key = 2; key < arguments.length; key++)
1278
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1279
+ return props;
1280
+ };
1281
+ exports.createContext = function(defaultValue) {
1282
+ defaultValue = {
1283
+ $$typeof: REACT_CONTEXT_TYPE,
1284
+ _currentValue: defaultValue,
1285
+ _currentValue2: defaultValue,
1286
+ _threadCount: 0,
1287
+ Provider: null,
1288
+ Consumer: null
1289
+ };
1290
+ defaultValue.Provider = defaultValue;
1291
+ defaultValue.Consumer = {
1292
+ $$typeof: REACT_CONSUMER_TYPE,
1293
+ _context: defaultValue
1294
+ };
1295
+ defaultValue._currentRenderer = null;
1296
+ defaultValue._currentRenderer2 = null;
1297
+ return defaultValue;
1298
+ };
1299
+ exports.createElement = function(type, config, children) {
1300
+ for (var i = 2; i < arguments.length; i++) {
1301
+ var node = arguments[i];
1302
+ isValidElement(node) && node._store && (node._store.validated = 1);
1303
+ }
1304
+ i = {};
1305
+ node = null;
1306
+ if (null != config)
1307
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1308
+ "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"
1309
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1310
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1311
+ var childrenLength = arguments.length - 2;
1312
+ if (1 === childrenLength) i.children = children;
1313
+ else if (1 < childrenLength) {
1314
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1315
+ childArray[_i] = arguments[_i + 2];
1316
+ Object.freeze && Object.freeze(childArray);
1317
+ i.children = childArray;
1318
+ }
1319
+ if (type && type.defaultProps)
1320
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1321
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1322
+ node && defineKeyPropWarningGetter(
1323
+ i,
1324
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1325
+ );
1326
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1327
+ return ReactElement(
1328
+ type,
1329
+ node,
1330
+ void 0,
1331
+ void 0,
1332
+ getOwner(),
1333
+ i,
1334
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1335
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1336
+ );
1337
+ };
1338
+ exports.createRef = function() {
1339
+ var refObject = { current: null };
1340
+ Object.seal(refObject);
1341
+ return refObject;
1342
+ };
1343
+ exports.forwardRef = function(render) {
1344
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1345
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1346
+ ) : "function" !== typeof render ? console.error(
1347
+ "forwardRef requires a render function but was given %s.",
1348
+ null === render ? "null" : typeof render
1349
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1350
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1351
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1352
+ );
1353
+ null != render && null != render.defaultProps && console.error(
1354
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1355
+ );
1356
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1357
+ Object.defineProperty(elementType, "displayName", {
1358
+ enumerable: false,
1359
+ configurable: true,
1360
+ get: function() {
1361
+ return ownName;
1362
+ },
1363
+ set: function(name) {
1364
+ ownName = name;
1365
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1366
+ }
1367
+ });
1368
+ return elementType;
1369
+ };
1370
+ exports.isValidElement = isValidElement;
1371
+ exports.lazy = function(ctor) {
1372
+ return {
1373
+ $$typeof: REACT_LAZY_TYPE,
1374
+ _payload: { _status: -1, _result: ctor },
1375
+ _init: lazyInitializer
1376
+ };
1377
+ };
1378
+ exports.memo = function(type, compare) {
1379
+ null == type && console.error(
1380
+ "memo: The first argument must be a component. Instead received: %s",
1381
+ null === type ? "null" : typeof type
1382
+ );
1383
+ compare = {
1384
+ $$typeof: REACT_MEMO_TYPE,
1385
+ type,
1386
+ compare: void 0 === compare ? null : compare
1387
+ };
1388
+ var ownName;
1389
+ Object.defineProperty(compare, "displayName", {
1390
+ enumerable: false,
1391
+ configurable: true,
1392
+ get: function() {
1393
+ return ownName;
1394
+ },
1395
+ set: function(name) {
1396
+ ownName = name;
1397
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1398
+ }
1399
+ });
1400
+ return compare;
1401
+ };
1402
+ exports.startTransition = function(scope) {
1403
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1404
+ ReactSharedInternals.T = currentTransition;
1405
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1406
+ try {
1407
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1408
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1409
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1410
+ } catch (error) {
1411
+ reportGlobalError(error);
1412
+ } finally {
1413
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1414
+ "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."
1415
+ )), ReactSharedInternals.T = prevTransition;
1416
+ }
1417
+ };
1418
+ exports.unstable_useCacheRefresh = function() {
1419
+ return resolveDispatcher().useCacheRefresh();
1420
+ };
1421
+ exports.use = function(usable) {
1422
+ return resolveDispatcher().use(usable);
1423
+ };
1424
+ exports.useActionState = function(action, initialState, permalink) {
1425
+ return resolveDispatcher().useActionState(
1426
+ action,
1427
+ initialState,
1428
+ permalink
1429
+ );
1430
+ };
1431
+ exports.useCallback = function(callback, deps) {
1432
+ return resolveDispatcher().useCallback(callback, deps);
1433
+ };
1434
+ exports.useContext = function(Context) {
1435
+ var dispatcher = resolveDispatcher();
1436
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1437
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1438
+ );
1439
+ return dispatcher.useContext(Context);
1440
+ };
1441
+ exports.useDebugValue = function(value, formatterFn) {
1442
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1443
+ };
1444
+ exports.useDeferredValue = function(value, initialValue) {
1445
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1446
+ };
1447
+ exports.useEffect = function(create, createDeps, update) {
1448
+ null == create && console.warn(
1449
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1450
+ );
1451
+ var dispatcher = resolveDispatcher();
1452
+ if ("function" === typeof update)
1453
+ throw Error(
1454
+ "useEffect CRUD overload is not enabled in this build of React."
1455
+ );
1456
+ return dispatcher.useEffect(create, createDeps);
1457
+ };
1458
+ exports.useId = function() {
1459
+ return resolveDispatcher().useId();
1460
+ };
1461
+ exports.useImperativeHandle = function(ref, create, deps) {
1462
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1463
+ };
1464
+ exports.useInsertionEffect = function(create, deps) {
1465
+ null == create && console.warn(
1466
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1467
+ );
1468
+ return resolveDispatcher().useInsertionEffect(create, deps);
1469
+ };
1470
+ exports.useLayoutEffect = function(create, deps) {
1471
+ null == create && console.warn(
1472
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1473
+ );
1474
+ return resolveDispatcher().useLayoutEffect(create, deps);
1475
+ };
1476
+ exports.useMemo = function(create, deps) {
1477
+ return resolveDispatcher().useMemo(create, deps);
1478
+ };
1479
+ exports.useOptimistic = function(passthrough, reducer) {
1480
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1481
+ };
1482
+ exports.useReducer = function(reducer, initialArg, init) {
1483
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1484
+ };
1485
+ exports.useRef = function(initialValue) {
1486
+ return resolveDispatcher().useRef(initialValue);
1487
+ };
1488
+ exports.useState = function(initialState) {
1489
+ return resolveDispatcher().useState(initialState);
1490
+ };
1491
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1492
+ return resolveDispatcher().useSyncExternalStore(
1493
+ subscribe,
1494
+ getSnapshot,
1495
+ getServerSnapshot
1496
+ );
1497
+ };
1498
+ exports.useTransition = function() {
1499
+ return resolveDispatcher().useTransition();
1500
+ };
1501
+ exports.version = "19.1.1";
1502
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1503
+ })();
1504
+ }
1505
+ });
1506
+ var require_react = __commonJS({
1507
+ "../../node_modules/react/index.js"(exports, module) {
1508
+ if (process.env.NODE_ENV === "production") {
1509
+ module.exports = require_react_production();
1510
+ } else {
1511
+ module.exports = require_react_development();
1512
+ }
1513
+ }
1514
+ });
1515
+ var require_react_jsx_runtime_development = __commonJS({
1516
+ "../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
1517
+ "production" !== process.env.NODE_ENV && (function() {
1518
+ function getComponentNameFromType(type) {
1519
+ if (null == type) return null;
1520
+ if ("function" === typeof type)
1521
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1522
+ if ("string" === typeof type) return type;
1523
+ switch (type) {
1524
+ case REACT_FRAGMENT_TYPE:
1525
+ return "Fragment";
1526
+ case REACT_PROFILER_TYPE:
1527
+ return "Profiler";
1528
+ case REACT_STRICT_MODE_TYPE:
1529
+ return "StrictMode";
1530
+ case REACT_SUSPENSE_TYPE:
1531
+ return "Suspense";
1532
+ case REACT_SUSPENSE_LIST_TYPE:
1533
+ return "SuspenseList";
1534
+ case REACT_ACTIVITY_TYPE:
1535
+ return "Activity";
1536
+ }
1537
+ if ("object" === typeof type)
1538
+ switch ("number" === typeof type.tag && console.error(
1539
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1540
+ ), type.$$typeof) {
1541
+ case REACT_PORTAL_TYPE:
1542
+ return "Portal";
1543
+ case REACT_CONTEXT_TYPE:
1544
+ return (type.displayName || "Context") + ".Provider";
1545
+ case REACT_CONSUMER_TYPE:
1546
+ return (type._context.displayName || "Context") + ".Consumer";
1547
+ case REACT_FORWARD_REF_TYPE:
1548
+ var innerType = type.render;
1549
+ type = type.displayName;
1550
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1551
+ return type;
1552
+ case REACT_MEMO_TYPE:
1553
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1554
+ case REACT_LAZY_TYPE:
1555
+ innerType = type._payload;
1556
+ type = type._init;
1557
+ try {
1558
+ return getComponentNameFromType(type(innerType));
1559
+ } catch (x) {
1560
+ }
1561
+ }
1562
+ return null;
1563
+ }
1564
+ function testStringCoercion(value) {
1565
+ return "" + value;
1566
+ }
1567
+ function checkKeyStringCoercion(value) {
1568
+ try {
1569
+ testStringCoercion(value);
1570
+ var JSCompiler_inline_result = false;
1571
+ } catch (e) {
1572
+ JSCompiler_inline_result = true;
1573
+ }
1574
+ if (JSCompiler_inline_result) {
1575
+ JSCompiler_inline_result = console;
1576
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
1577
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1578
+ JSCompiler_temp_const.call(
1579
+ JSCompiler_inline_result,
1580
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1581
+ JSCompiler_inline_result$jscomp$0
1582
+ );
1583
+ return testStringCoercion(value);
1584
+ }
1585
+ }
1586
+ function getTaskName(type) {
1587
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
1588
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1589
+ return "<...>";
1590
+ try {
1591
+ var name = getComponentNameFromType(type);
1592
+ return name ? "<" + name + ">" : "<...>";
1593
+ } catch (x) {
1594
+ return "<...>";
1595
+ }
1596
+ }
1597
+ function getOwner() {
1598
+ var dispatcher = ReactSharedInternals.A;
1599
+ return null === dispatcher ? null : dispatcher.getOwner();
1600
+ }
1601
+ function UnknownOwner() {
1602
+ return Error("react-stack-top-frame");
1603
+ }
1604
+ function hasValidKey(config) {
1605
+ if (hasOwnProperty.call(config, "key")) {
1606
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1607
+ if (getter && getter.isReactWarning) return false;
1608
+ }
1609
+ return void 0 !== config.key;
1610
+ }
1611
+ function defineKeyPropWarningGetter(props, displayName) {
1612
+ function warnAboutAccessingKey() {
1613
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1614
+ "%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)",
1615
+ displayName
1616
+ ));
1617
+ }
1618
+ warnAboutAccessingKey.isReactWarning = true;
1619
+ Object.defineProperty(props, "key", {
1620
+ get: warnAboutAccessingKey,
1621
+ configurable: true
1622
+ });
1623
+ }
1624
+ function elementRefGetterWithDeprecationWarning() {
1625
+ var componentName = getComponentNameFromType(this.type);
1626
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1627
+ "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."
1628
+ ));
1629
+ componentName = this.props.ref;
1630
+ return void 0 !== componentName ? componentName : null;
1631
+ }
1632
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
1633
+ self = props.ref;
1634
+ type = {
1635
+ $$typeof: REACT_ELEMENT_TYPE,
1636
+ type,
1637
+ key,
1638
+ props,
1639
+ _owner: owner
1640
+ };
1641
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
1642
+ enumerable: false,
1643
+ get: elementRefGetterWithDeprecationWarning
1644
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1645
+ type._store = {};
1646
+ Object.defineProperty(type._store, "validated", {
1647
+ configurable: false,
1648
+ enumerable: false,
1649
+ writable: true,
1650
+ value: 0
1651
+ });
1652
+ Object.defineProperty(type, "_debugInfo", {
1653
+ configurable: false,
1654
+ enumerable: false,
1655
+ writable: true,
1656
+ value: null
1657
+ });
1658
+ Object.defineProperty(type, "_debugStack", {
1659
+ configurable: false,
1660
+ enumerable: false,
1661
+ writable: true,
1662
+ value: debugStack
1663
+ });
1664
+ Object.defineProperty(type, "_debugTask", {
1665
+ configurable: false,
1666
+ enumerable: false,
1667
+ writable: true,
1668
+ value: debugTask
1669
+ });
1670
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1671
+ return type;
1672
+ }
1673
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
1674
+ var children = config.children;
1675
+ if (void 0 !== children)
1676
+ if (isStaticChildren)
1677
+ if (isArrayImpl(children)) {
1678
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1679
+ validateChildKeys(children[isStaticChildren]);
1680
+ Object.freeze && Object.freeze(children);
1681
+ } else
1682
+ console.error(
1683
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1684
+ );
1685
+ else validateChildKeys(children);
1686
+ if (hasOwnProperty.call(config, "key")) {
1687
+ children = getComponentNameFromType(type);
1688
+ var keys = Object.keys(config).filter(function(k) {
1689
+ return "key" !== k;
1690
+ });
1691
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1692
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1693
+ '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} />',
1694
+ isStaticChildren,
1695
+ children,
1696
+ keys,
1697
+ children
1698
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1699
+ }
1700
+ children = null;
1701
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1702
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1703
+ if ("key" in config) {
1704
+ maybeKey = {};
1705
+ for (var propName in config)
1706
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1707
+ } else maybeKey = config;
1708
+ children && defineKeyPropWarningGetter(
1709
+ maybeKey,
1710
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1711
+ );
1712
+ return ReactElement(
1713
+ type,
1714
+ children,
1715
+ self,
1716
+ source,
1717
+ getOwner(),
1718
+ maybeKey,
1719
+ debugStack,
1720
+ debugTask
1721
+ );
1722
+ }
1723
+ function validateChildKeys(node) {
1724
+ "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
1725
+ }
1726
+ var React4 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1727
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React4.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1728
+ return null;
1729
+ };
1730
+ React4 = {
1731
+ react_stack_bottom_frame: function(callStackForError) {
1732
+ return callStackForError();
1733
+ }
1734
+ };
1735
+ var specialPropKeyWarningShown;
1736
+ var didWarnAboutElementRef = {};
1737
+ var unknownOwnerDebugStack = React4.react_stack_bottom_frame.bind(
1738
+ React4,
1739
+ UnknownOwner
1740
+ )();
1741
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1742
+ var didWarnAboutKeySpread = {};
1743
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1744
+ exports.jsx = function(type, config, maybeKey, source, self) {
1745
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1746
+ return jsxDEVImpl(
1747
+ type,
1748
+ config,
1749
+ maybeKey,
1750
+ false,
1751
+ source,
1752
+ self,
1753
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1754
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1755
+ );
1756
+ };
1757
+ exports.jsxs = function(type, config, maybeKey, source, self) {
1758
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1759
+ return jsxDEVImpl(
1760
+ type,
1761
+ config,
1762
+ maybeKey,
1763
+ true,
1764
+ source,
1765
+ self,
1766
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1767
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1768
+ );
1769
+ };
1770
+ })();
1771
+ }
1772
+ });
1773
+ var require_jsx_runtime = __commonJS({
1774
+ "../../node_modules/react/jsx-runtime.js"(exports, module) {
1775
+ if (process.env.NODE_ENV === "production") {
1776
+ module.exports = require_react_jsx_runtime_production();
1777
+ } else {
1778
+ module.exports = require_react_jsx_runtime_development();
1779
+ }
1780
+ }
1781
+ });
1782
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
1783
+ var import_jsx_runtime2 = __toESM(require_jsx_runtime());
1784
+ var import_jsx_runtime3 = __toESM(require_jsx_runtime());
1785
+ var SvgChevron = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1786
+ "svg",
1787
+ {
1788
+ xmlns: "http://www.w3.org/2000/svg",
1789
+ width: "1em",
1790
+ height: "1em",
1791
+ fill: "none",
1792
+ viewBox: "0 0 24 24",
1793
+ ...props,
1794
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1795
+ "path",
1796
+ {
1797
+ fill: "currentColor",
1798
+ fillRule: "evenodd",
1799
+ d: "M13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414z",
1800
+ clipRule: "evenodd"
1801
+ }
1802
+ )
1803
+ }
1804
+ );
1805
+ var Chevron_default = SvgChevron;
1806
+ var import_jsx_runtime4 = __toESM(require_jsx_runtime());
1807
+ var import_jsx_runtime5 = __toESM(require_jsx_runtime());
1808
+ var import_jsx_runtime6 = __toESM(require_jsx_runtime());
1809
+ var import_jsx_runtime7 = __toESM(require_jsx_runtime());
1810
+ var import_jsx_runtime8 = __toESM(require_jsx_runtime());
1811
+ var import_jsx_runtime9 = __toESM(require_jsx_runtime());
1812
+ var import_jsx_runtime10 = __toESM(require_jsx_runtime());
1813
+ var import_jsx_runtime11 = __toESM(require_jsx_runtime());
1814
+ var import_jsx_runtime12 = __toESM(require_jsx_runtime());
1815
+ var import_jsx_runtime13 = __toESM(require_jsx_runtime());
1816
+ var import_jsx_runtime14 = __toESM(require_jsx_runtime());
1817
+ var import_jsx_runtime15 = __toESM(require_jsx_runtime());
1818
+ var import_jsx_runtime16 = __toESM(require_jsx_runtime());
1819
+ var import_jsx_runtime17 = __toESM(require_jsx_runtime());
1820
+ var import_jsx_runtime18 = __toESM(require_jsx_runtime());
1821
+ var import_jsx_runtime19 = __toESM(require_jsx_runtime());
1822
+ var import_jsx_runtime20 = __toESM(require_jsx_runtime());
1823
+ var import_jsx_runtime21 = __toESM(require_jsx_runtime());
1824
+ var import_jsx_runtime22 = __toESM(require_jsx_runtime());
1825
+ var import_jsx_runtime23 = __toESM(require_jsx_runtime());
1826
+ var import_jsx_runtime24 = __toESM(require_jsx_runtime());
1827
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime());
1828
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime());
1829
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime());
1830
+ var import_jsx_runtime28 = __toESM(require_jsx_runtime());
1831
+ var import_jsx_runtime29 = __toESM(require_jsx_runtime());
1832
+ var import_jsx_runtime30 = __toESM(require_jsx_runtime());
1833
+
1834
+ // src/elements/MenuButton.jsx
1835
+ function MenuButton({ children, size }) {
1836
+ const SPLIT_BUTTON_STYLES = cx2(
1837
+ "w-[36px] border-l-[1px] border-l-black flex flex-row justify-center items-center",
1838
+ {
1839
+ "h-[32px]": size === "small",
1840
+ "h-[40px] py-2": size === "medium" || size === void 0
1841
+ }
1842
+ );
1843
+ return /* @__PURE__ */ React3.createElement(MenuButtonContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement("div", null, children), /* @__PURE__ */ React3.createElement(Chevron_default, null));
1844
+ }
1845
+ export {
1846
+ Button,
1847
+ MenuButton
1848
+ };
1849
+ /*! Bundled license information:
1850
+
1851
+ react/cjs/react-jsx-runtime.production.js:
1852
+ (**
1853
+ * @license React
1854
+ * react-jsx-runtime.production.js
1855
+ *
1856
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1857
+ *
1858
+ * This source code is licensed under the MIT license found in the
1859
+ * LICENSE file in the root directory of this source tree.
1860
+ *)
1861
+
1862
+ react/cjs/react.production.js:
1863
+ (**
1864
+ * @license React
1865
+ * react.production.js
1866
+ *
1867
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1868
+ *
1869
+ * This source code is licensed under the MIT license found in the
1870
+ * LICENSE file in the root directory of this source tree.
1871
+ *)
1872
+
1873
+ react/cjs/react.development.js:
1874
+ (**
1875
+ * @license React
1876
+ * react.development.js
1877
+ *
1878
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1879
+ *
1880
+ * This source code is licensed under the MIT license found in the
1881
+ * LICENSE file in the root directory of this source tree.
1882
+ *)
1883
+
1884
+ react/cjs/react-jsx-runtime.development.js:
1885
+ (**
1886
+ * @license React
1887
+ * react-jsx-runtime.development.js
1888
+ *
1889
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1890
+ *
1891
+ * This source code is licensed under the MIT license found in the
1892
+ * LICENSE file in the root directory of this source tree.
1893
+ *)
1894
+ */