vendor: 7,833 bytes, lines 1-187
1import { t as __commonJSMin } from "/node_modules/.vite/deps/chunk-C-Qwzh9l.js?v=42030f97"; 2import { t as require_react } from "/node_modules/.vite/deps/react.js?v=42030f97"; 3import { t as require_react_dom } from "/node_modules/.vite/deps/react-dom.js?v=42030f97"; 4//#region node_modules/scheduler/cjs/scheduler.development.js 5/** 6* @license React 7* scheduler.development.js 8* 9* Copyright (c) Meta Platforms, Inc. and affiliates. 10* 11* This source code is licensed under the MIT license found in the 12* LICENSE file in the root directory of this source tree. 13*/ 14var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) => { 15 (function() { 16 function performWorkUntilDeadline() { 17 needsPaint = !1; 18 if (isMessageLoopRunning) { 19 var currentTime = exports.unstable_now(); 20 startTime = currentTime; 21 var hasMoreWork = !0; 22 try { 23 a: { 24 isHostCallbackScheduled = !1; 25 isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1); 26 isPerformingWork = !0; 27 var previousPriorityLevel = currentPriorityLevel; 28 try { 29 b: { 30 advanceTimers(currentTime); 31 for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) { 32 var callback = currentTask.callback; 33 if ("function" === typeof callback) { 34 currentTask.callback = null; 35 currentPriorityLevel = currentTask.priorityLevel; 36 var continuationCallback = callback(currentTask.expirationTime <= currentTime); 37 currentTime = exports.unstable_now(); 38 if ("function" === typeof continuationCallback) { 39 currentTask.callback = continuationCallback; 40 advanceTimers(currentTime); 41 hasMoreWork = !0; 42 break b; 43 } 44 currentTask === peek(taskQueue) && pop(taskQueue); 45 advanceTimers(currentTime); 46 } else pop(taskQueue); 47 currentTask = peek(taskQueue); 48 } 49 if (null !== currentTask) hasMoreWork = !0; 50 else { 51 var firstTimer = peek(timerQueue); 52 null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); 53 hasMoreWork = !1; 54 } 55 } 56 break a; 57 } finally { 58 currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1; 59 } 60 hasMoreWork = void 0; 61 } 62 } finally { 63 hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1; 64 } 65 } 66 } 67 function push(heap, node) { 68 var index = heap.length; 69 heap.push(node); 70 a: for (; 0 < index;) { 71 var parentIndex = index - 1 >>> 1, parent = heap[parentIndex]; 72 if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex; 73 else break a; 74 } 75 } 76 function peek(heap) { 77 return 0 === heap.length ? null : heap[0]; 78 } 79 function pop(heap) { 80 if (0 === heap.length) return null; 81 var first = heap[0], last = heap.pop(); 82 if (last !== first) { 83 heap[0] = last; 84 a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) { 85 var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; 86 if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex); 87 else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex; 88 else break a; 89 } 90 } 91 return first; 92 } 93 function compare(a, b) { 94 var diff = a.sortIndex - b.sortIndex; 95 return 0 !== diff ? diff : a.id - b.id; 96 } 97 function advanceTimers(currentTime) { 98 for (var timer = peek(timerQueue); null !== timer;) { 99 if (null === timer.callback) pop(timerQueue); 100 else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer); 101 else break; 102 timer = peek(timerQueue); 103 } 104 } 105 function handleTimeout(currentTime) { 106 isHostTimeoutScheduled = !1; 107 advanceTimers(currentTime); 108 if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()); 109 else { 110 var firstTimer = peek(timerQueue); 111 null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); 112 } 113 } 114 function shouldYieldToHost() { 115 return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0; 116 } 117 function requestHostTimeout(callback, ms) { 118 taskTimeoutID = localSetTimeout(function() { 119 callback(exports.unstable_now()); 120 }, ms); 121 } 122 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 123 exports.unstable_now = void 0; 124 if ("object" === typeof performance && "function" === typeof performance.now) { 125 var localPerformance = performance; 126 exports.unstable_now = function() { 127 return localPerformance.now(); 128 }; 129 } else { 130 var localDate = Date, initialTime = localDate.now(); 131 exports.unstable_now = function() { 132 return localDate.now() - initialTime; 133 }; 134 } 135 var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1; 136 if ("function" === typeof localSetImmediate) var schedulePerformWorkUntilDeadline = function() { 137 localSetImmediate(performWorkUntilDeadline); 138 }; 139 else if ("undefined" !== typeof MessageChannel) { 140 var channel = new MessageChannel(), port = channel.port2; 141 channel.port1.onmessage = performWorkUntilDeadline; 142 schedulePerformWorkUntilDeadline = function() { 143 port.postMessage(null); 144 }; 145 } else schedulePerformWorkUntilDeadline = function() { 146 localSetTimeout(performWorkUntilDeadline, 0); 147 }; 148 exports.unstable_IdlePriority = 5; 149 exports.unstable_ImmediatePriority = 1; 150 exports.unstable_LowPriority = 4; 151 exports.unstable_NormalPriority = 3; 152 exports.unstable_Profiling = null; 153 exports.unstable_UserBlockingPriority = 2; 154 exports.unstable_cancelCallback = function(task) { 155 task.callback = null; 156 }; 157 exports.unstable_forceFrameRate = function(fps) { 158 0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5; 159 }; 160 exports.unstable_getCurrentPriorityLevel = function() { 161 return currentPriorityLevel; 162 }; 163 exports.unstable_next = function(eventHandler) { 164 switch (currentPriorityLevel) { 165 case 1: 166 case 2: 167 case 3: 168 var priorityLevel = 3; 169 break; 170 default: priorityLevel = currentPriorityLevel; 171 } 172 var previousPriorityLevel = currentPriorityLevel; 173 currentPriorityLevel = priorityLevel; 174 try { 175 return eventHandler(); 176 } finally { 177 currentPriorityLevel = previousPriorityLevel; 178 } 179 }; 180 exports.unstable_requestPaint = function() { 181 needsPaint = !0; 182 }; 183 exports.unstable_runWithPriority = function(priorityLevel, eventHandler) { 184 switch (priorityLevel) { 185 case 1: 186 case 2: 187 case 3:
vendor: 4,600 bytes, lines 188-300
188 case 4: 189 case 5: break; 190 default: priorityLevel = 3; 191 } 192 var previousPriorityLevel = currentPriorityLevel; 193 currentPriorityLevel = priorityLevel; 194 try { 195 return eventHandler(); 196 } finally { 197 currentPriorityLevel = previousPriorityLevel; 198 } 199 }; 200 exports.unstable_scheduleCallback = function(priorityLevel, callback, options) { 201 var currentTime = exports.unstable_now(); 202 "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime; 203 switch (priorityLevel) { 204 case 1: 205 var timeout = -1; 206 break; 207 case 2: 208 timeout = 250; 209 break; 210 case 5: 211 timeout = 1073741823; 212 break; 213 case 4: 214 timeout = 1e4; 215 break; 216 default: timeout = 5e3; 217 } 218 timeout = options + timeout; 219 priorityLevel = { 220 id: taskIdCounter++, 221 callback, 222 priorityLevel, 223 startTime: options, 224 expirationTime: timeout, 225 sortIndex: -1 226 }; 227 options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()))); 228 return priorityLevel; 229 }; 230 exports.unstable_shouldYield = shouldYieldToHost; 231 exports.unstable_wrapCallback = function(callback) { 232 var parentPriorityLevel = currentPriorityLevel; 233 return function() { 234 var previousPriorityLevel = currentPriorityLevel; 235 currentPriorityLevel = parentPriorityLevel; 236 try { 237 return callback.apply(this, arguments); 238 } finally { 239 currentPriorityLevel = previousPriorityLevel; 240 } 241 }; 242 }; 243 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 244 })(); 245})); 246//#endregion 247//#region node_modules/scheduler/index.js 248var require_scheduler = /* @__PURE__ */ __commonJSMin(((exports, module) => { 249 module.exports = require_scheduler_development(); 250})); 251//#endregion 252//#region node_modules/react-dom/cjs/react-dom-client.development.js 253/** 254* @license React 255* react-dom-client.development.js 256* 257* Copyright (c) Meta Platforms, Inc. and affiliates. 258* 259* This source code is licensed under the MIT license found in the 260* LICENSE file in the root directory of this source tree. 261*/ 262var require_react_dom_client_development = /* @__PURE__ */ __commonJSMin(((exports) => { 263 (function() { 264 function findHook(fiber, id) { 265 for (fiber = fiber.memoizedState; null !== fiber && 0 < id;) fiber = fiber.next, id--; 266 return fiber; 267 } 268 function copyWithSetImpl(obj, path, index, value) { 269 if (index >= path.length) return value; 270 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 271 updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); 272 return updated; 273 } 274 function copyWithRename(obj, oldPath, newPath) { 275 if (oldPath.length !== newPath.length) console.warn("copyWithRename() expects paths of the same length"); 276 else { 277 for (var i = 0; i < newPath.length - 1; i++) if (oldPath[i] !== newPath[i]) { 278 console.warn("copyWithRename() expects paths to be the same except for the deepest key"); 279 return; 280 } 281 return copyWithRenameImpl(obj, oldPath, newPath, 0); 282 } 283 } 284 function copyWithRenameImpl(obj, oldPath, newPath, index) { 285 var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 286 index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl(obj[oldKey], oldPath, newPath, index + 1); 287 return updated; 288 } 289 function copyWithDeleteImpl(obj, path, index) { 290 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 291 if (index + 1 === path.length) return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated; 292 updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); 293 return updated; 294 } 295 function shouldSuspendImpl() { 296 return !1; 297 } 298 function shouldErrorImpl() { 299 return null; 300 }
vendor: 25,811 bytes, lines 301-909
301 function warnInvalidHookAccess() { 302 console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"); 303 } 304 function warnInvalidContextAccess() { 305 console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 306 } 307 function noop() {} 308 function warnForMissingKey() {} 309 function setToSortedString(set) { 310 var array = []; 311 set.forEach(function(value) { 312 array.push(value); 313 }); 314 return array.sort().join(", "); 315 } 316 function createFiber(tag, pendingProps, key, mode) { 317 return new FiberNode(tag, pendingProps, key, mode); 318 } 319 function scheduleRoot(root, element) { 320 root.context === emptyContextObject && (updateContainerImpl(root.current, 2, element, root, null, null), flushSyncWork$1()); 321 } 322 function scheduleRefresh(root, update) { 323 if (null !== resolveFamily) { 324 var staleFamilies = update.staleFamilies; 325 update = update.updatedFamilies; 326 flushPendingEffects(); 327 scheduleFibersWithFamiliesRecursively(root.current, update, staleFamilies); 328 flushSyncWork$1(); 329 } 330 } 331 function setRefreshHandler(handler) { 332 resolveFamily = handler; 333 } 334 function isValidContainer(node) { 335 return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType); 336 } 337 function getNearestMountedFiber(fiber) { 338 var node = fiber, nearestMounted = fiber; 339 if (fiber.alternate) for (; node.return;) node = node.return; 340 else { 341 fiber = node; 342 do 343 node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; 344 while (fiber); 345 } 346 return 3 === node.tag ? nearestMounted : null; 347 } 348 function getSuspenseInstanceFromFiber(fiber) { 349 if (13 === fiber.tag) { 350 var suspenseState = fiber.memoizedState; 351 null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState)); 352 if (null !== suspenseState) return suspenseState.dehydrated; 353 } 354 return null; 355 } 356 function getActivityInstanceFromFiber(fiber) { 357 if (31 === fiber.tag) { 358 var activityState = fiber.memoizedState; 359 null === activityState && (fiber = fiber.alternate, null !== fiber && (activityState = fiber.memoizedState)); 360 if (null !== activityState) return activityState.dehydrated; 361 } 362 return null; 363 } 364 function assertIsMounted(fiber) { 365 if (getNearestMountedFiber(fiber) !== fiber) throw Error("Unable to find node on an unmounted component."); 366 } 367 function findCurrentFiberUsingSlowPath(fiber) { 368 var alternate = fiber.alternate; 369 if (!alternate) { 370 alternate = getNearestMountedFiber(fiber); 371 if (null === alternate) throw Error("Unable to find node on an unmounted component."); 372 return alternate !== fiber ? null : fiber; 373 } 374 for (var a = fiber, b = alternate;;) { 375 var parentA = a.return; 376 if (null === parentA) break; 377 var parentB = parentA.alternate; 378 if (null === parentB) { 379 b = parentA.return; 380 if (null !== b) { 381 a = b; 382 continue; 383 } 384 break; 385 } 386 if (parentA.child === parentB.child) { 387 for (parentB = parentA.child; parentB;) { 388 if (parentB === a) return assertIsMounted(parentA), fiber; 389 if (parentB === b) return assertIsMounted(parentA), alternate; 390 parentB = parentB.sibling; 391 } 392 throw Error("Unable to find node on an unmounted component."); 393 } 394 if (a.return !== b.return) a = parentA, b = parentB; 395 else { 396 for (var didFindChild = !1, _child = parentA.child; _child;) { 397 if (_child === a) { 398 didFindChild = !0; 399 a = parentA; 400 b = parentB; 401 break; 402 } 403 if (_child === b) { 404 didFindChild = !0; 405 b = parentA; 406 a = parentB; 407 break; 408 } 409 _child = _child.sibling; 410 } 411 if (!didFindChild) { 412 for (_child = parentB.child; _child;) { 413 if (_child === a) { 414 didFindChild = !0; 415 a = parentB; 416 b = parentA; 417 break; 418 } 419 if (_child === b) { 420 didFindChild = !0; 421 b = parentB; 422 a = parentA; 423 break; 424 } 425 _child = _child.sibling; 426 } 427 if (!didFindChild) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); 428 } 429 } 430 if (a.alternate !== b) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); 431 } 432 if (3 !== a.tag) throw Error("Unable to find node on an unmounted component."); 433 return a.stateNode.current === a ? fiber : alternate; 434 } 435 function findCurrentHostFiberImpl(node) { 436 var tag = node.tag; 437 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; 438 for (node = node.child; null !== node;) { 439 tag = findCurrentHostFiberImpl(node); 440 if (null !== tag) return tag; 441 node = node.sibling; 442 } 443 return null; 444 } 445 function getIteratorFn(maybeIterable) { 446 if (null === maybeIterable || "object" !== typeof maybeIterable) return null; 447 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; 448 return "function" === typeof maybeIterable ? maybeIterable : null; 449 } 450 function getComponentNameFromType(type) { 451 if (null == type) return null; 452 if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 453 if ("string" === typeof type) return type; 454 switch (type) { 455 case REACT_FRAGMENT_TYPE: return "Fragment"; 456 case REACT_PROFILER_TYPE: return "Profiler"; 457 case REACT_STRICT_MODE_TYPE: return "StrictMode"; 458 case REACT_SUSPENSE_TYPE: return "Suspense"; 459 case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; 460 case REACT_ACTIVITY_TYPE: return "Activity"; 461 } 462 if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) { 463 case REACT_PORTAL_TYPE: return "Portal"; 464 case REACT_CONTEXT_TYPE: return type.displayName || "Context"; 465 case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer"; 466 case REACT_FORWARD_REF_TYPE: 467 var innerType = type.render; 468 type = type.displayName; 469 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 470 return type; 471 case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 472 case REACT_LAZY_TYPE: 473 innerType = type._payload; 474 type = type._init; 475 try { 476 return getComponentNameFromType(type(innerType)); 477 } catch (x) {} 478 } 479 return null; 480 } 481 function getComponentNameFromOwner(owner) { 482 return "number" === typeof owner.tag ? getComponentNameFromFiber(owner) : "string" === typeof owner.name ? owner.name : null; 483 } 484 function getComponentNameFromFiber(fiber) { 485 var type = fiber.type; 486 switch (fiber.tag) { 487 case 31: return "Activity"; 488 case 24: return "Cache"; 489 case 9: return (type._context.displayName || "Context") + ".Consumer"; 490 case 10: return type.displayName || "Context"; 491 case 18: return "DehydratedFragment"; 492 case 11: return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); 493 case 7: return "Fragment"; 494 case 26: 495 case 27: 496 case 5: return type; 497 case 4: return "Portal"; 498 case 3: return "Root"; 499 case 6: return "Text"; 500 case 16: return getComponentNameFromType(type); 501 case 8: return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; 502 case 22: return "Offscreen"; 503 case 12: return "Profiler"; 504 case 21: return "Scope"; 505 case 13: return "Suspense"; 506 case 19: return "SuspenseList"; 507 case 25: return "TracingMarker"; 508 case 1: 509 case 0: 510 case 14: 511 case 15: 512 if ("function" === typeof type) return type.displayName || type.name || null; 513 if ("string" === typeof type) return type; 514 break; 515 case 29: 516 type = fiber._debugInfo; 517 if (null != type) { 518 for (var i = type.length - 1; 0 <= i; i--) if ("string" === typeof type[i].name) return type[i].name; 519 } 520 if (null !== fiber.return) return getComponentNameFromFiber(fiber.return); 521 } 522 return null; 523 } 524 function createCursor(defaultValue) { 525 return { current: defaultValue }; 526 } 527 function pop(cursor, fiber) { 528 0 > index$jscomp$0 ? console.error("Unexpected pop.") : (fiber !== fiberStack[index$jscomp$0] && console.error("Unexpected Fiber popped."), cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, fiberStack[index$jscomp$0] = null, index$jscomp$0--); 529 } 530 function push(cursor, value, fiber) { 531 index$jscomp$0++; 532 valueStack[index$jscomp$0] = cursor.current; 533 fiberStack[index$jscomp$0] = fiber; 534 cursor.current = value; 535 } 536 function requiredContext(c) { 537 null === c && console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); 538 return c; 539 } 540 function pushHostContainer(fiber, nextRootInstance) { 541 push(rootInstanceStackCursor, nextRootInstance, fiber); 542 push(contextFiberStackCursor, fiber, fiber); 543 push(contextStackCursor, null, fiber); 544 var nextRootContext = nextRootInstance.nodeType; 545 switch (nextRootContext) { 546 case 9: 547 case 11: 548 nextRootContext = 9 === nextRootContext ? "#document" : "#fragment"; 549 nextRootInstance = (nextRootInstance = nextRootInstance.documentElement) ? (nextRootInstance = nextRootInstance.namespaceURI) ? getOwnHostContext(nextRootInstance) : HostContextNamespaceNone : HostContextNamespaceNone; 550 break; 551 default: if (nextRootContext = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI) nextRootInstance = getOwnHostContext(nextRootInstance), nextRootInstance = getChildHostContextProd(nextRootInstance, nextRootContext); 552 else switch (nextRootContext) { 553 case "svg": 554 nextRootInstance = HostContextNamespaceSvg; 555 break; 556 case "math": 557 nextRootInstance = HostContextNamespaceMath; 558 break; 559 default: nextRootInstance = HostContextNamespaceNone; 560 } 561 } 562 nextRootContext = nextRootContext.toLowerCase(); 563 nextRootContext = updatedAncestorInfoDev(null, nextRootContext); 564 nextRootContext = { 565 context: nextRootInstance, 566 ancestorInfo: nextRootContext 567 }; 568 pop(contextStackCursor, fiber); 569 push(contextStackCursor, nextRootContext, fiber); 570 } 571 function popHostContainer(fiber) { 572 pop(contextStackCursor, fiber); 573 pop(contextFiberStackCursor, fiber); 574 pop(rootInstanceStackCursor, fiber); 575 } 576 function getHostContext() { 577 return requiredContext(contextStackCursor.current); 578 } 579 function pushHostContext(fiber) { 580 null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber, fiber); 581 var context = requiredContext(contextStackCursor.current); 582 var type = fiber.type; 583 var nextContext = getChildHostContextProd(context.context, type); 584 type = updatedAncestorInfoDev(context.ancestorInfo, type); 585 nextContext = { 586 context: nextContext, 587 ancestorInfo: type 588 }; 589 context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor, nextContext, fiber)); 590 } 591 function popHostContext(fiber) { 592 contextFiberStackCursor.current === fiber && (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); 593 hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor, fiber), HostTransitionContext._currentValue = NotPendingTransition); 594 } 595 function disabledLog() {} 596 function disableLogs() { 597 if (0 === disabledDepth) { 598 prevLog = console.log; 599 prevInfo = console.info; 600 prevWarn = console.warn; 601 prevError = console.error; 602 prevGroup = console.group; 603 prevGroupCollapsed = console.groupCollapsed; 604 prevGroupEnd = console.groupEnd; 605 var props = { 606 configurable: !0, 607 enumerable: !0, 608 value: disabledLog, 609 writable: !0 610 }; 611 Object.defineProperties(console, { 612 info: props, 613 log: props, 614 warn: props, 615 error: props, 616 group: props, 617 groupCollapsed: props, 618 groupEnd: props 619 }); 620 } 621 disabledDepth++; 622 } 623 function reenableLogs() { 624 disabledDepth--; 625 if (0 === disabledDepth) { 626 var props = { 627 configurable: !0, 628 enumerable: !0, 629 writable: !0 630 }; 631 Object.defineProperties(console, { 632 log: assign({}, props, { value: prevLog }), 633 info: assign({}, props, { value: prevInfo }), 634 warn: assign({}, props, { value: prevWarn }), 635 error: assign({}, props, { value: prevError }), 636 group: assign({}, props, { value: prevGroup }), 637 groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), 638 groupEnd: assign({}, props, { value: prevGroupEnd }) 639 }); 640 } 641 0 > disabledDepth && console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); 642 } 643 function formatOwnerStack(error) { 644 var prevPrepareStackTrace = Error.prepareStackTrace; 645 Error.prepareStackTrace = void 0; 646 error = error.stack; 647 Error.prepareStackTrace = prevPrepareStackTrace; 648 error.startsWith("Error: react-stack-top-frame\n") && (error = error.slice(29)); 649 prevPrepareStackTrace = error.indexOf("\n"); 650 -1 !== prevPrepareStackTrace && (error = error.slice(prevPrepareStackTrace + 1)); 651 prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame"); 652 -1 !== prevPrepareStackTrace && (prevPrepareStackTrace = error.lastIndexOf("\n", prevPrepareStackTrace)); 653 if (-1 !== prevPrepareStackTrace) error = error.slice(0, prevPrepareStackTrace); 654 else return ""; 655 return error; 656 } 657 function describeBuiltInComponentFrame(name) { 658 if (void 0 === prefix) try { 659 throw Error(); 660 } catch (x) { 661 var match = x.stack.trim().match(/\n( *(at )?)/); 662 prefix = match && match[1] || ""; 663 suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; 664 } 665 return "\n" + prefix + name + suffix; 666 } 667 function describeNativeComponentFrame(fn, construct) { 668 if (!fn || reentry) return ""; 669 var frame = componentFrameCache.get(fn); 670 if (void 0 !== frame) return frame; 671 reentry = !0; 672 frame = Error.prepareStackTrace; 673 Error.prepareStackTrace = void 0; 674 var previousDispatcher = null; 675 previousDispatcher = ReactSharedInternals.H; 676 ReactSharedInternals.H = null; 677 disableLogs(); 678 try { 679 var RunInRootFrame = { DetermineComponentFrameRoot: function() { 680 try { 681 if (construct) { 682 var Fake = function() { 683 throw Error(); 684 }; 685 Object.defineProperty(Fake.prototype, "props", { set: function() { 686 throw Error(); 687 } }); 688 if ("object" === typeof Reflect && Reflect.construct) { 689 try { 690 Reflect.construct(Fake, []); 691 } catch (x) { 692 var control = x; 693 } 694 Reflect.construct(fn, [], Fake); 695 } else { 696 try { 697 Fake.call(); 698 } catch (x$0) { 699 control = x$0; 700 } 701 fn.call(Fake.prototype); 702 } 703 } else { 704 try { 705 throw Error(); 706 } catch (x$1) { 707 control = x$1; 708 } 709 (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {}); 710 } 711 } catch (sample) { 712 if (sample && control && "string" === typeof sample.stack) return [sample.stack, control.stack]; 713 } 714 return [null, null]; 715 } }; 716 RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; 717 var namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, "name"); 718 namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" }); 719 var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1]; 720 if (sampleStack && controlStack) { 721 var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n"); 722 for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes("DetermineComponentFrameRoot");) namePropDescriptor++; 723 for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes("DetermineComponentFrameRoot");) _RunInRootFrame$Deter++; 724 if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length) for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter];) _RunInRootFrame$Deter--; 725 for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--) if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 726 if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) do 727 if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 728 var _frame = "\n" + sampleLines[namePropDescriptor].replace(" at new ", " at "); 729 fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)); 730 "function" === typeof fn && componentFrameCache.set(fn, _frame); 731 return _frame; 732 } 733 while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); 734 break; 735 } 736 } 737 } finally { 738 reentry = !1, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame; 739 } 740 sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : ""; 741 "function" === typeof fn && componentFrameCache.set(fn, sampleLines); 742 return sampleLines; 743 } 744 function describeFiber(fiber, childFiber) { 745 switch (fiber.tag) { 746 case 26: 747 case 27: 748 case 5: return describeBuiltInComponentFrame(fiber.type); 749 case 16: return describeBuiltInComponentFrame("Lazy"); 750 case 13: return fiber.child !== childFiber && null !== childFiber ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense"); 751 case 19: return describeBuiltInComponentFrame("SuspenseList"); 752 case 0: 753 case 15: return describeNativeComponentFrame(fiber.type, !1); 754 case 11: return describeNativeComponentFrame(fiber.type.render, !1); 755 case 1: return describeNativeComponentFrame(fiber.type, !0); 756 case 31: return describeBuiltInComponentFrame("Activity"); 757 default: return ""; 758 } 759 } 760 function getStackByFiberInDevAndProd(workInProgress) { 761 try { 762 var info = "", previous = null; 763 do { 764 info += describeFiber(workInProgress, previous); 765 var debugInfo = workInProgress._debugInfo; 766 if (debugInfo) for (var i = debugInfo.length - 1; 0 <= i; i--) { 767 var entry = debugInfo[i]; 768 if ("string" === typeof entry.name) { 769 var JSCompiler_temp_const = info; 770 a: { 771 var name = entry.name, env = entry.env, location = entry.debugLocation; 772 if (null != location) { 773 var childStack = formatOwnerStack(location), idx = childStack.lastIndexOf("\n"), lastLine = -1 === idx ? childStack : childStack.slice(idx + 1); 774 if (-1 !== lastLine.indexOf(name)) { 775 var JSCompiler_inline_result = "\n" + lastLine; 776 break a; 777 } 778 } 779 JSCompiler_inline_result = describeBuiltInComponentFrame(name + (env ? " [" + env + "]" : "")); 780 } 781 info = JSCompiler_temp_const + JSCompiler_inline_result; 782 } 783 } 784 previous = workInProgress; 785 workInProgress = workInProgress.return; 786 } while (workInProgress); 787 return info; 788 } catch (x) { 789 return "\nError generating stack: " + x.message + "\n" + x.stack; 790 } 791 } 792 function describeFunctionComponentFrameWithoutLineNumber(fn) { 793 return (fn = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(fn) : ""; 794 } 795 function getCurrentFiberOwnerNameInDevOrNull() { 796 if (null === current) return null; 797 var owner = current._debugOwner; 798 return null != owner ? getComponentNameFromOwner(owner) : null; 799 } 800 function getCurrentFiberStackInDev() { 801 if (null === current) return ""; 802 var workInProgress = current; 803 try { 804 var info = ""; 805 6 === workInProgress.tag && (workInProgress = workInProgress.return); 806 switch (workInProgress.tag) { 807 case 26: 808 case 27: 809 case 5: 810 info += describeBuiltInComponentFrame(workInProgress.type); 811 break; 812 case 13: 813 info += describeBuiltInComponentFrame("Suspense"); 814 break; 815 case 19: 816 info += describeBuiltInComponentFrame("SuspenseList"); 817 break; 818 case 31: 819 info += describeBuiltInComponentFrame("Activity"); 820 break; 821 case 30: 822 case 0: 823 case 15: 824 case 1: 825 workInProgress._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber(workInProgress.type)); 826 break; 827 case 11: workInProgress._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber(workInProgress.type.render)); 828 } 829 for (; workInProgress;) if ("number" === typeof workInProgress.tag) { 830 var fiber = workInProgress; 831 workInProgress = fiber._debugOwner; 832 var debugStack = fiber._debugStack; 833 if (workInProgress && debugStack) { 834 var formattedStack = formatOwnerStack(debugStack); 835 "" !== formattedStack && (info += "\n" + formattedStack); 836 } 837 } else if (null != workInProgress.debugStack) { 838 var ownerStack = workInProgress.debugStack; 839 (workInProgress = workInProgress.owner) && ownerStack && (info += "\n" + formatOwnerStack(ownerStack)); 840 } else break; 841 var JSCompiler_inline_result = info; 842 } catch (x) { 843 JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; 844 } 845 return JSCompiler_inline_result; 846 } 847 function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { 848 var previousFiber = current; 849 setCurrentFiber(fiber); 850 try { 851 return null !== fiber && fiber._debugTask ? fiber._debugTask.run(callback.bind(null, arg0, arg1, arg2, arg3, arg4)) : callback(arg0, arg1, arg2, arg3, arg4); 852 } finally { 853 setCurrentFiber(previousFiber); 854 } 855 throw Error("runWithFiberInDEV should never be called in production. This is a bug in React."); 856 } 857 function setCurrentFiber(fiber) { 858 ReactSharedInternals.getCurrentStack = null === fiber ? null : getCurrentFiberStackInDev; 859 isRendering = !1; 860 current = fiber; 861 } 862 function typeName(value) { 863 return "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 864 } 865 function willCoercionThrow(value) { 866 try { 867 return testStringCoercion(value), !1; 868 } catch (e) { 869 return !0; 870 } 871 } 872 function testStringCoercion(value) { 873 return "" + value; 874 } 875 function checkAttributeStringCoercion(value, attributeName) { 876 if (willCoercionThrow(value)) return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", attributeName, typeName(value)), testStringCoercion(value); 877 } 878 function checkCSSPropertyStringCoercion(value, propName) { 879 if (willCoercionThrow(value)) return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", propName, typeName(value)), testStringCoercion(value); 880 } 881 function checkFormFieldValueStringCoercion(value) { 882 if (willCoercionThrow(value)) return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", typeName(value)), testStringCoercion(value); 883 } 884 function injectInternals(internals) { 885 if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 886 var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; 887 if (hook.isDisabled) return !0; 888 if (!hook.supportsFiber) return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"), !0; 889 try { 890 rendererID = hook.inject(internals), injectedHook = hook; 891 } catch (err) { 892 console.error("React instrumentation encountered an error: %o.", err); 893 } 894 return hook.checkDCE ? !0 : !1; 895 } 896 function setIsStrictModeForDevtools(newIsStrictMode) { 897 "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); 898 if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { 899 injectedHook.setStrictMode(rendererID, newIsStrictMode); 900 } catch (err) { 901 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 902 } 903 } 904 function clz32Fallback(x) { 905 x >>>= 0; 906 return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; 907 } 908 function getHighestPriorityLanes(lanes) { 909 var pendingSyncLanes = lanes & 42;
vendor: 6,393 bytes, lines 910-1065
910 if (0 !== pendingSyncLanes) return pendingSyncLanes; 911 switch (lanes & -lanes) { 912 case 1: return 1; 913 case 2: return 2; 914 case 4: return 4; 915 case 8: return 8; 916 case 16: return 16; 917 case 32: return 32; 918 case 64: return 64; 919 case 128: return 128; 920 case 256: 921 case 512: 922 case 1024: 923 case 2048: 924 case 4096: 925 case 8192: 926 case 16384: 927 case 32768: 928 case 65536: 929 case 131072: return lanes & 261888; 930 case 262144: 931 case 524288: 932 case 1048576: 933 case 2097152: return lanes & 3932160; 934 case 4194304: 935 case 8388608: 936 case 16777216: 937 case 33554432: return lanes & 62914560; 938 case 67108864: return 67108864; 939 case 134217728: return 134217728; 940 case 268435456: return 268435456; 941 case 536870912: return 536870912; 942 case 1073741824: return 0; 943 default: return console.error("Should have found matching lanes. This is a bug in React."), lanes; 944 } 945 } 946 function getNextLanes(root, wipLanes, rootHasPendingCommit) { 947 var pendingLanes = root.pendingLanes; 948 if (0 === pendingLanes) return 0; 949 var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes; 950 root = root.warmLanes; 951 var nonIdlePendingLanes = pendingLanes & 134217727; 952 0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pendingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); 953 return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || 32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)) ? wipLanes : nextLanes; 954 } 955 function checkIfRootIsPrerendering(root, renderLanes) { 956 return 0 === (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes); 957 } 958 function computeExpirationTime(lane, currentTime) { 959 switch (lane) { 960 case 1: 961 case 2: 962 case 4: 963 case 8: 964 case 64: return currentTime + 250; 965 case 16: 966 case 32: 967 case 128: 968 case 256: 969 case 512: 970 case 1024: 971 case 2048: 972 case 4096: 973 case 8192: 974 case 16384: 975 case 32768: 976 case 65536: 977 case 131072: 978 case 262144: 979 case 524288: 980 case 1048576: 981 case 2097152: return currentTime + 5e3; 982 case 4194304: 983 case 8388608: 984 case 16777216: 985 case 33554432: return -1; 986 case 67108864: 987 case 134217728: 988 case 268435456: 989 case 536870912: 990 case 1073741824: return -1; 991 default: return console.error("Should have found matching lanes. This is a bug in React."), -1; 992 } 993 } 994 function claimNextRetryLane() { 995 var lane = nextRetryLane; 996 nextRetryLane <<= 1; 997 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); 998 return lane; 999 } 1000 function createLaneMap(initial) { 1001 for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); 1002 return laneMap; 1003 } 1004 function markRootUpdated$1(root, updateLane) { 1005 root.pendingLanes |= updateLane; 1006 268435456 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0); 1007 } 1008 function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) { 1009 var previouslyPendingLanes = root.pendingLanes; 1010 root.pendingLanes = remainingLanes; 1011 root.suspendedLanes = 0; 1012 root.pingedLanes = 0; 1013 root.warmLanes = 0; 1014 root.expiredLanes &= remainingLanes; 1015 root.entangledLanes &= remainingLanes; 1016 root.errorRecoveryDisabledLanes &= remainingLanes; 1017 root.shellSuspendCounter = 0; 1018 var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; 1019 for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes;) { 1020 var index = 31 - clz32(remainingLanes), lane = 1 << index; 1021 entanglements[index] = 0; 1022 expirationTimes[index] = -1; 1023 var hiddenUpdatesForLane = hiddenUpdates[index]; 1024 if (null !== hiddenUpdatesForLane) for (hiddenUpdates[index] = null, index = 0; index < hiddenUpdatesForLane.length; index++) { 1025 var update = hiddenUpdatesForLane[index]; 1026 null !== update && (update.lane &= -536870913); 1027 } 1028 remainingLanes &= ~lane; 1029 } 1030 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); 1031 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root.tag && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); 1032 } 1033 function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { 1034 root.pendingLanes |= spawnedLane; 1035 root.suspendedLanes &= ~spawnedLane; 1036 var spawnedLaneIndex = 31 - clz32(spawnedLane); 1037 root.entangledLanes |= spawnedLane; 1038 root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930; 1039 } 1040 function markRootEntangled(root, entangledLanes) { 1041 var rootEntangledLanes = root.entangledLanes |= entangledLanes; 1042 for (root = root.entanglements; rootEntangledLanes;) { 1043 var index = 31 - clz32(rootEntangledLanes), lane = 1 << index; 1044 lane & entangledLanes | root[index] & entangledLanes && (root[index] |= entangledLanes); 1045 rootEntangledLanes &= ~lane; 1046 } 1047 } 1048 function getBumpedLaneForHydration(root, renderLanes) { 1049 var renderLane = renderLanes & -renderLanes; 1050 renderLane = 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane); 1051 return 0 !== (renderLane & (root.suspendedLanes | renderLanes)) ? 0 : renderLane; 1052 } 1053 function getBumpedLaneForHydrationByLane(lane) { 1054 switch (lane) { 1055 case 2: 1056 lane = 1; 1057 break; 1058 case 8: 1059 lane = 4; 1060 break; 1061 case 32: 1062 lane = 16; 1063 break; 1064 case 256: 1065 case 512:
vendor: 10,667 bytes, lines 1066-1338
1066 case 1024: 1067 case 2048: 1068 case 4096: 1069 case 8192: 1070 case 16384: 1071 case 32768: 1072 case 65536: 1073 case 131072: 1074 case 262144: 1075 case 524288: 1076 case 1048576: 1077 case 2097152: 1078 case 4194304: 1079 case 8388608: 1080 case 16777216: 1081 case 33554432: 1082 lane = 128; 1083 break; 1084 case 268435456: 1085 lane = 134217728; 1086 break; 1087 default: lane = 0; 1088 } 1089 return lane; 1090 } 1091 function addFiberToLanesMap(root, fiber, lanes) { 1092 if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes;) { 1093 var index = 31 - clz32(lanes), lane = 1 << index; 1094 root[index].add(fiber); 1095 lanes &= ~lane; 1096 } 1097 } 1098 function movePendingFibersToMemoized(root, lanes) { 1099 if (isDevToolsPresent) for (var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, memoizedUpdaters = root.memoizedUpdaters; 0 < lanes;) { 1100 var index = 31 - clz32(lanes); 1101 root = 1 << index; 1102 index = pendingUpdatersLaneMap[index]; 1103 0 < index.size && (index.forEach(function(fiber) { 1104 var alternate = fiber.alternate; 1105 null !== alternate && memoizedUpdaters.has(alternate) || memoizedUpdaters.add(fiber); 1106 }), index.clear()); 1107 lanes &= ~root; 1108 } 1109 } 1110 function lanesToEventPriority(lanes) { 1111 lanes &= -lanes; 1112 return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes ? 0 !== (lanes & 134217727) ? DefaultEventPriority : IdleEventPriority : ContinuousEventPriority : DiscreteEventPriority; 1113 } 1114 function resolveUpdatePriority() { 1115 var updatePriority = ReactDOMSharedInternals.p; 1116 if (0 !== updatePriority) return updatePriority; 1117 updatePriority = window.event; 1118 return void 0 === updatePriority ? DefaultEventPriority : getEventPriority(updatePriority.type); 1119 } 1120 function runWithPriority(priority, fn) { 1121 var previousPriority = ReactDOMSharedInternals.p; 1122 try { 1123 return ReactDOMSharedInternals.p = priority, fn(); 1124 } finally { 1125 ReactDOMSharedInternals.p = previousPriority; 1126 } 1127 } 1128 function detachDeletedInstance(node) { 1129 delete node[internalInstanceKey]; 1130 delete node[internalPropsKey]; 1131 delete node[internalEventHandlersKey]; 1132 delete node[internalEventHandlerListenersKey]; 1133 delete node[internalEventHandlesSetKey]; 1134 } 1135 function getClosestInstanceFromNode(targetNode) { 1136 var targetInst = targetNode[internalInstanceKey]; 1137 if (targetInst) return targetInst; 1138 for (var parentNode = targetNode.parentNode; parentNode;) { 1139 if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) { 1140 parentNode = targetInst.alternate; 1141 if (null !== targetInst.child || null !== parentNode && null !== parentNode.child) for (targetNode = getParentHydrationBoundary(targetNode); null !== targetNode;) { 1142 if (parentNode = targetNode[internalInstanceKey]) return parentNode; 1143 targetNode = getParentHydrationBoundary(targetNode); 1144 } 1145 return targetInst; 1146 } 1147 targetNode = parentNode; 1148 parentNode = targetNode.parentNode; 1149 } 1150 return null; 1151 } 1152 function getInstanceFromNode(node) { 1153 if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) { 1154 var tag = node.tag; 1155 if (5 === tag || 6 === tag || 13 === tag || 31 === tag || 26 === tag || 27 === tag || 3 === tag) return node; 1156 } 1157 return null; 1158 } 1159 function getNodeFromInstance(inst) { 1160 var tag = inst.tag; 1161 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode; 1162 throw Error("getNodeFromInstance: Invalid argument."); 1163 } 1164 function getResourcesFromRoot(root) { 1165 var resources = root[internalRootNodeResourcesKey]; 1166 resources || (resources = root[internalRootNodeResourcesKey] = { 1167 hoistableStyles: /* @__PURE__ */ new Map(), 1168 hoistableScripts: /* @__PURE__ */ new Map() 1169 }); 1170 return resources; 1171 } 1172 function markNodeAsHoistable(node) { 1173 node[internalHoistableMarker] = !0; 1174 } 1175 function registerTwoPhaseEvent(registrationName, dependencies) { 1176 registerDirectEvent(registrationName, dependencies); 1177 registerDirectEvent(registrationName + "Capture", dependencies); 1178 } 1179 function registerDirectEvent(registrationName, dependencies) { 1180 registrationNameDependencies[registrationName] && console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); 1181 registrationNameDependencies[registrationName] = dependencies; 1182 var lowerCasedName = registrationName.toLowerCase(); 1183 possibleRegistrationNames[lowerCasedName] = registrationName; 1184 "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); 1185 for (registrationName = 0; registrationName < dependencies.length; registrationName++) allNativeEvents.add(dependencies[registrationName]); 1186 } 1187 function checkControlledValueProps(tagName, props) { 1188 hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || null == props.value || ("select" === tagName ? console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.") : console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")); 1189 props.onChange || props.readOnly || props.disabled || null == props.checked || console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); 1190 } 1191 function isAttributeNameSafe(attributeName) { 1192 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0; 1193 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; 1194 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return validatedAttributeNameCache[attributeName] = !0; 1195 illegalAttributeNameCache[attributeName] = !0; 1196 console.error("Invalid attribute name: `%s`", attributeName); 1197 return !1; 1198 } 1199 function getValueForAttributeOnCustomComponent(node, name, expected) { 1200 if (isAttributeNameSafe(name)) { 1201 if (!node.hasAttribute(name)) { 1202 switch (typeof expected) { 1203 case "symbol": 1204 case "object": return expected; 1205 case "function": return expected; 1206 case "boolean": if (!1 === expected) return expected; 1207 } 1208 return void 0 === expected ? void 0 : null; 1209 } 1210 node = node.getAttribute(name); 1211 if ("" === node && !0 === expected) return !0; 1212 checkAttributeStringCoercion(expected, name); 1213 return node === "" + expected ? expected : node; 1214 } 1215 } 1216 function setValueForAttribute(node, name, value) { 1217 if (isAttributeNameSafe(name)) if (null === value) node.removeAttribute(name); 1218 else { 1219 switch (typeof value) { 1220 case "undefined": 1221 case "function": 1222 case "symbol": 1223 node.removeAttribute(name); 1224 return; 1225 case "boolean": 1226 var prefix = name.toLowerCase().slice(0, 5); 1227 if ("data-" !== prefix && "aria-" !== prefix) { 1228 node.removeAttribute(name); 1229 return; 1230 } 1231 } 1232 checkAttributeStringCoercion(value, name); 1233 node.setAttribute(name, "" + value); 1234 } 1235 } 1236 function setValueForKnownAttribute(node, name, value) { 1237 if (null === value) node.removeAttribute(name); 1238 else { 1239 switch (typeof value) { 1240 case "undefined": 1241 case "function": 1242 case "symbol": 1243 case "boolean": 1244 node.removeAttribute(name); 1245 return; 1246 } 1247 checkAttributeStringCoercion(value, name); 1248 node.setAttribute(name, "" + value); 1249 } 1250 } 1251 function setValueForNamespacedAttribute(node, namespace, name, value) { 1252 if (null === value) node.removeAttribute(name); 1253 else { 1254 switch (typeof value) { 1255 case "undefined": 1256 case "function": 1257 case "symbol": 1258 case "boolean": 1259 node.removeAttribute(name); 1260 return; 1261 } 1262 checkAttributeStringCoercion(value, name); 1263 node.setAttributeNS(namespace, name, "" + value); 1264 } 1265 } 1266 function getToStringValue(value) { 1267 switch (typeof value) { 1268 case "bigint": 1269 case "boolean": 1270 case "number": 1271 case "string": 1272 case "undefined": return value; 1273 case "object": return checkFormFieldValueStringCoercion(value), value; 1274 default: return ""; 1275 } 1276 } 1277 function isCheckable(elem) { 1278 var type = elem.type; 1279 return (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type); 1280 } 1281 function trackValueOnNode(node, valueField, currentValue) { 1282 var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); 1283 if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) { 1284 var get = descriptor.get, set = descriptor.set; 1285 Object.defineProperty(node, valueField, { 1286 configurable: !0, 1287 get: function() { 1288 return get.call(this); 1289 }, 1290 set: function(value) { 1291 checkFormFieldValueStringCoercion(value); 1292 currentValue = "" + value; 1293 set.call(this, value); 1294 } 1295 }); 1296 Object.defineProperty(node, valueField, { enumerable: descriptor.enumerable }); 1297 return { 1298 getValue: function() { 1299 return currentValue; 1300 }, 1301 setValue: function(value) { 1302 checkFormFieldValueStringCoercion(value); 1303 currentValue = "" + value; 1304 }, 1305 stopTracking: function() { 1306 node._valueTracker = null; 1307 delete node[valueField]; 1308 } 1309 }; 1310 } 1311 } 1312 function track(node) { 1313 if (!node._valueTracker) { 1314 var valueField = isCheckable(node) ? "checked" : "value"; 1315 node._valueTracker = trackValueOnNode(node, valueField, "" + node[valueField]); 1316 } 1317 } 1318 function updateValueIfChanged(node) { 1319 if (!node) return !1; 1320 var tracker = node._valueTracker; 1321 if (!tracker) return !0; 1322 var lastValue = tracker.getValue(); 1323 var value = ""; 1324 node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value); 1325 node = value; 1326 return node !== lastValue ? (tracker.setValue(node), !0) : !1; 1327 } 1328 function getActiveElement(doc) { 1329 doc = doc || ("undefined" !== typeof document ? document : void 0); 1330 if ("undefined" === typeof doc) return null; 1331 try { 1332 return doc.activeElement || doc.body; 1333 } catch (e) { 1334 return doc.body; 1335 } 1336 } 1337 function escapeSelectorAttributeValueInsideDoubleQuotes(value) { 1338 return value.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex, function(ch) {
1339 return "\\" + ch.charCodeAt(0).toString(16) + " "; 1340 }); 1341 } 1342 function validateInputProps(element, props) { 1343 void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || (console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnCheckedDefaultChecked = !0); 1344 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue$1 || (console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type), didWarnValueDefaultValue$1 = !0); 1345 } 1346 function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) { 1347 element.name = ""; 1348 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? (checkAttributeStringCoercion(type, "type"), element.type = type) : element.removeAttribute("type"); 1349 if (null != value) if ("number" === type) { 1350 if (0 === value && "" === element.value || element.value != value) element.value = "" + getToStringValue(value); 1351 } else element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value)); 1352 else "submit" !== type && "reset" !== type || element.removeAttribute("value"); 1353 null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); 1354 null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); 1355 null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); 1356 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? (checkAttributeStringCoercion(name, "name"), element.name = "" + getToStringValue(name)) : element.removeAttribute("name"); 1357 } 1358 function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating) { 1359 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (checkAttributeStringCoercion(type, "type"), element.type = type); 1360 if (null != value || null != defaultValue) { 1361 if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) { 1362 track(element); 1363 return; 1364 } 1365 defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1366 value = null != value ? "" + getToStringValue(value) : defaultValue; 1367 isHydrating || value === element.value || (element.value = value); 1368 element.defaultValue = value; 1369 } 1370 checked = null != checked ? checked : defaultChecked; 1371 checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; 1372 element.checked = isHydrating ? element.checked : !!checked; 1373 element.defaultChecked = !!checked; 1374 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (checkAttributeStringCoercion(name, "name"), element.name = name); 1375 track(element); 1376 } 1377 function setDefaultValue(node, type, value) { 1378 "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value); 1379 } 1380 function validateOptionProps(element, props) { 1381 props.value ?? ("object" === typeof props.children && null !== props.children ? React.Children.forEac
vendor: 12,507 bytes, lines 1381-1563
1381h(props.children, function(child) { 1382 null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = !0, console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")); 1383 }) : null == props.dangerouslySetInnerHTML || didWarnInvalidInnerHTML || (didWarnInvalidInnerHTML = !0, console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))); 1384 null == props.selected || didWarnSelectedSetOnOption || (console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."), didWarnSelectedSetOnOption = !0); 1385 } 1386 function getDeclarationErrorAddendum() { 1387 var ownerName = getCurrentFiberOwnerNameInDevOrNull(); 1388 return ownerName ? "\n\nCheck the render method of `" + ownerName + "`." : ""; 1389 } 1390 function updateOptions(node, multiple, propValue, setDefaultSelected) { 1391 node = node.options; 1392 if (multiple) { 1393 multiple = {}; 1394 for (var i = 0; i < propValue.length; i++) multiple["$" + propValue[i]] = !0; 1395 for (propValue = 0; propValue < node.length; propValue++) i = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = !0); 1396 } else { 1397 propValue = "" + getToStringValue(propValue); 1398 multiple = null; 1399 for (i = 0; i < node.length; i++) { 1400 if (node[i].value === propValue) { 1401 node[i].selected = !0; 1402 setDefaultSelected && (node[i].defaultSelected = !0); 1403 return; 1404 } 1405 null !== multiple || node[i].disabled || (multiple = node[i]); 1406 } 1407 null !== multiple && (multiple.selected = !0); 1408 } 1409 } 1410 function validateSelectProps(element, props) { 1411 for (element = 0; element < valuePropNames.length; element++) { 1412 var propName = valuePropNames[element]; 1413 if (null != props[propName]) { 1414 var propNameIsArray = isArrayImpl(props[propName]); 1415 props.multiple && !propNameIsArray ? console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", propName, getDeclarationErrorAddendum()) : !props.multiple && propNameIsArray && console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", propName, getDeclarationErrorAddendum()); 1416 } 1417 } 1418 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || (console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"), didWarnValueDefaultValue = !0); 1419 } 1420 function validateTextareaProps(element, props) { 1421 void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || (console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component"), didWarnValDefaultVal = !0); 1422 null != props.children && null == props.value && console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>."); 1423 } 1424 function updateTextarea(element, value, defaultValue) { 1425 if (null != value && (value = "" + getToStringValue(value), value !== element.value && (element.value = value), null == defaultValue)) { 1426 element.defaultValue !== value && (element.defaultValue = value); 1427 return; 1428 } 1429 element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1430 } 1431 function initTextarea(element, value, defaultValue, children) { 1432 if (null == value) { 1433 if (null != children) { 1434 if (null != defaultValue) throw Error("If you supply `defaultValue` on a <textarea>, do not pass children."); 1435 if (isArrayImpl(children)) { 1436 if (1 < children.length) throw Error("<textarea> can only have at most one child."); 1437 children = children[0]; 1438 } 1439 defaultValue = children; 1440 } 1441 defaultValue ??= ""; 1442 value = defaultValue; 1443 } 1444 defaultValue = getToStringValue(value); 1445 element.defaultValue = defaultValue; 1446 children = element.textContent; 1447 children === defaultValue && "" !== children && null !== children && (element.value = children); 1448 track(element); 1449 } 1450 function findNotableNode(node, indent) { 1451 return void 0 === node.serverProps && 0 === node.serverTail.length && 1 === node.children.length && 3 < node.distanceFromLeaf && node.distanceFromLeaf > 15 - indent ? findNotableNode(node.children[0], indent) : node; 1452 } 1453 function indentation(indent) { 1454 return " " + " ".repeat(indent); 1455 } 1456 function added(indent) { 1457 return "+ " + " ".repeat(indent); 1458 } 1459 function removed(indent) { 1460 return "- " + " ".repeat(indent); 1461 } 1462 function describeFiberType(fiber) { 1463 switch (fiber.tag) { 1464 case 26: 1465 case 27: 1466 case 5: return fiber.type; 1467 case 16: return "Lazy"; 1468 case 31: return "Activity"; 1469 case 13: return "Suspense"; 1470 case 19: return "SuspenseList"; 1471 case 0: 1472 case 15: return fiber = fiber.type, fiber.displayName || fiber.name || null; 1473 case 11: return fiber = fiber.type.render, fiber.displayName || fiber.name || null; 1474 case 1: return fiber = fiber.type, fiber.displayName || fiber.name || null; 1475 default: return null; 1476 } 1477 } 1478 function describeTextNode(content, maxLength) { 1479 return needsEscaping.test(content) ? (content = JSON.stringify(content), content.length > maxLength - 2 ? 8 > maxLength ? "{\"...\"}" : "{" + content.slice(0, maxLength - 7) + "...\"}" : "{" + content + "}") : content.length > maxLength ? 5 > maxLength ? "{\"...\"}" : content.slice(0, maxLength - 3) + "..." : content; 1480 } 1481 function describeTextDiff(clientText, serverProps, indent) { 1482 var maxLength = 120 - 2 * indent; 1483 if (null === serverProps) return added(indent) + describeTextNode(clientText, maxLength) + "\n"; 1484 if ("string" === typeof serverProps) { 1485 for (var firstDiff = 0; firstDiff < serverProps.length && firstDiff < clientText.length && serverProps.charCodeAt(firstDiff) === clientText.charCodeAt(firstDiff); firstDiff++); 1486 firstDiff > maxLength - 8 && 10 < firstDiff && (clientText = "..." + clientText.slice(firstDiff - 8), serverProps = "..." + serverProps.slice(firstDiff - 8)); 1487 return added(indent) + describeTextNode(clientText, maxLength) + "\n" + removed(indent) + describeTextNode(serverProps, maxLength) + "\n"; 1488 } 1489 return indentation(indent) + describeTextNode(clientText, maxLength) + "\n"; 1490 } 1491 function objectName(object) { 1492 return Object.prototype.toString.call(object).replace(/^\[object (.*)\]$/, function(m, p0) { 1493 return p0; 1494 }); 1495 } 1496 function describeValue(value, maxLength) { 1497 switch (typeof value) { 1498 case "string": return value = JSON.stringify(value), value.length > maxLength ? 5 > maxLength ? "\"...\"" : value.slice(0, maxLength - 4) + "...\"" : value; 1499 case "object": 1500 if (null === value) return "null"; 1501 if (isArrayImpl(value)) return "[...]"; 1502 if (value.$$typeof === REACT_ELEMENT_TYPE) return (maxLength = getComponentNameFromType(value.type)) ? "<" + maxLength + ">" : "<...>"; 1503 var name = objectName(value); 1504 if ("Object" === name) { 1505 name = ""; 1506 maxLength -= 2; 1507 for (var propName in value) if (value.hasOwnProperty(propName)) { 1508 var jsonPropName = JSON.stringify(propName); 1509 jsonPropName !== "\"" + propName + "\"" && (propName = jsonPropName); 1510 maxLength -= propName.length - 2; 1511 jsonPropName = describeValue(value[propName], 15 > maxLength ? maxLength : 15); 1512 maxLength -= jsonPropName.length; 1513 if (0 > maxLength) { 1514 name += "" === name ? "..." : ", ..."; 1515 break; 1516 } 1517 name += ("" === name ? "" : ",") + propName + ":" + jsonPropName; 1518 } 1519 return "{" + name + "}"; 1520 } 1521 return name; 1522 case "function": return (maxLength = value.displayName || value.name) ? "function " + maxLength : "function"; 1523 default: return String(value); 1524 } 1525 } 1526 function describePropValue(value, maxLength) { 1527 return "string" !== typeof value || needsEscaping.test(value) ? "{" + describeValue(value, maxLength - 2) + "}" : value.length > maxLength - 2 ? 5 > maxLength ? "\"...\"" : "\"" + value.slice(0, maxLength - 5) + "...\"" : "\"" + value + "\""; 1528 } 1529 function describeExpandedElement(type, props, rowPrefix) { 1530 var remainingRowLength = 120 - rowPrefix.length - type.length, properties = [], propName; 1531 for (propName in props) if (props.hasOwnProperty(propName) && "children" !== propName) { 1532 var propValue = describePropValue(props[propName], 120 - rowPrefix.length - propName.length - 1); 1533 remainingRowLength -= propName.length + propValue.length + 2; 1534 properties.push(propName + "=" + propValue); 1535 } 1536 return 0 === properties.length ? rowPrefix + "<" + type + ">\n" : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties.join(" ") + ">\n" : rowPrefix + "<" + type + "\n" + rowPrefix + " " + properties.join("\n" + rowPrefix + " ") + "\n" + rowPrefix + ">\n"; 1537 } 1538 function describePropertiesDiff(clientObject, serverObject, indent) { 1539 var properties = "", remainingServerProperties = assign({}, serverObject), propName; 1540 for (propName in clientObject) if (clientObject.hasOwnProperty(propName)) { 1541 delete remainingServerProperties[propName]; 1542 var maxLength = 120 - 2 * indent - propName.length - 2, clientPropValue = describeValue(clientObject[propName], maxLength); 1543 serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties += added(indent) + propName + ": " + clientPropValue + "\n", properties += removed(indent) + propName + ": " + maxLength + "\n") : properties += added(indent) + propName + ": " + clientPropValue + "\n"; 1544 } 1545 for (var _propName in remainingServerProperties) remainingServerProperties.hasOwnProperty(_propName) && (clientObject = describeValue(remainingServerProperties[_propName], 120 - 2 * indent - _propName.length - 2), properties += removed(indent) + _propName + ": " + clientObject + "\n"); 1546 return properties; 1547 } 1548 function describeElementDiff(type, clientProps, serverProps, indent) { 1549 var content = "", serverPropNames = /* @__PURE__ */ new Map(); 1550 for (propName$jscomp$0 in serverProps) serverProps.hasOwnProperty(propName$jscomp$0) && serverPropNames.set(propName$jscomp$0.toLowerCase(), propName$jscomp$0); 1551 if (1 === serverPropNames.size && serverPropNames.has("children")) content += describeExpandedElement(type, clientProps, indentation(indent)); 1552 else { 1553 for (var _propName2 in clientProps) if (clientProps.hasOwnProperty(_propName2) && "children" !== _propName2) { 1554 var maxLength$jscomp$0 = 120 - 2 * (indent + 1) - _propName2.length - 1, serverPropName = serverPropNames.get(_propName2.toLowerCase()); 1555 if (void 0 !== serverPropName) { 1556 serverPropNames.delete(_propName2.toLowerCase()); 1557 var propName$jscomp$0 = clientProps[_propName2]; 1558 serverPropName = serverProps[serverPropName]; 1559 var clientPropValue = describePropValue(propName$jscomp$0, maxLength$jscomp$0); 1560 maxLength$jscomp$0 = describePropValue(serverPropName, maxLength$jscomp$0); 1561 "object" === typeof propName$jscomp$0 && null !== propName$jscomp$0 && "object" === typeof serverPropName && null !== serverPropName && "Object" === objectName(propName$jscomp$0) && "Object" === objectName(serverPropName) && (2 < Object.keys(propName$jscomp$0).length || 2 < Object.keys(serverPropName).length || -1 < clientPropValue.indexOf("...") || -1 < maxLength$jscomp$0.indexOf("...")) ? content += indentation(indent + 1) + _propName2 + "={{\n" + describePropertiesDiff(propName$jscomp$0, serverPropName, indent + 2) + indentation(indent + 1) + "}}\n" : (content += added(indent + 1) + _propName2 + "=" + clientPropValue + "\n", content += removed(indent + 1) + _propName2 + "=" + maxLength$jscomp$0 + "\n"); 1562 } else content += indentation(indent + 1) + _propName2 + "=" + describePropValue(clientProps[_propName2], maxLength$jscomp$0) + "\n"; 1563 }
1564 serverPropNames.forEach(function(propName) { 1565 if ("children" !== propName) { 1566 var maxLength = 120 - 2 * (indent + 1) - propName.length - 1; 1567 content += removed(indent + 1) + propName + "=" + describePropValue(serverProps[propName], maxLength) + "\n"; 1568 } 1569 }); 1570 content = "" === content ? indentation(indent) + "<" + type + ">\n" : indentation(indent) + "<" + type + "\n" + content + indentation(indent) + ">\n"; 1571 } 1572 type = serverProps.children; 1573 clientProps = clientProps.children; 1574 if ("string" === typeof type || "number" === typeof type || "bigint" === typeof type) { 1575 serverPropNames = ""; 1576 if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) serverPropNames = "" + clientProps; 1577 content += describeTextDiff(serverPropNames, "" + type, indent + 1); 1578 } else if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) content = null == type ? content + describeTextDiff("" + clientProps, null, indent + 1) : content + describeTextDiff("" + clientProps, void 0, indent + 1); 1579 return content; 1580 } 1581 function describeSiblingFiber(fiber, indent) { 1582 var type = describeFiberType(fiber); 1583 if (null === type) { 1584 type = ""; 1585 for (fiber = fiber.child; fiber;) type += describeSiblingFiber(fiber, indent), fiber = fiber.sibling; 1586 return type; 1587 } 1588 return indentation(indent) + "<" + type + ">\n"; 1589 } 1590 function describeNode(node, indent) { 1591 var skipToNode = findNotableNode(node, indent); 1592 if (skipToNode !== node && (1 !== node.children.length || node.children[0] !== skipToNode)) return indentation(indent) + "...\n" + describeNode(skipToNode, indent + 1); 1593 skipToNode = ""; 1594 var debugInfo = node.fiber._debugInfo; 1595 if (debugInfo) for (var i = 0; i < debugInfo.length; i++) { 1596 var serverComponentName = debugInfo[i].name; 1597 "string" === typeof serverComponentName && (skipToNode += indentation(indent) + "<" + serverComponentName + ">\n", indent++); 1598 } 1599 debugInfo = ""; 1600 i = node.fiber.pendingProps; 1601 if (6 === node.fiber.tag) debugInfo = describeTextDiff(i, node.serverProps, indent), indent++; 1602 else if (serverComponentName = describeFiberType(node.fiber), null !== serverComponentName) if (void 0 === node.serverProps) { 1603 debugInfo = indent; 1604 var maxLength = 120 - 2 * debugInfo - serverComponentName.length - 2, content = ""; 1605 for (propName in i) if (i.hasOwnProperty(propName) && "children" !== propName) { 1606 var propValue = describePropValue(i[propName], 15); 1607 maxLength -= propName.length + propValue.length + 2; 1608 if (0 > maxLength) { 1609 content += " ..."; 1610 break; 1611 } 1612 content += " " + propName + "=" + propValue; 1613 } 1614 debugInfo = indentation(debugInfo) + "<" + serverComponentName + content + ">\n"; 1615 indent++; 1616 } else null === node.serverProps ? (debugInfo = describeExpandedElement(serverComponentName, i, added(indent)), indent++) : "string" === typeof node.serverProps ? console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React.") : (debugInfo = describeElementDiff(serverComponentName, i, node.serverProps, indent), indent++); 1617 var propName = ""; 1618 i = node.fiber.child; 1619 for (serverComponentName = 0; i && serverComponentName < node.children.length;) maxLength = node.children[serverComponentName], maxLength.fiber === i ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i, indent), i = i.sibling; 1620 i && 0 < node.children.length && (propName += indentation(indent) + "...\n"); 1621 i = node.serverTail; 1622 null === node.serverProps && indent--; 1623 for (node = 0; node < i.length; node++) serverComponentName = i[node], propName = "string" === typeof serverComponentName ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + "\n") : propName + describeExpandedElement(serverComponentName.type, serverComponentName.props, removed(indent)); 1624 return skipToNode + debugInfo + propName; 1625 } 1626 function describeDiff(rootNode) { 1627 try { 1628 return "\n\n" + describeNode(rootNode, 0); 1629 } catch (x) { 1630 return ""; 1631 } 1632 } 1633 function describeAncestors(ancestor, child, props) { 1634 for (var fiber = child, node = null, distanceFromLeaf = 0; fiber;) fiber === ancestor && (distanceFromLeaf = 0), node = { 1635 fiber, 1636 children: null !== node ? [node] : [], 1637 serverProps: fiber === child ? props : fiber === ancestor ? null : void 0, 1638 serverTail: [], 1639 distanceFromLeaf 1640 }, distanceFromLeaf++, fiber = fiber.return; 1641 return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; 1642 } 1643 function updatedAncestorInfoDev(oldInfo, tag) { 1644 var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), info = { tag }; 1645 -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, ancestorInfo.nobrTagInScope = null); 1646 -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null); 1647 -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, ancestorInfo.dlItemTagAutoclosing = null); 1648 ancestorInfo.current = info; 1649 "form" === tag && (ancestorInfo.formTag = info); 1650 "a" === tag && (ancestorInfo.aTagInScope = info); 1651 "button" === tag && (ancestorInfo.buttonTagInScope = info); 1652 "nobr" === tag && (ancestorInfo.nobrTagInScope = info); 1653 "p" === tag && (ancestorInfo.pTagInButtonScope = info); 1654 "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); 1655 if ("dd" === tag || "dt" === tag) ancestorInfo.dlItemTagAutoclosing = info; 1656 "#document" === tag || "html" === tag ? ancestorInfo.containerTagInScope = null : ancestorInfo.containerTagInScope || (ancestorInfo.containerTagInScope = info); 1657 null !== oldInfo || "#document" !== tag && "html" !== tag && "body" !== tag ? !0 === ancestorInfo.implicitRootScope && (ancestorInfo.implicitRootScope = !1) : ancestorInfo.implicitRootScope = !0; 1658 return ancestorInfo; 1659 } 1660 function isTagValidWithParent(tag, parentTag, implicitRootScope) { 1661 switch (parentTag) { 1662 case "select": return "hr" === tag || "option" === tag || "optgroup" === tag || "script" === tag || "template" === tag || "#text" === tag; 1663 case "optgroup": return "option" === tag || "#text" === tag; 1664 case "option": return "#text" === tag; 1665 case "tr": return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; 1666 case "tbody":
1667 case "thead": 1668 case "tfoot": return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; 1669 case "colgroup": return "col" === tag || "template" === tag; 1670 case "table": return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; 1671 case "head": return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; 1672 case "html": 1673 if (implicitRootScope) break; 1674 return "head" === tag || "body" === tag || "frameset" === tag; 1675 case "frameset": return "frame" === tag; 1676 case "#document": if (!implicitRootScope) return "html" === tag; 1677 } 1678 switch (tag) { 1679 case "h1": 1680 case "h2": 1681 case "h3": 1682 case "h4": 1683 case "h5": 1684 case "h6": return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag; 1685 case "rp": 1686 case "rt": return -1 === impliedEndTags.indexOf(parentTag); 1687 case "caption": 1688 case "col": 1689 case "colgroup": 1690 case "frameset": 1691 case "frame": 1692 case "tbody":
1693 case "td": 1694 case "tfoot": 1695 case "th": 1696 case "thead": 1697 case "tr": return null == parentTag; 1698 case "head": return implicitRootScope || null === parentTag; 1699 case "html": return implicitRootScope && "#document" === parentTag || null === parentTag; 1700 case "body": return implicitRootScope && ("#document" === parentTag || "html" === parentTag) || null === parentTag; 1701 } 1702 return !0; 1703 } 1704 function findInvalidAncestorForTag(tag, ancestorInfo) { 1705 switch (tag) { 1706 case "address": 1707 case "article": 1708 case "aside": 1709 case "blockquote": 1710 case "center": 1711 case "details": 1712 case "dialog": 1713 case "dir": 1714 case "div": 1715 case "dl": 1716 case "fieldset": 1717 case "figcaption": 1718 case "figure": 1719 case "footer": 1720 case "header": 1721 case "hgroup": 1722 case "main": 1723 case "menu": 1724 case "nav": 1725 case "ol": 1726 case "p": 1727 case "section": 1728 case "summary": 1729 case "ul": 1730 case "pre": 1731 case "listing": 1732 case "table": 1733 case "hr": 1734 case "xmp": 1735 case "h1": 1736 case "h2": 1737 case "h3": 1738 case "h4": 1739 case "h5": 1740 case "h6": return ancestorInfo.pTagInButtonScope; 1741 case "form": return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 1742 case "li": return ancestorInfo.listItemTagAutoclosing; 1743 case "dd": 1744 case "dt": return ancestorInfo.dlItemTagAutoclosing; 1745 case "button": return ancestorInfo.buttonTagInScope; 1746 case "a": return ancestorInfo.aTagInScope; 1747 case "nobr": return ancestorInfo.nobrTagInScope; 1748 } 1749 return null; 1750 } 1751 function findAncestor(parent, tagName) { 1752 for (; parent;) { 1753 switch (parent.tag) { 1754 case 5: 1755 case 26: 1756 case 27: if (parent.type === tagName) return parent; 1757 } 1758 parent = parent.return; 1759 } 1760 return null; 1761 } 1762 function validateDOMNesting(childTag, ancestorInfo) { 1763 ancestorInfo = ancestorInfo || emptyAncestorInfoDev; 1764 var parentInfo = ancestorInfo.current; 1765 ancestorInfo = (parentInfo = isTagValidWithParent(childTag, parentInfo && parentInfo.tag, ancestorInfo.implicitRootScope) ? null : parentInfo) ? null : findInvalidAncestorForTag(childTag, ancestorInfo); 1766 ancestorInfo = parentInfo || ancestorInfo; 1767 if (!ancestorInfo) return !0; 1768 var ancestorTag = ancestorInfo.tag; 1769 ancestorInfo = String(!!parentInfo) + "|" + childTag + "|" + ancestorTag; 1770 if (didWarn[ancestorInfo]) return !1; 1771 didWarn[ancestorInfo] = !0; 1772 var ancestor = (ancestorInfo = current) ? findAncestor(ancestorInfo.return, ancestorTag) : null, ancestorDescription = null !== ancestorInfo && null !== ancestor ? describeAncestors(ancestor, ancestorInfo, null) : "", tagDisplayName = "<" + childTag + ">"; 1773 parentInfo ? (parentInfo = "", "table" === ancestorTag && "tr" === childTag && (parentInfo += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), console.error("In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s", tagDisplayName, ancestorTag, parentInfo, ancestorDescription)) : console.error("In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s", tagDisplayName, ancestorTag, ancestorDescription); 1774 ancestorInfo && (childTag = ancestorInfo.return, null === ancestor || null === childTag || ancestor === childTag && childTag._debugOwner === ancestorInfo._debugOwner || runWithFiberInDEV(ancestor, function() { 1775 console.error("<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.", ancestorTag, tagDisplayName); 1776 })); 1777 return !1; 1778 } 1779 function validateTextNesting(childText, parentTag, implicitRootScope) { 1780 if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) return !0; 1781 implicitRootScope = "#text|" + parentTag; 1782 if (didWarn[implicitRootScope]) return !1; 1783 didWarn[implicitRootScope] = !0; 1784 var ancestor = (implicitRootScope = current) ? findAncestor(implicitRootScope, parentTag) : null; 1785 implicitRootScope = null !== implicitRootScope && null !== ancestor ? describeAncestors(ancestor, implicitRootScope, 6 !== implicitRootScope.tag ? { children: null } : null) : ""; 1786 /\S/.test(childText) ? console.error("In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, implicitRootScope) : console.error("In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, implicitRootScope); 1787 return !1; 1788 } 1789 function setTextContent(node, text) { 1790 if (text) { 1791 var firstChild = node.firstChild;
1792 if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) { 1793 firstChild.nodeValue = text; 1794 return; 1795 } 1796 } 1797 node.textContent = text; 1798 } 1799 function camelize(string) { 1800 return string.replace(hyphenPattern, function(_, character) { 1801 return character.toUpperCase(); 1802 }); 1803 } 1804 function setValueForStyle(style, styleName, value) { 1805 var isCustomProperty = 0 === styleName.indexOf("--"); 1806 isCustomProperty || (-1 < styleName.indexOf("-") ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = !0, console.error("Unsupported style property %s. Did you mean %s?", styleName, camelize(styleName.replace(msPattern, "ms-")))) : badVendoredStyleNamePattern.test(styleName) ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = !0, console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?", styleName, styleName.charAt(0).toUpperCase() + styleName.slice(1))) : !badStyleValueWithSemicolonPattern.test(value) || warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0, console.error("Style property values shouldn't contain a semicolon. Try \"%s: %s\" instead.", styleName, value.replace(badStyleValueWithSemicolonPattern, ""))), "number" === typeof value && (isNaN(value) ? warnedForNaNValue || (warnedForNaNValue = !0, console.error("`NaN` is an invalid value for the `%s` css style property.", styleName)) : isFinite(value) || warnedForInfinityValue || (warnedForInfinityValue = !0, console.error("`Infinity` is an invalid value for the `%s` css style property.", styleName)))); 1807 null == value || "boolean" === typeof value || "" === value ? isCustomProperty ? style.setProperty(styleName, "") : "float" === styleName ? style.cssFloat = "" : style[styleName] = "" : isCustomProperty ? style.setProperty(styleName, value) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? "float" === styleName ? style.cssFloat = value : (checkCSSPropertyStringCoercion(value, styleName), style[styleName] = ("" + value).trim()) : style[styleName] = value + "px"; 1808 } 1809 function setValueForStyles(node, styles, prevStyles) { 1810 if (null != styles && "object" !== typeof styles) throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); 1811 styles && Object.freeze(styles); 1812 node = node.style; 1813 if (null != prevStyles) { 1814 if (styles) { 1815 var expandedUpdates = {}; 1816 if (prevStyles) { 1817 for (var key in prevStyles) if (prevStyles.hasOwnProperty(key) && !styles.hasOwnProperty(key)) for (var longhands = shorthandToLonghand[key] || [key], i = 0; i < longhands.length; i++) expandedUpdates[longhands[i]] = key; 1818 } 1819 for (var _key in styles) if (styles.hasOwnProperty(_key) && (!prevStyles || prevStyles[_key] !== styles[_key])) for (key = shorthandToLonghand[_key] || [_key], longhands = 0; longhands < key.length; longhands++) expandedUpdates[key[longhands]] = _key; 1820 _key = {}; 1821 for (var key$jscomp$0 in styles) for (key = shorthandToLonghand[key$jscomp$0] || [key$jscomp$0], longhands = 0; longhands < key.length; longhands++) _key[key[longhands]] = key$jscomp$0; 1822 key$jscomp$0 = {}; 1823 for (var _key2 in expandedUpdates) if (key = expandedUpdates[_key2], (longhands = _key[_key2]) && key !== longhands && (i = key + "," + longhands, !key$jscomp$0[i])) { 1824 key$jscomp$0[i] = !0; 1825 i = console; 1826 var value = styles[key]; 1827 i.error.call(i, "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", null == value || "boolean" === typeof value || "" === value ? "Removing" : "Updating", key, longhands); 1828 } 1829 } 1830 for (var styleName in prevStyles) !prevStyles.hasOwnProperty(styleName) || null != styles && styles.hasOwnProperty(styleName) || (0 === styleName.indexOf("--") ? node.setProperty(styleName, "") : "float" === styleName ? node.cssFloat = "" : node[styleName] = ""); 1831 for (var _styleName in styles) _key2 = styles[_styleName], styles.hasOwnProperty(_styleName) && prevStyles[_styleName] !== _key2 && setValueForStyle(node, _styleName, _key2); 1832 }
1832 else for (expandedUpdates in styles) styles.hasOwnProperty(expandedUpdates) && setValueForStyle(node, expandedUpdates, styles[expandedUpdates]); 1833 } 1834 function isCustomElement(tagName) { 1835 if (-1 === tagName.indexOf("-")) return !1; 1836 switch (tagName) { 1837 case "annotation-xml": 1838 case "color-profile": 1839 case "font-face": 1840 case "font-face-src": 1841 case "font-face-uri": 1842 case "font-face-format": 1843 case "font-face-name": 1844 case "missing-glyph": return !1; 1845 default: return !0; 1846 } 1847 } 1848 function getAttributeAlias(name) { 1849 return aliases.get(name) || name; 1850 } 1851 function validateProperty$1(tagName, name) { 1852 if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0; 1853 if (rARIACamel$1.test(name)) { 1854 tagName = "aria-" + name.slice(4).toLowerCase(); 1855 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 1856 if (null == tagName) return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", name), warnedProperties$1[name] = !0; 1857 if (name !== tagName) return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, tagName), warnedProperties$1[name] = !0; 1858 } 1859 if (rARIA$1.test(name)) { 1860 tagName = name.toLowerCase(); 1861 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 1862 if (null == tagName) return warnedProperties$1[name] = !0, !1; 1863 name !== tagName && (console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, tagName), warnedProperties$1[name] = !0); 1864 } 1865 return !0; 1866 } 1867 function validateProperties$2(type, props) { 1868 var invalidProps = [], key; 1869 for (key in props) validateProperty$1(type, key) || invalidProps.push(key); 1870 props = invalidProps.map(function(prop) { 1871 return "`" + prop + "`"; 1872 }).join(", "); 1873 1 === invalidProps.length ? console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", props, type) : 1 < invalidProps.length && console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", props, type); 1874 } 1875 function validateProperty(tagName, name, value, eventRegistry) { 1876 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) return !0; 1877 var lowerCasedName = name.toLowerCase(); 1878 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."), warnedProperties[name] = !0; 1879 if ("function" === typeof value && ("form" === tagName && "action" === name || "input" === tagName && "formAction" === name || "button" === tagName && "formAction" === name)) return !0; 1880 if (null != eventRegistry) { 1881 tagName = eventRegistry.possibleRegistrationNames; 1882 if (eventRegistry.registrationNameDependencies.hasOwnProperty(name)) return !0; 1883 eventRegistry = tagName.hasOwnProperty(lowerCasedName) ? tagName[lowerCasedName] : null; 1884 if (null != eventRegistry) return console.error("Invalid event handler property `%s`. Did you mean `%s`?", name, eventRegistry), warnedProperties[name] = !0; 1885 if (EVENT_NAME_REGEX.test(name)) return console.error("Unknown event handler property `%s`. It will be ignored.", name), warnedProperties[name] = !0; 1886 } else if (EVENT_NAME_REGEX.test(name)) return INVALID_EVENT_NAME_REGEX.test(name) && console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", name), warnedProperties[name] = !0; 1887 if (rARIA.test(name) || rARIACamel.test(name)) return !0; 1888 if ("innerhtml" === lowerCasedName) return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."), warnedProperties[name] = !0; 1889 if ("aria" === lowerCasedName) return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."), warnedProperties[name] = !0; 1890 if ("is" === lowerCasedName && null !== value && void 0 !== value && "string" !== typeof value) return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof value), warnedProperties[name] = !0; 1891 if ("number" === typeof value && isNaN(value)) return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", name), warnedProperties[name] = !0; 1892 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { 1893 if (lowerCasedName = possibleStandardNames[lowerCasedName], lowerCasedName !== name) return console.error("Invalid DOM property `%s`. Did you mean `%s`?", name, lowerCasedName), warnedProperties[name] = !0; 1894 } else if (name !== lowerCasedName) return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", name, lowerCasedName), warnedProperties[name] = !0; 1895 switch (name) { 1896 case "dangerouslySetInnerHTML":
1897 case "children": 1898 case "style": 1899 case "suppressContentEditableWarning": 1900 case "suppressHydrationWarning": 1901 case "defaultValue": 1902 case "defaultChecked": 1903 case "innerHTML": 1904 case "ref": return !0; 1905 case "innerText": 1906 case "textContent": return !0; 1907 } 1908 switch (typeof value) { 1909 case "boolean": switch (name) { 1910 case "autoFocus": 1911 case "checked": 1912 case "multiple": 1913 case "muted": 1914 case "selected": 1915 case "contentEditable": 1916 case "spellCheck": 1917 case "draggable": 1918 case "value": 1919 case "autoReverse": 1920 case "externalResourcesRequired": 1921 case "focusable": 1922 case "preserveAlpha": 1923 case "allowFullScreen": 1924 case "async": 1925 case "autoPlay": 1926 case "controls": 1927 case "default": 1928 case "defer": 1929 case "disabled": 1930 case "disablePictureInPicture": 1931 case "disableRemotePlayback": 1932 case "formNoValidate": 1933 case "hidden": 1934 case "loop": 1935 case "noModule": 1936 case "noValidate": 1937 case "open": 1938 case "playsInline": 1939 case "readOnly": 1940 case "required": 1941 case "reversed": 1942 case "scoped": 1943 case "seamless": 1944 case "itemScope": 1945 case "capture": 1946 case "download": 1947 case "inert": return !0; 1948 default: 1949 lowerCasedName = name.toLowerCase().slice(0, 5); 1950 if ("data-" === lowerCasedName || "aria-" === lowerCasedName) return !0; 1951 value ? console.error("Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.", value, name, name, value, name) : console.error("Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s=\"%s\" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", value, name, name, value, name, name, name); 1952 return warnedProperties[name] = !0; 1953 } 1954 case "function": 1955 case "symbol": return warnedProperties[name] = !0, !1; 1956 case "string": if ("false" === value || "true" === value) { 1957 switch (name) { 1958 case "checked": 1959 case "selected": 1960 case "multiple": 1961 case "muted": 1962 case "allowFullScreen": 1963 case "async": 1964 case "autoPlay": 1965 case "controls": 1966 case "default": 1967 case "defer": 1968 case "disabled": 1969 case "disablePictureInPicture": 1970 case "disableRemotePlayback": 1971 case "formNoValidate": 1972 case "hidden": 1973 case "loop": 1974 case "noModule": 1975 case "noValidate": 1976 case "open": 1977 case "playsInline": 1978 case "readOnly": 1979 case "required": 1980 case "reversed": 1981 case "scoped": 1982 case "seamless": 1983 case "itemScope": 1984 case "inert": break; 1985 default: return !0; 1986 } 1987 console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", value, name, "false" === value ? "The browser will interpret it as a truthy value." : "Although this works, it will not work as expected if you pass the string \"fal
1987se\".", name, value); 1988 warnedProperties[name] = !0; 1989 } 1990 } 1991 return !0; 1992 } 1993 function warnUnknownProperties(type, props, eventRegistry) { 1994 var unknownProps = [], key; 1995 for (key in props) validateProperty(type, key, props[key], eventRegistry) || unknownProps.push(key); 1996 props = unknownProps.map(function(prop) { 1997 return "`" + prop + "`"; 1998 }).join(", "); 1999 1 === unknownProps.length ? console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", props, type) : 1 < unknownProps.length && console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", props, type); 2000 } 2001 function sanitizeURL(url) { 2002 return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; 2003 } 2004 function noop$1() {} 2005 function getEventTarget(nativeEvent) { 2006 nativeEvent = nativeEvent.target || nativeEvent.srcElement || window; 2007 nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement); 2008 return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent; 2009 } 2010 function restoreStateOfTarget(target) { 2011 var internalInstance = getInstanceFromNode(target); 2012 if (internalInstance && (target = internalInstance.stateNode)) { 2013 var props = target[internalPropsKey] || null; 2014 a: switch (target = internalInstance.stateNode, internalInstance.type) { 2015 case "input": 2016 updateInput(target, props.value, props.defaultValue, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name); 2017 internalInstance = props.name; 2018 if ("radio" === props.type && null != internalInstance) { 2019 for (props = target; props.parentNode;) props = props.parentNode; 2020 checkAttributeStringCoercion(internalInstance, "name"); 2021 props = props.querySelectorAll("input[name=\"" + escapeSelectorAttributeValueInsideDoubleQuotes("" + internalInstance) + "\"][type=\"radio\"]"); 2022 for (internalInstance = 0; internalInstance < props.length; internalInstance++) { 2023 var otherNode = props[internalInstance]; 2024 if (otherNode !== target && otherNode.form === target.form) { 2025 var otherProps = otherNode[internalPropsKey] || null; 2026 if (!otherProps) throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); 2027 updateInput(otherNode, otherProps.value, otherProps.defaultValue, otherProps.defaultValue, otherProps.checked, otherProps.defaultChecked, otherProps.type, otherProps.name); 2028 } 2029 } 2030 for (internalInstance = 0; internalInstance < props.length; internalInstance++) otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode); 2031 } 2032 break a; 2033 case "textarea": 2034 updateTextarea(target, props.value, props.defaultValue); 2035 break a; 2036 case "select": internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, !1); 2037 } 2038 } 2039 } 2040 function batchedUpdates$1(fn, a, b) { 2041 if (isInsideEventHandler) return fn(a, b); 2042 isInsideEventHandler = !0; 2043 try { 2044 return fn(a); 2045 } finally { 2046 if (isInsideEventHandler = !1, null !== restoreTarget || null !== restoreQueue) { 2047 if (flushSyncWork$1(), restoreTarget && (a = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a), fn)) for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]); 2048 } 2049 } 2050 } 2051 function getListener(inst, registrationName) { 2052 var stateNode = inst.stateNode; 2053 if (null === stateNode) return null; 2054 var props = stateNode[internalPropsKey] || null; 2055 if (null === props) return null; 2056 stateNode = props[registrationName]; 2057 a: switch (registrationName) { 2058 case "onClick":
vendor: 6,006 bytes, lines 2059-2182
2059 case "onClickCapture": 2060 case "onDoubleClick": 2061 case "onDoubleClickCapture": 2062 case "onMouseDown": 2063 case "onMouseDownCapture": 2064 case "onMouseMove": 2065 case "onMouseMoveCapture": 2066 case "onMouseUp": 2067 case "onMouseUpCapture": 2068 case "onMouseEnter": 2069 (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); 2070 inst = !props; 2071 break a; 2072 default: inst = !1; 2073 } 2074 if (inst) return null; 2075 if (stateNode && "function" !== typeof stateNode) throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof stateNode + "` type."); 2076 return stateNode; 2077 } 2078 function getData() { 2079 if (fallbackText) return fallbackText; 2080 var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length; 2081 for (start = 0; start < startLength && startValue[start] === endValue[start]; start++); 2082 var minEnd = startLength - start; 2083 for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++); 2084 return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0); 2085 } 2086 function getEventCharCode(nativeEvent) { 2087 var keyCode = nativeEvent.keyCode; 2088 "charCode" in nativeEvent ? (nativeEvent = nativeEvent.charCode, 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : nativeEvent = keyCode; 2089 10 === nativeEvent && (nativeEvent = 13); 2090 return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0; 2091 } 2092 function functionThatReturnsTrue() { 2093 return !0; 2094 } 2095 function functionThatReturnsFalse() { 2096 return !1; 2097 } 2098 function createSyntheticEvent(Interface) { 2099 function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { 2100 this._reactName = reactName; 2101 this._targetInst = targetInst; 2102 this.type = reactEventType; 2103 this.nativeEvent = nativeEvent; 2104 this.target = nativeEventTarget; 2105 this.currentTarget = null; 2106 for (var propName in Interface) Interface.hasOwnProperty(propName) && (reactName = Interface[propName], this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName]); 2107 this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; 2108 this.isPropagationStopped = functionThatReturnsFalse; 2109 return this; 2110 } 2111 assign(SyntheticBaseEvent.prototype, { 2112 preventDefault: function() { 2113 this.defaultPrevented = !0; 2114 var event = this.nativeEvent; 2115 event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); 2116 }, 2117 stopPropagation: function() { 2118 var event = this.nativeEvent; 2119 event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); 2120 }, 2121 persist: function() {}, 2122 isPersistent: functionThatReturnsTrue 2123 }); 2124 return SyntheticBaseEvent; 2125 } 2126 function modifierStateGetter(keyArg) { 2127 var nativeEvent = this.nativeEvent; 2128 return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[keyArg] : !1; 2129 } 2130 function getEventModifierState() { 2131 return modifierStateGetter; 2132 } 2133 function isFallbackCompositionEnd(domEventName, nativeEvent) { 2134 switch (domEventName) { 2135 case "keyup": return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 2136 case "keydown": return nativeEvent.keyCode !== START_KEYCODE; 2137 case "keypress": 2138 case "mousedown": 2139 case "focusout": return !0; 2140 default: return !1; 2141 } 2142 } 2143 function getDataFromCustomEvent(nativeEvent) { 2144 nativeEvent = nativeEvent.detail; 2145 return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null; 2146 } 2147 function getNativeBeforeInputChars(domEventName, nativeEvent) { 2148 switch (domEventName) { 2149 case "compositionend": return getDataFromCustomEvent(nativeEvent); 2150 case "keypress": 2151 if (nativeEvent.which !== SPACEBAR_CODE) return null; 2152 hasSpaceKeypress = !0; 2153 return SPACEBAR_CHAR; 2154 case "textInput": return domEventName = nativeEvent.data, domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName; 2155 default: return null; 2156 } 2157 } 2158 function getFallbackBeforeInputChars(domEventName, nativeEvent) { 2159 if (isComposing) return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (domEventName = getData(), fallbackText = startText = root = null, isComposing = !1, domEventName) : null; 2160 switch (domEventName) { 2161 case "paste": return null; 2162 case "keypress": 2163 if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) { 2164 if (nativeEvent.char && 1 < nativeEvent.char.length) return nativeEvent.char; 2165 if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); 2166 } 2167 return null; 2168 case "compositionend": return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data; 2169 default: return null; 2170 } 2171 } 2172 function isTextInputElement(elem) { 2173 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 2174 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? !0 : !1; 2175 } 2176 function isEventSupported(eventNameSuffix) { 2177 if (!canUseDOM) return !1; 2178 eventNameSuffix = "on" + eventNameSuffix; 2179 var isSupported = eventNameSuffix in document; 2180 isSupported || (isSupported = document.createElement("div"), isSupported.setAttribute(eventNameSuffix, "return;"), isSupported = "function" === typeof isSupported[eventNameSuffix]); 2181 return isSupported; 2182 }
vendor: 4,934 bytes, lines 2183-2285
2183 function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { 2184 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [target] : restoreTarget = target; 2185 inst = accumulateTwoPhaseListeners(inst, "onChange"); 2186 0 < inst.length && (nativeEvent = new SyntheticEvent("onChange", "change", null, nativeEvent, target), dispatchQueue.push({ 2187 event: nativeEvent, 2188 listeners: inst 2189 })); 2190 } 2191 function runEventInBatch(dispatchQueue) { 2192 processDispatchQueue(dispatchQueue, 0); 2193 } 2194 function getInstIfValueChanged(targetInst) { 2195 if (updateValueIfChanged(getNodeFromInstance(targetInst))) return targetInst; 2196 } 2197 function getTargetInstForChangeEvent(domEventName, targetInst) { 2198 if ("change" === domEventName) return targetInst; 2199 } 2200 function stopWatchingForValueChange() { 2201 activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), activeElementInst$1 = activeElement$1 = null); 2202 } 2203 function handlePropertyChange(nativeEvent) { 2204 if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1)) { 2205 var dispatchQueue = []; 2206 createAndAccumulateChangeEvent(dispatchQueue, activeElementInst$1, nativeEvent, getEventTarget(nativeEvent)); 2207 batchedUpdates$1(runEventInBatch, dispatchQueue); 2208 } 2209 } 2210 function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { 2211 "focusin" === domEventName ? (stopWatchingForValueChange(), activeElement$1 = target, activeElementInst$1 = targetInst, activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); 2212 } 2213 function getTargetInstForInputEventPolyfill(domEventName) { 2214 if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName) return getInstIfValueChanged(activeElementInst$1); 2215 } 2216 function getTargetInstForClickEvent(domEventName, targetInst) { 2217 if ("click" === domEventName) return getInstIfValueChanged(targetInst); 2218 } 2219 function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { 2220 if ("input" === domEventName || "change" === domEventName) return getInstIfValueChanged(targetInst); 2221 } 2222 function is(x, y) { 2223 return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; 2224 } 2225 function shallowEqual(objA, objB) { 2226 if (objectIs(objA, objB)) return !0; 2227 if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; 2228 var keysA = Object.keys(objA), keysB = Object.keys(objB); 2229 if (keysA.length !== keysB.length) return !1; 2230 for (keysB = 0; keysB < keysA.length; keysB++) { 2231 var currentKey = keysA[keysB]; 2232 if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; 2233 } 2234 return !0; 2235 } 2236 function getLeafNode(node) { 2237 for (; node && node.firstChild;) node = node.firstChild; 2238 return node; 2239 } 2240 function getNodeForCharacterOffset(root, offset) { 2241 var node = getLeafNode(root); 2242 root = 0; 2243 for (var nodeEnd; node;) { 2244 if (3 === node.nodeType) { 2245 nodeEnd = root + node.textContent.length; 2246 if (root <= offset && nodeEnd >= offset) return { 2247 node, 2248 offset: offset - root 2249 }; 2250 root = nodeEnd; 2251 } 2252 a: { 2253 for (; node;) { 2254 if (node.nextSibling) { 2255 node = node.nextSibling; 2256 break a; 2257 } 2258 node = node.parentNode; 2259 } 2260 node = void 0; 2261 } 2262 node = getLeafNode(node); 2263 } 2264 } 2265 function containsNode(outerNode, innerNode) { 2266 return outerNode && innerNode ? outerNode === innerNode ? !0 : outerNode && 3 === outerNode.nodeType ? !1 : innerNode && 3 === innerNode.nodeType ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition ? !!(outerNode.compareDocumentPosition(innerNode) & 16) : !1 : !1; 2267 } 2268 function getActiveElementDeep(containerInfo) { 2269 containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window; 2270 for (var element = getActiveElement(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement;) { 2271 try { 2272 var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href; 2273 } catch (err) { 2274 JSCompiler_inline_result = !1; 2275 } 2276 if (JSCompiler_inline_result) containerInfo = element.contentWindow; 2277 else break; 2278 element = getActiveElement(containerInfo.document); 2279 } 2280 return element; 2281 } 2282 function hasSelectionCapabilities(elem) { 2283 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 2284 return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable); 2285 }
vendor: 17,741 bytes, lines 2286-2566
2286 function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { 2287 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument; 2288 mouseDown || null == activeElement || activeElement !== getActiveElement(doc) || (doc = activeElement, "selectionStart" in doc && hasSelectionCapabilities(doc) ? doc = { 2289 start: doc.selectionStart, 2290 end: doc.selectionEnd 2291 } : (doc = (doc.ownerDocument && doc.ownerDocument.defaultView || window).getSelection(), doc = { 2292 anchorNode: doc.anchorNode, 2293 anchorOffset: doc.anchorOffset, 2294 focusNode: doc.focusNode, 2295 focusOffset: doc.focusOffset 2296 }), lastSelection && shallowEqual(lastSelection, doc) || (lastSelection = doc, doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect"), 0 < doc.length && (nativeEvent = new SyntheticEvent("onSelect", "select", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 2297 event: nativeEvent, 2298 listeners: doc 2299 }), nativeEvent.target = activeElement))); 2300 } 2301 function makePrefixMap(styleProp, eventName) { 2302 var prefixes = {}; 2303 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); 2304 prefixes["Webkit" + styleProp] = "webkit" + eventName; 2305 prefixes["Moz" + styleProp] = "moz" + eventName; 2306 return prefixes; 2307 } 2308 function getVendorPrefixedEventName(eventName) { 2309 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 2310 if (!vendorPrefixes[eventName]) return eventName; 2311 var prefixMap = vendorPrefixes[eventName], styleProp; 2312 for (styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp]; 2313 return eventName; 2314 } 2315 function registerSimpleEvent(domEventName, reactName) { 2316 topLevelEventsToReactNames.set(domEventName, reactName); 2317 registerTwoPhaseEvent(reactName, [domEventName]); 2318 } 2319 function getArrayKind(array) { 2320 for (var kind = EMPTY_ARRAY, i = 0; i < array.length; i++) { 2321 var value = array[i]; 2322 if ("object" === typeof value && null !== value) if (isArrayImpl(value) && 2 === value.length && "string" === typeof value[0]) { 2323 if (kind !== EMPTY_ARRAY && kind !== ENTRIES_ARRAY) return COMPLEX_ARRAY; 2324 kind = ENTRIES_ARRAY; 2325 } else return COMPLEX_ARRAY; 2326 else { 2327 if ("function" === typeof value || "string" === typeof value && 50 < value.length || kind !== EMPTY_ARRAY && kind !== PRIMITIVE_ARRAY) return COMPLEX_ARRAY; 2328 kind = PRIMITIVE_ARRAY; 2329 } 2330 } 2331 return kind; 2332 } 2333 function addObjectToProperties(object, properties, indent, prefix) { 2334 for (var key in object) hasOwnProperty.call(object, key) && "_" !== key[0] && addValueToProperties(key, object[key], properties, indent, prefix); 2335 } 2336 function addValueToProperties(propertyName, value, properties, indent, prefix) { 2337 switch (typeof value) { 2338 case "object": if (null === value) { 2339 value = "null"; 2340 break; 2341 } else { 2342 if (value.$$typeof === REACT_ELEMENT_TYPE) { 2343 var typeName = getComponentNameFromType(value.type) || "…", key = value.key; 2344 value = value.props; 2345 var propsKeys = Object.keys(value), propsLength = propsKeys.length; 2346 if (null == key && 0 === propsLength) { 2347 value = "<" + typeName + " />"; 2348 break; 2349 } 2350 if (3 > indent || 1 === propsLength && "children" === propsKeys[0] && null == key) { 2351 value = "<" + typeName + " … />"; 2352 break; 2353 } 2354 properties.push([prefix + "\xA0\xA0".repeat(indent) + propertyName, "<" + typeName]); 2355 null !== key && addValueToProperties("key", key, properties, indent + 1, prefix); 2356 propertyName = !1; 2357 for (var propKey in value) "children" === propKey ? null != value.children && (!isArrayImpl(value.children) || 0 < value.children.length) && (propertyName = !0) : hasOwnProperty.call(value, propKey) && "_" !== propKey[0] && addValueToProperties(propKey, value[propKey], properties, indent + 1, prefix); 2358 properties.push(["", propertyName ? ">…</" + typeName + ">" : "/>"]); 2359 return; 2360 } 2361 typeName = Object.prototype.toString.call(value); 2362 typeName = typeName.slice(8, typeName.length - 1); 2363 if ("Array" === typeName) { 2364 if (propKey = getArrayKind(value), propKey === PRIMITIVE_ARRAY || propKey === EMPTY_ARRAY) { 2365 value = JSON.stringify(value); 2366 break; 2367 } else if (propKey === ENTRIES_ARRAY) { 2368 properties.push([prefix + "\xA0\xA0".repeat(indent) + propertyName, ""]); 2369 for (propertyName = 0; propertyName < value.length; propertyName++) typeName = value[propertyName], addValueToProperties(typeName[0], typeName[1], properties, indent + 1, prefix); 2370 return; 2371 } 2372 } 2373 if ("Promise" === typeName) { 2374 if ("fulfilled" === value.status) { 2375 if (typeName = properties.length, addValueToProperties(propertyName, value.value, properties, indent, prefix), properties.length > typeName) { 2376 properties = properties[typeName]; 2377 properties[1] = "Promise<" + (properties[1] || "Object") + ">"; 2378 return; 2379 } 2380 } else if ("rejected" === value.status && (typeName = properties.length, addValueToProperties(propertyName, value.reason, properties, indent, prefix), properties.length > typeName)) { 2381 properties = properties[typeName]; 2382 properties[1] = "Rejected Promise<" + properties[1] + ">"; 2383 return; 2384 } 2385 properties.push(["\xA0\xA0".repeat(indent) + propertyName, "Promise"]); 2386 return; 2387 } 2388 "Object" === typeName && (propKey = Object.getPrototypeOf(value)) && "function" === typeof propKey.constructor && (typeName = propKey.constructor.name); 2389 properties.push([prefix + "\xA0\xA0".repeat(indent) + propertyName, "Object" === typeName ? 3 > indent ? "" : "…" : typeName]); 2390 3 > indent && addObjectToProperties(value, properties, indent + 1, prefix); 2391 return; 2392 } 2393 case "function": 2394 value = "" === value.name ? "() => {}" : value.name + "() {}"; 2395 break; 2396 case "string": 2397 value = value === OMITTED_PROP_ERROR ? "…" : JSON.stringify(value); 2398 break; 2399 case "undefined": 2400 value = "undefined"; 2401 break; 2402 case "boolean": 2403 value = value ? "true" : "false"; 2404 break; 2405 default: value = String(value); 2406 } 2407 properties.push([prefix + "\xA0\xA0".repeat(indent) + propertyName, value]); 2408 } 2409 function addObjectDiffToProperties(prev, next, properties, indent) { 2410 var isDeeplyEqual = !0; 2411 for (key in prev) key in next || (properties.push([REMOVED + "\xA0\xA0".repeat(indent) + key, "…"]), isDeeplyEqual = !1); 2412 for (var _key in next) if (_key in prev) { 2413 var key = prev[_key]; 2414 var nextValue = next[_key]; 2415 if (key !== nextValue) { 2416 if (0 === indent && "children" === _key) isDeeplyEqual = "\xA0\xA0".repeat(indent) + _key, properties.push([REMOVED + isDeeplyEqual, "…"], [ADDED + isDeeplyEqual, "…"]); 2417 else { 2418 if (!(3 <= indent)) { 2419 if ("object" === typeof key && "object" === typeof nextValue && null !== key && null !== nextValue && key.$$typeof === nextValue.$$typeof) if (nextValue.$$typeof === REACT_ELEMENT_TYPE) { 2420 if (key.type === nextValue.type && key.key === nextValue.key) { 2421 key = getComponentNameFromType(nextValue.type) || "…"; 2422 isDeeplyEqual = "\xA0\xA0".repeat(indent) + _key; 2423 key = "<" + key + " … />"; 2424 properties.push([REMOVED + isDeeplyEqual, key], [ADDED + isDeeplyEqual, key]); 2425 isDeeplyEqual = !1; 2426 continue; 2427 } 2428 } else { 2429 var prevKind = Object.prototype.toString.call(key), nextKind = Object.prototype.toString.call(nextValue); 2430 if (prevKind === nextKind && ("[object Object]" === nextKind || "[object Array]" === nextKind)) { 2431 prevKind = [UNCHANGED + "\xA0\xA0".repeat(indent) + _key, "[object Array]" === nextKind ? "Array" : ""]; 2432 properties.push(prevKind); 2433 nextKind = properties.length; 2434 addObjectDiffToProperties(key, nextValue, properties, indent + 1) ? nextKind === properties.length && (prevKind[1] = "Referentially unequal but deeply equal objects. Consider memoization.") : isDeeplyEqual = !1; 2435 continue; 2436 } 2437 } 2438 else if ("function" === typeof key && "function" === typeof nextValue && key.name === nextValue.name && key.length === nextValue.length && (prevKind = Function.prototype.toString.call(key), nextKind = Function.prototype.toString.call(nextValue), prevKind === nextKind)) { 2439 key = "" === nextValue.name ? "() => {}" : nextValue.name + "() {}"; 2440 properties.push([UNCHANGED + "\xA0\xA0".repeat(indent) + _key, key + " Referentially unequal function closure. Consider memoization."]); 2441 continue; 2442 } 2443 } 2444 addValueToProperties(_key, key, properties, indent, REMOVED); 2445 addValueToProperties(_key, nextValue, properties, indent, ADDED); 2446 } 2447 isDeeplyEqual = !1; 2448 } 2449 } else properties.push([ADDED + "\xA0\xA0".repeat(indent) + _key, "…"]), isDeeplyEqual = !1; 2450 return isDeeplyEqual; 2451 } 2452 function setCurrentTrackFromLanes(lanes) { 2453 currentTrack = lanes & 63 ? "Blocking" : lanes & 64 ? "Gesture" : lanes & 4194176 ? "Transition" : lanes & 62914560 ? "Suspense" : lanes & 2080374784 ? "Idle" : "Other"; 2454 } 2455 function logComponentTrigger(fiber, startTime, endTime, trigger) { 2456 supportsUserTiming && (reusableComponentOptions.start = startTime, reusableComponentOptions.end = endTime, reusableComponentDevToolDetails.color = "warning", reusableComponentDevToolDetails.tooltipText = trigger, reusableComponentDevToolDetails.properties = null, (fiber = fiber._debugTask) ? fiber.run(performance.measure.bind(performance, trigger, reusableComponentOptions)) : performance.measure(trigger, reusableComponentOptions)); 2457 } 2458 function logComponentReappeared(fiber, startTime, endTime) { 2459 logComponentTrigger(fiber, startTime, endTime, "Reconnect"); 2460 } 2461 function logComponentRender(fiber, startTime, endTime, wasHydrated, committedLanes) { 2462 var name = getComponentNameFromFiber(fiber); 2463 if (null !== name && supportsUserTiming) { 2464 var alternate = fiber.alternate, selfTime = fiber.actualDuration; 2465 if (null === alternate || alternate.child !== fiber.child) for (var child = fiber.child; null !== child; child = child.sibling) selfTime -= child.actualDuration; 2466 wasHydrated = .5 > selfTime ? wasHydrated ? "tertiary-light" : "primary-light" : 10 > selfTime ? wasHydrated ? "tertiary" : "primary" : 100 > selfTime ? wasHydrated ? "tertiary-dark" : "primary-dark" : "error"; 2467 var props = fiber.memoizedProps; 2468 selfTime = fiber._debugTask; 2469 null !== props && null !== alternate && alternate.memoizedProps !== props ? (child = [resuableChangedPropsEntry], props = addObjectDiffToProperties(alternate.memoizedProps, props, child, 0), 1 < child.length && (props && !alreadyWarnedForDeepEquality && 0 === (alternate.lanes & committedLanes) && 100 < fiber.actualDuration ? (alreadyWarnedForDeepEquality = !0, child[0] = reusableDeeplyEqualPropsEntry, reusableComponentDevToolDetails.color = "warning", reusableComponentDevToolDetails.tooltipText = DEEP_EQUALITY_WARNING) : (reusableComponentDevToolDetails.color = wasHydrated, reusableComponentDevToolDetails.tooltipText = name), reusableComponentDevToolDetails.properties = child, reusableComponentOptions.start = startTime, reusableComponentOptions.end = endTime, null != selfTime ? selfTime.run(performance.measure.bind(performance, "​" + name, reusableComponentOptions)) : performance.measure("​" + name, reusableComponentOptions))) : null != selfTime ? selfTime.run(console.timeStamp.bind(console, name, startTime, endTime, COMPONENTS_TRACK, void 0, wasHydrated)) : console.timeStamp(name, startTime, endTime, COMPONENTS_TRACK, void 0, wasHydrated); 2470 } 2471 } 2472 function logComponentErrored(fiber, startTime, endTime, errors) { 2473 if (supportsUserTiming) { 2474 var name = getComponentNameFromFiber(fiber); 2475 if (null !== name) { 2476 for (var debugTask = null, properties = [], i = 0; i < errors.length; i++) { 2477 var capturedValue = errors[i]; 2478 null == debugTask && null !== capturedValue.source && (debugTask = capturedValue.source._debugTask); 2479 capturedValue = capturedValue.value; 2480 properties.push(["Error", "object" === typeof capturedValue && null !== capturedValue && "string" === typeof capturedValue.message ? String(capturedValue.message) : String(capturedValue)]); 2481 } 2482 null !== fiber.key && addValueToProperties("key", fiber.key, properties, 0, ""); 2483 null !== fiber.memoizedProps && addObjectToProperties(fiber.memoizedProps, properties, 0, ""); 2484 debugTask ??= fiber._debugTask; 2485 fiber = { 2486 start: startTime, 2487 end: endTime, 2488 detail: { devtools: { 2489 color: "error", 2490 track: COMPONENTS_TRACK, 2491 tooltipText: 13 === fiber.tag ? "Hydration failed" : "Error boundary caught an error", 2492 properties 2493 } } 2494 }; 2495 debugTask ? debugTask.run(performance.measure.bind(performance, "​" + name, fiber)) : performance.measure("​" + name, fiber); 2496 } 2497 } 2498 } 2499 function logComponentEffect(fiber, startTime, endTime, selfTime, errors) { 2500 if (null !== errors) { 2501 if (supportsUserTiming) { 2502 var name = getComponentNameFromFiber(fiber); 2503 if (null !== name) { 2504 selfTime = []; 2505 for (var i = 0; i < errors.length; i++) { 2506 var error = errors[i].value; 2507 selfTime.push(["Error", "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error)]); 2508 } 2509 null !== fiber.key && addValueToProperties("key", fiber.key, selfTime, 0, ""); 2510 null !== fiber.memoizedProps && addObjectToProperties(fiber.memoizedProps, selfTime, 0, ""); 2511 startTime = { 2512 start: startTime, 2513 end: endTime, 2514 detail: { devtools: { 2515 color: "error", 2516 track: COMPONENTS_TRACK, 2517 tooltipText: "A lifecycle or effect errored", 2518 properties: selfTime 2519 } } 2520 }; 2521 (fiber = fiber._debugTask) ? fiber.run(performance.measure.bind(performance, "​" + name, startTime)) : performance.measure("​" + name, startTime); 2522 } 2523 } 2524 } else name = getComponentNameFromFiber(fiber), null !== name && supportsUserTiming && (errors = 1 > selfTime ? "secondary-light" : 100 > selfTime ? "secondary" : 500 > selfTime ? "secondary-dark" : "error", (fiber = fiber._debugTask) ? fiber.run(console.timeStamp.bind(console, name, startTime, endTime, COMPONENTS_TRACK, void 0, errors)) : console.timeStamp(name, startTime, endTime, COMPONENTS_TRACK, void 0, errors)); 2525 } 2526 function logRenderPhase(startTime, endTime, lanes, debugTask) { 2527 if (supportsUserTiming && !(endTime <= startTime)) { 2528 var color = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark"; 2529 lanes = (lanes & 536870912) === lanes ? "Prepared" : (lanes & 201326741) === lanes ? "Hydrated" : "Render"; 2530 debugTask ? debugTask.run(console.timeStamp.bind(console, lanes, startTime, endTime, currentTrack, LANES_TRACK_GROUP, color)) : console.timeStamp(lanes, startTime, endTime, currentTrack, LANES_TRACK_GROUP, color); 2531 } 2532 } 2533 function logSuspendedRenderPhase(startTime, endTime, lanes, debugTask) { 2534 !supportsUserTiming || endTime <= startTime || (lanes = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", debugTask ? debugTask.run(console.timeStamp.bind(console, "Prewarm", startTime, endTime, currentTrack, LANES_TRACK_GROUP, lanes)) : console.timeStamp("Prewarm", startTime, endTime, currentTrack, LANES_TRACK_GROUP, lanes)); 2535 } 2536 function logSuspendedWithDelayPhase(startTime, endTime, lanes, debugTask) { 2537 !supportsUserTiming || endTime <= startTime || (lanes = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", debugTask ? debugTask.run(console.timeStamp.bind(console, "Suspended", startTime, endTime, currentTrack, LANES_TRACK_GROUP, lanes)) : console.timeStamp("Suspended", startTime, endTime, currentTrack, LANES_TRACK_GROUP, lanes)); 2538 } 2539 function logRecoveredRenderPhase(startTime, endTime, lanes, recoverableErrors, hydrationFailed, debugTask) { 2540 if (supportsUserTiming && !(endTime <= startTime)) { 2541 lanes = []; 2542 for (var i = 0; i < recoverableErrors.length; i++) { 2543 var error = recoverableErrors[i].value; 2544 lanes.push(["Recoverable Error", "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error)]); 2545 } 2546 startTime = { 2547 start: startTime, 2548 end: endTime, 2549 detail: { devtools: { 2550 color: "primary-dark", 2551 track: currentTrack, 2552 trackGroup: LANES_TRACK_GROUP, 2553 tooltipText: hydrationFailed ? "Hydration Failed" : "Recovered after Error", 2554 properties: lanes 2555 } } 2556 }; 2557 debugTask ? debugTask.run(performance.measure.bind(performance, "Recovered", startTime)) : performance.measure("Recovered", startTime); 2558 } 2559 } 2560 function logErroredRenderPhase(startTime, endTime, lanes, debugTask) { 2561 !supportsUserTiming || endTime <= startTime || (debugTask ? debugTask.run(console.timeStamp.bind(console, "Errored", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "error")) : console.timeStamp("Errored", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "error")); 2562 } 2563 function logSuspendedCommitPhase(startTime, endTime, reason, debugTask) { 2564 !supportsUserTiming || endTime <= startTime || (debugTask ? debugTask.run(console.timeStamp.bind(console, reason, startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")) : console.timeStamp(reason, startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")); 2565 } 2566 function logCommitErrored(startTime, endTime, errors, passive, debugTask) {
2567 if (supportsUserTiming && !(endTime <= startTime)) { 2568 for (var properties = [], i = 0; i < errors.length; i++) { 2569 var error = errors[i].value; 2570 properties.push(["Error", "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error)]); 2571 } 2572 startTime = { 2573 start: startTime, 2574 end: endTime, 2575 detail: { devtools: { 2576 color: "error", 2577 track: currentTrack, 2578 trackGroup: LANES_TRACK_GROUP, 2579 tooltipText: passive ? "Remaining Effects Errored" : "Commit Errored", 2580 properties 2581 } } 2582 }; 2583 debugTask ? debugTask.run(performance.measure.bind(performance, "Errored", startTime)) : performance.measure("Errored", startTime); 2584 } 2585 } 2586 function logAnimatingPhase(startTime, endTime, debugTask) { 2587 !supportsUserTiming || endTime <= startTime || (debugTask ? debugTask.run(console.timeStamp.bind(console, "Animating", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-dark")) : console.timeStamp("Animating", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-dark")); 2588 } 2589 function finishQueueingConcurrentUpdates() { 2590 for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex;) { 2591 var fiber = concurrentQueues[i]; 2592 concurrentQueues[i++] = null; 2593 var queue = concurrentQueues[i]; 2594 concurrentQueues[i++] = null; 2595 var update = concurrentQueues[i]; 2596 concurrentQueues[i++] = null; 2597 var lane = concurrentQueues[i]; 2598 concurrentQueues[i++] = null; 2599 if (null !== queue && null !== update) { 2600 var pending = queue.pending; 2601 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 2602 queue.pending = update; 2603 } 2604 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); 2605 } 2606 } 2607 function enqueueUpdate$1(fiber, queue, update, lane) { 2608 concurrentQueues[concurrentQueuesIndex++] = fiber; 2609 concurrentQueues[concurrentQueuesIndex++] = queue; 2610 concurrentQueues[concurrentQueuesIndex++] = update; 2611 concurrentQueues[concurrentQueuesIndex++] = lane; 2612 concurrentlyUpdatedLanes |= lane; 2613 fiber.lanes |= lane; 2614 fiber = fiber.alternate; 2615 null !== fiber && (fiber.lanes |= lane); 2616 } 2617 function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { 2618 enqueueUpdate$1(fiber, queue, update, lane); 2619 return getRootForUpdatedFiber(fiber); 2620 } 2621 function enqueueConcurrentRenderForLane(fiber, lane) { 2622 enqueueUpdate$1(fiber, null, null, lane); 2623 return getRootForUpdatedFiber(fiber); 2624 } 2625 function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { 2626 sourceFiber.lanes |= lane; 2627 var alternate = sourceFiber.alternate; 2628 null !== alternate && (alternate.lanes |= lane); 2629 for (var isHidden = !1, parent = sourceFiber.return; null !== parent;) parent.childLanes |= lane, alternate = parent.alternate, null !== alternate && (alternate.childLanes |= lane), 22 === parent.tag && (sourceFiber = parent.stateNode, null === sourceFiber || sourceFiber._visibility & OffscreenVisible || (isHidden = !0)), sourceFiber = parent, parent = parent.return; 2630 return 3 === sourceFiber.tag ? (parent = sourceFiber.stateNode, isHidden && null !== update && (isHidden = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden], null === alternate ? sourceFiber[isHidden] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null; 2631 } 2632 function getRootForUpdatedFiber(sourceFiber) { 2633 if (nestedUpdateCount > NESTED_UPDATE_LIMIT) throw nestedPassiveUpdateCount = nestedUpdateCount = 0, rootWithPassiveNestedUpdates = rootWithNestedUpdates = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); 2634 nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT && (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")); 2635 null === sourceFiber.alternate && 0 !== (sourceFiber.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); 2636 for (var node = sourceFiber, parent = node.return; null !== parent;) null === node.alternate && 0 !== (node.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return; 2637 return 3 === node.tag ? node.stateNode : null; 2638 } 2639 function resolveFunctionForHotReloading(type) { 2640 if (null === resolveFamily) return type; 2641 var family = resolveFamily(type); 2642 return void 0 === family ? type : family.current; 2643 } 2644 function resolveForwardRefForHotReloading(type) { 2645 if (null === resolveFamily) return type; 2646 var family = resolveFamily(type); 2647 return void 0 === family ? null !== type && void 0 !== type && "function" === typeof type.render && (family = resolveFunctionForHotReloading(type.render), type.render !== family) ? (family = { 2648 $$typeof: REACT_FORWARD_REF_TYPE, 2649 render: family 2650 }, void 0 !== type.displayName && (family.displayName = type.displayName), family) : type : family.current; 2651 } 2652 function isCompatibleFamilyForHotReloading(fiber, element) { 2653 if (null === resolveFamily) return !1; 2654 var prevType = fiber.elementType; 2655 element = element.type; 2656 var needsCompareFamilies = !1, $$typeofNextType = "object" === typeof element && null !== element ? element.$$typeof : null; 2657 switch (fiber.tag) { 2658 case 1: 2659 "function" === typeof element && (needsCompareFamilies = !0); 2660 break; 2661 case 0: 2662 "function" === typeof element ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2663 break; 2664 case 11: 2665 $$typeofNextType === REACT_FORWARD_REF_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2666 break; 2667 case 14:
2668 case 15: 2669 $$typeofNextType === REACT_MEMO_TYPE ? needsCompareFamilies = !0 : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = !0); 2670 break; 2671 default: return !1; 2672 } 2673 return needsCompareFamilies && (fiber = resolveFamily(prevType), void 0 !== fiber && fiber === resolveFamily(element)) ? !0 : !1; 2674 } 2675 function markFailedErrorBoundaryForHotReloading(fiber) { 2676 null !== resolveFamily && "function" === typeof WeakSet && (null === failedBoundaries && (failedBoundaries = /* @__PURE__ */ new WeakSet()), failedBoundaries.add(fiber)); 2677 } 2678 function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { 2679 do { 2680 var _fiber = fiber, alternate = _fiber.alternate, child = _fiber.child, sibling = _fiber.sibling, tag = _fiber.tag; 2681 _fiber = _fiber.type; 2682 var candidateType = null; 2683 switch (tag) { 2684 case 0: 2685 case 15: 2686 case 1: 2687 candidateType = _fiber; 2688 break; 2689 case 11: candidateType = _fiber.render; 2690 } 2691 if (null === resolveFamily) throw Error("Expected resolveFamily to be set during hot reload."); 2692 var needsRender = !1; 2693 _fiber = !1; 2694 null !== candidateType && (candidateType = resolveFamily(candidateType), void 0 !== candidateType && (staleFamilies.has(candidateType) ? _fiber = !0 : updatedFamilies.has(candidateType) && (1 === tag ? _fiber = !0 : needsRender = !0))); 2695 null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (_fiber = !0); 2696 _fiber && (fiber._debugNeedsRemount = !0); 2697 if (_fiber || needsRender) alternate = enqueueConcurrentRenderForLane(fiber, 2), null !== alternate && scheduleUpdateOnFiber(alternate, fiber, 2); 2698 null === child || _fiber || scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); 2699 if (null === sibling) break; 2700 fiber = sibling; 2701 } while (1); 2702 } 2703 function FiberNode(tag, pendingProps, key, mode) { 2704 this.tag = tag; 2705 this.key = key; 2706 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; 2707 this.index = 0; 2708 this.refCleanup = this.ref = null; 2709 this.pendingProps = pendingProps; 2710 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; 2711 this.mode = mode; 2712 this.subtreeFlags = this.flags = 0; 2713 this.deletions = null; 2714 this.childLanes = this.lanes = 0; 2715 this.alternate = null; 2716 this.actualDuration = -0; 2717 this.actualStartTime = -1.1; 2718 this.treeBaseDuration = this.selfBaseDuration = -0; 2719 this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null; 2720 this._debugNeedsRemount = !1; 2721 this._debugHookTypes = null; 2722 hasBadMapPolyfill || "function" !== typeof Object.preventExtensions || Object.preventExtensions(this); 2723 } 2724 function shouldConstruct(Component) { 2725 Component = Component.prototype; 2726 return !(!Component || !Component.isReactComponent); 2727 } 2728 function createWorkInProgress(current, pendingProps) { 2729 var workInProgress = current.alternate; 2730 null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress._debugOwner = current._debugOwner, workInProgress._debugStack = current._debugStack, workInProgress._debugTask = current._debugTask, workInProgress._debugHookTypes = current._debugHookTypes, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null, workInProgress.actualDuration = -0, workInProgress.actualStartTime = -1.1); 2731 workInProgress.flags = current.flags & 65011712; 2732 workInProgress.childLanes = current.childLanes; 2733 workInProgress.lanes = current.lanes; 2734 workInProgress.child = current.child; 2735 workInProgress.memoizedProps = current.memoizedProps; 2736 workInProgress.memoizedState = current.memoizedState; 2737 workInProgress.updateQueue = current.updateQueue; 2738 pendingProps = current.dependencies;
2739 workInProgress.dependencies = null === pendingProps ? null : { 2740 lanes: pendingProps.lanes, 2741 firstContext: pendingProps.firstContext, 2742 _debugThenableState: pendingProps._debugThenableState 2743 }; 2744 workInProgress.sibling = current.sibling; 2745 workInProgress.index = current.index; 2746 workInProgress.ref = current.ref; 2747 workInProgress.refCleanup = current.refCleanup; 2748 workInProgress.selfBaseDuration = current.selfBaseDuration; 2749 workInProgress.treeBaseDuration = current.treeBaseDuration; 2750 workInProgress._debugInfo = current._debugInfo; 2751 workInProgress._debugNeedsRemount = current._debugNeedsRemount; 2752 switch (workInProgress.tag) { 2753 case 0: 2754 case 15: 2755 workInProgress.type = resolveFunctionForHotReloading(current.type); 2756 break; 2757 case 1: 2758 workInProgress.type = resolveFunctionForHotReloading(current.type); 2759 break; 2760 case 11: workInProgress.type = resolveForwardRefForHotReloading(current.type); 2761 } 2762 return workInProgress; 2763 } 2764 function resetWorkInProgress(workInProgress, renderLanes) { 2765 workInProgress.flags &= 65011714; 2766 var current = workInProgress.alternate; 2767 null === current ? (workInProgress.childLanes = 0, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.subtreeFlags = 0, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null, workInProgress.selfBaseDuration = 0, workInProgress.treeBaseDuration = 0) : (workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.subtreeFlags = 0, workInProgress.deletions = null, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, workInProgress.type = current.type, renderLanes = current.dependencies, workInProgress.dependencies = null === renderLanes ? null : { 2768 lanes: renderLanes.lanes, 2769 firstContext: renderLanes.firstContext, 2770 _debugThenableState: renderLanes._debugThenableState 2771 }, workInProgress.selfBaseDuration = current.selfBaseDuration, workInProgress.treeBaseDuration = current.treeBaseDuration); 2772 return workInProgress; 2773 } 2774 function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { 2775 var fiberTag = 0, resolvedType = type; 2776 if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1), resolvedType = resolveFunctionForHotReloading(resolvedType); 2777 else if ("string" === typeof type) fiberTag = getHostContext(), fiberTag = isHostHoistableType(type, pendingProps, fiberTag) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5; 2778 else a: switch (type) { 2779 case REACT_ACTIVITY_TYPE: return key = createFiber(31, pendingProps, key, mode), key.elementType = REACT_ACTIVITY_TYPE, key.lanes = lanes, key; 2780 case REACT_FRAGMENT_TYPE: return createFiberFromFragment(pendingProps.children, mode, lanes, key); 2781 case REACT_STRICT_MODE_TYPE: 2782 fiberTag = 8; 2783 mode |= StrictLegacyMode; 2784 mode |= StrictEffectsMode; 2785 break; 2786 case REACT_PROFILER_TYPE: return type = pendingProps, owner = mode, "string" !== typeof type.id && console.error("Profiler must specify an \"id\" of type `string` as a prop. Received the type `%s` instead.", typeof type.id), key = createFiber(12, type, key, owner | ProfileMode), key.elementType = REACT_PROFILER_TYPE, key.lanes = lanes, key.stateNode = { 2787 effectDuration: 0, 2788 passiveEffectDuration: 0 2789 }, key; 2790 case REACT_SUSPENSE_TYPE: return key = createFiber(13, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key; 2791 case REACT_SUSPENSE_LIST_TYPE: return key = createFiber(19, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key; 2792 default: 2793 if ("object" === typeof type && null !== type) switch (type.$$typeof) { 2794 case REACT_CONTEXT_TYPE: 2795 fiberTag = 10; 2796 break a; 2797 case REACT_CONSUMER_TYPE: 2798 fiberTag = 9; 2799 break a; 2800 case REACT_FORWARD_REF_TYPE: 2801 fiberTag = 11; 2802 resolvedType = resolveForwardRefForHotReloading(resolvedType); 2803 break a; 2804 case REACT_MEMO_TYPE: 2805 fiberTag = 14; 2806 break a; 2807 case REACT_LAZY_TYPE: 2808 fiberTag = 16; 2809 resolvedType = null; 2810 break a; 2811 } 2812 resolvedType = ""; 2813 if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length) resolvedType += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; 2814 null === type ? pendingProps = "null" : isArrayImpl(type) ? pendingProps = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (pendingProps = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", resolvedType = " Did you accidentally export a JSX literal instead of a component?") : pendingProps = typeof type; 2815 (fiberTag = owner ? getComponentNameFromOwner(owner) : null) && (resolvedType += "\n\nCheck the render method of `" + fiberTag + "`."); 2816 fiberTag = 29;
vendor: 9,143 bytes, lines 2817-3017
2817 pendingProps = Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (pendingProps + "." + resolvedType)); 2818 resolvedType = null; 2819 } 2820 key = createFiber(fiberTag, pendingProps, key, mode); 2821 key.elementType = type; 2822 key.type = resolvedType; 2823 key.lanes = lanes; 2824 key._debugOwner = owner; 2825 return key; 2826 } 2827 function createFiberFromElement(element, mode, lanes) { 2828 mode = createFiberFromTypeAndProps(element.type, element.key, element.props, element._owner, mode, lanes); 2829 mode._debugOwner = element._owner; 2830 mode._debugStack = element._debugStack; 2831 mode._debugTask = element._debugTask; 2832 return mode; 2833 } 2834 function createFiberFromFragment(elements, mode, lanes, key) { 2835 elements = createFiber(7, elements, key, mode); 2836 elements.lanes = lanes; 2837 return elements; 2838 } 2839 function createFiberFromText(content, mode, lanes) { 2840 content = createFiber(6, content, null, mode); 2841 content.lanes = lanes; 2842 return content; 2843 } 2844 function createFiberFromDehydratedFragment(dehydratedNode) { 2845 var fiber = createFiber(18, null, null, NoMode); 2846 fiber.stateNode = dehydratedNode; 2847 return fiber; 2848 } 2849 function createFiberFromPortal(portal, mode, lanes) { 2850 mode = createFiber(4, null !== portal.children ? portal.children : [], portal.key, mode); 2851 mode.lanes = lanes; 2852 mode.stateNode = { 2853 containerInfo: portal.containerInfo, 2854 pendingChildren: null, 2855 implementation: portal.implementation 2856 }; 2857 return mode; 2858 } 2859 function createCapturedValueAtFiber(value, source) { 2860 if ("object" === typeof value && null !== value) { 2861 var existing = CapturedStacks.get(value); 2862 if (void 0 !== existing) return existing; 2863 source = { 2864 value, 2865 source, 2866 stack: getStackByFiberInDevAndProd(source) 2867 }; 2868 CapturedStacks.set(value, source); 2869 return source; 2870 } 2871 return { 2872 value, 2873 source, 2874 stack: getStackByFiberInDevAndProd(source) 2875 }; 2876 } 2877 function pushTreeFork(workInProgress, totalChildren) { 2878 warnIfNotHydrating(); 2879 forkStack[forkStackIndex++] = treeForkCount; 2880 forkStack[forkStackIndex++] = treeForkProvider; 2881 treeForkProvider = workInProgress; 2882 treeForkCount = totalChildren; 2883 } 2884 function pushTreeId(workInProgress, totalChildren, index) { 2885 warnIfNotHydrating(); 2886 idStack[idStackIndex++] = treeContextId; 2887 idStack[idStackIndex++] = treeContextOverflow; 2888 idStack[idStackIndex++] = treeContextProvider; 2889 treeContextProvider = workInProgress; 2890 var baseIdWithLeadingBit = treeContextId; 2891 workInProgress = treeContextOverflow; 2892 var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; 2893 baseIdWithLeadingBit &= ~(1 << baseLength); 2894 index += 1; 2895 var length = 32 - clz32(totalChildren) + baseLength; 2896 if (30 < length) { 2897 var numberOfOverflowBits = baseLength - baseLength % 5; 2898 length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32); 2899 baseIdWithLeadingBit >>= numberOfOverflowBits; 2900 baseLength -= numberOfOverflowBits; 2901 treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit; 2902 treeContextOverflow = length + workInProgress; 2903 } else treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress; 2904 } 2905 function pushMaterializedTreeId(workInProgress) { 2906 warnIfNotHydrating(); 2907 null !== workInProgress.return && (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0)); 2908 } 2909 function popTreeContext(workInProgress) { 2910 for (; workInProgress === treeForkProvider;) treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null; 2911 for (; workInProgress === treeContextProvider;) treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null; 2912 } 2913 function getSuspendedTreeContext() { 2914 warnIfNotHydrating(); 2915 return null !== treeContextProvider ? { 2916 id: treeContextId, 2917 overflow: treeContextOverflow 2918 } : null; 2919 } 2920 function restoreSuspendedTreeContext(workInProgress, suspendedContext) { 2921 warnIfNotHydrating(); 2922 idStack[idStackIndex++] = treeContextId; 2923 idStack[idStackIndex++] = treeContextOverflow; 2924 idStack[idStackIndex++] = treeContextProvider; 2925 treeContextId = suspendedContext.id; 2926 treeContextOverflow = suspendedContext.overflow; 2927 treeContextProvider = workInProgress; 2928 } 2929 function warnIfNotHydrating() { 2930 isHydrating || console.error("Expected to be hydrating. This is a bug in React. Please file an issue."); 2931 } 2932 function buildHydrationDiffNode(fiber, distanceFromLeaf) { 2933 if (null === fiber.return) { 2934 if (null === hydrationDiffRootDEV) hydrationDiffRootDEV = { 2935 fiber, 2936 children: [], 2937 serverProps: void 0, 2938 serverTail: [], 2939 distanceFromLeaf 2940 }; 2941 else { 2942 if (hydrationDiffRootDEV.fiber !== fiber) throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React."); 2943 hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf && (hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf); 2944 } 2945 return hydrationDiffRootDEV; 2946 } 2947 var siblings = buildHydrationDiffNode(fiber.return, distanceFromLeaf + 1).children; 2948 if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber) return siblings = siblings[siblings.length - 1], siblings.distanceFromLeaf > distanceFromLeaf && (siblings.distanceFromLeaf = distanceFromLeaf), siblings; 2949 distanceFromLeaf = { 2950 fiber, 2951 children: [], 2952 serverProps: void 0, 2953 serverTail: [], 2954 distanceFromLeaf 2955 }; 2956 siblings.push(distanceFromLeaf); 2957 return distanceFromLeaf; 2958 } 2959 function warnIfHydrating() { 2960 isHydrating && console.error("We should not be hydrating here. This is a bug in React. Please file a bug."); 2961 } 2962 function warnNonHydratedInstance(fiber, rejectedCandidate) { 2963 didSuspendOrErrorDEV || (fiber = buildHydrationDiffNode(fiber, 0), fiber.serverProps = null, null !== rejectedCandidate && (rejectedCandidate = describeHydratableInstanceForDevWarnings(rejectedCandidate), fiber.serverTail.push(rejectedCandidate))); 2964 } 2965 function throwOnHydrationMismatch(fiber) { 2966 var fromText = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : !1, diff = "", diffRoot = hydrationDiffRootDEV; 2967 null !== diffRoot && (hydrationDiffRootDEV = null, diff = describeDiff(diffRoot)); 2968 queueHydrationError(createCapturedValueAtFiber(Error("Hydration failed because the server rendered " + (fromText ? "text" : "HTML") + " didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + diff), fiber)); 2969 throw HydrationMismatchException; 2970 } 2971 function prepareToHydrateHostInstance(fiber) { 2972 var didHydrate = fiber.stateNode; 2973 var type = fiber.type, props = fiber.memoizedProps; 2974 didHydrate[internalInstanceKey] = fiber; 2975 didHydrate[internalPropsKey] = props; 2976 validatePropertiesInDevelopment(type, props); 2977 switch (type) { 2978 case "dialog": 2979 listenToNonDelegatedEvent("cancel", didHydrate); 2980 listenToNonDelegatedEvent("close", didHydrate); 2981 break; 2982 case "iframe": 2983 case "object": 2984 case "embed": 2985 listenToNonDelegatedEvent("load", didHydrate); 2986 break; 2987 case "video": 2988 case "audio": 2989 for (type = 0; type < mediaEventTypes.length; type++) listenToNonDelegatedEvent(mediaEventTypes[type], didHydrate); 2990 break; 2991 case "source": 2992 listenToNonDelegatedEvent("error", didHydrate); 2993 break; 2994 case "img": 2995 case "image": 2996 case "link": 2997 listenToNonDelegatedEvent("error", didHydrate); 2998 listenToNonDelegatedEvent("load", didHydrate); 2999 break; 3000 case "details": 3001 listenToNonDelegatedEvent("toggle", didHydrate); 3002 break; 3003 case "input": 3004 checkControlledValueProps("input", props); 3005 listenToNonDelegatedEvent("invalid", didHydrate); 3006 validateInputProps(didHydrate, props); 3007 initInput(didHydrate, props.value, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name, !0); 3008 break; 3009 case "option": 3010 validateOptionProps(didHydrate, props); 3011 break; 3012 case "select": 3013 checkControlledValueProps("select", props); 3014 listenToNonDelegatedEvent("invalid", didHydrate); 3015 validateSelectProps(didHydrate, props); 3016 break; 3017 case "textarea": checkControlledValueProps("textarea", props), listenToNonDelegatedEvent("invalid", didHydrate), val
vendor: 5,283 bytes, lines 3017-3095
3017idateTextareaProps(didHydrate, props), initTextarea(didHydrate, props.value, props.defaultValue, props.children); 3018 } 3019 type = props.children; 3020 "string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type || didHydrate.textContent === "" + type || !0 === props.suppressHydrationWarning || checkForUnmatchedText(didHydrate.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", didHydrate), listenToNonDelegatedEvent("toggle", didHydrate)), null != props.onScroll && listenToNonDelegatedEvent("scroll", didHydrate), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", didHydrate), null != props.onClick && (didHydrate.onclick = noop$1), didHydrate = !0) : didHydrate = !1; 3021 didHydrate || throwOnHydrationMismatch(fiber, !0); 3022 } 3023 function popToNextHostParent(fiber) { 3024 for (hydrationParentFiber = fiber.return; hydrationParentFiber;) switch (hydrationParentFiber.tag) { 3025 case 5: 3026 case 31: 3027 case 13: 3028 rootOrSingletonContext = !1; 3029 return; 3030 case 27: 3031 case 3: 3032 rootOrSingletonContext = !0; 3033 return; 3034 default: hydrationParentFiber = hydrationParentFiber.return; 3035 } 3036 } 3037 function popHydrationState(fiber) { 3038 if (fiber !== hydrationParentFiber) return !1; 3039 if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1; 3040 var tag = fiber.tag, JSCompiler_temp; 3041 if (JSCompiler_temp = 3 !== tag && 27 !== tag) { 3042 if (JSCompiler_temp = 5 === tag) JSCompiler_temp = fiber.type, JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps); 3043 JSCompiler_temp = !JSCompiler_temp; 3044 } 3045 if (JSCompiler_temp && nextHydratableInstance) { 3046 for (JSCompiler_temp = nextHydratableInstance; JSCompiler_temp;) { 3047 var diffNode = buildHydrationDiffNode(fiber, 0), description = describeHydratableInstanceForDevWarnings(JSCompiler_temp); 3048 diffNode.serverTail.push(description); 3049 JSCompiler_temp = "Suspense" === description.type ? getNextHydratableInstanceAfterHydrationBoundary(JSCompiler_temp) : getNextHydratable(JSCompiler_temp.nextSibling); 3050 } 3051 throwOnHydrationMismatch(fiber); 3052 } 3053 popToNextHostParent(fiber); 3054 if (13 === tag) { 3055 fiber = fiber.memoizedState; 3056 fiber = null !== fiber ? fiber.dehydrated : null; 3057 if (!fiber) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 3058 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 3059 } else if (31 === tag) { 3060 fiber = fiber.memoizedState; 3061 fiber = null !== fiber ? fiber.dehydrated : null; 3062 if (!fiber) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 3063 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 3064 } else 27 === tag ? (tag = nextHydratableInstance, isSingletonScope(fiber.type) ? (fiber = previousHydratableOnEnteringScopedSingleton, previousHydratableOnEnteringScopedSingleton = null, nextHydratableInstance = fiber) : nextHydratableInstance = tag) : nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null; 3065 return !0; 3066 } 3067 function resetHydrationState() { 3068 nextHydratableInstance = hydrationParentFiber = null; 3069 didSuspendOrErrorDEV = isHydrating = !1; 3070 } 3071 function upgradeHydrationErrorsToRecoverable() { 3072 var queuedErrors = hydrationErrors; 3073 null !== queuedErrors && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, queuedErrors), hydrationErrors = null); 3074 return queuedErrors; 3075 } 3076 function queueHydrationError(error) { 3077 null === hydrationErrors ? hydrationErrors = [error] : hydrationErrors.push(error); 3078 } 3079 function emitPendingHydrationWarnings() { 3080 var diffRoot = hydrationDiffRootDEV; 3081 if (null !== diffRoot) { 3082 hydrationDiffRootDEV = null; 3083 for (var diff = describeDiff(diffRoot); 0 < diffRoot.children.length;) diffRoot = diffRoot.children[0]; 3084 runWithFiberInDEV(diffRoot.fiber, function() { 3085 console.error("A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s", "https://react.dev/link/hydration-mismatch", diff); 3086 }); 3087 } 3088 } 3089 function resetContextDependencies() { 3090 lastContextDependency = currentlyRenderingFiber$1 = null; 3091 isDisallowedContextReadInDEV = !1; 3092 } 3093 function pushProvider(providerFiber, context, nextValue) { 3094 push(valueCursor, context._currentValue, providerFiber); 3095 context._currentValue = nextValue;
vendor: 1,338 bytes, lines 3096-3115
3096 push(rendererCursorDEV, context._currentRenderer, providerFiber); 3097 void 0 !== context._currentRenderer && null !== context._currentRenderer && context._currentRenderer !== rendererSigil && console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."); 3098 context._currentRenderer = rendererSigil; 3099 } 3100 function popProvider(context, providerFiber) { 3101 context._currentValue = valueCursor.current; 3102 var currentRenderer = rendererCursorDEV.current; 3103 pop(rendererCursorDEV, providerFiber); 3104 context._currentRenderer = currentRenderer; 3105 pop(valueCursor, providerFiber); 3106 } 3107 function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { 3108 for (; null !== parent;) { 3109 var alternate = parent.alternate; 3110 (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); 3111 if (parent === propagationRoot) break; 3112 parent = parent.return; 3113 } 3114 parent !== propagationRoot && console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."); 3115 }
vendor: 2,959 bytes, lines 3116-3184
3116 function propagateContextChanges(workInProgress, contexts, renderLanes, forcePropagateEntireTree) { 3117 var fiber = workInProgress.child; 3118 null !== fiber && (fiber.return = workInProgress); 3119 for (; null !== fiber;) { 3120 var list = fiber.dependencies; 3121 if (null !== list) { 3122 var nextFiber = fiber.child; 3123 list = list.firstContext; 3124 a: for (; null !== list;) { 3125 var dependency = list; 3126 list = fiber; 3127 for (var i = 0; i < contexts.length; i++) if (dependency.context === contexts[i]) { 3128 list.lanes |= renderLanes; 3129 dependency = list.alternate; 3130 null !== dependency && (dependency.lanes |= renderLanes); 3131 scheduleContextWorkOnParentPath(list.return, renderLanes, workInProgress); 3132 forcePropagateEntireTree || (nextFiber = null); 3133 break a; 3134 } 3135 list = dependency.next; 3136 } 3137 } else if (18 === fiber.tag) { 3138 nextFiber = fiber.return; 3139 if (null === nextFiber) throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); 3140 nextFiber.lanes |= renderLanes; 3141 list = nextFiber.alternate; 3142 null !== list && (list.lanes |= renderLanes); 3143 scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); 3144 nextFiber = null; 3145 } else nextFiber = fiber.child; 3146 if (null !== nextFiber) nextFiber.return = fiber; 3147 else for (nextFiber = fiber; null !== nextFiber;) { 3148 if (nextFiber === workInProgress) { 3149 nextFiber = null; 3150 break; 3151 } 3152 fiber = nextFiber.sibling; 3153 if (null !== fiber) { 3154 fiber.return = nextFiber.return; 3155 nextFiber = fiber; 3156 break; 3157 } 3158 nextFiber = nextFiber.return; 3159 } 3160 fiber = nextFiber; 3161 } 3162 } 3163 function propagateParentContextChanges(current, workInProgress, renderLanes, forcePropagateEntireTree) { 3164 current = null; 3165 for (var parent = workInProgress, isInsidePropagationBailout = !1; null !== parent;) { 3166 if (!isInsidePropagationBailout) { 3167 if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; 3168 else if (0 !== (parent.flags & 262144)) break; 3169 } 3170 if (10 === parent.tag) { 3171 var currentParent = parent.alternate; 3172 if (null === currentParent) throw Error("Should have a current fiber. This is a bug in React."); 3173 currentParent = currentParent.memoizedProps; 3174 if (null !== currentParent) { 3175 var context = parent.type; 3176 objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : current = [context]); 3177 } 3178 } else if (parent === hostTransitionProviderCursor.current) { 3179 currentParent = parent.alternate; 3180 if (null === currentParent) throw Error("Should have a current fiber. This is a bug in React."); 3181 currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [HostTransitionContext]); 3182 } 3183 parent = parent.return; 3184 }
vendor: 10,569 bytes, lines 3185-3421
3185 null !== current && propagateContextChanges(workInProgress, current, renderLanes, forcePropagateEntireTree); 3186 workInProgress.flags |= 262144; 3187 } 3188 function checkIfContextChanged(currentDependencies) { 3189 for (currentDependencies = currentDependencies.firstContext; null !== currentDependencies;) { 3190 if (!objectIs(currentDependencies.context._currentValue, currentDependencies.memoizedValue)) return !0; 3191 currentDependencies = currentDependencies.next; 3192 } 3193 return !1; 3194 } 3195 function prepareToReadContext(workInProgress) { 3196 currentlyRenderingFiber$1 = workInProgress; 3197 lastContextDependency = null; 3198 workInProgress = workInProgress.dependencies; 3199 null !== workInProgress && (workInProgress.firstContext = null); 3200 } 3201 function readContext(context) { 3202 isDisallowedContextReadInDEV && console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 3203 return readContextForConsumer(currentlyRenderingFiber$1, context); 3204 } 3205 function readContextDuringReconciliation(consumer, context) { 3206 null === currentlyRenderingFiber$1 && prepareToReadContext(consumer); 3207 return readContextForConsumer(consumer, context); 3208 } 3209 function readContextForConsumer(consumer, context) { 3210 var value = context._currentValue; 3211 context = { 3212 context, 3213 memoizedValue: value, 3214 next: null 3215 }; 3216 if (null === lastContextDependency) { 3217 if (null === consumer) throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); 3218 lastContextDependency = context; 3219 consumer.dependencies = { 3220 lanes: 0, 3221 firstContext: context, 3222 _debugThenableState: null 3223 }; 3224 consumer.flags |= 524288; 3225 } else lastContextDependency = lastContextDependency.next = context; 3226 return value; 3227 } 3228 function createCache() { 3229 return { 3230 controller: new AbortControllerLocal(), 3231 data: /* @__PURE__ */ new Map(), 3232 refCount: 0 3233 }; 3234 } 3235 function retainCache(cache) { 3236 cache.controller.signal.aborted && console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."); 3237 cache.refCount++; 3238 } 3239 function releaseCache(cache) { 3240 cache.refCount--; 3241 0 > cache.refCount && console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."); 3242 0 === cache.refCount && scheduleCallback$2(NormalPriority, function() { 3243 cache.controller.abort(); 3244 }); 3245 } 3246 function startUpdateTimerByLane(lane, method, fiber) { 3247 if (0 !== (lane & 127)) 0 > blockingUpdateTime && (blockingUpdateTime = now(), blockingUpdateTask = createTask(method), blockingUpdateMethodName = method, null != fiber && (blockingUpdateComponentName = getComponentNameFromFiber(fiber)), (executionContext & (RenderContext | CommitContext)) !== NoContext && (componentEffectSpawnedUpdate = !0, blockingUpdateType = SPAWNED_UPDATE), lane = resolveEventTimeStamp(), method = resolveEventType(), lane !== blockingEventRepeatTime || method !== blockingEventType ? blockingEventRepeatTime = -1.1 : null !== method && (blockingUpdateType = SPAWNED_UPDATE), blockingEventTime = lane, blockingEventType = method); 3248 else if (0 !== (lane & 4194048) && 0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = createTask(method), transitionUpdateMethodName = method, null != fiber && (transitionUpdateComponentName = getComponentNameFromFiber(fiber)), 0 > transitionStartTime)) { 3249 lane = resolveEventTimeStamp(); 3250 method = resolveEventType(); 3251 if (lane !== transitionEventRepeatTime || method !== transitionEventType) transitionEventRepeatTime = -1.1; 3252 transitionEventTime = lane; 3253 transitionEventType = method; 3254 } 3255 } 3256 function startHostActionTimer(fiber) { 3257 if (0 > blockingUpdateTime) { 3258 blockingUpdateTime = now(); 3259 blockingUpdateTask = null != fiber._debugTask ? fiber._debugTask : null; 3260 (executionContext & (RenderContext | CommitContext)) !== NoContext && (blockingUpdateType = SPAWNED_UPDATE); 3261 var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType(); 3262 newEventTime !== blockingEventRepeatTime || newEventType !== blockingEventType ? blockingEventRepeatTime = -1.1 : null !== newEventType && (blockingUpdateType = SPAWNED_UPDATE); 3263 blockingEventTime = newEventTime; 3264 blockingEventType = newEventType; 3265 } 3266 if (0 > transitionUpdateTime && (transitionUpdateTime = now(), transitionUpdateTask = null != fiber._debugTask ? fiber._debugTask : null, 0 > transitionStartTime)) { 3267 fiber = resolveEventTimeStamp(); 3268 newEventTime = resolveEventType(); 3269 if (fiber !== transitionEventRepeatTime || newEventTime !== transitionEventType) transitionEventRepeatTime = -1.1; 3270 transitionEventTime = fiber; 3271 transitionEventType = newEventTime; 3272 } 3273 } 3274 function pushNestedEffectDurations() { 3275 var prevEffectDuration = profilerEffectDuration; 3276 profilerEffectDuration = 0; 3277 return prevEffectDuration; 3278 } 3279 function popNestedEffectDurations(prevEffectDuration) { 3280 var elapsedTime = profilerEffectDuration; 3281 profilerEffectDuration = prevEffectDuration; 3282 return elapsedTime; 3283 } 3284 function bubbleNestedEffectDurations(prevEffectDuration) { 3285 var elapsedTime = profilerEffectDuration; 3286 profilerEffectDuration += prevEffectDuration; 3287 return elapsedTime; 3288 } 3289 function resetComponentEffectTimers() { 3290 componentEffectEndTime = componentEffectStartTime = -1.1; 3291 } 3292 function pushComponentEffectStart() { 3293 var prevEffectStart = componentEffectStartTime; 3294 componentEffectStartTime = -1.1; 3295 return prevEffectStart; 3296 } 3297 function popComponentEffectStart(prevEffectStart) { 3298 0 <= prevEffectStart && (componentEffectStartTime = prevEffectStart); 3299 } 3300 function pushComponentEffectDuration() { 3301 var prevEffectDuration = componentEffectDuration; 3302 componentEffectDuration = -0; 3303 return prevEffectDuration; 3304 } 3305 function popComponentEffectDuration(prevEffectDuration) { 3306 0 <= prevEffectDuration && (componentEffectDuration = prevEffectDuration); 3307 } 3308 function pushComponentEffectErrors() { 3309 var prevErrors = componentEffectErrors; 3310 componentEffectErrors = null; 3311 return prevErrors; 3312 } 3313 function pushComponentEffectDidSpawnUpdate() { 3314 var prev = componentEffectSpawnedUpdate; 3315 componentEffectSpawnedUpdate = !1; 3316 return prev; 3317 } 3318 function startProfilerTimer(fiber) { 3319 profilerStartTime = now(); 3320 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime); 3321 } 3322 function stopProfilerTimerIfRunningAndRecordDuration(fiber) { 3323 if (0 <= profilerStartTime) { 3324 var elapsedTime = now() - profilerStartTime; 3325 fiber.actualDuration += elapsedTime; 3326 fiber.selfBaseDuration = elapsedTime; 3327 profilerStartTime = -1; 3328 } 3329 } 3330 function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) { 3331 if (0 <= profilerStartTime) { 3332 var elapsedTime = now() - profilerStartTime; 3333 fiber.actualDuration += elapsedTime; 3334 profilerStartTime = -1; 3335 } 3336 } 3337 function recordEffectDuration() { 3338 if (0 <= profilerStartTime) { 3339 var endTime = now(), elapsedTime = endTime - profilerStartTime; 3340 profilerStartTime = -1; 3341 profilerEffectDuration += elapsedTime; 3342 componentEffectDuration += elapsedTime; 3343 componentEffectEndTime = endTime; 3344 } 3345 } 3346 function recordEffectError(errorInfo) { 3347 null === componentEffectErrors && (componentEffectErrors = []); 3348 componentEffectErrors.push(errorInfo); 3349 null === commitErrors && (commitErrors = []); 3350 commitErrors.push(errorInfo); 3351 } 3352 function startEffectTimer() { 3353 profilerStartTime = now(); 3354 0 > componentEffectStartTime && (componentEffectStartTime = profilerStartTime); 3355 } 3356 function transferActualDuration(fiber) { 3357 for (var child = fiber.child; child;) fiber.actualDuration += child.actualDuration, child = child.sibling; 3358 } 3359 function entangleAsyncAction(transition, thenable) { 3360 if (null === currentEntangledListeners) { 3361 var entangledListeners = currentEntangledListeners = []; 3362 currentEntangledPendingCount = 0; 3363 currentEntangledLane = requestTransitionLane(); 3364 currentEntangledActionThenable = { 3365 status: "pending", 3366 value: void 0, 3367 then: function(resolve) { 3368 entangledListeners.push(resolve); 3369 } 3370 }; 3371 } 3372 currentEntangledPendingCount++; 3373 thenable.then(pingEngtangledActionScope, pingEngtangledActionScope); 3374 return thenable; 3375 } 3376 function pingEngtangledActionScope() { 3377 if (0 === --currentEntangledPendingCount && (-1 < transitionUpdateTime || (transitionStartTime = -1.1), null !== currentEntangledListeners)) { 3378 null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled"); 3379 var listeners = currentEntangledListeners; 3380 currentEntangledListeners = null; 3381 currentEntangledLane = 0; 3382 currentEntangledActionThenable = null; 3383 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(); 3384 } 3385 } 3386 function chainThenableValue(thenable, result) { 3387 var listeners = [], thenableWithOverride = { 3388 status: "pending", 3389 value: null, 3390 reason: null, 3391 then: function(resolve) { 3392 listeners.push(resolve); 3393 } 3394 }; 3395 thenable.then(function() { 3396 thenableWithOverride.status = "fulfilled"; 3397 thenableWithOverride.value = result; 3398 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result); 3399 }, function(error) { 3400 thenableWithOverride.status = "rejected"; 3401 thenableWithOverride.reason = error; 3402 for (error = 0; error < listeners.length; error++) (0, listeners[error])(void 0); 3403 }); 3404 return thenableWithOverride; 3405 } 3406 function peekCacheFromPool() { 3407 var cacheResumedFromPreviousRender = resumedCache.current; 3408 return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache; 3409 } 3410 function pushTransition(offscreenWorkInProgress, prevCachePool) { 3411 null === prevCachePool ? push(resumedCache, resumedCache.current, offscreenWorkInProgress) : push(resumedCache, prevCachePool.pool, offscreenWorkInProgress); 3412 } 3413 function getSuspendedCache() { 3414 var cacheFromPool = peekCacheFromPool(); 3415 return null === cacheFromPool ? null : { 3416 parent: CacheContext._currentValue, 3417 pool: cacheFromPool 3418 }; 3419 } 3420 function createThenableState() { 3421 return {
3422 didWarnAboutUncachedPromise: !1, 3423 thenables: [] 3424 }; 3425 } 3426 function isThenableResolved(thenable) { 3427 thenable = thenable.status; 3428 return "fulfilled" === thenable || "rejected" === thenable; 3429 } 3430 function trackUsedThenable(thenableState, thenable, index) { 3431 null !== ReactSharedInternals.actQueue && (ReactSharedInternals.didUsePromise = !0); 3432 var trackedThenables = thenableState.thenables; 3433 index = trackedThenables[index]; 3434 void 0 === index ? trackedThenables.push(thenable) : index !== thenable && (thenableState.didWarnAboutUncachedPromise || (thenableState.didWarnAboutUncachedPromise = !0, console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")), thenable.then(noop$1, noop$1), thenable = index); 3435 if (void 0 === thenable._debugInfo) { 3436 thenableState = performance.now(); 3437 trackedThenables = thenable.displayName; 3438 var ioInfo = { 3439 name: "string" === typeof trackedThenables ? trackedThenables : "Promise", 3440 start: thenableState, 3441 end: thenableState, 3442 value: thenable 3443 }; 3444 thenable._debugInfo = [{ awaited: ioInfo }]; 3445 "fulfilled" !== thenable.status && "rejected" !== thenable.status && (thenableState = function() { 3446 ioInfo.end = performance.now(); 3447 }, thenable.then(thenableState, thenableState)); 3448 } 3449 switch (thenable.status) { 3450 case "fulfilled": return thenable.value; 3451 case "rejected": throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState; 3452 default: 3453 if ("string" === typeof thenable.status) thenable.then(noop$1, noop$1); 3454 else { 3455 thenableState = workInProgressRoot; 3456 if (null !== thenableState && 100 < thenableState.shellSuspendCounter) throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."); 3457 thenableState = thenable; 3458 thenableState.status = "pending"; 3459 thenableState.then(function(fulfilledValue) { 3460 if ("pending" === thenable.status) { 3461 var fulfilledThenable = thenable; 3462 fulfilledThenable.status = "fulfilled"; 3463 fulfilledThenable.value = fulfilledValue; 3464 } 3465 }, function(error) { 3466 if ("pending" === thenable.status) { 3467 var rejectedThenable = thenable; 3468 rejectedThenable.status = "rejected"; 3469 rejectedThenable.reason = error; 3470 } 3471 }); 3472 } 3473 switch (thenable.status) { 3474 case "fulfilled": return thenable.value; 3475 case "rejected": throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState; 3476 } 3477 suspendedThenable = thenable; 3478 needsToResetSuspendedThenableDEV = !0; 3479 throw SuspenseException; 3480 } 3481 } 3482 function resolveLazy(lazyType) { 3483 try { 3484 return callLazyInitInDEV(lazyType); 3485 } catch (x) { 3486 if (null !== x && "object" === typeof x && "function" === typeof x.then) throw suspendedThenable = x, needsToResetSuspendedThenableDEV = !0, SuspenseException; 3487 throw x; 3488 } 3489 } 3490 function getSuspendedThenable() { 3491 if (null === suspendedThenable) throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue."); 3492 var thenable = suspendedThenable; 3493 suspendedThenable = null; 3494 needsToResetSuspendedThenableDEV = !1; 3495 return thenable; 3496 } 3497 function checkIfUseWrappedInAsyncCatch(rejectedReason) { 3498 if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException) throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."); 3499 } 3500 function pushDebugInfo(debugInfo) { 3501 var previousDebugInfo = currentDebugInfo; 3502 null != debugInfo && (currentDebugInfo = null === previousDebugInfo ? debugInfo : previousDebugInfo.concat(debugInfo)); 3503 return previousDebugInfo; 3504 } 3505 function getCurrentDebugTask() { 3506 var debugInfo = currentDebugInfo; 3507 if (null != debugInfo) { 3508 for (var i = debugInfo.length - 1; 0 <= i; i--) if (null != debugInfo[i].name) { 3509 var debugTask = debugInfo[i].debugTask; 3510 if (null != debugTask) return debugTask; 3511 } 3512 } 3513 return null; 3514 } 3515 function validateFragmentProps(element, fiber, returnFiber) { 3516 for (var keys = Object.keys(element.props), i = 0; i < keys.length; i++) { 3517 var key = keys[i]; 3518 if ("children" !== key && "key" !== key) { 3519 null === fiber && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber); 3520 runWithFiberInDEV(fiber, function(erroredKey) { 3521 console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", erroredKey); 3522 }, key); 3523 break; 3524 } 3525 } 3526 } 3527 function unwrapThenable(thenable) { 3528 var index = thenableIndexCounter$1; 3529 thenableIndexCounter$1 += 1; 3530 null === thenableState$1 && (thenableState$1 = createThenableState()); 3531 return trackUsedThenable(thenableState$1, thenable, index); 3532 } 3533 function coerceRef(workInProgress, element) { 3534 element = element.props.ref; 3535 workInProgress.ref = void 0 !== element ? element : null; 3536 }
3537 function throwOnInvalidObjectTypeImpl(returnFiber, newChild) { 3538 if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) throw Error("A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the \"react\" package is used.\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\n- A compiler tries to \"inline\" JSX instead of using the runtime."); 3539 returnFiber = Object.prototype.toString.call(newChild); 3540 throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead."); 3541 } 3542 function throwOnInvalidObjectType(returnFiber, newChild) { 3543 var debugTask = getCurrentDebugTask(); 3544 null !== debugTask ? debugTask.run(throwOnInvalidObjectTypeImpl.bind(null, returnFiber, newChild)) : throwOnInvalidObjectTypeImpl(returnFiber, newChild); 3545 } 3546 function warnOnFunctionTypeImpl(returnFiber, invalidChild) { 3547 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 3548 ownerHasFunctionTypeWarning[parentName] || (ownerHasFunctionTypeWarning[parentName] = !0, invalidChild = invalidChild.displayName || invalidChild.name || "Component", 3 === returnFiber.tag ? console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)", invalidChild, invalidChild, invalidChild) : console.error("Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>", invalidChild, invalidChild, parentName, invalidChild, parentName)); 3549 } 3550 function warnOnFunctionType(returnFiber, invalidChild) { 3551 var debugTask = getCurrentDebugTask(); 3552 null !== debugTask ? debugTask.run(warnOnFunctionTypeImpl.bind(null, returnFiber, invalidChild)) : warnOnFunctionTypeImpl(returnFiber, invalidChild); 3553 } 3554 function warnOnSymbolTypeImpl(returnFiber, invalidChild) { 3555 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 3556 ownerHasSymbolTypeWarning[parentName] || (ownerHasSymbolTypeWarning[parentName] = !0, invalidChild = String(invalidChild), 3 === returnFiber.tag ? console.error("Symbols are not valid as a React child.\n root.render(%s)", invalidChild) : console.error("Symbols are not valid as a React child.\n <%s>%s</%s>", parentName, invalidChild, parentName)); 3557 } 3558 function warnOnSymbolType(returnFiber, invalidChild) { 3559 var debugTask = getCurrentDebugTask(); 3560 null !== debugTask ? debugTask.run(warnOnSymbolTypeImpl.bind(null, returnFiber, invalidChild)) : warnOnSymbolTypeImpl(returnFiber, invalidChild); 3561 } 3562 function createChildReconciler(shouldTrackSideEffects) { 3563 function deleteChild(returnFiber, childToDelete) { 3564 if (shouldTrackSideEffects) { 3565 var deletions = returnFiber.deletions; 3566 null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); 3567 } 3568 } 3569 function deleteRemainingChildren(returnFiber, currentFirstChild) { 3570 if (!shouldTrackSideEffects) return null; 3571 for (; null !== currentFirstChild;) deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 3572 return null; 3573 } 3574 function mapRemainingChildren(currentFirstChild) { 3575 for (var existingChildren = /* @__PURE__ */ new Map(); null !== currentFirstChild;) null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 3576 return existingChildren; 3577 } 3578 function useFiber(fiber, pendingProps) { 3579 fiber = createWorkInProgress(fiber, pendingProps); 3580 fiber.index = 0; 3581 fiber.sibling = null; 3582 return fiber; 3583 } 3584 function placeChild(newFiber, lastPlacedIndex, newIndex) { 3585 newFiber.index = newIndex; 3586 if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; 3587 newIndex = newFiber.alternate; 3588 if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex; 3589 newFiber.flags |= 67108866; 3590 return lastPlacedIndex; 3591 } 3592 function placeSingleChild(newFiber) { 3593 shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 67108866); 3594 return newFiber; 3595 } 3596 function updateTextNode(returnFiber, current, textContent, lanes) { 3597 if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current._debugOwner = returnFiber, current._debugTask = returnFiber._debugTask, current._debugInfo = currentDebugInfo, current; 3598 current = useFiber(current, textContent); 3599 current.return = returnFiber; 3600 current._debugInfo = currentDebugInfo; 3601 return current; 3602 } 3603 function updateElement(returnFiber, current, element, lanes) { 3604 var elementType = element.type; 3605 if (elementType === REACT_FRAGMENT_TYPE) return current = updateFragment(returnFiber, current, element.props.children, lanes, element.key), validateFragmentProps(element, current, returnFiber), current; 3606 if (null !== current && (current.elementType === elementType || isCompatibleFamilyForHotReloading(current, element) || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current.type)) return current = useFiber(current, element.props), coerceRef(current, element), current.return = returnFiber, current._debugOwner = element._owner, current._debugInfo = currentDebugInfo, current; 3607 current = createFiberFromElement(element, returnFiber.mode, lanes); 3608 coerceRef(current, element); 3609 current.return = returnFiber; 3610 current._debugInfo = currentDebugInfo; 3611 return current; 3612 } 3613 function updatePortal(returnFiber, current, portal, lanes) { 3614 if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current._debugInfo = currentDebugInfo, current; 3615 current = useFiber(current, portal.children || []); 3616 current.return = returnFiber; 3617 current._debugInfo = currentDebugInfo; 3618 return current; 3619 } 3620 function updateFragment(returnFiber, current, fragment, lanes, key) { 3621 if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current._debugOwner = returnFiber, current._debugTask = returnFiber._debugTask, current._debugInfo = currentDebugInfo, current; 3622 current = useFiber(current, fragment); 3623 current.return = returnFiber; 3624 current._debugInfo = currentDebugInfo; 3625 return current; 3626 } 3627 function createChild(returnFiber, newChild, lanes) { 3628 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild._debugOwner = returnFiber, newChild._debugTask = returnFiber._debugTask, newChild._debugInfo = currentDebugInfo, newChild; 3629 if ("object" === typeof newChild && null !== newChild) { 3630 switch (newChild.$$typeof) { 3631 case REACT_ELEMENT_TYPE: return lanes = createFiberFromElement(newChild, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 3632 case REACT_PORTAL_TYPE: return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild._debugInfo = currentDebugInfo, newChild; 3633 case REACT_LAZY_TYPE: 3634 var _prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3635 newChild = resolveLazy(newChild); 3636 returnFiber = createChild(returnFiber, newChild, lanes); 3637 currentDebugInfo = _prevDebugInfo; 3638 return returnFiber; 3639 } 3640 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return lanes = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 3641 if ("function" === typeof newChild.then) return _prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = createChild(returnFiber, unwrapThenable(newChild), lanes), currentDebugInfo = _prevDebugInfo, returnFiber; 3642 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return createChild(returnFiber, readContextDuringReconciliation(returnFiber, newChild), lanes);
3643 throwOnInvalidObjectType(returnFiber, newChild); 3644 } 3645 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3646 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3647 return null; 3648 } 3649 function updateSlot(returnFiber, oldFiber, newChild, lanes) { 3650 var key = null !== oldFiber ? oldFiber.key : null; 3651 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); 3652 if ("object" === typeof newChild && null !== newChild) { 3653 switch (newChild.$$typeof) { 3654 case REACT_ELEMENT_TYPE: return newChild.key === key ? (key = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(returnFiber, oldFiber, newChild, lanes), currentDebugInfo = key, returnFiber) : null; 3655 case REACT_PORTAL_TYPE: return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; 3656 case REACT_LAZY_TYPE: return key = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = updateSlot(returnFiber, oldFiber, newChild, lanes), currentDebugInfo = key, returnFiber; 3657 } 3658 if (isArrayImpl(newChild) || getIteratorFn(newChild)) { 3659 if (null !== key) return null; 3660 key = pushDebugInfo(newChild._debugInfo); 3661 returnFiber = updateFragment(returnFiber, oldFiber, newChild, lanes, null); 3662 currentDebugInfo = key; 3663 return returnFiber; 3664 } 3665 if ("function" === typeof newChild.then) return key = pushDebugInfo(newChild._debugInfo), returnFiber = updateSlot(returnFiber, oldFiber, unwrapThenable(newChild), lanes), currentDebugInfo = key, returnFiber; 3666 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateSlot(returnFiber, oldFiber, readContextDuringReconciliation(returnFiber, newChild), lanes); 3667 throwOnInvalidObjectType(returnFiber, newChild); 3668 } 3669 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3670 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3671 return null; 3672 } 3673 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { 3674 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); 3675 if ("object" === typeof newChild && null !== newChild) { 3676 switch (newChild.$$typeof) { 3677 case REACT_ELEMENT_TYPE: return newIdx = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement(returnFiber, newIdx, newChild, lanes), currentDebugInfo = existingChildren, returnFiber; 3678 case REACT_PORTAL_TYPE: return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); 3679 case REACT_LAZY_TYPE: 3680 var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo); 3681 newChild = resolveLazy(newChild); 3682 returnFiber = updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes); 3683 currentDebugInfo = _prevDebugInfo7; 3684 return returnFiber; 3685 } 3686 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newIdx = existingChildren.get(newIdx) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateFragment(returnFiber, newIdx, newChild, lanes, null), currentDebugInfo = existingChildren, returnFiber; 3687 if ("function" === typeof newChild.then) return _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo), returnFiber = updateFromMap(existingChildren, returnFiber, newIdx, unwrapThenable(newChild), lanes), currentDebugInfo = _prevDebugInfo7, returnFiber; 3688 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateFromMap(existingChildren, returnFiber, newIdx, readContextDuringReconciliation(returnFiber, newChild), lanes);
vendor: 1,079 bytes, lines 3689-3713
3689 throwOnInvalidObjectType(returnFiber, newChild); 3690 } 3691 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3692 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3693 return null; 3694 } 3695 function warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys) { 3696 if ("object" !== typeof child || null === child) return knownKeys; 3697 switch (child.$$typeof) { 3698 case REACT_ELEMENT_TYPE: 3699 case REACT_PORTAL_TYPE: 3700 warnForMissingKey(returnFiber, workInProgress, child); 3701 var key = child.key; 3702 if ("string" !== typeof key) break; 3703 if (null === knownKeys) { 3704 knownKeys = /* @__PURE__ */ new Set(); 3705 knownKeys.add(key); 3706 break; 3707 } 3708 if (!knownKeys.has(key)) { 3709 knownKeys.add(key); 3710 break; 3711 } 3712 runWithFiberInDEV(workInProgress, function() { 3713 console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/
vendor: 1,682 bytes, lines 3713-3737
3713or omitted — the behavior is unsupported and could change in a future version.", key); 3714 }); 3715 break; 3716 case REACT_LAZY_TYPE: child = resolveLazy(child), warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys); 3717 } 3718 return knownKeys; 3719 } 3720 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { 3721 for (var knownKeys = null, resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { 3722 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 3723 var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); 3724 if (null === newFiber) { 3725 null === oldFiber && (oldFiber = nextOldFiber); 3726 break; 3727 } 3728 knownKeys = warnOnInvalidKey(returnFiber, newFiber, newChildren[newIdx], knownKeys); 3729 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 3730 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 3731 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 3732 previousNewFiber = newFiber; 3733 oldFiber = nextOldFiber; 3734 } 3735 if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 3736 if (null === oldFiber) { 3737 for (; newIdx < newChildren.length; newIdx++) oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (knownKeys = warnOnInvali
vendor: 1,933 bytes, lines 3737-3756
3737dKey(returnFiber, oldFiber, newChildren[newIdx], knownKeys), currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 3738 isHydrating && pushTreeFork(returnFiber, newIdx); 3739 return resultingFirstChild; 3740 } 3741 for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++) nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (knownKeys = warnOnInvalidKey(returnFiber, nextOldFiber, newChildren[newIdx], knownKeys), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 3742 shouldTrackSideEffects && oldFiber.forEach(function(child) { 3743 return deleteChild(returnFiber, child); 3744 }); 3745 isHydrating && pushTreeFork(returnFiber, newIdx); 3746 return resultingFirstChild; 3747 } 3748 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) { 3749 if (null == newChildren) throw Error("An iterable object provided no iterator."); 3750 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, knownKeys = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) { 3751 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 3752 var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); 3753 if (null === newFiber) { 3754 null === oldFiber && (oldFiber = nextOldFiber); 3755 break; 3756 }
vendor: 1,349 bytes, lines 3757-3770
3757 knownKeys = warnOnInvalidKey(returnFiber, newFiber, step.value, knownKeys); 3758 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 3759 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 3760 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 3761 previousNewFiber = newFiber; 3762 oldFiber = nextOldFiber; 3763 } 3764 if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 3765 if (null === oldFiber) { 3766 for (; !step.done; newIdx++, step = newChildren.next()) oldFiber = createChild(returnFiber, step.value, lanes), null !== oldFiber && (knownKeys = warnOnInvalidKey(returnFiber, oldFiber, step.value, knownKeys), currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 3767 isHydrating && pushTreeFork(returnFiber, newIdx); 3768 return resultingFirstChild; 3769 } 3770 for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next()) nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== nextOldFiber && (knownKeys = warnOnInvali
3770dKey(returnFiber, nextOldFiber, step.value, knownKeys), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(null === nextOldFiber.key ? newIdx : nextOldFiber.key), currentFirstChild = placeChild(nextOldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 3771 shouldTrackSideEffects && oldFiber.forEach(function(child) { 3772 return deleteChild(returnFiber, child); 3773 }); 3774 isHydrating && pushTreeFork(returnFiber, newIdx); 3775 return resultingFirstChild; 3776 } 3777 function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) { 3778 "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (validateFragmentProps(newChild, null, returnFiber), newChild = newChild.props.children); 3779 if ("object" === typeof newChild && null !== newChild) { 3780 switch (newChild.$$typeof) { 3781 case REACT_ELEMENT_TYPE: 3782 var prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3783 a: { 3784 for (var key = newChild.key; null !== currentFirstChild;) { 3785 if (currentFirstChild.key === key) { 3786 key = newChild.type; 3787 if (key === REACT_FRAGMENT_TYPE) { 3788 if (7 === currentFirstChild.tag) { 3789 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3790 lanes = useFiber(currentFirstChild, newChild.props.children); 3791 lanes.return = returnFiber; 3792 lanes._debugOwner = newChild._owner; 3793 lanes._debugInfo = currentDebugInfo; 3794 validateFragmentProps(newChild, lanes, returnFiber); 3795 returnFiber = lanes; 3796 break a; 3797 } 3798 } else if (currentFirstChild.elementType === key || isCompatibleFamilyForHotReloading(currentFirstChild, newChild) || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) { 3799 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3800 lanes = useFiber(currentFirstChild, newChild.props); 3801 coerceRef(lanes, newChild); 3802 lanes.return = returnFiber; 3803 lanes._debugOwner = newChild._owner; 3804 lanes._debugInfo = currentDebugInfo; 3805 returnFiber = lanes; 3806 break a; 3807 } 3808 deleteRemainingChildren(returnFiber, currentFirstChild); 3809 break; 3810 } else deleteChild(returnFiber, currentFirstChild); 3811 currentFirstChild = currentFirstChild.sibling; 3812 } 3813 newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, validateFragmentProps(newChild, lanes, returnFiber), returnFiber = lanes) : (lanes = createFiberFromElement(newChild, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes._debugInfo = currentDebugInfo, returnFiber = lanes); 3814 } 3815 returnFiber = placeSingleChild(returnFiber); 3816 currentDebugInfo = prevDebugInfo; 3817 return returnFiber; 3818 case REACT_PORTAL_TYPE: 3819 a: { 3820 prevDebugInfo = newChild; 3821 for (newChild = prevDebugInfo.key; null !== currentFirstChild;) { 3822 if (currentFirstChild.key === newChild) if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === prevDebugInfo.containerInfo && currentFirstChild.stateNode.implementation === prevDebugInfo.implementation) { 3823 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 3824 lanes = useFiber(currentFirstChild, prevDebugInfo.children || []); 3825 lanes.return = returnFiber; 3826 returnFiber = lanes; 3827 break a; 3828 } else { 3829 deleteRemainingChildren(returnFiber, currentFirstChild); 3830 break; 3831 } 3832 else deleteChild(returnFiber, currentFirstChild); 3833 currentFirstChild = currentFirstChild.sibling; 3834 } 3835 lanes = createFiberFromPortal(prevDebugInfo, returnFiber.mode, lanes); 3836 lanes.return = returnFiber; 3837 returnFiber = lanes; 3838 } 3839 return placeSingleChild(returnFiber); 3840 case REACT_LAZY_TYPE: return prevDebugInfo = pushDebugInfo(newChild._debugInfo), newChild = resolveLazy(newChild), returnFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3841 } 3842 if (isArrayImpl(newChild)) return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3843 if (getIteratorFn(newChild)) { 3844 prevDebugInfo = pushDebugInfo(newChild._debugInfo); 3845 key = getIteratorFn(newChild); 3846 if ("function" !== typeof key) throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); 3847 var newChildren = key.call(newChild); 3848 if (newChildren === newChild) { 3849 if (0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || "[object Generator]" !== Object.prototype.toString.call(newChildren)) didWarnAboutGenerators || console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."), didWarnAboutGenerators = !0; 3850 } else newChild.entries !== key || didWarnAboutMaps || (console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0); 3851 returnFiber = reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes); 3852 currentDebugInfo = prevDebugInfo; 3853 return returnFiber; 3854 } 3855 if ("function" === typeof newChild.then) return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, unwrapThenable(newChild), lanes), currentDebugInfo = prevDebugInfo, returnFiber; 3856 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return reconcileChildFibersImpl(returnFiber, currentFirstChild, readContextDuringReconciliation(returnFiber, newChild), lanes);
3857 throwOnInvalidObjectType(returnFiber, newChild); 3858 } 3859 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return prevDebugInfo = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), lanes = useFiber(currentFirstChild, prevDebugInfo), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(prevDebugInfo, returnFiber.mode, lanes), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, returnFiber = lanes), placeSingleChild(returnFiber); 3860 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 3861 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 3862 return deleteRemainingChildren(returnFiber, currentFirstChild); 3863 } 3864 return function(returnFiber, currentFirstChild, newChild, lanes) { 3865 var prevDebugInfo = currentDebugInfo; 3866 currentDebugInfo = null; 3867 try { 3868 thenableIndexCounter$1 = 0; 3869 var firstChildFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes); 3870 thenableState$1 = null; 3871 return firstChildFiber; 3872 } catch (x) { 3873 if (x === SuspenseException || x === SuspenseActionException) throw x; 3874 var fiber = createFiber(29, x, null, returnFiber.mode); 3875 fiber.lanes = lanes; 3876 fiber.return = returnFiber; 3877 var debugInfo = fiber._debugInfo = currentDebugInfo; 3878 fiber._debugOwner = returnFiber._debugOwner; 3879 fiber._debugTask = returnFiber._debugTask; 3880 if (null != debugInfo) { 3881 for (var i = debugInfo.length - 1; 0 <= i; i--) if ("string" === typeof debugInfo[i].stack) { 3882 fiber._debugOwner = debugInfo[i]; 3883 fiber._debugTask = debugInfo[i].debugTask; 3884 break; 3885 } 3886 } 3887 return fiber; 3888 } finally { 3889 currentDebugInfo = prevDebugInfo; 3890 } 3891 }; 3892 } 3893 function validateSuspenseListNestedChild(childSlot, index) { 3894 var isAnArray = isArrayImpl(childSlot); 3895 childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot); 3896 return isAnArray || childSlot ? (isAnArray = isAnArray ? "array" : "iterable", console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", isAnArray, index, isAnArray), !1) : !0; 3897 } 3898 function initializeUpdateQueue(fiber) { 3899 fiber.updateQueue = { 3900 baseState: fiber.memoizedState, 3901 firstBaseUpdate: null, 3902 lastBaseUpdate: null, 3903 shared: { 3904 pending: null, 3905 lanes: 0, 3906 hiddenCallbacks: null 3907 }, 3908 callbacks: null 3909 }; 3910 } 3911 function cloneUpdateQueue(current, workInProgress) { 3912 current = current.updateQueue; 3913 workInProgress.updateQueue === current && (workInProgress.updateQueue = { 3914 baseState: current.baseState, 3915 firstBaseUpdate: current.firstBaseUpdate, 3916 lastBaseUpdate: current.lastBaseUpdate, 3917 shared: current.shared, 3918 callbacks: null 3919 }); 3920 } 3921 function createUpdate(lane) { 3922 return { 3923 lane, 3924 tag: UpdateState, 3925 payload: null, 3926 callback: null, 3927 next: null 3928 }; 3929 } 3930 function enqueueUpdate(fiber, update, lane) { 3931 var updateQueue = fiber.updateQueue; 3932 if (null === updateQueue) return null; 3933 updateQueue = updateQueue.shared; 3934 if (currentlyProcessingQueue === updateQueue && !didWarnUpdateInsideUpdate) { 3935 var componentName = getComponentNameFromFiber(fiber); 3936 console.error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", componentName); 3937 didWarnUpdateInsideUpdate = !0; 3938 } 3939 if ((executionContext & RenderContext) !== NoContext) return componentName = updateQueue.pending, null === componentName ? update.next = update : (update.next = componentName.next, componentName.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update; 3940 enqueueUpdate$1(fiber, updateQueue, update, lane); 3941 return getRootForUpdatedFiber(fiber); 3942 } 3943 function entangleTransitions(root, fiber, lane) { 3944 fiber = fiber.updateQueue; 3945 if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) { 3946 var queueLanes = fiber.lanes; 3947 queueLanes &= root.pendingLanes; 3948 lane |= queueLanes; 3949 fiber.lanes = lane; 3950 markRootEntangled(root, lane); 3951 } 3952 } 3953 function enqueueCapturedUpdate(workInProgress, capturedUpdate) { 3954 var queue = workInProgress.updateQueue, current = workInProgress.alternate; 3955 if (null !== current && (current = current.updateQueue, queue === current)) { 3956 var newFirst = null, newLast = null; 3957 queue = queue.firstBaseUpdate; 3958 if (null !== queue) { 3959 do { 3960 var clone = { 3961 lane: queue.lane, 3962 tag: queue.tag, 3963 payload: queue.payload, 3964 callback: null, 3965 next: null 3966 }; 3967 null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; 3968 queue = queue.next; 3969 } while (null !== queue); 3970 null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; 3971 } else newFirst = newLast = capturedUpdate; 3972 queue = { 3973 baseState: current.baseState, 3974 firstBaseUpdate: newFirst, 3975 lastBaseUpdate: newLast, 3976 shared: current.shared, 3977 callbacks: current.callbacks 3978 }; 3979 workInProgress.updateQueue = queue; 3980 return; 3981 } 3982 workInProgress = queue.lastBaseUpdate; 3983 null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; 3984 queue.lastBaseUpdate = capturedUpdate; 3985 } 3986 function suspendIfUpdateReadFromEntangledAsyncAction() { 3987 if (didReadFromEntangledAsyncAction) { 3988 var entangledActionThenable = currentEntangledActionThenable; 3989 if (null !== entangledActionThenable) throw entangledActionThenable; 3990 } 3991 } 3992 function processUpdateQueue(workInProgress, props, instance$jscomp$0, renderLanes) { 3993 didReadFromEntangledAsyncAction = !1; 3994 var queue = workInProgress.updateQueue; 3995 hasForceUpdate = !1; 3996 currentlyProcessingQueue = queue.shared; 3997 var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending; 3998 if (null !== pendingQueue) { 3999 queue.shared.pending = null; 4000 var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next; 4001 lastPendingUpdate.next = null; 4002 null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; 4003 lastBaseUpdate = lastPendingUpdate; 4004 var current = workInProgress.alternate; 4005 null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pen
4005dingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); 4006 } 4007 if (null !== firstBaseUpdate) { 4008 var newState = queue.baseState; 4009 lastBaseUpdate = 0; 4010 current = firstPendingUpdate = lastPendingUpdate = null; 4011 pendingQueue = firstBaseUpdate; 4012 do { 4013 var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane; 4014 if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 4015 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 4016 null !== current && (current = current.next = { 4017 lane: 0, 4018 tag: pendingQueue.tag, 4019 payload: pendingQueue.payload, 4020 callback: null, 4021 next: null 4022 }); 4023 a: { 4024 updateLane = workInProgress; 4025 var partialState = pendingQueue; 4026 var nextProps = props, instance = instance$jscomp$0; 4027 switch (partialState.tag) { 4028 case ReplaceState: 4029 partialState = partialState.payload; 4030 if ("function" === typeof partialState) { 4031 isDisallowedContextReadInDEV = !0; 4032 var nextState = partialState.call(instance, newState, nextProps); 4033 if (updateLane.mode & StrictLegacyMode) { 4034 setIsStrictModeForDevtools(!0); 4035 try { 4036 partialState.call(instance, newState, nextProps); 4037 } finally { 4038 setIsStrictModeForDevtools(!1); 4039 } 4040 } 4041 isDisallowedContextReadInDEV = !1; 4042 newState = nextState; 4043 break a; 4044 } 4045 newState = partialState; 4046 break a; 4047 case CaptureUpdate: updateLane.flags = updateLane.flags & -65537 | 128; 4048 case UpdateState: 4049 nextState = partialState.payload; 4050 if ("function" === typeof nextState) { 4051 isDisallowedContextReadInDEV = !0; 4052 partialState = nextState.call(instance, newState, nextProps); 4053 if (updateLane.mode & StrictLegacyMode) { 4054 setIsStrictModeForDevtools(!0); 4055 try { 4056 nextState.call(instance, newState, nextProps); 4057 } finally { 4058 setIsStrictModeForDevtools(!1); 4059 } 4060 } 4061 isDisallowedContextReadInDEV = !1; 4062 } else partialState = nextState; 4063 if (null === partialState || void 0 === partialState) break a; 4064 newState = assign({}, newState, partialState); 4065 break a; 4066 case ForceUpdate: hasForceUpdate = !0; 4067 } 4068 } 4069 updateLane = pendingQueue.callback; 4070 null !== updateLane && (workInProgress.flags |= 64, isHiddenUpdate && (workInProgress.flags |= 8192), isHiddenUpdate = queue.callbacks, null === isHiddenUpdate ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane)); 4071 } else isHiddenUpdate = { 4072 lane: updateLane, 4073 tag: pendingQueue.tag, 4074 payload: pendingQueue.payload, 4075 callback: pendingQueue.callback, 4076 next: null 4077 }, null === current ? (firstPendingUpdate = current = isHiddenUpdate, lastPendingUpdate = newState) : current = current.next = isHiddenUpdate, lastBaseUpdate |= updateLane; 4078 pendingQueue = pendingQueue.next; 4079 if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break; 4080 else isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null; 4081 } while (1); 4082 null === current && (lastPendingUpdate = newState); 4083 queue.baseState = lastPendingUpdate; 4084 queue.firstBaseUpdate = firstPendingUpdate; 4085 queue.lastBaseUpdate = current; 4086 null === firstBaseUpdate && (queue.shared.lanes = 0); 4087 workInProgressRootSkippedLanes |= lastBaseUpdate; 4088 workInProgress.lanes = lastBaseUpdate; 4089 workInProgress.memoizedState = newState; 4090 } 4091 currentlyProcessingQueue = null; 4092 } 4093 function callCallback(callback, context) { 4094 if ("function" !== typeof callback) throw Error("Invalid argument passed as callback. E
vendor: 8,696 bytes, lines 4094-4217
4094xpected a function. Instead received: " + callback); 4095 callback.call(context); 4096 } 4097 function commitHiddenCallbacks(updateQueue, context) { 4098 var hiddenCallbacks = updateQueue.shared.hiddenCallbacks; 4099 if (null !== hiddenCallbacks) for (updateQueue.shared.hiddenCallbacks = null, updateQueue = 0; updateQueue < hiddenCallbacks.length; updateQueue++) callCallback(hiddenCallbacks[updateQueue], context); 4100 } 4101 function commitCallbacks(updateQueue, context) { 4102 var callbacks = updateQueue.callbacks; 4103 if (null !== callbacks) for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++) callCallback(callbacks[updateQueue], context); 4104 } 4105 function pushHiddenContext(fiber, context) { 4106 var prevEntangledRenderLanes = entangledRenderLanes; 4107 push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber); 4108 push(currentTreeHiddenStackCursor, context, fiber); 4109 entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes; 4110 } 4111 function reuseHiddenContextOnStack(fiber) { 4112 push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber); 4113 push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current, fiber); 4114 } 4115 function popHiddenContext(fiber) { 4116 entangledRenderLanes = prevEntangledRenderLanesCursor.current; 4117 pop(currentTreeHiddenStackCursor, fiber); 4118 pop(prevEntangledRenderLanesCursor, fiber); 4119 } 4120 function pushPrimaryTreeSuspenseHandler(handler) { 4121 var current = handler.alternate; 4122 push(suspenseStackCursor, suspenseStackCursor.current & SubtreeSuspenseContextMask, handler); 4123 push(suspenseHandlerStackCursor, handler, handler); 4124 null === shellBoundary && (null === current || null !== currentTreeHiddenStackCursor.current ? shellBoundary = handler : null !== current.memoizedState && (shellBoundary = handler)); 4125 } 4126 function pushDehydratedActivitySuspenseHandler(fiber) { 4127 push(suspenseStackCursor, suspenseStackCursor.current, fiber); 4128 push(suspenseHandlerStackCursor, fiber, fiber); 4129 null === shellBoundary && (shellBoundary = fiber); 4130 } 4131 function pushOffscreenSuspenseHandler(fiber) { 4132 22 === fiber.tag ? (push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(suspenseHandlerStackCursor, fiber, fiber), null === shellBoundary && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber); 4133 } 4134 function reuseSuspenseHandlerOnStack(fiber) { 4135 push(suspenseStackCursor, suspenseStackCursor.current, fiber); 4136 push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current, fiber); 4137 } 4138 function popSuspenseHandler(fiber) { 4139 pop(suspenseHandlerStackCursor, fiber); 4140 shellBoundary === fiber && (shellBoundary = null); 4141 pop(suspenseStackCursor, fiber); 4142 } 4143 function findFirstSuspended(row) { 4144 for (var node = row; null !== node;) { 4145 if (13 === node.tag) { 4146 var state = node.memoizedState; 4147 if (null !== state && (state = state.dehydrated, null === state || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state))) return node; 4148 } else if (19 === node.tag && ("forwards" === node.memoizedProps.revealOrder || "backwards" === node.memoizedProps.revealOrder || "unstable_legacy-backwards" === node.memoizedProps.revealOrder || "together" === node.memoizedProps.revealOrder)) { 4149 if (0 !== (node.flags & 128)) return node; 4150 } else if (null !== node.child) { 4151 node.child.return = node; 4152 node = node.child; 4153 continue; 4154 } 4155 if (node === row) break; 4156 for (; null === node.sibling;) { 4157 if (null === node.return || node.return === row) return null; 4158 node = node.return; 4159 } 4160 node.sibling.return = node.return; 4161 node = node.sibling; 4162 } 4163 return null; 4164 } 4165 function mountHookTypesDev() { 4166 var hookName = currentHookNameInDev; 4167 null === hookTypesDev ? hookTypesDev = [hookName] : hookTypesDev.push(hookName); 4168 } 4169 function updateHookTypesDev() { 4170 var hookName = currentHookNameInDev; 4171 if (null !== hookTypesDev && (hookTypesUpdateIndexDev++, hookTypesDev[hookTypesUpdateIndexDev] !== hookName)) { 4172 var componentName = getComponentNameFromFiber(currentlyRenderingFiber); 4173 if (!didWarnAboutMismatchedHooksForComponent.has(componentName) && (didWarnAboutMismatchedHooksForComponent.add(componentName), null !== hookTypesDev)) { 4174 for (var table = "", i = 0; i <= hookTypesUpdateIndexDev; i++) { 4175 var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? hookName : oldHookName; 4176 for (oldHookName = i + 1 + ". " + oldHookName; 30 > oldHookName.length;) oldHookName += " "; 4177 oldHookName += newHookName + "\n"; 4178 table += oldHookName; 4179 } 4180 console.error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); 4181 } 4182 } 4183 } 4184 function checkDepsAreArrayDev(deps) { 4185 void 0 === deps || null === deps || isArrayImpl(deps) || console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", currentHookNameInDev, typeof deps); 4186 } 4187 function warnOnUseFormStateInDev() { 4188 var componentName = getComponentNameFromFiber(currentlyRenderingFiber); 4189 didWarnAboutUseFormState.has(componentName) || (didWarnAboutUseFormState.add(componentName), console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.", componentName)); 4190 } 4191 function throwInvalidHookError() { 4192 throw Error("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."); 4193 } 4194 function areHookInputsEqual(nextDeps, prevDeps) { 4195 if (ignorePreviousDependencies) return !1; 4196 if (null === prevDeps) return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev), !1; 4197 nextDeps.length !== prevDeps.length && console.error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); 4198 for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1; 4199 return !0; 4200 } 4201 function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { 4202 renderLanes = nextRenderLanes; 4203 currentlyRenderingFiber = workInProgress; 4204 hookTypesDev = null !== current ? current._debugHookTypes : null; 4205 hookTypesUpdateIndexDev = -1; 4206 ignorePreviousDependencies = null !== current && current.type !== workInProgress.type; 4207 if ("[object AsyncFunction]" === Object.prototype.toString.call(Component) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component)) nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">")); 4208 workInProgress.memoizedState = null; 4209 workInProgress.updateQueue = null; 4210 workInProgress.lanes = 0; 4211 ReactSharedInternals.H = null !== current && null !== current.memoizedState ? HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV; 4212 shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress.mode & StrictLegacyMode) !== NoMode; 4213 var children = callComponentInDEV(Component, props, secondArg); 4214 shouldDoubleInvokeUserFnsInHooksDEV = !1; 4215 didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(workInProgress, Component, props, secondArg)); 4216 if (nextRenderLanes) { 4217 setIsStrictModeForDevtools(!0);
vendor: 21,411 bytes, lines 4218-4662
4218 try { 4219 children = renderWithHooksAgain(workInProgress, Component, props, secondArg); 4220 } finally { 4221 setIsStrictModeForDevtools(!1); 4222 } 4223 } 4224 finishRenderingHooks(current, workInProgress); 4225 return children; 4226 } 4227 function finishRenderingHooks(current, workInProgress) { 4228 workInProgress._debugHookTypes = hookTypesDev; 4229 null === workInProgress.dependencies ? null !== thenableState && (workInProgress.dependencies = { 4230 lanes: 0, 4231 firstContext: null, 4232 _debugThenableState: thenableState 4233 }) : workInProgress.dependencies._debugThenableState = thenableState; 4234 ReactSharedInternals.H = ContextOnlyDispatcher; 4235 var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; 4236 renderLanes = 0; 4237 hookTypesDev = currentHookNameInDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 4238 hookTypesUpdateIndexDev = -1; 4239 null !== current && (current.flags & 65011712) !== (workInProgress.flags & 65011712) && console.error("Internal React error: Expected static flag was missing. Please notify the React team."); 4240 didScheduleRenderPhaseUpdate = !1; 4241 thenableIndexCounter = 0; 4242 thenableState = null; 4243 if (didRenderTooFewHooks) throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); 4244 null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = !0)); 4245 needsToResetSuspendedThenableDEV ? (needsToResetSuspendedThenableDEV = !1, current = !0) : current = !1; 4246 current && (workInProgress = getComponentNameFromFiber(workInProgress) || "Unknown", didWarnAboutUseWrappedInTryCatch.has(workInProgress) || didWarnAboutAsyncClientComponent.has(workInProgress) || (didWarnAboutUseWrappedInTryCatch.add(workInProgress), console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."))); 4247 } 4248 function renderWithHooksAgain(workInProgress, Component, props, secondArg) { 4249 currentlyRenderingFiber = workInProgress; 4250 var numberOfReRenders = 0; 4251 do { 4252 didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null); 4253 thenableIndexCounter = 0; 4254 didScheduleRenderPhaseUpdateDuringThisPass = !1; 4255 if (numberOfReRenders >= RE_RENDER_LIMIT) throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); 4256 numberOfReRenders += 1; 4257 ignorePreviousDependencies = !1; 4258 workInProgressHook = currentHook = null; 4259 if (null != workInProgress.updateQueue) { 4260 var children = workInProgress.updateQueue; 4261 children.lastEffect = null; 4262 children.events = null; 4263 children.stores = null; 4264 null != children.memoCache && (children.memoCache.index = 0); 4265 } 4266 hookTypesUpdateIndexDev = -1; 4267 ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV; 4268 children = callComponentInDEV(Component, props, secondArg); 4269 } while (didScheduleRenderPhaseUpdateDuringThisPass); 4270 return children; 4271 } 4272 function TransitionAwareHostComponent() { 4273 var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0]; 4274 maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable; 4275 dispatcher = dispatcher.useState()[0]; 4276 (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024); 4277 return maybeThenable; 4278 } 4279 function checkDidRenderIdHook() { 4280 var didRenderIdHook = 0 !== localIdCounter; 4281 localIdCounter = 0; 4282 return didRenderIdHook; 4283 } 4284 function bailoutHooks(current, workInProgress, lanes) { 4285 workInProgress.updateQueue = current.updateQueue; 4286 workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; 4287 current.lanes &= ~lanes; 4288 } 4289 function resetHooksOnUnwind(workInProgress) { 4290 if (didScheduleRenderPhaseUpdate) { 4291 for (workInProgress = workInProgress.memoizedState; null !== workInProgress;) { 4292 var queue = workInProgress.queue; 4293 null !== queue && (queue.pending = null); 4294 workInProgress = workInProgress.next; 4295 } 4296 didScheduleRenderPhaseUpdate = !1; 4297 } 4298 renderLanes = 0; 4299 hookTypesDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 4300 hookTypesUpdateIndexDev = -1; 4301 currentHookNameInDev = null; 4302 didScheduleRenderPhaseUpdateDuringThisPass = !1; 4303 thenableIndexCounter = localIdCounter = 0; 4304 thenableState = null; 4305 } 4306 function mountWorkInProgressHook() { 4307 var hook = { 4308 memoizedState: null, 4309 baseState: null, 4310 baseQueue: null, 4311 queue: null, 4312 next: null 4313 }; 4314 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; 4315 return workInProgressHook; 4316 } 4317 function updateWorkInProgressHook() { 4318 if (null === currentHook) { 4319 var nextCurrentHook = currentlyRenderingFiber.alternate; 4320 nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; 4321 } else nextCurrentHook = currentHook.next; 4322 var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next; 4323 if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook; 4324 else { 4325 if (null === nextCurrentHook) { 4326 if (null === currentlyRenderingFiber.alternate) throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."); 4327 throw Error("Rendered more hooks than during the previous render."); 4328 } 4329 currentHook = nextCurrentHook; 4330 nextCurrentHook = { 4331 memoizedState: currentHook.memoizedState, 4332 baseState: currentHook.baseState, 4333 baseQueue: currentHook.baseQueue, 4334 queue: currentHook.queue, 4335 next: null 4336 }; 4337 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; 4338 } 4339 return workInProgressHook; 4340 } 4341 function createFunctionComponentUpdateQueue() { 4342 return { 4343 lastEffect: null, 4344 events: null, 4345 stores: null, 4346 memoCache: null 4347 }; 4348 } 4349 function useThenable(thenable) { 4350 var index = thenableIndexCounter; 4351 thenableIndexCounter += 1; 4352 null === thenableState && (thenableState = createThenableState()); 4353 thenable = trackUsedThenable(thenableState, thenable, index); 4354 index = currentlyRenderingFiber; 4355 null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && (index = index.alternate, ReactSharedInternals.H = null !== index && null !== index.memoizedState ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV); 4356 return thenable; 4357 } 4358 function use(usable) { 4359 if (null !== usable && "object" === typeof usable) { 4360 if ("function" === typeof usable.then) return useThenable(usable); 4361 if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable); 4362 } 4363 throw Error("An unsupported type was passed to use(): " + String(usable)); 4364 } 4365 function useMemoCache(size) { 4366 var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue; 4367 null !== updateQueue && (memoCache = updateQueue.memoCache); 4368 if (null == memoCache) { 4369 var current = currentlyRenderingFiber.alternate; 4370 null !== current && (current = current.updateQueue, null !== current && (current = current.memoCache, null != current && (memoCache = { 4371 data: current.data.map(function(array) { 4372 return array.slice(); 4373 }), 4374 index: 0 4375 }))); 4376 } 4377 memoCache ??= { 4378 data: [], 4379 index: 0 4380 }; 4381 null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue); 4382 updateQueue.memoCache = memoCache; 4383 updateQueue = memoCache.data[memoCache.index]; 4384 if (void 0 === updateQueue || ignorePreviousDependencies) for (updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; current < size; current++) updateQueue[current] = REACT_MEMO_CACHE_SENTINEL; 4385 else updateQueue.length !== size && console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, size); 4386 memoCache.index++; 4387 return updateQueue; 4388 } 4389 function basicStateReducer(state, action) { 4390 return "function" === typeof action ? action(state) : action; 4391 } 4392 function mountReducer(reducer, initialArg, init) { 4393 var hook = mountWorkInProgressHook(); 4394 if (void 0 !== init) { 4395 var initialState = init(initialArg); 4396 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4397 setIsStrictModeForDevtools(!0); 4398 try { 4399 init(initialArg); 4400 } finally { 4401 setIsStrictModeForDevtools(!1); 4402 } 4403 } 4404 } else initialState = initialArg; 4405 hook.memoizedState = hook.baseState = initialState; 4406 reducer = { 4407 pending: null, 4408 lanes: 0, 4409 dispatch: null, 4410 lastRenderedReducer: reducer, 4411 lastRenderedState: initialState 4412 }; 4413 hook.queue = reducer; 4414 reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber, reducer); 4415 return [hook.memoizedState, reducer]; 4416 } 4417 function updateReducer(reducer) { 4418 return updateReducerImpl(updateWorkInProgressHook(), currentHook, reducer); 4419 } 4420 function updateReducerImpl(hook, current, reducer) { 4421 var queue = hook.queue; 4422 if (null === queue) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"); 4423 queue.lastRenderedReducer = reducer; 4424 var baseQueue = hook.baseQueue, pendingQueue = queue.pending; 4425 if (null !== pendingQueue) { 4426 if (null !== baseQueue) { 4427 var baseFirst = baseQueue.next; 4428 baseQueue.next = pendingQueue.next; 4429 pendingQueue.next = baseFirst; 4430 } 4431 current.baseQueue !== baseQueue && console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."); 4432 current.baseQueue = baseQueue = pendingQueue; 4433 queue.pending = null; 4434 } 4435 pendingQueue = hook.baseState; 4436 if (null === baseQueue) hook.memoizedState = pendingQueue; 4437 else { 4438 current = baseQueue.next; 4439 var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction = !1; 4440 do { 4441 var updateLane = update.lane & -536870913; 4442 if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 4443 var revertLane = update.revertLane; 4444 if (0 === revertLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { 4445 lane: 0, 4446 revertLane: 0, 4447 gesture: null, 4448 action: update.action, 4449 hasEagerState: update.hasEagerState, 4450 eagerState: update.eagerState, 4451 next: null 4452 }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 4453 else if ((renderLanes & revertLane) === revertLane) { 4454 update = update.next; 4455 revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 4456 continue; 4457 } else updateLane = { 4458 lane: 0, 4459 revertLane: update.revertLane, 4460 gesture: null, 4461 action: update.action, 4462 hasEagerState: update.hasEagerState, 4463 eagerState: update.eagerState, 4464 next: null 4465 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane; 4466 updateLane = update.action; 4467 shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane); 4468 pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane); 4469 } else revertLane = { 4470 lane: updateLane, 4471 revertLane: update.revertLane, 4472 gesture: update.gesture, 4473 action: update.action, 4474 hasEagerState: update.hasEagerState, 4475 eagerState: update.eagerState, 4476 next: null 4477 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane; 4478 update = update.next; 4479 } while (null !== update && update !== current); 4480 null === newBaseQueueLast ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst; 4481 if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = !0, didReadFromEntangledAsyncAction && (reducer = currentEntangledActionThenable, null !== reducer))) throw reducer; 4482 hook.memoizedState = pendingQueue; 4483 hook.baseState = baseFirst; 4484 hook.baseQueue = newBaseQueueLast; 4485 queue.lastRenderedState = pendingQueue; 4486 } 4487 null === baseQueue && (queue.lanes = 0); 4488 return [hook.memoizedState, queue.dispatch]; 4489 } 4490 function rerenderReducer(reducer) { 4491 var hook = updateWorkInProgressHook(), queue = hook.queue; 4492 if (null === queue) throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"); 4493 queue.lastRenderedReducer = reducer; 4494 var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; 4495 if (null !== lastRenderPhaseUpdate) { 4496 queue.pending = null; 4497 var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; 4498 do 4499 newState = reducer(newState, update.action), update = update.next; 4500 while (update !== lastRenderPhaseUpdate); 4501 objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); 4502 hook.memoizedState = newState; 4503 null === hook.baseQueue && (hook.baseState = newState); 4504 queue.lastRenderedState = newState; 4505 } 4506 return [newState, dispatch]; 4507 } 4508 function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 4509 var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook(); 4510 if (isHydrating) { 4511 if (void 0 === getServerSnapshot) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."); 4512 var nextSnapshot = getServerSnapshot(); 4513 didWarnUncachedGetSnapshot || nextSnapshot === getServerSnapshot() || (console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0); 4514 } else { 4515 nextSnapshot = getSnapshot(); 4516 didWarnUncachedGetSnapshot || (getServerSnapshot = getSnapshot(), objectIs(nextSnapshot, getServerSnapshot) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0)); 4517 if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 4518 0 !== (workInProgressRootRenderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); 4519 } 4520 hook.memoizedState = nextSnapshot; 4521 getServerSnapshot = { 4522 value: nextSnapshot, 4523 getSnapshot 4524 }; 4525 hook.queue = getServerSnapshot; 4526 mountEffect(subscribeToStore.bind(null, fiber, getServerSnapshot, subscribe), [subscribe]); 4527 fiber.flags |= 2048; 4528 pushSimpleEffect(HasEffect | Passive, { destroy: void 0 }, updateStoreInstance.bind(null, fiber, getServerSnapshot, nextSnapshot, getSnapshot), null); 4529 return nextSnapshot; 4530 } 4531 function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 4532 var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating; 4533 if (isHydrating$jscomp$0) { 4534 if (void 0 === getServerSnapshot) throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering."); 4535 getServerSnapshot = getServerSnapshot(); 4536 } else if (getServerSnapshot = getSnapshot(), !didWarnUncachedGetSnapshot) { 4537 var cachedSnapshot = getSnapshot(); 4538 objectIs(getServerSnapshot, cachedSnapshot) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0); 4539 } 4540 if (cachedSnapshot = !objectIs((currentHook || hook).memoizedState, getServerSnapshot)) hook.memoizedState = getServerSnapshot, didReceiveUpdate = !0; 4541 hook = hook.queue; 4542 updateEffectImpl(2048, Passive, subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); 4543 if (hook.getSnapshot !== getSnapshot || cachedSnapshot || null !== workInProgressHook && workInProgressHook.memoizedState.tag & HasEffect) { 4544 fiber.flags |= 2048; 4545 pushSimpleEffect(HasEffect | Passive, { destroy: void 0 }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null); 4546 if (null === workInProgressRoot) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 4547 isHydrating$jscomp$0 || 0 !== (renderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); 4548 } 4549 return getServerSnapshot; 4550 } 4551 function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { 4552 fiber.flags |= 16384; 4553 fiber = { 4554 getSnapshot, 4555 value: renderedSnapshot 4556 }; 4557 getSnapshot = currentlyRenderingFiber.updateQueue; 4558 null === getSnapshot ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); 4559 } 4560 function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { 4561 inst.value = nextSnapshot; 4562 inst.getSnapshot = getSnapshot; 4563 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 4564 } 4565 function subscribeToStore(fiber, inst, subscribe) { 4566 return subscribe(function() { 4567 checkIfSnapshotChanged(inst) && (startUpdateTimerByLane(2, "updateSyncExternalStore()", fiber), forceStoreRerender(fiber)); 4568 }); 4569 } 4570 function checkIfSnapshotChanged(inst) { 4571 var latestGetSnapshot = inst.getSnapshot; 4572 inst = inst.value; 4573 try { 4574 var nextValue = latestGetSnapshot(); 4575 return !objectIs(inst, nextValue); 4576 } catch (error) { 4577 return !0; 4578 } 4579 } 4580 function forceStoreRerender(fiber) { 4581 var root = enqueueConcurrentRenderForLane(fiber, 2); 4582 null !== root && scheduleUpdateOnFiber(root, fiber, 2); 4583 } 4584 function mountStateImpl(initialState) { 4585 var hook = mountWorkInProgressHook(); 4586 if ("function" === typeof initialState) { 4587 var initialStateInitializer = initialState; 4588 initialState = initialStateInitializer(); 4589 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4590 setIsStrictModeForDevtools(!0); 4591 try { 4592 initialStateInitializer(); 4593 } finally { 4594 setIsStrictModeForDevtools(!1); 4595 } 4596 } 4597 } 4598 hook.memoizedState = hook.baseState = initialState; 4599 hook.queue = { 4600 pending: null, 4601 lanes: 0, 4602 dispatch: null, 4603 lastRenderedReducer: basicStateReducer, 4604 lastRenderedState: initialState 4605 }; 4606 return hook; 4607 } 4608 function mountState(initialState) { 4609 initialState = mountStateImpl(initialState); 4610 var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue); 4611 queue.dispatch = dispatch; 4612 return [initialState.memoizedState, dispatch]; 4613 } 4614 function mountOptimistic(passthrough) { 4615 var hook = mountWorkInProgressHook(); 4616 hook.memoizedState = hook.baseState = passthrough; 4617 var queue = { 4618 pending: null, 4619 lanes: 0, 4620 dispatch: null, 4621 lastRenderedReducer: null, 4622 lastRenderedState: null 4623 }; 4624 hook.queue = queue; 4625 hook = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !0, queue); 4626 queue.dispatch = hook; 4627 return [passthrough, hook]; 4628 } 4629 function updateOptimistic(passthrough, reducer) { 4630 return updateOptimisticImpl(updateWorkInProgressHook(), currentHook, passthrough, reducer); 4631 } 4632 function updateOptimisticImpl(hook, current, passthrough, reducer) { 4633 hook.baseState = passthrough; 4634 return updateReducerImpl(hook, currentHook, "function" === typeof reducer ? reducer : basicStateReducer); 4635 } 4636 function rerenderOptimistic(passthrough, reducer) { 4637 var hook = updateWorkInProgressHook(); 4638 if (null !== currentHook) return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 4639 hook.baseState = passthrough; 4640 return [passthrough, hook.queue.dispatch]; 4641 } 4642 function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) { 4643 if (isRenderPhaseUpdate(fiber)) throw Error("Cannot update form state while rendering."); 4644 fiber = actionQueue.action; 4645 if (null !== fiber) { 4646 var actionNode = { 4647 payload, 4648 action: fiber, 4649 next: null, 4650 isTransition: !0, 4651 status: "pending", 4652 value: null, 4653 reason: null, 4654 listeners: [], 4655 then: function(listener) { 4656 actionNode.listeners.push(listener); 4657 } 4658 }; 4659 null !== ReactSharedInternals.T ? setPendingState(!0) : actionNode.isTransition = !1; 4660 setState(actionNode); 4661 setPendingState = actionQueue.pending; 4662 null === setPendingState ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(action
vendor: 2,192 bytes, lines 4662-4687
4662Queue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode); 4663 } 4664 } 4665 function runActionStateAction(actionQueue, node) { 4666 var action = node.action, payload = node.payload, prevState = actionQueue.state; 4667 if (node.isTransition) { 4668 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 4669 currentTransition._updatedFibers = /* @__PURE__ */ new Set(); 4670 ReactSharedInternals.T = currentTransition; 4671 try { 4672 var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S; 4673 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 4674 handleActionReturnValue(actionQueue, node, returnValue); 4675 } catch (error) { 4676 onActionError(actionQueue, node, error); 4677 } finally { 4678 null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("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."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (actionQueue = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < actionQueue && console.warn("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.")); 4679 } 4680 } else try { 4681 currentTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, currentTransition); 4682 } catch (error$4) { 4683 onActionError(actionQueue, node, error$4); 4684 } 4685 } 4686 function handleActionReturnValue(actionQueue, node, returnValue) { 4687 null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(function(nextState) {
vendor: 9,745 bytes, lines 4688-4908
4688 onActionSuccess(actionQueue, node, nextState); 4689 }, function(error) { 4690 return onActionError(actionQueue, node, error); 4691 }), node.isTransition || console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")) : onActionSuccess(actionQueue, node, returnValue); 4692 } 4693 function onActionSuccess(actionQueue, actionNode, nextState) { 4694 actionNode.status = "fulfilled"; 4695 actionNode.value = nextState; 4696 notifyActionListeners(actionNode); 4697 actionQueue.state = nextState; 4698 actionNode = actionQueue.pending; 4699 null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState))); 4700 } 4701 function onActionError(actionQueue, actionNode, error) { 4702 var last = actionQueue.pending; 4703 actionQueue.pending = null; 4704 if (null !== last) { 4705 last = last.next; 4706 do 4707 actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next; 4708 while (actionNode !== last); 4709 } 4710 actionQueue.action = null; 4711 } 4712 function notifyActionListeners(actionNode) { 4713 actionNode = actionNode.listeners; 4714 for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])(); 4715 } 4716 function actionStateReducer(oldState, newState) { 4717 return newState; 4718 } 4719 function mountActionState(action, initialStateProp) { 4720 if (isHydrating) { 4721 var ssrFormState = workInProgressRoot.formState; 4722 if (null !== ssrFormState) { 4723 a: { 4724 var isMatching = currentlyRenderingFiber; 4725 if (isHydrating) { 4726 if (nextHydratableInstance) { 4727 b: { 4728 var markerInstance = nextHydratableInstance; 4729 for (var inRootOrSingleton = rootOrSingletonContext; 8 !== markerInstance.nodeType;) { 4730 if (!inRootOrSingleton) { 4731 markerInstance = null; 4732 break b; 4733 } 4734 markerInstance = getNextHydratable(markerInstance.nextSibling); 4735 if (null === markerInstance) { 4736 markerInstance = null; 4737 break b; 4738 } 4739 } 4740 inRootOrSingleton = markerInstance.data; 4741 markerInstance = inRootOrSingleton === FORM_STATE_IS_MATCHING || inRootOrSingleton === FORM_STATE_IS_NOT_MATCHING ? markerInstance : null; 4742 } 4743 if (markerInstance) { 4744 nextHydratableInstance = getNextHydratable(markerInstance.nextSibling); 4745 isMatching = markerInstance.data === FORM_STATE_IS_MATCHING; 4746 break a; 4747 } 4748 } 4749 throwOnHydrationMismatch(isMatching); 4750 } 4751 isMatching = !1; 4752 } 4753 isMatching && (initialStateProp = ssrFormState[0]); 4754 } 4755 } 4756 ssrFormState = mountWorkInProgressHook(); 4757 ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp; 4758 isMatching = { 4759 pending: null, 4760 lanes: 0, 4761 dispatch: null, 4762 lastRenderedReducer: actionStateReducer, 4763 lastRenderedState: initialStateProp 4764 }; 4765 ssrFormState.queue = isMatching; 4766 ssrFormState = dispatchSetState.bind(null, currentlyRenderingFiber, isMatching); 4767 isMatching.dispatch = ssrFormState; 4768 isMatching = mountStateImpl(!1); 4769 inRootOrSingleton = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !1, isMatching.queue); 4770 isMatching = mountWorkInProgressHook(); 4771 markerInstance = { 4772 state: initialStateProp, 4773 dispatch: null, 4774 action, 4775 pending: null 4776 }; 4777 isMatching.queue = markerInstance; 4778 ssrFormState = dispatchActionState.bind(null, currentlyRenderingFiber, markerInstance, inRootOrSingleton, ssrFormState); 4779 markerInstance.dispatch = ssrFormState; 4780 isMatching.memoizedState = action; 4781 return [ 4782 initialStateProp, 4783 ssrFormState, 4784 !1 4785 ]; 4786 } 4787 function updateActionState(action) { 4788 return updateActionStateImpl(updateWorkInProgressHook(), currentHook, action); 4789 } 4790 function updateActionStateImpl(stateHook, currentStateHook, action) { 4791 currentStateHook = updateReducerImpl(stateHook, currentStateHook, actionStateReducer)[0]; 4792 stateHook = updateReducer(basicStateReducer)[0]; 4793 if ("object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then) try { 4794 var state = useThenable(currentStateHook); 4795 } catch (x) { 4796 if (x === SuspenseException) throw SuspenseActionException; 4797 throw x; 4798 } 4799 else state = currentStateHook; 4800 currentStateHook = updateWorkInProgressHook(); 4801 var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch; 4802 action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(HasEffect | Passive, { destroy: void 0 }, actionStateActionEffect.bind(null, actionQueue, action), null)); 4803 return [ 4804 state, 4805 dispatch, 4806 stateHook 4807 ]; 4808 } 4809 function actionStateActionEffect(actionQueue, action) { 4810 actionQueue.action = action; 4811 } 4812 function rerenderActionState(action) { 4813 var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook; 4814 if (null !== currentStateHook) return updateActionStateImpl(stateHook, currentStateHook, action); 4815 updateWorkInProgressHook(); 4816 stateHook = stateHook.memoizedState; 4817 currentStateHook = updateWorkInProgressHook(); 4818 var dispatch = currentStateHook.queue.dispatch; 4819 currentStateHook.memoizedState = action; 4820 return [ 4821 stateHook, 4822 dispatch, 4823 !1 4824 ]; 4825 } 4826 function pushSimpleEffect(tag, inst, create, deps) { 4827 tag = { 4828 tag, 4829 create, 4830 deps, 4831 inst, 4832 next: null 4833 }; 4834 inst = currentlyRenderingFiber.updateQueue; 4835 null === inst && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst); 4836 create = inst.lastEffect; 4837 null === create ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag); 4838 return tag; 4839 } 4840 function mountRef(initialValue) { 4841 var hook = mountWorkInProgressHook(); 4842 initialValue = { current: initialValue }; 4843 return hook.memoizedState = initialValue; 4844 } 4845 function mountEffectImpl(fiberFlags, hookFlags, create, deps) { 4846 var hook = mountWorkInProgressHook(); 4847 currentlyRenderingFiber.flags |= fiberFlags; 4848 hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, { destroy: void 0 }, create, void 0 === deps ? null : deps); 4849 } 4850 function updateEffectImpl(fiberFlags, hookFlags, create, deps) { 4851 var hook = updateWorkInProgressHook(); 4852 deps = void 0 === deps ? null : deps; 4853 var inst = hook.memoizedState.inst; 4854 null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(HasEffect | hookFlags, inst, create, deps)); 4855 } 4856 function mountEffect(create, deps) { 4857 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); 4858 } 4859 function useEffectEventImpl(payload) { 4860 currentlyRenderingFiber.flags |= 4; 4861 var componentUpdateQueue = currentlyRenderingFiber.updateQueue; 4862 if (null === componentUpdateQueue) componentUpdateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = componentUpdateQueue, componentUpdateQueue.events = [payload]; 4863 else { 4864 var events = componentUpdateQueue.events; 4865 null === events ? componentUpdateQueue.events = [payload] : events.push(payload); 4866 } 4867 } 4868 function mountEvent(callback) { 4869 var hook = mountWorkInProgressHook(), ref = { impl: callback }; 4870 hook.memoizedState = ref; 4871 return function() { 4872 if ((executionContext & RenderContext) !== NoContext) throw Error("A function wrapped in useEffectEvent can't be called during rendering."); 4873 return ref.impl.apply(void 0, arguments); 4874 }; 4875 } 4876 function updateEvent(callback) { 4877 var ref = updateWorkInProgressHook().memoizedState; 4878 useEffectEventImpl({ 4879 ref, 4880 nextImpl: callback 4881 }); 4882 return function() { 4883 if ((executionContext & RenderContext) !== NoContext) throw Error("A function wrapped in useEffectEvent can't be called during rendering."); 4884 return ref.impl.apply(void 0, arguments); 4885 }; 4886 } 4887 function mountLayoutEffect(create, deps) { 4888 var fiberFlags = 4194308; 4889 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728); 4890 return mountEffectImpl(fiberFlags, Layout, create, deps); 4891 } 4892 function imperativeHandleEffect(create, ref) { 4893 if ("function" === typeof ref) { 4894 create = create(); 4895 var refCleanup = ref(create); 4896 return function() { 4897 "function" === typeof refCleanup ? refCleanup() : ref(null); 4898 }; 4899 } 4900 if (null !== ref && void 0 !== ref) return ref.hasOwnProperty("current") || console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(ref).join(", ") + "}"), create = create(), ref.current = create, function() { 4901 ref.current = null; 4902 }; 4903 } 4904 function mountImperativeHandle(ref, create, deps) { 4905 "function" !== typeof create && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null"); 4906 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 4907 var fiberFlags = 4194308; 4908 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728);
vendor: 7,961 bytes, lines 4909-5068
4909 mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create, ref), deps); 4910 } 4911 function updateImperativeHandle(ref, create, deps) { 4912 "function" !== typeof create && console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", null !== create ? typeof create : "null"); 4913 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 4914 updateEffectImpl(4, Layout, imperativeHandleEffect.bind(null, create, ref), deps); 4915 } 4916 function mountCallback(callback, deps) { 4917 mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; 4918 return callback; 4919 } 4920 function updateCallback(callback, deps) { 4921 var hook = updateWorkInProgressHook(); 4922 deps = void 0 === deps ? null : deps; 4923 var prevState = hook.memoizedState; 4924 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 4925 hook.memoizedState = [callback, deps]; 4926 return callback; 4927 } 4928 function mountMemo(nextCreate, deps) { 4929 var hook = mountWorkInProgressHook(); 4930 deps = void 0 === deps ? null : deps; 4931 var nextValue = nextCreate(); 4932 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4933 setIsStrictModeForDevtools(!0); 4934 try { 4935 nextCreate(); 4936 } finally { 4937 setIsStrictModeForDevtools(!1); 4938 } 4939 } 4940 hook.memoizedState = [nextValue, deps]; 4941 return nextValue; 4942 } 4943 function updateMemo(nextCreate, deps) { 4944 var hook = updateWorkInProgressHook(); 4945 deps = void 0 === deps ? null : deps; 4946 var prevState = hook.memoizedState; 4947 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 4948 prevState = nextCreate(); 4949 if (shouldDoubleInvokeUserFnsInHooksDEV) { 4950 setIsStrictModeForDevtools(!0); 4951 try { 4952 nextCreate(); 4953 } finally { 4954 setIsStrictModeForDevtools(!1); 4955 } 4956 } 4957 hook.memoizedState = [prevState, deps]; 4958 return prevState; 4959 } 4960 function mountDeferredValue(value, initialValue) { 4961 return mountDeferredValueImpl(mountWorkInProgressHook(), value, initialValue); 4962 } 4963 function updateDeferredValue(value, initialValue) { 4964 return updateDeferredValueImpl(updateWorkInProgressHook(), currentHook.memoizedState, value, initialValue); 4965 } 4966 function rerenderDeferredValue(value, initialValue) { 4967 var hook = updateWorkInProgressHook(); 4968 return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(hook, currentHook.memoizedState, value, initialValue); 4969 } 4970 function mountDeferredValueImpl(hook, value, initialValue) { 4971 if (void 0 === initialValue || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930)) return hook.memoizedState = value; 4972 hook.memoizedState = initialValue; 4973 hook = requestDeferredLane(); 4974 currentlyRenderingFiber.lanes |= hook; 4975 workInProgressRootSkippedLanes |= hook; 4976 return initialValue; 4977 } 4978 function updateDeferredValueImpl(hook, prevValue, value, initialValue) { 4979 if (objectIs(value, prevValue)) return value; 4980 if (null !== currentTreeHiddenStackCursor.current) return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook; 4981 if (0 === (renderLanes & 42) || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930)) return didReceiveUpdate = !0, hook.memoizedState = value; 4982 hook = requestDeferredLane(); 4983 currentlyRenderingFiber.lanes |= hook; 4984 workInProgressRootSkippedLanes |= hook; 4985 return prevValue; 4986 } 4987 function releaseAsyncTransition() { 4988 ReactSharedInternals.asyncTransitions--; 4989 } 4990 function startTransition(fiber, queue, pendingState, finishedState, callback) { 4991 var previousPriority = ReactDOMSharedInternals.p; 4992 ReactDOMSharedInternals.p = 0 !== previousPriority && previousPriority < ContinuousEventPriority ? previousPriority : ContinuousEventPriority; 4993 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 4994 currentTransition._updatedFibers = /* @__PURE__ */ new Set(); 4995 ReactSharedInternals.T = currentTransition; 4996 dispatchOptimisticSetState(fiber, !1, queue, pendingState); 4997 try { 4998 var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S; 4999 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 5000 if (null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then) { 5001 ReactSharedInternals.asyncTransitions++; 5002 returnValue.then(releaseAsyncTransition, releaseAsyncTransition); 5003 var thenableForFinishedState = chainThenableValue(returnValue, finishedState); 5004 dispatchSetStateInternal(fiber, queue, thenableForFinishedState, requestUpdateLane(fiber)); 5005 } else dispatchSetStateInternal(fiber, queue, finishedState, requestUpdateLane(fiber)); 5006 } catch (error) { 5007 dispatchSetStateInternal(fiber, queue, { 5008 then: function() {}, 5009 status: "rejected", 5010 reason: error 5011 }, requestUpdateLane(fiber)); 5012 } finally { 5013 ReactDOMSharedInternals.p = previousPriority, null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("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."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (fiber = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < fiber && console.warn("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.")); 5014 } 5015 } 5016 function startHostTransition(formFiber, pendingState, action, formData) { 5017 if (5 !== formFiber.tag) throw Error("Expected the form instance to be a HostComponent. This is a bug in React."); 5018 var queue = ensureFormComponentIsStateful(formFiber).queue; 5019 startHostActionTimer(formFiber); 5020 startTransition(formFiber, queue, pendingState, NotPendingTransition, null === action ? noop : function() { 5021 requestFormReset$1(formFiber); 5022 return action(formData); 5023 }); 5024 } 5025 function ensureFormComponentIsStateful(formFiber) { 5026 var existingStateHook = formFiber.memoizedState; 5027 if (null !== existingStateHook) return existingStateHook; 5028 existingStateHook = { 5029 memoizedState: NotPendingTransition, 5030 baseState: NotPendingTransition, 5031 baseQueue: null, 5032 queue: { 5033 pending: null, 5034 lanes: 0, 5035 dispatch: null, 5036 lastRenderedReducer: basicStateReducer, 5037 lastRenderedState: NotPendingTransition 5038 }, 5039 next: null 5040 }; 5041 var initialResetState = {}; 5042 existingStateHook.next = { 5043 memoizedState: initialResetState, 5044 baseState: initialResetState, 5045 baseQueue: null, 5046 queue: { 5047 pending: null, 5048 lanes: 0, 5049 dispatch: null, 5050 lastRenderedReducer: basicStateReducer, 5051 lastRenderedState: initialResetState 5052 }, 5053 next: null 5054 }; 5055 formFiber.memoizedState = existingStateHook; 5056 formFiber = formFiber.alternate; 5057 null !== formFiber && (formFiber.memoizedState = existingStateHook); 5058 return existingStateHook; 5059 } 5060 function requestFormReset$1(formFiber) { 5061 null === ReactSharedInternals.T && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition."); 5062 var stateHook = ensureFormComponentIsStateful(formFiber); 5063 null === stateHook.next && (stateHook = formFiber.alternate.memoizedState); 5064 dispatchSetStateInternal(formFiber, stateHook.next.queue, {}, requestUpdateLane(formFiber)); 5065 } 5066 function mountTransition() { 5067 var stateHook = mountStateImpl(!1); 5068 stateHook = startTransition.bind(null, currentlyRenderingFiber, stateHook.queue, !0, !1);
vendor: 3,078 bytes, lines 5069-5127
5069 mountWorkInProgressHook().memoizedState = stateHook; 5070 return [!1, stateHook]; 5071 } 5072 function updateTransition() { 5073 var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 5074 return ["boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start]; 5075 } 5076 function rerenderTransition() { 5077 var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 5078 return ["boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start]; 5079 } 5080 function useHostTransitionStatus() { 5081 return readContext(HostTransitionContext); 5082 } 5083 function mountId() { 5084 var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix; 5085 if (isHydrating) { 5086 var treeId = treeContextOverflow; 5087 var idWithLeadingBit = treeContextId; 5088 treeId = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + treeId; 5089 identifierPrefix = "_" + identifierPrefix + "R_" + treeId; 5090 treeId = localIdCounter++; 5091 0 < treeId && (identifierPrefix += "H" + treeId.toString(32)); 5092 identifierPrefix += "_"; 5093 } else treeId = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + treeId.toString(32) + "_"; 5094 return hook.memoizedState = identifierPrefix; 5095 } 5096 function mountRefresh() { 5097 return mountWorkInProgressHook().memoizedState = refreshCache.bind(null, currentlyRenderingFiber); 5098 } 5099 function refreshCache(fiber, seedKey) { 5100 for (var provider = fiber.return; null !== provider;) { 5101 switch (provider.tag) { 5102 case 24: 5103 case 3: 5104 var lane = requestUpdateLane(provider), refreshUpdate = createUpdate(lane), root = enqueueUpdate(provider, refreshUpdate, lane); 5105 null !== root && (startUpdateTimerByLane(lane, "refresh()", fiber), scheduleUpdateOnFiber(root, provider, lane), entangleTransitions(root, provider, lane)); 5106 fiber = createCache(); 5107 null !== seedKey && void 0 !== seedKey && null !== root && console.error("The seed argument is not enabled outside experimental channels."); 5108 refreshUpdate.payload = { cache: fiber }; 5109 return; 5110 } 5111 provider = provider.return; 5112 } 5113 } 5114 function dispatchReducerAction(fiber, queue, action) { 5115 var args = arguments; 5116 "function" === typeof args[3] && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); 5117 args = requestUpdateLane(fiber); 5118 var update = { 5119 lane: args, 5120 revertLane: 0, 5121 gesture: null, 5122 action, 5123 hasEagerState: !1, 5124 eagerState: null, 5125 next: null 5126 }; 5127 isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUpdate(fiber, queue, update, args), null !== update && (startUpdateTimerByLane(args, "dispatch()", fiber), scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args
5127))); 5128 } 5129 function dispatchSetState(fiber, queue, action) { 5130 var args = arguments; 5131 "function" === typeof args[3] && console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); 5132 args = requestUpdateLane(fiber); 5133 dispatchSetStateInternal(fiber, queue, action, args) && startUpdateTimerByLane(args, "setState()", fiber); 5134 } 5135 function dispatchSetStateInternal(fiber, queue, action, lane) { 5136 var update = { 5137 lane, 5138 revertLane: 0, 5139 gesture: null, 5140 action, 5141 hasEagerState: !1, 5142 eagerState: null, 5143 next: null 5144 }; 5145 if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); 5146 else { 5147 var alternate = fiber.alternate; 5148 if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) { 5149 var prevDispatcher = ReactSharedInternals.H; 5150 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 5151 try { 5152 var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action); 5153 update.hasEagerState = !0; 5154 update.eagerState = eagerState; 5155 if (objectIs(eagerState, currentState)) return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), !1; 5156 } catch (error) {} finally { 5157 ReactSharedInternals.H = prevDispatcher; 5158 } 5159 } 5160 action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); 5161 if (null !== action) return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0; 5162 } 5163 return !1; 5164 } 5165 function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) { 5166 null === ReactSharedInternals.T && 0 === currentEntangledLane && console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."); 5167 action = { 5168 lane: 2, 5169 revertLane: requestTransitionLane(), 5170 gesture: null, 5171 action, 5172 hasEagerState: !1, 5173 eagerState: null, 5174 next: null 5175 }; 5176 if (isRenderPhaseUpdate(fiber)) { 5177 if (throwIfDuringRender) throw Error("Cannot update optimistic state while rendering."); 5178 console.error("Cannot call startTransition while rendering."); 5179 } else throwIfDuringRender = enqueueConcurrentHookUpdate(fiber, queue, action, 2), null !== throwIfDuringRender && (startUpdateTimerByLane(2, "setOptimistic()", fiber), scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2)); 5180 } 5181 function isRenderPhaseUpdate(fiber) { 5182 var alternate = fiber.alternate; 5183 return fiber === currentlyRenderingFiber || null !== alternate && alternate === currentlyRenderingFiber; 5184 } 5185 function enqueueRenderPhaseUpdate(queue, update) { 5186 didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; 5187 var pending = queue.pending; 5188 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 5189 queue.pending = update; 5190 } 5191 function entangleTransitionUpdate(root, queue, lane) { 5192 if (0 !== (lane & 4194048)) { 5193 var queueLanes = queue.lanes; 5194 queueLanes &= root.pendingLanes; 5195 lane |= queueLanes; 5196 queue.lanes = lane; 5197 markRootEntangled(root, lane); 5198 } 5199 }
vendor: 6,111 bytes, lines 5200-5301
5200 function warnOnInvalidCallback(callback) { 5201 if (null !== callback && "function" !== typeof callback) { 5202 var key = String(callback); 5203 didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", callback)); 5204 } 5205 } 5206 function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { 5207 var prevState = workInProgress.memoizedState, partialState = getDerivedStateFromProps(nextProps, prevState); 5208 if (workInProgress.mode & StrictLegacyMode) { 5209 setIsStrictModeForDevtools(!0); 5210 try { 5211 partialState = getDerivedStateFromProps(nextProps, prevState); 5212 } finally { 5213 setIsStrictModeForDevtools(!1); 5214 } 5215 } 5216 void 0 === partialState && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor))); 5217 prevState = null === partialState || void 0 === partialState ? prevState : assign({}, prevState, partialState); 5218 workInProgress.memoizedState = prevState; 5219 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = prevState); 5220 } 5221 function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { 5222 var instance = workInProgress.stateNode; 5223 if ("function" === typeof instance.shouldComponentUpdate) { 5224 oldProps = instance.shouldComponentUpdate(newProps, newState, nextContext); 5225 if (workInProgress.mode & StrictLegacyMode) { 5226 setIsStrictModeForDevtools(!0); 5227 try { 5228 oldProps = instance.shouldComponentUpdate(newProps, newState, nextContext); 5229 } finally { 5230 setIsStrictModeForDevtools(!1); 5231 } 5232 } 5233 void 0 === oldProps && console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); 5234 return oldProps; 5235 } 5236 return ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; 5237 } 5238 function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { 5239 var oldState = instance.state; 5240 "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); 5241 "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); 5242 instance.state !== oldState && (workInProgress = getComponentNameFromFiber(workInProgress) || "Component", didWarnAboutStateAssignmentForComponent.has(workInProgress) || (didWarnAboutStateAssignmentForComponent.add(workInProgress), console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", workInProgress)), classComponentUpdater.enqueueReplaceState(instance, instance.state, null)); 5243 } 5244 function resolveClassComponentProps(Component, baseProps) { 5245 var newProps = baseProps; 5246 if ("ref" in baseProps) { 5247 newProps = {}; 5248 for (var propName in baseProps) "ref" !== propName && (newProps[propName] = baseProps[propName]); 5249 } 5250 if (Component = Component.defaultProps) { 5251 newProps === baseProps && (newProps = assign({}, newProps)); 5252 for (var _propName in Component) void 0 === newProps[_propName] && (newProps[_propName] = Component[_propName]); 5253 } 5254 return newProps; 5255 } 5256 function defaultOnUncaughtError(error) { 5257 reportGlobalError(error); 5258 console.warn("%s\n\n%s\n", componentName ? "An error occurred in the <" + componentName + "> component." : "An error occurred in one of your React components.", "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries."); 5259 } 5260 function defaultOnCaughtError(error) { 5261 var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component." : "The above error occurred in one of your React components.", recreateMessage = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((errorBoundaryName || "Anonymous") + "."); 5262 if ("object" === typeof error && null !== error && "string" === typeof error.environmentName) { 5263 var JSCompiler_inline_result = error.environmentName; 5264 error = [ 5265 "%o\n\n%s\n\n%s\n", 5266 error, 5267 componentNameMessage, 5268 recreateMessage 5269 ].slice(0); 5270 "string" === typeof error[0] ? error.splice(0, 1, badgeFormat + " " + error[0], badgeStyle, pad + JSCompiler_inline_result + pad, resetStyle) : error.splice(0, 0, badgeFormat, badgeStyle, pad + JSCompiler_inline_result + pad, resetStyle); 5271 error.unshift(console); 5272 JSCompiler_inline_result = bind.apply(console.error, error); 5273 JSCompiler_inline_result(); 5274 } else console.error("%o\n\n%s\n\n%s\n", error, componentNameMessage, recreateMessage); 5275 } 5276 function defaultOnRecoverableError(error) { 5277 reportGlobalError(error); 5278 } 5279 function logUncaughtError(root, errorInfo) { 5280 try { 5281 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 5282 errorBoundaryName = null; 5283 var error = errorInfo.value; 5284 if (null !== ReactSharedInternals.actQueue) ReactSharedInternals.thrownErrors.push(error); 5285 else { 5286 var onUncaughtError = root.onUncaughtError; 5287 onUncaughtError(error, { componentStack: errorInfo.stack }); 5288 } 5289 } catch (e$5) { 5290 setTimeout(function() { 5291 throw e$5; 5292 }); 5293 } 5294 } 5295 function logCaughtError(root, boundary, errorInfo) { 5296 try { 5297 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 5298 errorBoundaryName = getComponentNameFromFiber(boundary); 5299 var onCaughtError = root.onCaughtError; 5300 onCaughtError(errorInfo.value, { 5301 componentStack: errorInfo.stack,
5302 errorBoundary: 1 === boundary.tag ? boundary.stateNode : null 5303 }); 5304 } catch (e$6) { 5305 setTimeout(function() { 5306 throw e$6; 5307 }); 5308 } 5309 } 5310 function createRootErrorUpdate(root, errorInfo, lane) { 5311 lane = createUpdate(lane); 5312 lane.tag = CaptureUpdate; 5313 lane.payload = { element: null }; 5314 lane.callback = function() { 5315 runWithFiberInDEV(errorInfo.source, logUncaughtError, root, errorInfo); 5316 }; 5317 return lane; 5318 } 5319 function createClassErrorUpdate(lane) { 5320 lane = createUpdate(lane); 5321 lane.tag = CaptureUpdate; 5322 return lane; 5323 } 5324 function initializeClassErrorUpdate(update, root, fiber, errorInfo) { 5325 var getDerivedStateFromError = fiber.type.getDerivedStateFromError; 5326 if ("function" === typeof getDerivedStateFromError) { 5327 var error = errorInfo.value; 5328 update.payload = function() { 5329 return getDerivedStateFromError(error); 5330 }; 5331 update.callback = function() { 5332 markFailedErrorBoundaryForHotReloading(fiber); 5333 runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo); 5334 }; 5335 } 5336 var inst = fiber.stateNode; 5337 null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() { 5338 markFailedErrorBoundaryForHotReloading(fiber); 5339 runWithFiberInDEV(errorInfo.source, logCaughtError, root, fiber, errorInfo); 5340 "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); 5341 callComponentDidCatchInDEV(this, errorInfo); 5342 "function" === typeof getDerivedStateFromError || 0 === (fiber.lanes & 2) && console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); 5343 }); 5344 } 5345 function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { 5346 sourceFiber.flags |= 32768; 5347 isDevToolsPresent && restorePendingUpdaters(root, rootRenderLanes); 5348 if (null !== value && "object" === typeof value && "function" === typeof value.then) { 5349 returnFiber = sourceFiber.alternate; 5350 null !== returnFiber && propagateParentContextChanges(returnFiber, sourceFiber, rootRenderLanes, !0); 5351 isHydrating && (didSuspendOrErrorDEV = !0); 5352 sourceFiber = suspenseHandlerStackCursor.current; 5353 if (null !== sourceFiber) { 5354 switch (sourceFiber.tag) { 5355 case 31: 5356 case 13: return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootSuspended), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = new Set([value]) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), !1; 5357 case 22: return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = { 5358 transitions: null, 5359 markerInstances: null, 5360 retryQueue: new Set([value]) 5361 }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = new Set([value]) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), !1; 5362 } 5363 throw Error("Unexpected Suspense handler tag (" + sourceFiber.tag + "). This is a bug in React."); 5364 } 5365 attachPingListener(root, value, rootRenderLanes); 5366 renderDidSuspendDelayIfPossible(); 5367 return !1; 5368 } 5369 if (isHydrating) return didSuspendOrErrorDEV = !0, returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to re
vendor: 13,517 bytes, lines 5369-5549
5369cover by instead client rendering from the nearest Suspense boundary.", { cause: value }), sourceFiber))) : (value !== HydrationMismatchException && queueHydrationError(createCapturedValueAtFiber(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.", { cause: value }), sourceFiber)), root = root.current.alternate, root.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(root.stateNode, value, rootRenderLanes), enqueueCapturedUpdate(root, rootRenderLanes), workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored)), !1; 5370 var error = createCapturedValueAtFiber(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.", { cause: value }), sourceFiber); 5371 null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [error] : workInProgressRootConcurrentErrors.push(error); 5372 workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored); 5373 if (null === returnFiber) return !0; 5374 value = createCapturedValueAtFiber(value, sourceFiber); 5375 sourceFiber = returnFiber; 5376 do { 5377 switch (sourceFiber.tag) { 5378 case 3: return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(sourceFiber.stateNode, value, root), enqueueCapturedUpdate(sourceFiber, root), !1; 5379 case 1: if (returnFiber = sourceFiber.type, error = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== error && "function" === typeof error.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(error)))) return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(rootRenderLanes, root, sourceFiber, value), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1; 5380 } 5381 sourceFiber = sourceFiber.return; 5382 } while (null !== sourceFiber); 5383 return !1; 5384 } 5385 function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { 5386 workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); 5387 } 5388 function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { 5389 Component = Component.render; 5390 var ref = workInProgress.ref; 5391 if ("ref" in nextProps) { 5392 var propsWithoutRef = {}; 5393 for (var key in nextProps) "ref" !== key && (propsWithoutRef[key] = nextProps[key]); 5394 } else propsWithoutRef = nextProps; 5395 prepareToReadContext(workInProgress); 5396 nextProps = renderWithHooks(current, workInProgress, Component, propsWithoutRef, ref, renderLanes); 5397 key = checkDidRenderIdHook(); 5398 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5399 isHydrating && key && pushMaterializedTreeId(workInProgress); 5400 workInProgress.flags |= 1; 5401 reconcileChildren(current, workInProgress, nextProps, renderLanes); 5402 return workInProgress.child; 5403 } 5404 function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 5405 if (null === current) { 5406 var type = Component.type; 5407 if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) return Component = resolveFunctionForHotReloading(type), workInProgress.tag = 15, workInProgress.type = Component, validateFunctionComponentInDev(workInProgress, type), updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes); 5408 current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); 5409 current.ref = workInProgress.ref; 5410 current.return = workInProgress; 5411 return workInProgress.child = current; 5412 } 5413 type = current.child; 5414 if (!checkScheduledUpdateOrContext(current, renderLanes)) { 5415 var prevProps = type.memoizedProps; 5416 Component = Component.compare; 5417 Component = null !== Component ? Component : shallowEqual; 5418 if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5419 } 5420 workInProgress.flags |= 1; 5421 current = createWorkInProgress(type, nextProps); 5422 current.ref = workInProgress.ref; 5423 current.return = workInProgress; 5424 return workInProgress.child = current; 5425 } 5426 function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 5427 if (null !== current) { 5428 var prevProps = current.memoizedProps; 5429 if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref && workInProgress.type === current.type) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0); 5430 else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5431 } 5432 return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); 5433 } 5434 function updateOffscreenComponent(current, workInProgress, renderLanes, nextProps) { 5435 var nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null; 5436 null === current && null === workInProgress.stateNode && (workInProgress.stateNode = { 5437 _visibility: OffscreenVisible, 5438 _pendingMarkers: null, 5439 _retryCache: null, 5440 _transitions: null 5441 }); 5442 if ("hidden" === nextProps.mode) { 5443 if (0 !== (workInProgress.flags & 128)) { 5444 prevState = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes; 5445 if (null !== current) { 5446 nextProps = workInProgress.child = current.child; 5447 for (nextChildren = 0; null !== nextProps;) nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling; 5448 nextProps = nextChildren & ~prevState; 5449 } else nextProps = 0, workInProgress.child = null; 5450 return deferHiddenOffscreenComponent(current, workInProgress, prevState, renderLanes, nextProps); 5451 } 5452 if (0 !== (renderLanes & 536870912)) workInProgress.memoizedState = { 5453 baseLanes: 0, 5454 cachePool: null 5455 }, null !== current && pushTransition(workInProgress, null !== prevState ? prevState.cachePool : null), null !== prevState ? pushHiddenContext(workInProgress, prevState) : reuseHiddenContextOnStack(workInProgress), pushOffscreenSuspenseHandler(workInProgress); 5456 else return nextProps = workInProgress.lanes = 536870912, deferHiddenOffscreenComponent(current, workInProgress, null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, renderLanes, nextProps); 5457 } else null !== prevState ? (pushTransition(workInProgress, prevState.cachePool), pushHiddenContext(workInProgress, prevState), reuseSuspenseHandlerOnStack(workInProgress), workInProgress.memoizedState = null) : (null !== current && pushTransition(workInProgress, null), reuseHiddenContextOnStack(workInProgress), reuseSuspenseHandlerOnStack(workInProgress)); 5458 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 5459 return workInProgress.child; 5460 } 5461 function bailoutOffscreenComponent(current, workInProgress) { 5462 null !== current && 22 === current.tag || null !== workInProgress.stateNode || (workInProgress.stateNode = { 5463 _visibility: OffscreenVisible, 5464 _pendingMarkers: null, 5465 _retryCache: null, 5466 _transitions: null 5467 }); 5468 return workInProgress.sibling; 5469 } 5470 function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes, renderLanes, remainingChildLanes) { 5471 var JSCompiler_inline_result = peekCacheFromPool(); 5472 JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { 5473 parent: CacheContext._currentValue, 5474 pool: JSCompiler_inline_result 5475 }; 5476 workInProgress.memoizedState = { 5477 baseLanes: nextBaseLanes, 5478 cachePool: JSCompiler_inline_result 5479 }; 5480 null !== current && pushTransition(workInProgress, null); 5481 reuseHiddenContextOnStack(workInProgress); 5482 pushOffscreenSuspenseHandler(workInProgress); 5483 null !== current && propagateParentContextChanges(current, workInProgress, renderLanes, !0); 5484 workInProgress.childLanes = remainingChildLanes; 5485 return null; 5486 } 5487 function mountActivityChildren(workInProgress, nextProps) { 5488 var hiddenProp = nextProps.hidden; 5489 void 0 !== hiddenProp && console.error("<Activity> doesn't accept a hidden prop. Use mode=\"hidden\" instead.\n- <Activity %s>\n+ <Activity %s>", !0 === hiddenProp ? "hidden" : !1 === hiddenProp ? "hidden={false}" : "hidden={...}", hiddenProp ? "mode=\"hidden\"" : "mode=\"visible\""); 5490 nextProps = mountWorkInProgressOffscreenFiber({ 5491 mode: nextProps.mode, 5492 children: nextProps.children 5493 }, workInProgress.mode); 5494 nextProps.ref = workInProgress.ref; 5495 workInProgress.child = nextProps; 5496 nextProps.return = workInProgress; 5497 return nextProps; 5498 } 5499 function retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes) { 5500 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 5501 current = mountActivityChildren(workInProgress, workInProgress.pendingProps); 5502 current.flags |= 2; 5503 popSuspenseHandler(workInProgress); 5504 workInProgress.memoizedState = null; 5505 return current; 5506 } 5507 function updateActivityComponent(current, workInProgress, renderLanes) { 5508 var nextProps = workInProgress.pendingProps, didSuspend = 0 !== (workInProgress.flags & 128); 5509 workInProgress.flags &= -129; 5510 if (null === current) { 5511 if (isHydrating) { 5512 if ("hidden" === nextProps.mode) return current = mountActivityChildren(workInProgress, nextProps), workInProgress.lanes = 536870912, bailoutOffscreenComponent(null, current); 5513 pushDehydratedActivitySuspenseHandler(workInProgress); 5514 (current = nextHydratableInstance) ? (renderLanes = canHydrateHydrationBoundary(current, rootOrSingletonContext), renderLanes = null !== renderLanes && renderLanes.data === ACTIVITY_START_DATA ? renderLanes : null, null !== renderLanes && (nextProps = { 5515 dehydrated: renderLanes, 5516 treeContext: getSuspendedTreeContext(), 5517 retryLane: 536870912, 5518 hydrationErrors: null 5519 }, workInProgress.memoizedState = nextProps, nextProps = createFiberFromDehydratedFragment(renderLanes), nextProps.return = workInProgress, workInProgress.child = nextProps, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : renderLanes = null; 5520 if (null === renderLanes) throw warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress); 5521 workInProgress.lanes = 536870912; 5522 return null; 5523 } 5524 return mountActivityChildren(workInProgress, nextProps); 5525 } 5526 var prevState = current.memoizedState; 5527 if (null !== prevState) { 5528 var activityInstance = prevState.dehydrated; 5529 pushDehydratedActivitySuspenseHandler(workInProgress); 5530 if (didSuspend) if (workInProgress.flags & 256) workInProgress.flags &= -257, workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 5531 else if (null !== workInProgress.memoizedState) workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null; 5532 else throw Error("Client rendering an Activity suspended it again. This is a bug in React."); 5533 else if (warnIfHydrating(), 0 !== (renderLanes & 536870912) && markRenderDerivedCause(workInProgress), didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), didSuspend = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || didSuspend) { 5534 nextProps = workInProgressRoot; 5535 if (null !== nextProps && (activityInstance = getBumpedLaneForHydration(nextProps, renderLanes), 0 !== activityInstance && activityInstance !== prevState.retryLane)) throw prevState.retryLane = activityInstance, enqueueConcurrentRenderForLane(current, activityInstance), scheduleUpdateOnFiber(nextProps, current, activityInstance), SelectiveHydrationException; 5536 renderDidSuspendDelayIfPossible(); 5537 workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 5538 } else current = prevState.treeContext, nextHydratableInstance = getNextHydratable(activityInstance.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountActivityChildren(workInProgress, nextProps), workInProgress.flags |= 4096; 5539 return workInProgress; 5540 } 5541 prevState = current.child; 5542 nextProps = { 5543 mode: nextProps.mode, 5544 children: nextProps.children 5545 }; 5546 0 !== (renderLanes & 536870912) && 0 !== (renderLanes & current.lanes) && markRenderDerivedCause(workInProgress); 5547 current = createWorkInProgress(prevState, nextProps); 5548 current.ref = workInProgress.ref; 5549 workInProgress.child = current;
vendor: 16,192 bytes, lines 5550-5683
5550 current.return = workInProgress; 5551 return current; 5552 } 5553 function markRef(current, workInProgress) { 5554 var ref = workInProgress.ref; 5555 if (null === ref) null !== current && null !== current.ref && (workInProgress.flags |= 4194816); 5556 else { 5557 if ("function" !== typeof ref && "object" !== typeof ref) throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null."); 5558 if (null === current || current.ref !== ref) workInProgress.flags |= 4194816; 5559 } 5560 } 5561 function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { 5562 if (Component.prototype && "function" === typeof Component.prototype.render) { 5563 var componentName = getComponentNameFromType(Component) || "Unknown"; 5564 didWarnAboutBadClass[componentName] || (console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName), didWarnAboutBadClass[componentName] = !0); 5565 } 5566 workInProgress.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null); 5567 null === current && (validateFunctionComponentInDev(workInProgress, workInProgress.type), Component.contextTypes && (componentName = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypes[componentName] || (didWarnAboutContextTypes[componentName] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", componentName)))); 5568 prepareToReadContext(workInProgress); 5569 Component = renderWithHooks(current, workInProgress, Component, nextProps, void 0, renderLanes); 5570 nextProps = checkDidRenderIdHook(); 5571 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5572 isHydrating && nextProps && pushMaterializedTreeId(workInProgress); 5573 workInProgress.flags |= 1; 5574 reconcileChildren(current, workInProgress, Component, renderLanes); 5575 return workInProgress.child; 5576 } 5577 function replayFunctionComponent(current, workInProgress, nextProps, Component, secondArg, renderLanes) { 5578 prepareToReadContext(workInProgress); 5579 hookTypesUpdateIndexDev = -1; 5580 ignorePreviousDependencies = null !== current && current.type !== workInProgress.type; 5581 workInProgress.updateQueue = null; 5582 nextProps = renderWithHooksAgain(workInProgress, Component, nextProps, secondArg); 5583 finishRenderingHooks(current, workInProgress); 5584 Component = checkDidRenderIdHook(); 5585 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 5586 isHydrating && Component && pushMaterializedTreeId(workInProgress); 5587 workInProgress.flags |= 1; 5588 reconcileChildren(current, workInProgress, nextProps, renderLanes); 5589 return workInProgress.child; 5590 } 5591 function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { 5592 switch (shouldErrorImpl(workInProgress)) { 5593 case !1: 5594 var _instance = workInProgress.stateNode, state = new workInProgress.type(workInProgress.memoizedProps, _instance.context).state; 5595 _instance.updater.enqueueSetState(_instance, state, null); 5596 break; 5597 case !0: 5598 workInProgress.flags |= 128; 5599 workInProgress.flags |= 65536; 5600 _instance = Error("Simulated error coming from DevTools"); 5601 var lane = renderLanes & -renderLanes; 5602 workInProgress.lanes |= lane; 5603 state = workInProgressRoot; 5604 if (null === state) throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); 5605 lane = createClassErrorUpdate(lane); 5606 initializeClassErrorUpdate(lane, state, workInProgress, createCapturedValueAtFiber(_instance, workInProgress)); 5607 enqueueCapturedUpdate(workInProgress, lane); 5608 } 5609 prepareToReadContext(workInProgress); 5610 if (null === workInProgress.stateNode) { 5611 state = emptyContextObject; 5612 _instance = Component.contextType; 5613 "contextType" in Component && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component) && (didWarnAboutInvalidateContextType.add(Component), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(Component) || "Component", lane)); 5614 "object" === typeof _instance && null !== _instance && (state = readContext(_instance)); 5615 _instance = new Component(nextProps, state); 5616 if (workInProgress.mode & StrictLegacyMode) { 5617 setIsStrictModeForDevtools(!0); 5618 try { 5619 _instance = new Component(nextProps, state); 5620 } finally { 5621 setIsStrictModeForDevtools(!1); 5622 } 5623 } 5624 state = workInProgress.memoizedState = null !== _instance.state && void 0 !== _instance.state ? _instance.state : null; 5625 _instance.updater = classComponentUpdater; 5626 workInProgress.stateNode = _instance; 5627 _instance._reactInternals = workInProgress; 5628 _instance._reactInternalInstance = fakeInternalInstance; 5629 "function" === typeof Component.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", state, null === _instance.state ? "null" : "undefined", state))); 5630 if ("function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) { 5631 var foundWillUpdateName = lane = state = null; 5632 "function" === typeof _instance.componentWillMount && !0 !== _instance.componentWillMount.__suppressDeprecationWarning ? state = "componentWillMount" : "function" === typeof _instance.UNSAFE_componentWillMount && (state = "UNSAFE_componentWillMount"); 5633 "function" === typeof _instance.componentWillReceiveProps && !0 !== _instance.componentWillReceiveProps.__suppressDeprecationWarning ? lane = "componentWillReceiveProps" : "function" === typeof _instance.UNSAFE_componentWillReceiveProps && (lane = "UNSAFE_componentWillReceiveProps"); 5634 "function" === typeof _instance.componentWillUpdate && !0 !== _instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" === typeof _instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"); 5635 if (null !== state || null !== lane || null !== foundWillUpdateName) { 5636 _instance = getComponentNameFromType(Component) || "Component"; 5637 var newApiName = "function" === typeof Component.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; 5638 didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", _instance, newApiName, null !== state ? "\n " + state : "", null !== lane ? "\n " + lane : "", null !== foundWillUpdateName ? "\n " + foundWillUpdateName : "")); 5639 } 5640 } 5641 _instance = workInProgress.stateNode; 5642 state = getComponentNameFromType(Component) || "Component"; 5643 _instance.render || (Component.prototype && "function" === typeof Component.prototype.render ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", state) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", state)); 5644 !_instance.getInitialState || _instance.getInitialState.isReactClassApproved || _instance.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", state); 5645 _instance.getDefaultProps && !_instance.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", state); 5646 _instance.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", state); 5647 Component.childContextTypes && !didWarnAboutChildContextTypes.has(Component) && (didWarnAboutChildContextTypes.add(Component), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", state)); 5648 Component.contextTypes && !didWarnAboutContextTypes$1.has(Component) && (didWarnAboutContextTypes$1.add(Component), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", state)); 5649 "function" === typeof _instance.componentShouldUpdate && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", state); 5650 Component.prototype && Component.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(Component) || "A pure component"); 5651 "function" === typeof _instance.componentDidUnmount && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", state); 5652 "function" === typeof _instance.componentDidReceiveProps && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", state); 5653 "function" === typeof _instance.componentWillRecieveProps && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", state); 5654 "function" === typeof _instance.UNSAFE_componentWillRecieveProps && console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", state); 5655 lane = _instance.props !== nextProps; 5656 void 0 !== _instance.props && lane && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", state); 5657 _instance.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", state, state); 5658 "function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(Component))); 5659 "function" === typeof _instance.getDerivedStateFromProps && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state); 5660 "function" === typeof _instance.getDerivedStateFromError && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state); 5661 "function" === typeof Component.getSnapshotBeforeUpdate && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", state); 5662 (lane = _instance.state) && ("object" !== typeof lane || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state); 5663 "function" === typeof _instance.getChildContext && "object" !== typeof Component.childContextTypes && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", state); 5664 _instance = workInProgress.stateNode; 5665 _instance.props = nextProps; 5666 _instance.state = workInProgress.memoizedState; 5667 _instance.refs = {}; 5668 initializeUpdateQueue(workInProgress); 5669 state = Component.contextType; 5670 _instance.context = "object" === typeof state && null !== state ? readContext(state) : emptyContextObject; 5671 _instance.state === nextProps && (state = getComponentNameFromType(Component) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", state))); 5672 workInProgress.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, _instance); 5673 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, _instance); 5674 _instance.state = workInProgress.memoizedState; 5675 state = Component.getDerivedStateFromProps; 5676 "function" === typeof state && (applyDerivedStateFromProps(workInProgress, Component, state, nextProps), _instance.state = workInProgress.memoizedState); 5677 "function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress) || "Component"), classComponentUpdater.enqueueReplaceState(_instance, _instance.state, null)), processUpdateQueue(workInProgress, nextProps, _instance, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress.memoizedState); 5678 "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); 5679 (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728); 5680 _instance = !0; 5681 } else if (null === current) { 5682 _instance = workInProgress.stateNode; 5683 var unresolvedOldProps = workInProgress.memoizedProps;
vendor: 6,869 bytes, lines 5684-5741
5684 lane = resolveClassComponentProps(Component, unresolvedOldProps); 5685 _instance.props = lane; 5686 var oldContext = _instance.context; 5687 foundWillUpdateName = Component.contextType; 5688 state = emptyContextObject; 5689 "object" === typeof foundWillUpdateName && null !== foundWillUpdateName && (state = readContext(foundWillUpdateName)); 5690 newApiName = Component.getDerivedStateFromProps; 5691 foundWillUpdateName = "function" === typeof newApiName || "function" === typeof _instance.getSnapshotBeforeUpdate; 5692 unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps; 5693 foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps(workInProgress, _instance, nextProps, state); 5694 hasForceUpdate = !1; 5695 var oldState = workInProgress.memoizedState; 5696 _instance.state = oldState; 5697 processUpdateQueue(workInProgress, nextProps, _instance, renderLanes); 5698 suspendIfUpdateReadFromEntangledAsyncAction(); 5699 oldContext = workInProgress.memoizedState; 5700 unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps(workInProgress, Component, newApiName, nextProps), oldContext = workInProgress.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, lane, nextProps, oldState, oldContext, state)) ? (foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || ("function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount()), "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && (workInProgress.flags |= 134217728), _instance = !1); 5701 } else { 5702 _instance = workInProgress.stateNode; 5703 cloneUpdateQueue(current, workInProgress); 5704 state = workInProgress.memoizedProps; 5705 foundWillUpdateName = resolveClassComponentProps(Component, state); 5706 _instance.props = foundWillUpdateName; 5707 newApiName = workInProgress.pendingProps; 5708 oldState = _instance.context; 5709 oldContext = Component.contextType; 5710 lane = emptyContextObject; 5711 "object" === typeof oldContext && null !== oldContext && (lane = readContext(oldContext)); 5712 unresolvedOldProps = Component.getDerivedStateFromProps; 5713 (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof _instance.getSnapshotBeforeUpdate) || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps(workInProgress, _instance, nextProps, lane); 5714 hasForceUpdate = !1; 5715 oldState = workInProgress.memoizedState; 5716 _instance.state = oldState; 5717 processUpdateQueue(workInProgress, nextProps, _instance, renderLanes); 5718 suspendIfUpdateReadFromEntangledAsyncAction(); 5719 var newState = workInProgress.memoizedState; 5720 state !== newApiName || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress, Component, unresolvedOldProps, nextProps), newState = workInProgress.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, foundWillUpdateName, nextProps, oldState, newState, lane) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof _instance.UNSAFE_componentWillUpdate && "function" !== typeof _instance.componentWillUpdate || ("function" === typeof _instance.componentWillUpdate && _instance.componentWillUpdate(nextProps, newState, lane), "function" === typeof _instance.UNSAFE_componentWillUpdate && _instance.UNSAFE_componentWillUpdate(nextProps, newState, lane)), "function" === typeof _instance.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof _instance.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof _instance.componentDidUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : ("function" !== typeof _instance.componentDidUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), _instance = !1); 5721 } 5722 lane = _instance; 5723 markRef(current, workInProgress); 5724 state = 0 !== (workInProgress.flags & 128); 5725 if (lane || state) { 5726 lane = workInProgress.stateNode; 5727 setCurrentFiber(workInProgress); 5728 if (state && "function" !== typeof Component.getDerivedStateFromError) Component = null, profilerStartTime = -1; 5729 else if (Component = callRenderInDEV(lane), workInProgress.mode & StrictLegacyMode) { 5730 setIsStrictModeForDevtools(!0); 5731 try { 5732 callRenderInDEV(lane); 5733 } finally { 5734 setIsStrictModeForDevtools(!1); 5735 } 5736 } 5737 workInProgress.flags |= 1; 5738 null !== current && state ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes)) : reconcileChildren(current, workInProgress, Component, renderLanes); 5739 workInProgress.memoizedState = lane.state; 5740 current = workInProgress.child; 5741 } else current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
5742 renderLanes = workInProgress.stateNode; 5743 _instance && renderLanes.props !== nextProps && (didWarnAboutReassigningProps || console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress) || "a component"), didWarnAboutReassigningProps = !0); 5744 return current; 5745 } 5746 function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes) { 5747 resetHydrationState(); 5748 workInProgress.flags |= 256; 5749 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 5750 return workInProgress.child; 5751 } 5752 function validateFunctionComponentInDev(workInProgress, Component) { 5753 Component && Component.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", Component.displayName || Component.name || "Component"); 5754 "function" === typeof Component.getDerivedStateFromProps && (workInProgress = getComponentNameFromType(Component) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress] || (console.error("%s: Function components do not support getDerivedStateFromProps.", workInProgress), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress] = !0)); 5755 "object" === typeof Component.contextType && null !== Component.contextType && (Component = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component] || (console.error("%s: Function components do not support contextType.", Component), didWarnAboutContextTypeOnFunctionComponent[Component] = !0)); 5756 } 5757 function mountSuspenseOffscreenState(renderLanes) { 5758 return { 5759 baseLanes: renderLanes, 5760 cachePool: getSuspendedCache() 5761 }; 5762 } 5763 function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes) { 5764 current = null !== current ? current.childLanes & ~renderLanes : 0; 5765 primaryTreeDidDefer && (current |= workInProgressDeferredLane); 5766 return current; 5767 } 5768 function updateSuspenseComponent(current, workInProgress, renderLanes) { 5769 var JSCompiler_object_inline_digest_2724; 5770 var JSCompiler_object_inline_stack_2725 = workInProgress.pendingProps; 5771 shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); 5772 var JSCompiler_object_inline_message_2723 = !1; 5773 var didSuspend = 0 !== (workInProgress.flags & 128); 5774 (JSCompiler_object_inline_digest_2724 = didSuspend) || (JSCompiler_object_inline_digest_2724 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); 5775 JSCompiler_object_inline_digest_2724 && (JSCompiler_object_inline_message_2723 = !0, workInProgress.flags &= -129); 5776 JSCompiler_object_inline_digest_2724 = 0 !== (workInProgress.flags & 32); 5777 workInProgress.flags &= -33; 5778 if (null === current) { 5779 if (isHydrating) { 5780 JSCompiler_object_inline_message_2723 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); 5781 (current = nextHydratableInstance) ? (renderLanes = canHydrateHydrationBoundary(current, rootOrSingletonContext), renderLanes = null !== renderLanes && renderLanes.data !== ACTIVITY_START_DATA ? renderLanes : null, null !== renderLanes && (JSCompiler_object_inline_digest_2724 = { 5782 dehydrated: renderLanes, 5783 treeContext: getSuspendedTreeContext(), 5784 retryLane: 536870912, 5785 hydrationErrors: null 5786 }, workInProgress.memoizedState = JSCompiler_object_inline_digest_2724, JSCompiler_object_inline_digest_2724 = createFiberFromDehydratedFragment(renderLanes), JSCompiler_object_inline_digest_2724.return = workInProgress, workInProgress.child = JSCompiler_object_inline_digest_2724, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : renderLanes = null; 5787 if (null === renderLanes) throw warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress); 5788 isSuspenseInstanceFallback(renderLanes) ? workInProgress.lanes = 32 : workInProgress.lanes = 536870912; 5789 return null; 5790 } 5791 var nextPrimaryChildren = JSCompiler_object_inline_stack_2725.
5791children; 5792 JSCompiler_object_inline_stack_2725 = JSCompiler_object_inline_stack_2725.fallback; 5793 if (JSCompiler_object_inline_message_2723) { 5794 reuseSuspenseHandlerOnStack(workInProgress); 5795 var mode = workInProgress.mode; 5796 nextPrimaryChildren = mountWorkInProgressOffscreenFiber({ 5797 mode: "hidden", 5798 children: nextPrimaryChildren 5799 }, mode); 5800 JSCompiler_object_inline_stack_2725 = createFiberFromFragment(JSCompiler_object_inline_stack_2725, mode, renderLanes, null); 5801 nextPrimaryChildren.return = workInProgress; 5802 JSCompiler_object_inline_stack_2725.return = workInProgress; 5803 nextPrimaryChildren.sibling = JSCompiler_object_inline_stack_2725; 5804 workInProgress.child = nextPrimaryChildren; 5805 JSCompiler_object_inline_stack_2725 = workInProgress.child; 5806 JSCompiler_object_inline_stack_2725.memoizedState = mountSuspenseOffscreenState(renderLanes); 5807 JSCompiler_object_inline_stack_2725.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2724, renderLanes); 5808 workInProgress.memoizedState = SUSPENDED_MARKER; 5809 return bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2725); 5810 } 5811 pushPrimaryTreeSuspenseHandler(workInProgress); 5812 return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); 5813 } 5814 var prevState = current.memoizedState; 5815 if (null !== prevState) { 5816 var JSCompiler_object_inline_componentStack_2726 = prevState.dehydrated; 5817 if (null !== JSCompiler_object_inline_componentStack_2726) { 5818 if (didSuspend) workInProgress.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags &= -257, workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes)) : null !== workInProgress.memoizedState ? (reuseSuspenseHandlerOnStack(workInProgress), workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null) : (reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = JSCompiler_object_inline_stack_2725.fallback, mode = workInProgress.mode, JSCompiler_object_inline_stack_2725 = mountWorkInProgressOffscreenFiber({ 5819 mode: "visible", 5820 children: JSCompiler_object_inline_stack_2725.children 5821 }, mode), nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, mode, renderLanes, null), nextPrimaryChildren.flags |= 2, JSCompiler_object_inline_stack_2725.return = workInProgress, nextPrimaryChildren.return = workInProgress, JSCompiler_object_inline_stack_2725.sibling = nextPrimaryChildren, workInProgress.child = JSCompiler_object_inline_stack_2725, reconcileChildFibers(workInProgress, current.child, null, renderLanes), JSCompiler_object_inline_stack_2725 = workInProgress.child, JSCompiler_object_inline_stack_2725.memoizedState = mountSuspenseOffscreenState(renderLanes), JSCompiler_object_inline_stack_2725.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2724, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, workInProgress = bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2725)); 5822 else if (pushPrimaryTreeSuspenseHandler(workInProgress), warnIfHydrating(), 0 !== (renderLanes & 536870912) && markRenderDerivedCause(workInProgress), isSuspenseInstanceFallback(JSCompiler_object_inline_componentStack_2726)) { 5823 JSCompiler_object_inline_digest_2724 = JSCompiler_object_inline_componentStack_2726.nextSibling && JSCompiler_object_inline_componentStack_2726.nextSibling.dataset; 5824 if (JSCompiler_object_inline_digest_2724) { 5825 nextPrimaryChildren = JSCompiler_object_inline_digest_2724.dgst; 5826 var message = JSCompiler_object_inline_digest_2724.msg; 5827 mode = JSCompiler_object_inline_digest_2724.stck; 5828 var componentStack = JSCompiler_object_inline_digest_2724.cstck; 5829 } 5830 JSCompiler_object_inline_message_2723 = message; 5831 JSCompiler_object_inline_digest_2724 = nextPrimaryChildren; 5832 JSCompiler_object_inline_stack_2725 = mode; 5833 JSCompiler_object_inline_componentStack_2726 = componentStack; 5834 nextPrimaryChildren = JSCompiler_object_inline_message_2723; 5835 mode = JSCompiler_object_inline_componentStack_2726; 5836 nextPrimaryChildren = nextPrimaryChildren ? Error(nextPrimaryChildren) : Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."); 5837 nextPrimaryChildren.stack = JSCompiler_object_inline_stack_2725 || ""; 5838 nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2724; 5839 JSCompiler_object_inline_digest_2724 = void 0 === mode ? null : mode; 5840 JSCompiler_object_inline_stack_2725 = { 5841 value: nextPrimaryChildren, 5842 source: null, 5843 stack: JSCompiler_object_inline_digest_2724 5844 }; 5845 "string" === typeof JSCompiler_object_inline_digest_2724 && CapturedStacks.set(nextPrimaryChildren, JSCompiler_object_inline_stack_2725); 5846 queueHydrationError(JSCompiler_object_inline_stack_2725); 5847 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 5848 } else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), JSCompiler_object_inline_digest_2724 = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || JSCompiler_object_inline_digest_2724) { 5849 JSCompiler_object_inline_digest_2724 = workInProgressRoot; 5850 if (null !== JSCompiler_object_inline_digest_2724 && (JSCompiler_object_inline_stack_2725 = getBumpedLaneForHydration(JSCompiler_object_inline_digest_2724, renderLanes), 0 !== JSCompiler_object_inline_stack_2725 && JSCompiler_object_inline_stack_2725 !== prevState.retryLane)) throw prevState.retryLane = JSCompiler_object_inline_stack_2725, enqueueConcurrentRenderForLane(current, JSCompiler_object_inline_stack_2725), scheduleUpdateOnFiber(JSCompiler_object_inline_digest_2724, current, JSCompiler_object_inline_stack_2725), SelectiveHydrationException; 5851 isSuspenseInstancePending(JSCompiler_object_inline_componentStack_2726) || renderDidSuspendDelayIfPossible(); 5852 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 5853 } else isSuspenseInstancePending(JSCompiler_object_inline_componentStack_2726) ? (workInProgress.flags |= 192, workInProgress.child = current.child, workInProgress = null) : (current = prevState.treeContext, nextHydratableInstance = getNextHydratable(JSCompiler_object_inline_componentStack_2726.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountSuspensePrimaryChildren(workInProgress, JSCompiler_object_inline_stack_2725.
vendor: 4,275 bytes, lines 5853-5909
5853children), workInProgress.flags |= 4096); 5854 return workInProgress; 5855 } 5856 } 5857 if (JSCompiler_object_inline_message_2723) return reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = JSCompiler_object_inline_stack_2725.fallback, mode = workInProgress.mode, componentStack = current.child, JSCompiler_object_inline_componentStack_2726 = componentStack.sibling, JSCompiler_object_inline_stack_2725 = createWorkInProgress(componentStack, { 5858 mode: "hidden", 5859 children: JSCompiler_object_inline_stack_2725.children 5860 }), JSCompiler_object_inline_stack_2725.subtreeFlags = componentStack.subtreeFlags & 65011712, null !== JSCompiler_object_inline_componentStack_2726 ? nextPrimaryChildren = createWorkInProgress(JSCompiler_object_inline_componentStack_2726, nextPrimaryChildren) : (nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, mode, renderLanes, null), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress, JSCompiler_object_inline_stack_2725.return = workInProgress, JSCompiler_object_inline_stack_2725.sibling = nextPrimaryChildren, workInProgress.child = JSCompiler_object_inline_stack_2725, bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2725), JSCompiler_object_inline_stack_2725 = workInProgress.child, nextPrimaryChildren = current.child.memoizedState, null === nextPrimaryChildren ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes) : (mode = nextPrimaryChildren.cachePool, null !== mode ? (componentStack = CacheContext._currentValue, mode = mode.parent !== componentStack ? { 5861 parent: componentStack, 5862 pool: componentStack 5863 } : mode) : mode = getSuspendedCache(), nextPrimaryChildren = { 5864 baseLanes: nextPrimaryChildren.baseLanes | renderLanes, 5865 cachePool: mode 5866 }), JSCompiler_object_inline_stack_2725.memoizedState = nextPrimaryChildren, JSCompiler_object_inline_stack_2725.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_object_inline_digest_2724, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, JSCompiler_object_inline_stack_2725); 5867 null !== prevState && (renderLanes & 62914560) === renderLanes && 0 !== (renderLanes & current.lanes) && markRenderDerivedCause(workInProgress); 5868 pushPrimaryTreeSuspenseHandler(workInProgress); 5869 renderLanes = current.child; 5870 current = renderLanes.sibling; 5871 renderLanes = createWorkInProgress(renderLanes, { 5872 mode: "visible", 5873 children: JSCompiler_object_inline_stack_2725.children 5874 }); 5875 renderLanes.return = workInProgress; 5876 renderLanes.sibling = null; 5877 null !== current && (JSCompiler_object_inline_digest_2724 = workInProgress.deletions, null === JSCompiler_object_inline_digest_2724 ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : JSCompiler_object_inline_digest_2724.push(current)); 5878 workInProgress.child = renderLanes; 5879 workInProgress.memoizedState = null; 5880 return renderLanes; 5881 } 5882 function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { 5883 primaryChildren = mountWorkInProgressOffscreenFiber({ 5884 mode: "visible", 5885 children: primaryChildren 5886 }, workInProgress.mode); 5887 primaryChildren.return = workInProgress; 5888 return workInProgress.child = primaryChildren; 5889 } 5890 function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { 5891 offscreenProps = createFiber(22, offscreenProps, null, mode); 5892 offscreenProps.lanes = 0; 5893 return offscreenProps; 5894 } 5895 function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes) { 5896 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 5897 current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); 5898 current.flags |= 2; 5899 workInProgress.memoizedState = null; 5900 return current; 5901 } 5902 function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { 5903 fiber.lanes |= renderLanes; 5904 var alternate = fiber.alternate; 5905 null !== alternate && (alternate.lanes |= renderLanes); 5906 scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); 5907 } 5908 function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, treeForkCount) { 5909 var renderState = workInProgress.memoizedState;
vendor: 5,804 bytes, lines 5910-5972
5910 null === renderState ? workInProgress.memoizedState = { 5911 isBackwards, 5912 rendering: null, 5913 renderingStartTime: 0, 5914 last: lastContentRow, 5915 tail, 5916 tailMode, 5917 treeForkCount 5918 } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount); 5919 } 5920 function updateSuspenseListComponent(current, workInProgress, renderLanes) { 5921 var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail, newChildren = nextProps.children, suspenseContext = suspenseStackCursor.current; 5922 (nextProps = 0 !== (suspenseContext & ForceSuspenseFallback)) ? (suspenseContext = suspenseContext & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress.flags |= 128) : suspenseContext &= SubtreeSuspenseContextMask; 5923 push(suspenseStackCursor, suspenseContext, workInProgress); 5924 suspenseContext = null == revealOrder ? "null" : revealOrder; 5925 if ("forwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder && "together" !== revealOrder && "independent" !== revealOrder && !didWarnAboutRevealOrder[suspenseContext]) if (didWarnAboutRevealOrder[suspenseContext] = !0, null == revealOrder) console.error("The default for the <SuspenseList revealOrder=\"...\"> prop is changing. To be future compatible you must explictly specify either \"independent\" (the current default), \"together\", \"forwards\" or \"legacy_unstable-backwards\"."); 5926 else if ("backwards" === revealOrder) console.error("The rendering order of <SuspenseList revealOrder=\"backwards\"> is changing. To be future compatible you must specify revealOrder=\"legacy_unstable-backwards\" instead."); 5927 else if ("string" === typeof revealOrder) switch (revealOrder.toLowerCase()) { 5928 case "together": 5929 case "forwards": 5930 case "backwards": 5931 case "independent": 5932 console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. Use lowercase \"%s\" instead.", revealOrder, revealOrder.toLowerCase()); 5933 break; 5934 case "forward": 5935 case "backward": 5936 console.error("\"%s\" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use \"%ss\" instead.", revealOrder, revealOrder.toLowerCase()); 5937 break; 5938 default: console.error("\"%s\" is not a supported revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", revealOrder); 5939 } 5940 else console.error("%s is not a supported value for revealOrder on <SuspenseList />. Did you mean \"independent\", \"together\", \"forwards\" or \"backwards\"?", revealOrder); 5941 suspenseContext = null == tailMode ? "null" : tailMode; 5942 if (!didWarnAboutTailOptions[suspenseContext]) if (null == tailMode) { 5943 if ("forwards" === revealOrder || "backwards" === revealOrder || "unstable_legacy-backwards" === revealOrder) didWarnAboutTailOptions[suspenseContext] = !0, console.error("The default for the <SuspenseList tail=\"...\"> prop is changing. To be future compatible you must explictly specify either \"visible\" (the current default), \"collapsed\" or \"hidden\"."); 5944 } else "visible" !== tailMode && "collapsed" !== tailMode && "hidden" !== tailMode ? (didWarnAboutTailOptions[suspenseContext] = !0, console.error("\"%s\" is not a supported value for tail on <SuspenseList />. Did you mean \"visible\", \"collapsed\" or \"hidden\"?", tailMode)) : "forwards" !== revealOrder && "backwards" !== revealOrder && "unstable_legacy-backwards" !== revealOrder && (didWarnAboutTailOptions[suspenseContext] = !0, console.error("<SuspenseList tail=\"%s\" /> is only valid if revealOrder is \"forwards\" or \"backwards\". Did you mean to specify revealOrder=\"forwards\"?", tailMode)); 5945 a: if (("forwards" === revealOrder || "backwards" === revealOrder || "unstable_legacy-backwards" === revealOrder) && void 0 !== newChildren && null !== newChildren && !1 !== newChildren) if (isArrayImpl(newChildren)) { 5946 for (suspenseContext = 0; suspenseContext < newChildren.length; suspenseContext++) if (!validateSuspenseListNestedChild(newChildren[suspenseContext], suspenseContext)) break a; 5947 } else if (suspenseContext = getIteratorFn(newChildren), "function" === typeof suspenseContext) { 5948 if (suspenseContext = suspenseContext.call(newChildren)) for (var step = suspenseContext.next(), _i = 0; !step.done; step = suspenseContext.next()) { 5949 if (!validateSuspenseListNestedChild(step.value, _i)) break a; 5950 _i++; 5951 } 5952 } else console.error("A single row was passed to a <SuspenseList revealOrder=\"%s\" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?", revealOrder); 5953 reconcileChildren(current, workInProgress, newChildren, renderLanes); 5954 isHydrating ? (warnIfNotHydrating(), newChildren = treeForkCount) : newChildren = 0; 5955 if (!nextProps && null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { 5956 if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 5957 else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 5958 else if (null !== current.child) { 5959 current.child.return = current; 5960 current = current.child; 5961 continue; 5962 } 5963 if (current === workInProgress) break a; 5964 for (; null === current.sibling;) { 5965 if (null === current.return || current.return === workInProgress) break a; 5966 current = current.return; 5967 } 5968 current.sibling.return = current.return; 5969 current = current.sibling; 5970 } 5971 switch (revealOrder) { 5972 case "forwards":
vendor: 5,319 bytes, lines 5973-6076
5973 renderLanes = workInProgress.child; 5974 for (revealOrder = null; null !== renderLanes;) current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; 5975 renderLanes = revealOrder; 5976 null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); 5977 initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode, newChildren); 5978 break; 5979 case "backwards": 5980 case "unstable_legacy-backwards": 5981 renderLanes = null; 5982 revealOrder = workInProgress.child; 5983 for (workInProgress.child = null; null !== revealOrder;) { 5984 current = revealOrder.alternate; 5985 if (null !== current && null === findFirstSuspended(current)) { 5986 workInProgress.child = revealOrder; 5987 break; 5988 } 5989 current = revealOrder.sibling; 5990 revealOrder.sibling = renderLanes; 5991 renderLanes = revealOrder; 5992 revealOrder = current; 5993 } 5994 initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode, newChildren); 5995 break; 5996 case "together": 5997 initSuspenseListRenderState(workInProgress, !1, null, null, void 0, newChildren); 5998 break; 5999 default: workInProgress.memoizedState = null; 6000 } 6001 return workInProgress.child; 6002 } 6003 function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { 6004 null !== current && (workInProgress.dependencies = current.dependencies); 6005 profilerStartTime = -1; 6006 workInProgressRootSkippedLanes |= workInProgress.lanes; 6007 if (0 === (renderLanes & workInProgress.childLanes)) if (null !== current) { 6008 if (propagateParentContextChanges(current, workInProgress, renderLanes, !1), 0 === (renderLanes & workInProgress.childLanes)) return null; 6009 } else return null; 6010 if (null !== current && workInProgress.child !== current.child) throw Error("Resuming work not yet implemented."); 6011 if (null !== workInProgress.child) { 6012 current = workInProgress.child; 6013 renderLanes = createWorkInProgress(current, current.pendingProps); 6014 workInProgress.child = renderLanes; 6015 for (renderLanes.return = workInProgress; null !== current.sibling;) current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; 6016 renderLanes.sibling = null; 6017 } 6018 return workInProgress.child; 6019 } 6020 function checkScheduledUpdateOrContext(current, renderLanes) { 6021 if (0 !== (current.lanes & renderLanes)) return !0; 6022 current = current.dependencies; 6023 return null !== current && checkIfContextChanged(current) ? !0 : !1; 6024 } 6025 function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { 6026 switch (workInProgress.tag) { 6027 case 3: 6028 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 6029 pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 6030 resetHydrationState(); 6031 break; 6032 case 27: 6033 case 5: 6034 pushHostContext(workInProgress); 6035 break; 6036 case 4: 6037 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 6038 break; 6039 case 10: 6040 pushProvider(workInProgress, workInProgress.type, workInProgress.memoizedProps.value); 6041 break; 6042 case 12: 6043 0 !== (renderLanes & workInProgress.childLanes) && (workInProgress.flags |= 4); 6044 workInProgress.flags |= 2048; 6045 var stateNode = workInProgress.stateNode; 6046 stateNode.effectDuration = -0; 6047 stateNode.passiveEffectDuration = -0; 6048 break; 6049 case 31: 6050 if (null !== workInProgress.memoizedState) return workInProgress.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress), null; 6051 break; 6052 case 13: 6053 stateNode = workInProgress.memoizedState; 6054 if (null !== stateNode) { 6055 if (null !== stateNode.dehydrated) return pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags |= 128, null; 6056 if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); 6057 pushPrimaryTreeSuspenseHandler(workInProgress); 6058 current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6059 return null !== current ? current.sibling : null; 6060 } 6061 pushPrimaryTreeSuspenseHandler(workInProgress); 6062 break; 6063 case 19: 6064 var didSuspendBefore = 0 !== (current.flags & 128); 6065 stateNode = 0 !== (renderLanes & workInProgress.childLanes); 6066 stateNode || (propagateParentContextChanges(current, workInProgress, renderLanes, !1), stateNode = 0 !== (renderLanes & workInProgress.childLanes)); 6067 if (didSuspendBefore) { 6068 if (stateNode) return updateSuspenseListComponent(current, workInProgress, renderLanes); 6069 workInProgress.flags |= 128; 6070 } 6071 didSuspendBefore = workInProgress.memoizedState; 6072 null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null); 6073 push(suspenseStackCursor, suspenseStackCursor.current, workInProgress); 6074 if (stateNode) break; 6075 else return null; 6076 case 22: return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps);
6077 case 24: pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 6078 } 6079 return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6080 } 6081 function beginWork(current, workInProgress, renderLanes) { 6082 if (workInProgress._debugNeedsRemount && null !== current) { 6083 renderLanes = createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.lanes); 6084 renderLanes._debugStack = workInProgress._debugStack; 6085 renderLanes._debugTask = workInProgress._debugTask; 6086 var returnFiber = workInProgress.return; 6087 if (null === returnFiber) throw Error("Cannot swap the root fiber."); 6088 current.alternate = null; 6089 workInProgress.alternate = null; 6090 renderLanes.index = workInProgress.index; 6091 renderLanes.sibling = workInProgress.sibling; 6092 renderLanes.return = workInProgress.return; 6093 renderLanes.ref = workInProgress.ref; 6094 renderLanes._debugInfo = workInProgress._debugInfo; 6095 if (workInProgress === returnFiber.child) returnFiber.child = renderLanes; 6096 else { 6097 var prevSibling = returnFiber.child; 6098 if (null === prevSibling) throw Error("Expected parent to have a child."); 6099 for (; prevSibling.sibling !== workInProgress;) if (prevSibling = prevSibling.sibling, null === prevSibling) throw Error("Expected to find the previous sibling."); 6100 prevSibling.sibling = renderLanes; 6101 } 6102 workInProgress = returnFiber.deletions; 6103 null === workInProgress ? (returnFiber.deletions = [current], returnFiber.flags |= 16) : workInProgress.push(current); 6104 renderLanes.flags |= 2; 6105 return renderLanes; 6106 } 6107 if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps || workInProgress.type !== current.type) didReceiveUpdate = !0; 6108 else { 6109 if (!checkScheduledUpdateOrContext(current, renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); 6110 didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; 6111 } 6112 else { 6113 didReceiveUpdate = !1; 6114 if (returnFiber = isHydrating) warnIfNotHydrating(), returnFiber = 0 !== (workInProgress.flags & 1048576); 6115 returnFiber && (returnFiber = workInProgress.index, warnIfNotHydrating(), pushTreeId(workInProgress, treeForkCount, returnFiber)); 6116 } 6117 workInProgress.lanes = 0; 6118 switch (workInProgress.tag) { 6119 case 16: 6120 a: if (returnFiber = workInProgress.pendingProps, current = resolveLazy(workInProgress.elementType), workInProgress.type = current, "function" === typeof current) shouldConstruct(current) ? (returnFiber = resolveClassComponentProps(current, returnFiber), workInProgress.tag = 1, workInProgress.type = current = resolveFunctionForHotReloading(current), workInProgress = updateClassComponent(null, workInProgress, current, returnFiber, renderLanes)) : (workInProgress.tag = 0, validateFunctionComponentInDev(workInProgress, current), workInProgress.type = current = resolveFunctionForHotReloading(current), workInProgress = updateFunctionComponent(null, workInProgress, current, returnFiber, renderLanes)); 6121 else { 6122 if (void 0 !== current && null !== current) { 6123 if (prevSibling = current.$$typeof, prevSibling === REACT_FORWARD_REF_TYPE) { 6124 workInProgress.tag = 11; 6125 workInProgress.type = current = resolveForwardRefForHotReloading(current); 6126 workInProgress = updateForwardRef(null, workInProgress, current, returnFiber, renderLanes); 6127 break a; 6128 } else if (prevSibling === REACT_MEMO_TYPE) { 6129 workInProgress.tag = 14; 6130 workInProgress = updateMemoComponent(null, workInProgress, current, returnFiber, renderLanes); 6131 break a; 6132 } 6133 } 6134 workInProgress = ""; 6135 null !== current && "object" === typeof current && current.$$typeof === REACT_LAZY_TYPE && (workInProgress = " Did you wrap a component in React.lazy() more than once?"); 6136 renderLanes = getComponentNameFromType(current) || current;
6137 throw Error("Element type is invalid. Received a promise that resolves to: " + renderLanes + ". Lazy element type must resolve to a class or function." + workInProgress); 6138 } 6139 return workInProgress; 6140 case 0: return updateFunctionComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6141 case 1: return returnFiber = workInProgress.type, prevSibling = resolveClassComponentProps(returnFiber, workInProgress.pendingProps), updateClassComponent(current, workInProgress, returnFiber, prevSibling, renderLanes); 6142 case 3: 6143 a: { 6144 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 6145 if (null === current) throw Error("Should have a current fiber. This is a bug in React."); 6146 returnFiber = workInProgress.pendingProps; 6147 var prevState = workInProgress.memoizedState; 6148 prevSibling = prevState.element; 6149 cloneUpdateQueue(current, workInProgress); 6150 processUpdateQueue(workInProgress, returnFiber, null, renderLanes); 6151 var nextState = workInProgress.memoizedState; 6152 returnFiber = nextState.cache; 6153 pushProvider(workInProgress, CacheContext, returnFiber); 6154 returnFiber !== prevState.cache && propagateContextChanges(wor
vendor: 5,739 bytes, lines 6154-6201
6154kInProgress, [CacheContext], renderLanes, !0); 6155 suspendIfUpdateReadFromEntangledAsyncAction(); 6156 returnFiber = nextState.element; 6157 if (prevState.isDehydrated) if (prevState = { 6158 element: returnFiber, 6159 isDehydrated: !1, 6160 cache: nextState.cache 6161 }, workInProgress.updateQueue.baseState = prevState, workInProgress.memoizedState = prevState, workInProgress.flags & 256) { 6162 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, returnFiber, renderLanes); 6163 break a; 6164 } else if (returnFiber !== prevSibling) { 6165 prevSibling = createCapturedValueAtFiber(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), workInProgress); 6166 queueHydrationError(prevSibling); 6167 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, returnFiber, renderLanes); 6168 break a; 6169 } else { 6170 current = workInProgress.stateNode.containerInfo; 6171 switch (current.nodeType) { 6172 case 9: 6173 current = current.body; 6174 break; 6175 default: current = "HTML" === current.nodeName ? current.ownerDocument.body : current; 6176 } 6177 nextHydratableInstance = getNextHydratable(current.firstChild); 6178 hydrationParentFiber = workInProgress; 6179 isHydrating = !0; 6180 hydrationErrors = null; 6181 didSuspendOrErrorDEV = !1; 6182 hydrationDiffRootDEV = null; 6183 rootOrSingletonContext = !0; 6184 renderLanes = mountChildFibers(workInProgress, null, returnFiber, renderLanes); 6185 for (workInProgress.child = renderLanes; renderLanes;) renderLanes.flags = renderLanes.flags & -3 | 4096, renderLanes = renderLanes.sibling; 6186 } 6187 else { 6188 resetHydrationState(); 6189 if (returnFiber === prevSibling) { 6190 workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 6191 break a; 6192 } 6193 reconcileChildren(current, workInProgress, returnFiber, renderLanes); 6194 } 6195 workInProgress = workInProgress.child; 6196 } 6197 return workInProgress; 6198 case 26: return markRef(current, workInProgress), null === current ? (renderLanes = getResource(workInProgress.type, null, workInProgress.pendingProps, null)) ? workInProgress.memoizedState = renderLanes : isHydrating || (renderLanes = workInProgress.type, current = workInProgress.pendingProps, returnFiber = requiredContext(rootInstanceStackCursor.current), returnFiber = getOwnerDocumentFromRootContainer(returnFiber).createElement(renderLanes), returnFiber[internalInstanceKey] = workInProgress, returnFiber[internalPropsKey] = current, setInitialProperties(returnFiber, renderLanes, current), markNodeAsHoistable(returnFiber), workInProgress.stateNode = returnFiber) : workInProgress.memoizedState = getResource(workInProgress.type, current.memoizedProps, workInProgress.pendingProps, current.memoizedState), null; 6199 case 27: return pushHostContext(workInProgress), null === current && isHydrating && (returnFiber = requiredContext(rootInstanceStackCursor.current), prevSibling = getHostContext(), returnFiber = workInProgress.stateNode = resolveSingletonInstance(workInProgress.type, workInProgress.pendingProps, returnFiber, prevSibling, !1), didSuspendOrErrorDEV || (prevSibling = diffHydratedProperties(returnFiber, workInProgress.type, workInProgress.pendingProps, prevSibling), null !== prevSibling && (buildHydrationDiffNode(workInProgress, 0).serverProps = prevSibling)), hydrationParentFiber = workInProgress, rootOrSingletonContext = !0, prevSibling = nextHydratableInstance, isSingletonScope(workInProgress.type) ? (previousHydratableOnEnteringScopedSingleton = prevSibling, nextHydratableInstance = getNextHydratable(returnFiber.firstChild)) : nextHydratableInstance = prevSibling), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), markRef(current, workInProgress), null === current && (workInProgress.flags |= 4194304), workInProgress.child; 6200 case 5: return null === current && isHydrating && (prevState = getHostContext(), returnFiber = validateDOMNesting(workInProgress.type, prevState.ancestorInfo), prevSibling = nextHydratableInstance, (nextState = !prevSibling) || (nextState = canHydrateInstance(prevSibling, workInProgress.type, workInProgress.pendingProps, rootOrSingletonContext), null !== nextState ? (workInProgress.stateNode = nextState, didSuspendOrErrorDEV || (prevState = diffHydratedProperties(nextState, workInProgress.type, workInProgress.pendingProps, prevState), null !== prevState && (buildHydrationDiffNode(workInProgress, 0).serverProps = prevState)), hydrationParentFiber = workInProgress, nextHydratableInstance = getNextHydratable(nextState.firstChild), rootOrSingletonContext = !1, prevState = !0) : prevState = !1, nextState = !prevState), nextState && (returnFiber && warnNonHydratedInstance(workInProgress, prevSibling), throwOnHydrationMismatch(workInProgress))), pushHostContext(workInProgress), prevSibling = workInProgress.type, prevState = workInProgress.pendingProps, nextState = null !== current ? current.memoizedProps : null, returnFiber = prevState.children, shouldSetTextContent(prevSibling, prevState) ? returnFiber = null : null !== nextState && shouldSetTextContent(prevSibling, nextState) && (workInProgress.flags |= 32), null !== workInProgress.memoizedState && (prevSibling = renderWithHooks(current, workInProgress, TransitionAwareHostComponent, null, null, renderLanes), HostTransitionContext._currentValue = prevSibling), markRef(current, workInProgress), reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6201 case 6: return null === current && isHydrating && (renderLanes = w
vendor: 4,948 bytes, lines 6201-6221
6201orkInProgress.pendingProps, current = getHostContext(), returnFiber = current.ancestorInfo.current, renderLanes = null != returnFiber ? validateTextNesting(renderLanes, returnFiber.tag, current.ancestorInfo.implicitRootScope) : !0, current = nextHydratableInstance, (returnFiber = !current) || (returnFiber = canHydrateTextInstance(current, workInProgress.pendingProps, rootOrSingletonContext), null !== returnFiber ? (workInProgress.stateNode = returnFiber, hydrationParentFiber = workInProgress, nextHydratableInstance = null, returnFiber = !0) : returnFiber = !1, returnFiber = !returnFiber), returnFiber && (renderLanes && warnNonHydratedInstance(workInProgress, current), throwOnHydrationMismatch(workInProgress))), null; 6202 case 13: return updateSuspenseComponent(current, workInProgress, renderLanes); 6203 case 4: return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), returnFiber = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, returnFiber, renderLanes) : reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6204 case 11: return updateForwardRef(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6205 case 7: return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; 6206 case 8: return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6207 case 12: return workInProgress.flags |= 4, workInProgress.flags |= 2048, returnFiber = workInProgress.stateNode, returnFiber.effectDuration = -0, returnFiber.passiveEffectDuration = -0, reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6208 case 10: return returnFiber = workInProgress.type, prevSibling = workInProgress.pendingProps, prevState = prevSibling.value, "value" in prevSibling || hasWarnedAboutUsingNoValuePropOnContextProvider || (hasWarnedAboutUsingNoValuePropOnContextProvider = !0, console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")), pushProvider(workInProgress, returnFiber, prevState), reconcileChildren(current, workInProgress, prevSibling.children, renderLanes), workInProgress.child; 6209 case 9: return prevSibling = workInProgress.type._context, returnFiber = workInProgress.pendingProps.children, "function" !== typeof returnFiber && console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."), prepareToReadContext(workInProgress), prevSibling = readContext(prevSibling), returnFiber = callComponentInDEV(returnFiber, prevSibling, void 0), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, returnFiber, renderLanes), workInProgress.child; 6210 case 14: return updateMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6211 case 15: return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 6212 case 19: return updateSuspenseListComponent(current, workInProgress, renderLanes); 6213 case 31: return updateActivityComponent(current, workInProgress, renderLanes); 6214 case 22: return updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps); 6215 case 24: return prepareToReadContext(workInProgress), returnFiber = readContext(CacheContext), null === current ? (prevSibling = peekCacheFromPool(), null === prevSibling && (prevSibling = workInProgressRoot, prevState = createCache(), prevSibling.pooledCache = prevState, retainCache(prevState), null !== prevState && (prevSibling.pooledCacheLanes |= renderLanes), prevSibling = prevState), workInProgress.memoizedState = { 6216 parent: returnFiber, 6217 cache: prevSibling 6218 }, initializeUpdateQueue(workInProgress), pushProvider(workInProgress, CacheContext, prevSibling)) : (0 !== (current.lanes & renderLanes) && (cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, null, null, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction()), prevSibling = current.memoizedState, prevState = workInProgress.memoizedState, prevSibling.parent !== returnFiber ? (prevSibling = { 6219 parent: returnFiber, 6220 cache: returnFiber 6221 }, workInProgress.memoizedState = prevSibling, 0 === workInProgress.lanes && (workInProgress.memoizedState = workInProgress.updateQueue.baseState = prevSibling), pushProvider(workInProgress, CacheContext, returnFiber)) : (returnFiber = prevState.cache, pushProvider(workInProgress, CacheContext, returnFiber), returnFiber !== prevSibling.cache && propagateContextChanges(wor
vendor: 2,491 bytes, lines 6221-6255
6221kInProgress, [CacheContext], renderLanes, !0))), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 6222 case 29: throw workInProgress.pendingProps; 6223 } 6224 throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); 6225 } 6226 function markUpdate(workInProgress) { 6227 workInProgress.flags |= 4; 6228 } 6229 function preloadInstanceAndSuspendIfNeeded(workInProgress, type, oldProps, newProps, renderLanes) { 6230 if (type = (workInProgress.mode & SuspenseyImagesMode) !== NoMode) type = !1; 6231 if (type) { 6232 if (workInProgress.flags |= 16777216, (renderLanes & 335544128) === renderLanes) if (workInProgress.stateNode.complete) workInProgress.flags |= 8192; 6233 else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 6234 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 6235 } else workInProgress.flags &= -16777217; 6236 } 6237 function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { 6238 if ("stylesheet" !== resource.type || (resource.state.loading & Inserted) !== NotLoaded) workInProgress.flags &= -16777217; 6239 else if (workInProgress.flags |= 16777216, !preloadResource(resource)) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 6240 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 6241 } 6242 function scheduleRetryEffect(workInProgress, retryQueue) { 6243 null !== retryQueue && (workInProgress.flags |= 4); 6244 workInProgress.flags & 16384 && (retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912, workInProgress.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue); 6245 } 6246 function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { 6247 if (!isHydrating) switch (renderState.tailMode) { 6248 case "hidden": 6249 hasRenderedATailFallback = renderState.tail; 6250 for (var lastTailNode = null; null !== hasRenderedATailFallback;) null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; 6251 null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; 6252 break; 6253 case "collapsed": 6254 lastTailNode = renderState.tail; 6255 for (var _lastTailNode = null; null !== lastTailNode;) null !== lastTailNode.alternate && (_lastTailNode = lastTailNode), lastTailNode = lastTailNode.sibling;
vendor: 10,146 bytes, lines 6256-6407
6256 null === _lastTailNode ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : _lastTailNode.sibling = null; 6257 } 6258 } 6259 function bubbleProperties(completedWork) { 6260 var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0; 6261 if (didBailout) if ((completedWork.mode & ProfileMode) !== NoMode) { 6262 for (var _treeBaseDuration = completedWork.selfBaseDuration, _child2 = completedWork.child; null !== _child2;) newChildLanes |= _child2.lanes | _child2.childLanes, subtreeFlags |= _child2.subtreeFlags & 65011712, subtreeFlags |= _child2.flags & 65011712, _treeBaseDuration += _child2.treeBaseDuration, _child2 = _child2.sibling; 6263 completedWork.treeBaseDuration = _treeBaseDuration; 6264 } else for (_treeBaseDuration = completedWork.child; null !== _treeBaseDuration;) newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712, subtreeFlags |= _treeBaseDuration.flags & 65011712, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 6265 else if ((completedWork.mode & ProfileMode) !== NoMode) { 6266 _treeBaseDuration = completedWork.actualDuration; 6267 _child2 = completedWork.selfBaseDuration; 6268 for (var child = completedWork.child; null !== child;) newChildLanes |= child.lanes | child.childLanes, subtreeFlags |= child.subtreeFlags, subtreeFlags |= child.flags, _treeBaseDuration += child.actualDuration, _child2 += child.treeBaseDuration, child = child.sibling; 6269 completedWork.actualDuration = _treeBaseDuration; 6270 completedWork.treeBaseDuration = _child2; 6271 } else for (_treeBaseDuration = completedWork.child; null !== _treeBaseDuration;) newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags, subtreeFlags |= _treeBaseDuration.flags, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 6272 completedWork.subtreeFlags |= subtreeFlags; 6273 completedWork.childLanes = newChildLanes; 6274 return didBailout; 6275 } 6276 function completeWork(current, workInProgress, renderLanes) { 6277 var newProps = workInProgress.pendingProps; 6278 popTreeContext(workInProgress); 6279 switch (workInProgress.tag) { 6280 case 16: 6281 case 15: 6282 case 0: 6283 case 11: 6284 case 7: 6285 case 8: 6286 case 12: 6287 case 9: 6288 case 14: return bubbleProperties(workInProgress), null; 6289 case 1: return bubbleProperties(workInProgress), null; 6290 case 3: 6291 renderLanes = workInProgress.stateNode; 6292 newProps = null; 6293 null !== current && (newProps = current.memoizedState.cache); 6294 workInProgress.memoizedState.cache !== newProps && (workInProgress.flags |= 2048); 6295 popProvider(CacheContext, workInProgress); 6296 popHostContainer(workInProgress); 6297 renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null); 6298 if (null === current || null === current.child) popHydrationState(workInProgress) ? (emitPendingHydrationWarnings(), markUpdate(workInProgress)) : null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, upgradeHydrationErrorsToRecoverable()); 6299 bubbleProperties(workInProgress); 6300 return null; 6301 case 26: 6302 var type = workInProgress.type, nextResource = workInProgress.memoizedState; 6303 null === current ? (markUpdate(workInProgress), null !== nextResource ? (bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, null, newProps, renderLanes))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress), bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), workInProgress.flags &= -16777217) : (current = current.memoizedProps, current !== newProps && markUpdate(workInProgress), bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, current, newProps, renderLanes)); 6304 return null; 6305 case 27: 6306 popHostContext(workInProgress); 6307 renderLanes = requiredContext(rootInstanceStackCursor.current); 6308 type = workInProgress.type; 6309 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6310 else { 6311 if (!newProps) { 6312 if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6313 bubbleProperties(workInProgress); 6314 return null; 6315 } 6316 current = getHostContext(); 6317 popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : (current = resolveSingletonInstance(type, newProps, renderLanes, current, !0), workInProgress.stateNode = current, markUpdate(workInProgress)); 6318 } 6319 bubbleProperties(workInProgress); 6320 return null; 6321 case 5: 6322 popHostContext(workInProgress); 6323 type = workInProgress.type; 6324 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6325 else { 6326 if (!newProps) { 6327 if (null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6328 bubbleProperties(workInProgress); 6329 return null; 6330 } 6331 var _currentHostContext = getHostContext(); 6332 if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, _currentHostContext); 6333 else { 6334 nextResource = requiredContext(rootInstanceStackCursor.current); 6335 validateDOMNesting(type, _currentHostContext.ancestorInfo); 6336 _currentHostContext = _currentHostContext.context; 6337 nextResource = getOwnerDocumentFromRootContainer(nextResource); 6338 switch (_currentHostContext) { 6339 case HostContextNamespaceSvg: 6340 nextResource = nextResource.createElementNS(SVG_NAMESPACE, type); 6341 break; 6342 case HostContextNamespaceMath: 6343 nextResource = nextResource.createElementNS(MATH_NAMESPACE, type); 6344 break; 6345 default: switch (type) { 6346 case "svg": 6347 nextResource = nextResource.createElementNS(SVG_NAMESPACE, type); 6348 break; 6349 case "math": 6350 nextResource = nextResource.createElementNS(MATH_NAMESPACE, type); 6351 break; 6352 case "script": 6353 nextResource = nextResource.createElement("div"); 6354 nextResource.innerHTML = "<script><\/script>"; 6355 nextResource = nextResource.removeChild(nextResource.firstChild); 6356 break; 6357 case "select": 6358 nextResource = "string" === typeof newProps.is ? nextResource.createElement("select", { is: newProps.is }) : nextResource.createElement("select"); 6359 newProps.multiple ? nextResource.multiple = !0 : newProps.size && (nextResource.size = newProps.size); 6360 break; 6361 default: nextResource = "string" === typeof newProps.is ? nextResource.createElement(type, { is: newProps.is }) : nextResource.createElement(type), -1 === type.indexOf("-") && (type !== type.toLowerCase() && console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", type), "[object HTMLUnknownElement]" !== Object.prototype.toString.call(nextResource) || hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", type))); 6362 } 6363 } 6364 nextResource[internalInstanceKey] = workInProgress; 6365 nextResource[internalPropsKey] = newProps; 6366 a: for (_currentHostContext = workInProgress.child; null !== _currentHostContext;) { 6367 if (5 === _currentHostContext.tag || 6 === _currentHostContext.tag) nextResource.appendChild(_currentHostContext.stateNode); 6368 else if (4 !== _currentHostContext.tag && 27 !== _currentHostContext.tag && null !== _currentHostContext.child) { 6369 _currentHostContext.child.return = _currentHostContext; 6370 _currentHostContext = _currentHostContext.child; 6371 continue; 6372 } 6373 if (_currentHostContext === workInProgress) break a; 6374 for (; null === _currentHostContext.sibling;) { 6375 if (null === _currentHostContext.return || _currentHostContext.return === workInProgress) break a; 6376 _currentHostContext = _currentHostContext.return; 6377 } 6378 _currentHostContext.sibling.return = _currentHostContext.return; 6379 _currentHostContext = _currentHostContext.sibling; 6380 } 6381 workInProgress.stateNode = nextResource; 6382 a: switch (setInitialProperties(nextResource, type, newProps), type) { 6383 case "button": 6384 case "input": 6385 case "select": 6386 case "textarea": 6387 newProps = !!newProps.autoFocus; 6388 break a; 6389 case "img": 6390 newProps = !0; 6391 break a; 6392 default: newProps = !1; 6393 } 6394 newProps && markUpdate(workInProgress); 6395 } 6396 } 6397 bubbleProperties(workInProgress); 6398 preloadInstanceAndSuspendIfNeeded(workInProgress, workInProgress.type, null === current ? null : current.memoizedProps, workInProgress.pendingProps, renderLanes); 6399 return null; 6400 case 6: 6401 if (current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 6402 else { 6403 if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); 6404 current = requiredContext(rootInstanceStackCursor.current); 6405 renderLanes = getHostContext(); 6406 if (popHydrationState(workInProgress)) { 6407 current = workInProgress.stateNode;
6408 renderLanes = workInProgress.memoizedProps; 6409 type = !didSuspendOrErrorDEV; 6410 newProps = null; 6411 nextResource = hydrationParentFiber; 6412 if (null !== nextResource) switch (nextResource.tag) { 6413 case 3: 6414 type && (type = diffHydratedTextForDevWarnings(current, renderLanes, newProps), null !== type && (buildHydrationDiffNode(workInProgress, 0).serverProps = type)); 6415 break; 6416 case 27: 6417 case 5: newProps = nextResource.memoizedProps, type && (type = diffHydratedTextForDevWarnings(current, renderLanes, newProps), null !== type && (buildHydrationDiffNode(workInProgress, 0).serverProps = type)); 6418 } 6419 current[internalInstanceKey] = workInProgress; 6420 current = current.nodeValue === renderLanes || null !== newProps && !0 === newProps.suppressHydrationWarning || checkForUnmatchedText(current.nodeValue, renderLanes) ? !0 : !1; 6421 current || throwOnHydrationMismatch(workInProgress, !0); 6422 } else type = renderLanes.ancestorInfo.current, null != type && validateTextNesting(newProps, type.tag, renderLanes.ancestorInfo.implicitRootScope), current = getOwnerDocumentFromRootContainer(current).createTextNode(newProps), current[internalInstanceKey] = workInProgress, workInProgress.stateNode = current; 6423 } 6424 bubbleProperties(workInProgress); 6425 return null; 6426 case 31: 6427 renderLanes = workInProgress.memoizedState; 6428 if (null === current || null !== current.memoizedState) { 6429 newProps = popHydrationState(workInProgress); 6430 if (null !== renderLanes) { 6431 if (null === current) { 6432 if (!newProps) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); 6433 current = workInProgress.memoizedState; 6434 current = null !== current ? current.dehydrated : null; 6435 if (!current) throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue."); 6436 current[internalInstanceKey] = workInProgress; 6437 bubbleProperties(workInProgress); 6438 (workInProgress.mode & ProfileMode) !== NoMode && null !== renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6439 } else emitPendingHydrationWarnings(), resetHydrationState(), 0 === (workInProgress.flags & 128) && (renderLanes = workInProgress.memoizedState = null), workInProgress.flags |= 4, bubbleProperties(workInProgress), (workInProgress.mode & ProfileMode) !== NoMode && null !== renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6440 current = !1; 6441 } else renderLanes = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = renderLanes), current = !0; 6442 if (!current) { 6443 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 6444 popSuspenseHandler(workInProgress); 6445 return null; 6446 } 6447 if (0 !== (workInProgress.flags & 128)) throw Error("Client rendering an Activity suspended it again. This is a bug in React."); 6448 } 6449 bubbleProperties(workInProgress); 6450 return null; 6451 case 13: 6452 newProps = workInProgress.memoizedState; 6453 if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { 6454 type = newProps; 6455 nextResource = popHydrationState(workInProgress); 6456 if (null !== type && null !== type.dehydrated) { 6457 if (null === current) { 6458 if (!nextResource) throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); 6459 nextResource = workInProgress.memoizedState; 6460 nextResource = null !== nextResource ? nextResource.dehydrated : null; 6461 if (!nextResource) throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."); 6462 nextResource[internalInstanceKey] = workInProgress; 6463 bubbleProperties(workInProgress); 6464 (workInProgress.mode & ProfileMode) !== NoMode && null !== type && (type = workInProgress.child, null !== type && (workInProgress.treeBaseDuration -= type.treeBaseDuration)); 6465 } else emitPendingHydrationWarnings(), resetHydrationState(), 0 === (workInProgress.flags & 128) && (type = workInProgress.memoizedState = null), workInProgress.flags |= 4, bubbleProperties(workInProgress), (workInProgress.mode & ProfileMode) !== NoMode && null !== type && (type = workInProgress.child, null !== type && (workInProgress.treeBaseDuration -= type.treeBaseDuration)); 6466 type = !1; 6467 } else type = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = type), type = !0; 6468 if (!type) { 6469 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 6470 popSuspenseHandler(workInProgress); 6471 return null; 6472 } 6473 } 6474 popSuspenseHandler(workInProgress); 6475 if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress; 6476 renderLanes = null !== newProps; 6477 current = null !== current && null !== current.memoizedState; 6478 renderLanes && (newProps = workInProgress.child, type = null, null !== newProps.alternate && null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)); 6479 renderLanes !== current && renderLanes && (workInProgress.child.flags |= 8192); 6480 scheduleRetryEffect(workInProgress, workInProgress.updateQueue); 6481 bubbleProperties(workInProgress); 6482 (workInProgress.mode & ProfileMode) !== NoMode && renderLanes && (current = workInProgress.child, null !== current && (workInProgress.treeBaseDuration -= current.treeBaseDuration)); 6483 return null; 6484 case 4: return popHostContainer(workInProgress), null === current && listenToAllSupportedEvents(workInProgress.stateNode.containerInfo), bubbleProperties(workInProgress), null;
vendor: 4,463 bytes, lines 6485-6524
6485 case 10: return popProvider(workInProgress.type, workInProgress), bubbleProperties(workInProgress), null; 6486 case 19: 6487 pop(suspenseStackCursor, workInProgress); 6488 newProps = workInProgress.memoizedState; 6489 if (null === newProps) return bubbleProperties(workInProgress), null; 6490 type = 0 !== (workInProgress.flags & 128); 6491 nextResource = newProps.rendering; 6492 if (null === nextResource) if (type) cutOffTailIfNeeded(newProps, !1); 6493 else { 6494 if (workInProgressRootExitStatus !== RootInProgress || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { 6495 nextResource = findFirstSuspended(current); 6496 if (null !== nextResource) { 6497 workInProgress.flags |= 128; 6498 cutOffTailIfNeeded(newProps, !1); 6499 current = nextResource.updateQueue; 6500 workInProgress.updateQueue = current; 6501 scheduleRetryEffect(workInProgress, current); 6502 workInProgress.subtreeFlags = 0; 6503 current = renderLanes; 6504 for (renderLanes = workInProgress.child; null !== renderLanes;) resetWorkInProgress(renderLanes, current), renderLanes = renderLanes.sibling; 6505 push(suspenseStackCursor, suspenseStackCursor.current & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress); 6506 isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount); 6507 return workInProgress.child; 6508 } 6509 current = current.sibling; 6510 } 6511 null !== newProps.tail && now$1() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 6512 } 6513 else { 6514 if (!type) if (current = findFirstSuspended(nextResource), null !== current) { 6515 if (workInProgress.flags |= 128, type = !0, current = current.updateQueue, workInProgress.updateQueue = current, scheduleRetryEffect(workInProgress, current), cutOffTailIfNeeded(newProps, !0), null === newProps.tail && "hidden" === newProps.tailMode && !nextResource.alternate && !isHydrating) return bubbleProperties(workInProgress), null; 6516 } else 2 * now$1() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 6517 newProps.isBackwards ? (nextResource.sibling = workInProgress.child, workInProgress.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress.child = nextResource, newProps.last = nextResource); 6518 } 6519 if (null !== newProps.tail) return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now$1(), current.sibling = null, renderLanes = suspenseStackCursor.current, renderLanes = type ? renderLanes & SubtreeSuspenseContextMask | ForceSuspenseFallback : renderLanes & SubtreeSuspenseContextMask, push(suspenseStackCursor, renderLanes, workInProgress), isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount), current; 6520 bubbleProperties(workInProgress); 6521 return null; 6522 case 22: 6523 case 23: return popSuspenseHandler(workInProgress), popHiddenContext(workInProgress), newProps = null !== workInProgress.memoizedState, null !== current ? null !== current.memoizedState !== newProps && (workInProgress.flags |= 8192) : newProps && (workInProgress.flags |= 8192), newProps ? 0 !== (renderLanes & 536870912) && 0 === (workInProgress.flags & 128) && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), renderLanes = workInProgress.updateQueue, null !== renderLanes && scheduleRetryEffect(workInProgress, renderLanes.retryQueue), renderLanes = null, null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (renderLanes = current.memoizedState.cachePool.pool), newProps = null, null !== workInProgress.memoizedState && null !== workInProgress.memoizedState.cachePool && (newProps = workInProgress.memoizedState.cachePool.pool), newProps !== renderLanes && (workInProgress.flags |= 2048), null !== current && pop(resumedCache, workInProgress), null; 6524 case 24: return renderLanes = null, null !== current && (renderLanes = current.memoizedState.cache), workInProgress.memoizedState.cache !== renderLanes && (workInProgress.flags |= 2048), popProvi
vendor: 14,823 bytes, lines 6524-6766
6524der(CacheContext, workInProgress), bubbleProperties(workInProgress), null; 6525 case 25: return null; 6526 case 30: return null; 6527 } 6528 throw Error("Unknown unit of work tag (" + workInProgress.tag + "). This error is likely caused by a bug in React. Please file an issue."); 6529 } 6530 function unwindWork(current, workInProgress) { 6531 popTreeContext(workInProgress); 6532 switch (workInProgress.tag) { 6533 case 1: return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6534 case 3: return popProvider(CacheContext, workInProgress), popHostContainer(workInProgress), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 6535 case 26: 6536 case 27: 6537 case 5: return popHostContext(workInProgress), null; 6538 case 31: 6539 if (null !== workInProgress.memoizedState) { 6540 popSuspenseHandler(workInProgress); 6541 if (null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); 6542 resetHydrationState(); 6543 } 6544 current = workInProgress.flags; 6545 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6546 case 13: 6547 popSuspenseHandler(workInProgress); 6548 current = workInProgress.memoizedState; 6549 if (null !== current && null !== current.dehydrated) { 6550 if (null === workInProgress.alternate) throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); 6551 resetHydrationState(); 6552 } 6553 current = workInProgress.flags; 6554 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6555 case 19: return pop(suspenseStackCursor, workInProgress), null; 6556 case 4: return popHostContainer(workInProgress), null; 6557 case 10: return popProvider(workInProgress.type, workInProgress), null; 6558 case 22: 6559 case 23: return popSuspenseHandler(workInProgress), popHiddenContext(workInProgress), null !== current && pop(resumedCache, workInProgress), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, (workInProgress.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress), workInProgress) : null; 6560 case 24: return popProvider(CacheContext, workInProgress), null; 6561 case 25: return null; 6562 default: return null; 6563 } 6564 } 6565 function unwindInterruptedWork(current, interruptedWork) { 6566 popTreeContext(interruptedWork); 6567 switch (interruptedWork.tag) { 6568 case 3: 6569 popProvider(CacheContext, interruptedWork); 6570 popHostContainer(interruptedWork); 6571 break; 6572 case 26: 6573 case 27: 6574 case 5: 6575 popHostContext(interruptedWork); 6576 break; 6577 case 4: 6578 popHostContainer(interruptedWork); 6579 break; 6580 case 31: 6581 null !== interruptedWork.memoizedState && popSuspenseHandler(interruptedWork); 6582 break; 6583 case 13: 6584 popSuspenseHandler(interruptedWork); 6585 break; 6586 case 19: 6587 pop(suspenseStackCursor, interruptedWork); 6588 break; 6589 case 10: 6590 popProvider(interruptedWork.type, interruptedWork); 6591 break; 6592 case 22: 6593 case 23: 6594 popSuspenseHandler(interruptedWork); 6595 popHiddenContext(interruptedWork); 6596 null !== current && pop(resumedCache, interruptedWork); 6597 break; 6598 case 24: popProvider(CacheContext, interruptedWork); 6599 } 6600 } 6601 function shouldProfile(current) { 6602 return (current.mode & ProfileMode) !== NoMode; 6603 } 6604 function commitHookLayoutEffects(finishedWork, hookFlags) { 6605 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 6606 } 6607 function commitHookLayoutUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 6608 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor), recordEffectDuration()) : commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor); 6609 } 6610 function commitHookEffectListMount(flags, finishedWork) { 6611 try { 6612 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 6613 if (null !== lastEffect) { 6614 var firstEffect = lastEffect.next; 6615 updateQueue = firstEffect; 6616 do { 6617 if ((updateQueue.tag & flags) === flags && (lastEffect = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = runWithFiberInDEV(finishedWork, callCreateInDEV, updateQueue), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1), void 0 !== lastEffect && "function" !== typeof lastEffect)) { 6618 var hookName = void 0; 6619 hookName = 0 !== (updateQueue.tag & Layout) ? "useLayoutEffect" : 0 !== (updateQueue.tag & Insertion) ? "useInsertionEffect" : "useEffect"; 6620 var addendum = void 0; 6621 addendum = null === lastEffect ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : "function" === typeof lastEffect.then ? "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + hookName + "(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching" : " You returned: " + lastEffect; 6622 runWithFiberInDEV(finishedWork, function(n, a) { 6623 console.error("%s must not return anything besides a function, which is used for clean-up.%s", n, a); 6624 }, hookName, addendum); 6625 } 6626 updateQueue = updateQueue.next; 6627 } while (updateQueue !== firstEffect); 6628 } 6629 } catch (error) { 6630 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6631 } 6632 } 6633 function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { 6634 try { 6635 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 6636 if (null !== lastEffect) { 6637 var firstEffect = lastEffect.next; 6638 updateQueue = firstEffect; 6639 do { 6640 if ((updateQueue.tag & flags) === flags) { 6641 var inst = updateQueue.inst, destroy = inst.destroy; 6642 void 0 !== destroy && (inst.destroy = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !0), lastEffect = finishedWork, runWithFiberInDEV(lastEffect, callDestroyInDEV, lastEffect, nearestMountedAncestor, destroy), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = !1)); 6643 } 6644 updateQueue = updateQueue.next; 6645 } while (updateQueue !== firstEffect); 6646 } 6647 } catch (error) { 6648 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6649 } 6650 } 6651 function commitHookPassiveMountEffects(finishedWork, hookFlags) { 6652 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 6653 } 6654 function commitHookPassiveUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 6655 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor), recordEffectDuration()) : commitHookEffectListUnmount(hookFlags, finishedWork, nearestMountedAncestor); 6656 } 6657 function commitClassCallbacks(finishedWork) { 6658 var updateQueue = finishedWork.updateQueue; 6659 if (null !== updateQueue) { 6660 var instance = finishedWork.stateNode; 6661 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (instance.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), instance.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6662 try { 6663 runWithFiberInDEV(finishedWork, commitCallbacks, updateQueue, instance); 6664 } catch (error) { 6665 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6666 } 6667 } 6668 } 6669 function callGetSnapshotBeforeUpdates(instance, prevProps, prevState) { 6670 return instance.getSnapshotBeforeUpdate(prevProps, prevState); 6671 } 6672 function commitClassSnapshot(finishedWork, current) { 6673 var prevProps = current.memoizedProps, prevState = current.memoizedState; 6674 current = finishedWork.stateNode; 6675 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (current.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), current.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6676 try { 6677 var resolvedPrevProps = resolveClassComponentProps(finishedWork.type, prevProps); 6678 var snapshot = runWithFiberInDEV(finishedWork, callGetSnapshotBeforeUpdates, current, resolvedPrevProps, prevState); 6679 prevProps = didWarnAboutUndefinedSnapshotBeforeUpdate; 6680 void 0 !== snapshot || prevProps.has(finishedWork.type) || (prevProps.add(finishedWork.type), runWithFiberInDEV(finishedWork, function() { 6681 console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); 6682 })); 6683 current.__reactInternalSnapshotBeforeUpdate = snapshot; 6684 } catch (error) { 6685 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6686 } 6687 } 6688 function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { 6689 instance.props = resolveClassComponentProps(current.type, current.memoizedProps); 6690 instance.state = current.memoizedState; 6691 shouldProfile(current) ? (startEffectTimer(), runWithFiberInDEV(current, callComponentWillUnmountInDEV, current, nearestMountedAncestor, instance), recordEffectDuration()) : runWithFiberInDEV(current, callComponentWillUnmountInDEV, current, nearestMountedAncestor, instance); 6692 } 6693 function commitAttachRef(finishedWork) { 6694 var ref = finishedWork.ref; 6695 if (null !== ref) { 6696 switch (finishedWork.tag) { 6697 case 26: 6698 case 27: 6699 case 5: 6700 var instanceToUse = finishedWork.stateNode; 6701 break; 6702 case 30: 6703 instanceToUse = finishedWork.stateNode; 6704 break; 6705 default: instanceToUse = finishedWork.stateNode; 6706 } 6707 if ("function" === typeof ref) if (shouldProfile(finishedWork)) try { 6708 startEffectTimer(), finishedWork.refCleanup = ref(instanceToUse); 6709 } finally { 6710 recordEffectDuration(); 6711 } 6712 else finishedWork.refCleanup = ref(instanceToUse); 6713 else "string" === typeof ref ? console.error("String refs are no longer supported.") : ref.hasOwnProperty("current") || console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)), ref.current = instanceToUse; 6714 } 6715 } 6716 function safelyAttachRef(current, nearestMountedAncestor) { 6717 try { 6718 runWithFiberInDEV(current, commitAttachRef, current); 6719 } catch (error) { 6720 captureCommitPhaseError(current, nearestMountedAncestor, error); 6721 } 6722 } 6723 function safelyDetachRef(current, nearestMountedAncestor) { 6724 var ref = current.ref, refCleanup = current.refCleanup; 6725 if (null !== ref) if ("function" === typeof refCleanup) try { 6726 if (shouldProfile(current)) try { 6727 startEffectTimer(), runWithFiberInDEV(current, refCleanup); 6728 } finally { 6729 recordEffectDuration(current); 6730 } 6731 else runWithFiberInDEV(current, refCleanup); 6732 } catch (error) { 6733 captureCommitPhaseError(current, nearestMountedAncestor, error); 6734 } finally { 6735 current.refCleanup = null, current = current.alternate, null != current && (current.refCleanup = null); 6736 } 6737 else if ("function" === typeof ref) try { 6738 if (shouldProfile(current)) try { 6739 startEffectTimer(), runWithFiberInDEV(current, ref, null); 6740 } finally { 6741 recordEffectDuration(current); 6742 } 6743 else runWithFiberInDEV(current, ref, null); 6744 } catch (error$7) { 6745 captureCommitPhaseError(current, nearestMountedAncestor, error$7); 6746 } 6747 else ref.current = null; 6748 } 6749 function commitProfiler(finishedWork, current, commitStartTime, effectDuration) { 6750 var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onCommit = _finishedWork$memoize.onCommit; 6751 _finishedWork$memoize = _finishedWork$memoize.onRender; 6752 current = null === current ? "mount" : "update"; 6753 currentUpdateIsNested && (current = "nested-update"); 6754 "function" === typeof _finishedWork$memoize && _finishedWork$memoize(id, current, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitStartTime); 6755 "function" === typeof onCommit && onCommit(id, current, effectDuration, commitStartTime); 6756 } 6757 function commitProfilerPostCommitImpl(finishedWork, current, commitStartTime, passiveEffectDuration) { 6758 var _finishedWork$memoize2 = finishedWork.memoizedProps; 6759 finishedWork = _finishedWork$memoize2.id; 6760 _finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit; 6761 current = null === current ? "mount" : "update"; 6762 currentUpdateIsNested && (current = "nested-update"); 6763 "function" === typeof _finishedWork$memoize2 && _finishedWork$memoize2(finishedWork, current, passiveEffectDuration, commitStartTime); 6764 } 6765 function commitHostMount(finishedWork) { 6766 var type = finishedWork.type, props = finishedWork.memoizedProps, instance = f
vendor: 10,708 bytes, lines 6766-6964
6766inishedWork.stateNode; 6767 try { 6768 runWithFiberInDEV(finishedWork, commitMount, instance, type, props, finishedWork); 6769 } catch (error) { 6770 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6771 } 6772 } 6773 function commitHostUpdate(finishedWork, newProps, oldProps) { 6774 try { 6775 runWithFiberInDEV(finishedWork, commitUpdate, finishedWork.stateNode, finishedWork.type, oldProps, newProps, finishedWork); 6776 } catch (error) { 6777 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6778 } 6779 } 6780 function isHostParent(fiber) { 6781 return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag; 6782 } 6783 function getHostSibling(fiber) { 6784 a: for (;;) { 6785 for (; null === fiber.sibling;) { 6786 if (null === fiber.return || isHostParent(fiber.return)) return null; 6787 fiber = fiber.return; 6788 } 6789 fiber.sibling.return = fiber.return; 6790 for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;) { 6791 if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a; 6792 if (fiber.flags & 2) continue a; 6793 if (null === fiber.child || 4 === fiber.tag) continue a; 6794 else fiber.child.return = fiber, fiber = fiber.child; 6795 } 6796 if (!(fiber.flags & 2)) return fiber.stateNode; 6797 } 6798 } 6799 function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { 6800 var tag = node.tag; 6801 if (5 === tag || 6 === tag) node = node.stateNode, before ? (warnForReactChildrenConflict(parent), (9 === parent.nodeType ? parent.body : "HTML" === parent.nodeName ? parent.ownerDocument.body : parent).insertBefore(node, before)) : (warnForReactChildrenConflict(parent), before = 9 === parent.nodeType ? parent.body : "HTML" === parent.nodeName ? parent.ownerDocument.body : parent, before.appendChild(node), parent = parent._reactRootContainer, null !== parent && void 0 !== parent || null !== before.onclick || (before.onclick = noop$1)); 6802 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, null !== node)) for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node;) insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; 6803 } 6804 function insertOrAppendPlacementNode(node, before, parent) { 6805 var tag = node.tag; 6806 if (5 === tag || 6 === tag) node = node.stateNode, before ? parent.insertBefore(node, before) : parent.appendChild(node); 6807 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, null !== node)) for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node;) insertOrAppendPlacementNode(node, before, parent), node = node.sibling; 6808 } 6809 function commitPlacement(finishedWork) { 6810 for (var hostParentFiber, parentFiber = finishedWork.return; null !== parentFiber;) { 6811 if (isHostParent(parentFiber)) { 6812 hostParentFiber = parentFiber; 6813 break; 6814 } 6815 parentFiber = parentFiber.return; 6816 } 6817 if (null == hostParentFiber) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); 6818 switch (hostParentFiber.tag) { 6819 case 27: 6820 hostParentFiber = hostParentFiber.stateNode; 6821 parentFiber = getHostSibling(finishedWork); 6822 insertOrAppendPlacementNode(finishedWork, parentFiber, hostParentFiber); 6823 break; 6824 case 5: 6825 parentFiber = hostParentFiber.stateNode; 6826 hostParentFiber.flags & 32 && (resetTextContent(parentFiber), hostParentFiber.flags &= -33); 6827 hostParentFiber = getHostSibling(finishedWork); 6828 insertOrAppendPlacementNode(finishedWork, hostParentFiber, parentFiber); 6829 break; 6830 case 3: 6831 case 4: 6832 hostParentFiber = hostParentFiber.stateNode.containerInfo; 6833 parentFiber = getHostSibling(finishedWork); 6834 insertOrAppendPlacementNodeIntoContainer(finishedWork, parentFiber, hostParentFiber); 6835 break; 6836 default: throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); 6837 } 6838 } 6839 function commitHostSingletonAcquisition(finishedWork) { 6840 var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps; 6841 try { 6842 runWithFiberInDEV(finishedWork, acquireSingletonInstance, finishedWork.type, props, singleton, finishedWork); 6843 } catch (error) { 6844 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6845 } 6846 } 6847 function isHydratingParent(current, finishedWork) { 6848 return 31 === finishedWork.tag ? (finishedWork = finishedWork.memoizedState, null !== current.memoizedState && null === finishedWork) : 13 === finishedWork.tag ? (current = current.memoizedState, finishedWork = finishedWork.memoizedState, null !== current && null !== current.dehydrated && (null === finishedWork || null === finishedWork.dehydrated)) : 3 === finishedWork.tag ? current.memoizedState.isDehydrated && 0 === (finishedWork.flags & 256) : !1; 6849 } 6850 function commitBeforeMutationEffects(root, firstChild) { 6851 root = root.containerInfo; 6852 eventsEnabled = _enabled; 6853 root = getActiveElementDeep(root); 6854 if (hasSelectionCapabilities(root)) { 6855 if ("selectionStart" in root) var JSCompiler_temp = { 6856 start: root.selectionStart, 6857 end: root.selectionEnd 6858 }; 6859 else a: { 6860 JSCompiler_temp = (JSCompiler_temp = root.ownerDocument) && JSCompiler_temp.defaultView || window; 6861 var selection = JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); 6862 if (selection && 0 !== selection.rangeCount) { 6863 JSCompiler_temp = selection.anchorNode; 6864 var anchorOffset = selection.anchorOffset, focusNode = selection.focusNode; 6865 selection = selection.focusOffset; 6866 try { 6867 JSCompiler_temp.nodeType, focusNode.nodeType; 6868 } catch (e$2) { 6869 JSCompiler_temp = null; 6870 break a; 6871 } 6872 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root, parentNode = null; 6873 b: for (;;) { 6874 for (var next;;) { 6875 node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset); 6876 node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection); 6877 3 === node.nodeType && (length += node.nodeValue.length); 6878 if (null === (next = node.firstChild)) break; 6879 parentNode = node; 6880 node = next; 6881 } 6882 for (;;) { 6883 if (node === root) break b; 6884 parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length); 6885 parentNode === focusNode && ++indexWithinFocus === selection && (end = length); 6886 if (null !== (next = node.nextSibling)) break; 6887 node = parentNode; 6888 parentNode = node.parentNode; 6889 } 6890 node = next; 6891 } 6892 JSCompiler_temp = -1 === start || -1 === end ? null : { 6893 start, 6894 end 6895 }; 6896 } else JSCompiler_temp = null; 6897 } 6898 JSCompiler_temp = JSCompiler_temp || { 6899 start: 0, 6900 end: 0 6901 }; 6902 } else JSCompiler_temp = null; 6903 selectionInformation = { 6904 focusedElem: root, 6905 selectionRange: JSCompiler_temp 6906 }; 6907 _enabled = !1; 6908 for (nextEffect = firstChild; null !== nextEffect;) if (firstChild = nextEffect, root = firstChild.child, 0 !== (firstChild.subtreeFlags & 1028) && null !== root) root.return = firstChild, nextEffect = root; 6909 else for (; null !== nextEffect;) { 6910 root = firstChild = nextEffect; 6911 JSCompiler_temp = root.alternate; 6912 anchorOffset = root.flags; 6913 switch (root.tag) { 6914 case 0: 6915 if (0 !== (anchorOffset & 4) && (root = root.updateQueue, root = null !== root ? root.events : null, null !== root)) for (JSCompiler_temp = 0; JSCompiler_temp < root.length; JSCompiler_temp++) anchorOffset = root[JSCompiler_temp], anchorOffset.ref.impl = anchorOffset.nextImpl; 6916 break; 6917 case 11: 6918 case 15: break; 6919 case 1: 6920 0 !== (anchorOffset & 1024) && null !== JSCompiler_temp && commitClassSnapshot(root, JSCompiler_temp); 6921 break; 6922 case 3: 6923 if (0 !== (anchorOffset & 1024)) { 6924 if (root = root.stateNode.containerInfo, JSCompiler_temp = root.nodeType, 9 === JSCompiler_temp) clearContainerSparingly(root); 6925 else if (1 === JSCompiler_temp) switch (root.nodeName) { 6926 case "HEAD": 6927 case "HTML": 6928 case "BODY": 6929 clearContainerSparingly(root); 6930 break; 6931 default: root.textContent = ""; 6932 } 6933 } 6934 break; 6935 case 5: 6936 case 26: 6937 case 27: 6938 case 6: 6939 case 4: 6940 case 17: break; 6941 default: if (0 !== (anchorOffset & 1024)) throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 6942 } 6943 root = firstChild.sibling; 6944 if (null !== root) { 6945 root.return = firstChild.return; 6946 nextEffect = root; 6947 break; 6948 } 6949 nextEffect = firstChild.return; 6950 } 6951 } 6952 function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { 6953 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), flags = finishedWork.flags; 6954 switch (finishedWork.tag) { 6955 case 0: 6956 case 11: 6957 case 15: 6958 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6959 flags & 4 && commitHookLayoutEffects(finishedWork, Layout | HasEffect); 6960 break; 6961 case 1: 6962 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6963 if (flags & 4) if (finishedRoot = finishedWork.stateNode, null === current) finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), finishedRoot.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")), shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, finishedRoot), recordEffectDuration()) : runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, finishedRoot); 6964 else {
vendor: 5,901 bytes, lines 6965-7049
6965 var prevProps = resolveClassComponentProps(finishedWork.type, current.memoizedProps); 6966 current = current.memoizedState; 6967 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"), finishedRoot.state !== finishedWork.memoizedState && console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance")); 6968 shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV(finishedWork, callComponentDidUpdateInDEV, finishedWork, finishedRoot, prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate), recordEffectDuration()) : runWithFiberInDEV(finishedWork, callComponentDidUpdateInDEV, finishedWork, finishedRoot, prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate); 6969 } 6970 flags & 64 && commitClassCallbacks(finishedWork); 6971 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 6972 break; 6973 case 3: 6974 current = pushNestedEffectDurations(); 6975 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6976 if (flags & 64 && (flags = finishedWork.updateQueue, null !== flags)) { 6977 prevProps = null; 6978 if (null !== finishedWork.child) switch (finishedWork.child.tag) { 6979 case 27: 6980 case 5: 6981 prevProps = finishedWork.child.stateNode; 6982 break; 6983 case 1: prevProps = finishedWork.child.stateNode; 6984 } 6985 try { 6986 runWithFiberInDEV(finishedWork, commitCallbacks, flags, prevProps); 6987 } catch (error) { 6988 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6989 } 6990 } 6991 finishedRoot.effectDuration += popNestedEffectDurations(current); 6992 break; 6993 case 27: null === current && flags & 4 && commitHostSingletonAcquisition(finishedWork); 6994 case 26: 6995 case 5: 6996 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 6997 if (null === current) { 6998 if (flags & 4) commitHostMount(finishedWork); 6999 else if (flags & 64) { 7000 finishedRoot = finishedWork.type; 7001 current = finishedWork.memoizedProps; 7002 prevProps = finishedWork.stateNode; 7003 try { 7004 runWithFiberInDEV(finishedWork, commitHydratedInstance, prevProps, finishedRoot, current, finishedWork); 7005 } catch (error) { 7006 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7007 } 7008 } 7009 } 7010 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 7011 break; 7012 case 12: 7013 if (flags & 4) { 7014 flags = pushNestedEffectDurations(); 7015 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7016 finishedRoot = finishedWork.stateNode; 7017 finishedRoot.effectDuration += bubbleNestedEffectDurations(flags); 7018 try { 7019 runWithFiberInDEV(finishedWork, commitProfiler, finishedWork, current, commitStartTime, finishedRoot.effectDuration); 7020 } catch (error) { 7021 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7022 } 7023 } else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7024 break; 7025 case 31: 7026 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7027 flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 7028 break; 7029 case 13: 7030 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7031 flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 7032 flags & 64 && (finishedRoot = finishedWork.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot && (flags = retryDehydratedSuspenseBoundary.bind(null, finishedWork), registerSuspenseInstanceRetry(finishedRoot, flags)))); 7033 break; 7034 case 22: 7035 flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden; 7036 if (!flags) { 7037 current = null !== current && null !== current.memoizedState || offscreenSubtreeWasHidden; 7038 prevProps = offscreenSubtreeIsHidden; 7039 var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 7040 offscreenSubtreeIsHidden = flags; 7041 (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden ? (recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, 0 !== (finishedWork.subtreeFlags & 8772)), (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime)) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7042 offscreenSubtreeIsHidden = prevProps; 7043 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 7044 } 7045 break; 7046 case 30: break; 7047 default: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 7048 } 7049 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors), null === finishedWork.alternate && null !== finishedWork.return && null !== finishedWork.return.alternate && .05 < componentEffectEndTime - componentEffectStartTime && (isHydratingParent(finishedWork.return.alternate, finishedWork.return) || logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Mount")));
vendor: 4,382 bytes, lines 7050-7130
7050 popComponentEffectStart(prevEffectStart); 7051 popComponentEffectDuration(prevEffectDuration); 7052 componentEffectErrors = prevEffectErrors; 7053 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7054 } 7055 function detachFiberAfterEffects(fiber) { 7056 var alternate = fiber.alternate; 7057 null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); 7058 fiber.child = null; 7059 fiber.deletions = null; 7060 fiber.sibling = null; 7061 5 === fiber.tag && (alternate = fiber.stateNode, null !== alternate && detachDeletedInstance(alternate)); 7062 fiber.stateNode = null; 7063 fiber._debugOwner = null; 7064 fiber.return = null; 7065 fiber.dependencies = null; 7066 fiber.memoizedProps = null; 7067 fiber.memoizedState = null; 7068 fiber.pendingProps = null; 7069 fiber.stateNode = null; 7070 fiber.updateQueue = null; 7071 } 7072 function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { 7073 for (parent = parent.child; null !== parent;) commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; 7074 } 7075 function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { 7076 if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { 7077 injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); 7078 } catch (err) { 7079 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 7080 } 7081 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(); 7082 switch (deletedFiber.tag) { 7083 case 26: 7084 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7085 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7086 deletedFiber.memoizedState ? deletedFiber.memoizedState.count-- : deletedFiber.stateNode && (finishedRoot = deletedFiber.stateNode, finishedRoot.parentNode.removeChild(finishedRoot)); 7087 break; 7088 case 27: 7089 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7090 var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; 7091 isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = !1); 7092 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7093 runWithFiberInDEV(deletedFiber, releaseSingletonInstance, deletedFiber.stateNode); 7094 hostParent = prevHostParent; 7095 hostParentIsContainer = prevHostParentIsContainer; 7096 break; 7097 case 5: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 7098 case 6: 7099 prevHostParent = hostParent; 7100 prevHostParentIsContainer = hostParentIsContainer; 7101 hostParent = null; 7102 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7103 hostParent = prevHostParent; 7104 hostParentIsContainer = prevHostParentIsContainer; 7105 if (null !== hostParent) if (hostParentIsContainer) try { 7106 runWithFiberInDEV(deletedFiber, removeChildFromContainer, hostParent, deletedFiber.stateNode); 7107 } catch (error) { 7108 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 7109 } 7110 else try { 7111 runWithFiberInDEV(deletedFiber, removeChild, hostParent, deletedFiber.stateNode); 7112 } catch (error) { 7113 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 7114 } 7115 break; 7116 case 18: 7117 null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, clearHydrationBoundary(9 === finishedRoot.nodeType ? finishedRoot.body : "HTML" === finishedRoot.nodeName ? finishedRoot.ownerDocument.body : finishedRoot, deletedFiber.stateNode), retryIfBlockedOn(finishedRoot)) : clearHydrationBoundary(hostParent, deletedFiber.stateNode)); 7118 break; 7119 case 4: 7120 prevHostParent = hostParent; 7121 prevHostParentIsContainer = hostParentIsContainer; 7122 hostParent = deletedFiber.stateNode.containerInfo; 7123 hostParentIsContainer = !0; 7124 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7125 hostParent = prevHostParent; 7126 hostParentIsContainer = prevHostParentIsContainer; 7127 break; 7128 case 0: 7129 case 11: 7130 case 14:
vendor: 33,202 bytes, lines 7131-7649
7131 case 15: 7132 commitHookEffectListUnmount(Insertion, deletedFiber, nearestMountedAncestor); 7133 offscreenSubtreeWasHidden || commitHookLayoutUnmountEffects(deletedFiber, nearestMountedAncestor, Layout); 7134 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7135 break; 7136 case 1: 7137 offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, "function" === typeof prevHostParent.componentWillUnmount && safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, prevHostParent)); 7138 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7139 break; 7140 case 21: 7141 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7142 break; 7143 case 22: 7144 offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || null !== deletedFiber.memoizedState; 7145 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7146 offscreenSubtreeWasHidden = prevHostParent; 7147 break; 7148 default: recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 7149 } 7150 (deletedFiber.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(deletedFiber, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7151 popComponentEffectStart(prevEffectStart); 7152 popComponentEffectDuration(prevEffectDuration); 7153 componentEffectErrors = prevEffectErrors; 7154 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7155 } 7156 function commitActivityHydrationCallbacks(finishedRoot, finishedWork) { 7157 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot))) { 7158 finishedRoot = finishedRoot.dehydrated; 7159 try { 7160 runWithFiberInDEV(finishedWork, commitHydratedActivityInstance, finishedRoot); 7161 } catch (error) { 7162 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7163 } 7164 } 7165 } 7166 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { 7167 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot)))) try { 7168 runWithFiberInDEV(finishedWork, commitHydratedSuspenseInstance, finishedRoot); 7169 } catch (error) { 7170 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7171 } 7172 } 7173 function getRetryCache(finishedWork) { 7174 switch (finishedWork.tag) { 7175 case 31: 7176 case 13: 7177 case 19: 7178 var retryCache = finishedWork.stateNode; 7179 null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); 7180 return retryCache; 7181 case 22: return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, null === retryCache && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache; 7182 default: throw Error("Unexpected Suspense handler tag (" + finishedWork.tag + "). This is a bug in React."); 7183 } 7184 } 7185 function attachSuspenseRetryListeners(finishedWork, wakeables) { 7186 var retryCache = getRetryCache(finishedWork); 7187 wakeables.forEach(function(wakeable) { 7188 if (!retryCache.has(wakeable)) { 7189 retryCache.add(wakeable); 7190 if (isDevToolsPresent) if (null !== inProgressLanes && null !== inProgressRoot) restorePendingUpdaters(inProgressRoot, inProgressLanes); 7191 else throw Error("Expected finished root and lanes to be set. This is a bug in React."); 7192 var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); 7193 wakeable.then(retry, retry); 7194 } 7195 }); 7196 } 7197 function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { 7198 var deletions = parentFiber.deletions; 7199 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 7200 var root = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i], prevEffectStart = pushComponentEffectStart(), parent = returnFiber; 7201 a: for (; null !== parent;) { 7202 switch (parent.tag) { 7203 case 27: 7204 if (isSingletonScope(parent.type)) { 7205 hostParent = parent.stateNode; 7206 hostParentIsContainer = !1; 7207 break a; 7208 } 7209 break; 7210 case 5: 7211 hostParent = parent.stateNode; 7212 hostParentIsContainer = !1; 7213 break a; 7214 case 3: 7215 case 4: 7216 hostParent = parent.stateNode.containerInfo; 7217 hostParentIsContainer = !0; 7218 break a; 7219 } 7220 parent = parent.return; 7221 } 7222 if (null === hostParent) throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); 7223 commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); 7224 hostParent = null; 7225 hostParentIsContainer = !1; 7226 (deletedFiber.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(deletedFiber, componentEffectStartTime, componentEffectEndTime, "Unmount"); 7227 popComponentEffectStart(prevEffectStart); 7228 root = deletedFiber; 7229 returnFiber = root.alternate; 7230 null !== returnFiber && (returnFiber.return = null); 7231 root.return = null; 7232 } 7233 if (parentFiber.subtreeFlags & 13886) for (parentFiber = parentFiber.child; null !== parentFiber;) commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; 7234 } 7235 function commitMutationEffectsOnFiber(finishedWork, root) { 7236 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), current = finishedWork.alternate, flags = finishedWork.flags; 7237 switch (finishedWork.tag) { 7238 case 0: 7239 case 11: 7240 case 14: 7241 case 15: 7242 recursivelyTraverseMutationEffects(root, finishedWork); 7243 commitReconciliationEffects(finishedWork); 7244 flags & 4 && (commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return), commitHookEffectListMount(Insertion | HasEffect, finishedWork), commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, Layout | HasEffect)); 7245 break; 7246 case 1: 7247 recursivelyTraverseMutationEffects(root, finishedWork); 7248 commitReconciliationEffects(finishedWork); 7249 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7250 if (flags & 64 && offscreenSubtreeIsHidden && (flags = finishedWork.updateQueue, null !== flags && (current = flags.callbacks, null !== current))) { 7251 var existingHiddenCallbacks = flags.shared.hiddenCallbacks; 7252 flags.shared.hiddenCallbacks = null === existingHiddenCallbacks ? current : existingHiddenCallbacks.concat(current); 7253 } 7254 break; 7255 case 26: 7256 existingHiddenCallbacks = currentHoistableRoot; 7257 recursivelyTraverseMutationEffects(root, finishedWork); 7258 commitReconciliationEffects(finishedWork); 7259 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7260 if (flags & 4) { 7261 var currentResource = null !== current ? current.memoizedState : null; 7262 flags = finishedWork.memoizedState; 7263 if (null === current) if (null === flags) if (null === finishedWork.stateNode) { 7264 a: { 7265 flags = finishedWork.type; 7266 current = finishedWork.memoizedProps; 7267 existingHiddenCallbacks = existingHiddenCallbacks.ownerDocument || existingHiddenCallbacks; 7268 b: switch (flags) { 7269 case "title": 7270 currentResource = existingHiddenCallbacks.getElementsByTagName("title")[0]; 7271 if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || currentResource.namespaceURI === SVG_NAMESPACE || currentResource.hasAttribute("itemprop")) currentResource = existingHiddenCallbacks.createElement(flags), existingHiddenCallbacks.head.insertBefore(currentResource, existingHiddenCallbacks.querySelector("head > title")); 7272 setInitialProperties(currentResource, flags, current); 7273 currentResource[internalInstanceKey] = finishedWork; 7274 markNodeAsHoistable(currentResource); 7275 flags = currentResource; 7276 break a; 7277 case "link": 7278 var maybeNodes = getHydratableHoistableCache("link", "href", existingHiddenCallbacks).get(flags + (current.href || "")); 7279 if (maybeNodes) { 7280 for (var i = 0; i < maybeNodes.length; i++) if (currentResource = maybeNodes[i], currentResource.getAttribute("href") === (null == current.href || "" === current.href ? null : current.href) && currentResource.getAttribute("rel") === (null == current.rel ? null : current.rel) && currentResource.getAttribute("title") === (null == current.title ? null : current.title) && currentResource.getAttribute("crossorigin") === (null == current.crossOrigin ? null : current.crossOrigin)) { 7281 maybeNodes.splice(i, 1); 7282 break b; 7283 } 7284 } 7285 currentResource = existingHiddenCallbacks.createElement(flags); 7286 setInitialProperties(currentResource, flags, current); 7287 existingHiddenCallbacks.head.appendChild(currentResource); 7288 break; 7289 case "meta": 7290 if (maybeNodes = getHydratableHoistableCache("meta", "content", existingHiddenCallbacks).get(flags + (current.content || ""))) { 7291 for (i = 0; i < maybeNodes.length; i++) if (currentResource = maybeNodes[i], checkAttributeStringCoercion(current.content, "content"), currentResource.getAttribute("content") === (null == current.content ? null : "" + current.content) && currentResource.getAttribute("name") === (null == current.name ? null : current.name) && currentResource.getAttribute("property") === (null == current.property ? null : current.property) && currentResource.getAttribute("http-equiv") === (null == current.httpEquiv ? null : current.httpEquiv) && currentResource.getAttribute("charset") === (null == current.charSet ? null : current.charSet)) { 7292 maybeNodes.splice(i, 1); 7293 break b; 7294 } 7295 } 7296 currentResource = existingHiddenCallbacks.createElement(flags); 7297 setInitialProperties(currentResource, flags, current); 7298 existingHiddenCallbacks.head.appendChild(currentResource); 7299 break; 7300 default: throw Error("getNodesForType encountered a type it did not expect: \"" + flags + "\". This is a bug in React."); 7301 } 7302 currentResource[internalInstanceKey] = finishedWork; 7303 markNodeAsHoistable(currentResource); 7304 flags = currentResource; 7305 } 7306 finishedWork.stateNode = flags; 7307 } else mountHoistable(existingHiddenCallbacks, finishedWork.type, finishedWork.stateNode); 7308 else finishedWork.stateNode = acquireResource(existingHiddenCallbacks, flags, finishedWork.memoizedProps); 7309 else currentResource !== flags ? (null === currentResource ? null !== current.stateNode && (current = current.stateNode, current.parentNode.removeChild(current)) : currentResource.count--, null === flags ? mountHoistable(existingHiddenCallbacks, finishedWork.type, finishedWork.stateNode) : acquireResource(existingHiddenCallbacks, flags, finishedWork.memoizedProps)) : null === flags && null !== finishedWork.stateNode && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 7310 } 7311 break; 7312 case 27: 7313 recursivelyTraverseMutationEffects(root, finishedWork); 7314 commitReconciliationEffects(finishedWork); 7315 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7316 null !== current && flags & 4 && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 7317 break; 7318 case 5: 7319 recursivelyTraverseMutationEffects(root, finishedWork); 7320 commitReconciliationEffects(finishedWork); 7321 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 7322 if (finishedWork.flags & 32) { 7323 existingHiddenCallbacks = finishedWork.stateNode; 7324 try { 7325 runWithFiberInDEV(finishedWork, resetTextContent, existingHiddenCallbacks); 7326 } catch (error) { 7327 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7328 } 7329 } 7330 flags & 4 && null != finishedWork.stateNode && (existingHiddenCallbacks = finishedWork.memoizedProps, commitHostUpdate(finishedWork, existingHiddenCallbacks, null !== current ? current.memoizedProps : existingHiddenCallbacks)); 7331 flags & 1024 && (needsFormReset = !0, "form" !== finishedWork.type && console.error("Unexpected host component type. Expected a form. This is a bug in React.")); 7332 break; 7333 case 6: 7334 recursivelyTraverseMutationEffects(root, finishedWork); 7335 commitReconciliationEffects(finishedWork); 7336 if (flags & 4) { 7337 if (null === finishedWork.stateNode) throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); 7338 flags = finishedWork.memoizedProps; 7339 current = null !== current ? current.memoizedProps : flags; 7340 existingHiddenCallbacks = finishedWork.stateNode; 7341 try { 7342 runWithFiberInDEV(finishedWork, commitTextUpdate, existingHiddenCallbacks, current, flags); 7343 } catch (error) { 7344 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7345 } 7346 } 7347 break; 7348 case 3: 7349 existingHiddenCallbacks = pushNestedEffectDurations(); 7350 tagCaches = null; 7351 currentResource = currentHoistableRoot; 7352 currentHoistableRoot = getHoistableRoot(root.containerInfo); 7353 recursivelyTraverseMutationEffects(root, finishedWork); 7354 currentHoistableRoot = currentResource; 7355 commitReconciliationEffects(finishedWork); 7356 if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { 7357 runWithFiberInDEV(finishedWork, commitHydratedContainer, root.containerInfo); 7358 } catch (error) { 7359 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7360 } 7361 needsFormReset && (needsFormReset = !1, recursivelyResetForms(finishedWork)); 7362 root.effectDuration += popNestedEffectDurations(existingHiddenCallbacks); 7363 break; 7364 case 4: 7365 flags = currentHoistableRoot; 7366 currentHoistableRoot = getHoistableRoot(finishedWork.stateNode.containerInfo); 7367 recursivelyTraverseMutationEffects(root, finishedWork); 7368 commitReconciliationEffects(finishedWork); 7369 currentHoistableRoot = flags; 7370 break; 7371 case 12: 7372 flags = pushNestedEffectDurations(); 7373 recursivelyTraverseMutationEffects(root, finishedWork); 7374 commitReconciliationEffects(finishedWork); 7375 finishedWork.stateNode.effectDuration += bubbleNestedEffectDurations(flags); 7376 break; 7377 case 31: 7378 recursivelyTraverseMutationEffects(root, finishedWork); 7379 commitReconciliationEffects(finishedWork); 7380 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7381 break; 7382 case 13: 7383 recursivelyTraverseMutationEffects(root, finishedWork); 7384 commitReconciliationEffects(finishedWork); 7385 finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now$1()); 7386 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7387 break; 7388 case 22: 7389 existingHiddenCallbacks = null !== finishedWork.memoizedState; 7390 var wasHidden = null !== current && null !== current.memoizedState, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 7391 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || existingHiddenCallbacks; 7392 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; 7393 recursivelyTraverseMutationEffects(root, finishedWork); 7394 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 7395 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; 7396 wasHidden && !existingHiddenCallbacks && !prevOffscreenSubtreeIsHidden && !prevOffscreenSubtreeWasHidden && (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime); 7397 commitReconciliationEffects(finishedWork); 7398 if (flags & 8192) a: for (root = finishedWork.stateNode, root._visibility = existingHiddenCallbacks ? root._visibility & ~OffscreenVisible : root._visibility | OffscreenVisible, !existingHiddenCallbacks || null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || (recursivelyTraverseDisappearLayoutEffects(finishedWork), (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")), current = null, root = finishedWork;;) { 7399 if (5 === root.tag || 26 === root.tag) { 7400 if (null === current) { 7401 wasHidden = current = root; 7402 try { 7403 currentResource = wasHidden.stateNode, existingHiddenCallbacks ? runWithFiberInDEV(wasHidden, hideInstance, currentResource) : runWithFiberInDEV(wasHidden, unhideInstance, wasHidden.stateNode, wasHidden.memoizedProps); 7404 } catch (error) { 7405 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7406 } 7407 } 7408 } else if (6 === root.tag) { 7409 if (null === current) { 7410 wasHidden = root; 7411 try { 7412 maybeNodes = wasHidden.stateNode, existingHiddenCallbacks ? runWithFiberInDEV(wasHidden, hideTextInstance, maybeNodes) : runWithFiberInDEV(wasHidden, unhideTextInstance, maybeNodes, wasHidden.memoizedProps); 7413 } catch (error) { 7414 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7415 } 7416 } 7417 } else if (18 === root.tag) { 7418 if (null === current) { 7419 wasHidden = root; 7420 try { 7421 i = wasHidden.stateNode, existingHiddenCallbacks ? runWithFiberInDEV(wasHidden, hideDehydratedBoundary, i) : runWithFiberInDEV(wasHidden, unhideDehydratedBoundary, wasHidden.stateNode); 7422 } catch (error) { 7423 captureCommitPhaseError(wasHidden, wasHidden.return, error); 7424 } 7425 } 7426 } else if ((22 !== root.tag && 23 !== root.tag || null === root.memoizedState || root === finishedWork) && null !== root.child) { 7427 root.child.return = root; 7428 root = root.child; 7429 continue; 7430 } 7431 if (root === finishedWork) break a; 7432 for (; null === root.sibling;) { 7433 if (null === root.return || root.return === finishedWork) break a; 7434 current === root && (current = null); 7435 root = root.return; 7436 } 7437 current === root && (current = null); 7438 root.sibling.return = root.return; 7439 root = root.sibling; 7440 } 7441 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current)))); 7442 break; 7443 case 19: 7444 recursivelyTraverseMutationEffects(root, finishedWork); 7445 commitReconciliationEffects(finishedWork); 7446 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 7447 break; 7448 case 30: break; 7449 case 21: break; 7450 default: recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); 7451 } 7452 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors), null === finishedWork.alternate && null !== finishedWork.return && null !== finishedWork.return.alternate && .05 < componentEffectEndTime - componentEffectStartTime && (isHydratingParent(finishedWork.return.alternate, finishedWork.return) || logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Mount"))); 7453 popComponentEffectStart(prevEffectStart); 7454 popComponentEffectDuration(prevEffectDuration); 7455 componentEffectErrors = prevEffectErrors; 7456 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7457 } 7458 function commitReconciliationEffects(finishedWork) { 7459 var flags = finishedWork.flags; 7460 if (flags & 2) { 7461 try { 7462 runWithFiberInDEV(finishedWork, commitPlacement, finishedWork); 7463 } catch (error) { 7464 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7465 } 7466 finishedWork.flags &= -3; 7467 } 7468 flags & 4096 && (finishedWork.flags &= -4097); 7469 } 7470 function recursivelyResetForms(parentFiber) { 7471 if (parentFiber.subtreeFlags & 1024) for (parentFiber = parentFiber.child; null !== parentFiber;) { 7472 var fiber = parentFiber; 7473 recursivelyResetForms(fiber); 7474 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset(); 7475 parentFiber = parentFiber.sibling; 7476 } 7477 } 7478 function recursivelyTraverseLayoutEffects(root, parentFiber) { 7479 if (parentFiber.subtreeFlags & 8772) for (parentFiber = parentFiber.child; null !== parentFiber;) commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling; 7480 } 7481 function disappearLayoutEffects(finishedWork) { 7482 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(); 7483 switch (finishedWork.tag) { 7484 case 0: 7485 case 11: 7486 case 14: 7487 case 15: 7488 commitHookLayoutUnmountEffects(finishedWork, finishedWork.return, Layout); 7489 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7490 break; 7491 case 1: 7492 safelyDetachRef(finishedWork, finishedWork.return); 7493 var instance = finishedWork.stateNode; 7494 "function" === typeof instance.componentWillUnmount && safelyCallComponentWillUnmount(finishedWork, finishedWork.return, instance); 7495 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7496 break; 7497 case 27: runWithFiberInDEV(finishedWork, releaseSingletonInstance, finishedWork.stateNode); 7498 case 26: 7499 case 5: 7500 safelyDetachRef(finishedWork, finishedWork.return); 7501 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7502 break; 7503 case 22: 7504 null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); 7505 break; 7506 case 30: 7507 recursivelyTraverseDisappearLayoutEffects(finishedWork); 7508 break; 7509 default: recursivelyTraverseDisappearLayoutEffects(finishedWork); 7510 } 7511 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7512 popComponentEffectStart(prevEffectStart); 7513 popComponentEffectDuration(prevEffectDuration); 7514 componentEffectErrors = prevEffectErrors; 7515 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7516 } 7517 function recursivelyTraverseDisappearLayoutEffects(parentFiber) { 7518 for (parentFiber = parentFiber.child; null !== parentFiber;) disappearLayoutEffects(parentFiber), parentFiber = parentFiber.sibling; 7519 } 7520 function reappearLayoutEffects(finishedRoot, current, finishedWork, includeWorkInProgressEffects) { 7521 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), flags = finishedWork.flags; 7522 switch (finishedWork.tag) { 7523 case 0: 7524 case 11: 7525 case 15: 7526 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7527 commitHookLayoutEffects(finishedWork, Layout); 7528 break; 7529 case 1: 7530 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7531 current = finishedWork.stateNode; 7532 "function" === typeof current.componentDidMount && runWithFiberInDEV(finishedWork, callComponentDidMountInDEV, finishedWork, current); 7533 current = finishedWork.updateQueue; 7534 if (null !== current) { 7535 finishedRoot = finishedWork.stateNode; 7536 try { 7537 runWithFiberInDEV(finishedWork, commitHiddenCallbacks, current, finishedRoot); 7538 } catch (error) { 7539 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7540 } 7541 } 7542 includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork); 7543 safelyAttachRef(finishedWork, finishedWork.return); 7544 break; 7545 case 27: commitHostSingletonAcquisition(finishedWork); 7546 case 26: 7547 case 5: 7548 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7549 includeWorkInProgressEffects && null === current && flags & 4 && commitHostMount(finishedWork); 7550 safelyAttachRef(finishedWork, finishedWork.return); 7551 break; 7552 case 12: 7553 if (includeWorkInProgressEffects && flags & 4) { 7554 flags = pushNestedEffectDurations(); 7555 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7556 includeWorkInProgressEffects = finishedWork.stateNode; 7557 includeWorkInProgressEffects.effectDuration += bubbleNestedEffectDurations(flags); 7558 try { 7559 runWithFiberInDEV(finishedWork, commitProfiler, finishedWork, current, commitStartTime, includeWorkInProgressEffects.effectDuration); 7560 } catch (error) { 7561 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7562 } 7563 } else recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7564 break; 7565 case 31: 7566 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7567 includeWorkInProgressEffects && flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 7568 break; 7569 case 13: 7570 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7571 includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 7572 break; 7573 case 22: 7574 null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7575 safelyAttachRef(finishedWork, finishedWork.return); 7576 break; 7577 case 30: break; 7578 default: recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 7579 } 7580 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7581 popComponentEffectStart(prevEffectStart); 7582 popComponentEffectDuration(prevEffectDuration); 7583 componentEffectErrors = prevEffectErrors; 7584 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7585 } 7586 function recursivelyTraverseReappearLayoutEffects(finishedRoot, parentFiber, includeWorkInProgressEffects) { 7587 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); 7588 for (parentFiber = parentFiber.child; null !== parentFiber;) reappearLayoutEffects(finishedRoot, parentFiber.alternate, parentFiber, includeWorkInProgressEffects), parentFiber = parentFiber.sibling; 7589 } 7590 function commitOffscreenPassiveMountEffects(current, finishedWork) { 7591 var previousCache = null; 7592 null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (previousCache = current.memoizedState.cachePool.pool); 7593 current = null; 7594 null !== finishedWork.memoizedState && null !== finishedWork.memoizedState.cachePool && (current = finishedWork.memoizedState.cachePool.pool); 7595 current !== previousCache && (null != current && retainCache(current), null != previousCache && releaseCache(previousCache)); 7596 } 7597 function commitCachePassiveMountEffect(current, finishedWork) { 7598 current = null; 7599 null !== finishedWork.alternate && (current = finishedWork.alternate.memoizedState.cache); 7600 finishedWork = finishedWork.memoizedState.cache; 7601 finishedWork !== current && (retainCache(finishedWork), null != current && releaseCache(current)); 7602 } 7603 function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions, endTime) { 7604 if (parentFiber.subtreeFlags & 10256 || 0 !== parentFiber.actualDuration && (null === parentFiber.alternate || parentFiber.alternate.child !== parentFiber.child)) for (parentFiber = parentFiber.child; null !== parentFiber;) { 7605 var nextSibling = parentFiber.sibling; 7606 commitPassiveMountOnFiber(root, parentFiber, committedLanes, committedTransitions, null !== nextSibling ? nextSibling.actualStartTime : endTime); 7607 parentFiber = nextSibling; 7608 } 7609 } 7610 function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) { 7611 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), prevDeepEquality = alreadyWarnedForDeepEquality, flags = finishedWork.flags; 7612 switch (finishedWork.tag) { 7613 case 0: 7614 case 11: 7615 case 15: 7616 (finishedWork.mode & ProfileMode) !== NoMode && 0 < finishedWork.actualStartTime && 0 !== (finishedWork.flags & 1) && logComponentRender(finishedWork, finishedWork.actualStartTime, endTime, inHydratedSubtree, committedLanes); 7617 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7618 flags & 2048 && commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); 7619 break; 7620 case 1: 7621 (finishedWork.mode & ProfileMode) !== NoMode && 0 < finishedWork.actualStartTime && (0 !== (finishedWork.flags & 128) ? logComponentErrored(finishedWork, finishedWork.actualStartTime, endTime, []) : 0 !== (finishedWork.flags & 1) && logComponentRender(finishedWork, finishedWork.actualStartTime, endTime, inHydratedSubtree, committedLanes)); 7622 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7623 break; 7624 case 3: 7625 var prevProfilerEffectDuration = pushNestedEffectDurations(), wasInHydratedSubtree = inHydratedSubtree; 7626 inHydratedSubtree = null !== finishedWork.alternate && finishedWork.alternate.memoizedState.isDehydrated && 0 === (finishedWork.flags & 256); 7627 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7628 inHydratedSubtree = wasInHydratedSubtree; 7629 flags & 2048 && (committedLanes = null, null !== finishedWork.alternate && (committedLanes = finishedWork.alternate.memoizedState.cache), committedTransitions = finishedWork.memoizedState.cache, committedTransitions !== committedLanes && (retainCache(committedTransitions), null != committedLanes && releaseCache(committedLanes))); 7630 finishedRoot.passiveEffectDuration += popNestedEffectDurations(prevProfilerEffectDuration); 7631 break; 7632 case 12: 7633 if (flags & 2048) { 7634 flags = pushNestedEffectDurations(); 7635 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7636 finishedRoot = finishedWork.stateNode; 7637 finishedRoot.passiveEffectDuration += bubbleNestedEffectDurations(flags); 7638 try { 7639 runWithFiberInDEV(finishedWork, commitProfilerPostCommitImpl, finishedWork, finishedWork.alternate, commitStartTime, finishedRoot.passiveEffectDuration); 7640 } catch (error) { 7641 captureCommitPhaseError(finishedWork, finishedWork.return, error); 7642 } 7643 } else recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7644 break; 7645 case 31: 7646 flags = inHydratedSubtree; 7647 prevProfilerEffectDuration = null !== finishedWork.alternate ? finishedWork.alternate.memoizedState : null; 7648 wasInHydratedSubtree = finishedWork.memoizedState; 7649 null !== prevProfilerEffectDuration && null === wasInHydratedSubtree ? (wasInHydratedSubtree = finishedWork.deleti
7649ons, null !== wasInHydratedSubtree && 0 < wasInHydratedSubtree.length && 18 === wasInHydratedSubtree[0].tag ? (inHydratedSubtree = !1, prevProfilerEffectDuration = prevProfilerEffectDuration.hydrationErrors, null !== prevProfilerEffectDuration && logComponentErrored(finishedWork, finishedWork.actualStartTime, endTime, prevProfilerEffectDuration)) : inHydratedSubtree = !0) : inHydratedSubtree = !1; 7650 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7651 inHydratedSubtree = flags; 7652 break; 7653 case 13: 7654 flags = inHydratedSubtree; 7655 prevProfilerEffectDuration = null !== finishedWork.alternate ? finishedWork.alternate.memoizedState : null; 7656 wasInHydratedSubtree = finishedWork.memoizedState; 7657 null === prevProfilerEffectDuration || null === prevProfilerEffectDuration.dehydrated || null !== wasInHydratedSubtree && null !== wasInHydratedSubtree.dehydrated ? inHydratedSubtree = !1 : (wasInHydratedSubtree = finishedWork.deletions, null !== wasInHydratedSubtree && 0 < wasInHydratedSubtree.length && 18 === wasInHydratedSubtree[0].tag ? (inHydratedSubtree = !1, prevProfilerEffectDuration = prevProfilerEffectDuration.hydrationErrors, null !== prevProfilerEffectDuration && logComponentErrored(finishedWork, finishedWork.actualStartTime, endTime, prevProfilerEffectDuration)) : inHydratedSubtree = !0); 7658 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7659 inHydratedSubtree = flags; 7660 break; 7661 case 23: break; 7662 case 22: 7663 wasInHydratedSubtree = finishedWork.stateNode; 7664 prevProfilerEffectDuration = finishedWork.alternate; 7665 null !== finishedWork.memoizedState ? wasInHydratedSubtree._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) : wasInHydratedSubtree._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) : (wasInHydratedSubtree._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== finishedWork.actualDuration && (null === finishedWork.alternate || finishedWork.alternate.child !== finishedWork.child), endTime), (finishedWork.mode & ProfileMode) === NoMode || inHydratedSubtree || (finishedRoot = finishedWork.actualStartTime, 0 <= finishedRoot && .05 < endTime - finishedRoot && logComponentReappeared(finishedWork, finishedRoot, endTime), 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentReappeared(finishedWork, componentEffectStartTime, componentEffectEndTime))); 7666 flags & 2048 && commitOffscreenPassiveMountEffects(prevProfilerEffectDuration, finishedWork); 7667 break; 7668 case 24: 7669 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7670 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 7671 break; 7672 default: recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime); 7673 } 7674 if ((finishedWork.mode & ProfileMode) !== NoMode) { 7675 if (finishedRoot = !inHydratedSubtree && null === finishedWork.alternate && null !== finishedWork.return && null !== finishedWork.return.alternate) committedLanes = finishedWork.actualStartTime, 0 <= committedLanes && .05 < endTime - committedLanes && logComponentTrigger(finishedWork, committedLanes, endTime, "Mount"); 7676 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && ((componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors), finishedRoot && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Mount")); 7677 }
vendor: 24,711 bytes, lines 7678-8042
7678 popComponentEffectStart(prevEffectStart); 7679 popComponentEffectDuration(prevEffectDuration); 7680 componentEffectErrors = prevEffectErrors; 7681 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7682 alreadyWarnedForDeepEquality = prevDeepEquality; 7683 } 7684 function recursivelyTraverseReconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime) { 7685 includeWorkInProgressEffects = includeWorkInProgressEffects && (0 !== (parentFiber.subtreeFlags & 10256) || 0 !== parentFiber.actualDuration && (null === parentFiber.alternate || parentFiber.alternate.child !== parentFiber.child)); 7686 for (parentFiber = parentFiber.child; null !== parentFiber;) { 7687 var nextSibling = parentFiber.sibling; 7688 reconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects, null !== nextSibling ? nextSibling.actualStartTime : endTime); 7689 parentFiber = nextSibling; 7690 } 7691 } 7692 function reconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime) { 7693 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(), prevDeepEquality = alreadyWarnedForDeepEquality; 7694 includeWorkInProgressEffects && (finishedWork.mode & ProfileMode) !== NoMode && 0 < finishedWork.actualStartTime && 0 !== (finishedWork.flags & 1) && logComponentRender(finishedWork, finishedWork.actualStartTime, endTime, inHydratedSubtree, committedLanes); 7695 var flags = finishedWork.flags; 7696 switch (finishedWork.tag) { 7697 case 0: 7698 case 11: 7699 case 15: 7700 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime); 7701 commitHookPassiveMountEffects(finishedWork, Passive); 7702 break; 7703 case 23: break; 7704 case 22: 7705 var _instance2 = finishedWork.stateNode; 7706 null !== finishedWork.memoizedState ? _instance2._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, endTime) : (_instance2._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime)); 7707 includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects(finishedWork.alternate, finishedWork); 7708 break; 7709 case 24: 7710 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime); 7711 includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 7712 break; 7713 default: recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects, endTime); 7714 } 7715 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7716 popComponentEffectStart(prevEffectStart); 7717 popComponentEffectDuration(prevEffectDuration); 7718 componentEffectErrors = prevEffectErrors; 7719 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7720 alreadyWarnedForDeepEquality = prevDeepEquality; 7721 } 7722 function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber, committedLanes$jscomp$0, committedTransitions$jscomp$0, endTime$jscomp$0) { 7723 if (parentFiber.subtreeFlags & 10256 || 0 !== parentFiber.actualDuration && (null === parentFiber.alternate || parentFiber.alternate.child !== parentFiber.child)) for (var child = parentFiber.child; null !== child;) { 7724 parentFiber = child.sibling; 7725 var finishedRoot = finishedRoot$jscomp$0, committedLanes = committedLanes$jscomp$0, committedTransitions = committedTransitions$jscomp$0, endTime = null !== parentFiber ? parentFiber.actualStartTime : endTime$jscomp$0, prevDeepEquality = alreadyWarnedForDeepEquality; 7726 (child.mode & ProfileMode) !== NoMode && 0 < child.actualStartTime && 0 !== (child.flags & 1) && logComponentRender(child, child.actualStartTime, endTime, inHydratedSubtree, committedLanes); 7727 var flags = child.flags; 7728 switch (child.tag) { 7729 case 22: 7730 recursivelyTraverseAtomicPassiveEffects(finishedRoot, child, committedLanes, committedTransitions, endTime); 7731 flags & 2048 && commitOffscreenPassiveMountEffects(child.alternate, child); 7732 break; 7733 case 24: 7734 recursivelyTraverseAtomicPassiveEffects(finishedRoot, child, committedLanes, committedTransitions, endTime); 7735 flags & 2048 && commitCachePassiveMountEffect(child.alternate, child); 7736 break; 7737 default: recursivelyTraverseAtomicPassiveEffects(finishedRoot, child, committedLanes, committedTransitions, endTime); 7738 } 7739 alreadyWarnedForDeepEquality = prevDeepEquality; 7740 child = parentFiber; 7741 } 7742 } 7743 function recursivelyAccumulateSuspenseyCommit(parentFiber, committedLanes, suspendedState) { 7744 if (parentFiber.subtreeFlags & suspenseyCommitFlag) for (parentFiber = parentFiber.child; null !== parentFiber;) accumulateSuspenseyCommitOnFiber(parentFiber, committedLanes, suspendedState), parentFiber = parentFiber.sibling; 7745 } 7746 function accumulateSuspenseyCommitOnFiber(fiber, committedLanes, suspendedState) { 7747 switch (fiber.tag) { 7748 case 26: 7749 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 7750 fiber.flags & suspenseyCommitFlag && null !== fiber.memoizedState && suspendResource(suspendedState, currentHoistableRoot, fiber.memoizedState, fiber.memoizedProps); 7751 break; 7752 case 5: 7753 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 7754 break; 7755 case 3: 7756 case 4: 7757 var previousHoistableRoot = currentHoistableRoot; 7758 currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo); 7759 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 7760 currentHoistableRoot = previousHoistableRoot; 7761 break; 7762 case 22: 7763 null === fiber.memoizedState && (previousHoistableRoot = fiber.alternate, null !== previousHoistableRoot && null !== previousHoistableRoot.memoizedState ? (previousHoistableRoot = suspenseyCommitFlag, suspenseyCommitFlag = 16777216, recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState), suspenseyCommitFlag = previousHoistableRoot) : recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState)); 7764 break; 7765 default: recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 7766 } 7767 } 7768 function detachAlternateSiblings(parentFiber) { 7769 var previousFiber = parentFiber.alternate; 7770 if (null !== previousFiber && (parentFiber = previousFiber.child, null !== parentFiber)) { 7771 previousFiber.child = null; 7772 do 7773 previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber; 7774 while (null !== parentFiber); 7775 } 7776 } 7777 function recursivelyTraversePassiveUnmountEffects(parentFiber) { 7778 var deletions = parentFiber.deletions; 7779 if (0 !== (parentFiber.flags & 16)) { 7780 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 7781 var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart(); 7782 nextEffect = childToDelete; 7783 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 7784 (childToDelete.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(childToDelete, componentEffectStartTime, componentEffectEndTime, "Unmount"); 7785 popComponentEffectStart(prevEffectStart); 7786 } 7787 detachAlternateSiblings(parentFiber); 7788 } 7789 if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber;) commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling; 7790 } 7791 function commitPassiveUnmountOnFiber(finishedWork) { 7792 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(); 7793 switch (finishedWork.tag) { 7794 case 0: 7795 case 11: 7796 case 15: 7797 recursivelyTraversePassiveUnmountEffects(finishedWork); 7798 finishedWork.flags & 2048 && commitHookPassiveUnmountEffects(finishedWork, finishedWork.return, Passive | HasEffect); 7799 break; 7800 case 3: 7801 var prevProfilerEffectDuration = pushNestedEffectDurations(); 7802 recursivelyTraversePassiveUnmountEffects(finishedWork); 7803 finishedWork.stateNode.passiveEffectDuration += popNestedEffectDurations(prevProfilerEffectDuration); 7804 break; 7805 case 12: 7806 prevProfilerEffectDuration = pushNestedEffectDurations(); 7807 recursivelyTraversePassiveUnmountEffects(finishedWork); 7808 finishedWork.stateNode.passiveEffectDuration += bubbleNestedEffectDurations(prevProfilerEffectDuration); 7809 break; 7810 case 22: 7811 prevProfilerEffectDuration = finishedWork.stateNode; 7812 null !== finishedWork.memoizedState && prevProfilerEffectDuration._visibility & OffscreenPassiveEffectsConnected && (null === finishedWork.return || 13 !== finishedWork.return.tag) ? (prevProfilerEffectDuration._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork), (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(finishedWork, componentEffectStartTime, componentEffectEndTime, "Disconnect")) : recursivelyTraversePassiveUnmountEffects(finishedWork); 7813 break; 7814 default: recursivelyTraversePassiveUnmountEffects(finishedWork); 7815 } 7816 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7817 popComponentEffectStart(prevEffectStart); 7818 popComponentEffectDuration(prevEffectDuration); 7819 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7820 componentEffectErrors = prevEffectErrors; 7821 } 7822 function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { 7823 var deletions = parentFiber.deletions; 7824 if (0 !== (parentFiber.flags & 16)) { 7825 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 7826 var childToDelete = deletions[i], prevEffectStart = pushComponentEffectStart(); 7827 nextEffect = childToDelete; 7828 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 7829 (childToDelete.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && .05 < componentEffectEndTime - componentEffectStartTime && logComponentTrigger(childToDelete, componentEffectStartTime, componentEffectEndTime, "Unmount"); 7830 popComponentEffectStart(prevEffectStart); 7831 } 7832 detachAlternateSiblings(parentFiber); 7833 } 7834 for (parentFiber = parentFiber.child; null !== parentFiber;) disconnectPassiveEffect(parentFiber), parentFiber = parentFiber.sibling; 7835 } 7836 function disconnectPassiveEffect(finishedWork) { 7837 var prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(); 7838 switch (finishedWork.tag) { 7839 case 0: 7840 case 11: 7841 case 15: 7842 commitHookPassiveUnmountEffects(finishedWork, finishedWork.return, Passive); 7843 recursivelyTraverseDisconnectPassiveEffects(finishedWork); 7844 break; 7845 case 22: 7846 var instance = finishedWork.stateNode; 7847 instance._visibility & OffscreenPassiveEffectsConnected && (instance._visibility &= ~OffscreenPassiveEffectsConnected, recursivelyTraverseDisconnectPassiveEffects(finishedWork)); 7848 break; 7849 default: recursivelyTraverseDisconnectPassiveEffects(finishedWork); 7850 } 7851 (finishedWork.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(finishedWork, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7852 popComponentEffectStart(prevEffectStart); 7853 popComponentEffectDuration(prevEffectDuration); 7854 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7855 componentEffectErrors = prevEffectErrors; 7856 } 7857 function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor$jscomp$0) { 7858 for (; null !== nextEffect;) { 7859 var fiber = nextEffect, current = fiber, nearestMountedAncestor = nearestMountedAncestor$jscomp$0, prevEffectStart = pushComponentEffectStart(), prevEffectDuration = pushComponentEffectDuration(), prevEffectErrors = pushComponentEffectErrors(), prevEffectDidSpawnUpdate = pushComponentEffectDidSpawnUpdate(); 7860 switch (current.tag) { 7861 case 0: 7862 case 11: 7863 case 15: 7864 commitHookPassiveUnmountEffects(current, nearestMountedAncestor, Passive); 7865 break; 7866 case 23: 7867 case 22: 7868 null !== current.memoizedState && null !== current.memoizedState.cachePool && (nearestMountedAncestor = current.memoizedState.cachePool.pool, null != nearestMountedAncestor && retainCache(nearestMountedAncestor)); 7869 break; 7870 case 24: releaseCache(current.memoizedState.cache); 7871 } 7872 (current.mode & ProfileMode) !== NoMode && 0 <= componentEffectStartTime && 0 <= componentEffectEndTime && (componentEffectSpawnedUpdate || .05 < componentEffectDuration) && logComponentEffect(current, componentEffectStartTime, componentEffectEndTime, componentEffectDuration, componentEffectErrors); 7873 popComponentEffectStart(prevEffectStart); 7874 popComponentEffectDuration(prevEffectDuration); 7875 componentEffectSpawnedUpdate = prevEffectDidSpawnUpdate; 7876 componentEffectErrors = prevEffectErrors; 7877 current = fiber.child; 7878 if (null !== current) current.return = fiber, nextEffect = current; 7879 else a: for (fiber = deletedSubtreeRoot; null !== nextEffect;) { 7880 current = nextEffect; 7881 prevEffectStart = current.sibling; 7882 prevEffectDuration = current.return; 7883 detachFiberAfterEffects(current); 7884 if (current === fiber) { 7885 nextEffect = null; 7886 break a; 7887 } 7888 if (null !== prevEffectStart) { 7889 prevEffectStart.return = prevEffectDuration; 7890 nextEffect = prevEffectStart; 7891 break a; 7892 } 7893 nextEffect = prevEffectDuration; 7894 } 7895 } 7896 } 7897 function onCommitRoot() { 7898 commitHooks.forEach(function(commitHook) { 7899 return commitHook(); 7900 }); 7901 } 7902 function isConcurrentActEnvironment() { 7903 var isReactActEnvironmentGlobal = "undefined" !== typeof IS_REACT_ACT_ENVIRONMENT ? IS_REACT_ACT_ENVIRONMENT : void 0; 7904 isReactActEnvironmentGlobal || null === ReactSharedInternals.actQueue || console.error("The current testing environment is not configured to support act(...)"); 7905 return isReactActEnvironmentGlobal; 7906 } 7907 function requestUpdateLane(fiber) { 7908 if ((executionContext & RenderContext) !== NoContext && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; 7909 var transition = ReactSharedInternals.T; 7910 return null !== transition ? (transition._updatedFibers || (transition._updatedFibers = /* @__PURE__ */ new Set()), transition._updatedFibers.add(fiber), requestTransitionLane()) : resolveUpdatePriority(); 7911 } 7912 function requestDeferredLane() { 7913 if (0 === workInProgressDeferredLane) if (0 === (workInProgressRootRenderLanes & 536870912) || isHydrating) { 7914 var lane = nextTransitionDeferredLane; 7915 nextTransitionDeferredLane <<= 1; 7916 0 === (nextTransitionDeferredLane & 3932160) && (nextTransitionDeferredLane = 262144); 7917 workInProgressDeferredLane = lane; 7918 } else workInProgressDeferredLane = 536870912; 7919 lane = suspenseHandlerStackCursor.current; 7920 null !== lane && (lane.flags |= 32); 7921 return workInProgressDeferredLane; 7922 } 7923 function scheduleUpdateOnFiber(root, fiber, lane) { 7924 isRunningInsertionEffect && console.error("useInsertionEffect must not schedule updates."); 7925 isFlushingPassiveEffects && (didScheduleUpdateDuringPassiveEffects = !0); 7926 if (root === workInProgressRoot && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root.cancelPendingCommit) prepareFreshStack(root, 0), markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 7927 markRootUpdated$1(root, lane); 7928 if ((executionContext & RenderContext) !== NoContext && root === workInProgressRoot) { 7929 if (isRendering) switch (fiber.tag) { 7930 case 0: 7931 case 11: 7932 case 15: 7933 root = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; 7934 didWarnAboutUpdateInRenderForAnotherComponent.has(root) || (didWarnAboutUpdateInRenderForAnotherComponent.add(root), fiber = getComponentNameFromFiber(fiber) || "Unknown", console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", fiber, root, root)); 7935 break; 7936 case 1: didWarnAboutUpdateInRender || (console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), didWarnAboutUpdateInRender = !0); 7937 } 7938 } else isDevToolsPresent && addFiberToLanesMap(root, fiber, lane), warnIfUpdatesNotWrappedWithActDEV(fiber), root === workInProgressRoot && ((executionContext & RenderContext) === NoContext && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === RootSuspendedWithDelay && markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1)), ensureRootIsScheduled(root); 7939 } 7940 function performWorkOnRoot(root, lanes, forceSync) { 7941 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); 7942 if (0 !== workInProgressRootRenderLanes && null !== workInProgress) { 7943 var yieldedFiber = workInProgress, yieldEndTime = now$1(); 7944 switch (yieldReason) { 7945 case SuspendedOnImmediate: 7946 case SuspendedOnData: 7947 var startTime = yieldStartTime; 7948 supportsUserTiming && ((yieldedFiber = yieldedFiber._debugTask) ? yieldedFiber.run(console.timeStamp.bind(console, "Suspended", startTime, yieldEndTime, COMPONENTS_TRACK, void 0, "primary-light")) : console.timeStamp("Suspended", startTime, yieldEndTime, COMPONENTS_TRACK, void 0, "primary-light")); 7949 break; 7950 case SuspendedOnAction: 7951 startTime = yieldStartTime; 7952 supportsUserTiming && ((yieldedFiber = yieldedFiber._debugTask) ? yieldedFiber.run(console.timeStamp.bind(console, "Action", startTime, yieldEndTime, COMPONENTS_TRACK, void 0, "primary-light")) : console.timeStamp("Action", startTime, yieldEndTime, COMPONENTS_TRACK, void 0, "primary-light")); 7953 break; 7954 default: supportsUserTiming && (yieldedFiber = yieldEndTime - yieldStartTime, 3 > yieldedFiber || console.timeStamp("Blocked", yieldStartTime, yieldEndTime, COMPONENTS_TRACK, void 0, 5 > yieldedFiber ? "primary-light" : 10 > yieldedFiber ? "primary" : 100 > yieldedFiber ? "primary-dark" : "error")); 7955 } 7956 } 7957 startTime = (forceSync = !forceSync && 0 === (lanes & 127) && 0 === (lanes & root.expiredLanes) || checkIfRootIsPrerendering(root, lanes)) ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0); 7958 var renderWasConcurrent = forceSync; 7959 do { 7960 if (startTime === RootInProgress) { 7961 workInProgressRootIsPrerendering && !forceSync && markRootSuspended(root, lanes, 0, !1); 7962 lanes = workInProgressSuspendedReason; 7963 yieldStartTime = now(); 7964 yieldReason = lanes; 7965 break; 7966 } else { 7967 yieldedFiber = now$1(); 7968 yieldEndTime = root.current.alternate; 7969 if (renderWasConcurrent && !isRenderConsistentWithExternalStores(yieldEndTime)) { 7970 setCurrentTrackFromLanes(lanes); 7971 yieldEndTime = renderStartTime; 7972 startTime = yieldedFiber; 7973 !supportsUserTiming || startTime <= yieldEndTime || (workInProgressUpdateTask ? workInProgressUpdateTask.run(console.timeStamp.bind(console, "Teared Render", yieldEndTime, startTime, currentTrack, LANES_TRACK_GROUP, "error")) : console.timeStamp("Teared Render", yieldEndTime, startTime, currentTrack, LANES_TRACK_GROUP, "error")); 7974 finalizeRender(lanes, yieldedFiber); 7975 startTime = renderRootSync(root, lanes, !1); 7976 renderWasConcurrent = !1; 7977 continue; 7978 } 7979 if (startTime === RootErrored) { 7980 renderWasConcurrent = lanes; 7981 if (root.errorRecoveryDisabledLanes & renderWasConcurrent) var errorRetryLanes = 0; 7982 else errorRetryLanes = root.pendingLanes & -536870913, errorRetryLanes = 0 !== errorRetryLanes ? errorRetryLanes : errorRetryLanes & 536870912 ? 536870912 : 0; 7983 if (0 !== errorRetryLanes) { 7984 setCurrentTrackFromLanes(lanes); 7985 logErroredRenderPhase(renderStartTime, yieldedFiber, lanes, workInProgressUpdateTask); 7986 finalizeRender(lanes, yieldedFiber); 7987 lanes = errorRetryLanes; 7988 a: { 7989 yieldedFiber = root; 7990 startTime = renderWasConcurrent; 7991 renderWasConcurrent = workInProgressRootConcurrentErrors; 7992 var wasRootDehydrated = yieldedFiber.current.memoizedState.isDehydrated; 7993 wasRootDehydrated && (prepareFreshStack(yieldedFiber, errorRetryLanes).flags |= 256); 7994 errorRetryLanes = renderRootSync(yieldedFiber, errorRetryLanes, !1); 7995 if (errorRetryLanes !== RootErrored) { 7996 if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) { 7997 yieldedFiber.errorRecoveryDisabledLanes |= startTime; 7998 workInProgressRootInterleavedUpdatedLanes |= startTime; 7999 startTime = RootSuspendedWithDelay; 8000 break a; 8001 } 8002 yieldedFiber = workInProgressRootRecoverableErrors; 8003 workInProgressRootRecoverableErrors = renderWasConcurrent; 8004 null !== yieldedFiber && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = yieldedFiber : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, yieldedFiber)); 8005 } 8006 startTime = errorRetryLanes; 8007 } 8008 renderWasConcurrent = !1; 8009 if (startTime !== RootErrored) continue; 8010 else yieldedFiber = now$1(); 8011 } 8012 } 8013 if (startTime === RootFatalErrored) { 8014 setCurrentTrackFromLanes(lanes); 8015 logErroredRenderPhase(renderStartTime, yieldedFiber, lanes, workInProgressUpdateTask); 8016 finalizeRender(lanes, yieldedFiber); 8017 prepareFreshStack(root, 0); 8018 markRootSuspended(root, lanes, 0, !0); 8019 break; 8020 } 8021 a: { 8022 forceSync = root; 8023 switch (startTime) { 8024 case RootInProgress: 8025 case RootFatalErrored: throw Error("Root did not complete. This is a bug in React."); 8026 case RootSuspendedWithDelay: if ((lanes & 4194048) !== lanes) break; 8027 case RootSuspendedAtTheShell: 8028 setCurrentTrackFromLanes(lanes); 8029 logSuspendedRenderPhase(renderStartTime, yieldedFiber, lanes, workInProgressUpdateTask); 8030 finalizeRender(lanes, yieldedFiber); 8031 yieldEndTime = lanes; 8032 0 !== (yieldEndTime & 127) ? blockingSuspendedTime = yieldedFiber : 0 !== (yieldEndTime & 4194048) && (transitionSuspendedTime = yieldedFiber); 8033 markRootSuspended(forceSync, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings); 8034 break a; 8035 case RootErrored: 8036 workInProgressRootRecoverableErrors = null; 8037 break; 8038 case RootSuspended: 8039 case RootCompleted: break; 8040 default: throw Error("Unknown root exit status."); 8041 } 8042 if (null !== ReactSharedInternals.actQueue) commitRoot(forceSync, yieldEndTime, lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpd
8042ate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, startTime, null, null, renderStartTime, yieldedFiber); 8043 else { 8044 if ((lanes & 62914560) === lanes && (renderWasConcurrent = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(), 10 < renderWasConcurrent)) { 8045 markRootSuspended(forceSync, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings); 8046 if (0 !== getNextLanes(forceSync, 0, !0)) break a; 8047 pendingEffectsLanes = lanes; 8048 forceSync.timeoutHandle = scheduleTimeout(commitRootWhenReady.bind(null, forceSync, yieldEndTime, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, startTime, "Throttled", renderStartTime, yieldedFiber), renderWasConcurrent); 8049 break a; 8050 } 8051 commitRootWhenReady(forceSync, yieldEndTime, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, startTime, null, renderStartTime, yieldedFiber); 8052 } 8053 } 8054 } 8055 break; 8056 } while (1); 8057 ensureRootIsScheduled(root); 8058 } 8059 function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) { 8060 root.timeoutHandle = noTimeout; 8061 var subtreeFlags = finishedWork.subtreeFlags, suspendedState = null; 8062 if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) { 8063 if (suspendedState = { 8064 stylesheets: null, 8065 count: 0, 8066 imgCount: 0, 8067 imgBytes: 0, 8068 suspenseyImages: [], 8069 waitingForImages: !0, 8070 waitingForViewTransition: !1, 8071 unsuspend: noop$1 8072 }, accumulateSuspenseyCommitOnFiber(finishedWork, lanes, suspendedState), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now$1() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now$1() : 0, subtreeFlags = waitForCommitToBeReady(suspendedState, subtreeFlags), null !== subtreeFlags) { 8073 pendingEffectsLanes = lanes; 8074 root.cancelPendingCommit = subtreeFlags(commitRoot.bind(null, root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, suspendedState, suspendedState.waitingForViewTransition ? "Waiting for the previous Animation" : 0 < suspendedState.count ? 0 < suspendedState.imgCount ? "Suspended on CSS and Images" : "Suspended on CSS" : 1 === suspendedState.imgCount ? "Suspended on an Image" : 0 < suspendedState.imgCount ? "Suspended on Images" : null, completedRenderStartTime, completedRenderEndTime)); 8075 markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); 8076 return; 8077 } 8078 } 8079 commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, suspendedState, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime); 8080 } 8081 function isRenderConsistentWithExternalStores(finishedWork) { 8082 for (var node = finishedWork;;) { 8083 var tag = node.tag; 8084 if ((0 === tag || 11 === tag || 15 === tag) && node.flags & 16384 && (tag = node.updateQueue, null !== tag && (tag = tag.stores, null !== tag))) for (var i = 0; i < tag.length; i++) { 8085 var check = tag[i], getSnapshot = check.getSnapshot; 8086 check = check.value; 8087 try { 8088 if (!objectIs(getSnapshot(), check)) return !1; 8089 } catch (error) { 8090 return !1; 8091 } 8092 } 8093 tag = node.child; 8094 if (node.subtreeFlags & 16384 && null !== tag) tag.return = node, node = tag; 8095 else { 8096 if (node === finishedWork) break; 8097 for (; null === node.sibling;) { 8098 if (null === node.return || node.return === finishedWork) return !0; 8099 node = node.return; 8100 } 8101 node.sibling.return = node.return; 8102 node = node.sibling; 8103 } 8104 } 8105 return !0; 8106 } 8107 function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) { 8108 suspendedLanes &= ~workInProgressRootPingedLanes;
vendor: 5,490 bytes, lines 8109-8176
8109 suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; 8110 root.suspendedLanes |= suspendedLanes; 8111 root.pingedLanes &= ~suspendedLanes; 8112 didAttemptEntireTree && (root.warmLanes |= suspendedLanes); 8113 didAttemptEntireTree = root.expirationTimes; 8114 for (var lanes = suspendedLanes; 0 < lanes;) { 8115 var index = 31 - clz32(lanes), lane = 1 << index; 8116 didAttemptEntireTree[index] = -1; 8117 lanes &= ~lane; 8118 } 8119 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes); 8120 } 8121 function flushSyncWork$1() { 8122 return (executionContext & (RenderContext | CommitContext)) === NoContext ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; 8123 } 8124 function resetWorkInProgressStack() { 8125 if (null !== workInProgress) { 8126 if (workInProgressSuspendedReason === NotSuspended) var interruptedWork = workInProgress.return; 8127 else interruptedWork = workInProgress, resetContextDependencies(), resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress; 8128 for (; null !== interruptedWork;) unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return; 8129 workInProgress = null; 8130 } 8131 } 8132 function finalizeRender(lanes, finalizationTime) { 8133 0 !== (lanes & 127) && (blockingClampTime = finalizationTime); 8134 0 !== (lanes & 4194048) && (transitionClampTime = finalizationTime); 8135 0 !== (lanes & 62914560) && (retryClampTime = finalizationTime); 8136 0 !== (lanes & 2080374784) && (idleClampTime = finalizationTime); 8137 } 8138 function prepareFreshStack(root, lanes) { 8139 supportsUserTiming && (console.timeStamp("Blocking Track", .003, .003, "Blocking", LANES_TRACK_GROUP, "primary-light"), console.timeStamp("Transition Track", .003, .003, "Transition", LANES_TRACK_GROUP, "primary-light"), console.timeStamp("Suspense Track", .003, .003, "Suspense", LANES_TRACK_GROUP, "primary-light"), console.timeStamp("Idle Track", .003, .003, "Idle", LANES_TRACK_GROUP, "primary-light")); 8140 var previousRenderStartTime = renderStartTime; 8141 renderStartTime = now(); 8142 if (0 !== workInProgressRootRenderLanes && 0 < previousRenderStartTime) { 8143 setCurrentTrackFromLanes(workInProgressRootRenderLanes); 8144 if (workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootSuspendedWithDelay) logSuspendedRenderPhase(previousRenderStartTime, renderStartTime, lanes, workInProgressUpdateTask); 8145 else { 8146 var endTime = renderStartTime, debugTask = workInProgressUpdateTask; 8147 if (supportsUserTiming && !(endTime <= previousRenderStartTime)) { 8148 var color = (lanes & 738197653) === lanes ? "tertiary-dark" : "primary-dark", label = (lanes & 536870912) === lanes ? "Prewarm" : (lanes & 201326741) === lanes ? "Interrupted Hydration" : "Interrupted Render"; 8149 debugTask ? debugTask.run(console.timeStamp.bind(console, label, previousRenderStartTime, endTime, currentTrack, LANES_TRACK_GROUP, color)) : console.timeStamp(label, previousRenderStartTime, endTime, currentTrack, LANES_TRACK_GROUP, color); 8150 } 8151 } 8152 finalizeRender(workInProgressRootRenderLanes, renderStartTime); 8153 } 8154 previousRenderStartTime = workInProgressUpdateTask; 8155 workInProgressUpdateTask = null; 8156 if (0 !== (lanes & 127)) { 8157 workInProgressUpdateTask = blockingUpdateTask; 8158 debugTask = 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime ? blockingClampTime : blockingUpdateTime; 8159 endTime = 0 <= blockingEventTime && blockingEventTime < blockingClampTime ? blockingClampTime : blockingEventTime; 8160 color = 0 <= endTime ? endTime : 0 <= debugTask ? debugTask : renderStartTime; 8161 0 <= blockingSuspendedTime ? (setCurrentTrackFromLanes(2), logSuspendedWithDelayPhase(blockingSuspendedTime, color, lanes, previousRenderStartTime)) : 0 !== (animatingLanes & 127) && (setCurrentTrackFromLanes(2), logAnimatingPhase(blockingClampTime, color, animatingTask)); 8162 previousRenderStartTime = debugTask; 8163 var eventTime = endTime, eventType = blockingEventType, eventIsRepeat = 0 < blockingEventRepeatTime, isSpawnedUpdate = blockingUpdateType === SPAWNED_UPDATE, isPingedUpdate = blockingUpdateType === PINGED_UPDATE; 8164 debugTask = renderStartTime; 8165 endTime = blockingUpdateTask; 8166 color = blockingUpdateMethodName; 8167 label = blockingUpdateComponentName; 8168 if (supportsUserTiming) { 8169 currentTrack = "Blocking"; 8170 0 < previousRenderStartTime ? previousRenderStartTime > debugTask && (previousRenderStartTime = debugTask) : previousRenderStartTime = debugTask; 8171 0 < eventTime ? eventTime > previousRenderStartTime && (eventTime = previousRenderStartTime) : eventTime = previousRenderStartTime; 8172 if (null !== eventType && previousRenderStartTime > eventTime) { 8173 var color$jscomp$0 = eventIsRepeat ? "secondary-light" : "warning"; 8174 endTime ? endTime.run(console.timeStamp.bind(console, eventIsRepeat ? "Consecutive" : "Event: " + eventType, eventTime, previousRenderStartTime, currentTrack, LANES_TRACK_GROUP, color$jscomp$0)) : console.timeStamp(eventIsRepeat ? "Consecutive" : "Event: " + eventType, eventTime, previousRenderStartTime, currentTrack, LANES_TRACK_GROUP, color$jscomp$0); 8175 } 8176 debugTask > previousRenderStartTime && (eventTime = isSpawnedUpdate ? "error" : (lanes & 738197653) === lanes ? "tertiary-light" : "primary-light", isSpawnedUpdate = isPingedUpdate ? "Promise Resolved" : isSpawnedUpdate ? "Cascading Update" : 5 < debugTask - previousRenderStartTime ? "Upd
vendor: 3,360 bytes, lines 8176-8195
8176ate Blocked" : "Update", isPingedUpdate = [], null != label && isPingedUpdate.push(["Component name", label]), null != color && isPingedUpdate.push(["Method name", color]), previousRenderStartTime = { 8177 start: previousRenderStartTime, 8178 end: debugTask, 8179 detail: { devtools: { 8180 properties: isPingedUpdate, 8181 track: currentTrack, 8182 trackGroup: LANES_TRACK_GROUP, 8183 color: eventTime 8184 } } 8185 }, endTime ? endTime.run(performance.measure.bind(performance, isSpawnedUpdate, previousRenderStartTime)) : performance.measure(isSpawnedUpdate, previousRenderStartTime)); 8186 } 8187 blockingUpdateTime = -1.1; 8188 blockingUpdateType = 0; 8189 blockingUpdateComponentName = blockingUpdateMethodName = null; 8190 blockingSuspendedTime = -1.1; 8191 blockingEventRepeatTime = blockingEventTime; 8192 blockingEventTime = -1.1; 8193 blockingClampTime = now(); 8194 } 8195 0 !== (lanes & 4194048) && (workInProgressUpdateTask = transitionUpdateTask, debugTask = 0 <= transitionStartTime && transitionStartTime < transitionClampTime ? transitionClampTime : transitionStartTime, previousRenderStartTime = 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime ? transitionClampTime : transitionUpdateTime, endTime = 0 <= transitionEventTime && transitionEventTime < transitionClampTime ? transitionClampTime : transitionEventTime, color = 0 <= endTime ? endTime : 0 <= previousRenderStartTime ? previousRenderStartTime : renderStartTime, 0 <= transitionSuspendedTime ? (setCurrentTrackFromLanes(256), logSuspendedWithDelayPhase(transitionSuspendedTime, color, lanes, workInProgressUpdateTask)) : 0 !== (animatingLanes & 4194048) && (setCurrentTrackFromLanes(256), logAnimatingPhase(transitionClampTime, color, animatingTask)), isPingedUpdate = endTime, eventTime = transitionEventType, eventType = 0 < transitionEventRepeatTime, eventIsRepeat = transitionUpdateType === PINGED_UPDATE, color = renderStartTime, endTime = transitionUpdateTask, label = transitionUpdateMethodName, isSpawnedUpdate = transitionUpdateComponentName, supportsUserTiming && (currentTrack = "Transition", 0 < previousRenderStartTime ? previousRenderStartTime > color && (previousRenderStartTime = color) : previousRenderStartTime = color, 0 < debugTask ? debugTask > previousRenderStartTime && (debugTask = previousRenderStartTime) : debugTask = previousRenderStartTime, 0 < isPingedUpdate ? isPingedUpdate > debugTask && (isPingedUpdate = debugTask) : isPingedUpdate = debugTask, debugTask > isPingedUpdate && null !== eventTime && (color$jscomp$0 = eventType ? "secondary-light" : "warning", endTime ? endTime.run(console.timeStamp.bind(console, eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, LANES_TRACK_GROUP, color$jscomp$0)) : console.timeStamp(eventType ? "Consecutive" : "Event: " + eventTime, isPingedUpdate, debugTask, currentTrack, LANES_TRACK_GROUP, color$jscomp$0)), previousRenderStartTime > debugTask && (endTime ? endTime.run(console.timeStamp.bind(console, "Action", debugTask, previousRenderStartTime, currentTrack, LANES_TRACK_GROUP, "primary-dark")) : console.timeStamp("Action", debugTask, previousRenderStartTime, currentTrack, LANES_TRACK_GROUP, "primary-dark")), color > previousRenderStartTime && (debugTask = eventIsRepeat ? "Promise Resolved" : 5 < color - previousRenderStartTime ? "Upd
8195ate Blocked" : "Update", isPingedUpdate = [], null != isSpawnedUpdate && isPingedUpdate.push(["Component name", isSpawnedUpdate]), null != label && isPingedUpdate.push(["Method name", label]), previousRenderStartTime = { 8196 start: previousRenderStartTime, 8197 end: color, 8198 detail: { devtools: { 8199 properties: isPingedUpdate, 8200 track: currentTrack, 8201 trackGroup: LANES_TRACK_GROUP, 8202 color: "primary-light" 8203 } } 8204 }, endTime ? endTime.run(performance.measure.bind(performance, debugTask, previousRenderStartTime)) : performance.measure(debugTask, previousRenderStartTime))), transitionUpdateTime = transitionStartTime = -1.1, transitionUpdateType = 0, transitionSuspendedTime = -1.1, transitionEventRepeatTime = transitionEventTime, transitionEventTime = -1.1, transitionClampTime = now()); 8205 0 !== (lanes & 62914560) && 0 !== (animatingLanes & 62914560) && (setCurrentTrackFromLanes(4194304), logAnimatingPhase(retryClampTime, renderStartTime, animatingTask)); 8206 0 !== (lanes & 2080374784) && 0 !== (animatingLanes & 2080374784) && (setCurrentTrackFromLanes(268435456), logAnimatingPhase(idleClampTime, renderStartTime, animatingTask)); 8207 previousRenderStartTime = root.timeoutHandle; 8208 previousRenderStartTime !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(previousRenderStartTime)); 8209 previousRenderStartTime = root.cancelPendingCommit; 8210 null !== previousRenderStartTime && (root.cancelPendingCommit = null, previousRenderStartTime()); 8211 pendingEffectsLanes = 0; 8212 resetWorkInProgressStack(); 8213 workInProgressRoot = root; 8214 workInProgress = previousRenderStartTime = createWorkInProgress(root.current, null); 8215 workInProgressRootRenderLanes = lanes; 8216 workInProgressSuspendedReason = NotSuspended; 8217 workInProgressThrownValue = null; 8218 workInProgressRootDidSkipSuspendedSiblings = !1; 8219 workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 8220 workInProgressRootDidAttachPingListener = !1; 8221 workInProgressRootExitStatus = RootInProgress; 8222 workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = w
8222orkInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; 8223 workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; 8224 workInProgressRootDidIncludeRecursiveRenderUpdate = !1; 8225 0 !== (lanes & 8) && (lanes |= lanes & 32); 8226 endTime = root.entangledLanes; 8227 if (0 !== endTime) for (root = root.entanglements, endTime &= lanes; 0 < endTime;) debugTask = 31 - clz32(endTime), color = 1 << debugTask, lanes |= root[debugTask], endTime &= ~color; 8228 entangledRenderLanes = lanes; 8229 finishQueueingConcurrentUpdates(); 8230 root = getCurrentTime(); 8231 1e3 < root - lastResetTime && (ReactSharedInternals.recentlyCreatedOwnerStacks = 0, lastResetTime = root); 8232 ReactStrictModeWarnings.discardPendingWarnings(); 8233 return previousRenderStartTime; 8234 } 8235 function handleThrow(root, thrownValue) { 8236 currentlyRenderingFiber = null; 8237 ReactSharedInternals.H = ContextOnlyDispatcher; 8238 ReactSharedInternals.getCurrentStack = null; 8239 isRendering = !1; 8240 current = null; 8241 thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnImmediate) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnInstance) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? SuspendedOnHydration : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? SuspendedOnDeprecatedThrowPromise : SuspendedOnError; 8242 workInProgressThrownValue = thrownValue; 8243 var erroredWork = workInProgress; 8244 null === erroredWork ? (workInProgressRootExitStatus = RootFatalErrored, logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current))) : erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork); 8245 } 8246 function shouldRemainOnPreviousScreen() { 8247 var handler = suspenseHandlerStackCursor.current; 8248 return null === handler ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? null === shellBoundary ? !0 : !1 : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || 0 !== (workInProgressRootRenderLanes & 536870912) ? handler === shellBoundary : !1; 8249 } 8250 function pushDispatcher() { 8251 var prevDispatcher = ReactSharedInternals.H; 8252 ReactSharedInternals.H = ContextOnlyDispatcher; 8253 return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; 8254 } 8255 function pushAsyncDispatcher() { 8256 var prevAsyncDispatcher = ReactSharedInternals.A; 8257 ReactSharedInternals.A = DefaultAsyncDispatcher; 8258 return prevAsyncDispatcher; 8259 } 8260 function markRenderDerivedCause(fiber) { 8261 null === workInProgressUpdateTask && (workInProgressUpdateTask = null == fiber._debugTask ? null : fiber._debugTask); 8262 } 8263 function renderDidSuspendDelayIfPossible() { 8264 workInProgressRootExitStatus = RootSuspendedWithDelay; 8265 workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = !0); 8266 0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 8267 } 8268 function renderRootSync(root, lanes, shouldYieldForPrerendering) { 8269 var prevExecutionContext = executionContext; 8270 executionContext |= RenderContext; 8271 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 8272 if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { 8273 if (isDevToolsPresent) { 8274 var memoizedUpdaters = root.memoizedUpdaters; 8275 0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 8276 movePendingFibersToMemoized(root, lanes); 8277 } 8278 workInProgressTransitions = null; 8279 prepareFreshStack(root, lanes); 8280 } 8281 lanes = !1; 8282 memoizedUpdaters = workInProgressRootExitStatus; 8283 a: do 8284 try { 8285 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) { 8286 var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue; 8287 switch (workInProgressSuspendedReason) { 8288 case SuspendedOnHydration: 8289 resetWorkInProgressStack(); 8290 memoizedUpdaters = RootSuspendedAtTheShell; 8291 break a; 8292 case SuspendedOnImmediate: 8293 case SuspendedOnData: 8294 case SuspendedOnAction: 8295 case SuspendedOnDeprecatedThrowPromise: 8296 null === suspenseHandlerStackCursor.current && (lanes = !0); 8297 var reason = workInProgressSuspendedReason; 8298 workInProgressSuspendedReason = NotSuspended; 8299 workInProgressThrownValue = null; 8300 throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 8301 if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) { 8302 memoizedUpdaters = RootInProgress; 8303 break a; 8304 } 8305 break; 8306 default: reason = workInProgressSuspendedReason, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 8307 } 8308 } 8309 workLoopSync(); 8310 memoizedUpdaters = workInProgressRootExitStatus; 8311 break; 8312 } catch (thrownValue$8) { 8313 handleThrow(root, thrownValue$8); 8314 } 8315 while (1); 8316 lanes && root.shellSuspendCounter++; 8317 resetContextDependencies(); 8318 executionContext = prevExecutionContext; 8319 ReactSharedInternals.H = prevDispatcher; 8320 ReactSharedInternals.A = prevAsyncDispatcher; 8321 null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()); 8322 return memoizedUpdaters; 8323 } 8324 function workLoopSync() { 8325 for (; null !== workInProgress;) performUnitOfWork(workInProgress); 8326 } 8327 function renderRootConcurrent(root, lanes) { 8328 var prevExecutionContext = executionContext; 8329 executionContext |= RenderContext;
vendor: 6,746 bytes, lines 8330-8462
8330 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 8331 if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { 8332 if (isDevToolsPresent) { 8333 var memoizedUpdaters = root.memoizedUpdaters; 8334 0 < memoizedUpdaters.size && (restorePendingUpdaters(root, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 8335 movePendingFibersToMemoized(root, lanes); 8336 } 8337 workInProgressTransitions = null; 8338 workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; 8339 prepareFreshStack(root, lanes); 8340 } else workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 8341 a: do 8342 try { 8343 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) b: switch (lanes = workInProgress, memoizedUpdaters = workInProgressThrownValue, workInProgressSuspendedReason) { 8344 case SuspendedOnError: 8345 workInProgressSuspendedReason = NotSuspended; 8346 workInProgressThrownValue = null; 8347 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnError); 8348 break; 8349 case SuspendedOnData: 8350 case SuspendedOnAction: 8351 if (isThenableResolved(memoizedUpdaters)) { 8352 workInProgressSuspendedReason = NotSuspended; 8353 workInProgressThrownValue = null; 8354 replaySuspendedUnitOfWork(lanes); 8355 break; 8356 } 8357 lanes = function() { 8358 workInProgressSuspendedReason !== SuspendedOnData && workInProgressSuspendedReason !== SuspendedOnAction || workInProgressRoot !== root || (workInProgressSuspendedReason = SuspendedAndReadyToContinue); 8359 ensureRootIsScheduled(root); 8360 }; 8361 memoizedUpdaters.then(lanes, lanes); 8362 break a; 8363 case SuspendedOnImmediate: 8364 workInProgressSuspendedReason = SuspendedAndReadyToContinue; 8365 break a; 8366 case SuspendedOnInstance: 8367 workInProgressSuspendedReason = SuspendedOnInstanceAndReadyToContinue; 8368 break a; 8369 case SuspendedAndReadyToContinue: 8370 isThenableResolved(memoizedUpdaters) ? (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedAndReadyToContinue)); 8371 break; 8372 case SuspendedOnInstanceAndReadyToContinue: 8373 var resource = null; 8374 switch (workInProgress.tag) { 8375 case 26: resource = workInProgress.memoizedState; 8376 case 5: 8377 case 27: 8378 var hostFiber = workInProgress; 8379 if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) { 8380 workInProgressSuspendedReason = NotSuspended; 8381 workInProgressThrownValue = null; 8382 var sibling = hostFiber.sibling; 8383 if (null !== sibling) workInProgress = sibling; 8384 else { 8385 var returnFiber = hostFiber.return; 8386 null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null; 8387 } 8388 break b; 8389 } 8390 break; 8391 default: console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React."); 8392 } 8393 workInProgressSuspendedReason = NotSuspended; 8394 workInProgressThrownValue = null; 8395 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnInstanceAndReadyToContinue); 8396 break; 8397 case SuspendedOnDeprecatedThrowPromise: 8398 workInProgressSuspendedReason = NotSuspended; 8399 workInProgressThrownValue = null; 8400 throwAndUnwindWorkLoop(root, lanes, memoizedUpdaters, SuspendedOnDeprecatedThrowPromise); 8401 break; 8402 case SuspendedOnHydration: 8403 resetWorkInProgressStack(); 8404 workInProgressRootExitStatus = RootSuspendedAtTheShell; 8405 break a; 8406 default: throw Error("Unexpected SuspendedReason. This is a bug in React."); 8407 } 8408 null !== ReactSharedInternals.actQueue ? workLoopSync() : workLoopConcurrentByScheduler(); 8409 break; 8410 } catch (thrownValue$9) { 8411 handleThrow(root, thrownValue$9); 8412 } 8413 while (1); 8414 resetContextDependencies(); 8415 ReactSharedInternals.H = prevDispatcher; 8416 ReactSharedInternals.A = prevAsyncDispatcher; 8417 executionContext = prevExecutionContext; 8418 if (null !== workInProgress) return RootInProgress; 8419 workInProgressRoot = null; 8420 workInProgressRootRenderLanes = 0; 8421 finishQueueingConcurrentUpdates(); 8422 return workInProgressRootExitStatus; 8423 } 8424 function workLoopConcurrentByScheduler() { 8425 for (; null !== workInProgress && !shouldYield();) performUnitOfWork(workInProgress); 8426 } 8427 function performUnitOfWork(unitOfWork) { 8428 var current = unitOfWork.alternate; 8429 (unitOfWork.mode & ProfileMode) !== NoMode ? (startProfilerTimer(unitOfWork), current = runWithFiberInDEV(unitOfWork, beginWork, current, unitOfWork, entangledRenderLanes), stopProfilerTimerIfRunningAndRecordDuration(unitOfWork)) : current = runWithFiberInDEV(unitOfWork, beginWork, current, unitOfWork, entangledRenderLanes); 8430 unitOfWork.memoizedProps = unitOfWork.pendingProps; 8431 null === current ? completeUnitOfWork(unitOfWork) : workInProgress = current; 8432 } 8433 function replaySuspendedUnitOfWork(unitOfWork) { 8434 var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); 8435 unitOfWork.memoizedProps = unitOfWork.pendingProps; 8436 null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; 8437 } 8438 function replayBeginWork(unitOfWork) { 8439 var current = unitOfWork.alternate, isProfilingMode = (unitOfWork.mode & ProfileMode) !== NoMode; 8440 isProfilingMode && startProfilerTimer(unitOfWork); 8441 switch (unitOfWork.tag) { 8442 case 15: 8443 case 0: 8444 current = replayFunctionComponent(current, unitOfWork, unitOfWork.pendingProps, unitOfWork.type, void 0, workInProgressRootRenderLanes); 8445 break; 8446 case 11: 8447 current = replayFunctionComponent(current, unitOfWork, unitOfWork.pendingProps, unitOfWork.type.render, unitOfWork.ref, workInProgressRootRenderLanes); 8448 break; 8449 case 5: resetHooksOnUnwind(unitOfWork); 8450 default: unwindInterruptedWork(current, unitOfWork), unitOfWork = workInProgress = resetWorkInProgress(unitOfWork, entangledRenderLanes), current = beginWork(current, unitOfWork, entangledRenderLanes); 8451 } 8452 isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); 8453 return current; 8454 } 8455 function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) { 8456 resetContextDependencies(); 8457 resetHooksOnUnwind(unitOfWork); 8458 thenableState$1 = null; 8459 thenableIndexCounter$1 = 0; 8460 var returnFiber = unitOfWork.return; 8461 try { 8462 if (throwException(root, returnFiber, unitOfWork, thrownValue, workInProgressRootRenderLanes)) {
vendor: 31,188 bytes, lines 8463-8949
8463 workInProgressRootExitStatus = RootFatalErrored; 8464 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 8465 workInProgress = null; 8466 return; 8467 } 8468 } catch (error) { 8469 if (null !== returnFiber) throw workInProgress = returnFiber, error; 8470 workInProgressRootExitStatus = RootFatalErrored; 8471 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 8472 workInProgress = null; 8473 return; 8474 } 8475 if (unitOfWork.flags & 32768) { 8476 if (isHydrating || suspendedReason === SuspendedOnError) root = !0; 8477 else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912)) root = !1; 8478 else if (workInProgressRootDidSkipSuspendedSiblings = root = !0, suspendedReason === SuspendedOnData || suspendedReason === SuspendedOnAction || suspendedReason === SuspendedOnImmediate || suspendedReason === SuspendedOnDeprecatedThrowPromise) suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384); 8479 unwindUnitOfWork(unitOfWork, root); 8480 } else completeUnitOfWork(unitOfWork); 8481 } 8482 function completeUnitOfWork(unitOfWork) { 8483 var completedWork = unitOfWork; 8484 do { 8485 if (0 !== (completedWork.flags & 32768)) { 8486 unwindUnitOfWork(completedWork, workInProgressRootDidSkipSuspendedSiblings); 8487 return; 8488 } 8489 var current = completedWork.alternate; 8490 unitOfWork = completedWork.return; 8491 startProfilerTimer(completedWork); 8492 current = runWithFiberInDEV(completedWork, completeWork, current, completedWork, entangledRenderLanes); 8493 (completedWork.mode & ProfileMode) !== NoMode && stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork); 8494 if (null !== current) { 8495 workInProgress = current; 8496 return; 8497 } 8498 completedWork = completedWork.sibling; 8499 if (null !== completedWork) { 8500 workInProgress = completedWork; 8501 return; 8502 } 8503 workInProgress = completedWork = unitOfWork; 8504 } while (null !== completedWork); 8505 workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); 8506 } 8507 function unwindUnitOfWork(unitOfWork, skipSiblings) { 8508 do { 8509 var next = unwindWork(unitOfWork.alternate, unitOfWork); 8510 if (null !== next) { 8511 next.flags &= 32767; 8512 workInProgress = next; 8513 return; 8514 } 8515 if ((unitOfWork.mode & ProfileMode) !== NoMode) { 8516 stopProfilerTimerIfRunningAndRecordIncompleteDuration(unitOfWork); 8517 next = unitOfWork.actualDuration; 8518 for (var child = unitOfWork.child; null !== child;) next += child.actualDuration, child = child.sibling; 8519 unitOfWork.actualDuration = next; 8520 } 8521 next = unitOfWork.return; 8522 null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null); 8523 if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) { 8524 workInProgress = unitOfWork; 8525 return; 8526 } 8527 workInProgress = unitOfWork = next; 8528 } while (null !== unitOfWork); 8529 workInProgressRootExitStatus = RootSuspendedAtTheShell; 8530 workInProgress = null; 8531 } 8532 function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, suspendedState, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) { 8533 root.cancelPendingCommit = null; 8534 do 8535 flushPendingEffects(); 8536 while (pendingEffectsStatus !== NO_PENDING_EFFECTS); 8537 ReactStrictModeWarnings.flushLegacyContextWarning(); 8538 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); 8539 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); 8540 setCurrentTrackFromLanes(lanes); 8541 exitStatus === RootErrored ? logErroredRenderPhase(completedRenderStartTime, completedRenderEndTime, lanes, workInProgressUpdateTask) : null !== recoverableErrors ? logRecoveredRenderPhase(completedRenderStartTime, completedRenderEndTime, lanes, recoverableErrors, null !== finishedWork && null !== finishedWork.alternate && finishedWork.alternate.memoizedState.isDehydrated && 0 !== (finishedWork.flags & 256), workInProgressUpdateTask) : logRenderPhase(completedRenderStartTime, completedRenderEndTime, lanes, workInProgressUpdateTask); 8542 if (null !== finishedWork) { 8543 0 === lanes && console.error("finishedLanes should not be empty during a commit. This is a bug in React."); 8544 if (finishedWork === root.current) throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); 8545 didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes; 8546 didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes; 8547 markRootFinished(root, lanes, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes); 8548 root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); 8549 pendingFinishedWork = finishedWork; 8550 pendingEffectsRoot = root; 8551 pendingEffectsLanes = lanes; 8552 pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate; 8553 pendingPassiveTransitions = transitions; 8554 pendingRecoverableErrors = recoverableErrors; 8555 pendingEffectsRenderEndTime = completedRenderEndTime; 8556 pendingSuspendedCommitReason = suspendedCommitReason; 8557 pendingDelayedCommitReason = IMMEDIATE_COMMIT; 8558 pendingSuspendedViewTransitionReason = null; 8559 0 !== finishedWork.actualDuration || 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() { 8560 schedulerEvent = window.event; 8561 pendingDelayedCommitReason === IMMEDIATE_COMMIT && (pendingDelayedCommitReason = DELAYED_PASSIVE_COMMIT); 8562 flushPassiveEffects(); 8563 return null; 8564 })) : (root.callbackNode = null, root.callbackPriority = 0); 8565 commitErrors = null; 8566 commitStartTime = now(); 8567 null !== suspendedCommitReason && logSuspendedCommitPhase(completedRenderEndTime, commitStartTime, suspendedCommitReason, workInProgressUpdateTask); 8568 recoverableErrors = 0 !== (finishedWork.flags & 13878); 8569 if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { 8570 recoverableErrors = ReactSharedInternals.T; 8571 ReactSharedInternals.T = null; 8572 transitions = ReactDOMSharedInternals.p; 8573 ReactDOMSharedInternals.p = DiscreteEventPriority; 8574 spawnedLane = executionContext; 8575 executionContext |= CommitContext; 8576 try { 8577 commitBeforeMutationEffects(root, finishedWork, lanes); 8578 } finally { 8579 executionContext = spawnedLane, ReactDOMSharedInternals.p = transitions, ReactSharedInternals.T = recoverableErrors; 8580 } 8581 } 8582 pendingEffectsStatus = PENDING_MUTATION_PHASE; 8583 flushMutationEffects(); 8584 flushLayoutEffects(); 8585 flushSpawnedWork(); 8586 } 8587 } 8588 function flushMutationEffects() { 8589 if (pendingEffectsStatus === PENDING_MUTATION_PHASE) { 8590 pendingEffectsStatus = NO_PENDING_EFFECTS; 8591 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878); 8592 if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) { 8593 rootMutationHasEffect = ReactSharedInternals.T; 8594 ReactSharedInternals.T = null; 8595 var previousPriority = ReactDOMSharedInternals.p; 8596 ReactDOMSharedInternals.p = DiscreteEventPriority; 8597 var prevExecutionContext = executionContext; 8598 executionContext |= CommitContext; 8599 try { 8600 inProgressLanes = lanes; 8601 inProgressRoot = root; 8602 resetComponentEffectTimers(); 8603 commitMutationEffectsOnFiber(finishedWork, root); 8604 inProgressRoot = inProgressLanes = null; 8605 lanes = selectionInformation; 8606 var curFocusedElem = getActiveElementDeep(root.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange; 8607 if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(priorFocusedElem.ownerDocument.documentElement, priorFocusedElem)) { 8608 if (null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem)) { 8609 var start = priorSelectionRange.start, end = priorSelectionRange.end; 8610 void 0 === end && (end = start); 8611 if ("selectionStart" in priorFocusedElem) priorFocusedElem.selectionStart = start, priorFocusedElem.selectionEnd = Math.min(end, priorFocusedElem.value.length); 8612 else { 8613 var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window; 8614 if (win.getSelection) { 8615 var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = void 0 === priorSelectionRange.end ? start$jscomp$0 : Math.min(priorSelectionRange.end, length); 8616 !selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem); 8617 var startMarker = getNodeForCharacterOffset(priorFocusedElem, start$jscomp$0), endMarker = getNodeForCharacterOffset(priorFocusedElem, end$jscomp$0); 8618 if (startMarker && endMarker && (1 !== selection.rangeCount || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) { 8619 var range = doc.createRange(); 8620 range.setStart(startMarker.node, startMarker.offset); 8621 selection.removeAllRanges(); 8622 start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); 8623 } 8624 } 8625 } 8626 } 8627 doc = []; 8628 for (selection = priorFocusedElem; selection = selection.parentNode;) 1 === selection.nodeType && doc.push({ 8629 element: selection, 8630 left: selection.scrollLeft, 8631 top: selection.scrollTop 8632 }); 8633 "function" === typeof priorFocusedElem.focus && priorFocusedElem.focus(); 8634 for (priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) { 8635 var info = doc[priorFocusedElem]; 8636 info.element.scrollLeft = info.left; 8637 info.element.scrollTop = info.top; 8638 } 8639 } 8640 _enabled = !!eventsEnabled; 8641 selectionInformation = eventsEnabled = null; 8642 } finally { 8643 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect; 8644 } 8645 } 8646 root.current = finishedWork; 8647 pendingEffectsStatus = PENDING_LAYOUT_PHASE; 8648 } 8649 } 8650 function flushLayoutEffects() { 8651 if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) { 8652 pendingEffectsStatus = NO_PENDING_EFFECTS; 8653 var suspendedViewTransitionReason = pendingSuspendedViewTransitionReason; 8654 if (null !== suspendedViewTransitionReason) { 8655 commitStartTime = now(); 8656 var startTime = commitEndTime, endTime = commitStartTime; 8657 !supportsUserTiming || endTime <= startTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, suspendedViewTransitionReason, startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")) : console.timeStamp(suspendedViewTransitionReason, startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")); 8658 } 8659 suspendedViewTransitionReason = pendingEffectsRoot; 8660 startTime = pendingFinishedWork; 8661 endTime = pendingEffectsLanes; 8662 var rootHasLayoutEffect = 0 !== (startTime.flags & 8772); 8663 if (0 !== (startTime.subtreeFlags & 8772) || rootHasLayoutEffect) { 8664 rootHasLayoutEffect = ReactSharedInternals.T; 8665 ReactSharedInternals.T = null; 8666 var _previousPriority = ReactDOMSharedInternals.p; 8667 ReactDOMSharedInternals.p = DiscreteEventPriority; 8668 var _prevExecutionContext = executionContext; 8669 executionContext |= CommitContext; 8670 try { 8671 inProgressLanes = endTime, inProgressRoot = suspendedViewTransitionReason, resetComponentEffectTimers(), commitLayoutEffectOnFiber(suspendedViewTransitionReason, startTime.alternate, startTime), inProgressRoot = inProgressLanes = null; 8672 } finally { 8673 executionContext = _prevExecutionContext, ReactDOMSharedInternals.p = _previousPriority, ReactSharedInternals.T = rootHasLayoutEffect; 8674 } 8675 } 8676 suspendedViewTransitionReason = pendingEffectsRenderEndTime; 8677 startTime = pendingSuspendedCommitReason; 8678 commitEndTime = now(); 8679 suspendedViewTransitionReason = null === startTime ? suspendedViewTransitionReason : commitStartTime; 8680 startTime = commitEndTime; 8681 endTime = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT; 8682 rootHasLayoutEffect = workInProgressUpdateTask; 8683 null !== commitErrors ? logCommitErrored(suspendedViewTransitionReason, startTime, commitErrors, !1, rootHasLayoutEffect) : !supportsUserTiming || startTime <= suspendedViewTransitionReason || (rootHasLayoutEffect ? rootHasLayoutEffect.run(console.timeStamp.bind(console, endTime ? "Commit Interrupted View Transition" : "Commit", suspendedViewTransitionReason, startTime, currentTrack, LANES_TRACK_GROUP, endTime ? "error" : "secondary-dark")) : console.timeStamp(endTime ? "Commit Interrupted View Transition" : "Commit", suspendedViewTransitionReason, startTime, currentTrack, LANES_TRACK_GROUP, endTime ? "error" : "secondary-dark")); 8684 pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; 8685 } 8686 } 8687 function flushSpawnedWork() { 8688 if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) { 8689 if (pendingEffectsStatus === PENDING_SPAWNED_WORK) { 8690 var startViewTransitionStartTime = commitEndTime; 8691 commitEndTime = now(); 8692 var endTime = commitEndTime, abortedViewTransition = pendingDelayedCommitReason === ABORTED_VIEW_TRANSITION_COMMIT; 8693 !supportsUserTiming || endTime <= startViewTransitionStartTime || (animatingTask ? animatingTask.run(console.timeStamp.bind(console, abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, LANES_TRACK_GROUP, abortedViewTransition ? "error" : "secondary-light")) : console.timeStamp(abortedViewTransition ? "Interrupted View Transition" : "Starting Animation", startViewTransitionStartTime, endTime, currentTrack, LANES_TRACK_GROUP, abortedViewTransition ? " error" : "secondary-light")); 8694 pendingDelayedCommitReason !== ABORTED_VIEW_TRANSITION_COMMIT && (pendingDelayedCommitReason = ANIMATION_STARTED_COMMIT); 8695 } 8696 pendingEffectsStatus = NO_PENDING_EFFECTS; 8697 requestPaint(); 8698 startViewTransitionStartTime = pendingEffectsRoot; 8699 var finishedWork = pendingFinishedWork; 8700 endTime = pendingEffectsLanes; 8701 abortedViewTransition = pendingRecoverableErrors; 8702 var rootDidHavePassiveEffects = 0 !== finishedWork.actualDuration || 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256); 8703 rootDidHavePassiveEffects ? pendingEffectsStatus = PENDING_PASSIVE_PHASE : (pendingEffectsStatus = NO_PENDING_EFFECTS, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(startViewTransitionStartTime, startViewTransitionStartTime.pendingLanes), nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null); 8704 var remainingLanes = startViewTransitionStartTime.pendingLanes; 8705 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); 8706 rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(startViewTransitionStartTime); 8707 remainingLanes = lanesToEventPriority(endTime); 8708 finishedWork = finishedWork.stateNode; 8709 if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { 8710 var didError = 128 === (finishedWork.current.flags & 128); 8711 switch (remainingLanes) { 8712 case DiscreteEventPriority: 8713 var schedulerPriority = ImmediatePriority; 8714 break; 8715 case ContinuousEventPriority: 8716 schedulerPriority = UserBlockingPriority; 8717 break; 8718 case DefaultEventPriority: 8719 schedulerPriority = NormalPriority$1; 8720 break; 8721 case IdleEventPriority: 8722 schedulerPriority = IdlePriority; 8723 break; 8724 default: schedulerPriority = NormalPriority$1; 8725 } 8726 injectedHook.onCommitFiberRoot(rendererID, finishedWork, schedulerPriority, didError); 8727 } catch (err) { 8728 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 8729 } 8730 isDevToolsPresent && startViewTransitionStartTime.memoizedUpdaters.clear(); 8731 onCommitRoot(); 8732 if (null !== abortedViewTransition) { 8733 didError = ReactSharedInternals.T; 8734 schedulerPriority = ReactDOMSharedInternals.p; 8735 ReactDOMSharedInternals.p = DiscreteEventPriority; 8736 ReactSharedInternals.T = null; 8737 try { 8738 var onRecoverableError = startViewTransitionStartTime.onRecoverableError; 8739 for (finishedWork = 0; finishedWork < abortedViewTransition.length; finishedWork++) { 8740 var recoverableError = abortedViewTransition[finishedWork], errorInfo = makeErrorInfo(recoverableError.stack); 8741 runWithFiberInDEV(recoverableError.source, onRecoverableError, recoverableError.value, errorInfo); 8742 } 8743 } finally { 8744 ReactSharedInternals.T = didError, ReactDOMSharedInternals.p = schedulerPriority; 8745 } 8746 } 8747 0 !== (pendingEffectsLanes & 3) && flushPendingEffects(); 8748 ensureRootIsScheduled(startViewTransitionStartTime); 8749 remainingLanes = startViewTransitionStartTime.pendingLanes; 8750 0 !== (endTime & 261930) && 0 !== (remainingLanes & 42) ? (nestedUpdateScheduled = !0, startViewTransitionStartTime === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = startViewTransitionStartTime)) : nestedUpdateCount = 0; 8751 rootDidHavePassiveEffects || finalizeRender(endTime, commitEndTime); 8752 flushSyncWorkAcrossRoots_impl(0, !1); 8753 } 8754 } 8755 function makeErrorInfo(componentStack) { 8756 componentStack = { componentStack }; 8757 Object.defineProperty(componentStack, "digest", { get: function() { 8758 console.error("You are accessing \"digest\" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself."); 8759 } }); 8760 return componentStack; 8761 } 8762 function releaseRootPooledCache(root, remainingLanes) { 8763 0 === (root.pooledCacheLanes &= remainingLanes) && (remainingLanes = root.pooledCache, null != remainingLanes && (root.pooledCache = null, releaseCache(remainingLanes))); 8764 } 8765 function flushPendingEffects() { 8766 flushMutationEffects(); 8767 flushLayoutEffects(); 8768 flushSpawnedWork(); 8769 return flushPassiveEffects(); 8770 } 8771 function flushPassiveEffects() { 8772 if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return !1; 8773 var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; 8774 pendingEffectsRemainingLanes = 0; 8775 var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = 0 === DefaultEventPriority || DefaultEventPriority > renderPriority ? DefaultEventPriority : renderPriority; 8776 renderPriority = ReactSharedInternals.T; 8777 var previousPriority = ReactDOMSharedInternals.p; 8778 try { 8779 ReactDOMSharedInternals.p = priority; 8780 ReactSharedInternals.T = null; 8781 var transitions = pendingPassiveTransitions; 8782 pendingPassiveTransitions = null; 8783 priority = pendingEffectsRoot; 8784 var lanes = pendingEffectsLanes; 8785 pendingEffectsStatus = NO_PENDING_EFFECTS; 8786 pendingFinishedWork = pendingEffectsRoot = null; 8787 pendingEffectsLanes = 0; 8788 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Cannot flush passive effects while already rendering."); 8789 setCurrentTrackFromLanes(lanes); 8790 isFlushingPassiveEffects = !0; 8791 didScheduleUpdateDuringPassiveEffects = !1; 8792 var passiveEffectStartTime = 0; 8793 commitErrors = null; 8794 passiveEffectStartTime = now$1(); 8795 if (pendingDelayedCommitReason === ANIMATION_STARTED_COMMIT) logAnimatingPhase(commitEndTime, passiveEffectStartTime, animatingTask); 8796 else { 8797 var startTime = commitEndTime, endTime = passiveEffectStartTime, delayedUntilPaint = pendingDelayedCommitReason === DELAYED_PASSIVE_COMMIT; 8798 !supportsUserTiming || endTime <= startTime || (workInProgressUpdateTask ? workInProgressUpdateTask.run(console.timeStamp.bind(console, delayedUntilPaint ? "Waiting for Paint" : "Waiting", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")) : console.timeStamp(delayedUntilPaint ? "Waiting for Paint" : "Waiting", startTime, endTime, currentTrack, LANES_TRACK_GROUP, "secondary-light")); 8799 } 8800 startTime = executionContext; 8801 executionContext |= CommitContext; 8802 var finishedWork = priority.current; 8803 resetComponentEffectTimers(); 8804 commitPassiveUnmountOnFiber(finishedWork); 8805 var finishedWork$jscomp$0 = priority.current; 8806 finishedWork = pendingEffectsRenderEndTime; 8807 resetComponentEffectTimers(); 8808 commitPassiveMountOnFiber(priority, finishedWork$jscomp$0, lanes, transitions, finishedWork); 8809 commitDoubleInvokeEffectsInDEV(priority); 8810 executionContext = startTime; 8811 var passiveEffectsEndTime = now$1(); 8812 finishedWork$jscomp$0 = passiveEffectStartTime; 8813 finishedWork = workInProgressUpdateTask; 8814 null !== commitErrors ? logCommitErrored(finishedWork$jscomp$0, passiveEffectsEndTime, commitErrors, !0, finishedWork) : !supportsUserTiming || passiveEffectsEndTime <= finishedWork$jscomp$0 || (finishedWork ? finishedWork.run(console.timeStamp.bind(console, "Remaining Effects", finishedWork$jscomp$0, passiveEffectsEndTime, currentTrack, LANES_TRACK_GROUP, "secondary-dark")) : console.timeStamp("Remaining Effects", finishedWork$jscomp$0, passiveEffectsEndTime, currentTrack, LANES_TRACK_GROUP, "secondary-dark")); 8815 finalizeRender(lanes, passiveEffectsEndTime); 8816 flushSyncWorkAcrossRoots_impl(0, !1); 8817 didScheduleUpdateDuringPassiveEffects ? priority === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ : (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = priority) : nestedPassiveUpdateCount = 0; 8818 didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = !1; 8819 if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { 8820 injectedHook.onPostCommitFiberRoot(rendererID, priority); 8821 } catch (err) { 8822 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 8823 } 8824 var stateNode = priority.current.stateNode; 8825 stateNode.effectDuration = 0; 8826 stateNode.passiveEffectDuration = 0; 8827 return !0; 8828 } finally { 8829 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root, remainingLanes); 8830 } 8831 } 8832 function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { 8833 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 8834 recordEffectError(sourceFiber); 8835 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2); 8836 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); 8837 null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber)); 8838 } 8839 function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { 8840 isRunningInsertionEffect = !1; 8841 if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); 8842 else { 8843 for (; null !== nearestMountedAncestor;) { 8844 if (3 === nearestMountedAncestor.tag) { 8845 captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); 8846 return; 8847 } 8848 if (1 === nearestMountedAncestor.tag) { 8849 var instance = nearestMountedAncestor.stateNode; 8850 if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { 8851 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 8852 recordEffectError(sourceFiber); 8853 error = createClassErrorUpdate(2); 8854 instance = enqueueUpdate(nearestMountedAncestor, error, 2); 8855 null !== instance && (initializeClassErrorUpdate(error, instance, nearestMountedAncestor, sourceFiber), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance)); 8856 return; 8857 } 8858 } 8859 nearestMountedAncestor = nearestMountedAncestor.return; 8860 } 8861 console.error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", error); 8862 } 8863 } 8864 function attachPingListener(root, wakeable, lanes) { 8865 var pingCache = root.pingCache; 8866 if (null === pingCache) { 8867 pingCache = root.pingCache = new PossiblyWeakMap(); 8868 var threadIDs = /* @__PURE__ */ new Set(); 8869 pingCache.set(wakeable, threadIDs); 8870 } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs)); 8871 threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), pingCache = pingSuspendedRoot.bind(null, root, wakeable, lanes), isDevToolsPresent && restorePendingUpdaters(root, lanes), wakeable.then(pingCache, pingCache)); 8872 } 8873 function pingSuspendedRoot(root, wakeable, pingedLanes) { 8874 var pingCache = root.pingCache; 8875 null !== pingCache && pingCache.delete(wakeable); 8876 root.pingedLanes |= root.suspendedLanes & pingedLanes; 8877 root.warmLanes &= ~pingedLanes; 8878 0 !== (pingedLanes & 127) ? 0 > blockingUpdateTime && (blockingClampTime = blockingUpdateTime = now(), blockingUpdateTask = createTask("Promise Resolved"), blockingUpdateType = PINGED_UPDATE) : 0 !== (pingedLanes & 4194048) && 0 > transitionUpdateTime && (transitionClampTime = transitionUpdateTime = now(), transitionUpdateTask = createTask("Promise Resolved"), transitionUpdateType = PINGED_UPDATE); 8879 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && console.error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act"); 8880 workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS ? (executionContext & RenderContext) === NoContext && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)); 8881 ensureRootIsScheduled(root); 8882 } 8883 function retryTimedOutBoundary(boundaryFiber, retryLane) { 8884 0 === retryLane && (retryLane = claimNextRetryLane()); 8885 boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); 8886 null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber)); 8887 } 8888 function retryDehydratedSuspenseBoundary(boundaryFiber) { 8889 var suspenseState = boundaryFiber.memoizedState, retryLane = 0; 8890 null !== suspenseState && (retryLane = suspenseState.retryLane); 8891 retryTimedOutBoundary(boundaryFiber, retryLane); 8892 } 8893 function resolveRetryWakeable(boundaryFiber, wakeable) { 8894 var retryLane = 0; 8895 switch (boundaryFiber.tag) { 8896 case 31: 8897 case 13: 8898 var retryCache = boundaryFiber.stateNode; 8899 var suspenseState = boundaryFiber.memoizedState; 8900 null !== suspenseState && (retryLane = suspenseState.retryLane); 8901 break; 8902 case 19: 8903 retryCache = boundaryFiber.stateNode; 8904 break; 8905 case 22: 8906 retryCache = boundaryFiber.stateNode._retryCache; 8907 break; 8908 default: throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); 8909 } 8910 null !== retryCache && retryCache.delete(wakeable); 8911 retryTimedOutBoundary(boundaryFiber, retryLane); 8912 } 8913 function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root$jscomp$0, parentFiber, isInStrictMode) { 8914 if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber;) { 8915 var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; 8916 isStrictModeFiber = isInStrictMode || isStrictModeFiber; 8917 22 !== fiber.tag ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV(fiber, doubleInvokeEffectsOnFiber, root, fiber) : recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, fiber, isStrictModeFiber) : null === fiber.memoizedState && (isStrictModeFiber && fiber.flags & 8192 ? runWithFiberInDEV(fiber, doubleInvokeEffectsOnFiber, root, fiber) : fiber.subtreeFlags & 67108864 && runWithFiberInDEV(fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, root, fiber, isStrictModeFiber)); 8918 parentFiber = parentFiber.sibling; 8919 } 8920 } 8921 function doubleInvokeEffectsOnFiber(root, fiber) { 8922 setIsStrictModeForDevtools(!0); 8923 try { 8924 disappearLayoutEffects(fiber), disconnectPassiveEffect(fiber), reappearLayoutEffects(root, fiber.alternate, fiber, !1), reconnectPassiveEffects(root, fiber, 0, null, !1, 0); 8925 } finally { 8926 setIsStrictModeForDevtools(!1); 8927 } 8928 } 8929 function commitDoubleInvokeEffectsInDEV(root) { 8930 var doubleInvokeEffects = !0; 8931 root.current.mode & (StrictLegacyMode | StrictEffectsMode) || (doubleInvokeEffects = !1); 8932 recursivelyTraverseAndDoubleInvokeEffectsInDEV(root, root.current, doubleInvokeEffects); 8933 } 8934 function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { 8935 if ((executionContext & RenderContext) === NoContext) { 8936 var tag = fiber.tag; 8937 if (3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag) { 8938 tag = getComponentNameFromFiber(fiber) || "ReactComponent"; 8939 if (null !== didWarnStateUpdateForNotYetMountedComponent) { 8940 if (didWarnStateUpdateForNotYetMountedComponent.has(tag)) return; 8941 didWarnStateUpdateForNotYetMountedComponent.add(tag); 8942 } else didWarnStateUpdateForNotYetMountedComponent = new Set([tag]); 8943 runWithFiberInDEV(fiber, function() { 8944 console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead."); 8945 }); 8946 } 8947 } 8948 } 8949 function restorePendingUpdaters(root, lanes) {
vendor: 4,537 bytes, lines 8950-9016
8950 isDevToolsPresent && root.memoizedUpdaters.forEach(function(schedulingFiber) { 8951 addFiberToLanesMap(root, schedulingFiber, lanes); 8952 }); 8953 } 8954 function scheduleCallback$1(priorityLevel, callback) { 8955 var actQueue = ReactSharedInternals.actQueue; 8956 return null !== actQueue ? (actQueue.push(callback), fakeActCallbackNode$1) : scheduleCallback$3(priorityLevel, callback); 8957 } 8958 function warnIfUpdatesNotWrappedWithActDEV(fiber) { 8959 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && runWithFiberInDEV(fiber, function() { 8960 console.error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); 8961 }); 8962 } 8963 function ensureRootIsScheduled(root) { 8964 root !== lastScheduledRoot && null === root.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root); 8965 mightHavePendingSyncWork = !0; 8966 null !== ReactSharedInternals.actQueue ? didScheduleMicrotask_act || (didScheduleMicrotask_act = !0, scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask()); 8967 } 8968 function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { 8969 if (!isFlushingWork && mightHavePendingSyncWork) { 8970 isFlushingWork = !0; 8971 do { 8972 var didPerformSomeWork = !1; 8973 for (var root = firstScheduledRoot; null !== root;) { 8974 if (!onlyLegacy) if (0 !== syncTransitionLanes) { 8975 var pendingLanes = root.pendingLanes; 8976 if (0 === pendingLanes) var nextLanes = 0; 8977 else { 8978 var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes; 8979 nextLanes = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1; 8980 nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); 8981 nextLanes = nextLanes & 201326741 ? nextLanes & 201326741 | 1 : nextLanes ? nextLanes | 2 : 0; 8982 } 8983 0 !== nextLanes && (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes)); 8984 } else nextLanes = workInProgressRootRenderLanes, nextLanes = getNextLanes(root, root === workInProgressRoot ? nextLanes : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout), 0 === (nextLanes & 3) || checkIfRootIsPrerendering(root, nextLanes) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root, nextLanes)); 8985 root = root.next; 8986 } 8987 } while (didPerformSomeWork); 8988 isFlushingWork = !1; 8989 } 8990 } 8991 function processRootScheduleInImmediateTask() { 8992 schedulerEvent = window.event; 8993 processRootScheduleInMicrotask(); 8994 } 8995 function processRootScheduleInMicrotask() { 8996 mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = !1; 8997 var syncTransitionLanes = 0; 8998 0 !== currentEventTransitionLane && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane); 8999 for (var currentTime = now$1(), prev = null, root = firstScheduledRoot; null !== root;) { 9000 var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); 9001 if (0 === nextLanes) root.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev); 9002 else if (prev = root, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) mightHavePendingSyncWork = !0; 9003 root = next; 9004 } 9005 pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); 9006 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); 9007 } 9008 function scheduleTaskForRootDuringMicrotask(root, currentTime) { 9009 for (var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes;) { 9010 var index = 31 - clz32(lanes), lane = 1 << index, expirationTime = expirationTimes[index]; 9011 if (-1 === expirationTime) { 9012 if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index] = computeExpirationTime(lane, currentTime); 9013 } else expirationTime <= currentTime && (root.expiredLanes |= lane); 9014 lanes &= ~lane; 9015 } 9016 currentTime = workInProgressRoot;
vendor: 6,870 bytes, lines 9017-9146
9017 suspendedLanes = workInProgressRootRenderLanes; 9018 suspendedLanes = getNextLanes(root, root === currentTime ? suspendedLanes : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout); 9019 pingedLanes = root.callbackNode; 9020 if (0 === suspendedLanes || root === currentTime && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root.cancelPendingCommit) return null !== pingedLanes && cancelCallback(pingedLanes), root.callbackNode = null, root.callbackPriority = 0; 9021 if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root, suspendedLanes)) { 9022 currentTime = suspendedLanes & -suspendedLanes; 9023 if (currentTime !== root.callbackPriority || null !== ReactSharedInternals.actQueue && pingedLanes !== fakeActCallbackNode) cancelCallback(pingedLanes); 9024 else return currentTime; 9025 switch (lanesToEventPriority(suspendedLanes)) { 9026 case DiscreteEventPriority: 9027 case ContinuousEventPriority: 9028 suspendedLanes = UserBlockingPriority; 9029 break; 9030 case DefaultEventPriority: 9031 suspendedLanes = NormalPriority$1; 9032 break; 9033 case IdleEventPriority: 9034 suspendedLanes = IdlePriority; 9035 break; 9036 default: suspendedLanes = NormalPriority$1; 9037 } 9038 pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); 9039 null !== ReactSharedInternals.actQueue ? (ReactSharedInternals.actQueue.push(pingedLanes), suspendedLanes = fakeActCallbackNode) : suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); 9040 root.callbackPriority = currentTime; 9041 root.callbackNode = suspendedLanes; 9042 return currentTime; 9043 } 9044 null !== pingedLanes && cancelCallback(pingedLanes); 9045 root.callbackPriority = 2; 9046 root.callbackNode = null; 9047 return 2; 9048 } 9049 function performWorkOnRootViaSchedulerTask(root, didTimeout) { 9050 nestedUpdateScheduled = currentUpdateIsNested = !1; 9051 schedulerEvent = window.event; 9052 if (pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return root.callbackNode = null, root.callbackPriority = 0, null; 9053 var originalCallbackNode = root.callbackNode; 9054 pendingDelayedCommitReason === IMMEDIATE_COMMIT && (pendingDelayedCommitReason = DELAYED_PASSIVE_COMMIT); 9055 if (flushPendingEffects() && root.callbackNode !== originalCallbackNode) return null; 9056 var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes; 9057 workInProgressRootRenderLanes$jscomp$0 = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0, null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout); 9058 if (0 === workInProgressRootRenderLanes$jscomp$0) return null; 9059 performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout); 9060 scheduleTaskForRootDuringMicrotask(root, now$1()); 9061 return null != root.callbackNode && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null; 9062 } 9063 function performSyncWorkOnRoot(root, lanes) { 9064 if (flushPendingEffects()) return null; 9065 currentUpdateIsNested = nestedUpdateScheduled; 9066 nestedUpdateScheduled = !1; 9067 performWorkOnRoot(root, lanes, !0); 9068 } 9069 function cancelCallback(callbackNode) { 9070 callbackNode !== fakeActCallbackNode && null !== callbackNode && cancelCallback$1(callbackNode); 9071 } 9072 function scheduleImmediateRootScheduleTask() { 9073 null !== ReactSharedInternals.actQueue && ReactSharedInternals.actQueue.push(function() { 9074 processRootScheduleInMicrotask(); 9075 return null; 9076 }); 9077 scheduleMicrotask(function() { 9078 (executionContext & (RenderContext | CommitContext)) !== NoContext ? scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask) : processRootScheduleInMicrotask(); 9079 }); 9080 } 9081 function requestTransitionLane() { 9082 if (0 === currentEventTransitionLane) { 9083 var actionScopeLane = currentEntangledLane; 9084 0 === actionScopeLane && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, 0 === (nextTransitionUpdateLane & 261888) && (nextTransitionUpdateLane = 256)); 9085 currentEventTransitionLane = actionScopeLane; 9086 } 9087 return currentEventTransitionLane; 9088 } 9089 function coerceFormActionProp(actionProp) { 9090 if (null == actionProp || "symbol" === typeof actionProp || "boolean" === typeof actionProp) return null; 9091 if ("function" === typeof actionProp) return actionProp; 9092 checkAttributeStringCoercion(actionProp, "action"); 9093 return sanitizeURL("" + actionProp); 9094 } 9095 function createFormDataWithSubmitter(form, submitter) { 9096 var temp = submitter.ownerDocument.createElement("input"); 9097 temp.name = submitter.name; 9098 temp.value = submitter.value; 9099 form.id && temp.setAttribute("form", form.id); 9100 submitter.parentNode.insertBefore(temp, submitter); 9101 form = new FormData(form); 9102 temp.parentNode.removeChild(temp); 9103 return form; 9104 } 9105 function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEvent, nativeEventTarget) { 9106 if ("submit" === domEventName && maybeTargetInst && maybeTargetInst.stateNode === nativeEventTarget) { 9107 var action = coerceFormActionProp((nativeEventTarget[internalPropsKey] || null).action), submitter = nativeEvent.submitter; 9108 submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), null !== domEventName && (action = domEventName, submitter = null)); 9109 var event = new SyntheticEvent("action", "action", null, nativeEvent, nativeEventTarget); 9110 dispatchQueue.push({ 9111 event, 9112 listeners: [{ 9113 instance: null, 9114 listener: function() { 9115 if (nativeEvent.defaultPrevented) { 9116 if (0 !== currentEventTransitionLane) { 9117 var formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), pendingState = { 9118 pending: !0, 9119 data: formData, 9120 method: nativeEventTarget.method, 9121 action 9122 }; 9123 Object.freeze(pendingState); 9124 startHostTransition(maybeTargetInst, pendingState, null, formData); 9125 } 9126 } else "function" === typeof action && (event.preventDefault(), formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), pendingState = { 9127 pending: !0, 9128 data: formData, 9129 method: nativeEventTarget.method, 9130 action 9131 }, Object.freeze(pendingState), startHostTransition(maybeTargetInst, pendingState, action, formData)); 9132 }, 9133 currentTarget: nativeEventTarget 9134 }] 9135 }); 9136 } 9137 } 9138 function executeDispatch(event, listener, currentTarget) { 9139 event.currentTarget = currentTarget; 9140 try { 9141 listener(event); 9142 } catch (error) { 9143 reportGlobalError(error); 9144 } 9145 event.currentTarget = null; 9146 }
vendor: 17,714 bytes, lines 9147-9453
9147 function processDispatchQueue(dispatchQueue, eventSystemFlags) { 9148 eventSystemFlags = 0 !== (eventSystemFlags & 4); 9149 for (var i = 0; i < dispatchQueue.length; i++) { 9150 var _dispatchQueue$i = dispatchQueue[i]; 9151 a: { 9152 var previousInstance = void 0, event = _dispatchQueue$i.event; 9153 _dispatchQueue$i = _dispatchQueue$i.listeners; 9154 if (eventSystemFlags) for (var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--) { 9155 var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget; 9156 _dispatchListeners$i = _dispatchListeners$i.listener; 9157 if (instance !== previousInstance && event.isPropagationStopped()) break a; 9158 null !== instance ? runWithFiberInDEV(instance, executeDispatch, event, _dispatchListeners$i, currentTarget) : executeDispatch(event, _dispatchListeners$i, currentTarget); 9159 previousInstance = instance; 9160 } 9161 else for (i$jscomp$0 = 0; i$jscomp$0 < _dispatchQueue$i.length; i$jscomp$0++) { 9162 _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0]; 9163 instance = _dispatchListeners$i.instance; 9164 currentTarget = _dispatchListeners$i.currentTarget; 9165 _dispatchListeners$i = _dispatchListeners$i.listener; 9166 if (instance !== previousInstance && event.isPropagationStopped()) break a; 9167 null !== instance ? runWithFiberInDEV(instance, executeDispatch, event, _dispatchListeners$i, currentTarget) : executeDispatch(event, _dispatchListeners$i, currentTarget); 9168 previousInstance = instance; 9169 } 9170 } 9171 } 9172 } 9173 function listenToNonDelegatedEvent(domEventName, targetElement) { 9174 nonDelegatedEvents.has(domEventName) || console.error("Did not expect a listenToNonDelegatedEvent() call for \"%s\". This is a bug in React. Please file an issue.", domEventName); 9175 var listenerSet = targetElement[internalEventHandlersKey]; 9176 void 0 === listenerSet && (listenerSet = targetElement[internalEventHandlersKey] = /* @__PURE__ */ new Set()); 9177 var listenerSetKey = domEventName + "__bubble"; 9178 listenerSet.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, !1), listenerSet.add(listenerSetKey)); 9179 } 9180 function listenToNativeEvent(domEventName, isCapturePhaseListener, target) { 9181 nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener && console.error("Did not expect a listenToNativeEvent() call for \"%s\" in the bubble phase. This is a bug in React. Please file an issue.", domEventName); 9182 var eventSystemFlags = 0; 9183 isCapturePhaseListener && (eventSystemFlags |= 4); 9184 addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener); 9185 } 9186 function listenToAllSupportedEvents(rootContainerElement) { 9187 if (!rootContainerElement[listeningMarker]) { 9188 rootContainerElement[listeningMarker] = !0; 9189 allNativeEvents.forEach(function(domEventName) { 9190 "selectionchange" !== domEventName && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, !1, rootContainerElement), listenToNativeEvent(domEventName, !0, rootContainerElement)); 9191 }); 9192 var ownerDocument = 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 9193 null === ownerDocument || ownerDocument[listeningMarker] || (ownerDocument[listeningMarker] = !0, listenToNativeEvent("selectionchange", !1, ownerDocument)); 9194 } 9195 } 9196 function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener) { 9197 switch (getEventPriority(domEventName)) { 9198 case DiscreteEventPriority: 9199 var listenerWrapper = dispatchDiscreteEvent; 9200 break; 9201 case ContinuousEventPriority: 9202 listenerWrapper = dispatchContinuousEvent; 9203 break; 9204 default: listenerWrapper = dispatchEvent; 9205 } 9206 eventSystemFlags = listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer); 9207 listenerWrapper = void 0; 9208 !passiveBrowserEventsSupported || "touchstart" !== domEventName && "touchmove" !== domEventName && "wheel" !== domEventName || (listenerWrapper = !0); 9209 isCapturePhaseListener ? void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 9210 capture: !0, 9211 passive: listenerWrapper 9212 }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !0) : void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { passive: listenerWrapper }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !1); 9213 } 9214 function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) { 9215 var ancestorInst = targetInst$jscomp$0; 9216 if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0) a: for (;;) { 9217 if (null === targetInst$jscomp$0) return; 9218 var nodeTag = targetInst$jscomp$0.tag; 9219 if (3 === nodeTag || 4 === nodeTag) { 9220 var container = targetInst$jscomp$0.stateNode.containerInfo; 9221 if (container === targetContainer) break; 9222 if (4 === nodeTag) for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag;) { 9223 var grandTag = nodeTag.tag; 9224 if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer) return; 9225 nodeTag = nodeTag.return; 9226 } 9227 for (; null !== container;) { 9228 nodeTag = getClosestInstanceFromNode(container); 9229 if (null === nodeTag) return; 9230 grandTag = nodeTag.tag; 9231 if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) { 9232 targetInst$jscomp$0 = ancestorInst = nodeTag; 9233 continue a; 9234 } 9235 container = container.parentNode; 9236 } 9237 } 9238 targetInst$jscomp$0 = targetInst$jscomp$0.return; 9239 } 9240 batchedUpdates$1(function() { 9241 var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; 9242 a: { 9243 var reactName = topLevelEventsToReactNames.get(domEventName); 9244 if (void 0 !== reactName) { 9245 var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName; 9246 switch (domEventName) { 9247 case "keypress": if (0 === getEventCharCode(nativeEvent)) break a; 9248 case "keydown": 9249 case "keyup": 9250 SyntheticEventCtor = SyntheticKeyboardEvent; 9251 break; 9252 case "focusin": 9253 reactEventType = "focus"; 9254 SyntheticEventCtor = SyntheticFocusEvent; 9255 break; 9256 case "focusout": 9257 reactEventType = "blur"; 9258 SyntheticEventCtor = SyntheticFocusEvent; 9259 break; 9260 case "beforeblur": 9261 case "afterblur": 9262 SyntheticEventCtor = SyntheticFocusEvent; 9263 break; 9264 case "click": if (2 === nativeEvent.button) break a; 9265 case "auxclick": 9266 case "dblclick": 9267 case "mousedown": 9268 case "mousemove": 9269 case "mouseup": 9270 case "mouseout": 9271 case "mouseover": 9272 case "contextmenu": 9273 SyntheticEventCtor = SyntheticMouseEvent; 9274 break; 9275 case "drag": 9276 case "dragend": 9277 case "dragenter": 9278 case "dragexit": 9279 case "dragleave": 9280 case "dragover": 9281 case "dragstart": 9282 case "drop": 9283 SyntheticEventCtor = SyntheticDragEvent; 9284 break; 9285 case "touchcancel": 9286 case "touchend": 9287 case "touchmove": 9288 case "touchstart": 9289 SyntheticEventCtor = SyntheticTouchEvent; 9290 break; 9291 case ANIMATION_END: 9292 case ANIMATION_ITERATION: 9293 case ANIMATION_START: 9294 SyntheticEventCtor = SyntheticAnimationEvent; 9295 break; 9296 case TRANSITION_END: 9297 SyntheticEventCtor = SyntheticTransitionEvent; 9298 break; 9299 case "scroll": 9300 case "scrollend": 9301 SyntheticEventCtor = SyntheticUIEvent; 9302 break; 9303 case "wheel": 9304 SyntheticEventCtor = SyntheticWheelEvent; 9305 break; 9306 case "copy": 9307 case "cut": 9308 case "paste": 9309 SyntheticEventCtor = SyntheticClipboardEvent; 9310 break; 9311 case "gotpointercapture": 9312 case "lostpointercapture": 9313 case "pointercancel": 9314 case "pointerdown": 9315 case "pointermove": 9316 case "pointerout": 9317 case "pointerover": 9318 case "pointerup": 9319 SyntheticEventCtor = SyntheticPointerEvent; 9320 break; 9321 case "toggle": 9322 case "beforetoggle": SyntheticEventCtor = SyntheticToggleEvent; 9323 } 9324 var inCapturePhase = 0 !== (eventSystemFlags & 4), accumulateTargetOnly = !inCapturePhase && ("scroll" === domEventName || "scrollend" === domEventName), reactEventName = inCapturePhase ? null !== reactName ? reactName + "Capture" : null : reactName; 9325 inCapturePhase = []; 9326 for (var instance = targetInst, lastHostComponent; null !== instance;) { 9327 var _instance2 = instance; 9328 lastHostComponent = _instance2.stateNode; 9329 _instance2 = _instance2.tag; 9330 5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2 || null === lastHostComponent || null === reactEventName || (_instance2 = getListener(instance, reactEventName), null != _instance2 && inCapturePhase.push(createDispatchListener(instance, _instance2, lastHostComponent))); 9331 if (accumulateTargetOnly) break; 9332 instance = instance.return; 9333 } 9334 0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9335 event: reactName, 9336 listeners: inCapturePhase 9337 })); 9338 } 9339 } 9340 if (0 === (eventSystemFlags & 7)) { 9341 a: { 9342 reactName = "mouseover" === domEventName || "pointerover" === domEventName; 9343 SyntheticEventCtor = "mouseout" === domEventName || "pointerout" === domEventName; 9344 if (reactName && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey])) break a; 9345 if (SyntheticEventCtor || reactName) { 9346 reactName = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget : (reactName = nativeEventTarget.ownerDocument) ? reactName.defaultView || reactName.parentWindow : window; 9347 if (SyntheticEventCtor) { 9348 if (reactEventType = nativeEvent.relatedTarget || nativeEvent.toElement, SyntheticEventCtor = targetInst, reactEventType = reactEventType ? getClosestInstanceFromNode(reactEventType) : null, null !== reactEventType && (accumulateTargetOnly = getNearestMountedFiber(reactEventType), inCapturePhase = reactEventType.tag, reactEventType !== accumulateTargetOnly || 5 !== inCapturePhase && 27 !== inCapturePhase && 6 !== inCapturePhase)) reactEventType = null; 9349 } else SyntheticEventCtor = null, reactEventType = targetInst; 9350 if (SyntheticEventCtor !== reactEventType) { 9351 inCapturePhase = SyntheticMouseEvent; 9352 _instance2 = "onMouseLeave"; 9353 reactEventName = "onMouseEnter"; 9354 instance = "mouse"; 9355 if ("pointerout" === domEventName || "pointerover" === domEventName) inCapturePhase = SyntheticPointerEvent, _instance2 = "onPointerLeave", reactEventName = "onPointerEnter", instance = "pointer"; 9356 accumulateTargetOnly = null == SyntheticEventCtor ? reactName : getNodeFromInstance(SyntheticEventCtor); 9357 lastHostComponent = null == reactEventType ? reactName : getNodeFromInstance(reactEventType); 9358 reactName = new inCapturePhase(_instance2, instance + "leave", SyntheticEventCtor, nativeEvent, nativeEventTarget); 9359 reactName.target = accumulateTargetOnly; 9360 reactName.relatedTarget = lastHostComponent; 9361 _instance2 = null; 9362 getClosestInstanceFromNode(nativeEventTarget) === targetInst && (inCapturePhase = new inCapturePhase(reactEventName, instance + "enter", reactEventType, nativeEvent, nativeEventTarget), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance2 = inCapturePhase); 9363 accumulateTargetOnly = _instance2; 9364 if (SyntheticEventCtor && reactEventType) b: { 9365 inCapturePhase = getParent; 9366 reactEventName = SyntheticEventCtor; 9367 instance = reactEventType; 9368 lastHostComponent = 0; 9369 for (_instance2 = reactEventName; _instance2; _instance2 = inCapturePhase(_instance2)) lastHostComponent++; 9370 _instance2 = 0; 9371 for (var tempB = instance; tempB; tempB = inCapturePhase(tempB)) _instance2++; 9372 for (; 0 < lastHostComponent - _instance2;) reactEventName = inCapturePhase(reactEventName), lastHostComponent--; 9373 for (; 0 < _instance2 - lastHostComponent;) instance = inCapturePhase(instance), _instance2--; 9374 for (; lastHostComponent--;) { 9375 if (reactEventName === instance || null !== instance && reactEventName === instance.alternate) { 9376 inCapturePhase = reactEventName; 9377 break b; 9378 } 9379 reactEventName = inCapturePhase(reactEventName); 9380 instance = inCapturePhase(instance); 9381 } 9382 inCapturePhase = null; 9383 } 9384 else inCapturePhase = null; 9385 null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent(dispatchQueue, reactName, SyntheticEventCtor, inCapturePhase, !1); 9386 null !== reactEventType && null !== accumulateTargetOnly && accumulateEnterLeaveListenersForEvent(dispatchQueue, accumulateTargetOnly, reactEventType, inCapturePhase, !0); 9387 } 9388 } 9389 } 9390 a: { 9391 reactName = targetInst ? getNodeFromInstance(targetInst) : window; 9392 SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase(); 9393 if ("select" === SyntheticEventCtor || "input" === SyntheticEventCtor && "file" === reactName.type) var getTargetInstFunc = getTargetInstForChangeEvent; 9394 else if (isTextInputElement(reactName)) if (isInputEventSupported) getTargetInstFunc = getTargetInstForInputOrChangeEvent; 9395 else { 9396 getTargetInstFunc = getTargetInstForInputEventPolyfill; 9397 var handleEventFunc = handleEventsForInputEventPolyfill; 9398 } 9399 else SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor || "input" !== SyntheticEventCtor.toLowerCase() || "checkbox" !== reactName.type && "radio" !== reactName.type ? targetInst && isCustomElement(targetInst.elementType) && (getTargetInstFunc = getTargetInstForChangeEvent) : getTargetInstFunc = getTargetInstForClickEvent; 9400 if (getTargetInstFunc && (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))) { 9401 createAndAccumulateChangeEvent(dispatchQueue, getTargetInstFunc, nativeEvent, nativeEventTarget); 9402 break a; 9403 } 9404 handleEventFunc && handleEventFunc(domEventName, reactName, targetInst); 9405 "focusout" === domEventName && targetInst && "number" === reactName.type && null != targetInst.memoizedProps.value && setDefaultValue(reactName, "number", reactName.value); 9406 } 9407 handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window; 9408 switch (domEventName) { 9409 case "focusin": 9410 if (isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable) activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null; 9411 break; 9412 case "focusout": 9413 lastSelection = activeElementInst = activeElement = null; 9414 break; 9415 case "mousedown": 9416 mouseDown = !0; 9417 break; 9418 case "contextmenu": 9419 case "mouseup": 9420 case "dragend": 9421 mouseDown = !1; 9422 constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 9423 break; 9424 case "selectionchange": if (skipSelectionChangeEvent) break; 9425 case "keydown": 9426 case "keyup": constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 9427 } 9428 var fallbackData; 9429 if (canUseCompositionEvent) b: { 9430 switch (domEventName) { 9431 case "compositionstart": 9432 var eventType = "onCompositionStart"; 9433 break b; 9434 case "compositionend": 9435 eventType = "onCompositionEnd"; 9436 break b; 9437 case "compositionupdate": 9438 eventType = "onCompositionUpdate"; 9439 break b; 9440 } 9441 eventType = void 0; 9442 } 9443 else isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : "keydown" === domEventName && nativeEvent.keyCode === START_KEYCODE && (eventType = "onCompositionStart"); 9444 eventType && (useFallbackCompositionData && "ko" !== nativeEvent.locale && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : (root = nativeEventTarget, startText = "value" in root ? root.value : root.textContent, isComposing = !0)), handleEventFunc = accumulateTwoPhaseListeners(targetInst, eventType), 0 < handleEventFunc.length && (eventType = new SyntheticCompositionEvent(eventType, domEventName, null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9445 event: eventType, 9446 listeners: handleEventFunc 9447 }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent), null !== fallbackData && (eventType.data = fallbackData)))); 9448 if (fallbackData = canUseTextInputEvent ? getNativeBeforeInputChars(domEventName, nativeEvent) : getFallbackBeforeInputChars(domEventName, nativeEvent)) eventType = accumulateTwoPhaseListeners(targetInst, "onBeforeInput"), 0 < eventType.length && (handleEventFunc = new SyntheticInputEvent("onBeforeInput", "beforeinput", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 9449 event: handleEventFunc, 9450 listeners: eventType 9451 }), handleEventFunc.data = fallbackData); 9452 extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); 9453 }
9454 processDispatchQueue(dispatchQueue, eventSystemFlags); 9455 }); 9456 } 9457 function createDispatchListener(instance, listener, currentTarget) { 9458 return { 9459 instance, 9460 listener, 9461 currentTarget 9462 }; 9463 } 9464 function accumulateTwoPhaseListeners(targetFiber, reactName) { 9465 for (var captureName = reactName + "Capture", listeners = []; null !== targetFiber;) { 9466 var _instance3 = targetFiber, stateNode = _instance3.stateNode; 9467 _instance3 = _instance3.tag; 9468 5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (_instance3 = getListener(targetFiber, captureName), null != _instance3 && listeners.unshift(createDispatchListener(targetFiber, _instance3, stateNode)), _instance3 = getListener(targetFiber, reactName), null != _instance3 && listeners.push(createDispatchListener(targetFiber, _instance3, stateNode))); 9469 if (3 === targetFiber.tag) return listeners; 9470 targetFiber = targetFiber.return; 9471 } 9472 return []; 9473 } 9474 function getParent(inst) { 9475 if (null === inst) return null; 9476 do 9477 inst = inst.return; 9478 while (inst && 5 !== inst.tag && 27 !== inst.tag); 9479 return inst ? inst : null; 9480 } 9481 function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { 9482 for (var registrationName = event._reactName, listeners = []; null !== target && target !== common;) { 9483 var _instance4 = target, alternate = _instance4.alternate, stateNode = _instance4.stateNode; 9484 _instance4 = _instance4.tag; 9485 if (null !== alternate && alternate === common) break; 9486 5 !== _instance4 && 26 !== _instance4 && 27 !== _instance4 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift(createDispatchListener(target, stateNode, alternate))) : inCapturePhase || (stateNode = getListener(target, registrationName), null != stateNode && listeners.push(createDispatchListener(target, stateNode, alternate)))); 9487 target = target.return; 9488 } 9489 0 !== listeners.length && dispatchQueue.push({ 9490 event, 9491 listeners 9492 }); 9493 } 9494 function validatePropertiesInDevelopment(type, props) { 9495 validateProperties$2(type, props); 9496 "input" !== type && "textarea" !== type && "select" !== type || null == props || null !== props.value || didWarnValueNull || (didWarnValueNull = !0, "select" === type && props.multiple ? console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", type) : console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", type)); 9497 var eventRegistry = { 9498 registrationNameDependencies, 9499 possibleRegistrationNames 9500 }; 9501 isCustomElement(type) || "string" === typeof props.is || warnUnknownProperties(type, props, eventRegistry); 9502 props.contentEditable && !props.suppressContentEditableWarning && null != props.children && console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."); 9503 } 9504 function warnForPropDifference(propName, serverValue, clientValue, serverDifferences) { 9505 serverValue !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(serverValue) !== clientValue && (serverDifferences[propName] = serverValue)); 9506 } 9507 function warnForExtraAttributes(domElement, attributeNames, serverDifferences) { 9508 attributeNames.forEach(function(attributeName) { 9509 serverDifferences[getPropNameFromAttributeName(attributeName)] = "style" === attributeName ? getStylesObjectFromElement(domElement) : domElement.getAttribute(attributeName); 9510 }); 9511 } 9512 function warnForInvalidEventListener(registrationName, listener) { 9513 !1 === listener ? console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", registrationName, registrationName, registrationName) : console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.", registrationName, typeof listener); 9514 } 9515 function normalizeHTML(parent, html) { 9516 parent = parent.namespaceURI === MATH_NAMESPACE || parent.namespaceURI === SVG_NAMESPACE ? parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName) : parent.ownerDocument.createElement(parent.tagName); 9517 parent.innerHTML = html; 9518 return parent.innerHTML; 9519 } 9520 function normalizeMarkupForTextOrAttribute(markup) { 9521 willCoercionThrow(markup) && (console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", typeName(markup)), testStringCoercion(markup)); 9522 return ("string" === typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 9523 } 9524 function checkForUnmatchedText(serverText, clientText) { 9525 clientText = normalizeMarkupForTextOrAttribute(clientText); 9526 return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1; 9527 } 9528 function setProp(domElement, tag, key, value, props, prevValue) { 9529 switch (key) { 9530 case "children": 9531 if ("string" === typeof value) validateTextNesting(value, tag, !1), "body" === tag || "textarea" === tag && "" === value || setTextContent(domElement, value); 9532 else if ("number" === typeof value || "bigint" === typeof value) validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); 9533 break; 9534 case "className": 9535 setValueForKnownAttribute(domElement, "class", value); 9536 break; 9537 case "tabIndex": 9538 setValueForKnownAttribute(domElement, "tabindex", value); 9539 break; 9540 case "dir": 9541 case "role": 9542 case "viewBox":
vendor: 13,024 bytes, lines 9543-9751
9543 case "width": 9544 case "height": 9545 setValueForKnownAttribute(domElement, key, value); 9546 break; 9547 case "style": 9548 setValueForStyles(domElement, value, prevValue); 9549 break; 9550 case "data": if ("object" !== tag) { 9551 setValueForKnownAttribute(domElement, "data", value); 9552 break; 9553 } 9554 case "src": 9555 case "href": 9556 if ("" === value && ("a" !== tag || "href" !== key)) { 9557 "src" === key ? console.error("An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.", key, key) : console.error("An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.", key, key); 9558 domElement.removeAttribute(key); 9559 break; 9560 } 9561 if (null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) { 9562 domElement.removeAttribute(key); 9563 break; 9564 } 9565 checkAttributeStringCoercion(value, key); 9566 value = sanitizeURL("" + value); 9567 domElement.setAttribute(key, value); 9568 break; 9569 case "action": 9570 case "formAction": 9571 null != value && ("form" === tag ? "formAction" === key ? console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.") : "function" === typeof value && (null == props.encType && null == props.method || didWarnFormActionMethod || (didWarnFormActionMethod = !0, console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")), null == props.target || didWarnFormActionTarget || (didWarnFormActionTarget = !0, console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))) : "input" === tag || "button" === tag ? "action" === key ? console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.") : "input" !== tag || "submit" === props.type || "image" === props.type || didWarnFormActionType ? "button" !== tag || null == props.type || "submit" === props.type || didWarnFormActionType ? "function" === typeof value && (null == props.name || didWarnFormActionName || (didWarnFormActionName = !0, console.error("Cannot specify a \"name\" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.")), null == props.formEncType && null == props.formMethod || didWarnFormActionMethod || (didWarnFormActionMethod = !0, console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")), null == props.formTarget || didWarnFormActionTarget || (didWarnFormActionTarget = !0, console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))) : (didWarnFormActionType = !0, console.error("A button can only specify a formAction along with type=\"submit\" or no type.")) : (didWarnFormActionType = !0, console.error("An input can only specify a formAction along with type=\"submit\" or type=\"image\".")) : "action" === key ? console.error("You can only pass the action prop to <form>.") : console.error("You can only pass the formAction prop to <input> or <button>.")); 9572 if ("function" === typeof value) { 9573 domElement.setAttribute(key, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')"); 9574 break; 9575 } else "function" === typeof prevValue && ("formAction" === key ? ("input" !== tag && setProp(domElement, tag, "name", props.name, props, null), setProp(domElement, tag, "formEncType", props.formEncType, props, null), setProp(domElement, tag, "formMethod", props.formMethod, props, null), setProp(domElement, tag, "formTarget", props.formTarget, props, null)) : (setProp(domElement, tag, "encType", props.encType, props, null), setProp(domElement, tag, "method", props.method, props, null), setProp(domElement, tag, "target", props.target, props, null))); 9576 if (null == value || "symbol" === typeof value || "boolean" === typeof value) { 9577 domElement.removeAttribute(key); 9578 break; 9579 } 9580 checkAttributeStringCoercion(value, key); 9581 value = sanitizeURL("" + value); 9582 domElement.setAttribute(key, value); 9583 break; 9584 case "onClick": 9585 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 9586 break; 9587 case "onScroll": 9588 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 9589 break; 9590 case "onScrollEnd": 9591 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 9592 break; 9593 case "dangerouslySetInnerHTML": 9594 if (null != value) { 9595 if ("object" !== typeof value || !("__html" in value)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."); 9596 key = value.__html; 9597 if (null != key) { 9598 if (null != props.children) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); 9599 domElement.innerHTML = key; 9600 } 9601 } 9602 break; 9603 case "multiple": 9604 domElement.multiple = value && "function" !== typeof value && "symbol" !== typeof value; 9605 break; 9606 case "muted": 9607 domElement.muted = value && "function" !== typeof value && "symbol" !== typeof value; 9608 break; 9609 case "suppressContentEditableWarning": 9610 case "suppressHydrationWarning": 9611 case "defaultValue": 9612 case "defaultChecked": 9613 case "innerHTML": 9614 case "ref": break; 9615 case "autoFocus": break; 9616 case "xlinkHref": 9617 if (null == value || "function" === typeof value || "boolean" === typeof value || "symbol" === typeof value) { 9618 domElement.removeAttribute("xlink:href"); 9619 break; 9620 } 9621 checkAttributeStringCoercion(value, key); 9622 key = sanitizeURL("" + value); 9623 domElement.setAttributeNS(xlinkNamespace, "xlink:href", key); 9624 break; 9625 case "contentEditable": 9626 case "spellCheck": 9627 case "draggable": 9628 case "value": 9629 case "autoReverse": 9630 case "externalResourcesRequired": 9631 case "focusable": 9632 case "preserveAlpha": 9633 null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, "" + value)) : domElement.removeAttribute(key); 9634 break; 9635 case "inert": "" !== value || didWarnForNewBooleanPropsWithEmptyValue[key] || (didWarnForNewBooleanPropsWithEmptyValue[key] = !0, console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", key)); 9636 case "allowFullScreen": 9637 case "async": 9638 case "autoPlay": 9639 case "controls": 9640 case "default": 9641 case "defer": 9642 case "disabled": 9643 case "disablePictureInPicture": 9644 case "disableRemotePlayback": 9645 case "formNoValidate": 9646 case "hidden": 9647 case "loop": 9648 case "noModule": 9649 case "noValidate": 9650 case "open": 9651 case "playsInline": 9652 case "readOnly": 9653 case "required": 9654 case "reversed": 9655 case "scoped": 9656 case "seamless": 9657 case "itemScope": 9658 value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, "") : domElement.removeAttribute(key); 9659 break; 9660 case "capture": 9661 case "download": 9662 !0 === value ? domElement.setAttribute(key, "") : !1 !== value && null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 9663 break; 9664 case "cols": 9665 case "rows": 9666 case "size": 9667 case "span": 9668 null != value && "function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 9669 break; 9670 case "rowSpan": 9671 case "start": 9672 null == value || "function" === typeof value || "symbol" === typeof value || isNaN(value) ? domElement.removeAttribute(key) : (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)); 9673 break; 9674 case "popover": 9675 listenToNonDelegatedEvent("beforetoggle", domElement); 9676 listenToNonDelegatedEvent("toggle", domElement); 9677 setValueForAttribute(domElement, "popover", value); 9678 break; 9679 case "xlinkActuate": 9680 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:actuate", value); 9681 break; 9682 case "xlinkArcrole": 9683 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:arcrole", value); 9684 break; 9685 case "xlinkRole": 9686 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:role", value); 9687 break; 9688 case "xlinkShow": 9689 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:show", value); 9690 break; 9691 case "xlinkTitle": 9692 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:title", value); 9693 break; 9694 case "xlinkType": 9695 setValueForNamespacedAttribute(domElement, xlinkNamespace, "xlink:type", value); 9696 break; 9697 case "xmlBase": 9698 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:base", value); 9699 break; 9700 case "xmlLang": 9701 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:lang", value); 9702 break; 9703 case "xmlSpace": 9704 setValueForNamespacedAttribute(domElement, xmlNamespace, "xml:space", value); 9705 break; 9706 case "is": 9707 null != prevValue && console.error("Cannot update the \"is\" prop after it has been initialized."); 9708 setValueForAttribute(domElement, "is", value); 9709 break; 9710 case "innerText": 9711 case "textContent": break; 9712 case "popoverTarget": didWarnPopoverTargetObject || null == value || "object" !== typeof value || (didWarnPopoverTargetObject = !0, console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.", value)); 9713 default: !(2 < key.length) || "o" !== key[0] && "O" !== key[0] || "n" !== key[1] && "N" !== key[1] ? (key = getAttributeAlias(key), setValueForAttribute(domElement, key, value)) : registrationNameDependencies.hasOwnProperty(key) && null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 9714 } 9715 } 9716 function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { 9717 switch (key) { 9718 case "style": 9719 setValueForStyles(domElement, value, prevValue); 9720 break; 9721 case "dangerouslySetInnerHTML": 9722 if (null != value) { 9723 if ("object" !== typeof value || !("__html" in value)) throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."); 9724 key = value.__html; 9725 if (null != key) { 9726 if (null != props.children) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); 9727 domElement.innerHTML = key; 9728 } 9729 } 9730 break; 9731 case "children": 9732 "string" === typeof value ? setTextContent(domElement, value) : ("number" === typeof value || "bigint" === typeof value) && setTextContent(domElement, "" + value); 9733 break; 9734 case "onScroll": 9735 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 9736 break; 9737 case "onScrollEnd": 9738 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 9739 break; 9740 case "onClick": 9741 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 9742 break; 9743 case "suppressContentEditableWarning": 9744 case "suppressHydrationWarning": 9745 case "innerHTML": 9746 case "ref": break; 9747 case "innerText": 9748 case "textContent": break; 9749 default: if (registrationNameDependencies.hasOwnProperty(key)) null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 9750 else a: { 9751 if ("o" === key[0] && "n" === key[1] && (props = key.endsWith("Capture"), tag = ke
vendor: 5,611 bytes, lines 9751-9888
9751y.slice(2, props ? key.length - 7 : void 0), prevValue = domElement[internalPropsKey] || null, prevValue = null != prevValue ? prevValue[key] : null, "function" === typeof prevValue && domElement.removeEventListener(tag, prevValue, props), "function" === typeof value)) { 9752 "function" !== typeof prevValue && null !== prevValue && (key in domElement ? domElement[key] = null : domElement.hasAttribute(key) && domElement.removeAttribute(key)); 9753 domElement.addEventListener(tag, value, props); 9754 break a; 9755 } 9756 key in domElement ? domElement[key] = value : !0 === value ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value); 9757 } 9758 } 9759 } 9760 function setInitialProperties(domElement, tag, props) { 9761 validatePropertiesInDevelopment(tag, props); 9762 switch (tag) { 9763 case "div": 9764 case "span": 9765 case "svg": 9766 case "path": 9767 case "a": 9768 case "g": 9769 case "p": 9770 case "li": break; 9771 case "img": 9772 listenToNonDelegatedEvent("error", domElement); 9773 listenToNonDelegatedEvent("load", domElement); 9774 var hasSrc = !1, hasSrcSet = !1, propKey; 9775 for (propKey in props) if (props.hasOwnProperty(propKey)) { 9776 var propValue = props[propKey]; 9777 if (null != propValue) switch (propKey) { 9778 case "src": 9779 hasSrc = !0; 9780 break; 9781 case "srcSet": 9782 hasSrcSet = !0; 9783 break; 9784 case "children": 9785 case "dangerouslySetInnerHTML": throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9786 default: setProp(domElement, tag, propKey, propValue, props, null); 9787 } 9788 } 9789 hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null); 9790 hasSrc && setProp(domElement, tag, "src", props.src, props, null); 9791 return; 9792 case "input": 9793 checkControlledValueProps("input", props); 9794 listenToNonDelegatedEvent("invalid", domElement); 9795 var defaultValue = propKey = propValue = hasSrcSet = null, checked = null, defaultChecked = null; 9796 for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { 9797 var _propValue = props[hasSrc]; 9798 if (null != _propValue) switch (hasSrc) { 9799 case "name": 9800 hasSrcSet = _propValue; 9801 break; 9802 case "type": 9803 propValue = _propValue; 9804 break; 9805 case "checked": 9806 checked = _propValue; 9807 break; 9808 case "defaultChecked": 9809 defaultChecked = _propValue; 9810 break; 9811 case "value": 9812 propKey = _propValue; 9813 break; 9814 case "defaultValue": 9815 defaultValue = _propValue; 9816 break; 9817 case "children": 9818 case "dangerouslySetInnerHTML": 9819 if (null != _propValue) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9820 break; 9821 default: setProp(domElement, tag, hasSrc, _propValue, props, null); 9822 } 9823 } 9824 validateInputProps(domElement, props); 9825 initInput(domElement, propKey, defaultValue, checked, defaultChecked, propValue, hasSrcSet, !1); 9826 return; 9827 case "select": 9828 checkControlledValueProps("select", props); 9829 listenToNonDelegatedEvent("invalid", domElement); 9830 hasSrc = propValue = propKey = null; 9831 for (hasSrcSet in props) if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet], null != defaultValue)) switch (hasSrcSet) { 9832 case "value": 9833 propKey = defaultValue; 9834 break; 9835 case "defaultValue": 9836 propValue = defaultValue; 9837 break; 9838 case "multiple": hasSrc = defaultValue; 9839 default: setProp(domElement, tag, hasSrcSet, defaultValue, props, null); 9840 } 9841 validateSelectProps(domElement, props); 9842 tag = propKey; 9843 props = propValue; 9844 domElement.multiple = !!hasSrc; 9845 null != tag ? updateOptions(domElement, !!hasSrc, tag, !1) : null != props && updateOptions(domElement, !!hasSrc, props, !0); 9846 return; 9847 case "textarea": 9848 checkControlledValueProps("textarea", props); 9849 listenToNonDelegatedEvent("invalid", domElement); 9850 propKey = hasSrcSet = hasSrc = null; 9851 for (propValue in props) if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue], null != defaultValue)) switch (propValue) { 9852 case "value": 9853 hasSrc = defaultValue; 9854 break; 9855 case "defaultValue": 9856 hasSrcSet = defaultValue; 9857 break; 9858 case "children": 9859 propKey = defaultValue; 9860 break; 9861 case "dangerouslySetInnerHTML": 9862 if (null != defaultValue) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>."); 9863 break; 9864 default: setProp(domElement, tag, propValue, defaultValue, props, null); 9865 } 9866 validateTextareaProps(domElement, props); 9867 initTextarea(domElement, hasSrc, hasSrcSet, propKey); 9868 return; 9869 case "option": 9870 validateOptionProps(domElement, props); 9871 for (checked in props) if (props.hasOwnProperty(checked) && (hasSrc = props[checked], null != hasSrc)) switch (checked) { 9872 case "selected": 9873 domElement.selected = hasSrc && "function" !== typeof hasSrc && "symbol" !== typeof hasSrc; 9874 break; 9875 default: setProp(domElement, tag, checked, hasSrc, props, null); 9876 } 9877 return; 9878 case "dialog": 9879 listenToNonDelegatedEvent("beforetoggle", domElement); 9880 listenToNonDelegatedEvent("toggle", domElement); 9881 listenToNonDelegatedEvent("cancel", domElement); 9882 listenToNonDelegatedEvent("close", domElement); 9883 break; 9884 case "iframe": 9885 case "object": 9886 listenToNonDelegatedEvent("load", domElement); 9887 break; 9888 case "video":
vendor: 6,487 bytes, lines 9889-10016
9889 case "audio": 9890 for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++) listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement); 9891 break; 9892 case "image": 9893 listenToNonDelegatedEvent("error", domElement); 9894 listenToNonDelegatedEvent("load", domElement); 9895 break; 9896 case "details": 9897 listenToNonDelegatedEvent("toggle", domElement); 9898 break; 9899 case "embed": 9900 case "source": 9901 case "link": listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement); 9902 case "area": 9903 case "base": 9904 case "br": 9905 case "col": 9906 case "hr": 9907 case "keygen": 9908 case "meta": 9909 case "param": 9910 case "track": 9911 case "wbr": 9912 case "menuitem": 9913 for (defaultChecked in props) if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked], null != hasSrc)) switch (defaultChecked) { 9914 case "children": 9915 case "dangerouslySetInnerHTML": throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9916 default: setProp(domElement, tag, defaultChecked, hasSrc, props, null); 9917 } 9918 return; 9919 default: if (isCustomElement(tag)) { 9920 for (_propValue in props) props.hasOwnProperty(_propValue) && (hasSrc = props[_propValue], void 0 !== hasSrc && setPropOnCustomElement(domElement, tag, _propValue, hasSrc, props, void 0)); 9921 return; 9922 } 9923 } 9924 for (defaultValue in props) props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue], null != hasSrc && setProp(domElement, tag, defaultValue, hasSrc, props, null)); 9925 } 9926 function updateProperties(domElement, tag, lastProps, nextProps) { 9927 validatePropertiesInDevelopment(tag, nextProps); 9928 switch (tag) { 9929 case "div": 9930 case "span": 9931 case "svg": 9932 case "path": 9933 case "a": 9934 case "g": 9935 case "p": 9936 case "li": break; 9937 case "input": 9938 var name = null, type = null, value = null, defaultValue = null, lastDefaultValue = null, checked = null, defaultChecked = null; 9939 for (propKey in lastProps) { 9940 var lastProp = lastProps[propKey]; 9941 if (lastProps.hasOwnProperty(propKey) && null != lastProp) switch (propKey) { 9942 case "checked": break; 9943 case "value": break; 9944 case "defaultValue": lastDefaultValue = lastProp; 9945 default: nextProps.hasOwnProperty(propKey) || setProp(domElement, tag, propKey, null, nextProps, lastProp); 9946 } 9947 } 9948 for (var _propKey8 in nextProps) { 9949 var propKey = nextProps[_propKey8]; 9950 lastProp = lastProps[_propKey8]; 9951 if (nextProps.hasOwnProperty(_propKey8) && (null != propKey || null != lastProp)) switch (_propKey8) { 9952 case "type": 9953 type = propKey; 9954 break; 9955 case "name": 9956 name = propKey; 9957 break; 9958 case "checked": 9959 checked = propKey; 9960 break; 9961 case "defaultChecked": 9962 defaultChecked = propKey; 9963 break; 9964 case "value": 9965 value = propKey; 9966 break; 9967 case "defaultValue": 9968 defaultValue = propKey; 9969 break; 9970 case "children": 9971 case "dangerouslySetInnerHTML": 9972 if (null != propKey) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 9973 break; 9974 default: propKey !== lastProp && setProp(domElement, tag, _propKey8, propKey, nextProps, lastProp); 9975 } 9976 } 9977 tag = "checkbox" === lastProps.type || "radio" === lastProps.type ? null != lastProps.checked : null != lastProps.value; 9978 nextProps = "checkbox" === nextProps.type || "radio" === nextProps.type ? null != nextProps.checked : null != nextProps.value; 9979 tag || !nextProps || didWarnUncontrolledToControlled || (console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), didWarnUncontrolledToControlled = !0); 9980 !tag || nextProps || didWarnControlledToUncontrolled || (console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"), didWarnControlledToUncontrolled = !0); 9981 updateInput(domElement, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name); 9982 return; 9983 case "select": 9984 propKey = value = defaultValue = _propKey8 = null; 9985 for (type in lastProps) if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) && null != lastDefaultValue) switch (type) { 9986 case "value": break; 9987 case "multiple": propKey = lastDefaultValue; 9988 default: nextProps.hasOwnProperty(type) || setProp(domElement, tag, type, null, nextProps, lastDefaultValue); 9989 } 9990 for (name in nextProps) if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (null != type || null != lastDefaultValue)) switch (name) { 9991 case "value": 9992 _propKey8 = type; 9993 break; 9994 case "defaultValue": 9995 defaultValue = type; 9996 break; 9997 case "multiple": value = type; 9998 default: type !== lastDefaultValue && setProp(domElement, tag, name, type, nextProps, lastDefaultValue); 9999 } 10000 nextProps = defaultValue; 10001 tag = value; 10002 lastProps = propKey; 10003 null != _propKey8 ? updateOptions(domElement, !!tag, _propKey8, !1) : !!lastProps !== !!tag && (null != nextProps ? updateOptions(domElement, !!tag, nextProps, !0) : updateOptions(domElement, !!tag, tag ? [] : "", !1)); 10004 return; 10005 case "textarea": 10006 propKey = _propKey8 = null; 10007 for (defaultValue in lastProps) if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) && null != name && !nextProps.hasOwnProperty(defaultValue)) switch (defaultValue) { 10008 case "value": break; 10009 case "children": break; 10010 default: setProp(domElement, tag, defaultValue, null, nextProps, name); 10011 } 10012 for (value in nextProps) if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (null != name || null != type)) switch (value) { 10013 case "value": 10014 _propKey8 = name; 10015 break; 10016 case "defaultValue":
10017 propKey = name; 10018 break; 10019 case "children": break; 10020 case "dangerouslySetInnerHTML": 10021 if (null != name) throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>."); 10022 break; 10023 default: name !== type && setProp(domElement, tag, value, name, nextProps, type); 10024 } 10025 updateTextarea(domElement, _propKey8, propKey); 10026 return; 10027 case "option": 10028 for (var _propKey13 in lastProps) if (_propKey8 = lastProps[_propKey13], lastProps.hasOwnProperty(_propKey13) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey13)) switch (_propKey13) { 10029 case "selected": 10030 domElement.selected = !1; 10031 break; 10032 default: setProp(domElement, tag, _propKey13, null, nextProps, _propKey8); 10033 } 10034 for (lastDefaultValue in nextProps) if (_propKey8 = nextProps[lastDefaultValue], propKey = lastProps[lastDefaultValue], nextProps.hasOwnProperty(lastDefaultValue) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) switch (lastDefaultValue) { 10035 case "selected": 10036 domElement.selected = _propKey8 && "function" !== typeof _propKey8 && "symbol" !== typeof _propKey8; 10037 break; 10038 default: setProp(domElement, tag, lastDefaultValue, _propKey8, nextProps, propKey); 10039 } 10040 return; 10041 case "img": 10042 case "link": 10043 case "area": 10044 case "base": 10045 case "br": 10046 case "col": 10047 case "embed": 10048 case "hr": 10049 case "keygen": 10050 case "meta": 10051 case "param": 10052 case "source": 10053 case "track": 10054 case "wbr": 10055 case "menuitem": 10056 for (var _propKey15 in lastProps) _propKey8 = lastProps[_propKey15], lastProps.hasOwnProperty(_propKey15) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey15) && setProp(domElement, tag, _propKey15, null, nextProps, _propKey8); 10057 for (checked in nextProps) if (_propKey8 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) switch (checked) { 10058 case "children": 10059 case "dangerouslySetInnerHTML": 10060 if (null != _propKey8) throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); 10061 break; 10062 default: setProp(domElement, tag, checked, _propKey8, nextProps, propKey); 10063 } 10064 return; 10065 default: if (isCustomElement(tag)) { 10066 for (var _propKey17 in lastProps) _propKey8 = lastProps[_propKey17], lastProps.hasOwnProperty(_propKey17) && void 0 !== _propKey8 && !nextProps.hasOwnProperty(_propKey17) && setPropOnCustomElement(domElement, tag, _propKey17, void 0, nextProps, _propKey8); 10067 for (defaultChecked in nextProps) _propKey8 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || _propKey8 === propKey || void 0 === _propKey8 && void 0 === propKey || setPropOnCustomElement(domElement, tag, defaultChecked, _propKey8, nextProps, propKey); 10068 return; 10069 } 10070 } 10071 for (var _propKey19 in lastProps) _propKey8 = lastProps[_propKey19], lastProps.hasOwnProperty(_propKey19) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey19) && setProp(domElement, tag, _propKey19, null, nextProps, _propKey8); 10072 for (lastProp in nextProps) _propKey8 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || _propKey8 === propKey || null == _propKey8 && null == propKey || setProp(domElement, tag, lastProp, _propKey8, nextProps, propKey); 10073 } 10074 function getPropNameFromAttributeName(attrName) { 10075 switch (attrName) { 10076 case "class": return "className"; 10077 case "for": return "htmlFor"; 10078 default: return attrName; 10079 } 10080 } 10081 function getStylesObjectFromElement(domElement) { 10082 var serverValueInObjectForm = {}; 10083 domElement = domElement.style; 10084 for (var i = 0; i < domElement.length; i++) { 10085 var styleName = domElement[i]; 10086 serverValueInObjectForm[styleName] = domElement.getPropertyValue(styleName); 10087 } 10088 return serverValueInObjectForm; 10089 } 10090 function diffHydratedStyles(domElement, value$jscomp$0, serverDifferences) { 10091 if (null != value$jscomp$0 && "object" !== typeof value$jscomp$0) console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); 10092 else { 10093 var clientValue; 10094 var delimiter = clientValue = "", styleName; 10095 for (styleName in value$jscomp$0) if (value$jscomp$0.hasOwnProperty(styleName)) { 10096 var value = value$jscomp$0[styleName]; 10097 null != value && "boolean" !== typeof value && "" !== value && (0 === styleName.indexOf("--") ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName + ":" + ("" + value).trim()) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + ("" + value).trim()) : clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + value + "px", delimiter = ";"); 10098 } 10099 clientValue = clientValue || null; 10100 value$jscomp$0 = domElement.getAttribute("style"); 10101 value$jscomp$0 !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(value$jscomp$0) !== clientValue && (serverDifferences.style = getStylesObjectFromElement(domElement))); 10102 } 10103 } 10104 function hydrateAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10105 extraAttributes.delete(attributeName); 10106 domElement = domElement.getAttribute(attributeName); 10107 if (null === domElement) switch (typeof value) { 10108 case "undefined":
vendor: 10,429 bytes, lines 10109-10338
10109 case "function": 10110 case "symbol": 10111 case "boolean": return; 10112 } 10113 else if (null != value) switch (typeof value) { 10114 case "function": 10115 case "symbol": 10116 case "boolean": break; 10117 default: if (checkAttributeStringCoercion(value, propKey), domElement === "" + value) return; 10118 } 10119 warnForPropDifference(propKey, domElement, value, serverDifferences); 10120 } 10121 function hydrateBooleanAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10122 extraAttributes.delete(attributeName); 10123 domElement = domElement.getAttribute(attributeName); 10124 if (null === domElement) { 10125 switch (typeof value) { 10126 case "function": 10127 case "symbol": return; 10128 } 10129 if (!value) return; 10130 } else switch (typeof value) { 10131 case "function": 10132 case "symbol": break; 10133 default: if (value) return; 10134 } 10135 warnForPropDifference(propKey, domElement, value, serverDifferences); 10136 } 10137 function hydrateBooleanishAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10138 extraAttributes.delete(attributeName); 10139 domElement = domElement.getAttribute(attributeName); 10140 if (null === domElement) switch (typeof value) { 10141 case "undefined": 10142 case "function": 10143 case "symbol": return; 10144 } 10145 else if (null != value) switch (typeof value) { 10146 case "function": 10147 case "symbol": break; 10148 default: if (checkAttributeStringCoercion(value, attributeName), domElement === "" + value) return; 10149 } 10150 warnForPropDifference(propKey, domElement, value, serverDifferences); 10151 } 10152 function hydrateNumericAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10153 extraAttributes.delete(attributeName); 10154 domElement = domElement.getAttribute(attributeName); 10155 if (null === domElement) switch (typeof value) { 10156 case "undefined": 10157 case "function": 10158 case "symbol": 10159 case "boolean": return; 10160 default: if (isNaN(value)) return; 10161 } 10162 else if (null != value) switch (typeof value) { 10163 case "function": 10164 case "symbol": 10165 case "boolean": break; 10166 default: if (!isNaN(value) && (checkAttributeStringCoercion(value, propKey), domElement === "" + value)) return; 10167 } 10168 warnForPropDifference(propKey, domElement, value, serverDifferences); 10169 } 10170 function hydrateSanitizedAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 10171 extraAttributes.delete(attributeName); 10172 domElement = domElement.getAttribute(attributeName); 10173 if (null === domElement) switch (typeof value) { 10174 case "undefined": 10175 case "function": 10176 case "symbol": 10177 case "boolean": return; 10178 } 10179 else if (null != value) switch (typeof value) { 10180 case "function": 10181 case "symbol": 10182 case "boolean": break; 10183 default: if (checkAttributeStringCoercion(value, propKey), attributeName = sanitizeURL("" + value), domElement === attributeName) return; 10184 } 10185 warnForPropDifference(propKey, domElement, value, serverDifferences); 10186 } 10187 function diffHydratedProperties(domElement, tag, props, hostContext) { 10188 for (var serverDifferences = {}, extraAttributes = /* @__PURE__ */ new Set(), attributes = domElement.attributes, i = 0; i < attributes.length; i++) switch (attributes[i].name.toLowerCase()) { 10189 case "value": break; 10190 case "checked": break; 10191 case "selected": break; 10192 default: extraAttributes.add(attributes[i].name); 10193 } 10194 if (isCustomElement(tag)) { 10195 for (var propKey in props) if (props.hasOwnProperty(propKey)) { 10196 var value = props[propKey]; 10197 if (null != value) { 10198 if (registrationNameDependencies.hasOwnProperty(propKey)) "function" !== typeof value && warnForInvalidEventListener(propKey, value); 10199 else if (!0 !== props.suppressHydrationWarning) switch (propKey) { 10200 case "children": 10201 "string" !== typeof value && "number" !== typeof value || warnForPropDifference("children", domElement.textContent, value, serverDifferences); 10202 continue; 10203 case "suppressContentEditableWarning": 10204 case "suppressHydrationWarning": 10205 case "defaultValue": 10206 case "defaultChecked": 10207 case "innerHTML": 10208 case "ref": continue; 10209 case "dangerouslySetInnerHTML": 10210 attributes = domElement.innerHTML; 10211 value = value ? value.__html : void 0; 10212 null != value && (value = normalizeHTML(domElement, value), warnForPropDifference(propKey, attributes, value, serverDifferences)); 10213 continue; 10214 case "style": 10215 extraAttributes.delete(propKey); 10216 diffHydratedStyles(domElement, value, serverDifferences); 10217 continue; 10218 case "offsetParent": 10219 case "offsetTop": 10220 case "offsetLeft": 10221 case "offsetWidth": 10222 case "offsetHeight": 10223 case "isContentEditable": 10224 case "outerText": 10225 case "outerHTML": 10226 extraAttributes.delete(propKey.toLowerCase()); 10227 console.error("Assignment to read-only property will result in a no-op: `%s`", propKey); 10228 continue; 10229 case "className": 10230 extraAttributes.delete("class"); 10231 attributes = getValueForAttributeOnCustomComponent(domElement, "class", value); 10232 warnForPropDifference("className", attributes, value, serverDifferences); 10233 continue; 10234 default: hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(propKey.toLowerCase()) : extraAttributes.delete(propKey), attributes = getValueForAttributeOnCustomComponent(domElement, propKey, value), warnForPropDifference(propKey, attributes, value, serverDifferences); 10235 } 10236 } 10237 } 10238 } else for (value in props) if (props.hasOwnProperty(value) && (propKey = props[value], null != propKey)) { 10239 if (registrationNameDependencies.hasOwnProperty(value)) "function" !== typeof propKey && warnForInvalidEventListener(value, propKey); 10240 else if (!0 !== props.suppressHydrationWarning) switch (value) { 10241 case "children": 10242 "string" !== typeof propKey && "number" !== typeof propKey || warnForPropDifference("children", domElement.textContent, propKey, serverDifferences); 10243 continue; 10244 case "suppressContentEditableWarning": 10245 case "suppressHydrationWarning": 10246 case "value": 10247 case "checked": 10248 case "selected": 10249 case "defaultValue": 10250 case "defaultChecked": 10251 case "innerHTML": 10252 case "ref": continue; 10253 case "dangerouslySetInnerHTML": 10254 attributes = domElement.innerHTML; 10255 propKey = propKey ? propKey.__html : void 0; 10256 null != propKey && (propKey = normalizeHTML(domElement, propKey), attributes !== propKey && (serverDifferences[value] = { __html: attributes })); 10257 continue; 10258 case "className": 10259 hydrateAttribute(domElement, value, "class", propKey, extraAttributes, serverDifferences); 10260 continue; 10261 case "tabIndex": 10262 hydrateAttribute(domElement, value, "tabindex", propKey, extraAttributes, serverDifferences); 10263 continue; 10264 case "style": 10265 extraAttributes.delete(value); 10266 diffHydratedStyles(domElement, propKey, serverDifferences); 10267 continue; 10268 case "multiple": 10269 extraAttributes.delete(value); 10270 warnForPropDifference(value, domElement.multiple, propKey, serverDifferences); 10271 continue; 10272 case "muted": 10273 extraAttributes.delete(value); 10274 warnForPropDifference(value, domElement.muted, propKey, serverDifferences); 10275 continue; 10276 case "autoFocus": 10277 extraAttributes.delete("autofocus"); 10278 warnForPropDifference(value, domElement.autofocus, propKey, serverDifferences); 10279 continue; 10280 case "data": if ("object" !== tag) { 10281 extraAttributes.delete(value); 10282 attributes = domElement.getAttribute("data"); 10283 warnForPropDifference(value, attributes, propKey, serverDifferences); 10284 continue; 10285 } 10286 case "src": 10287 case "href": 10288 if (!("" !== propKey || "a" === tag && "href" === value || "object" === tag && "data" === value)) { 10289 "src" === value ? console.error("An empty string (\"\") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.", value, value) : console.error("An empty string (\"\") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.", value, value); 10290 continue; 10291 } 10292 hydrateSanitizedAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10293 continue; 10294 case "action": 10295 case "formAction": 10296 attributes = domElement.getAttribute(value); 10297 if ("function" === typeof propKey) { 10298 extraAttributes.delete(value.toLowerCase()); 10299 "formAction" === value ? (extraAttributes.delete("name"), extraAttributes.delete("formenctype"), extraAttributes.delete("formmethod"), extraAttributes.delete("formtarget")) : (extraAttributes.delete("enctype"), extraAttributes.delete("method"), extraAttributes.delete("target")); 10300 continue; 10301 } else if (attributes === EXPECTED_FORM_ACTION_URL) { 10302 extraAttributes.delete(value.toLowerCase()); 10303 warnForPropDifference(value, "function", propKey, serverDifferences); 10304 continue; 10305 } 10306 hydrateSanitizedAttribute(domElement, value, value.toLowerCase(), propKey, extraAttributes, serverDifferences); 10307 continue; 10308 case "xlinkHref": 10309 hydrateSanitizedAttribute(domElement, value, "xlink:href", propKey, extraAttributes, serverDifferences); 10310 continue; 10311 case "contentEditable": 10312 hydrateBooleanishAttribute(domElement, value, "contenteditable", propKey, extraAttributes, serverDifferences); 10313 continue; 10314 case "spellCheck": 10315 hydrateBooleanishAttribute(domElement, value, "spellcheck", propKey, extraAttributes, serverDifferences); 10316 continue; 10317 case "draggable": 10318 case "autoReverse": 10319 case "externalResourcesRequired": 10320 case "focusable": 10321 case "preserveAlpha": 10322 hydrateBooleanishAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10323 continue; 10324 case "allowFullScreen": 10325 case "async": 10326 case "autoPlay": 10327 case "controls": 10328 case "default": 10329 case "defer": 10330 case "disabled": 10331 case "disablePictureInPicture": 10332 case "disableRemotePlayback": 10333 case "formNoValidate": 10334 case "hidden": 10335 case "loop": 10336 case "noModule": 10337 case "noValidate": 10338 case "open":
10339 case "playsInline": 10340 case "readOnly": 10341 case "required": 10342 case "reversed": 10343 case "scoped": 10344 case "seamless": 10345 case "itemScope": 10346 hydrateBooleanAttribute(domElement, value, value.toLowerCase(), propKey, extraAttributes, serverDifferences); 10347 continue; 10348 case "capture": 10349 case "download": 10350 a: { 10351 i = domElement; 10352 var attributeName = attributes = value, serverDifferences$jscomp$0 = serverDifferences; 10353 extraAttributes.delete(attributeName); 10354 i = i.getAttribute(attributeName); 10355 if (null === i) switch (typeof propKey) { 10356 case "undefined": 10357 case "function": 10358 case "symbol": break a; 10359 default: if (!1 === propKey) break a; 10360 } 10361 else if (null != propKey) switch (typeof propKey) { 10362 case "function": 10363 case "symbol": break; 10364 case "boolean": 10365 if (!0 === propKey && "" === i) break a; 10366 break; 10367 default: if (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey) break a; 10368 } 10369 warnForPropDifference(attributes, i, propKey, serverDifferences$jscomp$0); 10370 } 10371 continue; 10372 case "cols": 10373 case "rows": 10374 case "size": 10375 case "span": 10376 a: { 10377 i = domElement; 10378 attributeName = attributes = value; 10379 serverDifferences$jscomp$0 = serverDifferences; 10380 extraAttributes.delete(attributeName); 10381 i = i.getAttribute(attributeName); 10382 if (null === i) switch (typeof propKey) { 10383 case "undefined": 10384 case "function": 10385 case "symbol": 10386 case "boolean": break a; 10387 default: if (isNaN(propKey) || 1 > propKey) break a; 10388 } 10389 else if (null != propKey) switch (typeof propKey) { 10390 case "function": 10391 case "symbol": 10392 case "boolean": break; 10393 default: if (!(isNaN(propKey) || 1 > propKey) && (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey)) break a; 10394 } 10395 warnForPropDifference(attributes, i, propKey, serverDifferences$jscomp$0); 10396 } 10397 continue; 10398 case "rowSpan": 10399 hydrateNumericAttribute(domElement, value, "rowspan", propKey, extraAttributes, serverDifferences); 10400 continue; 10401 case "start": 10402 hydrateNumericAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10403 continue; 10404 case "xHeight": 10405 hydrateAttribute(domElement, value, "x-height", propKey, extraAttributes, serverDifferences); 10406 continue; 10407 case "xlinkActuate": 10408 hydrateAttribute(domElement, value, "xlink:actuate", propKey, extraAttributes, serverDifferences); 10409 continue; 10410 case "xlinkArcrole": 10411 hydrateAttribute(domElement, value, "xlink:arcrole", propKey, extraAttributes, serverDifferences); 10412 continue; 10413 case "xlinkRole": 10414 hydrateAttribute(domElement, value, "xlink:role", propKey, extraAttributes, serverDifferences); 10415 continue; 10416 case "xlinkShow": 10417 hydrateAttribute(domElement, value, "xlink:show", propKey, extraAttributes, serverDifferences); 10418 continue; 10419 case "xlinkTitle": 10420 hydrateAttribute(domElement, value, "xlink:title", propKey, extraAttributes, serverDifferences); 10421 continue; 10422 case "xlinkType": 10423 hydrateAttribute(domElement, value, "xlink:type", propKey, extraAttributes, serverDifferences); 10424 continue; 10425 case "xmlBase": 10426 hydrateAttribute(domElement, value, "xml:base", propKey, extraAttributes, serverDifferences); 10427 continue; 10428 case "xmlLang": 10429 hydrateAttribute(domElement, value, "xml:lang", propKey, extraAttributes, serverDifferences); 10430 continue; 10431 case "xmlSpace": 10432 hydrateAttribute(domElement, value, "xml:space", propKey, extraAttributes, serverDifferences); 10433 continue; 10434 case "inert": 10435 "" !== propKey || didWarnForNewBooleanPropsWithEmptyValue[value] || (didWarnForNewBooleanPropsWithEmptyValue[value] = !0, console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", value)); 10436 hydrateBooleanAttribute(domElement, value, value, propKey, extraAttributes, serverDifferences); 10437 continue; 10438 default: if (!(2 < value.length) || "o" !== value[0] && "O" !== value[0] || "n" !== value[1] && "N" !== value[1]) { 10439 i = getAttributeAlias(value); 10440 attributes = !1; 10441 hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(i.toLowerCase()) : (attributeName = value.toLowerCase(), attributeName = possibleStandardNames.hasOwnProperty(attributeName) ? possibleStandardNames[attributeName] || null : null, null !== attributeName && attributeName !== value && (attributes = !0, extraAttributes.delete(attributeName)), extraAttributes.delete(i)); 10442 a: if (attributeName = domElement, serverDifferences$jscomp$0 = i, i = propKey, isAttributeNameSafe(serverDifferences$jscomp$0)) if (attributeName.hasAttribute(serverDifferences$jscomp$0)) attributeName = attributeName.getAttribute(serverDifferences$jscomp$0), checkAttributeStringCoercion(i, serverDifferences$jscomp$0), i = attributeName === "" + i ? i : attributeName; 10443 else { 10444 switch (typeof i) { 10445 case "function": 10446 case "symbol": break a; 10447 case "boolean": if (attributeName = serverDifferences$jscomp$0.toLowerCase().slice(0, 5), "data-" !== attributeName && "aria-" !== attributeName) break a; 10448 } 10449 i = void 0 === i ? void 0 : null; 10450 } 10451 else i = void 0; 10452 attributes || warnForPropDifference(value, i, propKey, serverDifferences); 10453 } 10454 } 10455 } 10456 0 < extraAttributes.size && !0 !== props.suppressHydrationWarning && warnForExtraAttributes(domElement, extraAttributes, serverDifferences); 10457 return 0 === Object.keys(serverDifferences).length ? null : serverDifferences; 10458 } 10459 function propNamesListJoin(list, combinator) { 10460 switch (list.length) { 10461 case 0: return ""; 10462 case 1: return list[0]; 10463 case 2: return list[0] + " " + combinator + " " + list[1]; 10464 default: return list.slice(0, -1).join(", ") + ", " + combinator + " " + list[list.length - 1]; 10465 } 10466 } 10467 function isLikelyStaticResource(initiatorType) { 10468 switch (initiatorType) { 10469 case "css":
vendor: 23,080 bytes, lines 10470-10910
10470 case "script": 10471 case "font": 10472 case "img": 10473 case "image": 10474 case "input": 10475 case "link": return !0; 10476 default: return !1; 10477 } 10478 } 10479 function estimateBandwidth() { 10480 if ("function" === typeof performance.getEntriesByType) { 10481 for (var count = 0, bits = 0, resourceEntries = performance.getEntriesByType("resource"), i = 0; i < resourceEntries.length; i++) { 10482 var entry = resourceEntries[i], transferSize = entry.transferSize, initiatorType = entry.initiatorType, duration = entry.duration; 10483 if (transferSize && duration && isLikelyStaticResource(initiatorType)) { 10484 initiatorType = 0; 10485 duration = entry.responseEnd; 10486 for (i += 1; i < resourceEntries.length; i++) { 10487 var overlapEntry = resourceEntries[i], overlapStartTime = overlapEntry.startTime; 10488 if (overlapStartTime > duration) break; 10489 var overlapTransferSize = overlapEntry.transferSize, overlapInitiatorType = overlapEntry.initiatorType; 10490 overlapTransferSize && isLikelyStaticResource(overlapInitiatorType) && (overlapEntry = overlapEntry.responseEnd, initiatorType += overlapTransferSize * (overlapEntry < duration ? 1 : (duration - overlapStartTime) / (overlapEntry - overlapStartTime))); 10491 } 10492 --i; 10493 bits += 8 * (transferSize + initiatorType) / (entry.duration / 1e3); 10494 count++; 10495 if (10 < count) break; 10496 } 10497 } 10498 if (0 < count) return bits / count / 1e6; 10499 } 10500 return navigator.connection && (count = navigator.connection.downlink, "number" === typeof count) ? count : 5; 10501 } 10502 function getOwnerDocumentFromRootContainer(rootContainerElement) { 10503 return 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 10504 } 10505 function getOwnHostContext(namespaceURI) { 10506 switch (namespaceURI) { 10507 case SVG_NAMESPACE: return HostContextNamespaceSvg; 10508 case MATH_NAMESPACE: return HostContextNamespaceMath; 10509 default: return HostContextNamespaceNone; 10510 } 10511 } 10512 function getChildHostContextProd(parentNamespace, type) { 10513 if (parentNamespace === HostContextNamespaceNone) switch (type) { 10514 case "svg": return HostContextNamespaceSvg; 10515 case "math": return HostContextNamespaceMath; 10516 default: return HostContextNamespaceNone; 10517 } 10518 return parentNamespace === HostContextNamespaceSvg && "foreignObject" === type ? HostContextNamespaceNone : parentNamespace; 10519 } 10520 function shouldSetTextContent(type, props) { 10521 return "textarea" === type || "noscript" === type || "string" === typeof props.children || "number" === typeof props.children || "bigint" === typeof props.children || "object" === typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && null != props.dangerouslySetInnerHTML.__html; 10522 } 10523 function shouldAttemptEagerTransition() { 10524 var event = window.event; 10525 if (event && "popstate" === event.type) { 10526 if (event === currentPopstateTransitionEvent) return !1; 10527 currentPopstateTransitionEvent = event; 10528 return !0; 10529 } 10530 currentPopstateTransitionEvent = null; 10531 return !1; 10532 } 10533 function resolveEventType() { 10534 var event = window.event; 10535 return event && event !== schedulerEvent ? event.type : null; 10536 } 10537 function resolveEventTimeStamp() { 10538 var event = window.event; 10539 return event && event !== schedulerEvent ? event.timeStamp : -1.1; 10540 } 10541 function handleErrorInNextTick(error) { 10542 setTimeout(function() { 10543 throw error; 10544 }); 10545 } 10546 function commitMount(domElement, type, newProps) { 10547 switch (type) { 10548 case "button": 10549 case "input": 10550 case "select": 10551 case "textarea": 10552 newProps.autoFocus && domElement.focus(); 10553 break; 10554 case "img": newProps.src ? domElement.src = newProps.src : newProps.srcSet && (domElement.srcset = newProps.srcSet); 10555 } 10556 } 10557 function commitHydratedInstance() {} 10558 function commitUpdate(domElement, type, oldProps, newProps) { 10559 updateProperties(domElement, type, oldProps, newProps); 10560 domElement[internalPropsKey] = newProps; 10561 } 10562 function resetTextContent(domElement) { 10563 setTextContent(domElement, ""); 10564 } 10565 function commitTextUpdate(textInstance, oldText, newText) { 10566 textInstance.nodeValue = newText; 10567 } 10568 function warnForReactChildrenConflict(container) { 10569 if (!container.__reactWarnedAboutChildrenConflict) { 10570 var props = container[internalPropsKey] || null; 10571 if (null !== props) { 10572 var fiber = getInstanceFromNode(container); 10573 null !== fiber && ("string" === typeof props.children || "number" === typeof props.children ? (container.__reactWarnedAboutChildrenConflict = !0, runWithFiberInDEV(fiber, function() { 10574 console.error("Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"children\" text content using React. It should be a leaf with no children. Otherwise it's ambiguous which children should be used."); 10575 })) : null != props.dangerouslySetInnerHTML && (container.__reactWarnedAboutChildrenConflict = !0, runWithFiberInDEV(fiber, function() { 10576 console.error("Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets \"dangerouslySetInnerHTML\" using React. It should be a leaf with no children. Otherwise it's ambiguous which children should be used."); 10577 }))); 10578 } 10579 } 10580 } 10581 function isSingletonScope(type) { 10582 return "head" === type; 10583 } 10584 function removeChild(parentInstance, child) { 10585 parentInstance.removeChild(child); 10586 } 10587 function removeChildFromContainer(container, child) { 10588 (9 === container.nodeType ? container.body : "HTML" === container.nodeName ? container.ownerDocument.body : container).removeChild(child); 10589 } 10590 function clearHydrationBoundary(parentInstance, hydrationInstance) { 10591 var node = hydrationInstance, depth = 0; 10592 do { 10593 var nextNode = node.nextSibling; 10594 parentInstance.removeChild(node); 10595 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, node === SUSPENSE_END_DATA || node === ACTIVITY_END_DATA) { 10596 if (0 === depth) { 10597 parentInstance.removeChild(nextNode); 10598 retryIfBlockedOn(hydrationInstance); 10599 return; 10600 } 10601 depth--; 10602 } else if (node === SUSPENSE_START_DATA || node === SUSPENSE_PENDING_START_DATA || node === SUSPENSE_QUEUED_START_DATA || node === SUSPENSE_FALLBACK_START_DATA || node === ACTIVITY_START_DATA) depth++; 10603 else if (node === PREAMBLE_CONTRIBUTION_HTML) releaseSingletonInstance(parentInstance.ownerDocument.documentElement); 10604 else if (node === PREAMBLE_CONTRIBUTION_HEAD) { 10605 node = parentInstance.ownerDocument.head; 10606 releaseSingletonInstance(node); 10607 for (var node$jscomp$0 = node.firstChild; node$jscomp$0;) { 10608 var nextNode$jscomp$0 = node$jscomp$0.nextSibling, nodeName = node$jscomp$0.nodeName; 10609 node$jscomp$0[internalHoistableMarker] || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === node$jscomp$0.rel.toLowerCase() || node.removeChild(node$jscomp$0); 10610 node$jscomp$0 = nextNode$jscomp$0; 10611 } 10612 } else node === PREAMBLE_CONTRIBUTION_BODY && releaseSingletonInstance(parentInstance.ownerDocument.body); 10613 node = nextNode; 10614 } while (node); 10615 retryIfBlockedOn(hydrationInstance); 10616 } 10617 function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) { 10618 var node = suspenseInstance; 10619 suspenseInstance = 0; 10620 do { 10621 var nextNode = node.nextSibling; 10622 1 === node.nodeType ? isHidden ? (node._stashedDisplay = node.style.display, node.style.display = "none") : (node.style.display = node._stashedDisplay || "", "" === node.getAttribute("style") && node.removeAttribute("style")) : 3 === node.nodeType && (isHidden ? (node._stashedText = node.nodeValue, node.nodeValue = "") : node.nodeValue = node._stashedText || ""); 10623 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, node === SUSPENSE_END_DATA) if (0 === suspenseInstance) break; 10624 else suspenseInstance--; 10625 else node !== SUSPENSE_START_DATA && node !== SUSPENSE_PENDING_START_DATA && node !== SUSPENSE_QUEUED_START_DATA && node !== SUSPENSE_FALLBACK_START_DATA || suspenseInstance++; 10626 node = nextNode; 10627 } while (node); 10628 } 10629 function hideDehydratedBoundary(suspenseInstance) { 10630 hideOrUnhideDehydratedBoundary(suspenseInstance, !0); 10631 } 10632 function hideInstance(instance) { 10633 instance = instance.style; 10634 "function" === typeof instance.setProperty ? instance.setProperty("display", "none", "important") : instance.display = "none"; 10635 } 10636 function hideTextInstance(textInstance) { 10637 textInstance.nodeValue = ""; 10638 } 10639 function unhideDehydratedBoundary(dehydratedInstance) { 10640 hideOrUnhideDehydratedBoundary(dehydratedInstance, !1); 10641 } 10642 function unhideInstance(instance, props) { 10643 props = props[STYLE]; 10644 props = void 0 !== props && null !== props && props.hasOwnProperty("display") ? props.display : null; 10645 instance.style.display = null == props || "boolean" === typeof props ? "" : ("" + props).trim(); 10646 } 10647 function unhideTextInstance(textInstance, text) { 10648 textInstance.nodeValue = text; 10649 } 10650 function clearContainerSparingly(container) { 10651 var nextNode = container.firstChild; 10652 nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling); 10653 for (; nextNode;) { 10654 var node = nextNode; 10655 nextNode = nextNode.nextSibling; 10656 switch (node.nodeName) { 10657 case "HTML": 10658 case "HEAD": 10659 case "BODY": 10660 clearContainerSparingly(node); 10661 detachDeletedInstance(node); 10662 continue; 10663 case "SCRIPT": 10664 case "STYLE": continue; 10665 case "LINK": if ("stylesheet" === node.rel.toLowerCase()) continue; 10666 } 10667 container.removeChild(node); 10668 } 10669 } 10670 function canHydrateInstance(instance, type, props, inRootOrSingleton) { 10671 for (; 1 === instance.nodeType;) { 10672 var anyProps = props; 10673 if (instance.nodeName.toLowerCase() !== type.toLowerCase()) { 10674 if (!inRootOrSingleton && ("INPUT" !== instance.nodeName || "hidden" !== instance.type)) break; 10675 } else if (!inRootOrSingleton) if ("input" === type && "hidden" === instance.type) { 10676 checkAttributeStringCoercion(anyProps.name, "name"); 10677 var name = null == anyProps.name ? null : "" + anyProps.name; 10678 if ("hidden" === anyProps.type && instance.getAttribute("name") === name) return instance; 10679 } else return instance; 10680 else if (!instance[internalHoistableMarker]) switch (type) { 10681 case "meta": 10682 if (!instance.hasAttribute("itemprop")) break; 10683 return instance; 10684 case "link": 10685 name = instance.getAttribute("rel"); 10686 if ("stylesheet" === name && instance.hasAttribute("data-precedence")) break; 10687 else if (name !== anyProps.rel || instance.getAttribute("href") !== (null == anyProps.href || "" === anyProps.href ? null : anyProps.href) || instance.getAttribute("crossorigin") !== (null == anyProps.crossOrigin ? null : anyProps.crossOrigin) || instance.getAttribute("title") !== (null == anyProps.title ? null : anyProps.title)) break; 10688 return instance; 10689 case "style": 10690 if (instance.hasAttribute("data-precedence")) break; 10691 return instance; 10692 case "script": 10693 name = instance.getAttribute("src"); 10694 if ((name !== (null == anyProps.src ? null : anyProps.src) || instance.getAttribute("type") !== (null == anyProps.type ? null : anyProps.type) || instance.getAttribute("crossorigin") !== (null == anyProps.crossOrigin ? null : anyProps.crossOrigin)) && name && instance.hasAttribute("async") && !instance.hasAttribute("itemprop")) break; 10695 return instance; 10696 default: return instance; 10697 } 10698 instance = getNextHydratable(instance.nextSibling); 10699 if (null === instance) break; 10700 } 10701 return null; 10702 } 10703 function canHydrateTextInstance(instance, text, inRootOrSingleton) { 10704 if ("" === text) return null; 10705 for (; 3 !== instance.nodeType;) { 10706 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) return null; 10707 instance = getNextHydratable(instance.nextSibling); 10708 if (null === instance) return null; 10709 } 10710 return instance; 10711 } 10712 function canHydrateHydrationBoundary(instance, inRootOrSingleton) { 10713 for (; 8 !== instance.nodeType;) { 10714 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) return null; 10715 instance = getNextHydratable(instance.nextSibling); 10716 if (null === instance) return null; 10717 } 10718 return instance; 10719 } 10720 function isSuspenseInstancePending(instance) { 10721 return instance.data === SUSPENSE_PENDING_START_DATA || instance.data === SUSPENSE_QUEUED_START_DATA; 10722 } 10723 function isSuspenseInstanceFallback(instance) { 10724 return instance.data === SUSPENSE_FALLBACK_START_DATA || instance.data === SUSPENSE_PENDING_START_DATA && instance.ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING; 10725 } 10726 function registerSuspenseInstanceRetry(instance, callback) { 10727 var ownerDocument = instance.ownerDocument; 10728 if (instance.data === SUSPENSE_QUEUED_START_DATA) instance._reactRetry = callback; 10729 else if (instance.data !== SUSPENSE_PENDING_START_DATA || ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING) callback(); 10730 else { 10731 var listener = function() { 10732 callback(); 10733 ownerDocument.removeEventListener("DOMContentLoaded", listener); 10734 }; 10735 ownerDocument.addEventListener("DOMContentLoaded", listener); 10736 instance._reactRetry = listener; 10737 } 10738 } 10739 function getNextHydratable(node) { 10740 for (; null != node; node = node.nextSibling) { 10741 var nodeType = node.nodeType; 10742 if (1 === nodeType || 3 === nodeType) break; 10743 if (8 === nodeType) { 10744 nodeType = node.data; 10745 if (nodeType === SUSPENSE_START_DATA || nodeType === SUSPENSE_FALLBACK_START_DATA || nodeType === SUSPENSE_PENDING_START_DATA || nodeType === SUSPENSE_QUEUED_START_DATA || nodeType === ACTIVITY_START_DATA || nodeType === FORM_STATE_IS_MATCHING || nodeType === FORM_STATE_IS_NOT_MATCHING) break; 10746 if (nodeType === SUSPENSE_END_DATA || nodeType === ACTIVITY_END_DATA) return null; 10747 } 10748 } 10749 return node; 10750 } 10751 function describeHydratableInstanceForDevWarnings(instance) { 10752 if (1 === instance.nodeType) { 10753 for (var JSCompiler_temp_const = instance.nodeName.toLowerCase(), serverDifferences = {}, attributes = instance.attributes, i = 0; i < attributes.length; i++) { 10754 var attr = attributes[i]; 10755 serverDifferences[getPropNameFromAttributeName(attr.name)] = "style" === attr.name.toLowerCase() ? getStylesObjectFromElement(instance) : attr.value; 10756 } 10757 return { 10758 type: JSCompiler_temp_const, 10759 props: serverDifferences 10760 }; 10761 } 10762 return 8 === instance.nodeType ? instance.data === ACTIVITY_START_DATA ? { 10763 type: "Activity", 10764 props: {} 10765 } : { 10766 type: "Suspense", 10767 props: {} 10768 } : instance.nodeValue; 10769 } 10770 function diffHydratedTextForDevWarnings(textInstance, text, parentProps) { 10771 return null === parentProps || !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] ? (textInstance.nodeValue === text ? textInstance = null : (text = normalizeMarkupForTextOrAttribute(text), textInstance = normalizeMarkupForTextOrAttribute(textInstance.nodeValue) === text ? null : textInstance.nodeValue), textInstance) : null; 10772 } 10773 function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) { 10774 hydrationInstance = hydrationInstance.nextSibling; 10775 for (var depth = 0; hydrationInstance;) { 10776 if (8 === hydrationInstance.nodeType) { 10777 var data = hydrationInstance.data; 10778 if (data === SUSPENSE_END_DATA || data === ACTIVITY_END_DATA) { 10779 if (0 === depth) return getNextHydratable(hydrationInstance.nextSibling); 10780 depth--; 10781 } else data !== SUSPENSE_START_DATA && data !== SUSPENSE_FALLBACK_START_DATA && data !== SUSPENSE_PENDING_START_DATA && data !== SUSPENSE_QUEUED_START_DATA && data !== ACTIVITY_START_DATA || depth++; 10782 } 10783 hydrationInstance = hydrationInstance.nextSibling; 10784 } 10785 return null; 10786 } 10787 function getParentHydrationBoundary(targetInstance) { 10788 targetInstance = targetInstance.previousSibling; 10789 for (var depth = 0; targetInstance;) { 10790 if (8 === targetInstance.nodeType) { 10791 var data = targetInstance.data; 10792 if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_QUEUED_START_DATA || data === ACTIVITY_START_DATA) { 10793 if (0 === depth) return targetInstance; 10794 depth--; 10795 } else data !== SUSPENSE_END_DATA && data !== ACTIVITY_END_DATA || depth++; 10796 } 10797 targetInstance = targetInstance.previousSibling; 10798 } 10799 return null; 10800 } 10801 function commitHydratedContainer(container) { 10802 retryIfBlockedOn(container); 10803 } 10804 function commitHydratedActivityInstance(activityInstance) { 10805 retryIfBlockedOn(activityInstance); 10806 } 10807 function commitHydratedSuspenseInstance(suspenseInstance) { 10808 retryIfBlockedOn(suspenseInstance); 10809 } 10810 function resolveSingletonInstance(type, props, rootContainerInstance, hostContext, validateDOMNestingDev) { 10811 validateDOMNestingDev && validateDOMNesting(type, hostContext.ancestorInfo); 10812 props = getOwnerDocumentFromRootContainer(rootContainerInstance); 10813 switch (type) { 10814 case "html": 10815 type = props.documentElement; 10816 if (!type) throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page."); 10817 return type; 10818 case "head": 10819 type = props.head; 10820 if (!type) throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page."); 10821 return type; 10822 case "body": 10823 type = props.body; 10824 if (!type) throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page."); 10825 return type; 10826 default: throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React."); 10827 } 10828 } 10829 function acquireSingletonInstance(type, props, instance, internalInstanceHandle) { 10830 if (!instance[internalContainerInstanceKey] && getInstanceFromNode(instance)) { 10831 var tagName = instance.tagName.toLowerCase(); 10832 console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", tagName, tagName, tagName); 10833 } 10834 switch (type) { 10835 case "html": 10836 case "head": 10837 case "body": break; 10838 default: console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React."); 10839 } 10840 for (tagName = instance.attributes; tagName.length;) instance.removeAttributeNode(tagName[0]); 10841 setInitialProperties(instance, type, props); 10842 instance[internalInstanceKey] = internalInstanceHandle; 10843 instance[internalPropsKey] = props; 10844 } 10845 function releaseSingletonInstance(instance) { 10846 for (var attributes = instance.attributes; attributes.length;) instance.removeAttributeNode(attributes[0]); 10847 detachDeletedInstance(instance); 10848 } 10849 function getHoistableRoot(container) { 10850 return "function" === typeof container.getRootNode ? container.getRootNode() : 9 === container.nodeType ? container : container.ownerDocument; 10851 } 10852 function preconnectAs(rel, href, crossOrigin) { 10853 var ownerDocument = globalDocument; 10854 if (ownerDocument && "string" === typeof href && href) { 10855 var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href); 10856 limitedEscapedHref = "link[rel=\"" + rel + "\"][href=\"" + limitedEscapedHref + "\"]"; 10857 "string" === typeof crossOrigin && (limitedEscapedHref += "[crossorigin=\"" + crossOrigin + "\"]"); 10858 preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { 10859 rel, 10860 crossOrigin, 10861 href 10862 }, null === ownerDocument.querySelector(limitedEscapedHref) && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href))); 10863 } 10864 } 10865 function getResource(type, currentProps, pendingProps, currentResource) { 10866 var resourceRoot = (resourceRoot = rootInstanceStackCursor.current) ? getHoistableRoot(resourceRoot) : null; 10867 if (!resourceRoot) throw Error("\"resourceRoot\" was expected to exist. This is a bug in React."); 10868 switch (type) { 10869 case "meta": 10870 case "title": return null; 10871 case "style": return "string" === typeof pendingProps.precedence && "string" === typeof pendingProps.href ? (pendingProps = getStyleKey(pendingProps.href), currentProps = getResourcesFromRoot(resourceRoot).hoistableStyles, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 10872 type: "style", 10873 instance: null, 10874 count: 0, 10875 state: null 10876 }, currentProps.set(pendingProps, currentResource)), currentResource) : { 10877 type: "void", 10878 instance: null, 10879 count: 0, 10880 state: null 10881 }; 10882 case "link": 10883 if ("stylesheet" === pendingProps.rel && "string" === typeof pendingProps.href && "string" === typeof pendingProps.precedence) { 10884 type = getStyleKey(pendingProps.href); 10885 var _styles = getResourcesFromRoot(resourceRoot).hoistableStyles, _resource = _styles.get(type); 10886 if (!_resource && (resourceRoot = resourceRoot.ownerDocument || resourceRoot, _resource = { 10887 type: "stylesheet", 10888 instance: null, 10889 count: 0, 10890 state: { 10891 loading: NotLoaded, 10892 preload: null 10893 } 10894 }, _styles.set(type, _resource), (_styles = resourceRoot.querySelector(getStylesheetSelectorFromKey(type))) && !_styles._p && (_resource.instance = _styles, _resource.state.loading = Loaded | Inserted), !preloadPropsMap.has(type))) { 10895 var preloadProps = { 10896 rel: "preload", 10897 as: "style", 10898 href: pendingProps.href, 10899 crossOrigin: pendingProps.crossOrigin, 10900 integrity: pendingProps.integrity, 10901 media: pendingProps.media, 10902 hrefLang: pendingProps.hrefLang, 10903 referrerPolicy: pendingProps.referrerPolicy 10904 }; 10905 preloadPropsMap.set(type, preloadProps); 10906 _styles || preloadStylesheet(resourceRoot, type, preloadProps, _resource.state); 10907 } 10908 if (currentProps && null === currentResource) throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps); 10909 return _resource; 10910 }
vendor: 8,412 bytes, lines 10911-11043
10911 if (currentProps && null !== currentResource) throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps); 10912 return null; 10913 case "script": return currentProps = pendingProps.async, pendingProps = pendingProps.src, "string" === typeof pendingProps && currentProps && "function" !== typeof currentProps && "symbol" !== typeof currentProps ? (pendingProps = getScriptKey(pendingProps), currentProps = getResourcesFromRoot(resourceRoot).hoistableScripts, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 10914 type: "script", 10915 instance: null, 10916 count: 0, 10917 state: null 10918 }, currentProps.set(pendingProps, currentResource)), currentResource) : { 10919 type: "void", 10920 instance: null, 10921 count: 0, 10922 state: null 10923 }; 10924 default: throw Error("getResource encountered a type it did not expect: \"" + type + "\". this is a bug in React."); 10925 } 10926 } 10927 function describeLinkForResourceErrorDEV(props) { 10928 var describedProps = 0, description = "<link"; 10929 "string" === typeof props.rel ? (describedProps++, description += " rel=\"" + props.rel + "\"") : hasOwnProperty.call(props, "rel") && (describedProps++, description += " rel=\"" + (null === props.rel ? "null" : "invalid type " + typeof props.rel) + "\""); 10930 "string" === typeof props.href ? (describedProps++, description += " href=\"" + props.href + "\"") : hasOwnProperty.call(props, "href") && (describedProps++, description += " href=\"" + (null === props.href ? "null" : "invalid type " + typeof props.href) + "\""); 10931 "string" === typeof props.precedence ? (describedProps++, description += " precedence=\"" + props.precedence + "\"") : hasOwnProperty.call(props, "precedence") && (describedProps++, description += " precedence={" + (null === props.precedence ? "null" : "invalid type " + typeof props.precedence) + "}"); 10932 Object.getOwnPropertyNames(props).length > describedProps && (description += " ..."); 10933 return description + " />"; 10934 } 10935 function getStyleKey(href) { 10936 return "href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\""; 10937 } 10938 function getStylesheetSelectorFromKey(key) { 10939 return "link[rel=\"stylesheet\"][" + key + "]"; 10940 } 10941 function stylesheetPropsFromRawProps(rawProps) { 10942 return assign({}, rawProps, { 10943 "data-precedence": rawProps.precedence, 10944 precedence: null 10945 }); 10946 } 10947 function preloadStylesheet(ownerDocument, key, preloadProps, state) { 10948 ownerDocument.querySelector("link[rel=\"preload\"][as=\"style\"][" + key + "]") ? state.loading = Loaded : (key = ownerDocument.createElement("link"), state.preload = key, key.addEventListener("load", function() { 10949 return state.loading |= Loaded; 10950 }), key.addEventListener("error", function() { 10951 return state.loading |= Errored; 10952 }), setInitialProperties(key, "link", preloadProps), markNodeAsHoistable(key), ownerDocument.head.appendChild(key)); 10953 } 10954 function getScriptKey(src) { 10955 return "[src=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(src) + "\"]"; 10956 } 10957 function getScriptSelectorFromKey(key) { 10958 return "script[async]" + key; 10959 } 10960 function acquireResource(hoistableRoot, resource, props) { 10961 resource.count++; 10962 if (null === resource.instance) switch (resource.type) { 10963 case "style": 10964 var instance = hoistableRoot.querySelector("style[data-href~=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(props.href) + "\"]"); 10965 if (instance) return resource.instance = instance, markNodeAsHoistable(instance), instance; 10966 var styleProps = assign({}, props, { 10967 "data-href": props.href, 10968 "data-precedence": props.precedence, 10969 href: null, 10970 precedence: null 10971 }); 10972 instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("style"); 10973 markNodeAsHoistable(instance); 10974 setInitialProperties(instance, "style", styleProps); 10975 insertStylesheet(instance, props.precedence, hoistableRoot); 10976 return resource.instance = instance; 10977 case "stylesheet": 10978 styleProps = getStyleKey(props.href); 10979 var _instance = hoistableRoot.querySelector(getStylesheetSelectorFromKey(styleProps)); 10980 if (_instance) return resource.state.loading |= Inserted, resource.instance = _instance, markNodeAsHoistable(_instance), _instance; 10981 instance = stylesheetPropsFromRawProps(props); 10982 (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); 10983 _instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link"); 10984 markNodeAsHoistable(_instance); 10985 var linkInstance = _instance; 10986 linkInstance._p = new Promise(function(resolve, reject) { 10987 linkInstance.onload = resolve; 10988 linkInstance.onerror = reject; 10989 }); 10990 setInitialProperties(_instance, "link", instance); 10991 resource.state.loading |= Inserted; 10992 insertStylesheet(_instance, props.precedence, hoistableRoot); 10993 return resource.instance = _instance; 10994 case "script": 10995 _instance = getScriptKey(props.src); 10996 if (styleProps = hoistableRoot.querySelector(getScriptSelectorFromKey(_instance))) return resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps; 10997 instance = props; 10998 if (styleProps = preloadPropsMap.get(_instance)) instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps); 10999 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 11000 styleProps = hoistableRoot.createElement("script"); 11001 markNodeAsHoistable(styleProps); 11002 setInitialProperties(styleProps, "link", instance); 11003 hoistableRoot.head.appendChild(styleProps); 11004 return resource.instance = styleProps; 11005 case "void": return null; 11006 default: throw Error("acquireResource encountered a resource type it did not expect: \"" + resource.type + "\". this is a bug in React."); 11007 } 11008 else "stylesheet" === resource.type && (resource.state.loading & Inserted) === NotLoaded && (instance = resource.instance, resource.state.loading |= Inserted, insertStylesheet(instance, props.precedence, hoistableRoot)); 11009 return resource.instance; 11010 } 11011 function insertStylesheet(instance, precedence, root) { 11012 for (var nodes = root.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), last = nodes.length ? nodes[nodes.length - 1] : null, prior = last, i = 0; i < nodes.length; i++) { 11013 var node = nodes[i]; 11014 if (node.dataset.precedence === precedence) prior = node; 11015 else if (prior !== last) break; 11016 } 11017 prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root.nodeType ? root.head : root, precedence.insertBefore(instance, precedence.firstChild)); 11018 } 11019 function adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) { 11020 stylesheetProps.crossOrigin ??= preloadProps.crossOrigin; 11021 stylesheetProps.referrerPolicy ??= preloadProps.referrerPolicy; 11022 stylesheetProps.title ??= preloadProps.title; 11023 } 11024 function adoptPreloadPropsForScript(scriptProps, preloadProps) { 11025 scriptProps.crossOrigin ??= preloadProps.crossOrigin; 11026 scriptProps.referrerPolicy ??= preloadProps.referrerPolicy; 11027 scriptProps.integrity ??= preloadProps.integrity; 11028 } 11029 function getHydratableHoistableCache(type, keyAttribute, ownerDocument) { 11030 if (null === tagCaches) { 11031 var cache = /* @__PURE__ */ new Map(); 11032 var caches = tagCaches = /* @__PURE__ */ new Map(); 11033 caches.set(ownerDocument, cache); 11034 } else caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache)); 11035 if (cache.has(type)) return cache; 11036 cache.set(type, null); 11037 ownerDocument = ownerDocument.getElementsByTagName(type); 11038 for (caches = 0; caches < ownerDocument.length; caches++) { 11039 var node = ownerDocument[caches]; 11040 if (!(node[internalHoistableMarker] || node[internalInstanceKey] || "link" === type && "stylesheet" === node.getAttribute("rel")) && node.namespaceURI !== SVG_NAMESPACE) { 11041 var nodeKey = node.getAttribute(keyAttribute) || ""; 11042 nodeKey = type + nodeKey; 11043 var existing = cache.get(nodeKey);
vendor: 17,216 bytes, lines 11044-11323
11044 existing ? existing.push(node) : cache.set(nodeKey, [node]); 11045 } 11046 } 11047 return cache; 11048 } 11049 function mountHoistable(hoistableRoot, type, instance) { 11050 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 11051 hoistableRoot.head.insertBefore(instance, "title" === type ? hoistableRoot.querySelector("head > title") : null); 11052 } 11053 function isHostHoistableType(type, props, hostContext) { 11054 var outsideHostContainerContext = !hostContext.ancestorInfo.containerTagInScope; 11055 if (hostContext.context === HostContextNamespaceSvg || null != props.itemProp) return !outsideHostContainerContext || null == props.itemProp || "meta" !== type && "title" !== type && "style" !== type && "link" !== type && "script" !== type || console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.", type, type), !1; 11056 switch (type) { 11057 case "meta": 11058 case "title": return !0; 11059 case "style": 11060 if ("string" !== typeof props.precedence || "string" !== typeof props.href || "" === props.href) { 11061 outsideHostContainerContext && console.error("Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel=\"stylesheet\" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence=\"default\"` and `href=\"some unique resource identifier\"`."); 11062 break; 11063 } 11064 return !0; 11065 case "link": 11066 if ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href || props.onLoad || props.onError) { 11067 if ("stylesheet" === props.rel && "string" === typeof props.precedence) { 11068 type = props.href; 11069 var onError = props.onError, disabled = props.disabled; 11070 hostContext = []; 11071 props.onLoad && hostContext.push("`onLoad`"); 11072 onError && hostContext.push("`onError`"); 11073 null != disabled && hostContext.push("`disabled`"); 11074 onError = propNamesListJoin(hostContext, "and"); 11075 onError += 1 === hostContext.length ? " prop" : " props"; 11076 disabled = 1 === hostContext.length ? "an " + onError : "the " + onError; 11077 hostContext.length && console.error("React encountered a <link rel=\"stylesheet\" href=\"%s\" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.", type, disabled, onError); 11078 } 11079 outsideHostContainerContext && ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href ? console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag") : (props.onError || props.onLoad) && console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.")); 11080 break; 11081 } 11082 switch (props.rel) { 11083 case "stylesheet": return type = props.precedence, props = props.disabled, "string" !== typeof type && outsideHostContainerContext && console.error("Cannot render a <link rel=\"stylesheet\" /> outside the main document without knowing its precedence. Consider adding precedence=\"default\" or moving it into the root <head> tag."), "string" === typeof type && null == props; 11084 default: return !0; 11085 } 11086 case "script": 11087 type = props.async && "function" !== typeof props.async && "symbol" !== typeof props.async; 11088 if (!type || props.onLoad || props.onError || !props.src || "string" !== typeof props.src) { 11089 outsideHostContainerContext && (type ? props.onLoad || props.onError ? console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.") : console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>.") : console.error("Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async=\"\" or moving it into the root <head> tag.")); 11090 break; 11091 } 11092 return !0; 11093 case "noscript": 11094 case "template": outsideHostContainerContext && console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.", type); 11095 } 11096 return !1; 11097 } 11098 function preloadResource(resource) { 11099 return "stylesheet" === resource.type && (resource.state.loading & Settled) === NotLoaded ? !1 : !0; 11100 } 11101 function suspendResource(state, hoistableRoot, resource, props) { 11102 if ("stylesheet" === resource.type && ("string" !== typeof props.media || !1 !== matchMedia(props.media).matches) && (resource.state.loading & Inserted) === NotLoaded) { 11103 if (null === resource.instance) { 11104 var key = getStyleKey(props.href), instance = hoistableRoot.querySelector(getStylesheetSelectorFromKey(key)); 11105 if (instance) { 11106 hoistableRoot = instance._p; 11107 null !== hoistableRoot && "object" === typeof hoistableRoot && "function" === typeof hoistableRoot.then && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state)); 11108 resource.state.loading |= Inserted; 11109 resource.instance = instance; 11110 markNodeAsHoistable(instance); 11111 return; 11112 } 11113 instance = hoistableRoot.ownerDocument || hoistableRoot; 11114 props = stylesheetPropsFromRawProps(props); 11115 (key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key); 11116 instance = instance.createElement("link"); 11117 markNodeAsHoistable(instance); 11118 var linkInstance = instance; 11119 linkInstance._p = new Promise(function(resolve, reject) { 11120 linkInstance.onload = resolve; 11121 linkInstance.onerror = reject; 11122 }); 11123 setInitialProperties(instance, "link", props); 11124 resource.instance = instance; 11125 } 11126 null === state.stylesheets && (state.stylesheets = /* @__PURE__ */ new Map()); 11127 state.stylesheets.set(resource, hoistableRoot); 11128 (hoistableRoot = resource.state.preload) && (resource.state.loading & Settled) === NotLoaded && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource)); 11129 } 11130 } 11131 function waitForCommitToBeReady(state, timeoutOffset) { 11132 state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets); 11133 return 0 < state.count || 0 < state.imgCount ? function(commit) { 11134 var stylesheetTimer = setTimeout(function() { 11135 state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets); 11136 if (state.unsuspend) { 11137 var unsuspend = state.unsuspend; 11138 state.unsuspend = null; 11139 unsuspend(); 11140 } 11141 }, SUSPENSEY_STYLESHEET_TIMEOUT + timeoutOffset); 11142 0 < state.imgBytes && 0 === estimatedBytesWithinLimit && (estimatedBytesWithinLimit = 125 * estimateBandwidth() * SUSPENSEY_IMAGE_TIME_ESTIMATE); 11143 var imgTimer = setTimeout(function() { 11144 state.waitingForImages = !1; 11145 if (0 === state.count && (state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets), state.unsuspend)) { 11146 var unsuspend = state.unsuspend; 11147 state.unsuspend = null; 11148 unsuspend(); 11149 } 11150 }, (state.imgBytes > estimatedBytesWithinLimit ? 50 : SUSPENSEY_IMAGE_TIMEOUT) + timeoutOffset); 11151 state.unsuspend = commit; 11152 return function() { 11153 state.unsuspend = null; 11154 clearTimeout(stylesheetTimer); 11155 clearTimeout(imgTimer); 11156 }; 11157 } : null; 11158 } 11159 function onUnsuspend() { 11160 this.count--; 11161 if (0 === this.count && (0 === this.imgCount || !this.waitingForImages)) { 11162 if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets); 11163 else if (this.unsuspend) { 11164 var unsuspend = this.unsuspend; 11165 this.unsuspend = null; 11166 unsuspend(); 11167 } 11168 } 11169 } 11170 function insertSuspendedStylesheets(state, resources) { 11171 state.stylesheets = null; 11172 null !== state.unsuspend && (state.count++, precedencesByRoot = /* @__PURE__ */ new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state)); 11173 } 11174 function insertStylesheetIntoRoot(root, resource) { 11175 if (!(resource.state.loading & Inserted)) { 11176 var precedences = precedencesByRoot.get(root); 11177 if (precedences) var last = precedences.get(LAST_PRECEDENCE); 11178 else { 11179 precedences = /* @__PURE__ */ new Map(); 11180 precedencesByRoot.set(root, precedences); 11181 for (var nodes = root.querySelectorAll("link[data-precedence],style[data-precedence]"), i = 0; i < nodes.length; i++) { 11182 var node = nodes[i]; 11183 if ("LINK" === node.nodeName || "not all" !== node.getAttribute("media")) precedences.set(node.dataset.precedence, node), last = node; 11184 } 11185 last && precedences.set(LAST_PRECEDENCE, last); 11186 } 11187 nodes = resource.instance; 11188 node = nodes.getAttribute("data-precedence"); 11189 i = precedences.get(node) || last; 11190 i === last && precedences.set(LAST_PRECEDENCE, nodes); 11191 precedences.set(node, nodes); 11192 this.count++; 11193 last = onUnsuspend.bind(this); 11194 nodes.addEventListener("load", last); 11195 nodes.addEventListener("error", last); 11196 i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root = 9 === root.nodeType ? root.head : root, root.insertBefore(nodes, root.firstChild)); 11197 resource.state.loading |= Inserted; 11198 } 11199 } 11200 function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) { 11201 this.tag = 1; 11202 this.containerInfo = containerInfo; 11203 this.pingCache = this.current = this.pendingChildren = null; 11204 this.timeoutHandle = noTimeout; 11205 this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null; 11206 this.callbackPriority = 0; 11207 this.expirationTimes = createLaneMap(-1); 11208 this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; 11209 this.entanglements = createLaneMap(0); 11210 this.hiddenUpdates = createLaneMap(null); 11211 this.identifierPrefix = identifierPrefix; 11212 this.onUncaughtError = onUncaughtError; 11213 this.onCaughtError = onCaughtError; 11214 this.onRecoverableError = onRecoverableError; 11215 this.pooledCache = null; 11216 this.pooledCacheLanes = 0; 11217 this.formState = formState; 11218 this.incompleteTransitions = /* @__PURE__ */ new Map(); 11219 this.passiveEffectDuration = this.effectDuration = -0; 11220 this.memoizedUpdaters = /* @__PURE__ */ new Set(); 11221 containerInfo = this.pendingUpdatersLaneMap = []; 11222 for (tag = 0; 31 > tag; tag++) containerInfo.push(/* @__PURE__ */ new Set()); 11223 this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; 11224 } 11225 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) { 11226 containerInfo = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState); 11227 tag = ConcurrentMode; 11228 !0 === isStrictMode && (tag |= StrictLegacyMode | StrictEffectsMode); 11229 tag |= ProfileMode; 11230 isStrictMode = createFiber(3, null, null, tag); 11231 containerInfo.current = isStrictMode; 11232 isStrictMode.stateNode = containerInfo; 11233 tag = createCache(); 11234 retainCache(tag); 11235 containerInfo.pooledCache = tag; 11236 retainCache(tag); 11237 isStrictMode.memoizedState = { 11238 element: initialChildren, 11239 isDehydrated: hydrate, 11240 cache: tag 11241 }; 11242 initializeUpdateQueue(isStrictMode); 11243 return containerInfo; 11244 } 11245 function getContextForSubtree(parentComponent) { 11246 if (!parentComponent) return emptyContextObject; 11247 parentComponent = emptyContextObject; 11248 return parentComponent; 11249 } 11250 function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) { 11251 if (injectedHook && "function" === typeof injectedHook.onScheduleFiberRoot) try { 11252 injectedHook.onScheduleFiberRoot(rendererID, container, element); 11253 } catch (err) { 11254 hasLoggedError || (hasLoggedError = !0, console.error("React instrumentation encountered an error: %o", err)); 11255 } 11256 parentComponent = getContextForSubtree(parentComponent); 11257 null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; 11258 isRendering && null !== current && !didWarnAboutNestedUpdates && (didWarnAboutNestedUpdates = !0, console.error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", getComponentNameFromFiber(current) || "Unknown")); 11259 container = createUpdate(lane); 11260 container.payload = { element }; 11261 callback = void 0 === callback ? null : callback; 11262 null !== callback && ("function" !== typeof callback && console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.", callback), container.callback = callback); 11263 element = enqueueUpdate(rootFiber, container, lane); 11264 null !== element && (startUpdateTimerByLane(lane, "root.render()", null), scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane)); 11265 } 11266 function markRetryLaneImpl(fiber, retryLane) { 11267 fiber = fiber.memoizedState; 11268 if (null !== fiber && null !== fiber.dehydrated) { 11269 var a = fiber.retryLane; 11270 fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane; 11271 } 11272 } 11273 function markRetryLaneIfNotHydrated(fiber, retryLane) { 11274 markRetryLaneImpl(fiber, retryLane); 11275 (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane); 11276 } 11277 function attemptContinuousHydration(fiber) { 11278 if (13 === fiber.tag || 31 === fiber.tag) { 11279 var root = enqueueConcurrentRenderForLane(fiber, 67108864); 11280 null !== root && scheduleUpdateOnFiber(root, fiber, 67108864); 11281 markRetryLaneIfNotHydrated(fiber, 67108864); 11282 } 11283 } 11284 function attemptHydrationAtCurrentPriority(fiber) { 11285 if (13 === fiber.tag || 31 === fiber.tag) { 11286 var lane = requestUpdateLane(fiber); 11287 lane = getBumpedLaneForHydrationByLane(lane); 11288 var root = enqueueConcurrentRenderForLane(fiber, lane); 11289 null !== root && scheduleUpdateOnFiber(root, fiber, lane); 11290 markRetryLaneIfNotHydrated(fiber, lane); 11291 } 11292 } 11293 function getCurrentFiberForDevTools() { 11294 return current; 11295 } 11296 function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { 11297 var prevTransition = ReactSharedInternals.T; 11298 ReactSharedInternals.T = null; 11299 var previousPriority = ReactDOMSharedInternals.p; 11300 try { 11301 ReactDOMSharedInternals.p = DiscreteEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 11302 } finally { 11303 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 11304 } 11305 } 11306 function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) { 11307 var prevTransition = ReactSharedInternals.T; 11308 ReactSharedInternals.T = null; 11309 var previousPriority = ReactDOMSharedInternals.p; 11310 try { 11311 ReactDOMSharedInternals.p = ContinuousEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 11312 } finally { 11313 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 11314 } 11315 } 11316 function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11317 if (_enabled) { 11318 var blockedOn = findInstanceBlockingEvent(nativeEvent); 11319 if (null === blockedOn) dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer), clearIfContinuousEvent(domEventName, nativeEvent); 11320 else if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) nativeEvent.stopPropagation(); 11321 else if (clearIfContinuousEvent(domEventName, nativeEvent), eventSystemFlags & 4 && -1 < discreteReplayableEvents.indexOf(domEventName)) { 11322 for (; null !== blockedOn;) { 11323 var fiber = getInstanceFromNode(blockedOn);
vendor: 9,554 bytes, lines 11324-11556
11324 if (null !== fiber) switch (fiber.tag) { 11325 case 3: 11326 fiber = fiber.stateNode; 11327 if (fiber.current.memoizedState.isDehydrated) { 11328 var lanes = getHighestPriorityLanes(fiber.pendingLanes); 11329 if (0 !== lanes) { 11330 var root = fiber; 11331 root.pendingLanes |= 2; 11332 for (root.entangledLanes |= 2; lanes;) { 11333 var lane = 1 << 31 - clz32(lanes); 11334 root.entanglements[1] |= lane; 11335 lanes &= ~lane; 11336 } 11337 ensureRootIsScheduled(fiber); 11338 (executionContext & (RenderContext | CommitContext)) === NoContext && (workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS, flushSyncWorkAcrossRoots_impl(0, !1)); 11339 } 11340 } 11341 break; 11342 case 31: 11343 case 13: root = enqueueConcurrentRenderForLane(fiber, 2), null !== root && scheduleUpdateOnFiber(root, fiber, 2), flushSyncWork$1(), markRetryLaneIfNotHydrated(fiber, 2); 11344 } 11345 fiber = findInstanceBlockingEvent(nativeEvent); 11346 null === fiber && dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer); 11347 if (fiber === blockedOn) break; 11348 blockedOn = fiber; 11349 } 11350 null !== blockedOn && nativeEvent.stopPropagation(); 11351 } else dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer); 11352 } 11353 } 11354 function findInstanceBlockingEvent(nativeEvent) { 11355 nativeEvent = getEventTarget(nativeEvent); 11356 return findInstanceBlockingTarget(nativeEvent); 11357 } 11358 function findInstanceBlockingTarget(targetNode) { 11359 return_targetInst = null; 11360 targetNode = getClosestInstanceFromNode(targetNode); 11361 if (null !== targetNode) { 11362 var nearestMounted = getNearestMountedFiber(targetNode); 11363 if (null === nearestMounted) targetNode = null; 11364 else { 11365 var tag = nearestMounted.tag; 11366 if (13 === tag) { 11367 targetNode = getSuspenseInstanceFromFiber(nearestMounted); 11368 if (null !== targetNode) return targetNode; 11369 targetNode = null; 11370 } else if (31 === tag) { 11371 targetNode = getActivityInstanceFromFiber(nearestMounted); 11372 if (null !== targetNode) return targetNode; 11373 targetNode = null; 11374 } else if (3 === tag) { 11375 if (nearestMounted.stateNode.current.memoizedState.isDehydrated) return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 11376 targetNode = null; 11377 } else nearestMounted !== targetNode && (targetNode = null); 11378 } 11379 } 11380 return_targetInst = targetNode; 11381 return null; 11382 } 11383 function getEventPriority(domEventName) { 11384 switch (domEventName) { 11385 case "beforetoggle": 11386 case "cancel": 11387 case "click": 11388 case "close": 11389 case "contextmenu": 11390 case "copy": 11391 case "cut": 11392 case "auxclick": 11393 case "dblclick": 11394 case "dragend": 11395 case "dragstart": 11396 case "drop": 11397 case "focusin": 11398 case "focusout": 11399 case "input": 11400 case "invalid": 11401 case "keydown": 11402 case "keypress": 11403 case "keyup": 11404 case "mousedown": 11405 case "mouseup": 11406 case "paste": 11407 case "pause": 11408 case "play": 11409 case "pointercancel": 11410 case "pointerdown": 11411 case "pointerup": 11412 case "ratechange": 11413 case "reset": 11414 case "resize": 11415 case "seeked": 11416 case "submit": 11417 case "toggle": 11418 case "touchcancel": 11419 case "touchend": 11420 case "touchstart": 11421 case "volumechange": 11422 case "change": 11423 case "selectionchange": 11424 case "textInput": 11425 case "compositionstart": 11426 case "compositionend": 11427 case "compositionupdate": 11428 case "beforeblur": 11429 case "afterblur": 11430 case "beforeinput": 11431 case "blur": 11432 case "fullscreenchange": 11433 case "focus": 11434 case "hashchange": 11435 case "popstate": 11436 case "select": 11437 case "selectstart": return DiscreteEventPriority; 11438 case "drag": 11439 case "dragenter": 11440 case "dragexit": 11441 case "dragleave": 11442 case "dragover": 11443 case "mousemove": 11444 case "mouseout": 11445 case "mouseover": 11446 case "pointermove": 11447 case "pointerout": 11448 case "pointerover": 11449 case "scroll": 11450 case "touchmove": 11451 case "wheel": 11452 case "mouseenter": 11453 case "mouseleave": 11454 case "pointerenter": 11455 case "pointerleave": return ContinuousEventPriority; 11456 case "message": switch (getCurrentPriorityLevel()) { 11457 case ImmediatePriority: return DiscreteEventPriority; 11458 case UserBlockingPriority: return ContinuousEventPriority; 11459 case NormalPriority$1: 11460 case LowPriority: return DefaultEventPriority; 11461 case IdlePriority: return IdleEventPriority; 11462 default: return DefaultEventPriority; 11463 } 11464 default: return DefaultEventPriority; 11465 } 11466 } 11467 function clearIfContinuousEvent(domEventName, nativeEvent) { 11468 switch (domEventName) { 11469 case "focusin": 11470 case "focusout": 11471 queuedFocus = null; 11472 break; 11473 case "dragenter": 11474 case "dragleave": 11475 queuedDrag = null; 11476 break; 11477 case "mouseover": 11478 case "mouseout": 11479 queuedMouse = null; 11480 break; 11481 case "pointerover": 11482 case "pointerout": 11483 queuedPointers.delete(nativeEvent.pointerId); 11484 break; 11485 case "gotpointercapture": 11486 case "lostpointercapture": queuedPointerCaptures.delete(nativeEvent.pointerId); 11487 } 11488 } 11489 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11490 if (null === existingQueuedEvent || existingQueuedEvent.nativeEvent !== nativeEvent) return existingQueuedEvent = { 11491 blockedOn, 11492 domEventName, 11493 eventSystemFlags, 11494 nativeEvent, 11495 targetContainers: [targetContainer] 11496 }, null !== blockedOn && (blockedOn = getInstanceFromNode(blockedOn), null !== blockedOn && attemptContinuousHydration(blockedOn)), existingQueuedEvent; 11497 existingQueuedEvent.eventSystemFlags |= eventSystemFlags; 11498 blockedOn = existingQueuedEvent.targetContainers; 11499 null !== targetContainer && -1 === blockedOn.indexOf(targetContainer) && blockedOn.push(targetContainer); 11500 return existingQueuedEvent; 11501 } 11502 function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 11503 switch (domEventName) { 11504 case "focusin": return queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11505 case "dragenter": return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11506 case "mouseover": return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 11507 case "pointerover": 11508 var pointerId = nativeEvent.pointerId; 11509 queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)); 11510 return !0; 11511 case "gotpointercapture": return pointerId = nativeEvent.pointerId, queuedPointerCaptures.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)), !0; 11512 } 11513 return !1; 11514 } 11515 function attemptExplicitHydrationTarget(queuedTarget) { 11516 var targetInst = getClosestInstanceFromNode(queuedTarget.target); 11517 if (null !== targetInst) { 11518 var nearestMounted = getNearestMountedFiber(targetInst); 11519 if (null !== nearestMounted) { 11520 if (targetInst = nearestMounted.tag, 13 === targetInst) { 11521 if (targetInst = getSuspenseInstanceFromFiber(nearestMounted), null !== targetInst) { 11522 queuedTarget.blockedOn = targetInst; 11523 runWithPriority(queuedTarget.priority, function() { 11524 attemptHydrationAtCurrentPriority(nearestMounted); 11525 }); 11526 return; 11527 } 11528 } else if (31 === targetInst) { 11529 if (targetInst = getActivityInstanceFromFiber(nearestMounted), null !== targetInst) { 11530 queuedTarget.blockedOn = targetInst; 11531 runWithPriority(queuedTarget.priority, function() { 11532 attemptHydrationAtCurrentPriority(nearestMounted); 11533 }); 11534 return; 11535 } 11536 } else if (3 === targetInst && nearestMounted.stateNode.current.memoizedState.isDehydrated) { 11537 queuedTarget.blockedOn = 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 11538 return; 11539 } 11540 } 11541 } 11542 queuedTarget.blockedOn = null; 11543 } 11544 function attemptReplayContinuousQueuedEvent(queuedEvent) { 11545 if (null !== queuedEvent.blockedOn) return !1; 11546 for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length;) { 11547 var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent); 11548 if (null === nextBlockedOn) { 11549 nextBlockedOn = queuedEvent.nativeEvent; 11550 var nativeEventClone = new nextBlockedOn.constructor(nextBlockedOn.type, nextBlockedOn), event = nativeEventClone; 11551 null !== currentReplayingEvent && console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."); 11552 currentReplayingEvent = event; 11553 nextBlockedOn.target.dispatchEvent(nativeEventClone); 11554 null === currentReplayingEvent && console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."); 11555 currentReplayingEvent = null; 11556 } else return targetContainers = getInstanceFromNode(nextBlockedOn), null !== targetContainers && attemptContinuousHydration(targetContainers
vendor: 7,726 bytes, lines 11556-11681
11556), queuedEvent.blockedOn = nextBlockedOn, !1; 11557 targetContainers.shift(); 11558 } 11559 return !0; 11560 } 11561 function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { 11562 attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key); 11563 } 11564 function replayUnblockedEvents() { 11565 hasScheduledReplayAttempt = !1; 11566 null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null); 11567 null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null); 11568 null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null); 11569 queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); 11570 queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); 11571 } 11572 function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { 11573 queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = !0, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents))); 11574 } 11575 function scheduleReplayQueueIfNeeded(formReplayingQueue) { 11576 lastScheduledReplayQueue !== formReplayingQueue && (lastScheduledReplayQueue = formReplayingQueue, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, function() { 11577 lastScheduledReplayQueue === formReplayingQueue && (lastScheduledReplayQueue = null); 11578 for (var i = 0; i < formReplayingQueue.length; i += 3) { 11579 var form = formReplayingQueue[i], submitterOrAction = formReplayingQueue[i + 1], formData = formReplayingQueue[i + 2]; 11580 if ("function" !== typeof submitterOrAction) if (null === findInstanceBlockingTarget(submitterOrAction || form)) continue; 11581 else break; 11582 var formInst = getInstanceFromNode(form); 11583 null !== formInst && (formReplayingQueue.splice(i, 3), i -= 3, form = { 11584 pending: !0, 11585 data: formData, 11586 method: form.method, 11587 action: submitterOrAction 11588 }, Object.freeze(form), startHostTransition(formInst, form, submitterOrAction, formData)); 11589 } 11590 })); 11591 } 11592 function retryIfBlockedOn(unblocked) { 11593 function unblock(queuedEvent) { 11594 return scheduleCallbackIfUnblocked(queuedEvent, unblocked); 11595 } 11596 null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); 11597 null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); 11598 null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); 11599 queuedPointers.forEach(unblock); 11600 queuedPointerCaptures.forEach(unblock); 11601 for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { 11602 var queuedTarget = queuedExplicitHydrationTargets[i]; 11603 queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); 11604 } 11605 for (; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0], null === i.blockedOn);) attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); 11606 i = (unblocked.ownerDocument || unblocked).$$reactFormReplay; 11607 if (null != i) for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) { 11608 var form = i[queuedTarget], submitterOrAction = i[queuedTarget + 1], formProps = form[internalPropsKey] || null; 11609 if ("function" === typeof submitterOrAction) formProps || scheduleReplayQueueIfNeeded(i); 11610 else if (formProps) { 11611 var action = null; 11612 if (submitterOrAction && submitterOrAction.hasAttribute("formAction")) { 11613 if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null) action = formProps.formAction; 11614 else if (null !== findInstanceBlockingTarget(form)) continue; 11615 } else action = formProps.action; 11616 "function" === typeof action ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3); 11617 scheduleReplayQueueIfNeeded(i); 11618 } 11619 } 11620 } 11621 function defaultOnDefaultTransitionIndicator() { 11622 function handleNavigate(event) { 11623 event.canIntercept && "react-transition" === event.info && event.intercept({ 11624 handler: function() { 11625 return new Promise(function(resolve) { 11626 return pendingResolve = resolve; 11627 }); 11628 }, 11629 focusReset: "manual", 11630 scroll: "manual" 11631 }); 11632 } 11633 function handleNavigateComplete() { 11634 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 11635 isCancelled || setTimeout(startFakeNavigation, 20); 11636 } 11637 function startFakeNavigation() { 11638 if (!isCancelled && !navigation.transition) { 11639 var currentEntry = navigation.currentEntry; 11640 currentEntry && null != currentEntry.url && navigation.navigate(currentEntry.url, { 11641 state: currentEntry.getState(), 11642 info: "react-transition", 11643 history: "replace" 11644 }); 11645 } 11646 } 11647 if ("object" === typeof navigation) { 11648 var isCancelled = !1, pendingResolve = null; 11649 navigation.addEventListener("navigate", handleNavigate); 11650 navigation.addEventListener("navigatesuccess", handleNavigateComplete); 11651 navigation.addEventListener("navigateerror", handleNavigateComplete); 11652 setTimeout(startFakeNavigation, 100); 11653 return function() { 11654 isCancelled = !0; 11655 navigation.removeEventListener("navigate", handleNavigate); 11656 navigation.removeEventListener("navigatesuccess", handleNavigateComplete); 11657 navigation.removeEventListener("navigateerror", handleNavigateComplete); 11658 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 11659 }; 11660 } 11661 } 11662 function ReactDOMRoot(internalRoot) { 11663 this._internalRoot = internalRoot; 11664 } 11665 function ReactDOMHydrationRoot(internalRoot) { 11666 this._internalRoot = internalRoot; 11667 } 11668 function warnIfReactDOMContainerInDEV(container) { 11669 container[internalContainerInstanceKey] && (container._reactRootContainer ? console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.") : console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.")); 11670 } 11671 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 11672 var Scheduler = require_scheduler(), React = 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_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"); 11673 var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"); 11674 var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"); 11675 var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__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({ 11676 pending: !1, 11677 data: null, 11678 method: null, 11679 action: null 11680 }), valueStack = []; 11681 var fiberStack = [];
vendor: 3,416 bytes, lines 11682-11696
11682 var index$jscomp$0 = -1, contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd; 11683 disabledLog.__reactDisabledLog = !0; 11684 var prefix, suffix, reentry = !1; 11685 var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)(); 11686 var current = null, isRendering = !1, hasOwnProperty = Object.prototype.hasOwnProperty, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, log$1 = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, hasLoggedError = !1, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, DiscreteEventPriority = 2, ContinuousEventPriority = 8, DefaultEventPriority = 32, IdleEventPriority = 268435456, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactFiber$" + randomKey, internalPropsKey = "__reactProps$" + randomKey, internalContainerInstanceKey = "__reactContainer$" + randomKey, internalEventHandlersKey = "__reactEvents$" + randomKey, internalEventHandlerListenersKey = "__reactListeners$" + randomKey, internalEventHandlesSetKey = "__reactHandles$" + randomKey, internalRootNodeResourcesKey = "__reactResources$" + randomKey, internalHoistableMarker = "__reactMarker$" + randomKey, allNativeEvents = /* @__PURE__ */ new Set(), registrationNameDependencies = {}, possibleRegistrationNames = {}, hasReadOnlyValue = { 11687 button: !0, 11688 checkbox: !0, 11689 image: !0, 11690 hidden: !0, 11691 radio: !0, 11692 reset: !0, 11693 submit: !0 11694 }, VALID_ATTRIBUTE_NAME_REGEX = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, didWarnSelectedSetOnOption = !1, didWarnInvalidChild = !1, didWarnInvalidInnerHTML = !1; 11695 var didWarnValueDefaultValue = !1; 11696 var valuePropNames = ["value", "defaultValue"], didWarnValDefaultVal = !1, needsEscaping = /["'&<>\n\t]|^\s|\s$/, specialTags = "address applet area article aside base basefont bgsound blockquote body br button caption center col
vendor: 7,445 bytes, lines 11696-11875
11696colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "), inScopeTags = "applet caption html table td th marquee object template foreignObject desc title".split(" "), buttonScopeTags = inScopeTags.concat(["button"]), impliedEndTags = "dd dt li option optgroup p rp rt".split(" "), emptyAncestorInfoDev = { 11697 current: null, 11698 formTag: null, 11699 aTagInScope: null, 11700 buttonTagInScope: null, 11701 nobrTagInScope: null, 11702 pTagInButtonScope: null, 11703 listItemTagAutoclosing: null, 11704 dlItemTagAutoclosing: null, 11705 containerTagInScope: null, 11706 implicitRootScope: !1 11707 }, didWarn = {}, shorthandToLonghand = { 11708 animation: "animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "), 11709 background: "backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "), 11710 backgroundPosition: ["backgroundPositionX", "backgroundPositionY"], 11711 border: "borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "), 11712 borderBlockEnd: [ 11713 "borderBlockEndColor", 11714 "borderBlockEndStyle", 11715 "borderBlockEndWidth" 11716 ], 11717 borderBlockStart: [ 11718 "borderBlockStartColor", 11719 "borderBlockStartStyle", 11720 "borderBlockStartWidth" 11721 ], 11722 borderBottom: [ 11723 "borderBottomColor", 11724 "borderBottomStyle", 11725 "borderBottomWidth" 11726 ], 11727 borderColor: [ 11728 "borderBottomColor", 11729 "borderLeftColor", 11730 "borderRightColor", 11731 "borderTopColor" 11732 ], 11733 borderImage: [ 11734 "borderImageOutset", 11735 "borderImageRepeat", 11736 "borderImageSlice", 11737 "borderImageSource", 11738 "borderImageWidth" 11739 ], 11740 borderInlineEnd: [ 11741 "borderInlineEndColor", 11742 "borderInlineEndStyle", 11743 "borderInlineEndWidth" 11744 ], 11745 borderInlineStart: [ 11746 "borderInlineStartColor", 11747 "borderInlineStartStyle", 11748 "borderInlineStartWidth" 11749 ], 11750 borderLeft: [ 11751 "borderLeftColor", 11752 "borderLeftStyle", 11753 "borderLeftWidth" 11754 ], 11755 borderRadius: [ 11756 "borderBottomLeftRadius", 11757 "borderBottomRightRadius", 11758 "borderTopLeftRadius", 11759 "borderTopRightRadius" 11760 ], 11761 borderRight: [ 11762 "borderRightColor", 11763 "borderRightStyle", 11764 "borderRightWidth" 11765 ], 11766 borderStyle: [ 11767 "borderBottomStyle", 11768 "borderLeftStyle", 11769 "borderRightStyle", 11770 "borderTopStyle" 11771 ], 11772 borderTop: [ 11773 "borderTopColor", 11774 "borderTopStyle", 11775 "borderTopWidth" 11776 ], 11777 borderWidth: [ 11778 "borderBottomWidth", 11779 "borderLeftWidth", 11780 "borderRightWidth", 11781 "borderTopWidth" 11782 ], 11783 columnRule: [ 11784 "columnRuleColor", 11785 "columnRuleStyle", 11786 "columnRuleWidth" 11787 ], 11788 columns: ["columnCount", "columnWidth"], 11789 flex: [ 11790 "flexBasis", 11791 "flexGrow", 11792 "flexShrink" 11793 ], 11794 flexFlow: ["flexDirection", "flexWrap"], 11795 font: "fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "), 11796 fontVariant: "fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "), 11797 gap: ["columnGap", "rowGap"], 11798 grid: "gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "), 11799 gridArea: [ 11800 "gridColumnEnd", 11801 "gridColumnStart", 11802 "gridRowEnd", 11803 "gridRowStart" 11804 ], 11805 gridColumn: ["gridColumnEnd", "gridColumnStart"], 11806 gridColumnGap: ["columnGap"], 11807 gridGap: ["columnGap", "rowGap"], 11808 gridRow: ["gridRowEnd", "gridRowStart"], 11809 gridRowGap: ["rowGap"], 11810 gridTemplate: [ 11811 "gridTemplateAreas", 11812 "gridTemplateColumns", 11813 "gridTemplateRows" 11814 ], 11815 listStyle: [ 11816 "listStyleImage", 11817 "listStylePosition", 11818 "listStyleType" 11819 ], 11820 margin: [ 11821 "marginBottom", 11822 "marginLeft", 11823 "marginRight", 11824 "marginTop" 11825 ], 11826 marker: [ 11827 "markerEnd", 11828 "markerMid", 11829 "markerStart" 11830 ], 11831 mask: "maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "), 11832 maskPosition: ["maskPositionX", "maskPositionY"], 11833 outline: [ 11834 "outlineColor", 11835 "outlineStyle", 11836 "outlineWidth" 11837 ], 11838 overflow: ["overflowX", "overflowY"], 11839 padding: [ 11840 "paddingBottom", 11841 "paddingLeft", 11842 "paddingRight", 11843 "paddingTop" 11844 ], 11845 placeContent: ["alignContent", "justifyContent"], 11846 placeItems: ["alignItems", "justifyItems"], 11847 placeSelf: ["alignSelf", "justifySelf"], 11848 textDecoration: [ 11849 "textDecorationColor", 11850 "textDecorationLine", 11851 "textDecorationStyle" 11852 ], 11853 textEmphasis: ["textEmphasisColor", "textEmphasisStyle"], 11854 transition: [ 11855 "transitionDelay", 11856 "transitionDuration", 11857 "transitionProperty", 11858 "transitionTimingFunction" 11859 ], 11860 wordWrap: ["overflowWrap"] 11861 }, uppercasePattern = /([A-Z])/g, msPattern$1 = /^ms-/, badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnedForInfinityValue = !1, unitlessNumbers = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")), MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", aliases = new Map([ 11862 ["acceptCharset", "accept-charset"], 11863 ["htmlFor", "for"], 11864 ["httpEquiv", "http-equiv"], 11865 ["crossOrigin", "crossorigin"], 11866 ["accentHeight", "accent-height"], 11867 ["alignmentBaseline", "alignment-baseline"], 11868 ["arabicForm", "arabic-form"], 11869 ["baselineShift", "baseline-shift"], 11870 ["capHeight", "cap-height"], 11871 ["clipPath", "clip-path"], 11872 ["clipRule", "clip-rule"], 11873 ["colorInterpolation", "color-interpolation"], 11874 ["colorInterpolationFilters", "color-interpolation-filters"], 11875 ["colorProfile", "color-profile"],
11876 ["colorRendering", "color-rendering"], 11877 ["dominantBaseline", "dominant-baseline"], 11878 ["enableBackground", "enable-background"], 11879 ["fillOpacity", "fill-opacity"], 11880 ["fillRule", "fill-rule"], 11881 ["floodColor", "flood-color"], 11882 ["floodOpacity", "flood-opacity"], 11883 ["fontFamily", "font-family"], 11884 ["fontSize", "font-size"], 11885 ["fontSizeAdjust", "font-size-adjust"], 11886 ["fontStretch", "font-stretch"], 11887 ["fontStyle", "font-style"], 11888 ["fontVariant", "font-variant"], 11889 ["fontWeight", "font-weight"], 11890 ["glyphName", "glyph-name"], 11891 ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], 11892 ["glyphOrientationVertical", "glyph-orientation-vertical"], 11893 ["horizAdvX", "horiz-adv-x"], 11894 ["horizOriginX", "horiz-origin-x"], 11895 ["imageRendering", "image-rendering"], 11896 ["letterSpacing", "letter-spacing"], 11897 ["lightingColor", "lighting-color"], 11898 ["markerEnd", "marker-end"], 11899 ["markerMid", "marker-mid"], 11900 ["markerStart", "marker-start"], 11901 ["overlinePosition", "overline-position"], 11902 ["overlineThickness", "overline-thickness"], 11903 ["paintOrder", "paint-order"], 11904 ["panose-1", "panose-1"], 11905 ["pointerEvents", "pointer-events"], 11906 ["renderingIntent", "rendering-intent"], 11907 ["shapeRendering", "shape-rendering"], 11908 ["stopColor", "stop-color"], 11909 ["stopOpacity", "stop-opacity"], 11910 ["strikethroughPosition", "strikethrough-position"], 11911 ["strikethroughThickness", "strikethrough-thickness"], 11912 ["strokeDasharray", "stroke-dasharray"], 11913 ["strokeDashoffset", "stroke-dashoffset"], 11914 ["strokeLinecap", "stroke-linecap"], 11915 ["strokeLinejoin", "stroke-linejoin"], 11916 ["strokeMiterlimit", "stroke-miterlimit"], 11917 ["strokeOpacity", "stroke-opacity"], 11918 ["strokeWidth", "stroke-width"], 11919 ["textAnchor", "text-anchor"], 11920 ["textDecoration", "text-decoration"], 11921 ["textRendering", "text-rendering"], 11922 ["transformOrigin", "transform-origin"], 11923 ["underlinePosition", "underline-position"], 11924 ["underlineThickness", "underline-thickness"], 11925 ["unicodeBidi", "unicode-bidi"], 11926 ["unicodeRange", "unicode-range"], 11927 ["unitsPerEm", "units-per-em"], 11928 ["vAlphabetic", "v-alphabetic"], 11929 ["vHanging", "v-hanging"], 11930 ["vIdeographic", "v-ideographic"], 11931 ["vMathematical", "v-mathematical"], 11932 ["vectorEffect", "vector-effect"], 11933 ["vertAdvY", "vert-adv-y"], 11934 ["vertOriginX", "vert-origin-x"], 11935 ["vertOriginY", "vert-origin-y"], 11936 ["wordSpacing", "word-spacing"], 11937 ["writingMode", "writing-mode"], 11938 ["xmlnsXlink", "xmlns:xlink"], 11939 ["xHeight", "x-height"] 11940 ]), possibleStandardNames = { 11941 accept: "accept", 11942 acceptcharset: "acceptCharset", 11943 "accept-charset": "acceptCharset", 11944 accesskey: "accessKey", 11945 action: "action", 11946 allowfullscreen: "allowFullScreen", 11947 alt: "alt", 11948 as: "as", 11949 async: "async", 11950 autocapitalize: "autoCapitalize", 11951 autocomplete: "autoComplete", 11952 autocorrect: "autoCorrect", 11953 autofocus: "autoFocus", 11954 autoplay: "autoPlay", 11955 autosave: "autoSave", 11956 capture: "capture", 11957 cellpadding: "cellPadding", 11958 cellspacing: "cellSpacing", 11959 challenge: "challenge", 11960 charset: "charSet", 11961 checked: "checked", 11962 children: "children", 11963 cite: "cite", 11964 class: "className", 11965 classid: "classID", 11966 classname: "className", 11967 cols: "cols", 11968 colspan: "colSpan", 11969 content: "content", 11970 contenteditable: "contentEditable", 11971 contextmenu: "contextMenu", 11972 controls: "controls", 11973 controlslist: "controlsList", 11974 coords: "coords", 11975 crossorigin: "crossOrigin", 11976 dangerouslysetinnerhtml: "dangerouslySetInnerHTML", 11977 data: "data", 11978 datetime: "dateTime", 11979 default: "default", 11980 defaultchecked: "defaultChecked", 11981 defaultvalue: "defaultValue", 11982 defer: "defer", 11983 dir: "dir", 11984 disabled: "disabled", 11985 disablepictureinpicture: "disablePictureInPicture", 11986 disableremoteplayback: "disableRemotePlayback", 11987 download: "download", 11988 draggable: "draggable", 11989 enctype: "encType", 11990 enterkeyhint: "enterKeyHint", 11991 fetchpriority: "fetchPriority", 11992 for: "htmlFor", 11993 form: "form", 11994 formmethod: "formMethod", 11995 formaction: "formAction", 11996 formenctype: "formEncType", 11997 formnovalidate: "formNoValidate", 11998 formtarget: "formTarget", 11999 frameborder: "frameBorder", 12000 headers: "headers", 12001 height: "height", 12002 hidden: "hidden", 12003 high: "high", 12004 href: "href", 12005 hreflang: "hrefLang", 12006 htmlfor: "htmlFor", 12007 httpequiv: "httpEquiv", 12008 "http-equiv": "httpEquiv", 12009 icon: "icon", 12010 id: "id", 12011 imagesizes: "imageSizes", 12012 imagesrcset: "imageSrcSet", 12013 inert: "inert",
12014 innerhtml: "innerHTML", 12015 inputmode: "inputMode", 12016 integrity: "integrity", 12017 is: "is", 12018 itemid: "itemID", 12019 itemprop: "itemProp", 12020 itemref: "itemRef", 12021 itemscope: "itemScope", 12022 itemtype: "itemType", 12023 keyparams: "keyParams", 12024 keytype: "keyType", 12025 kind: "kind", 12026 label: "label", 12027 lang: "lang", 12028 list: "list", 12029 loop: "loop", 12030 low: "low", 12031 manifest: "manifest", 12032 marginwidth: "marginWidth", 12033 marginheight: "marginHeight", 12034 max: "max", 12035 maxlength: "maxLength", 12036 media: "media", 12037 mediagroup: "mediaGroup", 12038 method: "method", 12039 min: "min", 12040 minlength: "minLength", 12041 multiple: "multiple", 12042 muted: "muted", 12043 name: "name", 12044 nomodule: "noModule", 12045 nonce: "nonce", 12046 novalidate: "noValidate", 12047 open: "open", 12048 optimum: "optimum", 12049 pattern: "pattern", 12050 placeholder: "placeholder", 12051 playsinline: "playsInline", 12052 poster: "poster", 12053 preload: "preload", 12054 profile: "profile", 12055 radiogroup: "radioGroup", 12056 readonly: "readOnly", 12057 referrerpolicy: "referrerPolicy", 12058 rel: "rel", 12059 required: "required", 12060 reversed: "reversed", 12061 role: "role", 12062 rows: "rows", 12063 rowspan: "rowSpan", 12064 sandbox: "sandbox", 12065 scope: "scope", 12066 scoped: "scoped", 12067 scrolling: "scrolling", 12068 seamless: "seamless", 12069 selected: "selected", 12070 shape: "shape", 12071 size: "size", 12072 sizes: "sizes", 12073 span: "span", 12074 spellcheck: "spellCheck", 12075 src: "src", 12076 srcdoc: "srcDoc", 12077 srclang: "srcLang", 12078 srcset: "srcSet", 12079 start: "start", 12080 step: "step", 12081 style: "style", 12082 summary: "summary", 12083 tabindex: "tabIndex", 12084 target: "target", 12085 title: "title", 12086 type: "type", 12087 usemap: "useMap", 12088 value: "value", 12089 width: "width", 12090 wmode: "wmode", 12091 wrap: "wrap", 12092 about: "about", 12093 accentheight: "accentHeight", 12094 "accent-height": "accentHeight", 12095 accumulate: "accumulate", 12096 additive: "additive", 12097 alignmentbaseline: "alignmentBaseline", 12098 "alignment-baseline": "alignmentBaseline", 12099 allowreorder: "allowReorder", 12100 alphabetic: "alphabetic", 12101 amplitude: "amplitude", 12102 arabicform: "arabicForm", 12103 "arabic-form": "arabicForm", 12104 ascent: "ascent", 12105 attributename: "attributeName", 12106 attributetype: "attributeType", 12107 autoreverse: "autoReverse", 12108 azimuth: "azimuth", 12109 basefrequency: "baseFrequency", 12110 baselineshift: "baselineShift", 12111 "baseline-shift": "baselineShift", 12112 baseprofile: "baseProfile", 12113 bbox: "bbox", 12114 begin: "begin", 12115 bias: "bias", 12116 by: "by", 12117 calcmode: "calcMode", 12118 capheight: "capHeight", 12119 "cap-height": "capHeight", 12120 clip: "clip", 12121 clippath: "clipPath", 12122 "clip-path": "clipPath", 12123 clippathunits: "clipPathUnits", 12124 cliprule: "clipRule", 12125 "clip-rule": "clipRule", 12126 color: "color", 12127 colorinterpolation: "colorInterpolation", 12128 "color-interpolation": "colorInterpolation", 12129 colorinterpolationfilters: "colorInterpolationFilters", 12130 "color-interpolation-filters": "colorInterpolationFilters", 12131 colorprofile: "colorProfile", 12132 "color-profile": "colorProfile", 12133 colorrendering: "colorRendering", 12134 "color-rendering": "colorRendering", 12135 contentscripttype: "contentScriptType", 12136 contentstyletype: "contentStyleType", 12137 cursor: "cursor", 12138 cx: "cx", 12139 cy: "cy", 12140 d: "d", 12141 datatype: "datatype", 12142 decelerate: "decelerate", 12143 descent: "descent", 12144 diffuseconstant: "diffuseConstant", 12145 direction: "direction", 12146 display: "display", 12147 divisor: "divisor", 12148 dominantbaseline: "dominantBaseline", 12149 "dominant-baseline": "dominantBaseline", 12150 dur: "dur", 12151 dx: "dx", 12152 dy: "dy", 12153 edgemode: "edgeMode", 12154 elevation: "elevation", 12155 enablebackground: "enableBackground", 12156 "enable-background": "enableBackground", 12157 end: "end", 12158 exponent: "exponent", 12159 externalresourcesrequired: "externalResourcesRequired", 12160 fill: "fill", 12161 fillopacity: "fillOpacity", 12162 "fill-opacity": "fillOpacity", 12163 fillrule: "fillRule", 12164 "fill-rule": "fillRule", 12165 filter: "filter", 12166 filterres: "filterRes", 12167 filterunits: "filterUnits", 12168 floodopacity: "floodOpacity", 12169 "flood-opacity": "floodOpacity", 12170 floodcolor: "floodColor", 12171 "flood-color": "floodColor", 12172 focusable: "focusable", 12173 fontfamily: "fontFamily", 12174 "font-family": "fontFamily", 12175 fontsize: "fontSize", 12176 "font-size": "fontSize", 12177 fontsizeadjust: "fontSizeAdjust", 12178 "font-size-adjust": "fontSizeAdjust", 12179 fontstretch: "fontStretch", 12180 "font-stretch": "fontStretch", 12181 fontstyle: "fontStyle", 12182 "font-style": "fontStyle", 12183 fontvariant: "fontVariant", 12184 "font-variant": "fontVariant", 12185 fontweight: "fontWeight", 12186 "font-weight": "fontWeight", 12187 format: "format", 12188 from: "from", 12189 fx: "fx", 12190 fy: "fy", 12191 g1: "g1", 12192 g2: "g2", 12193 glyphname: "glyphName", 12194 "glyph-name": "glyphName", 12195 glyphorientationhorizontal: "glyphOrientationHorizontal", 12196 "glyph-orientation-horizontal": "glyphOrientationHorizontal",
12197 glyphorientationvertical: "glyphOrientationVertical", 12198 "glyph-orientation-vertical": "glyphOrientationVertical", 12199 glyphref: "glyphRef", 12200 gradienttransform: "gradientTransform", 12201 gradientunits: "gradientUnits", 12202 hanging: "hanging", 12203 horizadvx: "horizAdvX", 12204 "horiz-adv-x": "horizAdvX", 12205 horizoriginx: "horizOriginX", 12206 "horiz-origin-x": "horizOriginX", 12207 ideographic: "ideographic", 12208 imagerendering: "imageRendering", 12209 "image-rendering": "imageRendering", 12210 in2: "in2", 12211 in: "in", 12212 inlist: "inlist", 12213 intercept: "intercept", 12214 k1: "k1", 12215 k2: "k2", 12216 k3: "k3", 12217 k4: "k4", 12218 k: "k", 12219 kernelmatrix: "kernelMatrix", 12220 kernelunitlength: "kernelUnitLength", 12221 kerning: "kerning", 12222 keypoints: "keyPoints", 12223 keysplines: "keySplines", 12224 keytimes: "keyTimes", 12225 lengthadjust: "lengthAdjust", 12226 letterspacing: "letterSpacing", 12227 "letter-spacing": "letterSpacing", 12228 lightingcolor: "lightingColor", 12229 "lighting-color": "lightingColor", 12230 limitingconeangle: "limitingConeAngle", 12231 local: "local", 12232 markerend: "markerEnd", 12233 "marker-end": "markerEnd", 12234 markerheight: "markerHeight", 12235 markermid: "markerMid", 12236 "marker-mid": "markerMid", 12237 markerstart: "markerStart", 12238 "marker-start": "markerStart", 12239 markerunits: "markerUnits", 12240 markerwidth: "markerWidth", 12241 mask: "mask", 12242 maskcontentunits: "maskContentUnits", 12243 maskunits: "maskUnits", 12244 mathematical: "mathematical", 12245 mode: "mode", 12246 numoctaves: "numOctaves", 12247 offset: "offset", 12248 opacity: "opacity", 12249 operator: "operator", 12250 order: "order", 12251 orient: "orient", 12252 orientation: "orientation", 12253 origin: "origin", 12254 overflow: "overflow", 12255 overlineposition: "overlinePosition", 12256 "overline-position": "overlinePosition", 12257 overlinethickness: "overlineThickness", 12258 "overline-thickness": "overlineThickness", 12259 paintorder: "paintOrder", 12260 "paint-order": "paintOrder", 12261 panose1: "panose1", 12262 "panose-1": "panose1", 12263 pathlength: "pathLength", 12264 patterncontentunits: "patternContentUnits", 12265 patterntransform: "patternTransform", 12266 patternunits: "patternUnits", 12267 pointerevents: "pointerEvents", 12268 "pointer-events": "pointerEvents", 12269 points: "points", 12270 pointsatx: "pointsAtX", 12271 pointsaty: "pointsAtY", 12272 pointsatz: "pointsAtZ", 12273 popover: "popover", 12274 popovertarget: "popoverTarget", 12275 popovertargetaction: "popoverTargetAction", 12276 prefix: "prefix", 12277 preservealpha: "preserveAlpha", 12278 preserveaspectratio: "preserveAspectRatio", 12279 primitiveunits: "primitiveUnits", 12280 property: "property", 12281 r: "r", 12282 radius: "radius", 12283 refx: "refX", 12284 refy: "refY", 12285 renderingintent: "renderingIntent", 12286 "rendering-intent": "renderingIntent", 12287 repeatcount: "repeatCount", 12288 repeatdur: "repeatDur", 12289 requiredextensions: "requiredExtensions", 12290 requiredfeatures: "requiredFeatures", 12291 resource: "resource", 12292 restart: "restart", 12293 result: "result", 12294 results: "results", 12295 rotate: "rotate", 12296 rx: "rx", 12297 ry: "ry", 12298 scale: "scale", 12299 security: "security", 12300 seed: "seed", 12301 shaperendering: "shapeRendering", 12302 "shape-rendering": "shapeRendering", 12303 slope: "slope", 12304 spacing: "spacing", 12305 specularconstant: "specularConstant", 12306 specularexponent: "specularExponent", 12307 speed: "speed", 12308 spreadmethod: "spreadMethod", 12309 startoffset: "startOffset", 12310 stddeviation: "stdDeviation", 12311 stemh: "stemh", 12312 stemv: "stemv", 12313 stitchtiles: "stitchTiles", 12314 stopcolor: "stopColor", 12315 "stop-color": "stopColor", 12316 stopopacity: "stopOpacity", 12317 "stop-opacity": "stopOpacity", 12318 strikethroughposition: "strikethroughPosition", 12319 "strikethrough-position": "strikethroughPosition", 12320 strikethroughthickness: "strikethroughThickness", 12321 "strikethrough-thickness": "strikethroughThickness", 12322 string: "string", 12323 stroke: "stroke", 12324 strokedasharray: "strokeDasharray", 12325 "stroke-dasharray": "strokeDasharray", 12326 strokedashoffset: "strokeDashoffset", 12327 "stroke-dashoffset": "strokeDashoffset", 12328 strokelinecap: "strokeLinecap", 12329 "stroke-linecap": "strokeLinecap", 12330 strokelinejoin: "strokeLinejoin", 12331 "stroke-linejoin": "strokeLinejoin", 12332 strokemiterlimit: "strokeMiterlimit", 12333 "stroke-miterlimit": "strokeMiterlimit", 12334 strokewidth: "strokeWidth", 12335 "stroke-width": "strokeWidth", 12336 strokeopacity: "strokeOpacity", 12337 "stroke-opacity": "strokeOpacity", 12338 suppresscontenteditablewarning: "suppressContentEditableWarning", 12339 suppresshydrationwarning: "suppressHydrationWarning", 12340 surfacescale: "surfaceScale", 12341 systemlanguage: "systemLanguage", 12342 tablevalues: "tableValues", 12343 targetx: "targetX", 12344 targety: "targetY", 12345 textanchor: "textAnchor", 12346 "text-anchor": "textAnchor", 12347 textdecoration: "textDecoration", 12348 "text-decoration": "textDecoration", 12349 textlength: "textLength", 12350 textrendering: "textRendering", 12351 "text-rendering": "textRendering", 12352 to: "to", 12353 transform: "transform", 12354 transformorigin: "transformOrigin", 12355 "transform-origin": "transformOrigin", 12356 typeof: "typeof", 12357 u1: "u1", 12358 u2: "u2", 12359 underlineposition: "underlinePosition", 12360 "underline-position": "underlinePosition", 12361 underlinethickness: "underlineThickness", 12362 "underline-thickness": "underlineThickness", 12363 unicode: "unicode", 12364 unicodebidi: "unicodeBidi",
12365 "unicode-bidi": "unicodeBidi", 12366 unicoderange: "unicodeRange", 12367 "unicode-range": "unicodeRange", 12368 unitsperem: "unitsPerEm", 12369 "units-per-em": "unitsPerEm", 12370 unselectable: "unselectable", 12371 valphabetic: "vAlphabetic", 12372 "v-alphabetic": "vAlphabetic", 12373 values: "values", 12374 vectoreffect: "vectorEffect", 12375 "vector-effect": "vectorEffect", 12376 version: "version", 12377 vertadvy: "vertAdvY", 12378 "vert-adv-y": "vertAdvY", 12379 vertoriginx: "vertOriginX", 12380 "vert-origin-x": "vertOriginX", 12381 vertoriginy: "vertOriginY", 12382 "vert-origin-y": "vertOriginY", 12383 vhanging: "vHanging", 12384 "v-hanging": "vHanging", 12385 videographic: "vIdeographic", 12386 "v-ideographic": "vIdeographic", 12387 viewbox: "viewBox", 12388 viewtarget: "viewTarget", 12389 visibility: "visibility", 12390 vmathematical: "vMathematical", 12391 "v-mathematical": "vMathematical", 12392 vocab: "vocab", 12393 widths: "widths", 12394 wordspacing: "wordSpacing", 12395 "word-spacing": "wordSpacing", 12396 writingmode: "writingMode", 12397 "writing-mode": "writingMode", 12398 x1: "x1", 12399 x2: "x2", 12400 x: "x", 12401 xchannelselector: "xChannelSelector", 12402 xheight: "xHeight", 12403 "x-height": "xHeight", 12404 xlinkactuate: "xlinkActuate", 12405 "xlink:actuate": "xlinkActuate", 12406 xlinkarcrole: "xlinkArcrole", 12407 "xlink:arcrole": "xlinkArcrole", 12408 xlinkhref: "xlinkHref", 12409 "xlink:href": "xlinkHref", 12410 xlinkrole: "xlinkRole", 12411 "xlink:role": "xlinkRole", 12412 xlinkshow: "xlinkShow", 12413 "xlink:show": "xlinkShow", 12414 xlinktitle: "xlinkTitle", 12415 "xlink:title": "xlinkTitle", 12416 xlinktype: "xlinkType", 12417 "xlink:type": "xlinkType", 12418 xmlbase: "xmlBase", 12419 "xml:base": "xmlBase", 12420 xmllang: "xmlLang", 12421 "xml:lang": "xmlLang", 12422 xmlns: "xmlns", 12423 "xml:space": "xmlSpace", 12424 xmlnsxlink: "xmlnsXlink", 12425 "xmlns:xlink": "xmlnsXlink", 12426 xmlspace: "xmlSpace", 12427 y1: "y1", 12428 y2: "y2", 12429 y: "y", 12430 ychannelselector: "yChannelSelector", 12431 z: "z", 12432 zoomandpan: "zoomAndPan" 12433 }, ariaProperties = { 12434 "aria-current": 0, 12435 "aria-description": 0, 12436 "aria-details": 0, 12437 "aria-disabled": 0, 12438 "aria-hidden": 0, 12439 "aria-invalid": 0, 12440 "aria-keyshortcuts": 0, 12441 "aria-label": 0, 12442 "aria-roledescription": 0, 12443 "aria-autocomplete": 0, 12444 "aria-checked": 0, 12445 "aria-expanded": 0, 12446 "aria-haspopup": 0, 12447 "aria-level": 0, 12448 "aria-modal": 0, 12449 "aria-multiline": 0, 12450 "aria-multiselectable": 0, 12451 "aria-orientation": 0, 12452 "aria-placeholder": 0, 12453 "aria-pressed": 0, 12454 "aria-readonly": 0, 12455 "aria-required": 0, 12456 "aria-selected": 0, 12457 "aria-sort": 0, 12458 "aria-valuemax": 0, 12459 "aria-valuemin": 0, 12460 "aria-valuenow": 0, 12461 "aria-valuetext": 0, 12462 "aria-atomic": 0, 12463 "aria-busy": 0, 12464 "aria-live": 0, 12465 "aria-relevant": 0, 12466 "aria-dropeffect": 0, 12467 "aria-grabbed": 0, 12468 "aria-activedescendant": 0, 12469 "aria-colcount": 0, 12470 "aria-colindex": 0, 12471 "aria-colspan": 0, 12472 "aria-controls": 0, 12473 "aria-describedby": 0, 12474 "aria-errormessage": 0, 12475 "aria-flowto": 0, 12476 "aria-labelledby": 0, 12477 "aria-owns": 0, 12478 "aria-posinset": 0, 12479 "aria-rowcount": 0, 12480 "aria-rowindex": 0, 12481 "aria-rowspan": 0, 12482 "aria-setsize": 0, 12483 "aria-braillelabel": 0, 12484 "aria-brailleroledescription": 0, 12485 "aria-colindextext": 0, 12486 "aria-rowindextext": 0 12487 }, warnedProperties$1 = {}, rARIA$1 = RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel$1 = RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), didWarnValueNull = !1, warnedProperties = {}, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA = RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), rARIACamel = RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 4,466 bytes, lines 12487-12602
12487037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, currentReplayingEvent = null, restoreTarget = null, restoreQueue = null, isInsideEventHandler = !1, canUseDOM = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), passiveBrowserEventsSupported = !1; 12488 if (canUseDOM) try { 12489 var options$jscomp$0 = {}; 12490 Object.defineProperty(options$jscomp$0, "passive", { get: function() { 12491 passiveBrowserEventsSupported = !0; 12492 } }); 12493 window.addEventListener("test", options$jscomp$0, options$jscomp$0); 12494 window.removeEventListener("test", options$jscomp$0, options$jscomp$0); 12495 } catch (e) { 12496 passiveBrowserEventsSupported = !1; 12497 } 12498 var root = null, startText = null, fallbackText = null, EventInterface = { 12499 eventPhase: 0, 12500 bubbles: 0, 12501 cancelable: 0, 12502 timeStamp: function(event) { 12503 return event.timeStamp || Date.now(); 12504 }, 12505 defaultPrevented: 0, 12506 isTrusted: 0 12507 }, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = assign({}, EventInterface, { 12508 view: 0, 12509 detail: 0 12510 }), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), lastMovementX, lastMovementY, lastMouseEvent, MouseEventInterface = assign({}, UIEventInterface, { 12511 screenX: 0, 12512 screenY: 0, 12513 clientX: 0, 12514 clientY: 0, 12515 pageX: 0, 12516 pageY: 0, 12517 ctrlKey: 0, 12518 shiftKey: 0, 12519 altKey: 0, 12520 metaKey: 0, 12521 getModifierState: getEventModifierState, 12522 button: 0, 12523 buttons: 0, 12524 relatedTarget: function(event) { 12525 return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget; 12526 }, 12527 movementX: function(event) { 12528 if ("movementX" in event) return event.movementX; 12529 event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event); 12530 return lastMovementX; 12531 }, 12532 movementY: function(event) { 12533 return "movementY" in event ? event.movementY : lastMovementY; 12534 } 12535 }), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), SyntheticDragEvent = createSyntheticEvent(assign({}, MouseEventInterface, { dataTransfer: 0 })), SyntheticFocusEvent = createSyntheticEvent(assign({}, UIEventInterface, { relatedTarget: 0 })), SyntheticAnimationEvent = createSyntheticEvent(assign({}, EventInterface, { 12536 animationName: 0, 12537 elapsedTime: 0, 12538 pseudoElement: 0 12539 })), SyntheticClipboardEvent = createSyntheticEvent(assign({}, EventInterface, { clipboardData: function(event) { 12540 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 12541 } })), SyntheticCompositionEvent = createSyntheticEvent(assign({}, EventInterface, { data: 0 })), SyntheticInputEvent = SyntheticCompositionEvent, normalizeKey = { 12542 Esc: "Escape", 12543 Spacebar: " ", 12544 Left: "ArrowLeft", 12545 Up: "ArrowUp", 12546 Right: "ArrowRight", 12547 Down: "ArrowDown", 12548 Del: "Delete", 12549 Win: "OS", 12550 Menu: "ContextMenu", 12551 Apps: "ContextMenu", 12552 Scroll: "ScrollLock", 12553 MozPrintableKey: "Unidentified" 12554 }, translateToKey = { 12555 8: "Backspace", 12556 9: "Tab", 12557 12: "Clear", 12558 13: "Enter", 12559 16: "Shift", 12560 17: "Control", 12561 18: "Alt", 12562 19: "Pause", 12563 20: "CapsLock", 12564 27: "Escape", 12565 32: " ", 12566 33: "PageUp", 12567 34: "PageDown", 12568 35: "End", 12569 36: "Home", 12570 37: "ArrowLeft", 12571 38: "ArrowUp", 12572 39: "ArrowRight", 12573 40: "ArrowDown", 12574 45: "Insert", 12575 46: "Delete", 12576 112: "F1", 12577 113: "F2", 12578 114: "F3", 12579 115: "F4", 12580 116: "F5", 12581 117: "F6", 12582 118: "F7", 12583 119: "F8", 12584 120: "F9", 12585 121: "F10", 12586 122: "F11", 12587 123: "F12", 12588 144: "NumLock", 12589 145: "ScrollLock", 12590 224: "Meta" 12591 }, modifierKeyToProp = { 12592 Alt: "altKey", 12593 Control: "ctrlKey", 12594 Meta: "metaKey", 12595 Shift: "shiftKey" 12596 }, SyntheticKeyboardEvent = createSyntheticEvent(assign({}, UIEventInterface, { 12597 key: function(nativeEvent) { 12598 if (nativeEvent.key) { 12599 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 12600 if ("Unidentified" !== key) return key; 12601 } 12602 return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCo
12602de(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 12603 }, 12604 code: 0, 12605 location: 0, 12606 ctrlKey: 0, 12607 shiftKey: 0, 12608 altKey: 0, 12609 metaKey: 0, 12610 repeat: 0, 12611 locale: 0, 12612 getModifierState: getEventModifierState, 12613 charCode: function(event) { 12614 return "keypress" === event.type ? getEventCharCode(event) : 0; 12615 }, 12616 keyCode: function(event) { 12617 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 12618 }, 12619 which: function(event) { 12620 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 12621 } 12622 })), SyntheticPointerEvent = createSyntheticEvent(assign({}, MouseEventInterface, { 12623 pointerId: 0, 12624 width: 0, 12625 height: 0, 12626 pressure: 0, 12627 tangentialPressure: 0, 12628 tiltX: 0, 12629 tiltY: 0, 12630 twist: 0, 12631 pointerType: 0, 12632 isPrimary: 0 12633 })), SyntheticTouchEvent = createSyntheticEvent(assign({}, UIEventInterface, { 12634 touches: 0, 12635 targetTouches: 0, 12636 changedTouches: 0, 12637 altKey: 0, 12638 metaKey: 0, 12639 ctrlKey: 0, 12640 shiftKey: 0, 12641 getModifierState: getEventModifierState 12642 })), SyntheticTransitionEvent = createSyntheticEvent(assign({}, EventInterface, { 12643 propertyName: 0, 12644 elapsedTime: 0, 12645 pseudoElement: 0 12646 })), SyntheticWheelEvent = createSyntheticEvent(assign({}, MouseEventInterface, { 12647 deltaX: function(event) { 12648 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 12649 }, 12650 deltaY: function(event) { 12651 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 12652 }, 12653 deltaZ: 0, 12654 deltaMode: 0 12655 })), SyntheticToggleEvent = createSyntheticEvent(assign({}, EventInterface, { 12656 newState: 0, 12657 oldState: 0 12658 })), END_KEYCODES = [ 12659 9, 12660 13, 12661 27, 12662 32 12663 ], START_KEYCODE = 229, canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null; 12664 canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 12665 var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && 8 < documentMode && 11 >= documentMode), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), hasSpaceKeypress = !1, isComposing = !1, supportedInputTypes = { 12666 color: !0, 12667 date: !0, 12668 datetime: !0, 12669 "datetime-local": !0, 12670 email: !0, 12671 month: !0, 12672 number: !0, 12673 password: !0, 12674 range: !0, 12675 search: !0, 12676 tel: !0, 12677 text: !0, 12678 time: !0, 12679 url: !0, 12680 week: !0 12681 }, activeElement$1 = null, activeElementInst$1 = null, isInputEventSupported = !1; 12682 canUseDOM && (isInputEventSupported = isEventSupported("input") && (!document.documentMode || 9 < document.documentMode)); 12683 var objectIs = "function" === typeof Object.is ? Object.is : is, skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = !1, vendorPrefixes = { 12684 animationend: makePrefixMap("Animation", "AnimationEnd"), 12685 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 12686 animationstart: makePrefixMap("Animation", "AnimationStart"), 12687 transitionrun: makePrefixMap("Transition", "TransitionRun"), 12688 transitionstart: makePrefixMap("Transition", "TransitionStart"), 12689 transitioncancel: makePrefixMap("Transition", "TransitionCancel"), 12690 transitionend: makePrefixMap("Transition", "TransitionEnd") 12691 }, prefixedEventNames = {}, style = {};
vendor: 4,893 bytes, lines 12692-12741
12692 canUseDOM && (style = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition); 12693 var ANIMATION_END = getVendorPrefixedEventName("animationend"), ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration"), ANIMATION_START = getVendorPrefixedEventName("animationstart"), TRANSITION_RUN = getVendorPrefixedEventName("transitionrun"), TRANSITION_START = getVendorPrefixedEventName("transitionstart"), TRANSITION_CANCEL = getVendorPrefixedEventName("transitioncancel"), TRANSITION_END = getVendorPrefixedEventName("transitionend"), topLevelEventsToReactNames = /* @__PURE__ */ new Map(), simpleEventPluginEvents = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); 12694 simpleEventPluginEvents.push("scrollEnd"); 12695 var lastResetTime = 0; 12696 if ("object" === typeof performance && "function" === typeof performance.now) { 12697 var localPerformance = performance; 12698 var getCurrentTime = function() { 12699 return localPerformance.now(); 12700 }; 12701 } else { 12702 var localDate = Date; 12703 getCurrentTime = function() { 12704 return localDate.now(); 12705 }; 12706 } 12707 var reportGlobalError = "function" === typeof reportError ? reportError : function(error) { 12708 if ("object" === typeof window && "function" === typeof window.ErrorEvent) { 12709 var event = new window.ErrorEvent("error", { 12710 bubbles: !0, 12711 cancelable: !0, 12712 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), 12713 error 12714 }); 12715 if (!window.dispatchEvent(event)) return; 12716 } else if ("object" === typeof process && "function" === typeof process.emit) { 12717 process.emit("uncaughtException", error); 12718 return; 12719 } 12720 console.error(error); 12721 }, OMITTED_PROP_ERROR = "This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.", EMPTY_ARRAY = 0, COMPLEX_ARRAY = 1, PRIMITIVE_ARRAY = 2, ENTRIES_ARRAY = 3, REMOVED = "–\xA0", ADDED = "+\xA0", UNCHANGED = " \xA0", supportsUserTiming = "undefined" !== typeof console && "function" === typeof console.timeStamp && "undefined" !== typeof performance && "function" === typeof performance.measure, COMPONENTS_TRACK = "Components ⚛", LANES_TRACK_GROUP = "Scheduler ⚛", currentTrack = "Blocking", alreadyWarnedForDeepEquality = !1, reusableComponentDevToolDetails = { 12722 color: "primary", 12723 properties: null, 12724 tooltipText: "", 12725 track: COMPONENTS_TRACK 12726 }, reusableComponentOptions = { 12727 start: -0, 12728 end: -0, 12729 detail: { devtools: reusableComponentDevToolDetails } 12730 }, resuableChangedPropsEntry = ["Changed Props", ""], DEEP_EQUALITY_WARNING = "This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.", reusableDeeplyEqualPropsEntry = ["Changed Props", DEEP_EQUALITY_WARNING], OffscreenVisible = 1, OffscreenPassiveEffectsConnected = 2, concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0, emptyContextObject = {}; 12731 Object.freeze(emptyContextObject); 12732 var resolveFamily = null, failedBoundaries = null, NoMode = 0, ConcurrentMode = 1, ProfileMode = 2, StrictLegacyMode = 8, StrictEffectsMode = 16, SuspenseyImagesMode = 32; 12733 var hasBadMapPolyfill = !1; 12734 try { 12735 var nonExtensibleObject = Object.preventExtensions({}); 12736 new Map([[nonExtensibleObject, null]]); 12737 new Set([nonExtensibleObject]); 12738 } catch (e$3) { 12739 hasBadMapPolyfill = !0; 12740 } 12741 var CapturedStacks = /* @__PURE__ */ new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, didSuspendOrErrorDEV = !1, hydrationDiffRootDEV = null, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), valueCursor = createCursor(null);
12742 var rendererCursorDEV = createCursor(null); 12743 var rendererSigil = {}; 12744 var currentlyRenderingFiber$1 = null, lastContextDependency = null, isDisallowedContextReadInDEV = !1, AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() { 12745 var listeners = [], signal = this.signal = { 12746 aborted: !1, 12747 addEventListener: function(type, listener) { 12748 listeners.push(listener); 12749 } 12750 }; 12751 this.abort = function() { 12752 signal.aborted = !0; 12753 listeners.forEach(function(listener) { 12754 return listener(); 12755 }); 12756 }; 12757 }, scheduleCallback$2 = Scheduler.unstable_scheduleCallback, NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { 12758 $$typeof: REACT_CONTEXT_TYPE, 12759 Consumer: null, 12760 Provider: null, 12761 _currentValue: null, 12762 _currentValue2: null, 12763 _threadCount: 0, 12764 _currentRenderer: null, 12765 _currentRenderer2: null 12766 }, now = Scheduler.unstable_now, createTask = console.createTask ? console.createTask : function() { 12767 return null; 12768 }, SPAWNED_UPDATE = 1, PINGED_UPDATE = 2, renderStartTime = -0, c
vendor: 4,035 bytes, lines 12768-12795
12768ommitStartTime = -0, commitEndTime = -0, commitErrors = null, profilerStartTime = -1.1, profilerEffectDuration = -0, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, componentEffectErrors = null, componentEffectSpawnedUpdate = !1, blockingClampTime = -0, blockingUpdateTime = -1.1, blockingUpdateTask = null, blockingUpdateType = 0, blockingUpdateMethodName = null, blockingUpdateComponentName = null, blockingEventTime = -1.1, blockingEventType = null, blockingEventRepeatTime = -1.1, blockingSuspendedTime = -1.1, transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionUpdateType = 0, transitionUpdateTask = null, transitionUpdateMethodName = null, transitionUpdateComponentName = null, transitionEventTime = -1.1, transitionEventType = null, transitionEventRepeatTime = -1.1, transitionSuspendedTime = -1.1, retryClampTime = -0, idleClampTime = -0, animatingLanes = 0, animatingTask = null, yieldReason = 0, yieldStartTime = -1.1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; 12769 ReactSharedInternals.S = function(transition, returnValue) { 12770 globalMostRecentTransitionTime = now$1(); 12771 if ("object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then) { 12772 if (0 > transitionStartTime && 0 > transitionUpdateTime) { 12773 transitionStartTime = now(); 12774 var newEventTime = resolveEventTimeStamp(), newEventType = resolveEventType(); 12775 if (newEventTime !== transitionEventRepeatTime || newEventType !== transitionEventType) transitionEventRepeatTime = -1.1; 12776 transitionEventTime = newEventTime; 12777 transitionEventType = newEventType; 12778 } 12779 entangleAsyncAction(transition, returnValue); 12780 } 12781 null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); 12782 }; 12783 var resumedCache = createCursor(null), ReactStrictModeWarnings = { 12784 recordUnsafeLifecycleWarnings: function() {}, 12785 flushPendingUnsafeLifecycleWarnings: function() {}, 12786 recordLegacyContextWarning: function() {}, 12787 flushLegacyContextWarning: function() {}, 12788 discardPendingWarnings: function() {} 12789 }, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = /* @__PURE__ */ new Set(); 12790 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { 12791 didWarnAboutUnsafeLifecycles.has(fiber.type) || ("function" === typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillMount && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), "function" === typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillReceiveProps && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), "function" === typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillUpdate && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber)); 12792 }; 12793 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { 12794 var componentWillMountUniqueNames = /* @__PURE__ */ new Set(); 12795 0 < pendingComponentWillMountWarnings.length && (pendingComponentWillMountWarnings.forEac
12795h(function(fiber) { 12796 componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12797 didWarnAboutUnsafeLifecycles.add(fiber.type); 12798 }), pendingComponentWillMountWarnings = []); 12799 var UNSAFE_componentWillMountUniqueNames = /* @__PURE__ */ new Set(); 12800 0 < pendingUNSAFE_ComponentWillMountWarnings.length && (pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) { 12801 UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12802 didWarnAboutUnsafeLifecycles.add(fiber.type); 12803 }), pendingUNSAFE_ComponentWillMountWarnings = []); 12804 var componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); 12805 0 < pendingComponentWillReceivePropsWarnings.length && (pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { 12806 componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12807 didWarnAboutUnsafeLifecycles.add(fiber.type); 12808 }), pendingComponentWillReceivePropsWarnings = []); 12809 var UNSAFE_componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); 12810 0 < pendingUNSAFE_ComponentWillReceivePropsWarnings.length && (pendingUNSAFE_ComponentWillReceivePropsWarnings.forEac
12810h(function(fiber) { 12811 UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12812 didWarnAboutUnsafeLifecycles.add(fiber.type); 12813 }), pendingUNSAFE_ComponentWillReceivePropsWarnings = []); 12814 var componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); 12815 0 < pendingComponentWillUpdateWarnings.length && (pendingComponentWillUpdateWarnings.forEach(function(fiber) { 12816 componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12817 didWarnAboutUnsafeLifecycles.add(fiber.type); 12818 }), pendingComponentWillUpdateWarnings = []); 12819 var UNSAFE_componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); 12820 0 < pendingUNSAFE_ComponentWillUpdateWarnings.length && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) { 12821 UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12822 didWarnAboutUnsafeLifecycles.add(fiber.type); 12823 }), pendingUNSAFE_ComponentWillUpdateWarnings = []); 12824 if (0 < UNSAFE_componentWillMountUniqueNames.size) { 12825 var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); 12826 console.error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", sortedNames); 12827 } 12828 0 < UNSAFE_componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames), console.error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", sortedNames)); 12829 0 < UNSAFE_componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(UNSAFE_componentWillUpdateUniqueNames), console.error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", sortedNames)); 12830 0 < componentWillMountUniqueNames.size && (sortedNames = setToSortedString(componentWillMountUniqueNames), console.warn("componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 12831 0 < componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString(componentWillReceivePropsUniqueNames), console.warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 12832 0 < componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(componentWillUpdateUniqueNames), console.warn("componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", sortedNames)); 12833 };
12834 var pendingLegacyContextWarning = /* @__PURE__ */ new Map(), didWarnAboutLegacyContext = /* @__PURE__ */ new Set(); 12835 ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { 12836 var strictRoot = null; 12837 for (var node = fiber; null !== node;) node.mode & StrictLegacyMode && (strictRoot = node), node = node.return; 12838 null === strictRoot ? console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.") : !didWarnAboutLegacyContext.has(fiber.type) && (node = pendingLegacyContextWarning.get(strictRoot), null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" === typeof instance.getChildContext) && (void 0 === node && (node = [], pendingLegacyContextWarning.set(strictRoot, node)), node.push(fiber)); 12839 }; 12840 ReactStrictModeWarnings.flushLegacyContextWarning = function() { 12841 pendingLegacyContextWarning.forEach(function(fiberArray) { 12842 if (0 !== fiberArray.length) { 12843 var firstFiber = fiberArray[0], uniqueNames = /* @__PURE__ */ new Set(); 12844 fiberArray.forEach(function(fiber) { 12845 uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 12846 didWarnAboutLegacyContext.add(fiber.type); 12847 }); 12848 var sortedNames = setToSortedString(uniqueNames); 12849 runWithFiberInDEV(firstFiber, function() { 12850 console.error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", sortedNames); 12851 }); 12852 } 12853 }); 12854 }; 12855 ReactStrictModeWarnings.discardPendingWarnings = function() { 12856 pendingComponentWillMountWarnings = []; 12857 pendingUNSAFE_ComponentWillMountWarnings = []; 12858 pendingComponentWillReceivePropsWarnings = []; 12859 pendingUNSAFE_ComponentWillReceivePropsWarnings = []; 12860 pendingComponentWillUpdateWarnings = []; 12861 pendingUNSAFE_ComponentWillUpdateWarnings = []; 12862 pendingLegacyContextWarning = /* @__PURE__ */ new Map(); 12863 }; 12864 var callComponent = { react_stack_bottom_frame: function(Component, props, secondArg) { 12865 var wasRendering = isRendering; 12866 isRendering = !0; 12867 try { 12868 return Component(props, secondArg); 12869 } finally { 12870 isRendering = wasRendering; 12871 } 12872 } }, callComponentInDEV = callComponent.react_stack_bottom_frame.bind(callComponent), callRender = { react_stack_bottom_frame: function(instance) { 12873 var wasRendering = isRendering; 12874 isRendering = !0; 12875 try { 12876 return instance.render(); 12877 } finally { 12878 isRendering = wasRendering; 12879 } 12880 } }, callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender), callComponentDidMount = { react_stack_bottom_frame: function(finishedWork, instance) { 12881 try { 12882 instance.componentDidMount(); 12883 } catch (error) { 12884 captureCommitPhaseError(finishedWork, finishedWork.return, error); 12885 } 12886 } }, callComponentDidMountInDEV = callComponentDidMount.react_stack_bottom_frame.bind(callComponentDidMount), callComponentDidUpdate = { react_stack_bottom_frame: function(finishedWork, instance, prevProps, prevState, snapshot) { 12887 try { 12888 instance.componentDidUpdate(prevProps, prevState, snapshot); 12889 } catch (error) { 12890 captureCommitPhaseError(finishedWork, finishedWork.return, error); 12891 } 12892 } }, callComponentDidUpdateInDEV = callComponentDidUpdate.react_stack_bottom_frame.bind(callComponentDidUpdate), callComponentDidCatch = { react_stack_bottom_frame: function(instance, errorInfo) { 12893 var stack = errorInfo.stack; 12894 instance.componentDidCatch(errorInfo.value, { componentStack: null !== stack ? stack : "" }); 12895 } }, callComponentDidCatchInDEV = callComponentDidCatch.react_stack_bottom_frame.bind(callComponentDidCatch), callComponentWillUnmount = { react_stack_bottom_frame: function(current, nearestMountedAncestor, instance) { 12896 try { 12897 instance.componentWillUnmount(); 12898 } catch (error) { 12899 captureCommitPhaseError(current, nearestMountedAncestor, error); 12900 } 12901 } }, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(callComponentWillUnmount), callCreate = { react_stack_bottom_frame: function(effect) { 12902 var create = effect.create; 12903 effect = effect.inst; 12904 create = create(); 12905 return effect.destroy = create; 12906 } }, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = { react_stack_bottom_frame: function(current, nearestMountedAncestor, destroy) { 12907 try { 12908 destroy(); 12909 } catch (error) { 12910 captureCommitPhaseError(current, nearestMountedAncestor, error); 12911 } 12912 } }, callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy), callLazyInit = { react_stack_bottom_frame: function(lazy) { 12913 var init = lazy._init; 12914 return init(lazy._payload); 12915 } }, callLazyInitInDEV = callLazyInit.react_stack_bottom_frame.bind(callLazyInit), SuspenseException = Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."), SuspenseyCommitException = Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."), SuspenseActionException = Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."), noopSuspenseyCommitThenable = { then: function() { 12916 console.error("Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue."); 12917 } }, suspendedThenable = null, needsToResetSuspendedThenableDEV = !1, thenableState$1 = null, thenableIndexCounter$1 = 0, currentDebugInfo = null, didWarnAboutMaps; 12918 var didWarnAboutGenerators = didWarnAboutMaps = !1; 12919 var ownerHasKeyUseWarning = {}; 12920 var ownerHasFunctionTypeWarning = {}; 12921 var ownerHasSymbolTypeWarning = {}; 12922 warnForMissingKey = function(returnFiber, workInProgress, child) { 12923 if (null !== child && "object" === typeof child && child._store && (!child._store.validated && null == child.key || 2 === child._store.validated)) { 12924 if ("object" !== typeof child._store) throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."); 12925 child._store.validated = 1; 12926 var componentName = getComponentNameFromFiber(returnFiber), componentKey = componentName || "null"; 12927 if (!ownerHasKeyUseWarning[componentKey]) { 12928 ownerHasKeyUseWarning[componentKey] = !0; 12929 child = child._owner; 12930 returnFiber = returnFiber._debugOwner; 12931 var currentComponentErrorInfo = ""; 12932 returnFiber && "number" === typeof returnFiber.tag && (componentKey = getComponentNameFromFiber(returnFiber)) && (currentComponentErrorInfo = "\n\nCheck the render method of `" + componentKey + "`."); 12933 currentComponentErrorInfo || componentName && (currentComponentErrorInfo = "\n\nCheck the top-level render call using <" + componentName + ">."); 12934 var childOwnerAppendix = ""; 12935 null != child && returnFiber !== child && (componentName = null, "number" === typeof child.tag ? componentName = getComponentNameFromFiber(child) : "string" === typeof child.name && (componentName = child.name), componentName && (childOwnerAppendix = " It was passed a child from " + componentName + ".")); 12936 runWithFiberInDEV(workInProgress, function() {
vendor: 4,427 bytes, lines 12937-13022
12937 console.error("Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.", currentComponentErrorInfo, childOwnerAppendix); 12938 }); 12939 } 12940 } 12941 }; 12942 var reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = !1; 12943 var didWarnUpdateInsideUpdate = !1; 12944 var currentlyProcessingQueue = null; 12945 var didReadFromEntangledAsyncAction = !1, currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0), suspenseHandlerStackCursor = createCursor(null), shellBoundary = null, SubtreeSuspenseContextMask = 1, ForceSuspenseFallback = 2, suspenseStackCursor = createCursor(0), NoFlags = 0, HasEffect = 1, Insertion = 2, Layout = 4, Passive = 8, didWarnUncachedGetSnapshot; 12946 var didWarnAboutMismatchedHooksForComponent = /* @__PURE__ */ new Set(); 12947 var didWarnAboutUseWrappedInTryCatch = /* @__PURE__ */ new Set(); 12948 var didWarnAboutAsyncClientComponent = /* @__PURE__ */ new Set(); 12949 var didWarnAboutUseFormState = /* @__PURE__ */ new Set(); 12950 var renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0, RE_RENDER_LIMIT = 25, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = !1, ContextOnlyDispatcher = { 12951 readContext, 12952 use, 12953 useCallback: throwInvalidHookError, 12954 useContext: throwInvalidHookError, 12955 useEffect: throwInvalidHookError, 12956 useImperativeHandle: throwInvalidHookError, 12957 useLayoutEffect: throwInvalidHookError, 12958 useInsertionEffect: throwInvalidHookError, 12959 useMemo: throwInvalidHookError, 12960 useReducer: throwInvalidHookError, 12961 useRef: throwInvalidHookError, 12962 useState: throwInvalidHookError, 12963 useDebugValue: throwInvalidHookError, 12964 useDeferredValue: throwInvalidHookError, 12965 useTransition: throwInvalidHookError, 12966 useSyncExternalStore: throwInvalidHookError, 12967 useId: throwInvalidHookError, 12968 useHostTransitionStatus: throwInvalidHookError, 12969 useFormState: throwInvalidHookError, 12970 useActionState: throwInvalidHookError, 12971 useOptimistic: throwInvalidHookError, 12972 useMemoCache: throwInvalidHookError, 12973 useCacheRefresh: throwInvalidHookError 12974 }; 12975 ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; 12976 var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, HooksDispatcherOnRerenderInDEV = null, InvalidNestedHooksDispatcherOnMountInDEV = null, InvalidNestedHooksDispatcherOnUpdateInDEV = null, InvalidNestedHooksDispatcherOnRerenderInDEV = null; 12977 HooksDispatcherOnMountInDEV = { 12978 readContext: function(context) { 12979 return readContext(context); 12980 }, 12981 use, 12982 useCallback: function(callback, deps) { 12983 currentHookNameInDev = "useCallback"; 12984 mountHookTypesDev(); 12985 checkDepsAreArrayDev(deps); 12986 return mountCallback(callback, deps); 12987 }, 12988 useContext: function(context) { 12989 currentHookNameInDev = "useContext"; 12990 mountHookTypesDev(); 12991 return readContext(context); 12992 }, 12993 useEffect: function(create, deps) { 12994 currentHookNameInDev = "useEffect"; 12995 mountHookTypesDev(); 12996 checkDepsAreArrayDev(deps); 12997 return mountEffect(create, deps); 12998 }, 12999 useImperativeHandle: function(ref, create, deps) { 13000 currentHookNameInDev = "useImperativeHandle"; 13001 mountHookTypesDev(); 13002 checkDepsAreArrayDev(deps); 13003 return mountImperativeHandle(ref, create, deps); 13004 }, 13005 useInsertionEffect: function(create, deps) { 13006 currentHookNameInDev = "useInsertionEffect"; 13007 mountHookTypesDev(); 13008 checkDepsAreArrayDev(deps); 13009 mountEffectImpl(4, Insertion, create, deps); 13010 }, 13011 useLayoutEffect: function(create, deps) { 13012 currentHookNameInDev = "useLayoutEffect"; 13013 mountHookTypesDev(); 13014 checkDepsAreArrayDev(deps); 13015 return mountLayoutEffect(create, deps); 13016 }, 13017 useMemo: function(create, deps) { 13018 currentHookNameInDev = "useMemo"; 13019 mountHookTypesDev(); 13020 checkDepsAreArrayDev(deps); 13021 var prevDispatcher = ReactSharedInternals.H; 13022 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
vendor: 29,601 bytes, lines 13023-13949
13023 try { 13024 return mountMemo(create, deps); 13025 } finally { 13026 ReactSharedInternals.H = prevDispatcher; 13027 } 13028 }, 13029 useReducer: function(reducer, initialArg, init) { 13030 currentHookNameInDev = "useReducer"; 13031 mountHookTypesDev(); 13032 var prevDispatcher = ReactSharedInternals.H; 13033 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13034 try { 13035 return mountReducer(reducer, initialArg, init); 13036 } finally { 13037 ReactSharedInternals.H = prevDispatcher; 13038 } 13039 }, 13040 useRef: function(initialValue) { 13041 currentHookNameInDev = "useRef"; 13042 mountHookTypesDev(); 13043 return mountRef(initialValue); 13044 }, 13045 useState: function(initialState) { 13046 currentHookNameInDev = "useState"; 13047 mountHookTypesDev(); 13048 var prevDispatcher = ReactSharedInternals.H; 13049 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13050 try { 13051 return mountState(initialState); 13052 } finally { 13053 ReactSharedInternals.H = prevDispatcher; 13054 } 13055 }, 13056 useDebugValue: function() { 13057 currentHookNameInDev = "useDebugValue"; 13058 mountHookTypesDev(); 13059 }, 13060 useDeferredValue: function(value, initialValue) { 13061 currentHookNameInDev = "useDeferredValue"; 13062 mountHookTypesDev(); 13063 return mountDeferredValue(value, initialValue); 13064 }, 13065 useTransition: function() { 13066 currentHookNameInDev = "useTransition"; 13067 mountHookTypesDev(); 13068 return mountTransition(); 13069 }, 13070 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13071 currentHookNameInDev = "useSyncExternalStore"; 13072 mountHookTypesDev(); 13073 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13074 }, 13075 useId: function() { 13076 currentHookNameInDev = "useId"; 13077 mountHookTypesDev(); 13078 return mountId(); 13079 }, 13080 useFormState: function(action, initialState) { 13081 currentHookNameInDev = "useFormState"; 13082 mountHookTypesDev(); 13083 warnOnUseFormStateInDev(); 13084 return mountActionState(action, initialState); 13085 }, 13086 useActionState: function(action, initialState) { 13087 currentHookNameInDev = "useActionState"; 13088 mountHookTypesDev(); 13089 return mountActionState(action, initialState); 13090 }, 13091 useOptimistic: function(passthrough) { 13092 currentHookNameInDev = "useOptimistic"; 13093 mountHookTypesDev(); 13094 return mountOptimistic(passthrough); 13095 }, 13096 useHostTransitionStatus, 13097 useMemoCache, 13098 useCacheRefresh: function() { 13099 currentHookNameInDev = "useCacheRefresh"; 13100 mountHookTypesDev(); 13101 return mountRefresh(); 13102 }, 13103 useEffectEvent: function(callback) { 13104 currentHookNameInDev = "useEffectEvent"; 13105 mountHookTypesDev(); 13106 return mountEvent(callback); 13107 } 13108 }; 13109 HooksDispatcherOnMountWithHookTypesInDEV = { 13110 readContext: function(context) { 13111 return readContext(context); 13112 }, 13113 use, 13114 useCallback: function(callback, deps) { 13115 currentHookNameInDev = "useCallback"; 13116 updateHookTypesDev(); 13117 return mountCallback(callback, deps); 13118 }, 13119 useContext: function(context) { 13120 currentHookNameInDev = "useContext"; 13121 updateHookTypesDev(); 13122 return readContext(context); 13123 }, 13124 useEffect: function(create, deps) { 13125 currentHookNameInDev = "useEffect"; 13126 updateHookTypesDev(); 13127 return mountEffect(create, deps); 13128 }, 13129 useImperativeHandle: function(ref, create, deps) { 13130 currentHookNameInDev = "useImperativeHandle"; 13131 updateHookTypesDev(); 13132 return mountImperativeHandle(ref, create, deps); 13133 }, 13134 useInsertionEffect: function(create, deps) { 13135 currentHookNameInDev = "useInsertionEffect"; 13136 updateHookTypesDev(); 13137 mountEffectImpl(4, Insertion, create, deps); 13138 }, 13139 useLayoutEffect: function(create, deps) { 13140 currentHookNameInDev = "useLayoutEffect"; 13141 updateHookTypesDev(); 13142 return mountLayoutEffect(create, deps); 13143 }, 13144 useMemo: function(create, deps) { 13145 currentHookNameInDev = "useMemo"; 13146 updateHookTypesDev(); 13147 var prevDispatcher = ReactSharedInternals.H; 13148 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13149 try { 13150 return mountMemo(create, deps); 13151 } finally { 13152 ReactSharedInternals.H = prevDispatcher; 13153 } 13154 }, 13155 useReducer: function(reducer, initialArg, init) { 13156 currentHookNameInDev = "useReducer"; 13157 updateHookTypesDev(); 13158 var prevDispatcher = ReactSharedInternals.H; 13159 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13160 try { 13161 return mountReducer(reducer, initialArg, init); 13162 } finally { 13163 ReactSharedInternals.H = prevDispatcher; 13164 } 13165 }, 13166 useRef: function(initialValue) { 13167 currentHookNameInDev = "useRef"; 13168 updateHookTypesDev(); 13169 return mountRef(initialValue); 13170 }, 13171 useState: function(initialState) { 13172 currentHookNameInDev = "useState"; 13173 updateHookTypesDev(); 13174 var prevDispatcher = ReactSharedInternals.H; 13175 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13176 try { 13177 return mountState(initialState); 13178 } finally { 13179 ReactSharedInternals.H = prevDispatcher; 13180 } 13181 }, 13182 useDebugValue: function() { 13183 currentHookNameInDev = "useDebugValue"; 13184 updateHookTypesDev(); 13185 }, 13186 useDeferredValue: function(value, initialValue) { 13187 currentHookNameInDev = "useDeferredValue"; 13188 updateHookTypesDev(); 13189 return mountDeferredValue(value, initialValue); 13190 }, 13191 useTransition: function() { 13192 currentHookNameInDev = "useTransition"; 13193 updateHookTypesDev(); 13194 return mountTransition(); 13195 }, 13196 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13197 currentHookNameInDev = "useSyncExternalStore"; 13198 updateHookTypesDev(); 13199 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13200 }, 13201 useId: function() { 13202 currentHookNameInDev = "useId"; 13203 updateHookTypesDev(); 13204 return mountId(); 13205 }, 13206 useActionState: function(action, initialState) { 13207 currentHookNameInDev = "useActionState"; 13208 updateHookTypesDev(); 13209 return mountActionState(action, initialState); 13210 }, 13211 useFormState: function(action, initialState) { 13212 currentHookNameInDev = "useFormState"; 13213 updateHookTypesDev(); 13214 warnOnUseFormStateInDev(); 13215 return mountActionState(action, initialState); 13216 }, 13217 useOptimistic: function(passthrough) { 13218 currentHookNameInDev = "useOptimistic"; 13219 updateHookTypesDev(); 13220 return mountOptimistic(passthrough); 13221 }, 13222 useHostTransitionStatus, 13223 useMemoCache, 13224 useCacheRefresh: function() { 13225 currentHookNameInDev = "useCacheRefresh"; 13226 updateHookTypesDev(); 13227 return mountRefresh(); 13228 }, 13229 useEffectEvent: function(callback) { 13230 currentHookNameInDev = "useEffectEvent"; 13231 updateHookTypesDev(); 13232 return mountEvent(callback); 13233 } 13234 }; 13235 HooksDispatcherOnUpdateInDEV = { 13236 readContext: function(context) { 13237 return readContext(context); 13238 }, 13239 use, 13240 useCallback: function(callback, deps) { 13241 currentHookNameInDev = "useCallback"; 13242 updateHookTypesDev(); 13243 return updateCallback(callback, deps); 13244 }, 13245 useContext: function(context) { 13246 currentHookNameInDev = "useContext"; 13247 updateHookTypesDev(); 13248 return readContext(context); 13249 }, 13250 useEffect: function(create, deps) { 13251 currentHookNameInDev = "useEffect"; 13252 updateHookTypesDev(); 13253 updateEffectImpl(2048, Passive, create, deps); 13254 }, 13255 useImperativeHandle: function(ref, create, deps) { 13256 currentHookNameInDev = "useImperativeHandle"; 13257 updateHookTypesDev(); 13258 return updateImperativeHandle(ref, create, deps); 13259 }, 13260 useInsertionEffect: function(create, deps) { 13261 currentHookNameInDev = "useInsertionEffect"; 13262 updateHookTypesDev(); 13263 return updateEffectImpl(4, Insertion, create, deps); 13264 }, 13265 useLayoutEffect: function(create, deps) { 13266 currentHookNameInDev = "useLayoutEffect"; 13267 updateHookTypesDev(); 13268 return updateEffectImpl(4, Layout, create, deps); 13269 }, 13270 useMemo: function(create, deps) { 13271 currentHookNameInDev = "useMemo"; 13272 updateHookTypesDev(); 13273 var prevDispatcher = ReactSharedInternals.H; 13274 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13275 try { 13276 return updateMemo(create, deps); 13277 } finally { 13278 ReactSharedInternals.H = prevDispatcher; 13279 } 13280 }, 13281 useReducer: function(reducer, initialArg, init) { 13282 currentHookNameInDev = "useReducer"; 13283 updateHookTypesDev(); 13284 var prevDispatcher = ReactSharedInternals.H; 13285 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13286 try { 13287 return updateReducer(reducer, initialArg, init); 13288 } finally { 13289 ReactSharedInternals.H = prevDispatcher; 13290 } 13291 }, 13292 useRef: function() { 13293 currentHookNameInDev = "useRef"; 13294 updateHookTypesDev(); 13295 return updateWorkInProgressHook().memoizedState; 13296 }, 13297 useState: function() { 13298 currentHookNameInDev = "useState"; 13299 updateHookTypesDev(); 13300 var prevDispatcher = ReactSharedInternals.H; 13301 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13302 try { 13303 return updateReducer(basicStateReducer); 13304 } finally { 13305 ReactSharedInternals.H = prevDispatcher; 13306 } 13307 }, 13308 useDebugValue: function() { 13309 currentHookNameInDev = "useDebugValue"; 13310 updateHookTypesDev(); 13311 }, 13312 useDeferredValue: function(value, initialValue) { 13313 currentHookNameInDev = "useDeferredValue"; 13314 updateHookTypesDev(); 13315 return updateDeferredValue(value, initialValue); 13316 }, 13317 useTransition: function() { 13318 currentHookNameInDev = "useTransition"; 13319 updateHookTypesDev(); 13320 return updateTransition(); 13321 }, 13322 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13323 currentHookNameInDev = "useSyncExternalStore"; 13324 updateHookTypesDev(); 13325 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13326 }, 13327 useId: function() { 13328 currentHookNameInDev = "useId"; 13329 updateHookTypesDev(); 13330 return updateWorkInProgressHook().memoizedState; 13331 }, 13332 useFormState: function(action) { 13333 currentHookNameInDev = "useFormState"; 13334 updateHookTypesDev(); 13335 warnOnUseFormStateInDev(); 13336 return updateActionState(action); 13337 }, 13338 useActionState: function(action) { 13339 currentHookNameInDev = "useActionState"; 13340 updateHookTypesDev(); 13341 return updateActionState(action); 13342 }, 13343 useOptimistic: function(passthrough, reducer) { 13344 currentHookNameInDev = "useOptimistic"; 13345 updateHookTypesDev(); 13346 return updateOptimistic(passthrough, reducer); 13347 }, 13348 useHostTransitionStatus, 13349 useMemoCache, 13350 useCacheRefresh: function() { 13351 currentHookNameInDev = "useCacheRefresh"; 13352 updateHookTypesDev(); 13353 return updateWorkInProgressHook().memoizedState; 13354 }, 13355 useEffectEvent: function(callback) { 13356 currentHookNameInDev = "useEffectEvent"; 13357 updateHookTypesDev(); 13358 return updateEvent(callback); 13359 } 13360 }; 13361 HooksDispatcherOnRerenderInDEV = { 13362 readContext: function(context) { 13363 return readContext(context); 13364 }, 13365 use, 13366 useCallback: function(callback, deps) { 13367 currentHookNameInDev = "useCallback"; 13368 updateHookTypesDev(); 13369 return updateCallback(callback, deps); 13370 }, 13371 useContext: function(context) { 13372 currentHookNameInDev = "useContext"; 13373 updateHookTypesDev(); 13374 return readContext(context); 13375 }, 13376 useEffect: function(create, deps) { 13377 currentHookNameInDev = "useEffect"; 13378 updateHookTypesDev(); 13379 updateEffectImpl(2048, Passive, create, deps); 13380 }, 13381 useImperativeHandle: function(ref, create, deps) { 13382 currentHookNameInDev = "useImperativeHandle"; 13383 updateHookTypesDev(); 13384 return updateImperativeHandle(ref, create, deps); 13385 }, 13386 useInsertionEffect: function(create, deps) { 13387 currentHookNameInDev = "useInsertionEffect"; 13388 updateHookTypesDev(); 13389 return updateEffectImpl(4, Insertion, create, deps); 13390 }, 13391 useLayoutEffect: function(create, deps) { 13392 currentHookNameInDev = "useLayoutEffect"; 13393 updateHookTypesDev(); 13394 return updateEffectImpl(4, Layout, create, deps); 13395 }, 13396 useMemo: function(create, deps) { 13397 currentHookNameInDev = "useMemo"; 13398 updateHookTypesDev(); 13399 var prevDispatcher = ReactSharedInternals.H; 13400 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13401 try { 13402 return updateMemo(create, deps); 13403 } finally { 13404 ReactSharedInternals.H = prevDispatcher; 13405 } 13406 }, 13407 useReducer: function(reducer, initialArg, init) { 13408 currentHookNameInDev = "useReducer"; 13409 updateHookTypesDev(); 13410 var prevDispatcher = ReactSharedInternals.H; 13411 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13412 try { 13413 return rerenderReducer(reducer, initialArg, init); 13414 } finally { 13415 ReactSharedInternals.H = prevDispatcher; 13416 } 13417 }, 13418 useRef: function() { 13419 currentHookNameInDev = "useRef"; 13420 updateHookTypesDev(); 13421 return updateWorkInProgressHook().memoizedState; 13422 }, 13423 useState: function() { 13424 currentHookNameInDev = "useState"; 13425 updateHookTypesDev(); 13426 var prevDispatcher = ReactSharedInternals.H; 13427 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 13428 try { 13429 return rerenderReducer(basicStateReducer); 13430 } finally { 13431 ReactSharedInternals.H = prevDispatcher; 13432 } 13433 }, 13434 useDebugValue: function() { 13435 currentHookNameInDev = "useDebugValue"; 13436 updateHookTypesDev(); 13437 }, 13438 useDeferredValue: function(value, initialValue) { 13439 currentHookNameInDev = "useDeferredValue"; 13440 updateHookTypesDev(); 13441 return rerenderDeferredValue(value, initialValue); 13442 }, 13443 useTransition: function() { 13444 currentHookNameInDev = "useTransition"; 13445 updateHookTypesDev(); 13446 return rerenderTransition(); 13447 }, 13448 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13449 currentHookNameInDev = "useSyncExternalStore"; 13450 updateHookTypesDev(); 13451 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13452 }, 13453 useId: function() { 13454 currentHookNameInDev = "useId"; 13455 updateHookTypesDev(); 13456 return updateWorkInProgressHook().memoizedState; 13457 }, 13458 useFormState: function(action) { 13459 currentHookNameInDev = "useFormState"; 13460 updateHookTypesDev(); 13461 warnOnUseFormStateInDev(); 13462 return rerenderActionState(action); 13463 }, 13464 useActionState: function(action) { 13465 currentHookNameInDev = "useActionState"; 13466 updateHookTypesDev(); 13467 return rerenderActionState(action); 13468 }, 13469 useOptimistic: function(passthrough, reducer) { 13470 currentHookNameInDev = "useOptimistic"; 13471 updateHookTypesDev(); 13472 return rerenderOptimistic(passthrough, reducer); 13473 }, 13474 useHostTransitionStatus, 13475 useMemoCache, 13476 useCacheRefresh: function() { 13477 currentHookNameInDev = "useCacheRefresh"; 13478 updateHookTypesDev(); 13479 return updateWorkInProgressHook().memoizedState; 13480 }, 13481 useEffectEvent: function(callback) { 13482 currentHookNameInDev = "useEffectEvent"; 13483 updateHookTypesDev(); 13484 return updateEvent(callback); 13485 } 13486 }; 13487 InvalidNestedHooksDispatcherOnMountInDEV = { 13488 readContext: function(context) { 13489 warnInvalidContextAccess(); 13490 return readContext(context); 13491 }, 13492 use: function(usable) { 13493 warnInvalidHookAccess(); 13494 return use(usable); 13495 }, 13496 useCallback: function(callback, deps) { 13497 currentHookNameInDev = "useCallback"; 13498 warnInvalidHookAccess(); 13499 mountHookTypesDev(); 13500 return mountCallback(callback, deps); 13501 }, 13502 useContext: function(context) { 13503 currentHookNameInDev = "useContext"; 13504 warnInvalidHookAccess(); 13505 mountHookTypesDev(); 13506 return readContext(context); 13507 }, 13508 useEffect: function(create, deps) { 13509 currentHookNameInDev = "useEffect"; 13510 warnInvalidHookAccess(); 13511 mountHookTypesDev(); 13512 return mountEffect(create, deps); 13513 }, 13514 useImperativeHandle: function(ref, create, deps) { 13515 currentHookNameInDev = "useImperativeHandle"; 13516 warnInvalidHookAccess(); 13517 mountHookTypesDev(); 13518 return mountImperativeHandle(ref, create, deps); 13519 }, 13520 useInsertionEffect: function(create, deps) { 13521 currentHookNameInDev = "useInsertionEffect"; 13522 warnInvalidHookAccess(); 13523 mountHookTypesDev(); 13524 mountEffectImpl(4, Insertion, create, deps); 13525 }, 13526 useLayoutEffect: function(create, deps) { 13527 currentHookNameInDev = "useLayoutEffect"; 13528 warnInvalidHookAccess(); 13529 mountHookTypesDev(); 13530 return mountLayoutEffect(create, deps); 13531 }, 13532 useMemo: function(create, deps) { 13533 currentHookNameInDev = "useMemo"; 13534 warnInvalidHookAccess(); 13535 mountHookTypesDev(); 13536 var prevDispatcher = ReactSharedInternals.H; 13537 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13538 try { 13539 return mountMemo(create, deps); 13540 } finally { 13541 ReactSharedInternals.H = prevDispatcher; 13542 } 13543 }, 13544 useReducer: function(reducer, initialArg, init) { 13545 currentHookNameInDev = "useReducer"; 13546 warnInvalidHookAccess(); 13547 mountHookTypesDev(); 13548 var prevDispatcher = ReactSharedInternals.H; 13549 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13550 try { 13551 return mountReducer(reducer, initialArg, init); 13552 } finally { 13553 ReactSharedInternals.H = prevDispatcher; 13554 } 13555 }, 13556 useRef: function(initialValue) { 13557 currentHookNameInDev = "useRef"; 13558 warnInvalidHookAccess(); 13559 mountHookTypesDev(); 13560 return mountRef(initialValue); 13561 }, 13562 useState: function(initialState) { 13563 currentHookNameInDev = "useState"; 13564 warnInvalidHookAccess(); 13565 mountHookTypesDev(); 13566 var prevDispatcher = ReactSharedInternals.H; 13567 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 13568 try { 13569 return mountState(initialState); 13570 } finally { 13571 ReactSharedInternals.H = prevDispatcher; 13572 } 13573 }, 13574 useDebugValue: function() { 13575 currentHookNameInDev = "useDebugValue"; 13576 warnInvalidHookAccess(); 13577 mountHookTypesDev(); 13578 }, 13579 useDeferredValue: function(value, initialValue) { 13580 currentHookNameInDev = "useDeferredValue"; 13581 warnInvalidHookAccess(); 13582 mountHookTypesDev(); 13583 return mountDeferredValue(value, initialValue); 13584 }, 13585 useTransition: function() { 13586 currentHookNameInDev = "useTransition"; 13587 warnInvalidHookAccess(); 13588 mountHookTypesDev(); 13589 return mountTransition(); 13590 }, 13591 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13592 currentHookNameInDev = "useSyncExternalStore"; 13593 warnInvalidHookAccess(); 13594 mountHookTypesDev(); 13595 return mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13596 }, 13597 useId: function() { 13598 currentHookNameInDev = "useId"; 13599 warnInvalidHookAccess(); 13600 mountHookTypesDev(); 13601 return mountId(); 13602 }, 13603 useFormState: function(action, initialState) { 13604 currentHookNameInDev = "useFormState"; 13605 warnInvalidHookAccess(); 13606 mountHookTypesDev(); 13607 return mountActionState(action, initialState); 13608 }, 13609 useActionState: function(action, initialState) { 13610 currentHookNameInDev = "useActionState"; 13611 warnInvalidHookAccess(); 13612 mountHookTypesDev(); 13613 return mountActionState(action, initialState); 13614 }, 13615 useOptimistic: function(passthrough) { 13616 currentHookNameInDev = "useOptimistic"; 13617 warnInvalidHookAccess(); 13618 mountHookTypesDev(); 13619 return mountOptimistic(passthrough); 13620 }, 13621 useMemoCache: function(size) { 13622 warnInvalidHookAccess(); 13623 return useMemoCache(size); 13624 }, 13625 useHostTransitionStatus, 13626 useCacheRefresh: function() { 13627 currentHookNameInDev = "useCacheRefresh"; 13628 mountHookTypesDev(); 13629 return mountRefresh(); 13630 }, 13631 useEffectEvent: function(callback) { 13632 currentHookNameInDev = "useEffectEvent"; 13633 warnInvalidHookAccess(); 13634 mountHookTypesDev(); 13635 return mountEvent(callback); 13636 } 13637 }; 13638 InvalidNestedHooksDispatcherOnUpdateInDEV = { 13639 readContext: function(context) { 13640 warnInvalidContextAccess(); 13641 return readContext(context); 13642 }, 13643 use: function(usable) { 13644 warnInvalidHookAccess(); 13645 return use(usable); 13646 }, 13647 useCallback: function(callback, deps) { 13648 currentHookNameInDev = "useCallback"; 13649 warnInvalidHookAccess(); 13650 updateHookTypesDev(); 13651 return updateCallback(callback, deps); 13652 }, 13653 useContext: function(context) { 13654 currentHookNameInDev = "useContext"; 13655 warnInvalidHookAccess(); 13656 updateHookTypesDev(); 13657 return readContext(context); 13658 }, 13659 useEffect: function(create, deps) { 13660 currentHookNameInDev = "useEffect"; 13661 warnInvalidHookAccess(); 13662 updateHookTypesDev(); 13663 updateEffectImpl(2048, Passive, create, deps); 13664 }, 13665 useImperativeHandle: function(ref, create, deps) { 13666 currentHookNameInDev = "useImperativeHandle"; 13667 warnInvalidHookAccess(); 13668 updateHookTypesDev(); 13669 return updateImperativeHandle(ref, create, deps); 13670 }, 13671 useInsertionEffect: function(create, deps) { 13672 currentHookNameInDev = "useInsertionEffect"; 13673 warnInvalidHookAccess(); 13674 updateHookTypesDev(); 13675 return updateEffectImpl(4, Insertion, create, deps); 13676 }, 13677 useLayoutEffect: function(create, deps) { 13678 currentHookNameInDev = "useLayoutEffect"; 13679 warnInvalidHookAccess(); 13680 updateHookTypesDev(); 13681 return updateEffectImpl(4, Layout, create, deps); 13682 }, 13683 useMemo: function(create, deps) { 13684 currentHookNameInDev = "useMemo"; 13685 warnInvalidHookAccess(); 13686 updateHookTypesDev(); 13687 var prevDispatcher = ReactSharedInternals.H; 13688 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13689 try { 13690 return updateMemo(create, deps); 13691 } finally { 13692 ReactSharedInternals.H = prevDispatcher; 13693 } 13694 }, 13695 useReducer: function(reducer, initialArg, init) { 13696 currentHookNameInDev = "useReducer"; 13697 warnInvalidHookAccess(); 13698 updateHookTypesDev(); 13699 var prevDispatcher = ReactSharedInternals.H; 13700 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13701 try { 13702 return updateReducer(reducer, initialArg, init); 13703 } finally { 13704 ReactSharedInternals.H = prevDispatcher; 13705 } 13706 }, 13707 useRef: function() { 13708 currentHookNameInDev = "useRef"; 13709 warnInvalidHookAccess(); 13710 updateHookTypesDev(); 13711 return updateWorkInProgressHook().memoizedState; 13712 }, 13713 useState: function() { 13714 currentHookNameInDev = "useState"; 13715 warnInvalidHookAccess(); 13716 updateHookTypesDev(); 13717 var prevDispatcher = ReactSharedInternals.H; 13718 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13719 try { 13720 return updateReducer(basicStateReducer); 13721 } finally { 13722 ReactSharedInternals.H = prevDispatcher; 13723 } 13724 }, 13725 useDebugValue: function() { 13726 currentHookNameInDev = "useDebugValue"; 13727 warnInvalidHookAccess(); 13728 updateHookTypesDev(); 13729 }, 13730 useDeferredValue: function(value, initialValue) { 13731 currentHookNameInDev = "useDeferredValue"; 13732 warnInvalidHookAccess(); 13733 updateHookTypesDev(); 13734 return updateDeferredValue(value, initialValue); 13735 }, 13736 useTransition: function() { 13737 currentHookNameInDev = "useTransition"; 13738 warnInvalidHookAccess(); 13739 updateHookTypesDev(); 13740 return updateTransition(); 13741 }, 13742 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13743 currentHookNameInDev = "useSyncExternalStore"; 13744 warnInvalidHookAccess(); 13745 updateHookTypesDev(); 13746 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13747 }, 13748 useId: function() { 13749 currentHookNameInDev = "useId"; 13750 warnInvalidHookAccess(); 13751 updateHookTypesDev(); 13752 return updateWorkInProgressHook().memoizedState; 13753 }, 13754 useFormState: function(action) { 13755 currentHookNameInDev = "useFormState"; 13756 warnInvalidHookAccess(); 13757 updateHookTypesDev(); 13758 return updateActionState(action); 13759 }, 13760 useActionState: function(action) { 13761 currentHookNameInDev = "useActionState"; 13762 warnInvalidHookAccess(); 13763 updateHookTypesDev(); 13764 return updateActionState(action); 13765 }, 13766 useOptimistic: function(passthrough, reducer) { 13767 currentHookNameInDev = "useOptimistic"; 13768 warnInvalidHookAccess(); 13769 updateHookTypesDev(); 13770 return updateOptimistic(passthrough, reducer); 13771 }, 13772 useMemoCache: function(size) { 13773 warnInvalidHookAccess(); 13774 return useMemoCache(size); 13775 }, 13776 useHostTransitionStatus, 13777 useCacheRefresh: function() { 13778 currentHookNameInDev = "useCacheRefresh"; 13779 updateHookTypesDev(); 13780 return updateWorkInProgressHook().memoizedState; 13781 }, 13782 useEffectEvent: function(callback) { 13783 currentHookNameInDev = "useEffectEvent"; 13784 warnInvalidHookAccess(); 13785 updateHookTypesDev(); 13786 return updateEvent(callback); 13787 } 13788 }; 13789 InvalidNestedHooksDispatcherOnRerenderInDEV = { 13790 readContext: function(context) { 13791 warnInvalidContextAccess(); 13792 return readContext(context); 13793 }, 13794 use: function(usable) { 13795 warnInvalidHookAccess(); 13796 return use(usable); 13797 }, 13798 useCallback: function(callback, deps) { 13799 currentHookNameInDev = "useCallback"; 13800 warnInvalidHookAccess(); 13801 updateHookTypesDev(); 13802 return updateCallback(callback, deps); 13803 }, 13804 useContext: function(context) { 13805 currentHookNameInDev = "useContext"; 13806 warnInvalidHookAccess(); 13807 updateHookTypesDev(); 13808 return readContext(context); 13809 }, 13810 useEffect: function(create, deps) { 13811 currentHookNameInDev = "useEffect"; 13812 warnInvalidHookAccess(); 13813 updateHookTypesDev(); 13814 updateEffectImpl(2048, Passive, create, deps); 13815 }, 13816 useImperativeHandle: function(ref, create, deps) { 13817 currentHookNameInDev = "useImperativeHandle"; 13818 warnInvalidHookAccess(); 13819 updateHookTypesDev(); 13820 return updateImperativeHandle(ref, create, deps); 13821 }, 13822 useInsertionEffect: function(create, deps) { 13823 currentHookNameInDev = "useInsertionEffect"; 13824 warnInvalidHookAccess(); 13825 updateHookTypesDev(); 13826 return updateEffectImpl(4, Insertion, create, deps); 13827 }, 13828 useLayoutEffect: function(create, deps) { 13829 currentHookNameInDev = "useLayoutEffect"; 13830 warnInvalidHookAccess(); 13831 updateHookTypesDev(); 13832 return updateEffectImpl(4, Layout, create, deps); 13833 }, 13834 useMemo: function(create, deps) { 13835 currentHookNameInDev = "useMemo"; 13836 warnInvalidHookAccess(); 13837 updateHookTypesDev(); 13838 var prevDispatcher = ReactSharedInternals.H; 13839 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13840 try { 13841 return updateMemo(create, deps); 13842 } finally { 13843 ReactSharedInternals.H = prevDispatcher; 13844 } 13845 }, 13846 useReducer: function(reducer, initialArg, init) { 13847 currentHookNameInDev = "useReducer"; 13848 warnInvalidHookAccess(); 13849 updateHookTypesDev(); 13850 var prevDispatcher = ReactSharedInternals.H; 13851 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13852 try { 13853 return rerenderReducer(reducer, initialArg, init); 13854 } finally { 13855 ReactSharedInternals.H = prevDispatcher; 13856 } 13857 }, 13858 useRef: function() { 13859 currentHookNameInDev = "useRef"; 13860 warnInvalidHookAccess(); 13861 updateHookTypesDev(); 13862 return updateWorkInProgressHook().memoizedState; 13863 }, 13864 useState: function() { 13865 currentHookNameInDev = "useState"; 13866 warnInvalidHookAccess(); 13867 updateHookTypesDev(); 13868 var prevDispatcher = ReactSharedInternals.H; 13869 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 13870 try { 13871 return rerenderReducer(basicStateReducer); 13872 } finally { 13873 ReactSharedInternals.H = prevDispatcher; 13874 } 13875 }, 13876 useDebugValue: function() { 13877 currentHookNameInDev = "useDebugValue"; 13878 warnInvalidHookAccess(); 13879 updateHookTypesDev(); 13880 }, 13881 useDeferredValue: function(value, initialValue) { 13882 currentHookNameInDev = "useDeferredValue"; 13883 warnInvalidHookAccess(); 13884 updateHookTypesDev(); 13885 return rerenderDeferredValue(value, initialValue); 13886 }, 13887 useTransition: function() { 13888 currentHookNameInDev = "useTransition"; 13889 warnInvalidHookAccess(); 13890 updateHookTypesDev(); 13891 return rerenderTransition(); 13892 }, 13893 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 13894 currentHookNameInDev = "useSyncExternalStore"; 13895 warnInvalidHookAccess(); 13896 updateHookTypesDev(); 13897 return updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 13898 }, 13899 useId: function() { 13900 currentHookNameInDev = "useId"; 13901 warnInvalidHookAccess(); 13902 updateHookTypesDev(); 13903 return updateWorkInProgressHook().memoizedState; 13904 }, 13905 useFormState: function(action) { 13906 currentHookNameInDev = "useFormState"; 13907 warnInvalidHookAccess(); 13908 updateHookTypesDev(); 13909 return rerenderActionState(action); 13910 }, 13911 useActionState: function(action) { 13912 currentHookNameInDev = "useActionState"; 13913 warnInvalidHookAccess(); 13914 updateHookTypesDev(); 13915 return rerenderActionState(action); 13916 }, 13917 useOptimistic: function(passthrough, reducer) { 13918 currentHookNameInDev = "useOptimistic"; 13919 warnInvalidHookAccess(); 13920 updateHookTypesDev(); 13921 return rerenderOptimistic(passthrough, reducer); 13922 }, 13923 useMemoCache: function(size) { 13924 warnInvalidHookAccess(); 13925 return useMemoCache(size); 13926 }, 13927 useHostTransitionStatus, 13928 useCacheRefresh: function() { 13929 currentHookNameInDev = "useCacheRefresh"; 13930 updateHookTypesDev(); 13931 return updateWorkInProgressHook().memoizedState; 13932 }, 13933 useEffectEvent: function(callback) { 13934 currentHookNameInDev = "useEffectEvent"; 13935 warnInvalidHookAccess(); 13936 updateHookTypesDev(); 13937 return updateEvent(callback); 13938 } 13939 }; 13940 var fakeInternalInstance = {}; 13941 var didWarnAboutStateAssignmentForComponent = /* @__PURE__ */ new Set(); 13942 var didWarnAboutUninitializedState = /* @__PURE__ */ new Set(); 13943 var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = /* @__PURE__ */ new Set(); 13944 var didWarnAboutLegacyLifecyclesAndDerivedState = /* @__PURE__ */ new Set(); 13945 var didWarnAboutDirectlyAssigningPropsToState = /* @__PURE__ */ new Set(); 13946 var didWarnAboutUndefinedDerivedState = /* @__PURE__ */ new Set(); 13947 var didWarnAboutContextTypes$1 = /* @__PURE__ */ new Set(); 13948 var didWarnAboutChildContextTypes = /* @__PURE__ */ new Set(); 13949 var didWarnAboutInvalidateContextType = /* @__PURE__ */ new Set();
vendor: 4,460 bytes, lines 13950-14014
13950 var didWarnOnInvalidCallback = /* @__PURE__ */ new Set(); 13951 Object.freeze(fakeInternalInstance); 13952 var classComponentUpdater = { 13953 enqueueSetState: function(inst, payload, callback) { 13954 inst = inst._reactInternals; 13955 var lane = requestUpdateLane(inst), update = createUpdate(lane); 13956 update.payload = payload; 13957 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 13958 payload = enqueueUpdate(inst, update, lane); 13959 null !== payload && (startUpdateTimerByLane(lane, "this.setState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 13960 }, 13961 enqueueReplaceState: function(inst, payload, callback) { 13962 inst = inst._reactInternals; 13963 var lane = requestUpdateLane(inst), update = createUpdate(lane); 13964 update.tag = ReplaceState; 13965 update.payload = payload; 13966 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 13967 payload = enqueueUpdate(inst, update, lane); 13968 null !== payload && (startUpdateTimerByLane(lane, "this.replaceState()", inst), scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 13969 }, 13970 enqueueForceUpdate: function(inst, callback) { 13971 inst = inst._reactInternals; 13972 var lane = requestUpdateLane(inst), update = createUpdate(lane); 13973 update.tag = ForceUpdate; 13974 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 13975 callback = enqueueUpdate(inst, update, lane); 13976 null !== callback && (startUpdateTimerByLane(lane, "this.forceUpdate()", inst), scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane)); 13977 } 13978 }, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."), didReceiveUpdate = !1; 13979 var didWarnAboutBadClass = {}; 13980 var didWarnAboutContextTypeOnFunctionComponent = {}; 13981 var didWarnAboutContextTypes = {}; 13982 var didWarnAboutGetDerivedStateOnFunctionComponent = {}; 13983 var didWarnAboutReassigningProps = !1; 13984 var didWarnAboutRevealOrder = {}; 13985 var didWarnAboutTailOptions = {}; 13986 var SUSPENDED_MARKER = { 13987 dehydrated: null, 13988 treeContext: null, 13989 retryLane: 0, 13990 hydrationErrors: null 13991 }, hasWarnedAboutUsingNoValuePropOnContextProvider = !1, didWarnAboutUndefinedSnapshotBeforeUpdate = null; 13992 didWarnAboutUndefinedSnapshotBeforeUpdate = /* @__PURE__ */ new Set(); 13993 var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, inProgressRoot = null, hostParent = null, hostParentIsContainer = !1, currentHoistableRoot = null, inHydratedSubtree = !1, suspenseyCommitFlag = 8192, DefaultAsyncDispatcher = { 13994 getCacheForType: function(resourceType) { 13995 var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType); 13996 void 0 === cacheForType && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)); 13997 return cacheForType; 13998 }, 13999 cacheSignal: function() { 14000 return readContext(CacheContext).controller.signal; 14001 }, 14002 getOwner: function() { 14003 return current; 14004 } 14005 }; 14006 if ("function" === typeof Symbol && Symbol.for) { 14007 var symbolFor = Symbol.for; 14008 symbolFor("selector.component"); 14009 symbolFor("selector.has_pseudo_class"); 14010 symbolFor("selector.role"); 14011 symbolFor("selector.test_id"); 14012 symbolFor("selector.text"); 14013 } 14014 var commitHooks = [], PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, NoContext = 0, RenderContext = 2, CommitContext = 4, RootInProgress = 0, RootFatalErrored = 1, RootErrored = 2, RootSuspended = 3, RootSuspendedWithDelay = 4, RootSuspendedAtTheShell = 6, RootCompleted = 5, executionContext = NoContext, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, NotSuspended = 0, SuspendedOnError = 1, SuspendedOnData = 2, SuspendedOnImmediate = 3, SuspendedOnInstance = 4, SuspendedOnInstanceAndReadyToContinue = 5, SuspendedOnDeprecatedThrowPromise = 6, SuspendedAndReadyToContinue = 7, SuspendedOnHydration = 8, SuspendedOnAction = 9, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSu
vendor: 2,573 bytes, lines 14014-14024
14014spendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, FALLBACK_THROTTLE_MS = 300, workInProgressRootRenderTargetTime = Infinity, RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, workInProgressUpdateTask = null, legacyErrorBoundariesThatAlreadyFailed = null, IMMEDIATE_COMMIT = 0, ABORTED_VIEW_TRANSITION_COMMIT = 1, DELAYED_PASSIVE_COMMIT = 2, ANIMATION_STARTED_COMMIT = 3, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, PENDING_LAYOUT_PHASE = 2, PENDING_AFTER_MUTATION_PHASE = 3, PENDING_SPAWNED_WORK = 4, PENDING_PASSIVE_PHASE = 5, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingEffectsRenderEndTime = -0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, pendingSuspendedCommitReason = null, pendingDelayedCommitReason = IMMEDIATE_COMMIT, pendingSuspendedViewTransitionReason = null, NESTED_UPDATE_LIMIT = 50, nestedUpdateCount = 0, rootWithNestedUpdates = null, isFlushingPassiveEffects = !1, didScheduleUpdateDuringPassiveEffects = !1, NESTED_PASSIVE_UPDATE_LIMIT = 50, nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, isRunningInsertionEffect = !1, didWarnStateUpdateForNotYetMountedComponent = null, didWarnAboutUpdateInRender = !1; 14015 var didWarnAboutUpdateInRenderForAnotherComponent = /* @__PURE__ */ new Set(); 14016 var fakeActCallbackNode$1 = {}, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, didScheduleMicrotask_act = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0, fakeActCallbackNode = {}; 14017 (function() { 14018 for (var i = 0; i < simpleEventPluginEvents.length; i++) { 14019 var eventName = simpleEventPluginEvents[i], domEventName = eventName.toLowerCase(); 14020 eventName = eventName[0].toUpperCase() + eventName.slice(1); 14021 registerSimpleEvent(domEventName, "on" + eventName); 14022 } 14023 registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); 14024 registerSimpleEvent(ANIMATION_ITERATION, "onAnimationIteration");
vendor: 10,915 bytes, lines 14025-14206
14025 registerSimpleEvent(ANIMATION_START, "onAnimationStart"); 14026 registerSimpleEvent("dblclick", "onDoubleClick"); 14027 registerSimpleEvent("focusin", "onFocus"); 14028 registerSimpleEvent("focusout", "onBlur"); 14029 registerSimpleEvent(TRANSITION_RUN, "onTransitionRun"); 14030 registerSimpleEvent(TRANSITION_START, "onTransitionStart"); 14031 registerSimpleEvent(TRANSITION_CANCEL, "onTransitionCancel"); 14032 registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); 14033 })(); 14034 registerDirectEvent("onMouseEnter", ["mouseout", "mouseover"]); 14035 registerDirectEvent("onMouseLeave", ["mouseout", "mouseover"]); 14036 registerDirectEvent("onPointerEnter", ["pointerout", "pointerover"]); 14037 registerDirectEvent("onPointerLeave", ["pointerout", "pointerover"]); 14038 registerTwoPhaseEvent("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); 14039 registerTwoPhaseEvent("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); 14040 registerTwoPhaseEvent("onBeforeInput", [ 14041 "compositionend", 14042 "keypress", 14043 "textInput", 14044 "paste" 14045 ]); 14046 registerTwoPhaseEvent("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); 14047 registerTwoPhaseEvent("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); 14048 registerTwoPhaseEvent("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); 14049 var mediaEventTypes = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), nonDelegatedEvents = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes)), listeningMarker = "_reactListening" + Math.random().toString(36).slice(2), didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1, didWarnFormActionType = !1, didWarnFormActionName = !1, didWarnFormActionTarget = !1, didWarnFormActionMethod = !1, didWarnPopoverTargetObject = !1; 14050 var didWarnForNewBooleanPropsWithEmptyValue = {}; 14051 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g, xlinkNamespace = "http://www.w3.org/1999/xlink", xmlNamespace = "http://www.w3.org/XML/1998/namespace", EXPECTED_FORM_ACTION_URL = "javascript:throw new Error('React form unexpectedly submitted.')", SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning", ACTIVITY_START_DATA = "&", ACTIVITY_END_DATA = "/&", SUSPENSE_START_DATA = "$", SUSPENSE_END_DATA = "/$", SUSPENSE_PENDING_START_DATA = "$?", SUSPENSE_QUEUED_START_DATA = "$~", SUSPENSE_FALLBACK_START_DATA = "$!", PREAMBLE_CONTRIBUTION_HTML = "html", PREAMBLE_CONTRIBUTION_BODY = "body", PREAMBLE_CONTRIBUTION_HEAD = "head", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", DOCUMENT_READY_STATE_LOADING = "loading", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, HostContextNamespaceMath = 2, eventsEnabled = null, selectionInformation = null, warnedUnknownTags = { 14052 dialog: !0, 14053 webview: !0 14054 }, currentPopstateTransitionEvent = null, schedulerEvent = void 0, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, noTimeout = -1, localPromise = "function" === typeof Promise ? Promise : void 0, scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) { 14055 return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick); 14056 } : scheduleTimeout, previousHydratableOnEnteringScopedSingleton = null, NotLoaded = 0, Loaded = 1, Errored = 2, Settled = 3, Inserted = 4, preloadPropsMap = /* @__PURE__ */ new Map(), preconnectsSet = /* @__PURE__ */ new Set(), previousDispatcher = ReactDOMSharedInternals.d; 14057 ReactDOMSharedInternals.d = { 14058 f: function() { 14059 var previousWasRendering = previousDispatcher.f(), wasRendering = flushSyncWork$1(); 14060 return previousWasRendering || wasRendering; 14061 }, 14062 r: function(form) { 14063 var formInst = getInstanceFromNode(form); 14064 null !== formInst && 5 === formInst.tag && "form" === formInst.type ? requestFormReset$1(formInst) : previousDispatcher.r(form); 14065 }, 14066 D: function(href) { 14067 previousDispatcher.D(href); 14068 preconnectAs("dns-prefetch", href, null); 14069 }, 14070 C: function(href, crossOrigin) { 14071 previousDispatcher.C(href, crossOrigin); 14072 preconnectAs("preconnect", href, crossOrigin); 14073 }, 14074 L: function(href, as, options) { 14075 previousDispatcher.L(href, as, options); 14076 var ownerDocument = globalDocument; 14077 if (ownerDocument && href && as) { 14078 var preloadSelector = "link[rel=\"preload\"][as=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(as) + "\"]"; 14079 "image" === as ? options && options.imageSrcSet ? (preloadSelector += "[imagesrcset=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSrcSet) + "\"]", "string" === typeof options.imageSizes && (preloadSelector += "[imagesizes=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(options.imageSizes) + "\"]")) : preloadSelector += "[href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\"]" : preloadSelector += "[href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\"]"; 14080 var key = preloadSelector; 14081 switch (as) { 14082 case "style": 14083 key = getStyleKey(href); 14084 break; 14085 case "script": key = getScriptKey(href); 14086 } 14087 preloadPropsMap.has(key) || (href = assign({ 14088 rel: "preload", 14089 href: "image" === as && options && options.imageSrcSet ? void 0 : href, 14090 as 14091 }, options), preloadPropsMap.set(key, href), null !== ownerDocument.querySelector(preloadSelector) || "style" === as && ownerDocument.querySelector(getStylesheetSelectorFromKey(key)) || "script" === as && ownerDocument.querySelector(getScriptSelectorFromKey(key)) || (as = ownerDocument.createElement("link"), setInitialProperties(as, "link", href), markNodeAsHoistable(as), ownerDocument.head.appendChild(as))); 14092 } 14093 }, 14094 m: function(href, options) { 14095 previousDispatcher.m(href, options); 14096 var ownerDocument = globalDocument; 14097 if (ownerDocument && href) { 14098 var as = options && "string" === typeof options.as ? options.as : "script", preloadSelector = "link[rel=\"modulepreload\"][as=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(as) + "\"][href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\"]", key = preloadSelector; 14099 switch (as) { 14100 case "audioworklet": 14101 case "paintworklet": 14102 case "serviceworker": 14103 case "sharedworker": 14104 case "worker": 14105 case "script": key = getScriptKey(href); 14106 } 14107 if (!preloadPropsMap.has(key) && (href = assign({ 14108 rel: "modulepreload", 14109 href 14110 }, options), preloadPropsMap.set(key, href), null === ownerDocument.querySelector(preloadSelector))) { 14111 switch (as) { 14112 case "audioworklet": 14113 case "paintworklet": 14114 case "serviceworker": 14115 case "sharedworker": 14116 case "worker": 14117 case "script": if (ownerDocument.querySelector(getScriptSelectorFromKey(key))) return; 14118 } 14119 as = ownerDocument.createElement("link"); 14120 setInitialProperties(as, "link", href); 14121 markNodeAsHoistable(as); 14122 ownerDocument.head.appendChild(as); 14123 } 14124 } 14125 }, 14126 X: function(src, options) { 14127 previousDispatcher.X(src, options); 14128 var ownerDocument = globalDocument; 14129 if (ownerDocument && src) { 14130 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 14131 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 14132 src, 14133 async: !0 14134 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 14135 type: "script", 14136 instance: resource, 14137 count: 1, 14138 state: null 14139 }, scripts.set(key, resource)); 14140 } 14141 }, 14142 S: function(href, precedence, options) { 14143 previousDispatcher.S(href, precedence, options); 14144 var ownerDocument = globalDocument; 14145 if (ownerDocument && href) { 14146 var styles = getResourcesFromRoot(ownerDocument).hoistableStyles, key = getStyleKey(href); 14147 precedence = precedence || "default"; 14148 var resource = styles.get(key); 14149 if (!resource) { 14150 var state = { 14151 loading: NotLoaded, 14152 preload: null 14153 }; 14154 if (resource = ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) state.loading = Loaded | Inserted; 14155 else { 14156 href = assign({ 14157 rel: "stylesheet", 14158 href, 14159 "data-precedence": precedence 14160 }, options); 14161 (options = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options); 14162 var link = resource = ownerDocument.createElement("link"); 14163 markNodeAsHoistable(link); 14164 setInitialProperties(link, "link", href); 14165 link._p = new Promise(function(resolve, reject) { 14166 link.onload = resolve; 14167 link.onerror = reject; 14168 }); 14169 link.addEventListener("load", function() { 14170 state.loading |= Loaded; 14171 }); 14172 link.addEventListener("error", function() { 14173 state.loading |= Errored; 14174 }); 14175 state.loading |= Inserted; 14176 insertStylesheet(resource, precedence, ownerDocument); 14177 } 14178 resource = { 14179 type: "stylesheet", 14180 instance: resource, 14181 count: 1, 14182 state 14183 }; 14184 styles.set(key, resource); 14185 } 14186 } 14187 }, 14188 M: function(src, options) { 14189 previousDispatcher.M(src, options); 14190 var ownerDocument = globalDocument; 14191 if (ownerDocument && src) { 14192 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 14193 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 14194 src, 14195 async: !0, 14196 type: "module" 14197 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 14198 type: "script", 14199 instance: resource, 14200 count: 1, 14201 state: null 14202 }, scripts.set(key, resource)); 14203 } 14204 } 14205 }; 14206 var globalDocument = "undefined" === typeof document ? null : document, tagCaches = null, SUSPENSEY_STYLESHEET_TIMEOUT = 6e4, SUSPENSEY_IMAGE_TIMEOUT = 800, SUSPENSEY_IMAGE_TIME_ESTIMATE = 500, estimatedBytesWithinLim
vendor: 12,750 bytes, lines 14206-14363
14206it = 0, LAST_PRECEDENCE = null, precedencesByRoot = null, NotPendingTransition = NotPending, HostTransitionContext = { 14207 $$typeof: REACT_CONTEXT_TYPE, 14208 Provider: null, 14209 Consumer: null, 14210 _currentValue: NotPendingTransition, 14211 _currentValue2: NotPendingTransition, 14212 _threadCount: 0 14213 }, badgeFormat = "%c%s%c", badgeStyle = "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", resetStyle = "", pad = " ", bind = Function.prototype.bind; 14214 var didWarnAboutNestedUpdates = !1; 14215 var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, scheduleRetry = null, setErrorHandler = null, setSuspenseHandler = null; 14216 overrideHookState = function(fiber, id, path, value) { 14217 id = findHook(fiber, id); 14218 null !== id && (path = copyWithSetImpl(id.memoizedState, path, 0, value), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 14219 }; 14220 overrideHookStateDeletePath = function(fiber, id, path) { 14221 id = findHook(fiber, id); 14222 null !== id && (path = copyWithDeleteImpl(id.memoizedState, path, 0), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 14223 }; 14224 overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) { 14225 id = findHook(fiber, id); 14226 null !== id && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2)); 14227 }; 14228 overrideProps = function(fiber, path, value) { 14229 fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path, 0, value); 14230 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14231 path = enqueueConcurrentRenderForLane(fiber, 2); 14232 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 14233 }; 14234 overridePropsDeletePath = function(fiber, path) { 14235 fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path, 0); 14236 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14237 path = enqueueConcurrentRenderForLane(fiber, 2); 14238 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 14239 }; 14240 overridePropsRenamePath = function(fiber, oldPath, newPath) { 14241 fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); 14242 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 14243 oldPath = enqueueConcurrentRenderForLane(fiber, 2); 14244 null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2); 14245 }; 14246 scheduleUpdate = function(fiber) { 14247 var root = enqueueConcurrentRenderForLane(fiber, 2); 14248 null !== root && scheduleUpdateOnFiber(root, fiber, 2); 14249 }; 14250 scheduleRetry = function(fiber) { 14251 var lane = claimNextRetryLane(), root = enqueueConcurrentRenderForLane(fiber, lane); 14252 null !== root && scheduleUpdateOnFiber(root, fiber, lane); 14253 }; 14254 setErrorHandler = function(newShouldErrorImpl) { 14255 shouldErrorImpl = newShouldErrorImpl; 14256 }; 14257 setSuspenseHandler = function(newShouldSuspendImpl) { 14258 shouldSuspendImpl = newShouldSuspendImpl; 14259 }; 14260 var _enabled = !0, return_targetInst = null, hasScheduledReplayAttempt = !1, queuedFocus = null, queuedDrag = null, queuedMouse = null, queuedPointers = /* @__PURE__ */ new Map(), queuedPointerCaptures = /* @__PURE__ */ new Map(), queuedExplicitHydrationTargets = [], discreteReplayableEvents = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "), lastScheduledReplayQueue = null; 14261 ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) { 14262 var root = this._internalRoot; 14263 if (null === root) throw Error("Cannot update an unmounted root."); 14264 var args = arguments; 14265 "function" === typeof args[1] ? console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().") : isValidContainer(args[1]) ? console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.") : "undefined" !== typeof args[1] && console.error("You passed a second argument to root.render(...) but it only accepts one argument."); 14266 args = children; 14267 var current = root.current; 14268 updateContainerImpl(current, requestUpdateLane(current), args, root, null, null); 14269 }; 14270 ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() { 14271 var args = arguments; 14272 "function" === typeof args[0] && console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."); 14273 args = this._internalRoot; 14274 if (null !== args) { 14275 this._internalRoot = null; 14276 var container = args.containerInfo; 14277 (executionContext & (RenderContext | CommitContext)) !== NoContext && console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."); 14278 updateContainerImpl(args.current, 2, null, args, null, null); 14279 flushSyncWork$1(); 14280 container[internalContainerInstanceKey] = null; 14281 } 14282 }; 14283 ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) { 14284 if (target) { 14285 var updatePriority = resolveUpdatePriority(); 14286 target = { 14287 blockedOn: null, 14288 target, 14289 priority: updatePriority 14290 }; 14291 for (var i = 0; i < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i].priority; i++); 14292 queuedExplicitHydrationTargets.splice(i, 0, target); 14293 0 === i && attemptExplicitHydrationTarget(target); 14294 } 14295 }; 14296 (function() { 14297 var isomorphicReactPackageVersion = React.version; 14298 if ("19.2.5" !== isomorphicReactPackageVersion) throw Error("Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\n - react: " + (isomorphicReactPackageVersion + "\n - react-dom: 19.2.5\nLearn more: https://react.dev/warnings/version-mismatch")); 14299 })(); 14300 "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("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"); 14301 ReactDOMSharedInternals.findDOMNode = function(componentOrElement) { 14302 var fiber = componentOrElement._reactInternals; 14303 if (void 0 === fiber) { 14304 if ("function" === typeof componentOrElement.render) throw Error("Unable to find node on an unmounted component."); 14305 componentOrElement = Object.keys(componentOrElement).join(","); 14306 throw Error("Argument appears to not be a ReactComponent. Keys: " + componentOrElement); 14307 } 14308 componentOrElement = findCurrentFiberUsingSlowPath(fiber); 14309 componentOrElement = null !== componentOrElement ? findCurrentHostFiberImpl(componentOrElement) : null; 14310 componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode; 14311 return componentOrElement; 14312 }; 14313 if (!(function() { 14314 var internals = { 14315 bundleType: 1, 14316 version: "19.2.5", 14317 rendererPackageName: "react-dom", 14318 currentDispatcherRef: ReactSharedInternals, 14319 reconcilerVersion: "19.2.5" 14320 }; 14321 internals.overrideHookState = overrideHookState; 14322 internals.overrideHookStateDeletePath = overrideHookStateDeletePath; 14323 internals.overrideHookStateRenamePath = overrideHookStateRenamePath; 14324 internals.overrideProps = overrideProps; 14325 internals.overridePropsDeletePath = overridePropsDeletePath; 14326 internals.overridePropsRenamePath = overridePropsRenamePath; 14327 internals.scheduleUpdate = scheduleUpdate; 14328 internals.scheduleRetry = scheduleRetry; 14329 internals.setErrorHandler = setErrorHandler; 14330 internals.setSuspenseHandler = setSuspenseHandler; 14331 internals.scheduleRefresh = scheduleRefresh; 14332 internals.scheduleRoot = scheduleRoot; 14333 internals.setRefreshHandler = setRefreshHandler; 14334 internals.getCurrentFiber = getCurrentFiberForDevTools; 14335 return injectInternals(internals); 14336 })() && canUseDOM && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && -1 === navigator.userAgent.indexOf("Edge") || -1 < navigator.userAgent.indexOf("Firefox"))) { 14337 var protocol = window.location.protocol; 14338 /^(https?|file):$/.test(protocol) && console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools" + ("file:" === protocol ? "\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq" : ""), "font-weight:bold"); 14339 } 14340 exports.createRoot = function(container, options) { 14341 if (!isValidContainer(container)) throw Error("Target container is not a DOM element."); 14342 warnIfReactDOMContainerInDEV(container); 14343 var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError; 14344 null !== options && void 0 !== options && (options.hydrate ? console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.") : "object" === typeof options && null !== options && options.$$typeof === REACT_ELEMENT_TYPE && console.error("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"), !0 === options.unstable_strictMode && (isStrictMode = !0), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError)); 14345 options = createFiberRoot(container, 1, !1, null, null, isStrictMode, identifierPrefix, null, onUncaughtError, onCaughtError, onRecoverableError, defaultOnDefaultTransitionIndicator); 14346 container[internalContainerInstanceKey] = options.current; 14347 listenToAllSupportedEvents(container); 14348 return new ReactDOMRoot(options); 14349 }; 14350 exports.hydrateRoot = function(container, initialChildren, options) { 14351 if (!isValidContainer(container)) throw Error("Target container is not a DOM element."); 14352 warnIfReactDOMContainerInDEV(container); 14353 void 0 === initialChildren && console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)"); 14354 var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, formState = null; 14355 null !== options && void 0 !== options && (!0 === options.unstable_strictMode && (isStrictMode = !0), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.formState && (formState = options.formState)); 14356 initialChildren = createFiberRoot(container, 1, !0, initialChildren, null != options ? options : null, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, defaultOnDefaultTransitionIndicator); 14357 initialChildren.context = getContextForSubtree(null); 14358 options = initialChildren.current; 14359 isStrictMode = requestUpdateLane(options); 14360 isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); 14361 identifierPrefix = createUpdate(isStrictMode); 14362 identifierPrefix.callback = null; 14363 enqueueUpdate(options, identifierPrefix, isStrictMode);
14364 startUpdateTimerByLane(isStrictMode, "hydrateRoot()", null); 14365 options = isStrictMode; 14366 initialChildren.current.lanes = options; 14367 markRootUpdated$1(initialChildren, options); 14368 ensureRootIsScheduled(initialChildren); 14369 container[internalContainerInstanceKey] = initialChildren.current; 14370 listenToAllSupportedEvents(container); 14371 return new ReactDOMHydrationRoot(initialChildren); 14372 }; 14373 exports.version = "19.2.5"; 14374 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 14375 })(); 14376})); 14377//#endregion 14378//#region node_modules/react-dom/client.js 14379var require_client = /* @__PURE__ */ __commonJSMin(((exports, module) => { 14380 module.exports = require_react_dom_client_development(); 14381})); 14382//#endregion 14383export default require_client(); 14384 14385//# sourceMappingURL=react-dom_client.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.