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