vendor: 12,778 bytes, lines 1-331
1import { t as __commonJSMin } from "./chunk-D5y7Ud3f.js"; 2import { r as importShared } from "./_virtual___federation_fn_import-DqlGb765.js"; 3import { t as require_react } from "./react-aMBEKtNJ.js"; 4import { t as require_react_dom } from "./react-dom-umwhLlbp.js"; 5import { n as require_jsx_runtime, t as App } from "./App-B8rtXnMY.js"; 6//#region node_modules/scheduler/cjs/scheduler.production.js 7/** 8* @license React 9* scheduler.production.js 10* 11* Copyright (c) Meta Platforms, Inc. and affiliates. 12* 13* This source code is licensed under the MIT license found in the 14* LICENSE file in the root directory of this source tree. 15*/ 16var require_scheduler_production = /* @__PURE__ */ __commonJSMin(((exports) => { 17 function push(heap, node) { 18 var index = heap.length; 19 heap.push(node); 20 a: for (; 0 < index;) { 21 var parentIndex = index - 1 >>> 1, parent = heap[parentIndex]; 22 if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex; 23 else break a; 24 } 25 } 26 function peek(heap) { 27 return 0 === heap.length ? null : heap[0]; 28 } 29 function pop(heap) { 30 if (0 === heap.length) return null; 31 var first = heap[0], last = heap.pop(); 32 if (last !== first) { 33 heap[0] = last; 34 a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) { 35 var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; 36 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); 37 else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex; 38 else break a; 39 } 40 } 41 return first; 42 } 43 function compare(a, b) { 44 var diff = a.sortIndex - b.sortIndex; 45 return 0 !== diff ? diff : a.id - b.id; 46 } 47 exports.unstable_now = void 0; 48 if ("object" === typeof performance && "function" === typeof performance.now) { 49 var localPerformance = performance; 50 exports.unstable_now = function() { 51 return localPerformance.now(); 52 }; 53 } else { 54 var localDate = Date, initialTime = localDate.now(); 55 exports.unstable_now = function() { 56 return localDate.now() - initialTime; 57 }; 58 } 59 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; 60 function advanceTimers(currentTime) { 61 for (var timer = peek(timerQueue); null !== timer;) { 62 if (null === timer.callback) pop(timerQueue); 63 else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer); 64 else break; 65 timer = peek(timerQueue); 66 } 67 } 68 function handleTimeout(currentTime) { 69 isHostTimeoutScheduled = !1; 70 advanceTimers(currentTime); 71 if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()); 72 else { 73 var firstTimer = peek(timerQueue); 74 null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); 75 } 76 } 77 var isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1; 78 function shouldYieldToHost() { 79 return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0; 80 } 81 function performWorkUntilDeadline() { 82 needsPaint = !1; 83 if (isMessageLoopRunning) { 84 var currentTime = exports.unstable_now(); 85 startTime = currentTime; 86 var hasMoreWork = !0; 87 try { 88 a: { 89 isHostCallbackScheduled = !1; 90 isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1); 91 isPerformingWork = !0; 92 var previousPriorityLevel = currentPriorityLevel; 93 try { 94 b: { 95 advanceTimers(currentTime); 96 for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) { 97 var callback = currentTask.callback; 98 if ("function" === typeof callback) { 99 currentTask.callback = null; 100 currentPriorityLevel = currentTask.priorityLevel; 101 var continuationCallback = callback(currentTask.expirationTime <= currentTime); 102 currentTime = exports.unstable_now(); 103 if ("function" === typeof continuationCallback) { 104 currentTask.callback = continuationCallback; 105 advanceTimers(currentTime); 106 hasMoreWork = !0; 107 break b; 108 } 109 currentTask === peek(taskQueue) && pop(taskQueue); 110 advanceTimers(currentTime); 111 } else pop(taskQueue); 112 currentTask = peek(taskQueue); 113 } 114 if (null !== currentTask) hasMoreWork = !0; 115 else { 116 var firstTimer = peek(timerQueue); 117 null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); 118 hasMoreWork = !1; 119 } 120 } 121 break a; 122 } finally { 123 currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1; 124 } 125 hasMoreWork = void 0; 126 } 127 } finally { 128 hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1; 129 } 130 } 131 } 132 var schedulePerformWorkUntilDeadline; 133 if ("function" === typeof localSetImmediate) schedulePerformWorkUntilDeadline = function() { 134 localSetImmediate(performWorkUntilDeadline); 135 }; 136 else if ("undefined" !== typeof MessageChannel) { 137 var channel = new MessageChannel(), port = channel.port2; 138 channel.port1.onmessage = performWorkUntilDeadline; 139 schedulePerformWorkUntilDeadline = function() { 140 port.postMessage(null); 141 }; 142 } else schedulePerformWorkUntilDeadline = function() { 143 localSetTimeout(performWorkUntilDeadline, 0); 144 }; 145 function requestHostTimeout(callback, ms) { 146 taskTimeoutID = localSetTimeout(function() { 147 callback(exports.unstable_now()); 148 }, ms); 149 } 150 exports.unstable_IdlePriority = 5; 151 exports.unstable_ImmediatePriority = 1; 152 exports.unstable_LowPriority = 4; 153 exports.unstable_NormalPriority = 3; 154 exports.unstable_Profiling = null; 155 exports.unstable_UserBlockingPriority = 2; 156 exports.unstable_cancelCallback = function(task) { 157 task.callback = null; 158 }; 159 exports.unstable_forceFrameRate = function(fps) { 160 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; 161 }; 162 exports.unstable_getCurrentPriorityLevel = function() { 163 return currentPriorityLevel; 164 }; 165 exports.unstable_next = function(eventHandler) { 166 switch (currentPriorityLevel) { 167 case 1: 168 case 2: 169 case 3: 170 var priorityLevel = 3; 171 break; 172 default: priorityLevel = currentPriorityLevel; 173 } 174 var previousPriorityLevel = currentPriorityLevel; 175 currentPriorityLevel = priorityLevel; 176 try { 177 return eventHandler(); 178 } finally { 179 currentPriorityLevel = previousPriorityLevel; 180 } 181 }; 182 exports.unstable_requestPaint = function() { 183 needsPaint = !0; 184 }; 185 exports.unstable_runWithPriority = function(priorityLevel, eventHandler) { 186 switch (priorityLevel) { 187 case 1: 188 case 2: 189 case 3: 190 case 4: 191 case 5: break; 192 default: priorityLevel = 3; 193 } 194 var previousPriorityLevel = currentPriorityLevel; 195 currentPriorityLevel = priorityLevel; 196 try { 197 return eventHandler(); 198 } finally { 199 currentPriorityLevel = previousPriorityLevel; 200 } 201 }; 202 exports.unstable_scheduleCallback = function(priorityLevel, callback, options) { 203 var currentTime = exports.unstable_now(); 204 "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime; 205 switch (priorityLevel) { 206 case 1: 207 var timeout = -1; 208 break; 209 case 2: 210 timeout = 250; 211 break; 212 case 5: 213 timeout = 1073741823; 214 break; 215 case 4: 216 timeout = 1e4; 217 break; 218 default: timeout = 5e3; 219 } 220 timeout = options + timeout; 221 priorityLevel = { 222 id: taskIdCounter++, 223 callback, 224 priorityLevel, 225 startTime: options, 226 expirationTime: timeout, 227 sortIndex: -1 228 }; 229 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()))); 230 return priorityLevel; 231 }; 232 exports.unstable_shouldYield = shouldYieldToHost; 233 exports.unstable_wrapCallback = function(callback) { 234 var parentPriorityLevel = currentPriorityLevel; 235 return function() { 236 var previousPriorityLevel = currentPriorityLevel; 237 currentPriorityLevel = parentPriorityLevel; 238 try { 239 return callback.apply(this, arguments); 240 } finally { 241 currentPriorityLevel = previousPriorityLevel; 242 } 243 }; 244 }; 245})); 246//#endregion 247//#region node_modules/scheduler/index.js 248var require_scheduler = /* @__PURE__ */ __commonJSMin(((exports, module) => { 249 module.exports = require_scheduler_production(); 250})); 251//#endregion 252//#region node_modules/react-dom/cjs/react-dom-client.production.js 253/** 254* @license React 255* react-dom-client.production.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_production = /* @__PURE__ */ __commonJSMin(((exports) => { 263 var Scheduler = require_scheduler(), React = require_react(), ReactDOM = require_react_dom(); 264 function formatProdErrorMessage(code) { 265 var url = "https://react.dev/errors/" + code; 266 if (1 < arguments.length) { 267 url += "?args[]=" + encodeURIComponent(arguments[1]); 268 for (var i = 2; i < arguments.length; i++) url += "&args[]=" + encodeURIComponent(arguments[i]); 269 } 270 return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; 271 } 272 function isValidContainer(node) { 273 return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType); 274 } 275 function getNearestMountedFiber(fiber) { 276 var node = fiber, nearestMounted = fiber; 277 if (fiber.alternate) for (; node.return;) node = node.return; 278 else { 279 fiber = node; 280 do 281 node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; 282 while (fiber); 283 } 284 return 3 === node.tag ? nearestMounted : null; 285 } 286 function getSuspenseInstanceFromFiber(fiber) { 287 if (13 === fiber.tag) { 288 var suspenseState = fiber.memoizedState; 289 null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState)); 290 if (null !== suspenseState) return suspenseState.dehydrated; 291 } 292 return null; 293 } 294 function getActivityInstanceFromFiber(fiber) { 295 if (31 === fiber.tag) { 296 var activityState = fiber.memoizedState; 297 null === activityState && (fiber = fiber.alternate, null !== fiber && (activityState = fiber.memoizedState)); 298 if (null !== activityState) return activityState.dehydrated; 299 } 300 return null; 301 } 302 function assertIsMounted(fiber) { 303 if (getNearestMountedFiber(fiber) !== fiber) throw Error(formatProdErrorMessage(188)); 304 } 305 function findCurrentFiberUsingSlowPath(fiber) { 306 var alternate = fiber.alternate; 307 if (!alternate) { 308 alternate = getNearestMountedFiber(fiber); 309 if (null === alternate) throw Error(formatProdErrorMessage(188)); 310 return alternate !== fiber ? null : fiber; 311 } 312 for (var a = fiber, b = alternate;;) { 313 var parentA = a.return; 314 if (null === parentA) break; 315 var parentB = parentA.alternate; 316 if (null === parentB) { 317 b = parentA.return; 318 if (null !== b) { 319 a = b; 320 continue; 321 } 322 break; 323 } 324 if (parentA.child === parentB.child) { 325 for (parentB = parentA.child; parentB;) { 326 if (parentB === a) return assertIsMounted(parentA), fiber; 327 if (parentB === b) return assertIsMounted(parentA), alternate; 328 parentB = parentB.sibling; 329 } 330 throw Error(formatProdErrorMessage(188)); 331 }
vendor: 4,228 bytes, lines 332-424
332 if (a.return !== b.return) a = parentA, b = parentB; 333 else { 334 for (var didFindChild = !1, child$0 = parentA.child; child$0;) { 335 if (child$0 === a) { 336 didFindChild = !0; 337 a = parentA; 338 b = parentB; 339 break; 340 } 341 if (child$0 === b) { 342 didFindChild = !0; 343 b = parentA; 344 a = parentB; 345 break; 346 } 347 child$0 = child$0.sibling; 348 } 349 if (!didFindChild) { 350 for (child$0 = parentB.child; child$0;) { 351 if (child$0 === a) { 352 didFindChild = !0; 353 a = parentB; 354 b = parentA; 355 break; 356 } 357 if (child$0 === b) { 358 didFindChild = !0; 359 b = parentB; 360 a = parentA; 361 break; 362 } 363 child$0 = child$0.sibling; 364 } 365 if (!didFindChild) throw Error(formatProdErrorMessage(189)); 366 } 367 } 368 if (a.alternate !== b) throw Error(formatProdErrorMessage(190)); 369 } 370 if (3 !== a.tag) throw Error(formatProdErrorMessage(188)); 371 return a.stateNode.current === a ? fiber : alternate; 372 } 373 function findCurrentHostFiberImpl(node) { 374 var tag = node.tag; 375 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; 376 for (node = node.child; null !== node;) { 377 tag = findCurrentHostFiberImpl(node); 378 if (null !== tag) return tag; 379 node = node.sibling; 380 } 381 return null; 382 } 383 var 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"); 384 var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"); 385 var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"); 386 var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; 387 function getIteratorFn(maybeIterable) { 388 if (null === maybeIterable || "object" !== typeof maybeIterable) return null; 389 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; 390 return "function" === typeof maybeIterable ? maybeIterable : null; 391 } 392 var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); 393 function getComponentNameFromType(type) { 394 if (null == type) return null; 395 if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 396 if ("string" === typeof type) return type; 397 switch (type) { 398 case REACT_FRAGMENT_TYPE: return "Fragment"; 399 case REACT_PROFILER_TYPE: return "Profiler"; 400 case REACT_STRICT_MODE_TYPE: return "StrictMode"; 401 case REACT_SUSPENSE_TYPE: return "Suspense"; 402 case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; 403 case REACT_ACTIVITY_TYPE: return "Activity"; 404 } 405 if ("object" === typeof type) switch (type.$$typeof) { 406 case REACT_PORTAL_TYPE: return "Portal"; 407 case REACT_CONTEXT_TYPE: return type.displayName || "Context"; 408 case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer"; 409 case REACT_FORWARD_REF_TYPE: 410 var innerType = type.render; 411 type = type.displayName; 412 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 413 return type; 414 case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 415 case REACT_LAZY_TYPE: 416 innerType = type._payload; 417 type = type._init; 418 try { 419 return getComponentNameFromType(type(innerType)); 420 } catch (x) {} 421 } 422 return null; 423 } 424 var 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, sharedNotPendingOb
vendor: 48,590 bytes, lines 424-1560
424ject = { 425 pending: !1, 426 data: null, 427 method: null, 428 action: null 429 }, valueStack = [], index = -1; 430 function createCursor(defaultValue) { 431 return { current: defaultValue }; 432 } 433 function pop(cursor) { 434 0 > index || (cursor.current = valueStack[index], valueStack[index] = null, index--); 435 } 436 function push(cursor, value) { 437 index++; 438 valueStack[index] = cursor.current; 439 cursor.current = value; 440 } 441 var contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null); 442 function pushHostContainer(fiber, nextRootInstance) { 443 push(rootInstanceStackCursor, nextRootInstance); 444 push(contextFiberStackCursor, fiber); 445 push(contextStackCursor, null); 446 switch (nextRootInstance.nodeType) { 447 case 9: 448 case 11: 449 fiber = (fiber = nextRootInstance.documentElement) ? (fiber = fiber.namespaceURI) ? getOwnHostContext(fiber) : 0 : 0; 450 break; 451 default: if (fiber = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI) nextRootInstance = getOwnHostContext(nextRootInstance), fiber = getChildHostContextProd(nextRootInstance, fiber); 452 else switch (fiber) { 453 case "svg": 454 fiber = 1; 455 break; 456 case "math": 457 fiber = 2; 458 break; 459 default: fiber = 0; 460 } 461 } 462 pop(contextStackCursor); 463 push(contextStackCursor, fiber); 464 } 465 function popHostContainer() { 466 pop(contextStackCursor); 467 pop(contextFiberStackCursor); 468 pop(rootInstanceStackCursor); 469 } 470 function pushHostContext(fiber) { 471 null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber); 472 var context = contextStackCursor.current; 473 var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type); 474 context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor, JSCompiler_inline_result)); 475 } 476 function popHostContext(fiber) { 477 contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)); 478 hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), HostTransitionContext._currentValue = sharedNotPendingObject); 479 } 480 var prefix, suffix; 481 function describeBuiltInComponentFrame(name) { 482 if (void 0 === prefix) try { 483 throw Error(); 484 } catch (x) { 485 var match = x.stack.trim().match(/\n( *(at )?)/); 486 prefix = match && match[1] || ""; 487 suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; 488 } 489 return "\n" + prefix + name + suffix; 490 } 491 var reentry = !1; 492 function describeNativeComponentFrame(fn, construct) { 493 if (!fn || reentry) return ""; 494 reentry = !0; 495 var previousPrepareStackTrace = Error.prepareStackTrace; 496 Error.prepareStackTrace = void 0; 497 try { 498 var RunInRootFrame = { DetermineComponentFrameRoot: function() { 499 try { 500 if (construct) { 501 var Fake = function() { 502 throw Error(); 503 }; 504 Object.defineProperty(Fake.prototype, "props", { set: function() { 505 throw Error(); 506 } }); 507 if ("object" === typeof Reflect && Reflect.construct) { 508 try { 509 Reflect.construct(Fake, []); 510 } catch (x) { 511 var control = x; 512 } 513 Reflect.construct(fn, [], Fake); 514 } else { 515 try { 516 Fake.call(); 517 } catch (x$1) { 518 control = x$1; 519 } 520 fn.call(Fake.prototype); 521 } 522 } else { 523 try { 524 throw Error(); 525 } catch (x$2) { 526 control = x$2; 527 } 528 (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {}); 529 } 530 } catch (sample) { 531 if (sample && control && "string" === typeof sample.stack) return [sample.stack, control.stack]; 532 } 533 return [null, null]; 534 } }; 535 RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; 536 var namePropDescriptor = Object.getOwnPropertyDescriptor(RunInRootFrame.DetermineComponentFrameRoot, "name"); 537 namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" }); 538 var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1]; 539 if (sampleStack && controlStack) { 540 var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n"); 541 for (namePropDescriptor = RunInRootFrame = 0; RunInRootFrame < sampleLines.length && !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot");) RunInRootFrame++; 542 for (; namePropDescriptor < controlLines.length && !controlLines[namePropDescriptor].includes("DetermineComponentFrameRoot");) namePropDescriptor++; 543 if (RunInRootFrame === sampleLines.length || namePropDescriptor === controlLines.length) for (RunInRootFrame = sampleLines.length - 1, namePropDescriptor = controlLines.length - 1; 1 <= RunInRootFrame && 0 <= namePropDescriptor && sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];) namePropDescriptor--; 544 for (; 1 <= RunInRootFrame && 0 <= namePropDescriptor; RunInRootFrame--, namePropDescriptor--) if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { 545 if (1 !== RunInRootFrame || 1 !== namePropDescriptor) do 546 if (RunInRootFrame--, namePropDescriptor--, 0 > namePropDescriptor || sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { 547 var frame = "\n" + sampleLines[RunInRootFrame].replace(" at new ", " at "); 548 fn.displayName && frame.includes("<anonymous>") && (frame = frame.replace("<anonymous>", fn.displayName)); 549 return frame; 550 } 551 while (1 <= RunInRootFrame && 0 <= namePropDescriptor); 552 break; 553 } 554 } 555 } finally { 556 reentry = !1, Error.prepareStackTrace = previousPrepareStackTrace; 557 } 558 return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(previousPrepareStackTrace) : ""; 559 } 560 function describeFiber(fiber, childFiber) { 561 switch (fiber.tag) { 562 case 26: 563 case 27: 564 case 5: return describeBuiltInComponentFrame(fiber.type); 565 case 16: return describeBuiltInComponentFrame("Lazy"); 566 case 13: return fiber.child !== childFiber && null !== childFiber ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense"); 567 case 19: return describeBuiltInComponentFrame("SuspenseList"); 568 case 0: 569 case 15: return describeNativeComponentFrame(fiber.type, !1); 570 case 11: return describeNativeComponentFrame(fiber.type.render, !1); 571 case 1: return describeNativeComponentFrame(fiber.type, !0); 572 case 31: return describeBuiltInComponentFrame("Activity"); 573 default: return ""; 574 } 575 } 576 function getStackByFiberInDevAndProd(workInProgress) { 577 try { 578 var info = "", previous = null; 579 do 580 info += describeFiber(workInProgress, previous), previous = workInProgress, workInProgress = workInProgress.return; 581 while (workInProgress); 582 return info; 583 } catch (x) { 584 return "\nError generating stack: " + x.message + "\n" + x.stack; 585 } 586 } 587 var hasOwnProperty = Object.prototype.hasOwnProperty, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now = 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; 588 function setIsStrictModeForDevtools(newIsStrictMode) { 589 "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); 590 if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { 591 injectedHook.setStrictMode(rendererID, newIsStrictMode); 592 } catch (err) {} 593 } 594 var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2; 595 function clz32Fallback(x) { 596 x >>>= 0; 597 return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; 598 } 599 var nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304; 600 function getHighestPriorityLanes(lanes) { 601 var pendingSyncLanes = lanes & 42; 602 if (0 !== pendingSyncLanes) return pendingSyncLanes; 603 switch (lanes & -lanes) { 604 case 1: return 1; 605 case 2: return 2; 606 case 4: return 4; 607 case 8: return 8; 608 case 16: return 16; 609 case 32: return 32; 610 case 64: return 64; 611 case 128: return 128; 612 case 256: 613 case 512: 614 case 1024: 615 case 2048: 616 case 4096: 617 case 8192: 618 case 16384: 619 case 32768: 620 case 65536: 621 case 131072: return lanes & 261888; 622 case 262144: 623 case 524288: 624 case 1048576: 625 case 2097152: return lanes & 3932160; 626 case 4194304: 627 case 8388608: 628 case 16777216: 629 case 33554432: return lanes & 62914560; 630 case 67108864: return 67108864; 631 case 134217728: return 134217728; 632 case 268435456: return 268435456; 633 case 536870912: return 536870912; 634 case 1073741824: return 0; 635 default: return lanes; 636 } 637 } 638 function getNextLanes(root, wipLanes, rootHasPendingCommit) { 639 var pendingLanes = root.pendingLanes; 640 if (0 === pendingLanes) return 0; 641 var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes; 642 root = root.warmLanes; 643 var nonIdlePendingLanes = pendingLanes & 134217727; 644 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)))); 645 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; 646 } 647 function checkIfRootIsPrerendering(root, renderLanes) { 648 return 0 === (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes); 649 } 650 function computeExpirationTime(lane, currentTime) { 651 switch (lane) { 652 case 1: 653 case 2: 654 case 4: 655 case 8: 656 case 64: return currentTime + 250; 657 case 16: 658 case 32: 659 case 128: 660 case 256: 661 case 512: 662 case 1024: 663 case 2048: 664 case 4096: 665 case 8192: 666 case 16384: 667 case 32768: 668 case 65536: 669 case 131072: 670 case 262144: 671 case 524288: 672 case 1048576: 673 case 2097152: return currentTime + 5e3; 674 case 4194304: 675 case 8388608: 676 case 16777216: 677 case 33554432: return -1; 678 case 67108864: 679 case 134217728: 680 case 268435456: 681 case 536870912: 682 case 1073741824: return -1; 683 default: return -1; 684 } 685 } 686 function claimNextRetryLane() { 687 var lane = nextRetryLane; 688 nextRetryLane <<= 1; 689 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); 690 return lane; 691 } 692 function createLaneMap(initial) { 693 for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); 694 return laneMap; 695 } 696 function markRootUpdated$1(root, updateLane) { 697 root.pendingLanes |= updateLane; 698 268435456 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0); 699 } 700 function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) { 701 var previouslyPendingLanes = root.pendingLanes; 702 root.pendingLanes = remainingLanes; 703 root.suspendedLanes = 0; 704 root.pingedLanes = 0; 705 root.warmLanes = 0; 706 root.expiredLanes &= remainingLanes; 707 root.entangledLanes &= remainingLanes; 708 root.errorRecoveryDisabledLanes &= remainingLanes; 709 root.shellSuspendCounter = 0; 710 var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; 711 for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes;) { 712 var index$7 = 31 - clz32(remainingLanes), lane = 1 << index$7; 713 entanglements[index$7] = 0; 714 expirationTimes[index$7] = -1; 715 var hiddenUpdatesForLane = hiddenUpdates[index$7]; 716 if (null !== hiddenUpdatesForLane) for (hiddenUpdates[index$7] = null, index$7 = 0; index$7 < hiddenUpdatesForLane.length; index$7++) { 717 var update = hiddenUpdatesForLane[index$7]; 718 null !== update && (update.lane &= -536870913); 719 } 720 remainingLanes &= ~lane; 721 } 722 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); 723 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root.tag && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); 724 } 725 function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { 726 root.pendingLanes |= spawnedLane; 727 root.suspendedLanes &= ~spawnedLane; 728 var spawnedLaneIndex = 31 - clz32(spawnedLane); 729 root.entangledLanes |= spawnedLane; 730 root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930; 731 } 732 function markRootEntangled(root, entangledLanes) { 733 var rootEntangledLanes = root.entangledLanes |= entangledLanes; 734 for (root = root.entanglements; rootEntangledLanes;) { 735 var index$8 = 31 - clz32(rootEntangledLanes), lane = 1 << index$8; 736 lane & entangledLanes | root[index$8] & entangledLanes && (root[index$8] |= entangledLanes); 737 rootEntangledLanes &= ~lane; 738 } 739 } 740 function getBumpedLaneForHydration(root, renderLanes) { 741 var renderLane = renderLanes & -renderLanes; 742 renderLane = 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane); 743 return 0 !== (renderLane & (root.suspendedLanes | renderLanes)) ? 0 : renderLane; 744 } 745 function getBumpedLaneForHydrationByLane(lane) { 746 switch (lane) { 747 case 2: 748 lane = 1; 749 break; 750 case 8: 751 lane = 4; 752 break; 753 case 32: 754 lane = 16; 755 break; 756 case 256: 757 case 512: 758 case 1024: 759 case 2048: 760 case 4096: 761 case 8192: 762 case 16384: 763 case 32768: 764 case 65536: 765 case 131072: 766 case 262144: 767 case 524288: 768 case 1048576: 769 case 2097152: 770 case 4194304: 771 case 8388608: 772 case 16777216: 773 case 33554432: 774 lane = 128; 775 break; 776 case 268435456: 777 lane = 134217728; 778 break; 779 default: lane = 0; 780 } 781 return lane; 782 } 783 function lanesToEventPriority(lanes) { 784 lanes &= -lanes; 785 return 2 < lanes ? 8 < lanes ? 0 !== (lanes & 134217727) ? 32 : 268435456 : 8 : 2; 786 } 787 function resolveUpdatePriority() { 788 var updatePriority = ReactDOMSharedInternals.p; 789 if (0 !== updatePriority) return updatePriority; 790 updatePriority = window.event; 791 return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type); 792 } 793 function runWithPriority(priority, fn) { 794 var previousPriority = ReactDOMSharedInternals.p; 795 try { 796 return ReactDOMSharedInternals.p = priority, fn(); 797 } finally { 798 ReactDOMSharedInternals.p = previousPriority; 799 } 800 } 801 var 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; 802 function detachDeletedInstance(node) { 803 delete node[internalInstanceKey]; 804 delete node[internalPropsKey]; 805 delete node[internalEventHandlersKey]; 806 delete node[internalEventHandlerListenersKey]; 807 delete node[internalEventHandlesSetKey]; 808 } 809 function getClosestInstanceFromNode(targetNode) { 810 var targetInst = targetNode[internalInstanceKey]; 811 if (targetInst) return targetInst; 812 for (var parentNode = targetNode.parentNode; parentNode;) { 813 if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) { 814 parentNode = targetInst.alternate; 815 if (null !== targetInst.child || null !== parentNode && null !== parentNode.child) for (targetNode = getParentHydrationBoundary(targetNode); null !== targetNode;) { 816 if (parentNode = targetNode[internalInstanceKey]) return parentNode; 817 targetNode = getParentHydrationBoundary(targetNode); 818 } 819 return targetInst; 820 } 821 targetNode = parentNode; 822 parentNode = targetNode.parentNode; 823 } 824 return null; 825 } 826 function getInstanceFromNode(node) { 827 if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) { 828 var tag = node.tag; 829 if (5 === tag || 6 === tag || 13 === tag || 31 === tag || 26 === tag || 27 === tag || 3 === tag) return node; 830 } 831 return null; 832 } 833 function getNodeFromInstance(inst) { 834 var tag = inst.tag; 835 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode; 836 throw Error(formatProdErrorMessage(33)); 837 } 838 function getResourcesFromRoot(root) { 839 var resources = root[internalRootNodeResourcesKey]; 840 resources || (resources = root[internalRootNodeResourcesKey] = { 841 hoistableStyles: /* @__PURE__ */ new Map(), 842 hoistableScripts: /* @__PURE__ */ new Map() 843 }); 844 return resources; 845 } 846 function markNodeAsHoistable(node) { 847 node[internalHoistableMarker] = !0; 848 } 849 var allNativeEvents = /* @__PURE__ */ new Set(), registrationNameDependencies = {}; 850 function registerTwoPhaseEvent(registrationName, dependencies) { 851 registerDirectEvent(registrationName, dependencies); 852 registerDirectEvent(registrationName + "Capture", dependencies); 853 } 854 function registerDirectEvent(registrationName, dependencies) { 855 registrationNameDependencies[registrationName] = dependencies; 856 for (registrationName = 0; registrationName < dependencies.length; registrationName++) allNativeEvents.add(dependencies[registrationName]); 857 } 858 var 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 = {}; 859 function isAttributeNameSafe(attributeName) { 860 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return !0; 861 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; 862 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return validatedAttributeNameCache[attributeName] = !0; 863 illegalAttributeNameCache[attributeName] = !0; 864 return !1; 865 } 866 function setValueForAttribute(node, name, value) { 867 if (isAttributeNameSafe(name)) if (null === value) node.removeAttribute(name); 868 else { 869 switch (typeof value) { 870 case "undefined": 871 case "function": 872 case "symbol": 873 node.removeAttribute(name); 874 return; 875 case "boolean": 876 var prefix$10 = name.toLowerCase().slice(0, 5); 877 if ("data-" !== prefix$10 && "aria-" !== prefix$10) { 878 node.removeAttribute(name); 879 return; 880 } 881 } 882 node.setAttribute(name, "" + value); 883 } 884 } 885 function setValueForKnownAttribute(node, name, value) { 886 if (null === value) node.removeAttribute(name); 887 else { 888 switch (typeof value) { 889 case "undefined": 890 case "function": 891 case "symbol": 892 case "boolean": 893 node.removeAttribute(name); 894 return; 895 } 896 node.setAttribute(name, "" + value); 897 } 898 } 899 function setValueForNamespacedAttribute(node, namespace, name, value) { 900 if (null === value) node.removeAttribute(name); 901 else { 902 switch (typeof value) { 903 case "undefined": 904 case "function": 905 case "symbol": 906 case "boolean": 907 node.removeAttribute(name); 908 return; 909 } 910 node.setAttributeNS(namespace, name, "" + value); 911 } 912 } 913 function getToStringValue(value) { 914 switch (typeof value) { 915 case "bigint": 916 case "boolean": 917 case "number": 918 case "string": 919 case "undefined": return value; 920 case "object": return value; 921 default: return ""; 922 } 923 } 924 function isCheckable(elem) { 925 var type = elem.type; 926 return (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type); 927 } 928 function trackValueOnNode(node, valueField, currentValue) { 929 var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); 930 if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) { 931 var get = descriptor.get, set = descriptor.set; 932 Object.defineProperty(node, valueField, { 933 configurable: !0, 934 get: function() { 935 return get.call(this); 936 }, 937 set: function(value) { 938 currentValue = "" + value; 939 set.call(this, value); 940 } 941 }); 942 Object.defineProperty(node, valueField, { enumerable: descriptor.enumerable }); 943 return { 944 getValue: function() { 945 return currentValue; 946 }, 947 setValue: function(value) { 948 currentValue = "" + value; 949 }, 950 stopTracking: function() { 951 node._valueTracker = null; 952 delete node[valueField]; 953 } 954 }; 955 } 956 } 957 function track(node) { 958 if (!node._valueTracker) { 959 var valueField = isCheckable(node) ? "checked" : "value"; 960 node._valueTracker = trackValueOnNode(node, valueField, "" + node[valueField]); 961 } 962 } 963 function updateValueIfChanged(node) { 964 if (!node) return !1; 965 var tracker = node._valueTracker; 966 if (!tracker) return !0; 967 var lastValue = tracker.getValue(); 968 var value = ""; 969 node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value); 970 node = value; 971 return node !== lastValue ? (tracker.setValue(node), !0) : !1; 972 } 973 function getActiveElement(doc) { 974 doc = doc || ("undefined" !== typeof document ? document : void 0); 975 if ("undefined" === typeof doc) return null; 976 try { 977 return doc.activeElement || doc.body; 978 } catch (e) { 979 return doc.body; 980 } 981 } 982 var escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g; 983 function escapeSelectorAttributeValueInsideDoubleQuotes(value) { 984 return value.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex, function(ch) { 985 return "\\" + ch.charCodeAt(0).toString(16) + " "; 986 }); 987 } 988 function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) { 989 element.name = ""; 990 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? element.type = type : element.removeAttribute("type"); 991 if (null != value) if ("number" === type) { 992 if (0 === value && "" === element.value || element.value != value) element.value = "" + getToStringValue(value); 993 } else element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value)); 994 else "submit" !== type && "reset" !== type || element.removeAttribute("value"); 995 null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); 996 null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); 997 null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); 998 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? element.name = "" + getToStringValue(name) : element.removeAttribute("name"); 999 } 1000 function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating) { 1001 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (element.type = type); 1002 if (null != value || null != defaultValue) { 1003 if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) { 1004 track(element); 1005 return; 1006 } 1007 defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1008 value = null != value ? "" + getToStringValue(value) : defaultValue; 1009 isHydrating || value === element.value || (element.value = value); 1010 element.defaultValue = value; 1011 } 1012 checked = null != checked ? checked : defaultChecked; 1013 checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; 1014 element.checked = isHydrating ? element.checked : !!checked; 1015 element.defaultChecked = !!checked; 1016 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (element.name = name); 1017 track(element); 1018 } 1019 function setDefaultValue(node, type, value) { 1020 "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value); 1021 } 1022 function updateOptions(node, multiple, propValue, setDefaultSelected) { 1023 node = node.options; 1024 if (multiple) { 1025 multiple = {}; 1026 for (var i = 0; i < propValue.length; i++) multiple["$" + propValue[i]] = !0; 1027 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); 1028 } else { 1029 propValue = "" + getToStringValue(propValue); 1030 multiple = null; 1031 for (i = 0; i < node.length; i++) { 1032 if (node[i].value === propValue) { 1033 node[i].selected = !0; 1034 setDefaultSelected && (node[i].defaultSelected = !0); 1035 return; 1036 } 1037 null !== multiple || node[i].disabled || (multiple = node[i]); 1038 } 1039 null !== multiple && (multiple.selected = !0); 1040 } 1041 } 1042 function updateTextarea(element, value, defaultValue) { 1043 if (null != value && (value = "" + getToStringValue(value), value !== element.value && (element.value = value), null == defaultValue)) { 1044 element.defaultValue !== value && (element.defaultValue = value); 1045 return; 1046 } 1047 element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 1048 } 1049 function initTextarea(element, value, defaultValue, children) { 1050 if (null == value) { 1051 if (null != children) { 1052 if (null != defaultValue) throw Error(formatProdErrorMessage(92)); 1053 if (isArrayImpl(children)) { 1054 if (1 < children.length) throw Error(formatProdErrorMessage(93)); 1055 children = children[0]; 1056 } 1057 defaultValue = children; 1058 } 1059 defaultValue ??= ""; 1060 value = defaultValue; 1061 } 1062 defaultValue = getToStringValue(value); 1063 element.defaultValue = defaultValue; 1064 children = element.textContent; 1065 children === defaultValue && "" !== children && null !== children && (element.value = children); 1066 track(element); 1067 } 1068 function setTextContent(node, text) { 1069 if (text) { 1070 var firstChild = node.firstChild; 1071 if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) { 1072 firstChild.nodeValue = text; 1073 return; 1074 } 1075 } 1076 node.textContent = text; 1077 } 1078 var 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(" ")); 1079 function setValueForStyle(style, styleName, value) { 1080 var isCustomProperty = 0 === styleName.indexOf("--"); 1081 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 : style[styleName] = ("" + value).trim() : style[styleName] = value + "px"; 1082 } 1083 function setValueForStyles(node, styles, prevStyles) { 1084 if (null != styles && "object" !== typeof styles) throw Error(formatProdErrorMessage(62)); 1085 node = node.style; 1086 if (null != prevStyles) { 1087 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] = ""); 1088 for (var styleName$16 in styles) styleName = styles[styleName$16], styles.hasOwnProperty(styleName$16) && prevStyles[styleName$16] !== styleName && setValueForStyle(node, styleName$16, styleName); 1089 } else for (var styleName$17 in styles) styles.hasOwnProperty(styleName$17) && setValueForStyle(node, styleName$17, styles[styleName$17]); 1090 } 1091 function isCustomElement(tagName) { 1092 if (-1 === tagName.indexOf("-")) return !1; 1093 switch (tagName) { 1094 case "annotation-xml": 1095 case "color-profile": 1096 case "font-face": 1097 case "font-face-src": 1098 case "font-face-uri": 1099 case "font-face-format": 1100 case "font-face-name": 1101 case "missing-glyph": return !1; 1102 default: return !0; 1103 } 1104 } 1105 var aliases = new Map([ 1106 ["acceptCharset", "accept-charset"], 1107 ["htmlFor", "for"], 1108 ["httpEquiv", "http-equiv"], 1109 ["crossOrigin", "crossorigin"], 1110 ["accentHeight", "accent-height"], 1111 ["alignmentBaseline", "alignment-baseline"], 1112 ["arabicForm", "arabic-form"], 1113 ["baselineShift", "baseline-shift"], 1114 ["capHeight", "cap-height"], 1115 ["clipPath", "clip-path"], 1116 ["clipRule", "clip-rule"], 1117 ["colorInterpolation", "color-interpolation"], 1118 ["colorInterpolationFilters", "color-interpolation-filters"], 1119 ["colorProfile", "color-profile"], 1120 ["colorRendering", "color-rendering"], 1121 ["dominantBaseline", "dominant-baseline"], 1122 ["enableBackground", "enable-background"], 1123 ["fillOpacity", "fill-opacity"], 1124 ["fillRule", "fill-rule"], 1125 ["floodColor", "flood-color"], 1126 ["floodOpacity", "flood-opacity"], 1127 ["fontFamily", "font-family"], 1128 ["fontSize", "font-size"], 1129 ["fontSizeAdjust", "font-size-adjust"], 1130 ["fontStretch", "font-stretch"], 1131 ["fontStyle", "font-style"], 1132 ["fontVariant", "font-variant"], 1133 ["fontWeight", "font-weight"], 1134 ["glyphName", "glyph-name"], 1135 ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], 1136 ["glyphOrientationVertical", "glyph-orientation-vertical"], 1137 ["horizAdvX", "horiz-adv-x"], 1138 ["horizOriginX", "horiz-origin-x"], 1139 ["imageRendering", "image-rendering"], 1140 ["letterSpacing", "letter-spacing"], 1141 ["lightingColor", "lighting-color"], 1142 ["markerEnd", "marker-end"], 1143 ["markerMid", "marker-mid"], 1144 ["markerStart", "marker-start"], 1145 ["overlinePosition", "overline-position"], 1146 ["overlineThickness", "overline-thickness"], 1147 ["paintOrder", "paint-order"], 1148 ["panose-1", "panose-1"], 1149 ["pointerEvents", "pointer-events"], 1150 ["renderingIntent", "rendering-intent"], 1151 ["shapeRendering", "shape-rendering"], 1152 ["stopColor", "stop-color"], 1153 ["stopOpacity", "stop-opacity"], 1154 ["strikethroughPosition", "strikethrough-position"], 1155 ["strikethroughThickness", "strikethrough-thickness"], 1156 ["strokeDasharray", "stroke-dasharray"], 1157 ["strokeDashoffset", "stroke-dashoffset"], 1158 ["strokeLinecap", "stroke-linecap"], 1159 ["strokeLinejoin", "stroke-linejoin"], 1160 ["strokeMiterlimit", "stroke-miterlimit"], 1161 ["strokeOpacity", "stroke-opacity"], 1162 ["strokeWidth", "stroke-width"], 1163 ["textAnchor", "text-anchor"], 1164 ["textDecoration", "text-decoration"], 1165 ["textRendering", "text-rendering"], 1166 ["transformOrigin", "transform-origin"], 1167 ["underlinePosition", "underline-position"], 1168 ["underlineThickness", "underline-thickness"], 1169 ["unicodeBidi", "unicode-bidi"], 1170 ["unicodeRange", "unicode-range"], 1171 ["unitsPerEm", "units-per-em"], 1172 ["vAlphabetic", "v-alphabetic"], 1173 ["vHanging", "v-hanging"], 1174 ["vIdeographic", "v-ideographic"], 1175 ["vMathematical", "v-mathematical"], 1176 ["vectorEffect", "vector-effect"], 1177 ["vertAdvY", "vert-adv-y"], 1178 ["vertOriginX", "vert-origin-x"], 1179 ["vertOriginY", "vert-origin-y"], 1180 ["wordSpacing", "word-spacing"], 1181 ["writingMode", "writing-mode"], 1182 ["xmlnsXlink", "xmlns:xlink"], 1183 ["xHeight", "x-height"] 1184 ]), 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; 1185 function sanitizeURL(url) { 1186 return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; 1187 } 1188 function noop$1() {} 1189 var currentReplayingEvent = null; 1190 function getEventTarget(nativeEvent) { 1191 nativeEvent = nativeEvent.target || nativeEvent.srcElement || window; 1192 nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement); 1193 return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent; 1194 } 1195 var restoreTarget = null, restoreQueue = null; 1196 function restoreStateOfTarget(target) { 1197 var internalInstance = getInstanceFromNode(target); 1198 if (internalInstance && (target = internalInstance.stateNode)) { 1199 var props = target[internalPropsKey] || null; 1200 a: switch (target = internalInstance.stateNode, internalInstance.type) { 1201 case "input": 1202 updateInput(target, props.value, props.defaultValue, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name); 1203 internalInstance = props.name; 1204 if ("radio" === props.type && null != internalInstance) { 1205 for (props = target; props.parentNode;) props = props.parentNode; 1206 props = props.querySelectorAll("input[name=\"" + escapeSelectorAttributeValueInsideDoubleQuotes("" + internalInstance) + "\"][type=\"radio\"]"); 1207 for (internalInstance = 0; internalInstance < props.length; internalInstance++) { 1208 var otherNode = props[internalInstance]; 1209 if (otherNode !== target && otherNode.form === target.form) { 1210 var otherProps = otherNode[internalPropsKey] || null; 1211 if (!otherProps) throw Error(formatProdErrorMessage(90)); 1212 updateInput(otherNode, otherProps.value, otherProps.defaultValue, otherProps.defaultValue, otherProps.checked, otherProps.defaultChecked, otherProps.type, otherProps.name); 1213 } 1214 } 1215 for (internalInstance = 0; internalInstance < props.length; internalInstance++) otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode); 1216 } 1217 break a; 1218 case "textarea": 1219 updateTextarea(target, props.value, props.defaultValue); 1220 break a; 1221 case "select": internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, !1); 1222 } 1223 } 1224 } 1225 var isInsideEventHandler = !1; 1226 function batchedUpdates$1(fn, a, b) { 1227 if (isInsideEventHandler) return fn(a, b); 1228 isInsideEventHandler = !0; 1229 try { 1230 return fn(a); 1231 } finally { 1232 if (isInsideEventHandler = !1, null !== restoreTarget || null !== restoreQueue) { 1233 if (flushSyncWork$1(), restoreTarget && (a = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a), fn)) for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]); 1234 } 1235 } 1236 } 1237 function getListener(inst, registrationName) { 1238 var stateNode = inst.stateNode; 1239 if (null === stateNode) return null; 1240 var props = stateNode[internalPropsKey] || null; 1241 if (null === props) return null; 1242 stateNode = props[registrationName]; 1243 a: switch (registrationName) { 1244 case "onClick": 1245 case "onClickCapture": 1246 case "onDoubleClick": 1247 case "onDoubleClickCapture": 1248 case "onMouseDown": 1249 case "onMouseDownCapture": 1250 case "onMouseMove": 1251 case "onMouseMoveCapture": 1252 case "onMouseUp": 1253 case "onMouseUpCapture": 1254 case "onMouseEnter": 1255 (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); 1256 inst = !props; 1257 break a; 1258 default: inst = !1; 1259 } 1260 if (inst) return null; 1261 if (stateNode && "function" !== typeof stateNode) throw Error(formatProdErrorMessage(231, registrationName, typeof stateNode)); 1262 return stateNode; 1263 } 1264 var canUseDOM = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), passiveBrowserEventsSupported = !1; 1265 if (canUseDOM) try { 1266 var options = {}; 1267 Object.defineProperty(options, "passive", { get: function() { 1268 passiveBrowserEventsSupported = !0; 1269 } }); 1270 window.addEventListener("test", options, options); 1271 window.removeEventListener("test", options, options); 1272 } catch (e) { 1273 passiveBrowserEventsSupported = !1; 1274 } 1275 var root = null, startText = null, fallbackText = null; 1276 function getData() { 1277 if (fallbackText) return fallbackText; 1278 var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length; 1279 for (start = 0; start < startLength && startValue[start] === endValue[start]; start++); 1280 var minEnd = startLength - start; 1281 for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++); 1282 return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0); 1283 } 1284 function getEventCharCode(nativeEvent) { 1285 var keyCode = nativeEvent.keyCode; 1286 "charCode" in nativeEvent ? (nativeEvent = nativeEvent.charCode, 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : nativeEvent = keyCode; 1287 10 === nativeEvent && (nativeEvent = 13); 1288 return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0; 1289 } 1290 function functionThatReturnsTrue() { 1291 return !0; 1292 } 1293 function functionThatReturnsFalse() { 1294 return !1; 1295 } 1296 function createSyntheticEvent(Interface) { 1297 function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { 1298 this._reactName = reactName; 1299 this._targetInst = targetInst; 1300 this.type = reactEventType; 1301 this.nativeEvent = nativeEvent; 1302 this.target = nativeEventTarget; 1303 this.currentTarget = null; 1304 for (var propName in Interface) Interface.hasOwnProperty(propName) && (reactName = Interface[propName], this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName]); 1305 this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; 1306 this.isPropagationStopped = functionThatReturnsFalse; 1307 return this; 1308 } 1309 assign(SyntheticBaseEvent.prototype, { 1310 preventDefault: function() { 1311 this.defaultPrevented = !0; 1312 var event = this.nativeEvent; 1313 event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = !1), this.isDefaultPrevented = functionThatReturnsTrue); 1314 }, 1315 stopPropagation: function() { 1316 var event = this.nativeEvent; 1317 event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = !0), this.isPropagationStopped = functionThatReturnsTrue); 1318 }, 1319 persist: function() {}, 1320 isPersistent: functionThatReturnsTrue 1321 }); 1322 return SyntheticBaseEvent; 1323 } 1324 var EventInterface = { 1325 eventPhase: 0, 1326 bubbles: 0, 1327 cancelable: 0, 1328 timeStamp: function(event) { 1329 return event.timeStamp || Date.now(); 1330 }, 1331 defaultPrevented: 0, 1332 isTrusted: 0 1333 }, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = assign({}, EventInterface, { 1334 view: 0, 1335 detail: 0 1336 }), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), lastMovementX, lastMovementY, lastMouseEvent, MouseEventInterface = assign({}, UIEventInterface, { 1337 screenX: 0, 1338 screenY: 0, 1339 clientX: 0, 1340 clientY: 0, 1341 pageX: 0, 1342 pageY: 0, 1343 ctrlKey: 0, 1344 shiftKey: 0, 1345 altKey: 0, 1346 metaKey: 0, 1347 getModifierState: getEventModifierState, 1348 button: 0, 1349 buttons: 0, 1350 relatedTarget: function(event) { 1351 return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget; 1352 }, 1353 movementX: function(event) { 1354 if ("movementX" in event) return event.movementX; 1355 event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event); 1356 return lastMovementX; 1357 }, 1358 movementY: function(event) { 1359 return "movementY" in event ? event.movementY : lastMovementY; 1360 } 1361 }), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), SyntheticDragEvent = createSyntheticEvent(assign({}, MouseEventInterface, { dataTransfer: 0 })), SyntheticFocusEvent = createSyntheticEvent(assign({}, UIEventInterface, { relatedTarget: 0 })), SyntheticAnimationEvent = createSyntheticEvent(assign({}, EventInterface, { 1362 animationName: 0, 1363 elapsedTime: 0, 1364 pseudoElement: 0 1365 })), SyntheticClipboardEvent = createSyntheticEvent(assign({}, EventInterface, { clipboardData: function(event) { 1366 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 1367 } })), SyntheticCompositionEvent = createSyntheticEvent(assign({}, EventInterface, { data: 0 })), normalizeKey = { 1368 Esc: "Escape", 1369 Spacebar: " ", 1370 Left: "ArrowLeft", 1371 Up: "ArrowUp", 1372 Right: "ArrowRight", 1373 Down: "ArrowDown", 1374 Del: "Delete", 1375 Win: "OS", 1376 Menu: "ContextMenu", 1377 Apps: "ContextMenu", 1378 Scroll: "ScrollLock", 1379 MozPrintableKey: "Unidentified" 1380 }, translateToKey = { 1381 8: "Backspace", 1382 9: "Tab", 1383 12: "Clear", 1384 13: "Enter", 1385 16: "Shift", 1386 17: "Control", 1387 18: "Alt", 1388 19: "Pause", 1389 20: "CapsLock", 1390 27: "Escape", 1391 32: " ", 1392 33: "PageUp", 1393 34: "PageDown", 1394 35: "End", 1395 36: "Home", 1396 37: "ArrowLeft", 1397 38: "ArrowUp", 1398 39: "ArrowRight", 1399 40: "ArrowDown", 1400 45: "Insert", 1401 46: "Delete", 1402 112: "F1", 1403 113: "F2", 1404 114: "F3", 1405 115: "F4", 1406 116: "F5", 1407 117: "F6", 1408 118: "F7", 1409 119: "F8", 1410 120: "F9", 1411 121: "F10", 1412 122: "F11", 1413 123: "F12", 1414 144: "NumLock", 1415 145: "ScrollLock", 1416 224: "Meta" 1417 }, modifierKeyToProp = { 1418 Alt: "altKey", 1419 Control: "ctrlKey", 1420 Meta: "metaKey", 1421 Shift: "shiftKey" 1422 }; 1423 function modifierStateGetter(keyArg) { 1424 var nativeEvent = this.nativeEvent; 1425 return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[keyArg] : !1; 1426 } 1427 function getEventModifierState() { 1428 return modifierStateGetter; 1429 } 1430 var SyntheticKeyboardEvent = createSyntheticEvent(assign({}, UIEventInterface, { 1431 key: function(nativeEvent) { 1432 if (nativeEvent.key) { 1433 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 1434 if ("Unidentified" !== key) return key; 1435 } 1436 return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCode(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 1437 }, 1438 code: 0, 1439 location: 0, 1440 ctrlKey: 0, 1441 shiftKey: 0, 1442 altKey: 0, 1443 metaKey: 0, 1444 repeat: 0, 1445 locale: 0, 1446 getModifierState: getEventModifierState, 1447 charCode: function(event) { 1448 return "keypress" === event.type ? getEventCharCode(event) : 0; 1449 }, 1450 keyCode: function(event) { 1451 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 1452 }, 1453 which: function(event) { 1454 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 1455 } 1456 })), SyntheticPointerEvent = createSyntheticEvent(assign({}, MouseEventInterface, { 1457 pointerId: 0, 1458 width: 0, 1459 height: 0, 1460 pressure: 0, 1461 tangentialPressure: 0, 1462 tiltX: 0, 1463 tiltY: 0, 1464 twist: 0, 1465 pointerType: 0, 1466 isPrimary: 0 1467 })), SyntheticTouchEvent = createSyntheticEvent(assign({}, UIEventInterface, { 1468 touches: 0, 1469 targetTouches: 0, 1470 changedTouches: 0, 1471 altKey: 0, 1472 metaKey: 0, 1473 ctrlKey: 0, 1474 shiftKey: 0, 1475 getModifierState: getEventModifierState 1476 })), SyntheticTransitionEvent = createSyntheticEvent(assign({}, EventInterface, { 1477 propertyName: 0, 1478 elapsedTime: 0, 1479 pseudoElement: 0 1480 })), SyntheticWheelEvent = createSyntheticEvent(assign({}, MouseEventInterface, { 1481 deltaX: function(event) { 1482 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 1483 }, 1484 deltaY: function(event) { 1485 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 1486 }, 1487 deltaZ: 0, 1488 deltaMode: 0 1489 })), SyntheticToggleEvent = createSyntheticEvent(assign({}, EventInterface, { 1490 newState: 0, 1491 oldState: 0 1492 })), END_KEYCODES = [ 1493 9, 1494 13, 1495 27, 1496 32 1497 ], canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null; 1498 canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 1499 var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && 8 < documentMode && 11 >= documentMode), SPACEBAR_CHAR = String.fromCharCode(32), hasSpaceKeypress = !1; 1500 function isFallbackCompositionEnd(domEventName, nativeEvent) { 1501 switch (domEventName) { 1502 case "keyup": return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 1503 case "keydown": return 229 !== nativeEvent.keyCode; 1504 case "keypress": 1505 case "mousedown": 1506 case "focusout": return !0; 1507 default: return !1; 1508 } 1509 } 1510 function getDataFromCustomEvent(nativeEvent) { 1511 nativeEvent = nativeEvent.detail; 1512 return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null; 1513 } 1514 var isComposing = !1; 1515 function getNativeBeforeInputChars(domEventName, nativeEvent) { 1516 switch (domEventName) { 1517 case "compositionend": return getDataFromCustomEvent(nativeEvent); 1518 case "keypress": 1519 if (32 !== nativeEvent.which) return null; 1520 hasSpaceKeypress = !0; 1521 return SPACEBAR_CHAR; 1522 case "textInput": return domEventName = nativeEvent.data, domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName; 1523 default: return null; 1524 } 1525 } 1526 function getFallbackBeforeInputChars(domEventName, nativeEvent) { 1527 if (isComposing) return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (domEventName = getData(), fallbackText = startText = root = null, isComposing = !1, domEventName) : null; 1528 switch (domEventName) { 1529 case "paste": return null; 1530 case "keypress": 1531 if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) { 1532 if (nativeEvent.char && 1 < nativeEvent.char.length) return nativeEvent.char; 1533 if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); 1534 } 1535 return null; 1536 case "compositionend": return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data; 1537 default: return null; 1538 } 1539 } 1540 var supportedInputTypes = { 1541 color: !0, 1542 date: !0, 1543 datetime: !0, 1544 "datetime-local": !0, 1545 email: !0, 1546 month: !0, 1547 number: !0, 1548 password: !0, 1549 range: !0, 1550 search: !0, 1551 tel: !0, 1552 text: !0, 1553 time: !0, 1554 url: !0, 1555 week: !0 1556 }; 1557 function isTextInputElement(elem) { 1558 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 1559 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? !0 : !1; 1560 }
vendor: 4,215 bytes, lines 1561-1658
1561 function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { 1562 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [target] : restoreTarget = target; 1563 inst = accumulateTwoPhaseListeners(inst, "onChange"); 1564 0 < inst.length && (nativeEvent = new SyntheticEvent("onChange", "change", null, nativeEvent, target), dispatchQueue.push({ 1565 event: nativeEvent, 1566 listeners: inst 1567 })); 1568 } 1569 var activeElement$1 = null, activeElementInst$1 = null; 1570 function runEventInBatch(dispatchQueue) { 1571 processDispatchQueue(dispatchQueue, 0); 1572 } 1573 function getInstIfValueChanged(targetInst) { 1574 if (updateValueIfChanged(getNodeFromInstance(targetInst))) return targetInst; 1575 } 1576 function getTargetInstForChangeEvent(domEventName, targetInst) { 1577 if ("change" === domEventName) return targetInst; 1578 } 1579 var isInputEventSupported = !1; 1580 if (canUseDOM) { 1581 var JSCompiler_inline_result$jscomp$286; 1582 if (canUseDOM) { 1583 var isSupported$jscomp$inline_427 = "oninput" in document; 1584 if (!isSupported$jscomp$inline_427) { 1585 var element$jscomp$inline_428 = document.createElement("div"); 1586 element$jscomp$inline_428.setAttribute("oninput", "return;"); 1587 isSupported$jscomp$inline_427 = "function" === typeof element$jscomp$inline_428.oninput; 1588 } 1589 JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_427; 1590 } else JSCompiler_inline_result$jscomp$286 = !1; 1591 isInputEventSupported = JSCompiler_inline_result$jscomp$286 && (!document.documentMode || 9 < document.documentMode); 1592 } 1593 function stopWatchingForValueChange() { 1594 activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), activeElementInst$1 = activeElement$1 = null); 1595 } 1596 function handlePropertyChange(nativeEvent) { 1597 if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1)) { 1598 var dispatchQueue = []; 1599 createAndAccumulateChangeEvent(dispatchQueue, activeElementInst$1, nativeEvent, getEventTarget(nativeEvent)); 1600 batchedUpdates$1(runEventInBatch, dispatchQueue); 1601 } 1602 } 1603 function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { 1604 "focusin" === domEventName ? (stopWatchingForValueChange(), activeElement$1 = target, activeElementInst$1 = targetInst, activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); 1605 } 1606 function getTargetInstForInputEventPolyfill(domEventName) { 1607 if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName) return getInstIfValueChanged(activeElementInst$1); 1608 } 1609 function getTargetInstForClickEvent(domEventName, targetInst) { 1610 if ("click" === domEventName) return getInstIfValueChanged(targetInst); 1611 } 1612 function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { 1613 if ("input" === domEventName || "change" === domEventName) return getInstIfValueChanged(targetInst); 1614 } 1615 function is(x, y) { 1616 return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; 1617 } 1618 var objectIs = "function" === typeof Object.is ? Object.is : is; 1619 function shallowEqual(objA, objB) { 1620 if (objectIs(objA, objB)) return !0; 1621 if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) return !1; 1622 var keysA = Object.keys(objA), keysB = Object.keys(objB); 1623 if (keysA.length !== keysB.length) return !1; 1624 for (keysB = 0; keysB < keysA.length; keysB++) { 1625 var currentKey = keysA[keysB]; 1626 if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return !1; 1627 } 1628 return !0; 1629 } 1630 function getLeafNode(node) { 1631 for (; node && node.firstChild;) node = node.firstChild; 1632 return node; 1633 } 1634 function getNodeForCharacterOffset(root, offset) { 1635 var node = getLeafNode(root); 1636 root = 0; 1637 for (var nodeEnd; node;) { 1638 if (3 === node.nodeType) { 1639 nodeEnd = root + node.textContent.length; 1640 if (root <= offset && nodeEnd >= offset) return { 1641 node, 1642 offset: offset - root 1643 }; 1644 root = nodeEnd; 1645 } 1646 a: { 1647 for (; node;) { 1648 if (node.nextSibling) { 1649 node = node.nextSibling; 1650 break a; 1651 } 1652 node = node.parentNode; 1653 } 1654 node = void 0; 1655 } 1656 node = getLeafNode(node); 1657 } 1658 }
vendor: 95,955 bytes, lines 1659-3637
1659 function containsNode(outerNode, innerNode) { 1660 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; 1661 } 1662 function getActiveElementDeep(containerInfo) { 1663 containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window; 1664 for (var element = getActiveElement(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement;) { 1665 try { 1666 var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href; 1667 } catch (err) { 1668 JSCompiler_inline_result = !1; 1669 } 1670 if (JSCompiler_inline_result) containerInfo = element.contentWindow; 1671 else break; 1672 element = getActiveElement(containerInfo.document); 1673 } 1674 return element; 1675 } 1676 function hasSelectionCapabilities(elem) { 1677 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 1678 return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable); 1679 } 1680 var skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = !1; 1681 function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { 1682 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument; 1683 mouseDown || null == activeElement || activeElement !== getActiveElement(doc) || (doc = activeElement, "selectionStart" in doc && hasSelectionCapabilities(doc) ? doc = { 1684 start: doc.selectionStart, 1685 end: doc.selectionEnd 1686 } : (doc = (doc.ownerDocument && doc.ownerDocument.defaultView || window).getSelection(), doc = { 1687 anchorNode: doc.anchorNode, 1688 anchorOffset: doc.anchorOffset, 1689 focusNode: doc.focusNode, 1690 focusOffset: doc.focusOffset 1691 }), lastSelection && shallowEqual(lastSelection, doc) || (lastSelection = doc, doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect"), 0 < doc.length && (nativeEvent = new SyntheticEvent("onSelect", "select", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 1692 event: nativeEvent, 1693 listeners: doc 1694 }), nativeEvent.target = activeElement))); 1695 } 1696 function makePrefixMap(styleProp, eventName) { 1697 var prefixes = {}; 1698 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); 1699 prefixes["Webkit" + styleProp] = "webkit" + eventName; 1700 prefixes["Moz" + styleProp] = "moz" + eventName; 1701 return prefixes; 1702 } 1703 var vendorPrefixes = { 1704 animationend: makePrefixMap("Animation", "AnimationEnd"), 1705 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 1706 animationstart: makePrefixMap("Animation", "AnimationStart"), 1707 transitionrun: makePrefixMap("Transition", "TransitionRun"), 1708 transitionstart: makePrefixMap("Transition", "TransitionStart"), 1709 transitioncancel: makePrefixMap("Transition", "TransitionCancel"), 1710 transitionend: makePrefixMap("Transition", "TransitionEnd") 1711 }, prefixedEventNames = {}, style = {}; 1712 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); 1713 function getVendorPrefixedEventName(eventName) { 1714 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 1715 if (!vendorPrefixes[eventName]) return eventName; 1716 var prefixMap = vendorPrefixes[eventName], styleProp; 1717 for (styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp]; 1718 return eventName; 1719 } 1720 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(" "); 1721 simpleEventPluginEvents.push("scrollEnd"); 1722 function registerSimpleEvent(domEventName, reactName) { 1723 topLevelEventsToReactNames.set(domEventName, reactName); 1724 registerTwoPhaseEvent(reactName, [domEventName]); 1725 } 1726 var reportGlobalError = "function" === typeof reportError ? reportError : function(error) { 1727 if ("object" === typeof window && "function" === typeof window.ErrorEvent) { 1728 var event = new window.ErrorEvent("error", { 1729 bubbles: !0, 1730 cancelable: !0, 1731 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), 1732 error 1733 }); 1734 if (!window.dispatchEvent(event)) return; 1735 } else if ("object" === typeof process && "function" === typeof process.emit) { 1736 process.emit("uncaughtException", error); 1737 return; 1738 } 1739 console.error(error); 1740 }, concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0; 1741 function finishQueueingConcurrentUpdates() { 1742 for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex;) { 1743 var fiber = concurrentQueues[i]; 1744 concurrentQueues[i++] = null; 1745 var queue = concurrentQueues[i]; 1746 concurrentQueues[i++] = null; 1747 var update = concurrentQueues[i]; 1748 concurrentQueues[i++] = null; 1749 var lane = concurrentQueues[i]; 1750 concurrentQueues[i++] = null; 1751 if (null !== queue && null !== update) { 1752 var pending = queue.pending; 1753 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 1754 queue.pending = update; 1755 } 1756 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); 1757 } 1758 } 1759 function enqueueUpdate$1(fiber, queue, update, lane) { 1760 concurrentQueues[concurrentQueuesIndex++] = fiber; 1761 concurrentQueues[concurrentQueuesIndex++] = queue; 1762 concurrentQueues[concurrentQueuesIndex++] = update; 1763 concurrentQueues[concurrentQueuesIndex++] = lane; 1764 concurrentlyUpdatedLanes |= lane; 1765 fiber.lanes |= lane; 1766 fiber = fiber.alternate; 1767 null !== fiber && (fiber.lanes |= lane); 1768 } 1769 function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { 1770 enqueueUpdate$1(fiber, queue, update, lane); 1771 return getRootForUpdatedFiber(fiber); 1772 } 1773 function enqueueConcurrentRenderForLane(fiber, lane) { 1774 enqueueUpdate$1(fiber, null, null, lane); 1775 return getRootForUpdatedFiber(fiber); 1776 } 1777 function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { 1778 sourceFiber.lanes |= lane; 1779 var alternate = sourceFiber.alternate; 1780 null !== alternate && (alternate.lanes |= lane); 1781 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 & 1 || (isHidden = !0)), sourceFiber = parent, parent = parent.return; 1782 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; 1783 } 1784 function getRootForUpdatedFiber(sourceFiber) { 1785 if (50 < nestedUpdateCount) throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error(formatProdErrorMessage(185)); 1786 for (var parent = sourceFiber.return; null !== parent;) sourceFiber = parent, parent = sourceFiber.return; 1787 return 3 === sourceFiber.tag ? sourceFiber.stateNode : null; 1788 } 1789 var emptyContextObject = {}; 1790 function FiberNode(tag, pendingProps, key, mode) { 1791 this.tag = tag; 1792 this.key = key; 1793 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; 1794 this.index = 0; 1795 this.refCleanup = this.ref = null; 1796 this.pendingProps = pendingProps; 1797 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; 1798 this.mode = mode; 1799 this.subtreeFlags = this.flags = 0; 1800 this.deletions = null; 1801 this.childLanes = this.lanes = 0; 1802 this.alternate = null; 1803 } 1804 function createFiberImplClass(tag, pendingProps, key, mode) { 1805 return new FiberNode(tag, pendingProps, key, mode); 1806 } 1807 function shouldConstruct(Component) { 1808 Component = Component.prototype; 1809 return !(!Component || !Component.isReactComponent); 1810 } 1811 function createWorkInProgress(current, pendingProps) { 1812 var workInProgress = current.alternate; 1813 null === workInProgress ? (workInProgress = createFiberImplClass(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null); 1814 workInProgress.flags = current.flags & 65011712; 1815 workInProgress.childLanes = current.childLanes; 1816 workInProgress.lanes = current.lanes; 1817 workInProgress.child = current.child; 1818 workInProgress.memoizedProps = current.memoizedProps; 1819 workInProgress.memoizedState = current.memoizedState; 1820 workInProgress.updateQueue = current.updateQueue; 1821 pendingProps = current.dependencies; 1822 workInProgress.dependencies = null === pendingProps ? null : { 1823 lanes: pendingProps.lanes, 1824 firstContext: pendingProps.firstContext 1825 }; 1826 workInProgress.sibling = current.sibling; 1827 workInProgress.index = current.index; 1828 workInProgress.ref = current.ref; 1829 workInProgress.refCleanup = current.refCleanup; 1830 return workInProgress; 1831 } 1832 function resetWorkInProgress(workInProgress, renderLanes) { 1833 workInProgress.flags &= 65011714; 1834 var current = workInProgress.alternate; 1835 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.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 : { 1836 lanes: renderLanes.lanes, 1837 firstContext: renderLanes.firstContext 1838 }); 1839 return workInProgress; 1840 } 1841 function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { 1842 var fiberTag = 0; 1843 owner = type; 1844 if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1); 1845 else if ("string" === typeof type) fiberTag = isHostHoistableType(type, pendingProps, contextStackCursor.current) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5; 1846 else a: switch (type) { 1847 case REACT_ACTIVITY_TYPE: return type = createFiberImplClass(31, pendingProps, key, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type; 1848 case REACT_FRAGMENT_TYPE: return createFiberFromFragment(pendingProps.children, mode, lanes, key); 1849 case REACT_STRICT_MODE_TYPE: 1850 fiberTag = 8; 1851 mode |= 24; 1852 break; 1853 case REACT_PROFILER_TYPE: return type = createFiberImplClass(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type; 1854 case REACT_SUSPENSE_TYPE: return type = createFiberImplClass(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type; 1855 case REACT_SUSPENSE_LIST_TYPE: return type = createFiberImplClass(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type; 1856 default: 1857 if ("object" === typeof type && null !== type) switch (type.$$typeof) { 1858 case REACT_CONTEXT_TYPE: 1859 fiberTag = 10; 1860 break a; 1861 case REACT_CONSUMER_TYPE: 1862 fiberTag = 9; 1863 break a; 1864 case REACT_FORWARD_REF_TYPE: 1865 fiberTag = 11; 1866 break a; 1867 case REACT_MEMO_TYPE: 1868 fiberTag = 14; 1869 break a; 1870 case REACT_LAZY_TYPE: 1871 fiberTag = 16; 1872 owner = null; 1873 break a; 1874 } 1875 fiberTag = 29; 1876 pendingProps = Error(formatProdErrorMessage(130, null === type ? "null" : typeof type, "")); 1877 owner = null; 1878 } 1879 key = createFiberImplClass(fiberTag, pendingProps, key, mode); 1880 key.elementType = type; 1881 key.type = owner; 1882 key.lanes = lanes; 1883 return key; 1884 } 1885 function createFiberFromFragment(elements, mode, lanes, key) { 1886 elements = createFiberImplClass(7, elements, key, mode); 1887 elements.lanes = lanes; 1888 return elements; 1889 } 1890 function createFiberFromText(content, mode, lanes) { 1891 content = createFiberImplClass(6, content, null, mode); 1892 content.lanes = lanes; 1893 return content; 1894 } 1895 function createFiberFromDehydratedFragment(dehydratedNode) { 1896 var fiber = createFiberImplClass(18, null, null, 0); 1897 fiber.stateNode = dehydratedNode; 1898 return fiber; 1899 } 1900 function createFiberFromPortal(portal, mode, lanes) { 1901 mode = createFiberImplClass(4, null !== portal.children ? portal.children : [], portal.key, mode); 1902 mode.lanes = lanes; 1903 mode.stateNode = { 1904 containerInfo: portal.containerInfo, 1905 pendingChildren: null, 1906 implementation: portal.implementation 1907 }; 1908 return mode; 1909 } 1910 var CapturedStacks = /* @__PURE__ */ new WeakMap(); 1911 function createCapturedValueAtFiber(value, source) { 1912 if ("object" === typeof value && null !== value) { 1913 var existing = CapturedStacks.get(value); 1914 if (void 0 !== existing) return existing; 1915 source = { 1916 value, 1917 source, 1918 stack: getStackByFiberInDevAndProd(source) 1919 }; 1920 CapturedStacks.set(value, source); 1921 return source; 1922 } 1923 return { 1924 value, 1925 source, 1926 stack: getStackByFiberInDevAndProd(source) 1927 }; 1928 } 1929 var forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = ""; 1930 function pushTreeFork(workInProgress, totalChildren) { 1931 forkStack[forkStackIndex++] = treeForkCount; 1932 forkStack[forkStackIndex++] = treeForkProvider; 1933 treeForkProvider = workInProgress; 1934 treeForkCount = totalChildren; 1935 } 1936 function pushTreeId(workInProgress, totalChildren, index) { 1937 idStack[idStackIndex++] = treeContextId; 1938 idStack[idStackIndex++] = treeContextOverflow; 1939 idStack[idStackIndex++] = treeContextProvider; 1940 treeContextProvider = workInProgress; 1941 var baseIdWithLeadingBit = treeContextId; 1942 workInProgress = treeContextOverflow; 1943 var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; 1944 baseIdWithLeadingBit &= ~(1 << baseLength); 1945 index += 1; 1946 var length = 32 - clz32(totalChildren) + baseLength; 1947 if (30 < length) { 1948 var numberOfOverflowBits = baseLength - baseLength % 5; 1949 length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32); 1950 baseIdWithLeadingBit >>= numberOfOverflowBits; 1951 baseLength -= numberOfOverflowBits; 1952 treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit; 1953 treeContextOverflow = length + workInProgress; 1954 } else treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress; 1955 } 1956 function pushMaterializedTreeId(workInProgress) { 1957 null !== workInProgress.return && (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0)); 1958 } 1959 function popTreeContext(workInProgress) { 1960 for (; workInProgress === treeForkProvider;) treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null; 1961 for (; workInProgress === treeContextProvider;) treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null; 1962 } 1963 function restoreSuspendedTreeContext(workInProgress, suspendedContext) { 1964 idStack[idStackIndex++] = treeContextId; 1965 idStack[idStackIndex++] = treeContextOverflow; 1966 idStack[idStackIndex++] = treeContextProvider; 1967 treeContextId = suspendedContext.id; 1968 treeContextOverflow = suspendedContext.overflow; 1969 treeContextProvider = workInProgress; 1970 } 1971 var hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, hydrationErrors = null, rootOrSingletonContext = !1, HydrationMismatchException = Error(formatProdErrorMessage(519)); 1972 function throwOnHydrationMismatch(fiber) { 1973 queueHydrationError(createCapturedValueAtFiber(Error(formatProdErrorMessage(418, 1 < arguments.length && void 0 !== arguments[1] && arguments[1] ? "text" : "HTML", "")), fiber)); 1974 throw HydrationMismatchException; 1975 } 1976 function prepareToHydrateHostInstance(fiber) { 1977 var instance = fiber.stateNode, type = fiber.type, props = fiber.memoizedProps; 1978 instance[internalInstanceKey] = fiber; 1979 instance[internalPropsKey] = props; 1980 switch (type) { 1981 case "dialog": 1982 listenToNonDelegatedEvent("cancel", instance); 1983 listenToNonDelegatedEvent("close", instance); 1984 break; 1985 case "iframe": 1986 case "object": 1987 case "embed": 1988 listenToNonDelegatedEvent("load", instance); 1989 break; 1990 case "video": 1991 case "audio": 1992 for (type = 0; type < mediaEventTypes.length; type++) listenToNonDelegatedEvent(mediaEventTypes[type], instance); 1993 break; 1994 case "source": 1995 listenToNonDelegatedEvent("error", instance); 1996 break; 1997 case "img": 1998 case "image": 1999 case "link": 2000 listenToNonDelegatedEvent("error", instance); 2001 listenToNonDelegatedEvent("load", instance); 2002 break; 2003 case "details": 2004 listenToNonDelegatedEvent("toggle", instance); 2005 break; 2006 case "input": 2007 listenToNonDelegatedEvent("invalid", instance); 2008 initInput(instance, props.value, props.defaultValue, props.checked, props.defaultChecked, props.type, props.name, !0); 2009 break; 2010 case "select": 2011 listenToNonDelegatedEvent("invalid", instance); 2012 break; 2013 case "textarea": listenToNonDelegatedEvent("invalid", instance), initTextarea(instance, props.value, props.defaultValue, props.children); 2014 } 2015 type = props.children; 2016 "string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type || instance.textContent === "" + type || !0 === props.suppressHydrationWarning || checkForUnmatchedText(instance.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", instance), listenToNonDelegatedEvent("toggle", instance)), null != props.onScroll && listenToNonDelegatedEvent("scroll", instance), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", instance), null != props.onClick && (instance.onclick = noop$1), instance = !0) : instance = !1; 2017 instance || throwOnHydrationMismatch(fiber, !0); 2018 } 2019 function popToNextHostParent(fiber) { 2020 for (hydrationParentFiber = fiber.return; hydrationParentFiber;) switch (hydrationParentFiber.tag) { 2021 case 5: 2022 case 31: 2023 case 13: 2024 rootOrSingletonContext = !1; 2025 return; 2026 case 27: 2027 case 3: 2028 rootOrSingletonContext = !0; 2029 return; 2030 default: hydrationParentFiber = hydrationParentFiber.return; 2031 } 2032 } 2033 function popHydrationState(fiber) { 2034 if (fiber !== hydrationParentFiber) return !1; 2035 if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1; 2036 var tag = fiber.tag, JSCompiler_temp; 2037 if (JSCompiler_temp = 3 !== tag && 27 !== tag) { 2038 if (JSCompiler_temp = 5 === tag) JSCompiler_temp = fiber.type, JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps); 2039 JSCompiler_temp = !JSCompiler_temp; 2040 } 2041 JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber); 2042 popToNextHostParent(fiber); 2043 if (13 === tag) { 2044 fiber = fiber.memoizedState; 2045 fiber = null !== fiber ? fiber.dehydrated : null; 2046 if (!fiber) throw Error(formatProdErrorMessage(317)); 2047 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 2048 } else if (31 === tag) { 2049 fiber = fiber.memoizedState; 2050 fiber = null !== fiber ? fiber.dehydrated : null; 2051 if (!fiber) throw Error(formatProdErrorMessage(317)); 2052 nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber); 2053 } else 27 === tag ? (tag = nextHydratableInstance, isSingletonScope(fiber.type) ? (fiber = previousHydratableOnEnteringScopedSingleton, previousHydratableOnEnteringScopedSingleton = null, nextHydratableInstance = fiber) : nextHydratableInstance = tag) : nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null; 2054 return !0; 2055 } 2056 function resetHydrationState() { 2057 nextHydratableInstance = hydrationParentFiber = null; 2058 isHydrating = !1; 2059 } 2060 function upgradeHydrationErrorsToRecoverable() { 2061 var queuedErrors = hydrationErrors; 2062 null !== queuedErrors && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, queuedErrors), hydrationErrors = null); 2063 return queuedErrors; 2064 } 2065 function queueHydrationError(error) { 2066 null === hydrationErrors ? hydrationErrors = [error] : hydrationErrors.push(error); 2067 } 2068 var valueCursor = createCursor(null), currentlyRenderingFiber$1 = null, lastContextDependency = null; 2069 function pushProvider(providerFiber, context, nextValue) { 2070 push(valueCursor, context._currentValue); 2071 context._currentValue = nextValue; 2072 } 2073 function popProvider(context) { 2074 context._currentValue = valueCursor.current; 2075 pop(valueCursor); 2076 } 2077 function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) { 2078 for (; null !== parent;) { 2079 var alternate = parent.alternate; 2080 (parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, null !== alternate && (alternate.childLanes |= renderLanes)) : null !== alternate && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes); 2081 if (parent === propagationRoot) break; 2082 parent = parent.return; 2083 } 2084 } 2085 function propagateContextChanges(workInProgress, contexts, renderLanes, forcePropagateEntireTree) { 2086 var fiber = workInProgress.child; 2087 null !== fiber && (fiber.return = workInProgress); 2088 for (; null !== fiber;) { 2089 var list = fiber.dependencies; 2090 if (null !== list) { 2091 var nextFiber = fiber.child; 2092 list = list.firstContext; 2093 a: for (; null !== list;) { 2094 var dependency = list; 2095 list = fiber; 2096 for (var i = 0; i < contexts.length; i++) if (dependency.context === contexts[i]) { 2097 list.lanes |= renderLanes; 2098 dependency = list.alternate; 2099 null !== dependency && (dependency.lanes |= renderLanes); 2100 scheduleContextWorkOnParentPath(list.return, renderLanes, workInProgress); 2101 forcePropagateEntireTree || (nextFiber = null); 2102 break a; 2103 } 2104 list = dependency.next; 2105 } 2106 } else if (18 === fiber.tag) { 2107 nextFiber = fiber.return; 2108 if (null === nextFiber) throw Error(formatProdErrorMessage(341)); 2109 nextFiber.lanes |= renderLanes; 2110 list = nextFiber.alternate; 2111 null !== list && (list.lanes |= renderLanes); 2112 scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress); 2113 nextFiber = null; 2114 } else nextFiber = fiber.child; 2115 if (null !== nextFiber) nextFiber.return = fiber; 2116 else for (nextFiber = fiber; null !== nextFiber;) { 2117 if (nextFiber === workInProgress) { 2118 nextFiber = null; 2119 break; 2120 } 2121 fiber = nextFiber.sibling; 2122 if (null !== fiber) { 2123 fiber.return = nextFiber.return; 2124 nextFiber = fiber; 2125 break; 2126 } 2127 nextFiber = nextFiber.return; 2128 } 2129 fiber = nextFiber; 2130 } 2131 } 2132 function propagateParentContextChanges(current, workInProgress, renderLanes, forcePropagateEntireTree) { 2133 current = null; 2134 for (var parent = workInProgress, isInsidePropagationBailout = !1; null !== parent;) { 2135 if (!isInsidePropagationBailout) { 2136 if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0; 2137 else if (0 !== (parent.flags & 262144)) break; 2138 } 2139 if (10 === parent.tag) { 2140 var currentParent = parent.alternate; 2141 if (null === currentParent) throw Error(formatProdErrorMessage(387)); 2142 currentParent = currentParent.memoizedProps; 2143 if (null !== currentParent) { 2144 var context = parent.type; 2145 objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : current = [context]); 2146 } 2147 } else if (parent === hostTransitionProviderCursor.current) { 2148 currentParent = parent.alternate; 2149 if (null === currentParent) throw Error(formatProdErrorMessage(387)); 2150 currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [HostTransitionContext]); 2151 } 2152 parent = parent.return; 2153 } 2154 null !== current && propagateContextChanges(workInProgress, current, renderLanes, forcePropagateEntireTree); 2155 workInProgress.flags |= 262144; 2156 } 2157 function checkIfContextChanged(currentDependencies) { 2158 for (currentDependencies = currentDependencies.firstContext; null !== currentDependencies;) { 2159 if (!objectIs(currentDependencies.context._currentValue, currentDependencies.memoizedValue)) return !0; 2160 currentDependencies = currentDependencies.next; 2161 } 2162 return !1; 2163 } 2164 function prepareToReadContext(workInProgress) { 2165 currentlyRenderingFiber$1 = workInProgress; 2166 lastContextDependency = null; 2167 workInProgress = workInProgress.dependencies; 2168 null !== workInProgress && (workInProgress.firstContext = null); 2169 } 2170 function readContext(context) { 2171 return readContextForConsumer(currentlyRenderingFiber$1, context); 2172 } 2173 function readContextDuringReconciliation(consumer, context) { 2174 null === currentlyRenderingFiber$1 && prepareToReadContext(consumer); 2175 return readContextForConsumer(consumer, context); 2176 } 2177 function readContextForConsumer(consumer, context) { 2178 var value = context._currentValue; 2179 context = { 2180 context, 2181 memoizedValue: value, 2182 next: null 2183 }; 2184 if (null === lastContextDependency) { 2185 if (null === consumer) throw Error(formatProdErrorMessage(308)); 2186 lastContextDependency = context; 2187 consumer.dependencies = { 2188 lanes: 0, 2189 firstContext: context 2190 }; 2191 consumer.flags |= 524288; 2192 } else lastContextDependency = lastContextDependency.next = context; 2193 return value; 2194 } 2195 var AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() { 2196 var listeners = [], signal = this.signal = { 2197 aborted: !1, 2198 addEventListener: function(type, listener) { 2199 listeners.push(listener); 2200 } 2201 }; 2202 this.abort = function() { 2203 signal.aborted = !0; 2204 listeners.forEach(function(listener) { 2205 return listener(); 2206 }); 2207 }; 2208 }, scheduleCallback$2 = Scheduler.unstable_scheduleCallback, NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { 2209 $$typeof: REACT_CONTEXT_TYPE, 2210 Consumer: null, 2211 Provider: null, 2212 _currentValue: null, 2213 _currentValue2: null, 2214 _threadCount: 0 2215 }; 2216 function createCache() { 2217 return { 2218 controller: new AbortControllerLocal(), 2219 data: /* @__PURE__ */ new Map(), 2220 refCount: 0 2221 }; 2222 } 2223 function releaseCache(cache) { 2224 cache.refCount--; 2225 0 === cache.refCount && scheduleCallback$2(NormalPriority, function() { 2226 cache.controller.abort(); 2227 }); 2228 } 2229 var currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null; 2230 function entangleAsyncAction(transition, thenable) { 2231 if (null === currentEntangledListeners) { 2232 var entangledListeners = currentEntangledListeners = []; 2233 currentEntangledPendingCount = 0; 2234 currentEntangledLane = requestTransitionLane(); 2235 currentEntangledActionThenable = { 2236 status: "pending", 2237 value: void 0, 2238 then: function(resolve) { 2239 entangledListeners.push(resolve); 2240 } 2241 }; 2242 } 2243 currentEntangledPendingCount++; 2244 thenable.then(pingEngtangledActionScope, pingEngtangledActionScope); 2245 return thenable; 2246 } 2247 function pingEngtangledActionScope() { 2248 if (0 === --currentEntangledPendingCount && null !== currentEntangledListeners) { 2249 null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled"); 2250 var listeners = currentEntangledListeners; 2251 currentEntangledListeners = null; 2252 currentEntangledLane = 0; 2253 currentEntangledActionThenable = null; 2254 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(); 2255 } 2256 } 2257 function chainThenableValue(thenable, result) { 2258 var listeners = [], thenableWithOverride = { 2259 status: "pending", 2260 value: null, 2261 reason: null, 2262 then: function(resolve) { 2263 listeners.push(resolve); 2264 } 2265 }; 2266 thenable.then(function() { 2267 thenableWithOverride.status = "fulfilled"; 2268 thenableWithOverride.value = result; 2269 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result); 2270 }, function(error) { 2271 thenableWithOverride.status = "rejected"; 2272 thenableWithOverride.reason = error; 2273 for (error = 0; error < listeners.length; error++) (0, listeners[error])(void 0); 2274 }); 2275 return thenableWithOverride; 2276 } 2277 var prevOnStartTransitionFinish = ReactSharedInternals.S; 2278 ReactSharedInternals.S = function(transition, returnValue) { 2279 globalMostRecentTransitionTime = now(); 2280 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue); 2281 null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); 2282 }; 2283 var resumedCache = createCursor(null); 2284 function peekCacheFromPool() { 2285 var cacheResumedFromPreviousRender = resumedCache.current; 2286 return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache; 2287 } 2288 function pushTransition(offscreenWorkInProgress, prevCachePool) { 2289 null === prevCachePool ? push(resumedCache, resumedCache.current) : push(resumedCache, prevCachePool.pool); 2290 } 2291 function getSuspendedCache() { 2292 var cacheFromPool = peekCacheFromPool(); 2293 return null === cacheFromPool ? null : { 2294 parent: CacheContext._currentValue, 2295 pool: cacheFromPool 2296 }; 2297 } 2298 var SuspenseException = Error(formatProdErrorMessage(460)), SuspenseyCommitException = Error(formatProdErrorMessage(474)), SuspenseActionException = Error(formatProdErrorMessage(542)), noopSuspenseyCommitThenable = { then: function() {} }; 2299 function isThenableResolved(thenable) { 2300 thenable = thenable.status; 2301 return "fulfilled" === thenable || "rejected" === thenable; 2302 } 2303 function trackUsedThenable(thenableState, thenable, index) { 2304 index = thenableState[index]; 2305 void 0 === index ? thenableState.push(thenable) : index !== thenable && (thenable.then(noop$1, noop$1), thenable = index); 2306 switch (thenable.status) { 2307 case "fulfilled": return thenable.value; 2308 case "rejected": throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState; 2309 default: 2310 if ("string" === typeof thenable.status) thenable.then(noop$1, noop$1); 2311 else { 2312 thenableState = workInProgressRoot; 2313 if (null !== thenableState && 100 < thenableState.shellSuspendCounter) throw Error(formatProdErrorMessage(482)); 2314 thenableState = thenable; 2315 thenableState.status = "pending"; 2316 thenableState.then(function(fulfilledValue) { 2317 if ("pending" === thenable.status) { 2318 var fulfilledThenable = thenable; 2319 fulfilledThenable.status = "fulfilled"; 2320 fulfilledThenable.value = fulfilledValue; 2321 } 2322 }, function(error) { 2323 if ("pending" === thenable.status) { 2324 var rejectedThenable = thenable; 2325 rejectedThenable.status = "rejected"; 2326 rejectedThenable.reason = error; 2327 } 2328 }); 2329 } 2330 switch (thenable.status) { 2331 case "fulfilled": return thenable.value; 2332 case "rejected": throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState; 2333 } 2334 suspendedThenable = thenable; 2335 throw SuspenseException; 2336 } 2337 } 2338 function resolveLazy(lazyType) { 2339 try { 2340 var init = lazyType._init; 2341 return init(lazyType._payload); 2342 } catch (x) { 2343 if (null !== x && "object" === typeof x && "function" === typeof x.then) throw suspendedThenable = x, SuspenseException; 2344 throw x; 2345 } 2346 } 2347 var suspendedThenable = null; 2348 function getSuspendedThenable() { 2349 if (null === suspendedThenable) throw Error(formatProdErrorMessage(459)); 2350 var thenable = suspendedThenable; 2351 suspendedThenable = null; 2352 return thenable; 2353 } 2354 function checkIfUseWrappedInAsyncCatch(rejectedReason) { 2355 if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException) throw Error(formatProdErrorMessage(483)); 2356 } 2357 var thenableState$1 = null, thenableIndexCounter$1 = 0; 2358 function unwrapThenable(thenable) { 2359 var index = thenableIndexCounter$1; 2360 thenableIndexCounter$1 += 1; 2361 null === thenableState$1 && (thenableState$1 = []); 2362 return trackUsedThenable(thenableState$1, thenable, index); 2363 } 2364 function coerceRef(workInProgress, element) { 2365 element = element.props.ref; 2366 workInProgress.ref = void 0 !== element ? element : null; 2367 } 2368 function throwOnInvalidObjectTypeImpl(returnFiber, newChild) { 2369 if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) throw Error(formatProdErrorMessage(525)); 2370 returnFiber = Object.prototype.toString.call(newChild); 2371 throw Error(formatProdErrorMessage(31, "[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber)); 2372 } 2373 function createChildReconciler(shouldTrackSideEffects) { 2374 function deleteChild(returnFiber, childToDelete) { 2375 if (shouldTrackSideEffects) { 2376 var deletions = returnFiber.deletions; 2377 null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); 2378 } 2379 } 2380 function deleteRemainingChildren(returnFiber, currentFirstChild) { 2381 if (!shouldTrackSideEffects) return null; 2382 for (; null !== currentFirstChild;) deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 2383 return null; 2384 } 2385 function mapRemainingChildren(currentFirstChild) { 2386 for (var existingChildren = /* @__PURE__ */ new Map(); null !== currentFirstChild;) null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 2387 return existingChildren; 2388 } 2389 function useFiber(fiber, pendingProps) { 2390 fiber = createWorkInProgress(fiber, pendingProps); 2391 fiber.index = 0; 2392 fiber.sibling = null; 2393 return fiber; 2394 } 2395 function placeChild(newFiber, lastPlacedIndex, newIndex) { 2396 newFiber.index = newIndex; 2397 if (!shouldTrackSideEffects) return newFiber.flags |= 1048576, lastPlacedIndex; 2398 newIndex = newFiber.alternate; 2399 if (null !== newIndex) return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex; 2400 newFiber.flags |= 67108866; 2401 return lastPlacedIndex; 2402 } 2403 function placeSingleChild(newFiber) { 2404 shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 67108866); 2405 return newFiber; 2406 } 2407 function updateTextNode(returnFiber, current, textContent, lanes) { 2408 if (null === current || 6 !== current.tag) return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current; 2409 current = useFiber(current, textContent); 2410 current.return = returnFiber; 2411 return current; 2412 } 2413 function updateElement(returnFiber, current, element, lanes) { 2414 var elementType = element.type; 2415 if (elementType === REACT_FRAGMENT_TYPE) return updateFragment(returnFiber, current, element.props.children, lanes, element.key); 2416 if (null !== current && (current.elementType === elementType || "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; 2417 current = createFiberFromTypeAndProps(element.type, element.key, element.props, null, returnFiber.mode, lanes); 2418 coerceRef(current, element); 2419 current.return = returnFiber; 2420 return current; 2421 } 2422 function updatePortal(returnFiber, current, portal, lanes) { 2423 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; 2424 current = useFiber(current, portal.children || []); 2425 current.return = returnFiber; 2426 return current; 2427 } 2428 function updateFragment(returnFiber, current, fragment, lanes, key) { 2429 if (null === current || 7 !== current.tag) return current = createFiberFromFragment(fragment, returnFiber.mode, lanes, key), current.return = returnFiber, current; 2430 current = useFiber(current, fragment); 2431 current.return = returnFiber; 2432 return current; 2433 } 2434 function createChild(returnFiber, newChild, lanes) { 2435 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return newChild = createFiberFromText("" + newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; 2436 if ("object" === typeof newChild && null !== newChild) { 2437 switch (newChild.$$typeof) { 2438 case REACT_ELEMENT_TYPE: return lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes; 2439 case REACT_PORTAL_TYPE: return newChild = createFiberFromPortal(newChild, returnFiber.mode, lanes), newChild.return = returnFiber, newChild; 2440 case REACT_LAZY_TYPE: return newChild = resolveLazy(newChild), createChild(returnFiber, newChild, lanes); 2441 } 2442 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return newChild = createFiberFromFragment(newChild, returnFiber.mode, lanes, null), newChild.return = returnFiber, newChild; 2443 if ("function" === typeof newChild.then) return createChild(returnFiber, unwrapThenable(newChild), lanes); 2444 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return createChild(returnFiber, readContextDuringReconciliation(returnFiber, newChild), lanes); 2445 throwOnInvalidObjectTypeImpl(returnFiber, newChild); 2446 } 2447 return null; 2448 } 2449 function updateSlot(returnFiber, oldFiber, newChild, lanes) { 2450 var key = null !== oldFiber ? oldFiber.key : null; 2451 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); 2452 if ("object" === typeof newChild && null !== newChild) { 2453 switch (newChild.$$typeof) { 2454 case REACT_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; 2455 case REACT_PORTAL_TYPE: return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; 2456 case REACT_LAZY_TYPE: return newChild = resolveLazy(newChild), updateSlot(returnFiber, oldFiber, newChild, lanes); 2457 } 2458 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null); 2459 if ("function" === typeof newChild.then) return updateSlot(returnFiber, oldFiber, unwrapThenable(newChild), lanes); 2460 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateSlot(returnFiber, oldFiber, readContextDuringReconciliation(returnFiber, newChild), lanes); 2461 throwOnInvalidObjectTypeImpl(returnFiber, newChild); 2462 } 2463 return null; 2464 } 2465 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { 2466 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); 2467 if ("object" === typeof newChild && null !== newChild) { 2468 switch (newChild.$$typeof) { 2469 case REACT_ELEMENT_TYPE: return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updateElement(returnFiber, existingChildren, newChild, lanes); 2470 case REACT_PORTAL_TYPE: return existingChildren = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); 2471 case REACT_LAZY_TYPE: return newChild = resolveLazy(newChild), updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes); 2472 } 2473 if (isArrayImpl(newChild) || getIteratorFn(newChild)) return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null); 2474 if ("function" === typeof newChild.then) return updateFromMap(existingChildren, returnFiber, newIdx, unwrapThenable(newChild), lanes); 2475 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return updateFromMap(existingChildren, returnFiber, newIdx, readContextDuringReconciliation(returnFiber, newChild), lanes); 2476 throwOnInvalidObjectTypeImpl(returnFiber, newChild); 2477 } 2478 return null; 2479 } 2480 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { 2481 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { 2482 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 2483 var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); 2484 if (null === newFiber) { 2485 null === oldFiber && (oldFiber = nextOldFiber); 2486 break; 2487 } 2488 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 2489 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 2490 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 2491 previousNewFiber = newFiber; 2492 oldFiber = nextOldFiber; 2493 } 2494 if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 2495 if (null === oldFiber) { 2496 for (; newIdx < newChildren.length; newIdx++) oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 2497 isHydrating && pushTreeFork(returnFiber, newIdx); 2498 return resultingFirstChild; 2499 } 2500 for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++) nextOldFiber = updateFromMap(oldFiber, returnFiber, newIdx, newChildren[newIdx], lanes), null !== nextOldFiber && (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); 2501 shouldTrackSideEffects && oldFiber.forEach(function(child) { 2502 return deleteChild(returnFiber, child); 2503 }); 2504 isHydrating && pushTreeFork(returnFiber, newIdx); 2505 return resultingFirstChild; 2506 } 2507 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) { 2508 if (null == newChildren) throw Error(formatProdErrorMessage(151)); 2509 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) { 2510 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 2511 var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); 2512 if (null === newFiber) { 2513 null === oldFiber && (oldFiber = nextOldFiber); 2514 break; 2515 } 2516 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 2517 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 2518 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 2519 previousNewFiber = newFiber; 2520 oldFiber = nextOldFiber; 2521 } 2522 if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 2523 if (null === oldFiber) { 2524 for (; !step.done; newIdx++, step = newChildren.next()) step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step); 2525 isHydrating && pushTreeFork(returnFiber, newIdx); 2526 return resultingFirstChild; 2527 } 2528 for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next()) step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step); 2529 shouldTrackSideEffects && oldFiber.forEach(function(child) { 2530 return deleteChild(returnFiber, child); 2531 }); 2532 isHydrating && pushTreeFork(returnFiber, newIdx); 2533 return resultingFirstChild; 2534 } 2535 function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) { 2536 "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); 2537 if ("object" === typeof newChild && null !== newChild) { 2538 switch (newChild.$$typeof) { 2539 case REACT_ELEMENT_TYPE: 2540 a: { 2541 for (var key = newChild.key; null !== currentFirstChild;) { 2542 if (currentFirstChild.key === key) { 2543 key = newChild.type; 2544 if (key === REACT_FRAGMENT_TYPE) { 2545 if (7 === currentFirstChild.tag) { 2546 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 2547 lanes = useFiber(currentFirstChild, newChild.props.children); 2548 lanes.return = returnFiber; 2549 returnFiber = lanes; 2550 break a; 2551 } 2552 } else if (currentFirstChild.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && resolveLazy(key) === currentFirstChild.type) { 2553 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 2554 lanes = useFiber(currentFirstChild, newChild.props); 2555 coerceRef(lanes, newChild); 2556 lanes.return = returnFiber; 2557 returnFiber = lanes; 2558 break a; 2559 } 2560 deleteRemainingChildren(returnFiber, currentFirstChild); 2561 break; 2562 } else deleteChild(returnFiber, currentFirstChild); 2563 currentFirstChild = currentFirstChild.sibling; 2564 } 2565 newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(newChild.props.children, returnFiber.mode, lanes, newChild.key), lanes.return = returnFiber, returnFiber = lanes) : (lanes = createFiberFromTypeAndProps(newChild.type, newChild.key, newChild.props, null, returnFiber.mode, lanes), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = lanes); 2566 } 2567 return placeSingleChild(returnFiber); 2568 case REACT_PORTAL_TYPE: 2569 a: { 2570 for (key = newChild.key; null !== currentFirstChild;) { 2571 if (currentFirstChild.key === key) if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) { 2572 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 2573 lanes = useFiber(currentFirstChild, newChild.children || []); 2574 lanes.return = returnFiber; 2575 returnFiber = lanes; 2576 break a; 2577 } else { 2578 deleteRemainingChildren(returnFiber, currentFirstChild); 2579 break; 2580 } 2581 else deleteChild(returnFiber, currentFirstChild); 2582 currentFirstChild = currentFirstChild.sibling; 2583 } 2584 lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); 2585 lanes.return = returnFiber; 2586 returnFiber = lanes; 2587 } 2588 return placeSingleChild(returnFiber); 2589 case REACT_LAZY_TYPE: return newChild = resolveLazy(newChild), reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes); 2590 } 2591 if (isArrayImpl(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); 2592 if (getIteratorFn(newChild)) { 2593 key = getIteratorFn(newChild); 2594 if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); 2595 newChild = key.call(newChild); 2596 return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); 2597 } 2598 if ("function" === typeof newChild.then) return reconcileChildFibersImpl(returnFiber, currentFirstChild, unwrapThenable(newChild), lanes); 2599 if (newChild.$$typeof === REACT_CONTEXT_TYPE) return reconcileChildFibersImpl(returnFiber, currentFirstChild, readContextDuringReconciliation(returnFiber, newChild), lanes); 2600 throwOnInvalidObjectTypeImpl(returnFiber, newChild); 2601 } 2602 return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), lanes = useFiber(currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(newChild, returnFiber.mode, lanes), lanes.return = returnFiber, returnFiber = lanes), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); 2603 } 2604 return function(returnFiber, currentFirstChild, newChild, lanes) { 2605 try { 2606 thenableIndexCounter$1 = 0; 2607 var firstChildFiber = reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes); 2608 thenableState$1 = null; 2609 return firstChildFiber; 2610 } catch (x) { 2611 if (x === SuspenseException || x === SuspenseActionException) throw x; 2612 var fiber = createFiberImplClass(29, x, null, returnFiber.mode); 2613 fiber.lanes = lanes; 2614 fiber.return = returnFiber; 2615 return fiber; 2616 } 2617 }; 2618 } 2619 var reconcileChildFibers = createChildReconciler(!0), mountChildFibers = createChildReconciler(!1), hasForceUpdate = !1; 2620 function initializeUpdateQueue(fiber) { 2621 fiber.updateQueue = { 2622 baseState: fiber.memoizedState, 2623 firstBaseUpdate: null, 2624 lastBaseUpdate: null, 2625 shared: { 2626 pending: null, 2627 lanes: 0, 2628 hiddenCallbacks: null 2629 }, 2630 callbacks: null 2631 }; 2632 } 2633 function cloneUpdateQueue(current, workInProgress) { 2634 current = current.updateQueue; 2635 workInProgress.updateQueue === current && (workInProgress.updateQueue = { 2636 baseState: current.baseState, 2637 firstBaseUpdate: current.firstBaseUpdate, 2638 lastBaseUpdate: current.lastBaseUpdate, 2639 shared: current.shared, 2640 callbacks: null 2641 }); 2642 } 2643 function createUpdate(lane) { 2644 return { 2645 lane, 2646 tag: 0, 2647 payload: null, 2648 callback: null, 2649 next: null 2650 }; 2651 } 2652 function enqueueUpdate(fiber, update, lane) { 2653 var updateQueue = fiber.updateQueue; 2654 if (null === updateQueue) return null; 2655 updateQueue = updateQueue.shared; 2656 if (0 !== (executionContext & 2)) { 2657 var pending = updateQueue.pending; 2658 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 2659 updateQueue.pending = update; 2660 update = getRootForUpdatedFiber(fiber); 2661 markUpdateLaneFromFiberToRoot(fiber, null, lane); 2662 return update; 2663 } 2664 enqueueUpdate$1(fiber, updateQueue, update, lane); 2665 return getRootForUpdatedFiber(fiber); 2666 } 2667 function entangleTransitions(root, fiber, lane) { 2668 fiber = fiber.updateQueue; 2669 if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) { 2670 var queueLanes = fiber.lanes; 2671 queueLanes &= root.pendingLanes; 2672 lane |= queueLanes; 2673 fiber.lanes = lane; 2674 markRootEntangled(root, lane); 2675 } 2676 } 2677 function enqueueCapturedUpdate(workInProgress, capturedUpdate) { 2678 var queue = workInProgress.updateQueue, current = workInProgress.alternate; 2679 if (null !== current && (current = current.updateQueue, queue === current)) { 2680 var newFirst = null, newLast = null; 2681 queue = queue.firstBaseUpdate; 2682 if (null !== queue) { 2683 do { 2684 var clone = { 2685 lane: queue.lane, 2686 tag: queue.tag, 2687 payload: queue.payload, 2688 callback: null, 2689 next: null 2690 }; 2691 null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; 2692 queue = queue.next; 2693 } while (null !== queue); 2694 null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; 2695 } else newFirst = newLast = capturedUpdate; 2696 queue = { 2697 baseState: current.baseState, 2698 firstBaseUpdate: newFirst, 2699 lastBaseUpdate: newLast, 2700 shared: current.shared, 2701 callbacks: current.callbacks 2702 }; 2703 workInProgress.updateQueue = queue; 2704 return; 2705 } 2706 workInProgress = queue.lastBaseUpdate; 2707 null === workInProgress ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate; 2708 queue.lastBaseUpdate = capturedUpdate; 2709 } 2710 var didReadFromEntangledAsyncAction = !1; 2711 function suspendIfUpdateReadFromEntangledAsyncAction() { 2712 if (didReadFromEntangledAsyncAction) { 2713 var entangledActionThenable = currentEntangledActionThenable; 2714 if (null !== entangledActionThenable) throw entangledActionThenable; 2715 } 2716 } 2717 function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes) { 2718 didReadFromEntangledAsyncAction = !1; 2719 var queue = workInProgress$jscomp$0.updateQueue; 2720 hasForceUpdate = !1; 2721 var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending; 2722 if (null !== pendingQueue) { 2723 queue.shared.pending = null; 2724 var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next; 2725 lastPendingUpdate.next = null; 2726 null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; 2727 lastBaseUpdate = lastPendingUpdate; 2728 var current = workInProgress$jscomp$0.alternate; 2729 null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate)); 2730 } 2731 if (null !== firstBaseUpdate) { 2732 var newState = queue.baseState; 2733 lastBaseUpdate = 0; 2734 current = firstPendingUpdate = lastPendingUpdate = null; 2735 pendingQueue = firstBaseUpdate; 2736 do { 2737 var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane; 2738 if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 2739 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); 2740 null !== current && (current = current.next = { 2741 lane: 0, 2742 tag: pendingQueue.tag, 2743 payload: pendingQueue.payload, 2744 callback: null, 2745 next: null 2746 }); 2747 a: { 2748 var workInProgress = workInProgress$jscomp$0, update = pendingQueue; 2749 updateLane = props; 2750 var instance = instance$jscomp$0; 2751 switch (update.tag) { 2752 case 1: 2753 workInProgress = update.payload; 2754 if ("function" === typeof workInProgress) { 2755 newState = workInProgress.call(instance, newState, updateLane); 2756 break a; 2757 } 2758 newState = workInProgress; 2759 break a; 2760 case 3: workInProgress.flags = workInProgress.flags & -65537 | 128; 2761 case 0: 2762 workInProgress = update.payload; 2763 updateLane = "function" === typeof workInProgress ? workInProgress.call(instance, newState, updateLane) : workInProgress; 2764 if (null === updateLane || void 0 === updateLane) break a; 2765 newState = assign({}, newState, updateLane); 2766 break a; 2767 case 2: hasForceUpdate = !0; 2768 } 2769 } 2770 updateLane = pendingQueue.callback; 2771 null !== updateLane && (workInProgress$jscomp$0.flags |= 64, isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192), isHiddenUpdate = queue.callbacks, null === isHiddenUpdate ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane)); 2772 } else isHiddenUpdate = { 2773 lane: updateLane, 2774 tag: pendingQueue.tag, 2775 payload: pendingQueue.payload, 2776 callback: pendingQueue.callback, 2777 next: null 2778 }, null === current ? (firstPendingUpdate = current = isHiddenUpdate, lastPendingUpdate = newState) : current = current.next = isHiddenUpdate, lastBaseUpdate |= updateLane; 2779 pendingQueue = pendingQueue.next; 2780 if (null === pendingQueue) if (pendingQueue = queue.shared.pending, null === pendingQueue) break; 2781 else isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null; 2782 } while (1); 2783 null === current && (lastPendingUpdate = newState); 2784 queue.baseState = lastPendingUpdate; 2785 queue.firstBaseUpdate = firstPendingUpdate; 2786 queue.lastBaseUpdate = current; 2787 null === firstBaseUpdate && (queue.shared.lanes = 0); 2788 workInProgressRootSkippedLanes |= lastBaseUpdate; 2789 workInProgress$jscomp$0.lanes = lastBaseUpdate; 2790 workInProgress$jscomp$0.memoizedState = newState; 2791 } 2792 } 2793 function callCallback(callback, context) { 2794 if ("function" !== typeof callback) throw Error(formatProdErrorMessage(191, callback)); 2795 callback.call(context); 2796 } 2797 function commitCallbacks(updateQueue, context) { 2798 var callbacks = updateQueue.callbacks; 2799 if (null !== callbacks) for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++) callCallback(callbacks[updateQueue], context); 2800 } 2801 var currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0); 2802 function pushHiddenContext(fiber, context) { 2803 fiber = entangledRenderLanes; 2804 push(prevEntangledRenderLanesCursor, fiber); 2805 push(currentTreeHiddenStackCursor, context); 2806 entangledRenderLanes = fiber | context.baseLanes; 2807 } 2808 function reuseHiddenContextOnStack() { 2809 push(prevEntangledRenderLanesCursor, entangledRenderLanes); 2810 push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current); 2811 } 2812 function popHiddenContext() { 2813 entangledRenderLanes = prevEntangledRenderLanesCursor.current; 2814 pop(currentTreeHiddenStackCursor); 2815 pop(prevEntangledRenderLanesCursor); 2816 } 2817 var suspenseHandlerStackCursor = createCursor(null), shellBoundary = null; 2818 function pushPrimaryTreeSuspenseHandler(handler) { 2819 var current = handler.alternate; 2820 push(suspenseStackCursor, suspenseStackCursor.current & 1); 2821 push(suspenseHandlerStackCursor, handler); 2822 null === shellBoundary && (null === current || null !== currentTreeHiddenStackCursor.current ? shellBoundary = handler : null !== current.memoizedState && (shellBoundary = handler)); 2823 } 2824 function pushDehydratedActivitySuspenseHandler(fiber) { 2825 push(suspenseStackCursor, suspenseStackCursor.current); 2826 push(suspenseHandlerStackCursor, fiber); 2827 null === shellBoundary && (shellBoundary = fiber); 2828 } 2829 function pushOffscreenSuspenseHandler(fiber) { 2830 22 === fiber.tag ? (push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), null === shellBoundary && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber); 2831 } 2832 function reuseSuspenseHandlerOnStack() { 2833 push(suspenseStackCursor, suspenseStackCursor.current); 2834 push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current); 2835 } 2836 function popSuspenseHandler(fiber) { 2837 pop(suspenseHandlerStackCursor); 2838 shellBoundary === fiber && (shellBoundary = null); 2839 pop(suspenseStackCursor); 2840 } 2841 var suspenseStackCursor = createCursor(0); 2842 function findFirstSuspended(row) { 2843 for (var node = row; null !== node;) { 2844 if (13 === node.tag) { 2845 var state = node.memoizedState; 2846 if (null !== state && (state = state.dehydrated, null === state || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state))) return node; 2847 } else if (19 === node.tag && ("forwards" === node.memoizedProps.revealOrder || "backwards" === node.memoizedProps.revealOrder || "unstable_legacy-backwards" === node.memoizedProps.revealOrder || "together" === node.memoizedProps.revealOrder)) { 2848 if (0 !== (node.flags & 128)) return node; 2849 } else if (null !== node.child) { 2850 node.child.return = node; 2851 node = node.child; 2852 continue; 2853 } 2854 if (node === row) break; 2855 for (; null === node.sibling;) { 2856 if (null === node.return || node.return === row) return null; 2857 node = node.return; 2858 } 2859 node.sibling.return = node.return; 2860 node = node.sibling; 2861 } 2862 return null; 2863 } 2864 var renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = !1, didScheduleRenderPhaseUpdateDuringThisPass = !1, shouldDoubleInvokeUserFnsInHooksDEV = !1, localIdCounter = 0, thenableIndexCounter = 0, thenableState = null, globalClientIdCounter = 0; 2865 function throwInvalidHookError() { 2866 throw Error(formatProdErrorMessage(321)); 2867 } 2868 function areHookInputsEqual(nextDeps, prevDeps) { 2869 if (null === prevDeps) return !1; 2870 for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1; 2871 return !0; 2872 } 2873 function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) { 2874 renderLanes = nextRenderLanes; 2875 currentlyRenderingFiber = workInProgress; 2876 workInProgress.memoizedState = null; 2877 workInProgress.updateQueue = null; 2878 workInProgress.lanes = 0; 2879 ReactSharedInternals.H = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate; 2880 shouldDoubleInvokeUserFnsInHooksDEV = !1; 2881 nextRenderLanes = Component(props, secondArg); 2882 shouldDoubleInvokeUserFnsInHooksDEV = !1; 2883 didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(workInProgress, Component, props, secondArg)); 2884 finishRenderingHooks(current); 2885 return nextRenderLanes; 2886 } 2887 function finishRenderingHooks(current) { 2888 ReactSharedInternals.H = ContextOnlyDispatcher; 2889 var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; 2890 renderLanes = 0; 2891 workInProgressHook = currentHook = currentlyRenderingFiber = null; 2892 didScheduleRenderPhaseUpdate = !1; 2893 thenableIndexCounter = 0; 2894 thenableState = null; 2895 if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300)); 2896 null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = !0)); 2897 } 2898 function renderWithHooksAgain(workInProgress, Component, props, secondArg) { 2899 currentlyRenderingFiber = workInProgress; 2900 var numberOfReRenders = 0; 2901 do { 2902 didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null); 2903 thenableIndexCounter = 0; 2904 didScheduleRenderPhaseUpdateDuringThisPass = !1; 2905 if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301)); 2906 numberOfReRenders += 1; 2907 workInProgressHook = currentHook = null; 2908 if (null != workInProgress.updateQueue) { 2909 var children = workInProgress.updateQueue; 2910 children.lastEffect = null; 2911 children.events = null; 2912 children.stores = null; 2913 null != children.memoCache && (children.memoCache.index = 0); 2914 } 2915 ReactSharedInternals.H = HooksDispatcherOnRerender; 2916 children = Component(props, secondArg); 2917 } while (didScheduleRenderPhaseUpdateDuringThisPass); 2918 return children; 2919 } 2920 function TransitionAwareHostComponent() { 2921 var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0]; 2922 maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable; 2923 dispatcher = dispatcher.useState()[0]; 2924 (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024); 2925 return maybeThenable; 2926 } 2927 function checkDidRenderIdHook() { 2928 var didRenderIdHook = 0 !== localIdCounter; 2929 localIdCounter = 0; 2930 return didRenderIdHook; 2931 } 2932 function bailoutHooks(current, workInProgress, lanes) { 2933 workInProgress.updateQueue = current.updateQueue; 2934 workInProgress.flags &= -2053; 2935 current.lanes &= ~lanes; 2936 } 2937 function resetHooksOnUnwind(workInProgress) { 2938 if (didScheduleRenderPhaseUpdate) { 2939 for (workInProgress = workInProgress.memoizedState; null !== workInProgress;) { 2940 var queue = workInProgress.queue; 2941 null !== queue && (queue.pending = null); 2942 workInProgress = workInProgress.next; 2943 } 2944 didScheduleRenderPhaseUpdate = !1; 2945 } 2946 renderLanes = 0; 2947 workInProgressHook = currentHook = currentlyRenderingFiber = null; 2948 didScheduleRenderPhaseUpdateDuringThisPass = !1; 2949 thenableIndexCounter = localIdCounter = 0; 2950 thenableState = null; 2951 } 2952 function mountWorkInProgressHook() { 2953 var hook = { 2954 memoizedState: null, 2955 baseState: null, 2956 baseQueue: null, 2957 queue: null, 2958 next: null 2959 }; 2960 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; 2961 return workInProgressHook; 2962 } 2963 function updateWorkInProgressHook() { 2964 if (null === currentHook) { 2965 var nextCurrentHook = currentlyRenderingFiber.alternate; 2966 nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; 2967 } else nextCurrentHook = currentHook.next; 2968 var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next; 2969 if (null !== nextWorkInProgressHook) workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook; 2970 else { 2971 if (null === nextCurrentHook) { 2972 if (null === currentlyRenderingFiber.alternate) throw Error(formatProdErrorMessage(467)); 2973 throw Error(formatProdErrorMessage(310)); 2974 } 2975 currentHook = nextCurrentHook; 2976 nextCurrentHook = { 2977 memoizedState: currentHook.memoizedState, 2978 baseState: currentHook.baseState, 2979 baseQueue: currentHook.baseQueue, 2980 queue: currentHook.queue, 2981 next: null 2982 }; 2983 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; 2984 } 2985 return workInProgressHook; 2986 } 2987 function createFunctionComponentUpdateQueue() { 2988 return { 2989 lastEffect: null, 2990 events: null, 2991 stores: null, 2992 memoCache: null 2993 }; 2994 } 2995 function useThenable(thenable) { 2996 var index = thenableIndexCounter; 2997 thenableIndexCounter += 1; 2998 null === thenableState && (thenableState = []); 2999 thenable = trackUsedThenable(thenableState, thenable, index); 3000 index = currentlyRenderingFiber; 3001 null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && (index = index.alternate, ReactSharedInternals.H = null === index || null === index.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate); 3002 return thenable; 3003 } 3004 function use(usable) { 3005 if (null !== usable && "object" === typeof usable) { 3006 if ("function" === typeof usable.then) return useThenable(usable); 3007 if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable); 3008 } 3009 throw Error(formatProdErrorMessage(438, String(usable))); 3010 } 3011 function useMemoCache(size) { 3012 var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue; 3013 null !== updateQueue && (memoCache = updateQueue.memoCache); 3014 if (null == memoCache) { 3015 var current = currentlyRenderingFiber.alternate; 3016 null !== current && (current = current.updateQueue, null !== current && (current = current.memoCache, null != current && (memoCache = { 3017 data: current.data.map(function(array) { 3018 return array.slice(); 3019 }), 3020 index: 0 3021 }))); 3022 } 3023 memoCache ??= { 3024 data: [], 3025 index: 0 3026 }; 3027 null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue); 3028 updateQueue.memoCache = memoCache; 3029 updateQueue = memoCache.data[memoCache.index]; 3030 if (void 0 === updateQueue) for (updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0; current < size; current++) updateQueue[current] = REACT_MEMO_CACHE_SENTINEL; 3031 memoCache.index++; 3032 return updateQueue; 3033 } 3034 function basicStateReducer(state, action) { 3035 return "function" === typeof action ? action(state) : action; 3036 } 3037 function updateReducer(reducer) { 3038 return updateReducerImpl(updateWorkInProgressHook(), currentHook, reducer); 3039 } 3040 function updateReducerImpl(hook, current, reducer) { 3041 var queue = hook.queue; 3042 if (null === queue) throw Error(formatProdErrorMessage(311)); 3043 queue.lastRenderedReducer = reducer; 3044 var baseQueue = hook.baseQueue, pendingQueue = queue.pending; 3045 if (null !== pendingQueue) { 3046 if (null !== baseQueue) { 3047 var baseFirst = baseQueue.next; 3048 baseQueue.next = pendingQueue.next; 3049 pendingQueue.next = baseFirst; 3050 } 3051 current.baseQueue = baseQueue = pendingQueue; 3052 queue.pending = null; 3053 } 3054 pendingQueue = hook.baseState; 3055 if (null === baseQueue) hook.memoizedState = pendingQueue; 3056 else { 3057 current = baseQueue.next; 3058 var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$60 = !1; 3059 do { 3060 var updateLane = update.lane & -536870913; 3061 if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 3062 var revertLane = update.revertLane; 3063 if (0 === revertLane) null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { 3064 lane: 0, 3065 revertLane: 0, 3066 gesture: null, 3067 action: update.action, 3068 hasEagerState: update.hasEagerState, 3069 eagerState: update.eagerState, 3070 next: null 3071 }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction$60 = !0); 3072 else if ((renderLanes & revertLane) === revertLane) { 3073 update = update.next; 3074 revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction$60 = !0); 3075 continue; 3076 } else updateLane = { 3077 lane: 0, 3078 revertLane: update.revertLane, 3079 gesture: null, 3080 action: update.action, 3081 hasEagerState: update.hasEagerState, 3082 eagerState: update.eagerState, 3083 next: null 3084 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane; 3085 updateLane = update.action; 3086 shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane); 3087 pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane); 3088 } else revertLane = { 3089 lane: updateLane, 3090 revertLane: update.revertLane, 3091 gesture: update.gesture, 3092 action: update.action, 3093 hasEagerState: update.hasEagerState, 3094 eagerState: update.eagerState, 3095 next: null 3096 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane; 3097 update = update.next; 3098 } while (null !== update && update !== current); 3099 null === newBaseQueueLast ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst; 3100 if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = !0, didReadFromEntangledAsyncAction$60 && (reducer = currentEntangledActionThenable, null !== reducer))) throw reducer; 3101 hook.memoizedState = pendingQueue; 3102 hook.baseState = baseFirst; 3103 hook.baseQueue = newBaseQueueLast; 3104 queue.lastRenderedState = pendingQueue; 3105 } 3106 null === baseQueue && (queue.lanes = 0); 3107 return [hook.memoizedState, queue.dispatch]; 3108 } 3109 function rerenderReducer(reducer) { 3110 var hook = updateWorkInProgressHook(), queue = hook.queue; 3111 if (null === queue) throw Error(formatProdErrorMessage(311)); 3112 queue.lastRenderedReducer = reducer; 3113 var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; 3114 if (null !== lastRenderPhaseUpdate) { 3115 queue.pending = null; 3116 var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; 3117 do 3118 newState = reducer(newState, update.action), update = update.next; 3119 while (update !== lastRenderPhaseUpdate); 3120 objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0); 3121 hook.memoizedState = newState; 3122 null === hook.baseQueue && (hook.baseState = newState); 3123 queue.lastRenderedState = newState; 3124 } 3125 return [newState, dispatch]; 3126 } 3127 function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 3128 var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating; 3129 if (isHydrating$jscomp$0) { 3130 if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407)); 3131 getServerSnapshot = getServerSnapshot(); 3132 } else getServerSnapshot = getSnapshot(); 3133 var snapshotChanged = !objectIs((currentHook || hook).memoizedState, getServerSnapshot); 3134 snapshotChanged && (hook.memoizedState = getServerSnapshot, didReceiveUpdate = !0); 3135 hook = hook.queue; 3136 updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [subscribe]); 3137 if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) { 3138 fiber.flags |= 2048; 3139 pushSimpleEffect(9, { destroy: void 0 }, updateStoreInstance.bind(null, fiber, hook, getServerSnapshot, getSnapshot), null); 3140 if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349)); 3141 isHydrating$jscomp$0 || 0 !== (renderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); 3142 } 3143 return getServerSnapshot; 3144 } 3145 function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { 3146 fiber.flags |= 16384; 3147 fiber = { 3148 getSnapshot, 3149 value: renderedSnapshot 3150 }; 3151 getSnapshot = currentlyRenderingFiber.updateQueue; 3152 null === getSnapshot ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); 3153 } 3154 function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { 3155 inst.value = nextSnapshot; 3156 inst.getSnapshot = getSnapshot; 3157 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 3158 } 3159 function subscribeToStore(fiber, inst, subscribe) { 3160 return subscribe(function() { 3161 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 3162 }); 3163 } 3164 function checkIfSnapshotChanged(inst) { 3165 var latestGetSnapshot = inst.getSnapshot; 3166 inst = inst.value; 3167 try { 3168 var nextValue = latestGetSnapshot(); 3169 return !objectIs(inst, nextValue); 3170 } catch (error) { 3171 return !0; 3172 } 3173 } 3174 function forceStoreRerender(fiber) { 3175 var root = enqueueConcurrentRenderForLane(fiber, 2); 3176 null !== root && scheduleUpdateOnFiber(root, fiber, 2); 3177 } 3178 function mountStateImpl(initialState) { 3179 var hook = mountWorkInProgressHook(); 3180 if ("function" === typeof initialState) { 3181 var initialStateInitializer = initialState; 3182 initialState = initialStateInitializer(); 3183 if (shouldDoubleInvokeUserFnsInHooksDEV) { 3184 setIsStrictModeForDevtools(!0); 3185 try { 3186 initialStateInitializer(); 3187 } finally { 3188 setIsStrictModeForDevtools(!1); 3189 } 3190 } 3191 } 3192 hook.memoizedState = hook.baseState = initialState; 3193 hook.queue = { 3194 pending: null, 3195 lanes: 0, 3196 dispatch: null, 3197 lastRenderedReducer: basicStateReducer, 3198 lastRenderedState: initialState 3199 }; 3200 return hook; 3201 } 3202 function updateOptimisticImpl(hook, current, passthrough, reducer) { 3203 hook.baseState = passthrough; 3204 return updateReducerImpl(hook, currentHook, "function" === typeof reducer ? reducer : basicStateReducer); 3205 } 3206 function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) { 3207 if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485)); 3208 fiber = actionQueue.action; 3209 if (null !== fiber) { 3210 var actionNode = { 3211 payload, 3212 action: fiber, 3213 next: null, 3214 isTransition: !0, 3215 status: "pending", 3216 value: null, 3217 reason: null, 3218 listeners: [], 3219 then: function(listener) { 3220 actionNode.listeners.push(listener); 3221 } 3222 }; 3223 null !== ReactSharedInternals.T ? setPendingState(!0) : actionNode.isTransition = !1; 3224 setState(actionNode); 3225 setPendingState = actionQueue.pending; 3226 null === setPendingState ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(actionQueue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode); 3227 } 3228 } 3229 function runActionStateAction(actionQueue, node) { 3230 var action = node.action, payload = node.payload, prevState = actionQueue.state; 3231 if (node.isTransition) { 3232 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 3233 ReactSharedInternals.T = currentTransition; 3234 try { 3235 var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S; 3236 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 3237 handleActionReturnValue(actionQueue, node, returnValue); 3238 } catch (error) { 3239 onActionError(actionQueue, node, error); 3240 } finally { 3241 null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition; 3242 } 3243 } else try { 3244 prevTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, prevTransition); 3245 } catch (error$66) { 3246 onActionError(actionQueue, node, error$66); 3247 } 3248 } 3249 function handleActionReturnValue(actionQueue, node, returnValue) { 3250 null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? returnValue.then(function(nextState) { 3251 onActionSuccess(actionQueue, node, nextState); 3252 }, function(error) { 3253 return onActionError(actionQueue, node, error); 3254 }) : onActionSuccess(actionQueue, node, returnValue); 3255 } 3256 function onActionSuccess(actionQueue, actionNode, nextState) { 3257 actionNode.status = "fulfilled"; 3258 actionNode.value = nextState; 3259 notifyActionListeners(actionNode); 3260 actionQueue.state = nextState; 3261 actionNode = actionQueue.pending; 3262 null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState))); 3263 } 3264 function onActionError(actionQueue, actionNode, error) { 3265 var last = actionQueue.pending; 3266 actionQueue.pending = null; 3267 if (null !== last) { 3268 last = last.next; 3269 do 3270 actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next; 3271 while (actionNode !== last); 3272 } 3273 actionQueue.action = null; 3274 } 3275 function notifyActionListeners(actionNode) { 3276 actionNode = actionNode.listeners; 3277 for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])(); 3278 } 3279 function actionStateReducer(oldState, newState) { 3280 return newState; 3281 } 3282 function mountActionState(action, initialStateProp) { 3283 if (isHydrating) { 3284 var ssrFormState = workInProgressRoot.formState; 3285 if (null !== ssrFormState) { 3286 a: { 3287 var JSCompiler_inline_result = currentlyRenderingFiber; 3288 if (isHydrating) { 3289 if (nextHydratableInstance) { 3290 b: { 3291 var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance; 3292 for (var inRootOrSingleton = rootOrSingletonContext; 8 !== JSCompiler_inline_result$jscomp$0.nodeType;) { 3293 if (!inRootOrSingleton) { 3294 JSCompiler_inline_result$jscomp$0 = null; 3295 break b; 3296 } 3297 JSCompiler_inline_result$jscomp$0 = getNextHydratable(JSCompiler_inline_result$jscomp$0.nextSibling); 3298 if (null === JSCompiler_inline_result$jscomp$0) { 3299 JSCompiler_inline_result$jscomp$0 = null; 3300 break b; 3301 } 3302 } 3303 inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data; 3304 JSCompiler_inline_result$jscomp$0 = "F!" === inRootOrSingleton || "F" === inRootOrSingleton ? JSCompiler_inline_result$jscomp$0 : null; 3305 } 3306 if (JSCompiler_inline_result$jscomp$0) { 3307 nextHydratableInstance = getNextHydratable(JSCompiler_inline_result$jscomp$0.nextSibling); 3308 JSCompiler_inline_result = "F!" === JSCompiler_inline_result$jscomp$0.data; 3309 break a; 3310 } 3311 } 3312 throwOnHydrationMismatch(JSCompiler_inline_result); 3313 } 3314 JSCompiler_inline_result = !1; 3315 } 3316 JSCompiler_inline_result && (initialStateProp = ssrFormState[0]); 3317 } 3318 } 3319 ssrFormState = mountWorkInProgressHook(); 3320 ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp; 3321 JSCompiler_inline_result = { 3322 pending: null, 3323 lanes: 0, 3324 dispatch: null, 3325 lastRenderedReducer: actionStateReducer, 3326 lastRenderedState: initialStateProp 3327 }; 3328 ssrFormState.queue = JSCompiler_inline_result; 3329 ssrFormState = dispatchSetState.bind(null, currentlyRenderingFiber, JSCompiler_inline_result); 3330 JSCompiler_inline_result.dispatch = ssrFormState; 3331 JSCompiler_inline_result = mountStateImpl(!1); 3332 inRootOrSingleton = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !1, JSCompiler_inline_result.queue); 3333 JSCompiler_inline_result = mountWorkInProgressHook(); 3334 JSCompiler_inline_result$jscomp$0 = { 3335 state: initialStateProp, 3336 dispatch: null, 3337 action, 3338 pending: null 3339 }; 3340 JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0; 3341 ssrFormState = dispatchActionState.bind(null, currentlyRenderingFiber, JSCompiler_inline_result$jscomp$0, inRootOrSingleton, ssrFormState); 3342 JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState; 3343 JSCompiler_inline_result.memoizedState = action; 3344 return [ 3345 initialStateProp, 3346 ssrFormState, 3347 !1 3348 ]; 3349 } 3350 function updateActionState(action) { 3351 return updateActionStateImpl(updateWorkInProgressHook(), currentHook, action); 3352 } 3353 function updateActionStateImpl(stateHook, currentStateHook, action) { 3354 currentStateHook = updateReducerImpl(stateHook, currentStateHook, actionStateReducer)[0]; 3355 stateHook = updateReducer(basicStateReducer)[0]; 3356 if ("object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then) try { 3357 var state = useThenable(currentStateHook); 3358 } catch (x) { 3359 if (x === SuspenseException) throw SuspenseActionException; 3360 throw x; 3361 } 3362 else state = currentStateHook; 3363 currentStateHook = updateWorkInProgressHook(); 3364 var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch; 3365 action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(9, { destroy: void 0 }, actionStateActionEffect.bind(null, actionQueue, action), null)); 3366 return [ 3367 state, 3368 dispatch, 3369 stateHook 3370 ]; 3371 } 3372 function actionStateActionEffect(actionQueue, action) { 3373 actionQueue.action = action; 3374 } 3375 function rerenderActionState(action) { 3376 var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook; 3377 if (null !== currentStateHook) return updateActionStateImpl(stateHook, currentStateHook, action); 3378 updateWorkInProgressHook(); 3379 stateHook = stateHook.memoizedState; 3380 currentStateHook = updateWorkInProgressHook(); 3381 var dispatch = currentStateHook.queue.dispatch; 3382 currentStateHook.memoizedState = action; 3383 return [ 3384 stateHook, 3385 dispatch, 3386 !1 3387 ]; 3388 } 3389 function pushSimpleEffect(tag, inst, create, deps) { 3390 tag = { 3391 tag, 3392 create, 3393 deps, 3394 inst, 3395 next: null 3396 }; 3397 inst = currentlyRenderingFiber.updateQueue; 3398 null === inst && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst); 3399 create = inst.lastEffect; 3400 null === create ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag); 3401 return tag; 3402 } 3403 function updateRef() { 3404 return updateWorkInProgressHook().memoizedState; 3405 } 3406 function mountEffectImpl(fiberFlags, hookFlags, create, deps) { 3407 var hook = mountWorkInProgressHook(); 3408 currentlyRenderingFiber.flags |= fiberFlags; 3409 hook.memoizedState = pushSimpleEffect(1 | hookFlags, { destroy: void 0 }, create, void 0 === deps ? null : deps); 3410 } 3411 function updateEffectImpl(fiberFlags, hookFlags, create, deps) { 3412 var hook = updateWorkInProgressHook(); 3413 deps = void 0 === deps ? null : deps; 3414 var inst = hook.memoizedState.inst; 3415 null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(1 | hookFlags, inst, create, deps)); 3416 } 3417 function mountEffect(create, deps) { 3418 mountEffectImpl(8390656, 8, create, deps); 3419 } 3420 function updateEffect(create, deps) { 3421 updateEffectImpl(2048, 8, create, deps); 3422 } 3423 function useEffectEventImpl(payload) { 3424 currentlyRenderingFiber.flags |= 4; 3425 var componentUpdateQueue = currentlyRenderingFiber.updateQueue; 3426 if (null === componentUpdateQueue) componentUpdateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = componentUpdateQueue, componentUpdateQueue.events = [payload]; 3427 else { 3428 var events = componentUpdateQueue.events; 3429 null === events ? componentUpdateQueue.events = [payload] : events.push(payload); 3430 } 3431 } 3432 function updateEvent(callback) { 3433 var ref = updateWorkInProgressHook().memoizedState; 3434 useEffectEventImpl({ 3435 ref, 3436 nextImpl: callback 3437 }); 3438 return function() { 3439 if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); 3440 return ref.impl.apply(void 0, arguments); 3441 }; 3442 } 3443 function updateInsertionEffect(create, deps) { 3444 return updateEffectImpl(4, 2, create, deps); 3445 } 3446 function updateLayoutEffect(create, deps) { 3447 return updateEffectImpl(4, 4, create, deps); 3448 } 3449 function imperativeHandleEffect(create, ref) { 3450 if ("function" === typeof ref) { 3451 create = create(); 3452 var refCleanup = ref(create); 3453 return function() { 3454 "function" === typeof refCleanup ? refCleanup() : ref(null); 3455 }; 3456 } 3457 if (null !== ref && void 0 !== ref) return create = create(), ref.current = create, function() { 3458 ref.current = null; 3459 }; 3460 } 3461 function updateImperativeHandle(ref, create, deps) { 3462 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 3463 updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps); 3464 } 3465 function mountDebugValue() {} 3466 function updateCallback(callback, deps) { 3467 var hook = updateWorkInProgressHook(); 3468 deps = void 0 === deps ? null : deps; 3469 var prevState = hook.memoizedState; 3470 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 3471 hook.memoizedState = [callback, deps]; 3472 return callback; 3473 } 3474 function updateMemo(nextCreate, deps) { 3475 var hook = updateWorkInProgressHook(); 3476 deps = void 0 === deps ? null : deps; 3477 var prevState = hook.memoizedState; 3478 if (null !== deps && areHookInputsEqual(deps, prevState[1])) return prevState[0]; 3479 prevState = nextCreate(); 3480 if (shouldDoubleInvokeUserFnsInHooksDEV) { 3481 setIsStrictModeForDevtools(!0); 3482 try { 3483 nextCreate(); 3484 } finally { 3485 setIsStrictModeForDevtools(!1); 3486 } 3487 } 3488 hook.memoizedState = [prevState, deps]; 3489 return prevState; 3490 } 3491 function mountDeferredValueImpl(hook, value, initialValue) { 3492 if (void 0 === initialValue || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930)) return hook.memoizedState = value; 3493 hook.memoizedState = initialValue; 3494 hook = requestDeferredLane(); 3495 currentlyRenderingFiber.lanes |= hook; 3496 workInProgressRootSkippedLanes |= hook; 3497 return initialValue; 3498 } 3499 function updateDeferredValueImpl(hook, prevValue, value, initialValue) { 3500 if (objectIs(value, prevValue)) return value; 3501 if (null !== currentTreeHiddenStackCursor.current) return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook; 3502 if (0 === (renderLanes & 42) || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930)) return didReceiveUpdate = !0, hook.memoizedState = value; 3503 hook = requestDeferredLane(); 3504 currentlyRenderingFiber.lanes |= hook; 3505 workInProgressRootSkippedLanes |= hook; 3506 return prevValue; 3507 } 3508 function startTransition(fiber, queue, pendingState, finishedState, callback) { 3509 var previousPriority = ReactDOMSharedInternals.p; 3510 ReactDOMSharedInternals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; 3511 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 3512 ReactSharedInternals.T = currentTransition; 3513 dispatchOptimisticSetState(fiber, !1, queue, pendingState); 3514 try { 3515 var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S; 3516 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 3517 if (null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then) dispatchSetStateInternal(fiber, queue, chainThenableValue(returnValue, finishedState), requestUpdateLane(fiber)); 3518 else dispatchSetStateInternal(fiber, queue, finishedState, requestUpdateLane(fiber)); 3519 } catch (error) { 3520 dispatchSetStateInternal(fiber, queue, { 3521 then: function() {}, 3522 status: "rejected", 3523 reason: error 3524 }, requestUpdateLane()); 3525 } finally { 3526 ReactDOMSharedInternals.p = previousPriority, null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition; 3527 } 3528 } 3529 function noop() {} 3530 function startHostTransition(formFiber, pendingState, action, formData) { 3531 if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476)); 3532 var queue = ensureFormComponentIsStateful(formFiber).queue; 3533 startTransition(formFiber, queue, pendingState, sharedNotPendingObject, null === action ? noop : function() { 3534 requestFormReset$1(formFiber); 3535 return action(formData); 3536 }); 3537 } 3538 function ensureFormComponentIsStateful(formFiber) { 3539 var existingStateHook = formFiber.memoizedState; 3540 if (null !== existingStateHook) return existingStateHook; 3541 existingStateHook = { 3542 memoizedState: sharedNotPendingObject, 3543 baseState: sharedNotPendingObject, 3544 baseQueue: null, 3545 queue: { 3546 pending: null, 3547 lanes: 0, 3548 dispatch: null, 3549 lastRenderedReducer: basicStateReducer, 3550 lastRenderedState: sharedNotPendingObject 3551 }, 3552 next: null 3553 }; 3554 var initialResetState = {}; 3555 existingStateHook.next = { 3556 memoizedState: initialResetState, 3557 baseState: initialResetState, 3558 baseQueue: null, 3559 queue: { 3560 pending: null, 3561 lanes: 0, 3562 dispatch: null, 3563 lastRenderedReducer: basicStateReducer, 3564 lastRenderedState: initialResetState 3565 }, 3566 next: null 3567 }; 3568 formFiber.memoizedState = existingStateHook; 3569 formFiber = formFiber.alternate; 3570 null !== formFiber && (formFiber.memoizedState = existingStateHook); 3571 return existingStateHook; 3572 } 3573 function requestFormReset$1(formFiber) { 3574 var stateHook = ensureFormComponentIsStateful(formFiber); 3575 null === stateHook.next && (stateHook = formFiber.alternate.memoizedState); 3576 dispatchSetStateInternal(formFiber, stateHook.next.queue, {}, requestUpdateLane()); 3577 } 3578 function useHostTransitionStatus() { 3579 return readContext(HostTransitionContext); 3580 } 3581 function updateId() { 3582 return updateWorkInProgressHook().memoizedState; 3583 } 3584 function updateRefresh() { 3585 return updateWorkInProgressHook().memoizedState; 3586 } 3587 function refreshCache(fiber) { 3588 for (var provider = fiber.return; null !== provider;) { 3589 switch (provider.tag) { 3590 case 24: 3591 case 3: 3592 var lane = requestUpdateLane(); 3593 fiber = createUpdate(lane); 3594 var root$69 = enqueueUpdate(provider, fiber, lane); 3595 null !== root$69 && (scheduleUpdateOnFiber(root$69, provider, lane), entangleTransitions(root$69, provider, lane)); 3596 provider = { cache: createCache() }; 3597 fiber.payload = provider; 3598 return; 3599 } 3600 provider = provider.return; 3601 } 3602 } 3603 function dispatchReducerAction(fiber, queue, action) { 3604 var lane = requestUpdateLane(); 3605 action = { 3606 lane, 3607 revertLane: 0, 3608 gesture: null, 3609 action, 3610 hasEagerState: !1, 3611 eagerState: null, 3612 next: null 3613 }; 3614 isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (action = enqueueConcurrentHookUpdate(fiber, queue, action, lane), null !== action && (scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane))); 3615 } 3616 function dispatchSetState(fiber, queue, action) { 3617 dispatchSetStateInternal(fiber, queue, action, requestUpdateLane()); 3618 } 3619 function dispatchSetStateInternal(fiber, queue, action, lane) { 3620 var update = { 3621 lane, 3622 revertLane: 0, 3623 gesture: null, 3624 action, 3625 hasEagerState: !1, 3626 eagerState: null, 3627 next: null 3628 }; 3629 if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); 3630 else { 3631 var alternate = fiber.alternate; 3632 if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) try { 3633 var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action); 3634 update.hasEagerState = !0; 3635 update.eagerState = eagerState; 3636 if (objectIs(eagerState, currentState)) return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), !1; 3637 } catch (error) {}
vendor: 5,015 bytes, lines 3638-3778
3638 action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); 3639 if (null !== action) return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), !0; 3640 } 3641 return !1; 3642 } 3643 function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) { 3644 action = { 3645 lane: 2, 3646 revertLane: requestTransitionLane(), 3647 gesture: null, 3648 action, 3649 hasEagerState: !1, 3650 eagerState: null, 3651 next: null 3652 }; 3653 if (isRenderPhaseUpdate(fiber)) { 3654 if (throwIfDuringRender) throw Error(formatProdErrorMessage(479)); 3655 } else throwIfDuringRender = enqueueConcurrentHookUpdate(fiber, queue, action, 2), null !== throwIfDuringRender && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2); 3656 } 3657 function isRenderPhaseUpdate(fiber) { 3658 var alternate = fiber.alternate; 3659 return fiber === currentlyRenderingFiber || null !== alternate && alternate === currentlyRenderingFiber; 3660 } 3661 function enqueueRenderPhaseUpdate(queue, update) { 3662 didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0; 3663 var pending = queue.pending; 3664 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 3665 queue.pending = update; 3666 } 3667 function entangleTransitionUpdate(root, queue, lane) { 3668 if (0 !== (lane & 4194048)) { 3669 var queueLanes = queue.lanes; 3670 queueLanes &= root.pendingLanes; 3671 lane |= queueLanes; 3672 queue.lanes = lane; 3673 markRootEntangled(root, lane); 3674 } 3675 } 3676 var ContextOnlyDispatcher = { 3677 readContext, 3678 use, 3679 useCallback: throwInvalidHookError, 3680 useContext: throwInvalidHookError, 3681 useEffect: throwInvalidHookError, 3682 useImperativeHandle: throwInvalidHookError, 3683 useLayoutEffect: throwInvalidHookError, 3684 useInsertionEffect: throwInvalidHookError, 3685 useMemo: throwInvalidHookError, 3686 useReducer: throwInvalidHookError, 3687 useRef: throwInvalidHookError, 3688 useState: throwInvalidHookError, 3689 useDebugValue: throwInvalidHookError, 3690 useDeferredValue: throwInvalidHookError, 3691 useTransition: throwInvalidHookError, 3692 useSyncExternalStore: throwInvalidHookError, 3693 useId: throwInvalidHookError, 3694 useHostTransitionStatus: throwInvalidHookError, 3695 useFormState: throwInvalidHookError, 3696 useActionState: throwInvalidHookError, 3697 useOptimistic: throwInvalidHookError, 3698 useMemoCache: throwInvalidHookError, 3699 useCacheRefresh: throwInvalidHookError 3700 }; 3701 ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError; 3702 var HooksDispatcherOnMount = { 3703 readContext, 3704 use, 3705 useCallback: function(callback, deps) { 3706 mountWorkInProgressHook().memoizedState = [callback, void 0 === deps ? null : deps]; 3707 return callback; 3708 }, 3709 useContext: readContext, 3710 useEffect: mountEffect, 3711 useImperativeHandle: function(ref, create, deps) { 3712 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 3713 mountEffectImpl(4194308, 4, imperativeHandleEffect.bind(null, create, ref), deps); 3714 }, 3715 useLayoutEffect: function(create, deps) { 3716 return mountEffectImpl(4194308, 4, create, deps); 3717 }, 3718 useInsertionEffect: function(create, deps) { 3719 mountEffectImpl(4, 2, create, deps); 3720 }, 3721 useMemo: function(nextCreate, deps) { 3722 var hook = mountWorkInProgressHook(); 3723 deps = void 0 === deps ? null : deps; 3724 var nextValue = nextCreate(); 3725 if (shouldDoubleInvokeUserFnsInHooksDEV) { 3726 setIsStrictModeForDevtools(!0); 3727 try { 3728 nextCreate(); 3729 } finally { 3730 setIsStrictModeForDevtools(!1); 3731 } 3732 } 3733 hook.memoizedState = [nextValue, deps]; 3734 return nextValue; 3735 }, 3736 useReducer: function(reducer, initialArg, init) { 3737 var hook = mountWorkInProgressHook(); 3738 if (void 0 !== init) { 3739 var initialState = init(initialArg); 3740 if (shouldDoubleInvokeUserFnsInHooksDEV) { 3741 setIsStrictModeForDevtools(!0); 3742 try { 3743 init(initialArg); 3744 } finally { 3745 setIsStrictModeForDevtools(!1); 3746 } 3747 } 3748 } else initialState = initialArg; 3749 hook.memoizedState = hook.baseState = initialState; 3750 reducer = { 3751 pending: null, 3752 lanes: 0, 3753 dispatch: null, 3754 lastRenderedReducer: reducer, 3755 lastRenderedState: initialState 3756 }; 3757 hook.queue = reducer; 3758 reducer = reducer.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber, reducer); 3759 return [hook.memoizedState, reducer]; 3760 }, 3761 useRef: function(initialValue) { 3762 var hook = mountWorkInProgressHook(); 3763 initialValue = { current: initialValue }; 3764 return hook.memoizedState = initialValue; 3765 }, 3766 useState: function(initialState) { 3767 initialState = mountStateImpl(initialState); 3768 var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue); 3769 queue.dispatch = dispatch; 3770 return [initialState.memoizedState, dispatch]; 3771 }, 3772 useDebugValue: mountDebugValue, 3773 useDeferredValue: function(value, initialValue) { 3774 return mountDeferredValueImpl(mountWorkInProgressHook(), value, initialValue); 3775 }, 3776 useTransition: function() { 3777 var stateHook = mountStateImpl(!1); 3778 stateHook = startTransition.bind(null, currentlyRenderingFiber, stateHook.queue, !0, !1);
vendor: 123,091 bytes, lines 3779-5912
3779 mountWorkInProgressHook().memoizedState = stateHook; 3780 return [!1, stateHook]; 3781 }, 3782 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 3783 var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook(); 3784 if (isHydrating) { 3785 if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407)); 3786 getServerSnapshot = getServerSnapshot(); 3787 } else { 3788 getServerSnapshot = getSnapshot(); 3789 if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349)); 3790 0 !== (workInProgressRootRenderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); 3791 } 3792 hook.memoizedState = getServerSnapshot; 3793 var inst = { 3794 value: getServerSnapshot, 3795 getSnapshot 3796 }; 3797 hook.queue = inst; 3798 mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); 3799 fiber.flags |= 2048; 3800 pushSimpleEffect(9, { destroy: void 0 }, updateStoreInstance.bind(null, fiber, inst, getServerSnapshot, getSnapshot), null); 3801 return getServerSnapshot; 3802 }, 3803 useId: function() { 3804 var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix; 3805 if (isHydrating) { 3806 var JSCompiler_inline_result = treeContextOverflow; 3807 var idWithLeadingBit = treeContextId; 3808 JSCompiler_inline_result = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + JSCompiler_inline_result; 3809 identifierPrefix = "_" + identifierPrefix + "R_" + JSCompiler_inline_result; 3810 JSCompiler_inline_result = localIdCounter++; 3811 0 < JSCompiler_inline_result && (identifierPrefix += "H" + JSCompiler_inline_result.toString(32)); 3812 identifierPrefix += "_"; 3813 } else JSCompiler_inline_result = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + JSCompiler_inline_result.toString(32) + "_"; 3814 return hook.memoizedState = identifierPrefix; 3815 }, 3816 useHostTransitionStatus, 3817 useFormState: mountActionState, 3818 useActionState: mountActionState, 3819 useOptimistic: function(passthrough) { 3820 var hook = mountWorkInProgressHook(); 3821 hook.memoizedState = hook.baseState = passthrough; 3822 var queue = { 3823 pending: null, 3824 lanes: 0, 3825 dispatch: null, 3826 lastRenderedReducer: null, 3827 lastRenderedState: null 3828 }; 3829 hook.queue = queue; 3830 hook = dispatchOptimisticSetState.bind(null, currentlyRenderingFiber, !0, queue); 3831 queue.dispatch = hook; 3832 return [passthrough, hook]; 3833 }, 3834 useMemoCache, 3835 useCacheRefresh: function() { 3836 return mountWorkInProgressHook().memoizedState = refreshCache.bind(null, currentlyRenderingFiber); 3837 }, 3838 useEffectEvent: function(callback) { 3839 var hook = mountWorkInProgressHook(), ref = { impl: callback }; 3840 hook.memoizedState = ref; 3841 return function() { 3842 if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440)); 3843 return ref.impl.apply(void 0, arguments); 3844 }; 3845 } 3846 }, HooksDispatcherOnUpdate = { 3847 readContext, 3848 use, 3849 useCallback: updateCallback, 3850 useContext: readContext, 3851 useEffect: updateEffect, 3852 useImperativeHandle: updateImperativeHandle, 3853 useInsertionEffect: updateInsertionEffect, 3854 useLayoutEffect: updateLayoutEffect, 3855 useMemo: updateMemo, 3856 useReducer: updateReducer, 3857 useRef: updateRef, 3858 useState: function() { 3859 return updateReducer(basicStateReducer); 3860 }, 3861 useDebugValue: mountDebugValue, 3862 useDeferredValue: function(value, initialValue) { 3863 return updateDeferredValueImpl(updateWorkInProgressHook(), currentHook.memoizedState, value, initialValue); 3864 }, 3865 useTransition: function() { 3866 var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 3867 return ["boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start]; 3868 }, 3869 useSyncExternalStore: updateSyncExternalStore, 3870 useId: updateId, 3871 useHostTransitionStatus, 3872 useFormState: updateActionState, 3873 useActionState: updateActionState, 3874 useOptimistic: function(passthrough, reducer) { 3875 return updateOptimisticImpl(updateWorkInProgressHook(), currentHook, passthrough, reducer); 3876 }, 3877 useMemoCache, 3878 useCacheRefresh: updateRefresh 3879 }; 3880 HooksDispatcherOnUpdate.useEffectEvent = updateEvent; 3881 var HooksDispatcherOnRerender = { 3882 readContext, 3883 use, 3884 useCallback: updateCallback, 3885 useContext: readContext, 3886 useEffect: updateEffect, 3887 useImperativeHandle: updateImperativeHandle, 3888 useInsertionEffect: updateInsertionEffect, 3889 useLayoutEffect: updateLayoutEffect, 3890 useMemo: updateMemo, 3891 useReducer: rerenderReducer, 3892 useRef: updateRef, 3893 useState: function() { 3894 return rerenderReducer(basicStateReducer); 3895 }, 3896 useDebugValue: mountDebugValue, 3897 useDeferredValue: function(value, initialValue) { 3898 var hook = updateWorkInProgressHook(); 3899 return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(hook, currentHook.memoizedState, value, initialValue); 3900 }, 3901 useTransition: function() { 3902 var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 3903 return ["boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), start]; 3904 }, 3905 useSyncExternalStore: updateSyncExternalStore, 3906 useId: updateId, 3907 useHostTransitionStatus, 3908 useFormState: rerenderActionState, 3909 useActionState: rerenderActionState, 3910 useOptimistic: function(passthrough, reducer) { 3911 var hook = updateWorkInProgressHook(); 3912 if (null !== currentHook) return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 3913 hook.baseState = passthrough; 3914 return [passthrough, hook.queue.dispatch]; 3915 }, 3916 useMemoCache, 3917 useCacheRefresh: updateRefresh 3918 }; 3919 HooksDispatcherOnRerender.useEffectEvent = updateEvent; 3920 function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) { 3921 ctor = workInProgress.memoizedState; 3922 getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor); 3923 getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps); 3924 workInProgress.memoizedState = getDerivedStateFromProps; 3925 0 === workInProgress.lanes && (workInProgress.updateQueue.baseState = getDerivedStateFromProps); 3926 } 3927 var classComponentUpdater = { 3928 enqueueSetState: function(inst, payload, callback) { 3929 inst = inst._reactInternals; 3930 var lane = requestUpdateLane(), update = createUpdate(lane); 3931 update.payload = payload; 3932 void 0 !== callback && null !== callback && (update.callback = callback); 3933 payload = enqueueUpdate(inst, update, lane); 3934 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 3935 }, 3936 enqueueReplaceState: function(inst, payload, callback) { 3937 inst = inst._reactInternals; 3938 var lane = requestUpdateLane(), update = createUpdate(lane); 3939 update.tag = 1; 3940 update.payload = payload; 3941 void 0 !== callback && null !== callback && (update.callback = callback); 3942 payload = enqueueUpdate(inst, update, lane); 3943 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 3944 }, 3945 enqueueForceUpdate: function(inst, callback) { 3946 inst = inst._reactInternals; 3947 var lane = requestUpdateLane(), update = createUpdate(lane); 3948 update.tag = 2; 3949 void 0 !== callback && null !== callback && (update.callback = callback); 3950 callback = enqueueUpdate(inst, update, lane); 3951 null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane)); 3952 } 3953 }; 3954 function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { 3955 workInProgress = workInProgress.stateNode; 3956 return "function" === typeof workInProgress.shouldComponentUpdate ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0; 3957 } 3958 function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) { 3959 workInProgress = instance.state; 3960 "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); 3961 "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); 3962 instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null); 3963 } 3964 function resolveClassComponentProps(Component, baseProps) { 3965 var newProps = baseProps; 3966 if ("ref" in baseProps) { 3967 newProps = {}; 3968 for (var propName in baseProps) "ref" !== propName && (newProps[propName] = baseProps[propName]); 3969 } 3970 if (Component = Component.defaultProps) { 3971 newProps === baseProps && (newProps = assign({}, newProps)); 3972 for (var propName$73 in Component) void 0 === newProps[propName$73] && (newProps[propName$73] = Component[propName$73]); 3973 } 3974 return newProps; 3975 } 3976 function defaultOnUncaughtError(error) { 3977 reportGlobalError(error); 3978 } 3979 function defaultOnCaughtError(error) { 3980 console.error(error); 3981 } 3982 function defaultOnRecoverableError(error) { 3983 reportGlobalError(error); 3984 } 3985 function logUncaughtError(root, errorInfo) { 3986 try { 3987 var onUncaughtError = root.onUncaughtError; 3988 onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); 3989 } catch (e$74) { 3990 setTimeout(function() { 3991 throw e$74; 3992 }); 3993 } 3994 } 3995 function logCaughtError(root, boundary, errorInfo) { 3996 try { 3997 var onCaughtError = root.onCaughtError; 3998 onCaughtError(errorInfo.value, { 3999 componentStack: errorInfo.stack, 4000 errorBoundary: 1 === boundary.tag ? boundary.stateNode : null 4001 }); 4002 } catch (e$75) { 4003 setTimeout(function() { 4004 throw e$75; 4005 }); 4006 } 4007 } 4008 function createRootErrorUpdate(root, errorInfo, lane) { 4009 lane = createUpdate(lane); 4010 lane.tag = 3; 4011 lane.payload = { element: null }; 4012 lane.callback = function() { 4013 logUncaughtError(root, errorInfo); 4014 }; 4015 return lane; 4016 } 4017 function createClassErrorUpdate(lane) { 4018 lane = createUpdate(lane); 4019 lane.tag = 3; 4020 return lane; 4021 } 4022 function initializeClassErrorUpdate(update, root, fiber, errorInfo) { 4023 var getDerivedStateFromError = fiber.type.getDerivedStateFromError; 4024 if ("function" === typeof getDerivedStateFromError) { 4025 var error = errorInfo.value; 4026 update.payload = function() { 4027 return getDerivedStateFromError(error); 4028 }; 4029 update.callback = function() { 4030 logCaughtError(root, fiber, errorInfo); 4031 }; 4032 } 4033 var inst = fiber.stateNode; 4034 null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() { 4035 logCaughtError(root, fiber, errorInfo); 4036 "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); 4037 var stack = errorInfo.stack; 4038 this.componentDidCatch(errorInfo.value, { componentStack: null !== stack ? stack : "" }); 4039 }); 4040 } 4041 function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { 4042 sourceFiber.flags |= 32768; 4043 if (null !== value && "object" === typeof value && "function" === typeof value.then) { 4044 returnFiber = sourceFiber.alternate; 4045 null !== returnFiber && propagateParentContextChanges(returnFiber, sourceFiber, rootRenderLanes, !0); 4046 sourceFiber = suspenseHandlerStackCursor.current; 4047 if (null !== sourceFiber) { 4048 switch (sourceFiber.tag) { 4049 case 31: 4050 case 13: return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), 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; 4051 case 22: return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = { 4052 transitions: null, 4053 markerInstances: null, 4054 retryQueue: new Set([value]) 4055 }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = new Set([value]) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), !1; 4056 } 4057 throw Error(formatProdErrorMessage(435, sourceFiber.tag)); 4058 } 4059 attachPingListener(root, value, rootRenderLanes); 4060 renderDidSuspendDelayIfPossible(); 4061 return !1; 4062 } 4063 if (isHydrating) return returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(createCapturedValueAtFiber(root, sourceFiber)))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), { cause: value }), queueHydrationError(createCapturedValueAtFiber(returnFiber, 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), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), !1; 4064 var wrapperError = Error(formatProdErrorMessage(520), { cause: value }); 4065 wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber); 4066 null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError); 4067 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2); 4068 if (null === returnFiber) return !0; 4069 value = createCapturedValueAtFiber(value, sourceFiber); 4070 sourceFiber = returnFiber; 4071 do { 4072 switch (sourceFiber.tag) { 4073 case 3: return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(sourceFiber.stateNode, value, root), enqueueCapturedUpdate(sourceFiber, root), !1; 4074 case 1: if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== wrapperError && "function" === typeof wrapperError.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError)))) return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(rootRenderLanes, root, sourceFiber, value), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1; 4075 } 4076 sourceFiber = sourceFiber.return; 4077 } while (null !== sourceFiber); 4078 return !1; 4079 } 4080 var SelectiveHydrationException = Error(formatProdErrorMessage(461)), didReceiveUpdate = !1; 4081 function reconcileChildren(current, workInProgress, nextChildren, renderLanes) { 4082 workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes); 4083 } 4084 function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) { 4085 Component = Component.render; 4086 var ref = workInProgress.ref; 4087 if ("ref" in nextProps) { 4088 var propsWithoutRef = {}; 4089 for (var key in nextProps) "ref" !== key && (propsWithoutRef[key] = nextProps[key]); 4090 } else propsWithoutRef = nextProps; 4091 prepareToReadContext(workInProgress); 4092 nextProps = renderWithHooks(current, workInProgress, Component, propsWithoutRef, ref, renderLanes); 4093 key = checkDidRenderIdHook(); 4094 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4095 isHydrating && key && pushMaterializedTreeId(workInProgress); 4096 workInProgress.flags |= 1; 4097 reconcileChildren(current, workInProgress, nextProps, renderLanes); 4098 return workInProgress.child; 4099 } 4100 function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 4101 if (null === current) { 4102 var type = Component.type; 4103 if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes); 4104 current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes); 4105 current.ref = workInProgress.ref; 4106 current.return = workInProgress; 4107 return workInProgress.child = current; 4108 } 4109 type = current.child; 4110 if (!checkScheduledUpdateOrContext(current, renderLanes)) { 4111 var prevProps = type.memoizedProps; 4112 Component = Component.compare; 4113 Component = null !== Component ? Component : shallowEqual; 4114 if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4115 } 4116 workInProgress.flags |= 1; 4117 current = createWorkInProgress(type, nextProps); 4118 current.ref = workInProgress.ref; 4119 current.return = workInProgress; 4120 return workInProgress.child = current; 4121 } 4122 function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) { 4123 if (null !== current) { 4124 var prevProps = current.memoizedProps; 4125 if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref) if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0); 4126 else return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4127 } 4128 return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes); 4129 } 4130 function updateOffscreenComponent(current, workInProgress, renderLanes, nextProps) { 4131 var nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null; 4132 null === current && null === workInProgress.stateNode && (workInProgress.stateNode = { 4133 _visibility: 1, 4134 _pendingMarkers: null, 4135 _retryCache: null, 4136 _transitions: null 4137 }); 4138 if ("hidden" === nextProps.mode) { 4139 if (0 !== (workInProgress.flags & 128)) { 4140 prevState = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes; 4141 if (null !== current) { 4142 nextProps = workInProgress.child = current.child; 4143 for (nextChildren = 0; null !== nextProps;) nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling; 4144 nextProps = nextChildren & ~prevState; 4145 } else nextProps = 0, workInProgress.child = null; 4146 return deferHiddenOffscreenComponent(current, workInProgress, prevState, renderLanes, nextProps); 4147 } 4148 if (0 !== (renderLanes & 536870912)) workInProgress.memoizedState = { 4149 baseLanes: 0, 4150 cachePool: null 4151 }, null !== current && pushTransition(workInProgress, null !== prevState ? prevState.cachePool : null), null !== prevState ? pushHiddenContext(workInProgress, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress); 4152 else return nextProps = workInProgress.lanes = 536870912, deferHiddenOffscreenComponent(current, workInProgress, null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, renderLanes, nextProps); 4153 } else null !== prevState ? (pushTransition(workInProgress, prevState.cachePool), pushHiddenContext(workInProgress, prevState), reuseSuspenseHandlerOnStack(workInProgress), workInProgress.memoizedState = null) : (null !== current && pushTransition(workInProgress, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress)); 4154 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 4155 return workInProgress.child; 4156 } 4157 function bailoutOffscreenComponent(current, workInProgress) { 4158 null !== current && 22 === current.tag || null !== workInProgress.stateNode || (workInProgress.stateNode = { 4159 _visibility: 1, 4160 _pendingMarkers: null, 4161 _retryCache: null, 4162 _transitions: null 4163 }); 4164 return workInProgress.sibling; 4165 } 4166 function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes, renderLanes, remainingChildLanes) { 4167 var JSCompiler_inline_result = peekCacheFromPool(); 4168 JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { 4169 parent: CacheContext._currentValue, 4170 pool: JSCompiler_inline_result 4171 }; 4172 workInProgress.memoizedState = { 4173 baseLanes: nextBaseLanes, 4174 cachePool: JSCompiler_inline_result 4175 }; 4176 null !== current && pushTransition(workInProgress, null); 4177 reuseHiddenContextOnStack(); 4178 pushOffscreenSuspenseHandler(workInProgress); 4179 null !== current && propagateParentContextChanges(current, workInProgress, renderLanes, !0); 4180 workInProgress.childLanes = remainingChildLanes; 4181 return null; 4182 } 4183 function mountActivityChildren(workInProgress, nextProps) { 4184 nextProps = mountWorkInProgressOffscreenFiber({ 4185 mode: nextProps.mode, 4186 children: nextProps.children 4187 }, workInProgress.mode); 4188 nextProps.ref = workInProgress.ref; 4189 workInProgress.child = nextProps; 4190 nextProps.return = workInProgress; 4191 return nextProps; 4192 } 4193 function retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes) { 4194 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 4195 current = mountActivityChildren(workInProgress, workInProgress.pendingProps); 4196 current.flags |= 2; 4197 popSuspenseHandler(workInProgress); 4198 workInProgress.memoizedState = null; 4199 return current; 4200 } 4201 function updateActivityComponent(current, workInProgress, renderLanes) { 4202 var nextProps = workInProgress.pendingProps, didSuspend = 0 !== (workInProgress.flags & 128); 4203 workInProgress.flags &= -129; 4204 if (null === current) { 4205 if (isHydrating) { 4206 if ("hidden" === nextProps.mode) return current = mountActivityChildren(workInProgress, nextProps), workInProgress.lanes = 536870912, bailoutOffscreenComponent(null, current); 4207 pushDehydratedActivitySuspenseHandler(workInProgress); 4208 (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(current, rootOrSingletonContext), current = null !== current && "&" === current.data ? current : null, null !== current && (workInProgress.memoizedState = { 4209 dehydrated: current, 4210 treeContext: null !== treeContextProvider ? { 4211 id: treeContextId, 4212 overflow: treeContextOverflow 4213 } : null, 4214 retryLane: 536870912, 4215 hydrationErrors: null 4216 }, renderLanes = createFiberFromDehydratedFragment(current), renderLanes.return = workInProgress, workInProgress.child = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : current = null; 4217 if (null === current) throw throwOnHydrationMismatch(workInProgress); 4218 workInProgress.lanes = 536870912; 4219 return null; 4220 } 4221 return mountActivityChildren(workInProgress, nextProps); 4222 } 4223 var prevState = current.memoizedState; 4224 if (null !== prevState) { 4225 var dehydrated = prevState.dehydrated; 4226 pushDehydratedActivitySuspenseHandler(workInProgress); 4227 if (didSuspend) if (workInProgress.flags & 256) workInProgress.flags &= -257, workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 4228 else if (null !== workInProgress.memoizedState) workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null; 4229 else throw Error(formatProdErrorMessage(558)); 4230 else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), didSuspend = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || didSuspend) { 4231 nextProps = workInProgressRoot; 4232 if (null !== nextProps && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes), 0 !== dehydrated && dehydrated !== prevState.retryLane)) throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException; 4233 renderDidSuspendDelayIfPossible(); 4234 workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes); 4235 } else current = prevState.treeContext, nextHydratableInstance = getNextHydratable(dehydrated.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountActivityChildren(workInProgress, nextProps), workInProgress.flags |= 4096; 4236 return workInProgress; 4237 } 4238 current = createWorkInProgress(current.child, { 4239 mode: nextProps.mode, 4240 children: nextProps.children 4241 }); 4242 current.ref = workInProgress.ref; 4243 workInProgress.child = current; 4244 current.return = workInProgress; 4245 return current; 4246 } 4247 function markRef(current, workInProgress) { 4248 var ref = workInProgress.ref; 4249 if (null === ref) null !== current && null !== current.ref && (workInProgress.flags |= 4194816); 4250 else { 4251 if ("function" !== typeof ref && "object" !== typeof ref) throw Error(formatProdErrorMessage(284)); 4252 if (null === current || current.ref !== ref) workInProgress.flags |= 4194816; 4253 } 4254 } 4255 function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) { 4256 prepareToReadContext(workInProgress); 4257 Component = renderWithHooks(current, workInProgress, Component, nextProps, void 0, renderLanes); 4258 nextProps = checkDidRenderIdHook(); 4259 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4260 isHydrating && nextProps && pushMaterializedTreeId(workInProgress); 4261 workInProgress.flags |= 1; 4262 reconcileChildren(current, workInProgress, Component, renderLanes); 4263 return workInProgress.child; 4264 } 4265 function replayFunctionComponent(current, workInProgress, nextProps, Component, secondArg, renderLanes) { 4266 prepareToReadContext(workInProgress); 4267 workInProgress.updateQueue = null; 4268 nextProps = renderWithHooksAgain(workInProgress, Component, nextProps, secondArg); 4269 finishRenderingHooks(current); 4270 Component = checkDidRenderIdHook(); 4271 if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4272 isHydrating && Component && pushMaterializedTreeId(workInProgress); 4273 workInProgress.flags |= 1; 4274 reconcileChildren(current, workInProgress, nextProps, renderLanes); 4275 return workInProgress.child; 4276 } 4277 function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) { 4278 prepareToReadContext(workInProgress); 4279 if (null === workInProgress.stateNode) { 4280 var context = emptyContextObject, contextType = Component.contextType; 4281 "object" === typeof contextType && null !== contextType && (context = readContext(contextType)); 4282 context = new Component(nextProps, context); 4283 workInProgress.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null; 4284 context.updater = classComponentUpdater; 4285 workInProgress.stateNode = context; 4286 context._reactInternals = workInProgress; 4287 context = workInProgress.stateNode; 4288 context.props = nextProps; 4289 context.state = workInProgress.memoizedState; 4290 context.refs = {}; 4291 initializeUpdateQueue(workInProgress); 4292 contextType = Component.contextType; 4293 context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject; 4294 context.state = workInProgress.memoizedState; 4295 contextType = Component.getDerivedStateFromProps; 4296 "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress, Component, contextType, nextProps), context.state = workInProgress.memoizedState); 4297 "function" === typeof Component.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress, nextProps, context, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress.memoizedState); 4298 "function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308); 4299 nextProps = !0; 4300 } else if (null === current) { 4301 context = workInProgress.stateNode; 4302 var unresolvedOldProps = workInProgress.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps); 4303 context.props = oldProps; 4304 var oldContext = context.context, contextType$jscomp$0 = Component.contextType; 4305 contextType = emptyContextObject; 4306 "object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0)); 4307 var getDerivedStateFromProps = Component.getDerivedStateFromProps; 4308 contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate; 4309 unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps; 4310 contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, context, nextProps, contextType); 4311 hasForceUpdate = !1; 4312 var oldState = workInProgress.memoizedState; 4313 context.state = oldState; 4314 processUpdateQueue(workInProgress, nextProps, context, renderLanes); 4315 suspendIfUpdateReadFromEntangledAsyncAction(); 4316 oldContext = workInProgress.memoizedState; 4317 unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : ("function" === typeof context.componentDidMount && (workInProgress.flags |= 4194308), nextProps = !1); 4318 } else { 4319 context = workInProgress.stateNode; 4320 cloneUpdateQueue(current, workInProgress); 4321 contextType = workInProgress.memoizedProps; 4322 contextType$jscomp$0 = resolveClassComponentProps(Component, contextType); 4323 context.props = contextType$jscomp$0; 4324 getDerivedStateFromProps = workInProgress.pendingProps; 4325 oldState = context.context; 4326 oldContext = Component.contextType; 4327 oldProps = emptyContextObject; 4328 "object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext)); 4329 unresolvedOldProps = Component.getDerivedStateFromProps; 4330 (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(workInProgress, context, nextProps, oldProps); 4331 hasForceUpdate = !1; 4332 oldState = workInProgress.memoizedState; 4333 context.state = oldState; 4334 processUpdateQueue(workInProgress, nextProps, context, renderLanes); 4335 suspendIfUpdateReadFromEntangledAsyncAction(); 4336 var newState = workInProgress.memoizedState; 4337 contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress, Component, unresolvedOldProps, nextProps), newState = workInProgress.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType$jscomp$0, nextProps, oldState, newState, oldProps) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate(nextProps, newState, oldProps)), "function" === typeof context.componentDidUpdate && (workInProgress.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1); 4338 } 4339 context = nextProps; 4340 markRef(current, workInProgress); 4341 nextProps = 0 !== (workInProgress.flags & 128); 4342 context || nextProps ? (context = workInProgress.stateNode, Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null : context.render(), workInProgress.flags |= 1, null !== current && nextProps ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes)) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.memoizedState = context.state, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4343 return current; 4344 } 4345 function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes) { 4346 resetHydrationState(); 4347 workInProgress.flags |= 256; 4348 reconcileChildren(current, workInProgress, nextChildren, renderLanes); 4349 return workInProgress.child; 4350 } 4351 var SUSPENDED_MARKER = { 4352 dehydrated: null, 4353 treeContext: null, 4354 retryLane: 0, 4355 hydrationErrors: null 4356 }; 4357 function mountSuspenseOffscreenState(renderLanes) { 4358 return { 4359 baseLanes: renderLanes, 4360 cachePool: getSuspendedCache() 4361 }; 4362 } 4363 function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes) { 4364 current = null !== current ? current.childLanes & ~renderLanes : 0; 4365 primaryTreeDidDefer && (current |= workInProgressDeferredLane); 4366 return current; 4367 } 4368 function updateSuspenseComponent(current, workInProgress, renderLanes) { 4369 var nextProps = workInProgress.pendingProps, showFallback = !1, didSuspend = 0 !== (workInProgress.flags & 128), JSCompiler_temp; 4370 (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & 2)); 4371 JSCompiler_temp && (showFallback = !0, workInProgress.flags &= -129); 4372 JSCompiler_temp = 0 !== (workInProgress.flags & 32); 4373 workInProgress.flags &= -33; 4374 if (null === current) { 4375 if (isHydrating) { 4376 showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); 4377 (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(current, rootOrSingletonContext), current = null !== current && "&" !== current.data ? current : null, null !== current && (workInProgress.memoizedState = { 4378 dehydrated: current, 4379 treeContext: null !== treeContextProvider ? { 4380 id: treeContextId, 4381 overflow: treeContextOverflow 4382 } : null, 4383 retryLane: 536870912, 4384 hydrationErrors: null 4385 }, renderLanes = createFiberFromDehydratedFragment(current), renderLanes.return = workInProgress, workInProgress.child = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : current = null; 4386 if (null === current) throw throwOnHydrationMismatch(workInProgress); 4387 isSuspenseInstanceFallback(current) ? workInProgress.lanes = 32 : workInProgress.lanes = 536870912; 4388 return null; 4389 } 4390 var nextPrimaryChildren = nextProps.children; 4391 nextProps = nextProps.fallback; 4392 if (showFallback) return reuseSuspenseHandlerOnStack(workInProgress), showFallback = workInProgress.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber({ 4393 mode: "hidden", 4394 children: nextPrimaryChildren 4395 }, showFallback), nextProps = createFiberFromFragment(nextProps, showFallback, renderLanes, null), nextPrimaryChildren.return = workInProgress, nextProps.return = workInProgress, nextPrimaryChildren.sibling = nextProps, workInProgress.child = nextPrimaryChildren, nextProps = workInProgress.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps); 4396 pushPrimaryTreeSuspenseHandler(workInProgress); 4397 return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren); 4398 } 4399 var prevState = current.memoizedState; 4400 if (null !== prevState && (nextPrimaryChildren = prevState.dehydrated, null !== nextPrimaryChildren)) { 4401 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 = nextProps.fallback, showFallback = workInProgress.mode, nextProps = mountWorkInProgressOffscreenFiber({ 4402 mode: "visible", 4403 children: nextProps.children 4404 }, showFallback), nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes, null), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress, nextPrimaryChildren.return = workInProgress, nextProps.sibling = nextPrimaryChildren, workInProgress.child = nextProps, reconcileChildFibers(workInProgress, current.child, null, renderLanes), nextProps = workInProgress.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, workInProgress = bailoutOffscreenComponent(null, nextProps)); 4405 else if (pushPrimaryTreeSuspenseHandler(workInProgress), isSuspenseInstanceFallback(nextPrimaryChildren)) { 4406 JSCompiler_temp = nextPrimaryChildren.nextSibling && nextPrimaryChildren.nextSibling.dataset; 4407 if (JSCompiler_temp) var digest = JSCompiler_temp.dgst; 4408 JSCompiler_temp = digest; 4409 nextProps = Error(formatProdErrorMessage(419)); 4410 nextProps.stack = ""; 4411 nextProps.digest = JSCompiler_temp; 4412 queueHydrationError({ 4413 value: nextProps, 4414 source: null, 4415 stack: null 4416 }); 4417 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 4418 } else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), JSCompiler_temp = 0 !== (renderLanes & current.childLanes), didReceiveUpdate || JSCompiler_temp) { 4419 JSCompiler_temp = workInProgressRoot; 4420 if (null !== JSCompiler_temp && (nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes), 0 !== nextProps && nextProps !== prevState.retryLane)) throw prevState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), SelectiveHydrationException; 4421 isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible(); 4422 workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes); 4423 } else isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress.flags |= 192, workInProgress.child = current.child, workInProgress = null) : (current = prevState.treeContext, nextHydratableInstance = getNextHydratable(nextPrimaryChildren.nextSibling), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, null !== current && restoreSuspendedTreeContext(workInProgress, current), workInProgress = mountSuspensePrimaryChildren(workInProgress, nextProps.children), workInProgress.flags |= 4096); 4424 return workInProgress; 4425 } 4426 if (showFallback) return reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress.mode, prevState = current.child, digest = prevState.sibling, nextProps = createWorkInProgress(prevState, { 4427 mode: "hidden", 4428 children: nextProps.children 4429 }), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, null !== digest ? nextPrimaryChildren = createWorkInProgress(digest, nextPrimaryChildren) : (nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes, null), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress, nextProps.return = workInProgress, nextProps.sibling = nextPrimaryChildren, workInProgress.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress.child, nextPrimaryChildren = current.child.memoizedState, null === nextPrimaryChildren ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes) : (showFallback = nextPrimaryChildren.cachePool, null !== showFallback ? (prevState = CacheContext._currentValue, showFallback = showFallback.parent !== prevState ? { 4430 parent: prevState, 4431 pool: prevState 4432 } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = { 4433 baseLanes: nextPrimaryChildren.baseLanes | renderLanes, 4434 cachePool: showFallback 4435 }), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps); 4436 pushPrimaryTreeSuspenseHandler(workInProgress); 4437 renderLanes = current.child; 4438 current = renderLanes.sibling; 4439 renderLanes = createWorkInProgress(renderLanes, { 4440 mode: "visible", 4441 children: nextProps.children 4442 }); 4443 renderLanes.return = workInProgress; 4444 renderLanes.sibling = null; 4445 null !== current && (JSCompiler_temp = workInProgress.deletions, null === JSCompiler_temp ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : JSCompiler_temp.push(current)); 4446 workInProgress.child = renderLanes; 4447 workInProgress.memoizedState = null; 4448 return renderLanes; 4449 } 4450 function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { 4451 primaryChildren = mountWorkInProgressOffscreenFiber({ 4452 mode: "visible", 4453 children: primaryChildren 4454 }, workInProgress.mode); 4455 primaryChildren.return = workInProgress; 4456 return workInProgress.child = primaryChildren; 4457 } 4458 function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { 4459 offscreenProps = createFiberImplClass(22, offscreenProps, null, mode); 4460 offscreenProps.lanes = 0; 4461 return offscreenProps; 4462 } 4463 function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes) { 4464 reconcileChildFibers(workInProgress, current.child, null, renderLanes); 4465 current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children); 4466 current.flags |= 2; 4467 workInProgress.memoizedState = null; 4468 return current; 4469 } 4470 function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) { 4471 fiber.lanes |= renderLanes; 4472 var alternate = fiber.alternate; 4473 null !== alternate && (alternate.lanes |= renderLanes); 4474 scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot); 4475 } 4476 function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, treeForkCount) { 4477 var renderState = workInProgress.memoizedState; 4478 null === renderState ? workInProgress.memoizedState = { 4479 isBackwards, 4480 rendering: null, 4481 renderingStartTime: 0, 4482 last: lastContentRow, 4483 tail, 4484 tailMode, 4485 treeForkCount 4486 } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount); 4487 } 4488 function updateSuspenseListComponent(current, workInProgress, renderLanes) { 4489 var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail; 4490 nextProps = nextProps.children; 4491 var suspenseContext = suspenseStackCursor.current, shouldForceFallback = 0 !== (suspenseContext & 2); 4492 shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress.flags |= 128) : suspenseContext &= 1; 4493 push(suspenseStackCursor, suspenseContext); 4494 reconcileChildren(current, workInProgress, nextProps, renderLanes); 4495 nextProps = isHydrating ? treeForkCount : 0; 4496 if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128)) a: for (current = workInProgress.child; null !== current;) { 4497 if (13 === current.tag) null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 4498 else if (19 === current.tag) scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress); 4499 else if (null !== current.child) { 4500 current.child.return = current; 4501 current = current.child; 4502 continue; 4503 } 4504 if (current === workInProgress) break a; 4505 for (; null === current.sibling;) { 4506 if (null === current.return || current.return === workInProgress) break a; 4507 current = current.return; 4508 } 4509 current.sibling.return = current.return; 4510 current = current.sibling; 4511 } 4512 switch (revealOrder) { 4513 case "forwards": 4514 renderLanes = workInProgress.child; 4515 for (revealOrder = null; null !== renderLanes;) current = renderLanes.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes), renderLanes = renderLanes.sibling; 4516 renderLanes = revealOrder; 4517 null === renderLanes ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null); 4518 initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode, nextProps); 4519 break; 4520 case "backwards": 4521 case "unstable_legacy-backwards": 4522 renderLanes = null; 4523 revealOrder = workInProgress.child; 4524 for (workInProgress.child = null; null !== revealOrder;) { 4525 current = revealOrder.alternate; 4526 if (null !== current && null === findFirstSuspended(current)) { 4527 workInProgress.child = revealOrder; 4528 break; 4529 } 4530 current = revealOrder.sibling; 4531 revealOrder.sibling = renderLanes; 4532 renderLanes = revealOrder; 4533 revealOrder = current; 4534 } 4535 initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode, nextProps); 4536 break; 4537 case "together": 4538 initSuspenseListRenderState(workInProgress, !1, null, null, void 0, nextProps); 4539 break; 4540 default: workInProgress.memoizedState = null; 4541 } 4542 return workInProgress.child; 4543 } 4544 function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) { 4545 null !== current && (workInProgress.dependencies = current.dependencies); 4546 workInProgressRootSkippedLanes |= workInProgress.lanes; 4547 if (0 === (renderLanes & workInProgress.childLanes)) if (null !== current) { 4548 if (propagateParentContextChanges(current, workInProgress, renderLanes, !1), 0 === (renderLanes & workInProgress.childLanes)) return null; 4549 } else return null; 4550 if (null !== current && workInProgress.child !== current.child) throw Error(formatProdErrorMessage(153)); 4551 if (null !== workInProgress.child) { 4552 current = workInProgress.child; 4553 renderLanes = createWorkInProgress(current, current.pendingProps); 4554 workInProgress.child = renderLanes; 4555 for (renderLanes.return = workInProgress; null !== current.sibling;) current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress; 4556 renderLanes.sibling = null; 4557 } 4558 return workInProgress.child; 4559 } 4560 function checkScheduledUpdateOrContext(current, renderLanes) { 4561 if (0 !== (current.lanes & renderLanes)) return !0; 4562 current = current.dependencies; 4563 return null !== current && checkIfContextChanged(current) ? !0 : !1; 4564 } 4565 function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) { 4566 switch (workInProgress.tag) { 4567 case 3: 4568 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 4569 pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 4570 resetHydrationState(); 4571 break; 4572 case 27: 4573 case 5: 4574 pushHostContext(workInProgress); 4575 break; 4576 case 4: 4577 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 4578 break; 4579 case 10: 4580 pushProvider(workInProgress, workInProgress.type, workInProgress.memoizedProps.value); 4581 break; 4582 case 31: 4583 if (null !== workInProgress.memoizedState) return workInProgress.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress), null; 4584 break; 4585 case 13: 4586 var state$102 = workInProgress.memoizedState; 4587 if (null !== state$102) { 4588 if (null !== state$102.dehydrated) return pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags |= 128, null; 4589 if (0 !== (renderLanes & workInProgress.child.childLanes)) return updateSuspenseComponent(current, workInProgress, renderLanes); 4590 pushPrimaryTreeSuspenseHandler(workInProgress); 4591 current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4592 return null !== current ? current.sibling : null; 4593 } 4594 pushPrimaryTreeSuspenseHandler(workInProgress); 4595 break; 4596 case 19: 4597 var didSuspendBefore = 0 !== (current.flags & 128); 4598 state$102 = 0 !== (renderLanes & workInProgress.childLanes); 4599 state$102 || (propagateParentContextChanges(current, workInProgress, renderLanes, !1), state$102 = 0 !== (renderLanes & workInProgress.childLanes)); 4600 if (didSuspendBefore) { 4601 if (state$102) return updateSuspenseListComponent(current, workInProgress, renderLanes); 4602 workInProgress.flags |= 128; 4603 } 4604 didSuspendBefore = workInProgress.memoizedState; 4605 null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null); 4606 push(suspenseStackCursor, suspenseStackCursor.current); 4607 if (state$102) break; 4608 else return null; 4609 case 22: return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps); 4610 case 24: pushProvider(workInProgress, CacheContext, current.memoizedState.cache); 4611 } 4612 return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4613 } 4614 function beginWork(current, workInProgress, renderLanes) { 4615 if (null !== current) if (current.memoizedProps !== workInProgress.pendingProps) didReceiveUpdate = !0; 4616 else { 4617 if (!checkScheduledUpdateOrContext(current, renderLanes) && 0 === (workInProgress.flags & 128)) return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes); 4618 didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1; 4619 } 4620 else didReceiveUpdate = !1, isHydrating && 0 !== (workInProgress.flags & 1048576) && pushTreeId(workInProgress, treeForkCount, workInProgress.index); 4621 workInProgress.lanes = 0; 4622 switch (workInProgress.tag) { 4623 case 16: 4624 a: { 4625 var props = workInProgress.pendingProps; 4626 current = resolveLazy(workInProgress.elementType); 4627 workInProgress.type = current; 4628 if ("function" === typeof current) shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress.tag = 1, workInProgress = updateClassComponent(null, workInProgress, current, props, renderLanes)) : (workInProgress.tag = 0, workInProgress = updateFunctionComponent(null, workInProgress, current, props, renderLanes)); 4629 else { 4630 if (void 0 !== current && null !== current) { 4631 var $$typeof = current.$$typeof; 4632 if ($$typeof === REACT_FORWARD_REF_TYPE) { 4633 workInProgress.tag = 11; 4634 workInProgress = updateForwardRef(null, workInProgress, current, props, renderLanes); 4635 break a; 4636 } else if ($$typeof === REACT_MEMO_TYPE) { 4637 workInProgress.tag = 14; 4638 workInProgress = updateMemoComponent(null, workInProgress, current, props, renderLanes); 4639 break a; 4640 } 4641 } 4642 workInProgress = getComponentNameFromType(current) || current; 4643 throw Error(formatProdErrorMessage(306, workInProgress, "")); 4644 } 4645 } 4646 return workInProgress; 4647 case 0: return updateFunctionComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 4648 case 1: return props = workInProgress.type, $$typeof = resolveClassComponentProps(props, workInProgress.pendingProps), updateClassComponent(current, workInProgress, props, $$typeof, renderLanes); 4649 case 3: 4650 a: { 4651 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 4652 if (null === current) throw Error(formatProdErrorMessage(387)); 4653 props = workInProgress.pendingProps; 4654 var prevState = workInProgress.memoizedState; 4655 $$typeof = prevState.element; 4656 cloneUpdateQueue(current, workInProgress); 4657 processUpdateQueue(workInProgress, props, null, renderLanes); 4658 var nextState = workInProgress.memoizedState; 4659 props = nextState.cache; 4660 pushProvider(workInProgress, CacheContext, props); 4661 props !== prevState.cache && propagateContextChanges(workInProgress, [CacheContext], renderLanes, !0); 4662 suspendIfUpdateReadFromEntangledAsyncAction(); 4663 props = nextState.element; 4664 if (prevState.isDehydrated) if (prevState = { 4665 element: props, 4666 isDehydrated: !1, 4667 cache: nextState.cache 4668 }, workInProgress.updateQueue.baseState = prevState, workInProgress.memoizedState = prevState, workInProgress.flags & 256) { 4669 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, props, renderLanes); 4670 break a; 4671 } else if (props !== $$typeof) { 4672 $$typeof = createCapturedValueAtFiber(Error(formatProdErrorMessage(424)), workInProgress); 4673 queueHydrationError($$typeof); 4674 workInProgress = mountHostRootWithoutHydrating(current, workInProgress, props, renderLanes); 4675 break a; 4676 } else { 4677 current = workInProgress.stateNode.containerInfo; 4678 switch (current.nodeType) { 4679 case 9: 4680 current = current.body; 4681 break; 4682 default: current = "HTML" === current.nodeName ? current.ownerDocument.body : current; 4683 } 4684 nextHydratableInstance = getNextHydratable(current.firstChild); 4685 hydrationParentFiber = workInProgress; 4686 isHydrating = !0; 4687 hydrationErrors = null; 4688 rootOrSingletonContext = !0; 4689 renderLanes = mountChildFibers(workInProgress, null, props, renderLanes); 4690 for (workInProgress.child = renderLanes; renderLanes;) renderLanes.flags = renderLanes.flags & -3 | 4096, renderLanes = renderLanes.sibling; 4691 } 4692 else { 4693 resetHydrationState(); 4694 if (props === $$typeof) { 4695 workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); 4696 break a; 4697 } 4698 reconcileChildren(current, workInProgress, props, renderLanes); 4699 } 4700 workInProgress = workInProgress.child; 4701 } 4702 return workInProgress; 4703 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, props = getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current).createElement(renderLanes), props[internalInstanceKey] = workInProgress, props[internalPropsKey] = current, setInitialProperties(props, renderLanes, current), markNodeAsHoistable(props), workInProgress.stateNode = props) : workInProgress.memoizedState = getResource(workInProgress.type, current.memoizedProps, workInProgress.pendingProps, current.memoizedState), null; 4704 case 27: return pushHostContext(workInProgress), null === current && isHydrating && (props = workInProgress.stateNode = resolveSingletonInstance(workInProgress.type, workInProgress.pendingProps, rootInstanceStackCursor.current), hydrationParentFiber = workInProgress, rootOrSingletonContext = !0, $$typeof = nextHydratableInstance, isSingletonScope(workInProgress.type) ? (previousHydratableOnEnteringScopedSingleton = $$typeof, nextHydratableInstance = getNextHydratable(props.firstChild)) : nextHydratableInstance = $$typeof), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), markRef(current, workInProgress), null === current && (workInProgress.flags |= 4194304), workInProgress.child; 4705 case 5: 4706 if (null === current && isHydrating) { 4707 if ($$typeof = props = nextHydratableInstance) props = canHydrateInstance(props, workInProgress.type, workInProgress.pendingProps, rootOrSingletonContext), null !== props ? (workInProgress.stateNode = props, hydrationParentFiber = workInProgress, nextHydratableInstance = getNextHydratable(props.firstChild), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1; 4708 $$typeof || throwOnHydrationMismatch(workInProgress); 4709 } 4710 pushHostContext(workInProgress); 4711 $$typeof = workInProgress.type; 4712 prevState = workInProgress.pendingProps; 4713 nextState = null !== current ? current.memoizedProps : null; 4714 props = prevState.children; 4715 shouldSetTextContent($$typeof, prevState) ? props = null : null !== nextState && shouldSetTextContent($$typeof, nextState) && (workInProgress.flags |= 32); 4716 null !== workInProgress.memoizedState && ($$typeof = renderWithHooks(current, workInProgress, TransitionAwareHostComponent, null, null, renderLanes), HostTransitionContext._currentValue = $$typeof); 4717 markRef(current, workInProgress); 4718 reconcileChildren(current, workInProgress, props, renderLanes); 4719 return workInProgress.child; 4720 case 6: 4721 if (null === current && isHydrating) { 4722 if (current = renderLanes = nextHydratableInstance) renderLanes = canHydrateTextInstance(renderLanes, workInProgress.pendingProps, rootOrSingletonContext), null !== renderLanes ? (workInProgress.stateNode = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null, current = !0) : current = !1; 4723 current || throwOnHydrationMismatch(workInProgress); 4724 } 4725 return null; 4726 case 13: return updateSuspenseComponent(current, workInProgress, renderLanes); 4727 case 4: return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, null === current ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderLanes) : reconcileChildren(current, workInProgress, props, renderLanes), workInProgress.child; 4728 case 11: return updateForwardRef(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 4729 case 7: return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child; 4730 case 8: return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 4731 case 12: return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 4732 case 10: return props = workInProgress.pendingProps, pushProvider(workInProgress, workInProgress.type, props.value), reconcileChildren(current, workInProgress, props.children, renderLanes), workInProgress.child; 4733 case 9: return $$typeof = workInProgress.type._context, props = workInProgress.pendingProps.children, prepareToReadContext(workInProgress), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, props, renderLanes), workInProgress.child; 4734 case 14: return updateMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 4735 case 15: return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes); 4736 case 19: return updateSuspenseListComponent(current, workInProgress, renderLanes); 4737 case 31: return updateActivityComponent(current, workInProgress, renderLanes); 4738 case 22: return updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps); 4739 case 24: return prepareToReadContext(workInProgress), props = readContext(CacheContext), null === current ? ($$typeof = peekCacheFromPool(), null === $$typeof && ($$typeof = workInProgressRoot, prevState = createCache(), $$typeof.pooledCache = prevState, prevState.refCount++, null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes), $$typeof = prevState), workInProgress.memoizedState = { 4740 parent: props, 4741 cache: $$typeof 4742 }, initializeUpdateQueue(workInProgress), pushProvider(workInProgress, CacheContext, $$typeof)) : (0 !== (current.lanes & renderLanes) && (cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, null, null, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, prevState = workInProgress.memoizedState, $$typeof.parent !== props ? ($$typeof = { 4743 parent: props, 4744 cache: props 4745 }, workInProgress.memoizedState = $$typeof, 0 === workInProgress.lanes && (workInProgress.memoizedState = workInProgress.updateQueue.baseState = $$typeof), pushProvider(workInProgress, CacheContext, props)) : (props = prevState.cache, pushProvider(workInProgress, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(workInProgress, [CacheContext], renderLanes, !0))), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child; 4746 case 29: throw workInProgress.pendingProps; 4747 } 4748 throw Error(formatProdErrorMessage(156, workInProgress.tag)); 4749 } 4750 function markUpdate(workInProgress) { 4751 workInProgress.flags |= 4; 4752 } 4753 function preloadInstanceAndSuspendIfNeeded(workInProgress, type, oldProps, newProps, renderLanes) { 4754 if (type = 0 !== (workInProgress.mode & 32)) type = !1; 4755 if (type) { 4756 if (workInProgress.flags |= 16777216, (renderLanes & 335544128) === renderLanes) if (workInProgress.stateNode.complete) workInProgress.flags |= 8192; 4757 else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 4758 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 4759 } else workInProgress.flags &= -16777217; 4760 } 4761 function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { 4762 if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; 4763 else if (workInProgress.flags |= 16777216, !preloadResource(resource)) if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; 4764 else throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 4765 } 4766 function scheduleRetryEffect(workInProgress, retryQueue) { 4767 null !== retryQueue && (workInProgress.flags |= 4); 4768 workInProgress.flags & 16384 && (retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912, workInProgress.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue); 4769 } 4770 function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { 4771 if (!isHydrating) switch (renderState.tailMode) { 4772 case "hidden": 4773 hasRenderedATailFallback = renderState.tail; 4774 for (var lastTailNode = null; null !== hasRenderedATailFallback;) null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling; 4775 null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; 4776 break; 4777 case "collapsed": 4778 lastTailNode = renderState.tail; 4779 for (var lastTailNode$106 = null; null !== lastTailNode;) null !== lastTailNode.alternate && (lastTailNode$106 = lastTailNode), lastTailNode = lastTailNode.sibling; 4780 null === lastTailNode$106 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$106.sibling = null; 4781 } 4782 } 4783 function bubbleProperties(completedWork) { 4784 var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0; 4785 if (didBailout) for (var child$107 = completedWork.child; null !== child$107;) newChildLanes |= child$107.lanes | child$107.childLanes, subtreeFlags |= child$107.subtreeFlags & 65011712, subtreeFlags |= child$107.flags & 65011712, child$107.return = completedWork, child$107 = child$107.sibling; 4786 else for (child$107 = completedWork.child; null !== child$107;) newChildLanes |= child$107.lanes | child$107.childLanes, subtreeFlags |= child$107.subtreeFlags, subtreeFlags |= child$107.flags, child$107.return = completedWork, child$107 = child$107.sibling; 4787 completedWork.subtreeFlags |= subtreeFlags; 4788 completedWork.childLanes = newChildLanes; 4789 return didBailout; 4790 } 4791 function completeWork(current, workInProgress, renderLanes) { 4792 var newProps = workInProgress.pendingProps; 4793 popTreeContext(workInProgress); 4794 switch (workInProgress.tag) { 4795 case 16: 4796 case 15: 4797 case 0: 4798 case 11: 4799 case 7: 4800 case 8: 4801 case 12: 4802 case 9: 4803 case 14: return bubbleProperties(workInProgress), null; 4804 case 1: return bubbleProperties(workInProgress), null; 4805 case 3: 4806 renderLanes = workInProgress.stateNode; 4807 newProps = null; 4808 null !== current && (newProps = current.memoizedState.cache); 4809 workInProgress.memoizedState.cache !== newProps && (workInProgress.flags |= 2048); 4810 popProvider(CacheContext); 4811 popHostContainer(); 4812 renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null); 4813 if (null === current || null === current.child) popHydrationState(workInProgress) ? markUpdate(workInProgress) : null === current || current.memoizedState.isDehydrated && 0 === (workInProgress.flags & 256) || (workInProgress.flags |= 1024, upgradeHydrationErrorsToRecoverable()); 4814 bubbleProperties(workInProgress); 4815 return null; 4816 case 26: 4817 var type = workInProgress.type, nextResource = workInProgress.memoizedState; 4818 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)); 4819 return null; 4820 case 27: 4821 popHostContext(workInProgress); 4822 renderLanes = rootInstanceStackCursor.current; 4823 type = workInProgress.type; 4824 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 4825 else { 4826 if (!newProps) { 4827 if (null === workInProgress.stateNode) throw Error(formatProdErrorMessage(166)); 4828 bubbleProperties(workInProgress); 4829 return null; 4830 } 4831 current = contextStackCursor.current; 4832 popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : (current = resolveSingletonInstance(type, newProps, renderLanes), workInProgress.stateNode = current, markUpdate(workInProgress)); 4833 } 4834 bubbleProperties(workInProgress); 4835 return null; 4836 case 5: 4837 popHostContext(workInProgress); 4838 type = workInProgress.type; 4839 if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 4840 else { 4841 if (!newProps) { 4842 if (null === workInProgress.stateNode) throw Error(formatProdErrorMessage(166)); 4843 bubbleProperties(workInProgress); 4844 return null; 4845 } 4846 nextResource = contextStackCursor.current; 4847 if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, nextResource); 4848 else { 4849 var ownerDocument = getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current); 4850 switch (nextResource) { 4851 case 1: 4852 nextResource = ownerDocument.createElementNS("http://www.w3.org/2000/svg", type); 4853 break; 4854 case 2: 4855 nextResource = ownerDocument.createElementNS("http://www.w3.org/1998/Math/MathML", type); 4856 break; 4857 default: switch (type) { 4858 case "svg": 4859 nextResource = ownerDocument.createElementNS("http://www.w3.org/2000/svg", type); 4860 break; 4861 case "math": 4862 nextResource = ownerDocument.createElementNS("http://www.w3.org/1998/Math/MathML", type); 4863 break; 4864 case "script": 4865 nextResource = ownerDocument.createElement("div"); 4866 nextResource.innerHTML = "<script><\/script>"; 4867 nextResource = nextResource.removeChild(nextResource.firstChild); 4868 break; 4869 case "select": 4870 nextResource = "string" === typeof newProps.is ? ownerDocument.createElement("select", { is: newProps.is }) : ownerDocument.createElement("select"); 4871 newProps.multiple ? nextResource.multiple = !0 : newProps.size && (nextResource.size = newProps.size); 4872 break; 4873 default: nextResource = "string" === typeof newProps.is ? ownerDocument.createElement(type, { is: newProps.is }) : ownerDocument.createElement(type); 4874 } 4875 } 4876 nextResource[internalInstanceKey] = workInProgress; 4877 nextResource[internalPropsKey] = newProps; 4878 a: for (ownerDocument = workInProgress.child; null !== ownerDocument;) { 4879 if (5 === ownerDocument.tag || 6 === ownerDocument.tag) nextResource.appendChild(ownerDocument.stateNode); 4880 else if (4 !== ownerDocument.tag && 27 !== ownerDocument.tag && null !== ownerDocument.child) { 4881 ownerDocument.child.return = ownerDocument; 4882 ownerDocument = ownerDocument.child; 4883 continue; 4884 } 4885 if (ownerDocument === workInProgress) break a; 4886 for (; null === ownerDocument.sibling;) { 4887 if (null === ownerDocument.return || ownerDocument.return === workInProgress) break a; 4888 ownerDocument = ownerDocument.return; 4889 } 4890 ownerDocument.sibling.return = ownerDocument.return; 4891 ownerDocument = ownerDocument.sibling; 4892 } 4893 workInProgress.stateNode = nextResource; 4894 a: switch (setInitialProperties(nextResource, type, newProps), type) { 4895 case "button": 4896 case "input": 4897 case "select": 4898 case "textarea": 4899 newProps = !!newProps.autoFocus; 4900 break a; 4901 case "img": 4902 newProps = !0; 4903 break a; 4904 default: newProps = !1; 4905 } 4906 newProps && markUpdate(workInProgress); 4907 } 4908 } 4909 bubbleProperties(workInProgress); 4910 preloadInstanceAndSuspendIfNeeded(workInProgress, workInProgress.type, null === current ? null : current.memoizedProps, workInProgress.pendingProps, renderLanes); 4911 return null; 4912 case 6: 4913 if (current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); 4914 else { 4915 if ("string" !== typeof newProps && null === workInProgress.stateNode) throw Error(formatProdErrorMessage(166)); 4916 current = rootInstanceStackCursor.current; 4917 if (popHydrationState(workInProgress)) { 4918 current = workInProgress.stateNode; 4919 renderLanes = workInProgress.memoizedProps; 4920 newProps = null; 4921 type = hydrationParentFiber; 4922 if (null !== type) switch (type.tag) { 4923 case 27: 4924 case 5: newProps = type.memoizedProps; 4925 } 4926 current[internalInstanceKey] = workInProgress; 4927 current = current.nodeValue === renderLanes || null !== newProps && !0 === newProps.suppressHydrationWarning || checkForUnmatchedText(current.nodeValue, renderLanes) ? !0 : !1; 4928 current || throwOnHydrationMismatch(workInProgress, !0); 4929 } else current = getOwnerDocumentFromRootContainer(current).createTextNode(newProps), current[internalInstanceKey] = workInProgress, workInProgress.stateNode = current; 4930 } 4931 bubbleProperties(workInProgress); 4932 return null; 4933 case 31: 4934 renderLanes = workInProgress.memoizedState; 4935 if (null === current || null !== current.memoizedState) { 4936 newProps = popHydrationState(workInProgress); 4937 if (null !== renderLanes) { 4938 if (null === current) { 4939 if (!newProps) throw Error(formatProdErrorMessage(318)); 4940 current = workInProgress.memoizedState; 4941 current = null !== current ? current.dehydrated : null; 4942 if (!current) throw Error(formatProdErrorMessage(557)); 4943 current[internalInstanceKey] = workInProgress; 4944 } else resetHydrationState(), 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null), workInProgress.flags |= 4; 4945 bubbleProperties(workInProgress); 4946 current = !1; 4947 } else renderLanes = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = renderLanes), current = !0; 4948 if (!current) { 4949 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 4950 popSuspenseHandler(workInProgress); 4951 return null; 4952 } 4953 if (0 !== (workInProgress.flags & 128)) throw Error(formatProdErrorMessage(558)); 4954 } 4955 bubbleProperties(workInProgress); 4956 return null; 4957 case 13: 4958 newProps = workInProgress.memoizedState; 4959 if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) { 4960 type = popHydrationState(workInProgress); 4961 if (null !== newProps && null !== newProps.dehydrated) { 4962 if (null === current) { 4963 if (!type) throw Error(formatProdErrorMessage(318)); 4964 type = workInProgress.memoizedState; 4965 type = null !== type ? type.dehydrated : null; 4966 if (!type) throw Error(formatProdErrorMessage(317)); 4967 type[internalInstanceKey] = workInProgress; 4968 } else resetHydrationState(), 0 === (workInProgress.flags & 128) && (workInProgress.memoizedState = null), workInProgress.flags |= 4; 4969 bubbleProperties(workInProgress); 4970 type = !1; 4971 } else type = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = type), type = !0; 4972 if (!type) { 4973 if (workInProgress.flags & 256) return popSuspenseHandler(workInProgress), workInProgress; 4974 popSuspenseHandler(workInProgress); 4975 return null; 4976 } 4977 } 4978 popSuspenseHandler(workInProgress); 4979 if (0 !== (workInProgress.flags & 128)) return workInProgress.lanes = renderLanes, workInProgress; 4980 renderLanes = null !== newProps; 4981 current = null !== current && null !== current.memoizedState; 4982 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)); 4983 renderLanes !== current && renderLanes && (workInProgress.child.flags |= 8192); 4984 scheduleRetryEffect(workInProgress, workInProgress.updateQueue); 4985 bubbleProperties(workInProgress); 4986 return null; 4987 case 4: return popHostContainer(), null === current && listenToAllSupportedEvents(workInProgress.stateNode.containerInfo), bubbleProperties(workInProgress), null; 4988 case 10: return popProvider(workInProgress.type), bubbleProperties(workInProgress), null; 4989 case 19: 4990 pop(suspenseStackCursor); 4991 newProps = workInProgress.memoizedState; 4992 if (null === newProps) return bubbleProperties(workInProgress), null; 4993 type = 0 !== (workInProgress.flags & 128); 4994 nextResource = newProps.rendering; 4995 if (null === nextResource) if (type) cutOffTailIfNeeded(newProps, !1); 4996 else { 4997 if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128)) for (current = workInProgress.child; null !== current;) { 4998 nextResource = findFirstSuspended(current); 4999 if (null !== nextResource) { 5000 workInProgress.flags |= 128; 5001 cutOffTailIfNeeded(newProps, !1); 5002 current = nextResource.updateQueue; 5003 workInProgress.updateQueue = current; 5004 scheduleRetryEffect(workInProgress, current); 5005 workInProgress.subtreeFlags = 0; 5006 current = renderLanes; 5007 for (renderLanes = workInProgress.child; null !== renderLanes;) resetWorkInProgress(renderLanes, current), renderLanes = renderLanes.sibling; 5008 push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2); 5009 isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount); 5010 return workInProgress.child; 5011 } 5012 current = current.sibling; 5013 } 5014 null !== newProps.tail && now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 5015 } 5016 else { 5017 if (!type) if (current = findFirstSuspended(nextResource), null !== current) { 5018 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; 5019 } else 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304); 5020 newProps.isBackwards ? (nextResource.sibling = workInProgress.child, workInProgress.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress.child = nextResource, newProps.last = nextResource); 5021 } 5022 if (null !== newProps.tail) return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes = suspenseStackCursor.current, push(suspenseStackCursor, type ? renderLanes & 1 | 2 : renderLanes & 1), isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount), current; 5023 bubbleProperties(workInProgress); 5024 return null; 5025 case 22: 5026 case 23: return popSuspenseHandler(workInProgress), popHiddenContext(), 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), null; 5027 case 24: return renderLanes = null, null !== current && (renderLanes = current.memoizedState.cache), workInProgress.memoizedState.cache !== renderLanes && (workInProgress.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress), null; 5028 case 25: return null; 5029 case 30: return null; 5030 } 5031 throw Error(formatProdErrorMessage(156, workInProgress.tag)); 5032 } 5033 function unwindWork(current, workInProgress) { 5034 popTreeContext(workInProgress); 5035 switch (workInProgress.tag) { 5036 case 1: return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 5037 case 3: return popProvider(CacheContext), popHostContainer(), current = workInProgress.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 5038 case 26: 5039 case 27: 5040 case 5: return popHostContext(workInProgress), null; 5041 case 31: 5042 if (null !== workInProgress.memoizedState) { 5043 popSuspenseHandler(workInProgress); 5044 if (null === workInProgress.alternate) throw Error(formatProdErrorMessage(340)); 5045 resetHydrationState(); 5046 } 5047 current = workInProgress.flags; 5048 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 5049 case 13: 5050 popSuspenseHandler(workInProgress); 5051 current = workInProgress.memoizedState; 5052 if (null !== current && null !== current.dehydrated) { 5053 if (null === workInProgress.alternate) throw Error(formatProdErrorMessage(340)); 5054 resetHydrationState(); 5055 } 5056 current = workInProgress.flags; 5057 return current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 5058 case 19: return pop(suspenseStackCursor), null; 5059 case 4: return popHostContainer(), null; 5060 case 10: return popProvider(workInProgress.type), null; 5061 case 22: 5062 case 23: return popSuspenseHandler(workInProgress), popHiddenContext(), null !== current && pop(resumedCache), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null; 5063 case 24: return popProvider(CacheContext), null; 5064 case 25: return null; 5065 default: return null; 5066 } 5067 } 5068 function unwindInterruptedWork(current, interruptedWork) { 5069 popTreeContext(interruptedWork); 5070 switch (interruptedWork.tag) { 5071 case 3: 5072 popProvider(CacheContext); 5073 popHostContainer(); 5074 break; 5075 case 26: 5076 case 27: 5077 case 5: 5078 popHostContext(interruptedWork); 5079 break; 5080 case 4: 5081 popHostContainer(); 5082 break; 5083 case 31: 5084 null !== interruptedWork.memoizedState && popSuspenseHandler(interruptedWork); 5085 break; 5086 case 13: 5087 popSuspenseHandler(interruptedWork); 5088 break; 5089 case 19: 5090 pop(suspenseStackCursor); 5091 break; 5092 case 10: 5093 popProvider(interruptedWork.type); 5094 break; 5095 case 22: 5096 case 23: 5097 popSuspenseHandler(interruptedWork); 5098 popHiddenContext(); 5099 null !== current && pop(resumedCache); 5100 break; 5101 case 24: popProvider(CacheContext); 5102 } 5103 } 5104 function commitHookEffectListMount(flags, finishedWork) { 5105 try { 5106 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 5107 if (null !== lastEffect) { 5108 var firstEffect = lastEffect.next; 5109 updateQueue = firstEffect; 5110 do { 5111 if ((updateQueue.tag & flags) === flags) { 5112 lastEffect = void 0; 5113 var create = updateQueue.create, inst = updateQueue.inst; 5114 lastEffect = create(); 5115 inst.destroy = lastEffect; 5116 } 5117 updateQueue = updateQueue.next; 5118 } while (updateQueue !== firstEffect); 5119 } 5120 } catch (error) { 5121 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5122 } 5123 } 5124 function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor$jscomp$0) { 5125 try { 5126 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 5127 if (null !== lastEffect) { 5128 var firstEffect = lastEffect.next; 5129 updateQueue = firstEffect; 5130 do { 5131 if ((updateQueue.tag & flags) === flags) { 5132 var inst = updateQueue.inst, destroy = inst.destroy; 5133 if (void 0 !== destroy) { 5134 inst.destroy = void 0; 5135 lastEffect = finishedWork; 5136 var nearestMountedAncestor = nearestMountedAncestor$jscomp$0, destroy_ = destroy; 5137 try { 5138 destroy_(); 5139 } catch (error) { 5140 captureCommitPhaseError(lastEffect, nearestMountedAncestor, error); 5141 } 5142 } 5143 } 5144 updateQueue = updateQueue.next; 5145 } while (updateQueue !== firstEffect); 5146 } 5147 } catch (error) { 5148 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5149 } 5150 } 5151 function commitClassCallbacks(finishedWork) { 5152 var updateQueue = finishedWork.updateQueue; 5153 if (null !== updateQueue) { 5154 var instance = finishedWork.stateNode; 5155 try { 5156 commitCallbacks(updateQueue, instance); 5157 } catch (error) { 5158 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5159 } 5160 } 5161 } 5162 function safelyCallComponentWillUnmount(current, nearestMountedAncestor, instance) { 5163 instance.props = resolveClassComponentProps(current.type, current.memoizedProps); 5164 instance.state = current.memoizedState; 5165 try { 5166 instance.componentWillUnmount(); 5167 } catch (error) { 5168 captureCommitPhaseError(current, nearestMountedAncestor, error); 5169 } 5170 } 5171 function safelyAttachRef(current, nearestMountedAncestor) { 5172 try { 5173 var ref = current.ref; 5174 if (null !== ref) { 5175 switch (current.tag) { 5176 case 26: 5177 case 27: 5178 case 5: 5179 var instanceToUse = current.stateNode; 5180 break; 5181 case 30: 5182 instanceToUse = current.stateNode; 5183 break; 5184 default: instanceToUse = current.stateNode; 5185 } 5186 "function" === typeof ref ? current.refCleanup = ref(instanceToUse) : ref.current = instanceToUse; 5187 } 5188 } catch (error) { 5189 captureCommitPhaseError(current, nearestMountedAncestor, error); 5190 } 5191 } 5192 function safelyDetachRef(current, nearestMountedAncestor) { 5193 var ref = current.ref, refCleanup = current.refCleanup; 5194 if (null !== ref) if ("function" === typeof refCleanup) try { 5195 refCleanup(); 5196 } catch (error) { 5197 captureCommitPhaseError(current, nearestMountedAncestor, error); 5198 } finally { 5199 current.refCleanup = null, current = current.alternate, null != current && (current.refCleanup = null); 5200 } 5201 else if ("function" === typeof ref) try { 5202 ref(null); 5203 } catch (error$140) { 5204 captureCommitPhaseError(current, nearestMountedAncestor, error$140); 5205 } 5206 else ref.current = null; 5207 } 5208 function commitHostMount(finishedWork) { 5209 var type = finishedWork.type, props = finishedWork.memoizedProps, instance = finishedWork.stateNode; 5210 try { 5211 a: switch (type) { 5212 case "button": 5213 case "input": 5214 case "select": 5215 case "textarea": 5216 props.autoFocus && instance.focus(); 5217 break a; 5218 case "img": props.src ? instance.src = props.src : props.srcSet && (instance.srcset = props.srcSet); 5219 } 5220 } catch (error) { 5221 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5222 } 5223 } 5224 function commitHostUpdate(finishedWork, newProps, oldProps) { 5225 try { 5226 var domElement = finishedWork.stateNode; 5227 updateProperties(domElement, finishedWork.type, oldProps, newProps); 5228 domElement[internalPropsKey] = newProps; 5229 } catch (error) { 5230 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5231 } 5232 } 5233 function isHostParent(fiber) { 5234 return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag; 5235 } 5236 function getHostSibling(fiber) { 5237 a: for (;;) { 5238 for (; null === fiber.sibling;) { 5239 if (null === fiber.return || isHostParent(fiber.return)) return null; 5240 fiber = fiber.return; 5241 } 5242 fiber.sibling.return = fiber.return; 5243 for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;) { 5244 if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a; 5245 if (fiber.flags & 2) continue a; 5246 if (null === fiber.child || 4 === fiber.tag) continue a; 5247 else fiber.child.return = fiber, fiber = fiber.child; 5248 } 5249 if (!(fiber.flags & 2)) return fiber.stateNode; 5250 } 5251 } 5252 function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { 5253 var tag = node.tag; 5254 if (5 === tag || 6 === tag) node = node.stateNode, before ? (9 === parent.nodeType ? parent.body : "HTML" === parent.nodeName ? parent.ownerDocument.body : parent).insertBefore(node, before) : (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)); 5255 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; 5256 } 5257 function insertOrAppendPlacementNode(node, before, parent) { 5258 var tag = node.tag; 5259 if (5 === tag || 6 === tag) node = node.stateNode, before ? parent.insertBefore(node, before) : parent.appendChild(node); 5260 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; 5261 } 5262 function commitHostSingletonAcquisition(finishedWork) { 5263 var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps; 5264 try { 5265 for (var type = finishedWork.type, attributes = singleton.attributes; attributes.length;) singleton.removeAttributeNode(attributes[0]); 5266 setInitialProperties(singleton, type, props); 5267 singleton[internalInstanceKey] = finishedWork; 5268 singleton[internalPropsKey] = props; 5269 } catch (error) { 5270 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5271 } 5272 } 5273 var offscreenSubtreeIsHidden = !1, offscreenSubtreeWasHidden = !1, needsFormReset = !1, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null; 5274 function commitBeforeMutationEffects(root, firstChild) { 5275 root = root.containerInfo; 5276 eventsEnabled = _enabled; 5277 root = getActiveElementDeep(root); 5278 if (hasSelectionCapabilities(root)) { 5279 if ("selectionStart" in root) var JSCompiler_temp = { 5280 start: root.selectionStart, 5281 end: root.selectionEnd 5282 }; 5283 else a: { 5284 JSCompiler_temp = (JSCompiler_temp = root.ownerDocument) && JSCompiler_temp.defaultView || window; 5285 var selection = JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); 5286 if (selection && 0 !== selection.rangeCount) { 5287 JSCompiler_temp = selection.anchorNode; 5288 var anchorOffset = selection.anchorOffset, focusNode = selection.focusNode; 5289 selection = selection.focusOffset; 5290 try { 5291 JSCompiler_temp.nodeType, focusNode.nodeType; 5292 } catch (e$20) { 5293 JSCompiler_temp = null; 5294 break a; 5295 } 5296 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root, parentNode = null; 5297 b: for (;;) { 5298 for (var next;;) { 5299 node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset); 5300 node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection); 5301 3 === node.nodeType && (length += node.nodeValue.length); 5302 if (null === (next = node.firstChild)) break; 5303 parentNode = node; 5304 node = next; 5305 } 5306 for (;;) { 5307 if (node === root) break b; 5308 parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length); 5309 parentNode === focusNode && ++indexWithinFocus === selection && (end = length); 5310 if (null !== (next = node.nextSibling)) break; 5311 node = parentNode; 5312 parentNode = node.parentNode; 5313 } 5314 node = next; 5315 } 5316 JSCompiler_temp = -1 === start || -1 === end ? null : { 5317 start, 5318 end 5319 }; 5320 } else JSCompiler_temp = null; 5321 } 5322 JSCompiler_temp = JSCompiler_temp || { 5323 start: 0, 5324 end: 0 5325 }; 5326 } else JSCompiler_temp = null; 5327 selectionInformation = { 5328 focusedElem: root, 5329 selectionRange: JSCompiler_temp 5330 }; 5331 _enabled = !1; 5332 for (nextEffect = firstChild; null !== nextEffect;) if (firstChild = nextEffect, root = firstChild.child, 0 !== (firstChild.subtreeFlags & 1028) && null !== root) root.return = firstChild, nextEffect = root; 5333 else for (; null !== nextEffect;) { 5334 firstChild = nextEffect; 5335 focusNode = firstChild.alternate; 5336 root = firstChild.flags; 5337 switch (firstChild.tag) { 5338 case 0: 5339 if (0 !== (root & 4) && (root = firstChild.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; 5340 break; 5341 case 11: 5342 case 15: break; 5343 case 1: 5344 if (0 !== (root & 1024) && null !== focusNode) { 5345 root = void 0; 5346 JSCompiler_temp = firstChild; 5347 anchorOffset = focusNode.memoizedProps; 5348 focusNode = focusNode.memoizedState; 5349 selection = JSCompiler_temp.stateNode; 5350 try { 5351 var resolvedPrevProps = resolveClassComponentProps(JSCompiler_temp.type, anchorOffset); 5352 root = selection.getSnapshotBeforeUpdate(resolvedPrevProps, focusNode); 5353 selection.__reactInternalSnapshotBeforeUpdate = root; 5354 } catch (error) { 5355 captureCommitPhaseError(JSCompiler_temp, JSCompiler_temp.return, error); 5356 } 5357 } 5358 break; 5359 case 3: 5360 if (0 !== (root & 1024)) { 5361 if (root = firstChild.stateNode.containerInfo, JSCompiler_temp = root.nodeType, 9 === JSCompiler_temp) clearContainerSparingly(root); 5362 else if (1 === JSCompiler_temp) switch (root.nodeName) { 5363 case "HEAD": 5364 case "HTML": 5365 case "BODY": 5366 clearContainerSparingly(root); 5367 break; 5368 default: root.textContent = ""; 5369 } 5370 } 5371 break; 5372 case 5: 5373 case 26: 5374 case 27: 5375 case 6: 5376 case 4: 5377 case 17: break; 5378 default: if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163)); 5379 } 5380 root = firstChild.sibling; 5381 if (null !== root) { 5382 root.return = firstChild.return; 5383 nextEffect = root; 5384 break; 5385 } 5386 nextEffect = firstChild.return; 5387 } 5388 } 5389 function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { 5390 var flags = finishedWork.flags; 5391 switch (finishedWork.tag) { 5392 case 0: 5393 case 11: 5394 case 15: 5395 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5396 flags & 4 && commitHookEffectListMount(5, finishedWork); 5397 break; 5398 case 1: 5399 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5400 if (flags & 4) if (finishedRoot = finishedWork.stateNode, null === current) try { 5401 finishedRoot.componentDidMount(); 5402 } catch (error) { 5403 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5404 } 5405 else { 5406 var prevProps = resolveClassComponentProps(finishedWork.type, current.memoizedProps); 5407 current = current.memoizedState; 5408 try { 5409 finishedRoot.componentDidUpdate(prevProps, current, finishedRoot.__reactInternalSnapshotBeforeUpdate); 5410 } catch (error$139) { 5411 captureCommitPhaseError(finishedWork, finishedWork.return, error$139); 5412 } 5413 } 5414 flags & 64 && commitClassCallbacks(finishedWork); 5415 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 5416 break; 5417 case 3: 5418 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5419 if (flags & 64 && (finishedRoot = finishedWork.updateQueue, null !== finishedRoot)) { 5420 current = null; 5421 if (null !== finishedWork.child) switch (finishedWork.child.tag) { 5422 case 27: 5423 case 5: 5424 current = finishedWork.child.stateNode; 5425 break; 5426 case 1: current = finishedWork.child.stateNode; 5427 } 5428 try { 5429 commitCallbacks(finishedRoot, current); 5430 } catch (error) { 5431 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5432 } 5433 } 5434 break; 5435 case 27: null === current && flags & 4 && commitHostSingletonAcquisition(finishedWork); 5436 case 26: 5437 case 5: 5438 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5439 null === current && flags & 4 && commitHostMount(finishedWork); 5440 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 5441 break; 5442 case 12: 5443 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5444 break; 5445 case 31: 5446 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5447 flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 5448 break; 5449 case 13: 5450 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5451 flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 5452 flags & 64 && (finishedRoot = finishedWork.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot && (finishedWork = retryDehydratedSuspenseBoundary.bind(null, finishedWork), registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); 5453 break; 5454 case 22: 5455 flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden; 5456 if (!flags) { 5457 current = null !== current && null !== current.memoizedState || offscreenSubtreeWasHidden; 5458 prevProps = offscreenSubtreeIsHidden; 5459 var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 5460 offscreenSubtreeIsHidden = flags; 5461 (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden ? recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, 0 !== (finishedWork.subtreeFlags & 8772)) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5462 offscreenSubtreeIsHidden = prevProps; 5463 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 5464 } 5465 break; 5466 case 30: break; 5467 default: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 5468 } 5469 } 5470 function detachFiberAfterEffects(fiber) { 5471 var alternate = fiber.alternate; 5472 null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); 5473 fiber.child = null; 5474 fiber.deletions = null; 5475 fiber.sibling = null; 5476 5 === fiber.tag && (alternate = fiber.stateNode, null !== alternate && detachDeletedInstance(alternate)); 5477 fiber.stateNode = null; 5478 fiber.return = null; 5479 fiber.dependencies = null; 5480 fiber.memoizedProps = null; 5481 fiber.memoizedState = null; 5482 fiber.pendingProps = null; 5483 fiber.stateNode = null; 5484 fiber.updateQueue = null; 5485 } 5486 var hostParent = null, hostParentIsContainer = !1; 5487 function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { 5488 for (parent = parent.child; null !== parent;) commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent), parent = parent.sibling; 5489 } 5490 function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { 5491 if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) try { 5492 injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); 5493 } catch (err) {} 5494 switch (deletedFiber.tag) { 5495 case 26: 5496 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 5497 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5498 deletedFiber.memoizedState ? deletedFiber.memoizedState.count-- : deletedFiber.stateNode && (deletedFiber = deletedFiber.stateNode, deletedFiber.parentNode.removeChild(deletedFiber)); 5499 break; 5500 case 27: 5501 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 5502 var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; 5503 isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = !1); 5504 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5505 releaseSingletonInstance(deletedFiber.stateNode); 5506 hostParent = prevHostParent; 5507 hostParentIsContainer = prevHostParentIsContainer; 5508 break; 5509 case 5: offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 5510 case 6: 5511 prevHostParent = hostParent; 5512 prevHostParentIsContainer = hostParentIsContainer; 5513 hostParent = null; 5514 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5515 hostParent = prevHostParent; 5516 hostParentIsContainer = prevHostParentIsContainer; 5517 if (null !== hostParent) if (hostParentIsContainer) try { 5518 (9 === hostParent.nodeType ? hostParent.body : "HTML" === hostParent.nodeName ? hostParent.ownerDocument.body : hostParent).removeChild(deletedFiber.stateNode); 5519 } catch (error) { 5520 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 5521 } 5522 else try { 5523 hostParent.removeChild(deletedFiber.stateNode); 5524 } catch (error) { 5525 captureCommitPhaseError(deletedFiber, nearestMountedAncestor, error); 5526 } 5527 break; 5528 case 18: 5529 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)); 5530 break; 5531 case 4: 5532 prevHostParent = hostParent; 5533 prevHostParentIsContainer = hostParentIsContainer; 5534 hostParent = deletedFiber.stateNode.containerInfo; 5535 hostParentIsContainer = !0; 5536 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5537 hostParent = prevHostParent; 5538 hostParentIsContainer = prevHostParentIsContainer; 5539 break; 5540 case 0: 5541 case 11: 5542 case 14: 5543 case 15: 5544 commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor); 5545 offscreenSubtreeWasHidden || commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor); 5546 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5547 break; 5548 case 1: 5549 offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, "function" === typeof prevHostParent.componentWillUnmount && safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, prevHostParent)); 5550 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5551 break; 5552 case 21: 5553 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5554 break; 5555 case 22: 5556 offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden) || null !== deletedFiber.memoizedState; 5557 recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5558 offscreenSubtreeWasHidden = prevHostParent; 5559 break; 5560 default: recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); 5561 } 5562 } 5563 function commitActivityHydrationCallbacks(finishedRoot, finishedWork) { 5564 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot))) { 5565 finishedRoot = finishedRoot.dehydrated; 5566 try { 5567 retryIfBlockedOn(finishedRoot); 5568 } catch (error) { 5569 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5570 } 5571 } 5572 } 5573 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { 5574 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot)))) try { 5575 retryIfBlockedOn(finishedRoot); 5576 } catch (error) { 5577 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5578 } 5579 } 5580 function getRetryCache(finishedWork) { 5581 switch (finishedWork.tag) { 5582 case 31: 5583 case 13: 5584 case 19: 5585 var retryCache = finishedWork.stateNode; 5586 null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); 5587 return retryCache; 5588 case 22: return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, null === retryCache && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache; 5589 default: throw Error(formatProdErrorMessage(435, finishedWork.tag)); 5590 } 5591 } 5592 function attachSuspenseRetryListeners(finishedWork, wakeables) { 5593 var retryCache = getRetryCache(finishedWork); 5594 wakeables.forEach(function(wakeable) { 5595 if (!retryCache.has(wakeable)) { 5596 retryCache.add(wakeable); 5597 var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); 5598 wakeable.then(retry, retry); 5599 } 5600 }); 5601 } 5602 function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { 5603 var deletions = parentFiber.deletions; 5604 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 5605 var childToDelete = deletions[i], root = root$jscomp$0, returnFiber = parentFiber, parent = returnFiber; 5606 a: for (; null !== parent;) { 5607 switch (parent.tag) { 5608 case 27: 5609 if (isSingletonScope(parent.type)) { 5610 hostParent = parent.stateNode; 5611 hostParentIsContainer = !1; 5612 break a; 5613 } 5614 break; 5615 case 5: 5616 hostParent = parent.stateNode; 5617 hostParentIsContainer = !1; 5618 break a; 5619 case 3: 5620 case 4: 5621 hostParent = parent.stateNode.containerInfo; 5622 hostParentIsContainer = !0; 5623 break a; 5624 } 5625 parent = parent.return; 5626 } 5627 if (null === hostParent) throw Error(formatProdErrorMessage(160)); 5628 commitDeletionEffectsOnFiber(root, returnFiber, childToDelete); 5629 hostParent = null; 5630 hostParentIsContainer = !1; 5631 root = childToDelete.alternate; 5632 null !== root && (root.return = null); 5633 childToDelete.return = null; 5634 } 5635 if (parentFiber.subtreeFlags & 13886) for (parentFiber = parentFiber.child; null !== parentFiber;) commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; 5636 } 5637 var currentHoistableRoot = null; 5638 function commitMutationEffectsOnFiber(finishedWork, root) { 5639 var current = finishedWork.alternate, flags = finishedWork.flags; 5640 switch (finishedWork.tag) { 5641 case 0: 5642 case 11: 5643 case 14: 5644 case 15: 5645 recursivelyTraverseMutationEffects(root, finishedWork); 5646 commitReconciliationEffects(finishedWork); 5647 flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), commitHookEffectListUnmount(5, finishedWork, finishedWork.return)); 5648 break; 5649 case 1: 5650 recursivelyTraverseMutationEffects(root, finishedWork); 5651 commitReconciliationEffects(finishedWork); 5652 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 5653 flags & 64 && offscreenSubtreeIsHidden && (finishedWork = finishedWork.updateQueue, null !== finishedWork && (flags = finishedWork.callbacks, null !== flags && (current = finishedWork.shared.hiddenCallbacks, finishedWork.shared.hiddenCallbacks = null === current ? flags : current.concat(flags)))); 5654 break; 5655 case 26: 5656 var hoistableRoot = currentHoistableRoot; 5657 recursivelyTraverseMutationEffects(root, finishedWork); 5658 commitReconciliationEffects(finishedWork); 5659 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 5660 if (flags & 4) { 5661 var currentResource = null !== current ? current.memoizedState : null; 5662 flags = finishedWork.memoizedState; 5663 if (null === current) if (null === flags) if (null === finishedWork.stateNode) { 5664 a: { 5665 flags = finishedWork.type; 5666 current = finishedWork.memoizedProps; 5667 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 5668 b: switch (flags) { 5669 case "title": 5670 currentResource = hoistableRoot.getElementsByTagName("title")[0]; 5671 if (!currentResource || currentResource[internalHoistableMarker] || currentResource[internalInstanceKey] || "http://www.w3.org/2000/svg" === currentResource.namespaceURI || currentResource.hasAttribute("itemprop")) currentResource = hoistableRoot.createElement(flags), hoistableRoot.head.insertBefore(currentResource, hoistableRoot.querySelector("head > title")); 5672 setInitialProperties(currentResource, flags, current); 5673 currentResource[internalInstanceKey] = finishedWork; 5674 markNodeAsHoistable(currentResource); 5675 flags = currentResource; 5676 break a; 5677 case "link": 5678 var maybeNodes = getHydratableHoistableCache("link", "href", hoistableRoot).get(flags + (current.href || "")); 5679 if (maybeNodes) { 5680 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)) { 5681 maybeNodes.splice(i, 1); 5682 break b; 5683 } 5684 } 5685 currentResource = hoistableRoot.createElement(flags); 5686 setInitialProperties(currentResource, flags, current); 5687 hoistableRoot.head.appendChild(currentResource); 5688 break; 5689 case "meta": 5690 if (maybeNodes = getHydratableHoistableCache("meta", "content", hoistableRoot).get(flags + (current.content || ""))) { 5691 for (i = 0; i < maybeNodes.length; i++) if (currentResource = maybeNodes[i], 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)) { 5692 maybeNodes.splice(i, 1); 5693 break b; 5694 } 5695 } 5696 currentResource = hoistableRoot.createElement(flags); 5697 setInitialProperties(currentResource, flags, current); 5698 hoistableRoot.head.appendChild(currentResource); 5699 break; 5700 default: throw Error(formatProdErrorMessage(468, flags)); 5701 } 5702 currentResource[internalInstanceKey] = finishedWork; 5703 markNodeAsHoistable(currentResource); 5704 flags = currentResource; 5705 } 5706 finishedWork.stateNode = flags; 5707 } else mountHoistable(hoistableRoot, finishedWork.type, finishedWork.stateNode); 5708 else finishedWork.stateNode = acquireResource(hoistableRoot, flags, finishedWork.memoizedProps); 5709 else currentResource !== flags ? (null === currentResource ? null !== current.stateNode && (current = current.stateNode, current.parentNode.removeChild(current)) : currentResource.count--, null === flags ? mountHoistable(hoistableRoot, finishedWork.type, finishedWork.stateNode) : acquireResource(hoistableRoot, flags, finishedWork.memoizedProps)) : null === flags && null !== finishedWork.stateNode && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 5710 } 5711 break; 5712 case 27: 5713 recursivelyTraverseMutationEffects(root, finishedWork); 5714 commitReconciliationEffects(finishedWork); 5715 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 5716 null !== current && flags & 4 && commitHostUpdate(finishedWork, finishedWork.memoizedProps, current.memoizedProps); 5717 break; 5718 case 5: 5719 recursivelyTraverseMutationEffects(root, finishedWork); 5720 commitReconciliationEffects(finishedWork); 5721 flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return)); 5722 if (finishedWork.flags & 32) { 5723 hoistableRoot = finishedWork.stateNode; 5724 try { 5725 setTextContent(hoistableRoot, ""); 5726 } catch (error) { 5727 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5728 } 5729 } 5730 flags & 4 && null != finishedWork.stateNode && (hoistableRoot = finishedWork.memoizedProps, commitHostUpdate(finishedWork, hoistableRoot, null !== current ? current.memoizedProps : hoistableRoot)); 5731 flags & 1024 && (needsFormReset = !0); 5732 break; 5733 case 6: 5734 recursivelyTraverseMutationEffects(root, finishedWork); 5735 commitReconciliationEffects(finishedWork); 5736 if (flags & 4) { 5737 if (null === finishedWork.stateNode) throw Error(formatProdErrorMessage(162)); 5738 flags = finishedWork.memoizedProps; 5739 current = finishedWork.stateNode; 5740 try { 5741 current.nodeValue = flags; 5742 } catch (error) { 5743 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5744 } 5745 } 5746 break; 5747 case 3: 5748 tagCaches = null; 5749 hoistableRoot = currentHoistableRoot; 5750 currentHoistableRoot = getHoistableRoot(root.containerInfo); 5751 recursivelyTraverseMutationEffects(root, finishedWork); 5752 currentHoistableRoot = hoistableRoot; 5753 commitReconciliationEffects(finishedWork); 5754 if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { 5755 retryIfBlockedOn(root.containerInfo); 5756 } catch (error) { 5757 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5758 } 5759 needsFormReset && (needsFormReset = !1, recursivelyResetForms(finishedWork)); 5760 break; 5761 case 4: 5762 flags = currentHoistableRoot; 5763 currentHoistableRoot = getHoistableRoot(finishedWork.stateNode.containerInfo); 5764 recursivelyTraverseMutationEffects(root, finishedWork); 5765 commitReconciliationEffects(finishedWork); 5766 currentHoistableRoot = flags; 5767 break; 5768 case 12: 5769 recursivelyTraverseMutationEffects(root, finishedWork); 5770 commitReconciliationEffects(finishedWork); 5771 break; 5772 case 31: 5773 recursivelyTraverseMutationEffects(root, finishedWork); 5774 commitReconciliationEffects(finishedWork); 5775 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 5776 break; 5777 case 13: 5778 recursivelyTraverseMutationEffects(root, finishedWork); 5779 commitReconciliationEffects(finishedWork); 5780 finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now()); 5781 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 5782 break; 5783 case 22: 5784 hoistableRoot = null !== finishedWork.memoizedState; 5785 var wasHidden = null !== current && null !== current.memoizedState, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 5786 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; 5787 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; 5788 recursivelyTraverseMutationEffects(root, finishedWork); 5789 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 5790 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; 5791 commitReconciliationEffects(finishedWork); 5792 if (flags & 8192) a: for (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current = null, root = finishedWork;;) { 5793 if (5 === root.tag || 26 === root.tag) { 5794 if (null === current) { 5795 wasHidden = current = root; 5796 try { 5797 if (currentResource = wasHidden.stateNode, hoistableRoot) maybeNodes = currentResource.style, "function" === typeof maybeNodes.setProperty ? maybeNodes.setProperty("display", "none", "important") : maybeNodes.display = "none"; 5798 else { 5799 i = wasHidden.stateNode; 5800 var styleProp = wasHidden.memoizedProps.style, display = void 0 !== styleProp && null !== styleProp && styleProp.hasOwnProperty("display") ? styleProp.display : null; 5801 i.style.display = null == display || "boolean" === typeof display ? "" : ("" + display).trim(); 5802 } 5803 } catch (error) { 5804 captureCommitPhaseError(wasHidden, wasHidden.return, error); 5805 } 5806 } 5807 } else if (6 === root.tag) { 5808 if (null === current) { 5809 wasHidden = root; 5810 try { 5811 wasHidden.stateNode.nodeValue = hoistableRoot ? "" : wasHidden.memoizedProps; 5812 } catch (error) { 5813 captureCommitPhaseError(wasHidden, wasHidden.return, error); 5814 } 5815 } 5816 } else if (18 === root.tag) { 5817 if (null === current) { 5818 wasHidden = root; 5819 try { 5820 var instance = wasHidden.stateNode; 5821 hoistableRoot ? hideOrUnhideDehydratedBoundary(instance, !0) : hideOrUnhideDehydratedBoundary(wasHidden.stateNode, !1); 5822 } catch (error) { 5823 captureCommitPhaseError(wasHidden, wasHidden.return, error); 5824 } 5825 } 5826 } else if ((22 !== root.tag && 23 !== root.tag || null === root.memoizedState || root === finishedWork) && null !== root.child) { 5827 root.child.return = root; 5828 root = root.child; 5829 continue; 5830 } 5831 if (root === finishedWork) break a; 5832 for (; null === root.sibling;) { 5833 if (null === root.return || root.return === finishedWork) break a; 5834 current === root && (current = null); 5835 root = root.return; 5836 } 5837 current === root && (current = null); 5838 root.sibling.return = root.return; 5839 root = root.sibling; 5840 } 5841 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current)))); 5842 break; 5843 case 19: 5844 recursivelyTraverseMutationEffects(root, finishedWork); 5845 commitReconciliationEffects(finishedWork); 5846 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 5847 break; 5848 case 30: break; 5849 case 21: break; 5850 default: recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork); 5851 } 5852 } 5853 function commitReconciliationEffects(finishedWork) { 5854 var flags = finishedWork.flags; 5855 if (flags & 2) { 5856 try { 5857 for (var hostParentFiber, parentFiber = finishedWork.return; null !== parentFiber;) { 5858 if (isHostParent(parentFiber)) { 5859 hostParentFiber = parentFiber; 5860 break; 5861 } 5862 parentFiber = parentFiber.return; 5863 } 5864 if (null == hostParentFiber) throw Error(formatProdErrorMessage(160)); 5865 switch (hostParentFiber.tag) { 5866 case 27: 5867 var parent = hostParentFiber.stateNode; 5868 insertOrAppendPlacementNode(finishedWork, getHostSibling(finishedWork), parent); 5869 break; 5870 case 5: 5871 var parent$141 = hostParentFiber.stateNode; 5872 hostParentFiber.flags & 32 && (setTextContent(parent$141, ""), hostParentFiber.flags &= -33); 5873 insertOrAppendPlacementNode(finishedWork, getHostSibling(finishedWork), parent$141); 5874 break; 5875 case 3: 5876 case 4: 5877 var parent$143 = hostParentFiber.stateNode.containerInfo; 5878 insertOrAppendPlacementNodeIntoContainer(finishedWork, getHostSibling(finishedWork), parent$143); 5879 break; 5880 default: throw Error(formatProdErrorMessage(161)); 5881 } 5882 } catch (error) { 5883 captureCommitPhaseError(finishedWork, finishedWork.return, error); 5884 } 5885 finishedWork.flags &= -3; 5886 } 5887 flags & 4096 && (finishedWork.flags &= -4097); 5888 } 5889 function recursivelyResetForms(parentFiber) { 5890 if (parentFiber.subtreeFlags & 1024) for (parentFiber = parentFiber.child; null !== parentFiber;) { 5891 var fiber = parentFiber; 5892 recursivelyResetForms(fiber); 5893 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset(); 5894 parentFiber = parentFiber.sibling; 5895 } 5896 } 5897 function recursivelyTraverseLayoutEffects(root, parentFiber) { 5898 if (parentFiber.subtreeFlags & 8772) for (parentFiber = parentFiber.child; null !== parentFiber;) commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling; 5899 } 5900 function recursivelyTraverseDisappearLayoutEffects(parentFiber) { 5901 for (parentFiber = parentFiber.child; null !== parentFiber;) { 5902 var finishedWork = parentFiber; 5903 switch (finishedWork.tag) { 5904 case 0: 5905 case 11: 5906 case 14: 5907 case 15: 5908 commitHookEffectListUnmount(4, finishedWork, finishedWork.return); 5909 recursivelyTraverseDisappearLayoutEffects(finishedWork); 5910 break; 5911 case 1: 5912 safelyDetachRef(finishedWork, finishedWork.return);
vendor: 4,703 bytes, lines 5913-6006
5913 var instance = finishedWork.stateNode; 5914 "function" === typeof instance.componentWillUnmount && safelyCallComponentWillUnmount(finishedWork, finishedWork.return, instance); 5915 recursivelyTraverseDisappearLayoutEffects(finishedWork); 5916 break; 5917 case 27: releaseSingletonInstance(finishedWork.stateNode); 5918 case 26: 5919 case 5: 5920 safelyDetachRef(finishedWork, finishedWork.return); 5921 recursivelyTraverseDisappearLayoutEffects(finishedWork); 5922 break; 5923 case 22: 5924 null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); 5925 break; 5926 case 30: 5927 recursivelyTraverseDisappearLayoutEffects(finishedWork); 5928 break; 5929 default: recursivelyTraverseDisappearLayoutEffects(finishedWork); 5930 } 5931 parentFiber = parentFiber.sibling; 5932 } 5933 } 5934 function recursivelyTraverseReappearLayoutEffects(finishedRoot$jscomp$0, parentFiber, includeWorkInProgressEffects) { 5935 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); 5936 for (parentFiber = parentFiber.child; null !== parentFiber;) { 5937 var current = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; 5938 switch (finishedWork.tag) { 5939 case 0: 5940 case 11: 5941 case 15: 5942 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5943 commitHookEffectListMount(4, finishedWork); 5944 break; 5945 case 1: 5946 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5947 current = finishedWork; 5948 finishedRoot = current.stateNode; 5949 if ("function" === typeof finishedRoot.componentDidMount) try { 5950 finishedRoot.componentDidMount(); 5951 } catch (error) { 5952 captureCommitPhaseError(current, current.return, error); 5953 } 5954 current = finishedWork; 5955 finishedRoot = current.updateQueue; 5956 if (null !== finishedRoot) { 5957 var instance = current.stateNode; 5958 try { 5959 var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks; 5960 if (null !== hiddenCallbacks) for (finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0; finishedRoot < hiddenCallbacks.length; finishedRoot++) callCallback(hiddenCallbacks[finishedRoot], instance); 5961 } catch (error) { 5962 captureCommitPhaseError(current, current.return, error); 5963 } 5964 } 5965 includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork); 5966 safelyAttachRef(finishedWork, finishedWork.return); 5967 break; 5968 case 27: commitHostSingletonAcquisition(finishedWork); 5969 case 26: 5970 case 5: 5971 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5972 includeWorkInProgressEffects && null === current && flags & 4 && commitHostMount(finishedWork); 5973 safelyAttachRef(finishedWork, finishedWork.return); 5974 break; 5975 case 12: 5976 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5977 break; 5978 case 31: 5979 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5980 includeWorkInProgressEffects && flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork); 5981 break; 5982 case 13: 5983 recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5984 includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 5985 break; 5986 case 22: 5987 null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5988 safelyAttachRef(finishedWork, finishedWork.return); 5989 break; 5990 case 30: break; 5991 default: recursivelyTraverseReappearLayoutEffects(finishedRoot, finishedWork, includeWorkInProgressEffects); 5992 } 5993 parentFiber = parentFiber.sibling; 5994 } 5995 } 5996 function commitOffscreenPassiveMountEffects(current, finishedWork) { 5997 var previousCache = null; 5998 null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (previousCache = current.memoizedState.cachePool.pool); 5999 current = null; 6000 null !== finishedWork.memoizedState && null !== finishedWork.memoizedState.cachePool && (current = finishedWork.memoizedState.cachePool.pool); 6001 current !== previousCache && (null != current && current.refCount++, null != previousCache && releaseCache(previousCache)); 6002 } 6003 function commitCachePassiveMountEffect(current, finishedWork) { 6004 current = null; 6005 null !== finishedWork.alternate && (current = finishedWork.alternate.memoizedState.cache); 6006 finishedWork = finishedWork.memoizedState.cache;
vendor: 60,652 bytes, lines 6007-7140
6007 finishedWork !== current && (finishedWork.refCount++, null != current && releaseCache(current)); 6008 } 6009 function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions) { 6010 if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber;) commitPassiveMountOnFiber(root, parentFiber, committedLanes, committedTransitions), parentFiber = parentFiber.sibling; 6011 } 6012 function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { 6013 var flags = finishedWork.flags; 6014 switch (finishedWork.tag) { 6015 case 0: 6016 case 11: 6017 case 15: 6018 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6019 flags & 2048 && commitHookEffectListMount(9, finishedWork); 6020 break; 6021 case 1: 6022 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6023 break; 6024 case 3: 6025 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6026 flags & 2048 && (finishedRoot = null, null !== finishedWork.alternate && (finishedRoot = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== finishedRoot && (finishedWork.refCount++, null != finishedRoot && releaseCache(finishedRoot))); 6027 break; 6028 case 12: 6029 if (flags & 2048) { 6030 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6031 finishedRoot = finishedWork.stateNode; 6032 try { 6033 var _finishedWork$memoize2 = finishedWork.memoizedProps, id = _finishedWork$memoize2.id, onPostCommit = _finishedWork$memoize2.onPostCommit; 6034 "function" === typeof onPostCommit && onPostCommit(id, null === finishedWork.alternate ? "mount" : "update", finishedRoot.passiveEffectDuration, -0); 6035 } catch (error) { 6036 captureCommitPhaseError(finishedWork, finishedWork.return, error); 6037 } 6038 } else recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6039 break; 6040 case 31: 6041 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6042 break; 6043 case 13: 6044 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6045 break; 6046 case 23: break; 6047 case 22: 6048 _finishedWork$memoize2 = finishedWork.stateNode; 6049 id = finishedWork.alternate; 6050 null !== finishedWork.memoizedState ? _finishedWork$memoize2._visibility & 2 ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) : _finishedWork$memoize2._visibility & 2 ? recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions) : (_finishedWork$memoize2._visibility |= 2, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, 0 !== (finishedWork.subtreeFlags & 10256) || !1)); 6051 flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork); 6052 break; 6053 case 24: 6054 recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6055 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 6056 break; 6057 default: recursivelyTraversePassiveMountEffects(finishedRoot, finishedWork, committedLanes, committedTransitions); 6058 } 6059 } 6060 function recursivelyTraverseReconnectPassiveEffects(finishedRoot$jscomp$0, parentFiber, committedLanes$jscomp$0, committedTransitions$jscomp$0, includeWorkInProgressEffects) { 6061 includeWorkInProgressEffects = includeWorkInProgressEffects && (0 !== (parentFiber.subtreeFlags & 10256) || !1); 6062 for (parentFiber = parentFiber.child; null !== parentFiber;) { 6063 var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, committedLanes = committedLanes$jscomp$0, committedTransitions = committedTransitions$jscomp$0, flags = finishedWork.flags; 6064 switch (finishedWork.tag) { 6065 case 0: 6066 case 11: 6067 case 15: 6068 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 6069 commitHookEffectListMount(8, finishedWork); 6070 break; 6071 case 23: break; 6072 case 22: 6073 var instance = finishedWork.stateNode; 6074 null !== finishedWork.memoizedState ? instance._visibility & 2 ? recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects) : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork) : (instance._visibility |= 2, recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects)); 6075 includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects(finishedWork.alternate, finishedWork); 6076 break; 6077 case 24: 6078 recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 6079 includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 6080 break; 6081 default: recursivelyTraverseReconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects); 6082 } 6083 parentFiber = parentFiber.sibling; 6084 } 6085 } 6086 function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber) { 6087 if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber;) { 6088 var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; 6089 switch (finishedWork.tag) { 6090 case 22: 6091 recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 6092 flags & 2048 && commitOffscreenPassiveMountEffects(finishedWork.alternate, finishedWork); 6093 break; 6094 case 24: 6095 recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 6096 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 6097 break; 6098 default: recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork); 6099 } 6100 parentFiber = parentFiber.sibling; 6101 } 6102 } 6103 var suspenseyCommitFlag = 8192; 6104 function recursivelyAccumulateSuspenseyCommit(parentFiber, committedLanes, suspendedState) { 6105 if (parentFiber.subtreeFlags & suspenseyCommitFlag) for (parentFiber = parentFiber.child; null !== parentFiber;) accumulateSuspenseyCommitOnFiber(parentFiber, committedLanes, suspendedState), parentFiber = parentFiber.sibling; 6106 } 6107 function accumulateSuspenseyCommitOnFiber(fiber, committedLanes, suspendedState) { 6108 switch (fiber.tag) { 6109 case 26: 6110 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 6111 fiber.flags & suspenseyCommitFlag && null !== fiber.memoizedState && suspendResource(suspendedState, currentHoistableRoot, fiber.memoizedState, fiber.memoizedProps); 6112 break; 6113 case 5: 6114 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 6115 break; 6116 case 3: 6117 case 4: 6118 var previousHoistableRoot = currentHoistableRoot; 6119 currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo); 6120 recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 6121 currentHoistableRoot = previousHoistableRoot; 6122 break; 6123 case 22: 6124 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)); 6125 break; 6126 default: recursivelyAccumulateSuspenseyCommit(fiber, committedLanes, suspendedState); 6127 } 6128 } 6129 function detachAlternateSiblings(parentFiber) { 6130 var previousFiber = parentFiber.alternate; 6131 if (null !== previousFiber && (parentFiber = previousFiber.child, null !== parentFiber)) { 6132 previousFiber.child = null; 6133 do 6134 previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber; 6135 while (null !== parentFiber); 6136 } 6137 } 6138 function recursivelyTraversePassiveUnmountEffects(parentFiber) { 6139 var deletions = parentFiber.deletions; 6140 if (0 !== (parentFiber.flags & 16)) { 6141 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 6142 var childToDelete = deletions[i]; 6143 nextEffect = childToDelete; 6144 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 6145 } 6146 detachAlternateSiblings(parentFiber); 6147 } 6148 if (parentFiber.subtreeFlags & 10256) for (parentFiber = parentFiber.child; null !== parentFiber;) commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling; 6149 } 6150 function commitPassiveUnmountOnFiber(finishedWork) { 6151 switch (finishedWork.tag) { 6152 case 0: 6153 case 11: 6154 case 15: 6155 recursivelyTraversePassiveUnmountEffects(finishedWork); 6156 finishedWork.flags & 2048 && commitHookEffectListUnmount(9, finishedWork, finishedWork.return); 6157 break; 6158 case 3: 6159 recursivelyTraversePassiveUnmountEffects(finishedWork); 6160 break; 6161 case 12: 6162 recursivelyTraversePassiveUnmountEffects(finishedWork); 6163 break; 6164 case 22: 6165 var instance = finishedWork.stateNode; 6166 null !== finishedWork.memoizedState && instance._visibility & 2 && (null === finishedWork.return || 13 !== finishedWork.return.tag) ? (instance._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(finishedWork)) : recursivelyTraversePassiveUnmountEffects(finishedWork); 6167 break; 6168 default: recursivelyTraversePassiveUnmountEffects(finishedWork); 6169 } 6170 } 6171 function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { 6172 var deletions = parentFiber.deletions; 6173 if (0 !== (parentFiber.flags & 16)) { 6174 if (null !== deletions) for (var i = 0; i < deletions.length; i++) { 6175 var childToDelete = deletions[i]; 6176 nextEffect = childToDelete; 6177 commitPassiveUnmountEffectsInsideOfDeletedTree_begin(childToDelete, parentFiber); 6178 } 6179 detachAlternateSiblings(parentFiber); 6180 } 6181 for (parentFiber = parentFiber.child; null !== parentFiber;) { 6182 deletions = parentFiber; 6183 switch (deletions.tag) { 6184 case 0: 6185 case 11: 6186 case 15: 6187 commitHookEffectListUnmount(8, deletions, deletions.return); 6188 recursivelyTraverseDisconnectPassiveEffects(deletions); 6189 break; 6190 case 22: 6191 i = deletions.stateNode; 6192 i._visibility & 2 && (i._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(deletions)); 6193 break; 6194 default: recursivelyTraverseDisconnectPassiveEffects(deletions); 6195 } 6196 parentFiber = parentFiber.sibling; 6197 } 6198 } 6199 function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { 6200 for (; null !== nextEffect;) { 6201 var fiber = nextEffect; 6202 switch (fiber.tag) { 6203 case 0: 6204 case 11: 6205 case 15: 6206 commitHookEffectListUnmount(8, fiber, nearestMountedAncestor); 6207 break; 6208 case 23: 6209 case 22: 6210 if (null !== fiber.memoizedState && null !== fiber.memoizedState.cachePool) { 6211 var cache = fiber.memoizedState.cachePool.pool; 6212 null != cache && cache.refCount++; 6213 } 6214 break; 6215 case 24: releaseCache(fiber.memoizedState.cache); 6216 } 6217 cache = fiber.child; 6218 if (null !== cache) cache.return = fiber, nextEffect = cache; 6219 else a: for (fiber = deletedSubtreeRoot; null !== nextEffect;) { 6220 cache = nextEffect; 6221 var sibling = cache.sibling, returnFiber = cache.return; 6222 detachFiberAfterEffects(cache); 6223 if (cache === fiber) { 6224 nextEffect = null; 6225 break a; 6226 } 6227 if (null !== sibling) { 6228 sibling.return = returnFiber; 6229 nextEffect = sibling; 6230 break a; 6231 } 6232 nextEffect = returnFiber; 6233 } 6234 } 6235 } 6236 var DefaultAsyncDispatcher = { 6237 getCacheForType: function(resourceType) { 6238 var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType); 6239 void 0 === cacheForType && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)); 6240 return cacheForType; 6241 }, 6242 cacheSignal: function() { 6243 return readContext(CacheContext).controller.signal; 6244 } 6245 }, PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, nestedUpdateCount = 0, rootWithNestedUpdates = null; 6246 function requestUpdateLane() { 6247 return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : null !== ReactSharedInternals.T ? requestTransitionLane() : resolveUpdatePriority(); 6248 } 6249 function requestDeferredLane() { 6250 if (0 === workInProgressDeferredLane) if (0 === (workInProgressRootRenderLanes & 536870912) || isHydrating) { 6251 var lane = nextTransitionDeferredLane; 6252 nextTransitionDeferredLane <<= 1; 6253 0 === (nextTransitionDeferredLane & 3932160) && (nextTransitionDeferredLane = 262144); 6254 workInProgressDeferredLane = lane; 6255 } else workInProgressDeferredLane = 536870912; 6256 lane = suspenseHandlerStackCursor.current; 6257 null !== lane && (lane.flags |= 32); 6258 return workInProgressDeferredLane; 6259 } 6260 function scheduleUpdateOnFiber(root, fiber, lane) { 6261 if (root === workInProgressRoot && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root.cancelPendingCommit) prepareFreshStack(root, 0), markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 6262 markRootUpdated$1(root, lane); 6263 if (0 === (executionContext & 2) || root !== workInProgressRoot) root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended(root, workInProgressRootRenderLanes, workInProgressDeferredLane, !1)), ensureRootIsScheduled(root); 6264 } 6265 function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { 6266 if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); 6267 var shouldTimeSlice = !forceSync && 0 === (lanes & 127) && 0 === (lanes & root$jscomp$0.expiredLanes) || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), renderWasConcurrent = shouldTimeSlice; 6268 do { 6269 if (0 === exitStatus) { 6270 workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, !1); 6271 break; 6272 } else { 6273 forceSync = root$jscomp$0.current.alternate; 6274 if (renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) { 6275 exitStatus = renderRootSync(root$jscomp$0, lanes, !1); 6276 renderWasConcurrent = !1; 6277 continue; 6278 } 6279 if (2 === exitStatus) { 6280 renderWasConcurrent = lanes; 6281 if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent) var JSCompiler_inline_result = 0; 6282 else JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = 0 !== JSCompiler_inline_result ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0; 6283 if (0 !== JSCompiler_inline_result) { 6284 lanes = JSCompiler_inline_result; 6285 a: { 6286 var root = root$jscomp$0; 6287 exitStatus = workInProgressRootConcurrentErrors; 6288 var wasRootDehydrated = root.current.memoizedState.isDehydrated; 6289 wasRootDehydrated && (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256); 6290 JSCompiler_inline_result = renderRootSync(root, JSCompiler_inline_result, !1); 6291 if (2 !== JSCompiler_inline_result) { 6292 if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) { 6293 root.errorRecoveryDisabledLanes |= renderWasConcurrent; 6294 workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent; 6295 exitStatus = 4; 6296 break a; 6297 } 6298 renderWasConcurrent = workInProgressRootRecoverableErrors; 6299 workInProgressRootRecoverableErrors = exitStatus; 6300 null !== renderWasConcurrent && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, renderWasConcurrent)); 6301 } 6302 exitStatus = JSCompiler_inline_result; 6303 } 6304 renderWasConcurrent = !1; 6305 if (2 !== exitStatus) continue; 6306 } 6307 } 6308 if (1 === exitStatus) { 6309 prepareFreshStack(root$jscomp$0, 0); 6310 markRootSuspended(root$jscomp$0, lanes, 0, !0); 6311 break; 6312 } 6313 a: { 6314 shouldTimeSlice = root$jscomp$0; 6315 renderWasConcurrent = exitStatus; 6316 switch (renderWasConcurrent) { 6317 case 0: 6318 case 1: throw Error(formatProdErrorMessage(345)); 6319 case 4: if ((lanes & 4194048) !== lanes) break; 6320 case 6: 6321 markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings); 6322 break a; 6323 case 2: 6324 workInProgressRootRecoverableErrors = null; 6325 break; 6326 case 3: 6327 case 5: break; 6328 default: throw Error(formatProdErrorMessage(329)); 6329 } 6330 if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) { 6331 markRootSuspended(shouldTimeSlice, lanes, workInProgressDeferredLane, !workInProgressRootDidSkipSuspendedSiblings); 6332 if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a; 6333 pendingEffectsLanes = lanes; 6334 shouldTimeSlice.timeoutHandle = scheduleTimeout(commitRootWhenReady.bind(null, shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, renderWasConcurrent, "Throttled", -0, 0), exitStatus); 6335 break a; 6336 } 6337 commitRootWhenReady(shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, workInProgressSuspendedRetryLanes, workInProgressRootDidSkipSuspendedSiblings, renderWasConcurrent, null, -0, 0); 6338 } 6339 } 6340 break; 6341 } while (1); 6342 ensureRootIsScheduled(root$jscomp$0); 6343 } 6344 function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) { 6345 root.timeoutHandle = -1; 6346 suspendedCommitReason = finishedWork.subtreeFlags; 6347 if (suspendedCommitReason & 8192 || 16785408 === (suspendedCommitReason & 16785408)) { 6348 suspendedCommitReason = { 6349 stylesheets: null, 6350 count: 0, 6351 imgCount: 0, 6352 imgBytes: 0, 6353 suspenseyImages: [], 6354 waitingForImages: !0, 6355 waitingForViewTransition: !1, 6356 unsuspend: noop$1 6357 }; 6358 accumulateSuspenseyCommitOnFiber(finishedWork, lanes, suspendedCommitReason); 6359 var timeoutOffset = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0; 6360 timeoutOffset = waitForCommitToBeReady(suspendedCommitReason, timeoutOffset); 6361 if (null !== timeoutOffset) { 6362 pendingEffectsLanes = lanes; 6363 root.cancelPendingCommit = timeoutOffset(commitRoot.bind(null, root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, exitStatus, suspendedCommitReason, null, completedRenderStartTime, completedRenderEndTime)); 6364 markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); 6365 return; 6366 } 6367 } 6368 commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes); 6369 } 6370 function isRenderConsistentWithExternalStores(finishedWork) { 6371 for (var node = finishedWork;;) { 6372 var tag = node.tag; 6373 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++) { 6374 var check = tag[i], getSnapshot = check.getSnapshot; 6375 check = check.value; 6376 try { 6377 if (!objectIs(getSnapshot(), check)) return !1; 6378 } catch (error) { 6379 return !1; 6380 } 6381 } 6382 tag = node.child; 6383 if (node.subtreeFlags & 16384 && null !== tag) tag.return = node, node = tag; 6384 else { 6385 if (node === finishedWork) break; 6386 for (; null === node.sibling;) { 6387 if (null === node.return || node.return === finishedWork) return !0; 6388 node = node.return; 6389 } 6390 node.sibling.return = node.return; 6391 node = node.sibling; 6392 } 6393 } 6394 return !0; 6395 } 6396 function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) { 6397 suspendedLanes &= ~workInProgressRootPingedLanes; 6398 suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; 6399 root.suspendedLanes |= suspendedLanes; 6400 root.pingedLanes &= ~suspendedLanes; 6401 didAttemptEntireTree && (root.warmLanes |= suspendedLanes); 6402 didAttemptEntireTree = root.expirationTimes; 6403 for (var lanes = suspendedLanes; 0 < lanes;) { 6404 var index$6 = 31 - clz32(lanes), lane = 1 << index$6; 6405 didAttemptEntireTree[index$6] = -1; 6406 lanes &= ~lane; 6407 } 6408 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes); 6409 } 6410 function flushSyncWork$1() { 6411 return 0 === (executionContext & 6) ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0; 6412 } 6413 function resetWorkInProgressStack() { 6414 if (null !== workInProgress) { 6415 if (0 === workInProgressSuspendedReason) var interruptedWork = workInProgress.return; 6416 else interruptedWork = workInProgress, lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress; 6417 for (; null !== interruptedWork;) unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return; 6418 workInProgress = null; 6419 } 6420 } 6421 function prepareFreshStack(root, lanes) { 6422 var timeoutHandle = root.timeoutHandle; 6423 -1 !== timeoutHandle && (root.timeoutHandle = -1, cancelTimeout(timeoutHandle)); 6424 timeoutHandle = root.cancelPendingCommit; 6425 null !== timeoutHandle && (root.cancelPendingCommit = null, timeoutHandle()); 6426 pendingEffectsLanes = 0; 6427 resetWorkInProgressStack(); 6428 workInProgressRoot = root; 6429 workInProgress = timeoutHandle = createWorkInProgress(root.current, null); 6430 workInProgressRootRenderLanes = lanes; 6431 workInProgressSuspendedReason = 0; 6432 workInProgressThrownValue = null; 6433 workInProgressRootDidSkipSuspendedSiblings = !1; 6434 workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 6435 workInProgressRootDidAttachPingListener = !1; 6436 workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0; 6437 workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; 6438 workInProgressRootDidIncludeRecursiveRenderUpdate = !1; 6439 0 !== (lanes & 8) && (lanes |= lanes & 32); 6440 var allEntangledLanes = root.entangledLanes; 6441 if (0 !== allEntangledLanes) for (root = root.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes;) { 6442 var index$4 = 31 - clz32(allEntangledLanes), lane = 1 << index$4; 6443 lanes |= root[index$4]; 6444 allEntangledLanes &= ~lane; 6445 } 6446 entangledRenderLanes = lanes; 6447 finishQueueingConcurrentUpdates(); 6448 return timeoutHandle; 6449 } 6450 function handleThrow(root, thrownValue) { 6451 currentlyRenderingFiber = null; 6452 ReactSharedInternals.H = ContextOnlyDispatcher; 6453 thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? 6 : 1; 6454 workInProgressThrownValue = thrownValue; 6455 null === workInProgress && (workInProgressRootExitStatus = 1, logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current))); 6456 } 6457 function shouldRemainOnPreviousScreen() { 6458 var handler = suspenseHandlerStackCursor.current; 6459 return null === handler ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? null === shellBoundary ? !0 : !1 : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || 0 !== (workInProgressRootRenderLanes & 536870912) ? handler === shellBoundary : !1; 6460 } 6461 function pushDispatcher() { 6462 var prevDispatcher = ReactSharedInternals.H; 6463 ReactSharedInternals.H = ContextOnlyDispatcher; 6464 return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; 6465 } 6466 function pushAsyncDispatcher() { 6467 var prevAsyncDispatcher = ReactSharedInternals.A; 6468 ReactSharedInternals.A = DefaultAsyncDispatcher; 6469 return prevAsyncDispatcher; 6470 } 6471 function renderDidSuspendDelayIfPossible() { 6472 workInProgressRootExitStatus = 4; 6473 workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = !0); 6474 0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended(workInProgressRoot, workInProgressRootRenderLanes, workInProgressDeferredLane, !1); 6475 } 6476 function renderRootSync(root, lanes, shouldYieldForPrerendering) { 6477 var prevExecutionContext = executionContext; 6478 executionContext |= 2; 6479 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 6480 if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) workInProgressTransitions = null, prepareFreshStack(root, lanes); 6481 lanes = !1; 6482 var exitStatus = workInProgressRootExitStatus; 6483 a: do 6484 try { 6485 if (0 !== workInProgressSuspendedReason && null !== workInProgress) { 6486 var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue; 6487 switch (workInProgressSuspendedReason) { 6488 case 8: 6489 resetWorkInProgressStack(); 6490 exitStatus = 6; 6491 break a; 6492 case 3: 6493 case 2: 6494 case 9: 6495 case 6: 6496 null === suspenseHandlerStackCursor.current && (lanes = !0); 6497 var reason = workInProgressSuspendedReason; 6498 workInProgressSuspendedReason = 0; 6499 workInProgressThrownValue = null; 6500 throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 6501 if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) { 6502 exitStatus = 0; 6503 break a; 6504 } 6505 break; 6506 default: reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); 6507 } 6508 } 6509 workLoopSync(); 6510 exitStatus = workInProgressRootExitStatus; 6511 break; 6512 } catch (thrownValue$165) { 6513 handleThrow(root, thrownValue$165); 6514 } 6515 while (1); 6516 lanes && root.shellSuspendCounter++; 6517 lastContextDependency = currentlyRenderingFiber$1 = null; 6518 executionContext = prevExecutionContext; 6519 ReactSharedInternals.H = prevDispatcher; 6520 ReactSharedInternals.A = prevAsyncDispatcher; 6521 null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()); 6522 return exitStatus; 6523 } 6524 function workLoopSync() { 6525 for (; null !== workInProgress;) performUnitOfWork(workInProgress); 6526 } 6527 function renderRootConcurrent(root, lanes) { 6528 var prevExecutionContext = executionContext; 6529 executionContext |= 2; 6530 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 6531 workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes ? (workInProgressTransitions = null, workInProgressRootRenderTargetTime = now() + 500, prepareFreshStack(root, lanes)) : workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); 6532 a: do 6533 try { 6534 if (0 !== workInProgressSuspendedReason && null !== workInProgress) { 6535 lanes = workInProgress; 6536 var thrownValue = workInProgressThrownValue; 6537 b: switch (workInProgressSuspendedReason) { 6538 case 1: 6539 workInProgressSuspendedReason = 0; 6540 workInProgressThrownValue = null; 6541 throwAndUnwindWorkLoop(root, lanes, thrownValue, 1); 6542 break; 6543 case 2: 6544 case 9: 6545 if (isThenableResolved(thrownValue)) { 6546 workInProgressSuspendedReason = 0; 6547 workInProgressThrownValue = null; 6548 replaySuspendedUnitOfWork(lanes); 6549 break; 6550 } 6551 lanes = function() { 6552 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root || (workInProgressSuspendedReason = 7); 6553 ensureRootIsScheduled(root); 6554 }; 6555 thrownValue.then(lanes, lanes); 6556 break a; 6557 case 3: 6558 workInProgressSuspendedReason = 7; 6559 break a; 6560 case 4: 6561 workInProgressSuspendedReason = 5; 6562 break a; 6563 case 7: 6564 isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 7)); 6565 break; 6566 case 5: 6567 var resource = null; 6568 switch (workInProgress.tag) { 6569 case 26: resource = workInProgress.memoizedState; 6570 case 5: 6571 case 27: 6572 var hostFiber = workInProgress; 6573 if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) { 6574 workInProgressSuspendedReason = 0; 6575 workInProgressThrownValue = null; 6576 var sibling = hostFiber.sibling; 6577 if (null !== sibling) workInProgress = sibling; 6578 else { 6579 var returnFiber = hostFiber.return; 6580 null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null; 6581 } 6582 break b; 6583 } 6584 } 6585 workInProgressSuspendedReason = 0; 6586 workInProgressThrownValue = null; 6587 throwAndUnwindWorkLoop(root, lanes, thrownValue, 5); 6588 break; 6589 case 6: 6590 workInProgressSuspendedReason = 0; 6591 workInProgressThrownValue = null; 6592 throwAndUnwindWorkLoop(root, lanes, thrownValue, 6); 6593 break; 6594 case 8: 6595 resetWorkInProgressStack(); 6596 workInProgressRootExitStatus = 6; 6597 break a; 6598 default: throw Error(formatProdErrorMessage(462)); 6599 } 6600 } 6601 workLoopConcurrentByScheduler(); 6602 break; 6603 } catch (thrownValue$167) { 6604 handleThrow(root, thrownValue$167); 6605 } 6606 while (1); 6607 lastContextDependency = currentlyRenderingFiber$1 = null; 6608 ReactSharedInternals.H = prevDispatcher; 6609 ReactSharedInternals.A = prevAsyncDispatcher; 6610 executionContext = prevExecutionContext; 6611 if (null !== workInProgress) return 0; 6612 workInProgressRoot = null; 6613 workInProgressRootRenderLanes = 0; 6614 finishQueueingConcurrentUpdates(); 6615 return workInProgressRootExitStatus; 6616 } 6617 function workLoopConcurrentByScheduler() { 6618 for (; null !== workInProgress && !shouldYield();) performUnitOfWork(workInProgress); 6619 } 6620 function performUnitOfWork(unitOfWork) { 6621 var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes); 6622 unitOfWork.memoizedProps = unitOfWork.pendingProps; 6623 null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; 6624 } 6625 function replaySuspendedUnitOfWork(unitOfWork) { 6626 var next = unitOfWork; 6627 var current = next.alternate; 6628 switch (next.tag) { 6629 case 15: 6630 case 0: 6631 next = replayFunctionComponent(current, next, next.pendingProps, next.type, void 0, workInProgressRootRenderLanes); 6632 break; 6633 case 11: 6634 next = replayFunctionComponent(current, next, next.pendingProps, next.type.render, next.ref, workInProgressRootRenderLanes); 6635 break; 6636 case 5: resetHooksOnUnwind(next); 6637 default: unwindInterruptedWork(current, next), next = workInProgress = resetWorkInProgress(next, entangledRenderLanes), next = beginWork(current, next, entangledRenderLanes); 6638 } 6639 unitOfWork.memoizedProps = unitOfWork.pendingProps; 6640 null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; 6641 } 6642 function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) { 6643 lastContextDependency = currentlyRenderingFiber$1 = null; 6644 resetHooksOnUnwind(unitOfWork); 6645 thenableState$1 = null; 6646 thenableIndexCounter$1 = 0; 6647 var returnFiber = unitOfWork.return; 6648 try { 6649 if (throwException(root, returnFiber, unitOfWork, thrownValue, workInProgressRootRenderLanes)) { 6650 workInProgressRootExitStatus = 1; 6651 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 6652 workInProgress = null; 6653 return; 6654 } 6655 } catch (error) { 6656 if (null !== returnFiber) throw workInProgress = returnFiber, error; 6657 workInProgressRootExitStatus = 1; 6658 logUncaughtError(root, createCapturedValueAtFiber(thrownValue, root.current)); 6659 workInProgress = null; 6660 return; 6661 } 6662 if (unitOfWork.flags & 32768) { 6663 if (isHydrating || 1 === suspendedReason) root = !0; 6664 else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912)) root = !1; 6665 else if (workInProgressRootDidSkipSuspendedSiblings = root = !0, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384); 6666 unwindUnitOfWork(unitOfWork, root); 6667 } else completeUnitOfWork(unitOfWork); 6668 } 6669 function completeUnitOfWork(unitOfWork) { 6670 var completedWork = unitOfWork; 6671 do { 6672 if (0 !== (completedWork.flags & 32768)) { 6673 unwindUnitOfWork(completedWork, workInProgressRootDidSkipSuspendedSiblings); 6674 return; 6675 } 6676 unitOfWork = completedWork.return; 6677 var next = completeWork(completedWork.alternate, completedWork, entangledRenderLanes); 6678 if (null !== next) { 6679 workInProgress = next; 6680 return; 6681 } 6682 completedWork = completedWork.sibling; 6683 if (null !== completedWork) { 6684 workInProgress = completedWork; 6685 return; 6686 } 6687 workInProgress = completedWork = unitOfWork; 6688 } while (null !== completedWork); 6689 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); 6690 } 6691 function unwindUnitOfWork(unitOfWork, skipSiblings) { 6692 do { 6693 var next = unwindWork(unitOfWork.alternate, unitOfWork); 6694 if (null !== next) { 6695 next.flags &= 32767; 6696 workInProgress = next; 6697 return; 6698 } 6699 next = unitOfWork.return; 6700 null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null); 6701 if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) { 6702 workInProgress = unitOfWork; 6703 return; 6704 } 6705 workInProgress = unitOfWork = next; 6706 } while (null !== unitOfWork); 6707 workInProgressRootExitStatus = 6; 6708 workInProgress = null; 6709 } 6710 function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) { 6711 root.cancelPendingCommit = null; 6712 do 6713 flushPendingEffects(); 6714 while (0 !== pendingEffectsStatus); 6715 if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); 6716 if (null !== finishedWork) { 6717 if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); 6718 didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes; 6719 didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes; 6720 markRootFinished(root, lanes, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes); 6721 root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); 6722 pendingFinishedWork = finishedWork; 6723 pendingEffectsRoot = root; 6724 pendingEffectsLanes = lanes; 6725 pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate; 6726 pendingPassiveTransitions = transitions; 6727 pendingRecoverableErrors = recoverableErrors; 6728 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() { 6729 flushPassiveEffects(); 6730 return null; 6731 })) : (root.callbackNode = null, root.callbackPriority = 0); 6732 recoverableErrors = 0 !== (finishedWork.flags & 13878); 6733 if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { 6734 recoverableErrors = ReactSharedInternals.T; 6735 ReactSharedInternals.T = null; 6736 transitions = ReactDOMSharedInternals.p; 6737 ReactDOMSharedInternals.p = 2; 6738 spawnedLane = executionContext; 6739 executionContext |= 4; 6740 try { 6741 commitBeforeMutationEffects(root, finishedWork, lanes); 6742 } finally { 6743 executionContext = spawnedLane, ReactDOMSharedInternals.p = transitions, ReactSharedInternals.T = recoverableErrors; 6744 } 6745 } 6746 pendingEffectsStatus = 1; 6747 flushMutationEffects(); 6748 flushLayoutEffects(); 6749 flushSpawnedWork(); 6750 } 6751 } 6752 function flushMutationEffects() { 6753 if (1 === pendingEffectsStatus) { 6754 pendingEffectsStatus = 0; 6755 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878); 6756 if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) { 6757 rootMutationHasEffect = ReactSharedInternals.T; 6758 ReactSharedInternals.T = null; 6759 var previousPriority = ReactDOMSharedInternals.p; 6760 ReactDOMSharedInternals.p = 2; 6761 var prevExecutionContext = executionContext; 6762 executionContext |= 4; 6763 try { 6764 commitMutationEffectsOnFiber(finishedWork, root); 6765 var priorSelectionInformation = selectionInformation, curFocusedElem = getActiveElementDeep(root.containerInfo), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange; 6766 if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(priorFocusedElem.ownerDocument.documentElement, priorFocusedElem)) { 6767 if (null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem)) { 6768 var start = priorSelectionRange.start, end = priorSelectionRange.end; 6769 void 0 === end && (end = start); 6770 if ("selectionStart" in priorFocusedElem) priorFocusedElem.selectionStart = start, priorFocusedElem.selectionEnd = Math.min(end, priorFocusedElem.value.length); 6771 else { 6772 var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window; 6773 if (win.getSelection) { 6774 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); 6775 !selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem); 6776 var startMarker = getNodeForCharacterOffset(priorFocusedElem, start$jscomp$0), endMarker = getNodeForCharacterOffset(priorFocusedElem, end$jscomp$0); 6777 if (startMarker && endMarker && (1 !== selection.rangeCount || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) { 6778 var range = doc.createRange(); 6779 range.setStart(startMarker.node, startMarker.offset); 6780 selection.removeAllRanges(); 6781 start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); 6782 } 6783 } 6784 } 6785 } 6786 doc = []; 6787 for (selection = priorFocusedElem; selection = selection.parentNode;) 1 === selection.nodeType && doc.push({ 6788 element: selection, 6789 left: selection.scrollLeft, 6790 top: selection.scrollTop 6791 }); 6792 "function" === typeof priorFocusedElem.focus && priorFocusedElem.focus(); 6793 for (priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) { 6794 var info = doc[priorFocusedElem]; 6795 info.element.scrollLeft = info.left; 6796 info.element.scrollTop = info.top; 6797 } 6798 } 6799 _enabled = !!eventsEnabled; 6800 selectionInformation = eventsEnabled = null; 6801 } finally { 6802 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect; 6803 } 6804 } 6805 root.current = finishedWork; 6806 pendingEffectsStatus = 2; 6807 } 6808 } 6809 function flushLayoutEffects() { 6810 if (2 === pendingEffectsStatus) { 6811 pendingEffectsStatus = 0; 6812 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772); 6813 if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) { 6814 rootHasLayoutEffect = ReactSharedInternals.T; 6815 ReactSharedInternals.T = null; 6816 var previousPriority = ReactDOMSharedInternals.p; 6817 ReactDOMSharedInternals.p = 2; 6818 var prevExecutionContext = executionContext; 6819 executionContext |= 4; 6820 try { 6821 commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); 6822 } finally { 6823 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootHasLayoutEffect; 6824 } 6825 } 6826 pendingEffectsStatus = 3; 6827 } 6828 } 6829 function flushSpawnedWork() { 6830 if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) { 6831 pendingEffectsStatus = 0; 6832 requestPaint(); 6833 var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors; 6834 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root, root.pendingLanes)); 6835 var remainingLanes = root.pendingLanes; 6836 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); 6837 lanesToEventPriority(lanes); 6838 finishedWork = finishedWork.stateNode; 6839 if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) try { 6840 injectedHook.onCommitFiberRoot(rendererID, finishedWork, void 0, 128 === (finishedWork.current.flags & 128)); 6841 } catch (err) {} 6842 if (null !== recoverableErrors) { 6843 finishedWork = ReactSharedInternals.T; 6844 remainingLanes = ReactDOMSharedInternals.p; 6845 ReactDOMSharedInternals.p = 2; 6846 ReactSharedInternals.T = null; 6847 try { 6848 for (var onRecoverableError = root.onRecoverableError, i = 0; i < recoverableErrors.length; i++) { 6849 var recoverableError = recoverableErrors[i]; 6850 onRecoverableError(recoverableError.value, { componentStack: recoverableError.stack }); 6851 } 6852 } finally { 6853 ReactSharedInternals.T = finishedWork, ReactDOMSharedInternals.p = remainingLanes; 6854 } 6855 } 6856 0 !== (pendingEffectsLanes & 3) && flushPendingEffects(); 6857 ensureRootIsScheduled(root); 6858 remainingLanes = root.pendingLanes; 6859 0 !== (lanes & 261930) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0; 6860 flushSyncWorkAcrossRoots_impl(0, !1); 6861 } 6862 } 6863 function releaseRootPooledCache(root, remainingLanes) { 6864 0 === (root.pooledCacheLanes &= remainingLanes) && (remainingLanes = root.pooledCache, null != remainingLanes && (root.pooledCache = null, releaseCache(remainingLanes))); 6865 } 6866 function flushPendingEffects() { 6867 flushMutationEffects(); 6868 flushLayoutEffects(); 6869 flushSpawnedWork(); 6870 return flushPassiveEffects(); 6871 } 6872 function flushPassiveEffects() { 6873 if (5 !== pendingEffectsStatus) return !1; 6874 var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; 6875 pendingEffectsRemainingLanes = 0; 6876 var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p; 6877 try { 6878 ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority; 6879 ReactSharedInternals.T = null; 6880 renderPriority = pendingPassiveTransitions; 6881 pendingPassiveTransitions = null; 6882 var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes; 6883 pendingEffectsStatus = 0; 6884 pendingFinishedWork = pendingEffectsRoot = null; 6885 pendingEffectsLanes = 0; 6886 if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331)); 6887 var prevExecutionContext = executionContext; 6888 executionContext |= 4; 6889 commitPassiveUnmountOnFiber(root$jscomp$0.current); 6890 commitPassiveMountOnFiber(root$jscomp$0, root$jscomp$0.current, lanes, renderPriority); 6891 executionContext = prevExecutionContext; 6892 flushSyncWorkAcrossRoots_impl(0, !1); 6893 if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) try { 6894 injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0); 6895 } catch (err) {} 6896 return !0; 6897 } finally { 6898 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, releaseRootPooledCache(root, remainingLanes); 6899 } 6900 } 6901 function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { 6902 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 6903 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2); 6904 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); 6905 null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber)); 6906 } 6907 function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { 6908 if (3 === sourceFiber.tag) captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); 6909 else for (; null !== nearestMountedAncestor;) { 6910 if (3 === nearestMountedAncestor.tag) { 6911 captureCommitPhaseErrorOnRoot(nearestMountedAncestor, sourceFiber, error); 6912 break; 6913 } else if (1 === nearestMountedAncestor.tag) { 6914 var instance = nearestMountedAncestor.stateNode; 6915 if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { 6916 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 6917 error = createClassErrorUpdate(2); 6918 instance = enqueueUpdate(nearestMountedAncestor, error, 2); 6919 null !== instance && (initializeClassErrorUpdate(error, instance, nearestMountedAncestor, sourceFiber), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance)); 6920 break; 6921 } 6922 } 6923 nearestMountedAncestor = nearestMountedAncestor.return; 6924 } 6925 } 6926 function attachPingListener(root, wakeable, lanes) { 6927 var pingCache = root.pingCache; 6928 if (null === pingCache) { 6929 pingCache = root.pingCache = new PossiblyWeakMap(); 6930 var threadIDs = /* @__PURE__ */ new Set(); 6931 pingCache.set(wakeable, threadIDs); 6932 } else threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs)); 6933 threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root)); 6934 } 6935 function pingSuspendedRoot(root, wakeable, pingedLanes) { 6936 var pingCache = root.pingCache; 6937 null !== pingCache && pingCache.delete(wakeable); 6938 root.pingedLanes |= root.suspendedLanes & pingedLanes; 6939 root.warmLanes &= ~pingedLanes; 6940 workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime ? 0 === (executionContext & 2) && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)); 6941 ensureRootIsScheduled(root); 6942 } 6943 function retryTimedOutBoundary(boundaryFiber, retryLane) { 6944 0 === retryLane && (retryLane = claimNextRetryLane()); 6945 boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); 6946 null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber)); 6947 } 6948 function retryDehydratedSuspenseBoundary(boundaryFiber) { 6949 var suspenseState = boundaryFiber.memoizedState, retryLane = 0; 6950 null !== suspenseState && (retryLane = suspenseState.retryLane); 6951 retryTimedOutBoundary(boundaryFiber, retryLane); 6952 } 6953 function resolveRetryWakeable(boundaryFiber, wakeable) { 6954 var retryLane = 0; 6955 switch (boundaryFiber.tag) { 6956 case 31: 6957 case 13: 6958 var retryCache = boundaryFiber.stateNode; 6959 var suspenseState = boundaryFiber.memoizedState; 6960 null !== suspenseState && (retryLane = suspenseState.retryLane); 6961 break; 6962 case 19: 6963 retryCache = boundaryFiber.stateNode; 6964 break; 6965 case 22: 6966 retryCache = boundaryFiber.stateNode._retryCache; 6967 break; 6968 default: throw Error(formatProdErrorMessage(314)); 6969 } 6970 null !== retryCache && retryCache.delete(wakeable); 6971 retryTimedOutBoundary(boundaryFiber, retryLane); 6972 } 6973 function scheduleCallback$1(priorityLevel, callback) { 6974 return scheduleCallback$3(priorityLevel, callback); 6975 } 6976 var firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0; 6977 function ensureRootIsScheduled(root) { 6978 root !== lastScheduledRoot && null === root.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root); 6979 mightHavePendingSyncWork = !0; 6980 didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask()); 6981 } 6982 function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { 6983 if (!isFlushingWork && mightHavePendingSyncWork) { 6984 isFlushingWork = !0; 6985 do { 6986 var didPerformSomeWork = !1; 6987 for (var root$170 = firstScheduledRoot; null !== root$170;) { 6988 if (!onlyLegacy) if (0 !== syncTransitionLanes) { 6989 var pendingLanes = root$170.pendingLanes; 6990 if (0 === pendingLanes) var JSCompiler_inline_result = 0; 6991 else { 6992 var suspendedLanes = root$170.suspendedLanes, pingedLanes = root$170.pingedLanes; 6993 JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1; 6994 JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes); 6995 JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0; 6996 } 6997 0 !== JSCompiler_inline_result && (didPerformSomeWork = !0, performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); 6998 } else JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(root$170, root$170 === workInProgressRoot ? JSCompiler_inline_result : 0, null !== root$170.cancelPendingCommit || -1 !== root$170.timeoutHandle), 0 === (JSCompiler_inline_result & 3) || checkIfRootIsPrerendering(root$170, JSCompiler_inline_result) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); 6999 root$170 = root$170.next; 7000 } 7001 } while (didPerformSomeWork); 7002 isFlushingWork = !1; 7003 } 7004 } 7005 function processRootScheduleInImmediateTask() { 7006 processRootScheduleInMicrotask(); 7007 } 7008 function processRootScheduleInMicrotask() { 7009 mightHavePendingSyncWork = didScheduleMicrotask = !1; 7010 var syncTransitionLanes = 0; 7011 0 !== currentEventTransitionLane && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane); 7012 for (var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root;) { 7013 var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime); 7014 if (0 === nextLanes) root.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev); 7015 else if (prev = root, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) mightHavePendingSyncWork = !0; 7016 root = next; 7017 } 7018 0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1); 7019 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0); 7020 } 7021 function scheduleTaskForRootDuringMicrotask(root, currentTime) { 7022 for (var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes;) { 7023 var index$5 = 31 - clz32(lanes), lane = 1 << index$5, expirationTime = expirationTimes[index$5]; 7024 if (-1 === expirationTime) { 7025 if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) expirationTimes[index$5] = computeExpirationTime(lane, currentTime); 7026 } else expirationTime <= currentTime && (root.expiredLanes |= lane); 7027 lanes &= ~lane; 7028 } 7029 currentTime = workInProgressRoot; 7030 suspendedLanes = workInProgressRootRenderLanes; 7031 suspendedLanes = getNextLanes(root, root === currentTime ? suspendedLanes : 0, null !== root.cancelPendingCommit || -1 !== root.timeoutHandle); 7032 pingedLanes = root.callbackNode; 7033 if (0 === suspendedLanes || root === currentTime && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root.cancelPendingCommit) return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root.callbackNode = null, root.callbackPriority = 0; 7034 if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root, suspendedLanes)) { 7035 currentTime = suspendedLanes & -suspendedLanes; 7036 if (currentTime === root.callbackPriority) return currentTime; 7037 null !== pingedLanes && cancelCallback$1(pingedLanes); 7038 switch (lanesToEventPriority(suspendedLanes)) { 7039 case 2: 7040 case 8: 7041 suspendedLanes = UserBlockingPriority; 7042 break; 7043 case 32: 7044 suspendedLanes = NormalPriority$1; 7045 break; 7046 case 268435456: 7047 suspendedLanes = IdlePriority; 7048 break; 7049 default: suspendedLanes = NormalPriority$1; 7050 } 7051 pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); 7052 suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); 7053 root.callbackPriority = currentTime; 7054 root.callbackNode = suspendedLanes; 7055 return currentTime; 7056 } 7057 null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes); 7058 root.callbackPriority = 2; 7059 root.callbackNode = null; 7060 return 2; 7061 } 7062 function performWorkOnRootViaSchedulerTask(root, didTimeout) { 7063 if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus) return root.callbackNode = null, root.callbackPriority = 0, null; 7064 var originalCallbackNode = root.callbackNode; 7065 if (flushPendingEffects() && root.callbackNode !== originalCallbackNode) return null; 7066 var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes; 7067 workInProgressRootRenderLanes$jscomp$0 = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0, null !== root.cancelPendingCommit || -1 !== root.timeoutHandle); 7068 if (0 === workInProgressRootRenderLanes$jscomp$0) return null; 7069 performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout); 7070 scheduleTaskForRootDuringMicrotask(root, now()); 7071 return null != root.callbackNode && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null; 7072 } 7073 function performSyncWorkOnRoot(root, lanes) { 7074 if (flushPendingEffects()) return null; 7075 performWorkOnRoot(root, lanes, !0); 7076 } 7077 function scheduleImmediateRootScheduleTask() { 7078 scheduleMicrotask(function() { 7079 0 !== (executionContext & 6) ? scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask) : processRootScheduleInMicrotask(); 7080 }); 7081 } 7082 function requestTransitionLane() { 7083 if (0 === currentEventTransitionLane) { 7084 var actionScopeLane = currentEntangledLane; 7085 0 === actionScopeLane && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, 0 === (nextTransitionUpdateLane & 261888) && (nextTransitionUpdateLane = 256)); 7086 currentEventTransitionLane = actionScopeLane; 7087 } 7088 return currentEventTransitionLane; 7089 } 7090 function coerceFormActionProp(actionProp) { 7091 return null == actionProp || "symbol" === typeof actionProp || "boolean" === typeof actionProp ? null : "function" === typeof actionProp ? actionProp : sanitizeURL("" + actionProp); 7092 } 7093 function createFormDataWithSubmitter(form, submitter) { 7094 var temp = submitter.ownerDocument.createElement("input"); 7095 temp.name = submitter.name; 7096 temp.value = submitter.value; 7097 form.id && temp.setAttribute("form", form.id); 7098 submitter.parentNode.insertBefore(temp, submitter); 7099 form = new FormData(form); 7100 temp.parentNode.removeChild(temp); 7101 return form; 7102 } 7103 function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEvent, nativeEventTarget) { 7104 if ("submit" === domEventName && maybeTargetInst && maybeTargetInst.stateNode === nativeEventTarget) { 7105 var action = coerceFormActionProp((nativeEventTarget[internalPropsKey] || null).action), submitter = nativeEvent.submitter; 7106 submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), null !== domEventName && (action = domEventName, submitter = null)); 7107 var event = new SyntheticEvent("action", "action", null, nativeEvent, nativeEventTarget); 7108 dispatchQueue.push({ 7109 event, 7110 listeners: [{ 7111 instance: null, 7112 listener: function() { 7113 if (nativeEvent.defaultPrevented) { 7114 if (0 !== currentEventTransitionLane) { 7115 var formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget); 7116 startHostTransition(maybeTargetInst, { 7117 pending: !0, 7118 data: formData, 7119 method: nativeEventTarget.method, 7120 action 7121 }, null, formData); 7122 } 7123 } else "function" === typeof action && (event.preventDefault(), formData = submitter ? createFormDataWithSubmitter(nativeEventTarget, submitter) : new FormData(nativeEventTarget), startHostTransition(maybeTargetInst, { 7124 pending: !0, 7125 data: formData, 7126 method: nativeEventTarget.method, 7127 action 7128 }, action, formData)); 7129 }, 7130 currentTarget: nativeEventTarget 7131 }] 7132 }); 7133 } 7134 } 7135 for (var i$jscomp$inline_1577 = 0; i$jscomp$inline_1577 < simpleEventPluginEvents.length; i$jscomp$inline_1577++) { 7136 var eventName$jscomp$inline_1578 = simpleEventPluginEvents[i$jscomp$inline_1577]; 7137 registerSimpleEvent(eventName$jscomp$inline_1578.toLowerCase(), "on" + (eventName$jscomp$inline_1578[0].toUpperCase() + eventName$jscomp$inline_1578.slice(1))); 7138 } 7139 registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); 7140 registerSimpleEvent(ANIMATION_ITERATION, "onAnimationIteration");
vendor: 1,807 bytes, lines 7141-7164
7141 registerSimpleEvent(ANIMATION_START, "onAnimationStart"); 7142 registerSimpleEvent("dblclick", "onDoubleClick"); 7143 registerSimpleEvent("focusin", "onFocus"); 7144 registerSimpleEvent("focusout", "onBlur"); 7145 registerSimpleEvent(TRANSITION_RUN, "onTransitionRun"); 7146 registerSimpleEvent(TRANSITION_START, "onTransitionStart"); 7147 registerSimpleEvent(TRANSITION_CANCEL, "onTransitionCancel"); 7148 registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); 7149 registerDirectEvent("onMouseEnter", ["mouseout", "mouseover"]); 7150 registerDirectEvent("onMouseLeave", ["mouseout", "mouseover"]); 7151 registerDirectEvent("onPointerEnter", ["pointerout", "pointerover"]); 7152 registerDirectEvent("onPointerLeave", ["pointerout", "pointerover"]); 7153 registerTwoPhaseEvent("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); 7154 registerTwoPhaseEvent("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); 7155 registerTwoPhaseEvent("onBeforeInput", [ 7156 "compositionend", 7157 "keypress", 7158 "textInput", 7159 "paste" 7160 ]); 7161 registerTwoPhaseEvent("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); 7162 registerTwoPhaseEvent("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); 7163 registerTwoPhaseEvent("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); 7164 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));
vendor: 47,547 bytes, lines 7165-8170
7165 function processDispatchQueue(dispatchQueue, eventSystemFlags) { 7166 eventSystemFlags = 0 !== (eventSystemFlags & 4); 7167 for (var i = 0; i < dispatchQueue.length; i++) { 7168 var _dispatchQueue$i = dispatchQueue[i], event = _dispatchQueue$i.event; 7169 _dispatchQueue$i = _dispatchQueue$i.listeners; 7170 a: { 7171 var previousInstance = void 0; 7172 if (eventSystemFlags) for (var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--) { 7173 var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget; 7174 _dispatchListeners$i = _dispatchListeners$i.listener; 7175 if (instance !== previousInstance && event.isPropagationStopped()) break a; 7176 previousInstance = _dispatchListeners$i; 7177 event.currentTarget = currentTarget; 7178 try { 7179 previousInstance(event); 7180 } catch (error) { 7181 reportGlobalError(error); 7182 } 7183 event.currentTarget = null; 7184 previousInstance = instance; 7185 } 7186 else for (i$jscomp$0 = 0; i$jscomp$0 < _dispatchQueue$i.length; i$jscomp$0++) { 7187 _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0]; 7188 instance = _dispatchListeners$i.instance; 7189 currentTarget = _dispatchListeners$i.currentTarget; 7190 _dispatchListeners$i = _dispatchListeners$i.listener; 7191 if (instance !== previousInstance && event.isPropagationStopped()) break a; 7192 previousInstance = _dispatchListeners$i; 7193 event.currentTarget = currentTarget; 7194 try { 7195 previousInstance(event); 7196 } catch (error) { 7197 reportGlobalError(error); 7198 } 7199 event.currentTarget = null; 7200 previousInstance = instance; 7201 } 7202 } 7203 } 7204 } 7205 function listenToNonDelegatedEvent(domEventName, targetElement) { 7206 var JSCompiler_inline_result = targetElement[internalEventHandlersKey]; 7207 void 0 === JSCompiler_inline_result && (JSCompiler_inline_result = targetElement[internalEventHandlersKey] = /* @__PURE__ */ new Set()); 7208 var listenerSetKey = domEventName + "__bubble"; 7209 JSCompiler_inline_result.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, !1), JSCompiler_inline_result.add(listenerSetKey)); 7210 } 7211 function listenToNativeEvent(domEventName, isCapturePhaseListener, target) { 7212 var eventSystemFlags = 0; 7213 isCapturePhaseListener && (eventSystemFlags |= 4); 7214 addTrappedEventListener(target, domEventName, eventSystemFlags, isCapturePhaseListener); 7215 } 7216 var listeningMarker = "_reactListening" + Math.random().toString(36).slice(2); 7217 function listenToAllSupportedEvents(rootContainerElement) { 7218 if (!rootContainerElement[listeningMarker]) { 7219 rootContainerElement[listeningMarker] = !0; 7220 allNativeEvents.forEach(function(domEventName) { 7221 "selectionchange" !== domEventName && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, !1, rootContainerElement), listenToNativeEvent(domEventName, !0, rootContainerElement)); 7222 }); 7223 var ownerDocument = 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 7224 null === ownerDocument || ownerDocument[listeningMarker] || (ownerDocument[listeningMarker] = !0, listenToNativeEvent("selectionchange", !1, ownerDocument)); 7225 } 7226 } 7227 function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener) { 7228 switch (getEventPriority(domEventName)) { 7229 case 2: 7230 var listenerWrapper = dispatchDiscreteEvent; 7231 break; 7232 case 8: 7233 listenerWrapper = dispatchContinuousEvent; 7234 break; 7235 default: listenerWrapper = dispatchEvent; 7236 } 7237 eventSystemFlags = listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer); 7238 listenerWrapper = void 0; 7239 !passiveBrowserEventsSupported || "touchstart" !== domEventName && "touchmove" !== domEventName && "wheel" !== domEventName || (listenerWrapper = !0); 7240 isCapturePhaseListener ? void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 7241 capture: !0, 7242 passive: listenerWrapper 7243 }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !0) : void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { passive: listenerWrapper }) : targetContainer.addEventListener(domEventName, eventSystemFlags, !1); 7244 } 7245 function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) { 7246 var ancestorInst = targetInst$jscomp$0; 7247 if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0) a: for (;;) { 7248 if (null === targetInst$jscomp$0) return; 7249 var nodeTag = targetInst$jscomp$0.tag; 7250 if (3 === nodeTag || 4 === nodeTag) { 7251 var container = targetInst$jscomp$0.stateNode.containerInfo; 7252 if (container === targetContainer) break; 7253 if (4 === nodeTag) for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag;) { 7254 var grandTag = nodeTag.tag; 7255 if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer) return; 7256 nodeTag = nodeTag.return; 7257 } 7258 for (; null !== container;) { 7259 nodeTag = getClosestInstanceFromNode(container); 7260 if (null === nodeTag) return; 7261 grandTag = nodeTag.tag; 7262 if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) { 7263 targetInst$jscomp$0 = ancestorInst = nodeTag; 7264 continue a; 7265 } 7266 container = container.parentNode; 7267 } 7268 } 7269 targetInst$jscomp$0 = targetInst$jscomp$0.return; 7270 } 7271 batchedUpdates$1(function() { 7272 var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; 7273 a: { 7274 var reactName = topLevelEventsToReactNames.get(domEventName); 7275 if (void 0 !== reactName) { 7276 var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName; 7277 switch (domEventName) { 7278 case "keypress": if (0 === getEventCharCode(nativeEvent)) break a; 7279 case "keydown": 7280 case "keyup": 7281 SyntheticEventCtor = SyntheticKeyboardEvent; 7282 break; 7283 case "focusin": 7284 reactEventType = "focus"; 7285 SyntheticEventCtor = SyntheticFocusEvent; 7286 break; 7287 case "focusout": 7288 reactEventType = "blur"; 7289 SyntheticEventCtor = SyntheticFocusEvent; 7290 break; 7291 case "beforeblur": 7292 case "afterblur": 7293 SyntheticEventCtor = SyntheticFocusEvent; 7294 break; 7295 case "click": if (2 === nativeEvent.button) break a; 7296 case "auxclick": 7297 case "dblclick": 7298 case "mousedown": 7299 case "mousemove": 7300 case "mouseup": 7301 case "mouseout": 7302 case "mouseover": 7303 case "contextmenu": 7304 SyntheticEventCtor = SyntheticMouseEvent; 7305 break; 7306 case "drag": 7307 case "dragend": 7308 case "dragenter": 7309 case "dragexit": 7310 case "dragleave": 7311 case "dragover": 7312 case "dragstart": 7313 case "drop": 7314 SyntheticEventCtor = SyntheticDragEvent; 7315 break; 7316 case "touchcancel": 7317 case "touchend": 7318 case "touchmove": 7319 case "touchstart": 7320 SyntheticEventCtor = SyntheticTouchEvent; 7321 break; 7322 case ANIMATION_END: 7323 case ANIMATION_ITERATION: 7324 case ANIMATION_START: 7325 SyntheticEventCtor = SyntheticAnimationEvent; 7326 break; 7327 case TRANSITION_END: 7328 SyntheticEventCtor = SyntheticTransitionEvent; 7329 break; 7330 case "scroll": 7331 case "scrollend": 7332 SyntheticEventCtor = SyntheticUIEvent; 7333 break; 7334 case "wheel": 7335 SyntheticEventCtor = SyntheticWheelEvent; 7336 break; 7337 case "copy": 7338 case "cut": 7339 case "paste": 7340 SyntheticEventCtor = SyntheticClipboardEvent; 7341 break; 7342 case "gotpointercapture": 7343 case "lostpointercapture": 7344 case "pointercancel": 7345 case "pointerdown": 7346 case "pointermove": 7347 case "pointerout": 7348 case "pointerover": 7349 case "pointerup": 7350 SyntheticEventCtor = SyntheticPointerEvent; 7351 break; 7352 case "toggle": 7353 case "beforetoggle": SyntheticEventCtor = SyntheticToggleEvent; 7354 } 7355 var inCapturePhase = 0 !== (eventSystemFlags & 4), accumulateTargetOnly = !inCapturePhase && ("scroll" === domEventName || "scrollend" === domEventName), reactEventName = inCapturePhase ? null !== reactName ? reactName + "Capture" : null : reactName; 7356 inCapturePhase = []; 7357 for (var instance = targetInst, lastHostComponent; null !== instance;) { 7358 var _instance = instance; 7359 lastHostComponent = _instance.stateNode; 7360 _instance = _instance.tag; 7361 5 !== _instance && 26 !== _instance && 27 !== _instance || null === lastHostComponent || null === reactEventName || (_instance = getListener(instance, reactEventName), null != _instance && inCapturePhase.push(createDispatchListener(instance, _instance, lastHostComponent))); 7362 if (accumulateTargetOnly) break; 7363 instance = instance.return; 7364 } 7365 0 < inCapturePhase.length && (reactName = new SyntheticEventCtor(reactName, reactEventType, null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 7366 event: reactName, 7367 listeners: inCapturePhase 7368 })); 7369 } 7370 } 7371 if (0 === (eventSystemFlags & 7)) { 7372 a: { 7373 reactName = "mouseover" === domEventName || "pointerover" === domEventName; 7374 SyntheticEventCtor = "mouseout" === domEventName || "pointerout" === domEventName; 7375 if (reactName && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey])) break a; 7376 if (SyntheticEventCtor || reactName) { 7377 reactName = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget : (reactName = nativeEventTarget.ownerDocument) ? reactName.defaultView || reactName.parentWindow : window; 7378 if (SyntheticEventCtor) { 7379 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; 7380 } else SyntheticEventCtor = null, reactEventType = targetInst; 7381 if (SyntheticEventCtor !== reactEventType) { 7382 inCapturePhase = SyntheticMouseEvent; 7383 _instance = "onMouseLeave"; 7384 reactEventName = "onMouseEnter"; 7385 instance = "mouse"; 7386 if ("pointerout" === domEventName || "pointerover" === domEventName) inCapturePhase = SyntheticPointerEvent, _instance = "onPointerLeave", reactEventName = "onPointerEnter", instance = "pointer"; 7387 accumulateTargetOnly = null == SyntheticEventCtor ? reactName : getNodeFromInstance(SyntheticEventCtor); 7388 lastHostComponent = null == reactEventType ? reactName : getNodeFromInstance(reactEventType); 7389 reactName = new inCapturePhase(_instance, instance + "leave", SyntheticEventCtor, nativeEvent, nativeEventTarget); 7390 reactName.target = accumulateTargetOnly; 7391 reactName.relatedTarget = lastHostComponent; 7392 _instance = null; 7393 getClosestInstanceFromNode(nativeEventTarget) === targetInst && (inCapturePhase = new inCapturePhase(reactEventName, instance + "enter", reactEventType, nativeEvent, nativeEventTarget), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance = inCapturePhase); 7394 accumulateTargetOnly = _instance; 7395 if (SyntheticEventCtor && reactEventType) b: { 7396 inCapturePhase = getParent; 7397 reactEventName = SyntheticEventCtor; 7398 instance = reactEventType; 7399 lastHostComponent = 0; 7400 for (_instance = reactEventName; _instance; _instance = inCapturePhase(_instance)) lastHostComponent++; 7401 _instance = 0; 7402 for (var tempB = instance; tempB; tempB = inCapturePhase(tempB)) _instance++; 7403 for (; 0 < lastHostComponent - _instance;) reactEventName = inCapturePhase(reactEventName), lastHostComponent--; 7404 for (; 0 < _instance - lastHostComponent;) instance = inCapturePhase(instance), _instance--; 7405 for (; lastHostComponent--;) { 7406 if (reactEventName === instance || null !== instance && reactEventName === instance.alternate) { 7407 inCapturePhase = reactEventName; 7408 break b; 7409 } 7410 reactEventName = inCapturePhase(reactEventName); 7411 instance = inCapturePhase(instance); 7412 } 7413 inCapturePhase = null; 7414 } 7415 else inCapturePhase = null; 7416 null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent(dispatchQueue, reactName, SyntheticEventCtor, inCapturePhase, !1); 7417 null !== reactEventType && null !== accumulateTargetOnly && accumulateEnterLeaveListenersForEvent(dispatchQueue, accumulateTargetOnly, reactEventType, inCapturePhase, !0); 7418 } 7419 } 7420 } 7421 a: { 7422 reactName = targetInst ? getNodeFromInstance(targetInst) : window; 7423 SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase(); 7424 if ("select" === SyntheticEventCtor || "input" === SyntheticEventCtor && "file" === reactName.type) var getTargetInstFunc = getTargetInstForChangeEvent; 7425 else if (isTextInputElement(reactName)) if (isInputEventSupported) getTargetInstFunc = getTargetInstForInputOrChangeEvent; 7426 else { 7427 getTargetInstFunc = getTargetInstForInputEventPolyfill; 7428 var handleEventFunc = handleEventsForInputEventPolyfill; 7429 } 7430 else SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor || "input" !== SyntheticEventCtor.toLowerCase() || "checkbox" !== reactName.type && "radio" !== reactName.type ? targetInst && isCustomElement(targetInst.elementType) && (getTargetInstFunc = getTargetInstForChangeEvent) : getTargetInstFunc = getTargetInstForClickEvent; 7431 if (getTargetInstFunc && (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))) { 7432 createAndAccumulateChangeEvent(dispatchQueue, getTargetInstFunc, nativeEvent, nativeEventTarget); 7433 break a; 7434 } 7435 handleEventFunc && handleEventFunc(domEventName, reactName, targetInst); 7436 "focusout" === domEventName && targetInst && "number" === reactName.type && null != targetInst.memoizedProps.value && setDefaultValue(reactName, "number", reactName.value); 7437 } 7438 handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window; 7439 switch (domEventName) { 7440 case "focusin": 7441 if (isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable) activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null; 7442 break; 7443 case "focusout": 7444 lastSelection = activeElementInst = activeElement = null; 7445 break; 7446 case "mousedown": 7447 mouseDown = !0; 7448 break; 7449 case "contextmenu": 7450 case "mouseup": 7451 case "dragend": 7452 mouseDown = !1; 7453 constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 7454 break; 7455 case "selectionchange": if (skipSelectionChangeEvent) break; 7456 case "keydown": 7457 case "keyup": constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget); 7458 } 7459 var fallbackData; 7460 if (canUseCompositionEvent) b: { 7461 switch (domEventName) { 7462 case "compositionstart": 7463 var eventType = "onCompositionStart"; 7464 break b; 7465 case "compositionend": 7466 eventType = "onCompositionEnd"; 7467 break b; 7468 case "compositionupdate": 7469 eventType = "onCompositionUpdate"; 7470 break b; 7471 } 7472 eventType = void 0; 7473 } 7474 else isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : "keydown" === domEventName && 229 === nativeEvent.keyCode && (eventType = "onCompositionStart"); 7475 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({ 7476 event: eventType, 7477 listeners: handleEventFunc 7478 }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent), null !== fallbackData && (eventType.data = fallbackData)))); 7479 if (fallbackData = canUseTextInputEvent ? getNativeBeforeInputChars(domEventName, nativeEvent) : getFallbackBeforeInputChars(domEventName, nativeEvent)) eventType = accumulateTwoPhaseListeners(targetInst, "onBeforeInput"), 0 < eventType.length && (handleEventFunc = new SyntheticCompositionEvent("onBeforeInput", "beforeinput", null, nativeEvent, nativeEventTarget), dispatchQueue.push({ 7480 event: handleEventFunc, 7481 listeners: eventType 7482 }), handleEventFunc.data = fallbackData); 7483 extractEvents$1(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget); 7484 } 7485 processDispatchQueue(dispatchQueue, eventSystemFlags); 7486 }); 7487 } 7488 function createDispatchListener(instance, listener, currentTarget) { 7489 return { 7490 instance, 7491 listener, 7492 currentTarget 7493 }; 7494 } 7495 function accumulateTwoPhaseListeners(targetFiber, reactName) { 7496 for (var captureName = reactName + "Capture", listeners = []; null !== targetFiber;) { 7497 var _instance2 = targetFiber, stateNode = _instance2.stateNode; 7498 _instance2 = _instance2.tag; 7499 5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2 || null === stateNode || (_instance2 = getListener(targetFiber, captureName), null != _instance2 && listeners.unshift(createDispatchListener(targetFiber, _instance2, stateNode)), _instance2 = getListener(targetFiber, reactName), null != _instance2 && listeners.push(createDispatchListener(targetFiber, _instance2, stateNode))); 7500 if (3 === targetFiber.tag) return listeners; 7501 targetFiber = targetFiber.return; 7502 } 7503 return []; 7504 } 7505 function getParent(inst) { 7506 if (null === inst) return null; 7507 do 7508 inst = inst.return; 7509 while (inst && 5 !== inst.tag && 27 !== inst.tag); 7510 return inst ? inst : null; 7511 } 7512 function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { 7513 for (var registrationName = event._reactName, listeners = []; null !== target && target !== common;) { 7514 var _instance3 = target, alternate = _instance3.alternate, stateNode = _instance3.stateNode; 7515 _instance3 = _instance3.tag; 7516 if (null !== alternate && alternate === common) break; 7517 5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || 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)))); 7518 target = target.return; 7519 } 7520 0 !== listeners.length && dispatchQueue.push({ 7521 event, 7522 listeners 7523 }); 7524 } 7525 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; 7526 function normalizeMarkupForTextOrAttribute(markup) { 7527 return ("string" === typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 7528 } 7529 function checkForUnmatchedText(serverText, clientText) { 7530 clientText = normalizeMarkupForTextOrAttribute(clientText); 7531 return normalizeMarkupForTextOrAttribute(serverText) === clientText ? !0 : !1; 7532 } 7533 function setProp(domElement, tag, key, value, props, prevValue) { 7534 switch (key) { 7535 case "children": 7536 "string" === typeof value ? "body" === tag || "textarea" === tag && "" === value || setTextContent(domElement, value) : ("number" === typeof value || "bigint" === typeof value) && "body" !== tag && setTextContent(domElement, "" + value); 7537 break; 7538 case "className": 7539 setValueForKnownAttribute(domElement, "class", value); 7540 break; 7541 case "tabIndex": 7542 setValueForKnownAttribute(domElement, "tabindex", value); 7543 break; 7544 case "dir": 7545 case "role": 7546 case "viewBox": 7547 case "width": 7548 case "height": 7549 setValueForKnownAttribute(domElement, key, value); 7550 break; 7551 case "style": 7552 setValueForStyles(domElement, value, prevValue); 7553 break; 7554 case "data": if ("object" !== tag) { 7555 setValueForKnownAttribute(domElement, "data", value); 7556 break; 7557 } 7558 case "src": 7559 case "href": 7560 if ("" === value && ("a" !== tag || "href" !== key)) { 7561 domElement.removeAttribute(key); 7562 break; 7563 } 7564 if (null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) { 7565 domElement.removeAttribute(key); 7566 break; 7567 } 7568 value = sanitizeURL("" + value); 7569 domElement.setAttribute(key, value); 7570 break; 7571 case "action": 7572 case "formAction": 7573 if ("function" === typeof value) { 7574 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().')"); 7575 break; 7576 } 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))); 7577 if (null == value || "symbol" === typeof value || "boolean" === typeof value) { 7578 domElement.removeAttribute(key); 7579 break; 7580 } 7581 value = sanitizeURL("" + value); 7582 domElement.setAttribute(key, value); 7583 break; 7584 case "onClick": 7585 null != value && (domElement.onclick = noop$1); 7586 break; 7587 case "onScroll": 7588 null != value && listenToNonDelegatedEvent("scroll", domElement); 7589 break; 7590 case "onScrollEnd": 7591 null != value && listenToNonDelegatedEvent("scrollend", domElement); 7592 break; 7593 case "dangerouslySetInnerHTML": 7594 if (null != value) { 7595 if ("object" !== typeof value || !("__html" in value)) throw Error(formatProdErrorMessage(61)); 7596 key = value.__html; 7597 if (null != key) { 7598 if (null != props.children) throw Error(formatProdErrorMessage(60)); 7599 domElement.innerHTML = key; 7600 } 7601 } 7602 break; 7603 case "multiple": 7604 domElement.multiple = value && "function" !== typeof value && "symbol" !== typeof value; 7605 break; 7606 case "muted": 7607 domElement.muted = value && "function" !== typeof value && "symbol" !== typeof value; 7608 break; 7609 case "suppressContentEditableWarning": 7610 case "suppressHydrationWarning": 7611 case "defaultValue": 7612 case "defaultChecked": 7613 case "innerHTML": 7614 case "ref": break; 7615 case "autoFocus": break; 7616 case "xlinkHref": 7617 if (null == value || "function" === typeof value || "boolean" === typeof value || "symbol" === typeof value) { 7618 domElement.removeAttribute("xlink:href"); 7619 break; 7620 } 7621 key = sanitizeURL("" + value); 7622 domElement.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", key); 7623 break; 7624 case "contentEditable": 7625 case "spellCheck": 7626 case "draggable": 7627 case "value": 7628 case "autoReverse": 7629 case "externalResourcesRequired": 7630 case "focusable": 7631 case "preserveAlpha": 7632 null != value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, "" + value) : domElement.removeAttribute(key); 7633 break; 7634 case "inert": 7635 case "allowFullScreen": 7636 case "async": 7637 case "autoPlay": 7638 case "controls": 7639 case "default": 7640 case "defer": 7641 case "disabled": 7642 case "disablePictureInPicture": 7643 case "disableRemotePlayback": 7644 case "formNoValidate": 7645 case "hidden": 7646 case "loop": 7647 case "noModule": 7648 case "noValidate": 7649 case "open": 7650 case "playsInline": 7651 case "readOnly": 7652 case "required": 7653 case "reversed": 7654 case "scoped": 7655 case "seamless": 7656 case "itemScope": 7657 value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, "") : domElement.removeAttribute(key); 7658 break; 7659 case "capture": 7660 case "download": 7661 !0 === value ? domElement.setAttribute(key, "") : !1 !== value && null != value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, value) : domElement.removeAttribute(key); 7662 break; 7663 case "cols": 7664 case "rows": 7665 case "size": 7666 case "span": 7667 null != value && "function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value ? domElement.setAttribute(key, value) : domElement.removeAttribute(key); 7668 break; 7669 case "rowSpan": 7670 case "start": 7671 null == value || "function" === typeof value || "symbol" === typeof value || isNaN(value) ? domElement.removeAttribute(key) : domElement.setAttribute(key, value); 7672 break; 7673 case "popover": 7674 listenToNonDelegatedEvent("beforetoggle", domElement); 7675 listenToNonDelegatedEvent("toggle", domElement); 7676 setValueForAttribute(domElement, "popover", value); 7677 break; 7678 case "xlinkActuate": 7679 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:actuate", value); 7680 break; 7681 case "xlinkArcrole": 7682 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:arcrole", value); 7683 break; 7684 case "xlinkRole": 7685 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:role", value); 7686 break; 7687 case "xlinkShow": 7688 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:show", value); 7689 break; 7690 case "xlinkTitle": 7691 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:title", value); 7692 break; 7693 case "xlinkType": 7694 setValueForNamespacedAttribute(domElement, "http://www.w3.org/1999/xlink", "xlink:type", value); 7695 break; 7696 case "xmlBase": 7697 setValueForNamespacedAttribute(domElement, "http://www.w3.org/XML/1998/namespace", "xml:base", value); 7698 break; 7699 case "xmlLang": 7700 setValueForNamespacedAttribute(domElement, "http://www.w3.org/XML/1998/namespace", "xml:lang", value); 7701 break; 7702 case "xmlSpace": 7703 setValueForNamespacedAttribute(domElement, "http://www.w3.org/XML/1998/namespace", "xml:space", value); 7704 break; 7705 case "is": 7706 setValueForAttribute(domElement, "is", value); 7707 break; 7708 case "innerText": 7709 case "textContent": break; 7710 default: if (!(2 < key.length) || "o" !== key[0] && "O" !== key[0] || "n" !== key[1] && "N" !== key[1]) key = aliases.get(key) || key, setValueForAttribute(domElement, key, value); 7711 } 7712 } 7713 function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { 7714 switch (key) { 7715 case "style": 7716 setValueForStyles(domElement, value, prevValue); 7717 break; 7718 case "dangerouslySetInnerHTML": 7719 if (null != value) { 7720 if ("object" !== typeof value || !("__html" in value)) throw Error(formatProdErrorMessage(61)); 7721 key = value.__html; 7722 if (null != key) { 7723 if (null != props.children) throw Error(formatProdErrorMessage(60)); 7724 domElement.innerHTML = key; 7725 } 7726 } 7727 break; 7728 case "children": 7729 "string" === typeof value ? setTextContent(domElement, value) : ("number" === typeof value || "bigint" === typeof value) && setTextContent(domElement, "" + value); 7730 break; 7731 case "onScroll": 7732 null != value && listenToNonDelegatedEvent("scroll", domElement); 7733 break; 7734 case "onScrollEnd": 7735 null != value && listenToNonDelegatedEvent("scrollend", domElement); 7736 break; 7737 case "onClick": 7738 null != value && (domElement.onclick = noop$1); 7739 break; 7740 case "suppressContentEditableWarning": 7741 case "suppressHydrationWarning": 7742 case "innerHTML": 7743 case "ref": break; 7744 case "innerText": 7745 case "textContent": break; 7746 default: if (!registrationNameDependencies.hasOwnProperty(key)) a: { 7747 if ("o" === key[0] && "n" === key[1] && (props = key.endsWith("Capture"), tag = key.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)) { 7748 "function" !== typeof prevValue && null !== prevValue && (key in domElement ? domElement[key] = null : domElement.hasAttribute(key) && domElement.removeAttribute(key)); 7749 domElement.addEventListener(tag, value, props); 7750 break a; 7751 } 7752 key in domElement ? domElement[key] = value : !0 === value ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value); 7753 } 7754 } 7755 } 7756 function setInitialProperties(domElement, tag, props) { 7757 switch (tag) { 7758 case "div": 7759 case "span": 7760 case "svg": 7761 case "path": 7762 case "a": 7763 case "g": 7764 case "p": 7765 case "li": break; 7766 case "img": 7767 listenToNonDelegatedEvent("error", domElement); 7768 listenToNonDelegatedEvent("load", domElement); 7769 var hasSrc = !1, hasSrcSet = !1, propKey; 7770 for (propKey in props) if (props.hasOwnProperty(propKey)) { 7771 var propValue = props[propKey]; 7772 if (null != propValue) switch (propKey) { 7773 case "src": 7774 hasSrc = !0; 7775 break; 7776 case "srcSet": 7777 hasSrcSet = !0; 7778 break; 7779 case "children": 7780 case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); 7781 default: setProp(domElement, tag, propKey, propValue, props, null); 7782 } 7783 } 7784 hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null); 7785 hasSrc && setProp(domElement, tag, "src", props.src, props, null); 7786 return; 7787 case "input": 7788 listenToNonDelegatedEvent("invalid", domElement); 7789 var defaultValue = propKey = propValue = hasSrcSet = null, checked = null, defaultChecked = null; 7790 for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { 7791 var propValue$184 = props[hasSrc]; 7792 if (null != propValue$184) switch (hasSrc) { 7793 case "name": 7794 hasSrcSet = propValue$184; 7795 break; 7796 case "type": 7797 propValue = propValue$184; 7798 break; 7799 case "checked": 7800 checked = propValue$184; 7801 break; 7802 case "defaultChecked": 7803 defaultChecked = propValue$184; 7804 break; 7805 case "value": 7806 propKey = propValue$184; 7807 break; 7808 case "defaultValue": 7809 defaultValue = propValue$184; 7810 break; 7811 case "children": 7812 case "dangerouslySetInnerHTML": 7813 if (null != propValue$184) throw Error(formatProdErrorMessage(137, tag)); 7814 break; 7815 default: setProp(domElement, tag, hasSrc, propValue$184, props, null); 7816 } 7817 } 7818 initInput(domElement, propKey, defaultValue, checked, defaultChecked, propValue, hasSrcSet, !1); 7819 return; 7820 case "select": 7821 listenToNonDelegatedEvent("invalid", domElement); 7822 hasSrc = propValue = propKey = null; 7823 for (hasSrcSet in props) if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet], null != defaultValue)) switch (hasSrcSet) { 7824 case "value": 7825 propKey = defaultValue; 7826 break; 7827 case "defaultValue": 7828 propValue = defaultValue; 7829 break; 7830 case "multiple": hasSrc = defaultValue; 7831 default: setProp(domElement, tag, hasSrcSet, defaultValue, props, null); 7832 } 7833 tag = propKey; 7834 props = propValue; 7835 domElement.multiple = !!hasSrc; 7836 null != tag ? updateOptions(domElement, !!hasSrc, tag, !1) : null != props && updateOptions(domElement, !!hasSrc, props, !0); 7837 return; 7838 case "textarea": 7839 listenToNonDelegatedEvent("invalid", domElement); 7840 propKey = hasSrcSet = hasSrc = null; 7841 for (propValue in props) if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue], null != defaultValue)) switch (propValue) { 7842 case "value": 7843 hasSrc = defaultValue; 7844 break; 7845 case "defaultValue": 7846 hasSrcSet = defaultValue; 7847 break; 7848 case "children": 7849 propKey = defaultValue; 7850 break; 7851 case "dangerouslySetInnerHTML": 7852 if (null != defaultValue) throw Error(formatProdErrorMessage(91)); 7853 break; 7854 default: setProp(domElement, tag, propValue, defaultValue, props, null); 7855 } 7856 initTextarea(domElement, hasSrc, hasSrcSet, propKey); 7857 return; 7858 case "option": 7859 for (checked in props) if (props.hasOwnProperty(checked) && (hasSrc = props[checked], null != hasSrc)) switch (checked) { 7860 case "selected": 7861 domElement.selected = hasSrc && "function" !== typeof hasSrc && "symbol" !== typeof hasSrc; 7862 break; 7863 default: setProp(domElement, tag, checked, hasSrc, props, null); 7864 } 7865 return; 7866 case "dialog": 7867 listenToNonDelegatedEvent("beforetoggle", domElement); 7868 listenToNonDelegatedEvent("toggle", domElement); 7869 listenToNonDelegatedEvent("cancel", domElement); 7870 listenToNonDelegatedEvent("close", domElement); 7871 break; 7872 case "iframe": 7873 case "object": 7874 listenToNonDelegatedEvent("load", domElement); 7875 break; 7876 case "video": 7877 case "audio": 7878 for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++) listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement); 7879 break; 7880 case "image": 7881 listenToNonDelegatedEvent("error", domElement); 7882 listenToNonDelegatedEvent("load", domElement); 7883 break; 7884 case "details": 7885 listenToNonDelegatedEvent("toggle", domElement); 7886 break; 7887 case "embed": 7888 case "source": 7889 case "link": listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement); 7890 case "area": 7891 case "base": 7892 case "br": 7893 case "col": 7894 case "hr": 7895 case "keygen": 7896 case "meta": 7897 case "param": 7898 case "track": 7899 case "wbr": 7900 case "menuitem": 7901 for (defaultChecked in props) if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked], null != hasSrc)) switch (defaultChecked) { 7902 case "children": 7903 case "dangerouslySetInnerHTML": throw Error(formatProdErrorMessage(137, tag)); 7904 default: setProp(domElement, tag, defaultChecked, hasSrc, props, null); 7905 } 7906 return; 7907 default: if (isCustomElement(tag)) { 7908 for (propValue$184 in props) props.hasOwnProperty(propValue$184) && (hasSrc = props[propValue$184], void 0 !== hasSrc && setPropOnCustomElement(domElement, tag, propValue$184, hasSrc, props, void 0)); 7909 return; 7910 } 7911 } 7912 for (defaultValue in props) props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue], null != hasSrc && setProp(domElement, tag, defaultValue, hasSrc, props, null)); 7913 } 7914 function updateProperties(domElement, tag, lastProps, nextProps) { 7915 switch (tag) { 7916 case "div": 7917 case "span": 7918 case "svg": 7919 case "path": 7920 case "a": 7921 case "g": 7922 case "p": 7923 case "li": break; 7924 case "input": 7925 var name = null, type = null, value = null, defaultValue = null, lastDefaultValue = null, checked = null, defaultChecked = null; 7926 for (propKey in lastProps) { 7927 var lastProp = lastProps[propKey]; 7928 if (lastProps.hasOwnProperty(propKey) && null != lastProp) switch (propKey) { 7929 case "checked": break; 7930 case "value": break; 7931 case "defaultValue": lastDefaultValue = lastProp; 7932 default: nextProps.hasOwnProperty(propKey) || setProp(domElement, tag, propKey, null, nextProps, lastProp); 7933 } 7934 } 7935 for (var propKey$201 in nextProps) { 7936 var propKey = nextProps[propKey$201]; 7937 lastProp = lastProps[propKey$201]; 7938 if (nextProps.hasOwnProperty(propKey$201) && (null != propKey || null != lastProp)) switch (propKey$201) { 7939 case "type": 7940 type = propKey; 7941 break; 7942 case "name": 7943 name = propKey; 7944 break; 7945 case "checked": 7946 checked = propKey; 7947 break; 7948 case "defaultChecked": 7949 defaultChecked = propKey; 7950 break; 7951 case "value": 7952 value = propKey; 7953 break; 7954 case "defaultValue": 7955 defaultValue = propKey; 7956 break; 7957 case "children": 7958 case "dangerouslySetInnerHTML": 7959 if (null != propKey) throw Error(formatProdErrorMessage(137, tag)); 7960 break; 7961 default: propKey !== lastProp && setProp(domElement, tag, propKey$201, propKey, nextProps, lastProp); 7962 } 7963 } 7964 updateInput(domElement, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name); 7965 return; 7966 case "select": 7967 propKey = value = defaultValue = propKey$201 = null; 7968 for (type in lastProps) if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) && null != lastDefaultValue) switch (type) { 7969 case "value": break; 7970 case "multiple": propKey = lastDefaultValue; 7971 default: nextProps.hasOwnProperty(type) || setProp(domElement, tag, type, null, nextProps, lastDefaultValue); 7972 } 7973 for (name in nextProps) if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (null != type || null != lastDefaultValue)) switch (name) { 7974 case "value": 7975 propKey$201 = type; 7976 break; 7977 case "defaultValue": 7978 defaultValue = type; 7979 break; 7980 case "multiple": value = type; 7981 default: type !== lastDefaultValue && setProp(domElement, tag, name, type, nextProps, lastDefaultValue); 7982 } 7983 tag = defaultValue; 7984 lastProps = value; 7985 nextProps = propKey; 7986 null != propKey$201 ? updateOptions(domElement, !!lastProps, propKey$201, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); 7987 return; 7988 case "textarea": 7989 propKey = propKey$201 = null; 7990 for (defaultValue in lastProps) if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) && null != name && !nextProps.hasOwnProperty(defaultValue)) switch (defaultValue) { 7991 case "value": break; 7992 case "children": break; 7993 default: setProp(domElement, tag, defaultValue, null, nextProps, name); 7994 } 7995 for (value in nextProps) if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (null != name || null != type)) switch (value) { 7996 case "value": 7997 propKey$201 = name; 7998 break; 7999 case "defaultValue": 8000 propKey = name; 8001 break; 8002 case "children": break; 8003 case "dangerouslySetInnerHTML": 8004 if (null != name) throw Error(formatProdErrorMessage(91)); 8005 break; 8006 default: name !== type && setProp(domElement, tag, value, name, nextProps, type); 8007 } 8008 updateTextarea(domElement, propKey$201, propKey); 8009 return; 8010 case "option": 8011 for (var propKey$217 in lastProps) if (propKey$201 = lastProps[propKey$217], lastProps.hasOwnProperty(propKey$217) && null != propKey$201 && !nextProps.hasOwnProperty(propKey$217)) switch (propKey$217) { 8012 case "selected": 8013 domElement.selected = !1; 8014 break; 8015 default: setProp(domElement, tag, propKey$217, null, nextProps, propKey$201); 8016 } 8017 for (lastDefaultValue in nextProps) if (propKey$201 = nextProps[lastDefaultValue], propKey = lastProps[lastDefaultValue], nextProps.hasOwnProperty(lastDefaultValue) && propKey$201 !== propKey && (null != propKey$201 || null != propKey)) switch (lastDefaultValue) { 8018 case "selected": 8019 domElement.selected = propKey$201 && "function" !== typeof propKey$201 && "symbol" !== typeof propKey$201; 8020 break; 8021 default: setProp(domElement, tag, lastDefaultValue, propKey$201, nextProps, propKey); 8022 } 8023 return; 8024 case "img": 8025 case "link": 8026 case "area": 8027 case "base": 8028 case "br": 8029 case "col": 8030 case "embed": 8031 case "hr": 8032 case "keygen": 8033 case "meta": 8034 case "param": 8035 case "source": 8036 case "track": 8037 case "wbr": 8038 case "menuitem": 8039 for (var propKey$222 in lastProps) propKey$201 = lastProps[propKey$222], lastProps.hasOwnProperty(propKey$222) && null != propKey$201 && !nextProps.hasOwnProperty(propKey$222) && setProp(domElement, tag, propKey$222, null, nextProps, propKey$201); 8040 for (checked in nextProps) if (propKey$201 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && propKey$201 !== propKey && (null != propKey$201 || null != propKey)) switch (checked) { 8041 case "children": 8042 case "dangerouslySetInnerHTML": 8043 if (null != propKey$201) throw Error(formatProdErrorMessage(137, tag)); 8044 break; 8045 default: setProp(domElement, tag, checked, propKey$201, nextProps, propKey); 8046 } 8047 return; 8048 default: if (isCustomElement(tag)) { 8049 for (var propKey$227 in lastProps) propKey$201 = lastProps[propKey$227], lastProps.hasOwnProperty(propKey$227) && void 0 !== propKey$201 && !nextProps.hasOwnProperty(propKey$227) && setPropOnCustomElement(domElement, tag, propKey$227, void 0, nextProps, propKey$201); 8050 for (defaultChecked in nextProps) propKey$201 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || propKey$201 === propKey || void 0 === propKey$201 && void 0 === propKey || setPropOnCustomElement(domElement, tag, defaultChecked, propKey$201, nextProps, propKey); 8051 return; 8052 } 8053 } 8054 for (var propKey$232 in lastProps) propKey$201 = lastProps[propKey$232], lastProps.hasOwnProperty(propKey$232) && null != propKey$201 && !nextProps.hasOwnProperty(propKey$232) && setProp(domElement, tag, propKey$232, null, nextProps, propKey$201); 8055 for (lastProp in nextProps) propKey$201 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || propKey$201 === propKey || null == propKey$201 && null == propKey || setProp(domElement, tag, lastProp, propKey$201, nextProps, propKey); 8056 } 8057 function isLikelyStaticResource(initiatorType) { 8058 switch (initiatorType) { 8059 case "css": 8060 case "script": 8061 case "font": 8062 case "img": 8063 case "image": 8064 case "input": 8065 case "link": return !0; 8066 default: return !1; 8067 } 8068 } 8069 function estimateBandwidth() { 8070 if ("function" === typeof performance.getEntriesByType) { 8071 for (var count = 0, bits = 0, resourceEntries = performance.getEntriesByType("resource"), i = 0; i < resourceEntries.length; i++) { 8072 var entry = resourceEntries[i], transferSize = entry.transferSize, initiatorType = entry.initiatorType, duration = entry.duration; 8073 if (transferSize && duration && isLikelyStaticResource(initiatorType)) { 8074 initiatorType = 0; 8075 duration = entry.responseEnd; 8076 for (i += 1; i < resourceEntries.length; i++) { 8077 var overlapEntry = resourceEntries[i], overlapStartTime = overlapEntry.startTime; 8078 if (overlapStartTime > duration) break; 8079 var overlapTransferSize = overlapEntry.transferSize, overlapInitiatorType = overlapEntry.initiatorType; 8080 overlapTransferSize && isLikelyStaticResource(overlapInitiatorType) && (overlapEntry = overlapEntry.responseEnd, initiatorType += overlapTransferSize * (overlapEntry < duration ? 1 : (duration - overlapStartTime) / (overlapEntry - overlapStartTime))); 8081 } 8082 --i; 8083 bits += 8 * (transferSize + initiatorType) / (entry.duration / 1e3); 8084 count++; 8085 if (10 < count) break; 8086 } 8087 } 8088 if (0 < count) return bits / count / 1e6; 8089 } 8090 return navigator.connection && (count = navigator.connection.downlink, "number" === typeof count) ? count : 5; 8091 } 8092 var eventsEnabled = null, selectionInformation = null; 8093 function getOwnerDocumentFromRootContainer(rootContainerElement) { 8094 return 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 8095 } 8096 function getOwnHostContext(namespaceURI) { 8097 switch (namespaceURI) { 8098 case "http://www.w3.org/2000/svg": return 1; 8099 case "http://www.w3.org/1998/Math/MathML": return 2; 8100 default: return 0; 8101 } 8102 } 8103 function getChildHostContextProd(parentNamespace, type) { 8104 if (0 === parentNamespace) switch (type) { 8105 case "svg": return 1; 8106 case "math": return 2; 8107 default: return 0; 8108 } 8109 return 1 === parentNamespace && "foreignObject" === type ? 0 : parentNamespace; 8110 } 8111 function shouldSetTextContent(type, props) { 8112 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; 8113 } 8114 var currentPopstateTransitionEvent = null; 8115 function shouldAttemptEagerTransition() { 8116 var event = window.event; 8117 if (event && "popstate" === event.type) { 8118 if (event === currentPopstateTransitionEvent) return !1; 8119 currentPopstateTransitionEvent = event; 8120 return !0; 8121 } 8122 currentPopstateTransitionEvent = null; 8123 return !1; 8124 } 8125 var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, localPromise = "function" === typeof Promise ? Promise : void 0, scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) { 8126 return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick); 8127 } : scheduleTimeout; 8128 function handleErrorInNextTick(error) { 8129 setTimeout(function() { 8130 throw error; 8131 }); 8132 } 8133 function isSingletonScope(type) { 8134 return "head" === type; 8135 } 8136 function clearHydrationBoundary(parentInstance, hydrationInstance) { 8137 var node = hydrationInstance, depth = 0; 8138 do { 8139 var nextNode = node.nextSibling; 8140 parentInstance.removeChild(node); 8141 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, "/$" === node || "/&" === node) { 8142 if (0 === depth) { 8143 parentInstance.removeChild(nextNode); 8144 retryIfBlockedOn(hydrationInstance); 8145 return; 8146 } 8147 depth--; 8148 } else if ("$" === node || "$?" === node || "$~" === node || "$!" === node || "&" === node) depth++; 8149 else if ("html" === node) releaseSingletonInstance(parentInstance.ownerDocument.documentElement); 8150 else if ("head" === node) { 8151 node = parentInstance.ownerDocument.head; 8152 releaseSingletonInstance(node); 8153 for (var node$jscomp$0 = node.firstChild; node$jscomp$0;) { 8154 var nextNode$jscomp$0 = node$jscomp$0.nextSibling, nodeName = node$jscomp$0.nodeName; 8155 node$jscomp$0[internalHoistableMarker] || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === node$jscomp$0.rel.toLowerCase() || node.removeChild(node$jscomp$0); 8156 node$jscomp$0 = nextNode$jscomp$0; 8157 } 8158 } else "body" === node && releaseSingletonInstance(parentInstance.ownerDocument.body); 8159 node = nextNode; 8160 } while (node); 8161 retryIfBlockedOn(hydrationInstance); 8162 } 8163 function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) { 8164 var node = suspenseInstance; 8165 suspenseInstance = 0; 8166 do { 8167 var nextNode = node.nextSibling; 8168 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 || ""); 8169 if (nextNode && 8 === nextNode.nodeType) if (node = nextNode.data, "/$" === node) if (0 === suspenseInstance) break; 8170 else suspenseInstance--;
vendor: 4,254 bytes, lines 8171-8265
8171 else "$" !== node && "$?" !== node && "$~" !== node && "$!" !== node || suspenseInstance++; 8172 node = nextNode; 8173 } while (node); 8174 } 8175 function clearContainerSparingly(container) { 8176 var nextNode = container.firstChild; 8177 nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling); 8178 for (; nextNode;) { 8179 var node = nextNode; 8180 nextNode = nextNode.nextSibling; 8181 switch (node.nodeName) { 8182 case "HTML": 8183 case "HEAD": 8184 case "BODY": 8185 clearContainerSparingly(node); 8186 detachDeletedInstance(node); 8187 continue; 8188 case "SCRIPT": 8189 case "STYLE": continue; 8190 case "LINK": if ("stylesheet" === node.rel.toLowerCase()) continue; 8191 } 8192 container.removeChild(node); 8193 } 8194 } 8195 function canHydrateInstance(instance, type, props, inRootOrSingleton) { 8196 for (; 1 === instance.nodeType;) { 8197 var anyProps = props; 8198 if (instance.nodeName.toLowerCase() !== type.toLowerCase()) { 8199 if (!inRootOrSingleton && ("INPUT" !== instance.nodeName || "hidden" !== instance.type)) break; 8200 } else if (!inRootOrSingleton) if ("input" === type && "hidden" === instance.type) { 8201 var name = null == anyProps.name ? null : "" + anyProps.name; 8202 if ("hidden" === anyProps.type && instance.getAttribute("name") === name) return instance; 8203 } else return instance; 8204 else if (!instance[internalHoistableMarker]) switch (type) { 8205 case "meta": 8206 if (!instance.hasAttribute("itemprop")) break; 8207 return instance; 8208 case "link": 8209 name = instance.getAttribute("rel"); 8210 if ("stylesheet" === name && instance.hasAttribute("data-precedence")) break; 8211 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; 8212 return instance; 8213 case "style": 8214 if (instance.hasAttribute("data-precedence")) break; 8215 return instance; 8216 case "script": 8217 name = instance.getAttribute("src"); 8218 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; 8219 return instance; 8220 default: return instance; 8221 } 8222 instance = getNextHydratable(instance.nextSibling); 8223 if (null === instance) break; 8224 } 8225 return null; 8226 } 8227 function canHydrateTextInstance(instance, text, inRootOrSingleton) { 8228 if ("" === text) return null; 8229 for (; 3 !== instance.nodeType;) { 8230 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) return null; 8231 instance = getNextHydratable(instance.nextSibling); 8232 if (null === instance) return null; 8233 } 8234 return instance; 8235 } 8236 function canHydrateHydrationBoundary(instance, inRootOrSingleton) { 8237 for (; 8 !== instance.nodeType;) { 8238 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) return null; 8239 instance = getNextHydratable(instance.nextSibling); 8240 if (null === instance) return null; 8241 } 8242 return instance; 8243 } 8244 function isSuspenseInstancePending(instance) { 8245 return "$?" === instance.data || "$~" === instance.data; 8246 } 8247 function isSuspenseInstanceFallback(instance) { 8248 return "$!" === instance.data || "$?" === instance.data && "loading" !== instance.ownerDocument.readyState; 8249 } 8250 function registerSuspenseInstanceRetry(instance, callback) { 8251 var ownerDocument = instance.ownerDocument; 8252 if ("$~" === instance.data) instance._reactRetry = callback; 8253 else if ("$?" !== instance.data || "loading" !== ownerDocument.readyState) callback(); 8254 else { 8255 var listener = function() { 8256 callback(); 8257 ownerDocument.removeEventListener("DOMContentLoaded", listener); 8258 }; 8259 ownerDocument.addEventListener("DOMContentLoaded", listener); 8260 instance._reactRetry = listener; 8261 } 8262 } 8263 function getNextHydratable(node) { 8264 for (; null != node; node = node.nextSibling) { 8265 var nodeType = node.nodeType;
vendor: 46,721 bytes, lines 8266-9294
8266 if (1 === nodeType || 3 === nodeType) break; 8267 if (8 === nodeType) { 8268 nodeType = node.data; 8269 if ("$" === nodeType || "$!" === nodeType || "$?" === nodeType || "$~" === nodeType || "&" === nodeType || "F!" === nodeType || "F" === nodeType) break; 8270 if ("/$" === nodeType || "/&" === nodeType) return null; 8271 } 8272 } 8273 return node; 8274 } 8275 var previousHydratableOnEnteringScopedSingleton = null; 8276 function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) { 8277 hydrationInstance = hydrationInstance.nextSibling; 8278 for (var depth = 0; hydrationInstance;) { 8279 if (8 === hydrationInstance.nodeType) { 8280 var data = hydrationInstance.data; 8281 if ("/$" === data || "/&" === data) { 8282 if (0 === depth) return getNextHydratable(hydrationInstance.nextSibling); 8283 depth--; 8284 } else "$" !== data && "$!" !== data && "$?" !== data && "$~" !== data && "&" !== data || depth++; 8285 } 8286 hydrationInstance = hydrationInstance.nextSibling; 8287 } 8288 return null; 8289 } 8290 function getParentHydrationBoundary(targetInstance) { 8291 targetInstance = targetInstance.previousSibling; 8292 for (var depth = 0; targetInstance;) { 8293 if (8 === targetInstance.nodeType) { 8294 var data = targetInstance.data; 8295 if ("$" === data || "$!" === data || "$?" === data || "$~" === data || "&" === data) { 8296 if (0 === depth) return targetInstance; 8297 depth--; 8298 } else "/$" !== data && "/&" !== data || depth++; 8299 } 8300 targetInstance = targetInstance.previousSibling; 8301 } 8302 return null; 8303 } 8304 function resolveSingletonInstance(type, props, rootContainerInstance) { 8305 props = getOwnerDocumentFromRootContainer(rootContainerInstance); 8306 switch (type) { 8307 case "html": 8308 type = props.documentElement; 8309 if (!type) throw Error(formatProdErrorMessage(452)); 8310 return type; 8311 case "head": 8312 type = props.head; 8313 if (!type) throw Error(formatProdErrorMessage(453)); 8314 return type; 8315 case "body": 8316 type = props.body; 8317 if (!type) throw Error(formatProdErrorMessage(454)); 8318 return type; 8319 default: throw Error(formatProdErrorMessage(451)); 8320 } 8321 } 8322 function releaseSingletonInstance(instance) { 8323 for (var attributes = instance.attributes; attributes.length;) instance.removeAttributeNode(attributes[0]); 8324 detachDeletedInstance(instance); 8325 } 8326 var preloadPropsMap = /* @__PURE__ */ new Map(), preconnectsSet = /* @__PURE__ */ new Set(); 8327 function getHoistableRoot(container) { 8328 return "function" === typeof container.getRootNode ? container.getRootNode() : 9 === container.nodeType ? container : container.ownerDocument; 8329 } 8330 var previousDispatcher = ReactDOMSharedInternals.d; 8331 ReactDOMSharedInternals.d = { 8332 f: flushSyncWork, 8333 r: requestFormReset, 8334 D: prefetchDNS, 8335 C: preconnect, 8336 L: preload, 8337 m: preloadModule, 8338 X: preinitScript, 8339 S: preinitStyle, 8340 M: preinitModuleScript 8341 }; 8342 function flushSyncWork() { 8343 var previousWasRendering = previousDispatcher.f(), wasRendering = flushSyncWork$1(); 8344 return previousWasRendering || wasRendering; 8345 } 8346 function requestFormReset(form) { 8347 var formInst = getInstanceFromNode(form); 8348 null !== formInst && 5 === formInst.tag && "form" === formInst.type ? requestFormReset$1(formInst) : previousDispatcher.r(form); 8349 } 8350 var globalDocument = "undefined" === typeof document ? null : document; 8351 function preconnectAs(rel, href, crossOrigin) { 8352 var ownerDocument = globalDocument; 8353 if (ownerDocument && "string" === typeof href && href) { 8354 var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href); 8355 limitedEscapedHref = "link[rel=\"" + rel + "\"][href=\"" + limitedEscapedHref + "\"]"; 8356 "string" === typeof crossOrigin && (limitedEscapedHref += "[crossorigin=\"" + crossOrigin + "\"]"); 8357 preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { 8358 rel, 8359 crossOrigin, 8360 href 8361 }, null === ownerDocument.querySelector(limitedEscapedHref) && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href))); 8362 } 8363 } 8364 function prefetchDNS(href) { 8365 previousDispatcher.D(href); 8366 preconnectAs("dns-prefetch", href, null); 8367 } 8368 function preconnect(href, crossOrigin) { 8369 previousDispatcher.C(href, crossOrigin); 8370 preconnectAs("preconnect", href, crossOrigin); 8371 } 8372 function preload(href, as, options) { 8373 previousDispatcher.L(href, as, options); 8374 var ownerDocument = globalDocument; 8375 if (ownerDocument && href && as) { 8376 var preloadSelector = "link[rel=\"preload\"][as=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(as) + "\"]"; 8377 "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) + "\"]"; 8378 var key = preloadSelector; 8379 switch (as) { 8380 case "style": 8381 key = getStyleKey(href); 8382 break; 8383 case "script": key = getScriptKey(href); 8384 } 8385 preloadPropsMap.has(key) || (href = assign({ 8386 rel: "preload", 8387 href: "image" === as && options && options.imageSrcSet ? void 0 : href, 8388 as 8389 }, 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))); 8390 } 8391 } 8392 function preloadModule(href, options) { 8393 previousDispatcher.m(href, options); 8394 var ownerDocument = globalDocument; 8395 if (ownerDocument && href) { 8396 var as = options && "string" === typeof options.as ? options.as : "script", preloadSelector = "link[rel=\"modulepreload\"][as=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(as) + "\"][href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\"]", key = preloadSelector; 8397 switch (as) { 8398 case "audioworklet": 8399 case "paintworklet": 8400 case "serviceworker": 8401 case "sharedworker": 8402 case "worker": 8403 case "script": key = getScriptKey(href); 8404 } 8405 if (!preloadPropsMap.has(key) && (href = assign({ 8406 rel: "modulepreload", 8407 href 8408 }, options), preloadPropsMap.set(key, href), null === ownerDocument.querySelector(preloadSelector))) { 8409 switch (as) { 8410 case "audioworklet": 8411 case "paintworklet": 8412 case "serviceworker": 8413 case "sharedworker": 8414 case "worker": 8415 case "script": if (ownerDocument.querySelector(getScriptSelectorFromKey(key))) return; 8416 } 8417 as = ownerDocument.createElement("link"); 8418 setInitialProperties(as, "link", href); 8419 markNodeAsHoistable(as); 8420 ownerDocument.head.appendChild(as); 8421 } 8422 } 8423 } 8424 function preinitStyle(href, precedence, options) { 8425 previousDispatcher.S(href, precedence, options); 8426 var ownerDocument = globalDocument; 8427 if (ownerDocument && href) { 8428 var styles = getResourcesFromRoot(ownerDocument).hoistableStyles, key = getStyleKey(href); 8429 precedence = precedence || "default"; 8430 var resource = styles.get(key); 8431 if (!resource) { 8432 var state = { 8433 loading: 0, 8434 preload: null 8435 }; 8436 if (resource = ownerDocument.querySelector(getStylesheetSelectorFromKey(key))) state.loading = 5; 8437 else { 8438 href = assign({ 8439 rel: "stylesheet", 8440 href, 8441 "data-precedence": precedence 8442 }, options); 8443 (options = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options); 8444 var link = resource = ownerDocument.createElement("link"); 8445 markNodeAsHoistable(link); 8446 setInitialProperties(link, "link", href); 8447 link._p = new Promise(function(resolve, reject) { 8448 link.onload = resolve; 8449 link.onerror = reject; 8450 }); 8451 link.addEventListener("load", function() { 8452 state.loading |= 1; 8453 }); 8454 link.addEventListener("error", function() { 8455 state.loading |= 2; 8456 }); 8457 state.loading |= 4; 8458 insertStylesheet(resource, precedence, ownerDocument); 8459 } 8460 resource = { 8461 type: "stylesheet", 8462 instance: resource, 8463 count: 1, 8464 state 8465 }; 8466 styles.set(key, resource); 8467 } 8468 } 8469 } 8470 function preinitScript(src, options) { 8471 previousDispatcher.X(src, options); 8472 var ownerDocument = globalDocument; 8473 if (ownerDocument && src) { 8474 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 8475 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 8476 src, 8477 async: !0 8478 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 8479 type: "script", 8480 instance: resource, 8481 count: 1, 8482 state: null 8483 }, scripts.set(key, resource)); 8484 } 8485 } 8486 function preinitModuleScript(src, options) { 8487 previousDispatcher.M(src, options); 8488 var ownerDocument = globalDocument; 8489 if (ownerDocument && src) { 8490 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 8491 resource || (resource = ownerDocument.querySelector(getScriptSelectorFromKey(key)), resource || (src = assign({ 8492 src, 8493 async: !0, 8494 type: "module" 8495 }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 8496 type: "script", 8497 instance: resource, 8498 count: 1, 8499 state: null 8500 }, scripts.set(key, resource)); 8501 } 8502 } 8503 function getResource(type, currentProps, pendingProps, currentResource) { 8504 var JSCompiler_inline_result = (JSCompiler_inline_result = rootInstanceStackCursor.current) ? getHoistableRoot(JSCompiler_inline_result) : null; 8505 if (!JSCompiler_inline_result) throw Error(formatProdErrorMessage(446)); 8506 switch (type) { 8507 case "meta": 8508 case "title": return null; 8509 case "style": return "string" === typeof pendingProps.precedence && "string" === typeof pendingProps.href ? (currentProps = getStyleKey(pendingProps.href), pendingProps = getResourcesFromRoot(JSCompiler_inline_result).hoistableStyles, currentResource = pendingProps.get(currentProps), currentResource || (currentResource = { 8510 type: "style", 8511 instance: null, 8512 count: 0, 8513 state: null 8514 }, pendingProps.set(currentProps, currentResource)), currentResource) : { 8515 type: "void", 8516 instance: null, 8517 count: 0, 8518 state: null 8519 }; 8520 case "link": 8521 if ("stylesheet" === pendingProps.rel && "string" === typeof pendingProps.href && "string" === typeof pendingProps.precedence) { 8522 type = getStyleKey(pendingProps.href); 8523 var styles$243 = getResourcesFromRoot(JSCompiler_inline_result).hoistableStyles, resource$244 = styles$243.get(type); 8524 resource$244 || (JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result, resource$244 = { 8525 type: "stylesheet", 8526 instance: null, 8527 count: 0, 8528 state: { 8529 loading: 0, 8530 preload: null 8531 } 8532 }, styles$243.set(type, resource$244), (styles$243 = JSCompiler_inline_result.querySelector(getStylesheetSelectorFromKey(type))) && !styles$243._p && (resource$244.instance = styles$243, resource$244.state.loading = 5), preloadPropsMap.has(type) || (pendingProps = { 8533 rel: "preload", 8534 as: "style", 8535 href: pendingProps.href, 8536 crossOrigin: pendingProps.crossOrigin, 8537 integrity: pendingProps.integrity, 8538 media: pendingProps.media, 8539 hrefLang: pendingProps.hrefLang, 8540 referrerPolicy: pendingProps.referrerPolicy 8541 }, preloadPropsMap.set(type, pendingProps), styles$243 || preloadStylesheet(JSCompiler_inline_result, type, pendingProps, resource$244.state))); 8542 if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); 8543 return resource$244; 8544 } 8545 if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); 8546 return null; 8547 case "script": return currentProps = pendingProps.async, pendingProps = pendingProps.src, "string" === typeof pendingProps && currentProps && "function" !== typeof currentProps && "symbol" !== typeof currentProps ? (currentProps = getScriptKey(pendingProps), pendingProps = getResourcesFromRoot(JSCompiler_inline_result).hoistableScripts, currentResource = pendingProps.get(currentProps), currentResource || (currentResource = { 8548 type: "script", 8549 instance: null, 8550 count: 0, 8551 state: null 8552 }, pendingProps.set(currentProps, currentResource)), currentResource) : { 8553 type: "void", 8554 instance: null, 8555 count: 0, 8556 state: null 8557 }; 8558 default: throw Error(formatProdErrorMessage(444, type)); 8559 } 8560 } 8561 function getStyleKey(href) { 8562 return "href=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(href) + "\""; 8563 } 8564 function getStylesheetSelectorFromKey(key) { 8565 return "link[rel=\"stylesheet\"][" + key + "]"; 8566 } 8567 function stylesheetPropsFromRawProps(rawProps) { 8568 return assign({}, rawProps, { 8569 "data-precedence": rawProps.precedence, 8570 precedence: null 8571 }); 8572 } 8573 function preloadStylesheet(ownerDocument, key, preloadProps, state) { 8574 ownerDocument.querySelector("link[rel=\"preload\"][as=\"style\"][" + key + "]") ? state.loading = 1 : (key = ownerDocument.createElement("link"), state.preload = key, key.addEventListener("load", function() { 8575 return state.loading |= 1; 8576 }), key.addEventListener("error", function() { 8577 return state.loading |= 2; 8578 }), setInitialProperties(key, "link", preloadProps), markNodeAsHoistable(key), ownerDocument.head.appendChild(key)); 8579 } 8580 function getScriptKey(src) { 8581 return "[src=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(src) + "\"]"; 8582 } 8583 function getScriptSelectorFromKey(key) { 8584 return "script[async]" + key; 8585 } 8586 function acquireResource(hoistableRoot, resource, props) { 8587 resource.count++; 8588 if (null === resource.instance) switch (resource.type) { 8589 case "style": 8590 var instance = hoistableRoot.querySelector("style[data-href~=\"" + escapeSelectorAttributeValueInsideDoubleQuotes(props.href) + "\"]"); 8591 if (instance) return resource.instance = instance, markNodeAsHoistable(instance), instance; 8592 var styleProps = assign({}, props, { 8593 "data-href": props.href, 8594 "data-precedence": props.precedence, 8595 href: null, 8596 precedence: null 8597 }); 8598 instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("style"); 8599 markNodeAsHoistable(instance); 8600 setInitialProperties(instance, "style", styleProps); 8601 insertStylesheet(instance, props.precedence, hoistableRoot); 8602 return resource.instance = instance; 8603 case "stylesheet": 8604 styleProps = getStyleKey(props.href); 8605 var instance$249 = hoistableRoot.querySelector(getStylesheetSelectorFromKey(styleProps)); 8606 if (instance$249) return resource.state.loading |= 4, resource.instance = instance$249, markNodeAsHoistable(instance$249), instance$249; 8607 instance = stylesheetPropsFromRawProps(props); 8608 (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); 8609 instance$249 = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link"); 8610 markNodeAsHoistable(instance$249); 8611 var linkInstance = instance$249; 8612 linkInstance._p = new Promise(function(resolve, reject) { 8613 linkInstance.onload = resolve; 8614 linkInstance.onerror = reject; 8615 }); 8616 setInitialProperties(instance$249, "link", instance); 8617 resource.state.loading |= 4; 8618 insertStylesheet(instance$249, props.precedence, hoistableRoot); 8619 return resource.instance = instance$249; 8620 case "script": 8621 instance$249 = getScriptKey(props.src); 8622 if (styleProps = hoistableRoot.querySelector(getScriptSelectorFromKey(instance$249))) return resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps; 8623 instance = props; 8624 if (styleProps = preloadPropsMap.get(instance$249)) instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps); 8625 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 8626 styleProps = hoistableRoot.createElement("script"); 8627 markNodeAsHoistable(styleProps); 8628 setInitialProperties(styleProps, "link", instance); 8629 hoistableRoot.head.appendChild(styleProps); 8630 return resource.instance = styleProps; 8631 case "void": return null; 8632 default: throw Error(formatProdErrorMessage(443, resource.type)); 8633 } 8634 else "stylesheet" === resource.type && 0 === (resource.state.loading & 4) && (instance = resource.instance, resource.state.loading |= 4, insertStylesheet(instance, props.precedence, hoistableRoot)); 8635 return resource.instance; 8636 } 8637 function insertStylesheet(instance, precedence, root) { 8638 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++) { 8639 var node = nodes[i]; 8640 if (node.dataset.precedence === precedence) prior = node; 8641 else if (prior !== last) break; 8642 } 8643 prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root.nodeType ? root.head : root, precedence.insertBefore(instance, precedence.firstChild)); 8644 } 8645 function adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) { 8646 stylesheetProps.crossOrigin ??= preloadProps.crossOrigin; 8647 stylesheetProps.referrerPolicy ??= preloadProps.referrerPolicy; 8648 stylesheetProps.title ??= preloadProps.title; 8649 } 8650 function adoptPreloadPropsForScript(scriptProps, preloadProps) { 8651 scriptProps.crossOrigin ??= preloadProps.crossOrigin; 8652 scriptProps.referrerPolicy ??= preloadProps.referrerPolicy; 8653 scriptProps.integrity ??= preloadProps.integrity; 8654 } 8655 var tagCaches = null; 8656 function getHydratableHoistableCache(type, keyAttribute, ownerDocument) { 8657 if (null === tagCaches) { 8658 var cache = /* @__PURE__ */ new Map(); 8659 var caches = tagCaches = /* @__PURE__ */ new Map(); 8660 caches.set(ownerDocument, cache); 8661 } else caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache)); 8662 if (cache.has(type)) return cache; 8663 cache.set(type, null); 8664 ownerDocument = ownerDocument.getElementsByTagName(type); 8665 for (caches = 0; caches < ownerDocument.length; caches++) { 8666 var node = ownerDocument[caches]; 8667 if (!(node[internalHoistableMarker] || node[internalInstanceKey] || "link" === type && "stylesheet" === node.getAttribute("rel")) && "http://www.w3.org/2000/svg" !== node.namespaceURI) { 8668 var nodeKey = node.getAttribute(keyAttribute) || ""; 8669 nodeKey = type + nodeKey; 8670 var existing = cache.get(nodeKey); 8671 existing ? existing.push(node) : cache.set(nodeKey, [node]); 8672 } 8673 } 8674 return cache; 8675 } 8676 function mountHoistable(hoistableRoot, type, instance) { 8677 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 8678 hoistableRoot.head.insertBefore(instance, "title" === type ? hoistableRoot.querySelector("head > title") : null); 8679 } 8680 function isHostHoistableType(type, props, hostContext) { 8681 if (1 === hostContext || null != props.itemProp) return !1; 8682 switch (type) { 8683 case "meta": 8684 case "title": return !0; 8685 case "style": 8686 if ("string" !== typeof props.precedence || "string" !== typeof props.href || "" === props.href) break; 8687 return !0; 8688 case "link": 8689 if ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href || props.onLoad || props.onError) break; 8690 switch (props.rel) { 8691 case "stylesheet": return type = props.disabled, "string" === typeof props.precedence && null == type; 8692 default: return !0; 8693 } 8694 case "script": if (props.async && "function" !== typeof props.async && "symbol" !== typeof props.async && !props.onLoad && !props.onError && props.src && "string" === typeof props.src) return !0; 8695 } 8696 return !1; 8697 } 8698 function preloadResource(resource) { 8699 return "stylesheet" === resource.type && 0 === (resource.state.loading & 3) ? !1 : !0; 8700 } 8701 function suspendResource(state, hoistableRoot, resource, props) { 8702 if ("stylesheet" === resource.type && ("string" !== typeof props.media || !1 !== matchMedia(props.media).matches) && 0 === (resource.state.loading & 4)) { 8703 if (null === resource.instance) { 8704 var key = getStyleKey(props.href), instance = hoistableRoot.querySelector(getStylesheetSelectorFromKey(key)); 8705 if (instance) { 8706 hoistableRoot = instance._p; 8707 null !== hoistableRoot && "object" === typeof hoistableRoot && "function" === typeof hoistableRoot.then && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state)); 8708 resource.state.loading |= 4; 8709 resource.instance = instance; 8710 markNodeAsHoistable(instance); 8711 return; 8712 } 8713 instance = hoistableRoot.ownerDocument || hoistableRoot; 8714 props = stylesheetPropsFromRawProps(props); 8715 (key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key); 8716 instance = instance.createElement("link"); 8717 markNodeAsHoistable(instance); 8718 var linkInstance = instance; 8719 linkInstance._p = new Promise(function(resolve, reject) { 8720 linkInstance.onload = resolve; 8721 linkInstance.onerror = reject; 8722 }); 8723 setInitialProperties(instance, "link", props); 8724 resource.instance = instance; 8725 } 8726 null === state.stylesheets && (state.stylesheets = /* @__PURE__ */ new Map()); 8727 state.stylesheets.set(resource, hoistableRoot); 8728 (hoistableRoot = resource.state.preload) && 0 === (resource.state.loading & 3) && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource)); 8729 } 8730 } 8731 var estimatedBytesWithinLimit = 0; 8732 function waitForCommitToBeReady(state, timeoutOffset) { 8733 state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets); 8734 return 0 < state.count || 0 < state.imgCount ? function(commit) { 8735 var stylesheetTimer = setTimeout(function() { 8736 state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets); 8737 if (state.unsuspend) { 8738 var unsuspend = state.unsuspend; 8739 state.unsuspend = null; 8740 unsuspend(); 8741 } 8742 }, 6e4 + timeoutOffset); 8743 0 < state.imgBytes && 0 === estimatedBytesWithinLimit && (estimatedBytesWithinLimit = 62500 * estimateBandwidth()); 8744 var imgTimer = setTimeout(function() { 8745 state.waitingForImages = !1; 8746 if (0 === state.count && (state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets), state.unsuspend)) { 8747 var unsuspend = state.unsuspend; 8748 state.unsuspend = null; 8749 unsuspend(); 8750 } 8751 }, (state.imgBytes > estimatedBytesWithinLimit ? 50 : 800) + timeoutOffset); 8752 state.unsuspend = commit; 8753 return function() { 8754 state.unsuspend = null; 8755 clearTimeout(stylesheetTimer); 8756 clearTimeout(imgTimer); 8757 }; 8758 } : null; 8759 } 8760 function onUnsuspend() { 8761 this.count--; 8762 if (0 === this.count && (0 === this.imgCount || !this.waitingForImages)) { 8763 if (this.stylesheets) insertSuspendedStylesheets(this, this.stylesheets); 8764 else if (this.unsuspend) { 8765 var unsuspend = this.unsuspend; 8766 this.unsuspend = null; 8767 unsuspend(); 8768 } 8769 } 8770 } 8771 var precedencesByRoot = null; 8772 function insertSuspendedStylesheets(state, resources) { 8773 state.stylesheets = null; 8774 null !== state.unsuspend && (state.count++, precedencesByRoot = /* @__PURE__ */ new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state)); 8775 } 8776 function insertStylesheetIntoRoot(root, resource) { 8777 if (!(resource.state.loading & 4)) { 8778 var precedences = precedencesByRoot.get(root); 8779 if (precedences) var last = precedences.get(null); 8780 else { 8781 precedences = /* @__PURE__ */ new Map(); 8782 precedencesByRoot.set(root, precedences); 8783 for (var nodes = root.querySelectorAll("link[data-precedence],style[data-precedence]"), i = 0; i < nodes.length; i++) { 8784 var node = nodes[i]; 8785 if ("LINK" === node.nodeName || "not all" !== node.getAttribute("media")) precedences.set(node.dataset.precedence, node), last = node; 8786 } 8787 last && precedences.set(null, last); 8788 } 8789 nodes = resource.instance; 8790 node = nodes.getAttribute("data-precedence"); 8791 i = precedences.get(node) || last; 8792 i === last && precedences.set(null, nodes); 8793 precedences.set(node, nodes); 8794 this.count++; 8795 last = onUnsuspend.bind(this); 8796 nodes.addEventListener("load", last); 8797 nodes.addEventListener("error", last); 8798 i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root = 9 === root.nodeType ? root.head : root, root.insertBefore(nodes, root.firstChild)); 8799 resource.state.loading |= 4; 8800 } 8801 } 8802 var HostTransitionContext = { 8803 $$typeof: REACT_CONTEXT_TYPE, 8804 Provider: null, 8805 Consumer: null, 8806 _currentValue: sharedNotPendingObject, 8807 _currentValue2: sharedNotPendingObject, 8808 _threadCount: 0 8809 }; 8810 function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState) { 8811 this.tag = 1; 8812 this.containerInfo = containerInfo; 8813 this.pingCache = this.current = this.pendingChildren = null; 8814 this.timeoutHandle = -1; 8815 this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null; 8816 this.callbackPriority = 0; 8817 this.expirationTimes = createLaneMap(-1); 8818 this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; 8819 this.entanglements = createLaneMap(0); 8820 this.hiddenUpdates = createLaneMap(null); 8821 this.identifierPrefix = identifierPrefix; 8822 this.onUncaughtError = onUncaughtError; 8823 this.onCaughtError = onCaughtError; 8824 this.onRecoverableError = onRecoverableError; 8825 this.pooledCache = null; 8826 this.pooledCacheLanes = 0; 8827 this.formState = formState; 8828 this.incompleteTransitions = /* @__PURE__ */ new Map(); 8829 } 8830 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, formState, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator) { 8831 containerInfo = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, onDefaultTransitionIndicator, formState); 8832 tag = 1; 8833 !0 === isStrictMode && (tag |= 24); 8834 isStrictMode = createFiberImplClass(3, null, null, tag); 8835 containerInfo.current = isStrictMode; 8836 isStrictMode.stateNode = containerInfo; 8837 tag = createCache(); 8838 tag.refCount++; 8839 containerInfo.pooledCache = tag; 8840 tag.refCount++; 8841 isStrictMode.memoizedState = { 8842 element: initialChildren, 8843 isDehydrated: hydrate, 8844 cache: tag 8845 }; 8846 initializeUpdateQueue(isStrictMode); 8847 return containerInfo; 8848 } 8849 function getContextForSubtree(parentComponent) { 8850 if (!parentComponent) return emptyContextObject; 8851 parentComponent = emptyContextObject; 8852 return parentComponent; 8853 } 8854 function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) { 8855 parentComponent = getContextForSubtree(parentComponent); 8856 null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; 8857 container = createUpdate(lane); 8858 container.payload = { element }; 8859 callback = void 0 === callback ? null : callback; 8860 null !== callback && (container.callback = callback); 8861 element = enqueueUpdate(rootFiber, container, lane); 8862 null !== element && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane)); 8863 } 8864 function markRetryLaneImpl(fiber, retryLane) { 8865 fiber = fiber.memoizedState; 8866 if (null !== fiber && null !== fiber.dehydrated) { 8867 var a = fiber.retryLane; 8868 fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane; 8869 } 8870 } 8871 function markRetryLaneIfNotHydrated(fiber, retryLane) { 8872 markRetryLaneImpl(fiber, retryLane); 8873 (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane); 8874 } 8875 function attemptContinuousHydration(fiber) { 8876 if (13 === fiber.tag || 31 === fiber.tag) { 8877 var root = enqueueConcurrentRenderForLane(fiber, 67108864); 8878 null !== root && scheduleUpdateOnFiber(root, fiber, 67108864); 8879 markRetryLaneIfNotHydrated(fiber, 67108864); 8880 } 8881 } 8882 function attemptHydrationAtCurrentPriority(fiber) { 8883 if (13 === fiber.tag || 31 === fiber.tag) { 8884 var lane = requestUpdateLane(); 8885 lane = getBumpedLaneForHydrationByLane(lane); 8886 var root = enqueueConcurrentRenderForLane(fiber, lane); 8887 null !== root && scheduleUpdateOnFiber(root, fiber, lane); 8888 markRetryLaneIfNotHydrated(fiber, lane); 8889 } 8890 } 8891 var _enabled = !0; 8892 function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { 8893 var prevTransition = ReactSharedInternals.T; 8894 ReactSharedInternals.T = null; 8895 var previousPriority = ReactDOMSharedInternals.p; 8896 try { 8897 ReactDOMSharedInternals.p = 2, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 8898 } finally { 8899 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 8900 } 8901 } 8902 function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) { 8903 var prevTransition = ReactSharedInternals.T; 8904 ReactSharedInternals.T = null; 8905 var previousPriority = ReactDOMSharedInternals.p; 8906 try { 8907 ReactDOMSharedInternals.p = 8, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 8908 } finally { 8909 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 8910 } 8911 } 8912 function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { 8913 if (_enabled) { 8914 var blockedOn = findInstanceBlockingEvent(nativeEvent); 8915 if (null === blockedOn) dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer), clearIfContinuousEvent(domEventName, nativeEvent); 8916 else if (queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)) nativeEvent.stopPropagation(); 8917 else if (clearIfContinuousEvent(domEventName, nativeEvent), eventSystemFlags & 4 && -1 < discreteReplayableEvents.indexOf(domEventName)) { 8918 for (; null !== blockedOn;) { 8919 var fiber = getInstanceFromNode(blockedOn); 8920 if (null !== fiber) switch (fiber.tag) { 8921 case 3: 8922 fiber = fiber.stateNode; 8923 if (fiber.current.memoizedState.isDehydrated) { 8924 var lanes = getHighestPriorityLanes(fiber.pendingLanes); 8925 if (0 !== lanes) { 8926 var root = fiber; 8927 root.pendingLanes |= 2; 8928 for (root.entangledLanes |= 2; lanes;) { 8929 var lane = 1 << 31 - clz32(lanes); 8930 root.entanglements[1] |= lane; 8931 lanes &= ~lane; 8932 } 8933 ensureRootIsScheduled(fiber); 8934 0 === (executionContext & 6) && (workInProgressRootRenderTargetTime = now() + 500, flushSyncWorkAcrossRoots_impl(0, !1)); 8935 } 8936 } 8937 break; 8938 case 31: 8939 case 13: root = enqueueConcurrentRenderForLane(fiber, 2), null !== root && scheduleUpdateOnFiber(root, fiber, 2), flushSyncWork$1(), markRetryLaneIfNotHydrated(fiber, 2); 8940 } 8941 fiber = findInstanceBlockingEvent(nativeEvent); 8942 null === fiber && dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, return_targetInst, targetContainer); 8943 if (fiber === blockedOn) break; 8944 blockedOn = fiber; 8945 } 8946 null !== blockedOn && nativeEvent.stopPropagation(); 8947 } else dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, null, targetContainer); 8948 } 8949 } 8950 function findInstanceBlockingEvent(nativeEvent) { 8951 nativeEvent = getEventTarget(nativeEvent); 8952 return findInstanceBlockingTarget(nativeEvent); 8953 } 8954 var return_targetInst = null; 8955 function findInstanceBlockingTarget(targetNode) { 8956 return_targetInst = null; 8957 targetNode = getClosestInstanceFromNode(targetNode); 8958 if (null !== targetNode) { 8959 var nearestMounted = getNearestMountedFiber(targetNode); 8960 if (null === nearestMounted) targetNode = null; 8961 else { 8962 var tag = nearestMounted.tag; 8963 if (13 === tag) { 8964 targetNode = getSuspenseInstanceFromFiber(nearestMounted); 8965 if (null !== targetNode) return targetNode; 8966 targetNode = null; 8967 } else if (31 === tag) { 8968 targetNode = getActivityInstanceFromFiber(nearestMounted); 8969 if (null !== targetNode) return targetNode; 8970 targetNode = null; 8971 } else if (3 === tag) { 8972 if (nearestMounted.stateNode.current.memoizedState.isDehydrated) return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 8973 targetNode = null; 8974 } else nearestMounted !== targetNode && (targetNode = null); 8975 } 8976 } 8977 return_targetInst = targetNode; 8978 return null; 8979 } 8980 function getEventPriority(domEventName) { 8981 switch (domEventName) { 8982 case "beforetoggle": 8983 case "cancel": 8984 case "click": 8985 case "close": 8986 case "contextmenu": 8987 case "copy": 8988 case "cut": 8989 case "auxclick": 8990 case "dblclick": 8991 case "dragend": 8992 case "dragstart": 8993 case "drop": 8994 case "focusin": 8995 case "focusout": 8996 case "input": 8997 case "invalid": 8998 case "keydown": 8999 case "keypress": 9000 case "keyup": 9001 case "mousedown": 9002 case "mouseup": 9003 case "paste": 9004 case "pause": 9005 case "play": 9006 case "pointercancel": 9007 case "pointerdown": 9008 case "pointerup": 9009 case "ratechange": 9010 case "reset": 9011 case "resize": 9012 case "seeked": 9013 case "submit": 9014 case "toggle": 9015 case "touchcancel": 9016 case "touchend": 9017 case "touchstart": 9018 case "volumechange": 9019 case "change": 9020 case "selectionchange": 9021 case "textInput": 9022 case "compositionstart": 9023 case "compositionend": 9024 case "compositionupdate": 9025 case "beforeblur": 9026 case "afterblur": 9027 case "beforeinput": 9028 case "blur": 9029 case "fullscreenchange": 9030 case "focus": 9031 case "hashchange": 9032 case "popstate": 9033 case "select": 9034 case "selectstart": return 2; 9035 case "drag": 9036 case "dragenter": 9037 case "dragexit": 9038 case "dragleave": 9039 case "dragover": 9040 case "mousemove": 9041 case "mouseout": 9042 case "mouseover": 9043 case "pointermove": 9044 case "pointerout": 9045 case "pointerover": 9046 case "scroll": 9047 case "touchmove": 9048 case "wheel": 9049 case "mouseenter": 9050 case "mouseleave": 9051 case "pointerenter": 9052 case "pointerleave": return 8; 9053 case "message": switch (getCurrentPriorityLevel()) { 9054 case ImmediatePriority: return 2; 9055 case UserBlockingPriority: return 8; 9056 case NormalPriority$1: 9057 case LowPriority: return 32; 9058 case IdlePriority: return 268435456; 9059 default: return 32; 9060 } 9061 default: return 32; 9062 } 9063 } 9064 var 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(" "); 9065 function clearIfContinuousEvent(domEventName, nativeEvent) { 9066 switch (domEventName) { 9067 case "focusin": 9068 case "focusout": 9069 queuedFocus = null; 9070 break; 9071 case "dragenter": 9072 case "dragleave": 9073 queuedDrag = null; 9074 break; 9075 case "mouseover": 9076 case "mouseout": 9077 queuedMouse = null; 9078 break; 9079 case "pointerover": 9080 case "pointerout": 9081 queuedPointers.delete(nativeEvent.pointerId); 9082 break; 9083 case "gotpointercapture": 9084 case "lostpointercapture": queuedPointerCaptures.delete(nativeEvent.pointerId); 9085 } 9086 } 9087 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 9088 if (null === existingQueuedEvent || existingQueuedEvent.nativeEvent !== nativeEvent) return existingQueuedEvent = { 9089 blockedOn, 9090 domEventName, 9091 eventSystemFlags, 9092 nativeEvent, 9093 targetContainers: [targetContainer] 9094 }, null !== blockedOn && (blockedOn = getInstanceFromNode(blockedOn), null !== blockedOn && attemptContinuousHydration(blockedOn)), existingQueuedEvent; 9095 existingQueuedEvent.eventSystemFlags |= eventSystemFlags; 9096 blockedOn = existingQueuedEvent.targetContainers; 9097 null !== targetContainer && -1 === blockedOn.indexOf(targetContainer) && blockedOn.push(targetContainer); 9098 return existingQueuedEvent; 9099 } 9100 function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 9101 switch (domEventName) { 9102 case "focusin": return queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 9103 case "dragenter": return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 9104 case "mouseover": return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent), !0; 9105 case "pointerover": 9106 var pointerId = nativeEvent.pointerId; 9107 queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)); 9108 return !0; 9109 case "gotpointercapture": return pointerId = nativeEvent.pointerId, queuedPointerCaptures.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(pointerId) || null, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent)), !0; 9110 } 9111 return !1; 9112 } 9113 function attemptExplicitHydrationTarget(queuedTarget) { 9114 var targetInst = getClosestInstanceFromNode(queuedTarget.target); 9115 if (null !== targetInst) { 9116 var nearestMounted = getNearestMountedFiber(targetInst); 9117 if (null !== nearestMounted) { 9118 if (targetInst = nearestMounted.tag, 13 === targetInst) { 9119 if (targetInst = getSuspenseInstanceFromFiber(nearestMounted), null !== targetInst) { 9120 queuedTarget.blockedOn = targetInst; 9121 runWithPriority(queuedTarget.priority, function() { 9122 attemptHydrationAtCurrentPriority(nearestMounted); 9123 }); 9124 return; 9125 } 9126 } else if (31 === targetInst) { 9127 if (targetInst = getActivityInstanceFromFiber(nearestMounted), null !== targetInst) { 9128 queuedTarget.blockedOn = targetInst; 9129 runWithPriority(queuedTarget.priority, function() { 9130 attemptHydrationAtCurrentPriority(nearestMounted); 9131 }); 9132 return; 9133 } 9134 } else if (3 === targetInst && nearestMounted.stateNode.current.memoizedState.isDehydrated) { 9135 queuedTarget.blockedOn = 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 9136 return; 9137 } 9138 } 9139 } 9140 queuedTarget.blockedOn = null; 9141 } 9142 function attemptReplayContinuousQueuedEvent(queuedEvent) { 9143 if (null !== queuedEvent.blockedOn) return !1; 9144 for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length;) { 9145 var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent); 9146 if (null === nextBlockedOn) { 9147 nextBlockedOn = queuedEvent.nativeEvent; 9148 var nativeEventClone = new nextBlockedOn.constructor(nextBlockedOn.type, nextBlockedOn); 9149 currentReplayingEvent = nativeEventClone; 9150 nextBlockedOn.target.dispatchEvent(nativeEventClone); 9151 currentReplayingEvent = null; 9152 } else return targetContainers = getInstanceFromNode(nextBlockedOn), null !== targetContainers && attemptContinuousHydration(targetContainers), queuedEvent.blockedOn = nextBlockedOn, !1; 9153 targetContainers.shift(); 9154 } 9155 return !0; 9156 } 9157 function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { 9158 attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key); 9159 } 9160 function replayUnblockedEvents() { 9161 hasScheduledReplayAttempt = !1; 9162 null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null); 9163 null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null); 9164 null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null); 9165 queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); 9166 queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); 9167 } 9168 function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { 9169 queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = !0, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents))); 9170 } 9171 var lastScheduledReplayQueue = null; 9172 function scheduleReplayQueueIfNeeded(formReplayingQueue) { 9173 lastScheduledReplayQueue !== formReplayingQueue && (lastScheduledReplayQueue = formReplayingQueue, Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, function() { 9174 lastScheduledReplayQueue === formReplayingQueue && (lastScheduledReplayQueue = null); 9175 for (var i = 0; i < formReplayingQueue.length; i += 3) { 9176 var form = formReplayingQueue[i], submitterOrAction = formReplayingQueue[i + 1], formData = formReplayingQueue[i + 2]; 9177 if ("function" !== typeof submitterOrAction) if (null === findInstanceBlockingTarget(submitterOrAction || form)) continue; 9178 else break; 9179 var formInst = getInstanceFromNode(form); 9180 null !== formInst && (formReplayingQueue.splice(i, 3), i -= 3, startHostTransition(formInst, { 9181 pending: !0, 9182 data: formData, 9183 method: form.method, 9184 action: submitterOrAction 9185 }, submitterOrAction, formData)); 9186 } 9187 })); 9188 } 9189 function retryIfBlockedOn(unblocked) { 9190 function unblock(queuedEvent) { 9191 return scheduleCallbackIfUnblocked(queuedEvent, unblocked); 9192 } 9193 null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); 9194 null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); 9195 null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked); 9196 queuedPointers.forEach(unblock); 9197 queuedPointerCaptures.forEach(unblock); 9198 for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { 9199 var queuedTarget = queuedExplicitHydrationTargets[i]; 9200 queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); 9201 } 9202 for (; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0], null === i.blockedOn);) attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); 9203 i = (unblocked.ownerDocument || unblocked).$$reactFormReplay; 9204 if (null != i) for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) { 9205 var form = i[queuedTarget], submitterOrAction = i[queuedTarget + 1], formProps = form[internalPropsKey] || null; 9206 if ("function" === typeof submitterOrAction) formProps || scheduleReplayQueueIfNeeded(i); 9207 else if (formProps) { 9208 var action = null; 9209 if (submitterOrAction && submitterOrAction.hasAttribute("formAction")) { 9210 if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null) action = formProps.formAction; 9211 else if (null !== findInstanceBlockingTarget(form)) continue; 9212 } else action = formProps.action; 9213 "function" === typeof action ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3); 9214 scheduleReplayQueueIfNeeded(i); 9215 } 9216 } 9217 } 9218 function defaultOnDefaultTransitionIndicator() { 9219 function handleNavigate(event) { 9220 event.canIntercept && "react-transition" === event.info && event.intercept({ 9221 handler: function() { 9222 return new Promise(function(resolve) { 9223 return pendingResolve = resolve; 9224 }); 9225 }, 9226 focusReset: "manual", 9227 scroll: "manual" 9228 }); 9229 } 9230 function handleNavigateComplete() { 9231 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 9232 isCancelled || setTimeout(startFakeNavigation, 20); 9233 } 9234 function startFakeNavigation() { 9235 if (!isCancelled && !navigation.transition) { 9236 var currentEntry = navigation.currentEntry; 9237 currentEntry && null != currentEntry.url && navigation.navigate(currentEntry.url, { 9238 state: currentEntry.getState(), 9239 info: "react-transition", 9240 history: "replace" 9241 }); 9242 } 9243 } 9244 if ("object" === typeof navigation) { 9245 var isCancelled = !1, pendingResolve = null; 9246 navigation.addEventListener("navigate", handleNavigate); 9247 navigation.addEventListener("navigatesuccess", handleNavigateComplete); 9248 navigation.addEventListener("navigateerror", handleNavigateComplete); 9249 setTimeout(startFakeNavigation, 100); 9250 return function() { 9251 isCancelled = !0; 9252 navigation.removeEventListener("navigate", handleNavigate); 9253 navigation.removeEventListener("navigatesuccess", handleNavigateComplete); 9254 navigation.removeEventListener("navigateerror", handleNavigateComplete); 9255 null !== pendingResolve && (pendingResolve(), pendingResolve = null); 9256 }; 9257 } 9258 } 9259 function ReactDOMRoot(internalRoot) { 9260 this._internalRoot = internalRoot; 9261 } 9262 ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) { 9263 var root = this._internalRoot; 9264 if (null === root) throw Error(formatProdErrorMessage(409)); 9265 var current = root.current; 9266 updateContainerImpl(current, requestUpdateLane(), children, root, null, null); 9267 }; 9268 ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() { 9269 var root = this._internalRoot; 9270 if (null !== root) { 9271 this._internalRoot = null; 9272 var container = root.containerInfo; 9273 updateContainerImpl(root.current, 2, null, root, null, null); 9274 flushSyncWork$1(); 9275 container[internalContainerInstanceKey] = null; 9276 } 9277 }; 9278 function ReactDOMHydrationRoot(internalRoot) { 9279 this._internalRoot = internalRoot; 9280 } 9281 ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) { 9282 if (target) { 9283 var updatePriority = resolveUpdatePriority(); 9284 target = { 9285 blockedOn: null, 9286 target, 9287 priority: updatePriority 9288 }; 9289 for (var i = 0; i < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i].priority; i++); 9290 queuedExplicitHydrationTargets.splice(i, 0, target); 9291 0 === i && attemptExplicitHydrationTarget(target); 9292 } 9293 }; 9294 var isomorphicReactPackageVersion$jscomp$inline_1840 = React.ver
9294sion; 9295 if ("19.2.5" !== isomorphicReactPackageVersion$jscomp$inline_1840) throw Error(formatProdErrorMessage(527, isomorphicReactPackageVersion$jscomp$inline_1840, "19.2.5")); 9296 ReactDOMSharedInternals.findDOMNode = function(componentOrElement) { 9297 var fiber = componentOrElement._reactInternals; 9298 if (void 0 === fiber) { 9299 if ("function" === typeof componentOrElement.render) throw Error(formatProdErrorMessage(188)); 9300 componentOrElement = Object.keys(componentOrElement).join(","); 9301 throw Error(formatProdErrorMessage(268, componentOrElement)); 9302 } 9303 componentOrElement = findCurrentFiberUsingSlowPath(fiber); 9304 componentOrElement = null !== componentOrElement ? findCurrentHostFiberImpl(componentOrElement) : null; 9305 componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode; 9306 return componentOrElement; 9307 }; 9308 var internals$jscomp$inline_2347 = { 9309 bundleType: 0, 9310 version: "19.2.5", 9311 rendererPackageName: "react-dom", 9312 currentDispatcherRef: ReactSharedInternals, 9313 reconcilerVersion: "19.2.5" 9314 }; 9315 if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { 9316 var hook$jscomp$inline_2348 = __REACT_DEVTOOLS_GLOBAL_HOOK__; 9317 if (!hook$jscomp$inline_2348.isDisabled && hook$jscomp$inline_2348.supportsFiber) try { 9318 rendererID = hook$jscomp$inline_2348.inject(internals$jscomp$inline_2347), injectedHook = hook$jscomp$inline_2348; 9319 } catch (err) {} 9320 } 9321 exports.createRoot = function(container, options) { 9322 if (!isValidContainer(container)) throw Error(formatProdErrorMessage(299)); 9323 var isStrictMode = !1, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError; 9324 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)); 9325 options = createFiberRoot(container, 1, !1, null, null, isStrictMode, identifierPrefix, null, onUncaughtError, onCaughtError, onRecoverableError, defaultOnDefaultTransitionIndicator); 9326 container[internalContainerInstanceKey] = options.current; 9327 listenToAllSupportedEvents(container); 9328 return new ReactDOMRoot(options); 9329 }; 9330})); 9331//#endregion 9332//#region src/index.css 9333var import_client = (/* @__PURE__ */ __commonJSMin(((exports, module) => { 9334 function checkDCE() { 9335 if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") return; 9336 try { 9337 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 9338 } catch (err) { 9339 console.error(err); 9340 } 9341 } 9342 checkDCE(); 9343 module.exports = require_react_dom_client_production(); 9344})))(); 9345//#endregion 9346//#region src/main.tsx 9347var import_jsx_runtime = require_jsx_runtime(); 9348var { StrictMode } = await importShared("react"); 9349console.log("Tracking & Consent Platform Initialized"); 9350(0, import_client.createRoot)(document.getElementById("root")).render(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(App, {}) })); 9351//#endregion
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.