jazz-tools 0.18.27 → 0.18.29

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.
Files changed (51) hide show
  1. package/.turbo/turbo-build.log +47 -47
  2. package/CHANGELOG.md +23 -0
  3. package/dist/{chunk-ZIAN4UY5.js → chunk-F55R554M.js} +171 -120
  4. package/dist/chunk-F55R554M.js.map +1 -0
  5. package/dist/index.js +3 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/inspector/{custom-element-A7UAELEG.js → custom-element-35MDW4SW.js} +1840 -1837
  8. package/dist/inspector/{custom-element-A7UAELEG.js.map → custom-element-35MDW4SW.js.map} +1 -1
  9. package/dist/inspector/custom-element.d.ts.map +1 -1
  10. package/dist/inspector/index.d.ts +1 -1
  11. package/dist/inspector/index.d.ts.map +1 -1
  12. package/dist/inspector/index.js +0 -1
  13. package/dist/inspector/index.js.map +1 -1
  14. package/dist/inspector/register-custom-element.js +1 -1
  15. package/dist/react-core/hooks.d.ts +4 -0
  16. package/dist/react-core/hooks.d.ts.map +1 -1
  17. package/dist/react-core/index.js +5 -0
  18. package/dist/react-core/index.js.map +1 -1
  19. package/dist/testing.js +1 -1
  20. package/dist/tools/coValues/coList.d.ts +11 -3
  21. package/dist/tools/coValues/coList.d.ts.map +1 -1
  22. package/dist/tools/coValues/coMap.d.ts +21 -5
  23. package/dist/tools/coValues/coMap.d.ts.map +1 -1
  24. package/dist/tools/coValues/group.d.ts +2 -2
  25. package/dist/tools/coValues/group.d.ts.map +1 -1
  26. package/dist/tools/coValues/inbox.d.ts.map +1 -1
  27. package/dist/tools/coValues/interfaces.d.ts +17 -1
  28. package/dist/tools/coValues/interfaces.d.ts.map +1 -1
  29. package/dist/tools/exports.d.ts +1 -1
  30. package/dist/tools/exports.d.ts.map +1 -1
  31. package/dist/tools/tests/coList.unique.test.d.ts +2 -0
  32. package/dist/tools/tests/coList.unique.test.d.ts.map +1 -0
  33. package/dist/tools/tests/coMap.unique.test.d.ts +2 -0
  34. package/dist/tools/tests/coMap.unique.test.d.ts.map +1 -0
  35. package/package.json +5 -5
  36. package/src/inspector/custom-element.tsx +4 -0
  37. package/src/inspector/index.tsx +0 -2
  38. package/src/react-core/hooks.ts +8 -0
  39. package/src/react-core/tests/useAccount.test.ts +61 -1
  40. package/src/react-core/tests/usePassPhraseAuth.test.ts +74 -2
  41. package/src/tools/coValues/coList.ts +38 -35
  42. package/src/tools/coValues/coMap.ts +38 -38
  43. package/src/tools/coValues/group.ts +5 -1
  44. package/src/tools/coValues/inbox.ts +4 -3
  45. package/src/tools/coValues/interfaces.ts +119 -0
  46. package/src/tools/exports.ts +1 -0
  47. package/src/tools/tests/coList.test.ts +0 -190
  48. package/src/tools/tests/coList.unique.test.ts +244 -0
  49. package/src/tools/tests/coMap.test.ts +0 -433
  50. package/src/tools/tests/coMap.unique.test.ts +579 -0
  51. package/dist/chunk-ZIAN4UY5.js.map +0 -1
@@ -24,1944 +24,1944 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // ../../node_modules/scheduler/cjs/scheduler.production.js
28
- var require_scheduler_production = __commonJS({
29
- "../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
27
+ // ../../node_modules/react/cjs/react.production.js
28
+ var require_react_production = __commonJS({
29
+ "../../node_modules/react/cjs/react.production.js"(exports) {
30
30
  "use strict";
31
- function push(heap, node) {
32
- var index = heap.length;
33
- heap.push(node);
34
- a: for (; 0 < index; ) {
35
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
36
- if (0 < compare(parent, node))
37
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
38
- else break a;
39
- }
40
- }
41
- function peek(heap) {
42
- return 0 === heap.length ? null : heap[0];
31
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
32
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
33
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
34
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
35
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
36
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
37
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
38
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
39
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
40
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
41
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
42
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
43
+ function getIteratorFn(maybeIterable) {
44
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
45
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
46
+ return "function" === typeof maybeIterable ? maybeIterable : null;
43
47
  }
44
- function pop(heap) {
45
- if (0 === heap.length) return null;
46
- var first = heap[0], last = heap.pop();
47
- if (last !== first) {
48
- heap[0] = last;
49
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
50
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
51
- if (0 > compare(left, last))
52
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
53
- else if (rightIndex < length && 0 > compare(right, last))
54
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
55
- else break a;
56
- }
48
+ var ReactNoopUpdateQueue = {
49
+ isMounted: function() {
50
+ return false;
51
+ },
52
+ enqueueForceUpdate: function() {
53
+ },
54
+ enqueueReplaceState: function() {
55
+ },
56
+ enqueueSetState: function() {
57
57
  }
58
- return first;
58
+ };
59
+ var assign = Object.assign;
60
+ var emptyObject = {};
61
+ function Component(props, context, updater) {
62
+ this.props = props;
63
+ this.context = context;
64
+ this.refs = emptyObject;
65
+ this.updater = updater || ReactNoopUpdateQueue;
59
66
  }
60
- function compare(a, b) {
61
- var diff = a.sortIndex - b.sortIndex;
62
- return 0 !== diff ? diff : a.id - b.id;
67
+ Component.prototype.isReactComponent = {};
68
+ Component.prototype.setState = function(partialState, callback) {
69
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
70
+ throw Error(
71
+ "takes an object of state variables to update or a function which returns an object of state variables."
72
+ );
73
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
74
+ };
75
+ Component.prototype.forceUpdate = function(callback) {
76
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
77
+ };
78
+ function ComponentDummy() {
63
79
  }
64
- exports.unstable_now = void 0;
65
- if ("object" === typeof performance && "function" === typeof performance.now) {
66
- localPerformance = performance;
67
- exports.unstable_now = function() {
68
- return localPerformance.now();
69
- };
70
- } else {
71
- localDate = Date, initialTime = localDate.now();
72
- exports.unstable_now = function() {
73
- return localDate.now() - initialTime;
80
+ ComponentDummy.prototype = Component.prototype;
81
+ function PureComponent(props, context, updater) {
82
+ this.props = props;
83
+ this.context = context;
84
+ this.refs = emptyObject;
85
+ this.updater = updater || ReactNoopUpdateQueue;
86
+ }
87
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
88
+ pureComponentPrototype.constructor = PureComponent;
89
+ assign(pureComponentPrototype, Component.prototype);
90
+ pureComponentPrototype.isPureReactComponent = true;
91
+ var isArrayImpl = Array.isArray;
92
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
93
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
94
+ function ReactElement(type, key, self, source, owner, props) {
95
+ self = props.ref;
96
+ return {
97
+ $$typeof: REACT_ELEMENT_TYPE,
98
+ type,
99
+ key,
100
+ ref: void 0 !== self ? self : null,
101
+ props
74
102
  };
75
103
  }
76
- var localPerformance;
77
- var localDate;
78
- var initialTime;
79
- var taskQueue = [];
80
- var timerQueue = [];
81
- var taskIdCounter = 1;
82
- var currentTask = null;
83
- var currentPriorityLevel = 3;
84
- var isPerformingWork = false;
85
- var isHostCallbackScheduled = false;
86
- var isHostTimeoutScheduled = false;
87
- var needsPaint = false;
88
- var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
89
- var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
90
- var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
91
- function advanceTimers(currentTime) {
92
- for (var timer = peek(timerQueue); null !== timer; ) {
93
- if (null === timer.callback) pop(timerQueue);
94
- else if (timer.startTime <= currentTime)
95
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
96
- else break;
97
- timer = peek(timerQueue);
98
- }
104
+ function cloneAndReplaceKey(oldElement, newKey) {
105
+ return ReactElement(
106
+ oldElement.type,
107
+ newKey,
108
+ void 0,
109
+ void 0,
110
+ void 0,
111
+ oldElement.props
112
+ );
99
113
  }
100
- function handleTimeout(currentTime) {
101
- isHostTimeoutScheduled = false;
102
- advanceTimers(currentTime);
103
- if (!isHostCallbackScheduled)
104
- if (null !== peek(taskQueue))
105
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
106
- else {
107
- var firstTimer = peek(timerQueue);
108
- null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
109
- }
114
+ function isValidElement(object) {
115
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
110
116
  }
111
- var isMessageLoopRunning = false;
112
- var taskTimeoutID = -1;
113
- var frameInterval = 5;
114
- var startTime = -1;
115
- function shouldYieldToHost() {
116
- return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
117
+ function escape(key) {
118
+ var escaperLookup = { "=": "=0", ":": "=2" };
119
+ return "$" + key.replace(/[=:]/g, function(match) {
120
+ return escaperLookup[match];
121
+ });
117
122
  }
118
- function performWorkUntilDeadline() {
119
- needsPaint = false;
120
- if (isMessageLoopRunning) {
121
- var currentTime = exports.unstable_now();
122
- startTime = currentTime;
123
- var hasMoreWork = true;
124
- try {
125
- a: {
126
- isHostCallbackScheduled = false;
127
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
128
- isPerformingWork = true;
129
- var previousPriorityLevel = currentPriorityLevel;
130
- try {
131
- b: {
132
- advanceTimers(currentTime);
133
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
134
- var callback = currentTask.callback;
135
- if ("function" === typeof callback) {
136
- currentTask.callback = null;
137
- currentPriorityLevel = currentTask.priorityLevel;
138
- var continuationCallback = callback(
139
- currentTask.expirationTime <= currentTime
140
- );
141
- currentTime = exports.unstable_now();
142
- if ("function" === typeof continuationCallback) {
143
- currentTask.callback = continuationCallback;
144
- advanceTimers(currentTime);
145
- hasMoreWork = true;
146
- break b;
147
- }
148
- currentTask === peek(taskQueue) && pop(taskQueue);
149
- advanceTimers(currentTime);
150
- } else pop(taskQueue);
151
- currentTask = peek(taskQueue);
152
- }
153
- if (null !== currentTask) hasMoreWork = true;
154
- else {
155
- var firstTimer = peek(timerQueue);
156
- null !== firstTimer && requestHostTimeout(
157
- handleTimeout,
158
- firstTimer.startTime - currentTime
159
- );
160
- hasMoreWork = false;
161
- }
162
- }
163
- break a;
164
- } finally {
165
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
123
+ var userProvidedKeyEscapeRegex = /\/+/g;
124
+ function getElementKey(element, index) {
125
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
126
+ }
127
+ function noop$1() {
128
+ }
129
+ function resolveThenable(thenable) {
130
+ switch (thenable.status) {
131
+ case "fulfilled":
132
+ return thenable.value;
133
+ case "rejected":
134
+ throw thenable.reason;
135
+ default:
136
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
137
+ function(fulfilledValue) {
138
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
139
+ },
140
+ function(error) {
141
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
166
142
  }
167
- hasMoreWork = void 0;
143
+ )), thenable.status) {
144
+ case "fulfilled":
145
+ return thenable.value;
146
+ case "rejected":
147
+ throw thenable.reason;
168
148
  }
169
- } finally {
170
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
149
+ }
150
+ throw thenable;
151
+ }
152
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
153
+ var type = typeof children;
154
+ if ("undefined" === type || "boolean" === type) children = null;
155
+ var invokeCallback = false;
156
+ if (null === children) invokeCallback = true;
157
+ else
158
+ switch (type) {
159
+ case "bigint":
160
+ case "string":
161
+ case "number":
162
+ invokeCallback = true;
163
+ break;
164
+ case "object":
165
+ switch (children.$$typeof) {
166
+ case REACT_ELEMENT_TYPE:
167
+ case REACT_PORTAL_TYPE:
168
+ invokeCallback = true;
169
+ break;
170
+ case REACT_LAZY_TYPE:
171
+ return invokeCallback = children._init, mapIntoArray(
172
+ invokeCallback(children._payload),
173
+ array,
174
+ escapedPrefix,
175
+ nameSoFar,
176
+ callback
177
+ );
178
+ }
171
179
  }
180
+ if (invokeCallback)
181
+ 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) {
182
+ return c;
183
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
184
+ callback,
185
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
186
+ userProvidedKeyEscapeRegex,
187
+ "$&/"
188
+ ) + "/") + invokeCallback
189
+ )), array.push(callback)), 1;
190
+ invokeCallback = 0;
191
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
192
+ if (isArrayImpl(children))
193
+ for (var i = 0; i < children.length; i++)
194
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
195
+ nameSoFar,
196
+ array,
197
+ escapedPrefix,
198
+ type,
199
+ callback
200
+ );
201
+ else if (i = getIteratorFn(children), "function" === typeof i)
202
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
203
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
204
+ nameSoFar,
205
+ array,
206
+ escapedPrefix,
207
+ type,
208
+ callback
209
+ );
210
+ else if ("object" === type) {
211
+ if ("function" === typeof children.then)
212
+ return mapIntoArray(
213
+ resolveThenable(children),
214
+ array,
215
+ escapedPrefix,
216
+ nameSoFar,
217
+ callback
218
+ );
219
+ array = String(children);
220
+ throw Error(
221
+ "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."
222
+ );
172
223
  }
224
+ return invokeCallback;
173
225
  }
174
- var schedulePerformWorkUntilDeadline;
175
- if ("function" === typeof localSetImmediate)
176
- schedulePerformWorkUntilDeadline = function() {
177
- localSetImmediate(performWorkUntilDeadline);
178
- };
179
- else if ("undefined" !== typeof MessageChannel) {
180
- channel = new MessageChannel(), port = channel.port2;
181
- channel.port1.onmessage = performWorkUntilDeadline;
182
- schedulePerformWorkUntilDeadline = function() {
183
- port.postMessage(null);
184
- };
185
- } else
186
- schedulePerformWorkUntilDeadline = function() {
187
- localSetTimeout(performWorkUntilDeadline, 0);
188
- };
189
- var channel;
190
- var port;
191
- function requestHostTimeout(callback, ms) {
192
- taskTimeoutID = localSetTimeout(function() {
193
- callback(exports.unstable_now());
194
- }, ms);
226
+ function mapChildren(children, func, context) {
227
+ if (null == children) return children;
228
+ var result = [], count = 0;
229
+ mapIntoArray(children, result, "", "", function(child) {
230
+ return func.call(context, child, count++);
231
+ });
232
+ return result;
195
233
  }
196
- exports.unstable_IdlePriority = 5;
197
- exports.unstable_ImmediatePriority = 1;
198
- exports.unstable_LowPriority = 4;
199
- exports.unstable_NormalPriority = 3;
200
- exports.unstable_Profiling = null;
201
- exports.unstable_UserBlockingPriority = 2;
202
- exports.unstable_cancelCallback = function(task) {
203
- task.callback = null;
204
- };
205
- exports.unstable_forceFrameRate = function(fps) {
206
- 0 > fps || 125 < fps ? console.error(
207
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
208
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
209
- };
210
- exports.unstable_getCurrentPriorityLevel = function() {
211
- return currentPriorityLevel;
212
- };
213
- exports.unstable_next = function(eventHandler) {
214
- switch (currentPriorityLevel) {
215
- case 1:
216
- case 2:
217
- case 3:
218
- var priorityLevel = 3;
219
- break;
220
- default:
221
- priorityLevel = currentPriorityLevel;
234
+ function lazyInitializer(payload) {
235
+ if (-1 === payload._status) {
236
+ var ctor = payload._result;
237
+ ctor = ctor();
238
+ ctor.then(
239
+ function(moduleObject) {
240
+ if (0 === payload._status || -1 === payload._status)
241
+ payload._status = 1, payload._result = moduleObject;
242
+ },
243
+ function(error) {
244
+ if (0 === payload._status || -1 === payload._status)
245
+ payload._status = 2, payload._result = error;
246
+ }
247
+ );
248
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
222
249
  }
223
- var previousPriorityLevel = currentPriorityLevel;
224
- currentPriorityLevel = priorityLevel;
225
- try {
226
- return eventHandler();
227
- } finally {
228
- currentPriorityLevel = previousPriorityLevel;
250
+ if (1 === payload._status) return payload._result.default;
251
+ throw payload._result;
252
+ }
253
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
254
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
255
+ var event = new window.ErrorEvent("error", {
256
+ bubbles: true,
257
+ cancelable: true,
258
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
259
+ error
260
+ });
261
+ if (!window.dispatchEvent(event)) return;
262
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
263
+ process.emit("uncaughtException", error);
264
+ return;
229
265
  }
266
+ console.error(error);
230
267
  };
231
- exports.unstable_requestPaint = function() {
232
- needsPaint = true;
233
- };
234
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
235
- switch (priorityLevel) {
236
- case 1:
237
- case 2:
238
- case 3:
239
- case 4:
240
- case 5:
241
- break;
242
- default:
243
- priorityLevel = 3;
244
- }
245
- var previousPriorityLevel = currentPriorityLevel;
246
- currentPriorityLevel = priorityLevel;
247
- try {
248
- return eventHandler();
249
- } finally {
250
- currentPriorityLevel = previousPriorityLevel;
268
+ function noop() {
269
+ }
270
+ exports.Children = {
271
+ map: mapChildren,
272
+ forEach: function(children, forEachFunc, forEachContext) {
273
+ mapChildren(
274
+ children,
275
+ function() {
276
+ forEachFunc.apply(this, arguments);
277
+ },
278
+ forEachContext
279
+ );
280
+ },
281
+ count: function(children) {
282
+ var n = 0;
283
+ mapChildren(children, function() {
284
+ n++;
285
+ });
286
+ return n;
287
+ },
288
+ toArray: function(children) {
289
+ return mapChildren(children, function(child) {
290
+ return child;
291
+ }) || [];
292
+ },
293
+ only: function(children) {
294
+ if (!isValidElement(children))
295
+ throw Error(
296
+ "React.Children.only expected to receive a single React element child."
297
+ );
298
+ return children;
251
299
  }
252
300
  };
253
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
254
- var currentTime = exports.unstable_now();
255
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
256
- switch (priorityLevel) {
257
- case 1:
258
- var timeout = -1;
259
- break;
260
- case 2:
261
- timeout = 250;
262
- break;
263
- case 5:
264
- timeout = 1073741823;
265
- break;
266
- case 4:
267
- timeout = 1e4;
268
- break;
269
- default:
270
- timeout = 5e3;
301
+ exports.Component = Component;
302
+ exports.Fragment = REACT_FRAGMENT_TYPE;
303
+ exports.Profiler = REACT_PROFILER_TYPE;
304
+ exports.PureComponent = PureComponent;
305
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
306
+ exports.Suspense = REACT_SUSPENSE_TYPE;
307
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
308
+ exports.__COMPILER_RUNTIME = {
309
+ __proto__: null,
310
+ c: function(size) {
311
+ return ReactSharedInternals.H.useMemoCache(size);
271
312
  }
272
- timeout = options + timeout;
273
- priorityLevel = {
274
- id: taskIdCounter++,
275
- callback,
276
- priorityLevel,
277
- startTime: options,
278
- expirationTime: timeout,
279
- sortIndex: -1
280
- };
281
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
282
- return priorityLevel;
283
313
  };
284
- exports.unstable_shouldYield = shouldYieldToHost;
285
- exports.unstable_wrapCallback = function(callback) {
286
- var parentPriorityLevel = currentPriorityLevel;
314
+ exports.cache = function(fn) {
287
315
  return function() {
288
- var previousPriorityLevel = currentPriorityLevel;
289
- currentPriorityLevel = parentPriorityLevel;
290
- try {
291
- return callback.apply(this, arguments);
292
- } finally {
293
- currentPriorityLevel = previousPriorityLevel;
294
- }
316
+ return fn.apply(null, arguments);
295
317
  };
296
318
  };
297
- }
298
- });
319
+ exports.cloneElement = function(element, config, children) {
320
+ if (null === element || void 0 === element)
321
+ throw Error(
322
+ "The argument must be a React element, but you passed " + element + "."
323
+ );
324
+ var props = assign({}, element.props), key = element.key, owner = void 0;
325
+ if (null != config)
326
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
327
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
328
+ var propName = arguments.length - 2;
329
+ if (1 === propName) props.children = children;
330
+ else if (1 < propName) {
331
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
332
+ childArray[i] = arguments[i + 2];
333
+ props.children = childArray;
334
+ }
335
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
336
+ };
337
+ exports.createContext = function(defaultValue) {
338
+ defaultValue = {
339
+ $$typeof: REACT_CONTEXT_TYPE,
340
+ _currentValue: defaultValue,
341
+ _currentValue2: defaultValue,
342
+ _threadCount: 0,
343
+ Provider: null,
344
+ Consumer: null
345
+ };
346
+ defaultValue.Provider = defaultValue;
347
+ defaultValue.Consumer = {
348
+ $$typeof: REACT_CONSUMER_TYPE,
349
+ _context: defaultValue
350
+ };
351
+ return defaultValue;
352
+ };
353
+ exports.createElement = function(type, config, children) {
354
+ var propName, props = {}, key = null;
355
+ if (null != config)
356
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
357
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
358
+ var childrenLength = arguments.length - 2;
359
+ if (1 === childrenLength) props.children = children;
360
+ else if (1 < childrenLength) {
361
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
362
+ childArray[i] = arguments[i + 2];
363
+ props.children = childArray;
364
+ }
365
+ if (type && type.defaultProps)
366
+ for (propName in childrenLength = type.defaultProps, childrenLength)
367
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
368
+ return ReactElement(type, key, void 0, void 0, null, props);
369
+ };
370
+ exports.createRef = function() {
371
+ return { current: null };
372
+ };
373
+ exports.forwardRef = function(render) {
374
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
375
+ };
376
+ exports.isValidElement = isValidElement;
377
+ exports.lazy = function(ctor) {
378
+ return {
379
+ $$typeof: REACT_LAZY_TYPE,
380
+ _payload: { _status: -1, _result: ctor },
381
+ _init: lazyInitializer
382
+ };
383
+ };
384
+ exports.memo = function(type, compare) {
385
+ return {
386
+ $$typeof: REACT_MEMO_TYPE,
387
+ type,
388
+ compare: void 0 === compare ? null : compare
389
+ };
390
+ };
391
+ exports.startTransition = function(scope) {
392
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
393
+ ReactSharedInternals.T = currentTransition;
394
+ try {
395
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
396
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
397
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
398
+ } catch (error) {
399
+ reportGlobalError(error);
400
+ } finally {
401
+ ReactSharedInternals.T = prevTransition;
402
+ }
403
+ };
404
+ exports.unstable_useCacheRefresh = function() {
405
+ return ReactSharedInternals.H.useCacheRefresh();
406
+ };
407
+ exports.use = function(usable) {
408
+ return ReactSharedInternals.H.use(usable);
409
+ };
410
+ exports.useActionState = function(action, initialState, permalink) {
411
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
412
+ };
413
+ exports.useCallback = function(callback, deps) {
414
+ return ReactSharedInternals.H.useCallback(callback, deps);
415
+ };
416
+ exports.useContext = function(Context) {
417
+ return ReactSharedInternals.H.useContext(Context);
418
+ };
419
+ exports.useDebugValue = function() {
420
+ };
421
+ exports.useDeferredValue = function(value, initialValue) {
422
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
423
+ };
424
+ exports.useEffect = function(create, createDeps, update) {
425
+ var dispatcher = ReactSharedInternals.H;
426
+ if ("function" === typeof update)
427
+ throw Error(
428
+ "useEffect CRUD overload is not enabled in this build of React."
429
+ );
430
+ return dispatcher.useEffect(create, createDeps);
431
+ };
432
+ exports.useId = function() {
433
+ return ReactSharedInternals.H.useId();
434
+ };
435
+ exports.useImperativeHandle = function(ref, create, deps) {
436
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
437
+ };
438
+ exports.useInsertionEffect = function(create, deps) {
439
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
440
+ };
441
+ exports.useLayoutEffect = function(create, deps) {
442
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
443
+ };
444
+ exports.useMemo = function(create, deps) {
445
+ return ReactSharedInternals.H.useMemo(create, deps);
446
+ };
447
+ exports.useOptimistic = function(passthrough, reducer) {
448
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
449
+ };
450
+ exports.useReducer = function(reducer, initialArg, init) {
451
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
452
+ };
453
+ exports.useRef = function(initialValue) {
454
+ return ReactSharedInternals.H.useRef(initialValue);
455
+ };
456
+ exports.useState = function(initialState) {
457
+ return ReactSharedInternals.H.useState(initialState);
458
+ };
459
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
460
+ return ReactSharedInternals.H.useSyncExternalStore(
461
+ subscribe,
462
+ getSnapshot,
463
+ getServerSnapshot
464
+ );
465
+ };
466
+ exports.useTransition = function() {
467
+ return ReactSharedInternals.H.useTransition();
468
+ };
469
+ exports.version = "19.1.0";
470
+ }
471
+ });
299
472
 
300
- // ../../node_modules/scheduler/cjs/scheduler.development.js
301
- var require_scheduler_development = __commonJS({
302
- "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
473
+ // ../../node_modules/react/cjs/react.development.js
474
+ var require_react_development = __commonJS({
475
+ "../../node_modules/react/cjs/react.development.js"(exports, module) {
303
476
  "use strict";
304
477
  "production" !== process.env.NODE_ENV && function() {
305
- function performWorkUntilDeadline() {
306
- needsPaint = false;
307
- if (isMessageLoopRunning) {
308
- var currentTime = exports.unstable_now();
309
- startTime = currentTime;
310
- var hasMoreWork = true;
311
- try {
312
- a: {
313
- isHostCallbackScheduled = false;
314
- isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
315
- isPerformingWork = true;
316
- var previousPriorityLevel = currentPriorityLevel;
317
- try {
318
- b: {
319
- advanceTimers(currentTime);
320
- for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
321
- var callback = currentTask.callback;
322
- if ("function" === typeof callback) {
323
- currentTask.callback = null;
324
- currentPriorityLevel = currentTask.priorityLevel;
325
- var continuationCallback = callback(
326
- currentTask.expirationTime <= currentTime
327
- );
328
- currentTime = exports.unstable_now();
329
- if ("function" === typeof continuationCallback) {
330
- currentTask.callback = continuationCallback;
331
- advanceTimers(currentTime);
332
- hasMoreWork = true;
333
- break b;
334
- }
335
- currentTask === peek(taskQueue) && pop(taskQueue);
336
- advanceTimers(currentTime);
337
- } else pop(taskQueue);
338
- currentTask = peek(taskQueue);
339
- }
340
- if (null !== currentTask) hasMoreWork = true;
341
- else {
342
- var firstTimer = peek(timerQueue);
343
- null !== firstTimer && requestHostTimeout(
344
- handleTimeout,
345
- firstTimer.startTime - currentTime
346
- );
347
- hasMoreWork = false;
348
- }
349
- }
350
- break a;
351
- } finally {
352
- currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
353
- }
354
- hasMoreWork = void 0;
355
- }
356
- } finally {
357
- hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
478
+ function defineDeprecationWarning(methodName, info) {
479
+ Object.defineProperty(Component.prototype, methodName, {
480
+ get: function() {
481
+ console.warn(
482
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
483
+ info[0],
484
+ info[1]
485
+ );
358
486
  }
359
- }
487
+ });
360
488
  }
361
- function push(heap, node) {
362
- var index = heap.length;
363
- heap.push(node);
364
- a: for (; 0 < index; ) {
365
- var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
366
- if (0 < compare(parent, node))
367
- heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
368
- else break a;
369
- }
489
+ function getIteratorFn(maybeIterable) {
490
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
491
+ return null;
492
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
493
+ return "function" === typeof maybeIterable ? maybeIterable : null;
370
494
  }
371
- function peek(heap) {
372
- return 0 === heap.length ? null : heap[0];
495
+ function warnNoop(publicInstance, callerName) {
496
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
497
+ var warningKey = publicInstance + "." + callerName;
498
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
499
+ "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.",
500
+ callerName,
501
+ publicInstance
502
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
373
503
  }
374
- function pop(heap) {
375
- if (0 === heap.length) return null;
376
- var first = heap[0], last = heap.pop();
377
- if (last !== first) {
378
- heap[0] = last;
379
- a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
380
- var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
381
- if (0 > compare(left, last))
382
- rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
383
- else if (rightIndex < length && 0 > compare(right, last))
384
- heap[index] = right, heap[rightIndex] = last, index = rightIndex;
385
- else break a;
386
- }
387
- }
388
- return first;
504
+ function Component(props, context, updater) {
505
+ this.props = props;
506
+ this.context = context;
507
+ this.refs = emptyObject;
508
+ this.updater = updater || ReactNoopUpdateQueue;
389
509
  }
390
- function compare(a, b) {
391
- var diff = a.sortIndex - b.sortIndex;
392
- return 0 !== diff ? diff : a.id - b.id;
510
+ function ComponentDummy() {
393
511
  }
394
- function advanceTimers(currentTime) {
395
- for (var timer = peek(timerQueue); null !== timer; ) {
396
- if (null === timer.callback) pop(timerQueue);
397
- else if (timer.startTime <= currentTime)
398
- pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
399
- else break;
400
- timer = peek(timerQueue);
512
+ function PureComponent(props, context, updater) {
513
+ this.props = props;
514
+ this.context = context;
515
+ this.refs = emptyObject;
516
+ this.updater = updater || ReactNoopUpdateQueue;
517
+ }
518
+ function testStringCoercion(value) {
519
+ return "" + value;
520
+ }
521
+ function checkKeyStringCoercion(value) {
522
+ try {
523
+ testStringCoercion(value);
524
+ var JSCompiler_inline_result = false;
525
+ } catch (e) {
526
+ JSCompiler_inline_result = true;
527
+ }
528
+ if (JSCompiler_inline_result) {
529
+ JSCompiler_inline_result = console;
530
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
531
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
532
+ JSCompiler_temp_const.call(
533
+ JSCompiler_inline_result,
534
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
535
+ JSCompiler_inline_result$jscomp$0
536
+ );
537
+ return testStringCoercion(value);
401
538
  }
402
539
  }
403
- function handleTimeout(currentTime) {
404
- isHostTimeoutScheduled = false;
405
- advanceTimers(currentTime);
406
- if (!isHostCallbackScheduled)
407
- if (null !== peek(taskQueue))
408
- isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
409
- else {
410
- var firstTimer = peek(timerQueue);
411
- null !== firstTimer && requestHostTimeout(
412
- handleTimeout,
413
- firstTimer.startTime - currentTime
414
- );
540
+ function getComponentNameFromType(type) {
541
+ if (null == type) return null;
542
+ if ("function" === typeof type)
543
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
544
+ if ("string" === typeof type) return type;
545
+ switch (type) {
546
+ case REACT_FRAGMENT_TYPE:
547
+ return "Fragment";
548
+ case REACT_PROFILER_TYPE:
549
+ return "Profiler";
550
+ case REACT_STRICT_MODE_TYPE:
551
+ return "StrictMode";
552
+ case REACT_SUSPENSE_TYPE:
553
+ return "Suspense";
554
+ case REACT_SUSPENSE_LIST_TYPE:
555
+ return "SuspenseList";
556
+ case REACT_ACTIVITY_TYPE:
557
+ return "Activity";
558
+ }
559
+ if ("object" === typeof type)
560
+ switch ("number" === typeof type.tag && console.error(
561
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
562
+ ), type.$$typeof) {
563
+ case REACT_PORTAL_TYPE:
564
+ return "Portal";
565
+ case REACT_CONTEXT_TYPE:
566
+ return (type.displayName || "Context") + ".Provider";
567
+ case REACT_CONSUMER_TYPE:
568
+ return (type._context.displayName || "Context") + ".Consumer";
569
+ case REACT_FORWARD_REF_TYPE:
570
+ var innerType = type.render;
571
+ type = type.displayName;
572
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
573
+ return type;
574
+ case REACT_MEMO_TYPE:
575
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
576
+ case REACT_LAZY_TYPE:
577
+ innerType = type._payload;
578
+ type = type._init;
579
+ try {
580
+ return getComponentNameFromType(type(innerType));
581
+ } catch (x) {
582
+ }
415
583
  }
584
+ return null;
416
585
  }
417
- function shouldYieldToHost() {
418
- return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
586
+ function getTaskName(type) {
587
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
588
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
589
+ return "<...>";
590
+ try {
591
+ var name = getComponentNameFromType(type);
592
+ return name ? "<" + name + ">" : "<...>";
593
+ } catch (x) {
594
+ return "<...>";
595
+ }
419
596
  }
420
- function requestHostTimeout(callback, ms) {
421
- taskTimeoutID = localSetTimeout(function() {
422
- callback(exports.unstable_now());
423
- }, ms);
597
+ function getOwner() {
598
+ var dispatcher = ReactSharedInternals.A;
599
+ return null === dispatcher ? null : dispatcher.getOwner();
424
600
  }
425
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
426
- exports.unstable_now = void 0;
427
- if ("object" === typeof performance && "function" === typeof performance.now) {
428
- var localPerformance = performance;
429
- exports.unstable_now = function() {
430
- return localPerformance.now();
431
- };
432
- } else {
433
- var localDate = Date, initialTime = localDate.now();
434
- exports.unstable_now = function() {
435
- return localDate.now() - initialTime;
436
- };
601
+ function UnknownOwner() {
602
+ return Error("react-stack-top-frame");
437
603
  }
438
- var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
439
- if ("function" === typeof localSetImmediate)
440
- var schedulePerformWorkUntilDeadline = function() {
441
- localSetImmediate(performWorkUntilDeadline);
442
- };
443
- else if ("undefined" !== typeof MessageChannel) {
444
- var channel = new MessageChannel(), port = channel.port2;
445
- channel.port1.onmessage = performWorkUntilDeadline;
446
- schedulePerformWorkUntilDeadline = function() {
447
- port.postMessage(null);
448
- };
449
- } else
450
- schedulePerformWorkUntilDeadline = function() {
451
- localSetTimeout(performWorkUntilDeadline, 0);
452
- };
453
- exports.unstable_IdlePriority = 5;
454
- exports.unstable_ImmediatePriority = 1;
455
- exports.unstable_LowPriority = 4;
456
- exports.unstable_NormalPriority = 3;
457
- exports.unstable_Profiling = null;
458
- exports.unstable_UserBlockingPriority = 2;
459
- exports.unstable_cancelCallback = function(task) {
460
- task.callback = null;
461
- };
462
- exports.unstable_forceFrameRate = function(fps) {
463
- 0 > fps || 125 < fps ? console.error(
464
- "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
465
- ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
466
- };
467
- exports.unstable_getCurrentPriorityLevel = function() {
468
- return currentPriorityLevel;
469
- };
470
- exports.unstable_next = function(eventHandler) {
471
- switch (currentPriorityLevel) {
472
- case 1:
473
- case 2:
474
- case 3:
475
- var priorityLevel = 3;
476
- break;
477
- default:
478
- priorityLevel = currentPriorityLevel;
479
- }
480
- var previousPriorityLevel = currentPriorityLevel;
481
- currentPriorityLevel = priorityLevel;
482
- try {
483
- return eventHandler();
484
- } finally {
485
- currentPriorityLevel = previousPriorityLevel;
486
- }
487
- };
488
- exports.unstable_requestPaint = function() {
489
- needsPaint = true;
490
- };
491
- exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
492
- switch (priorityLevel) {
493
- case 1:
494
- case 2:
495
- case 3:
496
- case 4:
497
- case 5:
498
- break;
499
- default:
500
- priorityLevel = 3;
501
- }
502
- var previousPriorityLevel = currentPriorityLevel;
503
- currentPriorityLevel = priorityLevel;
504
- try {
505
- return eventHandler();
506
- } finally {
507
- currentPriorityLevel = previousPriorityLevel;
604
+ function hasValidKey(config) {
605
+ if (hasOwnProperty.call(config, "key")) {
606
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
607
+ if (getter && getter.isReactWarning) return false;
508
608
  }
509
- };
510
- exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
511
- var currentTime = exports.unstable_now();
512
- "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
513
- switch (priorityLevel) {
514
- case 1:
515
- var timeout = -1;
516
- break;
517
- case 2:
518
- timeout = 250;
519
- break;
520
- case 5:
521
- timeout = 1073741823;
522
- break;
523
- case 4:
524
- timeout = 1e4;
525
- break;
526
- default:
527
- timeout = 5e3;
609
+ return void 0 !== config.key;
610
+ }
611
+ function defineKeyPropWarningGetter(props, displayName) {
612
+ function warnAboutAccessingKey() {
613
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
614
+ "%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)",
615
+ displayName
616
+ ));
528
617
  }
529
- timeout = options + timeout;
530
- priorityLevel = {
531
- id: taskIdCounter++,
532
- callback,
533
- priorityLevel,
534
- startTime: options,
535
- expirationTime: timeout,
536
- sortIndex: -1
537
- };
538
- options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
539
- return priorityLevel;
540
- };
541
- exports.unstable_shouldYield = shouldYieldToHost;
542
- exports.unstable_wrapCallback = function(callback) {
543
- var parentPriorityLevel = currentPriorityLevel;
544
- return function() {
545
- var previousPriorityLevel = currentPriorityLevel;
546
- currentPriorityLevel = parentPriorityLevel;
547
- try {
548
- return callback.apply(this, arguments);
549
- } finally {
550
- currentPriorityLevel = previousPriorityLevel;
551
- }
552
- };
553
- };
554
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
555
- }();
556
- }
557
- });
558
-
559
- // ../../node_modules/scheduler/index.js
560
- var require_scheduler = __commonJS({
561
- "../../node_modules/scheduler/index.js"(exports, module) {
562
- "use strict";
563
- if (process.env.NODE_ENV === "production") {
564
- module.exports = require_scheduler_production();
565
- } else {
566
- module.exports = require_scheduler_development();
567
- }
568
- }
569
- });
570
-
571
- // ../../node_modules/react/cjs/react.production.js
572
- var require_react_production = __commonJS({
573
- "../../node_modules/react/cjs/react.production.js"(exports) {
574
- "use strict";
575
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
576
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
577
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
578
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
579
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
580
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
581
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
582
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
583
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
584
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
585
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
586
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
587
- function getIteratorFn(maybeIterable) {
588
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
589
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
590
- return "function" === typeof maybeIterable ? maybeIterable : null;
591
- }
592
- var ReactNoopUpdateQueue = {
593
- isMounted: function() {
594
- return false;
595
- },
596
- enqueueForceUpdate: function() {
597
- },
598
- enqueueReplaceState: function() {
599
- },
600
- enqueueSetState: function() {
618
+ warnAboutAccessingKey.isReactWarning = true;
619
+ Object.defineProperty(props, "key", {
620
+ get: warnAboutAccessingKey,
621
+ configurable: true
622
+ });
601
623
  }
602
- };
603
- var assign = Object.assign;
604
- var emptyObject = {};
605
- function Component(props, context, updater) {
606
- this.props = props;
607
- this.context = context;
608
- this.refs = emptyObject;
609
- this.updater = updater || ReactNoopUpdateQueue;
610
- }
611
- Component.prototype.isReactComponent = {};
612
- Component.prototype.setState = function(partialState, callback) {
613
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
614
- throw Error(
615
- "takes an object of state variables to update or a function which returns an object of state variables."
616
- );
617
- this.updater.enqueueSetState(this, partialState, callback, "setState");
618
- };
619
- Component.prototype.forceUpdate = function(callback) {
620
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
621
- };
622
- function ComponentDummy() {
623
- }
624
- ComponentDummy.prototype = Component.prototype;
625
- function PureComponent(props, context, updater) {
626
- this.props = props;
627
- this.context = context;
628
- this.refs = emptyObject;
629
- this.updater = updater || ReactNoopUpdateQueue;
630
- }
631
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
632
- pureComponentPrototype.constructor = PureComponent;
633
- assign(pureComponentPrototype, Component.prototype);
634
- pureComponentPrototype.isPureReactComponent = true;
635
- var isArrayImpl = Array.isArray;
636
- var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
637
- var hasOwnProperty = Object.prototype.hasOwnProperty;
638
- function ReactElement(type, key, self, source, owner, props) {
639
- self = props.ref;
640
- return {
641
- $$typeof: REACT_ELEMENT_TYPE,
642
- type,
643
- key,
644
- ref: void 0 !== self ? self : null,
645
- props
646
- };
647
- }
648
- function cloneAndReplaceKey(oldElement, newKey) {
649
- return ReactElement(
650
- oldElement.type,
651
- newKey,
652
- void 0,
653
- void 0,
654
- void 0,
655
- oldElement.props
656
- );
657
- }
658
- function isValidElement(object) {
659
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
660
- }
661
- function escape(key) {
662
- var escaperLookup = { "=": "=0", ":": "=2" };
663
- return "$" + key.replace(/[=:]/g, function(match) {
664
- return escaperLookup[match];
665
- });
666
- }
667
- var userProvidedKeyEscapeRegex = /\/+/g;
668
- function getElementKey(element, index) {
669
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
670
- }
671
- function noop$1() {
672
- }
673
- function resolveThenable(thenable) {
674
- switch (thenable.status) {
675
- case "fulfilled":
676
- return thenable.value;
677
- case "rejected":
678
- throw thenable.reason;
679
- default:
680
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
681
- function(fulfilledValue) {
682
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
683
- },
684
- function(error) {
685
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
686
- }
687
- )), thenable.status) {
688
- case "fulfilled":
689
- return thenable.value;
690
- case "rejected":
691
- throw thenable.reason;
692
- }
624
+ function elementRefGetterWithDeprecationWarning() {
625
+ var componentName = getComponentNameFromType(this.type);
626
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
627
+ "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."
628
+ ));
629
+ componentName = this.props.ref;
630
+ return void 0 !== componentName ? componentName : null;
693
631
  }
694
- throw thenable;
695
- }
696
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
697
- var type = typeof children;
698
- if ("undefined" === type || "boolean" === type) children = null;
699
- var invokeCallback = false;
700
- if (null === children) invokeCallback = true;
701
- else
702
- switch (type) {
703
- case "bigint":
704
- case "string":
705
- case "number":
706
- invokeCallback = true;
707
- break;
708
- case "object":
709
- switch (children.$$typeof) {
710
- case REACT_ELEMENT_TYPE:
711
- case REACT_PORTAL_TYPE:
712
- invokeCallback = true;
713
- break;
714
- case REACT_LAZY_TYPE:
715
- return invokeCallback = children._init, mapIntoArray(
716
- invokeCallback(children._payload),
717
- array,
718
- escapedPrefix,
719
- nameSoFar,
720
- callback
721
- );
722
- }
723
- }
724
- if (invokeCallback)
725
- 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) {
726
- return c;
727
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
728
- callback,
729
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
730
- userProvidedKeyEscapeRegex,
731
- "$&/"
732
- ) + "/") + invokeCallback
733
- )), array.push(callback)), 1;
734
- invokeCallback = 0;
735
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
736
- if (isArrayImpl(children))
737
- for (var i = 0; i < children.length; i++)
738
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
739
- nameSoFar,
740
- array,
741
- escapedPrefix,
742
- type,
743
- callback
744
- );
745
- else if (i = getIteratorFn(children), "function" === typeof i)
746
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
747
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
748
- nameSoFar,
749
- array,
750
- escapedPrefix,
751
- type,
752
- callback
753
- );
754
- else if ("object" === type) {
755
- if ("function" === typeof children.then)
756
- return mapIntoArray(
757
- resolveThenable(children),
758
- array,
759
- escapedPrefix,
760
- nameSoFar,
761
- callback
762
- );
763
- array = String(children);
764
- throw Error(
765
- "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."
766
- );
632
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
633
+ self = props.ref;
634
+ type = {
635
+ $$typeof: REACT_ELEMENT_TYPE,
636
+ type,
637
+ key,
638
+ props,
639
+ _owner: owner
640
+ };
641
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
642
+ enumerable: false,
643
+ get: elementRefGetterWithDeprecationWarning
644
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
645
+ type._store = {};
646
+ Object.defineProperty(type._store, "validated", {
647
+ configurable: false,
648
+ enumerable: false,
649
+ writable: true,
650
+ value: 0
651
+ });
652
+ Object.defineProperty(type, "_debugInfo", {
653
+ configurable: false,
654
+ enumerable: false,
655
+ writable: true,
656
+ value: null
657
+ });
658
+ Object.defineProperty(type, "_debugStack", {
659
+ configurable: false,
660
+ enumerable: false,
661
+ writable: true,
662
+ value: debugStack
663
+ });
664
+ Object.defineProperty(type, "_debugTask", {
665
+ configurable: false,
666
+ enumerable: false,
667
+ writable: true,
668
+ value: debugTask
669
+ });
670
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
671
+ return type;
767
672
  }
768
- return invokeCallback;
769
- }
770
- function mapChildren(children, func, context) {
771
- if (null == children) return children;
772
- var result = [], count = 0;
773
- mapIntoArray(children, result, "", "", function(child) {
774
- return func.call(context, child, count++);
775
- });
776
- return result;
777
- }
778
- function lazyInitializer(payload) {
779
- if (-1 === payload._status) {
780
- var ctor = payload._result;
781
- ctor = ctor();
782
- ctor.then(
783
- function(moduleObject) {
784
- if (0 === payload._status || -1 === payload._status)
785
- payload._status = 1, payload._result = moduleObject;
786
- },
787
- function(error) {
788
- if (0 === payload._status || -1 === payload._status)
789
- payload._status = 2, payload._result = error;
790
- }
673
+ function cloneAndReplaceKey(oldElement, newKey) {
674
+ newKey = ReactElement(
675
+ oldElement.type,
676
+ newKey,
677
+ void 0,
678
+ void 0,
679
+ oldElement._owner,
680
+ oldElement.props,
681
+ oldElement._debugStack,
682
+ oldElement._debugTask
791
683
  );
792
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
684
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
685
+ return newKey;
793
686
  }
794
- if (1 === payload._status) return payload._result.default;
795
- throw payload._result;
796
- }
797
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
798
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
799
- var event = new window.ErrorEvent("error", {
800
- bubbles: true,
801
- cancelable: true,
802
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
803
- error
804
- });
805
- if (!window.dispatchEvent(event)) return;
806
- } else if ("object" === typeof process && "function" === typeof process.emit) {
807
- process.emit("uncaughtException", error);
808
- return;
687
+ function isValidElement(object) {
688
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
809
689
  }
810
- console.error(error);
811
- };
812
- function noop() {
813
- }
814
- exports.Children = {
815
- map: mapChildren,
816
- forEach: function(children, forEachFunc, forEachContext) {
817
- mapChildren(
818
- children,
819
- function() {
820
- forEachFunc.apply(this, arguments);
821
- },
822
- forEachContext
823
- );
824
- },
825
- count: function(children) {
826
- var n = 0;
827
- mapChildren(children, function() {
828
- n++;
690
+ function escape(key) {
691
+ var escaperLookup = { "=": "=0", ":": "=2" };
692
+ return "$" + key.replace(/[=:]/g, function(match) {
693
+ return escaperLookup[match];
829
694
  });
830
- return n;
831
- },
832
- toArray: function(children) {
833
- return mapChildren(children, function(child) {
834
- return child;
835
- }) || [];
836
- },
837
- only: function(children) {
838
- if (!isValidElement(children))
839
- throw Error(
840
- "React.Children.only expected to receive a single React element child."
841
- );
842
- return children;
843
- }
844
- };
845
- exports.Component = Component;
846
- exports.Fragment = REACT_FRAGMENT_TYPE;
847
- exports.Profiler = REACT_PROFILER_TYPE;
848
- exports.PureComponent = PureComponent;
849
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
850
- exports.Suspense = REACT_SUSPENSE_TYPE;
851
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
852
- exports.__COMPILER_RUNTIME = {
853
- __proto__: null,
854
- c: function(size) {
855
- return ReactSharedInternals.H.useMemoCache(size);
856
695
  }
857
- };
858
- exports.cache = function(fn) {
859
- return function() {
860
- return fn.apply(null, arguments);
861
- };
862
- };
863
- exports.cloneElement = function(element, config, children) {
864
- if (null === element || void 0 === element)
865
- throw Error(
866
- "The argument must be a React element, but you passed " + element + "."
867
- );
868
- var props = assign({}, element.props), key = element.key, owner = void 0;
869
- if (null != config)
870
- for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
871
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
872
- var propName = arguments.length - 2;
873
- if (1 === propName) props.children = children;
874
- else if (1 < propName) {
875
- for (var childArray = Array(propName), i = 0; i < propName; i++)
876
- childArray[i] = arguments[i + 2];
877
- props.children = childArray;
696
+ function getElementKey(element, index) {
697
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
878
698
  }
879
- return ReactElement(element.type, key, void 0, void 0, owner, props);
880
- };
881
- exports.createContext = function(defaultValue) {
882
- defaultValue = {
883
- $$typeof: REACT_CONTEXT_TYPE,
884
- _currentValue: defaultValue,
885
- _currentValue2: defaultValue,
886
- _threadCount: 0,
887
- Provider: null,
888
- Consumer: null
889
- };
890
- defaultValue.Provider = defaultValue;
891
- defaultValue.Consumer = {
892
- $$typeof: REACT_CONSUMER_TYPE,
893
- _context: defaultValue
894
- };
895
- return defaultValue;
896
- };
897
- exports.createElement = function(type, config, children) {
898
- var propName, props = {}, key = null;
899
- if (null != config)
900
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
901
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
902
- var childrenLength = arguments.length - 2;
903
- if (1 === childrenLength) props.children = children;
904
- else if (1 < childrenLength) {
905
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
906
- childArray[i] = arguments[i + 2];
907
- props.children = childArray;
699
+ function noop$1() {
908
700
  }
909
- if (type && type.defaultProps)
910
- for (propName in childrenLength = type.defaultProps, childrenLength)
911
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
912
- return ReactElement(type, key, void 0, void 0, null, props);
913
- };
914
- exports.createRef = function() {
915
- return { current: null };
916
- };
917
- exports.forwardRef = function(render) {
918
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
919
- };
920
- exports.isValidElement = isValidElement;
921
- exports.lazy = function(ctor) {
922
- return {
923
- $$typeof: REACT_LAZY_TYPE,
924
- _payload: { _status: -1, _result: ctor },
925
- _init: lazyInitializer
926
- };
927
- };
928
- exports.memo = function(type, compare) {
929
- return {
930
- $$typeof: REACT_MEMO_TYPE,
931
- type,
932
- compare: void 0 === compare ? null : compare
933
- };
934
- };
935
- exports.startTransition = function(scope) {
936
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
937
- ReactSharedInternals.T = currentTransition;
938
- try {
939
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
940
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
941
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
942
- } catch (error) {
943
- reportGlobalError(error);
944
- } finally {
945
- ReactSharedInternals.T = prevTransition;
701
+ function resolveThenable(thenable) {
702
+ switch (thenable.status) {
703
+ case "fulfilled":
704
+ return thenable.value;
705
+ case "rejected":
706
+ throw thenable.reason;
707
+ default:
708
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
709
+ function(fulfilledValue) {
710
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
711
+ },
712
+ function(error) {
713
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
714
+ }
715
+ )), thenable.status) {
716
+ case "fulfilled":
717
+ return thenable.value;
718
+ case "rejected":
719
+ throw thenable.reason;
720
+ }
721
+ }
722
+ throw thenable;
946
723
  }
947
- };
948
- exports.unstable_useCacheRefresh = function() {
949
- return ReactSharedInternals.H.useCacheRefresh();
950
- };
951
- exports.use = function(usable) {
952
- return ReactSharedInternals.H.use(usable);
953
- };
954
- exports.useActionState = function(action, initialState, permalink) {
955
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
956
- };
957
- exports.useCallback = function(callback, deps) {
958
- return ReactSharedInternals.H.useCallback(callback, deps);
959
- };
960
- exports.useContext = function(Context) {
961
- return ReactSharedInternals.H.useContext(Context);
962
- };
963
- exports.useDebugValue = function() {
964
- };
965
- exports.useDeferredValue = function(value, initialValue) {
966
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
967
- };
968
- exports.useEffect = function(create, createDeps, update) {
969
- var dispatcher = ReactSharedInternals.H;
970
- if ("function" === typeof update)
971
- throw Error(
972
- "useEffect CRUD overload is not enabled in this build of React."
973
- );
974
- return dispatcher.useEffect(create, createDeps);
975
- };
976
- exports.useId = function() {
977
- return ReactSharedInternals.H.useId();
978
- };
979
- exports.useImperativeHandle = function(ref, create, deps) {
980
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
981
- };
982
- exports.useInsertionEffect = function(create, deps) {
983
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
984
- };
985
- exports.useLayoutEffect = function(create, deps) {
986
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
987
- };
988
- exports.useMemo = function(create, deps) {
989
- return ReactSharedInternals.H.useMemo(create, deps);
990
- };
991
- exports.useOptimistic = function(passthrough, reducer) {
992
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
993
- };
994
- exports.useReducer = function(reducer, initialArg, init) {
995
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
996
- };
997
- exports.useRef = function(initialValue) {
998
- return ReactSharedInternals.H.useRef(initialValue);
999
- };
1000
- exports.useState = function(initialState) {
1001
- return ReactSharedInternals.H.useState(initialState);
1002
- };
1003
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1004
- return ReactSharedInternals.H.useSyncExternalStore(
1005
- subscribe,
1006
- getSnapshot,
1007
- getServerSnapshot
1008
- );
1009
- };
1010
- exports.useTransition = function() {
1011
- return ReactSharedInternals.H.useTransition();
1012
- };
1013
- exports.version = "19.1.0";
1014
- }
1015
- });
1016
-
1017
- // ../../node_modules/react/cjs/react.development.js
1018
- var require_react_development = __commonJS({
1019
- "../../node_modules/react/cjs/react.development.js"(exports, module) {
1020
- "use strict";
1021
- "production" !== process.env.NODE_ENV && function() {
1022
- function defineDeprecationWarning(methodName, info) {
1023
- Object.defineProperty(Component.prototype, methodName, {
1024
- get: function() {
1025
- console.warn(
1026
- "%s(...) is deprecated in plain JavaScript React classes. %s",
1027
- info[0],
1028
- info[1]
1029
- );
724
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
725
+ var type = typeof children;
726
+ if ("undefined" === type || "boolean" === type) children = null;
727
+ var invokeCallback = false;
728
+ if (null === children) invokeCallback = true;
729
+ else
730
+ switch (type) {
731
+ case "bigint":
732
+ case "string":
733
+ case "number":
734
+ invokeCallback = true;
735
+ break;
736
+ case "object":
737
+ switch (children.$$typeof) {
738
+ case REACT_ELEMENT_TYPE:
739
+ case REACT_PORTAL_TYPE:
740
+ invokeCallback = true;
741
+ break;
742
+ case REACT_LAZY_TYPE:
743
+ return invokeCallback = children._init, mapIntoArray(
744
+ invokeCallback(children._payload),
745
+ array,
746
+ escapedPrefix,
747
+ nameSoFar,
748
+ callback
749
+ );
750
+ }
1030
751
  }
752
+ if (invokeCallback) {
753
+ invokeCallback = children;
754
+ callback = callback(invokeCallback);
755
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
756
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
757
+ return c;
758
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
759
+ callback,
760
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
761
+ userProvidedKeyEscapeRegex,
762
+ "$&/"
763
+ ) + "/") + childKey
764
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
765
+ return 1;
766
+ }
767
+ invokeCallback = 0;
768
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
769
+ if (isArrayImpl(children))
770
+ for (var i = 0; i < children.length; i++)
771
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
772
+ nameSoFar,
773
+ array,
774
+ escapedPrefix,
775
+ type,
776
+ callback
777
+ );
778
+ else if (i = getIteratorFn(children), "function" === typeof i)
779
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
780
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
781
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
782
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
783
+ nameSoFar,
784
+ array,
785
+ escapedPrefix,
786
+ type,
787
+ callback
788
+ );
789
+ else if ("object" === type) {
790
+ if ("function" === typeof children.then)
791
+ return mapIntoArray(
792
+ resolveThenable(children),
793
+ array,
794
+ escapedPrefix,
795
+ nameSoFar,
796
+ callback
797
+ );
798
+ array = String(children);
799
+ throw Error(
800
+ "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."
801
+ );
802
+ }
803
+ return invokeCallback;
804
+ }
805
+ function mapChildren(children, func, context) {
806
+ if (null == children) return children;
807
+ var result = [], count = 0;
808
+ mapIntoArray(children, result, "", "", function(child) {
809
+ return func.call(context, child, count++);
1031
810
  });
811
+ return result;
1032
812
  }
1033
- function getIteratorFn(maybeIterable) {
1034
- if (null === maybeIterable || "object" !== typeof maybeIterable)
1035
- return null;
1036
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
1037
- return "function" === typeof maybeIterable ? maybeIterable : null;
813
+ function lazyInitializer(payload) {
814
+ if (-1 === payload._status) {
815
+ var ctor = payload._result;
816
+ ctor = ctor();
817
+ ctor.then(
818
+ function(moduleObject) {
819
+ if (0 === payload._status || -1 === payload._status)
820
+ payload._status = 1, payload._result = moduleObject;
821
+ },
822
+ function(error) {
823
+ if (0 === payload._status || -1 === payload._status)
824
+ payload._status = 2, payload._result = error;
825
+ }
826
+ );
827
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
828
+ }
829
+ if (1 === payload._status)
830
+ return ctor = payload._result, void 0 === ctor && console.error(
831
+ "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?",
832
+ ctor
833
+ ), "default" in ctor || console.error(
834
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
835
+ ctor
836
+ ), ctor.default;
837
+ throw payload._result;
1038
838
  }
1039
- function warnNoop(publicInstance, callerName) {
1040
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
1041
- var warningKey = publicInstance + "." + callerName;
1042
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
1043
- "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.",
1044
- callerName,
1045
- publicInstance
1046
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
839
+ function resolveDispatcher() {
840
+ var dispatcher = ReactSharedInternals.H;
841
+ null === dispatcher && console.error(
842
+ "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."
843
+ );
844
+ return dispatcher;
1047
845
  }
1048
- function Component(props, context, updater) {
1049
- this.props = props;
1050
- this.context = context;
1051
- this.refs = emptyObject;
1052
- this.updater = updater || ReactNoopUpdateQueue;
846
+ function noop() {
1053
847
  }
1054
- function ComponentDummy() {
848
+ function enqueueTask(task) {
849
+ if (null === enqueueTaskImpl)
850
+ try {
851
+ var requireString = ("require" + Math.random()).slice(0, 7);
852
+ enqueueTaskImpl = (module && module[requireString]).call(
853
+ module,
854
+ "timers"
855
+ ).setImmediate;
856
+ } catch (_err) {
857
+ enqueueTaskImpl = function(callback) {
858
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
859
+ "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."
860
+ ));
861
+ var channel = new MessageChannel();
862
+ channel.port1.onmessage = callback;
863
+ channel.port2.postMessage(void 0);
864
+ };
865
+ }
866
+ return enqueueTaskImpl(task);
1055
867
  }
1056
- function PureComponent(props, context, updater) {
1057
- this.props = props;
1058
- this.context = context;
1059
- this.refs = emptyObject;
1060
- this.updater = updater || ReactNoopUpdateQueue;
868
+ function aggregateErrors(errors) {
869
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
1061
870
  }
1062
- function testStringCoercion(value) {
1063
- return "" + value;
871
+ function popActScope(prevActQueue, prevActScopeDepth) {
872
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
873
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
874
+ );
875
+ actScopeDepth = prevActScopeDepth;
1064
876
  }
1065
- function checkKeyStringCoercion(value) {
1066
- try {
1067
- testStringCoercion(value);
1068
- var JSCompiler_inline_result = false;
1069
- } catch (e) {
1070
- JSCompiler_inline_result = true;
1071
- }
1072
- if (JSCompiler_inline_result) {
1073
- JSCompiler_inline_result = console;
1074
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
1075
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1076
- JSCompiler_temp_const.call(
1077
- JSCompiler_inline_result,
1078
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1079
- JSCompiler_inline_result$jscomp$0
1080
- );
1081
- return testStringCoercion(value);
877
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
878
+ var queue = ReactSharedInternals.actQueue;
879
+ if (null !== queue)
880
+ if (0 !== queue.length)
881
+ try {
882
+ flushActQueue(queue);
883
+ enqueueTask(function() {
884
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
885
+ });
886
+ return;
887
+ } catch (error) {
888
+ ReactSharedInternals.thrownErrors.push(error);
889
+ }
890
+ else ReactSharedInternals.actQueue = null;
891
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
892
+ }
893
+ function flushActQueue(queue) {
894
+ if (!isFlushing) {
895
+ isFlushing = true;
896
+ var i = 0;
897
+ try {
898
+ for (; i < queue.length; i++) {
899
+ var callback = queue[i];
900
+ do {
901
+ ReactSharedInternals.didUsePromise = false;
902
+ var continuation = callback(false);
903
+ if (null !== continuation) {
904
+ if (ReactSharedInternals.didUsePromise) {
905
+ queue[i] = callback;
906
+ queue.splice(0, i);
907
+ return;
908
+ }
909
+ callback = continuation;
910
+ } else break;
911
+ } while (1);
912
+ }
913
+ queue.length = 0;
914
+ } catch (error) {
915
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
916
+ } finally {
917
+ isFlushing = false;
918
+ }
1082
919
  }
1083
920
  }
1084
- function getComponentNameFromType(type) {
1085
- if (null == type) return null;
1086
- if ("function" === typeof type)
1087
- return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1088
- if ("string" === typeof type) return type;
1089
- switch (type) {
1090
- case REACT_FRAGMENT_TYPE:
1091
- return "Fragment";
1092
- case REACT_PROFILER_TYPE:
1093
- return "Profiler";
1094
- case REACT_STRICT_MODE_TYPE:
1095
- return "StrictMode";
1096
- case REACT_SUSPENSE_TYPE:
1097
- return "Suspense";
1098
- case REACT_SUSPENSE_LIST_TYPE:
1099
- return "SuspenseList";
1100
- case REACT_ACTIVITY_TYPE:
1101
- return "Activity";
921
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
922
+ 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");
923
+ Symbol.for("react.provider");
924
+ 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 = {
925
+ isMounted: function() {
926
+ return false;
927
+ },
928
+ enqueueForceUpdate: function(publicInstance) {
929
+ warnNoop(publicInstance, "forceUpdate");
930
+ },
931
+ enqueueReplaceState: function(publicInstance) {
932
+ warnNoop(publicInstance, "replaceState");
933
+ },
934
+ enqueueSetState: function(publicInstance) {
935
+ warnNoop(publicInstance, "setState");
1102
936
  }
1103
- if ("object" === typeof type)
1104
- switch ("number" === typeof type.tag && console.error(
1105
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1106
- ), type.$$typeof) {
1107
- case REACT_PORTAL_TYPE:
1108
- return "Portal";
1109
- case REACT_CONTEXT_TYPE:
1110
- return (type.displayName || "Context") + ".Provider";
1111
- case REACT_CONSUMER_TYPE:
1112
- return (type._context.displayName || "Context") + ".Consumer";
1113
- case REACT_FORWARD_REF_TYPE:
1114
- var innerType = type.render;
1115
- type = type.displayName;
1116
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1117
- return type;
1118
- case REACT_MEMO_TYPE:
1119
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1120
- case REACT_LAZY_TYPE:
1121
- innerType = type._payload;
1122
- type = type._init;
1123
- try {
1124
- return getComponentNameFromType(type(innerType));
1125
- } catch (x) {
1126
- }
1127
- }
937
+ }, assign = Object.assign, emptyObject = {};
938
+ Object.freeze(emptyObject);
939
+ Component.prototype.isReactComponent = {};
940
+ Component.prototype.setState = function(partialState, callback) {
941
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
942
+ throw Error(
943
+ "takes an object of state variables to update or a function which returns an object of state variables."
944
+ );
945
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
946
+ };
947
+ Component.prototype.forceUpdate = function(callback) {
948
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
949
+ };
950
+ var deprecatedAPIs = {
951
+ isMounted: [
952
+ "isMounted",
953
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
954
+ ],
955
+ replaceState: [
956
+ "replaceState",
957
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
958
+ ]
959
+ }, fnName;
960
+ for (fnName in deprecatedAPIs)
961
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
962
+ ComponentDummy.prototype = Component.prototype;
963
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
964
+ deprecatedAPIs.constructor = PureComponent;
965
+ assign(deprecatedAPIs, Component.prototype);
966
+ deprecatedAPIs.isPureReactComponent = true;
967
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
968
+ H: null,
969
+ A: null,
970
+ T: null,
971
+ S: null,
972
+ V: null,
973
+ actQueue: null,
974
+ isBatchingLegacy: false,
975
+ didScheduleLegacyUpdate: false,
976
+ didUsePromise: false,
977
+ thrownErrors: [],
978
+ getCurrentStack: null,
979
+ recentlyCreatedOwnerStacks: 0
980
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1128
981
  return null;
1129
- }
1130
- function getTaskName(type) {
1131
- if (type === REACT_FRAGMENT_TYPE) return "<>";
1132
- if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1133
- return "<...>";
982
+ };
983
+ deprecatedAPIs = {
984
+ "react-stack-bottom-frame": function(callStackForError) {
985
+ return callStackForError();
986
+ }
987
+ };
988
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
989
+ var didWarnAboutElementRef = {};
990
+ var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
991
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
992
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
993
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
994
+ var event = new window.ErrorEvent("error", {
995
+ bubbles: true,
996
+ cancelable: true,
997
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
998
+ error
999
+ });
1000
+ if (!window.dispatchEvent(event)) return;
1001
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1002
+ process.emit("uncaughtException", error);
1003
+ return;
1004
+ }
1005
+ console.error(error);
1006
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1007
+ queueMicrotask(function() {
1008
+ return queueMicrotask(callback);
1009
+ });
1010
+ } : enqueueTask;
1011
+ deprecatedAPIs = Object.freeze({
1012
+ __proto__: null,
1013
+ c: function(size) {
1014
+ return resolveDispatcher().useMemoCache(size);
1015
+ }
1016
+ });
1017
+ exports.Children = {
1018
+ map: mapChildren,
1019
+ forEach: function(children, forEachFunc, forEachContext) {
1020
+ mapChildren(
1021
+ children,
1022
+ function() {
1023
+ forEachFunc.apply(this, arguments);
1024
+ },
1025
+ forEachContext
1026
+ );
1027
+ },
1028
+ count: function(children) {
1029
+ var n = 0;
1030
+ mapChildren(children, function() {
1031
+ n++;
1032
+ });
1033
+ return n;
1034
+ },
1035
+ toArray: function(children) {
1036
+ return mapChildren(children, function(child) {
1037
+ return child;
1038
+ }) || [];
1039
+ },
1040
+ only: function(children) {
1041
+ if (!isValidElement(children))
1042
+ throw Error(
1043
+ "React.Children.only expected to receive a single React element child."
1044
+ );
1045
+ return children;
1046
+ }
1047
+ };
1048
+ exports.Component = Component;
1049
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1050
+ exports.Profiler = REACT_PROFILER_TYPE;
1051
+ exports.PureComponent = PureComponent;
1052
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1053
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1054
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1055
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1056
+ exports.act = function(callback) {
1057
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1058
+ actScopeDepth++;
1059
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1134
1060
  try {
1135
- var name = getComponentNameFromType(type);
1136
- return name ? "<" + name + ">" : "<...>";
1137
- } catch (x) {
1138
- return "<...>";
1061
+ var result = callback();
1062
+ } catch (error) {
1063
+ ReactSharedInternals.thrownErrors.push(error);
1139
1064
  }
1140
- }
1141
- function getOwner() {
1142
- var dispatcher = ReactSharedInternals.A;
1143
- return null === dispatcher ? null : dispatcher.getOwner();
1144
- }
1145
- function UnknownOwner() {
1146
- return Error("react-stack-top-frame");
1147
- }
1148
- function hasValidKey(config) {
1149
- if (hasOwnProperty.call(config, "key")) {
1150
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1151
- if (getter && getter.isReactWarning) return false;
1065
+ if (0 < ReactSharedInternals.thrownErrors.length)
1066
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1067
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1068
+ var thenable = result;
1069
+ queueSeveralMicrotasks(function() {
1070
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1071
+ "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 () => ...);"
1072
+ ));
1073
+ });
1074
+ return {
1075
+ then: function(resolve, reject) {
1076
+ didAwaitActCall = true;
1077
+ thenable.then(
1078
+ function(returnValue) {
1079
+ popActScope(prevActQueue, prevActScopeDepth);
1080
+ if (0 === prevActScopeDepth) {
1081
+ try {
1082
+ flushActQueue(queue), enqueueTask(function() {
1083
+ return recursivelyFlushAsyncActWork(
1084
+ returnValue,
1085
+ resolve,
1086
+ reject
1087
+ );
1088
+ });
1089
+ } catch (error$0) {
1090
+ ReactSharedInternals.thrownErrors.push(error$0);
1091
+ }
1092
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1093
+ var _thrownError = aggregateErrors(
1094
+ ReactSharedInternals.thrownErrors
1095
+ );
1096
+ ReactSharedInternals.thrownErrors.length = 0;
1097
+ reject(_thrownError);
1098
+ }
1099
+ } else resolve(returnValue);
1100
+ },
1101
+ function(error) {
1102
+ popActScope(prevActQueue, prevActScopeDepth);
1103
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1104
+ ReactSharedInternals.thrownErrors
1105
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1106
+ }
1107
+ );
1108
+ }
1109
+ };
1110
+ }
1111
+ var returnValue$jscomp$0 = result;
1112
+ popActScope(prevActQueue, prevActScopeDepth);
1113
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1114
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1115
+ "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(() => ...)"
1116
+ ));
1117
+ }), ReactSharedInternals.actQueue = null);
1118
+ if (0 < ReactSharedInternals.thrownErrors.length)
1119
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1120
+ return {
1121
+ then: function(resolve, reject) {
1122
+ didAwaitActCall = true;
1123
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1124
+ return recursivelyFlushAsyncActWork(
1125
+ returnValue$jscomp$0,
1126
+ resolve,
1127
+ reject
1128
+ );
1129
+ })) : resolve(returnValue$jscomp$0);
1130
+ }
1131
+ };
1132
+ };
1133
+ exports.cache = function(fn) {
1134
+ return function() {
1135
+ return fn.apply(null, arguments);
1136
+ };
1137
+ };
1138
+ exports.captureOwnerStack = function() {
1139
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1140
+ return null === getCurrentStack ? null : getCurrentStack();
1141
+ };
1142
+ exports.cloneElement = function(element, config, children) {
1143
+ if (null === element || void 0 === element)
1144
+ throw Error(
1145
+ "The argument must be a React element, but you passed " + element + "."
1146
+ );
1147
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1148
+ if (null != config) {
1149
+ var JSCompiler_inline_result;
1150
+ a: {
1151
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1152
+ config,
1153
+ "ref"
1154
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1155
+ JSCompiler_inline_result = false;
1156
+ break a;
1157
+ }
1158
+ JSCompiler_inline_result = void 0 !== config.ref;
1159
+ }
1160
+ JSCompiler_inline_result && (owner = getOwner());
1161
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1162
+ for (propName in config)
1163
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1152
1164
  }
1153
- return void 0 !== config.key;
1154
- }
1155
- function defineKeyPropWarningGetter(props, displayName) {
1156
- function warnAboutAccessingKey() {
1157
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1158
- "%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)",
1159
- displayName
1160
- ));
1165
+ var propName = arguments.length - 2;
1166
+ if (1 === propName) props.children = children;
1167
+ else if (1 < propName) {
1168
+ JSCompiler_inline_result = Array(propName);
1169
+ for (var i = 0; i < propName; i++)
1170
+ JSCompiler_inline_result[i] = arguments[i + 2];
1171
+ props.children = JSCompiler_inline_result;
1161
1172
  }
1162
- warnAboutAccessingKey.isReactWarning = true;
1163
- Object.defineProperty(props, "key", {
1164
- get: warnAboutAccessingKey,
1165
- configurable: true
1166
- });
1167
- }
1168
- function elementRefGetterWithDeprecationWarning() {
1169
- var componentName = getComponentNameFromType(this.type);
1170
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1171
- "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."
1172
- ));
1173
- componentName = this.props.ref;
1174
- return void 0 !== componentName ? componentName : null;
1175
- }
1176
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
1177
- self = props.ref;
1178
- type = {
1179
- $$typeof: REACT_ELEMENT_TYPE,
1180
- type,
1173
+ props = ReactElement(
1174
+ element.type,
1181
1175
  key,
1176
+ void 0,
1177
+ void 0,
1178
+ owner,
1182
1179
  props,
1183
- _owner: owner
1180
+ element._debugStack,
1181
+ element._debugTask
1182
+ );
1183
+ for (key = 2; key < arguments.length; key++)
1184
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1185
+ return props;
1186
+ };
1187
+ exports.createContext = function(defaultValue) {
1188
+ defaultValue = {
1189
+ $$typeof: REACT_CONTEXT_TYPE,
1190
+ _currentValue: defaultValue,
1191
+ _currentValue2: defaultValue,
1192
+ _threadCount: 0,
1193
+ Provider: null,
1194
+ Consumer: null
1184
1195
  };
1185
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
1186
- enumerable: false,
1187
- get: elementRefGetterWithDeprecationWarning
1188
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1189
- type._store = {};
1190
- Object.defineProperty(type._store, "validated", {
1191
- configurable: false,
1192
- enumerable: false,
1193
- writable: true,
1194
- value: 0
1195
- });
1196
- Object.defineProperty(type, "_debugInfo", {
1197
- configurable: false,
1198
- enumerable: false,
1199
- writable: true,
1200
- value: null
1201
- });
1202
- Object.defineProperty(type, "_debugStack", {
1203
- configurable: false,
1204
- enumerable: false,
1205
- writable: true,
1206
- value: debugStack
1207
- });
1208
- Object.defineProperty(type, "_debugTask", {
1209
- configurable: false,
1210
- enumerable: false,
1211
- writable: true,
1212
- value: debugTask
1213
- });
1214
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1215
- return type;
1216
- }
1217
- function cloneAndReplaceKey(oldElement, newKey) {
1218
- newKey = ReactElement(
1219
- oldElement.type,
1220
- newKey,
1196
+ defaultValue.Provider = defaultValue;
1197
+ defaultValue.Consumer = {
1198
+ $$typeof: REACT_CONSUMER_TYPE,
1199
+ _context: defaultValue
1200
+ };
1201
+ defaultValue._currentRenderer = null;
1202
+ defaultValue._currentRenderer2 = null;
1203
+ return defaultValue;
1204
+ };
1205
+ exports.createElement = function(type, config, children) {
1206
+ for (var i = 2; i < arguments.length; i++) {
1207
+ var node = arguments[i];
1208
+ isValidElement(node) && node._store && (node._store.validated = 1);
1209
+ }
1210
+ i = {};
1211
+ node = null;
1212
+ if (null != config)
1213
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1214
+ "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"
1215
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1216
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1217
+ var childrenLength = arguments.length - 2;
1218
+ if (1 === childrenLength) i.children = children;
1219
+ else if (1 < childrenLength) {
1220
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1221
+ childArray[_i] = arguments[_i + 2];
1222
+ Object.freeze && Object.freeze(childArray);
1223
+ i.children = childArray;
1224
+ }
1225
+ if (type && type.defaultProps)
1226
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1227
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1228
+ node && defineKeyPropWarningGetter(
1229
+ i,
1230
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1231
+ );
1232
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1233
+ return ReactElement(
1234
+ type,
1235
+ node,
1221
1236
  void 0,
1222
1237
  void 0,
1223
- oldElement._owner,
1224
- oldElement.props,
1225
- oldElement._debugStack,
1226
- oldElement._debugTask
1238
+ getOwner(),
1239
+ i,
1240
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1241
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1227
1242
  );
1228
- oldElement._store && (newKey._store.validated = oldElement._store.validated);
1229
- return newKey;
1230
- }
1231
- function isValidElement(object) {
1232
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
1233
- }
1234
- function escape(key) {
1235
- var escaperLookup = { "=": "=0", ":": "=2" };
1236
- return "$" + key.replace(/[=:]/g, function(match) {
1237
- return escaperLookup[match];
1243
+ };
1244
+ exports.createRef = function() {
1245
+ var refObject = { current: null };
1246
+ Object.seal(refObject);
1247
+ return refObject;
1248
+ };
1249
+ exports.forwardRef = function(render) {
1250
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1251
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1252
+ ) : "function" !== typeof render ? console.error(
1253
+ "forwardRef requires a render function but was given %s.",
1254
+ null === render ? "null" : typeof render
1255
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1256
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1257
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1258
+ );
1259
+ null != render && null != render.defaultProps && console.error(
1260
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1261
+ );
1262
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1263
+ Object.defineProperty(elementType, "displayName", {
1264
+ enumerable: false,
1265
+ configurable: true,
1266
+ get: function() {
1267
+ return ownName;
1268
+ },
1269
+ set: function(name) {
1270
+ ownName = name;
1271
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1272
+ }
1238
1273
  });
1239
- }
1240
- function getElementKey(element, index) {
1241
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
1242
- }
1243
- function noop$1() {
1244
- }
1245
- function resolveThenable(thenable) {
1246
- switch (thenable.status) {
1247
- case "fulfilled":
1248
- return thenable.value;
1249
- case "rejected":
1250
- throw thenable.reason;
1251
- default:
1252
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
1253
- function(fulfilledValue) {
1254
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
1255
- },
1256
- function(error) {
1257
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
1258
- }
1259
- )), thenable.status) {
1260
- case "fulfilled":
1261
- return thenable.value;
1262
- case "rejected":
1263
- throw thenable.reason;
1264
- }
1265
- }
1266
- throw thenable;
1267
- }
1268
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1269
- var type = typeof children;
1270
- if ("undefined" === type || "boolean" === type) children = null;
1271
- var invokeCallback = false;
1272
- if (null === children) invokeCallback = true;
1273
- else
1274
- switch (type) {
1275
- case "bigint":
1276
- case "string":
1277
- case "number":
1278
- invokeCallback = true;
1279
- break;
1280
- case "object":
1281
- switch (children.$$typeof) {
1282
- case REACT_ELEMENT_TYPE:
1283
- case REACT_PORTAL_TYPE:
1284
- invokeCallback = true;
1285
- break;
1286
- case REACT_LAZY_TYPE:
1287
- return invokeCallback = children._init, mapIntoArray(
1288
- invokeCallback(children._payload),
1289
- array,
1290
- escapedPrefix,
1291
- nameSoFar,
1292
- callback
1293
- );
1294
- }
1274
+ return elementType;
1275
+ };
1276
+ exports.isValidElement = isValidElement;
1277
+ exports.lazy = function(ctor) {
1278
+ return {
1279
+ $$typeof: REACT_LAZY_TYPE,
1280
+ _payload: { _status: -1, _result: ctor },
1281
+ _init: lazyInitializer
1282
+ };
1283
+ };
1284
+ exports.memo = function(type, compare) {
1285
+ null == type && console.error(
1286
+ "memo: The first argument must be a component. Instead received: %s",
1287
+ null === type ? "null" : typeof type
1288
+ );
1289
+ compare = {
1290
+ $$typeof: REACT_MEMO_TYPE,
1291
+ type,
1292
+ compare: void 0 === compare ? null : compare
1293
+ };
1294
+ var ownName;
1295
+ Object.defineProperty(compare, "displayName", {
1296
+ enumerable: false,
1297
+ configurable: true,
1298
+ get: function() {
1299
+ return ownName;
1300
+ },
1301
+ set: function(name) {
1302
+ ownName = name;
1303
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1295
1304
  }
1296
- if (invokeCallback) {
1297
- invokeCallback = children;
1298
- callback = callback(invokeCallback);
1299
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
1300
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
1301
- return c;
1302
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
1303
- callback,
1304
- escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
1305
- userProvidedKeyEscapeRegex,
1306
- "$&/"
1307
- ) + "/") + childKey
1308
- ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
1309
- return 1;
1305
+ });
1306
+ return compare;
1307
+ };
1308
+ exports.startTransition = function(scope) {
1309
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1310
+ ReactSharedInternals.T = currentTransition;
1311
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1312
+ try {
1313
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1314
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1315
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1316
+ } catch (error) {
1317
+ reportGlobalError(error);
1318
+ } finally {
1319
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1320
+ "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."
1321
+ )), ReactSharedInternals.T = prevTransition;
1310
1322
  }
1311
- invokeCallback = 0;
1312
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
1313
- if (isArrayImpl(children))
1314
- for (var i = 0; i < children.length; i++)
1315
- nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
1316
- nameSoFar,
1317
- array,
1318
- escapedPrefix,
1319
- type,
1320
- callback
1321
- );
1322
- else if (i = getIteratorFn(children), "function" === typeof i)
1323
- for (i === children.entries && (didWarnAboutMaps || console.warn(
1324
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
1325
- ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
1326
- nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
1327
- nameSoFar,
1328
- array,
1329
- escapedPrefix,
1330
- type,
1331
- callback
1332
- );
1333
- else if ("object" === type) {
1334
- if ("function" === typeof children.then)
1335
- return mapIntoArray(
1336
- resolveThenable(children),
1337
- array,
1338
- escapedPrefix,
1339
- nameSoFar,
1340
- callback
1341
- );
1342
- array = String(children);
1323
+ };
1324
+ exports.unstable_useCacheRefresh = function() {
1325
+ return resolveDispatcher().useCacheRefresh();
1326
+ };
1327
+ exports.use = function(usable) {
1328
+ return resolveDispatcher().use(usable);
1329
+ };
1330
+ exports.useActionState = function(action, initialState, permalink) {
1331
+ return resolveDispatcher().useActionState(
1332
+ action,
1333
+ initialState,
1334
+ permalink
1335
+ );
1336
+ };
1337
+ exports.useCallback = function(callback, deps) {
1338
+ return resolveDispatcher().useCallback(callback, deps);
1339
+ };
1340
+ exports.useContext = function(Context) {
1341
+ var dispatcher = resolveDispatcher();
1342
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1343
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1344
+ );
1345
+ return dispatcher.useContext(Context);
1346
+ };
1347
+ exports.useDebugValue = function(value, formatterFn) {
1348
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1349
+ };
1350
+ exports.useDeferredValue = function(value, initialValue) {
1351
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1352
+ };
1353
+ exports.useEffect = function(create, createDeps, update) {
1354
+ null == create && console.warn(
1355
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1356
+ );
1357
+ var dispatcher = resolveDispatcher();
1358
+ if ("function" === typeof update)
1343
1359
  throw Error(
1344
- "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."
1345
- );
1346
- }
1347
- return invokeCallback;
1348
- }
1349
- function mapChildren(children, func, context) {
1350
- if (null == children) return children;
1351
- var result = [], count = 0;
1352
- mapIntoArray(children, result, "", "", function(child) {
1353
- return func.call(context, child, count++);
1354
- });
1355
- return result;
1356
- }
1357
- function lazyInitializer(payload) {
1358
- if (-1 === payload._status) {
1359
- var ctor = payload._result;
1360
- ctor = ctor();
1361
- ctor.then(
1362
- function(moduleObject) {
1363
- if (0 === payload._status || -1 === payload._status)
1364
- payload._status = 1, payload._result = moduleObject;
1365
- },
1366
- function(error) {
1367
- if (0 === payload._status || -1 === payload._status)
1368
- payload._status = 2, payload._result = error;
1369
- }
1360
+ "useEffect CRUD overload is not enabled in this build of React."
1370
1361
  );
1371
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
1372
- }
1373
- if (1 === payload._status)
1374
- return ctor = payload._result, void 0 === ctor && console.error(
1375
- "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?",
1376
- ctor
1377
- ), "default" in ctor || console.error(
1378
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1379
- ctor
1380
- ), ctor.default;
1381
- throw payload._result;
1382
- }
1383
- function resolveDispatcher() {
1384
- var dispatcher = ReactSharedInternals.H;
1385
- null === dispatcher && console.error(
1386
- "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."
1362
+ return dispatcher.useEffect(create, createDeps);
1363
+ };
1364
+ exports.useId = function() {
1365
+ return resolveDispatcher().useId();
1366
+ };
1367
+ exports.useImperativeHandle = function(ref, create, deps) {
1368
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1369
+ };
1370
+ exports.useInsertionEffect = function(create, deps) {
1371
+ null == create && console.warn(
1372
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1387
1373
  );
1388
- return dispatcher;
1389
- }
1390
- function noop() {
1391
- }
1392
- function enqueueTask(task) {
1393
- if (null === enqueueTaskImpl)
1394
- try {
1395
- var requireString = ("require" + Math.random()).slice(0, 7);
1396
- enqueueTaskImpl = (module && module[requireString]).call(
1397
- module,
1398
- "timers"
1399
- ).setImmediate;
1400
- } catch (_err) {
1401
- enqueueTaskImpl = function(callback) {
1402
- false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
1403
- "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."
1404
- ));
1405
- var channel = new MessageChannel();
1406
- channel.port1.onmessage = callback;
1407
- channel.port2.postMessage(void 0);
1408
- };
1409
- }
1410
- return enqueueTaskImpl(task);
1374
+ return resolveDispatcher().useInsertionEffect(create, deps);
1375
+ };
1376
+ exports.useLayoutEffect = function(create, deps) {
1377
+ null == create && console.warn(
1378
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1379
+ );
1380
+ return resolveDispatcher().useLayoutEffect(create, deps);
1381
+ };
1382
+ exports.useMemo = function(create, deps) {
1383
+ return resolveDispatcher().useMemo(create, deps);
1384
+ };
1385
+ exports.useOptimistic = function(passthrough, reducer) {
1386
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1387
+ };
1388
+ exports.useReducer = function(reducer, initialArg, init) {
1389
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1390
+ };
1391
+ exports.useRef = function(initialValue) {
1392
+ return resolveDispatcher().useRef(initialValue);
1393
+ };
1394
+ exports.useState = function(initialState) {
1395
+ return resolveDispatcher().useState(initialState);
1396
+ };
1397
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1398
+ return resolveDispatcher().useSyncExternalStore(
1399
+ subscribe,
1400
+ getSnapshot,
1401
+ getServerSnapshot
1402
+ );
1403
+ };
1404
+ exports.useTransition = function() {
1405
+ return resolveDispatcher().useTransition();
1406
+ };
1407
+ exports.version = "19.1.0";
1408
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1409
+ }();
1410
+ }
1411
+ });
1412
+
1413
+ // ../../node_modules/react/index.js
1414
+ var require_react = __commonJS({
1415
+ "../../node_modules/react/index.js"(exports, module) {
1416
+ "use strict";
1417
+ if (process.env.NODE_ENV === "production") {
1418
+ module.exports = require_react_production();
1419
+ } else {
1420
+ module.exports = require_react_development();
1421
+ }
1422
+ }
1423
+ });
1424
+
1425
+ // ../../node_modules/scheduler/cjs/scheduler.production.js
1426
+ var require_scheduler_production = __commonJS({
1427
+ "../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
1428
+ "use strict";
1429
+ function push(heap, node) {
1430
+ var index = heap.length;
1431
+ heap.push(node);
1432
+ a: for (; 0 < index; ) {
1433
+ var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
1434
+ if (0 < compare(parent, node))
1435
+ heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
1436
+ else break a;
1411
1437
  }
1412
- function aggregateErrors(errors) {
1413
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
1438
+ }
1439
+ function peek(heap) {
1440
+ return 0 === heap.length ? null : heap[0];
1441
+ }
1442
+ function pop(heap) {
1443
+ if (0 === heap.length) return null;
1444
+ var first = heap[0], last = heap.pop();
1445
+ if (last !== first) {
1446
+ heap[0] = last;
1447
+ a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
1448
+ var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
1449
+ if (0 > compare(left, last))
1450
+ rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
1451
+ else if (rightIndex < length && 0 > compare(right, last))
1452
+ heap[index] = right, heap[rightIndex] = last, index = rightIndex;
1453
+ else break a;
1454
+ }
1414
1455
  }
1415
- function popActScope(prevActQueue, prevActScopeDepth) {
1416
- prevActScopeDepth !== actScopeDepth - 1 && console.error(
1417
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1418
- );
1419
- actScopeDepth = prevActScopeDepth;
1456
+ return first;
1457
+ }
1458
+ function compare(a, b) {
1459
+ var diff = a.sortIndex - b.sortIndex;
1460
+ return 0 !== diff ? diff : a.id - b.id;
1461
+ }
1462
+ exports.unstable_now = void 0;
1463
+ if ("object" === typeof performance && "function" === typeof performance.now) {
1464
+ localPerformance = performance;
1465
+ exports.unstable_now = function() {
1466
+ return localPerformance.now();
1467
+ };
1468
+ } else {
1469
+ localDate = Date, initialTime = localDate.now();
1470
+ exports.unstable_now = function() {
1471
+ return localDate.now() - initialTime;
1472
+ };
1473
+ }
1474
+ var localPerformance;
1475
+ var localDate;
1476
+ var initialTime;
1477
+ var taskQueue = [];
1478
+ var timerQueue = [];
1479
+ var taskIdCounter = 1;
1480
+ var currentTask = null;
1481
+ var currentPriorityLevel = 3;
1482
+ var isPerformingWork = false;
1483
+ var isHostCallbackScheduled = false;
1484
+ var isHostTimeoutScheduled = false;
1485
+ var needsPaint = false;
1486
+ var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
1487
+ var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
1488
+ var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
1489
+ function advanceTimers(currentTime) {
1490
+ for (var timer = peek(timerQueue); null !== timer; ) {
1491
+ if (null === timer.callback) pop(timerQueue);
1492
+ else if (timer.startTime <= currentTime)
1493
+ pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
1494
+ else break;
1495
+ timer = peek(timerQueue);
1420
1496
  }
1421
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1422
- var queue = ReactSharedInternals.actQueue;
1423
- if (null !== queue)
1424
- if (0 !== queue.length)
1497
+ }
1498
+ function handleTimeout(currentTime) {
1499
+ isHostTimeoutScheduled = false;
1500
+ advanceTimers(currentTime);
1501
+ if (!isHostCallbackScheduled)
1502
+ if (null !== peek(taskQueue))
1503
+ isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
1504
+ else {
1505
+ var firstTimer = peek(timerQueue);
1506
+ null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
1507
+ }
1508
+ }
1509
+ var isMessageLoopRunning = false;
1510
+ var taskTimeoutID = -1;
1511
+ var frameInterval = 5;
1512
+ var startTime = -1;
1513
+ function shouldYieldToHost() {
1514
+ return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
1515
+ }
1516
+ function performWorkUntilDeadline() {
1517
+ needsPaint = false;
1518
+ if (isMessageLoopRunning) {
1519
+ var currentTime = exports.unstable_now();
1520
+ startTime = currentTime;
1521
+ var hasMoreWork = true;
1522
+ try {
1523
+ a: {
1524
+ isHostCallbackScheduled = false;
1525
+ isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
1526
+ isPerformingWork = true;
1527
+ var previousPriorityLevel = currentPriorityLevel;
1425
1528
  try {
1426
- flushActQueue(queue);
1427
- enqueueTask(function() {
1428
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1429
- });
1430
- return;
1431
- } catch (error) {
1432
- ReactSharedInternals.thrownErrors.push(error);
1433
- }
1434
- else ReactSharedInternals.actQueue = null;
1435
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
1436
- }
1437
- function flushActQueue(queue) {
1438
- if (!isFlushing) {
1439
- isFlushing = true;
1440
- var i = 0;
1441
- try {
1442
- for (; i < queue.length; i++) {
1443
- var callback = queue[i];
1444
- do {
1445
- ReactSharedInternals.didUsePromise = false;
1446
- var continuation = callback(false);
1447
- if (null !== continuation) {
1448
- if (ReactSharedInternals.didUsePromise) {
1449
- queue[i] = callback;
1450
- queue.splice(0, i);
1451
- return;
1452
- }
1453
- callback = continuation;
1454
- } else break;
1455
- } while (1);
1529
+ b: {
1530
+ advanceTimers(currentTime);
1531
+ for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
1532
+ var callback = currentTask.callback;
1533
+ if ("function" === typeof callback) {
1534
+ currentTask.callback = null;
1535
+ currentPriorityLevel = currentTask.priorityLevel;
1536
+ var continuationCallback = callback(
1537
+ currentTask.expirationTime <= currentTime
1538
+ );
1539
+ currentTime = exports.unstable_now();
1540
+ if ("function" === typeof continuationCallback) {
1541
+ currentTask.callback = continuationCallback;
1542
+ advanceTimers(currentTime);
1543
+ hasMoreWork = true;
1544
+ break b;
1545
+ }
1546
+ currentTask === peek(taskQueue) && pop(taskQueue);
1547
+ advanceTimers(currentTime);
1548
+ } else pop(taskQueue);
1549
+ currentTask = peek(taskQueue);
1550
+ }
1551
+ if (null !== currentTask) hasMoreWork = true;
1552
+ else {
1553
+ var firstTimer = peek(timerQueue);
1554
+ null !== firstTimer && requestHostTimeout(
1555
+ handleTimeout,
1556
+ firstTimer.startTime - currentTime
1557
+ );
1558
+ hasMoreWork = false;
1559
+ }
1560
+ }
1561
+ break a;
1562
+ } finally {
1563
+ currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
1456
1564
  }
1457
- queue.length = 0;
1458
- } catch (error) {
1459
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1460
- } finally {
1461
- isFlushing = false;
1565
+ hasMoreWork = void 0;
1462
1566
  }
1567
+ } finally {
1568
+ hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
1463
1569
  }
1464
1570
  }
1465
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1466
- 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");
1467
- Symbol.for("react.provider");
1468
- 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 = {
1469
- isMounted: function() {
1470
- return false;
1471
- },
1472
- enqueueForceUpdate: function(publicInstance) {
1473
- warnNoop(publicInstance, "forceUpdate");
1474
- },
1475
- enqueueReplaceState: function(publicInstance) {
1476
- warnNoop(publicInstance, "replaceState");
1477
- },
1478
- enqueueSetState: function(publicInstance) {
1479
- warnNoop(publicInstance, "setState");
1480
- }
1481
- }, assign = Object.assign, emptyObject = {};
1482
- Object.freeze(emptyObject);
1483
- Component.prototype.isReactComponent = {};
1484
- Component.prototype.setState = function(partialState, callback) {
1485
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
1486
- throw Error(
1487
- "takes an object of state variables to update or a function which returns an object of state variables."
1488
- );
1489
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1490
- };
1491
- Component.prototype.forceUpdate = function(callback) {
1492
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1571
+ }
1572
+ var schedulePerformWorkUntilDeadline;
1573
+ if ("function" === typeof localSetImmediate)
1574
+ schedulePerformWorkUntilDeadline = function() {
1575
+ localSetImmediate(performWorkUntilDeadline);
1493
1576
  };
1494
- var deprecatedAPIs = {
1495
- isMounted: [
1496
- "isMounted",
1497
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1498
- ],
1499
- replaceState: [
1500
- "replaceState",
1501
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1502
- ]
1503
- }, fnName;
1504
- for (fnName in deprecatedAPIs)
1505
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1506
- ComponentDummy.prototype = Component.prototype;
1507
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1508
- deprecatedAPIs.constructor = PureComponent;
1509
- assign(deprecatedAPIs, Component.prototype);
1510
- deprecatedAPIs.isPureReactComponent = true;
1511
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1512
- H: null,
1513
- A: null,
1514
- T: null,
1515
- S: null,
1516
- V: null,
1517
- actQueue: null,
1518
- isBatchingLegacy: false,
1519
- didScheduleLegacyUpdate: false,
1520
- didUsePromise: false,
1521
- thrownErrors: [],
1522
- getCurrentStack: null,
1523
- recentlyCreatedOwnerStacks: 0
1524
- }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1525
- return null;
1577
+ else if ("undefined" !== typeof MessageChannel) {
1578
+ channel = new MessageChannel(), port = channel.port2;
1579
+ channel.port1.onmessage = performWorkUntilDeadline;
1580
+ schedulePerformWorkUntilDeadline = function() {
1581
+ port.postMessage(null);
1526
1582
  };
1527
- deprecatedAPIs = {
1528
- "react-stack-bottom-frame": function(callStackForError) {
1529
- return callStackForError();
1530
- }
1583
+ } else
1584
+ schedulePerformWorkUntilDeadline = function() {
1585
+ localSetTimeout(performWorkUntilDeadline, 0);
1531
1586
  };
1532
- var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1533
- var didWarnAboutElementRef = {};
1534
- var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
1535
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1536
- var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1537
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1538
- var event = new window.ErrorEvent("error", {
1539
- bubbles: true,
1540
- cancelable: true,
1541
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1542
- error
1543
- });
1544
- if (!window.dispatchEvent(event)) return;
1545
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1546
- process.emit("uncaughtException", error);
1547
- return;
1548
- }
1549
- console.error(error);
1550
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1551
- queueMicrotask(function() {
1552
- return queueMicrotask(callback);
1553
- });
1554
- } : enqueueTask;
1555
- deprecatedAPIs = Object.freeze({
1556
- __proto__: null,
1557
- c: function(size) {
1558
- return resolveDispatcher().useMemoCache(size);
1559
- }
1560
- });
1561
- exports.Children = {
1562
- map: mapChildren,
1563
- forEach: function(children, forEachFunc, forEachContext) {
1564
- mapChildren(
1565
- children,
1566
- function() {
1567
- forEachFunc.apply(this, arguments);
1568
- },
1569
- forEachContext
1570
- );
1571
- },
1572
- count: function(children) {
1573
- var n = 0;
1574
- mapChildren(children, function() {
1575
- n++;
1576
- });
1577
- return n;
1578
- },
1579
- toArray: function(children) {
1580
- return mapChildren(children, function(child) {
1581
- return child;
1582
- }) || [];
1583
- },
1584
- only: function(children) {
1585
- if (!isValidElement(children))
1586
- throw Error(
1587
- "React.Children.only expected to receive a single React element child."
1588
- );
1589
- return children;
1590
- }
1587
+ var channel;
1588
+ var port;
1589
+ function requestHostTimeout(callback, ms) {
1590
+ taskTimeoutID = localSetTimeout(function() {
1591
+ callback(exports.unstable_now());
1592
+ }, ms);
1593
+ }
1594
+ exports.unstable_IdlePriority = 5;
1595
+ exports.unstable_ImmediatePriority = 1;
1596
+ exports.unstable_LowPriority = 4;
1597
+ exports.unstable_NormalPriority = 3;
1598
+ exports.unstable_Profiling = null;
1599
+ exports.unstable_UserBlockingPriority = 2;
1600
+ exports.unstable_cancelCallback = function(task) {
1601
+ task.callback = null;
1602
+ };
1603
+ exports.unstable_forceFrameRate = function(fps) {
1604
+ 0 > fps || 125 < fps ? console.error(
1605
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
1606
+ ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
1607
+ };
1608
+ exports.unstable_getCurrentPriorityLevel = function() {
1609
+ return currentPriorityLevel;
1610
+ };
1611
+ exports.unstable_next = function(eventHandler) {
1612
+ switch (currentPriorityLevel) {
1613
+ case 1:
1614
+ case 2:
1615
+ case 3:
1616
+ var priorityLevel = 3;
1617
+ break;
1618
+ default:
1619
+ priorityLevel = currentPriorityLevel;
1620
+ }
1621
+ var previousPriorityLevel = currentPriorityLevel;
1622
+ currentPriorityLevel = priorityLevel;
1623
+ try {
1624
+ return eventHandler();
1625
+ } finally {
1626
+ currentPriorityLevel = previousPriorityLevel;
1627
+ }
1628
+ };
1629
+ exports.unstable_requestPaint = function() {
1630
+ needsPaint = true;
1631
+ };
1632
+ exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
1633
+ switch (priorityLevel) {
1634
+ case 1:
1635
+ case 2:
1636
+ case 3:
1637
+ case 4:
1638
+ case 5:
1639
+ break;
1640
+ default:
1641
+ priorityLevel = 3;
1642
+ }
1643
+ var previousPriorityLevel = currentPriorityLevel;
1644
+ currentPriorityLevel = priorityLevel;
1645
+ try {
1646
+ return eventHandler();
1647
+ } finally {
1648
+ currentPriorityLevel = previousPriorityLevel;
1649
+ }
1650
+ };
1651
+ exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
1652
+ var currentTime = exports.unstable_now();
1653
+ "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
1654
+ switch (priorityLevel) {
1655
+ case 1:
1656
+ var timeout = -1;
1657
+ break;
1658
+ case 2:
1659
+ timeout = 250;
1660
+ break;
1661
+ case 5:
1662
+ timeout = 1073741823;
1663
+ break;
1664
+ case 4:
1665
+ timeout = 1e4;
1666
+ break;
1667
+ default:
1668
+ timeout = 5e3;
1669
+ }
1670
+ timeout = options + timeout;
1671
+ priorityLevel = {
1672
+ id: taskIdCounter++,
1673
+ callback,
1674
+ priorityLevel,
1675
+ startTime: options,
1676
+ expirationTime: timeout,
1677
+ sortIndex: -1
1591
1678
  };
1592
- exports.Component = Component;
1593
- exports.Fragment = REACT_FRAGMENT_TYPE;
1594
- exports.Profiler = REACT_PROFILER_TYPE;
1595
- exports.PureComponent = PureComponent;
1596
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1597
- exports.Suspense = REACT_SUSPENSE_TYPE;
1598
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1599
- exports.__COMPILER_RUNTIME = deprecatedAPIs;
1600
- exports.act = function(callback) {
1601
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1602
- actScopeDepth++;
1603
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1679
+ options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
1680
+ return priorityLevel;
1681
+ };
1682
+ exports.unstable_shouldYield = shouldYieldToHost;
1683
+ exports.unstable_wrapCallback = function(callback) {
1684
+ var parentPriorityLevel = currentPriorityLevel;
1685
+ return function() {
1686
+ var previousPriorityLevel = currentPriorityLevel;
1687
+ currentPriorityLevel = parentPriorityLevel;
1604
1688
  try {
1605
- var result = callback();
1606
- } catch (error) {
1607
- ReactSharedInternals.thrownErrors.push(error);
1689
+ return callback.apply(this, arguments);
1690
+ } finally {
1691
+ currentPriorityLevel = previousPriorityLevel;
1608
1692
  }
1609
- if (0 < ReactSharedInternals.thrownErrors.length)
1610
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1611
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1612
- var thenable = result;
1613
- queueSeveralMicrotasks(function() {
1614
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1615
- "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 () => ...);"
1616
- ));
1617
- });
1618
- return {
1619
- then: function(resolve, reject) {
1620
- didAwaitActCall = true;
1621
- thenable.then(
1622
- function(returnValue) {
1623
- popActScope(prevActQueue, prevActScopeDepth);
1624
- if (0 === prevActScopeDepth) {
1625
- try {
1626
- flushActQueue(queue), enqueueTask(function() {
1627
- return recursivelyFlushAsyncActWork(
1628
- returnValue,
1629
- resolve,
1630
- reject
1631
- );
1632
- });
1633
- } catch (error$0) {
1634
- ReactSharedInternals.thrownErrors.push(error$0);
1635
- }
1636
- if (0 < ReactSharedInternals.thrownErrors.length) {
1637
- var _thrownError = aggregateErrors(
1638
- ReactSharedInternals.thrownErrors
1693
+ };
1694
+ };
1695
+ }
1696
+ });
1697
+
1698
+ // ../../node_modules/scheduler/cjs/scheduler.development.js
1699
+ var require_scheduler_development = __commonJS({
1700
+ "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
1701
+ "use strict";
1702
+ "production" !== process.env.NODE_ENV && function() {
1703
+ function performWorkUntilDeadline() {
1704
+ needsPaint = false;
1705
+ if (isMessageLoopRunning) {
1706
+ var currentTime = exports.unstable_now();
1707
+ startTime = currentTime;
1708
+ var hasMoreWork = true;
1709
+ try {
1710
+ a: {
1711
+ isHostCallbackScheduled = false;
1712
+ isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
1713
+ isPerformingWork = true;
1714
+ var previousPriorityLevel = currentPriorityLevel;
1715
+ try {
1716
+ b: {
1717
+ advanceTimers(currentTime);
1718
+ for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) {
1719
+ var callback = currentTask.callback;
1720
+ if ("function" === typeof callback) {
1721
+ currentTask.callback = null;
1722
+ currentPriorityLevel = currentTask.priorityLevel;
1723
+ var continuationCallback = callback(
1724
+ currentTask.expirationTime <= currentTime
1639
1725
  );
1640
- ReactSharedInternals.thrownErrors.length = 0;
1641
- reject(_thrownError);
1642
- }
1643
- } else resolve(returnValue);
1644
- },
1645
- function(error) {
1646
- popActScope(prevActQueue, prevActScopeDepth);
1647
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1648
- ReactSharedInternals.thrownErrors
1649
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1726
+ currentTime = exports.unstable_now();
1727
+ if ("function" === typeof continuationCallback) {
1728
+ currentTask.callback = continuationCallback;
1729
+ advanceTimers(currentTime);
1730
+ hasMoreWork = true;
1731
+ break b;
1732
+ }
1733
+ currentTask === peek(taskQueue) && pop(taskQueue);
1734
+ advanceTimers(currentTime);
1735
+ } else pop(taskQueue);
1736
+ currentTask = peek(taskQueue);
1737
+ }
1738
+ if (null !== currentTask) hasMoreWork = true;
1739
+ else {
1740
+ var firstTimer = peek(timerQueue);
1741
+ null !== firstTimer && requestHostTimeout(
1742
+ handleTimeout,
1743
+ firstTimer.startTime - currentTime
1744
+ );
1745
+ hasMoreWork = false;
1746
+ }
1650
1747
  }
1651
- );
1652
- }
1653
- };
1654
- }
1655
- var returnValue$jscomp$0 = result;
1656
- popActScope(prevActQueue, prevActScopeDepth);
1657
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1658
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1659
- "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(() => ...)"
1660
- ));
1661
- }), ReactSharedInternals.actQueue = null);
1662
- if (0 < ReactSharedInternals.thrownErrors.length)
1663
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1664
- return {
1665
- then: function(resolve, reject) {
1666
- didAwaitActCall = true;
1667
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1668
- return recursivelyFlushAsyncActWork(
1669
- returnValue$jscomp$0,
1670
- resolve,
1671
- reject
1672
- );
1673
- })) : resolve(returnValue$jscomp$0);
1674
- }
1675
- };
1676
- };
1677
- exports.cache = function(fn) {
1678
- return function() {
1679
- return fn.apply(null, arguments);
1680
- };
1681
- };
1682
- exports.captureOwnerStack = function() {
1683
- var getCurrentStack = ReactSharedInternals.getCurrentStack;
1684
- return null === getCurrentStack ? null : getCurrentStack();
1685
- };
1686
- exports.cloneElement = function(element, config, children) {
1687
- if (null === element || void 0 === element)
1688
- throw Error(
1689
- "The argument must be a React element, but you passed " + element + "."
1690
- );
1691
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1692
- if (null != config) {
1693
- var JSCompiler_inline_result;
1694
- a: {
1695
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1696
- config,
1697
- "ref"
1698
- ).get) && JSCompiler_inline_result.isReactWarning) {
1699
- JSCompiler_inline_result = false;
1700
- break a;
1748
+ break a;
1749
+ } finally {
1750
+ currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false;
1751
+ }
1752
+ hasMoreWork = void 0;
1701
1753
  }
1702
- JSCompiler_inline_result = void 0 !== config.ref;
1754
+ } finally {
1755
+ hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false;
1703
1756
  }
1704
- JSCompiler_inline_result && (owner = getOwner());
1705
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1706
- for (propName in config)
1707
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1708
1757
  }
1709
- var propName = arguments.length - 2;
1710
- if (1 === propName) props.children = children;
1711
- else if (1 < propName) {
1712
- JSCompiler_inline_result = Array(propName);
1713
- for (var i = 0; i < propName; i++)
1714
- JSCompiler_inline_result[i] = arguments[i + 2];
1715
- props.children = JSCompiler_inline_result;
1758
+ }
1759
+ function push(heap, node) {
1760
+ var index = heap.length;
1761
+ heap.push(node);
1762
+ a: for (; 0 < index; ) {
1763
+ var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
1764
+ if (0 < compare(parent, node))
1765
+ heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
1766
+ else break a;
1716
1767
  }
1717
- props = ReactElement(
1718
- element.type,
1719
- key,
1720
- void 0,
1721
- void 0,
1722
- owner,
1723
- props,
1724
- element._debugStack,
1725
- element._debugTask
1726
- );
1727
- for (key = 2; key < arguments.length; key++)
1728
- owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1729
- return props;
1730
- };
1731
- exports.createContext = function(defaultValue) {
1732
- defaultValue = {
1733
- $$typeof: REACT_CONTEXT_TYPE,
1734
- _currentValue: defaultValue,
1735
- _currentValue2: defaultValue,
1736
- _threadCount: 0,
1737
- Provider: null,
1738
- Consumer: null
1739
- };
1740
- defaultValue.Provider = defaultValue;
1741
- defaultValue.Consumer = {
1742
- $$typeof: REACT_CONSUMER_TYPE,
1743
- _context: defaultValue
1744
- };
1745
- defaultValue._currentRenderer = null;
1746
- defaultValue._currentRenderer2 = null;
1747
- return defaultValue;
1748
- };
1749
- exports.createElement = function(type, config, children) {
1750
- for (var i = 2; i < arguments.length; i++) {
1751
- var node = arguments[i];
1752
- isValidElement(node) && node._store && (node._store.validated = 1);
1768
+ }
1769
+ function peek(heap) {
1770
+ return 0 === heap.length ? null : heap[0];
1771
+ }
1772
+ function pop(heap) {
1773
+ if (0 === heap.length) return null;
1774
+ var first = heap[0], last = heap.pop();
1775
+ if (last !== first) {
1776
+ heap[0] = last;
1777
+ a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) {
1778
+ var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
1779
+ if (0 > compare(left, last))
1780
+ rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
1781
+ else if (rightIndex < length && 0 > compare(right, last))
1782
+ heap[index] = right, heap[rightIndex] = last, index = rightIndex;
1783
+ else break a;
1784
+ }
1753
1785
  }
1754
- i = {};
1755
- node = null;
1756
- if (null != config)
1757
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1758
- "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"
1759
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1760
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1761
- var childrenLength = arguments.length - 2;
1762
- if (1 === childrenLength) i.children = children;
1763
- else if (1 < childrenLength) {
1764
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1765
- childArray[_i] = arguments[_i + 2];
1766
- Object.freeze && Object.freeze(childArray);
1767
- i.children = childArray;
1786
+ return first;
1787
+ }
1788
+ function compare(a, b) {
1789
+ var diff = a.sortIndex - b.sortIndex;
1790
+ return 0 !== diff ? diff : a.id - b.id;
1791
+ }
1792
+ function advanceTimers(currentTime) {
1793
+ for (var timer = peek(timerQueue); null !== timer; ) {
1794
+ if (null === timer.callback) pop(timerQueue);
1795
+ else if (timer.startTime <= currentTime)
1796
+ pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
1797
+ else break;
1798
+ timer = peek(timerQueue);
1768
1799
  }
1769
- if (type && type.defaultProps)
1770
- for (propName in childrenLength = type.defaultProps, childrenLength)
1771
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1772
- node && defineKeyPropWarningGetter(
1773
- i,
1774
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1775
- );
1776
- var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1777
- return ReactElement(
1778
- type,
1779
- node,
1780
- void 0,
1781
- void 0,
1782
- getOwner(),
1783
- i,
1784
- propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1785
- propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1786
- );
1787
- };
1788
- exports.createRef = function() {
1789
- var refObject = { current: null };
1790
- Object.seal(refObject);
1791
- return refObject;
1792
- };
1793
- exports.forwardRef = function(render) {
1794
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1795
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1796
- ) : "function" !== typeof render ? console.error(
1797
- "forwardRef requires a render function but was given %s.",
1798
- null === render ? "null" : typeof render
1799
- ) : 0 !== render.length && 2 !== render.length && console.error(
1800
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1801
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1802
- );
1803
- null != render && null != render.defaultProps && console.error(
1804
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1805
- );
1806
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1807
- Object.defineProperty(elementType, "displayName", {
1808
- enumerable: false,
1809
- configurable: true,
1810
- get: function() {
1811
- return ownName;
1812
- },
1813
- set: function(name) {
1814
- ownName = name;
1815
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1800
+ }
1801
+ function handleTimeout(currentTime) {
1802
+ isHostTimeoutScheduled = false;
1803
+ advanceTimers(currentTime);
1804
+ if (!isHostCallbackScheduled)
1805
+ if (null !== peek(taskQueue))
1806
+ isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline());
1807
+ else {
1808
+ var firstTimer = peek(timerQueue);
1809
+ null !== firstTimer && requestHostTimeout(
1810
+ handleTimeout,
1811
+ firstTimer.startTime - currentTime
1812
+ );
1816
1813
  }
1817
- });
1818
- return elementType;
1819
- };
1820
- exports.isValidElement = isValidElement;
1821
- exports.lazy = function(ctor) {
1822
- return {
1823
- $$typeof: REACT_LAZY_TYPE,
1824
- _payload: { _status: -1, _result: ctor },
1825
- _init: lazyInitializer
1814
+ }
1815
+ function shouldYieldToHost() {
1816
+ return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
1817
+ }
1818
+ function requestHostTimeout(callback, ms) {
1819
+ taskTimeoutID = localSetTimeout(function() {
1820
+ callback(exports.unstable_now());
1821
+ }, ms);
1822
+ }
1823
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1824
+ exports.unstable_now = void 0;
1825
+ if ("object" === typeof performance && "function" === typeof performance.now) {
1826
+ var localPerformance = performance;
1827
+ exports.unstable_now = function() {
1828
+ return localPerformance.now();
1826
1829
  };
1827
- };
1828
- exports.memo = function(type, compare) {
1829
- null == type && console.error(
1830
- "memo: The first argument must be a component. Instead received: %s",
1831
- null === type ? "null" : typeof type
1832
- );
1833
- compare = {
1834
- $$typeof: REACT_MEMO_TYPE,
1835
- type,
1836
- compare: void 0 === compare ? null : compare
1830
+ } else {
1831
+ var localDate = Date, initialTime = localDate.now();
1832
+ exports.unstable_now = function() {
1833
+ return localDate.now() - initialTime;
1837
1834
  };
1838
- var ownName;
1839
- Object.defineProperty(compare, "displayName", {
1840
- enumerable: false,
1841
- configurable: true,
1842
- get: function() {
1843
- return ownName;
1844
- },
1845
- set: function(name) {
1846
- ownName = name;
1847
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1848
- }
1849
- });
1850
- return compare;
1835
+ }
1836
+ var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
1837
+ if ("function" === typeof localSetImmediate)
1838
+ var schedulePerformWorkUntilDeadline = function() {
1839
+ localSetImmediate(performWorkUntilDeadline);
1840
+ };
1841
+ else if ("undefined" !== typeof MessageChannel) {
1842
+ var channel = new MessageChannel(), port = channel.port2;
1843
+ channel.port1.onmessage = performWorkUntilDeadline;
1844
+ schedulePerformWorkUntilDeadline = function() {
1845
+ port.postMessage(null);
1846
+ };
1847
+ } else
1848
+ schedulePerformWorkUntilDeadline = function() {
1849
+ localSetTimeout(performWorkUntilDeadline, 0);
1850
+ };
1851
+ exports.unstable_IdlePriority = 5;
1852
+ exports.unstable_ImmediatePriority = 1;
1853
+ exports.unstable_LowPriority = 4;
1854
+ exports.unstable_NormalPriority = 3;
1855
+ exports.unstable_Profiling = null;
1856
+ exports.unstable_UserBlockingPriority = 2;
1857
+ exports.unstable_cancelCallback = function(task) {
1858
+ task.callback = null;
1851
1859
  };
1852
- exports.startTransition = function(scope) {
1853
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1854
- ReactSharedInternals.T = currentTransition;
1855
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1860
+ exports.unstable_forceFrameRate = function(fps) {
1861
+ 0 > fps || 125 < fps ? console.error(
1862
+ "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
1863
+ ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
1864
+ };
1865
+ exports.unstable_getCurrentPriorityLevel = function() {
1866
+ return currentPriorityLevel;
1867
+ };
1868
+ exports.unstable_next = function(eventHandler) {
1869
+ switch (currentPriorityLevel) {
1870
+ case 1:
1871
+ case 2:
1872
+ case 3:
1873
+ var priorityLevel = 3;
1874
+ break;
1875
+ default:
1876
+ priorityLevel = currentPriorityLevel;
1877
+ }
1878
+ var previousPriorityLevel = currentPriorityLevel;
1879
+ currentPriorityLevel = priorityLevel;
1856
1880
  try {
1857
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1858
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1859
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1860
- } catch (error) {
1861
- reportGlobalError(error);
1881
+ return eventHandler();
1862
1882
  } finally {
1863
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1864
- "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."
1865
- )), ReactSharedInternals.T = prevTransition;
1883
+ currentPriorityLevel = previousPriorityLevel;
1866
1884
  }
1867
1885
  };
1868
- exports.unstable_useCacheRefresh = function() {
1869
- return resolveDispatcher().useCacheRefresh();
1870
- };
1871
- exports.use = function(usable) {
1872
- return resolveDispatcher().use(usable);
1873
- };
1874
- exports.useActionState = function(action, initialState, permalink) {
1875
- return resolveDispatcher().useActionState(
1876
- action,
1877
- initialState,
1878
- permalink
1879
- );
1880
- };
1881
- exports.useCallback = function(callback, deps) {
1882
- return resolveDispatcher().useCallback(callback, deps);
1883
- };
1884
- exports.useContext = function(Context) {
1885
- var dispatcher = resolveDispatcher();
1886
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1887
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1888
- );
1889
- return dispatcher.useContext(Context);
1890
- };
1891
- exports.useDebugValue = function(value, formatterFn) {
1892
- return resolveDispatcher().useDebugValue(value, formatterFn);
1893
- };
1894
- exports.useDeferredValue = function(value, initialValue) {
1895
- return resolveDispatcher().useDeferredValue(value, initialValue);
1896
- };
1897
- exports.useEffect = function(create, createDeps, update) {
1898
- null == create && console.warn(
1899
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1900
- );
1901
- var dispatcher = resolveDispatcher();
1902
- if ("function" === typeof update)
1903
- throw Error(
1904
- "useEffect CRUD overload is not enabled in this build of React."
1905
- );
1906
- return dispatcher.useEffect(create, createDeps);
1907
- };
1908
- exports.useId = function() {
1909
- return resolveDispatcher().useId();
1910
- };
1911
- exports.useImperativeHandle = function(ref, create, deps) {
1912
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1913
- };
1914
- exports.useInsertionEffect = function(create, deps) {
1915
- null == create && console.warn(
1916
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1917
- );
1918
- return resolveDispatcher().useInsertionEffect(create, deps);
1919
- };
1920
- exports.useLayoutEffect = function(create, deps) {
1921
- null == create && console.warn(
1922
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1923
- );
1924
- return resolveDispatcher().useLayoutEffect(create, deps);
1925
- };
1926
- exports.useMemo = function(create, deps) {
1927
- return resolveDispatcher().useMemo(create, deps);
1928
- };
1929
- exports.useOptimistic = function(passthrough, reducer) {
1930
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1931
- };
1932
- exports.useReducer = function(reducer, initialArg, init) {
1933
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1934
- };
1935
- exports.useRef = function(initialValue) {
1936
- return resolveDispatcher().useRef(initialValue);
1886
+ exports.unstable_requestPaint = function() {
1887
+ needsPaint = true;
1937
1888
  };
1938
- exports.useState = function(initialState) {
1939
- return resolveDispatcher().useState(initialState);
1889
+ exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
1890
+ switch (priorityLevel) {
1891
+ case 1:
1892
+ case 2:
1893
+ case 3:
1894
+ case 4:
1895
+ case 5:
1896
+ break;
1897
+ default:
1898
+ priorityLevel = 3;
1899
+ }
1900
+ var previousPriorityLevel = currentPriorityLevel;
1901
+ currentPriorityLevel = priorityLevel;
1902
+ try {
1903
+ return eventHandler();
1904
+ } finally {
1905
+ currentPriorityLevel = previousPriorityLevel;
1906
+ }
1940
1907
  };
1941
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1942
- return resolveDispatcher().useSyncExternalStore(
1943
- subscribe,
1944
- getSnapshot,
1945
- getServerSnapshot
1946
- );
1908
+ exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
1909
+ var currentTime = exports.unstable_now();
1910
+ "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
1911
+ switch (priorityLevel) {
1912
+ case 1:
1913
+ var timeout = -1;
1914
+ break;
1915
+ case 2:
1916
+ timeout = 250;
1917
+ break;
1918
+ case 5:
1919
+ timeout = 1073741823;
1920
+ break;
1921
+ case 4:
1922
+ timeout = 1e4;
1923
+ break;
1924
+ default:
1925
+ timeout = 5e3;
1926
+ }
1927
+ timeout = options + timeout;
1928
+ priorityLevel = {
1929
+ id: taskIdCounter++,
1930
+ callback,
1931
+ priorityLevel,
1932
+ startTime: options,
1933
+ expirationTime: timeout,
1934
+ sortIndex: -1
1935
+ };
1936
+ options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
1937
+ return priorityLevel;
1947
1938
  };
1948
- exports.useTransition = function() {
1949
- return resolveDispatcher().useTransition();
1939
+ exports.unstable_shouldYield = shouldYieldToHost;
1940
+ exports.unstable_wrapCallback = function(callback) {
1941
+ var parentPriorityLevel = currentPriorityLevel;
1942
+ return function() {
1943
+ var previousPriorityLevel = currentPriorityLevel;
1944
+ currentPriorityLevel = parentPriorityLevel;
1945
+ try {
1946
+ return callback.apply(this, arguments);
1947
+ } finally {
1948
+ currentPriorityLevel = previousPriorityLevel;
1949
+ }
1950
+ };
1950
1951
  };
1951
- exports.version = "19.1.0";
1952
1952
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1953
1953
  }();
1954
1954
  }
1955
1955
  });
1956
1956
 
1957
- // ../../node_modules/react/index.js
1958
- var require_react = __commonJS({
1959
- "../../node_modules/react/index.js"(exports, module) {
1957
+ // ../../node_modules/scheduler/index.js
1958
+ var require_scheduler = __commonJS({
1959
+ "../../node_modules/scheduler/index.js"(exports, module) {
1960
1960
  "use strict";
1961
1961
  if (process.env.NODE_ENV === "production") {
1962
- module.exports = require_react_production();
1962
+ module.exports = require_scheduler_production();
1963
1963
  } else {
1964
- module.exports = require_react_development();
1964
+ module.exports = require_scheduler_development();
1965
1965
  }
1966
1966
  }
1967
1967
  });
@@ -1970,7 +1970,7 @@ var require_react = __commonJS({
1970
1970
  var require_react_dom_production = __commonJS({
1971
1971
  "../../node_modules/react-dom/cjs/react-dom.production.js"(exports) {
1972
1972
  "use strict";
1973
- var React7 = require_react();
1973
+ var React8 = require_react();
1974
1974
  function formatProdErrorMessage(code) {
1975
1975
  var url = "https://react.dev/errors/" + code;
1976
1976
  if (1 < arguments.length) {
@@ -2010,7 +2010,7 @@ var require_react_dom_production = __commonJS({
2010
2010
  implementation
2011
2011
  };
2012
2012
  }
2013
- var ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2013
+ var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2014
2014
  function getCrossOriginStringAs(as, input) {
2015
2015
  if ("font" === as) return "";
2016
2016
  if ("string" === typeof input)
@@ -2164,7 +2164,7 @@ var require_react_dom_development = __commonJS({
2164
2164
  return dispatcher;
2165
2165
  }
2166
2166
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2167
- var React7 = require_react(), Internals = {
2167
+ var React8 = require_react(), Internals = {
2168
2168
  d: {
2169
2169
  f: noop,
2170
2170
  r: function() {
@@ -2182,7 +2182,7 @@ var require_react_dom_development = __commonJS({
2182
2182
  },
2183
2183
  p: 0,
2184
2184
  findDOMNode: null
2185
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2185
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2186
2186
  "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
2187
2187
  "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
2188
2188
  );
@@ -2390,7 +2390,7 @@ var require_react_dom_client_production = __commonJS({
2390
2390
  "../../node_modules/react-dom/cjs/react-dom-client.production.js"(exports) {
2391
2391
  "use strict";
2392
2392
  var Scheduler = require_scheduler();
2393
- var React7 = require_react();
2393
+ var React8 = require_react();
2394
2394
  var ReactDOM = require_react_dom();
2395
2395
  function formatProdErrorMessage(code) {
2396
2396
  var url = "https://react.dev/errors/" + code;
@@ -2578,7 +2578,7 @@ var require_react_dom_client_production = __commonJS({
2578
2578
  return null;
2579
2579
  }
2580
2580
  var isArrayImpl = Array.isArray;
2581
- var ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2581
+ var ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2582
2582
  var ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
2583
2583
  var sharedNotPendingObject = {
2584
2584
  pending: false,
@@ -13570,7 +13570,7 @@ var require_react_dom_client_production = __commonJS({
13570
13570
  0 === i && attemptExplicitHydrationTarget(target);
13571
13571
  }
13572
13572
  };
13573
- var isomorphicReactPackageVersion$jscomp$inline_1785 = React7.version;
13573
+ var isomorphicReactPackageVersion$jscomp$inline_1785 = React8.version;
13574
13574
  if ("19.1.0" !== isomorphicReactPackageVersion$jscomp$inline_1785)
13575
13575
  throw Error(
13576
13576
  formatProdErrorMessage(
@@ -15021,7 +15021,7 @@ var require_react_dom_client_development = __commonJS({
15021
15021
  "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value);
15022
15022
  }
15023
15023
  function validateOptionProps(element, props) {
15024
- null == props.value && ("object" === typeof props.children && null !== props.children ? React7.Children.forEach(props.children, function(child) {
15024
+ null == props.value && ("object" === typeof props.children && null !== props.children ? React8.Children.forEach(props.children, function(child) {
15025
15025
  null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = true, console.error(
15026
15026
  "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
15027
15027
  ));
@@ -28603,14 +28603,14 @@ var require_react_dom_client_development = __commonJS({
28603
28603
  ));
28604
28604
  }
28605
28605
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
28606
- var Scheduler = require_scheduler(), React7 = require_react(), ReactDOM = require_react_dom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), 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");
28606
+ var Scheduler = require_scheduler(), React8 = require_react(), ReactDOM = require_react_dom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), 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"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), 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");
28607
28607
  Symbol.for("react.scope");
28608
28608
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
28609
28609
  Symbol.for("react.legacy_hidden");
28610
28610
  Symbol.for("react.tracing_marker");
28611
28611
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
28612
28612
  Symbol.for("react.view_transition");
28613
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
28613
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
28614
28614
  pending: false,
28615
28615
  data: null,
28616
28616
  method: null,
@@ -31324,7 +31324,7 @@ var require_react_dom_client_development = __commonJS({
31324
31324
  }
31325
31325
  };
31326
31326
  (function() {
31327
- var isomorphicReactPackageVersion = React7.version;
31327
+ var isomorphicReactPackageVersion = React8.version;
31328
31328
  if ("19.1.0" !== isomorphicReactPackageVersion)
31329
31329
  throw Error(
31330
31330
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch")
@@ -31720,20 +31720,20 @@ var require_react_jsx_runtime_development = __commonJS({
31720
31720
  function validateChildKeys(node) {
31721
31721
  "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
31722
31722
  }
31723
- var React7 = 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");
31723
+ var React8 = 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");
31724
31724
  Symbol.for("react.provider");
31725
- 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 = React7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
31725
+ 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 = React8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
31726
31726
  return null;
31727
31727
  };
31728
- React7 = {
31728
+ React8 = {
31729
31729
  "react-stack-bottom-frame": function(callStackForError) {
31730
31730
  return callStackForError();
31731
31731
  }
31732
31732
  };
31733
31733
  var specialPropKeyWarningShown;
31734
31734
  var didWarnAboutElementRef = {};
31735
- var unknownOwnerDebugStack = React7["react-stack-bottom-frame"].bind(
31736
- React7,
31735
+ var unknownOwnerDebugStack = React8["react-stack-bottom-frame"].bind(
31736
+ React8,
31737
31737
  UnknownOwner
31738
31738
  )();
31739
31739
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
@@ -31782,7 +31782,9 @@ var require_jsx_runtime = __commonJS({
31782
31782
  });
31783
31783
 
31784
31784
  // src/inspector/custom-element.tsx
31785
+ var import_react18 = __toESM(require_react(), 1);
31785
31786
  var import_client = __toESM(require_client(), 1);
31787
+ import { setup } from "goober";
31786
31788
  import { Account } from "jazz-tools";
31787
31789
 
31788
31790
  // src/inspector/viewer/new-app.tsx
@@ -34140,6 +34142,7 @@ function JazzInspectorInternal({
34140
34142
 
34141
34143
  // src/inspector/custom-element.tsx
34142
34144
  var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
34145
+ setup(import_react18.default.createElement);
34143
34146
  var JazzInspectorElement = class extends HTMLElement {
34144
34147
  constructor() {
34145
34148
  super(...arguments);
@@ -34197,10 +34200,10 @@ export {
34197
34200
  };
34198
34201
  /*! Bundled license information:
34199
34202
 
34200
- scheduler/cjs/scheduler.production.js:
34203
+ react/cjs/react.production.js:
34201
34204
  (**
34202
34205
  * @license React
34203
- * scheduler.production.js
34206
+ * react.production.js
34204
34207
  *
34205
34208
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34206
34209
  *
@@ -34208,10 +34211,10 @@ scheduler/cjs/scheduler.production.js:
34208
34211
  * LICENSE file in the root directory of this source tree.
34209
34212
  *)
34210
34213
 
34211
- scheduler/cjs/scheduler.development.js:
34214
+ react/cjs/react.development.js:
34212
34215
  (**
34213
34216
  * @license React
34214
- * scheduler.development.js
34217
+ * react.development.js
34215
34218
  *
34216
34219
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34217
34220
  *
@@ -34219,10 +34222,10 @@ scheduler/cjs/scheduler.development.js:
34219
34222
  * LICENSE file in the root directory of this source tree.
34220
34223
  *)
34221
34224
 
34222
- react/cjs/react.production.js:
34225
+ scheduler/cjs/scheduler.production.js:
34223
34226
  (**
34224
34227
  * @license React
34225
- * react.production.js
34228
+ * scheduler.production.js
34226
34229
  *
34227
34230
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34228
34231
  *
@@ -34230,10 +34233,10 @@ react/cjs/react.production.js:
34230
34233
  * LICENSE file in the root directory of this source tree.
34231
34234
  *)
34232
34235
 
34233
- react/cjs/react.development.js:
34236
+ scheduler/cjs/scheduler.development.js:
34234
34237
  (**
34235
34238
  * @license React
34236
- * react.development.js
34239
+ * scheduler.development.js
34237
34240
  *
34238
34241
  * Copyright (c) Meta Platforms, Inc. and affiliates.
34239
34242
  *
@@ -34307,4 +34310,4 @@ react/cjs/react-jsx-runtime.development.js:
34307
34310
  * LICENSE file in the root directory of this source tree.
34308
34311
  *)
34309
34312
  */
34310
- //# sourceMappingURL=custom-element-A7UAELEG.js.map
34313
+ //# sourceMappingURL=custom-element-35MDW4SW.js.map