PluginProbe
Gutenberg / 23.5.1
Gutenberg v23.5.1
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / vendors / react-19.js

react-19.js in Gutenberg 23.5.1, at build/scripts/vendors/react-19.js

1,024 lines 47.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var React = (() => {
2 var __getOwnPropNames = Object.getOwnPropertyNames;
3 var __commonJS = (cb, mod) => function __require() {
4 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5 };
6
7 // ../react-19/node_modules/react/cjs/react.development.js
8 var require_react_development = __commonJS({
9 "../react-19/node_modules/react/cjs/react.development.js"(exports, module) {
10 "use strict";
11 (function() {
12 function defineDeprecationWarning(methodName, info) {
13 Object.defineProperty(Component.prototype, methodName, {
14 get: function() {
15 console.warn(
16 "%s(...) is deprecated in plain JavaScript React classes. %s",
17 info[0],
18 info[1]
19 );
20 }
21 });
22 }
23 function getIteratorFn(maybeIterable) {
24 if (null === maybeIterable || "object" !== typeof maybeIterable)
25 return null;
26 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
27 return "function" === typeof maybeIterable ? maybeIterable : null;
28 }
29 function warnNoop(publicInstance, callerName) {
30 publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
31 var warningKey = publicInstance + "." + callerName;
32 didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
33 "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.",
34 callerName,
35 publicInstance
36 ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
37 }
38 function Component(props, context, updater) {
39 this.props = props;
40 this.context = context;
41 this.refs = emptyObject;
42 this.updater = updater || ReactNoopUpdateQueue;
43 }
44 function ComponentDummy() {
45 }
46 function PureComponent(props, context, updater) {
47 this.props = props;
48 this.context = context;
49 this.refs = emptyObject;
50 this.updater = updater || ReactNoopUpdateQueue;
51 }
52 function noop() {
53 }
54 function testStringCoercion(value) {
55 return "" + value;
56 }
57 function checkKeyStringCoercion(value) {
58 try {
59 testStringCoercion(value);
60 var JSCompiler_inline_result = false;
61 } catch (e) {
62 JSCompiler_inline_result = true;
63 }
64 if (JSCompiler_inline_result) {
65 JSCompiler_inline_result = console;
66 var JSCompiler_temp_const = JSCompiler_inline_result.error;
67 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
68 JSCompiler_temp_const.call(
69 JSCompiler_inline_result,
70 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
71 JSCompiler_inline_result$jscomp$0
72 );
73 return testStringCoercion(value);
74 }
75 }
76 function getComponentNameFromType(type) {
77 if (null == type) return null;
78 if ("function" === typeof type)
79 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
80 if ("string" === typeof type) return type;
81 switch (type) {
82 case REACT_FRAGMENT_TYPE:
83 return "Fragment";
84 case REACT_PROFILER_TYPE:
85 return "Profiler";
86 case REACT_STRICT_MODE_TYPE:
87 return "StrictMode";
88 case REACT_SUSPENSE_TYPE:
89 return "Suspense";
90 case REACT_SUSPENSE_LIST_TYPE:
91 return "SuspenseList";
92 case REACT_ACTIVITY_TYPE:
93 return "Activity";
94 }
95 if ("object" === typeof type)
96 switch ("number" === typeof type.tag && console.error(
97 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
98 ), type.$$typeof) {
99 case REACT_PORTAL_TYPE:
100 return "Portal";
101 case REACT_CONTEXT_TYPE:
102 return type.displayName || "Context";
103 case REACT_CONSUMER_TYPE:
104 return (type._context.displayName || "Context") + ".Consumer";
105 case REACT_FORWARD_REF_TYPE:
106 var innerType = type.render;
107 type = type.displayName;
108 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
109 return type;
110 case REACT_MEMO_TYPE:
111 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
112 case REACT_LAZY_TYPE:
113 innerType = type._payload;
114 type = type._init;
115 try {
116 return getComponentNameFromType(type(innerType));
117 } catch (x) {
118 }
119 }
120 return null;
121 }
122 function getTaskName(type) {
123 if (type === REACT_FRAGMENT_TYPE) return "<>";
124 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
125 return "<...>";
126 try {
127 var name = getComponentNameFromType(type);
128 return name ? "<" + name + ">" : "<...>";
129 } catch (x) {
130 return "<...>";
131 }
132 }
133 function getOwner() {
134 var dispatcher = ReactSharedInternals.A;
135 return null === dispatcher ? null : dispatcher.getOwner();
136 }
137 function UnknownOwner() {
138 return Error("react-stack-top-frame");
139 }
140 function hasValidKey(config) {
141 if (hasOwnProperty.call(config, "key")) {
142 var getter = Object.getOwnPropertyDescriptor(config, "key").get;
143 if (getter && getter.isReactWarning) return false;
144 }
145 return void 0 !== config.key;
146 }
147 function defineKeyPropWarningGetter(props, displayName) {
148 function warnAboutAccessingKey() {
149 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
150 "%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)",
151 displayName
152 ));
153 }
154 warnAboutAccessingKey.isReactWarning = true;
155 Object.defineProperty(props, "key", {
156 get: warnAboutAccessingKey,
157 configurable: true
158 });
159 }
160 function elementRefGetterWithDeprecationWarning() {
161 var componentName = getComponentNameFromType(this.type);
162 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
163 "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."
164 ));
165 componentName = this.props.ref;
166 return void 0 !== componentName ? componentName : null;
167 }
168 function ReactElement(type, key, props, owner, debugStack, debugTask) {
169 var refProp = props.ref;
170 type = {
171 $$typeof: REACT_ELEMENT_TYPE,
172 type,
173 key,
174 props,
175 _owner: owner
176 };
177 null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
178 enumerable: false,
179 get: elementRefGetterWithDeprecationWarning
180 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
181 type._store = {};
182 Object.defineProperty(type._store, "validated", {
183 configurable: false,
184 enumerable: false,
185 writable: true,
186 value: 0
187 });
188 Object.defineProperty(type, "_debugInfo", {
189 configurable: false,
190 enumerable: false,
191 writable: true,
192 value: null
193 });
194 Object.defineProperty(type, "_debugStack", {
195 configurable: false,
196 enumerable: false,
197 writable: true,
198 value: debugStack
199 });
200 Object.defineProperty(type, "_debugTask", {
201 configurable: false,
202 enumerable: false,
203 writable: true,
204 value: debugTask
205 });
206 Object.freeze && (Object.freeze(type.props), Object.freeze(type));
207 return type;
208 }
209 function cloneAndReplaceKey(oldElement, newKey) {
210 newKey = ReactElement(
211 oldElement.type,
212 newKey,
213 oldElement.props,
214 oldElement._owner,
215 oldElement._debugStack,
216 oldElement._debugTask
217 );
218 oldElement._store && (newKey._store.validated = oldElement._store.validated);
219 return newKey;
220 }
221 function validateChildKeys(node) {
222 isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
223 }
224 function isValidElement(object) {
225 return "object" === typeof object && null !== object && (object.$$typeof === REACT_ELEMENT_TYPE || object.$$typeof === REACT_LEGACY_ELEMENT_TYPE);
226 }
227 function escape(key) {
228 var escaperLookup = { "=": "=0", ":": "=2" };
229 return "$" + key.replace(/[=:]/g, function(match) {
230 return escaperLookup[match];
231 });
232 }
233 function getElementKey(element, index) {
234 return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
235 }
236 function resolveThenable(thenable) {
237 switch (thenable.status) {
238 case "fulfilled":
239 return thenable.value;
240 case "rejected":
241 throw thenable.reason;
242 default:
243 switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
244 function(fulfilledValue) {
245 "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
246 },
247 function(error) {
248 "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
249 }
250 )), thenable.status) {
251 case "fulfilled":
252 return thenable.value;
253 case "rejected":
254 throw thenable.reason;
255 }
256 }
257 throw thenable;
258 }
259 function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
260 var type = typeof children;
261 if ("undefined" === type || "boolean" === type) children = null;
262 var invokeCallback = false;
263 if (null === children) invokeCallback = true;
264 else
265 switch (type) {
266 case "bigint":
267 case "string":
268 case "number":
269 invokeCallback = true;
270 break;
271 case "object":
272 switch (children.$$typeof) {
273 case REACT_LEGACY_ELEMENT_TYPE: case REACT_ELEMENT_TYPE:
274 case REACT_PORTAL_TYPE:
275 invokeCallback = true;
276 break;
277 case REACT_LAZY_TYPE:
278 return invokeCallback = children._init, mapIntoArray(
279 invokeCallback(children._payload),
280 array,
281 escapedPrefix,
282 nameSoFar,
283 callback
284 );
285 }
286 }
287 if (invokeCallback) {
288 invokeCallback = children;
289 callback = callback(invokeCallback);
290 var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
291 isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
292 return c;
293 })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
294 callback,
295 escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
296 userProvidedKeyEscapeRegex,
297 "$&/"
298 ) + "/") + childKey
299 ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
300 return 1;
301 }
302 invokeCallback = 0;
303 childKey = "" === nameSoFar ? "." : nameSoFar + ":";
304 if (isArrayImpl(children))
305 for (var i = 0; i < children.length; i++)
306 nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
307 nameSoFar,
308 array,
309 escapedPrefix,
310 type,
311 callback
312 );
313 else if (i = getIteratorFn(children), "function" === typeof i)
314 for (i === children.entries && (didWarnAboutMaps || console.warn(
315 "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
316 ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
317 nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
318 nameSoFar,
319 array,
320 escapedPrefix,
321 type,
322 callback
323 );
324 else if ("object" === type) {
325 if ("function" === typeof children.then)
326 return mapIntoArray(
327 resolveThenable(children),
328 array,
329 escapedPrefix,
330 nameSoFar,
331 callback
332 );
333 array = String(children);
334 throw Error(
335 "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."
336 );
337 }
338 return invokeCallback;
339 }
340 function mapChildren(children, func, context) {
341 if (null == children) return children;
342 var result = [], count = 0;
343 mapIntoArray(children, result, "", "", function(child) {
344 return func.call(context, child, count++);
345 });
346 return result;
347 }
348 function lazyInitializer(payload) {
349 if (-1 === payload._status) {
350 var ioInfo = payload._ioInfo;
351 null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
352 ioInfo = payload._result;
353 var thenable = ioInfo();
354 thenable.then(
355 function(moduleObject) {
356 if (0 === payload._status || -1 === payload._status) {
357 payload._status = 1;
358 payload._result = moduleObject;
359 var _ioInfo = payload._ioInfo;
360 null != _ioInfo && (_ioInfo.end = performance.now());
361 void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
362 }
363 },
364 function(error) {
365 if (0 === payload._status || -1 === payload._status) {
366 payload._status = 2;
367 payload._result = error;
368 var _ioInfo2 = payload._ioInfo;
369 null != _ioInfo2 && (_ioInfo2.end = performance.now());
370 void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
371 }
372 }
373 );
374 ioInfo = payload._ioInfo;
375 if (null != ioInfo) {
376 ioInfo.value = thenable;
377 var displayName = thenable.displayName;
378 "string" === typeof displayName && (ioInfo.name = displayName);
379 }
380 -1 === payload._status && (payload._status = 0, payload._result = thenable);
381 }
382 if (1 === payload._status)
383 return ioInfo = payload._result, void 0 === ioInfo && console.error(
384 "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?",
385 ioInfo
386 ), "default" in ioInfo || console.error(
387 "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
388 ioInfo
389 ), ioInfo.default;
390 throw payload._result;
391 }
392 function resolveDispatcher() {
393 var dispatcher = ReactSharedInternals.H;
394 null === dispatcher && console.error(
395 "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."
396 );
397 return dispatcher;
398 }
399 function releaseAsyncTransition() {
400 ReactSharedInternals.asyncTransitions--;
401 }
402 function enqueueTask(task) {
403 if (null === enqueueTaskImpl)
404 try {
405 var requireString = ("require" + Math.random()).slice(0, 7);
406 enqueueTaskImpl = (module && module[requireString]).call(
407 module,
408 "timers"
409 ).setImmediate;
410 } catch (_err) {
411 enqueueTaskImpl = function(callback) {
412 false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
413 "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."
414 ));
415 var channel = new MessageChannel();
416 channel.port1.onmessage = callback;
417 channel.port2.postMessage(void 0);
418 };
419 }
420 return enqueueTaskImpl(task);
421 }
422 function aggregateErrors(errors) {
423 return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
424 }
425 function popActScope(prevActQueue, prevActScopeDepth) {
426 prevActScopeDepth !== actScopeDepth - 1 && console.error(
427 "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
428 );
429 actScopeDepth = prevActScopeDepth;
430 }
431 function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
432 var queue = ReactSharedInternals.actQueue;
433 if (null !== queue)
434 if (0 !== queue.length)
435 try {
436 flushActQueue(queue);
437 enqueueTask(function() {
438 return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
439 });
440 return;
441 } catch (error) {
442 ReactSharedInternals.thrownErrors.push(error);
443 }
444 else ReactSharedInternals.actQueue = null;
445 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
446 }
447 function flushActQueue(queue) {
448 if (!isFlushing) {
449 isFlushing = true;
450 var i = 0;
451 try {
452 for (; i < queue.length; i++) {
453 var callback = queue[i];
454 do {
455 ReactSharedInternals.didUsePromise = false;
456 var continuation = callback(false);
457 if (null !== continuation) {
458 if (ReactSharedInternals.didUsePromise) {
459 queue[i] = callback;
460 queue.splice(0, i);
461 return;
462 }
463 callback = continuation;
464 } else break;
465 } while (1);
466 }
467 queue.length = 0;
468 } catch (error) {
469 queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
470 } finally {
471 isFlushing = false;
472 }
473 }
474 }
475 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
476 var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
477 isMounted: function() {
478 return false;
479 },
480 enqueueForceUpdate: function(publicInstance) {
481 warnNoop(publicInstance, "forceUpdate");
482 },
483 enqueueReplaceState: function(publicInstance) {
484 warnNoop(publicInstance, "replaceState");
485 },
486 enqueueSetState: function(publicInstance) {
487 warnNoop(publicInstance, "setState");
488 }
489 }, assign = Object.assign, emptyObject = {};
490 Object.freeze(emptyObject);
491 Component.prototype.isReactComponent = {};
492 Component.prototype.setState = function(partialState, callback) {
493 if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
494 throw Error(
495 "takes an object of state variables to update or a function which returns an object of state variables."
496 );
497 this.updater.enqueueSetState(this, partialState, callback, "setState");
498 };
499 Component.prototype.forceUpdate = function(callback) {
500 this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
501 };
502 var deprecatedAPIs = {
503 isMounted: [
504 "isMounted",
505 "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
506 ],
507 replaceState: [
508 "replaceState",
509 "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
510 ]
511 };
512 for (fnName in deprecatedAPIs)
513 deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
514 ComponentDummy.prototype = Component.prototype;
515 deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
516 deprecatedAPIs.constructor = PureComponent;
517 assign(deprecatedAPIs, Component.prototype);
518 deprecatedAPIs.isPureReactComponent = true;
519 var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
520 H: null,
521 A: null,
522 T: null,
523 S: null,
524 actQueue: null,
525 asyncTransitions: 0,
526 isBatchingLegacy: false,
527 didScheduleLegacyUpdate: false,
528 didUsePromise: false,
529 thrownErrors: [],
530 getCurrentStack: null,
531 recentlyCreatedOwnerStacks: 0
532 }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
533 return null;
534 };
535 deprecatedAPIs = {
536 react_stack_bottom_frame: function(callStackForError) {
537 return callStackForError();
538 }
539 };
540 var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
541 var didWarnAboutElementRef = {};
542 var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
543 deprecatedAPIs,
544 UnknownOwner
545 )();
546 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
547 var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
548 if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
549 var event = new window.ErrorEvent("error", {
550 bubbles: true,
551 cancelable: true,
552 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
553 error
554 });
555 if (!window.dispatchEvent(event)) return;
556 } else if ("object" === typeof process && "function" === typeof process.emit) {
557 process.emit("uncaughtException", error);
558 return;
559 }
560 console.error(error);
561 }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
562 queueMicrotask(function() {
563 return queueMicrotask(callback);
564 });
565 } : enqueueTask;
566 deprecatedAPIs = Object.freeze({
567 __proto__: null,
568 c: function(size) {
569 return resolveDispatcher().useMemoCache(size);
570 }
571 });
572 var fnName = {
573 map: mapChildren,
574 forEach: function(children, forEachFunc, forEachContext) {
575 mapChildren(
576 children,
577 function() {
578 forEachFunc.apply(this, arguments);
579 },
580 forEachContext
581 );
582 },
583 count: function(children) {
584 var n = 0;
585 mapChildren(children, function() {
586 n++;
587 });
588 return n;
589 },
590 toArray: function(children) {
591 return mapChildren(children, function(child) {
592 return child;
593 }) || [];
594 },
595 only: function(children) {
596 if (!isValidElement(children))
597 throw Error(
598 "React.Children.only expected to receive a single React element child."
599 );
600 return children;
601 }
602 };
603 exports.Activity = REACT_ACTIVITY_TYPE;
604 exports.Children = fnName;
605 exports.Component = Component;
606 exports.Fragment = REACT_FRAGMENT_TYPE;
607 exports.Profiler = REACT_PROFILER_TYPE;
608 exports.PureComponent = PureComponent;
609 exports.StrictMode = REACT_STRICT_MODE_TYPE;
610 exports.Suspense = REACT_SUSPENSE_TYPE;
611 exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
612 exports.__COMPILER_RUNTIME = deprecatedAPIs;
613 exports.act = function(callback) {
614 var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
615 actScopeDepth++;
616 var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
617 try {
618 var result = callback();
619 } catch (error) {
620 ReactSharedInternals.thrownErrors.push(error);
621 }
622 if (0 < ReactSharedInternals.thrownErrors.length)
623 throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
624 if (null !== result && "object" === typeof result && "function" === typeof result.then) {
625 var thenable = result;
626 queueSeveralMicrotasks(function() {
627 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
628 "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 () => ...);"
629 ));
630 });
631 return {
632 then: function(resolve, reject) {
633 didAwaitActCall = true;
634 thenable.then(
635 function(returnValue) {
636 popActScope(prevActQueue, prevActScopeDepth);
637 if (0 === prevActScopeDepth) {
638 try {
639 flushActQueue(queue), enqueueTask(function() {
640 return recursivelyFlushAsyncActWork(
641 returnValue,
642 resolve,
643 reject
644 );
645 });
646 } catch (error$0) {
647 ReactSharedInternals.thrownErrors.push(error$0);
648 }
649 if (0 < ReactSharedInternals.thrownErrors.length) {
650 var _thrownError = aggregateErrors(
651 ReactSharedInternals.thrownErrors
652 );
653 ReactSharedInternals.thrownErrors.length = 0;
654 reject(_thrownError);
655 }
656 } else resolve(returnValue);
657 },
658 function(error) {
659 popActScope(prevActQueue, prevActScopeDepth);
660 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
661 ReactSharedInternals.thrownErrors
662 ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
663 }
664 );
665 }
666 };
667 }
668 var returnValue$jscomp$0 = result;
669 popActScope(prevActQueue, prevActScopeDepth);
670 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
671 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
672 "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(() => ...)"
673 ));
674 }), ReactSharedInternals.actQueue = null);
675 if (0 < ReactSharedInternals.thrownErrors.length)
676 throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
677 return {
678 then: function(resolve, reject) {
679 didAwaitActCall = true;
680 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
681 return recursivelyFlushAsyncActWork(
682 returnValue$jscomp$0,
683 resolve,
684 reject
685 );
686 })) : resolve(returnValue$jscomp$0);
687 }
688 };
689 };
690 exports.cache = function(fn) {
691 return function() {
692 return fn.apply(null, arguments);
693 };
694 };
695 exports.cacheSignal = function() {
696 return null;
697 };
698 exports.captureOwnerStack = function() {
699 var getCurrentStack = ReactSharedInternals.getCurrentStack;
700 return null === getCurrentStack ? null : getCurrentStack();
701 };
702 exports.cloneElement = function(element, config, children) {
703 if (null === element || void 0 === element)
704 throw Error(
705 "The argument must be a React element, but you passed " + element + "."
706 );
707 var props = assign({}, element.props), key = element.key, owner = element._owner;
708 if (null != config) {
709 var JSCompiler_inline_result;
710 a: {
711 if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
712 config,
713 "ref"
714 ).get) && JSCompiler_inline_result.isReactWarning) {
715 JSCompiler_inline_result = false;
716 break a;
717 }
718 JSCompiler_inline_result = void 0 !== config.ref;
719 }
720 JSCompiler_inline_result && (owner = getOwner());
721 hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
722 for (propName in config)
723 !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
724 }
725 var propName = arguments.length - 2;
726 if (1 === propName) props.children = children;
727 else if (1 < propName) {
728 JSCompiler_inline_result = Array(propName);
729 for (var i = 0; i < propName; i++)
730 JSCompiler_inline_result[i] = arguments[i + 2];
731 props.children = JSCompiler_inline_result;
732 }
733 props = ReactElement(
734 element.type,
735 key,
736 props,
737 owner,
738 element._debugStack,
739 element._debugTask
740 );
741 for (key = 2; key < arguments.length; key++)
742 validateChildKeys(arguments[key]);
743 return props;
744 };
745 exports.createContext = function(defaultValue) {
746 defaultValue = {
747 $$typeof: REACT_CONTEXT_TYPE,
748 _currentValue: defaultValue,
749 _currentValue2: defaultValue,
750 _threadCount: 0,
751 Provider: null,
752 Consumer: null
753 };
754 defaultValue.Provider = defaultValue;
755 defaultValue.Consumer = {
756 $$typeof: REACT_CONSUMER_TYPE,
757 _context: defaultValue
758 };
759 defaultValue._currentRenderer = null;
760 defaultValue._currentRenderer2 = null;
761 return defaultValue;
762 };
763 exports.createElement = function(type, config, children) {
764 for (var i = 2; i < arguments.length; i++)
765 validateChildKeys(arguments[i]);
766 i = {};
767 var key = null;
768 if (null != config)
769 for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
770 "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"
771 )), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
772 hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
773 var childrenLength = arguments.length - 2;
774 if (1 === childrenLength) i.children = children;
775 else if (1 < childrenLength) {
776 for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
777 childArray[_i] = arguments[_i + 2];
778 Object.freeze && Object.freeze(childArray);
779 i.children = childArray;
780 }
781 if (type && type.defaultProps)
782 for (propName in childrenLength = type.defaultProps, childrenLength)
783 void 0 === i[propName] && (i[propName] = childrenLength[propName]);
784 key && defineKeyPropWarningGetter(
785 i,
786 "function" === typeof type ? type.displayName || type.name || "Unknown" : type
787 );
788 var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
789 return ReactElement(
790 type,
791 key,
792 i,
793 getOwner(),
794 propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
795 propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
796 );
797 };
798 exports.createRef = function() {
799 var refObject = { current: null };
800 Object.seal(refObject);
801 return refObject;
802 };
803 exports.forwardRef = function(render) {
804 null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
805 "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
806 ) : "function" !== typeof render ? console.error(
807 "forwardRef requires a render function but was given %s.",
808 null === render ? "null" : typeof render
809 ) : 0 !== render.length && 2 !== render.length && console.error(
810 "forwardRef render functions accept exactly two parameters: props and ref. %s",
811 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
812 );
813 null != render && null != render.defaultProps && console.error(
814 "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
815 );
816 var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
817 Object.defineProperty(elementType, "displayName", {
818 enumerable: false,
819 configurable: true,
820 get: function() {
821 return ownName;
822 },
823 set: function(name) {
824 ownName = name;
825 render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
826 }
827 });
828 return elementType;
829 };
830 exports.isValidElement = isValidElement;
831 exports.lazy = function(ctor) {
832 ctor = { _status: -1, _result: ctor };
833 var lazyType = {
834 $$typeof: REACT_LAZY_TYPE,
835 _payload: ctor,
836 _init: lazyInitializer
837 }, ioInfo = {
838 name: "lazy",
839 start: -1,
840 end: -1,
841 value: null,
842 owner: null,
843 debugStack: Error("react-stack-top-frame"),
844 debugTask: console.createTask ? console.createTask("lazy()") : null
845 };
846 ctor._ioInfo = ioInfo;
847 lazyType._debugInfo = [{ awaited: ioInfo }];
848 return lazyType;
849 };
850 exports.memo = function(type, compare) {
851 null == type && console.error(
852 "memo: The first argument must be a component. Instead received: %s",
853 null === type ? "null" : typeof type
854 );
855 compare = {
856 $$typeof: REACT_MEMO_TYPE,
857 type,
858 compare: void 0 === compare ? null : compare
859 };
860 var ownName;
861 Object.defineProperty(compare, "displayName", {
862 enumerable: false,
863 configurable: true,
864 get: function() {
865 return ownName;
866 },
867 set: function(name) {
868 ownName = name;
869 type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
870 }
871 });
872 return compare;
873 };
874 exports.startTransition = function(scope) {
875 var prevTransition = ReactSharedInternals.T, currentTransition = {};
876 currentTransition._updatedFibers = /* @__PURE__ */ new Set();
877 ReactSharedInternals.T = currentTransition;
878 try {
879 var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
880 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
881 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
882 } catch (error) {
883 reportGlobalError(error);
884 } finally {
885 null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
886 "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."
887 )), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
888 "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
889 ), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
890 }
891 };
892 exports.unstable_useCacheRefresh = function() {
893 return resolveDispatcher().useCacheRefresh();
894 };
895 exports.use = function(usable) {
896 return resolveDispatcher().use(usable);
897 };
898 exports.useActionState = function(action, initialState, permalink) {
899 return resolveDispatcher().useActionState(
900 action,
901 initialState,
902 permalink
903 );
904 };
905 exports.useCallback = function(callback, deps) {
906 return resolveDispatcher().useCallback(callback, deps);
907 };
908 exports.useContext = function(Context) {
909 var dispatcher = resolveDispatcher();
910 Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
911 "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
912 );
913 return dispatcher.useContext(Context);
914 };
915 exports.useDebugValue = function(value, formatterFn) {
916 return resolveDispatcher().useDebugValue(value, formatterFn);
917 };
918 exports.useDeferredValue = function(value, initialValue) {
919 return resolveDispatcher().useDeferredValue(value, initialValue);
920 };
921 exports.useEffect = function(create, deps) {
922 null == create && console.warn(
923 "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
924 );
925 return resolveDispatcher().useEffect(create, deps);
926 };
927 exports.useEffectEvent = function(callback) {
928 return resolveDispatcher().useEffectEvent(callback);
929 };
930 exports.useId = function() {
931 return resolveDispatcher().useId();
932 };
933 exports.useImperativeHandle = function(ref, create, deps) {
934 return resolveDispatcher().useImperativeHandle(ref, create, deps);
935 };
936 exports.useInsertionEffect = function(create, deps) {
937 null == create && console.warn(
938 "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
939 );
940 return resolveDispatcher().useInsertionEffect(create, deps);
941 };
942 exports.useLayoutEffect = function(create, deps) {
943 null == create && console.warn(
944 "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
945 );
946 return resolveDispatcher().useLayoutEffect(create, deps);
947 };
948 exports.useMemo = function(create, deps) {
949 return resolveDispatcher().useMemo(create, deps);
950 };
951 exports.useOptimistic = function(passthrough, reducer) {
952 return resolveDispatcher().useOptimistic(passthrough, reducer);
953 };
954 exports.useReducer = function(reducer, initialArg, init) {
955 return resolveDispatcher().useReducer(reducer, initialArg, init);
956 };
957 exports.useRef = function(initialValue) {
958 return resolveDispatcher().useRef(initialValue);
959 };
960 exports.useState = function(initialState) {
961 return resolveDispatcher().useState(initialState);
962 };
963 exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
964 return resolveDispatcher().useSyncExternalStore(
965 subscribe,
966 getSnapshot,
967 getServerSnapshot
968 );
969 };
970 exports.useTransition = function() {
971 return resolveDispatcher().useTransition();
972 };
973 exports.version = "19.2.7";
974 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
975 })();
976 }
977 });
978
979 // ../react-19/node_modules/react/index.js
980 var require_react = __commonJS({
981 "../react-19/node_modules/react/index.js"(exports, module) {
982 "use strict";
983 if (false) {
984 module.exports = null;
985 } else {
986 module.exports = require_react_development();
987 }
988 }
989 });
990
991 // ../react-19/react.js
992 var require_react2 = __commonJS({
993 "../react-19/react.js"(exports, module) {
994 module.exports = {
995 ...require_react(),
996 // Polyfill React 18 internals for older versions of `react/jsx-runtime`.
997 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
998 ReactCurrentOwner: { current: null },
999 ReactCurrentDispatcher: { current: null },
1000 ReactDebugCurrentFrame: {
1001 setExtraStackFrame: () => {
1002 },
1003 getStackAddendum: () => ""
1004 }
1005 }
1006 };
1007 }
1008 });
1009 return require_react2();
1010 })();
1011 /*! Bundled license information:
1012
1013 react/cjs/react.development.js:
1014 (**
1015 * @license React
1016 * react.development.js
1017 *
1018 * Copyright (c) Meta Platforms, Inc. and affiliates.
1019 *
1020 * This source code is licensed under the MIT license found in the
1021 * LICENSE file in the root directory of this source tree.
1022 *)
1023 */
1024