1(function(global, factory) { 2 typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.AcosSharedComponents = global.AcosSharedComponents || {})); 3})(this, function(exports2) { 4 "use strict";var __defProp = Object.defineProperty; 5var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 6var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); 7 8 var jsxDevRuntime = { exports: {} }; 9 var reactJsxDevRuntime_development = {}; 10 var react = { exports: {} }; 11 var react_development = { exports: {} }; 12 react_development.exports; 13 var hasRequiredReact_development; 14 function requireReact_development() { 15 if (hasRequiredReact_development) return react_development.exports; 16 hasRequiredReact_development = 1; 17 (function(module2, exports3) { 18 /** 19 * @license React 20 * react.development.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */ 27 (function() { 28 function defineDeprecationWarning(methodName, info) { 29 Object.defineProperty(Component.prototype, methodName, { 30 get: function() { 31 console.warn( 32 "%s(...) is deprecated in plain JavaScript React classes. %s", 33 info[0], 34 info[1] 35 ); 36 } 37 }); 38 } 39 function getIteratorFn(maybeIterable) { 40 if (null === maybeIterable || "object" !== typeof maybeIterable) 41 return null; 42 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; 43 return "function" === typeof maybeIterable ? maybeIterable : null; 44 } 45 function warnNoop(publicInstance, callerName) { 46 publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass"; 47 var warningKey = publicInstance + "." + callerName; 48 didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error( 49 "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", 50 callerName, 51 publicInstance 52 ), didWarnStateUpdateForUnmountedComponent[warningKey] = true); 53 } 54 function Component(props, context, updater) { 55 this.props = props; 56 this.context = context; 57 this.refs = emptyObject; 58 this.updater = updater || ReactNoopUpdateQueue; 59 } 60 function ComponentDummy() { 61 } 62 function PureComponent(props, context, updater) { 63 this.props = props; 64 this.context = context; 65 this.refs = emptyObject; 66 this.updater = updater || ReactNoopUpdateQueue; 67 } 68 function testStringCoercion(value) { 69 return "" + value; 70 } 71 function checkKeyStringCoercion(value) { 72 try { 73 testStringCoercion(value); 74 var JSCompiler_inline_result = false;
75 } catch (e) { 76 JSCompiler_inline_result = true; 77 } 78 if (JSCompiler_inline_result) { 79 JSCompiler_inline_result = console; 80 var JSCompiler_temp_const = JSCompiler_inline_result.error; 81 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 82 JSCompiler_temp_const.call( 83 JSCompiler_inline_result, 84 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", 85 JSCompiler_inline_result$jscomp$0 86 ); 87 return testStringCoercion(value); 88 } 89 } 90 function getComponentNameFromType(type) { 91 if (null == type) return null; 92 if ("function" === typeof type) 93 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 94 if ("string" === typeof type) return type; 95 switch (type) { 96 case REACT_FRAGMENT_TYPE: 97 return "Fragment"; 98 case REACT_PROFILER_TYPE: 99 return "Profiler"; 100 case REACT_STRICT_MODE_TYPE: 101 return "StrictMode"; 102 case REACT_SUSPENSE_TYPE: 103 return "Suspense"; 104 case REACT_SUSPENSE_LIST_TYPE: 105 return "SuspenseList"; 106 case REACT_ACTIVITY_TYPE: 107 return "Activity"; 108 } 109 if ("object" === typeof type) 110 switch ("number" === typeof type.tag && console.error( 111 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." 112 ), type.$$typeof) { 113 case REACT_PORTAL_TYPE: 114 return "Portal"; 115 case REACT_CONTEXT_TYPE: 116 return (type.displayName || "Context") + ".Provider"; 117 case REACT_CONSUMER_TYPE: 118 return (type._context.displayName || "Context") + ".Consumer"; 119 case REACT_FORWARD_REF_TYPE: 120 var innerType = type.render; 121 type = type.displayName; 122 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 123 return type; 124 case REACT_MEMO_TYPE: 125 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 126 case REACT_LAZY_TYPE: 127 innerType = type._payload; 128 type = type._init; 129 try { 130 return getComponentNameFromType(type(innerType)); 131 } catch (x) { 132 } 133 } 134 return null; 135 } 136 function getTaskName(type) { 137 if (type === REACT_FRAGMENT_TYPE) return "<>"; 138 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) 139 return "<...>"; 140 try { 141 var name = getComponentNameFromType(type); 142 return name ? "<" + name + ">" : "<...>"; 143 } catch (x) { 144 return "<...>"; 145 } 146 } 147 function getOwner() { 148 var dispatcher = ReactSharedInternals.A; 149 return null === dispatcher ? null : dispatcher.getOwner(); 150 } 151 function UnknownOwner() { 152 return Error("react-stack-top-frame"); 153 } 154 function hasValidKey(config) { 155 if (hasOwnProperty.call(config, "key")) { 156 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 157 if (getter && getter.isReactWarning) return false; 158 } 159 return void 0 !== config.key; 160 } 161 function defineKeyPropWarningGetter(props, displayName) { 162 function warnAboutAccessingKey() { 163 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error( 164 "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", 165 displayName 166 )); 167 } 168 warnAboutAccessingKey.isReactWarning = true; 169 Object.defineProperty(props, "key", { 170 get: warnAboutAccessingKey, 171 configurable: true 172 }); 173 } 174 function elementRefGetterWithDeprecationWarning() { 175 var componentName = getComponentNameFromType(this.type); 176 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error( 177 "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." 178 )); 179 componentName = this.props.ref; 180 return void 0 !== componentName ? componentName : null; 181 } 182 function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) { 183 self2 = props.ref; 184 type = { 185 $$typeof: REACT_ELEMENT_TYPE, 186 type, 187 key, 188 props, 189 _owner: owner 190 }; 191 null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", { 192 enumerable: false, 193 get: elementRefGetterWithDeprecationWarning 194 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null }); 195 type._store = {}; 196 Object.defineProperty(type._store, "validated", { 197 configurable: false, 198 enumerable: false, 199 writable: true, 200 value: 0 201 }); 202 Object.defineProperty(type, "_debugInfo", { 203 configurable: false, 204 enumerable: false, 205 writable: true, 206 value: null 207 }); 208 Object.defineProperty(type, "_debugStack", { 209 configurable: false, 210 enumerable: false, 211 writable: true, 212 value: debugStack 213 }); 214 Object.defineProperty(type, "_debugTask", { 215 configurable: false, 216 enumerable: false, 217 writable: true, 218 value: debugTask 219 }); 220 Object.freeze && (Object.freeze(type.props), Object.freeze(type)); 221 return type; 222 } 223 function cloneAndReplaceKey(oldElement, newKey) { 224 newKey = ReactElement( 225 oldElement.type, 226 newKey, 227 void 0, 228 void 0, 229 oldElement._owner, 230 oldElement.props, 231 oldElement._debugStack, 232 oldElement._debugTask 233 ); 234 oldElement._store && (newKey._store.validated = oldElement._store.validated); 235 return newKey; 236 } 237 function isValidElement(object) { 238 return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 239 } 240 function escape(key) { 241 var escaperLookup = { "=": "=0", ":": "=2" }; 242 return "$" + key.replace(/[=:]/g, function(match) { 243 return escaperLookup[match]; 244 }); 245 } 246 function getElementKey(element, index) { 247 return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36); 248 } 249 function noop$1() { 250 } 251 function resolveThenable(thenable) { 252 switch (thenable.status) { 253 case "fulfilled": 254 return thenable.value; 255 case "rejected": 256 throw thenable.reason; 257 default: 258 switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then( 259 function(fulfilledValue) { 260 "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue); 261 }, 262 function(error) { 263 "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error); 264 } 265 )), thenable.status) { 266 case "fulfilled": 267 return thenable.value; 268 case "rejected": 269 throw thenable.reason; 270 } 271 } 272 throw thenable; 273 } 274 function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { 275 var type = typeof children; 276 if ("undefined" === type || "boolean" === type) children = null; 277 var invokeCallback = false;
278 if (null === children) invokeCallback = true; 279 else 280 switch (type) { 281 case "bigint": 282 case "string": 283 case "number": 284 invokeCallback = true; 285 break; 286 case "object": 287 switch (children.$$typeof) { 288 case REACT_ELEMENT_TYPE: 289 case REACT_PORTAL_TYPE: 290 invokeCallback = true; 291 break; 292 case REACT_LAZY_TYPE: 293 return invokeCallback = children._init, mapIntoArray( 294 invokeCallback(children._payload), 295 array, 296 escapedPrefix, 297 nameSoFar, 298 callback 299 ); 300 } 301 } 302 if (invokeCallback) { 303 invokeCallback = children; 304 callback = callback(invokeCallback); 305 var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar; 306 isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) { 307 return c; 308 })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey( 309 callback, 310 escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace( 311 userProvidedKeyEscapeRegex, 312 "$&/" 313 ) + "/") + childKey 314 ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback)); 315 return 1; 316 } 317 invokeCallback = 0; 318 childKey = "" === nameSoFar ? "." : nameSoFar + ":"; 319 if (isArrayImpl(children)) 320 for (var i = 0; i < children.length; i++) 321 nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray( 322 nameSoFar, 323 array, 324 escapedPrefix, 325 type, 326 callback 327 ); 328 else if (i = getIteratorFn(children), "function" === typeof i) 329 for (i === children.entries && (didWarnAboutMaps || console.warn( 330 "Using Maps as children is not supported. Use an array of keyed ReactElements instead." 331 ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; ) 332 nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray( 333 nameSoFar, 334 array, 335 escapedPrefix, 336 type, 337 callback 338 ); 339 else if ("object" === type) { 340 if ("function" === typeof children.then) 341 return mapIntoArray( 342 resolveThenable(children), 343 array, 344 escapedPrefix, 345 nameSoFar, 346 callback 347 ); 348 array = String(children); 349 throw Error( 350 "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead." 351 ); 352 } 353 return invokeCallback; 354 } 355 function mapChildren(children, func, context) { 356 if (null == children) return children; 357 var result = [], count = 0; 358 mapIntoArray(children, result, "", "", function(child) { 359 return func.call(context, child, count++); 360 }); 361 return result; 362 } 363 function lazyInitializer(payload) { 364 if (-1 === payload._status) { 365 var ctor = payload._result; 366 ctor = ctor(); 367 ctor.then( 368 function(moduleObject) { 369 if (0 === payload._status || -1 === payload._status) 370 payload._status = 1, payload._result = moduleObject; 371 }, 372 function(error) { 373 if (0 === payload._status || -1 === payload._status) 374 payload._status = 2, payload._result = error; 375 } 376 ); 377 -1 === payload._status && (payload._status = 0, payload._result = ctor); 378 } 379 if (1 === payload._status) 380 return ctor = payload._result, void 0 === ctor && console.error( 381 "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", 382 ctor 383 ), "default" in ctor || console.error( 384 "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", 385 ctor 386 ), ctor.default; 387 throw payload._result; 388 } 389 function resolveDispatcher() { 390 var dispatcher = ReactSharedInternals.H; 391 null === dispatcher && console.error( 392 "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." 393 );
vendor: 8,941 bytes, lines 394-567
394 return dispatcher; 395 } 396 function noop() { 397 } 398 function enqueueTask(task) { 399 if (null === enqueueTaskImpl) 400 try { 401 var requireString = ("require" + Math.random()).slice(0, 7); 402 enqueueTaskImpl = (module2 && module2[requireString]).call( 403 module2, 404 "timers" 405 ).setImmediate; 406 } catch (_err) { 407 enqueueTaskImpl = function(callback) { 408 false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error( 409 "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." 410 )); 411 var channel = new MessageChannel(); 412 channel.port1.onmessage = callback; 413 channel.port2.postMessage(void 0); 414 }; 415 } 416 return enqueueTaskImpl(task); 417 } 418 function aggregateErrors(errors) { 419 return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0]; 420 } 421 function popActScope(prevActQueue, prevActScopeDepth) { 422 prevActScopeDepth !== actScopeDepth - 1 && console.error( 423 "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " 424 ); 425 actScopeDepth = prevActScopeDepth; 426 } 427 function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { 428 var queue = ReactSharedInternals.actQueue; 429 if (null !== queue) 430 if (0 !== queue.length) 431 try { 432 flushActQueue(queue); 433 enqueueTask(function() { 434 return recursivelyFlushAsyncActWork(returnValue, resolve, reject); 435 }); 436 return; 437 } catch (error) { 438 ReactSharedInternals.thrownErrors.push(error); 439 } 440 else ReactSharedInternals.actQueue = null; 441 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue); 442 } 443 function flushActQueue(queue) { 444 if (!isFlushing) { 445 isFlushing = true; 446 var i = 0; 447 try { 448 for (; i < queue.length; i++) { 449 var callback = queue[i]; 450 do { 451 ReactSharedInternals.didUsePromise = false; 452 var continuation = callback(false); 453 if (null !== continuation) { 454 if (ReactSharedInternals.didUsePromise) { 455 queue[i] = callback; 456 queue.splice(0, i); 457 return; 458 } 459 callback = continuation; 460 } else break; 461 } while (1); 462 } 463 queue.length = 0; 464 } catch (error) { 465 queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); 466 } finally { 467 isFlushing = false; 468 } 469 } 470 } 471 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 472 var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"); 473 var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = { 474 isMounted: function() { 475 return false; 476 }, 477 enqueueForceUpdate: function(publicInstance) { 478 warnNoop(publicInstance, "forceUpdate"); 479 }, 480 enqueueReplaceState: function(publicInstance) { 481 warnNoop(publicInstance, "replaceState"); 482 }, 483 enqueueSetState: function(publicInstance) { 484 warnNoop(publicInstance, "setState"); 485 } 486 }, assign = Object.assign, emptyObject = {}; 487 Object.freeze(emptyObject); 488 Component.prototype.isReactComponent = {}; 489 Component.prototype.setState = function(partialState, callback) { 490 if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) 491 throw Error( 492 "takes an object of state variables to update or a function which returns an object of state variables." 493 ); 494 this.updater.enqueueSetState(this, partialState, callback, "setState"); 495 }; 496 Component.prototype.forceUpdate = function(callback) { 497 this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); 498 }; 499 var deprecatedAPIs = { 500 isMounted: [ 501 "isMounted", 502 "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." 503 ], 504 replaceState: [ 505 "replaceState", 506 "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." 507 ] 508 }, fnName; 509 for (fnName in deprecatedAPIs) 510 deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); 511 ComponentDummy.prototype = Component.prototype; 512 deprecatedAPIs = PureComponent.prototype = new ComponentDummy(); 513 deprecatedAPIs.constructor = PureComponent; 514 assign(deprecatedAPIs, Component.prototype); 515 deprecatedAPIs.isPureReactComponent = true; 516 var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = { 517 H: null, 518 A: null, 519 T: null, 520 S: null, 521 V: null, 522 actQueue: null, 523 isBatchingLegacy: false, 524 didScheduleLegacyUpdate: false, 525 didUsePromise: false, 526 thrownErrors: [], 527 getCurrentStack: null, 528 recentlyCreatedOwnerStacks: 0 529 }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() { 530 return null; 531 }; 532 deprecatedAPIs = { 533 "react-stack-bottom-frame": function(callStackForError) { 534 return callStackForError(); 535 } 536 }; 537 var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime; 538 var didWarnAboutElementRef = {}; 539 var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)(); 540 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); 541 var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) { 542 if ("object" === typeof window && "function" === typeof window.ErrorEvent) { 543 var event = new window.ErrorEvent("error", { 544 bubbles: true, 545 cancelable: true, 546 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), 547 error 548 }); 549 if (!window.dispatchEvent(event)) return; 550 } else if ("object" === typeof process && "function" === typeof process.emit) { 551 process.emit("uncaughtException", error); 552 return; 553 } 554 console.error(error); 555 }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) { 556 queueMicrotask(function() { 557 return queueMicrotask(callback); 558 }); 559 } : enqueueTask; 560 deprecatedAPIs = Object.freeze({ 561 __proto__: null, 562 c: function(size) { 563 return resolveDispatcher().useMemoCache(size); 564 } 565 }); 566 exports3.Children = { 567 map: mapChildren,
568 forEach: function(children, forEachFunc, forEachContext) { 569 mapChildren( 570 children, 571 function() { 572 forEachFunc.apply(this, arguments); 573 }, 574 forEachContext 575 ); 576 }, 577 count: function(children) { 578 var n = 0; 579 mapChildren(children, function() { 580 n++; 581 }); 582 return n; 583 }, 584 toArray: function(children) { 585 return mapChildren(children, function(child) { 586 return child; 587 }) || []; 588 }, 589 only: function(children) { 590 if (!isValidElement(children)) 591 throw Error( 592 "React.Children.only expected to receive a single React element child." 593 ); 594 return children; 595 } 596 }; 597 exports3.Component = Component; 598 exports3.Fragment = REACT_FRAGMENT_TYPE; 599 exports3.Profiler = REACT_PROFILER_TYPE; 600 exports3.PureComponent = PureComponent; 601 exports3.StrictMode = REACT_STRICT_MODE_TYPE; 602 exports3.Suspense = REACT_SUSPENSE_TYPE; 603 exports3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; 604 exports3.__COMPILER_RUNTIME = deprecatedAPIs; 605 exports3.act = function(callback) { 606 var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth; 607 actScopeDepth++; 608 var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false; 609 try { 610 var result = callback(); 611 } catch (error) { 612 ReactSharedInternals.thrownErrors.push(error); 613 } 614 if (0 < ReactSharedInternals.thrownErrors.length) 615 throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback; 616 if (null !== result && "object" === typeof result && "function" === typeof result.then) { 617 var thenable = result; 618 queueSeveralMicrotasks(function() { 619 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error( 620 "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" 621 )); 622 }); 623 return { 624 then: function(resolve, reject) { 625 didAwaitActCall = true; 626 thenable.then( 627 function(returnValue) { 628 popActScope(prevActQueue, prevActScopeDepth); 629 if (0 === prevActScopeDepth) { 630 try { 631 flushActQueue(queue), enqueueTask(function() { 632 return recursivelyFlushAsyncActWork( 633 returnValue, 634 resolve, 635 reject 636 ); 637 }); 638 } catch (error$0) { 639 ReactSharedInternals.thrownErrors.push(error$0); 640 } 641 if (0 < ReactSharedInternals.thrownErrors.length) { 642 var _thrownError = aggregateErrors( 643 ReactSharedInternals.thrownErrors 644 ); 645 ReactSharedInternals.thrownErrors.length = 0; 646 reject(_thrownError); 647 } 648 } else resolve(returnValue); 649 }, 650 function(error) { 651 popActScope(prevActQueue, prevActScopeDepth); 652 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors( 653 ReactSharedInternals.thrownErrors 654 ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error); 655 } 656 ); 657 } 658 }; 659 } 660 var returnValue$jscomp$0 = result; 661 popActScope(prevActQueue, prevActScopeDepth); 662 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() { 663 didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error( 664 "A component suspended inside an `act` scope, but the `act` c
664all was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" 665 )); 666 }), ReactSharedInternals.actQueue = null); 667 if (0 < ReactSharedInternals.thrownErrors.length) 668 throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback; 669 return { 670 then: function(resolve, reject) { 671 didAwaitActCall = true; 672 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() { 673 return recursivelyFlushAsyncActWork( 674 returnValue$jscomp$0, 675 resolve, 676 reject 677 ); 678 })) : resolve(returnValue$jscomp$0); 679 } 680 }; 681 }; 682 exports3.cache = function(fn) { 683 return function() { 684 return fn.apply(null, arguments); 685 }; 686 }; 687 exports3.captureOwnerStack = function() { 688 var getCurrentStack = ReactSharedInternals.getCurrentStack; 689 return null === getCurrentStack ? null : getCurrentStack(); 690 }; 691 exports3.cloneElement = function(element, config, children) { 692 if (null === element || void 0 === element) 693 throw Error( 694 "The argument must be a React element, but you passed " + element + "." 695 ); 696 var props = assign({}, element.props), key = element.key, owner = element._owner; 697 if (null != config) { 698 var JSCompiler_inline_result; 699 a: { 700 if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor( 701 config, 702 "ref" 703 ).get) && JSCompiler_inline_result.isReactWarning) { 704 JSCompiler_inline_result = false;
705 break a; 706 } 707 JSCompiler_inline_result = void 0 !== config.ref; 708 } 709 JSCompiler_inline_result && (owner = getOwner()); 710 hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key); 711 for (propName in config) 712 !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]); 713 } 714 var propName = arguments.length - 2; 715 if (1 === propName) props.children = children; 716 else if (1 < propName) { 717 JSCompiler_inline_result = Array(propName); 718 for (var i = 0; i < propName; i++) 719 JSCompiler_inline_result[i] = arguments[i + 2]; 720 props.children = JSCompiler_inline_result; 721 } 722 props = ReactElement( 723 element.type, 724 key, 725 void 0, 726 void 0, 727 owner, 728 props, 729 element._debugStack, 730 element._debugTask 731 ); 732 for (key = 2; key < arguments.length; key++) 733 owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1); 734 return props; 735 }; 736 exports3.createContext = function(defaultValue) { 737 defaultValue = { 738 $$typeof: REACT_CONTEXT_TYPE, 739 _currentValue: defaultValue, 740 _currentValue2: defaultValue, 741 _threadCount: 0, 742 Provider: null, 743 Consumer: null 744 }; 745 defaultValue.Provider = defaultValue; 746 defaultValue.Consumer = { 747 $$typeof: REACT_CONSUMER_TYPE, 748 _context: defaultValue 749 }; 750 defaultValue._currentRenderer = null; 751 defaultValue._currentRenderer2 = null; 752 return defaultValue; 753 }; 754 exports3.createElement = function(type, config, children) { 755 for (var i = 2; i < arguments.length; i++) { 756 var node = arguments[i]; 757 isValidElement(node) && node._store && (node._store.validated = 1); 758 } 759 i = {}; 760 node = null; 761 if (null != config) 762 for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn( 763 "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" 764 )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config) 765 hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]); 766 var childrenLength = arguments.length - 2; 767 if (1 === childrenLength) i.children = children; 768 else if (1 < childrenLength) { 769 for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) 770 childArray[_i] = arguments[_i + 2]; 771 Object.freeze && Object.freeze(childArray); 772 i.children = childArray; 773 } 774 if (type && type.defaultProps) 775 for (propName in childrenLength = type.defaultProps, childrenLength) 776 void 0 === i[propName] && (i[propName] = childrenLength[propName]); 777 node && defineKeyPropWarningGetter( 778 i, 779 "function" === typeof type ? type.displayName || type.name || "Unknown" : type 780 ); 781 var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 782 return ReactElement( 783 type, 784 node, 785 void 0, 786 void 0, 787 getOwner(), 788 i, 789 propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 790 propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask 791 ); 792 }; 793 exports3.createRef = function() { 794 var refObject = { current: null }; 795 Object.seal(refObject); 796 return refObject; 797 }; 798 exports3.forwardRef = function(render) { 799 null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error( 800 "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." 801 ) : "function" !== typeof render ? console.error( 802 "forwardRef requires a render function but was given %s.", 803 null === render ? "null" : typeof render 804 ) : 0 !== render.length && 2 !== render.length && console.error( 805 "forwardRef render functions accept exactly two parameters: props and ref. %s", 806 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined." 807 ); 808 null != render && null != render.defaultProps && console.error( 809 "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" 810 ); 811 var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName; 812 Object.defineProperty(elementType, "displayName", { 813 enumerable: false, 814 configurable: true, 815 get: function() { 816 return ownName; 817 }, 818 set: function(name) { 819 ownName = name; 820 render.name || render.displayName || (Object.defineProperty(render, "n
820ame", { value: name }), render.displayName = name); 821 } 822 }); 823 return elementType; 824 }; 825 exports3.isValidElement = isValidElement; 826 exports3.lazy = function(ctor) { 827 return { 828 $$typeof: REACT_LAZY_TYPE, 829 _payload: { _status: -1, _result: ctor }, 830 _init: lazyInitializer 831 }; 832 }; 833 exports3.memo = function(type, compare) { 834 null == type && console.error( 835 "memo: The first argument must be a component. Instead received: %s", 836 null === type ? "null" : typeof type 837 ); 838 compare = { 839 $$typeof: REACT_MEMO_TYPE, 840 type, 841 compare: void 0 === compare ? null : compare 842 }; 843 var ownName; 844 Object.defineProperty(compare, "displayName", { 845 enumerable: false, 846 configurable: true, 847 get: function() { 848 return ownName; 849 }, 850 set: function(name) { 851 ownName = name; 852 type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name); 853 } 854 }); 855 return compare; 856 }; 857 exports3.startTransition = function(scope) { 858 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 859 ReactSharedInternals.T = currentTransition; 860 currentTransition._updatedFibers = /* @__PURE__ */ new Set(); 861 try { 862 var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S; 863 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 864 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError); 865 } catch (error) { 866 reportGlobalError(error); 867 } finally { 868 null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn( 869 "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." 870 )), ReactSharedInternals.T = prevTransition; 871 } 872 }; 873 exports3.unstable_useCacheRefresh = function() { 874 return resolveDispatcher().useCacheRefresh(); 875 }; 876 exports3.use = function(usable) { 877 return resolveDispatcher().use(usable); 878 }; 879 exports3.useActionState = function(action, initialState, permalink) { 880 return resolveDispatcher().useActionState( 881 action, 882 initialState, 883 permalink 884 ); 885 }; 886 exports3.useCallback = function(callback, deps) { 887 return resolveDispatcher().useCallback(callback, deps); 888 }; 889 exports3.useContext = function(Context) { 890 var dispatcher = resolveDispatcher(); 891 Context.$$typeof === REACT_CONSUMER_TYPE && console.error( 892 "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?" 893 ); 894 return dispatcher.useContext(Context); 895 }; 896 exports3.useDebugValue = function(value, formatterFn) { 897 return resolveDispatcher().useDebugValue(value, formatterFn); 898 }; 899 exports3.useDeferredValue = function(value, initialValue) { 900 return resolveDispatcher().useDeferredValue(value, initialValue); 901 }; 902 exports3.useEffect = function(create, createDeps, update) { 903 null == create && console.warn( 904 "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?" 905 ); 906 var dispatcher = resolveDispatcher(); 907 if ("function" === typeof update) 908 throw Error( 909 "useEffect CRUD overload is not enabled in this build of React." 910 );
911 return dispatcher.useEffect(create, createDeps); 912 }; 913 exports3.useId = function() { 914 return resolveDispatcher().useId(); 915 }; 916 exports3.useImperativeHandle = function(ref, create, deps) { 917 return resolveDispatcher().useImperativeHandle(ref, create, deps); 918 }; 919 exports3.useInsertionEffect = function(create, deps) { 920 null == create && console.warn( 921 "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?" 922 ); 923 return resolveDispatcher().useInsertionEffect(create, deps); 924 }; 925 exports3.useLayoutEffect = function(create, deps) { 926 null == create && console.warn( 927 "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?" 928 ); 929 return resolveDispatcher().useLayoutEffect(create, deps); 930 }; 931 exports3.useMemo = function(create, deps) { 932 return resolveDispatcher().useMemo(create, deps); 933 }; 934 exports3.useOptimistic = function(passthrough, reducer) { 935 return resolveDispatcher().useOptimistic(passthrough, reducer); 936 }; 937 exports3.useReducer = function(reducer, initialArg, init) { 938 return resolveDispatcher().useReducer(reducer, initialArg, init); 939 }; 940 exports3.useRef = function(initialValue) { 941 return resolveDispatcher().useRef(initialValue); 942 }; 943 exports3.useState = function(initialState) { 944 return resolveDispatcher().useState(initialState); 945 }; 946 exports3.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) { 947 return resolveDispatcher().useSyncExternalStore( 948 subscribe, 949 getSnapshot, 950 getServerSnapshot 951 ); 952 }; 953 exports3.useTransition = function() { 954 return resolveDispatcher().useTransition(); 955 }; 956 exports3.version = "19.1.0"; 957 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 958 })(); 959 })(react_development, react_development.exports); 960 return react_development.exports; 961 } 962 var hasRequiredReact; 963 function requireReact() { 964 if (hasRequiredReact) return react.exports; 965 hasRequiredReact = 1; 966 { 967 react.exports = requireReact_development(); 968 } 969 return react.exports; 970 } 971 var hasRequiredReactJsxDevRuntime_development; 972 function requireReactJsxDevRuntime_development() { 973 if (hasRequiredReactJsxDevRuntime_development) return reactJsxDevRuntime_development; 974 hasRequiredReactJsxDevRuntime_development = 1; 975 /** 976 * @license React 977 * react-jsx-dev-runtime.development.js 978 * 979 * Copyright (c) Meta Platforms, Inc. and affiliates. 980 * 981 * This source code is licensed under the MIT license found in the 982 * LICENSE file in the root directory of this source tree. 983 */ 984 (function() { 985 function getComponentNameFromType(type) { 986 if (null == type) return null; 987 if ("function" === typeof type) 988 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 989 if ("string" === typeof type) return type; 990 switch (type) { 991 case REACT_FRAGMENT_TYPE: 992 return "Fragment"; 993 case REACT_PROFILER_TYPE: 994 return "Profiler"; 995 case REACT_STRICT_MODE_TYPE: 996 return "StrictMode"; 997 case REACT_SUSPENSE_TYPE: 998 return "Suspense"; 999 case REACT_SUSPENSE_LIST_TYPE: 1000 return "SuspenseList"; 1001 case REACT_ACTIVITY_TYPE: 1002 return "Activity"; 1003 } 1004 if ("object" === typeof type) 1005 switch ("number" === typeof type.tag && console.error( 1006 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." 1007 ), type.$$typeof) { 1008 case REACT_PORTAL_TYPE: 1009 return "Portal"; 1010 case REACT_CONTEXT_TYPE: 1011 return (type.displayName || "Context") + ".Provider"; 1012 case REACT_CONSUMER_TYPE: 1013 return (type._context.displayName || "Context") + ".Consumer"; 1014 case REACT_FORWARD_REF_TYPE: 1015 var innerType = type.render; 1016 type = type.displayName; 1017 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 1018 return type; 1019 case REACT_MEMO_TYPE: 1020 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 1021 case REACT_LAZY_TYPE: 1022 innerType = type._payload; 1023 type = type._init; 1024 try { 1025 return getComponentNameFromType(type(innerType)); 1026 } catch (x) { 1027 } 1028 } 1029 return null; 1030 } 1031 function testStringCoercion(value) { 1032 return "" + value; 1033 } 1034 function checkKeyStringCoercion(value) { 1035 try { 1036 testStringCoercion(value); 1037 var JSCompiler_inline_result = false;
1038 } catch (e) { 1039 JSCompiler_inline_result = true; 1040 } 1041 if (JSCompiler_inline_result) { 1042 JSCompiler_inline_result = console; 1043 var JSCompiler_temp_const = JSCompiler_inline_result.error; 1044 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 1045 JSCompiler_temp_const.call( 1046 JSCompiler_inline_result, 1047 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", 1048 JSCompiler_inline_result$jscomp$0 1049 ); 1050 return testStringCoercion(value); 1051 } 1052 } 1053 function getTaskName(type) { 1054 if (type === REACT_FRAGMENT_TYPE) return "<>"; 1055 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) 1056 return "<...>"; 1057 try { 1058 var name = getComponentNameFromType(type); 1059 return name ? "<" + name + ">" : "<...>"; 1060 } catch (x) { 1061 return "<...>"; 1062 } 1063 } 1064 function getOwner() { 1065 var dispatcher = ReactSharedInternals.A; 1066 return null === dispatcher ? null : dispatcher.getOwner(); 1067 } 1068 function UnknownOwner() { 1069 return Error("react-stack-top-frame"); 1070 } 1071 function hasValidKey(config) { 1072 if (hasOwnProperty.call(config, "key")) { 1073 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 1074 if (getter && getter.isReactWarning) return false; 1075 } 1076 return void 0 !== config.key; 1077 } 1078 function defineKeyPropWarningGetter(props, displayName) { 1079 function warnAboutAccessingKey() { 1080 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error( 1081 "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", 1082 displayName 1083 )); 1084 } 1085 warnAboutAccessingKey.isReactWarning = true; 1086 Object.defineProperty(props, "key", { 1087 get: warnAboutAccessingKey, 1088 configurable: true 1089 }); 1090 } 1091 function elementRefGetterWithDeprecationWarning() { 1092 var componentName = getComponentNameFromType(this.type); 1093 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error( 1094 "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." 1095 )); 1096 componentName = this.props.ref; 1097 return void 0 !== componentName ? componentName : null; 1098 } 1099 function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) { 1100 self2 = props.ref; 1101 type = { 1102 $$typeof: REACT_ELEMENT_TYPE, 1103 type, 1104 key, 1105 props, 1106 _owner: owner 1107 }; 1108 null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", { 1109 enumerable: false, 1110 get: elementRefGetterWithDeprecationWarning 1111 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null }); 1112 type._store = {}; 1113 Object.defineProperty(type._store, "validated", { 1114 configurable: false, 1115 enumerable: false, 1116 writable: true, 1117 value: 0 1118 }); 1119 Object.defineProperty(type, "_debugInfo", { 1120 configurable: false, 1121 enumerable: false, 1122 writable: true, 1123 value: null 1124 }); 1125 Object.defineProperty(type, "_debugStack", { 1126 configurable: false, 1127 enumerable: false, 1128 writable: true, 1129 value: debugStack 1130 }); 1131 Object.defineProperty(type, "_debugTask", { 1132 configurable: false, 1133 enumerable: false, 1134 writable: true, 1135 value: debugTask 1136 }); 1137 Object.freeze && (Object.freeze(type.props), Object.freeze(type)); 1138 return type; 1139 } 1140 function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self2, debugStack, debugTask) { 1141 var children = config.children; 1142 if (void 0 !== children) 1143 if (isStaticChildren) 1144 if (isArrayImpl(children)) { 1145 for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) 1146 validateChildKeys(children[isStaticChildren]);
1147 Object.freeze && Object.freeze(children); 1148 } else 1149 console.error( 1150 "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." 1151 ); 1152 else validateChildKeys(children); 1153 if (hasOwnProperty.call(config, "key")) { 1154 children = getComponentNameFromType(type); 1155 var keys = Object.keys(config).filter(function(k) { 1156 return "key" !== k; 1157 }); 1158 isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}"; 1159 didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error( 1160 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', 1161 isStaticChildren, 1162 children, 1163 keys, 1164 children 1165 ), didWarnAboutKeySpread[children + isStaticChildren] = true); 1166 } 1167 children = null; 1168 void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey); 1169 hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key); 1170 if ("key" in config) { 1171 maybeKey = {}; 1172 for (var propName in config) 1173 "key" !== propName && (maybeKey[propName] = config[propName]); 1174 } else maybeKey = config; 1175 children && defineKeyPropWarningGetter( 1176 maybeKey, 1177 "function" === typeof type ? type.displayName || type.name || "Unknown" : type 1178 ); 1179 return ReactElement( 1180 type, 1181 children, 1182 self2, 1183 source, 1184 getOwner(), 1185 maybeKey, 1186 debugStack, 1187 debugTask 1188 ); 1189 } 1190 function validateChildKeys(node) { 1191 "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1); 1192 } 1193 var React = requireReact(), 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"); 1194 var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() { 1195 return null; 1196 }; 1197 React = { 1198 "react-stack-bottom-frame": function(callStackForError) { 1199 return callStackForError(); 1200 } 1201 }; 1202 var specialPropKeyWarningShown; 1203 var didWarnAboutElementRef = {}; 1204 var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( 1205 React, 1206 UnknownOwner 1207 )(); 1208 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); 1209 var didWarnAboutKeySpread = {}; 1210 reactJsxDevRuntime_development.Fragment = REACT_FRAGMENT_TYPE; 1211 reactJsxDevRuntime_development.jsxDEV = function(type, config, maybeKey, isStaticChildren, source, self2) { 1212 var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 1213 return jsxDEVImpl( 1214 type, 1215 config, 1216 maybeKey, 1217 isStaticChildren, 1218 source, 1219 self2, 1220 trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 1221 trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask 1222 ); 1223 }; 1224 })(); 1225 return reactJsxDevRuntime_development; 1226 } 1227 var hasRequiredJsxDevRuntime; 1228 function requireJsxDevRuntime() { 1229 if (hasRequiredJsxDevRuntime) return jsxDevRuntime.exports; 1230 hasRequiredJsxDevRuntime = 1; 1231 { 1232 jsxDevRuntime.exports = requireReactJsxDevRuntime_development(); 1233 } 1234 return jsxDevRuntime.exports; 1235 } 1236 var jsxDevRuntimeExports = requireJsxDevRuntime(); 1237 var dist = {}; 1238 var jsxRuntime = { exports: {} }; 1239 var reactJsxRuntime_development = {}; 1240 var hasRequiredReactJsxRuntime_development; 1241 function requireReactJsxRuntime_development() { 1242 if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development; 1243 hasRequiredReactJsxRuntime_development = 1; 1244 /** 1245 * @license React 1246 * react-jsx-runtime.development.js 1247 * 1248 * Copyright (c) Meta Platforms, Inc. and affiliates. 1249 * 1250 * This source code is licensed under the MIT license found in the 1251 * LICENSE file in the root directory of this source tree. 1252 */ 1253 (function() { 1254 function getComponentNameFromType(type) { 1255 if (null == type) return null; 1256 if ("function" === typeof type) 1257 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 1258 if ("string" === typeof type) return type; 1259 switch (type) { 1260 case REACT_FRAGMENT_TYPE: 1261 return "Fragment";
1262 case REACT_PROFILER_TYPE: 1263 return "Profiler"; 1264 case REACT_STRICT_MODE_TYPE: 1265 return "StrictMode"; 1266 case REACT_SUSPENSE_TYPE: 1267 return "Suspense"; 1268 case REACT_SUSPENSE_LIST_TYPE: 1269 return "SuspenseList"; 1270 case REACT_ACTIVITY_TYPE: 1271 return "Activity"; 1272 } 1273 if ("object" === typeof type) 1274 switch ("number" === typeof type.tag && console.error( 1275 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." 1276 ), type.$$typeof) { 1277 case REACT_PORTAL_TYPE: 1278 return "Portal"; 1279 case REACT_CONTEXT_TYPE: 1280 return (type.displayName || "Context") + ".Provider"; 1281 case REACT_CONSUMER_TYPE: 1282 return (type._context.displayName || "Context") + ".Consumer"; 1283 case REACT_FORWARD_REF_TYPE: 1284 var innerType = type.render; 1285 type = type.displayName; 1286 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 1287 return type; 1288 case REACT_MEMO_TYPE: 1289 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 1290 case REACT_LAZY_TYPE: 1291 innerType = type._payload; 1292 type = type._init; 1293 try { 1294 return getComponentNameFromType(type(innerType)); 1295 } catch (x) { 1296 } 1297 } 1298 return null; 1299 } 1300 function testStringCoercion(value) { 1301 return "" + value; 1302 } 1303 function checkKeyStringCoercion(value) { 1304 try { 1305 testStringCoercion(value); 1306 var JSCompiler_inline_result = false;
1307 } catch (e) { 1308 JSCompiler_inline_result = true; 1309 } 1310 if (JSCompiler_inline_result) { 1311 JSCompiler_inline_result = console; 1312 var JSCompiler_temp_const = JSCompiler_inline_result.error; 1313 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 1314 JSCompiler_temp_const.call( 1315 JSCompiler_inline_result, 1316 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", 1317 JSCompiler_inline_result$jscomp$0 1318 ); 1319 return testStringCoercion(value); 1320 } 1321 } 1322 function getTaskName(type) { 1323 if (type === REACT_FRAGMENT_TYPE) return "<>"; 1324 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) 1325 return "<...>"; 1326 try { 1327 var name = getComponentNameFromType(type); 1328 return name ? "<" + name + ">" : "<...>"; 1329 } catch (x) { 1330 return "<...>"; 1331 } 1332 } 1333 function getOwner() { 1334 var dispatcher = ReactSharedInternals.A; 1335 return null === dispatcher ? null : dispatcher.getOwner(); 1336 } 1337 function UnknownOwner() { 1338 return Error("react-stack-top-frame"); 1339 } 1340 function hasValidKey(config) { 1341 if (hasOwnProperty.call(config, "key")) { 1342 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 1343 if (getter && getter.isReactWarning) return false; 1344 } 1345 return void 0 !== config.key; 1346 } 1347 function defineKeyPropWarningGetter(props, displayName) { 1348 function warnAboutAccessingKey() { 1349 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error( 1350 "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", 1351 displayName 1352 )); 1353 } 1354 warnAboutAccessingKey.isReactWarning = true; 1355 Object.defineProperty(props, "key", { 1356 get: warnAboutAccessingKey, 1357 configurable: true 1358 }); 1359 } 1360 function elementRefGetterWithDeprecationWarning() { 1361 var componentName = getComponentNameFromType(this.type); 1362 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error( 1363 "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." 1364 )); 1365 componentName = this.props.ref; 1366 return void 0 !== componentName ? componentName : null; 1367 } 1368 function ReactElement(type, key, self2, source, owner, props, debugStack, debugTask) { 1369 self2 = props.ref; 1370 type = { 1371 $$typeof: REACT_ELEMENT_TYPE, 1372 type, 1373 key, 1374 props, 1375 _owner: owner 1376 }; 1377 null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", { 1378 enumerable: false, 1379 get: elementRefGetterWithDeprecationWarning 1380 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null }); 1381 type._store = {}; 1382 Object.defineProperty(type._store, "validated", { 1383 configurable: false, 1384 enumerable: false, 1385 writable: true, 1386 value: 0 1387 }); 1388 Object.defineProperty(type, "_debugInfo", { 1389 configurable: false, 1390 enumerable: false, 1391 writable: true, 1392 value: null 1393 }); 1394 Object.defineProperty(type, "_debugStack", { 1395 configurable: false, 1396 enumerable: false, 1397 writable: true, 1398 value: debugStack 1399 }); 1400 Object.defineProperty(type, "_debugTask", { 1401 configurable: false, 1402 enumerable: false, 1403 writable: true, 1404 value: debugTask 1405 }); 1406 Object.freeze && (Object.freeze(type.props), Object.freeze(type)); 1407 return type; 1408 } 1409 function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self2, debugStack, debugTask) { 1410 var children = config.children; 1411 if (void 0 !== children) 1412 if (isStaticChildren) 1413 if (isArrayImpl(children)) { 1414 for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) 1415 validateChildKeys(children[isStaticChildren]);
1416 Object.freeze && Object.freeze(children); 1417 } else 1418 console.error( 1419 "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." 1420 ); 1421 else validateChildKeys(children); 1422 if (hasOwnProperty.call(config, "key")) { 1423 children = getComponentNameFromType(type); 1424 var keys = Object.keys(config).filter(function(k) { 1425 return "key" !== k; 1426 }); 1427 isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}"; 1428 didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error( 1429 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', 1430 isStaticChildren, 1431 children, 1432 keys, 1433 children 1434 ), didWarnAboutKeySpread[children + isStaticChildren] = true); 1435 } 1436 children = null; 1437 void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey); 1438 hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key); 1439 if ("key" in config) { 1440 maybeKey = {}; 1441 for (var propName in config) 1442 "key" !== propName && (maybeKey[propName] = config[propName]); 1443 } else maybeKey = config; 1444 children && defineKeyPropWarningGetter( 1445 maybeKey, 1446 "function" === typeof type ? type.displayName || type.name || "Unknown" : type 1447 ); 1448 return ReactElement( 1449 type, 1450 children, 1451 self2, 1452 source, 1453 getOwner(), 1454 maybeKey, 1455 debugStack, 1456 debugTask 1457 ); 1458 } 1459 function validateChildKeys(node) { 1460 "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1); 1461 } 1462 var React = requireReact(), 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"); 1463 var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() { 1464 return null; 1465 }; 1466 React = { 1467 "react-stack-bottom-frame": function(callStackForError) { 1468 return callStackForError(); 1469 } 1470 }; 1471 var specialPropKeyWarningShown; 1472 var didWarnAboutElementRef = {}; 1473 var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( 1474 React, 1475 UnknownOwner 1476 )(); 1477 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); 1478 var didWarnAboutKeySpread = {}; 1479 reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE; 1480 reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self2) { 1481 var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 1482 return jsxDEVImpl( 1483 type, 1484 config, 1485 maybeKey, 1486 false, 1487 source, 1488 self2, 1489 trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 1490 trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask 1491 ); 1492 }; 1493 reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self2) { 1494 var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 1495 return jsxDEVImpl( 1496 type, 1497 config, 1498 maybeKey, 1499 true, 1500 source, 1501 self2, 1502 trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 1503 trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask 1504 ); 1505 }; 1506 })(); 1507 return reactJsxRuntime_development; 1508 } 1509 var hasRequiredJsxRuntime; 1510 function requireJsxRuntime() { 1511 if (hasRequiredJsxRuntime) return jsxRuntime.exports; 1512 hasRequiredJsxRuntime = 1; 1513 { 1514 jsxRuntime.exports = requireReactJsxRuntime_development(); 1515 } 1516 return jsxRuntime.exports; 1517 } 1518 var reactDom = { exports: {} }; 1519 var reactDom_development = {}; 1520 var hasRequiredReactDom_development; 1521 function requireReactDom_development() { 1522 if (hasRequiredReactDom_development) return reactDom_development; 1523 hasRequiredReactDom_development = 1; 1524 /** 1525 * @license React 1526 * react-dom.development.js 1527 * 1528 * Copyright (c) Meta Platforms, Inc. and affiliates. 1529 * 1530 * This source code is licensed under the MIT license found in the 1531 * LICENSE file in the root directory of this source tree. 1532 */ 1533 (function() { 1534 function noop() { 1535 } 1536 function testStringCoercion(value) { 1537 return "" + value; 1538 } 1539 function createPortal$1(children, containerInfo, implementation) { 1540 var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; 1541 try { 1542 testStringCoercion(key); 1543 var JSCompiler_inline_result = false;
1544 } catch (e) { 1545 JSCompiler_inline_result = true; 1546 } 1547 JSCompiler_inline_result && (console.error( 1548 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", 1549 "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object" 1550 ), testStringCoercion(key)); 1551 return { 1552 $$typeof: REACT_PORTAL_TYPE, 1553 key: null == key ? null : "" + key, 1554 children, 1555 containerInfo, 1556 implementation 1557 }; 1558 } 1559 function getCrossOriginStringAs(as, input) { 1560 if ("font" === as) return ""; 1561 if ("string" === typeof input) 1562 return "use-credentials" === input ? input : ""; 1563 } 1564 function getValueDescriptorExpectingObjectForWarning(thing) { 1565 return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"'; 1566 } 1567 function getValueDescriptorExpectingEnumForWarning(thing) { 1568 return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"'; 1569 } 1570 function resolveDispatcher() { 1571 var dispatcher = ReactSharedInternals.H; 1572 null === dispatcher && console.error( 1573 "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." 1574 ); 1575 return dispatcher; 1576 } 1577 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 1578 var React = requireReact(), Internals = { 1579 d: { 1580 f: noop, 1581 r: function() { 1582 throw Error( 1583 "Invalid form element. requestFormReset must be passed a form that was rendered by React." 1584 ); 1585 }, 1586 D: noop, 1587 C: noop, 1588 L: noop, 1589 m: noop, 1590 X: noop, 1591 S: noop, 1592 M: noop 1593 }, 1594 p: 0, 1595 findDOMNode: null 1596 }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; 1597 "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error( 1598 "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" 1599 ); 1600 reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals; 1601 reactDom_development.createPortal = function(children, container) { 1602 var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; 1603 if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType) 1604 throw Error("Target container is not a DOM element."); 1605 return createPortal$1(children, container, null, key); 1606 }; 1607 reactDom_development.flushSync = function(fn) { 1608 var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p; 1609 try { 1610 if (ReactSharedInternals.T = null, Internals.p = 2, fn) 1611 return fn(); 1612 } finally { 1613 ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error( 1614 "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task." 1615 ); 1616 } 1617 }; 1618 reactDom_development.preconnect = function(href, options) { 1619 "string" === typeof href && href ? null != options && "object" !== typeof options ? console.error( 1620 "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", 1621 getValueDescriptorExpectingEnumForWarning(options) 1622 ) : null != options && "string" !== typeof options.crossOrigin && console.error( 1623 "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", 1624 getValueDescriptorExpectingObjectForWarning(options.crossOrigin) 1625 ) : console.error( 1626 "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", 1627 getValueDescriptorExpectingObjectForWarning(href) 1628 ); 1629 "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options)); 1630 }; 1631 reactDom_development.prefetchDNS = function(href) { 1632 if ("string" !== typeof href || !href) 1633 console.error( 1634 "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", 1635 getValueDescriptorExpectingObjectForWarning(href) 1636 ); 1637 else if (1 < arguments.length) { 1638 var options = arguments[1]; 1639 "object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error( 1640 "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single str
1640ing argument, `href`.", 1641 getValueDescriptorExpectingEnumForWarning(options) 1642 ) : console.error( 1643 "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", 1644 getValueDescriptorExpectingEnumForWarning(options) 1645 ); 1646 } 1647 "string" === typeof href && Internals.d.D(href); 1648 }; 1649 reactDom_development.preinit = function(href, options) { 1650 "string" === typeof href && href ? null == options || "object" !== typeof options ? console.error( 1651 "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", 1652 getValueDescriptorExpectingEnumForWarning(options) 1653 ) : "style" !== options.as && "script" !== options.as && console.error( 1654 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".', 1655 getValueDescriptorExpectingEnumForWarning(options.as) 1656 ) : console.error( 1657 "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", 1658 getValueDescriptorExpectingObjectForWarning(href) 1659 ); 1660 if ("string" === typeof href && options && "string" === typeof options.as) { 1661 var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0; 1662 "style" === as ? Internals.d.S( 1663 href, 1664 "string" === typeof options.precedence ? options.precedence : void 0, 1665 { 1666 crossOrigin, 1667 integrity, 1668 fetchPriority 1669 } 1670 ) : "script" === as && Internals.d.X(href, { 1671 crossOrigin, 1672 integrity, 1673 fetchPriority, 1674 nonce: "string" === typeof options.nonce ? options.nonce : void 0 1675 }); 1676 } 1677 }; 1678 reactDom_development.preinitModule = function(href, options) { 1679 var encountered = ""; 1680 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 1681 void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + "."); 1682 if (encountered) 1683 console.error( 1684 "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", 1685 encountered 1686 ); 1687 else 1688 switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) { 1689 case "script": 1690 break; 1691 default: 1692 encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error( 1693 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)', 1694 encountered, 1695 href 1696 ); 1697 } 1698 if ("string" === typeof href) 1699 if ("object" === typeof options && null !== options) { 1700 if (null == options.as || "script" === options.as) 1701 encountered = getCrossOriginStringAs( 1702 options.as, 1703 options.crossOrigin 1704 ), Internals.d.M(href, { 1705 crossOrigin: encountered, 1706 integrity: "string" === typeof options.integrity ? options.integrity : void 0, 1707 nonce: "string" === typeof options.nonce ? options.nonce : void 0 1708 }); 1709 } else null == options && Internals.d.M(href); 1710 }; 1711 reactDom_development.preload = function(href, options) { 1712 var encountered = ""; 1713 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 1714 null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + "."); 1715 encountered && console.error( 1716 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s', 1717 encountered 1718 ); 1719 if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) { 1720 encountered = options.as; 1721 var crossOrigin = getCrossOriginStringAs( 1722 encountered, 1723 options.crossOrigin 1724 ); 1725 Internals.d.L(href, encountered, { 1726 crossOrigin, 1727 integrity: "string" === typeof options.integrity ? options.integrity : void 0, 1728 nonce: "string" === typeof options.nonce ? options.nonce : void 0, 1729 type: "string" === typeof options.type ? options.type : void 0, 1730 fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0, 1731 referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0, 1732 imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0, 1733 imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0, 1734 media: "string" === typeof options.media ? options.media : void 0 1735 }); 1736 } 1737 }; 1738 reactDom_development.preloadModule = function(href, options) { 1739 var encountered = ""; 1740 "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + "."); 1741 void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + "."); 1742 encountered && console.error( 1743 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s', 1744 encountered 1745 ); 1746 "string" === typeof href && (options ? (encountered = getCrossOriginStringAs( 1747 options.as, 1748 options.crossOrigin 1749 ), Internals.d.m(href, {
1750 as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0, 1751 crossOrigin: encountered, 1752 integrity: "string" === typeof options.integrity ? options.integrity : void 0 1753 })) : Internals.d.m(href)); 1754 }; 1755 reactDom_development.requestFormReset = function(form) { 1756 Internals.d.r(form); 1757 }; 1758 reactDom_development.unstable_batchedUpdates = function(fn, a) { 1759 return fn(a); 1760 }; 1761 reactDom_development.useFormState = function(action, initialState, permalink) { 1762 return resolveDispatcher().useFormState(action, initialState, permalink); 1763 }; 1764 reactDom_development.useFormStatus = function() { 1765 return resolveDispatcher().useHostTransitionStatus(); 1766 }; 1767 reactDom_development.version = "19.1.0"; 1768 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 1769 })(); 1770 return reactDom_development; 1771 } 1772 var hasRequiredReactDom; 1773 function requireReactDom() { 1774 if (hasRequiredReactDom) return reactDom.exports; 1775 hasRequiredReactDom = 1; 1776 { 1777 reactDom.exports = requireReactDom_development(); 1778 } 1779 return reactDom.exports; 1780 } 1781 var hasRequiredDist; 1782 function requireDist() { 1783 if (hasRequiredDist) return dist; 1784 hasRequiredDist = 1; 1785 (function(exports3) { 1786 Object.defineProperty(exports3, "__esModule", { value: true }); 1787 var e = requireJsxRuntime(), t = requireReact(), o = requireReactDom(); 1788 function n(e2) { 1789 return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 }; 1790 } 1791 function a(e2) { 1792 if (e2 && e2.__esModule) return e2; 1793 var t2 = /* @__PURE__ */ Object.create(null); 1794 return e2 && Object.keys(e2).forEach(function(o2) { 1795 if ("default" !== o2) { 1796 var n2 = Object.getOwnPropertyDescriptor(e2, o2); 1797 Object.defineProperty(t2, o2, n2.get ? n2 : { enumerable: true, get: function() { 1798 return e2[o2]; 1799 } }); 1800 } 1801 }), t2.default = e2, Object.freeze(t2); 1802 } 1803 var r = a(t), i = n(t), l = n(o); 1804 function c(e2, t2) { 1805 void 0 === t2 && (t2 = {}); 1806 var o2 = t2.insertAt; 1807 if (e2 && "undefined" != typeof document) { 1808 var n2 = document.head || document.getElementsByTagName("head")[0], a2 = document.createElement("style"); 1809 a2.type = "text/css", "top" === o2 && n2.firstChild ? n2.insertBefore(a2, n2.firstChild) : n2.appendChild(a2), a2.styleSheet ? a2.styleSheet.cssText = e2 : a2.appendChild(document.createTextNode(e2)); 1810 } 1811 } 1812 c(".bc-padding{padding:1rem}.bc-padding-top{padding-top:1rem}.bc-padding-right{padding-right:1rem}.bc-padding-bottom{padding-bottom:1rem}.bc-padding-left{padding-left:1rem}@media only screen and (max-width:48em){.bc-padding-mobile-top{padding-top:1rem}.bc-padding-mobile-right{padding-right:1rem}.bc-padding-mobile-bottom{padding-bottom:1rem}.bc-padding-mobile-left{padding-left:1rem}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-padding-tablet-top{padding-top:1rem}.bc-padding-tablet-right{padding-right:1rem}.bc-padding-tablet-bottom{padding-bottom:1rem}.bc-padding-tablet-left{padding-left:1rem}}@media only screen and (min-width:62.0625em){.bc-padding-desktop-top{padding-top:1rem}.bc-padding-desktop-right{padding-right:1rem}.bc-padding-desktop-bottom{padding-bottom:1rem}.bc-padding-desktop-left{padding-left:1rem}}.bc-padding-top-2{padding-top:2rem}.bc-padding-right-2{padding-right:2rem}.bc-padding-bottom-2{padding-bottom:2rem}.bc-padding-left-2{padding-left:2rem}@media only screen and (max-width:48em){.bc-padding-mobile-top-2{padding-top:2rem}.bc-padding-mobile-right-2{padding-right:2rem}.bc-padding-mobile-bottom-2{padding-bottom:2rem}.bc-padding-mobile-left-2{padding-left:2rem}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-padding-tablet-top-2{padding-top:2rem}.bc-padding-tablet-right-2{padding-right:2rem}.bc-padding-tablet-bottom-2{padding-bottom:2rem}.bc-padding-tablet-left-2{padding-left:2rem}}
1812@media only screen and (min-width:62.0625em){.bc-padding-desktop-top-2{padding-top:2rem}.bc-padding-desktop-right-2{padding-right:2rem}.bc-padding-desktop-bottom-2{padding-bottom:2rem}.bc-padding-desktop-left-2{padding-left:2rem}}.bc-padding-top-3{padding-top:3rem}.bc-padding-right-3{padding-right:3rem}.bc-padding-bottom-3{padding-bottom:3rem}.bc-padding-left-3{padding-left:3rem}@media only screen and (max-width:48em){.bc-padding-mobile-top-3{padding-top:3rem}.bc-padding-mobile-right-3{padding-right:3rem}.bc-padding-mobile-bottom-3{padding-bottom:3rem}.bc-padding-mobile-left-3{padding-left:3rem}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-padding-tablet-top-3{padding-top:3rem}.bc-padding-tablet-right-3{padding-right:3rem}.bc-padding-tablet-bottom-3{padding-bottom:3rem}.bc-padding-tablet-left-3{padding-left:3rem}}@media only screen and (min-width:62.0625em){.bc-padding-desktop-top-3{padding-top:3rem}.bc-padding-desktop-right-3{padding-right:3rem}.bc-padding-desktop-bottom-3{padding-bottom:3rem}.bc-padding-desktop-left-3{padding-left:3rem}}.bc-padding-top-4{padding-top:4rem}.bc-padding-right-4{padding-right:4rem}.bc-padding-bottom-4{padding-bottom:4rem}.bc-padding-left-4{padding-left:4rem}@media only screen and (max-width:48em){.bc-padding-mobile-top-4{padding-top:4rem}.bc-padding-mobile-right-4{padding-right:4rem}.bc-padding-mobile-bottom-4{padding-bottom:4rem}.bc-padding-mobile-left-4{padding-left:4rem}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-padding-tablet-top-4{padding-top:4rem}.bc-padding-tablet-right-4{padding-right:4rem}.bc-padding-tablet-bottom-4{padding-bottom:4rem}.bc-padding-tablet-left-4{padding-left:4rem}}@media only screen and (min-width:62.0625em){.bc-padding-desktop-top-4{padding-top:4rem}.bc-padding-desktop-right-4{padding-right:4rem}.bc-padding-desktop-bottom-4{padding-bottom:4rem}.bc-padding-desktop-left-4{padding-left:4rem}}.bc-padding-top-5{padding-top:5rem}.bc-padding-right-5{padding-right:5rem}.bc-padding-bottom-5{padding-bottom:5rem}.bc-padding-left-5{padding-left:5rem}@media only screen and (max-width:48em){.bc-padding-mobile-top-5{padding-top:5rem}.bc-padding-mobile-right-5{padding-right:5rem}.bc-padding-mobile-bottom-5{padding-bottom:5rem}.bc-padding-mobile-left-5{padding-left:5rem}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-padding-tablet-top-5{padding-top:5rem}.bc-padding-tablet-right-5{padding-right:5rem}.bc-padding-tablet-bottom-5{padding-bottom:5rem}.bc-padding-tablet-left-5{padding-left:5rem}}@media only screen and (min-width:62.0625em){.bc-padding-desktop-top-5{padding-top:5rem}.bc-padding-desktop-right-5{padding-right:5rem}.bc-padding-desktop-bottom-5{padding-bottom:5rem}.bc-padding-desktop-left-5{padding-left:5rem}}.bc-padding-2{padding:2rem}.bc-padding-3{padding:3rem}.bc-padding-4{padding:4rem}.bc-padding-5{padding:5rem}@keyframes ripple{0%{opacity:.4;transform:scale(1)}20%{opacity:.2;transform:scale(25)}to{opacity:0;transform:scale(100)}}@-moz-keyframes ripple{0%{opacity:.4;transform:scale(1)}20%{opacity:.2;transform:scale(25)}to{opacity:0;transform:scale(100)}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);transform:rotate(0deg)}50%{-moz-transform:rotate(180deg);transform:rotate(180deg)}to{-moz-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spinner{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}50%{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}to{-webkit-transform:rotate(1turn);-moz-transform:rotate(1turn);-o-transform:rotate(1turn);transform:rotate(1turn)}}@media only screen and (max-width:48em){.bc-visually-hidden--mobile{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}.bc-visually-hidden--mobile-down,.bc-visually-hidden--mobile-up{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-visually-hidden--tablet{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}@media only screen and (min-width:48.0625em){.bc-visually-hidden--tablet-up{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}@media only screen and (max-width:62em){.bc-visually-hidden--tablet-down{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}@media only screen and (min-width:62.0625em){.bc-visually-hidden--desktop{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}}.bc-visually-hidden,.bc-visually-hidden--desktop-down,.bc-visually-hidden--desktop-up{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}:root{--bc-primary-color-500:#0e3b6c;--bc-primary-color-400:#082f59;--bc-primary-color-300:#66769b;--bc-primary-color-200:#b1b8cc;--bc-primary-color-100:#d8dbe5;--bc-basic-color-500:#333;--bc-background-color:#fff;--bc-background-color-2:#eee;--bc-background-color-3:#d3d3d3;--bc-dark-background-color-500:#2d2d2d;--bc-dark-background-color-400:#474747;--bc-dark-background-color-300:#606060;--bc-dark-background-color-200:#7a7a7a;--bc-dark-background-color-100:#adadad;--bc-success-color-500:#2bc02b;--bc-success-color-400:#48d648;--bc-success-color-300:#72df72;--bc-success-color-200:#9be99b;--bc-success-color-100:#effbef;--bc-success-color-foreground:#000;--bc-danger-color-500:#c0392b;--bc-danger-color-400:#d65548;--bc-danger-color-300:#df7c72;--bc-danger-color-200:#e9a39b;--bc-danger-color-100:#fbf0ef;--bc-danger-color-foreground:#000;--bc-warning-color-500:#e4d500;--bc-warning-color-400:#fff018;--bc-warning-color-300:#fff34b;--bc-warning-color-200:#fff77e;--bc-warning-color-100:#fffde4;--bc-warning-color-foreground:#000;--bc-input-border-width:1px;--bc-input-padding-size-h:1rem;--bc-input-height:4rem;--bc-input-placeholder-color:#666;--bc-input-font-size:1.17em;--bc-c-action-primary:var(--bc-primary-color-500);--bc-c-action-primary-border:var(--bc-primary-color-500);--bc-c-action-primary-foreground:#fff;--bc-c-action-primary-hover:var(--bc-primary-color-400);--bc-c-action-primary-foreground-hover:#fff;--bc-c-action-primary-foreground-disabled:#666;--bc-c-action-primary-border-disabled:#666;--bc-c-action-primary-background-disabled:var(--bc-primary-color-100);--bc-c-action-secondary:#fff;--bc-c-action-secondary-border:#2d2d2d;--bc-c-action-secondary-foreground:var(--bc-basic-color-500);--bc-c-action-secondary-hover:#fff;--bc-c-action-secondary-foreground-hover:var(--bc-primary-color-500);--bc-c-action-secondary-border-hover:var(--bc-primary-color-500);--bc-c-action-secondary-foreground-disabled:#666;--bc-c-action-secondary-border-disabled:#666;--bc-c-action-secondary-background-disabled:#0000;--bc-c-border-separator:#ccc;--bc-c-border-input:#666;--bc-c-border-active:var(--bc-c-action-primary);--bc-c-text-primary:var(--bc-basic-color-500);--bc-c-text-secondary:#595959;--bc-c-text-primary-disabled:#666;--bc-c-text-secondary-disabled:#999;--bc-c-icon-color:var(--bc-c-text-primary);--bc-c-error-color:var(--bc-danger-color-500);--bc-c-checkbox-focus-background-color:var(--bc-background-color);--bc-border-radius:2px;--bc-border-color-disabled:#a8a8a8;--bc-border-color:#000}"); 1813 var d = function(e2, t2) { 1814 return d = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e3, t3) { 1815 e3.__proto__ = t3; 1816 } || function(e3, t3) { 1817 for (var o2 in t3) Object.prototype.hasOwnProperty.call(t3, o2) && (e3[o2] = t3[o2]); 1818 }, d(e2, t2); 1819 }; 1820 function s(e2, t2) { 1821 if ("function" != typeof t2 && null !== t2) throw new TypeError("Class extends value " + String(t2) + " is not a constructor or null"); 1822 function o2() { 1823 this.constructor = e2; 1824 } 1825 d(e2, t2), e2.prototype = null === t2 ? Object.create(t2) : (o2.prototype = t2.prototype, new o2()); 1826 } 1827 var u = function() { 1828 return u = Object.assign || function(e2) { 1829 for (var t2, o2 = 1, n2 = arguments.length; o2 < n2; o2++) for (var a2 in t2 = arguments[o2]) Object.prototype.hasOwnProperty.call(t2, a2) && (e2[a2] = t2[a2]); 1830 return e2; 1831 }
1831, u.apply(this, arguments); 1832 }; 1833 function _(e2, t2) { 1834 var o2 = {}; 1835 for (var n2 in e2) Object.prototype.hasOwnProperty.call(e2, n2) && t2.indexOf(n2) < 0 && (o2[n2] = e2[n2]); 1836 if (null != e2 && "function" == typeof Object.getOwnPropertySymbols) { 1837 var a2 = 0; 1838 for (n2 = Object.getOwnPropertySymbols(e2); a2 < n2.length; a2++) t2.indexOf(n2[a2]) < 0 && Object.prototype.propertyIsEnumerable.call(e2, n2[a2]) && (o2[n2[a2]] = e2[n2[a2]]); 1839 } 1840 return o2; 1841 } 1842 function m(e2, t2, o2, n2) { 1843 return new (o2 || (o2 = Promise))(function(a2, r2) { 1844 function i2(e3) { 1845 try { 1846 c2(n2.next(e3)); 1847 } catch (e4) { 1848 r2(e4); 1849 } 1850 } 1851 function l2(e3) { 1852 try { 1853 c2(n2.throw(e3)); 1854 } catch (e4) { 1855 r2(e4); 1856 } 1857 } 1858 function c2(e3) { 1859 var t3; 1860 e3.done ? a2(e3.value) : (t3 = e3.value, t3 instanceof o2 ? t3 : new o2(function(e4) { 1861 e4(t3); 1862 })).then(i2, l2); 1863 } 1864 c2((n2 = n2.apply(e2, [])).next()); 1865 }); 1866 } 1867 function p(e2, t2) { 1868 var o2, n2, a2, r2, i2 = { label: 0, sent: function() { 1869 if (1 & a2[0]) throw a2[1]; 1870 return a2[1]; 1871 }, trys: [], ops: [] }; 1872 return r2 = { next: l2(0), throw: l2(1), return: l2(2) }, "function" == typeof Symbol && (r2[Symbol.iterator] = function() { 1873 return this; 1874 }), r2; 1875 function l2(l3) { 1876 return function(c2) { 1877 return function(l4) { 1878 if (o2) throw new TypeError("Generator is already executing."); 1879 for (; r2 && (r2 = 0, l4[0] && (i2 = 0)), i2; ) try { 1880 if (o2 = 1, n2 && (a2 = 2 & l4[0] ? n2.return : l4[0] ? n2.throw || ((a2 = n2.return) && a2.call(n2), 0) : n2.next) && !(a2 = a2.call(n2, l4[1])).done) return a2; 1881 switch (n2 = 0, a2 && (l4 = [2 & l4[0], a2.value]), l4[0]) { 1882 case 0: 1883 case 1: 1884 a2 = l4; 1885 break; 1886 case 4: 1887 return i2.label++, { value: l4[1], done: false }; 1888 case 5: 1889 i2.label++, n2 = l4[1], l4 = [0]; 1890 continue; 1891 case 7: 1892 l4 = i2.ops.pop(), i2.trys.pop(); 1893 continue; 1894 default: 1895 if (!(a2 = i2.trys, (a2 = a2.length > 0 && a2[a2.length - 1]) || 6 !== l4[0] && 2 !== l4[0])) { 1896 i2 = 0; 1897 continue; 1898 } 1899 if (3 === l4[0] && (!a2 || l4[1] > a2[0] && l4[1] < a2[3])) { 1900 i2.label = l4[1]; 1901 break; 1902 } 1903 if (6 === l4[0] && i2.label < a2[1]) { 1904 i2.label = a2[1], a2 = l4; 1905 break; 1906 } 1907 if (a2 && i2.label < a2[2]) { 1908 i2.label = a2[2], i2.ops.push(l4); 1909 break; 1910 } 1911 a2[2] && i2.ops.pop(), i2.trys.pop(); 1912 continue; 1913 } 1914 l4 = t2.call(e2, i2); 1915 } catch (e3) { 1916 l4 = [6, e3], n2 = 0; 1917 } finally { 1918 o2 = a2 = 0; 1919 } 1920 if (5 & l4[0]) throw l4[1]; 1921 return { value: l4[0] ? l4[1] : void 0, done: true }; 1922 }([l3, c2]); 1923 }; 1924 } 1925 } 1926 function b(e2, t2, o2) { 1927 if (o2 || 2 === arguments.length) for (var n2, a2 = 0, r2 = t2.length; a2 < r2; a2++) !n2 && a2 in t2 || (n2 || (n2 = Array.prototype.slice.call(t2, 0, a2)), n2[a2] = t2[a2]); 1928 return e2.concat(n2 || Array.prototype.slice.call(t2)); 1929 } 1930 "function" == typeof SuppressedError && SuppressedError; 1931 var h = "bc"; 1932 c(".bc-container{margin-left:auto;margin-right:auto;width:100%}"); 1933 var f = t.forwardRef(function(t2, o2) { 1934 var n2 = t2.as, a2 = _(t2, ["as"]), r2 = n2 || "div", i2 = ["".concat(h, "-container")]; 1935 return a2.className && i2.push(a2.className), e.jsx(r2, u({}, a2, { className: i2.join(" "), id: a2.id, ref: o2 }, { children: a2.children })); 1936 }); 1937 c(".bc-row{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.bc-row.centered{justify-content:center}.bc-row>*{flex-shrink:0;max-width:100%;width:100%}"); 1938 var g = t.forwardRef(function(t2, o2) { 1939 var n2 = t2.as, a2 = t2.children, r2 = t2.centered, i2 = _(t2, ["as", "children", "centered"]), l2 = n2 || "div", c2 = ["".concat(h, "-row"), "".concat(h, "-content-row")]; 1940 return r2 && c2.push("centered"), i2.className && c2.push(i2.className), e.jsx(l2, u({}, i2, { className: c2.join(" "), ref: o2, id: i2.id }, { children: a2 })); 1941 }); 1942 c(".bc-col{flex:1 0}@media (min-width:0){.bc-col.col-xs-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-xs-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-xs-3{flex:0 0 auto;width:25%}.bc-col.col-xs-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-xs-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-xs-6{flex:0 0 auto;width:50%}.bc-col.col-xs-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-xs-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-xs-9{flex:0 0 auto;width:75%}.bc-col.col-xs-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-xs-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-xs-12{flex:0 0 auto;width:100%}.bc-col.col-xs-auto{flex:0 0 auto;width:auto}.bc-col.col-xs{flex:1 1 auto;width:auto}}@media (min-width:576px){.bc-col.col-sm-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-sm-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-sm-3{flex:0 0 auto;width:25%}.bc-col.col-sm-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-sm-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-sm-6{flex:0 0 auto;width:50%}.bc-col.col-sm-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-sm-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-sm-9{flex:0 0 auto;width:75%}.bc-col.col-sm-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-sm-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-sm-12{flex:0 0 auto;width:100%}.bc-col.col-sm-auto{flex:0 0 auto;width:auto}.bc-col.col-sm{flex:1 1 auto;width:auto}}@media (min-width:768px){.bc-col.col-md-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-md-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-md-3{flex:0 0 auto;width:25%}.bc-col.col-md-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-md-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-md-6{flex:0 0 auto;width:50%}.bc-col.col-md-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-md-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-md-9{flex:0 0 auto;width:75%}.bc-col.col-md-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-md-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-md-12{flex:0 0 auto;width:100%}.bc-col.col-md-auto{flex:0 0 auto;width:auto}.bc-col.col-md{flex:1 1 auto;width:auto}}@media (min-width:992px){.bc-col.col-lg-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-lg-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-lg-3{flex:0 0 auto;width:25%}.bc-col.col-lg-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-lg-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-lg-6{flex:0 0 auto;width:50%}.bc-col.col-lg-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-lg-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-lg-9{flex:0 0 auto;width:75%}.bc-col.col-lg-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-lg-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-lg-12{flex:0 0 auto;width:100%}.bc-col.col-lg-auto{flex:0 0 auto;width:auto}.bc-col.col-lg{flex:1 1 auto;width:auto}}@media (min-width:1200px){.bc-col.col-xl-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-xl-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-xl-3{flex:0 0 auto;width:25%}.bc-col.col-xl-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-xl-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-xl-6{flex:0 0 auto;width:50%}.bc-col.col-xl-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-xl-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-xl-9{flex:0 0 auto;width:75%}.bc-col.col-xl-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-xl-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-xl-12{flex:0 0 auto;width:100%}.bc-col.col-xl-auto{flex:0 0 auto;width:auto}.bc-col.col-xl{flex:1 1 auto;width:auto}}@media (min-width:1400px){.bc-col.col-xxl-1{flex:0 0 auto;width:8.3333333333%}.bc-col.col-xxl-2{flex:0 0 auto;width:16.6666666667%}.bc-col.col-xxl-3{flex:0 0 auto;width:25%}.bc-col.col-xxl-4{flex:0 0 auto;width:33.3333333333%}.bc-col.col-xxl-5{flex:0 0 auto;width:41.6666666667%}.bc-col.col-xxl-6{flex:0 0 auto;width:50%}.bc-col.col-xxl-7{flex:0 0 auto;width:58.3333333333%}.bc-col.col-xxl-8{flex:0 0 auto;width:66.6666666667%}.bc-col.col-xxl-9{flex:0 0 auto;width:75%}.bc-col.col-xxl-10{flex:0 0 auto;width:83.3333333333%}.bc-col.col-xxl-11{flex:0 0 auto;width:91.6666666667%}.bc-col.col-xxl-12{flex:0 0 auto;width:100%}.bc-col.col-xxl-auto{flex:0 0 auto;width:auto}.bc-col.col-xxl{flex:1 1 auto;width:auto}}@media (min-width:0){.bc-col.offset-xs-1{margin-left:8.3333333333%}.bc-col.offset-xs-2{margin-left:16.6666666667%}.bc-col.offset-xs-3{margin-left:25%}.bc-col.offset-xs-4{margin-left:33.3333333333%}.bc-col.offset-xs-5{margin-left:41.6666666667%}.bc-col.offset-xs-6{margin-left:50%}
1942.bc-col.offset-xs-7{margin-left:58.3333333333%}.bc-col.offset-xs-8{margin-left:66.6666666667%}.bc-col.offset-xs-9{margin-left:75%}.bc-col.offset-xs-10{margin-left:83.3333333333%}.bc-col.offset-xs-11{margin-left:91.6666666667%}.bc-col.offset-xs-12{margin-left:100%}}@media (min-width:576px){.bc-col.offset-sm-1{margin-left:8.3333333333%}.bc-col.offset-sm-2{margin-left:16.6666666667%}.bc-col.offset-sm-3{margin-left:25%}.bc-col.offset-sm-4{margin-left:33.3333333333%}.bc-col.offset-sm-5{margin-left:41.6666666667%}.bc-col.offset-sm-6{margin-left:50%}.bc-col.offset-sm-7{margin-left:58.3333333333%}.bc-col.offset-sm-8{margin-left:66.6666666667%}.bc-col.offset-sm-9{margin-left:75%}.bc-col.offset-sm-10{margin-left:83.3333333333%}.bc-col.offset-sm-11{margin-left:91.6666666667%}.bc-col.offset-sm-12{margin-left:100%}}@media (min-width:768px){.bc-col.offset-md-1{margin-left:8.3333333333%}.bc-col.offset-md-2{margin-left:16.6666666667%}.bc-col.offset-md-3{margin-left:25%}.bc-col.offset-md-4{margin-left:33.3333333333%}.bc-col.offset-md-5{margin-left:41.6666666667%}.bc-col.offset-md-6{margin-left:50%}.bc-col.offset-md-7{margin-left:58.3333333333%}.bc-col.offset-md-8{margin-left:66.6666666667%}.bc-col.offset-md-9{margin-left:75%}.bc-col.offset-md-10{margin-left:83.3333333333%}.bc-col.offset-md-11{margin-left:91.6666666667%}.bc-col.offset-md-12{margin-left:100%}}@media (min-width:992px){.bc-col.offset-lg-1{margin-left:8.3333333333%}.bc-col.offset-lg-2{margin-left:16.6666666667%}.bc-col.offset-lg-3{margin-left:25%}.bc-col.offset-lg-4{margin-left:33.3333333333%}.bc-col.offset-lg-5{margin-left:41.6666666667%}.bc-col.offset-lg-6{margin-left:50%}.bc-col.offset-lg-7{margin-left:58.3333333333%}.bc-col.offset-lg-8{margin-left:66.6666666667%}.bc-col.offset-lg-9{margin-left:75%}.bc-col.offset-lg-10{margin-left:83.3333333333%}.bc-col.offset-lg-11{margin-left:91.6666666667%}.bc-col.offset-lg-12{margin-left:100%}}@media (min-width:1200px){.bc-col.offset-xl-1{margin-left:8.3333333333%}.bc-col.offset-xl-2{margin-left:16.6666666667%}.bc-col.offset-xl-3{margin-left:25%}.bc-col.offset-xl-4{margin-left:33.3333333333%}.bc-col.offset-xl-5{margin-left:41.6666666667%}.bc-col.offset-xl-6{margin-left:50%}.bc-col.offset-xl-7{margin-left:58.3333333333%}.bc-col.offset-xl-8{margin-left:66.6666666667%}.bc-col.offset-xl-9{margin-left:75%}.bc-col.offset-xl-10{margin-left:83.3333333333%}.bc-col.offset-xl-11{margin-left:91.6666666667%}.bc-col.offset-xl-12{margin-left:100%}}@media (min-width:1400px){.bc-col.offset-xxl-1{margin-left:8.3333333333%}.bc-col.offset-xxl-2{margin-left:16.6666666667%}.bc-col.offset-xxl-3{margin-left:25%}.bc-col.offset-xxl-4{margin-left:33.3333333333%}.bc-col.offset-xxl-5{margin-left:41.6666666667%}.bc-col.offset-xxl-6{margin-left:50%}.bc-col.offset-xxl-7{margin-left:58.3333333333%}.bc-col.offset-xxl-8{margin-left:66.6666666667%}.bc-col.offset-xxl-9{margin-left:75%}.bc-col.offset-xxl-10{margin-left:83.3333333333%}.bc-col.offset-xxl-11{margin-left:91.6666666667%}.bc-col.offset-xxl-12{margin-left:100%}}@media (min-width:0){.bc-col.order-xs-1{order:1}.bc-col.order-xs-2{order:2}.bc-col.order-xs-3{order:3}.bc-col.order-xs-4{order:4}.bc-col.order-xs-5{order:5}.bc-col.order-xs-6{order:6}.bc-col.order-xs-7{order:7}.bc-col.order-xs-8{order:8}.bc-col.order-xs-9{order:9}.bc-col.order-xs-10{order:10}.bc-col.order-xs-11{order:11}.bc-col.order-xs-12{order:12}.bc-col.order-xs-first{order:-1}.bc-col.order-xs-last{order:12}}@media (min-width:576px){.bc-col.order-sm-1{order:1}.bc-col.order-sm-2{order:2}.bc-col.order-sm-3{order:3}.bc-col.order-sm-4{order:4}.bc-col.order-sm-5{order:5}.bc-col.order-sm-6{order:6}.bc-col.order-sm-7{order:7}.bc-col.order-sm-8{order:8}.bc-col.order-sm-9{order:9}.bc-col.order-sm-10{order:10}.bc-col.order-sm-11{order:11}.bc-col.order-sm-12{order:12}.bc-col.order-sm-first{order:-1}.bc-col.order-sm-last{order:12}}@media (min-width:768px){.bc-col.order-md-1{order:1}.bc-col.order-md-2{order:2}.bc-col.order-md-3{order:3}.bc-col.order-md-4{order:4}.bc-col.order-md-5{order:5}.bc-col.order-md-6{order:6}.bc-col.order-md-7{order:7}.bc-col.order-md-8{order:8}.bc-col.order-md-9{order:9}.bc-col.order-md-10{order:10}.bc-col.order-md-11{order:11}.bc-col.order-md-12{order:12}.bc-col.order-md-first{order:-1}.bc-col.order-md-last{order:12}}@media (min-width:992px){.bc-col.order-lg-1{order:1}.bc-col.order-lg-2{order:2}.bc-col.order-lg-3{order:3}.bc-col.order-lg-4{order:4}.bc-col.order-lg-5{order:5}.bc-col.order-lg-6{order:6}.bc-col.order-lg-7{order:7}.bc-col.order-lg-8{order:8}.bc-col.order-lg-9{order:9}.bc-col.order-lg-10{order:10}.bc-col.order-lg-11{order:11}.bc-col.order-lg-12{order:12}.bc-col.order-lg-first{order:-1}.bc-col.order-lg-last{order:12}}@media (min-width:1200px){.bc-col.order-xl-1{order:1}.bc-col.order-xl-2{order:2}.bc-col.order-xl-3{order:3}.bc-col.order-xl-4{order:4}.bc-col.order-xl-5{order:5}.bc-col.order-xl-6{order:6}.bc-col.order-xl-7{order:7}.bc-col.order-xl-8{order:8}.bc-col.order-xl-9{order:9}.bc-col.order-xl-10{order:10}.bc-col.order-xl-11{order:11}.bc-col.order-xl-12{order:12}.bc-col.order-xl-first{order:-1}.bc-col.order-xl-last{order:12}}@media (min-width:1400px){.bc-col.order-xxl-1{order:1}.bc-col.order-xxl-2{order:2}.bc-col.order-xxl-3{order:3}.bc-col.order-xxl-4{order:4}.bc-col.order-xxl-5{order:5}.bc-col.order-xxl-6{order:6}.bc-col.order-xxl-7{order:7}.bc-col.order-xxl-8{order:8}.bc-col.order-xxl-9{order:9}.bc-col.order-xxl-10{order:10}.bc-col.order-xxl-11{order:11}.bc-col.order-xxl-12{order:12}.bc-col.order-xxl-first{order:-1}.bc-col.order-xxl-last{order:12}}@media (min-width:0){.bc-col.display-xs-block{display:block}.bc-col.display-xs-none{display:none}}@media (min-width:576px){.bc-col.display-sm-block{display:block}.bc-col.display-sm-none{display:none}}@media (min-width:768px){.bc-col.display-md-block{display:block}.bc-col.display-md-none{display:none}}@media (min-width:992px){.bc-col.display-lg-block{display:block}.bc-col.display-lg-none{display:none}}@media (min-width:1200px){.bc-col.display-xl-block{display:block}.bc-col.display-xl-none{display:none}}@media (min-width:1400px){.bc-col.display-xxl-block{display:block}.bc-col.display-xxl-none{display:none}}"); 1943 var v = function(e2, t2) { 1944 if (!t2) return ""; 1945 if ("boolean" == typeof t2 && t2) return "col-" + e2; 1946 if ("number" == typeof t2 || "string" == typeof t2) return "col-" + e2 + "-" + t2; 1947 var o2 = []; 1948 return t2.width && ("boolean" != typeof t2.width ? o2.push("col-" + e2 + "-" + t2.width) : t2.width && o2.push("col-" + e2)), t2.offset && o2.push("offset-" + e2 + "-" + t2.offset), t2.order && o2.push("order-" + e2 + "-" + t2.order), t2.display && o2.push("display-" + e2 + "-" + t2.display), o2.join(" "); 1949 }, x = function(t2) { 1950 var o2 = t2.as, n2 = t2.xs, a2 = t2.sm, r2 = t2.md, i2 = t2.lg, l2 = t2.xl, c2 = t2.xxl, d2 = _(t2, ["as", "xs", "sm", "md", "lg", "xl", "xxl"]), s2 = ["".concat(h, "-col")], m2 = o2 || "div"; 1951 return n2 && s2.push(v("xs", n2)), a2 && s2.push(v("sm", a2)), r2 && s2.push(v("md", r2)), i2 && s2.push(v("lg", i2)), l2 && s2.push(v("xl", l2)), c2 && s2.push(v("xxl", c2)), d2.className && s2.push(d2.className), e.jsx(m2, u({}, d2, { className: s2.join(" "), id: d2.id }, { children: d2.children })); 1952 }, y = "header-module__base_9322_KmwG5"; 1953 c(""); 1954 var k = "title-module__base_9322_sReYg"; 1955 c(""); 1956 var w = function(o2) { 1957 var n2, a2 = _(o2, []), r2 = "h".concat(null !== (n2 = a2.level) && void 0 !== n2 ? n2 : 1), i2 = ["".concat(h, "-heading")]; 1958 return i2.push("".concat(h, "-heading--").concat(r2)), a2.className && i2.push(a2.className), t.createElement(r2, { className: i2.join(" ") }, e.jsxs(e.Fragment, { children: [a2.text, a2.children] })); 1959 }, N = "body-module__base_9322_L1o3X"; 1960 c(""); 1961 var C = "footer-module__base_9322_O3AJu"; 1962 c(""); 1963 var j = "lead-module__base_9322_t0cG-"; 1964 c(""); 1965 var T = "section-module__base_9322_8iLCV"; 1966 c(""); 1967 var P = "row-module__base_9322_AYfkO"; 1968 c(""); 1969 var S = "col-module__base_9322_1iLo-"; 1970 c(""); 1971 var D = "content-module__base_9322_OAq3Z"; 1972 c(""); 1973 var A = Object.assign(function(t2) { 1974 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "article", l2 = ["".concat(h, "-content"), D]; 1975 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1976 }, { Header: function(t2) { 1977 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "header", l2 = ["".concat(h, "-content-header"), y]; 1978 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1979 }, Title: function(t2) { 1980 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || w, l2 = ["".concat(h, "-content-title"), k]; 1981 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1982 }, Body: function(t2) { 1983 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-content-body"), N]; 1984 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1985 }, Footer: function(t2) { 1986 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "footer", l2 = ["".concat(h, "-content-footer"), C]; 1987 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1988 }, Lead: function(t2) { 1989 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-content-lead"), j]; 1990 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1991 }, Section: function(t2) { 1992 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-content-section"), T]; 1993 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1994 }, Row: function(t2) { 1995 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-content-row"), P]; 1996 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 1997 }, Col: function(t2) { 1998 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-content-col"), S]; 1999 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2000 } }), E = "page-module__base_9322_RhsUn"; 2001 c(""); 2002 var R = "row-module__base_9322_dlW75"; 2003 c(""); 2004 var I = "col-module__base_9322_TSon2"; 2005 c(""); 2006 var M = Object.assign(function(t2) { 2007 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "section", l2 = ["".concat(h, "-page"), E]; 2008 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2009 }, { Row: function(t2) { 2010 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-page-row"), R]; 2011 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2012 }, Col: function(t2) { 2013 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-page-col"), I]; 2014 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2015 } }), z = "block-module__base_9322_zVjpx"; 2016 c(""); 2017 var L = "title-module__base_9322_OLZPv"; 2018 c(""); 2019 var F = "description-module__base_9322_d0yLo"; 2020 c(""); 2021 var O = "item-module__base_9322_JbLon"; 2022 c(""); 2023 var B = Object.assign(function(t2) { 2024 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-block"), z]; 2025 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2026 }, { Title: function(t2) { 2027 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || w, l2 = ["".concat(h, "-block-title"), L]; 2028 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2029 }, Description: function(t2) { 2030 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-block-description"), F]; 2031 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2032 }, Item: function(t2) { 2033 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = _(t2, ["as", "children", "className"]), i2 = o2 || "div", l2 = ["".concat(h, "-block-item"), O]; 2034 return a2 && l2.push(a2), e.jsx(i2, u({}, r2, { className: l2.join(" ") }, { children: n2 })); 2035 } }), H = { Content: A, Page: M, Block: B }; 2036 function V(e2) { 2037 var t2 = e2.children, o2 = e2.target, n2 = r.useState(false), a2 = n2[0], i2 = n2[1]; 2038 return r.useEffect(function() { 2039 i2(true); 2040 }, []), a2 ? l.default.createPortal(t2, null != o2 ? o2 : document.body) : null; 2041 } 2042 var G = { base: "spinner-module__base_9322_slpUx", "spinner-spin": "spinner-module__spinner-spin_9322_LDqgA", "--display-overlay": "spinner-module__--display-overlay_9322_sTzzQ", "spinner-spin-overlay": "spinner-module__spinner-spin-overlay_9322_g7ZLR", "style--classic": "spinner-module__style--classic_9322_kvVRf", "style--full": "spinner-module__style--full_9322_KLWgp", "variant--secondary": "spinner-module__variant--secondary_9322_-7m-c", "style--double": "spinner-module__style--double_9322_EJhIv", "animation-function--linear": "spinner-module__animation-function--linear_9322_iqDYe", "animation-function--ease": "spinner-module__animation-function--ease_9322_2HRIS", "size--xsmall": "spinner-module__size--xsmall_9322_1dUcH", "size--small": "spinner-module__size--small_9322_bXS8J", "size--medium": "spinner-module__size--medium_9322_MTOT-", "size--large": "spinner-module__size--large_9322_aM0Ev", "size--xlarge": "spinner-module__size--xlarge_9322_rPZha" }; 2043 function U(o2) { 2044 var n2 = o2.isOverlay, a2 = void 0 !== n2 && n2, r2 = o2.style, i2 = void 0 === r2 ? "classic" : r2, l2 = o2.size, c2 = void 0 === l2 ? "small" : l2, d2 = o2.variant, s2 = void 0 === d2 ? "primary" : d2, u2 = o2.animationFunction, m2 = void 0 === u2 ? "linear" : u2, p2 = _(o2, ["isOverlay", "style", "size", "variant", "animationFunction"]), b2 = a2 ? V : t.Fragment, f2 = ["".concat(h, "-spinner ").concat(G.base)]; 2045 return f2.push("".concat(h, "-spinner--style-").concat(i2, " ").concat(G["style--".concat(i2)])), f2.push("".concat(h, "-spinner--variant-").concat(s2, " ").concat(G["variant--".concat(s2)])), f2.push("".concat(h, "-spinner--size-").concat(c2, " ").concat(G["size--".concat(c2)])), f2.push("".concat(h, "-spinner--animation-function-").concat(m2, "\n ").concat(G["animation-function--".concat(m2)])), a2 && f2.push("".concat(h, "-spinner--display-overlay ").concat(G["--display-overlay"])), p2.className && f2.push(p2.className), e.jsx(b2, { children: e.jsx("div", { className: f2.join(" "), id: p2.id }) }); 2046 } 2047 c("@keyframes spinner-module__spinner-spin_9322_LDqgA{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spinner-module__spinner-spin-overlay_9322_g7ZLR{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.spinner-module__base_9322_slpUx{animation:spinner-module__spinner-spin_9322_LDqgA 1.5s ease infinite;height:50px;width:50px}.spinner-module__base_9322_slpUx.spinner-module__--display-overlay_9322_sTzzQ{animation:spinner-module__spinner-spin-overlay_9322_g7ZLR 1.5s ease infinite;display:block;left:50%;position:fixed;top:50%;transform:
2047translate(-50px,-50px)}.spinner-module__base_9322_slpUx.spinner-module__style--classic_9322_kvVRf{border:4px solid var(--bc-primary-color-100);border-radius:50%;border-top-color:var(--bc-primary-color-500)}.spinner-module__base_9322_slpUx.spinner-module__style--full_9322_KLWgp{border:4px solid var(--bc-primary-color-500);border-radius:50%;border-top-color:var(--bc-primary-color-100)}.spinner-module__base_9322_slpUx.spinner-module__variant--secondary_9322_-7m-c.spinner-module__style--classic_9322_kvVRf{border-color:#fff;border-top-color:var(--bc-primary-color-500)}.spinner-module__base_9322_slpUx.spinner-module__variant--secondary_9322_-7m-c.spinner-module__style--full_9322_KLWgp{border-color:var(--bc-primary-color-500);border-top-color:#fff}.spinner-module__base_9322_slpUx.spinner-module__variant--secondary_9322_-7m-c.spinner-module__style--double_9322_EJhIv{border-color:var(--bc-primary-color-500);border-bottom-color:#fff;border-top-color:#fff}.spinner-module__base_9322_slpUx.spinner-module__animation-function--linear_9322_iqDYe{animation-timing-function:linear}.spinner-module__base_9322_slpUx.spinner-module__animation-function--ease_9322_2HRIS{animation-timing-function:ease}.spinner-module__base_9322_slpUx.spinner-module__size--xsmall_9322_1dUcH{height:25px;width:25px}.spinner-module__base_9322_slpUx.spinner-module__size--small_9322_bXS8J{height:50px;width:50px}.spinner-module__base_9322_slpUx.spinner-module__size--medium_9322_MTOT-{height:100px;width:100px}.spinner-module__base_9322_slpUx.spinner-module__size--large_9322_aM0Ev{height:150px;width:150px}.spinner-module__base_9322_slpUx.spinner-module__size--xlarge_9322_rPZha{height:200px;width:200px}"); 2048 var K = { base: "button-module__base_9322_L-zrA", "status--primary": "button-module__status--primary_9322_yaJCb", "status--secondary": "button-module__status--secondary_9322_6XEH4", "appearance--link": "button-module__appearance--link_9322_94ddR", "theme--dark": "button-module__theme--dark_9322_CF1tH", "appearance--ghost": "button-module__appearance--ghost_9322_dxd-F", "appearance--icon": "button-module__appearance--icon_9322_ZtJ4j", spinner: "button-module__spinner_9322_2xPbf" }; 2049 c(".button-module__base_9322_L-zrA{align-items:center;background-color:#fff;border:.125rem solid var(--bc-c-action-primary);border-radius:var(--bc-border-radius);color:var(--bc-c-text-primary);cursor:pointer;display:inline-flex;font-size:inherit;justify-content:center;margin:0;padding:1.25rem 1.5rem;transition:border-color .1s ease-in-out,color .1s ease-in-out,background-color .1s ease-in-out}.button-module__base_9322_L-zrA:focus,.button-module__base_9322_L-zrA:hover{background-color:#e1e1e1;border-color:var(--bc-c-action-primary);color:var(--bc-c-action-primary-foreground)}.button-module__base_9322_L-zrA[aria-disabled=true],.button-module__base_9322_L-zrA[disabled]{background-color:var(--bc-c-action-primary-background-disabled);border-color:var(--bc-c-action-primary-border-disabled);color:var(--bc-c-action-primary-foreground-disabled);cursor:not-allowed}.button-module__base_9322_L-zrA[readonly]{cursor:not-allowed}.button-module__base_9322_L-zrA.button-module__status--primary_9322_yaJCb{background-color:var(--bc-c-action-primary);border-color:var(--bc-c-action-primary-border);color:var(--bc-c-action-primary-foreground)}.button-module__base_9322_L-zrA.button-module__status--primary_9322_yaJCb:focus,.button-module__base_9322_L-zrA.button-module__status--primary_9322_yaJCb:hover{background-color:var(--bc-c-action-primary-hover);border-color:var(--bc-c-action-primary-hover);color:var(--bc-c-action-primary-foreground);outline:2px solid var(--bc-c-action-primary-hover)}.button-module__base_9322_L-zrA.button-module__status--primary_9322_yaJCb[aria-disabled=true],.button-module__base_9322_L-zrA.button-module__status--primary_9322_yaJCb[disabled]{background-color:var(--bc-primary-color-100);border-color:var(--bc-primary-color-100);color:#fff}.button-module__base_9322_L-zrA.button-module__status--secondary_9322_6XEH4{background-color:var(--bc-c-action-secondary);border-color:var(--bc-c-action-secondary-border);color:var(--bc-c-action-secondary-foreground)}.button-module__base_9322_L-zrA.button-module__status--secondary_9322_6XEH4:focus,.button-module__base_9322_L-zrA.button-module__status--secondary_9322_6XEH4:hover{background-color:var(--bc-c-action-secondary-hover);border-color:var(--bc-c-action-secondary-border-hover);color:var(--bc-c-action-secondary-foreground-hover);outline:2px solid var(--bc-c-action-primary-hover)}.button-module__base_9322_L-zrA.button-module__status--secondary_9322_6XEH4[aria-disabled=true],.button-module__base_9322_L-zrA.button-module__status--secondary_9322_6XEH4[disabled]{background-color:var(--bc-c-action-secondary-background-disabled);border-color:var(--bc-c-action-secondary-border-disabled);color:var(--bc-c-action-secondary-foreground-disabled)}.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR{align-self:center;background-color:initial;border:none;color:#000;font-family:inherit;font-size:inherit;height:fit-content;margin:0;padding:0;text-decoration:underline}.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR:focus,.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR:hover{background-color:initial;color:#000;outline:1px solid #000}.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR.button-module__theme--dark_9322_CF1tH{color:#fff}.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR.button-module__theme--dark_9322_CF1tH:focus,.button-module__base_9322_L-zrA.button-module__appearance--link_9322_94ddR.button-module__theme--dark_9322_CF1tH:hover{border-color:#fff;color:#fff;outline-color:#fff}.button-module__base_9322_L-zrA.button-module__appearance--ghost_9322_dxd-F{background-color:initial;border:none;color:var(--bc-c-text-primary)}.button-module__base_9322_L-zrA.button-module__appearance--ghost_9322_dxd-F.button-module__theme--dark_9322_CF1tH{color:#fff}.button-module__base_9322_L-zrA.button-module__appearance--ghost_9322_dxd-F.button-module__theme--dark_9322_CF1tH:focus,.button-module__base_9322_L-zrA.button-module__appearance--ghost_9322_dxd-F.button-module__theme--dark_9322_CF1tH:hover{color:var(--bc-c-action-primary-foreground);outline-color:#fff}.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j{background-color:initial;border:none;color:var(--bc-c-text-primary);min-height:auto;padding:.25rem}.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j:focus,.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j:hover{background-color:initial;color:var(--bc-c-text-primary);outline:1px solid var(--bc-c-text-primary)}.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j.button-module__theme--dark_9322_CF1tH{color:#fff}.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j.button-module__theme--dark_9322_CF1tH:focus,.button-module__base_9322_L-zrA.button-module__appearance--icon_9322_ZtJ4j.button-module__theme--dark_9322_CF1tH:hover{border-color:#fff;color:#fff;outline-color:#fff}.button-module__base_9322_L-zrA .button-module__spinner_9322_2xPbf{height:15px;margin:5px 10px 5px -10px;width:15px}"); 2050 var W, Q = t.forwardRef(function(t2, o2) { 2051 var n2 = t2.text, a2 = t2.status, r2 = void 0 === a2 ? "primary" : a2, i2 = t2.appearance, l2 = void 0 === i2 ? "default" : i2, c2 = t2.type, d2 = void 0 === c2 ? "button" : c2, s2 = t2.loading, m2 = void 0 !== s2 && s2, p2 = t2.htmlTitle, b2 = t2.theme, f2 = t2.children, g2 = _(t2, ["text", "status", "appearance", "type", "loading", "htmlTitle", "theme", "children"]), v2 = ["".concat(h, "-content-button ").concat(K.base)]; 2052 return v2.push("".concat(h, "-content-button--").concat(r2), K["status--" + r2]), v2.push("".concat(h, "-content-button--appearance-").concat(l2), K["appearance--" + l2]), b2 && v2.push("".concat(h, "-content-button--theme-").concat(b2)), g2.className && v2.push(g2.className), e.jsxs("button", u({ ref: o2 }, g2, { title: p2, "aria-label": g2["aria-label"], id: g2.id ? "".concat(h, "-content-button-").concat(g2.id) : void 0, className: v2.join(" "), type: d2 }
2052, { children: [m2 && e.jsx(U, { isOverlay: false, style: "classic", size: "xsmall", variant: r2, animationFunction: "linear", className: K.spinner }), null != n2 && "" !== n2 && e.jsx("span", u({ id: g2.id ? "".concat(h, "-content-button-text-").concat(g2.id) : void 0, className: "".concat(h, "-content-button-text") }, { children: n2 })), f2] })); 2053 }); 2054 !function(e2) { 2055 e2.DEFAULT = "ri-remixicon-line", e2.EYE_OPEN = "ri-eye-line", e2.EYE_CLOSED = "ri-eye-close-line"; 2056 }(W || (W = {})); 2057 var q = function(t2) { 2058 var o2 = t2.icon, n2 = void 0 === o2 ? W.DEFAULT : o2, a2 = _(t2, ["icon"]), r2 = ["".concat(h, "-icon")]; 2059 return r2.push(n2), a2.size && r2.push(a2.size), a2.className && r2.push(a2.className), e.jsx("i", { className: r2.join(" "), "aria-hidden": "true" }); 2060 }; 2061 function X(e2) { 2062 return !isNaN(new Date(e2).valueOf()); 2063 } 2064 function Y(e2) { 2065 var t2 = /* @__PURE__ */ new Date(), o2 = e2.split(/\D/g); 2066 return o2.length && 4 !== o2[0].length && t2.setDate(Number.parseInt(o2[0])), o2.length && 4 === o2[0].length && t2.setFullYear(Number.parseInt(o2[0])), o2.length > 1 && t2.setMonth(Number.parseInt(o2[1]) - 1), o2.length > 2 && 4 !== o2[2].length && t2.setDate(Number.parseInt(o2[2])), o2.length > 2 && 4 === o2[2].length && t2.setFullYear(Number.parseInt(o2[2])), t2; 2067 } 2068 function J(e2) { 2069 if (isNaN(e2.getTime())) return ""; 2070 var t2 = e2.getFullYear().toString().padStart(4, "0"), o2 = (e2.getMonth() + 1).toString().padStart(2, "0"), n2 = e2.getDate().toString().padStart(2, "0"); 2071 return "".concat(t2, "-").concat(o2, "-").concat(n2); 2072 } 2073 var Z = { base: "datePicker-module__base_9322_hIHcF", container: "datePicker-module__container_9322_kX5W6", header: "datePicker-module__header_9322_9xoBH", "header-text": "datePicker-module__header-text_9322_xyl0-", "header-months": "datePicker-module__header-months_9322_3NEJM", "header-month": "datePicker-module__header-month_9322_YnZbo", "header-month-button": "datePicker-module__header-month-button_9322_XMr4T", body: "datePicker-module__body_9322_8gh35", "body-header": "datePicker-module__body-header_9322_NkBT0", "body-header-day": "datePicker-module__body-header-day_9322_pWibe", "body-content": "datePicker-module__body-content_9322_QMOrg", days: "datePicker-module__days_9322_vpqVw", disabled: "datePicker-module__disabled_9322_NPdl6", "in-range": "datePicker-module__in-range_9322_oOkUy", selected: "datePicker-module__selected_9322_8CamA", active: "datePicker-module__active_9322_3vYe9", months: "datePicker-module__months_9322_QuMa8", years: "datePicker-module__years_9322_U1RF0", footer: "datePicker-module__footer_9322_WL5zj", "footer-button": "datePicker-module__footer-button_9322_2Os86", error: "datePicker-module__error_9322_ZwBpU", "theme--dark": "datePicker-module__theme--dark_9322_QjBwd" }; 2074 function $(e2, t2, o2) { 2075 var n2 = true; 2076 return t2 || o2 ? (t2 && e2.getTime() < t2.getTime() && (n2 = false), o2 && e2.getTime() > o2.getTime() && (n2 = false), n2) : n2; 2077 } 2078 c(".datePicker-module__base_9322_hIHcF{height:fit-content;width:fit-content}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6{background-color:var(--bc-background-color);box-shadow:0 0 8px 3px #5757573d;min-width:fit-content}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH{color:var(--bc-c-text-primary);min-height:2rem;width:100%}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH .datePicker-module__header-text_9322_xyl0-{color:var(--bc-primary-color-400);font-size:.9em;font-weight:500;padding-top:.5rem;text-align:center;width:100%}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH .datePicker-module__header-months_9322_3NEJM{align-items:center;display:flex;flex-direction:row;justify-content:space-between;min-height:3rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH .datePicker-module__header-months_9322_3NEJM .datePicker-module__header-month_9322_YnZbo{align-items:center;cursor:pointer;display:flex;flex-direction:row;font-size:1.2em;font-weight:600;justify-content:space-between;margin:.5rem auto}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH .datePicker-module__header-months_9322_3NEJM .datePicker-module__header-month-button_9322_XMr4T{align-items:center;background-color:initial;border:none;cursor:pointer;display:flex;flex-direction:row;font-size:large;justify-content:space-between;padding:0}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__header_9322_9xoBH .datePicker-module__header-months_9322_3NEJM .datePicker-module__header-month-button_9322_XMr4T i{margin:.5rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35{width:fit-content}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-header_9322_NkBT0{border-bottom:1px solid #e0e0e0;display:flex;flex-direction:row;justify-content:space-between;padding:0 .5rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-header_9322_NkBT0 .datePicker-module__body-header-day_9322_pWibe{color:var(--bc-c-text-primary);margin:.5rem 0;text-align:center;width:100%}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-header_9322_NkBT0 .datePicker-module__body-header-day_9322_pWibe:last-of-type{color:var(--bc-danger-color-500)}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg{padding:.5rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg:focus-within{outline:1px solid gray}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw{display:grid;grid-template-columns:3rem 3rem 3rem 3rem 3rem 3rem 3rem;row-gap:8px}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div{color:var(--bc-c-text-primary);cursor:pointer;font-weight:500;margin:0 auto;padding:.5rem 0;text-align:center;width:100%}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__disabled_9322_NPdl6{color:var(--bc-c-text-primary-disabled);font-weight:300}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__in-range_9322_oOkUy{background-color:var(--bc-primary-color-200)}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__selected_9322_8CamA,.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div:hover{background-color:var(--bc-primary-color-100);color:#414141}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__active_9322_3vYe9{background-color:var(--bc-primary-color-500);color:var(--bc-c-action-primary-foreground)}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div:focus{outline:none}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__months_9322_QuMa8{color:var(--bc-c-text-primary);display:grid;grid-template-columns:auto auto auto;height:18.9rem;row-gap:8px}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__months_9322_QuMa8 div{cursor:pointer;margin:0 auto;padding:1rem;text-align:center;width:100%}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__months_9322_QuMa8 div.datePicker-module__selected_9322_8CamA,.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__months_9322_QuMa8 div:hover{background-color:var(--bc-primary-color-100);color:#414141}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__months_9322_QuMa8 div.datePicker-module__active_9322_3vYe9{background-color:var(--bc-primary-color-500);color:var(--bc-c-action-primary-foreground)}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__years_9322_U1RF0{color:var(--bc-c-text-primary);display:grid;grid-template-columns:auto auto auto auto;height:18.9rem;overflow-y:scroll;row-gap:8px}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__years_9322_U1RF0 div{cursor:pointer;margin:0 auto;padding:1rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__years_9322_U1RF0 div.datePicker-module__selected_9322_8CamA,.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__years_9322_U1RF0 div:hover{background-color:var(--bc-primary-color-100);color:#414141}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__years_9322_U1RF0 div.datePicker-module__active_9322_3vYe9{background-color:var(--bc-primary-color-500);color:var(--bc-c-action-primary-foreground)}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__footer_9322_WL5zj{border-top:1px solid #e0e0e0;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem}.datePicker-module__base_9322_hIHcF .datePicker-module__container_9322_kX5W6 .datePicker-module__footer_9322_WL5zj .datePicker-module__footer-button_9322_2Os86{padding:1rem}.datePicker-module__base_9322_hIHcF .datePicker-module__error_9322_ZwBpU{color:var(--bc-danger-color-500);display:block}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd{background-color:var(--bc-dark-background-color-500);box-shadow:2px 2px 4px 1px #5a5a5a;color:#fff}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd .datePicker-module__header_9322_9xoBH .datePicker-module__header-text_9322_xyl0-{color:var(--bc-primary-color-100)}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__disabled_9322_NPdl6{color:#d3d3d3}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__in-range_9322_oOkUy{color:#000}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div.datePicker-module__active_9322_3vYe9{color:#fff}.datePicker-module__base_9322_hIHcF.datePicker-module__theme--dark_9322_QjBwd .datePicker-module__body_9322_8gh35 .datePicker-module__body-content_9322_QMOrg.datePicker-module__days_9322_vpqVw div:hover{background-color:var(--bc-primary-color-100);color:#000}"); 2079 var ee = t.createContext({}), te = function(e2, t2) { 2080 var o2; 2081 void 0 === t2 && (t2 = "first"); 2082 var n2 = null === (o2 = e2.current) || void 0 === o2 ? void 0 : o2.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not
2082([tabindex="-1"])'); 2083 (null == n2 ? void 0 : n2.length) && ("number" == typeof t2 && (t2 = Math.min(Math.max(0, t2), n2.length - 1)), "last" === t2 && (t2 = n2.length - 1), "first" === t2 && (t2 = 0), n2[t2].focus()); 2084 }; 2085 function oe(e2, t2, o2) { 2086 clearTimeout(oe.timeoutID); 2087 var n2 = function() { 2088 oe.sum = 0, e2(); 2089 }; 2090 0 === oe.sum && (/* @__PURE__ */ new Date()).getTime() - oe.lastTime > t2 && (oe.lastTime = (/* @__PURE__ */ new Date()).getTime()), oe.sum >= o2 ? n2() : (/* @__PURE__ */ new Date()).getTime() - oe.lastTime < t2 ? (oe.sum += Math.min((/* @__PURE__ */ new Date()).getTime() - oe.lastTime, t2), clearTimeout(oe.timeoutID), oe.timeoutID = setTimeout(n2, t2)) : n2(), oe.lastTime = (/* @__PURE__ */ new Date()).getTime(); 2091 } 2092 oe.sum = 0, oe.timeoutID = void 0, oe.lastTime = (/* @__PURE__ */ new Date()).getTime(); 2093 var ne = function() { 2094 var e2 = null === navigator || void 0 === navigator ? void 0 : navigator.userAgent; 2095 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e2) ? "mobile" : /Windows|Macintosh|Linux/i.test(e2) ? "desktop" : "unknown"; 2096 }; 2097 function ae(e2, t2, o2, n2, a2, r2) { 2098 return m(this, void 0, void 0, function() { 2099 var i2, l2, c2, d2, s2; 2100 return p(this, function(u2) { 2101 switch (u2.label) { 2102 case 0: 2103 return void 0 !== (i2 = a2) && null != i2 || (i2 = { "Content-Type": "application/json" }), window.portalID && (i2.PortalID = window.portalID), window.menypunktID && (i2.MenypunktID = window.menypunktID), window.sprakID && (i2.SprakID = window.sprakID), window.webobjektID && (i2.WebObjektID = window.webobjektID), window.objektID && (i2.ObjektID = window.objektID), (l2 = ne()) && (i2.DeviceType = l2), i2["X-ANTI-CSRF"] = "1", c2 = { method: e2, headers: i2, credentials: "same-origin" }, "post" === e2.toLocaleLowerCase() && (c2.body = JSON.stringify(n2)), r2 && (c2.signal = r2.signal), [4, fetch("".concat(t2).concat(o2), c2)]; 2104 case 1: 2105 return (d2 = u2.sent()).ok ? [4, d2.json()] : [3, 3]; 2106 case 2: 2107 return [2, u2.sent()]; 2108 case 3: 2109 return [4, d2.text()]; 2110 case 4: 2111 return s2 = u2.sent(), [2, { statusCode: d2.status, messages: [], content: s2 }]; 2112 } 2113 }); 2114 }); 2115 } 2116 var re = function(o2) { 2117 var n2 = t.useContext(ee), a2 = n2.year, r2 = n2.setYear, l2 = n2.month, c2 = n2.setMonth, d2 = n2.day, s2 = n2.setDay, _2 = new Date(a2, l2 + 1, 0), m2 = (new Date(a2, l2, 1).getDay() + 6) % 7 + 1, p2 = _2.getDate(), f2 = new Date(a2, l2, 0).getDate(), g2 = i.default.createRef(), v2 = t.useState("string" == typeof o2.date ? 0 : o2.date.getDate() + m2 - 2), x2 = v2[0], y2 = v2[1]; 2118 t.useEffect(function() { 2119 y2(d2 + m2 - 2); 2120 }, [o2.mode, m2, o2.date, o2.rangeStart]), t.useEffect(function() { 2121 var e2; 2122 document.activeElement && (null === (e2 = g2.current) || void 0 === e2 ? void 0 : e2.contains(document.activeElement)) && te(g2, x2); 2123 }, [x2]); 2124 return e.jsxs(e.Fragment, { children: [e.jsx("div", u({ className: "".concat(h, "-datepicker-body-header ").concat(Z["body-header"]) }, { children: ["M", "T", "O", "T", "F", "L", "S"].map(function(t2, o3) { 2125 return e.jsx("div", u({ className: "".concat(h, "-datepicker-body-header-day ").concat(Z["body-header-day"]) }, { children: t2 }), "day-" + o3); 2126 }) })), e.jsx("div", u({ className: "".concat(h, "-datepicker-body-content days ").concat(Z["body-content"], " ").concat(Z.days), onKeyDown: function(e2) { 2127 var t2 = new Date(a2, l2, x2 - (m2 - 1) + 1), n3 = o2.rangeStart && t2.getTime() < new Date(o2.rangeStart).getTime(), i2 = o2.rangeEnd && t2.getTime() > new Date(o2.rangeEnd).getTime(); 2128 switch (e2.key) { 2129 case "ArrowDown": 2130 e2.preventDefault(), x2 <= 34 && y2(x2 + 7); 2131 break; 2132 case "ArrowUp": 2133 e2.preventDefault(), x2 >= 7 && y2(x2 - 7); 2134 break; 2135 case "ArrowLeft": 2136 e2.preventDefault(), x2 > 0 && y2(x2 - 1); 2137 break; 2138 case "ArrowRight": 2139 e2.preventDefault(), x2 < 41 && y2(x2 + 1); 2140 break; 2141 case "Enter": 2142 case " ": 2143 if (e2.preventDefault(), n3 || i2) return; 2144 y2(x2 - (m2 - 1) + 1 + m2 - 2), o2.setValue(t2, true), s2(x2 - (m2 - 1) + 1 + m2 - 2), c2(t2.getMonth()), r2(t2.getFullYear()); 2145 } 2146 }, ref: g2, "aria-live": "polite" }, { children: b([], Array(42), true).map(function(t2, n3) { 2147 var i2 = n3 - (m2 - 1) + 1, d3 = i2; 2148 d3 += d3 > p2 ? -p2 : 0, d3 += d3 < 1 ? f2 : 0; 2149 var _3 = new Date(a2, l2, i2), b2 = $(new Date(a2, l2, i2), o2.date ? new Date(o2.date) : void 0, o2.rangeDate ? new Date(o2.rangeDate) : void 0) || $(new Date(a2, l2, i2), o2.rangeDate ? new Date(o2.rangeDate) : void 0, o2.date ? new Date(o2.date) : void 0), h2 = o2.rangeStart && _3.getTime() < new Date(o2.rangeStart).getTime(), g3 = o2.rangeEnd && _3.getTime() > new Date(o2.rangeEnd).getTime(), v3 = "string" != typeof o2.date && o2.date.getDate() === d3 && i2 > 0 && i2 <= p2; 2150 return e.jsx("div", u({ className: (v3 ? "active " + Z.active : "") + (i2 < 1 || i2 > p2 || h2 || g3 ? " disabled " + Z.disabled : "") + (o2.rangeDate && b2 ? " in-range " + Z["in-range"] : "") + (x2 === n3 ? " selected " + Z.selected : ""), tabIndex: x2 === n3 ? 0 : -1, role: "button", onClick: function() { 2151 y2(i2 + (m2 - 2)), s2(_3.getDate()), c2(_3.getMonth()), r2(_3.getFullYear()), o2.setValue(_3, true); 2152 } }, { children: d3 }), "calenderday-" + n3); 2153 }) }))] }); 2154 }, ie = ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "
2154November", "Desember"], le = function(o2) { 2155 var n2 = t.useContext(ee); 2156 n2.month; 2157 var a2 = n2.setMonth, r2 = i.default.createRef(), l2 = "string" == typeof o2.date ? new Date(o2.date).getMonth() : o2.date.getMonth(); 2158 isNaN(l2) && (l2 = (/* @__PURE__ */ new Date()).getMonth()); 2159 var c2 = t.useState(l2), d2 = c2[0], s2 = c2[1]; 2160 t.useEffect(function() { 2161 var e2; 2162 document.activeElement && (null === (e2 = r2.current) || void 0 === e2 ? void 0 : e2.contains(document.activeElement)) && te(r2, d2); 2163 }, [d2]); 2164 return e.jsx("div", u({ className: "".concat(h, "-datepicker-body-content months ").concat(Z["body-content"], " ").concat(Z.months), onKeyDown: function(e2) { 2165 switch (e2.key) { 2166 case "ArrowDown": 2167 e2.preventDefault(), d2 + 3 < 12 && s2(d2 + 3); 2168 break; 2169 case "ArrowUp": 2170 e2.preventDefault(), d2 >= 3 && s2(d2 - 3); 2171 break; 2172 case "ArrowLeft": 2173 e2.preventDefault(), d2 > 0 && s2(d2 - 1); 2174 break; 2175 case "ArrowRight": 2176 e2.preventDefault(), d2 < 11 && s2(d2 + 1); 2177 break; 2178 case "Enter": 2179 case " ": 2180 e2.preventDefault(), a2(d2), o2.setMode("DAYS"); 2181 } 2182 }, ref: r2 }, { children: ie.map(function(t2, n3) { 2183 return e.jsx("div", u({ className: ("string" != typeof o2.date && o2.date.getMonth() === n3 ? "active " + Z.active : "") + (n3 === d2 ? " selected " + Z.selected : ""), tabIndex: d2 === n3 ? 0 : -1, role: "button", onClick: function() { 2184 a2(n3), s2(n3), o2.setMode("DAYS"); 2185 } }, { children: t2 }), "month-" + t2); 2186 }) })); 2187 }, ce = function(o2) { 2188 var n2 = t.useContext(ee), a2 = n2.year, r2 = n2.setYear, l2 = "string" == typeof o2.date ? new Date(o2.date).getFullYear() - 1900 : o2.date.getFullYear() - 1900; 2189 isNaN(l2) && (l2 = (/* @__PURE__ */ new Date()).getFullYear() - 1900); 2190 var c2 = t.useState(l2), d2 = c2[0], s2 = c2[1], _2 = i.default.useRef(null), m2 = i.default.useRef(null); 2191 t.useEffect(function() { 2192 var e2; 2193 if (_2.current && m2.current) { 2194 var t2 = m2.current, o3 = _2.current, n3 = t2.scrollTop, a3 = n3 + t2.clientHeight, r3 = o3.offsetTop, i2 = r3 + o3.clientHeight; 2195 r3 < n3 ? t2.scrollTop = r3 : i2 > a3 && (t2.scrollTop = i2 - t2.clientHeight); 2196 } 2197 document.activeElement && (null === (e2 = m2.current) || void 0 === e2 ? void 0 : e2.contains(document.activeElement)) && te(m2, d2); 2198 }, [d2]); 2199 return e.jsx("div", u({ className: "".concat(h, "-datepicker-body-content years ").concat(Z["body-content"], " ").concat(Z.years), onKeyDown: function(e2) { 2200 switch (e2.key) { 2201 case "ArrowDown": 2202 d2 + 4 < 300 && s2(d2 + 4); 2203 break; 2204 case "ArrowUp": 2205 d2 >= 3 && s2(d2 - 4); 2206 break; 2207 case "ArrowLeft": 2208 d2 > 0 && s2(d2 - 1); 2209 break; 2210 case "ArrowRight": 2211 d2 + 1 < 300 && s2(d2 + 1); 2212 break; 2213 case "Enter": 2214 case " ": 2215 e2.preventDefault(), o2.setMode("MONTHS"), r2(d2 + 1900); 2216 } 2217 }, ref: m2 }, { children: b([], Array(300), true).map(function(t2, n3) { 2218 return e.jsx("div", u({ tabIndex: d2 === n3 ? 0 : -1, ref: d2 === n3 ? _2 : null, className: (a2 === n3 + 1900 ? "active " + Z.active : "") + (d2 === n3 ? " selected " + Z.selected : ""), role: "button", onClick: function() { 2219 o2.setMode("MONTHS"), r2(n3 + 1900); 2220 } }, { children: 1900 + n3 }), "year-" + n3); 2221 }) })); 2222 }, de = function(t2) { 2223 return e.jsxs("div", u({ className: "".concat(h, "-datepicker-body ").concat(Z.body) }, { children: ["DAYS" === t2.mode && e.jsx(re, { date: t2.date, mode: t2.mode, setMode: t2.setMode, rangeDate: t2.rangeDate, rangeStart: t2.rangeStart, rangeEnd: t2.rangeEnd, setValue: t2.setValue }), "MONTHS" === t2.mode && e.jsx(le, { date: t2.date, mode: t2.mode, setMode: t2.setMode, setValue: t2.setValue }), "YEARS" === t2.mode && e.jsx(ce, { date: t2.date, mode: t2.mode, setMode: t2.setMode, setValue: t2.setValue })] })); 2224 }, se = function(o2) { 2225 var n2, a2, r2 = o2.previousMonthTextAria, i2 = void 0 === r2 ? "Forrige måned" : r2, l2 = o2.nextMonthTextAria, c2 = void 0 === l2 ? "Neste måned" : l2, d2 = _(o2, ["previousMonthTextAria", "nextMonthTextAria"]), s2 = t.useContext(ee), m2 = s2.year, p2 = s2.setYear, b2 = s2.month, f2 = s2.setMonth; 2226 return e.jsxs("div", u({ className: "".concat(h, "-datepicker-header ").concat(Z.header) }, { children: [d2.headerText && e.jsx("div", u({ className: "".concat(h, "-datepicker-header-text ").concat(Z["header-text"]) }, { children: d2.headerText })), "NONE" !== d2.mode && (n2 = function() { 2227 var e2 = new Date(m2, b2 + 1, 1); 2228 f2(e2.getMonth()), 11 === b2 && p2(m2 + 1); 2229 }, a2 = function() { 2230 var e2 = new Date(m2, b2 - 1, 1); 2231 f2(e2.getMonth()), 0 === b2 && p2(m2 - 1); 2232 }, e.jsx("div", u({ className: "".concat(h, "-datepicker-header-months ").concat(Z["header-months"]) }, { children: "YEARS" !== d2.mode && e.jsxs(e.Fragment, { children: ["MONTHS" !== d2.mode && e.jsx("i", { className: "ri-arrow-left-s-line bc-icon ".concat(h, "-datepicker-header-month-button ").concat(Z["header-month-button"]), onClick: a2, "aria-label": i2, role: "button", tabIndex: 0, onKeyDown: function(e2) { 2233 " " !== e2.key && "Enter" !== e2.key || (e2.preventDefault(), a2()); 2234 } }), e.jsxs("div", u({ className: "".concat(h, "-datepicker-header-month ").concat(Z["header-month"]), tabIndex: 0, role: "button", onKeyDown: function(e2) { 2235 "Enter" !== e2.key && " " !== e2.key || (e2.preventDefault(), d2.setMode("DAYS" === d2.mode ? "MONTHS" : "YEARS")); 2236 }, onClick: function() { 2237 d2.setMode("DAYS" === d2.mode ? "MONTHS" : "YEARS"); 2238 } }, { children: ["DAYS" == d2.mode && ie[b2] + " " + m2, "MONTHS" == d2.mode && m2, e.jsx("i", { className: "ri-arrow-down-s-fill bc-icon" })] })), "MONTHS" !== d2.mode && e.jsx("i", { className: "ri-arrow-right-s-line bc-icon ".concat(h, "-datepicker-header-month-button ").concat(Z["header-month-button"]), "aria-label": c2, onClick: n2, role: "button", tabIndex: 0, onKeyDown: function(e2) { 2239 " " !== e2.key && "Enter" !== e2.key || (e2.preventDefault(), n2()); 2240 } })] }) })))] })); 2241 }; 2242 function ue(e2, t2) { 2243 var o2 = {}; 2244 return t2.moreThan && e2 <= t2.moreThan.data ? (o2.error = t2.moreThan.errorMessage, o2) : t2.lessThan && e2 >= t2.lessThan.data ? (o2.error = t2.lessThan.errorMessage, o2) : void 0; 2245 } 2246 function _e(e2, t2) { 2247 var o2, n2 = {}; 2248 if ((null === (o2 = t2.required) || void 0 === o2 ? void 0 : o2.data) && ("boolean" != typeof e2 && !e2 || "string" == typeof e2 && "" === e2 || null == e2)) return n2.error = t2.required.errorMessage, n2; 2249 if (t2.type && typeof e2 !== t2.type.data) return n2.error = t2.type.errorMessage, n2; 2250 if (t2.custom && !t2.custom.data(e2)) return n2.error = t2.custom.errorMessage, n2; 2251 if ("string" == typeof e2) { 2252 var a2 = function(e3, t3) { 2253 var o3 = {}; 2254 if (t3.minimumLength && e3.length < t3.minimumLength.data) return o3.error = t3.minimumLength.errorMessage, o3; 2255 if (t3.maximumLength && e3.length > t3.maximumLength.data) return o3.error = t3.maximumLength.errorMessage, o3; 2256 if (t3.isMail) { 2257 if ("" === e3) return; 2258 if (!/^[^@]+@[^@]+\.[^@]+$/.test(String(e3).toLowerCase()) || /\s/.test(e3)) return o3.error = t3.isMail.errorMessage, o3; 2259 } 2260 }(e2, t2); 2261 if (a2) return a2; 2262 } 2263 if ("number" == typeof e2) { 2264 var r2 = ue(e2, t2); 2265 if (r2) return r2; 2266 } 2267 if (e2 instanceof FileList) { 2268 var i2 = function(e3, t3) { 2269 var o3 = {}; 2270 return t3.moreThan && e3.length <= t3.moreThan.data ? (o3.error = t3.moreThan.errorMessage, o3) : t3.lessThan && e3.length >= t3.lessThan.data ? (o3.error = t3.lessThan.errorMessage, o3) : void 0; 2271 }(e2, t2); 2272 if (i2) return i2; 2273 } 2274 return e2 instanceof Date ? ue(e2.valueOf(), t2) : void 0; 2275 } 2276 var me = function(o2) { 2277 var n2 = _(o2, []), a2 = t.useContext(ee), r2 = a2.setYear, i2 = a2.setMonth, l2 = a2.setDay; 2278 return e.jsxs("div", u({ className: "".concat(h, "-datepicker-footer ").concat(Z.footer) }, { children: [n2.todayText && e.jsx(Q, u({ appearance: "ghost", className: Z["footer-button"], onClick: function() { 2279 n2.setMode("DAYS"); 2280 var e2 = /* @__PURE__ */ new Date(); 2281 n2.setValue(/* @__PURE__ */ new Date(), true), r2(e2.getFullYear()), i2(e2.getMonth()), l2(e2.getDate()); 2282 } }, { children: n2.todayText })), n2.clearText && e.jsx(Q, u({ appearance: "ghost", className: Z["footer-button"], onClick: function() { 2283 var e2; 2284 n2.setMode(null !== (e2 = n2.defaultMode) && void 0 !== e2 ? e2 : "YEARS"), n2.setValue("", true); 2285 var t2 = /* @__PURE__ */ new Date(); 2286 r2(t2.getFullYear()), i2(t2.getMonth()), l2(t2.getDate()); 2287 } }, { children: n2.clearText }))] })); 2288 }, pe = t.forwardRef(function(o2, n2) { 2289 var a2, r2, i2, l2, c2, d2 = null !== (a2 = o2.value) && void 0 !== a2 ? a2 : o2.defaultValue, s2 = d2 ? new Date(d2) : "", _2 = t.useState(s2 ? s2.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()), m2 = _2[0], p2 = _2[1], b2 = t.useState(s2 ? s2.getMonth() : (/* @__PURE__ */ new Date()).getMonth()), f2 = b2[0], g2 = b2[1], v2 = t.useState(s2 ? s2.getDate() : (/* @__PURE__ */ new Date()).getDate()), x2 = v2[0], y2 = v2[1], k2 = t.useState(function() { 2290 return s2; 2291 }), w2 = k2[0], N2 = k2[1], C2 = t.useState(null !== (r2 = o2.defaultMode) && void 0 !== r2 ? r2 : function() { 2292 return X(s2) ? "DAYS" : "YEARS"; 2293 }), j2 = C2[0], T2 = C2[1], P2 = t.useState(""), S2 = P2[0], D2 = P2[1], A2 = t.useRef(null), E2 = t.useRef(null); 2294 t.useEffect(function() { 2295 var e2; 2296 if (o2.value) { 2297 var t2 = new Date(o2.value); 2298 p2(t2.getFullYear()), g2(t2.getMonth()), y2(t2.getDate()), "Invalid Date" !== t2.toString() ? (N2(t2), T2("DAYS")) : T2(null !== (e2 = o2.defaultMode) && void 0 !== e2 ? e2 : "YEARS"); 2299 } 2300 }, [o2.defaultMode, o2.value]); 2301 var R2 = t.useCallback(function(e2, t2) { 2302 var n3; 2303 if (void 0 === t2 && (t2 = false), N2(e2), t2) { 2304 o2.onChange && o2.onChange(e2); 2305 var a3 = new Event("change", { bubbles: true }); 2306 null === (n3 = E2.current) || void 0 === n3 || n3.dispatchEvent(a3); 2307 } 2308 }, [o2]); 2309 t.useEffect(function() { 2310 var e2, t2, n3, a3 = new Date(null !== (e2 = o2.rangeStart) && void 0 !== e2 ? e2 : ""), r3 = new Date(null !== (t2 = o2.rangeEnd) && void 0 !== t2 ? t2 : ""), i3 = "string" == typeof w2, l3 = "" === w2, c3 = !i3 && o2.rangeStart && a3.getTime() > w2.getTime(), d3 = !i3 && o2.rangeEnd && r3.getTime() < w2.getTime(); 2311 !(null === (n3 = o2.formValidation) || void 0 === n3 ? void 0 : n3.required) && l3 || (c3 ? (R2(a3, true), p2(a3.getFullYear()), g2(a3.getMonth()), y2(a3.getDate())) : d3 && (R2(r3, true), p2(r3.getFullYear()), g2(r3.getMonth()), y2(r3.getDate()))); 2312 }, [o2.rangeStart, o2.rangeEnd, w2, R2, null === (i2 = o2.formValidation) || void 0 === i2 ? void 0 : i2.required]), ((null === (l2 = o2.formValidation) || void 0 === l2 ? void 0 : l2.required) || "" !== w2) && ("string" != typeof w2 && o2.min && new Date(o2.min).getTime() > w2.getTime() ? R2(new Date(o2.min)) : "string" != typeof w2 && o2.max && new Date(o2.max).getTime() < w2.getTime() && R2(new Date(o2.max))); 2313 var I2 = function() { 2314 if (o2.formValidation) { 2315 D2(""); 2316 var e2 = _e(w2, o2.formValidation); 2317 if (e2 && e2.error) return D2(e2.error), e2.error; 2318 } 2319 return false;
2320 }; 2321 t.useImperativeHandle(n2, function() { 2322 return { setValue: {}, getValue: function() { 2323 return w2 && X(w2) ? w2.toString() : void 0; 2324 }, getName: function() { 2325 return o2.name; 2326 }, getLabel: function() { 2327 return o2.headerText; 2328 }, validate: I2, getNativeRef: function() { 2329 return A2; 2330 }, focus: function() { 2331 var e2; 2332 return null === (e2 = A2.current) || void 0 === e2 ? void 0 : e2.focus(); 2333 }, type: "DatePicker", reset: function() { 2334 N2(o2.defaultValue ? new Date(o2.defaultValue) : ""); 2335 } }; 2336 }); 2337 var M2 = ["".concat(h, "-datepicker ").concat(Z.base)]; 2338 return o2.theme && M2.push("".concat(h, "-datepicker--theme-").concat(o2.theme, " ").concat(Z["theme--" + o2.theme])), o2.className && M2.push(o2.className), e.jsx(ee.Provider, u({ value: { year: m2, month: f2, day: x2, setYear: p2, setMonth: g2, setDay: y2 } }, { children: e.jsx("div", u({ className: M2.join(" "), ref: A2, role: "application" }, { children: e.jsxs("div", u({ className: "".concat(h, "-datepicker-container ").concat(Z.container) }, { children: ["" !== S2 && e.jsx("p", u({ className: "".concat(h, "-datepicker-error ").concat(Z.error), id: (null !== (c2 = o2.id) && void 0 !== c2 ? c2 : "date-".concat((/* @__PURE__ */ new Date()).valueOf())) + "-error" }, { children: S2 })), "YEARS" !== j2 && e.jsx(se, { headerText: o2.headerText, mode: j2, setMode: T2, date: "string" == typeof w2 ? /* @__PURE__ */ new Date() : w2, rangeStart: d2 ? o2.rangeStart : void 0, rangeEnd: d2 ? o2.rangeEnd : void 0, setValue: R2, nextMonthTextAria: o2.nextMonthTextAria, previousMonthTextAria: o2.previousMonthTextAria }), e.jsx(de, { mode: j2, setMode: T2, date: w2, rangeDate: d2 ? o2.rangeDate : void 0, rangeStart: d2 ? o2.rangeStart : void 0, rangeEnd: d2 ? o2.rangeEnd : void 0, setValue: R2 }), (o2.todayText || o2.clearText) && e.jsx(me, { setMode: T2, rangeStart: o2.rangeStart, rangeEnd: o2.rangeEnd, setValue: R2, todayText: o2.todayText, clearText: o2.clearText, defaultMode: o2.defaultMode }), e.jsx("select", { ref: E2, onChange: function() { 2339 }, value: "string" != typeof w2 && X(w2) ? w2.toISOString().split("T")[0] : "", style: { display: "none" } })] })) })) })); 2340 }), be = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], he = be.join(","), fe = "undefined" == typeof Element, ge = fe ? function() { 2341 } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, ve = !fe && Element.prototype.getRootNode ? function(e2) { 2342 var t2; 2343 return null == e2 || null === (t2 = e2.getRootNode) || void 0 === t2 ? void 0 : t2.call(e2); 2344 } : function(e2) { 2345 return null == e2 ? void 0 : e2.ownerDocument; 2346 }, xe = function e2(t2, o2) { 2347 var n2; 2348 void 0 === o2 && (o2 = true); 2349 var a2 = null == t2 || null === (n2 = t2.getAttribute) || void 0 === n2 ? void 0 : n2.call(t2, "inert"); 2350 return "" === a2 || "true" === a2 || o2 && t2 && e2(t2.parentNode); 2351 }, ye = function(e2, t2, o2) { 2352 if (xe(e2)) return []; 2353 var n2 = Array.prototype.slice.apply(e2.querySelectorAll(he)); 2354 return t2 && ge.call(e2, he) && n2.unshift(e2), n2 = n2.filter(o2); 2355 }, ke = function e2(t2, o2, n2) { 2356 for (var a2 = [], r2 = Array.from(t2); r2.length; ) { 2357 var i2 = r2.shift(); 2358 if (!xe(i2, false)) if ("SLOT" === i2.tagName) { 2359 var l2 = i2.assignedElements(), c2 = e2(l2.length ? l2 : i2.children, true, n2); 2360 n2.flatten ? a2.push.apply(a2, c2) : a2.push({ scopeParent: i2, candidates: c2 }); 2361 } else { 2362 ge.call(i2, he) && n2.filter(i2) && (o2 || !t2.includes(i2)) && a2.push(i2); 2363 var d2 = i2.shadowRoot || "function" == typeof n2.getShadowRoot && n2.getShadowRoot(i2), s2 = !xe(d2, false) && (!n2.shadowRootFilter || n2.shadowRootFilter(i2)); 2364 if (d2 && s2) { 2365 var u2 = e2(true === d2 ? i2.children : d2.children, true, n2); 2366 n2.flatten ? a2.push.apply(a2, u2) : a2.push({ scopeParent: i2, candidates: u2 }); 2367 } else r2.unshift.apply(r2, i2.children); 2368 } 2369 } 2370 return a2; 2371 }, we = function(e2) { 2372 return !isNaN(parseInt(e2.getAttribute("tabindex"), 10)); 2373 }, Ne = function(e2) { 2374 if (!e2) throw new Error("No node provided"); 2375 return e2.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e2.tagName) || function(e3) { 2376 var t2, o2 = null == e3 || null === (t2 = e3.getAttribute) || void 0 === t2 ? void 0 : t2.call(e3, "contenteditable"); 2377 return "" === o2 || "true" === o2; 2378 }(e2)) && !we(e2) ? 0 : e2.tabIndex; 2379 }, Ce = function(e2, t2) { 2380 return e2.tabIndex === t2.tabIndex ? e2.documentOrder - t2.documentOrder : e2.tabIndex - t2.tabIndex; 2381 }, je = function(e2) { 2382 return "INPUT" === e2.tagName; 2383 }, Te = function(e2) { 2384 return function(e3) { 2385 return je(e3) && "radio" === e3.type; 2386 }(e2) && !function(e3) { 2387 if (!e3.name) return true; 2388 var t2, o2 = e3.form || ve(e3), n2 = function(e4) { 2389 return o2.querySelectorAll('input[type="radio"][name="' + e4 + '"]'); 2390 }; 2391 if ("undefined" != typeof window && void 0 !== window.CSS && "function" == typeof window.CSS.escape) t2 = n2(window.CSS.escape(e3.name)); 2392 else try { 2393 t2 = n2(e3.name); 2394 } catch (e4) { 2395 return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e4.message), false; 2396 } 2397 var a2 = function(e4, t3) { 2398 for (var o3 = 0; o3 < e4.length; o3++) if (e4[o3].checked && e4[o3].form === t3) return e4[o3]; 2399 }(t2, e3.form); 2400 return !a2 || a2 === e3; 2401 }(e2); 2402 }, Pe = function(e2) { 2403 var t2 = e2.getBoundingClientRect(), o2 = t2.width, n2 = t2.he
2403ight; 2404 return 0 === o2 && 0 === n2; 2405 }, Se = function(e2, t2) { 2406 var o2 = t2.displayCheck, n2 = t2.getShadowRoot; 2407 if ("hidden" === getComputedStyle(e2).visibility) return true; 2408 var a2 = ge.call(e2, "details>summary:first-of-type") ? e2.parentElement : e2; 2409 if (ge.call(a2, "details:not([open]) *")) return true; 2410 if (o2 && "full" !== o2 && "legacy-full" !== o2) { 2411 if ("non-zero-area" === o2) return Pe(e2); 2412 } else { 2413 if ("function" == typeof n2) { 2414 for (var r2 = e2; e2; ) { 2415 var i2 = e2.parentElement, l2 = ve(e2); 2416 if (i2 && !i2.shadowRoot && true === n2(i2)) return Pe(e2); 2417 e2 = e2.assignedSlot ? e2.assignedSlot : i2 || l2 === e2.ownerDocument ? i2 : l2.host; 2418 } 2419 e2 = r2; 2420 } 2421 if (function(e3) { 2422 var t3, o3, n3, a3, r3 = e3 && ve(e3), i3 = null === (t3 = r3) || void 0 === t3 ? void 0 : t3.host, l3 = false; 2423 if (r3 && r3 !== e3) for (l3 = !!(null !== (o3 = i3) && void 0 !== o3 && null !== (n3 = o3.ownerDocument) && void 0 !== n3 && n3.contains(i3) || null != e3 && null !== (a3 = e3.ownerDocument) && void 0 !== a3 && a3.contains(e3)); !l3 && i3; ) { 2424 var c2, d2, s2; 2425 l3 = !(null === (d2 = i3 = null === (c2 = r3 = ve(i3)) || void 0 === c2 ? void 0 : c2.host) || void 0 === d2 || null === (s2 = d2.ownerDocument) || void 0 === s2 || !s2.contains(i3)); 2426 } 2427 return l3; 2428 }(e2)) return !e2.getClientRects().length; 2429 if ("legacy-full" !== o2) return true; 2430 } 2431 return false; 2432 }, De = function(e2, t2) { 2433 return !(t2.disabled || xe(t2) || function(e3) { 2434 return je(e3) && "hidden" === e3.type; 2435 }(t2) || Se(t2, e2) || function(e3) { 2436 return "DETAILS" === e3.tagName && Array.prototype.slice.apply(e3.children).some(function(e4) { 2437 return "SUMMARY" === e4.tagName; 2438 }); 2439 }(t2) || function(e3) { 2440 if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e3.tagName)) for (var t3 = e3.parentElement; t3; ) { 2441 if ("FIELDSET" === t3.tagName && t3.disabled) { 2442 for (var o2 = 0; o2 < t3.children.length; o2++) { 2443 var n2 = t3.children.item(o2); 2444 if ("LEGEND" === n2.tagName) return !!ge.call(t3, "fieldset[disabled] *") || !n2.contains(e3); 2445 } 2446 return true; 2447 } 2448 t3 = t3.parentElement; 2449 } 2450 return false; 2451 }(t2)); 2452 }, Ae = function(e2, t2) { 2453 return !(Te(t2) || Ne(t2) < 0 || !De(e2, t2)); 2454 }, Ee = function(e2) { 2455 var t2 = parseInt(e2.getAttribute("tabindex"), 10); 2456 return !!(isNaN(t2) || t2 >= 0); 2457 }, Re = function e2(t2) { 2458 var o2 = [], n2 = []; 2459 return t2.forEach(function(t3, a2) { 2460 var r2 = !!t3.scopeParent, i2 = r2 ? t3.scopeParent : t3, l2 = function(e3, t4) { 2461 var o3 = Ne(e3); 2462 return o3 < 0 && t4 && !we(e3) ? 0 : o3; 2463 }(i2, r2), c2 = r2 ? e2(t3.candidates) : i2; 2464 0 === l2 ? r2 ? o2.push.apply(o2, c2) : o2.push(i2) : n2.push({ documentOrder: a2, tabIndex: l2, item: t3, isScope: r2, content: c2 }); 2465 }), n2.sort(Ce).reduce(function(e3, t3) { 2466 return t3.isScope ? e3.push.apply(e3, t3.content) : e3.push(t3.content), e3; 2467 }, []).concat(o2); 2468 }, Ie = function(e2, t2) { 2469 var o2; 2470 return o2 = (t2 = t2 || {}).getShadowRoot ? ke([e2], t2.includeContainer, { filter: Ae.bind(null, t2), flatten: false, getShadowRoot: t2.getShadowRoot, shadowRootFilter: Ee }) : ye(e2, t2.includeContainer, Ae.bind(null, t2)), Re(o2); 2471 }, Me = function(e2, t2) { 2472 return (t2 = t2 || {}).getShadowRoot ? ke([e2], t2.includeContainer, { filter: De.bind(null, t2), flatten: true, getShadowRoot: t2.getShadowRoot }) : ye(e2, t2.includeContainer, De.bind(null, t2)); 2473 }, ze = function(e2, t2) { 2474 if (t2 = t2 || {}, !e2) throw new Error("No node provided"); 2475 return false !== ge.call(e2, he) && Ae(t2, e2); 2476 }, Le = be.concat("iframe").join(","), Fe = function(e2, t2) { 2477 if (t2 = t2 || {}, !e2) throw new Error("No node provided"); 2478 return false !== ge.call(e2, Le) && De(t2, e2); 2479 }, Oe = Object.freeze({ __proto__: null, focusable: Me, getTabIndex: Ne, isFocusable: Fe, isTabbable: ze, tabbable: Ie }); 2480 /*! 2481 * focus-trap 7.6.4 2482 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 2483 */ 2484 function Be(e2, t2) { 2485 (null == t2 || t2 > e2.length) && (t2 = e2.length); 2486 for (var o2 = 0, n2 = Array(t2); o2 < t2; o2++) n2[o2] = e2[o2]; 2487 return n2; 2488 } 2489 function He(e2, t2, o2) { 2490 return (t2 = function(e3) { 2491 var t3 = function(e4, t4) { 2492 if ("object" != typeof e4 || !e4) return e4; 2493 var o3 = e4[Symbol.toPrimitive]; 2494 if (void 0 !== o3) { 2495 var n2 = o3.call(e4, t4); 2496 if ("object" != typeof n2) return n2; 2497 throw new TypeError("@@toPrimitive must return a primitive value."); 2498 } 2499 return ("string" === t4 ? String : Number)(e4); 2500 }(e3, "string"); 2501 return "symbol" == typeof t3 ? t3 : t3 + ""; 2502 }(t2)) in e2 ? Object.defineProperty(e2, t2, { value: o2, enumerable: true, configurable: true, writable: true }) : e2[t2] = o2, e2; 2503 } 2504 function Ve(e2, t2) { 2505 var o2 = Object.keys(e2); 2506 if (Object.getOwnPropertySymbols) { 2507 var n2 = Object.getOwnPropertySymbols(e2); 2508 t2 && (n2 = n2.filter(function(t3) { 2509 return Object.getOwnPropertyDescriptor(e2, t3).enumerable; 2510 })), o2.push.apply(o2, n2); 2511 } 2512 return o2; 2513 } 2514 function Ge(e2) { 2515 for (var t2 = 1; t2 < arguments.length; t2++) { 2516 var o2 = null != arguments[t2] ? arguments[t2] : {}; 2517 t2 % 2 ? Ve(Object(o2), true).forEach(function(t3) { 2518 He(e2, t3, o2[t3]); 2519 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(o2)) : Ve(Object(o2)).forEac
2519h(function(t3) { 2520 Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(o2, t3)); 2521 }); 2522 } 2523 return e2; 2524 } 2525 function Ue(e2) { 2526 return function(e3) { 2527 if (Array.isArray(e3)) return Be(e3); 2528 }(e2) || function(e3) { 2529 if ("undefined" != typeof Symbol && null != e3[Symbol.iterator] || null != e3["@@iterator"]) return Array.from(e3); 2530 }(e2) || function(e3, t2) { 2531 if (e3) { 2532 if ("string" == typeof e3) return Be(e3, t2); 2533 var o2 = {}.toString.call(e3).slice(8, -1); 2534 return "Object" === o2 && e3.constructor && (o2 = e3.constructor.name), "Map" === o2 || "Set" === o2 ? Array.from(e3) : "Arguments" === o2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o2) ? Be(e3, t2) : void 0; 2535 } 2536 }(e2) || function() { 2537 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 2538 }(); 2539 } 2540 var Ke = function(e2, t2) { 2541 if (e2.length > 0) { 2542 var o2 = e2[e2.length - 1]; 2543 o2 !== t2 && o2._setPausedState(true); 2544 } 2545 var n2 = e2.indexOf(t2); 2546 -1 === n2 || e2.splice(n2, 1), e2.push(t2); 2547 }, We = function(e2, t2) { 2548 var o2 = e2.indexOf(t2); 2549 -1 !== o2 && e2.splice(o2, 1), e2.length > 0 && !e2[e2.length - 1]._isManuallyPaused() && e2[e2.length - 1]._setPausedState(false); 2550 }, Qe = function(e2) { 2551 return "Tab" === (null == e2 ? void 0 : e2.key) || 9 === (null == e2 ? void 0 : e2.keyCode); 2552 }, qe = function(e2) { 2553 return Qe(e2) && !e2.shiftKey; 2554 }, Xe = function(e2) { 2555 return Qe(e2) && e2.shiftKey; 2556 }, Ye = function(e2) { 2557 return setTimeout(e2, 0); 2558 }, Je = function(e2) { 2559 for (var t2 = arguments.length, o2 = new Array(t2 > 1 ? t2 - 1 : 0), n2 = 1; n2 < t2; n2++) o2[n2 - 1] = arguments[n2]; 2560 return "function" == typeof e2 ? e2.apply(void 0, o2) : e2; 2561 }, Ze = function(e2) { 2562 return e2.target.shadowRoot && "function" == typeof e2.composedPath ? e2.composedPath()[0] : e2.target; 2563 }, $e = []; 2564 function et(e2) { 2565 if (e2.__esModule) return e2; 2566 var t2 = Object.defineProperty({}, "__esModule", { value: true }); 2567 return Object.keys(e2).forEach(function(o2) { 2568 var n2 = Object.getOwnPropertyDescriptor(e2, o2); 2569 Object.defineProperty(t2, o2, n2.get ? n2 : { enumerable: true, get: function() { 2570 return e2[o2]; 2571 } }); 2572 }), t2; 2573 } 2574 var tt, ot, nt = et(Object.freeze({ __proto__: null, createFocusTrap: function(e2, t2) { 2575 var o2, n2 = (null == t2 ? void 0 : t2.document) || document, a2 = (null == t2 ? void 0 : t2.trapStack) || $e, r2 = Ge({ returnFocusOnDeactivate: true, escapeDeactivates: true, delayInitialFocus: true, isKeyForward: qe, isKeyBackward: Xe }, t2), i2 = { containers: [], containerGroups: [], tabbableGroups: [], nodeFocusedBeforeActivation: null, mostRecentlyFocusedNode: null, active: false, paused: false, manuallyPaused: false, delayInitialFocusTimer: void 0, recentNavEvent: void 0 }, l2 = function(e3, t3, o3) { 2576 return e3 && void 0 !== e3[t3] ? e3[t3] : r2[o3 || t3]; 2577 }, c2 = function(e3, t3) { 2578 var o3 = "function" == typeof (null == t3 ? void 0 : t3.composedPath) ? t3.composedPath() : void 0; 2579 return i2.containerGroups.findIndex(function(t4) { 2580 var n3 = t4.container, a3 = t4.tabbableNodes; 2581 return n3.contains(e3) || (null == o3 ? void 0 : o3.includes(n3)) || a3.find(function(t5) { 2582 return t5 === e3; 2583 }); 2584 }); 2585 }, d2 = function(e3) { 2586 var t3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, o3 = t3.hasFallback, a3 = void 0 !== o3 && o3, i3 = t3.params, l3 = void 0 === i3 ? [] : i3, c3 = r2[e3]; 2587 if ("function" == typeof c3 && (c3 = c3.apply(void 0, Ue(l3))), true === c3 && (c3 = void 0), !c3) { 2588 if (void 0 === c3 || false === c3) return c3; 2589 throw new Error("`".concat(e3, "` was specified but was not a node, or did not return a node")); 2590 } 2591 var d3 = c3; 2592 if ("string" == typeof c3) { 2593 try { 2594 d3 = n2.querySelector(c3); 2595 } catch (t4) { 2596 throw new Error("`".concat(e3, '` appears to be an invali
2596d selector; error="').concat(t4.message, '"')); 2597 } 2598 if (!d3 && !a3) throw new Error("`".concat(e3, "` as selector refers to no known node")); 2599 } 2600 return d3; 2601 }, s2 = function() { 2602 var e3 = d2("initialFocus", { hasFallback: true }); 2603 if (false === e3) return false; 2604 if (void 0 === e3 || e3 && !Fe(e3, r2.tabbableOptions)) if (c2(n2.activeElement) >= 0) e3 = n2.activeElement; 2605 else { 2606 var t3 = i2.tabbableGroups[0]; 2607 e3 = t3 && t3.firstTabbableNode || d2("fallbackFocus"); 2608 } 2609 else null === e3 && (e3 = d2("fallbackFocus")); 2610 if (!e3) throw new Error("Your focus-trap needs to have at least one focusable element"); 2611 return e3; 2612 }, u2 = function() { 2613 if (i2.containerGroups = i2.containers.map(function(e3) { 2614 var t3 = Ie(e3, r2.tabbableOptions), o3 = Me(e3, r2.tabbableOptions), n3 = t3.length > 0 ? t3[0] : void 0, a3 = t3.length > 0 ? t3[t3.length - 1] : void 0, i3 = o3.find(function(e4) { 2615 return ze(e4); 2616 }), l3 = o3.slice().reverse().find(function(e4) { 2617 return ze(e4); 2618 }), c3 = !!t3.find(function(e4) { 2619 return Ne(e4) > 0; 2620 }); 2621 return { container: e3, tabbableNodes: t3, focusableNodes: o3, posTabIndexesFound: c3, firstTabbableNode: n3, lastTabbableNode: a3, firstDomTabbableNode: i3, lastDomTabbableNode: l3, nextTabbableNode: function(e4) { 2622 var n4 = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1], a4 = t3.indexOf(e4); 2623 return a4 < 0 ? n4 ? o3.slice(o3.indexOf(e4) + 1).find(function(e5) { 2624 return ze(e5); 2625 }) : o3.slice(0, o3.indexOf(e4)).reverse().find(function(e5) { 2626 return ze(e5); 2627 }) : t3[a4 + (n4 ? 1 : -1)]; 2628 } }; 2629 }), i2.tabbableGroups = i2.containerGroups.filter(function(e3) { 2630 return e3.tabbableNodes.length > 0; 2631 }), i2.tabbableGroups.length <= 0 && !d2("fallbackFocus")) throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times"); 2632 if (i2.containerGroups.find(function(e3) { 2633 return e3.posTabIndexesFound; 2634 }) && i2.containerGroups.length > 1) throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps."); 2635 }, _2 = function(e3) { 2636 var t3 = e3.activeElement; 2637 if (t3) return t3.shadowRoot && null !== t3.shadowRoot.activeElement ? _2(t3.shadowRoot) : t3; 2638 }, m2 = function(e3) { 2639 false !== e3 && e3 !== _2(document) && (e3 && e3.focus ? (e3.focus({ preventScroll: !!r2.preventScroll }), i2.mostRecentlyFocusedNode = e3, function(e4) { 2640 return e4.tagName && "input" === e4.tagName.toLowerCase() && "function" == typeof e4.select; 2641 }(e3) && e3.select()) : m2(s2())); 2642 }, p2 = function(e3) { 2643 var t3 = d2("setReturnFocus", { params: [e3] }); 2644 return t3 || false !== t3 && e3; 2645 }, b2 = function(e3) { 2646 var t3 = e3.target, o3 = e3.event, n3 = e3.isBackward, a3 = void 0 !== n3 && n3; 2647 t3 = t3 || Ze(o3), u2(); 2648 var l3 = null; 2649 if (i2.tabbableGroups.length > 0) { 2650 var s3 = c2(t3, o3), _3 = s3 >= 0 ? i2.containerGroups[s3] : void 0; 2651 if (s3 < 0) l3 = a3 ? i2.tabbableGroups[i2.tabbableGroups.length - 1].lastTabbableNode : i2.tabbableGroups[0].firstTabbableNode; 2652 else if (a3) { 2653 var m3 = i2.tabbableGroups.findIndex(function(e4) { 2654 var o4 = e4.firstTabbableNode; 2655 return t3 === o4; 2656 }); 2657 if (m3 < 0 && (_3.container === t3 || Fe(t3, r2.tabbableOptions) && !ze(t3, r2.tabbableOptions) && !_3.nextTabbableNode(t3, false)) && (m3 = s3), m3 >= 0) { 2658 var p3 = 0 === m3 ? i2.tabbableGroups.length - 1 : m3 - 1, b3 = i2.tabbableGroups[p3]; 2659 l3 = Ne(t3) >= 0 ? b3.lastTabbableNode : b3.lastDomTabbableNode; 2660 } else Qe(o3) || (l3 = _3.nextTabbableNode(t3, false)); 2661 } else { 2662 var h3 = i2.tabbableGroups.findIndex(function(e4) { 2663 var o4 = e4.lastTabbableNode; 2664 return t3 === o4; 2665 }); 2666 if (h3 < 0 && (_3.container === t3 || Fe(t3, r2.tabbableOptions) && !ze(t3, r2.tabbableOptions) && !_3.nextTabbableNode(t3)) && (h3 = s3), h3 >= 0) { 2667 var f3 = h3 === i2.tabbableGroups.length - 1 ? 0 : h3 + 1, g3 = i2.tabbableGroups[f3]; 2668 l3 = Ne(t3) >= 0 ? g3.firstTabbableNode : g3.firstDomTabbableNode; 2669 } else Qe(o3) || (l3 = _3.nextTabbableNode(t3)); 2670 } 2671 } else l3 = d2("fallbackFocus"); 2672 return l3; 2673 }, h2 = function(e3) { 2674 var t3 = Ze(e3); 2675 c2(t3, e3) >= 0 || (Je(r2.clickOutsideDeactivates, e3) ? o2.deactivate({ returnFocus: r2.returnFocusOnDeactivate }) : Je(r2.allowOutsideClick, e3) || e3.preventDefault()); 2676 }, f2 = function(e3) { 2677 var t3 = Ze(e3), o3 = c2(t3, e3) >= 0; 2678 if (o3 || t3 instanceof Document) o3 && (i2.mostRecentlyFocusedNode = t3); 2679 else { 2680 var n3; 2681 e3.stopImmediatePropagation(); 2682 var a3 = true; 2683 if (i2.mostRecentlyFocusedNode) if (Ne(i2.mostRecentlyFocusedNode) > 0) { 2684 var l3 = c2(i2.mostRecentlyFocusedNode), d3 = i2.containerGroups[l3].tabbableNodes; 2685 if (d3.length > 0) { 2686 var u3 = d3.findIndex(function(e4) { 2687 return e4 === i2.mostRecentlyFocusedNode; 2688 }); 2689 u3 >= 0 && (r2.isKeyForward(i2.recentNavEvent) ? u3 + 1 < d3.length && (n3 = d3[u3 + 1], a3 = false) : u3 - 1 >= 0 && (n3 = d3[u3 - 1], a3 = false)); 2690 } 2691 } else i2.containerGroups.some(function(e4) { 2692 return e4.tabbableNodes.some(function(e5) { 2693 return Ne(e5) > 0; 2694 }); 2695 }) || (a3 = false); 2696 else a3 = false;
2697 a3 && (n3 = b2({ target: i2.mostRecentlyFocusedNode, isBackward: r2.isKeyBackward(i2.recentNavEvent) })), m2(n3 || (i2.mostRecentlyFocusedNode || s2())); 2698 } 2699 i2.recentNavEvent = void 0; 2700 }, g2 = function(e3) { 2701 (r2.isKeyForward(e3) || r2.isKeyBackward(e3)) && function(e4) { 2702 var t3 = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 2703 i2.recentNavEvent = e4; 2704 var o3 = b2({ event: e4, isBackward: t3 }); 2705 o3 && (Qe(e4) && e4.preventDefault(), m2(o3)); 2706 }(e3, r2.isKeyBackward(e3)); 2707 }, v2 = function(e3) { 2708 var t3; 2709 "Escape" !== (null == (t3 = e3) ? void 0 : t3.key) && "Esc" !== (null == t3 ? void 0 : t3.key) && 27 !== (null == t3 ? void 0 : t3.keyCode) || false === Je(r2.escapeDeactivates, e3) || (e3.preventDefault(), o2.deactivate()); 2710 }, x2 = function(e3) { 2711 var t3 = Ze(e3); 2712 c2(t3, e3) >= 0 || Je(r2.clickOutsideDeactivates, e3) || Je(r2.allowOutsideClick, e3) || (e3.preventDefault(), e3.stopImmediatePropagation()); 2713 }, y2 = function() { 2714 if (i2.active) return Ke(a2, o2), i2.delayInitialFocusTimer = r2.delayInitialFocus ? Ye(function() { 2715 m2(s2()); 2716 }) : m2(s2()), n2.addEventListener("focusin", f2, true), n2.addEventListener("mousedown", h2, { capture: true, passive: false }), n2.addEventListener("touchstart", h2, { capture: true, passive: false }), n2.addEventListener("click", x2, { capture: true, passive: false }), n2.addEventListener("keydown", g2, { capture: true, passive: false }), n2.addEventListener("keydown", v2), o2; 2717 }, k2 = function() { 2718 if (i2.active) return n2.removeEventListener("focusin", f2, true), n2.removeEventListener("mousedown", h2, true), n2.removeEventListener("touchstart", h2, true), n2.removeEventListener("click", x2, true), n2.removeEventListener("keydown", g2, true), n2.removeEventListener("keydown", v2), o2; 2719 }, w2 = "undefined" != typeof window && "MutationObserver" in window ? new MutationObserver(function(e3) { 2720 e3.some(function(e4) { 2721 return Array.from(e4.removedNodes).some(function(e5) { 2722 return e5 === i2.mostRecentlyFocusedNode; 2723 }); 2724 }) && m2(s2()); 2725 }) : void 0, N2 = function() { 2726 w2 && (w2.disconnect(), i2.active && !i2.paused && i2.containers.map(function(e3) { 2727 w2.observe(e3, { subtree: true, childList: true }); 2728 })); 2729 }; 2730 return o2 = { get active() { 2731 return i2.active; 2732 }, get paused() { 2733 return i2.paused; 2734 }, activate: function(e3) { 2735 if (i2.active) return this; 2736 var t3 = l2(e3, "onActivate"), o3 = l2(e3, "onPostActivate"), a3 = l2(e3, "checkCanFocusTrap"); 2737 a3 || u2(), i2.active = true, i2.paused = false, i2.nodeFocusedBeforeActivation = n2.activeElement, null == t3 || t3(); 2738 var r3 = function() { 2739 a3 && u2(), y2(), N2(), null == o3 || o3(); 2740 }; 2741 return a3 ? (a3(i2.containers.concat()).then(r3, r3), this) : (r3(), this); 2742 }, deactivate: function(e3) { 2743 if (!i2.active) return this; 2744 var t3 = Ge({ onDeactivate: r2.onDeactivate, onPostDeactivate: r2.onPostDeactivate, checkCanReturnFocus: r2.checkCanReturnFocus }, e3); 2745 clearTimeout(i2.delayInitialFocusTimer), i2.delayInitialFocusTimer = void 0, k2(), i2.active = false, i2.paused = false, N2(), We(a2, o2); 2746 var n3 = l2(t3, "onDeactivate"), c3 = l2(t3, "onPostDeactivate"), d3 = l2(t3, "checkCanReturnFocus"), s3 = l2(t3, "returnFocus", "returnFocusOnDeactivate"); 2747 null == n3 || n3(); 2748 var u3 = function() { 2749 Ye(function() { 2750 s3 && m2(p2(i2.nodeFocusedBeforeActivation)), null == c3 || c3(); 2751 }); 2752 }; 2753 return s3 && d3 ? (d3(p2(i2.nodeFocusedBeforeActivation)).then(u3, u3), this) : (u3(), this); 2754 }, pause: function(e3) { 2755 return i2.active ? (i2.manuallyPaused = true, this._setPausedState(true, e3)) : this; 2756 }, unpause: function(e3) { 2757 return i2.active ? (i2.manuallyPaused = false, a2[a2.length - 1] !== this ? this
2757: this._setPausedState(false, e3)) : this; 2758 }, updateContainerElements: function(e3) { 2759 var t3 = [].concat(e3).filter(Boolean); 2760 return i2.containers = t3.map(function(e4) { 2761 return "string" == typeof e4 ? n2.querySelector(e4) : e4; 2762 }), i2.active && u2(), N2(), this; 2763 } }, Object.defineProperties(o2, { _isManuallyPaused: { value: function() { 2764 return i2.manuallyPaused; 2765 } }, _setPausedState: { value: function(e3, t3) { 2766 if (i2.paused === e3) return this; 2767 if (i2.paused = e3, e3) { 2768 var o3 = l2(t3, "onPause"), n3 = l2(t3, "onPostPause"); 2769 null == o3 || o3(), k2(), N2(), null == n3 || n3(); 2770 } else { 2771 var a3 = l2(t3, "onUnpause"), r3 = l2(t3, "onPostUnpause"); 2772 null == a3 || a3(), u2(), y2(), N2(), null == r3 || r3(); 2773 } 2774 return this; 2775 } } }), o2.updateContainerElements(e2), o2; 2776 } })), at = et(Oe); 2777 function rt(e2) { 2778 return rt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) { 2779 return typeof e3; 2780 } : function(e3) { 2781 return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3; 2782 }, rt(e2); 2783 } 2784 function it(e2, t2) { 2785 for (var o2 = 0; o2 < t2.length; o2++) { 2786 var n2 = t2[o2]; 2787 n2.enumerable = n2.enumerable || false, n2.configurable = true, "value" in n2 && (n2.writable = true), Object.defineProperty(e2, ut(n2.key), n2); 2788 } 2789 } 2790 function lt(e2, t2, o2) { 2791 return t2 = dt(t2), function(e3, t3) { 2792 if (t3 && ("object" == rt(t3) || "function" == typeof t3)) return t3; 2793 if (void 0 !== t3) throw new TypeError("Derived constructors may only return object or undefined"); 2794 return function(e4) { 2795 if (void 0 === e4) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2796 return e4; 2797 }(e3); 2798 }(e2, ct() ? Reflect.construct(t2, o2 || [], dt(e2).constructor) : t2.apply(e2, o2)); 2799 } 2800 function ct() { 2801 try { 2802 var e2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { 2803 })); 2804 } catch (e3) { 2805 } 2806 return (ct = function() { 2807 return !!e2; 2808 })(); 2809 } 2810 function dt(e2) { 2811 return dt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e3) { 2812 return e3.__proto__ || Object.getPrototypeOf(e3); 2813 }, dt(e2); 2814 } 2815 function st(e2, t2) { 2816 return st = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e3, t3) { 2817 return e3.__proto__ = t3, e3; 2818 }, st(e2, t2); 2819 } 2820 function ut(e2) { 2821 var t2 = function(e3, t3) { 2822 if ("object" != rt(e3) || !e3) return e3; 2823 var o2 = e3[Symbol.toPrimitive]; 2824 if (void 0 !== o2) { 2825 var n2 = o2.call(e3, t3); 2826 if ("object" != rt(n2)) return n2; 2827 throw new TypeError("@@toPrimitive must return a primitive value."); 2828 } 2829 return ("string" === t3 ? String : Number)(e3); 2830 }(e2, "string"); 2831 return "symbol" == rt(t2) ? t2 : t2 + ""; 2832 } 2833 var _t = nt.createFocusTrap, mt = at.isFocusable, pt = parseInt(null !== (tt = null === (ot = /^(\d+)\./.exec(i.default.version)) || void 0 === ot ? void 0 : ot[1]) && void 0 !== tt ? tt : 0, 10), bt = function(e2) { 2834 function t2(e3) { 2835 var o3, n3, a3, r2; 2836 !function(e4, t3) { 2837 if (!(e4 instanceof t3)) throw new TypeError("Cannot call a class as a function"); 2838 }(this, t2), o3 = lt(this, t2, [e3]), n3 = o3, r2 = function(e4) { 2839 var t3, o4 = null !== (t3 = this.internalOptions[e4]) && void 0 !== t3 ? t3 : this.originalOptions[e4]; 2840 if ("function" == typeof o4) { 2841 for (var n4 = arguments.length, a4 = new Array(n4 > 1 ? n4 - 1 : 0), r3 = 1; r3 < n4; r3++) a4[r3 - 1] = arguments[r3]; 2842 o4 = o4.apply(void 0, a4); 2843 } 2844 if (true === o4 && (o4 = void 0), !o4) { 2845 if (void 0 === o4 || false === o4) return o4; 2846 throw new Error("`".concat(e4, "` was specified but was not a node, or did not return a node")); 2847 } 2848 var i3, l3 = o4; 2849 if ("string" == typeof o4 && !(l3 = null === (i3 = this.getDocument()) || void 0 === i3 ? void 0 : i3.querySelector(o4))) throw new Error("`".concat(e4, "` as selector refers to no known node")); 2850 return l3; 2851 }
2851, (a3 = ut(a3 = "getNodeForOption")) in n3 ? Object.defineProperty(n3, a3, { value: r2, enumerable: true, configurable: true, writable: true }) : n3[a3] = r2, o3.handleDeactivate = o3.handleDeactivate.bind(o3), o3.handlePostDeactivate = o3.handlePostDeactivate.bind(o3), o3.handleClickOutsideDeactivates = o3.handleClickOutsideDeactivates.bind(o3), o3.internalOptions = { returnFocusOnDeactivate: false, checkCanReturnFocus: null, onDeactivate: o3.handleDeactivate, onPostDeactivate: o3.handlePostDeactivate, clickOutsideDeactivates: o3.handleClickOutsideDeactivates }, o3.originalOptions = { returnFocusOnDeactivate: true, onDeactivate: null, onPostDeactivate: null, checkCanReturnFocus: null, clickOutsideDeactivates: false }; 2852 var i2 = e3.focusTrapOptions; 2853 for (var l2 in i2) Object.prototype.hasOwnProperty.call(i2, l2) && ("returnFocusOnDeactivate" !== l2 && "onDeactivate" !== l2 && "onPostDeactivate" !== l2 && "checkCanReturnFocus" !== l2 && "clickOutsideDeactivates" !== l2 ? o3.internalOptions[l2] = i2[l2] : o3.originalOptions[l2] = i2[l2]); 2854 return o3.outsideClick = null, o3.focusTrapElements = e3.containerElements || [], o3.updatePreviousElement(), o3; 2855 } 2856 return function(e3, t3) { 2857 if ("function" != typeof t3 && null !== t3) throw new TypeError("Super expression must either be null or a function"); 2858 e3.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e3, writable: true, configurable: true } }), Object.defineProperty(e3, "prototype", { writable: false }), t3 && st(e3, t3); 2859 }(t2, i["default"].Component), o2 = t2, (n2 = [{ key: "getDocument", value: function() { 2860 return this.props.focusTrapOptions.document || ("undefined" != typeof document ? document : void 0); 2861 } }, { key: "getReturnFocusNode", value: function() { 2862 var e3 = this.getNodeForOption("setReturnFocus", this.previouslyFocusedElement); 2863 return e3 || false !== e3 && this.previouslyFocusedElement; 2864 } }, { key: "updatePreviousElement", value: function() { 2865 var e3 = this.getDocument(); 2866 e3 && (this.previouslyFocusedElement = e3.activeElement); 2867 } }, { key: "deactivateTrap", value: function() { 2868 this.focusTrap && this.focusTrap.active && this.focusTrap.deactivate({ returnFocus: false, checkCanReturnFocus: null, onDeactivate: this.originalOptions.onDeactivate }); 2869 } }, { key: "handleClickOutsideDeactivates", value: function(e3) { 2870 var t3 = "function" == typeof this.originalOptions.clickOutsideDeactivates ? this.originalOptions.clickOutsideDeactivates.call(null, e3) : this.originalOptions.clickOutsideDeactivates; 2871 return t3 && (this.outsideClick = { target: e3.target, allowDeactivation: t3 }), t3; 2872 } }, { key: "handleDeactivate", value: function() { 2873 this.originalOptions.onDeactivate && this.originalOptions.onDeactivate.call(null), this.deactivateTrap(); 2874 } }, { key: "handlePostDeactivate", value: function() { 2875 var e3 = this, t3 = function() { 2876 var t4 = e3.getReturnFocusNode(), o3 = !(!e3.originalOptions.returnFocusOnDeactivate || null == t4 || !t4.focus || e3.outsideClick && (!e3.outsideClick.allowDeactivation || mt(e3.outsideClick.target, e3.internalOptions.tabbableOptions))), n3 = e3.internalOptions.preventScroll, a3 = void 0 !== n3 && n3; 2877 o3 && t4.focus({ preventScroll: a3 }), e3.originalOptions.onPostDeactivate && e3.originalOptions.onPostDeactivate.call(null), e3.outsideClick = null; 2878 }; 2879 this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(t3, t3) : t3(); 2880 } }, { key: "setupFocusTrap", value: function() { 2881 this.focusTrap ? this.props.active && !this.focusTrap.active && (this.focusTrap.activate(), this.props.paused && this.focusTrap.pause()) : this.focusTrapElements.some(Boolean) && (this.focusTrap = this.props._createFocusTrap(this.focusTrapElements, this.internalOptions), this.props.active && this.focusTrap.activate(), this.props.paused && this.focusTrap.pause()); 2882 } }, { key: "componentDidMount", value: function() { 2883 this.props.active && this.setupFocusTrap(); 2884 } }, { key: "componentDidUpdate", value: function(e3) { 2885 if (this.focusTrap) { 2886 e3.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements); 2887 var t3 = !e3.active && this.props.active, o3 = e3.active && !this.props.active, n3 = !e3.paused && this.props.paused, a3 = e3.paused && !this.props.paused; 2888 if (t3 && (this.updatePreviousElement(), this.focusTrap.activate()), o3) return void this.deactivateTrap(); 2889 n3 && this.focusTrap.pause(), a3 && this.focusTrap.unpause(); 2890 } else e3.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap()); 2891 } }, { key: "componentWillUnmount", value: function() { 2892 this.deactivateTrap(); 2893 } }, { key: "render", value: function() { 2894 var e3 = this, t3 = this.props.children ? i.default.Children.only(this.props.children) : void 0; 2895 if (t3) { 2896 if (t3.type && t3.type === i.default.Fragment) throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element."); 2897 return i.default.cloneElement(t3, { ref: function(o3) { 2898 var n3 = e3.props.containerElements; 2899 t3 && (pt >= 19 ? "function" == typeof t3.props.ref ? t3.props.ref(o3) : t3.props.ref && (t3.props.ref.current = o3) : "function" == typeof t3.ref ? t3.ref(o3) : t3.ref && (t3.ref.current = o3)), e3.focusTrapElements = n3 || [o3]; 2900 } }); 2901 } 2902 return null; 2903 } }]) && it(o2.prototype, n2), a2 && it(o2, a2), Object.defineProperty(o2, "prototype", { writable: false }), o2; 2904 var o2, n2, a2; 2905 }(); 2906 bt.defaultProps = { active: true, paused: false, focusTrapOptions: {}, _createFocusTrap: _t }; 2907 var ht = bt, ft = bt; 2908 ht.FocusTrap = ft;
2909 var gt = "modal-module__modal-backdrop_9322_AqOrY", vt = "modal-module__modal_9322_hoxHH", xt = "modal-module__modal-content_9322_vBa5d", yt = "modal-module__close_9322_Y-bSW", kt = "modal-module__datepickerContainer_9322_pVcus", wt = "modal-module__button-container_9322_iXcFY", Nt = "modal-module__button_9322_uAc6i", Ct = "modal-module__resetButton_9322_xoO21", jt = "modal-module__datepicker_9322_mkGeX"; 2910 c(".modal-module__modal-backdrop_9322_AqOrY{backdrop-filter:blur(1px);background-color:#1c1c1c80;height:100%;left:0;position:fixed;top:0;width:100%}.modal-module__modal_9322_hoxHH{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:999}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d{background-color:var(--bc-background-color);max-height:100vh;max-width:100vw;overflow-y:auto;padding:1.5rem;position:relative}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__close_9322_Y-bSW{font-size:1.5rem;position:absolute;right:.25rem;top:.25rem}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__datepickerContainer_9322_pVcus{display:flex;flex-wrap:wrap;margin-top:1rem}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__button-container_9322_iXcFY{display:flex;justify-content:flex-end;margin-top:1rem}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__button-container_9322_iXcFY .modal-module__button_9322_uAc6i{margin-right:.5rem;margin-top:.5rem}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__button-container_9322_iXcFY .modal-module__button_9322_uAc6i.modal-module__resetButton_9322_xoO21{padding:1.3rem 1.5rem}.modal-module__modal_9322_hoxHH .modal-module__modal-content_9322_vBa5d .modal-module__datepicker_9322_mkGeX:first-of-type{margin-right:1rem}"); 2911 var Tt = function(o2) { 2912 var n2, a2, r2, l2, c2, d2, s2 = o2.closeTextAria, m2 = void 0 === s2 ? "Lukk" : s2, p2 = _(o2, ["closeTextAria"]), b2 = t.useRef(null), f2 = t.useRef(null), g2 = i.default.useState(null !== (n2 = p2.startDate) && void 0 !== n2 ? n2 : p2.defaultStartDate), v2 = g2[0], x2 = g2[1], y2 = i.default.useState(null !== (a2 = p2.endDate) && void 0 !== a2 ? a2 : p2.defaultEndDate), k2 = y2[0], w2 = y2[1]; 2913 t.useEffect(function() {
2914 x2(p2.startDate), w2(p2.endDate); 2915 }, [p2.startDate, p2.endDate]); 2916 var N2 = function() { 2917 p2.setOpen(false); 2918 }; 2919 return e.jsx(ht, u({ active: p2.open }, { children: e.jsxs("div", u({ className: "".concat(h, "-daterangepicker-modal ").concat(vt), onClick: function(e2) { 2920 e2.stopPropagation(); 2921 }, onKeyDown: function(e2) { 2922 "Escape" === e2.key && N2(); 2923 } }, { children: [e.jsx("div", { className: gt, onClick: N2 }), e.jsxs("div", u({ className: "".concat(h, "-daterangepicker-modal-content ").concat(xt) }, { children: [e.jsx(Q, u({ appearance: "icon", className: yt, onClick: N2, "aria-label": m2 }, { children: e.jsx(q, { icon: "ri-close-line" }) })), e.jsxs("div", u({ className: kt, onChange: function(e2) { 2924 return e2.stopPropagation(); 2925 } }, { children: [e.jsx(pe, u({ ref: b2, className: jt, defaultValue: p2.defaultStartDate, rangeDate: k2 && !X(k2) || v2 && !X(v2) ? v2 : k2, theme: p2.theme, value: v2 && X(v2) ? v2 : void 0, onChange: function(e2) { 2926 return x2("string" != typeof e2 ? J(e2) : e2); 2927 } }, p2.datePickerStartProps)), e.jsx(pe, u({ ref: f2, defaultValue: p2.defaultEndDate, className: jt, rangeDate: v2 && !X(v2) || k2 && !X(k2) ? k2 : v2, theme: p2.theme, value: k2 && X(k2) ? k2 : void 0, onChange: function(e2) { 2928 return w2("string" != typeof e2 ? J(e2) : e2); 2929 } }, p2.datePickerEndProps))] })), e.jsxs("div", u({ className: wt }, { children: [e.jsx(Q, u({ className: "".concat(Nt, " ").concat(Ct, " "), appearance: "link", type: "reset", onClick: function() { 2930 b2 && b2.current && b2.current.reset && b2.current.reset(), f2 && f2.current && f2.current.reset && f2.current.reset(); 2931 var e2 = p2.defaultStartDate && p2.defaultStartDate instanceof Date ? J(p2.defaultStartDate) : p2.defaultStartDate, t2 = p2.defaultEndDate && p2.defaultEndDate instanceof Date ? J(p2.defaultEndDate) : p2.defaultEndDate; 2932 x2(e2), w2(t2); 2933 } }, { children: null !== (l2 = null === (r2 = p2.texts) || void 0 === r2 ? void 0 : r2.resetButton) && void 0 !== l2 ? l2 : "Nullstille" })), e.jsx(Q, u({ className: Nt, onClick: function() { 2934 var e2 = v2 && v2 instanceof Date ? J(v2) : v2, t2 = k2 && k2 instanceof Date ? J(k2) : k2; 2935 N2(), p2.setDates(e2, t2), p2.setTriggerEvent(true); 2936 } }, { children: null !== (d2 = null === (c2 = p2.texts) || void 0 === c2 ? void 0 : c2.closeButton) && void 0 !== d2 ? d2 : "Ferdig" }))] }))] }))] })) })); 2937 }, Pt = { base: "dateRangePicker-module__base_9322_uAV-a", labels: "dateRangePicker-module__labels_9322_G3LmG", label: "dateRangePicker-module__label_9322_KGJv4", labelEnd: "dateRangePicker-module__labelEnd_9322_pZxdJ", inputs: "dateRangePicker-module__inputs_9322_WF1f0", inputContainer: "dateRangePicker-module__inputContainer_9322_D4IFi", input: "dateRangePicker-module__input_9322_UKh-T", "hidden-labels": "dateRangePicker-module__hidden-labels_9322_RFBRc", eventInput: "dateRangePicker-module__eventInput_9322_uHmEQ" }; 2938 function St(e2, t2) { 2939 void 0 === t2 && (t2 = "abcdefghijklmnopqrstuvxyz123456789"); 2940 for (var o2 = "", n2 = 0; n2 < e2; n2++) o2 += t2.charAt(Math.floor(Math.random() * t2.length)); 2941 return o2; 2942 } 2943 c(".dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__labels_9322_G3LmG{align-items:center;display:flex;justify-content:flex-start;width:100%}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__labels_9322_G3LmG .dateRangePicker-module__labelEnd_9322_pZxdJ,.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__labels_9322_G3LmG .dateRangePicker-module__label_9322_KGJv4{margin-bottom:.25rem;width:100%}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__inputs_9322_WF1f0{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;justify-content:flex-start;width:100%}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__inputs_9322_WF1f0 .dateRangePicker-module__inputContainer_9322_D4IFi .dateRangePicker-module__input_9322_UKh-T{margin:0;width:100%}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__inputs_9322_WF1f0 .dateRangePicker-module__inputContainer_9322_D4IFi .dateRangePicker-module__input_9322_UKh-T input{cursor:pointer;font-size:1rem;margin:0}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__inputs_9322_WF1f0 .dateRangePicker-module__inputContainer_9322_D4IFi .dateRangePicker-module__input_9322_UKh-T input::-webkit-calendar-picker-indicator{font-size:1.5rem;pointer-events:none}.dateRangePicker-module__base_9322_uAV-a.dateRangePicker-module__width--auto_9322_-4Wxn .dateRangePicker-module__inputs_9322_WF1f0{justify-content:start}.dateRangePicker-module__base_9322_uAV-a.dateRangePicker-module__width--auto_9322_-4Wxn .dateRangePicker-module__inputs_9322_WF1f0 .dateRangePicker-module__input_9322_UKh-T,.dateRangePicker-module__base_9322_uAV-a.dateRangePicker-module__width--auto_9322_-4Wxn .dateRangePicker-module__inputs_9322_WF1f0 .dateRangePicker-module__input_9322_UKh-T input{width:auto}.dateRangePicker-module__base_9322_uAV-a.dateRangePicker-module__hidden-labels_9322_RFBRc .dateRangePicker-module__labels_9322_G3LmG{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.dateRangePicker-module__base_9322_uAV-a .dateRangePicker-module__eventInput_9322_uHmEQ{display:none}"); 2944 var Dt = { base: "input-module__base_9322_pzGvo", container: "input-module__container_9322_HHqh-", showPasswordbutton: "input-module__showPasswordbutton_9322_unitM", inputTypeText: "input-module__inputTypeText_9322_c-Dq5", clearButton: "input-module__clearButton_9322_eEtzK", text: "input-module__text_9322_1IF-e", counter: "input-module__counter_9322_JaxwJ", "error-text": "input-module__error-text_9322_66CKY", error: "input-module__error_9322_UMV5s", "theme--dark": "input-module__theme--dark_9322_VzdDM", sublabel: "input-module__sublabel_9322_ehYi3", hiddenLabel: "
2944input-module__hiddenLabel_9322_F-TU4" }; 2945 c(".input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__showPasswordbutton_9322_unitM{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input:focus{background-color:var(--bc-background-color);border-color:var(--bc-basic-color-500);color:var(--bc-basic-color-500)}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input[disabled],.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input[readonly]{background-color:var(--bc-background-color);color:var(--basic-color-300);cursor:not-allowed}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input::-ms-clear{display:none}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input:-ms-input-placeholder,.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input::-moz-placeholder,.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input::-webkit-input-placeholder,.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.input-module__base_9322_pzGvo label{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.input-module__base_9322_pzGvo{margin-top:.5rem}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh-{position:relative}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input{padding:0 1rem}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- input.input-module__inputTypeText_9322_c-Dq5{padding-right:2.5rem}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__clearButton_9322_eEtzK{font-size:1.6em;font-weight:700;height:fit-content;padding:0}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__clearButton_9322_eEtzK,.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__showPasswordbutton_9322_unitM{background-color:initial;border:none;cursor:pointer;position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__showPasswordbutton_9322_unitM.input-module__text_9322_1IF-e{text-decoration:underline}.input-module__base_9322_pzGvo .input-module__container_9322_HHqh- .input-module__showPasswordbutton_9322_unitM i{font-size:1.3rem}.input-module__base_9322_pzGvo label{display:block;padding:0 0 .5rem}.input-module__base_9322_pzGvo label span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:.5rem}.input-module__base_9322_pzGvo p{font-size:medium;margin:2px 0 0;width:fit-content}.input-module__base_9322_pzGvo .input-module__counter_9322_JaxwJ{float:right}.input-module__base_9322_pzGvo .input-module__error-text_9322_66CKY{color:var(--bc-danger-color-500)}.input-module__base_9322_pzGvo.input-module__error_9322_UMV5s{padding-bottom:0}.input-module__base_9322_pzGvo.input-module__error_9322_UMV5s input{border:none;outline:1px solid var(--bc-danger-color-500)}.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM input,.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM input:focus,.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM input:hover{background-color:initial;color:#fff}.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM .input-module__sublabel_9322_ehYi3,.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM label,.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM label span,.input-module__base_9322_pzGvo.input-module__theme--dark_9322_VzdDM p{color:#fff}.input-module__base_9322_pzGvo.input-module__hiddenLabel_9322_F-TU4 label{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}"); 2946 var At = t.forwardRef(function(o2, n2) { 2947 var a2, r2, i2, l2, c2, d2, s2, _2, m2 = null !== (a2 = o2.value) && void 0 !== a2 ? a2 : o2.defaultValue, p2 = t.createRef(), b2 = t.useState(m2 instanceof Date ? J(m2) : m2), f2 = b2[0], g2 = b2[1], v2 = t.useState(0), x2 = v2[0], y2 = v2[1], k2 = t.useState(""), w2 = k2[0], N2 = k2[1], C2 = t.useState(o2.type), j2 = C2[0], T2 = C2[1]; 2948 o2.value && !o2.onChange && console.warn("If a value is provided an onChange method is required."), t.useEffect(function() { 2949 var e2; 2950 o2.readOnly && (null === (e2 = p2.current) || void 0 === e2 || e2.addEventListener("touchstart", function() { 2951 return false;
2952 })); 2953 }, [o2.readOnly, p2]), t.useEffect(function() { 2954 T2(o2.type); 2955 }, [o2.type]), t.useEffect(function() { 2956 void 0 !== o2.value && g2(o2.value instanceof Date ? J(o2.value) : o2.value); 2957 }, [o2.value]), t.useEffect(function() { 2958 y2("string" == typeof f2 ? f2.length : "number" == typeof f2 ? f2.toString().length : 0); 2959 }, [f2]); 2960 var P2 = function() { 2961 var e2; 2962 if (o2.formValidation) { 2963 var t2 = _e("number" === o2.type ? parseFloat(f2) : f2, o2.formValidation); 2964 if (N2(""), t2 && t2.error) return N2(null !== (e2 = t2.error) && void 0 !== e2 ? e2 : ""), t2.error; 2965 } 2966 return false; 2967 }, S2 = function() { 2968 return g2(m2 instanceof Date ? J(m2) : m2); 2969 }; 2970 t.useImperativeHandle(n2, function() { 2971 return { type: "Input", setValue: {}, getValue: function() { 2972 var e2; 2973 return null === (e2 = p2.current) || void 0 === e2 ? void 0 : e2.value; 2974 }, getName: function() { 2975 return o2.name; 2976 }, getLabel: function() { 2977 return o2.labelText; 2978 }, getNativeRef: function() { 2979 return p2; 2980 }, focus: function() { 2981 var e2; 2982 return null === (e2 = null == p2 ? void 0 : p2.current) || void 0 === e2 ? void 0 : e2.focus(); 2983 }, reset: S2, validate: P2 }; 2984 }); 2985 var D2, A2 = t.useCallback(function(e2) { 2986 var t2, o3; 2987 if (p2.current) { 2988 var n3 = null === (t2 = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) || void 0 === t2 ? void 0 : t2.set; 2989 null == n3 || n3.call(p2.current, e2); 2990 var a3 = new Event("input", { bubbles: true }); 2991 null === (o3 = p2.current) || void 0 === o3 || o3.dispatchEvent(a3); 2992 } 2993 }, [p2]), E2 = t.useCallback(function() { 2994 o2.onCleared && o2.onCleared(), g2(""), A2(""); 2995 }, [o2, A2]); 2996 D2 = o2.formValidation && o2.formValidation.required && (null === (r2 = o2.formValidation) || void 0 === r2 ? void 0 : r2.required.data) ? null !== (i2 = o2.requiredText) && void 0 !== i2 ? i2 : "(påkrevd)" : null !== (l2 = o2.notRequiredText) && void 0 !== l2 ? l2 : ""; 2997 var R2 = ["".concat(h, "-content-input")]; 2998 w2 && R2.push("".concat(h, "-content-input--error")), o2.theme && R2.push("theme--".concat(o2.theme)), o2.className && R2.push(o2.className), R2.push(Dt.base), o2.theme && R2.push("".concat(Dt["theme--" + o2.theme])), w2 && R2.push(Dt.error), o2.hiddenLabel && R2.push(Dt.hiddenLabel); 2999 var I2 = null !== (c2 = o2.id) && void 0 !== c2 ? c2 : "".concat(h, "-content-input-").concat(o2.name, "-").concat(St(5)); 3000 return e.jsxs("div", u({ className: R2.join(" ") }, { children: [o2.labelText && e.jsxs("label", u({ htmlFor: I2, className: "".concat(h, "-content-input-label") }, { children: [o2.labelText, e.jsx("span", { children: D2 })] })), o2.subLabelText && e.jsxs("span", u({ className: "".concat(h, "-content-input-sublabel ").concat(Dt.sublabel), id: I2 + "-sublabel" }, { children: [o2.subLabelText, " "] })), e.jsxs("div", u({ className: "".concat(h, "-content-input-container ").concat(Dt.container) }, { children: [e.jsx("input", { id: I2, className: "text" === o2.type ? Dt.inputTypeText : void 0, type: j2, placeholder: o2.placeholderText, disabled: o2.disabled, readOnly: o2.readOnly, onChange: function(e2) { 3001 g2(e2.target.value), o2.onChange && o2.onChange(e2); 3002 }, onClick: o2.onClick, onKeyDown: o2.onKeyDown, onTouchStart: o2.onTouchStart, spellCheck: o2.spellCheck, autoComplete: null !== (d2 = o2.autocomplete) && void 0 !== d2 ? d2 : "off", maxLength: o2.maxCharacters, minLength: o2.minCharacters, "aria-invalid": "" !== w2, value: f2, step: o2.step, name: o2.name, title: o2.title, min: o2.min, max: o2.max, ref: p2, "aria-errormessage": "" !== w2 ? I2 + "-error" : void 0, "aria-labelledby": o2.labelText ? void 0 : o2.labelledBy, "aria-describedby": null !== (s2 = o2["aria-describedby"]) && void 0 !== s2 ? s2 : o2.subLabelText ? I2
3002+ "-sublabel" : void 0 }), "password" === o2.type && o2.showHideShow && e.jsx("button", u({ onClick: function() { 3003 T2("password" === j2 ? "text" : "password"); 3004 }, type: "button", className: [Dt.showPasswordbutton, o2.showHideIcon ? "icon" : "text"].join(" ") }, { children: o2.showHideIcon ? e.jsx(q, { icon: "password" == j2 ? "ri-eye-line" : "ri-eye-off-line" }) : null !== (_2 = o2.hideShowText) && void 0 !== _2 ? _2 : "Vis/skjul" })), o2.clearButton && f2 && e.jsx("button", u({ className: Dt.clearButton, title: o2.clearButtonTitle, "aria-label": o2.clearButtonTitle, "data-clear-input": true, onClick: E2 }, { children: "×" }))] })), o2.showCounter && e.jsxs("p", u({ className: "".concat(h, "-content-input-counter ").concat(Dt.counter) }, { children: [x2, " / ", o2.maxCharacters] })), "" !== w2 && e.jsx("p", u({ className: "".concat(h, "-content-input-error ").concat(Dt["error-text"]), id: I2 + "-error" }, { children: w2 }))] })); 3005 }), Et = function(t2) { 3006 var o2, n2, a2 = function(e2) { 3007 t2.disableOnMobile && t2.width < 768 || (e2.preventDefault(), e2.stopPropagation(), t2.setOpen(true)); 3008 }, r2 = void 0, i2 = void 0; 3009 return r2 = t2.inputFromDateName ? t2.inputFromDateName : t2.name ? t2.name + "-start" : void 0, i2 = t2.inputToDateName ? t2.inputToDateName : t2.name ? t2.name + "-end" : void 0, e.jsxs("div", u({ className: "".concat(h, "-daterangepicker-inputs ").concat(Pt.inputs), onChange: function(e2) { 3010 e2.stopPropagation(), e2.preventDefault(), t2.setTriggerEvent(true); 3011 } }, { children: [e.jsxs("div", u({ className: "".concat(h, "-daterangepicker-input ").concat(Pt.inputContainer) }, { children: [t2.labelText && e.jsx("div", u({ className: "".concat(h, "-daterangepicker-labels ").concat(Pt.labels) }, { children: e.jsx("label", u({ htmlFor: t2.id + "-input-start", className: "".concat(h, "-daterangepicker-label ").concat(Pt.label) }, { children: t2.labelText })) })), e.jsx(At, { id: t2.id + "-input-start", type: "date", className: Pt.input, theme: t2.theme, name: r2, value: t2.startDate, onChange: function(e2) { 3012 return t2.setStartDate(e2.target.value); 3013 }, onClick: a2, onKeyDown: t2.onKeyDown, ref: t2.startInputRef, formValidation: t2.formValidationStart, defaultValue: J(new Date(null !== (o2 = t2.defaultStartDate) && void 0 !== o2 ? o2 : "")) })] })), e.jsxs("div", u({ className: "".concat(h, "-daterangepicker-input ").concat(Pt.inputContainer) }, { children: [t2.labelEndText && e.jsx("div", u({ className: "".concat(h, "-daterangepicker-labels ").concat(Pt.labels) }, { children: e.jsx("label", u({ htmlFor: t2.id + "-input-end", className: "".concat(h, "-daterangepicker-label ").concat(Pt.label, " ").concat(Pt.labelEnd) }, { children: t2.labelEndText })) })), e.jsx(At, { id: t2.id + "-input-end", type: "date", className: Pt.input, theme: t2.theme, name: i2, value: t2.endDate, onChange: function(e2) { 3014 return t2.setEndDate(e2.target.value); 3015 }, onClick: a2, onKeyDown: t2.onKeyDown, ref: t2.endInputRef, formValidation: t2.formValidationEnd, defaultValue: J(new Date(null !== (n2 = t2.defaultEndDate) && void 0 !== n2 ? n2 : "")) })] }))] })); 3016 }, Rt = t.forwardRef(function(n2, a2) { 3017 var r2, i2, l2, c2, d2, s2, _2, m2 = null !== (i2 = null !== (r2 = n2.startDate) && void 0 !== r2 ? r2 : n2.defaultStartDate) && void 0 !== i2 ? i2 : void 0, p2 = null !== (c2 = null !== (l2 = n2.endDate) && void 0 !== l2 ? l2 : n2.defaultEndDate) && void 0 !== c2 ? c2 : void 0, b2 = t.useState(false), f2 = b2[0], g2 = b2[1], v2 = t.useState(m2), x2 = v2[0], y2 = v2[1], k2 = t.useState(p2), w2 = k2[0], N2 = k2[1], C2 = t.useState(window.innerWidth), j2 = C2[0], T2 = C2[1], P2 = t.useState(false), S2 = P2[0], D2 = P2[1], A2 = t.useRef(null), E2 = t.useRef(null), R2 = t.useRef(null), I2 = t.useRef(null); 3018 t.useEffect(function() { 3019 y2(m2), N2(p2); 3020 }, [m2, p2]), t.useEffect(function() { 3021 var e2 = function() { 3022 return T2(window.innerWidth); 3023 }; 3024 return window.addEventListener("resize", e2), function() { 3025 window.removeEventListener("resize", e2); 3026 }; 3027 }, []), t.useEffect(function() { 3028 var e2; 3029 if (S2) { 3030 var t2 = new Event("change", { bubbles: true }); 3031 null === (e2 = I2.current) || void 0 === e2 || e2.dis
3031patchEvent(t2), D2(false); 3032 } 3033 }, [S2]); 3034 var M2 = function() { 3035 var e2, t2, o2, a3, r3, i3; 3036 return !(!n2.formValidationStart && !n2.formValidationEnd) && (null !== (i3 = null !== (o2 = null === (t2 = null === (e2 = E2.current) || void 0 === e2 ? void 0 : e2.validate) || void 0 === t2 ? void 0 : t2.call(e2)) && void 0 !== o2 ? o2 : null === (r3 = null === (a3 = R2.current) || void 0 === a3 ? void 0 : a3.validate) || void 0 === r3 ? void 0 : r3.call(a3)) && void 0 !== i3 && i3); 3037 }, z2 = function() { 3038 var e2, t2, o2, a3; 3039 y2(n2.defaultStartDate), N2(n2.defaultEndDate), null === (t2 = null === (e2 = E2.current) || void 0 === e2 ? void 0 : e2.reset) || void 0 === t2 || t2.call(e2), null === (a3 = null === (o2 = R2.current) || void 0 === o2 ? void 0 : o2.reset) || void 0 === a3 || a3.call(o2); 3040 }, L2 = function(e2, t2) { 3041 y2(e2), N2(t2), D2(true); 3042 }, F2 = function() { 3043 var e2, t2, o2, a3; 3044 if (n2.inputFromDateName && n2.inputToDateName) { 3045 var r3 = {}; 3046 r3[n2.inputFromDateName] = null !== (e2 = x2 instanceof Date ? J(x2) : x2) && void 0 !== e2 ? e2 : ""; 3047 var i3 = {}; 3048 return i3[n2.inputToDateName] = null !== (t2 = w2 instanceof Date ? J(w2) : w2) && void 0 !== t2 ? t2 : "", [r3, i3]; 3049 } 3050 return [null !== (o2 = x2 instanceof Date ? J(x2) : x2) && void 0 !== o2 ? o2 : "", null !== (a3 = w2 instanceof Date ? J(w2) : w2) && void 0 !== a3 ? a3 : ""]; 3051 }; 3052 t.useImperativeHandle(a2, function() { 3053 return { setValue: L2, getValue: F2, getName: function() { 3054 return n2.name; 3055 }, getLabel: function() { 3056 return n2.labelText; 3057 }, getNativeRef: function() { 3058 return A2; 3059 }, focus, type: "DateRangePicker", validate: M2, reset: z2 }; 3060 }); 3061 var O2 = "".concat(h, "-daterangepicker"), B2 = [n2.className, O2, Pt.base]; 3062 "AutoWidth" === n2.width ? B2.push("".concat(O2, "-width--auto")) : B2.push("".concat(O2, "-width--full ").concat(Pt["with--full"])), n2.hiddenLabels && B2.push("".concat(O2, "-hidden-labels ").concat(Pt["hidden-labels"])); 3063 var H2 = "daterangepicker-".concat(St(5), "-").concat(null !== (d2 = n2.id) && void 0 !== d2 ? d2 : ""); 3064 return e.jsxs("div", { children: [e.jsxs("div", u({ id: H2, className: B2.join(" "), ref: A2 }, { children: [e.jsx("select", { className: Pt.eventInput, title: "eventInput", ref: I2, name: "eventInput", onChange: function() { 3065 return null; 3066 } }), e.jsx(Et, { id: H2, inputFromDateName: n2.inputFromDateName, inputToDateName: n2.inputToDateName, setOpen: g2, theme: null !== (s2 = n2.theme) && void 0 !== s2 ? s2 : "light", startDate: x2, endDate: w2, setStartDate: y2, setEndDate: N2, labelText: n2.labelText, labelEndText: n2.labelEndText, startInputRef: E2, endInputRef: R2, formValidationStart: n2.formValidationStart, formValidationEnd: n2.formValidationEnd, onKeyDown: function(e2) { 3067 " " !== e2.key || n2.disableOnMobile && j2 < 768 || (e2.preventDefault(), e2.stopPropagation(), g2(true)); 3068 }, disableOnMobile: n2.disableOnMobile, defaultEndDate: n2.defaultEndDate, defaultStartDate: n2.defaultStartDate, width: j2, setTriggerEvent: D2 })] })), f2 && o.createPortal(e.jsx(Tt, { defaultStartDate: n2.defaultStartDate, defaultEndDate: n2.defaultEndDate, startDate: x2, endDate: w2, theme: null !== (_2 = n2.theme) && void 0 !== _2 ? _2 : "light", datePickerStartProps: n2.datePickerStartProps, datePickerEndProps: n2.datePickerEndProps, open: f2, setTriggerEvent: D2, setOpen: g2, texts: n2.texts, reset: function() { 3069 return false; 3070 }, setDates: function(e2, t2) { 3071 y2(null != e2 ? e2 : ""), N2(null != t2 ? t2 : ""); 3072 } }), document.body)] }); 3073 }), It = { base: "radioDateRangePicker-module__base_9322_ohXet", radioGroup: "radioDateRangePicker-module__radioGroup_9322_WZu2b" }; 3074 c(".radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__labels_9322_KLU5Y{align-items:center;display:flex;justify-content:flex-start;width:100%}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__labels_9322_KLU5Y .radioDateRangePicker-module__labelEnd_9322_o2AWd,.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__labels_9322_KLU5Y .radioDateRangePicker-module__label_9322_HAKzH{margin-bottom:.25rem;width:100%}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__inputs_9322_Nxen-{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;justify-content:flex-start;width:100%}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__inputs_9322_Nxen- .radioDateRangePicker-module__inputContainer_9322_GOZHj .radioDateRangePicker-module__input_9322_alO-M{margin:0;width:100%}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__inputs_9322_Nxen- .radioDateRangePicker-module__inputContainer_9322_GOZHj .radioDateRangePicker-module__input_9322_alO-M input{cursor:pointer;font-size:1rem;margin:0}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__inputs_9322_Nxen- .radioDateRangePicker-module__inputContainer_9322_GOZHj .radioDateRangePicker-module__input_9322_alO-M input::-webkit-calendar-picker-indicator{font-size:1.5rem;pointer-events:none}.radioDateRangePicker-module__base_9322_ohXet.radioDateRangePicker-module__width--auto_9322_6CyhL .radioDateRangePicker-module__inputs_9322_Nxen-{justify-content:start}.radioDateRangePicker-module__base_9322_ohXet.radioDateRangePicker-module__width--auto_9322_6CyhL .radioDateRangePicker-module__inputs_9322_Nxen- .radioDateRangePicker-module__input_9322_alO-M,.radioDateRangePicker-module__base_9322_ohXet.radioDateRangePicker-module__width--auto_9322_6CyhL .radioDateRangePicker-module__inputs_9322_Nxen- .radioDateRangePicker-module__input_9322_alO-M input{width:auto}.radioDateRangePicker-module__base_9322_ohXet.radioDateRangePicker-module__hidden-labels_9322_zufub .radioDateRangePicker-module__labels_9322_KLU5Y{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__eventInput_9322_Spp3r{display:none}.radioDateRangePicker-module__base_9322_ohXet .radioDateRangePicker-module__radioGroup_9322_WZu2b{margin-bottom:1rem}"); 3075 var Mt = { base: "radio-module__base_9322_URRqW", "--color-label": "radio-module__--color-label_9322_BKzqJ", "variant--inset": "radio-module__variant--inset_9322_zTG89", "variant--grow": "radio-module__variant--grow_9322_43SGd", "theme--dark": "radio-module__theme--dark_9322_apSqG" }; 3076 c('.radio-module__base_9322_URRqW,.radio-module__base_9322_URRqW label{align-items:center;display:flex;flex-direction:row}.radio-module__base_9322_URRqW label{margin:0;position:relative}.radio-module__base_9322_URRqW label>input[type=radio]{cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:100%}.radio-module__base_9322_URRqW label>input[type=radio]:focus+div{outline:2px solid #000}.radio-module__base_9322_URRqW label>input[type=radio]+div{border:.125rem solid #000;border-radius:50%;content:"";display:inline-block;height:1.4rem;min-width:1.4rem;vertical-align:bottom;width:1.4rem}.radio-module__base_9322_URRqW label>input[type=radio]:checked+div{background:radial-gradient(var(--bc-c-action-primary) 0,var(--bc-c-action-primary) 40%,#0000 50%,#0000)}.radio-module__base_9322_URRqW label span{padding-left:1.5rem}.radio-module__base_9322_URRqW.radio-module__--color-label_9322_BKzqJ label>input[type=radio]:checked+*{color:var(--bc-c-action-primary)}.radio-module__base_9322_URRqW.radio-module__variant--inset_9322_zTG89 label>input[type=radio]:checked+div{background:#0000;box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);transition:all .25s linear}.radio-module__base_9322_URRqW.radio-module__variant--grow_9322_43SGd label>input[type=radio]:checked+div{background:var(--bc-c-action-primary);box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);box-shadow:none;transition:background .25s linear;-webkit-transition:background .25s linear}.radio-module__base_9322_URRqW.radio-module__theme--dark_9322_apSqG label{color:#fff}.radio-module__base_9322_URRqW.radio-module__theme--dark_9322_apSqG label>input[type=radio]:focus+div{outline:#fff}.radio-module__base_9322_URRqW.radio-module__theme--dark_9322_apSqG label>input[type=radio]:checked+div{background:radial-gradient(var(--bc-c-action-primary) 0,var(--bc-c-action-primary) 40%,#fff 50%,#fff)}'); 3077 var zt = t.forwardRef(function(o2, n2) { 3078 var a2, r2 = _(o2, []), i2 = t.createRef(), l2 = function() { 3079 return r2.value; 3080 }, c2 = function(e2) {
3081 r2.onChange && r2.onChange(e2); 3082 }, d2 = function() { 3083 var e2; 3084 return null === (e2 = i2.current) || void 0 === e2 ? void 0 : e2.checked; 3085 }, s2 = function() { 3086 var e2; 3087 return (null === (e2 = i2.current) || void 0 === e2 ? void 0 : e2.checked) ? r2.name : ""; 3088 }, m2 = function() { 3089 return r2.labelText; 3090 }, p2 = function() { 3091 return i2; 3092 }, b2 = function() { 3093 (null == i2 ? void 0 : i2.current) && i2.current.focus(); 3094 }; 3095 t.useImperativeHandle(n2, function() { 3096 return { setValue: {}, getValue: l2, getName: s2, getLabel: m2, setChecked: c2, isChecked: d2, formType: "radio", getNativeRef: p2, focus: b2, type: "Radio" }; 3097 }); 3098 var f2 = ["".concat(h, "-content-radio ").concat(Mt.base)]; 3099 f2.push("".concat(h, "-content-form-control")), f2.push("".concat(h, "-content-form-control--radio-button")), r2.status && f2.push("".concat(h, "-content-radio--").concat(r2.status)), r2.variant && f2.push("".concat(h, "-content-radio--variant-").concat(r2.variant, " ").concat(Mt["variant--" + r2.variant])), r2.colorLabel && f2.push("".concat(h, "-content-radio--color-label ").concat(Mt["--color-label"])), r2.theme && f2.push("".concat(h, "-content-radio--theme-").concat(r2.theme, " ").concat(Mt["theme--" + r2.theme])), r2.className && f2.push(r2.className); 3100 var g2 = "radio-".concat(St(5), "-").concat(null !== (a2 = r2.id) && void 0 !== a2 ? a2 : ""); 3101 return e.jsx("div", u({ className: f2.join(" "), "data-level": r2.level }, { children: e.jsxs("label", u({ htmlFor: g2, className: "".concat(h, "-content-radio-label") }, { children: [e.jsx("input", { id: g2, className: "".concat(h, "-content-form-radio"), ref: i2, checked: r2.checked, "data-level": r2.level, type: "radio", name: r2.name, value: r2.value, onChange: function(e2) { 3102 r2.onChange && r2.onChange(e2.currentTarget.checked); 3103 } }), e.jsx("div", {}), r2.labelText && e.jsx("span", { children: r2.labelText })] })) })); 3104 }), Lt = function(e2) { 3105 var o2 = -1, n2 = 0; 3106 return i.default.Children.forEach(e2, function(e3) { 3107 t.isValidElement(e3) && (e3.props.default && (o2 = n2), n2++); 3108 }), o2; 3109 }, Ft = t.createContext({}), Ot = function(e2) { 3110 var o2 = t.useContext(Ft), n2 = o2.open, a2 = o2.setOpen; 3111 return "function" == typeof e2.children ? e2.children(n2, a2) : e2.children; 3112 }, Bt = "collapsible-module__base_9322_G-rXb", Ht = "collapsible-module__header_9322_shnc9", Vt = "collapsible-module__title_9322_O5270", Gt = "collapsible-module__content_9322_YfhFS", Ut = "collapsible-module__--hidden_9322_dH4W7", Kt = "collapsible-module__buttonContainer_9322_0OUUZ"; 3113 c(".collapsible-module__base_9322_G-rXb .collapsible-module__header_9322_shnc9{cursor:pointer;display:flex;justify-content:space-between}.collapsible-module__base_9322_G-rXb .collapsible-module__header_9322_shnc9 .collapsible-module__title_9322_O5270{font-weight:700;margin:1em 0}.collapsible-module__base_9322_G-rXb .collapsible-module__--hidden_9322_dH4W7{display:none}.collapsible-module__base_9322_G-rXb .collapsible-module__buttonContainer_9322_0OUUZ{margin-top:.25rem}"); 3114 var Wt, Qt, qt = function(o2) { 3115 var n2, a2, r2 = t.useContext(Ft), i2 = r2.open, l2 = r2.setOpen, c2 = { type: "button", status: null !== (n2 = o2.buttonStatus) && void 0 !== n2 ? n2 : "secondary", appearance: null !== (a2 = o2.buttonVariant) && void 0 !== a2 ? a2 : "ghost" }, d2 = u(u({}, c2), o2.buttonProps); 3116 return e.jsxs("div", u({ id: o2.id, className: "".concat(h, "-content-collapsible-header ").concat(Ht), onClick: function() { 3117 return l2(function(e2) { 3118 return !e2; 3119 }); 3120 } }, { children: [o2.title && "" !== o2.title && e.jsx("div", u({ className: "".concat(h, "-content-collapsible-title ").concat(Vt) }, { children: o2.title })), o2.withButton && e.jsx("div", u({ className: "".concat(h, "-collapsible-button-container ").concat(Kt) }, { children: e.jsxs(Q, u({}
3120, d2, { "aria-controls": o2.ariaControlsId, "aria-expanded": i2 ? "true" : "false", onClick: function(e2) { 3121 e2.stopPropagation(), l2(function(e3) { 3122 return !e3; 3123 }); 3124 } }, { children: [i2 ? o2.closeText : o2.openText, o2.showChevron && (i2 ? e.jsx(q, { icon: "ri-arrow-up-s-line" }) : e.jsx(q, { icon: "ri-arrow-down-s-line" }))] })) }))] })); 3125 }; 3126 exports3.ComponentPadding = void 0, (Wt = exports3.ComponentPadding || (exports3.ComponentPadding = {}))[Wt.NotSet = 0] = "NotSet", Wt[Wt.None = 1] = "None", Wt[Wt.Top = 2] = "Top", Wt[Wt.Right = 4] = "Right", Wt[Wt.Bottom = 8] = "Bottom", Wt[Wt.Left = 16] = "Left", Wt[Wt.Topx2 = 32] = "Topx2", Wt[Wt.Rightx2 = 64] = "Rightx2", Wt[Wt.Bottomx2 = 128] = "Bottomx2", Wt[Wt.Leftx2 = 256] = "Leftx2", Wt[Wt.Topx3 = 512] = "Topx3", Wt[Wt.Rightx3 = 1024] = "Rightx3", Wt[Wt.Bottomx3 = 2048] = "Bottomx3", Wt[Wt.Leftx3 = 4096] = "Leftx3", Wt[Wt.Topx4 = 8192] = "Topx4", Wt[Wt.Rightx4 = 16384] = "Rightx4", Wt[Wt.Bottomx4 = 32768] = "Bottomx4", Wt[Wt.Leftx4 = 65536] = "Leftx4", Wt[Wt.Topx5 = 131072] = "Topx5", Wt[Wt.Rightx5 = 262144] = "Rightx5", Wt[Wt.Bottomx5 = 524288] = "Bottomx5", Wt[Wt.Leftx5 = 1048576] = "Leftx5", Wt[Wt.All = 30] = "All", Wt[Wt.Allx2 = 480] = "Allx2", Wt[Wt.Allx3 = 7680] = "Allx3", Wt[Wt.Allx4 = 122880] = "Allx4", Wt[Wt.Allx5 = 1966080] = "Allx5", exports3.CssVisibilityRange = void 0, (Qt = exports3.CssVisibilityRange || (exports3.CssVisibilityRange = {}))[Qt.None = 0] = "None", Qt[Qt.Mobile = 1] = "Mobile", Qt[Qt.Tablet = 2] = "Tablet", Qt[Qt.TabletDown = 3] = "TabletDown", Qt[Qt.Desktop = 4] = "Desktop", Qt[Qt.TabletUp = 6] = "TabletUp", Qt[Qt.All = 7] = "All", Qt[Qt.Print = 8] = "Print"; 3127 var Xt = function() { 3128 function e2() { 3129 } 3130 return e2.getNextClientID = function(e3, t2) { 3131 return void 0 === e3 && (e3 = ""), void 0 === t2 && this.clientID++, "".concat(h, "-").concat(e3, "-component-").concat(void 0 === t2 ? this.clientID : t2); 3132 }, e2.getNewID = function() { 3133 return this.lastId++, this.lastId; 3134 }, e2.getClassName = function(e3, t2) { 3135 return this.getClassNameAsArray(e3, t2).join(" "); 3136 }, e2.getClassNameAsArray = function(e3, t2) { 3137 var o2 = [], n2 = "".concat(h, "-").concat(e3); 3138 if (o2.push(n2), t2) {
3139 if (t2.variants && t2.variants.forEach(function(e4) { 3140 o2.push("".concat(n2, "--").concat(e4)); 3141 }), t2.visibilityHidden) { 3142 switch (t2.visibilityHidden) { 3143 case exports3.CssVisibilityRange.All: 3144 o2.push("".concat(h, "-visually-hidden")); 3145 break; 3146 case exports3.CssVisibilityRange.Mobile: 3147 o2.push("".concat(h, "-visually-hidden--mobile")); 3148 break; 3149 case exports3.CssVisibilityRange.Tablet: 3150 o2.push("".concat(h, "-visually-hidden--tablet")); 3151 break; 3152 case exports3.CssVisibilityRange.TabletDown: 3153 o2.push("".concat(h, "-visually-hidden--tablet-down")); 3154 break; 3155 case exports3.CssVisibilityRange.TabletUp: 3156 o2.push("".concat(h, "-visually-hidden--tablet-up")); 3157 break; 3158 case exports3.CssVisibilityRange.Desktop: 3159 o2.push("".concat(h, "-visually-hidden--desktop")); 3160 } 3161 delete t2.visibilityHidden; 3162 } 3163 t2.className && (o2.push(t2.className), delete t2.className), t2.size && (o2.push("".concat(h, "-size-").concat(t2.size)), delete t2.size), (t2.isPrimary || t2._isPrimary) && (o2.push("is-primary"), delete t2._isPrimary), (t2.isOpen || t2._isOpen) && (o2.push("is-open"), delete t2._isOpen), (t2.isToggled || t2._isToggled) && (o2.push("is-toggled"), delete t2._isToggled), (t2.isExpanded || t2._isExpanded) && (o2.push("is-expanded"), delete t2._isExpanded), t2.hasHover && (o2.push("has-hover"), delete t2.hover), t2.hasFocus && (o2.push("has-focus"), delete t2.hasFocus), t2.isClickable && (o2.push("is-clickable"), delete t2.isClickable), t2.isSelected && (o2.push("is-selected"), delete t2.isSelected), t2.isLoading && (o2.push("is-loading"), delete t2.isLoading), t2.columnWidth && (o2.push("".concat(h, "-").concat(e3, "--").concat(t2.columnWidth)), delete t2.columnWidth), t2.mobileColumnWidth && (o2.push("".concat(h, "-").concat(e3, "--mobile-").concat(t2.mobileColumnWidth)), delete t2.mobileColumnWidth), t2.tabletColumnWidth && (o2.push("".concat(h, "-").concat(e3, "--tablet-").concat(t2.tabletColumnWidth)), delete t2.tabletColumnWidth), t2.desktopColumnWidth && (o2.push("".concat(h, "-").concat(e3, "--desktop-").concat(t2.desktopColumnWidth)), delete t2.desktopColumnWidth), t2.padding && (o2.push.apply(o2, Yt("", t2.padding)), delete t2.padding), t2.mobilePadding && (o2.push.apply(o2, Yt("mobile", t2.mobilePadding)), delete t2.mobilePadding), t2.tabletPadding && (o2.push.apply(o2, Yt("tablet", t2.tabletPadding)), delete t2.tabletPadding), t2.desktopPadding && (o2.push.apply(o2, Yt("desktop", t2.desktopPadding)), delete t2.desktopPadding); 3164 } 3165 return o2; 3166 }, e2.clientID = 0, e2.lastId = 0, e2; 3167 }(), Yt = function(e2, t2) { 3168 var o2 = []; 3169 switch (t2) { 3170 case exports3.ComponentPadding.Top: 3171 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top")); 3172 break; 3173 case exports3.ComponentPadding.Right: 3174 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right")); 3175 break; 3176 case exports3.ComponentPadding.Bottom: 3177 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom")); 3178 break; 3179 case exports3.ComponentPadding.Left: 3180 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left")); 3181 break; 3182 case exports3.ComponentPadding.All: 3183 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom")); 3184 break; 3185 case exports3.ComponentPadding.Topx2: 3186 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-2")); 3187 break; 3188 case exports3.ComponentPadding.Rightx2: 3189 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-2")); 3190 break; 3191 case exports3.ComponentPadding.Bottomx2: 3192 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-2")); 3193 break; 3194 case exports3.ComponentPadding.Leftx2: 3195 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-2")); 3196 break; 3197 case exports3.ComponentPadding.Allx2: 3198 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-2")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-2")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-2")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-2")); 3199 break; 3200 case exports3.ComponentPadding.Topx3: 3201 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-3")); 3202 break; 3203 case exports3.ComponentPadding.Rightx3: 3204 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-3")); 3205 break; 3206 case exports3.ComponentPadding.Bottomx3: 3207 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-3")); 3208 break; 3209 case exports3.ComponentPadding.Leftx3: 3210 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-3")); 3211 break; 3212 case exports3.ComponentPadding.Allx3: 3213 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-3")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-3")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-3")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-3")); 3214 break; 3215 case exports3.ComponentPadding.Topx4: 3216 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-4")); 3217 break; 3218 case exports3.ComponentPadding.Rightx4: 3219 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-4")); 3220 break; 3221 case exports3.ComponentPadding.Bottomx4: 3222 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-4")); 3223 break; 3224 case exports3.ComponentPadding.Leftx4: 3225 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-4")); 3226 break; 3227 case exports3.ComponentPadding.Allx4: 3228 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-4")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-4")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-4")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-4")); 3229 break; 3230 case exports3.ComponentPadding.Topx5: 3231 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-5")); 3232 break; 3233 case exports3.ComponentPadding.Rightx5: 3234 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-5")); 3235 break; 3236 case exports3.ComponentPadding.Bottomx5: 3237 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-5")); 3238 break; 3239 case exports3.ComponentPadding.Leftx5: 3240 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-5")); 3241 break; 3242 case exports3.ComponentPadding.Allx5: 3243 o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "left-5")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "right-5")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "top-5")), o2.push("".concat(h, "-padding-").concat("" !== e2 ? e2 + "-" : "", "bottom-5")); 3244 } 3245 return o2; 3246 }, Jt = Object.assign(function(o2) { 3247 var n2, a2, i2 = o2.open, l2 = void 0 === i2 ? void 0 : i2, c2 = o2.mobileDefaultOpen, d2 = void 0 === c2 ? void 0 : c2, s2 = o2.openText, m2 = void 0 === s2 ? "Åpne" : s2, p2 = o2.closeText, b2 = void 0 === p2 ? "Lukk" : p2, f2 = o2.buttonVariant, g2 = void 0 === f2 ? "ghost" : f2, v2 = o2.buttonStatus, x2 = void 0 === v2 ? "secondary" : v2, y2 = o2.contentPosition, k2 = void 0 === y2 ? "bottom" : y2, w2 = o2.mobileWidth, N2 = void 0 === w2 ? 768 : w2, C2 = _(o2, ["open", "mobileDefaultOpen", "openText", "closeText", "buttonVariant", "buttonStatus", "contentPosition", "mobileWidth"]), j2 = null !== (n2 = C2.as) && void 0 !== n2 ? n2 : "div", T2 = r.useMemo(function() { 3248 return r.Children.toArray(C2.children).some(function(e2) { 3249 return r.isValidElement(e2) && (null == e2 ? void 0 : e2.type) === Ot; 3250 }); 3251 }, [C2.children]), P2 = t.useState(window.innerWidth < N2 ? null != d2 && d2 : null !== (a2 = C2.defaultOpen) && void 0 !== a2 && a2), S2 = P2[0], D2 = P2[1]; 3252 r.useEffect(function() { 3253 null != l2 && D2(l2); 3254 }, [l2]); 3255 var A2 = C2.id ? C2.id + "-content" : void 0, E2 = function() { 3256 var t2 = []; 3257 return S2 && t2.push("".concat(h, "-content-collapsible-content")), e.jsx("div", u({ className: "".concat(t2.join(" "), " ").concat(Gt), id: A2 }, { children: (S2 || C2.softHide) && e.jsx("div", u({ className: C2.
3257softHide && !S2 ? "".concat(h, "-content-collapsible--hidden ").concat(Ut) : "" }, { children: r.Children.map(C2.children, function(e2) { 3258 return r.isValidElement(e2) && (null == e2 ? void 0 : e2.type) === Ot ? null : e2; 3259 }) })) })); 3260 }, R2 = C2.id ? C2.id + "-header" : void 0, I2 = Xt.getClassNameAsArray("content-collapsible", C2); 3261 return C2.className && I2.push(C2.className), e.jsx(Ft.Provider, u({ value: { open: S2, setOpen: D2 } }, { children: e.jsxs(j2, u({ className: "".concat(I2.join(" "), " ").concat(Bt, " "), id: C2.id }, { children: ["top" === k2 && E2(), !T2 && e.jsx(qt, { id: R2, title: C2.title, withButton: C2.withButton, buttonProps: C2.buttonProps, buttonVariant: g2, buttonStatus: x2, openText: m2, closeText: b2, showChevron: C2.showChevron, ariaControlsId: A2 }), T2 && r.Children.map(C2.children, function(e2) { 3262 return r.isValidElement(e2) && (null == e2 ? void 0 : e2.type) === Ot ? e2 : null; 3263 }), "bottom" === k2 && E2()] })) })); 3264 }, { Header: Ot, Body: function(t2) { 3265 return e.jsx(e.Fragment, { children: t2.children }); 3266 } }), Zt = { base: "radioGroup-module__base_9322_UCQUg", label: "radioGroup-module__label_9322_PXSws", "direction--vertical": "radioGroup-module__direction--vertical_9322_BYX7M", radio: "radioGroup-module__radio_9322_StKSW", "direction--horizontal": "radioGroup-module__direction--horizontal_9322_8KusQ", sublabel: "radioGroup-module__sublabel_9322_Mq81C", collapsible: "radioGroup-module__collapsible_9322_hYNXh", error: "radioGroup-module__error_9322_tvKzO", "theme--dark": "radioGroup-module__theme--dark_9322_cVTB2" }; 3267 c(".radioGroup-module__base_9322_UCQUg .radioGroup-module__label_9322_PXSws{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.radioGroup-module__base_9322_UCQUg{width:100%}.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--vertical_9322_BYX7M .radioGroup-module__radio_9322_StKSW{margin:1rem 0}.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--vertical_9322_BYX7M .radioGroup-module__radio_9322_StKSW:first-child{margin-top:0}.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--vertical_9322_BYX7M .radioGroup-module__radio_9322_StKSW:last-child,.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--vertical_9322_BYX7M .radioGroup-module__radio_9322_StKSW:last-child label{margin-bottom:0}.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--horizontal_9322_8KusQ .radioGroup-module__radio_9322_StKSW{display:inline-block;margin-right:1rem}.radioGroup-module__base_9322_UCQUg.radioGroup-module__direction--horizontal_9322_8KusQ .radioGroup-module__radio_9322_StKSW:last-child{margin-right:0}.radioGroup-module__base_9322_UCQUg .radioGroup-module__label_9322_PXSws{display:block;padding:0 0 .5rem}.radioGroup-module__base_9322_UCQUg .radioGroup-module__label_9322_PXSws span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:.5rem}.radioGroup-module__base_9322_UCQUg .radioGroup-module__sublabel_9322_Mq81C{display:block;margin-bottom:.5rem}.radioGroup-module__base_9322_UCQUg .radioGroup-module__collapsible_9322_hYNXh{margin-top:0}.radioGroup-module__base_9322_UCQUg fieldset{border:none;margin:.5rem 0;padding:0}.radioGroup-module__base_9322_UCQUg fieldset:focus-within{outline:1px solid var(--bc-c-border-input);outline-offset:3px}.radioGroup-module__base_9322_UCQUg .radioGroup-module__error_9322_tvKzO{color:var(--bc-danger-color-500)}.radioGroup-module__base_9322_UCQUg.radioGroup-module__theme--dark_9322_cVTB2 label{color:#fff}"); 3268 var $t = { title: "", withButton: true, openText: "Vis flere", closeText: "Vis færre", showChevron: true, buttonVariant: "icon" }, eo = t.forwardRef(function(o2, n2) { 3269 var a2, r2, l2, c2, d2, s2, m2 = o2.direction, p2 = void 0 === m2 ? "vertical" : m2, b2 = _(o2, ["direction"]), f2 = t.useRef([]), g2 = t.useRef(Lt(b2.children)), v2 = t.useState(g2.current), x2 = v2[0], y2 = v2[1], k2 = t.useState(""), w2 = k2[0], N2 = k2[1], C2 = t.Children.map(b2.children, function(e2, o3) { 3270 var n3; 3271 if (t.isValidElement(e2)) { 3272 f2.current[o3] || (f2.current[o3] = t.createRef()); 3273 var a3 = u(u({}, e2.props), { ref: f2.current[o3], className: (e2.props.className ? e2.props.className + " " : "") + Zt.radio, name: b2.name, id: "radio-index-".concat(o3, "-").concat(St(5), "-").concat(null !== (n3 = e2.props.id) && void 0 !== n3 ? n3 : ""), checked: o3 === x2, onChange: function(e3) { 3274 e3 && (g2.current = o3, y2(o3)); 3275 } }); 3276 return t.cloneElement(e2, a3); 3277 } 3278 return e2; 3279 }); 3280 t.useEffect(function() {
3281 t.Children.forEach(b2.children, function(e2, o3) { 3282 return t.isValidElement(e2) && e2.props.checked && (g2.current = o3, y2(o3)), false; 3283 }); 3284 }, [b2.children]); 3285 var j2 = t.useCallback(function() { 3286 var e2; 3287 if (-1 !== g2.current) return null === (e2 = f2.current[g2.current].current) || void 0 === e2 ? void 0 : e2.getValue(); 3288 }, []); 3289 t.useEffect(function() { 3290 b2.onChange && void 0 !== j2() && b2.onChange(j2()); 3291 }, [j2, b2]); 3292 var T2, P2 = function() { 3293 return b2.name; 3294 }, S2 = function() { 3295 return b2.labelText; 3296 }, D2 = function() { 3297 var e2; 3298 f2.current.length && (null === (e2 = f2.current[0].current) || void 0 === e2 ? void 0 : e2.focus) && f2.current[0].current.focus(); 3299 }, A2 = function() { 3300 g2.current = Lt(b2.children), y2(g2.current); 3301 }, E2 = function() { 3302 return f2.current.length ? f2.current[0] : void 0; 3303 }, R2 = function() { 3304 var e2 = false; 3305 if (f2.current.forEach(function(t3) { 3306 var o3; 3307 if (t3 && t3.current && t3.current.validate) { 3308 var n3 = null === (o3 = null == t3 ? void 0 : t3.current) || void 0 === o3 ? void 0 : o3.validate(); 3309 n3 && (e2 = n3); 3310 } 3311 }), b2.formValidation) { 3312 var t2 = j2(); 3313 if (b2.formValidation.required && b2.formValidation.required.data && (N2(""), _e(t2, b2.formValidation))) return N2(b2.formValidation.required.errorMessage), b2.formValidation.required.errorMessage; 3314 } 3315 return e2; 3316 }; 3317 t.useImperativeHandle(n2, function() { 3318 return { setValue: {}, getValue: j2, getName: P2, getLabel: S2, reset: A2, getNativeRef: E2, focus: D2, type: "RadioGroup", validate: R2 }; 3319 }), T2 = b2.formValidation && b2.formValidation.required && (null === (a2 = b2.formValidation) || void 0 === a2 ? void 0 : a2.required.data) ? null !== (r2 = b2.requiredText) && void 0 !== r2 ? r2 : "(påkrevd)" : null !== (l2 = b2.notRequiredText) && void 0 !== l2 ? l2 : ""; 3320 var I2 = ["".concat(h, "-radiogroup ").concat(Zt.base)]; 3321 I2.push("".concat(h, "-radiogroup--direction-").concat(null != p2 ? p2 : "vertical", " ").concat(Zt["direction--" + (null != p2 ? p2 : "vertical")])), b2.theme && I2.push("".concat(h, "-radiogroup--theme-").concat(b2.theme, " ").concat(Zt["theme--dark"])), b2.className && I2.push(b2.className); 3322 var M2 = "radiogroup-fieldset-".concat(St(5), "-").concat(null !== (c2 = b2.id) && void 0 !== c2 ? c2 : ""), z2 = M2 + "-error", L2 = e.jsxs(e.Fragment, { children: [i.default.Children.toArray(C2).slice(0, null !== (d2 = b2.maxItemCount) && void 0 !== d2 ? d2 : i.default.Children.count(C2)), b2.maxItemCount && i.default.Children.count(C2) > b2.maxItemCount && e.jsx(Jt, u({ className: "".concat(h, "-radiogroup-collapsible ").concat(Zt.collapsible) }, null !== (s2 = b2.collapsibleProps) && void 0 !== s2 ? s2 : $t, { children: i.default.Children.toArray(C2).slice(b2.maxItemCount, i.default.Children.count(C2)) }))] }), F2 = e.jsxs("div", u({ className: I2.join(" ") }, { children: [e.jsxs("fieldset", u({ id: M2, "aria-describedby": b2.subLabelText ? M2 + "-sublabel" : void 0, "aria-errormessage": w2 ? z2 : void 0, "aria-invalid": w2 ? "true" : void 0 }, { children: [b2.labelText && e.jsxs("legend", u({ "aria-label": b2.uuLabelText, className: "".concat(h, "-radiogroup-label ").concat(Zt.label) }, { children: [b2.labelText, e.jsx("span", { children: T2 })] })), b2.subLabelText && e.jsx("div", { children: e.jsxs("span", u({ id: M2 + "-sublabel", className: "".concat(h, "-radiogroup-sublabel ").concat(Zt.sublabel) }, { children: [b2.subLabelText, " "] })) }), L2] })), "" !== w2 && e.jsx("p", u({ className: "".concat(h, "-radiogroup-error ").concat(Zt.error), id: z2 }, { children: w2 }))] })), O2 = e.jsxs("div", u({ className: I2.join(" ") }, { children: [L2, "" !== w2 && e.jsx("p", u({ className: "".concat(h, "-radiogroup-error ").concat(Zt.error) }, { children: w2 }))] })); 3323 return b2.labelText ? F2 : O2; 3324 }), to = t.forwardRef(function(o2, n2) { 3325 var a2, r2, i2 = o2.checkedIdentifier, l2 = o2.options, c2 = _(o2, ["checkedIdentifier", "options"]), d2 = t.useState(function() { 3326 return "other" === (null == i2 ? void 0 : i2.toLowerCase()); 3327 }), s2 = d2[0], m2 = d2[1], p2 = t.useState(function() { 3328 return null != i2 ? i2 : ""; 3329 }), b2 = p2[0], f2 = p2[1], g2 = t.useRef(null), v2 = t.useRef(null), x2 = t.useRef(null), y2 = null !== (a2 = null == l2 ? void 0 : l2.map(function(e2, t2) { 3330 var o3 = c2.name + "-" + e2.identifier + "-" + t2, n3 = "" === b2 && 0 === t2 || e2.identifier === b2; 3331 return { id: o3, labelText: e2.description, value: e2.identifier, default: "true" === e2.defaultValue, checked: n3 }; 3332 })) && void 0 !== a2 ? a2 : [], k2 = function() { 3333 var e2; 3334 return !!(null === (e2 = x2.current) || void 0 === e2 ? void 0 : e2.validate) && x2.current.validate(); 3335 }, w2 = function() { 3336 x2.current && x2.current.reset && x2.current.reset(), v2.current && v2.current.reset && v2.current.reset(); 3337 }, N2 = function(e2, t2) { 3338 var o3, n3; 3339 "function" == typeof (null === (o3 = x2.current) || void 0 === o3 ? void 0 : o3.setValue) && (null === (n3 = x2.current) || void 0 === n3 || n3.setValue(e2, t2)); 3340 }, C2 = function() { 3341 var e2, t2, o3, n3, a3, r3 = c2.defaultStartDate, i3 = c2.defaultEndDate, l3 = c2.startDate, d3 = c2.endD
3341ate, s3 = J(new Date(null !== (e2 = null != l3 ? l3 : r3) && void 0 !== e2 ? e2 : "")), u2 = J(new Date(null !== (t2 = null != d3 ? d3 : i3) && void 0 !== t2 ? t2 : "")), _2 = null !== (n3 = null === (o3 = x2.current) || void 0 === o3 ? void 0 : o3.getValue()) && void 0 !== n3 ? n3 : ["", ""]; 3342 return "" === _2[0] && "" === _2[1] && (_2[0] = X(s3) ? s3 : "", _2[1] = X(u2) ? u2 : ""), v2.current && _2.push(null !== (a3 = v2.current.getValue()) && void 0 !== a3 ? a3 : ""), _2; 3343 }; 3344 t.useImperativeHandle(n2, function() { 3345 return { setValue: N2, getValue: C2, getName: function() { 3346 return c2.name; 3347 }, getLabel: function() { 3348 return c2.labelText; 3349 }, getNativeRef: function() { 3350 return g2; 3351 }, focus, type: "RadioDateRangePicker", validate: k2, reset: w2 }; 3352 }); 3353 var j2 = ["".concat(h, "-radioDateRangePicker"), It.base], T2 = "radioDateRangePicker-".concat(St(5), "-").concat(null !== (r2 = c2.id) && void 0 !== r2 ? r2 : ""), P2 = function(e2) { 3354 m2("other" === e2.toLowerCase()), f2(e2); 3355 }; 3356 return t.useEffect(function() { 3357 P2(null != i2 ? i2 : ""); 3358 }, [i2]), e.jsxs("div", u({ id: T2, className: j2.join(" "), ref: g2 }, { children: [e.jsx(eo, u({ ref: v2, onChange: P2, className: It.radioGroup }, { children: y2.map(function(t2) { 3359 return e.jsx(zt, u({}, t2), t2.id); 3360 }) })), s2 && e.jsx(Rt, u({ ref: x2, className: It.dateRangePicker }, c2))] })); 3361 }), oo = { base: "modal-module__base_9322_na0C6", backdrop: "modal-module__backdrop_9322_uYIoQ", container: "modal-module__container_9322_VPbD6", closeIcon: "modal-module__closeIcon_9322_Phw3s", header: "modal-module__header_9322_nHiSn", body: "modal-module__body_9322_iImbA", footer: "modal-module__footer_9322_gr3nq", buttonClose: "modal-module__buttonClose_9322_WZs8c", buttonConfirm: "modal-module__buttonConfirm_9322_yltXx", "size--small": "modal-module__size--small_9322_uvd5y", "size--medium": "modal-module__size--medium_9322_hx8wp", "size--large": "modal-module__size--large_9322_wM6r9", "size--fullscreen": "modal-module__size--fullscreen_9322_wN0-A" }; 3362 c('.modal-module__base_9322_na0C6{height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1000}.modal-module__base_9322_na0C6 .modal-module__backdrop_9322_uYIoQ{backdrop-filter:blur(3px);background-color:hsla(0,0%,66%,.404);height:100vh;left:0;position:fixed;top:0;width:100vw}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6{background-color:var(--bc-background-color);box-shadow:0 0 10px #616161;display:flex;flex-direction:column;left:50%;margin-right:-50%;max-height:100vh;max-width:100vw;position:fixed;top:50%;transform:translate(-50%,-50%);width:fit-content;z-index:1001}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__closeIcon_9322_Phw3s{background-color:initial;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ny45NzEgNDcuOTcxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0Ny45NzEgNDcuOTcxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjguMjI4IDIzLjk4NiA0Ny4wOTIgNS4xMjJhMi45OTggMi45OTggMCAwIDAgMC00LjI0MiAyLjk5OCAyLjk5OCAwIDAgMC00LjI0MiAwTDIzLjk4NiAxOS43NDQgNS4xMjEuODhhMi45OTggMi45OTggMCAwIDAtNC4yNDIgMCAyLjk5OCAyLjk5OCAwIDAgMCAwIDQuMjQybDE4Ljg2NSAxOC44NjRMLjg3OSA0Mi44NWEyLjk5OCAyLjk5OCAwIDEgMCA0LjI0MiA0LjI0MWwxOC44NjUtMTguODY0TDQyLjg1IDQ3LjA5MWMuNTg2LjU4NiAxLjM1NC44NzkgMi4xMjEuODc5czEuNTM1LS4yOTMgMi4xMjEtLjg3OWEyLjk5OCAyLjk5OCAwIDAgMCAwLTQuMjQyTDI4LjIyOCAyMy45ODZ6Ii8+PC9zdmc+");background-repeat:no-repeat;border:none;cursor:pointer;height:13px;margin:5px;outline:none;position:absolute;right:10px;top:10px;width:13px}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__closeIcon_9322_Phw3s:focus,.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__closeIcon_9322_Phw3s:hover{border-radius:var(--bc-border-radius);outline:1px solid #000;outline-offset:2px;transform:scale(1.2);transition:all .2s}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__header_9322_nHiSn{flex-shrink:1;padding-left:1rem;padding-right:1rem}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__header_9322_nHiSn h1{font-size:26px;font-weight:400}@media only screen and (max-width:30em){.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__header_9322_nHiSn{padding:0 1rem}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__header_9322_nHiSn h1{margin:.5rem 0}}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__body_9322_iImbA{background-color:var(--bc-background-color);border-bottom:1px solid #d3d3d3;border-top:1px solid #d3d3d3;flex-grow:1;overflow-y:auto;padding:1rem}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq{display:flex;flex-direction:row;flex-shrink:1;margin:1rem;min-height:fit-content}@media only screen and (max-width:48em){.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq{min-height:fit-content}}.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonClose_9322_WZs8c,.modal
3362-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonConfirm_9322_yltXx{width:150px}@media only screen and (max-width:48em){.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonClose_9322_WZs8c,.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonConfirm_9322_yltXx{margin:0;min-height:80px;width:100%}}@media only screen and (max-width:30em){.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonClose_9322_WZs8c,.modal-module__base_9322_na0C6 .modal-module__container_9322_VPbD6 .modal-module__footer_9322_gr3nq .modal-module__buttonConfirm_9322_yltXx{min-height:3rem;padding:0}}.modal-module__base_9322_na0C6.modal-module__size--small_9322_uvd5y .modal-module__container_9322_VPbD6{width:450px}.modal-module__base_9322_na0C6.modal-module__size--medium_9322_hx8wp .modal-module__container_9322_VPbD6{width:800px}.modal-module__base_9322_na0C6.modal-module__size--large_9322_wM6r9 .modal-module__container_9322_VPbD6{width:1200px}.modal-module__base_9322_na0C6.modal-module__size--fullscreen_9322_wN0-A .modal-module__container_9322_VPbD6{height:90vh;width:90vw}@media only screen and (max-width:48em){.modal-module__base_9322_na0C6.modal-module__size--fullscreen_9322_wN0-A .modal-module__container_9322_VPbD6{height:98vh;width:98vw}}'); 3363 c("body.modal-open{overflow:hidden}@media only screen and (max-width:48em){body.modal-open{position:fixed;width:100vw}}"); 3364 var no = function(o2) { 3365 var n2 = o2.closeOnClickOutside, a2 = void 0 === n2 || n2, r2 = o2.variant, i2 = void 0 === r2 ? "dialog" : r2, l2 = o2.closeText, c2 = void 0 === l2 ? "Lukk" : l2, d2 = o2.yesText, s2 = void 0 === d2 ? "Ja" : d2, m2 = o2.noText, p2 = void 0 === m2 ? "Nei" : m2, b2 = o2.ariaDetailCloseTopButton, f2 = void 0 === b2 ? "Lukk vindu" : b2, g2 = _(o2, ["closeOnClickOutside", "variant", "closeText", "yesText", "noText", "ariaDetailCloseTopButton"]), v2 = t.useState(g2.show), x2 = v2[0], y2 = v2[1]; 3366 t.useEffect(function() { 3367 return y2(g2.show); 3368 }, [g2.show]), t.useEffect(function() { 3369 return x2 && document.body.classList.add("modal-open"), function() { 3370 return document.body.classList.remove("modal-open"); 3371 }; 3372 }, [x2]); 3373 var k2 = function() { 3374 g2.onClose ? g2.onClose() : y2(false); 3375 }, w2 = function(e2) { 3376 "Escape" === e2.key && k2(); 3377 }, N2 = function(e2) { 3378 " " !== e2.key && "Enter" !== e2.key || k2(); 3379 }, C2 = t.useId(), j2 = C2 + "-title", T2 = function() { 3380 if (g2.renderFooter) return g2.renderFooter(); 3381 switch (i2) { 3382 case "alert": 3383 case "information": 3384 case "dialog": 3385 return e.jsx(Q, { className: "".concat(h, "-content-modal-default-button-close ").concat(oo.buttonClose), status: "primary", text: c2, onClick: k2 }); 3386 case "confirmation": 3387 return e.jsxs(e.Fragment, { children: [e.jsx(Q, { className: "".concat(h, "-content-modal-default-button-confirm ").concat(oo.buttonConfirm), status: "primary", text: s2, onClick: g2.onConfirm }), e.jsx(Q, { className: "".concat(h, "-content-modal-default-button-close ").concat(oo.buttonClose), status: "secondary", text: p2, onClick: k2 })] }); 3388 default: 3389 return e.jsx(e.Fragment, {}); 3390 } 3391 }; 3392 return x2 ? e.jsx(V, u({ target: g2.target }, { children: function() { 3393 var t2 = ["".concat(h, "-content-modal ").concat(oo.base)]; 3394 g2.className && t2.push(g2.className), g2.size && t2.push("".concat(h, "-content-modal-size--").concat(g2.size, " ").concat(oo["size--".concat(g2.size)])); 3395 var o3 = a2 ? k2 : void 0, n3 = "alert" === i2 ? "alertdialog" : "dialog", r3 = g2.id ? C2 + "-" + g2.id : C2 + "-body"; 3396 return e.jsxs("div", u({ id: g2.id, className: t2.join(" "), onKeyDown: w2, role: n3, "aria-modal": "true", "aria-labelledby": j2, "aria-describedby": r3 }, { children: [e.jsx("div", { className: "".concat(h, "-content-modal-backdrop ").concat(oo.backdrop), onMouseDown: o3 }), e.jsx(ft, u({ active: x2, focusTrapOptions: u({ clickOutsideDeactivates: true }, g2.focusTrapOptions) }, { children: e.jsxs("div", u({ className: "".concat(h, "-content-modal-container ").concat(oo.container) }, { children: [e.jsx("div", u({ className: "".concat(h, "-content-modal-header ").concat(oo.header) }, { children: g2.renderHeader ? g2.renderHeader(j2) : e.jsx("h1", u({ id: j2 }, { children: g2.title })) })), e.jsx("div", u({ id: r3, className: "".concat(h, "-content-modal-body ").concat(oo.body) }, { children: g2.children })), !g2.hideFooter && e.jsx("div", u({ className: "".concat(h, "-content-modal-footer ").concat(oo.footer) }, { children: T2() })), g2.closable && e.jsx("button", { "aria-label": f2, className: "".concat(h, "-content-modal-close-icon ").concat(oo.closeIcon), onKeyDown: N2, onClick: k2 })] })) }))] })); 3397 }() })) : null; 3398 }, ao = t.forwardRef(function(o2, n2) { 3399 var a2 = r.useState([]), i2 = a2[0], l2 = a2[1], c2 = r.useState([]), d2 = c2[0], s2 = c2[1]; 3400 r.useEffect(function() { 3401 var e2 = [], n3 = function(e3, o3, a4) { 3402 if (a4.push([]), r.isValidElement(e3)) { 3403 var i4 = {}, l3 = e3.props; 3404 if (e3.props && l3.children && !l3.name) i4 = { children: r.Children.map(l3.children, function(e4, t2) { 3405 return n3(e4, t2, a4[o3]); 3406 }) }; 3407 else { 3408 if (!l3.name) return e3; 3409 a4[o3] = t.createRef(), i4 = { ref: a4[o3], returnEmptyValues: l3.returnEmptyValues }; 3410 } 3411 return r.cloneElement(e3, i4); 3412 } 3413 return e3; 3414 }; 3415 s2(r.Children.map(o2.children, function(t2, o3) { 3416 return n3(t2, o3, e2); 3417 })); 3418 var a3 = [], i3 = function(e3) { 3419 e3.forEach ? e3.forEach(function(e4) { 3420 i3(e4); 3421 }) : a3.push(e3); 3422 }; 3423 i3(e2), l2(a3); 3424 }, [o2.children, i2.length, null == d2 ? void 0 : d2.length]); 3425 var _2 = function() { 3426 var e2 = true; 3427 return i2.forEach(function(t2) { 3428 t2.current && t2.current.validate && t2.current.validate() && (e2 = false); 3429 }), e2; 3430 }, m2 = function(e2) { 3431 e2 && e2.preventDefault(), o2.validate && !_2() || o2.onSubmit && (null == o2 || o2.onSubmit(h2())); 3432 }, p2 = function() { 3433 i2.forEach(function(e2) { 3434 e2.current && e2.current.reset && e2.current.reset(); 3435 }); 3436 }, b2 = function() { 3437 return i2; 3438 }, h2 = function() { 3439 var e2 = {}; 3440 return i2.forEach(function(t2) { 3441 if (t2.current && t2.current.getValue && t2.current.getName) { 3442 var n3 = t2.current.getName(), a3 = t2.current.getValue(), r2 = t2.current.getFileList ? t2.current.getFileList() : void 0; 3443 if (n3) if ("File" === t2.current.type) r2 && r2.length > 1 ? e2[n3] = Array.from(r2).map(function(e3) { 3444 return e3.name; 3445 }).join(", ") : r2 && r2.length && (e2[n3] = r2[0].name); 3446 else (o2.returnEmptyValues || a3) && (void 0 !== e2[n3] ? (Array.isArray(e2[n3]) || (e2[n3] = Array(e2[n3])), e2[
3446n3].push(a3)) : e2[n3] = a3); 3447 } 3448 }), e2; 3449 }, f2 = function() { 3450 var e2 = new FormData(), t2 = h2(); 3451 return Object.keys(t2).forEach(function(o3, n3) { 3452 var a3, r2, l3, c3 = t2[o3], d3 = i2[n3], s3 = (null === (a3 = d3.current) || void 0 === a3 ? void 0 : a3.getFileList) ? null === (r2 = d3.current) || void 0 === r2 ? void 0 : r2.getFileList() : void 0; 3453 if ("File" === (null === (l3 = d3.current) || void 0 === l3 ? void 0 : l3.type)) s3 && Array.from(s3).forEach(function(t3) { 3454 e2.append(o3, t3, t3.name); 3455 }); 3456 else e2.append(o3, c3); 3457 }), e2; 3458 }; 3459 return t.useImperativeHandle(n2, function() { 3460 return { setValue: {}, validate: _2, getValues: h2, getFormData: f2, getRefs: b2, submit: m2, reset: p2 }; 3461 }), e.jsx("form", u({ onReset: p2, className: o2.className, id: o2.id, onChange: function(e2) { 3462 o2.onChange && o2.onChange(e2, h2()); 3463 }, encType: o2.enctype, action: o2.action, method: o2.method, "aria-live": o2.ariaLive, noValidate: o2.noValidate, onSubmit: m2 }, { children: d2 })); 3464 }), ro = { base: "checkbox-module__base_9322_aR8yp", checkbox: "checkbox-module__checkbox_9322_zxCfS", "checkbox-container": "checkbox-module__checkbox-container_9322_xqkZM", "status--primary": "checkbox-module__status--primary_9322_Jumgx", "checkbox-content": "checkbox-module__checkbox-content_9322_HB8J7", error: "checkbox-module__error_9322_5uKjO", "--error": "checkbox-module__--error_9322_3T4wM", "hidden-label": "checkbox-module__hidden-label_9322_68F0v" }; 3465 c('.checkbox-module__base_9322_aR8yp{margin-top:0;overflow:visible;position:relative}.checkbox-module__base_9322_aR8yp:not(:first-child){margin-top:1rem}.checkbox-module__base_9322_aR8yp[data-level="1"]{padding-left:1rem}.checkbox-module__base_9322_aR8yp[data-level="2"]{padding-left:2rem}.checkbox-module__base_9322_aR8yp[data-level="3"]{padding-left:3rem}.checkbox-module__base_9322_aR8yp[data-level="4"]{padding-left:4rem}.checkbox-module__base_9322_aR8yp[data-level="5"]{padding-left:5rem}.checkbox-module__base_9322_aR8yp[data-level="6"]{padding-left:6rem}.checkbox-module__base_9322_aR8yp[data-level="7"]{padding-left:7rem}.checkbox-module__base_9322_aR8yp[data-level="8"]{padding-left:8rem}.checkbox-module__base_9322_aR8yp[data-level="9"]{padding-left:9rem}.checkbox-module__base_9322_aR8yp[data-level="10"]{padding-left:10rem}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox_9322_zxCfS:checked+.checkbox-module__checkbox-container_9322_xqkZM:after{opacity:1}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox_9322_zxCfS:focus+.checkbox-module__checkbox-container_9322_xqkZM{box-shadow:inset 0 0 0 2px var(--bc-c-border-input)}.checkbox-module__base_9322_aR8yp.checkbox-module__status--primary_9322_Jumgx .checkbox-module__checkbox_9322_zxCfS:checked+.checkbox-module__checkbox-container_9322_xqkZM{background-color:var(--bc-c-action-primary)}.checkbox-module__base_9322_aR8yp.checkbox-module__status--primary_9322_Jumgx .checkbox-module__checkbox-container_9322_xqkZM:after{border-color:#fff}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox-content_9322_HB8J7{align-items:center;display:flex;position:relative}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox-container_9322_xqkZM{background-color:#fff;background-color:var(--bc-background-color);border:.125rem solid var(--bc-c-border-input);border-radius:0;box-shadow:none;cursor:pointer;display:flex;flex-direction:column;height:1.5rem;justify-content:center;left:0;line-height:1;min-height:1.5rem;min-width:1.5rem;position:relative;top:0;transition:border-color .1s ease-in-out,color .1s ease-in-out,background-color .1s ease-in-out;width:1.5rem}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox-container_9322_xqkZM:after{border:.225rem solid var(--bc-c-action-primary);border-left:0;border-radius:.075rem;border-top:0;content:"";display:block;height:.75rem;left:50%;opacity:0;position:absolute;top:40%;-webkit-transform:translate(-50%,-50%) rotate(45deg);-moz-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);width:.5rem}.checkbox-module__base_9322_aR8yp .checkbox-module__checkbox_9322_zxCfS{cursor:pointer;height:100%;margin:0;min-height:1.5rem;min-width:1.5rem;opacity:0;position:absolute;width:100%;z-index:1}.checkbox-module__base_9322_aR8yp label{cursor:pointer;display:block;display:flex;flex-direction:column;justify-content:center;line-height:1;margin:0;padding-left:1.5rem;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;
3465-o-user-select:none;user-select:none}.checkbox-module__base_9322_aR8yp .checkbox-module__error_9322_5uKjO{color:var(--bc-danger-color-500)}.checkbox-module__base_9322_aR8yp.checkbox-module__--error_9322_3T4wM{padding-bottom:0}.checkbox-module__base_9322_aR8yp.checkbox-module__--error_9322_3T4wM input{border:none;outline:1px solid var(--bc-danger-color-500)}.checkbox-module__base_9322_aR8yp.checkbox-module__hidden-label_9322_68F0v label{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}'); 3466 var io = function(o2, n2) { 3467 var a2, r2, i2 = o2.text, l2 = o2.status, c2 = void 0 === l2 ? "primary" : l2, d2 = o2.name, s2 = o2.value, m2 = void 0 === s2 ? void 0 : s2, p2 = o2.level, b2 = void 0 === p2 ? 0 : p2, f2 = o2.children, g2 = void 0 === f2 ? [] : f2, v2 = o2.index, x2 = void 0 === v2 ? 0 : v2, y2 = o2.onChange, k2 = void 0 === y2 ? void 0 : y2, w2 = _(o2, ["text", "status", "name", "value", "level", "children", "index", "onChange"]), N2 = t.useState(null !== (a2 = w2.defaultChecked) && void 0 !== a2 && a2), C2 = N2[0], j2 = N2[1], T2 = t.useState(""), P2 = T2[0], S2 = T2[1], D2 = t.createRef(), A2 = t.createRef(); 3468 t.useEffect(function() { 3469 void 0 !== w2.checked && j2(w2.checked); 3470 }, [w2.checked]); 3471 var E2 = function() { 3472 (null == A2 ? void 0 : A2.current) && A2.current.focus(); 3473 }, R2 = function() { 3474 return D2; 3475 }, I2 = function() { 3476 var e2; 3477 j2(null !== (e2 = w2.defaultChecked) && void 0 !== e2 && e2); 3478 }, M2 = function() { 3479 var e2; 3480 if (w2.formValidation) { 3481 var t2 = _e(C2 ? m2 : void 0, w2.formValidation); 3482 if (t2 && t2.error) return S2(null !== (e2 = t2.error) && void 0 !== e2 ? e2 : ""), t2.error; 3483 S2(""); 3484 } 3485 return false; 3486 }; 3487 t.useImperativeHandle(n2, function() { 3488 return { setValue: {}, getNativeRef: R2, focus: E2, validate: M2, type: "Checkbox", reset: I2, getValue: function() { 3489 var e2; 3490 return !!(null === (e2 = A2.current) || void 0 === e2 ? void 0 : e2.checked) && m2; 3491 }, getName: function() { 3492 return d2; 3493 }, getLabel: function() { 3494 return w2.label; 3495 } }; 3496 }); 3497 var z2 = "".concat(h, "-content-form-checkbox-").concat(St(5), "-").concat(null !== (r2 = w2.id) && void 0 !== r2 ? r2 : ""), L2 = Xt.getClassNameAsArray("content-checkbox", w2); 3498 return L2.push(ro.base), L2.push("".concat(h, "-content-form-control")), L2.push("".concat(h, "-content-form-control--checkbox")), w2.hiddenLabel && L2.push("".concat(h, "-content-form-control--hidden-label"), ro["hidden-label"]), L2.push("".concat(h, "-content-checkbox--").concat(c2, " ").concat(ro["status--" + c2])), w2.className && L2.push(w2.className), e.jsxs(t.Fragment, { children: [e.jsxs("div", u({ ref: D2, className: L2.join(" "), "data-level": b2 }, { children: [e.jsxs("div", u({ className: "".concat(h, "-content-form-checkbox-content ").concat(ro["checkbox-content"]) }, { children: [e.jsx("input", { ref: A2, id: z2, className: "".concat(h, "-content-form-checkbox ").concat(ro.checkbox), "data-level": b2, type: "checkbox", name: d2, value: m2, checked: C2, onChange: function(e2) { 3499 !function(e3) { 3500 k2 && k2(e3.currentTarget.checked, x2), w2.nativeOnChange && w2.nativeOnChange(e3), j2(e3.currentTarget.checked); 3501 }(e2); 3502 } }), e.jsx("div", { className: "".concat(h, "-content-form-checkbox-container ").concat(ro["checkbox-container"]) }), null != i2 && "" !== i2 && e.jsx("label", u({ htmlFor: z2, className: "".concat(h, "-content-checkbox-label") }, { children: e.jsx("span", u({ className: "".concat(h, "-content-checkbox-text") }, { children: i2 })) }))] })), "" !== P2 && e.jsx("p", u({ className: "".concat(h, "-content-form-checkbox-error ").concat(ro.error) }, { children: P2 }))] })), C2 && (null == g2 ? void 0 : g2.map(function(t2, o3) { 3503 return e.jsx(lo, u({ level: b2++, status: c2 }, t2), o3); 3504 }))] }); 3505 }, lo = t.forwardRef(io), co = { base: "textArea-module__base_9322_xQ7eU", counter: "textArea-module__counter_9322_1qXzn", error: "textArea-module__error_9322_7g1lx", "--error": "textArea-module__--error_9322_1JxVX", "theme--dark": "textArea-module__theme--dark_9322_s3v-T", sublabel: "textArea-module__sublabel_9322_85MqA" }; 3506 c(".textArea-module__base_9322_xQ7eU textarea{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.textArea-module__base_9322_xQ7eU textarea:focus,.textArea-module__base_9322_xQ7eU textarea:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.textArea-module__base_9322_xQ7eU textarea:focus{border-color:var(--bc-basic-color-500)}.textArea-module__base_9322_xQ7eU textarea[disabled],.textArea-module__base_9322_xQ7eU textarea[readonly]{background-color:var(--bc-background-color);color:var(--basic-color-300);
3506cursor:not-allowed}.textArea-module__base_9322_xQ7eU textarea::-ms-clear{display:none}.textArea-module__base_9322_xQ7eU textarea:-ms-input-placeholder,.textArea-module__base_9322_xQ7eU textarea::-moz-placeholder,.textArea-module__base_9322_xQ7eU textarea::-webkit-input-placeholder,.textArea-module__base_9322_xQ7eU textarea::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.textArea-module__base_9322_xQ7eU label{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.textArea-module__base_9322_xQ7eU{font-size:1rem;height:fit-content;padding-bottom:calc(1rem + 2px);width:100%}.textArea-module__base_9322_xQ7eU textarea{display:block;height:auto;margin-top:.5rem;padding:1rem}.textArea-module__base_9322_xQ7eU label{display:block;padding:0 0 .5rem}.textArea-module__base_9322_xQ7eU label span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:.5rem}.textArea-module__base_9322_xQ7eU p{font-size:medium;margin:2px 0 0;width:fit-content}.textArea-module__base_9322_xQ7eU .textArea-module__counter_9322_1qXzn{float:right}.textArea-module__base_9322_xQ7eU .textArea-module__error_9322_7g1lx{color:var(--bc-danger-color-500)}.textArea-module__base_9322_xQ7eU.textArea-module__--error_9322_1JxVX{padding-bottom:0}.textArea-module__base_9322_xQ7eU.textArea-module__--error_9322_1JxVX textarea{border:none;outline:1px solid var(--bc-danger-color-500)}.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T textarea,.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T textarea:focus,.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T textarea:hover{background-color:initial;color:#fff}.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T .textArea-module__sublabel_9322_85MqA,.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T label,.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T label span,.textArea-module__base_9322_xQ7eU.textArea-module__theme--dark_9322_s3v-T p{color:#fff}"); 3507 var so = t.forwardRef(function(o2, n2) { 3508 var a2, r2, i2, l2, c2, d2, s2 = _(o2, []), m2 = t.createRef(), p2 = t.useState(0), b2 = p2[0], f2 = p2[1], g2 = t.useState(""), v2 = g2[0], x2 = g2[1], y2 = t.useState(null !== (a2 = s2.defaultValue) && void 0 !== a2 ? a2 : ""), k2 = y2[0], w2 = y2[1]; 3509 s2.value && !s2.onChange && console.warn("If a value is provided an onChange method is required."), t.useEffect(function() { 3510 s2.value && w2(s2.value); 3511 }, [s2.value]); 3512 var N2, C2 = function() { 3513 var e2; 3514 if (s2.formValidation) { 3515 var t2 = _e(k2, s2.formValidation); 3516 if (x2(""), t2 && t2.error) return x2(null !== (e2 = t2.error) && void 0 !== e2 ? e2 : ""), t2.error; 3517 } 3518 return false; 3519 }, j2 = function() { 3520 var e2; 3521 return null === (e2 = m2.current) || void 0 === e2 ? void 0 : e2.value; 3522 }, T2 = function() { 3523 return s2.name; 3524 }, P2 = function() { 3525 return s2.labelText; 3526 }, S2 = function() { 3527 var e2; 3528 w2(null !== (e2 = s2.defaultValue) && void 0 !== e2 ? e2 : ""); 3529 }, D2 = function() { 3530 return m2; 3531 }, A2 = function() { 3532 (null == m2 ? void 0 : m2.current) && m2.current.focus(); 3533 }; 3534 t.useImperativeHandle(n2, function() { 3535 return { setValue: {}, getValue: j2, getName: T2, getLabel: P2, validate: C2, getNativeRef: D2, focus: A2, type: "TextArea", reset: S2 }; 3536 }), N2 = (null === (i2 = null === (r2 = s2.formValidation) || void 0 === r2 ? void 0 : r2.required) || void 0 === i2 ? void 0 : i2.data) ? null !== (l2 = s2.requiredText) && void 0 !== l2 ? l2 : "(påkrevd)" : null !== (c2 = s2.notRequiredText) && void 0 !== c2 ? c2 : ""; 3537 var E2 = ["".concat(h, "-content-textarea ").concat(co.base)]; 3538 v2 && E2.push("".concat(h, "-content-textarea--error ").concat(co["--error"])), s2.theme && E2.push("".concat(h, "-content-textarea--theme-").concat(s2.theme, " ").concat(co["theme--" + s2.theme])), s2.className && E2.push(s2.className); 3539 var R2 = s2.id ? "".concat(h, "-content-textarea-").concat(s2.id) : "generic-textarea" + s2.name, I2 = R2 + "-error"; 3540 return e.jsxs("div", u({ className: E2.join(" "), id: s2.id }, { children: [s2.labelText && e.jsxs("label", u({ htmlFor: R2, className: "".concat(h, "-content-textarea-label") }, { children: [s2.labelText, e.jsx("span", { children: N2 })] })), s2.subLabelText && e.jsx("span", u({ className: "".concat(h, "-content-textarea-sublabel ").concat(co.sublabel), id: R2 + "-sublabel" }, { children: s2.subLabelText })), e.jsx("textarea", u({ id: R2, rows: s2.rows ? s2.rows : 5, disabled: s2.disabled, placeholder: s2.placeholderText, maxLength: s2.maxCharacters, minLength: s2.minCharacters, onChange: function(e2) { 3541 w2(e2.target.value), f2(e2.target.value.length), s2.onChange && s2.onChange(e2); 3542 }, spellCheck: s2.spellCheck, "aria-invalid": "" != v2, "aria-errormessage": v2 ? I2 : void 0, "aria-describedby": s2.subLabelText ? R2 + "-sublabel" : void 0, className: "".concat(h, "-content-textarea-content"), name: s2.name, value: k2, ref: m2, autoComplete: null !== (d2 = s2.autoComplete) && void 0 !== d2 ? d2 : "off" }, { children: s2.children })), s2.showCounter && e.jsxs("p", u({ className: "".concat(h, "-content-textarea-counter ").concat(co.counter) }, { children: [b2, " / ", s2.maxCharacters] })), "" !== v2 && e.jsx("p", u({ className: "".concat(h, "-content-textarea-error ").concat(co.error), id: I2 }, { children: v2 }))] })); 3543 }), uo = { base: "singleDatePicker-module__base_9322_-HU1t", label: "singleDatePicker-module__label_9322_-lcII", inputs: "singleDatePicker-module__inputs_9322_7maqk", input: "singleDatePicker-module__input_9322_c4OlF", icon: "singleDatePicker-module__icon_9322_70b-j", modal: "singleDatePicker-module__modal_9322_84-a6", "modal-content": "singleDatePicker-module__modal-content_9322_HfK14", datepicker: "singleDatePicker-module__datepicker_9322_fkHB9" }; 3544 function _o(e2, t2) { 3545 var o2; 3546 return function() { 3547 for (var n2 = this, a2 = [], r2 = 0; r2 < arguments.length; r2++) a2[r2] = arguments[r2]; 3548 clearTimeout(o2), o2 = setTimeout(function() { 3549 return e2.apply(n2, a2); 3550 }, t2); 3551 }; 3552 } 3553 c(".singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__label_9322_-lcII{display:block;font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0;padding:0 0 .5rem}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__label_9322_-lcII span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:.5rem}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__inputs_9322_7maqk{display:flex;position:relative}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__inputs_9322_7maqk .singleDatePicker-module__input_9322_c4OlF{margin:.5rem 0 0;width:100%}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__inputs_9322_7maqk .singleDatePicker-module__input_9322_c4OlF input{cursor:pointer;margin:0}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__inputs_9322_7maqk .singleDatePicker-module__input_9322_c4OlF input::-webkit-calendar-picker-indicator{display:none;pointer-events:none}.singleDatePicker-module__base_9322_-HU1t .singleDatePicker-module__inputs_9322_7maqk .singleDatePicker-module__icon_9322_70b-j{background-color:var(--bc-background-color);position:absolute;right:1rem;top:40%;translate:translateY(-40%)}.singleDatePicker-module__modal_9322_84-a6{position:absolute;z-index:999}.singleDatePicker-module__modal_9322_84-a6 .singleDatePicker-module__modal-content_9322_HfK14{align-items:flex-start;display:flex;flex-wrap:wrap;max-width:100vw;position:relative}.singleDatePicker-module__modal_9322_84-a6 .singleDatePicker-module__modal-content_9322_HfK14 .singleDatePicker-module__datepicker_9322_fkHB9{margin-top:1rem}.singleDatePicker-module__modal_9322_84-a6 .singleDatePicker-module__modal-content_9322_HfK14 .singleDatePicker-module__datepicker_9322_fkHB9:first-of-type{margin-right:1rem}"); 3554 var mo = t.forwardRef(function(o2, n2) { 3555 var a2, r2, i2, l2, c2, d2 = o2.autoClose, s2 = void 0 === d2 || d2, m2 = _(o2, ["autoClose"]), p2 = t.useState(false), b2 = p2[0], f2 = p2[1], g2 = t.useRef(J(m2.date ? new Date(m2.date) : /* @__PURE__ */ new Date(""))), v2 = t.useState(g2.current), x2 = v2[0], y2 = v2[1], k2 = t.useState(window.innerWidth), w2 = k2[0], N2 = k2[1], C2 = t.useRef(null), j2 = t.useRef(null), T2 = t.useRef(null); 3556 function P2() { 3557 N2(window.innerWidth); 3558 } 3559 t.useEffect(function() { 3560 var e2 = _o(P2, 250); 3561 return window.addEventListener("resize", e2), function() { 3562 window.removeEventListener("resize", e2); 3563 }; 3564 }, []); 3565 var S2 = function(e2) { 3566 var t2; 3567 (null === (t2 = j2.current) || void 0 === t2 ? void 0 : t2.contains(e2.target)) || f2(false); 3568 }; 3569 t.useEffect(function() { 3570 return b2 && (document.addEventListener("mousedown", S2, false), document.addEventListener("touchstart", S2, false)), function() { 3571 document.removeEventListener("mousedown", S2, false), document.removeEventListener("touchstart", S2, false); 3572 }; 3573 }, [b2]); 3574 var D2 = function() { 3575 return [X(g2.current) ? g2.current : ""]; 3576 }, A2 = function() { 3577 return m2.name; 3578 }, E2 = function() { 3579 return m2.labelText; 3580 }, R2 = function(e2) { 3581 X(e2) && y2(e2); 3582 }, I2 = function() { 3583 var e2, t2; 3584 if (m2.formValidation) { 3585 var o3 = null === (t2 = null === (e2 = T2.current) || void 0 === e2 ? void 0 : e2.validate) || void 0 === t2 ? void 0 : t2.call(e2); 3586 return o3 || false; 3587 } 3588 return false;
3589 }, M2 = function() { 3590 return C2; 3591 }, z2 = function() { 3592 var e2, t2; 3593 (null === (e2 = null == T2 ? void 0 : T2.current) || void 0 === e2 ? void 0 : e2.reset) && (null === (t2 = T2.current) || void 0 === t2 || t2.reset()), g2.current = J(m2.date ? new Date(m2.date) : /* @__PURE__ */ new Date("")), y2(g2.current); 3594 }, L2 = function() { 3595 var e2, t2; 3596 null === (t2 = null === (e2 = null == T2 ? void 0 : T2.current) || void 0 === e2 ? void 0 : e2.focus) || void 0 === t2 || t2.call(e2); 3597 }; 3598 t.useImperativeHandle(n2, function() { 3599 return { getValue: D2, getName: A2, getLabel: E2, setValue: R2, validate: I2, getNativeRef: M2, focus: L2, type: "SingleDatePicker", reset: z2 }; 3600 }); 3601 var F2; 3602 F2 = m2.formValidation && m2.formValidation.required && (null === (a2 = m2.formValidation) || void 0 === a2 ? void 0 : a2.required.data) ? null !== (r2 = m2.requiredText) && void 0 !== r2 ? r2 : "(påkrevd)" : null !== (i2 = m2.notRequiredText) && void 0 !== i2 ? i2 : ""; 3603 var O2 = ["".concat(h, "-singledatepicker"), uo.base], B2 = "singledatepicker-".concat(St(5), "-").concat(null !== (l2 = m2.id) && void 0 !== l2 ? l2 : ""); 3604 return e.jsxs("div", u({ className: O2.join(" "), ref: C2, onKeyDown: function(e2) { 3605 "Escape" === e2.key && f2(false); 3606 } }, { children: [m2.labelText && e.jsxs("label", u({ htmlFor: B2, className: "".concat(h, "-singledatepicker-label ").concat(uo.label) }, { children: [m2.labelText, e.jsx("span", { children: F2 })] })), m2.subLabelText && e.jsxs("span", u({ className: "".concat(h, "-singledatepicker-sublabel ").concat(uo.sublabel), id: B2 + "-sublabel" }, { children: [m2.subLabelText, " "] })), e.jsxs("div", u({ className: "".concat(h, "-singledatepicker-inputs ").concat(uo.inputs) }, { children: [e.jsx(At, { id: B2, name: m2.name + "-input", className: "".concat(uo.input), type: "date", value: X(x2) ? x2 : "", theme: m2.theme, onChange: function(e2) { 3607 X(e2.target.value) && (g2.current = e2.target.value, y2(g2.current)); 3608 }, autocomplete: m2.autocomplete, onKeyDown: function(e2) { 3609 if (" " == e2.key) { 3610 if (m2.disableOnMobile && w2 < 768) return; 3611 e2.stopPropagation(), e2.preventDefault(), f2(true); 3612 } 3613 }, ref: T2, formValidation: m2.formValidation, labelledBy: m2.labelText ? void 0 : m2.labelledBy, "aria-describedby": m2.subLabelText ? B2 + "-sublabel" : void 0, max: m2.max }), e.jsx(Q, u({ appearance: "icon", className: uo.icon, onClick: function(e2) { 3614 m2.disableOnMobile && w2 < 768 || (e2.preventDefault(), e2.stopPropagation(), f2(true)); 3615 }, onTouchStart: function(e2) { 3616 m2.disableOnMobile && w2 < 768 || (e2.preventDefault(), e2.stopPropagation(), f2(true)); 3617 }, "aria-label": null !== (c2 = m2.calendarButtonAriaLabel) && void 0 !== c2 ? c2 : "Åpne kalender" }, { children: e.jsx(q, { icon: "ri-calendar-line" }) }))] })), b2 && e.jsx("div", u({ className: "".concat(h, "-singledatepicker-modal ").concat(uo.modal), ref: j2, onClick: function(e2) { 3618 e2.stopPropagation(); 3619 } }, { children: e.jsx(ht, u({ active: b2 }, { children: e.jsx("div", u({ className: "".concat(h, "-singledatepicker-modal-content ").concat(uo["modal-content"]) }, { children: e.jsx(pe, u({ name: m2.name, className: uo.datepicker, theme: m2.theme, value: X(x2) ? x2 : /* @__PURE__ */ new Date(), onChange: function(e2) { 3620 if ("string" != typeof e2 && X(e2)) { 3621 var t2 = new Date(X(x2) ? x2 : /* @__PURE__ */ new Date()); 3622 g2.current = J(e2), y2(g2.current), s2 && e2.getDate() !== t2.getDate() && e2.getMonth() === t2.getMonth() && e2.getFullYear() === t2.getFullYear() && f2(false); 3623 } 3624 } }, m2.datePickerProps)) })) })) }))] })); 3625 }), po = { base: "select-module__base_9322_Ieby6", "button-container": "select-module__button-container_9322_-05oP", error: "select-module__error_9322_Fkf05", "--error": "select-module__--error_9322_jkeXX", body: "select-module__body_9322_cXMiF", open: "select-module__open_9322_NvoLm", option: "select-module__option_9322_k-K7R", "theme--dark": "select-module__theme--dark_9322_o5fgE", hiddenLabel: "select-module__hiddenLabel_9322_cdktG" }; 3626 c('.select-module__base_9322_Ieby6 button{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.select-module__base_9322_Ieby6 button:focus,.select-module__base_9322_Ieby6 button:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.select-module__base_9322_Ieby6 button:focus{border-color:var(--bc-basic-color-500)}.select-module__base_9322_Ieby6 button[disabled],.select-module__base_9322_Ieby6 button[readonly]{background-color:var(--bc-background-color);color:var(--basic-color-300);
3626cursor:not-allowed}.select-module__base_9322_Ieby6 button::-ms-clear{display:none}.select-module__base_9322_Ieby6 button:-ms-input-placeholder,.select-module__base_9322_Ieby6 button::-moz-placeholder,.select-module__base_9322_Ieby6 button::-webkit-input-placeholder,.select-module__base_9322_Ieby6 button::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.select-module__base_9322_Ieby6 label{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.select-module__base_9322_Ieby6{position:relative;width:100%}.select-module__base_9322_Ieby6 label{display:block;padding:0 0 .5rem}.select-module__base_9322_Ieby6 label span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:1rem}.select-module__base_9322_Ieby6 .select-module__button-container_9322_-05oP{background-color:var(--bc-background-color);margin-top:.5rem;position:relative}.select-module__base_9322_Ieby6 .select-module__button-container_9322_-05oP button:focus{border-radius:3px;outline:1.5px solid #000}.select-module__base_9322_Ieby6 .select-module__button-container_9322_-05oP button:after{border:2px solid #000;border-left:none;border-top:none;content:" ";height:.5rem;position:absolute;right:1rem;top:40%;transform:rotate(45deg) translateY(-40%);width:.5rem}.select-module__base_9322_Ieby6 .select-module__button-container_9322_-05oP button span{color:var(--bc-c-text-secondary)}.select-module__base_9322_Ieby6 button{background-color:initial;border:1px solid #000;cursor:pointer;display:block;height:fit-content;padding-left:1rem;padding-right:2rem;text-align:left}.select-module__base_9322_Ieby6 .select-module__error_9322_Fkf05{color:var(--bc-danger-color-500);margin:2px 0 0}.select-module__base_9322_Ieby6.select-module__--error_9322_jkeXX{padding-bottom:0}.select-module__base_9322_Ieby6 .select-module__body_9322_cXMiF{background-color:#fff;border-radius:3px;box-shadow:0 5px 5px gray;display:none;max-height:300px;outline:1px solid #000;overflow-y:auto;position:absolute;width:100%;z-index:1000}.select-module__base_9322_Ieby6 .select-module__body_9322_cXMiF.select-module__open_9322_NvoLm{display:block}.select-module__base_9322_Ieby6 .select-module__body_9322_cXMiF .select-module__option_9322_k-K7R{border:none;position:relative;width:100%}.select-module__base_9322_Ieby6 .select-module__body_9322_cXMiF .select-module__option_9322_k-K7R:focus{background-color:var(--bc-background-color-2);border:2px solid #000}.select-module__base_9322_Ieby6 .select-module__body_9322_cXMiF .select-module__option_9322_k-K7R:hover{background-color:var(--bc-primary-color-500);color:#fff}.select-module__base_9322_Ieby6.select-module__theme--dark_9322_o5fgE label{color:#fff}.select-module__base_9322_Ieby6.select-module__hiddenLabel_9322_cdktG label{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}'); 3627 var bo = t.forwardRef(function(t2, o2) { 3628 var n2 = ["".concat(h, "-select-option ").concat(po.option)]; 3629 return t2.className && n2.push(t2.className), e.jsxs("button", u({ className: n2.join(" "), id: t2.id, ref: o2, type: "button" }, { children: [t2.text, t2.children] })); 3630 }), ho = function(e2) { 3631 var o2 = -1, n2 = 0; 3632 return t.Children.forEach(e2, function(e3) { 3633 t.isValidElement(e3) && (e3.props.defaultSelected && (o2 = n2), n2++); 3634 }), o2; 3635 }, fo = function(e2) { 3636 var o2 = -1, n2 = 0; 3637 return t.Children.forEach(e2, function(e3) { 3638 t.isValidElement(e3) && (e3.props.selected && (o2 = n2), n2++); 3639 }), -1 !== o2 ? o2 : void 0; 3640 }, go = function(t2) { 3641 var o2 = ["".concat(h, "-select-body"), po.body]; 3642 return t2.open && o2.push(po.open), e.jsx("div", u({ id: t2.id, className: o2.join(" "), onKeyDown: t2.handleOptionsKeyboardEvents, role: "application" }, { children: i.default.Children.map(t2.selectChildren, function(o3, n2) { 3643 return e.jsx("div", u({ onClick: function(e2) { 3644 t2.optionClickHandler(e2, n2); 3645 } }, { children: o3 }), n2); 3646 }) })); 3647 }, vo = { base: "label-module__base_9322_A5ycb", hidden: "label-module__hidden_9322_6X0cq" }; 3648 c(".label-module__base_9322_A5ycb{display:block;font-size:1.17em;font-weight:700;margin-left:0;margin-right:0;padding:0 0 .5rem}.label-module__base_9322_A5ycb.label-module__hidden_9322_6X0cq{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}"); 3649 var xo = t.createContext({}), yo = xo.Provider, ko = function(o2) { 3650 var n2, a2, r2 = o2.theme, i2 = o2.hidden, l2 = _(o2, ["theme", "hidden"]), c2 = t.useContext(xo), d2 = ["".concat(h, "-label ").concat(vo.base)]; 3651 return r2 && d2.push("".concat(h, "-label--theme-").concat(r2, " ").concat(vo["theme--" + r2])), i2 && d2.push("".concat(h, "-label--hidden ").concat(vo.hidden)), l2.className && d2.push(l2.className), e.jsx("label", u({}, l2, { className: d2.join(" "), htmlFor: null !== (a2 = null !== (n2 = l2.htmlFor) && void 0 !== n2 ? n2 : c2.controlID) && void 0 !== a2 ? a2 : void 0 }, { children: l2.children })); 3652 }, wo = "sublabel-module__base_9322_6vQXc"; 3653 c(".sublabel-module__base_9322_6vQXc{color:var(--bc-c-text-secondary);display:block;font-weight:400;margin-top:.3rem}"); 3654 var No = function(t2) { 3655 var o2 = _(t2, []), n2 = ["".concat(h, "-sublabel"), wo]; 3656 return o2.className && n2.push(o2.className), e.jsx("small", u({ className: n2.join(" ") }, { children: o2.children })); 3657 }, Co = Object.assign(t.forwardRef(function(o2, n2) { 3658 var a2, r2, l2, c2, d2, s2, m2, p2, b2, f2 = _(o2, []), g2 = t.useRef(null), v2 = t.useRef(null), x2 = t.useRef(null), y2 = t.useState(null !== (r2 = null !== (a2 = fo(f2.children)) && void 0 !== a2 ? a2 : ho(f2.children)) && void 0 !== r2 ? r2 : -1), k2 = y2[0], w2 = y2[1], N2 = t.useState(0), C2 = N2[0], j2 = N2[1], T2 = t.useState(false), P2 = T2[0], S2 = T2[1], D2 = t.useRef([]), A2 = t.useRef({}), E2 = t.useState(""), R2 = E2[0], I2 = E2[1], M2 = t.useState(false), z2 = M2[0], L2 = M2[1]; 3659 t.useEffect(function() { 3660 var e2 = _o(function() { 3661 var e3, t2; 3662 if (x2.current && g2.current && P2) { 3663 var o3 = null === (e3 = x2.current) || void 0 === e3 ? void 0 : e3.getBoundingClientRect(), n3 = window.innerHeight - o3.bottom, a3 = o3.top, r3 = g2.current.querySelector(".".concat(h, "-select-body")); 3664 null == r3 || r3.setAttribute("style", "display: block"); 3665 var i2 = null !== (t2 = null == r3 ? void 0 : r3.getBoundingClientRect().height) && void 0 !== t2 ? t2 : 0; 3666 null == r3 || r3.removeAttribute("style"), n3 < i2 && a3 > i2 ? null == r3 || r3.setAttribute("style", "bottom: ".concat(o3.height, "px;")) : null == r3 || r3.removeAttribute("style"); 3667 } 3668 }, 250); 3669 return window.addEventListener("scroll", e2), window.addEventListener("resize", e2), function() { 3670 window.removeEventListener("scroll", e2), window.removeEventListener("resize", e2); 3671 }; 3672 }, []); 3673 var F2 = t.useMemo(function() { 3674 return i.default.Children.map(f2.children, function(e2, o3) { 3675 if (D2.current[o3] = t.createRef(), i.default.isValidElement(e2)) { 3676 var n3 = u(u({}, e2.props), { ref: D2.current[o3], selected: e2.props.selected }); 3677 return A2.current[o3] = e2.props.value, t.cloneElement(e2, n3); 3678 } 3679 }); 3680 }, [f2.children]); 3681 t.useEffect(function() { 3682 var e2; 3683 void 0 !== fo(f2.children) && w2(null !== (e2 = fo(f2.children)) && void 0 !== e2 ? e2 : 0); 3684 }, [f2.children]), t.useEffect(function() { 3685 var e2; 3686 if (z2) { 3687 var t2 = new Event("change", { bubbles: true }); 3688 null === (e2 = v2.current) || void 0 === e2 || e2.dis
3688patchEvent(t2), L2(false); 3689 } 3690 }, [z2]), t.useEffect(function() { 3691 return P2 ? document.addEventListener("click", B2, true) : document.removeEventListener("click", B2, true), function() { 3692 document.removeEventListener("click", B2, true); 3693 }; 3694 }, [P2]); 3695 var O2, B2 = function(e2) { 3696 e2.target instanceof Node && g2.current && !g2.current.contains(e2.target) && S2(false); 3697 }, H2 = function() { 3698 S2(function(e2) { 3699 var t2; 3700 return e2 || null === (t2 = x2.current) || void 0 === t2 || t2.focus(), !e2; 3701 }); 3702 }, V2 = function() { 3703 (null == x2 ? void 0 : x2.current) && x2.current.focus(); 3704 }, G2 = function() { 3705 var e2; 3706 w2(null !== (e2 = ho(f2.children)) && void 0 !== e2 ? e2 : 0); 3707 }, U2 = function() { 3708 var e2; 3709 if (f2.formValidation) { 3710 var t2 = _e(A2.current[k2], f2.formValidation); 3711 if (I2(""), t2 && t2.error) return I2(null !== (e2 = t2.error) && void 0 !== e2 ? e2 : ""), t2.error; 3712 } 3713 return false; 3714 }; 3715 t.useImperativeHandle(n2, function() { 3716 return { setValue: {}, getValue: function() { 3717 return A2.current[k2]; 3718 }, getName: function() { 3719 return f2.name; 3720 }, getLabel: function() { 3721 return f2.labelText; 3722 }, validate: U2, getNativeRef: function() { 3723 return x2; 3724 }, focus: V2, type: "Select", reset: G2 }; 3725 }), O2 = f2.formValidation && f2.formValidation.required && (null === (l2 = f2.formValidation) || void 0 === l2 ? void 0 : l2.required.data) ? null !== (c2 = f2.requiredText) && void 0 !== c2 ? c2 : "(påkrevd)" : null !== (d2 = f2.notRequiredText) && void 0 !== d2 ? d2 : ""; 3726 var K2 = ["".concat(h, "-select ").concat(po.base)]; 3727 f2.theme && K2.push("".concat(h, "-select--theme-").concat(f2.theme, " ").concat(po["theme--" + f2.theme])), R2 && K2.push("".concat(h, "-select--error ").concat(po["--error"])), f2.className && K2.push(f2.className), f2.hiddenLabel && K2.push(po.hiddenLabel); 3728 var W2 = "".concat(h, "-content-form-select-").concat(St(5), "-").concat(null !== (s2 = f2.id) && void 0 !== s2 ? s2 : ""); 3729 return e.jsxs("div", u({ className: K2.join(" "), ref: g2 }, { children: [f2.labelText && e.jsxs(ko, u({ htmlFor: W2, className: "".concat(h, "-select-label"), onClick: H2 }, { children: [f2.labelText, e.jsx("span", { children: O2 }), f2.subLabelText && e.jsxs(No, u({ id: W2 + "-sublabel", className: "".concat(h, "-select-sublabel ").concat(po.sublabel) }, { children: [f2.subLabelText, " "] }))] })), e.jsxs("div", u({ className: "button-container ".concat(po["button-container"]) }, { children: [e.jsx("button", u({ role: "combobox", id: W2, type: "button", ref: x2, "aria-describedby": f2.subLabelText ? W2 + "-sublabel" : void 0, onKeyDown: function(e2) { 3730 var t2, o3; 3731 if ("ArrowDown" == e2.key) { 3732 if (e2.preventDefault(), P2) (null === (t2 = (n3 = D2.current[0]).current) || void 0 === t2 ? void 0 : t2.focus) && n3.current.focus(); 3733 else S2(true); 3734 return j2(0), false; 3735 } 3736 if ("ArrowUp" == e2.key) { 3737 var n3; 3738 if (e2.preventDefault(), P2) (null === (o3 = (n3 = D2.current[D2.current.length - 1]).current) || void 0 === o3 ? void 0 : o3.focus) && n3.current.focus(); 3739 else S2(true); 3740 return j2(D2.current.length - 1), false; 3741 } 3742 "Escape" === e2.key && S2(false); 3743 }, onClick: H2, "aria-expanded": P2, "aria-controls": W2 + "-dropdown", "data-toggle": "dropdown", "aria-haspopup": true, "aria-invalid": "" != R2, "aria-errormessage": "" != R2 ? W2 + "-error" : void 0 }, { children: F2 && F2[k2] ? null !== (m2 = F2[k2].props.text) && void 0 !== m2 ? m2 : F2[k2].props.children : e.jsx("span", { children: null !== (p2 = f2.noneSelectedText) && void 0 !== p2 ? p2 : "Velg..." }) })), e.jsx("select", { id: W2 + "-select", style: { display: "none" }, ref: v2, "aria-labelledby": f2.labelText ? W2 : f2.labelledBy, autoComplete: null !== (b2 = f2.autoComplete) && void 0 !== b2 ? b2 : "off" })] })), e.jsx(go, { id: W2 + "-dropdown", open: P2, selectChildren: F2, optionClickHandler: function(e2, t2) { 3744 var o3; 3745 S2(false), null === (o3 = x2.current) || void 0 === o3 || o3.focus(), w2(t2), L2(true); 3746 }, handleOptionsKeyboardEvents: function(e2) { 3747 var t2, o3, n3, a3 = function(e3) { 3748 return e3 < 0 ? D2.current.length - 1 : e3 >= D2.current.length ? 0 : e3; 3749 }; 3750 if ("ArrowDown" == e2.key || "Tab" == e2.key && !e2.shiftKey) e2.preventDefault(), j2(a3(r3 = C2 + 1)), (null === (t2 = (i2 = D2.current[a3(r3)]).current) || void 0 === t2 ? void 0 : t2.focus) && i2.current.focus(); 3751 else if ("ArrowUp" == e2.key || e2.shiftKey && "Tab" == e2.key) { 3752 var r3, i2; 3753 e2.preventDefault(), j2(a3(r3 = C2 - 1)), (null === (o3 = (i2 = D2.current[a3(r3)]).current) || void 0 === o3 ? void 0 : o3.focus) && i2.current.focus(); 3754 } else "Escape" === e2.key && (S2(false), null === (n3 = x2.current) || void 0 === n3 || n3.focu
3754s()); 3755 } }), "" !== R2 && e.jsx("div", u({ className: "".concat(h, "-select-error ").concat(po.error), id: W2 + "-error" }, { children: R2 }))] })); 3756 }), { Option: bo }), jo = { base: "checkboxGroup-module__base_9322_a4UP-", label: "checkboxGroup-module__label_9322_Yd5jk", sublabel: "checkboxGroup-module__sublabel_9322_Bwusf", "theme--dark": "checkboxGroup-module__theme--dark_9322_S33-t", error: "checkboxGroup-module__error_9322_-ybr4", collapsible: "checkboxGroup-module__collapsible_9322_1bpFM", collapsibleContent: "checkboxGroup-module__collapsibleContent_9322_A9VT-" }; 3757 c(".checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__label_9322_Yd5jk{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.checkboxGroup-module__base_9322_a4UP-{border:none;margin:.5rem 0;padding:0}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__label_9322_Yd5jk{display:block;padding:0 0 .5rem}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__label_9322_Yd5jk span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:.5rem}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__sublabel_9322_Bwusf{display:block;margin-bottom:.5rem}.checkboxGroup-module__base_9322_a4UP-:focus-within{outline:1px solid var(--bc-c-border-input);outline-offset:.5rem}.checkboxGroup-module__base_9322_a4UP-.checkboxGroup-module__theme--dark_9322_S33-t label{color:#fff}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__error_9322_-ybr4{color:var(--bc-danger-color-500)}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__collapsible_9322_1bpFM{margin-top:1rem}.checkboxGroup-module__base_9322_a4UP- .checkboxGroup-module__collapsible_9322_1bpFM .checkboxGroup-module__collapsibleContent_9322_A9
3757VT-{margin-bottom:1rem}"); 3758 var To = { title: "", withButton: true, openText: "Vis flere", closeText: "Vis færre", showChevron: true, softHide: true, buttonVariant: "icon" }, Po = function(o2, n2) { 3759 var a2, i2, l2, c2, d2, s2, m2 = o2.labelText, p2 = o2.name, b2 = o2.onChange, f2 = void 0 === b2 ? void 0 : b2, g2 = _(o2, ["labelText", "name", "onChange"]), v2 = t.useRef([]), x2 = t.useState([]), y2 = x2[0], k2 = x2[1], w2 = t.useState(""), N2 = w2[0], C2 = w2[1]; 3760 t.useEffect(function() { 3761 var e2 = t.Children.map(g2.children, function(e3, o3) { 3762 var n3; 3763 if (t.isValidElement(e3) && e3.type === lo) { 3764 v2.current[o3] = t.createRef(); 3765 var a3 = { ref: v2.current[o3], id: "checkbox-index-".concat(o3, "-").concat(St(5), "-").concat(null !== (n3 = e3.props.id) && void 0 !== n3 ? n3 : ""), returnEmptyValues: g2.returnEmptyValues }; 3766 return t.cloneElement(e3, a3); 3767 } 3768 return e3; 3769 }); 3770 k2(e2); 3771 }, [g2.children, g2.returnEmptyValues]); 3772 var j2 = t.useCallback(function() { 3773 var e2 = []; 3774 if (v2.current.forEach(function(t2) { 3775 var o3, n3, a3 = null === (n3 = null === (o3 = t2.current) || void 0 === o3 ? void 0 : o3.getValue) || void 0 === n3 ? void 0 : n3.call(o3); 3776 (g2.returnEmptyValues || a3) && e2.push(a3); 3777 }), g2.returnEmptyValues || e2.length) return e2; 3778 }, [v2, g2.returnEmptyValues]); 3779 t.useEffect(function() { 3780 f2 && void 0 !== j2() && f2(j2()); 3781 }, [j2, f2]); 3782 var T2, P2 = function() { 3783 return p2; 3784 }, S2 = function() { 3785 return m2; 3786 }, D2 = function() { 3787 var e2; 3788 v2.current.length && (null === (e2 = v2.current[0].current) || void 0 === e2 ? void 0 : e2.focus) && v2.current[0].current.focus(); 3789 }, A2 = function() { 3790 v2.current.forEach(function(e2) { 3791 var t2, o3; 3792 (null === (t2 = e2.current) || void 0 === t2 ? void 0 : t2.reset) && (null === (o3 = e2.current) || void 0 === o3 || o3.reset()); 3793 }); 3794 }, E2 = function() { 3795 return v2.current.length ? v2.current[0] : void 0; 3796 }, R2 = function() { 3797 var e2 = false; 3798 if (v2.current.forEach(function(t3) { 3799 var o3; 3800 if (t3 && t3.current && t3.current.validate) { 3801 var n3 = null === (o3 = null == t3 ? void 0 : t3.current) || void 0 === o3 ? void 0 : o3.validate(); 3802 n3 && (e2 = n3); 3803 } 3804 }), g2.formValidation) { 3805 var t2 = j2(); 3806 if (g2.formValidation.required && g2.formValidation.required.data && (C2(""), (null == t2 ? void 0 : t2.filter(function(e3) { 3807 return false === e3; 3808 }).length) === (null == t2 ? void 0 : t2.length))) return C2(g2.formValidation.required.errorMessage), g2.formValidation.required.errorMessage; 3809 } 3810 return e2; 3811 }; 3812 t.useImperativeHandle(n2, function() { 3813 return { setValue: {}, getValue: j2, getName: P2, getLabel: S2, reset: A2, getNativeRef: E2, focus: D2, type: "CheckboxGroup", validate: R2 }; 3814 }), T2 = g2.formValidation && g2.formValidation.required && (null === (a2 = g2.formValidation) || void 0 === a2 ? void 0 : a2.required.data) ? null !== (i2 = g2.requiredText) && void 0 !== i2 ? i2 : "(påkrevd)" : null !== (l2 = g2.notRequiredText) && void 0 !== l2 ? l2 : ""; 3815 var I2 = ["".concat(h, "-checkboxgroup ").concat(jo.base)]; 3816 g2.theme && I2.push("".concat(h, "-content-textarea--theme-").concat(g2.theme, " ").concat(jo["theme--" + g2.theme])), g2.className && I2.push(g2.className); 3817 var M2 = "checkboxgroup-".concat(St(5), "-").concat(null !== (c2 = g2.id) && void 0 !== c2 ? c2 : ""), z2 = M2 + "-error", L2 = M2 ? "".concat(M2, "-collapsible-").concat(St(5)) : void 0, F2 = e.jsxs(e.Fragment, { children: [r.Children.count(y2) && r.Children.toArray(y2).slice(0, null !== (d2 = g2.maxItemCount) && void 0 !== d2 ? d2 : r.Children.count(y2)), g2.maxItemCount && r.Children.count(y2) > g2.maxItemCount && e.jsx(Jt, u({ id: L2, className: "".concat(h, "-checkboxgroup-collapsible ").concat(jo.collapsible) }, null !== (s2 = g2.collapsibleProps) && void 0 !== s2 ? s2 : To, { children: e.jsx("div", u({ className: jo.collapsibleContent }, { children: r.Children.toArray(y2).slice(g2.maxItemCount, r.Children.count(y2)) })) }))] }), O2 = e.jsxs("fieldset", u({ id: M2, className: I2.join(" "), "aria-errormessage": N2 ? z2 : void 0, "aria-invalid": N2 ? "true" : void 0, "aria-describedby": g2.subLabelText ? M2 + "-sublabel" : void 0 }, { children: [m2 && e.jsxs("legend", u({ className: "".concat(h, "-checkboxgroup-label ").concat(jo.label) }, { children: [m2, e.jsx("span", { children: T2 })] })), g2.subLabelText && e.jsxs("span", u({ className: "".concat(h, "-checkboxgroup-sublabel ").concat(jo.sublabel), id: M2 + "-sublabel" }, { children: [g2.subLabelText, " "] })), F2, "" !== N2 && e.jsx("p", u({ className: "".concat(h, "-checkboxgroup-error ").concat(jo.error), id: z2 }, { children: N2 }))] })), B2 = e.jsxs("div", u({ className: I2.join(" "), id: M2 }, { children: [F2, "" !== N2 && e.jsx("p", u({ className: "".concat(h, "-checkboxgroup-error ").concat(jo.error) }, { children: N2 }))] })); 3818 return m2 ? O2 : B2; 3819 }, So = t.forwardRef(Po), Do = { base: "reCAPTCHA-module__base_9322_aKAsd", "captcha-error": "reCAPTCHA-module__captcha-error_9322_rB-eg" }; 3820 function Ao(e2, t2, o2, n2, a2) { 3821 var r2, i2 = document.getElementById(e2); 3822 if (i2) i2.remove(), Ao(e2, t2, o2, n2); 3823 else { 3824 var l2 = document.createElement("script"); 3825 l2.type = "text/javascript", l2.src = t2, l2.id = e2, l2.async = true, l2.defer = true, l2.onload = function() { 3826 }, n2 ? null === (r2 = document.querySelector(n2)) || void 0 === r2 || r2.appendChild(l2) : document.body.appendChild(l2); 3827 } 3828 } 3829 c(".reCAPTCHA-module__base_9322_aKAsd{height:auto;margin-bottom:10px}.reCAPTCHA-module__captcha-error_9322_rB-eg{color:var(--bc-danger-color-500);font-size:medium;margin:2px 0 0;width:fit-content}"); 3830 c(".grecaptcha-badge{z-index:2000}"); 3831 var Eo = t.forwardRef(function(o2, n2) { 3832 var a2 = o2.textUncheckedError, r2 = void 0 === a2 ? "The reCAPTCHA needs to be checked" : a2, i2 = o2.theme, l2 = void 0 === i2 ? "light" : i2, c2 = o2.version, d2 = void 0 === c2 ? "V2" : c2, s2 = _(o2, ["textUncheckedError", "theme", "version"]), m2 = t.useState(false), p2 = m2[0], b2 = m2[1], f2 = t.useState(0), g2 = f2[0], v2 = f2[1], x2 = t.useState(""), y2 = x2[0], k2 = x2[1], w2 = t.useState(false), N2 = w2[0], C2 = w2[1]; 3833 t.useEffect(function() { 3834 window.reCaptchaNumber || (window.reCaptchaNumber = 0), v2(window.reCaptchaNumber), window.reCaptchaNumber++; 3835 }, [s2.id]), t.useEffect(function() { 3836 window.reCaptchaLoading ? setTimeout(function() { 3837 b2(true); 3838 }, 1e3) : (window.reCaptchaLoading = true, window.onRecaptchaLoadCallback = function() { 3839 b2(true); 3840 }, "V3" === d2 ? Ao(s2.id + "-script-v3", "https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&hl=no&render=".concat(s2.siteKey), void 0, s2.scriptContainer) : Ao(s2.id + "-script-v2", "https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&hl=no&render=explicit", void 0, s2.scriptContainer)); 3841 }, [s2.id, s2.scriptContainer, s2.siteKey, d2]), t.useEffect(function() { 3842 var e2; 3843 "V2" === d2 && p2 && (null === (e2 = window.grecaptcha) || void 0 === e2 || e2.ready(function() { 3844 var e3; 3845 if ("V2" === d2 && !s2.renderTargetID && document.getElementById(s2.id + "-captcha-container")) try { 3846 window.grecaptcha.render(null !== (e3 = s2.renderTargetID) && void 0 !== e3 ? e3 : s2.id + "-captcha-container", { sitekey: s2.siteKey, theme: l2 }); 3847 } catch (e4) { 3848 console.error(e4); 3849 } 3850 })); 3851 }, [s2.renderTargetID, s2.siteKey, d2, p2, s2.id, l2]); 3852 var j2 = function() { 3853 var e2, t2; 3854 return "V3" === d2 ? null === (e2 = window.grecaptcha) || void 0 === e2 ? void 0 : e2.execute(s2.siteKey, { action: "submit" }) : null === (t2 = window.grecaptcha) || void 0 === t2 ? void 0 : t2.getResponse(g2); 3855 }, T2 = function() { 3856 var e2; 3857 return k2(""), "V2" === d2 && 0 === (null === (e2 = window.grecaptcha) || void 0 === e2 ? void 0 : e2.getResponse(g2).length) && (k2(r2), C2(true), r2); 3858 }, P2 = function() { 3859 }, S2 = function() { 3860 return ""; 3861 }, D2 = function() { 3862 return s2.name; 3863 }; 3864 t.useImperativeHandle(n2, function() { 3865 return { setValue: {}, getValue: j2, validate: T2, getName: D2, getLabel: S2, getNativeRef: P2, type: "ReCAPTCHA" }; 3866 }); 3867 var A2 = ["".concat(h, "-content-reCAPTCHA"), "g-recaptcha", Do.base]; 3868 return l2 && A2.push("".concat(h, "-content-textarea--theme-").concat(l2), Do["theme--" + l2]), s2.className && A2.push(s2.className), e.jsxs(e.Fragment, { children: ["V2" === d2 && e.jsx("div", { id: s2.id + "-captcha-container", className: A2.join(" "), "data-sitekey": s2.siteKey, "aria-invalid": N2, "aria-describedby": N2 ? s2.id + "-captcha-error" : void 0 }), "" !== y2 && e.jsx("p", u({ id: s2.id + "-captcha-error", className: "captcha-error ".concat(Do["captcha-error"]) }, { children: y2 }))] }); 3869 }), Ro = { base: "avatar-module__base_9322_PcKQm", "shape--rounded": "avatar-module__shape--rounded_9322_O-5Ls", "shape--squared": "avatar-module__shape--squared_9322_JQstV", "size--small": "avatar-module__size--small_9322_Z8WEk", "size--medium": "avatar-module__size--medium_9322_4DDa5", "size--large": "avatar-module__size--large_9322_KOUQC", "size--full": "avatar-module__size--full_9322_OQX
3869F9", "theme--dark": "avatar-module__theme--dark_9322_EBcKS" }; 3870 c(".avatar-module__base_9322_PcKQm{border:1px solid #000;height:100px;width:100px}.avatar-module__base_9322_PcKQm.avatar-module__shape--rounded_9322_O-5Ls{border-radius:100%}.avatar-module__base_9322_PcKQm.avatar-module__shape--squared_9322_JQstV{border-radius:3px}.avatar-module__base_9322_PcKQm.avatar-module__size--small_9322_Z8WEk{height:50px;width:50px}.avatar-module__base_9322_PcKQm.avatar-module__size--medium_9322_4DDa5{height:100px;width:100px}.avatar-module__base_9322_PcKQm.avatar-module__size--large_9322_KOUQC{height:200px;width:200px}.avatar-module__base_9322_PcKQm.avatar-module__size--full_9322_OQXF9{aspect-ratio:1;height:auto;width:100%}.avatar-module__base_9322_PcKQm.avatar-module__theme--dark_9322_EBcKS{border-color:#fff}"); 3871 var Io = function(t2) { 3872 var o2, n2 = _(t2, []), a2 = ["".concat(h, "-content-avatar ").concat(Ro.base)]; 3873 return n2.variant && a2.push("".concat(h, "-shape--").concat(n2.variant), Ro["shape--".concat(n2.variant)]), n2.size && a2.push("".concat(h, "-size--").concat(n2.size), Ro["size--".concat(n2.size)]), n2.theme && a2.push("".concat(h, "-content-avatar--theme-").concat(n2.theme), Ro["theme--".concat(n2.theme)]), n2.className && a2.push(n2.className), e.jsx("img", { src: null !== (o2 = n2.src) && void 0 !== o2 ? o2 : "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNS40LjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCA0MDAwIDQwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMDAgNDAwMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6I0YyRjJGMjt9DQoJLnN0MXtmaWxsOiNEM0QzRDM7fQ0KPC9zdHlsZT4NCjxnPg0KCTxnPg0KCQk8Y2lyY2xlIGNsYXNzPSJzdDAiIGN4PSIyMDAwIiBjeT0iMjAwMCIgcj0iMTYzMS42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yMDAwLDIxMTIuMWMtNDg1LjYsMC04NzkuMywyNzUuNi04NzkuMyw2MTUuNVYyOTEyaDE3NTguN3YtMTg0LjNDMjg3OS4zLDIzODcuNywyNDg1LjYsMjExMi4xLDIwMDAsMjExMi4xeg0KCQkJIi8+DQoJCQ0KCQkJPGVsbGlwc2UgdHJhbnNmb3JtPSJtYXRyaXgoMC43MDcxIC0wLjcwNzEgMC43MDcxIDAuNzA3MSAtNDkwLjI5MTEgMTg1OS45Mzk1KSIgY2xhc3M9InN0MSIgY3g9IjIwMDAiIGN5PSIxNTIxLjgiIHJ4PSI0MzMuOCIgcnk9IjQzMy44Ii8+DQoJPC9nPg0KPC9nPg0KPC9zdmc+DQo=", alt: n2.alt, id: n2.id, className: a2.join(" ") }); 3874 }, Mo = function(e2) { 3875 var o2 = ""; 3876 return "string" == typeof e2 ? o2 = e2 : "number" == typeof e2 ? o2 = e2.toString() : e2 instanceof Array ? e2.forEach(function(e3) { 3877 o2 += Mo(e3); 3878 }) : t.isValidElement(e2) && (o2 += Mo(e2.props.children)), o2; 3879 }, zo = { base: "paragraph-module__base_9322_ECN3S", showMoreButton: "paragraph-module__showMoreButton_9322_z-S-r", "theme--dark": "paragraph-module__theme--dark_9322_O9BFo", "align--left": "paragraph-module__align--left_9322_vro3x", "align--right": "paragraph-module__align--right_9322_YKxwg", "align--center": "paragraph-module__align--center_9322_Fim1V" }; 3880 c(".paragraph-module__base_9322_ECN3S .paragraph-module__showMoreButton_9322_z-S-r{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;background:#0000;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto}.paragraph-module__base_9322_ECN3S.paragraph-module__theme--dark_9322_O9BFo{color:#fff}.paragraph-module__base_9322_ECN3S.paragraph-module__align--left_9322_vro3x{text-align:left}.paragraph-module__base_9322_ECN3S.paragraph-module__align--right_9322_YKxwg{text-align:right}.paragraph-module__base_9322_ECN3S.paragraph-module__align--center_9322_Fim1V{text-align:center}.paragraph-module__base_9322_ECN3S .paragraph-module__showMoreButton_9322_z-S-r{backdrop-filter:blur(3px);background-color:hsla(0,0%,100%,.733);box-shadow:0 -1rem 15px #fff;display:block;margin-top:-1rem;padding-top:1rem;text-align:center;text-decoration:underline;width:100%;z-index:1}.paragraph-module__base_9322_ECN3S .paragraph-module__showMoreButton_9322_z-S-r:focus,.paragraph-module__base_9322_ECN3S .paragraph-module__showMoreButton_9322_z-S-r:hover{font-weight:700}"); 3881 var Lo = function(o2) { 3882 var n2, a2, r2, i2, l2, c2 = _(o2, []), d2 = t.useState(null !== (n2 = c2.lineLimit) && void 0 !== n2 ? n2 : 0), s2 = d2[0], m2 = d2[1], p2 = null !== (r2 = null !== (a2 = c2.innerHTML) && void 0 !== a2 ? a2 : c2.text) && void 0 !== r2 ? r2 : ""; 3883 c2.children && (p2 = Mo(c2.children)), c2.characterLimit && (p2 = p2.substring(0, c2.characterLimit)); 3884 var b2 = ["".concat(h, "-paragraph ").concat(zo.base, " ").concat(zo.base)]; 3885 return c2.theme && b2.push("".concat(h, "-paragraph-theme--").concat(c2.theme, " ").concat(zo["theme--" + c2.theme])), c2.align && b2.push("".concat(h, "-paragraph-align--").concat(c2.align, " ").concat(zo["align--" + c2.align])), c2.className && b2.push(c2.className), e.jsxs("div", u({ className: b2.join(" ") }, { children: [e.jsx("p", u({ dangerouslySetInnerHTML: void 0 === c2.children ? { __html: p2 } : void 0, style: { maxHeight: s2 ? s2 + 1 + "rem" : void 0, overflow: s2 ? "hidden" : void 0 } }, { children: void 0 !== c2.children ? p2 : void 0 })), 0 !== s2 && e.jsx("button", u({ type: "button", className: zo.showMoreButton, onClick: function() { 3886 m2(0); 3887 } }, { children: null !== (l2 = null === (i2 = c2.translations) || void 0 === i2 ? void 0 : i2.showMore) && void 0 !== l2 ? l2 : "Les videre" }))] })); 3888 }, Fo = { base: "link-module__base_9322_-XNSx", text: "link-module__text_9322_SO5JF", renderAsButton: "link-module__renderAsButton_9322_zvs-N" }; 3889 c(".link-module__base_9322_-XNSx{color:var(--bc-primary-color-500);cursor:pointer;display:inline-block;text-decoration:none}.link-module__base_9322_-XNSx[aria-disabled=true],.link-module__base_9322_-XNSx[disabled]{cursor:not-allowed}.link-module__base_9322_-XNSx .link-module__text_9322_SO5JF{text-decoration:underline}.link-module__base_9322_-XNSx.link-module__renderAsButton_9322_zvs-N .link-module__text_9322_SO5JF{color:inherit;text-decoration:none}"); 3890 var Oo = function(t2) { 3891 var o2 = t2.text, n2 = t2.href, a2 = t2.renderAsButton, r2 = void 0 !== a2 && a2, i2 = t2.status, l2 = void 0 === i2 ? "primary" : i2, c2 = t2.onClick, d2 = void 0 === c2 ? void 0 : c2, s2 = _(t2, ["text", "href", "renderAsButton", "status", "onClick"]), m2 = ["".concat(h, "-content-link ").concat(Fo.base)]; 3892 return r2 && (m2.push("".concat(h, "-content-link--button ").concat(K.base, " ").concat(K["status--" + l2])), m2.push("".concat(h, "-link-render-as-button ").concat(Fo.renderAsButton))), m2.push("".concat(h, "-content-link--").concat(l2, " ").concat(Fo["status--" + l2])), s2.className && m2.push(s2.className), null !== o2 && "" !== n2 || (o2 = n2), e.jsxs("a", u({ id: s2.id, className: m2.join(" "), target: s2.target, href: n2, role: r2 ? "button" : void 0, onClick: d2 }, { children: [null != o2 && "" !== o2 && e.jsx("span", u({ id: s2.id ? "".concat(h, "-content-link-text-").concat(s2.id) : void 0, className: "".concat(h, "-content-link-text ").concat(Fo.text) }, { children: o2 })), s2.children] })); 3893 }, Bo = "transition-module__base_9322_MFZcd"; 3894 c(""); 3895 var Ho = function(e2) { 3896 var o2 = _(e2, []), n2 = t.useState(o2.in ? "entered" : "exited"), a2 = n2[0], r2 = n2[1], i2 = t.useState(false), l2 = i2[0], c2 = i2[1], d2 = function() { 3897 var e3, t2, n3, a3 = o2.timeout; 3898 return t2 = e3 = n3 = a3, null != a3 && "number" != typeof a3 && (t2 = a3.exit, e3 = a3.enter, n3 = a3.appear), { enter: e3, exit: t2, appear: n3 }; 3899 }; 3900 t.useEffect(function() { 3901 var e3; 3902 return o2.in ? e3 = function() { 3903 r2("entering"); 3904 var e4 = setTimeout(function() { 3905 r2("entered"); 3906 }, l2 ? d2().enter : d2().appear); 3907 return l2 || c2(true), e4; 3908 }() : (r2("exiting"), e3 = setTimeout(function() { 3909 r2("exited"); 3910 }, d2().exit)), function() { 3911 clearTimeout(e3); 3912 }; 3913 }, [o2.in]); 3914 var s2 = ["".concat(h, "-transition ").concat(Bo)]; 3915 return o2.className && s2.push(o2.className), "function" == typeof o2.children ? o2.children(a2) : o2.children; 3916 }, Vo = { base: "carousel-module__base_9322_Fsw0G", "button-container": "carousel-module__button-container_9322_Vjvkp", button: "carousel-module__button_9322_31let", container: "carousel-module__container_9322_OVAyo", content: "carousel-module__content_9322_1fpWK", active: "carousel-module__active_9322_8CEN4", caption: "carousel-module__caption_9322_-JKlQ", previous: "carousel-module__previous_9322_03xXH", next: "carousel-module__next_9322_JvVKd", indicators: "carousel-module__indicators_9322_-UXKR", "animation--slide": "carousel-module__animation--slide_9322_-KRz8", "slide-left": "carousel-module__slide-left_9322_zx-Gf", "slide-out-right": "carousel-module__slide-out-right_9322_hfPvj", "slide-right": "carousel-module__slide-right_9322_N0CK7", "slide-out-left": "carousel-module__slide-out-left_9322_-sDQZ", exiting: "carousel-module__exiting_9322_eOGYv", "animation--fade": "carousel-module__animation--fade_9322_qMxRm", "theme--dark": "carousel-module__theme--dark_9322_PzHW5", "indicator-item": "carousel-module__indicator-item_9322_vaRQO", miniature: "carousel-module__miniature_9322_99wr2", "description-position--over": "carousel-module__description-position--over_9322_ogrqv", "description-position--under": "carousel-module__description-position--under_9322_tQw61" }; 3917 c(".carousel-module__base_9322_Fsw0G .carousel-module__button-container_9322_Vjvkp .carousel-module__button_9322_31let{-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;background:#0000;border:none;color:inherit;font:inherit;line-height:normal;margin:0;overflow:visible;padding:0;width:auto}.carousel-module__base_9322_Fsw0G,.carousel-module__base_9322_Fsw0G .carousel-module__container_9322_OVAyo{display:block;position:relative}.carousel-module__base_9322_Fsw0G .carousel-module__content_9322_1fpWK{display:block;min-height:200px;overflow:hidden;position:relative;width:100%}
3917.carousel-module__base_9322_Fsw0G .carousel-module__content_9322_1fpWK>div{-webkit-box-align:center;align-items:center;bottom:0;display:none;left:0;perspective:1000px;position:relative;right:0;top:0}.carousel-module__base_9322_Fsw0G .carousel-module__content_9322_1fpWK .carousel-module__active_9322_8CEN4{display:block;z-index:1}.carousel-module__base_9322_Fsw0G .carousel-module__content_9322_1fpWK .carousel-module__caption_9322_-JKlQ{backdrop-filter:blur(3px);background-color:#2d2d2dcc;bottom:25px;color:#fff;display:block;left:20%;padding-bottom:10px;padding-top:10px;position:absolute;right:20%;text-align:center}@media only screen and (max-width:48em){.carousel-module__base_9322_Fsw0G .carousel-module__content_9322_1fpWK .carousel-module__caption_9322_-JKlQ{margin-top:.5rem;position:static}}.carousel-module__base_9322_Fsw0G .carousel-module__button-container_9322_Vjvkp{align-items:center;bottom:0;cursor:pointer;display:flex;justify-content:center;opacity:0;position:absolute;top:0;z-index:5}.carousel-module__base_9322_Fsw0G .carousel-module__button-container_9322_Vjvkp .carousel-module__button_9322_31let{align-items:center;background-color:var(--bc-background-color);border:1px solid var(--bc-border-color);border-radius:100%;cursor:pointer;display:inline-flex;height:fit-content;height:2.5rem;justify-content:center;width:2.5rem}.carousel-module__base_9322_Fsw0G .carousel-module__button-container_9322_Vjvkp .carousel-module__button_9322_31let:focus,.carousel-module__base_9322_Fsw0G .carousel-module__button-container_9322_Vjvkp .carousel-module__button_9322_31let:hover{background-color:var(--bc-c-action-primary-hover);border-color:var(--bc-c-action-primary-hover);color:var(--bc-c-action-primary-foreground-hover)}.carousel-module__base_9322_Fsw0G .carousel-module__previous_9322_03xXH{left:5px}.carousel-module__base_9322_Fsw0G .carousel-module__next_9322_JvVKd{right:5px}.carousel-module__base_9322_Fsw0G:focus-within .carousel-module__button-container_9322_Vjvkp,.carousel-module__base_9322_Fsw0G:hover .carousel-module__button-container_9322_Vjvkp{opacity:1}.carousel-module__base_9322_Fsw0G .carousel-module__indicators_9322_-UXKR{-webkit-box-pack:center;bottom:10px;display:flex;flex-wrap:wrap;justify-content:center;margin:1rem 15%;padding-left:0;z-index:100}@keyframes carousel-module__slide-left_9322_zx-Gf{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes carousel-module__slide-right_9322_N0CK7{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes carousel-module__slide-out-left_9322_-sDQZ{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes carousel-module__slide-out-right_9322_hfPvj{0%{transform:translateX(0)}to{transform:translateX(-100%)}}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK>div{display:block;opacity:0;position:absolute;transition:all .5s ease-in-out}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__active_9322_8CEN4{opacity:1;position:relative}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__slide-left_9322_zx-Gf{animation:carousel-module__slide-out-right_9322_hfPvj .5s ease-in-out;display:block}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__slide-left_9322_zx-Gf.carousel-module__active_9322_8CEN4{animation:carousel-module__slide-right_9322_N0CK7 .5s ease-in-out}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__slide-right_9322_N0CK7{animation:carousel-module__slide-out-left_9322_-sDQZ .5s ease-in-out;display:block}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__slide-right_9322_N0CK7.carousel-module__active_9322_8CEN4{animation:carousel-module__slide-left_9322_zx-Gf .5s ease-in-out}.carousel-module__base_9322_Fsw0G.carousel-module__animation--slide_9322_-KRz8 .carousel-module__content_9322_1fpWK .carousel-module__exiting_9322_eOGYv{display:block;position:absolute}.carousel-module__base_9322_Fsw0G.carousel-module__animation--fade_9322_qMxRm .carousel-module__content_9322_1fpWK{position:relative}.carousel-module__base_9322_Fsw0G.carousel-module__animation--fade_9322_qMxRm .carousel-module__content_9322_1fpWK>div{display:block;opacity:0;position:absolute;transition:opacity .5s ease-in-out}.carousel-module__base_9322_Fsw0G.carousel-module__animation--fade_9322_qMxRm .carousel-module__content_9322_1fpWK .carousel-module__active_9322_8CEN4{opacity:1;position:relative}.carousel-module__base_9322_Fsw0G.carousel-module__animation--fade_9322_qMxRm .carousel-module__content_9322_1fpWK .carousel-module__exiting_9322_eOGYv{display:block;position:absolute}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__caption_9322_-JKlQ{background-color:#2d2d2dcc;color:#fff}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__indicator-item_9322_vaRQO{border:1px solid #000}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let{background-color:var(--bc-primary-color-500)}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let i,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let i{color:#fff}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let:focus,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let:hover,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let:focus,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let:hover{background-color:var(--bc-c-action-secondary-hover);border-color:#000}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let:focus i,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__next_9322_JvVKd .carousel-module__button_9322_31let:hover i,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let:focus i,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__previous_9322_03xXH .carousel-module__button_9322_31let:hover i{color:#000}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__miniature_9322_99wr2{border-color:#fff}.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__miniature_9322_99wr2:
3917active,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__miniature_9322_99wr2:focus,.carousel-module__base_9322_Fsw0G.carousel-module__theme--dark_9322_PzHW5 .carousel-module__miniature_9322_99wr2:hover{outline-color:#fff}.carousel-module__base_9322_Fsw0G.carousel-module__description-position--under_9322_tQw61 .carousel-module__caption_9322_-JKlQ{margin-top:.5rem;position:static}"); 3918 var Go = t.createContext({}), Uo = function(t2) { 3919 var o2 = [Vo.miniature, "bc-carousel-miniature"]; 3920 return t2.className && o2.push(t2.className), e.jsx("div", u({ className: t2.className }, { children: t2.children })); 3921 }, Ko = function(o2) { 3922 var n2 = t.useContext(Go), a2 = n2.selected, r2 = n2.previousSelected, i2 = [o2.className]; 3923 return o2.active && i2.push(Vo.active, "active"), "entering" === o2.status && i2.push(Vo.entering, "entering"), "exiting" === o2.status && i2.push(Vo.exiting, "exiting"), "entering" !== o2.status && "exiting" !== o2.status || (a2 < r2 && i2.push(Vo["slide-right"], "slide-right"), a2 > r2 && i2.push(Vo["slide-left"], "slide-left")), e.jsx("div", u({ className: i2.join(" "), role: "group", "aria-roledescription": "slide" }, { children: o2.children })); 3924 }, Wo = "indicators-module__miniature_9322_tp9RA", Qo = "indicators-module__visible_9322_97vKL", qo = "indicators-module__active_9322_HO6RG", Xo = "indicators-module__indicator-item_9322_Qw7lY"; 3925 c('.indicators-module__miniature_9322_tp9RA{cursor:pointer;display:none;height:100px;margin:0 .5rem;opacity:.5;transition:all .5s ease-in-out;width:auto}.indicators-module__miniature_9322_tp9RA img{height:100px;width:auto}.indicators-module__miniature_9322_tp9RA .indicators-module__caption_9322_T-iuS{display:none}.indicators-module__miniature_9322_tp9RA.indicators-module__visible_9322_97vKL{display:initial}.indicators-module__miniature_9322_tp9RA:active,.indicators-module__miniature_9322_tp9RA:hover{outline:2px solid var(--bc-primary-color-500)}.indicators-module__miniature_9322_tp9RA.indicators-module__active_9322_HO6RG{box-shadow:0 0 0 2px var(--bc-primary-color-500);opacity:1}.indicators-module__indicator-item_9322_Qw7lY{background-color:var(--bc-background-color);border:1px solid var(--bc-border-color);border-radius:50%;content:" ";cursor:pointer;display:block;height:1rem;margin-bottom:.5rem;margin-left:.5rem;margin-right:.5rem;width:1rem}.indicators-module__indicator-item_9322_Qw7lY:hover{background-color:var(--bc-background-color-2)}.indicators-module__indicator-item_9322_Qw7lY.indicators-module__active_9322_HO6RG{background-color:var(--bc-primary-color-500)}'); 3926 var Yo = function(o2) { 3927 var n2 = t.useContext(Go), a2 = n2.selected, r2 = n2.setSelected; 3928 return e.jsx(e.Fragment, { children: t.Children.map(o2.children, function(n3, i2) { 3929 var l2 = t.isValidElement(n3) && n3.props.children ? t.Children.toArray(n3.props.children).filter(function(e2) { 3930 return "string" != typeof e2 && "number" != typeof e2 && ("type" in e2 && (null == e2 ? void 0 : e2.type) === Uo); 3931 }) : null, c2 = []; 3932 return (null == l2 ? void 0 : l2.length) && c2.push(Wo, "".concat(h, "-carousel-miniature")), l2 && (null == l2 ? void 0 : l2.length) || c2.push(Xo, "".concat(h, "-carousel-indicator-item")), (null == l2 ? void 0 : l2.length) && Math.abs(a2 - i2) < 2 && c2.push(Qo, "visible"), a2 === i2 && c2.push(qo, "active"), e.jsx("div", u({ role: "button", tabIndex: 0, "aria-label": "".concat(o2.indicatorText, " ").concat(i2 + 1), className: c2.join(" "), onClick: function() { 3933 return r2(i2); 3934 }, onKeyDown: function(e2) { 3935 return o2.onIndicatorKeyDown(e2, i2); 3936 } }, { children: l2 }), "carousel-miniature-" + i2); 3937 }) }); 3938 }, Jo = function(o2) { 3939 var n2, a2, r2, l2, c2, d2, s2, _2, m2 = i.default.useContext(Go).selected; 3940 return e.jsxs("div", u({ className: o2.className, role: "region", "aria-roledescription": "carousel", "aria-label": null !== (a2 = null === (n2 = o2.translations) || void 0 === n2 ? void 0 : n2.carousel) && void 0 !== a2 ? a2 : "carousel" }, { children: [e.jsxs("div", u({ className: "".concat(Vo.container, " ").concat(h, "-carousel-container") }, { children: [e.jsx("div", u({ onClick: o2.prevSlide, className: "".concat(Vo["button-container"], " ").concat(Vo.previous, " ").concat(h, "-carousel-previous") }, { children: e.jsx("button", u({ ref: o2.refPreviousButton, type: "button", className: Vo.button, "aria-label": null !== (l2 = null === (r2 = o2.translations) || void 0 === r2 ? void 0 : r2.previousSlide) && void 0 !== l2 ? l2 : "previous slide", onKeyDown: function(e2) { 3941 return o2.onKeyDownArrow(e2); 3942 } }, { children: e.jsx(q, { icon: "ri-arrow-left-s-line", size: "ri-2x" }) })) })), e.jsx("div", u({ className: "".concat(Vo.content, " ").concat(h, "-carousel-content") }, { children: t.Children.map(o2.children, function(o3, n3) { 3943 return e.jsx(Ho, u({ in: m2 === n3, timeout: 500 }, { children: function(a3) { 3944 var r3 = t.Children.map(o3.props.children, function(e2) { 3945 if (e2 && (null == e2 ? void 0 : e2.type) != Uo) return t.cloneElement(e2, { selected: m2 === n3 }); 3946 }); 3947 return e.jsx(Ko, u({ status: a3, index: n3, active: m2 === n3 }, { children: r3 })); 3948 } }), "carousel-element-" + n3); 3949 }) })), e.jsx("div", u({ onClick: o2.nextSlide, className: "".concat(Vo["button-container"], " ").concat(Vo.next, " ").concat(h, "-carousel-next") }, { children: e.jsx("button", u({ ref: o2.refNextButton, type: "button", className: Vo.button, "aria-label": null !== (d2 = null === (c2 = o2.translations) || void 0 === c2 ? void 0 : c2.nextSlide) && void 0 !== d2 ? d2 : "next slide", onKeyDown: function(e2) { 3950 return o2.onKeyDownArrow(e2); 3951 } }, { children: e.jsx(q, { icon: "ri-arrow-right-s-line", size: "ri-2x" }) })) }))] })), e.jsx("div", u({ className: "".concat(Vo.indicators, " ").concat(h, "-carousel-indicators") }, { children: e.jsx(Yo, u({ indicatorText: null !== (_2 = null === (s2 = o2.translations) || void 0 === s2 ? void 0 : s2.indicatorText) && void 0 !== _2 ? _2 : "", onIndicatorKeyDown: o2.onIndicatorKeyDown }, { children: o2.children })) }))] })); 3952 }, Zo = function(t2) { 3953 return !t2.children || "string" == typeof t2.children && !t2.children.length ? null : e.jsx("div", u({ className: [Vo.caption, "".concat(h, "-carousel-caption")].join(" ") }, { children: t2.children })); 3954 }, $o = function(t2) { 3955 return e.jsx(e.Fragment, { children: t2.children }); 3956 }, en = { base: "step-module__base_9322_dl6a0", indicator: "step-module__indicator_9322_BAFSF", "indicator-dot": "step-module__indicator-dot_9322_sLlV9", icon: "step-module__icon_9322_RIHuu", dot: "step-module__dot_9322_QzmWG", "indicator-line": "step-module__indicator-line_9322_YxoLc", pending: "step-module__pending_9322_IO
3956X1n", inProgress: "step-module__inProgress_9322_WMMb7", content: "step-module__content_9322_MyQLk", "content-title": "step-module__content-title_9322_pQQhr", substep: "step-module__substep_9322_93s8B" }; 3957 c(".step-module__base_9322_dl6a0{display:flex;flex-direction:row}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF{align-items:center;display:flex;flex-direction:column;width:4rem}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9{align-items:center;background-color:#d3d3d3;border:3px solid #4b4b4b;border-radius:50%;display:flex;height:4rem;justify-content:center;width:4rem}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9 .step-module__icon_9322_RIHuu{font-size:2.5rem}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9 .step-module__dot_9322_QzmWG{background-color:#4b4b4b;border-radius:50%;height:2.5rem;width:2.5rem}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-line_9322_YxoLc{border-left:3px solid #4b4b4b;height:calc(100% - 4rem - 16px);margin:4px auto;width:1px}.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-line_9322_YxoLc.step-module__inProgress_9322_WMMb7,.step-module__base_9322_dl6a0 .step-module__indicator_9322_BAFSF .step-module__indicator-line_9322_YxoLc.step-module__pending_9322_IOX1n{border-left-style:dashed}.step-module__base_9322_dl6a0 .step-module__content_9322_MyQLk{flex-grow:1;margin-left:2rem;padding-bottom:1rem}.step-module__base_9322_dl6a0 .step-module__content_9322_MyQLk .step-module__content-title_9322_pQQhr{margin-top:1rem}.step-module__base_9322_dl6a0.step-module__substep_9322_93s8B .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9{height:2rem;width:2rem}.step-module__base_9322_dl6a0.step-module__substep_9322_93s8B .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9 .step-module__icon_9322_RIHuu{font-size:1.5rem}.step-module__base_9322_dl6a0.step-module__substep_9322_93s8B .step-module__indicator_9322_BAFSF .step-module__indicator-dot_9322_sLlV9 .step-module__dot_9322_QzmWG{height:1.5rem;width:1.5rem}.step-module__base_9322_dl6a0.step-module__substep_9322_93s8B .step-module__indicator_9322_BAFSF .step-module__indicator-line_9322_YxoLc{height:calc(100% - 2rem - 16px)}"); 3958 var tn = function(t2) { 3959 var o2, n2 = "complete" === t2.status ? "ri-check-line icon" : "dot"; 3960 n2 = "pending" === t2.status ? "empty" : n2; 3961 var a2 = ["".concat(h, "-timeline-step"), en.base]; 3962 return t2.substep && a2.push("substep", en.substep), e.jsxs("div", u({ className: a2.join(" ") }, { children: [e.jsxs("div", u({ className: "".concat(h, "-timeline-step-indicator ").concat(en.indicator) }, { children: [e.jsx("div", u({ className: "".concat(h, "-timeline-step-indicator-dot ").concat(en["indicator-dot"]) }, { children: e.jsx("i", { className: n2 + " bc-icon" }) })), e.jsx("div", { className: "".concat(h, "-timeline-step-indicator-line ").concat(en["indicator-line"]) + " " + t2.status + " " + en[null !== (o2 = t2.status) && void 0 !== o2 ? o2 : ""] })] })), e.jsxs("div", u({ className: "".concat(h, "-timeline-step-content ").concat(en.content) }, { children: [t2.title && e.jsx("div", u({ className: "".concat(h, "-timeline-step-content-title ").concat(en["content-title"]) }, { children: t2.title })), t2.description && e.jsx("div", u({ className: "".concat(h, "-timeline-step-content-description") }, { children: t2.description })), t2.children] }))] })); 3963 }, on = {}; 3964 c(""); 3965 var nn = Object.assign(function(o2) { 3966 var n2 = t.useMemo(function() { 3967 var t2 = []; 3968 return i.default.Children.forEach(o2.children, function(o3) { 3969 if (i.default.isValidElement(o3) && o3.type === e.jsx(tn, { children: " " }).type) { 3970 var n3 = { children: i.default.Children.toArray(o3.props.children).filter(function(t3) { 3971 return i.default.isValidElement(t3) && t3.type !== e.jsx(tn, { children: " " }).type; 3972 }) }; 3973 t2.push(i.default.cloneElement(o3, n3)), t2.push(i.default.Children.toArray(o3.props.children).filter(function(t3) { 3974 return i.default.isValidElement(t3) && t3.type === e.jsx(tn, { children: " " }).type; 3975 }).map(function(e2) { 3976 if (i.default.isValidElement(e2)) { 3977 return i.default.cloneElement(e2, { substep: true }); 3978 } 3979 return null; 3980 })); 3981 } 3982 }), t2; 3983 }, [o2.children]), a2 = ["".concat(h, "-timeline"), on.base]; 3984 return o2.className && a2.push(o2.className), e.jsx("div", u({ className: a2.join(" ") }, { children: n2 })); 3985 }, { Milestone: tn }), an = { base: "wizard-module__base_9322_xhVqg", indicators: "wizard-module__indicators_9322_F9Yl-", active: "wizard-module__active_9322_E7NXN", disabled: "wizard-module__disabled_9322_fQJQH", content: "wizard-module__content_9322_y-nPr", "wizard-page": "wizard-module__wizard-page_9322_ZL2AO", hidden: "wizard-module__hidden_9322_36pTK", controls: "wizard-module__controls_9322_N1Sru", backButton: "wizard-module__backButton_9322_Ndzzg" }; 3986 c(".wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl-{align-items:center;display:flex;flex-direction:row;justify-content:center}.wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl- button{align-items:center;aspect-ratio:1;border:1px solid var(--bc-primary-color-500);border-radius:100%;cursor:pointer;display:flex;font-size:large;font-weight:700;height:50px;justify-content:center;margin:1rem;padding:1rem;text-align:center;user-select:none;width:50px}.wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl- button:hover{background-color:var(--bc-primary-color-100)}.wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl- button.wizard-module__active_9322_E7NXN{background-color:var(--bc-primary-color-500);color:#fff}.wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl- button.wizard-module__active_9322_E7NXN:hover{background-color:var(--bc-primary-color-400)}.wizard-module__base_9322_xhVqg .wizard-module__indicators_9322_F9Yl- button.wizard-module__disabled_9322_fQJQH{border-color:var(--bc-border-color-disabled);color:var(--bc-border-color-disabled);pointer-events:none}.wizard-module__base_9322_xhVqg .wizard-module__content_9322_y-nPr{min-height:100px}.wizard-module__base_9322_xhVqg .wizard-module__content_9322_y-nPr .wizard-module__wizard-page_9322_ZL2AO.wizard-module__hidden_9322_36pTK{display:none}.wizard-module__base_9322_xhVqg .wizard-module__controls_9322_N1Sru{align-items:center;display:flex;flex-direction:row;margin-top:1rem}.wizard-module__base_9322_xhVqg .wizard-module__controls_9322_N1Sru .wizard-module__backButton_9322_Ndzzg{margin-left:1rem;padding-left:1rem;padding-right:1rem}.wizard-module__base_9322_xhVqg .wizard-module__controls_9322_N1Sru .wizard-module__backButton_9322_Ndzzg:only-child{margin-left:0}"); 3987 var rn = function(t2) { 3988 var o2 = ["".concat(h, "-wizard-page"), an["wizard-page"]]; 3989 return t2.show || o2.push("hidden", an.hidden), t2.className && o2.push(t2.className), e.jsx("div", u({ className: o2.join(" "), id: t2.id }, { children: t2.children })); 3990 }, ln = Object.assign(function(o2) { 3991 var n2, a2, i2, l2, c2, d2, s2, m2, p2, b2, f2, g2, v2, x2 = _(o2, []), y2 = t.useState(1), k2 = y2[0], w2 = y2[1], N2 = t.useState(2), C2 = N2[0], j2 = N2[1], T2 = null !== (n2 = r.Children.map(x2.children, function(e2, t2) { 3992 if (r.isValidElement(e2)) { 3993 var o3 = { show: k2 === t2 + 1 }; 3994 return r.cloneElement(e2, o3); 3995 } 3996 })) && void 0 !== n2 ? n2 : [], P2 = r.Children.map(T2, function(t2, o3) { 3997 var n3 = [], a3 = r.isValidElement(t2) && t2.props.disabled || o3 + 1 >= C2; 3998 return a3 && n3.push("disabled", an.disabled), o3 + 1 === k2 && n3.push("active", an.active), e.jsx("button", u({ type: "button", tabIndex: a3 ? -1 : 0, className: n3.join(" "), onClick: x2.indicatorNavigation && r.isValidElement(t2) && !t2.props.disabled ? function() { 3999 return w2(o3 + 1); 4000 } : void 0 }, { children: o3 + 1 })); 4001 }), S2 = ["".concat(h, "-wizard"), an.base]; 4002 S2.push("".concat(h, "-wizard--theme-").concat(x2.theme), an["theme--" + x2.theme]), x2.className && S2.push(x2.className); 4003 var D2 = false, A2 = T2[k2], E2 = T2[k2 - 1], R2 = null !== (c2 = null !== (i2 = r.isValidElement(E2) ? null === (a2 = E2.props.texts) || void 0 === a2 ? void 0 : a2.back : void 0) && void 0 !== i2 ? i2 : null === (l2 = x2.texts) || void 0 === l2 ? void 0 : l2.back) && void 0 !== c2 ? c2 : "Tilbake", I2 = null !== (p2 = null !== (s2 = r.isValidElement(E2) ? null === (d2 = E2.props.texts) || void 0 === d2 ? void 0 : d2.next : void 0) && void 0 !== s2 ? s2 : null === (m2 = x2.texts) || void 0 === m2 ? void 0 : m2.next) && void 0 !== p2 ? p2 : "Neste", M2 = null !== (v2 = null !== (f2 = r.isValidElement(E2) ? null === (b2 = E2.props.texts) || void 0 === b2 ? void 0 : b2.submit : void 0) && void 0 !== f2 ? f2 : null === (g2 = x2.texts) || void 0 === g2 ? void 0 : g2.submit) && void 0 !== v2 ? v2 : "Fullfør"; 4004 r.isValidElement(A2) && (D2 = !A2.props.disabled); 4005 var z2 = function(e2) { 4006 x2.indicatorNavigation && ("ArrowRight" === e2.key ? k2 < T2.length && L2() : "ArrowLeft" === e2.key && k2 > 1 && F2()); 4007 }, L2 = function() { 4008 r.isValidElement(E2) && E2.props.validate ? E2.props.validate() && (w2(k2 + 1), j2(k2 + 2)) : (w2(k2 + 1), j2(k2 + 2)); 4009 }, F2 = function() { 4010 w2(k2 - 1); 4011 }; 4012 return e.jsxs("div", u({ className: S2.join(" "), id: x2.id }, { children: [x2.showIndicator && ("top" === x2.indicatorPosition || void 0 === x2.indicatorPosition) && e.jsx("div", u({ className: "".concat(h, "-indicators ").concat(an.indicators), onKeyDown: z2 }, { children: P2 })), e.jsx("div", u({ className: "".concat(h, "-content ").concat(an.content), onChange: function() { 4013 j2(k2 + 1); 4014 } }, { children: T2 })), x2.showIndicator && "bottom" === x2.indicatorPosition && e.jsx("div", u({ className: "".concat(h, "-indicators ").concat(an.indicators), onKeyDown: z2 }, { children: P2 })), (x2.showNext || x2.showBack) && e.jsxs("div", u({ className: "".concat(h, "-control
4014s ").concat(an.controls) }, { children: [T2 && x2.showNext && D2 && k2 < T2.length && e.jsx(Q, { className: "".concat(h, "-next-button ").concat(an.nextButton), loading: r.isValidElement(E2) && E2.props.loading, type: "button", text: I2, onClick: L2 }), T2 && x2.showSubmit && k2 === T2.length && e.jsx(Q, { className: "".concat(h, "-next-button ").concat(an.nextButton), loading: r.isValidElement(E2) && E2.props.loading, type: "button", text: M2, onClick: function() { 4015 r.isValidElement(E2) && E2.props.validate && E2.props.validate() && x2.onSubmit && x2.onSubmit(); 4016 } }), T2 && x2.showBack && k2 > 1 && e.jsx(Q, { className: "".concat(h, "-back-button ").concat(an.backButton), type: "button", text: R2, theme: x2.theme, appearance: "link", onClick: F2 })] }))] })); 4017 }, { Step: rn }), cn = "toggle-module__base_9322_alGWt", dn = "toggle-module__toggleInput_9322_zNGat", sn = "toggle-module__toggle_9322_co2Gf", un = "toggle-module__toggleInner_9322_-h1J3", _n = "toggle-module__icon_9322_i4H6T"; 4018 c('.toggle-module__base_9322_alGWt{min-width:5rem;width:5rem}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat{cursor:pointer;margin:0;min-height:2rem;min-width:5rem;opacity:0;position:absolute;width:5rem;z-index:1}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat+.toggle-module__toggle_9322_co2Gf{background-color:var(--bc-primary-color-200);border-color:var(--bc-c-border-input);border-radius:2rem;border-style:solid;border-width:.125rem;content:"";display:inline-block;min-height:2rem;min-width:5rem;position:relative;transition:all .3s;vertical-align:bottom;width:100%}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat+.toggle-module__toggle_9322_co2Gf .toggle-module__toggleInner_9322_-h1J3{text-wrap:none;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);user-select:none}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat+.toggle-module__toggle_9322_co2Gf .toggle-module__icon_9322_i4H6T{background-color:var(--bc-background-color);border-radius:100%;color:#000;display:block;font-size:1.5rem;font-weight:600;left:1rem;position:absolute;top:50%;transform:translate(-50%,-50%);transition:all .3s}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat:focus+.toggle-module__toggle_9322_co2Gf{box-shadow:0 0 0 .2rem var(--bc-c-action-primary)}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat:checked+.toggle-module__toggle_9322_co2Gf{background-color:var(--bc-primary-color-500);height:2rem}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat:checked+.toggle-module__toggle_9322_co2Gf .toggle-module__toggleInner_9322_-h1J3{color:#fff}.toggle-module__base_9322_alGWt .toggle-module__toggleInput_9322_zNGat:checked+.toggle-module__toggle_9322_co2Gf .toggle-module__icon_9322_i4H6T{left:calc(100% - 1rem);top:50%;transform:translate(-50%,-50%)}'); 4019 var mn = "dynamicIcon-module__base_9322_NiQpG", pn = "dynamicIcon-module__leftCross_9322_-o-uk", bn = "dynamicIcon-module__rightCross_9322_b8enE", hn = "dynamicIcon-module__active_9322_aInys"; 4020 c(".dynamicIcon-module__base_9322_NiQpG{display:inline-block;position:relative}.dynamicIcon-module__base_9322_NiQpG .dynamicIcon-module__leftCross_9322_-o-uk,.dynamicIcon-module__base_9322_NiQpG .dynamicIcon-module__rightCross_9322_b8enE{background-color:currentColor;border-radius:2px;color:var(--bc-c-text-primary);left:50%;position:absolute;top:50%;transform-origin:center;transition:transform .3s ease}.dynamicIcon-module__base_9322_NiQpG .dynamicIcon-module__leftCross_9322_-o-uk{transform:translateX(-50%) translateY(-50%) rotate(45deg)}.dynamicIcon-module__base_9322_NiQpG .dynamicIcon-module__rightCross_9322_b8enE{transform:translateX(-50%) translateY(-50%) rotate(-45deg)}.dynamicIcon-module__base_9322_NiQpG.dynamicIcon-module__active_9322_aInys .dynamicIcon-module__leftCross_9322_-o-uk{transform:translateX(-240%) translateY(-25%) rotate(-45deg) scaleY(.5)}.dynamicIcon-module__base_9322_NiQpG.dynamicIcon-module__active_9322_aInys .dynamicIcon-module__rightCross_9322_b8enE{transform:translateX(50%) translateY(-40%) rotate(45deg) scaleX(1.2)}"); 4021 var fn = function(t2) { 4022 var o2 = t2.active, n2 = void 0 !== o2 && o2, a2 = t2.size, r2 = void 0 === a2 ? 16 : a2, i2 = t2.className, l2 = _(t2, ["active", "size", "className"]), c2 = ["".concat(h, "-dynamic-icon"), mn]; 4023 i2 && c2.push(i2), n2 && c2.push(hn); 4024 var d2 = { width: "".concat(r2, "px"), height: "".concat(r2, "px") }, s2 = { width: "".concat(0.125 * r2, "px"), height: "".concat(0.8 * r2, "px") }; 4025 return e.jsxs("div", u({ className: c2.join(" "), style: d2 }, l2, { children: [e.jsx("span", { className: pn, style: s2 }), e.jsx("span", { className: bn, style: s2 })] })); 4026 }, gn = function(o2) { 4027 var n2, a2, r2 = o2.className, i2 = o2.innerText, l2 = o2.innerTextHorizontalPadding, c2 = void 0 === l2 ? "1rem" : l2, d2 = _(o2, ["className", "innerText", "innerTextHorizontalPadding"]), s2 = t.useState(null !== (a2 = null !== (n2 = d2.checked) && void 0 !== n2 ? n2 : d2.defaultChecked) && void 0 !== a2 && a2), m2 = s2[0], p2 = s2[1], b2 = ["".concat(h, "-toggle"), cn]; 4028 r2 && b2.push(r2); 4029 var f2 = i2 ? "calc(".concat(Math.max(i2.length, 2), "ch + 2.5rem + ").concat(c2, ")") : ""; 4030 return e.jsxs("div", u({ className: b2.join(" "), style: { width: f2 } }, { children: [e.jsx("input", u({}, d2, { type: "checkbox", className: dn, onChange: function(e2) { 4031 p2(e2.target.checked), d2.onChange && d2.onChange(e2); 4032 }, role: "switch", style: { width: f2 } })), e.jsxs("span", u({ className: sn }, { children: [e.jsx("span", u({ className: un, "aria-hidden": "true" }, { children: i2 })), e.jsx(fn, { active: m2, className: _n, size: 24 })] }))] })); 4033 }, vn = /* @__PURE__ */ new Map(); 4034 vn.set("input", At), vn.set("textarea", so), vn.set("file", File), vn.set("datepicker", pe), vn.set("singledatepicker", mo), vn.set("form", ao), vn.set("select", Co), vn.set("select.option", Co.Option), vn.set("radiogroup", eo), vn.set("radio", zt), vn.set("checkboxgroup", So), vn.set("checkbox", lo), vn.set("reCAPTCHA", Eo), vn.set("button", Q), vn.set("avatar", Io), vn.set("icon", q), vn.set("paragraph", Lo), vn.set("link", Oo), vn.set("collapsible", Jt), vn.set("timeline", nn), vn.set("timelineMilestone", nn.Milestone), vn.set("carousel", Jo), vn.set("carouselItem", $o), vn.set("carouselCaption", Zo), vn.set("carouselMiniature", Uo), vn.set("wizard", ln), vn.set("wizardStep", ln.Step), vn.set("col", x), vn.set("row", g), vn.set("container", f), vn.set("flowToggle", function(o2) { 4035 var n2, a2 = t.useState(null !== (n2 = o2.defaultChecked) && void 0 !== n2 && n2), r2 = a2[0], i2 = a2[1]; 4036 return e.jsxs(e.Fragment, { children: [e.jsx(gn, { onChange: function(e2) { 4037 i2(e2.target.checked); 4038 } }), r2 ? o2.children : null] }); 4039 }); 4040 var xn = function(t2, o2, n2, a2) { 4041 return n2 ? n2.map(function(n3, a3) { 4042 var r2, l2 = null !== (r2 = o2.get(n3.type)) && void 0 !== r2 ? r2 : i.default.Fragment; 4043 return e.jsx(l2, u({}, n3.props, { children: xn(t2, o2, n3.elements) }), n3.type + (/* @__PURE__ */ new Date()).valueOf() + "-" + a3); 4044 }) : null; 4045 }, yn = "renderer-module__base_9322_XXiaq"; 4046 c(""); 4047 var kn = { base: "summary-module__base_9322_7R-7K", group: "summary-module__group_9322_TlTaX", "group-body": "summary-module__group-body_9322_CXk4j", "group-body-field": "summary-module__group-body-field_9322_420rT", "group-body-field-container": "summary-module__group-body-field-container_9322_t4MEm", "theme--dark": "summary-module__theme--dark_9322_O4LYA", "group-body-field-value": "summary-module__group-body-field-value_9322_9aN-M" }; 4048 c(".summary-module__base_9322_7R-7K,.summary-module__base_9322_7R-7K .summary-module__group_9322_TlTaX{display:flex;flex-direction:column}.summary-module__base_9322_7R-7K .summary-module__group_9322_TlTaX .summary-module__group-body_9322_CXk4j .summary-module__group-body-field_9322_420rT{align-items:stretch;display:flex;flex-direction:column;padding-top:1rem}.summary-module__base_9322_7R-7K .summary-module__group_9322_TlTaX .summary-module__group-body_9322_CXk4j .summary-module__group-body-field_9322_420rT label{margin-bottom:.25rem}.summary-module__base_9322_7R-7K .summary-module__group_9322_TlTaX .summary-module__group-body_9322_CXk4j .summary-module__group-body-field_9322_420rT .summary-module__group-body-field-container_9322_t4MEm{background-color:var(--bc-background-color-2);padding:.75rem;white-space:pre-wrap}.summary-module__base_9322_7R-7K.summary-module__theme--dark_9322_O4LYA{color:#fff}.summary-module__base_9322_7R-7K.summary-module__theme--dark_9322_O4LYA .summary-module__group_9322_TlTaX .summary-module__group-body_9322_CXk4j .summary-module__group-body-field_9322_420rT .summary-module__group-body-field-value_9322_9aN-M{background-color:var(--bc-dark-background-color-500)}"); 4049 var wn = { base: "alert-module__base_9322_b8vAz", "close-icon": "alert-module__close-icon_9322_G2fAe", primary: "alert-module__primary_9322_FNt4O", secondary: "alert-module__secondary_9322_2DRoF", success: "alert-module__success_9322_lshjs", danger: "alert-module__danger_9322_fm8gR", warning: "alert-module__warning_9322_zuYb-" }; 4050 c(".alert-module__base_9322_b8vAz{border:1px solid var(--bc-primary-color-500);border-radius:var(--bc-border-radius);padding:1rem 2rem;position:relative}.alert-module__base_9322_b8vAz .alert-module__close-icon_9322_G2fAe{background-color:initial;cursor:pointer;position:absolute;right:.75rem;top:.75rem}.alert-module__base_9322_b8vAz .alert-module__close-icon_9322_G2fAe:focus,.alert-module__base_9322_b8vAz .alert-module__close-icon_9322_G2fAe:hover{border:none}.alert-module__base_9322_b8vAz .alert-module__close-icon_9322_G2fAe:focus i,.alert-module__base_9322_b8vAz .alert-module__close-icon_9322_G2fAe:hover i{transform:scale(1.2);transition:all .2s}.alert-module__primary_9322_FNt4O{background-color:var(--bc-primary-color-300);color:var(--bc-c-action-primary-foreground)}.alert-module__secondary_9322_2DRoF{background-color:var(--bc-primary-color-100);border-color:var(--bc-primary-color-500);color:var(--bc-c-text-secondary)}.alert-module__success_9322_lshjs{background-color:var(--bc-success-color-100);border-color:var(--bc-success-color-500);color:var(--bc-success-color-foreground)}.alert-module__danger_9322_fm8gR{background-color:var(--bc-danger-color-100);border-color:var(--bc-danger-color-500);color:var(--bc-danger-color-foreground)}.alert-module__warning_9322_zuYb-{background-color:var(--bc-warning-color-100);border-color:var(--bc-warning-color-500);color:var(--bc-warning-color-foreground)}"); 4051 var Nn = function(o2) { 4052 var n2, a2 = o2.variant, r2 = void 0 === a2 ? "primary" : a2, i2 = _(o2, ["variant"]), l2 = t.useState(true), c2 = l2[0], d2 = l2[1]; 4053 t.useEffect(function() { 4054 void 0 !== i2.show && d2(i2.show); 4055 }, [i2.show]); 4056 if (!c2) return null; 4057 var s2 = ["".concat(h, "-alert"), wn.base]; 4058 return s2.push("".concat(h, "-alert--").concat(r2), wn[r2]), i2.className && s2.push(i2.className), e.jsxs("div", u({ id: i2.id, className: s2.join(" "), role: "alert" }, { children: [i2.dissmisible && e.jsx(Q, u({ appearance: "icon", className: "".concat(h, "-alert-close-icon ").concat(wn["close-icon"]), type: "button", onClick: null !== (n2 = i2.onClose) && void 0 !== n2 ? n2 : function() { 4059 return d2(false); 4060 } }, { children: e.jsx(q, { icon: "ri-close-line" }) })), i2.children] })); 4061 }, Cn = t.createContext({}), jn = "collapsible-module__base_9322_YKC30", Tn = "collapsible-module__header_9322_95dxe", Pn = "collapsible-module__title_9322_nsBgC", Sn = "collapsible-module__buttonContainer_9322_0E5n-"; 4062 c(".collapsible-module__base_9322_YKC30 .collapsible-module__header_9322_95dxe{cursor:pointer;display:flex;justify-content:space-between}.collapsible-module__base_9322_YKC30 .collapsible-module__header_9322_95dxe .collapsible-module__title_9322_nsBgC{font-weight:700;margin:1em 0}.collapsible-module__base_9322_YKC30 .collapsible-module__--hidden_9322_YGGiY{display:none}.collapsible-module__base_9322_YKC30 .collapsible-module__buttonContainer_9322_0E5n-{margin-top:.25rem}"); 4063 var Dn = function(o2) { 4064 var n2, a2, r2 = t.useContext(Cn), i2 = r2.open, l2 = r2.setOpen, c2 = { type: "button", status: null !== (n2 = o2.buttonStatus) && void 0 !== n2 ? n2 : "secondary", appearance: null !== (a2 = o2.buttonVariant) && void 0 !== a2 ? a2 : "ghost" }, d2 = u(u({}, c2), o2.buttonProps); 4065 return e.jsxs("div", u({ id: o2.id, className: "".concat(h, "-content-collapsible-header ").concat(Tn), onClick: function() { 4066 return l2(function(e2) { 4067 return !e2; 4068 }); 4069 } }, { children: [o2.title && "" !== o2.title && e.jsx("div", u({ className: "".concat(h, "-content-collapsible-title ").concat(Pn) }, { children: o2.title })), o2.withButton && e.jsx("div", u({ className: "".concat(h, "-collapsible-button-container ").concat(Sn) }, { children: e.jsxs(Q, u({}
4069, d2, { "aria-controls": o2.ariaControlsId, "aria-expanded": i2 ? "true" : "false", onClick: function(e2) { 4070 e2.stopPropagation(), l2(function(e3) { 4071 return !e3; 4072 }); 4073 } }, { children: [i2 ? o2.closeText : o2.openText, o2.showChevron && (i2 ? e.jsx(q, { icon: "ri-arrow-up-s-line" }) : e.jsx(q, { icon: "ri-arrow-down-s-line" }))] })) }))] })); 4074 }, An = "body-module__--hidden_9322_817nu"; 4075 c(".body-module__--hidden_9322_817nu{display:none}"); 4076 var En = Object.assign(function(o2) { 4077 var n2, a2, r2 = o2.open, i2 = void 0 === r2 ? void 0 : r2, l2 = o2.mobileDefaultOpen, c2 = void 0 === l2 ? void 0 : l2, d2 = o2.mobileWidth, s2 = void 0 === d2 ? 768 : d2, m2 = _(o2, ["open", "mobileDefaultOpen", "mobileWidth"]), p2 = null !== (n2 = m2.as) && void 0 !== n2 ? n2 : "div", b2 = t.useState(window.innerWidth < s2 ? null != c2 && c2 : null !== (a2 = m2.defaultOpen) && void 0 !== a2 && a2), h2 = b2[0], f2 = b2[1]; 4078 t.useEffect(function() { 4079 null != i2 && f2(i2); 4080 }, [i2]); 4081 var g2 = Xt.getClassNameAsArray("content-collapsible", m2); 4082 return g2.push(jn), m2.className && g2.push(m2.className), m2.pure ? e.jsx(Cn.Provider, u({ value: { open: h2, setOpen: f2 } }, { children: m2.children })) : e.jsx(Cn.Provider, u({ value: { open: h2, setOpen: f2 } }, { children: e.jsx(p2, u({ className: "".concat(g2.join(" ")), id: m2.id }, { children: m2.children })) })); 4083 }, { Header: function(o2) { 4084 var n2 = t.useContext(Cn), a2 = n2.open, r2 = n2.setOpen; 4085 return "children" in o2 ? "function" == typeof o2.children ? e.jsx(e.Fragment, { children: o2.children(a2, r2) }) : e.jsx(e.Fragment, { children: o2.children }) : e.jsx(Dn, u({}, o2)); 4086 }, Body: function(o2) { 4087 var n2 = t.useContext(Cn).open, a2 = [o2.className, "".concat(h, "-content-collapsible-content")]; 4088 return e.jsx("div", u({ className: a2.join(" "), id: o2.id }, { children: (n2 || o2.softHide) && e.jsx("div", u({ className: o2.softHide && !n2 ? "".concat(h, "-content-collapsible--hidden ").concat(An) : "" }, { children: o2.children })) })); 4089 } }); 4090 c(`.bc-content-form-control.bc-content-form-control--select .bc-content-form-select{background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select:focus{background-color:var(--bc-background-color);border-color:var(--bc-basic-color-500);color:var(--bc-basic-color-500)}.bc-content-form-control.bc-content-form-control--select [disabled].bc-content-form-select,.bc-content-form-control.bc-content-form-control--select [readonly].bc-content-form-select{background-color:var(--bc-background-color);color:var(--basic-color-300);cursor:not-allowed}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select::-ms-clear{display:none}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select:-ms-input-placeholder,.bc-content-form-control.bc-content-form-control--select .bc-content-form-select::-moz-placeholder,.bc-content-form-control.bc-content-form-control--select .bc-content-form-select::-webkit-input-placeholder,.bc-content-form-control.bc-content-form-control--select .bc-content-form-select::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.bc-content-form-control.bc-content-form-control--select .bc-content-form-control-dropdown--label{display:block}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bc-background-color-1);background-image:url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 1766 1024'><title></title><g id='icomoon-ignore'></g><path fill='AC-RGBA(var(--bc-primary-color-5000), 1)' d='M1765.517 146.033c0 14.074-7.077 29.909-17.69 40.468l-824.38 819.906c-10.616 10.558-26.534 17.594-40.689 17.594s-30.073-7.041-40.689-17.594l-824.38-819.906c-10.616-10.558-17.69-26.39-17.69-40.468s7.077-29.91 17.69-40.468l88.451-87.971c10.616-10.558 24.767-17.594 40.689-17.594 14.151 0 30.073 7.041 40.689 17.594l695.237 691.463 695.237-691.463c10.616-10.558 26.534-17.594 40.689-17.594s30.073 7.041 40.689 17.594l88.451 87.971c10.616 10.558 17.69 26.39 17.69 40.468z'></path></svg>");background-position:calc(100% - 1rem);background-repeat:no-repeat;border:.125rem solid var(--bc-c-border-input);border-radius:var(--bc-border-radius);cursor:pointer;height:3.25rem;padding-left:1rem;padding-right:4rem}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select::-ms-expand{display:none}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select[disabled]{background-image:url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='20' height='15' viewBox='0 0 1766 1024'><title></title><g id='icomoon-ignore'></g><path fill='AC-RGBA(var(--basic-color-300), 1)' d='M1765.517 146.033c0 14.074-7.077 29.909-17.69 40.468l-824.38 819.906c-10.616 10.558-26.534 17.594-40.689 17.594s-30.073-7.041-40.689-17.594l-824.38-819.906c-10.616-10.558-17.69-26.39-17.69-40.468s7.077-29.91 17.69-40.468l88.451-87.971c10.616-10.558 24.767-17.594 40.689-17.594 14.151 0 30.073 7.041 40.689 17.594l695.237 691.463 695.237-691.463c10.616-10.558 26.534-17.594 40.689-17.594s30.073 7.041 40.689 17.594l88.451 87.971c10.616 10.558 17.69 26.39 17.69 40.468z'></path></svg>")}.bc-content-form-control.bc-content-form-control--select .bc-content-form-select.compact{padding-right:0}.bc-content-form-control.bc-content-form-control--select.bc-content-form-control--hover{border-color:var(--bc-c-border-active)}.bc-content-form-control.bc-content-form-control--select.bc-content-form-control--focus{background-color:#efefef;border-color:var(--bc-c-border-active)}.bc-content-form-control.bc-content-form-control--select.bc-content-form-control--invalid{background-color:#c0392b;background-color:var(--bc-danger-color-500);border-color:#c0392b}`); 4091 var Rn = "checkbox-module__base_9322_mJK4C", In = "checkbox-module__checkmark_9322_ozMhj", Mn = "checkbox-module__icon_9322_o15mw"; 4092 c('.checkbox-module__base_9322_mJK4C{cursor:pointer;height:1.4rem;margin:0;opacity:0;position:absolute;width:1.4rem;z-index:1}.checkbox-module__base_9322_mJK4C+.checkbox-module__checkmark_9322_ozMhj{border-color:var(--bc-c-border-input);border-style:solid;border-width:.125rem;content:"";display:inline-block;height:1.4rem;min-width:1.4rem;position:relative;vertical-align:bottom;width:1.4rem}.checkbox-module__base_9322_mJK4C+.checkbox-module__checkmark_9322_ozMhj .checkbox-module__icon_9322_o15mw{color:#fff;display:none;font-weight:600}
4092.checkbox-module__base_9322_mJK4C:focus+.checkbox-module__checkmark_9322_ozMhj{box-shadow:0 0 0 .2rem var(--bc-c-action-primary)}.checkbox-module__base_9322_mJK4C:checked+.checkbox-module__checkmark_9322_ozMhj{background-color:var(--bc-primary-color-500);height:1.4rem;width:1.4rem}.checkbox-module__base_9322_mJK4C:checked+.checkbox-module__checkmark_9322_ozMhj .checkbox-module__icon_9322_o15mw{display:block;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.checkbox-module__base_9322_mJK4C.checkbox-module__variant--inset_9322_tye4v:checked+.checkbox-module__checkmark_9322_ozMhj{background:#0000;box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);transition:all .25s linear}.checkbox-module__base_9322_mJK4C.checkbox-module__variant--grow_9322_VnnOn:checked+.checkbox-module__checkmark_9322_ozMhj{background:var(--bc-c-action-primary);box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);box-shadow:none;transition:background .25s linear;-webkit-transition:background .25s linear}'); 4093 var zn = function(t2) { 4094 var o2 = t2.className, n2 = _(t2, ["className"]), a2 = ["".concat(h, "-checkbox"), Rn]; 4095 return o2 && a2.push(o2), e.jsxs(e.Fragment, { children: [e.jsx("input", u({}, n2, { type: "checkbox", className: a2.join(" ") })), e.jsx("span", u({ className: In }, { children: e.jsx(q, { icon: "ri-check-line", className: Mn }) }))] }); 4096 }, Ln = "digitalClockPicker-module__base_9322_n3Hkz"; 4097 c(".digitalClockPicker-module__base_9322_n3Hkz{column-gap:2px;display:flex;flex-direction:row;height:15rem}"); 4098 var Fn = "columnList-module__base_9322_eZQpY"; 4099 c('.columnList-module__base_9322_eZQpY{height:100%;margin:0;overflow-x:hidden;overflow-y:hidden;padding:0}.columnList-module__base_9322_eZQpY:not(:last-child){border-right:1px solid #f5f5f5;margin-right:.2rem}.columnList-module__base_9322_eZQpY li{cursor:pointer;list-style:none;padding:.5rem 1rem;transition:background-color .3s ease}.columnList-module__base_9322_eZQpY li:hover{background-color:#f5f5f5}.columnList-module__base_9322_eZQpY::-webkit-scrollbar{width:.5rem}.columnList-module__base_9322_eZQpY::-webkit-scrollbar-thumb{background-color:#2d8bc5}.columnList-module__base_9322_eZQpY::-webkit-scrollbar-track{background-color:#f5f5f5}.columnList-module__base_9322_eZQpY:hover{overflow-y:auto}.columnList-module__base_9322_eZQpY:after{content:"";display:block}.columnList-module__base_9322_eZQpY [tabIndex="0"]{background-color:blue;color:#fff}.columnList-module__base_9322_eZQpY [tabIndex="0"]:hover{color:#000}'); 4100 var On = function(o2) { 4101 var n2 = i.default.useState(0), a2 = n2[0], r2 = n2[1], l2 = t.useRef(null), c2 = [Fn]; 4102 !function(e2, o3, n3) { 4103 t.useEffect(function() { 4104 var t2 = Math.random().toString(36).substring(7); 4105 if (e2.current) { 4106 var o4 = e2.current.firstChild; 4107 e2.current.setAttribute("id", "list-".concat(t2)), e2.current.insertAdjacentHTML("beforeend", "<style>\n .".concat(e2.current.className, "#list-").concat(t2, "::after {\n height: ").concat(e2.current.clientHeight - o4.getBoundingClientRect().height, "px;\n }\n </style>")); 4108 } 4109 }, [o3, e2]), t.useEffect(function() { 4110 if (null != n3 && e2.current) { 4111 var t2 = e2.current.firstChild, o4 = e2.current.querySelector('[aria-selected="true"]'); 4112 o4 && (e2.current.scrollTop = o4.offsetTop - t2.getBoundingClientRect().height / 2 + 7.5); 4113 } 4114 }, [n3, e2]); 4115 }(l2, o2.items.length, a2), t.useEffect(function() { 4116 if (l2.current) { 4117 var e2, t2, o3 = "".concat((e2 = document, t2 = e2.documentElement.clientWidth, Math.abs(window.innerWidth - t2)), "px"); 4118 l2.current.style.paddingRight = o3, l2.current.style.width = "calc(100% + ".concat(o3, ")"); 4119 } 4120 }, [l2]), t.useEffect(function() { 4121 r2(o2.items[0].value); 4122 }, [o2.items]); 4123 return e.jsx("ul", u({ ref: l2, className: c2.join(" "), role: "listbox", tabIndex: -1 }, { children: o2.items.map(function(t2) { 4124 return e.jsx("li", u({ role: "option", tabIndex: a2 === t2.value ? 0 : -1, "aria-selected": a2 === t2.value, onClick: function() { 4125 return e2 = t2.value, void r2(e2); 4126 var e2; 4127 } }, { children: t2.label }), t2.value); 4128 }) })); 4129 }, Bn = t.createContext({}), Hn = Bn.Provider; 4130 function Vn(o2) { 4131 var n2, a2, r2 = function(n3) { 4132 var a3, r3, i2 = t.useContext(Bn); 4133 if (!n3.name) throw new Error("withControlled: name prop is required"); 4134 return e.jsx(o2, u({}, n3, { value: null !== (r3 = null !== (a3 = n3.value) && void 0 !== a3 ? a3 : i2.values[n3.name]) && void 0 !== r3 ? r3 : "", onChange: function(e2) { 4135 var t2; 4136 if (!e2.target) throw new Error("withControlled: onChange event must have a target"); 4137 null === (t2 = n3.onChange) || void 0 === t2 || t2.call(n3, e2), i2.setData(e2.target.name, e2.target.value); 4138 } })); 4139 }; 4140 return r2.displayName = "withControlled(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4141 } 4142 function Gn(o2) { 4143 var n2, a2, r2 = t.forwardRef(function(n3, a3) { 4144 var r3, i2, l2 = t.useContext(xo); 4145 return e.jsx(o2, u({}, n3, { id: null !== (i2 = null !== (r3 = n3.id) && void 0 !== r3 ? r3 : l2.controlID) && void 0 !== i2 ? i2 : void 0, ref: a3 })); 4146 }); 4147 return r2.displayName = "withGroupControlled(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4148 } 4149 var Un = "input-module__base_9322_9aUtd"; 4150 c(".input-module__base_9322_9aUtd{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.input-module__base_9322_9aUtd:focus,.input-module__base_9322_9aUtd:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.input-module__base_9322_9aUtd:focus{border-color:var(--bc-basic-color-500)}[disabled].input-module__base_9322_9aUtd,[readonly].input-module__base_9322_9aUtd{background-color:var(--bc-background-color);color:var(--basic-color-300);
4150cursor:not-allowed}.input-module__base_9322_9aUtd::-ms-clear{display:none}.input-module__base_9322_9aUtd:-ms-input-placeholder,.input-module__base_9322_9aUtd::-moz-placeholder,.input-module__base_9322_9aUtd::-webkit-input-placeholder,.input-module__base_9322_9aUtd::placeholder{color:var(--bc-input-placeholder-color);opacity:1}"); 4151 var Kn = t.forwardRef(function(t2, o2) { 4152 var n2 = t2.className, a2 = _(t2, ["className"]), r2 = ["".concat(h, "-input"), Un]; 4153 return n2 && r2.push(n2), e.jsx("input", u({}, a2, { className: r2.join(" "), ref: o2 })); 4154 }); 4155 Kn.displayName = "Input"; 4156 var Wn = Gn(Kn), Qn = "textarea-module__base_9322_-3rZE"; 4157 c(".textarea-module__base_9322_-3rZE{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}.textarea-module__base_9322_-3rZE:focus,.textarea-module__base_9322_-3rZE:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.textarea-module__base_9322_-3rZE:focus{border-color:var(--bc-basic-color-500)}[disabled].textarea-module__base_9322_-3rZE,[readonly].textarea-module__base_9322_-3rZE{background-color:var(--bc-background-color);color:var(--basic-color-300);cursor:not-allowed}.textarea-module__base_9322_-3rZE::-ms-clear{display:none}.textarea-module__base_9322_-3rZE:-ms-input-placeholder,.textarea-module__base_9322_-3rZE::-moz-placeholder,.textarea-module__base_9322_-3rZE::-webkit-input-placeholder,.textarea-module__base_9322_-3rZE::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.textarea-module__base_9322_-3rZE{display:block;padding:1rem}"); 4158 var qn = function(t2) { 4159 var o2 = t2.className, n2 = _(t2, ["className"]), a2 = ["".concat(h, "-textarea"), Qn]; 4160 return o2 && a2.push(o2), e.jsx("textarea", u({}, n2, { className: a2.join(" ") })); 4161 }; 4162 qn.displayName = "Textarea"; 4163 var Xn = Gn(qn), Yn = "group-module__base_9322_45NLO"; 4164 c(".group-module__base_9322_45NLO{margin-bottom:1rem}"); 4165 var Jn = function(t2) { 4166 var o2 = t2.className, n2 = t2.controlID, a2 = _(t2, ["className", "controlID"]), r2 = ["".concat(h, "-group"), Yn]; 4167 return o2 && r2.push(o2), e.jsx(yo, u({ value: { controlID: n2 } }, { children: e.jsx("div", u({}, a2, { className: r2.join(" ") })) })); 4168 }; 4169 var Zn = { base: "radio-module__base_9322_8dRKf", checkmark: "radio-module__checkmark_9322_84zkE", "variant--inset": "radio-module__variant--inset_9322_AcFC4", "variant--grow": "radio-module__variant--grow_9322_krBMf" }; 4170 c('.radio-module__base_9322_8dRKf{height:1.4rem;margin:0;opacity:0;position:absolute;width:1.4rem}.radio-module__base_9322_8dRKf+.radio-module__checkmark_9322_84zkE{border:.125rem solid #000;border-radius:50%;content:"";cursor:pointer;display:inline-block;height:1.4rem;min-width:1.4rem;vertical-align:bottom;width:1.4rem}.radio-module__base_9322_8dRKf:focus+.radio-module__checkmark_9322_84zkE{outline:2px solid #000}.radio-module__base_9322_8dRKf:checked+.radio-module__checkmark_9322_84zkE{background:radial-gradient(var(--bc-c-action-primary) 0,var(--bc-c-action-primary) 40%,#0000 50%,#0000)}.radio-module__base_9322_8dRKf.radio-module__variant--inset_9322_AcFC4:checked+.radio-module__checkmark_9322_84zkE{background:#0000;box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);transition:all .25s linear}.radio-module__base_9322_8dRKf.radio-module__variant--grow_9322_krBMf:checked+.radio-module__checkmark_9322_84zkE{background:var(--bc-c-action-primary);box-shadow:inset 0 0 0 .4rem var(--bc-c-action-primary);box-shadow:none;transition:background .25s linear;-webkit-transition:background .25s linear}'); 4171 var $n = function(t2) { 4172 var o2 = t2.className, n2 = t2.variant, a2 = _(t2, ["className", "variant"]), r2 = ["".concat(h, "-radio"), Zn.base]; 4173 return n2 && r2.push("".concat(h, "-content-radio--variant-").concat(n2, " ").concat(Zn["variant--" + n2])), o2 && r2.push(o2), e.jsxs(e.Fragment, { children: [e.jsx("input", u({}
4173, a2, { type: "radio", className: r2.join(" ") })), e.jsx("span", { className: Zn.checkmark })] }); 4174 }; 4175 $n.displayName = "Radio"; 4176 var ea = Gn($n); 4177 function ta(o2) { 4178 var n2, a2, r2 = function(n3) { 4179 var a3 = t.useContext(Bn); 4180 if (!n3.name) throw new Error("withCheckControlled: name prop is required"); 4181 return e.jsx(o2, u({}, n3, { checked: n3.value === a3.values[n3.name], onChange: function(e2) { 4182 var t2; 4183 if (!e2.target) throw new Error("withCheckControlled: onChange event must have a target"); 4184 null === (t2 = n3.onChange) || void 0 === t2 || t2.call(n3, e2), a3.setData(e2.target.name, e2.target.checked ? e2.target.value : void 0); 4185 } })); 4186 }; 4187 return r2.displayName = "withCheckControlled(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4188 } 4189 function oa(o2) { 4190 var n2, a2, r2 = function(n3) { 4191 var a3 = t.useContext(Bn), r3 = t.useRef(); 4192 if (!n3.name) throw new Error("withRefControlled: name prop is required"); 4193 return e.jsx("div", u({ onChange: function(e2) { 4194 var t2, o3, i2, l2, c2 = null !== (o3 = null === (t2 = r3.current) || void 0 === t2 ? void 0 : t2.getName()) && void 0 !== o3 ? o3 : n3.name, d2 = null !== (l2 = null === (i2 = r3.current) || void 0 === i2 ? void 0 : i2.getValue()) && void 0 !== l2 ? l2 : e2.target.value; 4195 if (!e2.target) throw new Error("withRefControlled: onChange event must have a target"); 4196 a3.setData(c2, d2); 4197 } }, { children: e.jsx(o2, u({}, n3, { ref: r3 })) })); 4198 }; 4199 return r2.displayName = "withRefControlled(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4200 } 4201 var na = function() { 4202 var e2 = this; 4203 this._validations = [], this._errorMessage = "", this.validate = function(t2) { 4204 var o2 = []; 4205 return e2._validations.forEach(function(e3) { 4206 var n2 = e3.validate(t2); 4207 true !== n2 && o2.push(n2); 4208 }), !(o2.length > 0) || o2[0]; 4209 }; 4210 }, aa = function(e2) { 4211 function t2(t3) { 4212 var o2 = e2.call(this) || this; 4213 return o2.validate = function(e3) { 4214 return !!(null != e3 && "" !== e3) || o2._errorMessage; 4215 }, o2._errorMessage = null != t3 ? t3 : "Dette feltet er påkrevd", o2; 4216 } 4217 return s(t2, e2), t2; 4218 }(na), ra = function(e2) { 4219 function t2(t3, o2) { 4220 var n2 = e2.call(this) || this; 4221 return n2._length = 0, n2.validate = function(e3) { 4222 return +e3 <= n2._length || n2._errorMessage; 4223 }, n2._length = t3, n2._errorMessage = null != o2 ? o2 : "Maks er ".concat(t3), n2; 4224 } 4225 return s(t2, e2), t2; 4226 }(na), ia = function(e2) { 4227 function t2(t3, o2) { 4228 var n2 = e2.call(this) || this; 4229 return n2._length = 0, n2.validate = function(e3) { 4230 return +e3 >= n2._length || n2._errorMessage; 4231 }, n2._length = t3, n2._errorMessage = null != o2 ? o2 : "Minimum er ".concat(t3), n2; 4232 } 4233 return s(t2, e2), t2; 4234 }(na), la = function(e2) { 4235 function t2(t3) { 4236 var o2 = e2.call(this) || this; 4237 return o2.validate = function(e3) { 4238 return !isNaN(+e3) || o2._errorMessage; 4239 }, o2._errorMessage = null != t3 ? t3 : "Må være et nummer", o2; 4240 } 4241 return s(t2, e2), t2; 4242 }(na), ca = function(e2) { 4243 function t2(t3) { 4244 var o2 = e2.call(this) || this; 4245 return o2.required = function(e3) { 4246 return o2._validations.push(new aa(e3)), o2; 4247 }, o2.min = function(e3, t4) { 4248 return o2._validations.push(new ia(e3, t4)), o2; 4249 }, o2.max = function(e3, t4) { 4250 return o2._validations.push(new ra(e3, t4)), o2; 4251 }, o2._errorMessage = null != t3 ? t3 : "Må være et nummer", o2._validations.push(new la(o2._errorMessage)), o2; 4252 } 4253 return s(t2, e2), t2; 4254 }(na), da = function(e2) { 4255 function t2(t3) { 4256 var o2 = e2.call(this) || this; 4257 return o2.validate = function(e3) { 4258 return !(!/^[^@]+@[^@]+\.[^@]+$/.test(String(e3).toLowerCase()) || /\s/.test(e3)) || o2._errorMessage; 4259 }, o2._errorMessage = null != t3 ? t3 : "E-post er ikke gyldig", o2; 4260 } 4261 return s(t2, e2), t2; 4262 }(na), sa = function(e2) { 4263 function t2(t3, o2) { 4264 var n2 = e2.call(this) || this; 4265 return n2._length = 0, n2.validate = function(e3) { 4266 return e3.length <= n2._length || n2._errorMessage; 4267 }, n2._length = t3, n2._errorMessage = null != o2 ? o2 : "Maks lengde er ".concat(t3), n2; 4268 } 4269 return s(t2, e2), t2; 4270 }(na), ua = function(e2) { 4271 function t2(t3, o2) { 4272 var n2 = e2.call(this) || this; 4273 return n2._length = 0, n2.validate = function(e3) { 4274 return e3.length >= n2._length || n2._errorMessage; 4275 }, n2._length = t3, n2._errorMessage = null != o2 ? o2 : "Minimum lengde er ".concat(t3), n2; 4276 } 4277 return s(t2, e2), t2; 4278 }(na), _a = function(e2) { 4279 function t2(t3) { 4280 var o2 = e2.call(this) || this; 4281 return o2.validate = function(e3) { 4282 return "string" == typeof e3 || o2._errorMessage; 4283 }, o2._errorMessage = null != t3 ? t3 : "Må være en tekststreng", o2; 4284 } 4285 return s(t2, e2), t2; 4286 }(na), ma = function(e2) { 4287 function t2(t3) { 4288 var o2 = e2.call(this) || this; 4289 return o2.maxLength = function(e3, t4) { 4290 return o2._validations.push(new sa(e3, t4)), o2; 4291 }, o2.minLength = function(e3, t4) { 4292 return o2._validations.push(new ua(e3, t4)), o2; 4293 }, o2.required = function(e3) { 4294 return o2._validations.push(new aa(e3)), o2; 4295 }, o2.email = function(e3) { 4296 return o2._validations.push(new da(e3)), o2; 4297 }, o2._errorMessage = null != t3 ? t3 : "Må være en tekststreng", o2._validations.push(new _a(o2._errorMessage)), o2; 4298 } 4299 return s(t2, e2), t2; 4300 }(na), pa = function() { 4301 function e2(e3) { 4302 var t2 = this;
4303 this._validationData = {}, this.validate = function(e4) { 4304 var o2 = {}; 4305 return Object.keys(t2._validationData).forEach(function(n2) { 4306 var a2 = t2._validationData[n2].validate(e4[n2]); 4307 true !== a2 && (o2[n2] = a2); 4308 }), !Object.keys(o2).length || o2; 4309 }, this._validationData = e3; 4310 } 4311 return e2.string = function() { 4312 return new ma(); 4313 }, e2.number = function() { 4314 return new ca(); 4315 }, e2; 4316 }(), ba = { errorMessage: "withErrorMessage-module__errorMessage_9322_OeG5T", error: "withErrorMessage-module__error_9322_SrxYu" }; 4317 function ha(o2) { 4318 var n2, a2, r2 = function(n3) { 4319 var a3, r3 = n3.errorMessage, i2 = _(n3, ["errorMessage"]), l2 = null !== (a3 = i2.id) && void 0 !== a3 ? a3 : t.useId(), c2 = "error-message-" + i2.name, d2 = "string" == typeof r3 && r3.length; 4320 return e.jsxs(e.Fragment, { children: [e.jsx(o2, u({}, i2, { className: r3 ? [i2.className, ba.error].join(" ") : i2.className, "aria-invalid": d2, "aria-errormessage": r3 ? c2 : void 0, id: l2 })), d2 && e.jsx("div", u({ className: ba.errorMessage, id: c2 }, { children: r3 }))] }); 4321 }; 4322 return r2.displayName = "withErrorMessage(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4323 } 4324 function fa(o2) { 4325 var n2, a2, r2 = t.forwardRef(function(n3, a3) { 4326 var r3 = t.useContext(Bn).validationData[n3.name], i2 = t.useMemo(function() { 4327 return ha(o2); 4328 }, []); 4329 return e.jsx(e.Fragment, { children: e.jsx(i2, u({}, n3, { errorMessage: r3, ref: a3 })) }); 4330 }); 4331 return r2.displayName = "withFormErrorMessage(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 4332 } 4333 c(".withErrorMessage-module__errorMessage_9322_OeG5T{color:var(--bc-danger-color-500);margin-top:2px}.withErrorMessage-module__error_9322_SrxYu{border:none;outline:1px solid var(--bc-danger-color-500)}"); 4334 var ga = "select-module__base_9322_kKp9l"; 4335 c(".select-module__base_9322_kKp9l{background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:inherit;height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out;width:100%}"); 4336 var va = function(t2) { 4337 var o2 = t2.className, n2 = _(t2, ["className"]), a2 = ["".concat(h, "-select"), ga]; 4338 return o2 && a2.push(o2), e.jsx("select", u({}, n2, { className: a2.join(" ") })); 4339 }; 4340 va.displayName = "Select"; 4341 var xa = Gn(va), ya = "form-module__base_9322_kVtHz"; 4342 c(""); 4343 var ka, wa, Na, Ca, ja = Object.assign(function(o2) { 4344 var n2 = o2.className, a2 = o2.onChange, r2 = o2.onSubmit, i2 = o2.onReset, l2 = o2.validationMode, c2 = void 0 === l2 ? "onSubmit" : l2, d2 = o2.initialValues, s2 = o2.validationSchema, m2 = _(o2, ["className", "onChange", "onSubmit", "onReset", "validationMode", "initialValues", "validationSchema"]), p2 = t.useState(null != d2 ? d2 : {}), b2 = p2[0], f2 = p2[1], g2 = t.useRef(b2), v2 = t.useState({}), x2 = v2[0], y2 = v2[1], k2 = t.useCallback(function(e2, t2) { 4345 var o3 = u({}, b2); 4346 void 0 === t2 ? delete o3[e2] : o3[e2] = t2, f2(o3), g2.current = o3; 4347 }, [b2]), w2 = ["".concat(h, "-form"), ya]; 4348 return n2 && w2.push(n2), e.jsx(Hn, u({ value: { values: b2, setData: k2, validationData: x2 } }, { children: e.jsx("form", u({}, m2, { className: w2.join(" "), onChange: function(e2) { 4349 a2 && a2(e2, g2.current); 4350 }, onSubmit: function(e2) { 4351 if (s2 && "onSubmit" === c2) { 4352 var t2 = new pa(s2).validate(b2); 4353 if (true !== t2) return e2.preventDefault(), void y2(t2); 4354 } 4355 r2 && r2(e2, g2.current); 4356 }, onReset: function(e2) { 4357 f2({}), g2.current = {}, i2 && i2(e2); 4358 } })) })); 4359 }, { Group: Jn, Input: Vn(fa(Wn)), Textarea: Vn(fa(Xn)), Radio: ta(fa(ea)), Checkbox: ta(zn), DatePicker: (ka = fa(pe), Ca = function(o2) { 4360 var n2, a2 = t.useContext(Bn); 4361 if (!o2.name) throw new Error("withValueControlled: name prop is required"); 4362 return e.jsx(ka, u({}, o2, { value: null !== (n2 = a2.values[o2.name]) && void 0 !== n2 ? n2 : "", onChange: function(e2) { 4363 a2.setData(o2.name, e2); 4364 } })); 4365 }, Ca.displayName = "withValueControlled(".concat(null !== (Na = null !== (wa = ka.displayName) && void 0 !== wa ? wa : ka.name) && void 0 !== Na ? Na : "Component", ")"), Ca), SingleDatePicker: oa(fa(mo)), Select: Vn(fa(xa)), ReCAPTCHA: oa(fa(Eo)) }), Ta = "withCharacterCounter-module__counter_9322_2UuzF"; 4366 c(".withCharacterCounter-module__counter_9322_2UuzF{float:right}"); 4367 var Pa = "withClearButton-module__base_9322_e7Upv", Sa = "withClearButton-module__button_9322_fMi4e"; 4368 c(".withClearButton-module__base_9322_e7Upv{position:relative}.withClearButton-module__base_9322_e7Upv input{padding-right:2.5rem}.withClearButton-module__base_9322_e7Upv input::-webkit-search-cancel-button{-webkit-appearance:none}.withClearButton-module__base_9322_e7Upv .withClearButton-module__button_9322_fMi4e{position:absolute;right:1rem;top:50%;transform:translateY(-50%)}"); 4369 var Da = { base: "withDatepicker-module__base_9322_XTS9Y", button: "withDatepicker-module__button_9322_r7Gd8", balloon: "withDatepicker-module__balloon_9322_TRf4E", datepicker: "withDatepicker-module__datepicker_9322_X47ZY" }; 4370 c(".withDatepicker-module__base_9322_XTS9Y{position:relative}.withDatepicker-module__base_9322_XTS9Y .withDatepicker-module__button_9322_r7Gd8.withDatepicker-module__button_9322_r7Gd8{background-color:var(--bc-background-color);position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.withDatepicker-module__base_9322_XTS9Y input::-webkit-calendar-picker-indicator{display:none}.withDatepicker-module__balloon_9322_TRf4E .withDatepicker-module__datepicker_9322_X47ZY{color:#000}"); 4371 var Aa = { base: "balloon-module__base_9322_-jItw", "balloonDirection--top": "balloon-module__balloonDirection--top_9322_fk7U7", "balloonDirection--bottom": "balloon-module__balloonDirection--bottom_9322_gZE4R", "balloonDirection--left": "balloon-module__balloonDirection--left_9322_M7-oW", "balloonDirection--right": "balloon-module__balloonDirection--right_9322_VqJWJ" }; 4372 c('.balloon-module__base_9322_-jItw{background-color:var(--bc-admin-primary-color-500);border-radius:var(--bc-admin-border-radius);color:var(--bc-admin-secondary-text-color);padding:.5rem;position:absolute;width:fit-content;z-index:1}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--top_9322_fk7U7:after{bottom:-.5rem}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--bottom_9322_gZE4R:before,.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--top_9322_fk7U7:after{background-color:var(--bc-admin-primary-color-500);content:"";display:block;height:1rem;left:50%;position:absolute;right:50%;transform:rotate(45deg);transform:translateX(-50%) rotate(45deg);width:1rem;z-index:-1}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--bottom_9322_gZE4R:before{top:-.5rem}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--left_9322_M7-oW:before{right:-.5rem}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--left_9322_M7-oW:before,.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--right_9322_VqJWJ:before{background-color:var(--bc-admin-primary-color-500);bottom:50%;content:"";display:block;height:1rem;position:absolute;top:50%;transform:rotate(45deg);transform:translateY(-50%) rotate(45deg);width:1rem;z-index:-1}.balloon-module__base_9322_-jItw.balloon-module__balloonDirection--right_9322_VqJWJ:before{left:-.5rem}'); 4373 var Ea = function(e2, t2) { 4374 var o2 = null == t2 ? void 0 : t2.getBoundingClientRect(), n2 = null == e2 ? void 0 : e2.getBoundingClientRect(), a2 = {}; 4375 if (!o2 || !n2) return a2; 4376 return a2.bottom = { direction: "bottom", top: n2.bottom + 10, left: n2.left + n2.width / 2 - o2.width / 2, width: o2.width, height: o2.height }, a2.left = { direction: "left", top: n2.top + n2.height / 2 - o2.height / 2, left: n2.left - o2.width - 10, width: o2.width, height: o2.height }, a2.right = { direction: "right", top: n2.top + n2.height / 2 - o2.height / 2, left: n2.right + 10, width: o2.width, height: o2.height }, a2.top = { direction: "top", top: n2.top - o2.height - 10, left: n2.left + n2.width / 2 - o2.width / 2, width: o2.width, height: o2.height }, a2; 4377 }, Ra = function(o2) { 4378 var n2, a2, r2 = _(o2, []), i2 = t.useRef(true), l2 = t.useState({}), c2 = l2[0], d2 = l2[1], s2 = t.useCallback(function(e2) { 4379 var t2, o3, n3; 4380 e2 && (r2.show || i2.current) && (i2.current = false, d2(Ea(null === (t2 = r2.target) || void 0 === t2 ? void 0 : t2.current, e2)), (null !== (n3 = null === (o3 = r2.parentContainer) || void 0 === o3 ? void 0 : o3.current) && void 0 !== n3 ? n3 : window.document.body).addEventListener("resize", function() { 4381 d2(Ea(r2.target.current, e2)); 4382 })); 4383 }, [r2.parentContainer, r2.target, r2.show]), m2 = r2.placement ? c2[r2.placement] : function(e2, t2, o3) { 4384 void 0 === o3 && (o3 = window.document.body); 4385 var n3 = t2[e2]; 4386 if (n3) { 4387 var a3 = o3.getBoundingClientRect(), r3 = a3.width, i3 = a3.height, l3 = a3.top, c3 = a3.left, d3 = function(e3, t3, o4, n4) { 4388 return e3 >= l3 && t3 >= c3 && e3 + n4 <= l3 + i3 && t3 + o4 <= c3 + r3; 4389 }; 4390 if (d3(n3.top, n3.left, n3.width, n3.height)) return n3; 4391 for (var s3 = 0, u2 = Object.keys(t2).filter(function(t3) { 4392 return t3 !== e2; 4393 }); s3 < u2.length; s3++) { 4394 var _2 = t2[u2[s3]]; 4395 if (_2 && d3(_2.top, _2.left, _2.width, _2.height)) return _2; 4396 } 4397 return n3; 4398 } 4399 }(r2.preferredPlacement, c2, null !== (a2 = null === (n2 = r2.parentContainer) || void 0 === n2 ? void 0 : n2.current) && void 0 !== a2 ? a2 : window.document.body); 4400 m2 && ((null == m2 ? void 0 : m2.left) < 0 && (m2.left = 0), (null == m2 ? void 0 : m2.left) + (null == m2 ? void 0 : m2.width) > window.innerWidth && (m2.left = window.innerWidth - m2.width), (null == m2 ? void 0 : m2.top) < 0 && (m2.top = 0), (null == m2 ? void 0 : m2.top) + (null == m2 ? void 0 : m2.height) > window.innerHeight && (m2.top = window.innerHeight - m2.height)); 4401 var p2 = ["".concat(h, "-balloon"), Aa.base]; 4402 return r2.className && p2.push(r2.className), p2.push(Aa["balloonDirection--" + (null == m2 ? void 0 : m2.direction)]), e.jsx(V, { children: e.jsx("div", u({ style: { top: null == m2 ? void 0 : m2.top, left: r2.show ? null == m2 ? void 0 : m2.left : -999999999, opacity: r2.show ? "100%" : "0" }, className: p2.join(" "), ref: s2 }, { children: r2.children })) }); 4403 }; 4404 c(":root{--bc-admin-primary-color-500:#0e3b6c;--bc-admin-primary-color-400:#082f59;--bc-admin-primary-color-300:#66769b;--bc-admin-primary-color-200:#b1b8cc;--bc-admin-primary-color-100:#d8dbe5;--bc-admin-primary-text-color:#000;--bc-admin-secondary-text-color:#fff;--bc-admin-border-radius:4px}"); 4405 var Ia = "withShowPasswordButton-module__base_9322_LANPs", Ma = "withShowPasswordButton-module__button_9322_sjR2C"; 4406 c(".withShowPasswordButton-module__base_9322_LANPs{position:relative}.withShowPasswordButton-module__base_9322_LANPs input{padding-right:2.5rem}.withShowPasswordButton-module__base_9322_LANPs .withShowPasswordButton-module__button_9322_sjR2C{position:absolute;right:1rem;top:50%;transform:translateY(-50%)}"); 4407 var za = { base: "withIcon-module__base_9322_YDC8R", "icon--right": "withIcon-module__icon--right_9322_Ab13v" }; 4408 c(".withIcon-module__base_9322_YDC8R{position:relative}.withIcon-module__base_9322_YDC8R input{padding-right:2.5rem}.withIcon-module__base_9322_YDC8R .withIcon-module__icon--right_9322_Ab13v{position:absolute;right:1rem;top:50%;transform:translateY(-50%)}"); 4409 var La = { base: "withSuggestions-module__base_9322_td0Ud", suggestions: "withSuggestions-module__suggestions_9322_6G-Ra", suggestion: "withSuggestions-module__suggestion_9322_jwz-8" }; 4410 c(".withSuggestions-module__base_9322_td0Ud{position:relative}.withSuggestions-module__base_9322_td0Ud .withSuggestions-module__suggestions_9322_6G-Ra{background-color:var(--bc-background-color);border:1px solid var(--bc-c-border-input);border-top:none;display:none;margin-top:0;max-height:80vh;overflow-y:auto;padding:0;position:absolute;width:100%;z-index:1}.withSuggestions-module__base_9322_td0Ud .withSuggestions-module__suggestions_9322_6G-Ra .withSuggestions-module__suggestion_9322_jwz-8{list-style:none;margin:0}.withSuggestions-module__base_9322_td0Ud .withSuggestions-module__suggestions_9322_6G-Ra .withSuggestions-module__suggestion_9322_jwz-8 button{background-color:initial;border:none;padding:15px 15px 15px 20px;text-align:left;width:100%}.withSuggestions-module__base_9322_td0Ud .withSuggestions-module__suggestions_9322_6G-Ra .withSuggestions-module__suggestion_9322_jwz-8 button:hover{background-color:#efefef}.withSuggestions-module__base_9322_td0Ud .withSuggestions-module__suggestions_9322_6G-Ra .withSuggestions-module__suggestion_9322_jwz-8:not(:last-child){border-bottom:1px solid var(--bc-c-border-input)}.withSuggestions-module__base_9322_td0Ud:focus-within .withSuggestions-module__suggestions_9322_6G-Ra{display:block}"); 4411 var Fa = { base: "loader-module__base_9322_e6-ZK" }; 4412 function Oa() { 4413 return e.jsx("div", u({ className: Fa.base }, { children: e.jsxs("svg", u({ role: "img", width: "100%", height: "100", "aria-labelledby": "loading-aria", viewBox: "0 0 100% 100" }, { children: [e.jsx("title", u({ id: "loading-aria" }, { children: "Loading..." })), e.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", clipPath: "url(#clip-path)", style: { fill: 'url("#fill")' } }), e.jsxs("defs", { children: [e.jsxs("clipPath", u({ id: "clip-path" }, { children: [e.jsx("rect", { x: "0", y: "15", rx: "5", ry: "5", width: "100%", height: "20" }), e.jsx("rect", { x: "0", y: "45", rx: "5", ry: "5", width: "100%", height: "20" }), e.jsx("rect", { x: "0", y: "75", rx: "5", ry: "5", width: "100%", height: "20" })] })), e.jsxs("linearGradient", u({ id: "fill" }, { children: [e.jsx("stop", u({ offset: "0.599964", stopColor: "#e3e3e3", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "-2; -2; 1", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) })), e.jsx("stop", u({ offset: "1.59996", stopColor: "#dcdbdb", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "-1; -1; 2", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) })), e.jsx("stop", u({ offset: "2.59996", stopColor: "#e3e3e3", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "0; 0; 3", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) }))] }))] })] })) })); 4414 } 4415 c(".loader-module__base_9322_e6-ZK{padding:0 1rem}"); 4416 var Ba = function() { 4417 var e2 = this; 4418 this.isRequired = false, this.required = function() { 4419 return e2.isRequired = true, e2; 4420 }; 4421 }, Ha = function() { 4422 function e2(e3) { 4423 var t3 = this;
4424 this._validationData = {}, this.validate = function(e4) { 4425 return console.log(e4, t3._validationData), true; 4426 }, this._validationData = e3; 4427 } 4428 var t2; 4429 return t2 = e2, e2._validationType = new Ba(), e2.string = function() { 4430 return t2._validationType = new Va(), t2._validationType; 4431 }, e2; 4432 }(), Va = function(e2) { 4433 function t2() { 4434 var t3 = e2.call(this) || this; 4435 return t3._maxLength = 0, t3.maxLength = function(e3) { 4436 return t3._maxLength = e3, t3; 4437 }, t3; 4438 } 4439 return s(t2, e2), t2; 4440 }(Ba); 4441 Ha.string().required().maxLength(10); 4442 var Ga = function(t2) { 4443 function o2(e2) { 4444 var o3 = t2.call(this, e2) || this; 4445 return o3.state = { error: void 0, errorInfo: void 0 }, o3; 4446 } 4447 return s(o2, t2), o2.prototype.componentDidCatch = function(e2, t3) { 4448 this.setState({ error: e2, errorInfo: t3 }); 4449 }, o2.prototype.render = function() { 4450 var t3 = ["".concat(h, "-errorboundary")]; 4451 return this.state.errorInfo ? void 0 !== this.props.errorRenderer ? this.props.errorRenderer({ error: this.state.error, errorInfo: this.state.errorInfo }) : e.jsxs("div", u({ className: t3.join(" ") }, { children: [e.jsx("h2", { children: "Det har skjedd en feil." }), e.jsxs("details", u({ style: { whiteSpace: "pre-wrap" } }, { children: [this.state.error && this.state.error.toString(), e.jsx("br", {}), this.state.errorInfo.componentStack] }))] })) : this.props.children; 4452 }, o2; 4453 }(i.default.Component), Ua = "onClickOutside-module__base_9322_hf2-L"; 4454 c(""); 4455 var Ka = { ordered: "ol", unordered: "ul", definition: "dl" }, Wa = { listItem: "li", term: "dt", description: "dd" }, Qa = "list-module__base_9322_z0mW7"; 4456 c(""); 4457 var qa = "item-module__base_9322_OFgG8"; 4458 c(""); 4459 var Xa = Object.assign(function(e2) { 4460 var t2 = e2.type, o2 = void 0 === t2 ? "unordered" : t2, n2 = _(e2, ["type"]), a2 = ["".concat(h, "-list ").concat(Qa)]; 4461 return a2.push("".concat(h, "-list-type--").concat(o2)), n2.className && a2.push(n2.className), i.default.createElement(Ka[o2], { className: a2.join(" ") }, n2.children); 4462 }, { Item: function(e2) { 4463 var t2 = e2.type, o2 = void 0 === t2 ? "listItem" : t2, n2 = _(e2, ["type"]), a2 = ["".concat(h, "-item ").concat(qa)]; 4464 return a2.push("".concat(h, "-list-type--").concat(o2)), n2.className && a2.push(n2.className), i.default.createElement(Wa[o2], { className: a2.join(" ") }, n2.children); 4465 } }); 4466 /*! ***************************************************************************** 4467 Copyright (c) Microsoft Corporation. 4468 4469 Permission to use, copy, modify, and/or distribute this software for any 4470 purpose with or without fee is hereby granted. 4471 4472 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 4473 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 4474 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 4475 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 4476 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 4477 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 4478 PERFORMANCE OF THIS SOFTWARE. 4479 ***************************************************************************** */ 4480 function Ya(e2, t2, o2, n2) { 4481 return new (o2 || (o2 = Promise))(function(a2, r2) { 4482 function i2(e3) { 4483 try { 4484 c2(n2.next(e3)); 4485 } catch (e4) { 4486 r2(e4); 4487 } 4488 } 4489 function l2(e3) { 4490 try { 4491 c2(n2.throw(e3)); 4492 } catch (e4) { 4493 r2(e4); 4494 } 4495 } 4496 function c2(e3) { 4497 var t3; 4498 e3.done ? a2(e3.value) : (t3 = e3.value, t3 instanceof o2 ? t3 : new o2(function(e4) { 4499 e4(t3); 4500 })).then(i2, l2); 4501 } 4502 c2((n2 = n2.apply(e2, [])).next()); 4503 }); 4504 } 4505 var Ja = function e2(t2, o2) { 4506 if (t2 === o2) return true; 4507 if (t2 && o2 && "object" == typeof t2 && "object" == typeof o2) { 4508 if (t2.constructor !== o2.constructor) return false;
4509 var n2, a2, r2; 4510 if (Array.isArray(t2)) { 4511 if ((n2 = t2.length) != o2.length) return false; 4512 for (a2 = n2; 0 != a2--; ) if (!e2(t2[a2], o2[a2])) return false; 4513 return true; 4514 } 4515 if (t2.constructor === RegExp) return t2.source === o2.source && t2.flags === o2.flags; 4516 if (t2.valueOf !== Object.prototype.valueOf) return t2.valueOf() === o2.valueOf(); 4517 if (t2.toString !== Object.prototype.toString) return t2.toString() === o2.toString(); 4518 if ((n2 = (r2 = Object.keys(t2)).length) !== Object.keys(o2).length) return false; 4519 for (a2 = n2; 0 != a2--; ) if (!Object.prototype.hasOwnProperty.call(o2, r2[a2])) return false; 4520 for (a2 = n2; 0 != a2--; ) { 4521 var i2 = r2[a2]; 4522 if (!e2(t2[i2], o2[i2])) return false; 4523 } 4524 return true; 4525 } 4526 return t2 != t2 && o2 != o2; 4527 }; 4528 const Za = "__googleMapsScriptId"; 4529 var $a, er; 4530 !function(e2) { 4531 e2[e2.INITIALIZED = 0] = "INITIALIZED", e2[e2.LOADING = 1] = "LOADING", e2[e2.SUCCESS = 2] = "SUCCESS", e2[e2.FAILURE = 3] = "FAILURE"; 4532 }($a || ($a = {})); 4533 class tr { 4534 constructor({ apiKey: e2, authReferrerPolicy: t2, channel: o2, client: n2, id: a2 = Za, language: r2, libraries: i2 = [], mapIds: l2, nonce: c2, region: d2, retries: s2 = 3, url: u2 = "https://maps.googleapis.com/maps/api/js", version: _2 }) { 4535 if (this.callbacks = [], this.done = false, this.loading = false, this.errors = [], this.apiKey = e2, this.authReferrerPolicy = t2, this.channel = o2, this.client = n2, this.id = a2 || Za, this.language = r2, this.libraries = i2, this.mapIds = l2, this.nonce = c2, this.region = d2, this.retries = s2, this.url = u2, this.version = _2, tr.instance) { 4536 if (!Ja(this.options, tr.instance.options)) throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(tr.instance.options)}`); 4537 return tr.instance; 4538 } 4539 tr.instance = this; 4540 } 4541 get options() { 4542 return { version: this.version, apiKey: this.apiKey, channel: this.channel, client: this.client, id: this.id, libraries: this.libraries, language: this.language, region: this.region, mapIds: this.mapIds, nonce: this.nonce, url: this.url, authReferrerPolicy: this.authReferrerPolicy }; 4543 } 4544 get status() { 4545 return this.errors.length ? $a.FAILURE : this.done ? $a.SUCCESS : this.loading ? $a.LOADING : $a.INITIALIZED; 4546 } 4547 get failed() { 4548 return this.done && !this.loading && this.errors.length >= this.retries + 1; 4549 } 4550 createUrl() { 4551 let e2 = this.url; 4552 return e2 += "?callback=__googleMapsCallback", this.apiKey && (e2 += `&key=${this.apiKey}`), this.channel && (e2 += `&channel=${this.channel}`), this.client && (e2 += `&client=${this.client}`), this.libraries.length > 0 && (e2 += `&libraries=${this.libraries.join(",")}`), this.language && (e2 += `&language=${this.language}`), this.region && (e2 += `®ion=${this.region}`), this.version && (e2 += `&v=${this.version}`), this.mapIds && (e2 += `&map_ids=${this.mapIds.join(",")}`), this.authReferrerPolicy && (e2 += `&auth_referrer_policy=${this.authReferrerPolicy}`), e2; 4553 } 4554 deleteScript() { 4555 const e2 = document.getElementById(this.id); 4556 e2 && e2.remove(); 4557 } 4558 load() { 4559 return this.loadPromise(); 4560 } 4561 loadPromise() { 4562 return new Promise((e2, t2) => { 4563 this.loadCallback((o2) => { 4564 o2 ? t2(o2.error) : e2(window.google); 4565 }); 4566 }); 4567 } 4568 importLibrary(e2) { 4569 return this.execute(), google.maps.importLibrary(e2); 4570 } 4571 loadCallback(e2) { 4572 this.callbacks.push(e2), this.execute(); 4573 } 4574 setScript() { 4575 var e2, t2; 4576 if (document.getElementById(this.id)) return void this.callback(); 4577 const o2 = { key: this.apiKey, channel: this.channel, client: this.client, libraries: this.libraries.length && this.libraries, v: this.version, mapIds: this.mapIds, language: this.language, region: this.region, authReferrerPolicy: this.authReferrerPolicy }; 4578 Object.keys(o2).forEach((e3) => !o2[e3] && delete o2[e3]), (null === (t2 = null === (e2 = null === window || void 0 === window ? void 0 : window.google) || void 0 === e2 ? void 0 : e2.maps) || void 0 === t2 ? void 0 : t2.importLibrary) || ((e3) => { 4579 let t3, o3, n3, a2 = "The Google Maps JavaScript API", r2 = "google", i2 = "importLibrary", l2 = "__ib__", c2 = document, d2 = window; 4580 d2 = d2[r2] || (d2[r2] = {}); 4581 const s2 = d2.maps || (d2.maps = {}), u2 = /* @__PURE__ */ new Set(), _2 = new URLSearchParams(), m2 = () => t3 || (t3 = new Promise((i3, d3) => Ya(this, void 0, void 0, function* () { 4582 var m3; 4583 for (n3 in yield o3 = c2.createElement("script"), o3.id = this.id, _2.set("libraries", [...u2] + ""), e3) _2.set(n3.replace(/[A-Z]/g, (e4) => "_" + e4[0].toLowerCase()), e3[n3]); 4584 _2.set("callback", r2 + ".maps." + l2), o3.src = this.url + "?" + _2, s2[l2] = i3, o3.onerror = () => t3 = d3(Error(a2 + " could not load.")), o3.nonce = this.nonce || (null === (m3 = c2.querySelector("script[n
4584once]")) || void 0 === m3 ? void 0 : m3.nonce) || "", c2.head.append(o3); 4585 }))); 4586 s2[i2] ? console.warn(a2 + " only loads once. Ignoring:", e3) : s2[i2] = (e4, ...t4) => u2.add(e4) && m2().then(() => s2[i2](e4, ...t4)); 4587 })(o2); 4588 const n2 = this.libraries.map((e3) => this.importLibrary(e3)); 4589 n2.length || n2.push(this.importLibrary("core")), Promise.all(n2).then(() => this.callback(), (e3) => { 4590 const t3 = new ErrorEvent("error", { error: e3 }); 4591 this.loadErrorCallback(t3); 4592 }); 4593 } 4594 reset() { 4595 this.deleteScript(), this.done = false, this.loading = false, this.errors = [], this.onerrorEvent = null; 4596 } 4597 resetIfRetryingFailed() { 4598 this.failed && this.reset(); 4599 } 4600 loadErrorCallback(e2) { 4601 if (this.errors.push(e2), this.errors.length <= this.retries) { 4602 const e3 = this.errors.length * Math.pow(2, this.errors.length); 4603 console.error(`Failed to load Google Maps script, retrying in ${e3} ms.`), setTimeout(() => { 4604 this.deleteScript(), this.setScript(); 4605 }, e3); 4606 } else this.onerrorEvent = e2, this.callback(); 4607 } 4608 callback() { 4609 this.done = true, this.loading = false, this.callbacks.forEach((e2) => { 4610 e2(this.onerrorEvent); 4611 }), this.callbacks = []; 4612 } 4613 execute() { 4614 if (this.resetIfRetryingFailed(), this.done) this.callback(); 4615 else { 4616 if (window.google && window.google.maps && window.google.maps.version) return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."), void this.callback(); 4617 this.loading || (this.loading = true, this.setScript()); 4618 } 4619 } 4620 } 4621 !function(e2) { 4622 e2.LOADING = "LOADING", e2.FAILURE = "FAILURE", e2.SUCCESS = "SUCCESS"; 4623 }(er || (er = {})); 4624 const or = ({ children: e2, render: o2, callback: n2, ...a2 }) => { 4625 const [r2, l2] = t.useState(er.LOADING); 4626 return t.useEffect(() => { 4627 const e3 = new tr(a2), t2 = (t3) => { 4628 n2 && n2(t3, e3), l2(t3); 4629 }; 4630 t2(er.LOADING), e3.load().then(() => t2(er.SUCCESS), () => t2(er.FAILURE)); 4631 }, []), r2 === er.SUCCESS && e2 ? i.default.createElement(i.default.Fragment, null, e2) : o2 ? o2(r2) : i.default.createElement(i.default.Fragment, null); 4632 }; 4633 var nr = "googlemaps-module__base_9322_p9-MN", ar = "googlemaps-module__map_9322_6-iBc"; 4634 c('.googlemaps-module__base_9322_p9-MN{display:flex}.googlemaps-module__base_9322_p9-MN .googlemaps-module__map_9322_6-iBc{flex-grow:1;height:"100%"}'); 4635 var rr = function(e2) { 4636 var o2 = e2.map, n2 = e2.info, a2 = _(e2, ["map", "info"]), r2 = t.useRef(null); 4637 return t.useEffect(function() { 4638 if (o2) { 4639 r2.current = new google.maps.Marker(u({ map: o2 }, a2)); 4640 var e3 = new google.maps.InfoWindow({ content: n2 }); 4641 r2.current.addListener("click", function() { 4642 e3.setContent(n2), e3.open(o2, r2.current); 4643 }); 4644 } 4645 return function() { 4646 r2.current && (google.maps.event.clearInstanceListeners(r2.current), r2.current.setMap(null)); 4647 }; 4648 }, [o2, a2, n2]), null; 4649 }, ir = function(o2) { 4650 var n2 = o2.mapPoints, a2 = o2.center, r2 = _(o2, ["mapPoints", "center"]), i2 = t.useRef(null), l2 = t.useState(), c2 = l2[0], d2 = l2[1]; 4651 return t.useEffect(function() { 4652 if (c2) { 4653 var e2 = new google.maps.LatLngBounds(); 4654 n2.forEach(function(t3) { 4655 var o3 = new google.maps.LatLng(t3.coordinates.lat, t3.coordinates.lng); 4656 e2.extend(o3); 4657 }); 4658 var t2 = u(u({}, r2), { center: 0 === n2.length ? a2 : void 0 }); 4659 c2.setOptions(t2), n2.length > 0 && c2.fitBounds(e2); 4660 } 4661 }, [n2, c2, r2, a2]), t.useEffect(function() { 4662 if (i2.current) { 4663 var e2 = new google.maps.Map(i2.current, {}); 4664 return d2(e2), function() { 4665 google.maps.event.clearInstanceListeners(e2); 4666 }; 4667 } 4668 }, []), e.jsxs(e.Fragment, { children: [e.jsx("div", { ref: i2, className: "".concat(h, "-map ").concat(ar) }), c2 && n2.map(function(t2, o3) { 4669 return e.jsx(rr, { position: { lat: t2.coordinates.lat, lng: t2.coordinates.lng }, info: t2.info, map: c2 }, o3); 4670 })] }); 4671 }; 4672 function lr() { 4673 return e.jsxs("svg", u({ role: "img", width: "100%", height: "100", "aria-labelledby": "loading-aria", viewBox: "0 0 100% 100" }, { children: [e.jsx("title", u({ id: "loading-aria" }, { children: "Loading..." })), e.jsx("rect", { x: "0", y: "0", width: "100%", height: "100%", clipPath: "url(#clip-path)", style: { fill: 'url("#fill")' } }), e.jsxs("defs", { children: [e.jsxs("clipPath", u({ id: "clip-path" }, { children: [e.jsx("rect", { x: "0", y: "15", rx: "5", ry: "5", width: "100%", height: "20" }), e.jsx("rect", { x: "0", y: "45", rx: "5", ry: "5", width: "100%", height: "20" }), e.jsx("rect", { x: "0", y: "75", rx: "5", ry: "5", width: "100%", height: "20" })] })), e.jsxs("linearGradient", u({ id: "fill" }, { children: [e.jsx("stop", u({ offset: "0.599964", stopColor: "#e3e3e3", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "-2; -2; 1", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) })), e.jsx("stop", u({ offset: "1.59996", stopColor: "#dcdbdb", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "-1; -1; 2", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) })), e.jsx("stop", u({ offset: "2.59996", stopColor: "#e3e3e3", stopOpacity: "1" }, { children: e.jsx("animate", { attributeName: "offset", values: "0; 0; 3", keyTimes: "0; 0.25; 1", dur: "2s", repeatCount: "indefinite" }) }))] }))] })] })); 4674 } 4675 var cr = "suggestions-module__base_9322_GB1de", dr = "suggestions-module__ul_9322_7PwOM", sr = "suggestions-module__loader_9322_D0-MK", ur = "suggestions-module__no-results_9322_THmA8"; 4676 c(".suggestions-module__base_9322_GB1de{display:block;position:relative;width:100%}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM{background-color:#fff;border:1px solid var(--bc-c-border-input);border-radius:3px;border-top:none;margin-top:0;padding:0;position:absolute;width:100%;z-index:1}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM .suggestions-module__loader_9322_D0-MK{height:auto;margin:0 auto 10px;width:98%}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM .suggestions-module__no-results_9322_THmA8{padding:1rem}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM li{list-style:none}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM li a{align-items:center;color:var(--bc-c-text-primary);display:flex;justify-content:space-between;text-decoration:none}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM li a p{margin:0;padding:15px 15px 15px 20px;width:-moz-fit-content;width:fit-content}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM li a:focus{background-color:#efefef;outline:none}.suggestions-module__base_9322_GB1de .suggestions-module__ul_9322_7PwOM li:not(:last-child){border-bottom:1px solid var(--bc-c-border-input)}"); 4677 var _r = t.forwardRef(function(o2, n2) { 4678 var a2 = _(o2, []), r2 = [cr, a2.className, "".concat(h, "-content-search-suggestions")], i2 = [], l2 = 0; 4679 a2.data.forEach(function() { 4680 i2.push(t.createRef()); 4681 }); 4682 var c2 = function(e2) { 4683 i2.forEach(function(t2, o3) { 4684 t2.current === e2.target && (l2 = o3); 4685 }); 4686 }, d2 = function() { 4687 l2 = 0, i2.length && i2[l2].current.focus(); 4688 }; 4689 t.useImperativeHandle(n2, function() { 4690 return { focusFirst: d2 }; 4691 }); 4692 var s2 = function(e2, t2) { 4693 "ArrowDown" === e2.key && l2++, "ArrowUp" === e2.key && l2
4693--, l2 < 0 && (l2 = i2.length - 1), l2 >= i2.length && (l2 = 0), "ArrowDown" !== e2.key && "ArrowUp" !== e2.key || (e2.preventDefault(), i2[l2].current.focus()), "Escape" === e2.key && a2.retrieveFocus(e2), "Enter" !== e2.key && " " !== e2.key || (e2.preventDefault(), a2.onSearch && a2.onSearch(t2), a2.onClick(t2), a2.retrieveFocus(e2)); 4694 }, m2 = a2.data.map(function(t2, o3) { 4695 var n3, r3, l3; 4696 if (a2.renderListItem) n3 = a2.renderListItem(t2); 4697 else { 4698 var d3 = a2.highlighting ? (r3 = t2.text, l3 = a2.searchText, r3.replace(new RegExp("(^|)(" + l3 + ")(|$)", "ig"), "$1<b>$2</b>$3")) : t2.text; 4699 n3 = e.jsxs(e.Fragment, { children: [e.jsx("p", { dangerouslySetInnerHTML: { __html: d3 } }), a2.suggestionsIcon && e.jsx("i", {})] }); 4700 } 4701 return e.jsx("li", u({ onKeyDown: function(e2) { 4702 return s2(e2, t2); 4703 }, role: "option", className: "".concat(h, "-content-search-suggestions-list-item") }, { children: e.jsx("a", u({ href: "#", onClick: function(e2) { 4704 e2.preventDefault(), a2.onClick(t2); 4705 }, onFocus: c2, ref: i2[o3], className: "".concat(h, "-content-search-suggestions-list-link") }, { children: n3 })) }), "suggestion-" + o3); 4706 }), p2 = a2.noResultsText ? a2.noResultsText : "Ingen resultater..."; 4707 return a2.disableSuggestions || !a2.showNoResultsText && (!a2.data || a2.data.length < 1) ? e.jsx("div", { id: a2.id }) : e.jsx("div", u({ className: r2.join(" ") }, { children: e.jsxs("ul", u({ id: a2.id, onKeyDown: a2.onKeyDown, "aria-label": "Søkeforslag", role: "listbox", className: dr }, { children: [a2.loading && e.jsx("li", u({ role: "option", className: "".concat(h, "-content-search-suggestions-loader ").concat(sr) }, { children: e.jsx(lr, {}) })), !a2.loading && m2, (!a2.data || a2.data.length < 1) && !a2.loading && a2.showNoResultsText && e.jsx("li", u({ role: "option" }, { children: e.jsx("p", u({ className: "".concat(h, "-content-search-suggestions-no-results ").concat(ur) }, { children: p2 })) }))] })) })); 4708 }), mr = { base: "search-module__base_9322_uNSBR", "input-container": "search-module__input-container_9322_RJg2k", "style--icon-inside": "search-module__style--icon-inside_9322_S6tk5", "style--icon-outside": "search-module__style--icon-outside_9322_9FHZQ", container: "search-module__container_9322_eO7XG", hidden: "search-module__hidden_9322_41EUq", clearButton: "search-module__clearButton_9322_yR2sT", "size--small": "search-module__size--small_9322_06E09", "size--medium": "search-module__size--medium_9322_Z3p2y", "size--large": "search-module__size--large_9322_ElXw-", "size--full": "search-module__size--full_9322_vfGSN", "theme--dark": "search-module__theme--dark_9322_ZFi5f" }; 4709 c(".search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input:focus{background-color:var(--bc-background-color);border-color:var(--bc-basic-color-500);color:var(--bc-basic-color-500)}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input[disabled],.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input[readonly]{background-color:var(--bc-background-color);color:var(--basic-color-300);cursor:not-allowed}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::-ms-clear{display:none}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input:-ms-input-placeholder,.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::-moz-placeholder,.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::-webkit-input-placeholder,.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.search-module__base_9322_uNSBR.search-module__style--icon-inside_9322_S6tk5 input[type=search],.search-module__base_9322_uNSBR.search-module__style--icon-outside_9322_9FHZQ .search-module__container_9322_eO7XG{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAABjUlEQVRYhe2WTU4CQRCFPyGwEdcaFx4AvIO40KUoMegNCGj8uYQxnkFXRu+iO9HIiJi4MyTuxoUsBBddk26JylCNGBJeUmmYmVfvTVdNzcAEY4w0UAIugQB4kwiACzmX/ivxIvAEdPtEE9gYpnACOHEEboA9IAtMS+SAfaDmXHcsXG9E4u9AuU/SBFCRayMTXig64ksD8PKOiXWteBpb87KCXxXuI5DSGChha66pZRK4lRyb7om4yaJOPgU6CgMfwJn8VpXhAeM+qyELcpIj0JBDIWc8DMxIjtA9GLcEUx7CvTm+lDCugZasCx4GIu6LxsCVrCseBlZlvdaQtzH1q6F/DO/45jGMixTwLAkqCv6ucBsoBxFAATuK8wPwloE2pvnWtOIAc8CrY6KK2dqfkMTceVs4R77idUkUmehixusBZshkJBaBQ2zNOyKufh274nX5X8D2xG/RYAjb3iseIQVsYT6/mpjPsRC4B84x3a5uOIBZ7DYGwLxPson4WIiDnVi9DTdS7Pyn+AQjxye0yX9Iv8qNSwAAAABJRU5ErkJggg==);background-position:5px 50%;background-repeat:no-repeat;background-size:30px 30px;padding-left:40px}.search-module__base_9322_uNSBR{display:flex;flex-direction:column;margin-top:.5rem;max-width:100%}.search-module__base_9322_uNSBR .search-module__hidden_9322_41EUq{display:none!important}.search-module__base_9322_uNSBR label{display:block;font-size:inherit;font-weight:600;padding-bottom:10px}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k{position:relative}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input{flex-grow:1;padding:15px 2.5rem 15px 15px;width:100%}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::-webkit-search-cancel-button{-webkit-appearance:none}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k input::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.search-module__base_9322_uNSBR .search-module__input-container_9322_RJg2k .search-module__clearButton_9322_yR2sT{background-color:initial;border:none;cursor:pointer;font-size:1.6em;font-weight:700;height:fit-content;padding:0;position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.search-module__base_9322_uNSBR .search-module__container_9322_eO7XG{display:flex;flex-direction:row;width:100%}.search-module__base_9322_uNSBR .search-module__container_9322_eO7XG div{display:flex;flex-direction:column;flex-grow:1}.search-module__base_9322_uNSBR button{height:auto;width:-moz-fit-content;width:fit-content}.search-module__base_9322_uNSBR.search-module__style--icon-outside_9322_9FHZQ label{padding-left:40px}.search-module__base_9322_uNSBR.search-module__style--icon-outside_9322_9FHZQ .search-module__container_9322_eO7XG{max-width:100%}.search-module__base_9322_uNSBR.search-module__style--icon-inside_9322_S6tk5 input[type=search]{padding-left:40px}.search-module__base_9322_uNSBR.search-module__size--small_9322_06E09{width:200
4709px}.search-module__base_9322_uNSBR.search-module__size--medium_9322_Z3p2y{width:400px}.search-module__base_9322_uNSBR.search-module__size--large_9322_ElXw-{width:800px}.search-module__base_9322_uNSBR.search-module__size--full_9322_vfGSN{width:100%}.search-module__base_9322_uNSBR li a{height:auto}.search-module__base_9322_uNSBR.search-module__theme--dark_9322_ZFi5f label{color:#fff}"); 4710 var pr = "", br = t.forwardRef(function(o2, n2) { 4711 var a2, r2 = o2.minCharactersForSearch, i2 = void 0 === r2 ? 2 : r2, l2 = o2.showNoResultsText, c2 = void 0 === l2 || l2, d2 = o2.maxResultsInSuggestions, s2 = void 0 === d2 ? 10 : d2, m2 = o2.searchTimeout, p2 = void 0 === m2 ? 1e3 : m2, b2 = o2.loadingBar, f2 = void 0 === b2 || b2, g2 = o2.autoSearchTimeout, v2 = void 0 === g2 ? 250 : g2, x2 = o2.showSuggestions, y2 = void 0 === x2 || x2, k2 = o2.clearButtonTitle, w2 = void 0 === k2 ? "Tøm søkeboks" : k2, N2 = o2.searchText, C2 = void 0 === N2 ? "" : N2, j2 = _(o2, ["minCharactersForSearch", "showNoResultsText", "maxResultsInSuggestions", "searchTimeout", "loadingBar", "autoSearchTimeout", "showSuggestions", "clearButtonTitle", "searchText"]), T2 = t.useState(null !== (a2 = null != C2 ? C2 : j2.defaultSearchText) && void 0 !== a2 ? a2 : ""), P2 = T2[0], S2 = T2[1], D2 = t.useState([]), A2 = D2[0], E2 = D2[1], R2 = t.useState(-1), I2 = R2[0], M2 = R2[1], z2 = t.useState(-1), L2 = z2[0], F2 = z2[1], O2 = t.useState(false), B2 = O2[0], H2 = O2[1], V2 = t.useState(false), G2 = V2[0], U2 = V2[1], K2 = t.useRef(null), W2 = t.useRef(null), q2 = t.useRef(null), X2 = { type: "button", text: j2.searchButtonText || "Søk" }, Y2 = u(u({}, X2), j2.buttonProps), J2 = ["".concat(h, "-content-search"), mr.base]; 4712 j2.size && J2.push("".concat(h, "-content-search-size--").concat(j2.size, " ").concat(mr["size--".concat(j2.size)])), j2.searchIcon && "none" !== j2.searchIcon && J2.push("".concat(h, "-content-search-style--icon-") + j2.searchIcon, mr["style--icon-".concat(j2.searchIcon)]), j2.theme && J2.push("".concat(h, "-content-search--theme-").concat(j2.theme), mr["theme--".concat(j2.theme)]), j2.className && J2.push(j2.className); 4713 var Z2 = function() { 4714 j2.fetchSuggestionData && (M2(-1), j2.fetchSuggestionData(pr).then(function(e2) { 4715 E2(e2); 4716 }).finally(function() { 4717 H2(false); 4718 })); 4719 }, $2 = t.useCallback(function(e2) { 4720 var t2; 4721 i2 <= e2.length && (S2(e2), null === (t2 = q2.current) || void 0 === t2 || t2.focus(), j2.onSearch && j2.onSearch(e2), U2(true)); 4722 }, [q2, i2, j2]), ee2 = t.useCallback(function(e2) { 4723 var t2; 4724 j2.onSelect && j2.onSelect(e2), S2(e2.text), null === (t2 = j2.onChange) || void 0 === t2 || t2.call(j2, e2.link), U2(true); 4725 }, [j2]); 4726 t.useEffect(function() { 4727 var e2, t2 = null !== (e2 = null != C2 ? C2 : j2.defaultSearchText) && void 0 !== e2 ? e2 : ""; 4728 S2(t2); 4729 }, [j2.defaultSearchText, C2]), t.useEffect(function() { 4730 j2.autoSearch && (-1 !== L2 && window.clearTimeout(L2), F2(window.setTimeout(function() { 4731 M2(-1), $2(P2); 4732 }, v2))); 4733 }, [v2, L2, $2, j2.autoSearch, P2]); 4734 var te2 = function(e2) { 4735 var t2, o3; 4736 if (q2.current) { 4737 var n3 = null === (t2 = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) || void 0 === t2 ? void 0 : t2.set; 4738 null == n3 || n3.call(q2.current, e2); 4739 var a3 = new Event("input", { bubbles: true }); 4740 null === (o3 = q2.current) || void 0 === o3 || o3.dispatchEvent(a3); 4741 } 4742 }, oe2 = t.useCallback(function() { 4743 var e2; 4744 j2.onCleared && j2.onCleared(), S2(""), te2(""), null === (e2 = q2.current) || void 0 === e2 || e2.focus(); 4745 }, [j2]); 4746 t.useEffect(function() { 4747 function e2(e3) { 4748 var t3; 4749 (null === (t3 = K2.current) || void 0 === t3 ? void 0 : t3.contains(e3.target)) || U2(true); 4750 } 4751 var t2 = j2.scrollTarget && null != j2.scrollTarget ? j2.scrollTarget : window; 4752 return window.addEventListener("click", e2), t2.addEventListener("scroll", e2), window.addEventListener("touchstart", e2), function() { 4753 window.removeEventListener("click", e2), t2.removeEventListener("scroll", e2), window.removeEventListener("touchstart", e2); 4754 }; 4755 }, [K2, j2.scrollTarget]), t.useImperativeHandle(n2, function() { 4756 return { setValue: te2, getValue: function() { 4757 var e2; 4758 return null === (e2 = q2.current) || void 0 === e2 ? void 0 : e2.value; 4759 }, getName: function() { 4760 return j2.name; 4761 }, getLabel: function() { 4762 return j2.labelText; 4763 }, validate: function() { 4764 return false;
4765 }, getNativeRef: function() { 4766 return q2; 4767 }, type: "Search", focus: function() { 4768 var e2; 4769 return null === (e2 = q2.current) || void 0 === e2 ? void 0 : e2.focus(); 4770 }, reset: oe2 }; 4771 }, [oe2, q2, j2.labelText, j2.name]); 4772 var ne2 = void 0, ae2 = void 0, re2 = void 0; 4773 y2 && (ne2 = P2.length >= i2 && (!B2 || B2 && f2), ae2 = j2.id ? j2.id + "-input-suggestions" : "generic-search-id-suggestions", re2 = "listbox"); 4774 var ie2 = j2.id ? j2.id + "-label" : "generic-search-id-label"; 4775 return j2.labelText && "" !== j2.labelText || (ie2 = void 0), e.jsxs("div", u({ id: j2.id, ref: K2, className: J2.join(" ") }, { children: [ie2 && e.jsx("label", u({ id: ie2, className: j2.hideLabel ? "".concat(h, "-visually-hidden") : "", htmlFor: j2.id ? j2.id + "-input" : "generic-search-id" }, { children: j2.labelText })), e.jsxs("div", u({ className: "".concat(h, "-content-search-container ").concat(mr.container) }, { children: [e.jsxs("div", { children: [e.jsxs("div", u({ className: "".concat(h, "-content-search-container-input-container ").concat(mr["input-container"]) }, { children: [e.jsx("input", { id: j2.id ? j2.id + "-input" : "generic-search-id", type: y2 ? "text" : "search", role: y2 ? "combobox" : void 0, "aria-controls": y2 ? ae2 : void 0, "aria-expanded": y2 ? ne2 : void 0, "aria-haspopup": re2, placeholder: !ne2 && j2.placeholderText ? j2.placeholderText : void 0, value: P2, name: j2.name, onChange: function(e2) { 4776 var t2; 4777 H2(true), S2(e2.target.value), pr = e2.target.value, "" === P2 && (null == A2 ? void 0 : A2.length) && E2([]), j2.fetchSuggestionData && -1 === I2 && "" !== P2 && i2 <= pr.length && (window.clearTimeout(I2), M2(window.setTimeout(Z2, p2))), j2.onCleared && "" === pr && j2.onCleared(), null === (t2 = j2.onChange) || void 0 === t2 || t2.call(j2, e2.target.value, e2); 4778 }, "aria-labelledby": ie2 ? void 0 : j2.labelledBy, "aria-owns": y2 ? ae2 : void 0, onClick: function(e2) { 4779 e2.stopPropagation(); 4780 }, autoComplete: "off", onKeyDown: function(e2) { 4781 var t2; 4782 "Enter" === e2.key ? (e2.preventDefault(), $2(P2), null === (t2 = j2.onChange) || void 0 === t2 || t2.call(j2, P2)) : G2 && "Tab" !== e2.key && U2(false), "ArrowDown" === e2.key && (e2.preventDefault(), W2.current && W2.current.focusFirst()); 4783 }, ref: q2 }), P2 && e.jsx("button", u({ title: w2, "aria-label": w2, className: mr.clearButton, onClick: oe2 }, { children: "×" }))] })), y2 && e.jsx(_r, { className: ne2 ? void 0 : mr.hidden, id: ae2, ref: W2, data: A2.slice(0, s2), highlighting: j2.highlighting, disableSuggestions: G2, onClick: ee2, searchText: P2, retrieveFocus: function() { 4784 var e2; 4785 null === (e2 = q2.current) || void 0 === e2 || e2.focus(), U2(true); 4786 }, loading: B2, renderListItem: j2.renderListItem, noResultsText: j2.noResultsText, showNoResultsText: c2, suggestionsIcon: j2.suggestionsIcon })] }), j2.searchButton && e.jsx(Q, u({ onClick: function() { 4787 $2(P2), U2(true); 4788 } }, Y2))] }))] })); 4789 }), hr = { base: "selectSearch-module__base_9322_gw85p", "input-container": "selectSearch-module__input-container_9322_j-5Dv", "style--icon-inside": "selectSearch-module__style--icon-inside_9322_9T3Bj", "style--icon-outside": "selectSearch-module__style--icon-outside_9322_Q8Q42", container: "selectSearch-module__container_9322_g3ai9", "size--small": "selectSearch-module__size--small_9322_gkxBb", "size--medium": "selectSearch-module__size--medium_9322_-7n60", "size--large": "selectSearch-module__size--large_9322_2qLiw", "size--full": "selectSearch-module__size--full_9322_35xzs" }; 4790 c(".selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]{-webkit-appearance:none;background-color:#fff;background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);box-sizing:border-box;color:var(--bc-c-text-primary);font-size:var(--bc-input-font-size);height:calc(var(--bc-input-height) - .25rem);min-height:calc(var(--bc-input-height) - .25rem);padding:0 1rem;transition:color .1s ease-in-out,background-color .1s ease-in-out}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]:hover{background-color:var(--bc-background-color);color:var(--bc-basic-color-500)}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]:focus{background-color:var(--bc-background-color);border-color:var(--bc-basic-color-500);color:var(--bc-basic-color-500)}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[disabled][type=search],.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[readonly][type=search]{background-color:var(--bc-background-color);color:var(--basic-color-300);
4790cursor:not-allowed}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::-ms-clear{display:none}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]:-ms-input-placeholder,.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::-moz-placeholder,.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::-webkit-input-placeholder,.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::placeholder{color:var(--bc-input-placeholder-color);opacity:1}.selectSearch-module__base_9322_gw85p.selectSearch-module__style--icon-inside_9322_9T3Bj input[type=search],.selectSearch-module__base_9322_gw85p.selectSearch-module__style--icon-outside_9322_Q8Q42 .selectSearch-module__container_9322_g3ai9{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAABjUlEQVRYhe2WTU4CQRCFPyGwEdcaFx4AvIO40KUoMegNCGj8uYQxnkFXRu+iO9HIiJi4MyTuxoUsBBddk26JylCNGBJeUmmYmVfvTVdNzcAEY4w0UAIugQB4kwiACzmX/ivxIvAEdPtEE9gYpnACOHEEboA9IAtMS+SAfaDmXHcsXG9E4u9AuU/SBFCRayMTXig64ksD8PKOiXWteBpb87KCXxXuI5DSGChha66pZRK4lRyb7om4yaJOPgU6CgMfwJn8VpXhAeM+qyELcpIj0JBDIWc8DMxIjtA9GLcEUx7CvTm+lDCugZasCx4GIu6LxsCVrCseBlZlvdaQtzH1q6F/DO/45jGMixTwLAkqCv6ucBsoBxFAATuK8wPwloE2pvnWtOIAc8CrY6KK2dqfkMTceVs4R77idUkUmehixusBZshkJBaBQ2zNOyKufh274nX5X8D2xG/RYAjb3iseIQVsYT6/mpjPsRC4B84x3a5uOIBZ7DYGwLxPson4WIiDnVi9DTdS7Pyn+AQjxye0yX9Iv8qNSwAAAABJRU5ErkJggg==);background-position:5px 50%;background-repeat:no-repeat;background-size:30px 30px;padding-left:40px}.selectSearch-module__base_9322_gw85p{display:flex;flex-direction:column;max-width:100%}.selectSearch-module__base_9322_gw85p label{display:block;font-size:90%;font-weight:600;padding-bottom:10px}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv{position:relative}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]{border:2px solid #000;border-radius:4px;flex-grow:1;height:auto;padding-left:1rem;width:100%}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::placeholder{opacity:1}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]:-ms-input-placeholder{color:#000}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv input[type=search]::-ms-input-placeholder{color:#000}.selectSearch-module__base_9322_gw85p .selectSearch-module__input-container_9322_j-5Dv [data-clear-input]{cursor:pointer;font-size:1.6em;font-weight:700;padding:0 .2em;position:absolute;right:1rem;top:50%;transform:translateY(-50%)}.selectSearch-module__base_9322_gw85p .selectSearch-module__container_9322_g3ai9{display:flex;flex-direction:row;width:100%}.selectSearch-module__base_9322_gw85p .selectSearch-module__container_9322_g3ai9 div{display:flex;flex-direction:column;flex-grow:1}.selectSearch-module__base_9322_gw85p.selectSearch-module__style--icon-outside_9322_Q8Q42 label{padding-left:40px}.selectSearch-module__base_9322_gw85p.selectSearch-module__style--icon-outside_9322_Q8Q42 .selectSearch-module__container_9322_g3ai9{max-width:calc(100% - 40px)}.selectSearch-module__base_9322_gw85p.selectSearch-module__style--icon-inside_9322_9T3Bj input[type=search]{padding-left:40px}.selectSearch-module__base_9322_gw85p.selectSearch-module__size--small_9322_gkxBb{width:200px}.selectSearch-module__base_9322_gw85p.selectSearch-module__size--medium_9322_-7n60{width:400px}.selectSearch-module__base_9322_gw85p.selectSearch-module__size--large_9322_2qLiw{width:800px}.selectSearch-module__base_9322_gw85p.selectSearch-module__size--full_9322_35xzs{width:100%}.selectSearch-module__base_9322_gw85p li a{height:auto}"); 4791 var fr = ""; 4792 var gr = { visuallyHidden: "table-module__visuallyHidden_9322_AcyU-", body: "table-module__body_9322_HOcxD", footer: "table-module__footer_9322_6yOvD", header: "table-module__header_9322_OkMTW", "header-cell": "table-module__header-cell_9322_-xSSP", "data-cell": "table-module__data-cell_9322_diQK6", row: "table-module__row_9322_p9nvi" }; 4793 c(".table-module__visuallyHidden_9322_AcyU-{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}"); 4794 var vr = Object.assign(function(t2) { 4795 var o2 = _(t2, []), n2 = ["".concat(h, "-table ").concat(gr.base)]; 4796 return o2.className && n2.push(o2.className), e.jsx("table", u({}, o2, { className: n2.join(" ") }, { children: o2.children })); 4797 }, { Body: function(t2) { 4798 var o2 = _(t2, []), n2 = ["".concat(h, "-table-body ").concat(gr.body)]; 4799 return o2.className && n2.push(o2.className), e.jsx("tbody", u({ className: n2.join(" ") }, { children: o2.children })); 4800 }, Header: function(t2) { 4801 var o2 = _(t2, []), n2 = ["".concat(h, "-table-header ").concat(gr.header)]; 4802 return o2.className && n2.push(o2.className), e.jsx("thead", u({ className: n2.join(" ") }, { children: o2.children })); 4803 }, Footer: function(t2) { 4804 var o2 = _(t2, []), n2 = ["".concat(h, "-table-footer ").concat(gr.footer)]; 4805 return o2.className && n2.push(o2.className), e.jsx("tfoot", u({ className: n2.join(" ") }, { children: o2.children })); 4806 }, HeaderCell: function(t2) { 4807 var o2 = _(t2, []), n2 = ["".concat(h, "-table-header-cell ").concat(gr["header-cell"])]; 4808 return o2.className && n2.push(o2.className), e.jsx("th", u({ className: n2.join(" ") }, { children: o2.children })); 4809 }, Row: function(t2) { 4810 var o2 = _(t2, []), n2 = ["".concat(h, "-table-row ").concat(gr.row)]; 4811 return o2.className && n2.push(o2.className), e.jsx("tr", u({}, o2, { className: n2.join(" ") }, { children: o2.children })); 4812 }, DataCell: function(t2) { 4813 var o2 = _(t2, []), n2 = ["".concat(h, "-table-data-cell ").concat(gr["data-cell"])]; 4814 return o2.className && n2.push(o2.className), e.jsx("td", u({}, o2, { className: n2.join(" ") }, { children: o2.children })); 4815 }, Caption: function(t2) { 4816 var o2 = _(t2, []), n2 = ["".concat(h, "-table-caption ").concat(gr.caption)]; 4817 return o2.className && n2.push(o2.className), void 0 !== o2.visuallyHidden && o2.visuallyHidden && n2.push(gr.visuallyHidden), e.jsx("caption", u({ className: n2.join(" ") }, { children: o2.children })); 4818 } }); 4819 var xr = t.forwardRef(function(o2, n2) { 4820 var a2 = _(o2, []), i2 = t.useState(a2.selected), l2 = i2[0], c2 = i2[1]; 4821 r.useLayoutEffect(function() { 4822 c2(a2.selected); 4823 }, [a2.selected]); 4824 var d2 = function() { 4825 return a2.title; 4826 }, s2 = function() { 4827 return l2; 4828 }, u2 = function(e2) { 4829 c2(e2); 4830 }; 4831 return t.useImperativeHandle(n2, function() { 4832 return { getTitle: d2, setVisibility: u2, isVisible: s2 }; 4833 }), e.jsx(e.Fragment, { children: l2 && a2.children }); 4834 }), yr = "tabs-module__base_9322_I1MuQ", kr = "tabs-module__header_9322_YL-7j", wr = "tabs-module__header-item_9322_7dSZ7", Nr = "tabs-module__--selected_9322_qqTe1", Cr = "tabs-module__body_9322_yI7QP"; 4835 c(".tabs-module__base_9322_I1MuQ{width:100%}.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j{border-bottom:1px solid var(--bc-c-border-separator);margin:0 0 10px;overflow:visible;padding:0;width:100%}.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j .tabs-module__header-item_9322_7dSZ7{background-color:initial;display:inline-block;margin:0 5px 0 0}.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j .tabs-module__header-item_9322_7dSZ7 button{background-color:initial;border:none;cursor:pointer;font-size:1rem;height:50px;min-width:100px;outline:none;position:relative;width:fit-content;z-index:1}.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j .tabs-module__header-item_9322_7dSZ7 button:focus,.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j .tabs-module__header-item_9322_7dSZ7 button:hover{box-shadow:inset 0 -2px 0 var(--bc-c-action-primary-hover);outline:0}.tabs-module__base_9322_I1MuQ .tabs-module__--selected_9322_qqTe1,.tabs-module__base_9322_I1MuQ .tabs-module__header_9322_YL-7j .tabs-module__header-item_9322_7dSZ7 button:focus{box-shadow:inset 0 -3px 0 var(--bc-c-action-primary)}.tabs-module__base_9322_I1MuQ .tabs-module__body_9322_yI7QP{background:#fbfcfe;padding:.5rem .5rem .7rem;position:relative}"); 4836 var jr = xr, Tr = { base: "tag-module__base_9322_C7yjx", "size--small": "tag-module__size--small_9322_3vh3Q", "size--medium": "tag-module__size--medium_9322_V0Pcy", "size--large": "tag-module__size--large_9322_cbfYF", "size--xlarge": "tag-module__size--xlarge_9322_ZDfzo", "--primary": "tag-module__--primary_9322_1l7Q-", "appearance--ghost": "tag-module__appearance--ghost_9322_XSre8", clickable: "tag-module__clickable_9322_wznAt", "
4836--secondary": "tag-module__--secondary_9322_z4CMu" }; 4837 c(".tag-module__base_9322_C7yjx{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.0625rem solid #00000026;border-radius:4rem;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;font-size:1rem;margin:0 .5rem .5rem 0;max-width:100%;padding:.5rem .5rem .5rem 1rem}.tag-module__base_9322_C7yjx span{font-size:1rem;white-space:nowrap}.tag-module__base_9322_C7yjx i{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-radius:2rem;color:#000;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:datasource;font-style:normal;font-variant:normal;font-weight:400;height:1.5rem;justify-content:center;line-height:1;margin-left:.5rem;text-transform:none;width:1.5rem}.tag-module__base_9322_C7yjx.tag-module__size--small_9322_3vh3Q{font-size:1rem;padding:.5rem .5rem .5rem 1rem}.tag-module__base_9322_C7yjx.tag-module__size--small_9322_3vh3Q span{font-size:1rem}.tag-module__base_9322_C7yjx.tag-module__size--small_9322_3vh3Q:after{height:1.5rem;margin-left:.5rem;width:1.5rem}.tag-module__base_9322_C7yjx.tag-module__size--medium_9322_V0Pcy{font-size:2rem;padding:1rem 1rem 1rem 1.5rem}.tag-module__base_9322_C7yjx.tag-module__size--medium_9322_V0Pcy span{font-size:2rem}.tag-module__base_9322_C7yjx.tag-module__size--medium_9322_V0Pcy:after{height:2.5rem;margin-left:1rem;width:2.5rem}.tag-module__base_9322_C7yjx.tag-module__size--large_9322_cbfYF{font-size:3rem;padding:1.5rem 1.5rem 1.5rem 2rem}.tag-module__base_9322_C7yjx.tag-module__size--large_9322_cbfYF span{font-size:3rem}.tag-module__base_9322_C7yjx.tag-module__size--large_9322_cbfYF:after{height:3.5rem;margin-left:1.5rem;width:3.5rem}.tag-module__base_9322_C7yjx.tag-module__size--xlarge_9322_ZDfzo{font-size:4rem;padding:2rem 2rem 2rem 2.5rem}.tag-module__base_9322_C7yjx.tag-module__size--xlarge_9322_ZDfzo span{font-size:4rem}.tag-module__base_9322_C7yjx.tag-module__size--xlarge_9322_ZDfzo:after{height:4.5rem;margin-left:2rem;width:4.5rem}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-{background-color:var(--bc-c-action-primary);border-color:var(--bc-c-action-primary);color:#fff}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-:focus,.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-:hover{background-color:var(--bc-primary-color-100);border-color:var(--bc-primary-color-300);color:var(--bc-c-action-primary)}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-:focus:after,.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-:hover:after{color:var(--bc-c-action-primary)}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-[aria-disabled=true],.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-[disabled]{background-color:var(--bc-primary-color-100);border-color:var(--bc-primary-color-100);color:#fff}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-:after{color:var(--bc-c-action-primary)}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-.tag-module__appearance--ghost_9322_XSre8{background:none;background-color:#0000;border-color:var(--bc-primary-color-300);color:var(--bc-primary-color-300)}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-.tag-module__appearance--ghost_9322_XSre8:after,.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-.tag-module__appearance--ghost_9322_XSre8:hover{background-color:var(--bc-primary-color-300);color:#fff}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-.tag-module__appearance--ghost_9322_XSre8:hover.tag-module__clickable_9322_wznAt{cursor:pointer}.tag-module__base_9322_C7yjx.tag-module__--primary_9322_1l7Q-.tag-module__appearance--ghost_9322_XSre8:hover:after{background-color:#fff;color:var(--bc-primary-color-300)}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu{background-color:#fff;border-color:var(--bc-c-action-primary);color:#282828}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu:focus,.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu:hover{background-color:var(--bc-c-action-primary);border-color:var(--bc-c-action-primary);color:#fff}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu:focus:after,.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu:hover:after{background-color:#fff;color:var(--bc-c-action-primary)}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu[aria-disabled=true],.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu[disabled]{background-color:#e1e1e1;border-color:#e1e1e1;color:#fff}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu:after{background-color:var(--bc-c-action-primary);color:#e1e1e1}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu.tag-module__appearance--ghost_9322_XSre8{background:none;background-color:#0000;border-color:var(--bc-primary-color-300);color:var(--bc-primary-color-300)}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu.tag-module__appearance--ghost_9322_XSre8:after,.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu.tag-module__appearance--ghost_9322_XSre8:hover{background-color:var(--bc-primary-color-300);color:#fff}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu.tag-module__appearance--ghost_9322_XSre8:hover.tag-module__clickable_9322_wznAt{cursor:pointer}.tag-module__base_9322_C7yjx.tag-module__--secondary_9322_z4CMu.tag-module__appearance--ghost_9322_XSre8:hover:after{background-color:#fff;color:var(--bc-primary-color-300)}"); 4838 var Pr = function(t2) { 4839 var o2, n2 = t2.text, a2 = t2.status, r2 = void 0 === a2 ? "primary" : a2, i2 = t2.appearance, l2 = void 0 === i2 ? "filled" : i2, c2 = t2.name, d2 = void 0 === c2 ? void 0 : c2, s2 = t2.index, m2 = void 0 === s2 ? void 0 : s2, p2 = t2.onDelete, b2 = void 0 === p2 ? void 0 : p2, f2 = t2.maxLength, g2 = void 0 === f2 ? 32 : f2, v2 = t2.removeItemText, x2 = void 0 === v2 ? "Fjern det valgte elementet:" : v2, y2 = _(t2, ["text", "status", "appearance", "name", "index", "onDelete", "maxLength", "removeItemText"]), k2 = null != n2 ? n2 : d2; 4840 n2 && n2.length > g2 && (n2 = n2.substring(0, g2) + "..."); 4841 var w2 = Xt.getClassNameAsArray("content-tag", y2); 4842 return w2.push(Tr.base), w2.push("".concat(h, "-content-tag--").concat(r2), Tr["--" + r2]), w2.push("".concat(h, "-content-tag--appearance-").concat(l2), Tr["appearance--" + l2]), e.jsxs("button", u({ "aria-label": "".concat(x2, " ").concat(k2), title: k2, type: "button", className: w2.join(" "), onClick: b2 && void 0 !== m2 ? function(e2) { 4843 return b2(m2, e2); 4844 } : void 0 }, { children: [e.jsxs("span", u({ className: "".concat(h, "-content-tag-span") }, { children: [null === (o2 = n2 || d2) || void 0 === o2 ? void 0 : o2.substring(0, g2), n2 && (null == n2 ? void 0 : n2.length) > g2 || d2 && (null == d2 ? void 0 : d2.length) > g2 ? "..." : ""] })), e.jsx(q, { icon: "ri-close-line" })] })); 4845 }, Sr = "tag-list-module__base_9322_L3VSE", Dr = "tag-list-module__tag_9322_Bgc2u"; 4846 c(".tag-list-module__base_9322_L3VSE{display:inline;margin:0 5px 0 0;padding:0}.tag-list-module__base_9322_L3VSE .tag-list-module__tag_9322_Bgc2u{margin-right:.5rem}.tag-list-module__base_9322_L3VSE .tag-list-module__tag_9322_Bgc2u:last-child{margin-right:0}"); 4847 var Ar = function(o2) { 4848 var n2 = o2.status, a2 = void 0 === n2 ? "primary" : n2, r2 = o2.appearance, i2 = void 0 === r2 ? "filled" : r2, l2 = o2.onTagDelete, c2 = o2.tags, d2 = void 0 === c2 ? [] : c2, s2 = o2.invertCloseAllTagStatus, m2 = void 0 === s2 || s2, p2 = _(o2, ["status", "appearance", "onTagDelete", "tags", "invertCloseAllTagStatus"]); 4849 if (null == d2 || 0 === d2.length) return null; 4850 var b2 = Xt.getClassNameAsArray("content-tag-list", p2); 4851 b2.push(Sr), b2.push("".concat(h, "-content-tag-list--").concat(a2)), b2.push("".concat(h, "-content-tag-list--appearance-").concat(i2)), p2.className && b2.push(p2.className); 4852 var f2 = "primary" === a2 ? "secondary" : "primary"; 4853 return f2 = m2 ? f2 : a2, e.jsxs("div", u({ "aria-label": p2.ariaLabel, className: b2.join(" ") }, { children: [p2.displayCloseAllTag && d2.length > 0 && e.jsx(Pr, { className: Dr, text: p2.closeAllTagText, onDelete: p2.onClickCloseAllTags, size: p2.size, status: f2, appearance: i2, index: -1 }), d2.map(function(e2, o3) { 4854 return t.createElement(Pr, u({}, e2, { className: Dr, onDelete: l2, index: o3, key: o3, size: p2.size, status: a2, appearance: i2 })); 4855 })] })); 4856 }, Er = { base: "tag-input-module__base_9322_psn-e", "input-wrapper": "tag-input-module__input-wrapper_9322_p3pBl" }; 4857 c(".tag-input-module__base_9322_psn-e{border:none;display:block;flex:1 1 auto;font-size:12pt;margin:5px;min-height:100%;position:relative}.tag-input-module__input-wrapper_9322_p3pBl{border:1px solid #ccc;border-radius:5px;
4857display:flex;flex-flow:row wrap;padding:10px}.tag-input-module__input-wrapper_9322_p3pBl :focus{outline:blue}.tag-input-module__tagsList_9322_LeugA{display:inline;margin:0 5px 0 0;padding:0}.tag-input-module__tagsList_9322_LeugA li{background:#ddd;border-radius:4px;color:#444;display:inline-block;font-size:11pt;margin:3px;padding:3px 5px}.tag-input-module__tagsList_9322_LeugA li.tag-input-module__clickable_9322_MrajG:hover{background:#aaa;color:#000;cursor:pointer}.tag-input-module__tagsList_9322_LeugA li a{color:#666;margin-left:5px;padding:0 2px;text-decoration:none}.tag-input-module__tagsList_9322_LeugA li a:hover{color:#dd3345}"); 4858 var Rr = "tooltip-module__base_9322_2GSwR", Ir = "tooltip-module__trigger_9322_T8lCz", Mr = "tooltip-module__content_9322_M9kUB", zr = "tooltip-module__trigger-text_9322_TOvqw", Lr = "tooltip-module__closeIcon_9322_BOcTI"; 4859 c('.tooltip-module__base_9322_2GSwR{display:inline;position:relative}.tooltip-module__trigger_9322_T8lCz{align-items:center;background-color:#000;border:0;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;height:1em;justify-content:center;margin:0;padding:0;text-align:center;width:1em}.tooltip-module__trigger_9322_T8lCz:focus{outline:none}.tooltip-module__trigger_9322_T8lCz[aria-expanded=true]+.tooltip-module__content_9322_M9kUB{display:block}.tooltip-module__trigger-text_9322_TOvqw{display:none}.tooltip-module__content_9322_M9kUB{background:#fff;border:.0625rem solid #000;box-shadow:0 3px 5px 0 #00000026;display:none;left:100%;margin-left:.5rem;max-width:22em;min-width:12em;padding:.5rem;position:absolute;top:-50%;z-index:100}.tooltip-module__closeIcon_9322_BOcTI{background-color:initial;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ny45NzEgNDcuOTcxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0Ny45NzEgNDcuOTcxIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjguMjI4IDIzLjk4NiA0Ny4wOTIgNS4xMjJhMi45OTggMi45OTggMCAwIDAgMC00LjI0MiAyLjk5OCAyLjk5OCAwIDAgMC00LjI0MiAwTDIzLjk4NiAxOS43NDQgNS4xMjEuODhhMi45OTggMi45OTggMCAwIDAtNC4yNDIgMCAyLjk5OCAyLjk5OCAwIDAgMCAwIDQuMjQybDE4Ljg2NSAxOC44NjRMLjg3OSA0Mi44NWEyLjk5OCAyLjk5OCAwIDEgMCA0LjI0MiA0LjI0MWwxOC44NjUtMTguODY0TDQyLjg1IDQ3LjA5MWMuNTg2LjU4NiAxLjM1NC44NzkgMi4xMjEuODc5czEuNTM1LS4yOTMgMi4xMjEtLjg3OWEyLjk5OCAyLjk5OCAwIDAgMCAwLTQuMjQyTDI4LjIyOCAyMy45ODZ6Ii8+PC9zdmc+");background-repeat:no-repeat;border:none;cursor:pointer;height:13px;outline:none;position:absolute;right:10px;top:10px;width:13px}.tooltip-module__closeIcon_9322_BOcTI:focus,.tooltip-module__closeIcon_9322_BOcTI:hover{transform:scale(1.2);transition:all .2s}'); 4860 /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */ 4861 const { entries: Fr, setPrototypeOf: Or, isFrozen: Br, getPrototypeOf: Hr, getOwnPropertyDescriptor: Vr } = Object; 4862 let { freeze: Gr, seal: Ur, create: Kr } = Object, { apply: Wr, construct: Qr } = "undefined" != typeof Reflect && Reflect; 4863 Gr || (Gr = function(e2) { 4864 return e2; 4865 }), Ur || (Ur = function(e2) { 4866 return e2; 4867 }), Wr || (Wr = function(e2, t2, o2) { 4868 return e2.apply(t2, o2); 4869 }), Qr || (Qr = function(e2, t2) { 4870 return new e2(...t2); 4871 }); 4872 const qr = li(Array.prototype.forEach), Xr = li(Array.prototype.pop), Yr = li(Array.prototype.push), Jr = li(String.prototype.toLowerCase), Zr = li(String.prototype.toString), $r = li(String.prototype.match), ei = li(String.prototype.replace), ti = li(String.prototype.indexOf), oi = li(String.prototype.trim), ni = li(Object.prototype.hasOwnProperty), ai = li(RegExp.prototype.test), ri = (ii = TypeError, function() { 4873 for (var e2 = arguments.length, t2 = new Array(e2), o2 = 0; o2 < e2; o2++) t2[o2] = arguments[o2]; 4874 return Qr(ii, t2); 4875 }); 4876 var ii; 4877 function li(e2) { 4878 return function(t2) { 4879 for (var o2 = arguments.length, n2 = new Array(o2 > 1 ? o2 - 1 : 0), a2 = 1; a2 < o2; a2++) n2[a2 - 1] = arguments[a2]; 4880 return Wr(e2, t2, n2); 4881 }; 4882 } 4883 function ci(e2, t2) { 4884 let o2 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : Jr; 4885 Or && Or(e2, null); 4886 let n2 = t2.length; 4887 for (; n2--; ) { 4888 let a2 = t2[n2]; 4889 if ("string" == typeof a2) { 4890 const e3 = o2(a2); 4891 e3 !== a2 && (Br(t2) || (t2[n2] = e3), a2 = e3); 4892 } 4893 e2[a2] = true; 4894 } 4895 return e2; 4896 } 4897 function di(e2) { 4898 for (let t2 = 0; t2 < e2.length; t2++) { 4899 ni(e2, t2) || (e2[t2] = null); 4900 } 4901 return e2; 4902 } 4903 function si(e2) { 4904 const t2 = Kr(null); 4905 for (const [o2, n2] of Fr(e2)) { 4906 ni(e2, o2) && (Array.isArray(n2) ? t2[o2] = di(n2) : n2 && "object" == typeof n2 && n2.constructor === Object ? t2[o2] = si(n2) : t2[o2] = n2); 4907 } 4908 return t2; 4909 } 4910 function ui(e2, t2) { 4911 for (; null !== e2; ) { 4912 const o2 = Vr(e2, t2); 4913 if (o2) { 4914 if (o2.get) return li(o2.get); 4915 if ("function" == typeof o2.value) return li(o2.value); 4916 } 4917 e2 = Hr(e2); 4918 } 4919 return function() { 4920 return null; 4921 }; 4922 } 4923 const _i = Gr(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), mi = Gr(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pi = Gr(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), bi = Gr(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), hi = Gr(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), fi = Gr(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gi = Gr(["#text"]), vi = Gr(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xi = Gr(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "dis
4923play", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), yi = Gr(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ki = Gr(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), wi = Ur(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ni = Ur(/<%[\w\W]*|[\w\W]*%>/gm), Ci = Ur(/\${[\w\W]*}/gm), ji = Ur(/^data-[\-\w.\u00B7-\uFFFF]/), Ti = Ur(/^aria-[\-\w]+$/), Pi = Ur(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Si = Ur(/^(?:\w+script|data):/i), Di = Ur(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ai = Ur(/^html$/i), Ei = Ur(/^[a-z][.\w]*(-[.\w]+)+$/i); 4924 var Ri = Object.freeze({ __proto__: null, MUSTACHE_EXPR: wi, ERB_EXPR: Ni, TMPLIT_EXPR: Ci, DATA_ATTR: ji, ARIA_ATTR: Ti, IS_ALLOWED_URI: Pi, IS_SCRIPT_OR_DATA: Si, ATTR_WHITESPACE: Di, DOCTYPE_NAME: Ai, CUSTOM_ELEMENT: Ei }); 4925 const Ii = 1, Mi = 3, zi = 7, Li = 8, Fi = 9, Oi = function() { 4926 return "undefined" == typeof window ? null : window; 4927 }; 4928 var Bi = function e2() { 4929 let t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Oi(); 4930 const o2 = (t3) => e2(t3); 4931 if (o2.version = "3.1.7", o2.removed = [], !t2 || !t2.document || t2.document.nodeType !== Fi) return o2.isSupported = false, o2; 4932 let { document: n2 } = t2; 4933 const a2 = n2, r2 = a2.currentScript, { DocumentFragment: i2, HTMLTemplateElement: l2, Node: c2, Element: d2, NodeFilter: s2, NamedNodeMap: u2 = t2.NamedNodeMap || t2.MozNamedAttrMap, HTMLFormElement: _2, DOMParser: m2, trustedTypes: p2 } = t2, b2 = d2.prototype, h2 = ui(b2, "cloneNode"), f2 = ui(b2, "remove"), g2 = ui(b2, "nextSibling"), v2 = ui(b2, "childNodes"), x2 = ui(b2, "parentNode"); 4934 if ("function" == typeof l2) { 4935 const e3 = n2.createElement("template"); 4936 e3.content && e3.content.ownerDocument && (n2 = e3.content.ownerDocument); 4937 } 4938 let y2, k2 = ""; 4939 const { implementation: w2, createNodeIterator: N2, createDocumentFragment: C2, getElementsByTagName: j2 } = n2, { importNode: T2 } = a2; 4940 let P2 = {}; 4941 o2.isSupported = "function" == typeof Fr && "function" == typeof x2 && w2 && void 0 !== w2.createHTMLDocument; 4942 const { MUSTACHE_EXPR: S2, ERB_EXPR: D2, TMPLIT_EXPR: A2, DATA_ATTR: E2, ARIA_ATTR: R2, IS_SCRIPT_OR_DATA: I2, ATTR_WHITESPACE: M2, CUSTOM_ELEMENT: z2 } = Ri; 4943 let { IS_ALLOWED_URI: L2 } = Ri, F2 = null; 4944 const O2 = ci({}, [..._i, ...mi, ...pi, ...hi, ...gi]); 4945 let B2 = null; 4946 const H2 = ci({}, [...vi, ...xi, ...yi, ...ki]); 4947 let V2 = Object.seal(Kr(null, { tagNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, attributeNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, allowCustomizedBuiltInElements: { writable: true, configurable: false, enumerable: true, value: false } })), G2 = null, U2 = null, K2 = true, W2 = true, Q2 = false, q2 = true, X2 = false, Y2 = true, J2 = false, Z2 = false, $2 = false, ee2 = false, te2 = false, oe2 = false, ne2 = true, ae2 = false, re2 = true, ie2 = false, le2 = {}, ce2 = null; 4948 const de2 = ci({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); 4949 let se2 = null; 4950 const ue2 = ci({}, ["audio", "video", "img", "source", "image", "track"]); 4951 let _e2 = null; 4952 const me2 = ci({}
4952, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pe2 = "http://www.w3.org/1998/Math/MathML", be2 = "http://www.w3.org/2000/svg", he2 = "http://www.w3.org/1999/xhtml"; 4953 let fe2 = he2, ge2 = false, ve2 = null; 4954 const xe2 = ci({}, [pe2, be2, he2], Zr); 4955 let ye2 = null; 4956 const ke2 = ["application/xhtml+xml", "text/html"]; 4957 let we2 = null, Ne2 = null; 4958 const Ce2 = n2.createElement("form"), je2 = function(e3) { 4959 return e3 instanceof RegExp || e3 instanceof Function; 4960 }, Te2 = function() { 4961 let e3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 4962 if (!Ne2 || Ne2 !== e3) { 4963 if (e3 && "object" == typeof e3 || (e3 = {}), e3 = si(e3), ye2 = -1 === ke2.indexOf(e3.PARSER_MEDIA_TYPE) ? "text/html" : e3.PARSER_MEDIA_TYPE, we2 = "application/xhtml+xml" === ye2 ? Zr : Jr, F2 = ni(e3, "ALLOWED_TAGS") ? ci({}, e3.ALLOWED_TAGS, we2) : O2, B2 = ni(e3, "ALLOWED_ATTR") ? ci({}, e3.ALLOWED_ATTR, we2) : H2, ve2 = ni(e3, "ALLOWED_NAMESPACES") ? ci({}, e3.ALLOWED_NAMESPACES, Zr) : xe2, _e2 = ni(e3, "ADD_URI_SAFE_ATTR") ? ci(si(me2), e3.ADD_URI_SAFE_ATTR, we2) : me2, se2 = ni(e3, "ADD_DATA_URI_TAGS") ? ci(si(ue2), e3.ADD_DATA_URI_TAGS, we2) : ue2, ce2 = ni(e3, "FORBID_CONTENTS") ? ci({}, e3.FORBID_CONTENTS, we2) : de2, G2 = ni(e3, "FORBID_TAGS") ? ci({}, e3.FORBID_TAGS, we2) : {}, U2 = ni(e3, "FORBID_ATTR") ? ci({}, e3.FORBID_ATTR, we2) : {}, le2 = !!ni(e3, "USE_PROFILES") && e3.USE_PROFILES, K2 = false !== e3.ALLOW_ARIA_ATTR, W2 = false !== e3.ALLOW_DATA_ATTR, Q2 = e3.ALLOW_UNKNOWN_PROTOCOLS || false, q2 = false !== e3.ALLOW_SELF_CLOSE_IN_ATTR, X2 = e3.SAFE_FOR_TEMPLATES || false, Y2 = false !== e3.SAFE_FOR_XML, J2 = e3.WHOLE_DOCUMENT || false, ee2 = e3.RETURN_DOM || false, te2 = e3.RETURN_DOM_FRAGMENT || false, oe2 = e3.RETURN_TRUSTED_TYPE || false, $2 = e3.FORCE_BODY || false, ne2 = false !== e3.SANITIZE_DOM, ae2 = e3.SANITIZE_NAMED_PROPS || false, re2 = false !== e3.KEEP_CONTENT, ie2 = e3.IN_PLACE || false, L2 = e3.ALLOWED_URI_REGEXP || Pi, fe2 = e3.NAMESPACE || he2, V2 = e3.CUSTOM_ELEMENT_HANDLING || {}, e3.CUSTOM_ELEMENT_HANDLING && je2(e3.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V2.tagNameCheck = e3.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e3.CUSTOM_ELEMENT_HANDLING && je2(e3.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V2.attributeNameCheck = e3.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e3.CUSTOM_ELEMENT_HANDLING && "boolean" == typeof e3.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (V2.allowCustomizedBuiltInElements = e3.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), X2 && (W2 = false), te2 && (ee2 = true), le2 && (F2 = ci({}, gi), B2 = [], true === le2.html && (ci(F2, _i), ci(B2, vi)), true === le2.svg && (ci(F2, mi), ci(B2, xi), ci(B2, ki)), true === le2.svgFilters && (ci(F2, pi), ci(B2, xi), ci(B2, ki)), true === le2.mathMl && (ci(F2, hi), ci(B2, yi), ci(B2, ki))), e3.ADD_TAGS && (F2 === O2 && (F2 = si(F2)), ci(F2, e3.ADD_TAGS, we2)), e3.ADD_ATTR && (B2 === H2 && (B2 = si(B2)), ci(B2, e3.ADD_ATTR, we2)), e3.ADD_URI_SAFE_ATTR && ci(_e2, e3.ADD_URI_SAFE_ATTR, we2), e3.FORBID_CONTENTS && (ce2 === de2 && (ce2 = si(ce2)), ci(ce2, e3.FORBID_CONTENTS, we2)), re2 && (F2["#text"] = true), J2 && ci(F2, ["html", "head", "body"]), F2.table && (ci(F2, ["tbody"]), delete G2.tbody), e3.TRUSTED_TYPES_POLICY) { 4964 if ("function" != typeof e3.TRUSTED_TYPES_POLICY.createHTML) throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); 4965 if ("function" != typeof e3.TRUSTED_TYPES_POLICY.createScriptURL) throw ri('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); 4966 y2 = e3.TRUSTED_TYPES_POLICY, k2 = y2.createHTML(""); 4967 } else void 0 === y2 && (y2 = function(e4, t3) { 4968 if ("object" != typeof e4 || "function" != typeof e4.createPolicy) return null; 4969 let o3 = null; 4970 const n3 = "data-tt-policy-suffix"; 4971 t3 && t3.hasAttribute(n3) && (o3 = t3.getAttribute(n3)); 4972 const a3 = "dompurify" + (o3 ? "#" + o3 : ""); 4973 try { 4974 return e4.createPolicy(a3, { createHTML: (e5) => e5, createScriptURL: (e5) => e5 }); 4975 } catch (e5) { 4976 return console.warn("TrustedTypes policy " + a3 + " could not be created."), null; 4977 } 4978 }(p2, r2)), null !== y2 && "string" == typeof k2 && (k2 = y2.createHTML("")); 4979 Gr && Gr(e3), Ne2 = e3; 4980 } 4981 }, Pe2 = ci({}, ["mi", "mo", "mn", "ms", "mtext"]), Se2 = ci({}, ["annotation-xml"]), De2 = ci({}, ["title", "style", "font", "a", "script"]), Ae2 = ci({}, [...mi, ...pi, ...bi]), Ee2 = ci({}, [...hi, ...fi]), Re2 = function(e3) { 4982 Yr(o2.removed, { element: e3 }); 4983 try { 4984 x2(e3).removeChild(e3); 4985 } catch (t3) { 4986 f2(e3); 4987 } 4988 }, Ie2 = function(e3, t3) { 4989 try { 4990 Yr(o2.removed, { attribute: t3.getAttributeNode(e3), from: t3 }); 4991 } catch (e4) { 4992 Yr(o2.removed, { attribute: null, from: t3 }); 4993 } 4994 if (t3.removeAttribute(e3), "is" === e3 && !B2[e3]) if (ee2 || te2) try { 4995 Re2(t3); 4996 } catch (e4) { 4997 } 4998 else try { 4999 t3.setAttribute(e3, ""); 5000 } catch (e4) { 5001 } 5002 }, Me2 = function(e3) { 5003 let t3 = null, o3 = null; 5004 if ($2) e3 = "<remove></remove>" + e3; 5005 else { 5006 const t4 = $r(e3, /^[\r\n\t ]+/); 5007 o3 = t4 && t4[0]; 5008 } 5009 "application/xhtml+xml" === ye2 && fe2 === he2 && (e3 = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e3 + "</body></html>"); 5010 const a3 = y2 ? y2.createHTML(e3) : e3; 5011 if (fe2 === he2) try { 5012 t3 = new m2().parseFromString(a3, ye2); 5013 } catch (e4) { 5014 } 5015 if (!t3 || !t3.documentElement) { 5016 t3 = w2.createDocument(fe2, "template", null); 5017 try { 5018 t3.documentElement.innerHTML = ge2 ? k2 : a3; 5019 } catch (e4) { 5020 } 5021 } 5022 const r3 = t3.body || t3.documentElement; 5023 return e3 && o3 && r3.insertBefore(n2.createTextNode(o3), r3.childNodes[0] || null), fe2 === he2 ? j2.call(t3, J2 ? "html" : "body")[0] : J2 ? t3.documentElement : r3; 5024 }, ze2 = function(e3) { 5025 return N2.call(e3.ownerDocument || e3, e3, s2.SHOW_ELEMENT | s2.SHOW_COMMENT | s2.SHOW_TEXT | s2.SHOW_PROCESSING_INSTRUCTION | s2.SHOW_CDATA_SECTION, null); 5026 }, Le2 = function(e3) { 5027 return e3 instanceof _2 && ("string" != typeof e3.nodeName || "string" != typeof e3.textContent || "function" != typeof e3.removeChild || !(e3.attributes instanceof u2) || "function" != typeof e3.removeAttribute || "function" != typeof e3.setAttribute || "string" != typeof e3.namespaceURI || "function" != typeof e3.insertBefore || "function" != typeof e3.hasChildNodes); 5028 }, Fe2 = function(e3) { 5029 return "function" == typeof c2 && e3 instanceof c2; 5030 }, Oe2 = function(e3, t3, n3) { 5031 P2[e3] && qr(P2[e3], (e4) => { 5032 e4.call(o2, t3, n3, Ne2); 5033 }); 5034 }, Be2 = function(e3) { 5035 let t3 = null; 5036 if (Oe2("beforeSanitizeElements", e3, null), Le2(e3)) return Re2(e3), true; 5037 const n3 = we2(e3.nodeName); 5038 if (Oe2("uponSanitizeElement", e3, { tagName: n3, allowedTags: F2 }), e3.hasChildNodes() && !Fe2(e3.firstElementChild) && ai(/<[/\w]/g, e3.innerHTML) && ai(/<[/\w]/g, e3.textContent)) return Re2(e3), true; 5039 if (e3.nodeType === zi) return Re2(e3), true; 5040 if (Y2 && e3.nodeType === Li && ai(/<[/\w]/g, e3.data)) return Re2(e3), true; 5041 if (!F2[n3] || G2[n3]) { 5042 if (!G2[n3] && Ve2(n3)) { 5043 if (V2.tagNameCheck instanceof RegExp && ai(V2.tagNameCheck, n3)) return false;
5044 if (V2.tagNameCheck instanceof Function && V2.tagNameCheck(n3)) return false; 5045 } 5046 if (re2 && !ce2[n3]) { 5047 const t4 = x2(e3) || e3.parentNode, o3 = v2(e3) || e3.childNodes; 5048 if (o3 && t4) { 5049 for (let n4 = o3.length - 1; n4 >= 0; --n4) { 5050 const a3 = h2(o3[n4], true); 5051 a3.__removalCount = (e3.__removalCount || 0) + 1, t4.insertBefore(a3, g2(e3)); 5052 } 5053 } 5054 } 5055 return Re2(e3), true; 5056 } 5057 return e3 instanceof d2 && !function(e4) { 5058 let t4 = x2(e4); 5059 t4 && t4.tagName || (t4 = { namespaceURI: fe2, tagName: "template" }); 5060 const o3 = Jr(e4.tagName), n4 = Jr(t4.tagName); 5061 return !!ve2[e4.namespaceURI] && (e4.namespaceURI === be2 ? t4.namespaceURI === he2 ? "svg" === o3 : t4.namespaceURI === pe2 ? "svg" === o3 && ("annotation-xml" === n4 || Pe2[n4]) : Boolean(Ae2[o3]) : e4.namespaceURI === pe2 ? t4.namespaceURI === he2 ? "math" === o3 : t4.namespaceURI === be2 ? "math" === o3 && Se2[n4] : Boolean(Ee2[o3]) : e4.namespaceURI === he2 ? !(t4.namespaceURI === be2 && !Se2[n4]) && !(t4.namespaceURI === pe2 && !Pe2[n4]) && !Ee2[o3] && (De2[o3] || !Ae2[o3]) : !("application/xhtml+xml" !== ye2 || !ve2[e4.namespaceURI])); 5062 }(e3) ? (Re2(e3), true) : "noscript" !== n3 && "noembed" !== n3 && "noframes" !== n3 || !ai(/<\/no(script|embed|frames)/i, e3.innerHTML) ? (X2 && e3.nodeType === Mi && (t3 = e3.textContent, qr([S2, D2, A2], (e4) => { 5063 t3 = ei(t3, e4, " "); 5064 }), e3.textContent !== t3 && (Yr(o2.removed, { element: e3.cloneNode() }), e3.textContent = t3)), Oe2("afterSanitizeElements", e3, null), false) : (Re2(e3), true); 5065 }, He2 = function(e3, t3, o3) {
5066 if (ne2 && ("id" === t3 || "name" === t3) && (o3 in n2 || o3 in Ce2)) return false; 5067 if (W2 && !U2[t3] && ai(E2, t3)) ; 5068 else if (K2 && ai(R2, t3)) ; 5069 else if (!B2[t3] || U2[t3]) { 5070 if (!(Ve2(e3) && (V2.tagNameCheck instanceof RegExp && ai(V2.tagNameCheck, e3) || V2.tagNameCheck instanceof Function && V2.tagNameCheck(e3)) && (V2.attributeNameCheck instanceof RegExp && ai(V2.attributeNameCheck, t3) || V2.attributeNameCheck instanceof Function && V2.attributeNameCheck(t3)) || "is" === t3 && V2.allowCustomizedBuiltInElements && (V2.tagNameCheck instanceof RegExp && ai(V2.tagNameCheck, o3) || V2.tagNameCheck instanceof Function && V2.tagNameCheck(o3)))) return false; 5071 } else if (_e2[t3]) ; 5072 else if (ai(L2, ei(o3, M2, ""))) ; 5073 else if ("src" !== t3 && "xlink:href" !== t3 && "href" !== t3 || "script" === e3 || 0 !== ti(o3, "data:") || !se2[e3]) { 5074 if (Q2 && !ai(I2, ei(o3, M2, ""))) ; 5075 else if (o3) return false; 5076 } else ; 5077 return true; 5078 }, Ve2 = function(e3) { 5079 return "annotation-xml" !== e3 && $r(e3, z2); 5080 }, Ge2 = function(e3) { 5081 Oe2("beforeSanitizeAttributes", e3, null); 5082 const { attributes: t3 } = e3; 5083 if (!t3) return; 5084 const n3 = { attrName: "", attrValue: "", keepAttr: true, allowedAttributes: B2 }; 5085 let a3 = t3.length; 5086 for (; a3--; ) { 5087 const r3 = t3[a3], { name: i3, namespaceURI: l3, value: c3 } = r3, d3 = we2(i3); 5088 let s3 = "value" === i3 ? c3 : oi(c3); 5089 if (n3.attrName = d3, n3.attrValue = s3, n3.keepAttr = true, n3.forceKeepAttr = void 0, Oe2("uponSanitizeAttribute", e3, n3), s3 = n3.attrValue, n3.forceKeepAttr) continue; 5090 if (Ie2(i3, e3), !n3.keepAttr) continue; 5091 if (!q2 && ai(/\/>/i, s3)) { 5092 Ie2(i3, e3); 5093 continue; 5094 } 5095 X2 && qr([S2, D2, A2], (e4) => { 5096 s3 = ei(s3, e4, " "); 5097 }); 5098 const u3 = we2(e3.nodeName); 5099 if (He2(u3, d3, s3)) if (!ae2 || "id" !== d3 && "name" !== d3 || (Ie2(i3, e3), s3 = "user-content-" + s3), Y2 && ai(/((--!?|])>)|<\/(style|title)/i, s3)) Ie2(i3, e3); 5100 else { 5101 if (y2 && "object" == typeof p2 && "function" == typeof p2.getAttributeType) if (l3) ; 5102 else switch (p2.getAttributeType(u3, d3)) { 5103 case "TrustedHTML": 5104 s3 = y2.createHTML(s3); 5105 break; 5106 case "TrustedScriptURL": 5107 s3 = y2.createScriptURL(s3); 5108 } 5109 try { 5110 l3 ? e3.setAttributeNS(l3, i3, s3) : e3.setAttribute(i3, s3), Le2(e3) ? Re2(e3) : Xr(o2.removed); 5111 } catch (e4) { 5112 } 5113 } 5114 } 5115 Oe2("afterSanitizeAttributes", e3, null); 5116 }, Ue2 = function e3(t3) { 5117 let o3 = null; 5118 const n3 = ze2(t3); 5119 for (Oe2("beforeSanitizeShadowDOM", t3, null); o3 = n3.nextNode(); ) Oe2("uponSanitizeShadowNode", o3, null), Be2(o3) || (o3.content instanceof i2 && e3(o3.content), Ge2(o3)); 5120 Oe2("afterSanitizeShadowDOM", t3, null); 5121 }; 5122 return o2.sanitize = function(e3) { 5123 let t3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n3 = null, r3 = null, l3 = null, d3 = null; 5124 if (ge2 = !e3, ge2 && (e3 = "<!-->"), "string" != typeof e3 && !Fe2(e3)) { 5125 if ("function" != typeof e3.toString) throw ri("toString is not a function"); 5126 if ("string" != typeof (e3 = e3.toString())) throw ri("dirty is not a string, aborting"); 5127 } 5128 if (!o2.isSupported) return e3; 5129 if (Z2 || Te2(t3), o2.removed = [], "string" == typeof e3 && (ie2 = false), ie2) { 5130 if (e3.nodeName) { 5131 const t4 = we2(e3.nodeName); 5132 if (!F2[t4] || G2[t4]) throw ri("root node is forbidden and cannot be sanitized in-place"); 5133 } 5134 } else if (e3 instanceof c2) n3 = Me2("<!---->"), r3 = n3.ownerDocument.importNode(e3, true), r3.nodeType === Ii && "BODY" === r3.nodeName || "HTML" === r3.nodeName ? n3 = r3 : n3.appendChild(r3); 5135 else { 5136 if (!ee2 && !X2 && !J2 && -1 === e3.indexOf("<")) return y2 && oe2 ? y2.createHTML(e3) : e3; 5137 if (n3 = Me2(e3), !n3) return ee2 ? null : oe2 ? k2 : ""; 5138 } 5139 n3 && $2 && Re2(n3.firstChild); 5140 const s3 = ze2(ie2 ? e3 : n3); 5141 for (; l3 = s3.nextNode(); ) Be2(l3) || (l3.content instanceof i2 && Ue2(l3.content), Ge2(l3)); 5142 if (ie2) return e3; 5143 if (ee2) { 5144 if (te2) for (d3 = C2.call(n3.ownerDocument); n3.firstChild; ) d3.appendChild(n3.firstChild); 5145 else d3 = n3; 5146 return (B2.shadowroot || B2.shadowrootmode) && (d3 = T2.call(a2, d3, true)), d3; 5147 } 5148 let u3 = J2 ? n3.outerHTML : n3.innerHTML;
5149 return J2 && F2["!doctype"] && n3.ownerDocument && n3.ownerDocument.doctype && n3.ownerDocument.doctype.name && ai(Ai, n3.ownerDocument.doctype.name) && (u3 = "<!DOCTYPE " + n3.ownerDocument.doctype.name + ">\n" + u3), X2 && qr([S2, D2, A2], (e4) => { 5150 u3 = ei(u3, e4, " "); 5151 }), y2 && oe2 ? y2.createHTML(u3) : u3; 5152 }, o2.setConfig = function() { 5153 Te2(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}), Z2 = true; 5154 }, o2.clearConfig = function() { 5155 Ne2 = null, Z2 = false; 5156 }, o2.isValidAttribute = function(e3, t3, o3) { 5157 Ne2 || Te2({}); 5158 const n3 = we2(e3), a3 = we2(t3); 5159 return He2(n3, a3, o3); 5160 }, o2.addHook = function(e3, t3) { 5161 "function" == typeof t3 && (P2[e3] = P2[e3] || [], Yr(P2[e3], t3)); 5162 }, o2.removeHook = function(e3) { 5163 if (P2[e3]) return Xr(P2[e3]); 5164 }, o2.removeHooks = function(e3) { 5165 P2[e3] && (P2[e3] = []); 5166 }, o2.removeAllHooks = function() { 5167 P2 = {}; 5168 }, o2; 5169 }(), Hi = "dangerousHtml-module__base_9322_-4VRd"; 5170 c(""); 5171 var Vi = ["cc-app-component", "cc-htmx-app-component", "cc-breadcrumb-component", "cc-detail-list-component", "cc-double-scrollbar-container-component", "cc-event-bus-component", "cc-faq-component", "cc-image-gallery-component", "cc-map-component", "cc-show-more-container-component", "cc-tab-container-component", "cc-table-component", "cc-tooltip-component", "tooltip-component", "cc-word-explanation-component", "cc-scroll-to-link-target-component", "cc-assets-loader-component"], Gi = function(t2, o2) { 5172 var n2; 5173 return null === (n2 = t2.current) || void 0 === n2 ? void 0 : n2.getRefs().map(function(t3, n3) { 5174 var a2, r2, i2, l2, c2, d2 = null === (a2 = t3.current) || void 0 === a2 ? void 0 : a2.getValue(); 5175 return "Input" == (null === (r2 = t3.current) || void 0 === r2 ? void 0 : r2.type) && "date" === (null === (i2 = t3.current.getNativeRef().current) || void 0 === i2 ? void 0 : i2.type) && (d2 = new Date(d2).toLocaleDateString()), e.jsxs("div", u({ className: "".concat(o2, "-body-field ").concat(kn["group-body-field"]) }, { children: [e.jsx("label", u({ id: "".concat(o2, "-body-field-label-").concat(n3), className: "".concat(o2, "-body-field-label") }, { children: null === (c2 = null === (l2 = t3.current) || void 0 === l2 ? void 0 : l2.getLabel) || void 0 === c2 ? void 0 : c2.call(l2) })), e.jsx("div", u({ tabIndex: 0, "aria-labelledby": "".concat(o2, "-body-field-label-").concat(n3), className: "".concat(o2, "-body-field-value ").concat(kn["group-body-field-value"]) }, { children: d2 }))] }), n3); 5176 }); 5177 }, Ui = t.createContext({ locale: "nb", defaultLocale: "nb", texts: {} }), Ki = function() { 5178 var e2 = t.useContext(Ui), o2 = e2.locale, n2 = e2.texts, a2 = e2.defaultLocale, r2 = t.useCallback(function(e3, t2) { 5179 var r3, i2, l2, c2, d2 = null !== (c2 = null !== (i2 = null === (r3 = null == n2 ? void 0 : n2[o2]) || void 0 === r3 ? void 0 : r3[e3]) && void 0 !== i2 ? i2 : null === (l2 = null == n2 ? void 0 : n2[a2]) || void 0 === l2 ? void 0 : l2[e3]) && void 0 !== c2 ? c2 : ""; 5180 for (var s2 in t2) d2 = d2.replaceAll("{{" + s2 + "}}", String(t2[s2])); 5181 return d2; 5182 }, [a2, o2, n2]); 5183 return r2; 5184 }; 5185 function Wi(t2) { 5186 var o2 = _(t2, []); 5187 return e.jsxs("div", u({ className: "".concat(h, "-feedback") }, { children: [e.jsx("h2", { children: o2.translations.textHeader }), !o2.formSubmited && e.jsxs("div", u({ className: "".concat(h, "-feedback-button-container") }, { children: [e.jsx(Q, { text: o2.translations.textYes, onClick: function() { 5188 o2.buttonPressed("yes"); 5189 }, className: "".concat(h, "-feedback-button-yes") }), e.jsx(Q, { text: o2.translations.textNo, onClick: function() { 5190 o2.buttonPressed("no"); 5191 }, className: "".concat(h, "-feedback-button-no") })] })), o2.formSubmited && e.jsx("h3", u({ className: "".concat(h, "-feedback-feedback") }, { children: o2.translations.textFeedbackResult }))] })); 5192 } 5193 function Qi(t2) { 5194 var o2 = _(t2, []); 5195 return e.jsxs("div", u({ className: "il-feedback-form tilbakemelding" }, { children: [e.jsx("span", u({ role: "heading", "aria-level": 2, className: "fantDuLabel il-feedback-form-heading" }, { children: o2.translations.textHeader })), !o2.formSubmited && e.jsxs("ul", u({ className: "fantDuDetDuLetteEtter il-feedback-form-options" }, { children: [e.jsx("li", u({ id: "fant1", className: "il-feedback-form-option" }, { children: e.jsx("button", u({ type: "button", id: "tilbakeJa", name: "tilbakemelding", className: "il-feedback-form-button il-feedback-form-button--yes", onClick: function() { 5196 o2.buttonPressed("yes"); 5197 } }, { children: o2.translations.textYes })) })), e.jsx("li", u({ id: "fant0", className: "il-feedback-form-option" }, { children: e.jsx("button", u({ type: "button", id: "tilbakeNei", name: "tilbakemelding", className: "il-feedback-form-button il-feedback-form-button--no", onClick: function() { 5198 o2.buttonPressed("no"); 5199 } }, { children: o2.translations.textNo })) }))] })), o2.formSubmited && e.jsx("div", u({ className: "kviteringMelding" }, { children: o2.translations.textFeedbackResult }))] })); 5200 } 5201 c("iframe[title=reCAPTCHA]{margin-bottom:10px;margin-top:10px}.bc-feedback .bc-feedback-feedback{margin-top:1rem}.bc-modal-feedback .bc-content-modal-header{padding:1rem}.bc-modal-feedback .bc-content-modal-header h1{margin:0}.bc-modal-feedback .bc-content-modal .feedback-modal-description{background-color:#f3f3f3;font-weight:700;margin-top:1rem;padding:10px}"); 5202 var qi, Xi = function(o2) { 5203 var n2 = i.default.useRef(null); 5204 return t.useEffect(function() { 5205 n2.current && setTimeout(function() { 5206 !function(e2, t2) { 5207 var o3; 5208 void 0 === t2 && (t2 = "first"); 5209 var n3 = null === (o3 = e2.current) || void 0 === o3 ? void 0 : o3.querySelectorAll("input:checked"); 5210 (null == n3 ? void 0 : n3.length) && ("number" == typeof t2 && (t2 = Math.min(Math.max(0, t2), n3.length - 1)), "last" === t2 && (t2 = n3.length - 1), "first" === t2 && (t2 = 0), n3[t2].focus()); 5211 }(n2); 5212 }, 100); 5213 }, [n2]), e.jsx("div", u({ ref: n2, onKeyDown: function(e2) { 5214 "Enter" === e2.key && e2.preventDefault(); 5215 } }, { children: e.jsx(H.Block, { children: e.jsxs(ao, u({ onSubmit: o2.handleSubmit, onChange: o2.handleChange, ref: o2.formRef }, { children: [e.jsx(H.Content.Row, { children: e.jsxs(eo, u({ name: "status", id: "yesNoRadio", direction: "vertical", labelText: o2.translations.textStatusRadioLabel, uuLabelText: o2.translations.textUUStatusRadioLabel }, { children: [e.jsx(zt, { labelText: o2.translations.textYes, variant: "inset", value: "yes", id: "radioYes", default: "yes" == o2.status }), e.jsx(zt, { labelText: o2.translations.textNo, variant: "inset", value: "no", id: "radioNo", default: "no" == o2.status })] })) }), o2.displayCommentField && e.jsxs(e.Fragment, { children: [e.jsx(H.Content.Row, { children: e.jsx("p", u({ className: "feedback-modal-description" }, { children: "yes" === o2.status ? o2.translations.textPositiveCommentDescription : o2.translations.textNegativeCommentDescription })) }), e.jsx(H.Content.Row, { children: e.jsx(so, { name: "comment", labelText: o2.translations.textCommentLabel, notRequiredText: o2.translations.textOptional }) })] }), o2.displayEmailField && e.jsx(H.Content.Row, { children: e.jsx(At, { name: "mail", type: "email", labelText: o2.translations.textMailLabel, subLabelText: o2.translations.textMailSubLabel, notRequiredText: o2.translations.textOptional, formValidation: { isMail: { data: true, errorMessage: o2.translations.textIsMailErrorMessage } } }) }), o2.reCAPTCHAVersion && o2.siteKey && e.jsx(H.Content.Row, { children: e.jsx(Eo, { className: "".concat(h, "-content-mail-form-reCAPTCHA"), id: o2.id + "-captcha", siteKey: o2.siteKey, version: o2.reCAPTCHAVersion, textUncheckedError: o2.translations.textRecaptchaErrorMessage, name: "token" }) })] })) }) })); 5216 }; 5217 function Yi(o2) { 5218 var n2 = _(o2, []), a2 = t.createRef(), r2 = t.useState(false), i2 = r2[0], l2 = r2[1], c2 = t.useCallback(function(e2, t2) { 5219 var o3; 5220 n2.setStatus(t2.status), i2 && (null === (o3 = a2.current) || void 0 === o3 || o3.validate()); 5221 }, [a2, n2, i2]), d2 = function() { 5222 var e2; 5223 if (l2(true), null === (e2 = a2.current) || void 0 === e2 ? void 0 : e2.validate()) { 5224 var t2 = a2.current.getValues(); 5225 t2.mail || (t2.mail = ""), t2.comment || (t2.comment = ""), n2.onSubmit(t2); 5226 } 5227 }; 5228 return e.jsx(no, u({ className: "".concat(h, "-modal-feedback"), show: n2.display, onClose: n2.onClose, title: n2.translations.textModalTitle, closable: true, size: "medium", variant: "confirmation", renderFooter: function() { 5229 return e.jsxs(e.Fragment, { children: [e.jsx(Q, { loading: n2.loading, className: "".concat(h, "-content-mail-form-send-btn"), type: "button", onClick: function() { 5230 d2(); 5231 }, text: n2.loading ? n2.translations.textButtonSendLoading : n2.translations.textButtonSend }), e.jsx(Q, { className: "".concat(h, "-content-mail-form-cancel-btn"), status: "secondary", text: n2.translations.textButtonCancel, onClick: n2.onClose })] }); 5232 }, ariaLabel: n2.translations.textAriaLabel }, { children: e.jsx(Xi, { id: n2.id, displayEmailField: !!n2.displayEmailField, displayCommentField: !!n2.displayCommentField, reCAPTCHAVersion: n2.reCAPTCHAVersion, siteKey: n2.siteKey, status: n2.status, handleChange: c2, translations: n2.translations, handleSubmit: d2, formRef: a2 }) })); 5233 } 5234 function Ji(t2) { 5235 var o2 = _(t2, []); 5236 return e.jsx(no, u({ className: "".concat(h, "-modal-feedback-receipt"), id: o2.id, show: o2.display, onClose: o2.onClose, title: o2.translations.textModalTitle, size: "small", closable: true, closeText: o2.translations.textButtonClose }, { children: e.jsx(Nn, u({ show: true, variant: o2.success ? "success" : "danger" }, { children: o2.translations.textFeedbackResult })) })); 5237 } 5238 exports3.SearchFilterType = void 0, (qi = exports3.SearchFilterType || (exports3.SearchFilterType = {}))[qi.None = 0] = "None", qi[qi.TextBox = 1] = "TextBox", qi[qi.Boolean = 2] = "Boolean", qi[qi.NumberPicker = 3] = "NumberPicker", qi[qi.DatePicker = 4] = "DatePicker", qi[qi.DropDownList = 5] = "DropDownList", qi[qi.RadioButtonList = 6] = "RadioButtonList", qi[qi.CheckBoxList = 7] = "CheckBoxList", qi[qi.Geolocation = 8] = "Geolocation", qi[qi.Button = 9] = "Button"; 5239 var Zi = {}; 5240 c(".bc-filter-collapsible .bc-content-collapsible-content>*{padding-top:1rem}"); 5241 var $i = function(t2) { 5242 var o2 = t2.legendText, n2 = void 0 === o2 ? "" : o2, a2 = t2.cssGroup, r2 = void 0 === a2 ? "" : a2, i2 = t2.id, l2 = t2.className, c2 = _(t2, ["legendText", "cssGroup", "id", "className"]); 5243 if (!c2.children) return null; 5244 var d2 = ["".concat(h, "-content-form-fieldset"), "".concat(h, "-content-form-fieldset--").concat(r2), l2]; 5245 return e.jsxs("fieldset", u({ id: i2 ? "".concat(h, "-content-form-fieldset-").concat(i2) : void 0, className: d2.join(" ") }, { children: ["" !== n2 && e.jsx("legend", u({ id: i2 ? "".concat(h, "-content-form-legend-").concat(i2) : void 0, className: "".concat(h, "-content-form-legend") }, { children: e.jsx("span", u({ id: i2 ? "".concat(h, "-content-form-legend-text-").concat(i2) : void 0, className: "".concat(h, "-content-form-legend-text") }, { children: n2 })) })), c2.children] })); 5246 }, el = { legend: "formElementLegend-module__legend_9322_Xzbsw", text: "formElementLegend-module__text_9322_4R0Qo", button: "formElementLegend-module__button_9322_d1x9R" }; 5247 c('.formElementLegend-module__legend_9322_Xzbsw{align-items:center;border-bottom:1px solid #d3d3d3;display:flex;gap:1rem;justify-content:space-between;padding:1rem 0;position:relative;width:100%}.formElementLegend-module__legend_9322_Xzbsw .formElementLegend-module__text_9322_4R0Qo{align-items:center;cursor:pointer;display:flex;z-index:1}.formElementLegend-module__legend_9322_Xzbsw .formElementLegend-module__button_9322_d1x9R{appearance:none;background:#0000;border:0;border-radius:0;cursor:pointer}.formElementLegend-module__legend_9322_Xzbsw .formElementLegend-module__button_9322_d1x9R:after{content:"";inset:0;position:absolute}'); 5248 var tl = function(t2) { 5249 var o2 = t2.title, n2 = t2.onClick, a2 = t2.buttonLabel, r2 = null != a2 ? a2 : "Vis hjelpetekst for ".concat(o2); 5250 return e.jsx(Q, u({ type: "button", onClick: n2, appearance: "icon", "aria-label": r2, htmlTitle: r2, className: "".concat(h, "-filter-button-helptext") }, { children: e.jsx(q, { icon: "ri-question-line" }) })); 5251 }, ol = function(t2) { 5252 var o2 = t2.text, n2 = t2.className, a2 = t2.onClickModalHelp, r2 = t2.toggleCollapsible, i2 = t2.open, l2 = t2.ariaControl
5252sId, c2 = t2.openText, d2 = t2.closeText, s2 = t2.textId; 5253 return e.jsxs("legend", u({ className: [el.legend, n2].join(" ") }, { children: [e.jsxs("div", u({ className: el.text }, { children: [e.jsx("div", u({ id: s2, onClick: function(e2) { 5254 e2.stopPropagation(), null == r2 || r2(); 5255 } }, { children: o2 })), a2 && e.jsx(tl, { title: o2, onClick: function(e2) { 5256 null == e2 || e2.stopPropagation(), null == a2 || a2(); 5257 } })] })), r2 && e.jsx("button", u({ type: "button", className: el.button, "aria-controls": l2, "aria-expanded": i2 ? "true" : "false", "aria-label": (i2 ? d2 : c2) + " " + o2, onClick: function(e2) { 5258 e2.stopPropagation(), null == r2 || r2(); 5259 } }, { children: i2 ? e.jsx(q, { icon: "ri-arrow-up-s-line" }) : e.jsx(q, { icon: "ri-arrow-down-s-line" }) }))] })); 5260 }, nl = function(t2) { 5261 var o2, n2 = ["collapsible", t2.labelId].join("-"), a2 = [n2, "wrapper"].join("-"); 5262 return e.jsx(En, u({ defaultOpen: null === (o2 = t2.searchFilter.isOpen) || void 0 === o2 || o2, mobileDefaultOpen: false, id: a2 }, { children: e.jsxs($i, u({ cssGroup: t2.searchFilter.identifier, className: Zi.fieldset }, { children: [e.jsx(En.Header, { children: function(o3, a3) { 5263 return e.jsx(ol, { textId: t2.labelId, className: "".concat(h, "-filter-legend"), closeText: t2.closeText, openText: t2.openText, ariaControlsId: n2, text: t2.searchFilter.name, onClickModalHelp: t2.searchFilter.helpHtml && "" !== t2.searchFilter.helpHtml ? t2.onClickModalHelp : void 0, open: o3, toggleCollapsible: function() { 5264 return a3(!o3); 5265 } }); 5266 } }), e.jsx(En.Body, u({ softHide: true, id: n2 }, { children: t2.children }))] })) })); 5267 }, al = t.createContext(void 0), rl = function() { 5268 var e2 = t.useContext(al); 5269 if (!e2) throw new Error("useGeolocationContext must be used within GeolocationProvider"); 5270 return [e2.available, e2.location, e2.setLocation, e2.askForLocation, e2.resetLocation]; 5271 }, il = t.forwardRef(function(o2, n2) { 5272 var a2 = o2.apiKey, r2 = o2.apiOptions, i2 = void 0 === r2 ? {} : r2, l2 = o2.autocompletionRequest, c2 = void 0 === l2 ? {} : l2, d2 = o2.minLengthAutocomplete, s2 = void 0 === d2 ? 0 : d2, b2 = o2.onLoadFailed, h2 = void 0 === b2 ? console.error : b2, f2 = o2.name, g2 = o2.id, v2 = o2.className, x2 = o2.label, y2 = o2.placeholderText, k2 = o2.searchText, w2 = o2.clearButtonTitle, N2 = o2.labelledBy, C2 = rl(), j2 = C2[1], T2 = C2[2], P2 = C2[4], S2 = t.useState(), D2 = S2[0], A2 = S2[1], E2 = t.useState(), R2 = E2[0], I2 = E2[1], M2 = t.useRef(null), z2 = t.useRef(false), L2 = t.useRef(j2); 5273 t.useEffect(function() { 5274 var e2; 5275 if (L2.current = j2, D2 && D2.geocode) { 5276 if (0 === j2.lat && 0 === j2.lng && "function" == typeof (null === (e2 = M2.current) || void 0 === e2 ? void 0 : e2.setValue)) return z2.current = true, void M2.current.setValue(""); 5277 var t2 = D2.geocode({ location: j2 }); 5278 t2 && t2.then(function(e3) { 5279 var t3; 5280 e3.results[0] && "function" == typeof (null === (t3 = M2.current) || void 0 === t3 ? void 0 : t3.setValue) && (z2.current = true, M2.current.setValue(e3.results[0].formatted_address)); 5281 }); 5282 } 5283 }, [D2, j2]); 5284 var F2 = t.useCallback(function() { 5285 var e2, t2; 5286 return [null !== (t2 = null === (e2 = M2.current) || void 0 === e2 ? void 0 : e2.getValue()) && void 0 !== t2 ? t2 : "", L2.current]; 5287 }, []), O2 = function(e2) { 5288 var t2; 5289 "function" == typeof (null === (t2 = M2.current) || void 0 === t2 ? void 0 : t2.setValue) && (z2.current = true, M2.current.setValue(e2)); 5290 }; 5291 t.useImperativeHandle(n2, function() { 5292 return { getName: function() { 5293 return f2; 5294 }, getValue: F2, setValue: O2, type: "Places", focus: function() { 5295 var e2, t2; 5296 return null === (t2 = null === (e2 = M2.current) || void 0 === e2 ? void 0 : e2.focus) || void 0 === t2 ? void 0 : t2.call(e2); 5297 }, getNativeRef: function() { 5298 var e2; 5299 return null === (e2 = M2.current) || void 0 === e2 ? void 0 : e2.getNativeRef(); 5300 }, getLabel: function() { 5301 return x2; 5302 }, reset: function() { 5303 return P2(); 5304 } }; 5305 }, [F2, x2, f2, P2]), t.useEffect(function() { 5306 a2 && m(void 0, void 0, void 0, function() { 5307 var e2; 5308 return p(this, function(t2) { 5309 switch (t2.label) { 5310 case 0: 5311 return t2.trys.push([0, 3, , 4]), !a2 || window.google && window.google.maps && window.google.maps.places && window.google.maps.Geocoder ? [3, 2] : [4, new tr(u({ apiKey: a2 }, u({ libraries: ["places"] }, i2))).load()]; 5312 case 1: 5313 t2.sent(), function() { 5314 if (!window.google) throw new Error("[Places]: Google script not loaded"); 5315 if (!window.google.maps) throw new Error("[Places]: Google maps script not loaded"); 5316 if (!window.google.maps.places) throw new Error("[Places]: Google maps places script not loaded"); 5317 if (!window.google.maps.Geocoder) throw new Error("[Places]: Google maps geocoder script not loaded"); 5318 A2(new window.google.maps.Geocoder()), I2(new window.google.maps.places.AutocompleteService()); 5319 }(), t2.label = 2; 5320 case 2: 5321 return [3, 4]; 5322 case 3: 5323 return e2 = t2.sent(), h2(e2), [3, 4]; 5324 case 4: 5325 return [2]; 5326 } 5327 }); 5328 }); 5329 }, [a2, i2, h2]); 5330 var B2 = [g2, f2, "places"].filter(function(e2) { 5331 return !!e2; 5332 }).join("-"); 5333 return e.jsx(br, { ref: M2, id: B2, labelText: x2, className: v2, placeholderText: y2, onSelect: function(e2) { 5334 return function(e3) { 5335 if ("" !== e3 && D2 && D2.geocode) { 5336 var t2 = D2.geocode({ placeId: e3 }); 5337 t2 && t2.then(function(e4) { 5338 var t3, o3; 5339 e4.results[0] && "function" == typeof (null === (t3 = M2.current) || void 0 === t3 ? void 0 : t3.setValue) && (L2.current = { lat: e4.results[0].geometry.location.lat(), lng: e4.results[0].geometry.location.lng() }, T2(L2.current), z2.current = true, null === (o3 = M2.current) || void 0 === o3 || o3.setValue(e4.results[0].formatted_address)); 5340 }); 5341 } 5342 }(e2.place_id); 5343 }, onChange: function(e2, t2) { 5344 z2.current || "" === e2 || (null == t2 || t2.preventDefault(), null == t2 || t2.stopPropagation()), z2.current = false;
5345 }, onCleared: function() { 5346 L2.current && (L2.current = { lat: 0, lng: 0 }), P2(); 5347 }, fetchSuggestionData: function(e2) { 5348 return m(void 0, void 0, void 0, function() { 5349 var t2, o3; 5350 return p(this, function(n3) { 5351 return R2 ? e2.length < s2 ? [2, []] : (t2 = u({}, c2), o3 = null == R2 ? void 0 : R2.getPlacePredictions(function(e3, t3, o4) { 5352 var n4 = e3.location, a3 = e3.radius, r3 = _(e3, ["location", "radius"]), i3 = u({ input: t3 }, r3); 5353 return n4 && (i3.locationBias = new google.maps.Circle({ center: n4, radius: null != a3 ? a3 : 5e4 })), i3; 5354 }(t2, e2), function(e3) { 5355 return e3; 5356 }), o3 ? [2, o3.then(function(e3) { 5357 return e3.predictions.map(function(e4) { 5358 return u(u({}, e4), { link: e4.place_id, text: e4.description }); 5359 }); 5360 })] : [2, []]) : [2, []]; 5361 }); 5362 }); 5363 }, searchText: k2, clearButtonTitle: w2, labelledBy: N2 }); 5364 }), ll = { base: "geolocation-module__base_9322_tgj-w", input: "geolocation-module__input_9322_pdfYa", button: "geolocation-module__button_9322_3Msqc", buttonIcon: "geolocation-module__buttonIcon_9322_qibwH", alert: "geolocation-module__alert_9322_EyP6q" }; 5365 c(".geolocation-module__base_9322_tgj-w .geolocation-module__input_9322_pdfYa>*{margin-bottom:1rem}.geolocation-module__base_9322_tgj-w .geolocation-module__button_9322_3Msqc{border-radius:4px;margin-bottom:1rem;padding:1rem}.geolocation-module__base_9322_tgj-w .geolocation-module__button_9322_3Msqc .geolocation-module__buttonIcon_9322_qibwH{margin-right:1rem}.geolocation-module__base_9322_tgj-w .geolocation-module__alert_9322_EyP6q{margin-bottom:1rem}"); 5366 var cl = t.forwardRef(function(o2, n2) { 5367 var a2 = o2.buttonText, r2 = o2.errorText, i2 = o2.radiuses, l2 = o2.name, c2 = o2.className, d2 = o2.id, s2 = o2.inputLabel, _2 = o2.placeholderText, m2 = o2.apiKey, p2 = o2.searchText, b2 = o2.country, h2 = void 0 === b2 ? "no" : b2, f2 = o2.locationBias, g2 = o2.radius, v2 = o2.clearButtonTitle, x2 = o2.labelledBy, y2 = o2.showMyPositionButton, k2 = o2.showAddressTextbox, w2 = rl(), N2 = w2[0], C2 = w2[1], j2 = w2[3], T2 = t.useRef(null), P2 = t.useRef(null), S2 = t.useRef(null), D2 = [ll.base], A2 = t.useRef(null), E2 = t.useRef(false); 5368 c2 && D2.push(c2); 5369 var R2 = function() { 5370 var e2, t2, o3, n3, a3, r3, i3, l3, c3, d3, s3, u2, _3 = null !== (t2 = null === (e2 = T2.current) || void 0 === e2 ? void 0 : e2.getValue()) && void 0 !== t2 ? t2 : "", m3 = null !== (n3 = null === (o3 = S2.current) || void 0 === o3 ? void 0 : o3.getValue()) && void 0 !== n3 ? n3 : [void 0, void 0], p3 = (null === (a3 = A2.current) || void 0 === a3 ? void 0 : a3.value) ? I2(A2.current.value) : void 0, b3 = null !== (l3 = null !== (i3 = null === (r3 = m3[1]) || void 0 === r3 ? void 0 : r3.lat.toString()) && void 0 !== i3 ? i3 : null == p3 ? void 0 : p3.lat.toString()) && void 0 !== l3 ? l3 : "", h3 = null !== (s3 = null !== (d3 = null === (c3 = m3[1]) || void 0 === c3 ? void 0 : c3.lng.toString()) && void 0 !== d3 ? d3 : null == p3 ? void 0 : p3.lng.toString()) && void 0 !== s3 ? s3 : "", f3 = null !== (u2 = m3[0]) && void 0 !== u2 ? u2 : ""; 5371 return "".concat(b3, ";").concat(h3, ";").concat(_3, ";").concat(f3); 5372 }, I2 = function(e2) { 5373 try { 5374 var t2 = JSON.parse(e2); 5375 if (null == t2) return; 5376 if ("lat" in t2 && "lng" in t2) return t2; 5377 } catch (e3) { 5378 } 5379 }, M2 = function() { 5380 S2.current && S2.current.focus && S2.current.focus(); 5381 }, z2 = t.useCallback(function() { 5382 T2.current && T2.current.reset && T2.current.reset(), S2.current && S2.current.reset && S2.current.reset(), A2.current && (A2.current.value = ""); 5383 }, []); 5384 t.useEffect(function() { 5385 A2.current && E2.current && (L2(JSON.stringify(C2)), E2.current = false); 5386 }, [C2]); 5387 var L2 = function(e2) { 5388 var t2, o3; 5389 if (A2.current) { 5390 var n3 = null === (t2 = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) || void 0 === t2 ? void 0 : t2.set; 5391 null == n3 || n3.call(A2.current, e2); 5392 var a3 = new Event("input", { bubbles: true }); 5393 null === (o3 = A2.current) || void 0 === o3 || o3.dispatchEvent(a3); 5394 } 5395 }; 5396 t.useImperativeHandle(n2, function() { 5397 return { setValue: {}, getValue: R2, getName: function() { 5398 return l2; 5399 }, getLabel: function() { 5400 return s2; 5401 }, validate: function() { 5402 return false;
5403 }, getNativeRef: function() { 5404 return P2; 5405 }, focus: M2, type: "Geolocation", reset: z2 }; 5406 }); 5407 var F2 = "Geolocation-".concat(St(5), "-").concat(null != d2 ? d2 : ""); 5408 return e.jsxs("div", u({ id: F2, className: D2.join(" ") }, { children: [k2 && e.jsx("div", u({ className: ll.input }, { children: e.jsx(il, { apiKey: m2, label: s2, placeholderText: _2, name: l2, autocompletionRequest: { componentRestrictions: { country: h2 }, location: f2, radius: g2 }, id: F2, ref: S2, searchText: p2, clearButtonTitle: v2, labelledBy: x2 }) })), y2 && e.jsxs(e.Fragment, { children: [!k2 && e.jsx("input", { type: "text", ref: A2, name: "".concat(l2, "-hidden"), style: { display: "none" } }), e.jsxs(Q, u({ className: ll.button, ref: P2, type: "button", onClick: function() { 5409 E2.current = true, j2(); 5410 } }, { children: [e.jsx(q, { className: ll.buttonIcon, icon: "ri-map-pin-line" }), a2] })), !N2 && e.jsx(Nn, u({ className: ll.alert, variant: "warning" }, { children: r2 }))] }), e.jsx(eo, u({ className: ll.radiogroup, ref: T2, name: l2 }, { children: null == i2 ? void 0 : i2.map(function(t2) { 5411 return e.jsx(zt, u({ className: ll.radio }, t2), t2.value); 5412 }) }))] })); 5413 }), dl = t.forwardRef(function(o2, n2) { 5414 var a2 = o2.coords, r2 = _(o2, ["coords"]), i2 = t.useState(true), l2 = i2[0], c2 = i2[1], d2 = t.useState(function() { 5415 return null != a2 ? a2 : { lat: 0, lng: 0 }; 5416 }), s2 = d2[0], m2 = d2[1], p2 = function(e2) { 5417 return { lat: e2.coords.latitude, lng: e2.coords.longitude }; 5418 }, b2 = t.useCallback(function() { 5419 navigator.permissions && navigator.permissions.query || c2(false), navigator.permissions.query({ name: "geolocation" }).then(function(e2) { 5420 "granted" === e2.state || "prompt" === e2.state ? navigator.geolocation.getCurrentPosition(function(e3) { 5421 c2(true), m2(p2(e3)); 5422 }) : c2(false), e2.onchange = function() { 5423 "granted" === e2.state ? (c2(true), navigator.geolocation.getCurrentPosition(function(e3) { 5424 m2(p2(e3)); 5425 })) : c2(false); 5426 }; 5427 }).catch(function() { 5428 c2(false); 5429 }); 5430 }, []), h2 = t.useCallback(function() { 5431 return m2({ lat: 0, lng: 0 }); 5432 }, []); 5433 return e.jsx(al.Provider, u({ value: { askForLocation: b2, available: l2, location: s2, setLocation: m2, resetLocation: h2 } }, { children: e.jsx(cl, u({}, r2, { ref: n2 })) })); 5434 }); 5435 function sl(t2, o2, n2, a2, r2, i2, l2) { 5436 var c2 = [], d2 = "".concat(t2.identifier, "-").concat(St(5)); 5437 switch (t2.type) { 5438 case exports3.SearchFilterType.NumberPicker: 5439 case exports3.SearchFilterType.TextBox: 5440 c2.push(function(t3, o3, n3, a3, r3, i3) { 5441 var l3 = o3.texts, c3 = { id: t3, className: o3.identifier, name: o3.identifier, type: function(e2) { 5442 switch (e2) { 5443 case exports3.SearchFilterType.NumberPicker: 5444 return "number"; 5445 case exports3.SearchFilterType.DatePicker: 5446 return "date"; 5447 case exports3.SearchFilterType.TextBox: 5448 default: 5449 return "text"; 5450 } 5451 }(n3), value: o3.value, defaultValue: o3.defaultValue, notRequiredText: "", placeholderText: o3.placeHolder, clearButtonTitle: null == l3 ? void 0 : l3.clearButtonTitle, labelledBy: t3 + "-label" }; 5452 return e.jsx(nl, u({ labelId: t3 + "-label", searchFilter: o3, onClickModalHelp: a3, closeText: i3, openText: r3 }, { children: e.jsx(At, u({}, c3), o3.identifier) })); 5453 }(d2, t2, t2.type, o2, null == n2 ? void 0 : n2.open, null == n2 ? void 0 : n2.close)); 5454 break; 5455 case exports3.SearchFilterType.Boolean: 5456 c2.push(function(t3, o3, n3, a3, r3) { 5457 var i3 = { id: t3, name: o3.name, text: o3.name, value: o3.identifier, checked: "true" === o3.value.toLowerCase() }; 5458 return e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: n3, closeText: r3, openText: a3 }, { children: e.jsx(So, u({ id: t3 ? "".concat(t3, "-checkboxgroup") : void 0, className: o3.identifier, name: o3.identifier }, { children: e.jsx(lo, u({ status: "primary" }, i3, { text: o3.name })) }), o3.identifier) })); 5459 }(d2, t2, o2, null == n2 ? void 0 : n2.open, null == n2 ? void 0 : n2.close)); 5460 break; 5461 case exports3.SearchFilterType.DatePicker: 5462 t2.fields && t2.fields.length > 0 ? c2.push(function(t3, o3, n3, a3, r3, i3, l3) { 5463 var c3 = o3.fields.find(function(e2) { 5464 return "FromDate" === e2.identifier; 5465 }), d3 = o3.fields.find(function(e2) { 5466 return "ToDate" === e2.identifier; 5467 }), s2 = o3.fields.filter(function(e2) { 5468 return e2.type === exports3.SearchFilterType.Boolean; 5469 }), _2 = { id: t3, className: o3.identifier, name: o3.identifier, labelText: null == c3 ? void 0 : c3.description, labelEndText: null == d3 ? void 0 : d3.description, defaultStartDate: (null == c3 ? void 0 : c3.defaultValue) && "" !== (null == c3 ? void 0 : c3.defaultValue) ? Y(c3.defaultValue) : void 0, startDate: (null == c3 ? void 0 : c3.value) && "" !== (null == c3 ? void 0 : c3.value) ? Y(c3.value) : void 0, defaultEndDate: (null == d3 ? void 0 : d3.defaultValue) && "" !== (null == d3 ? void 0 : d3.defaultValue) ? Y(d3.defaultValue) : void 0, endDate: (null == d3 ? void 0 : d3.value) && "" !== (null == d3 ? void 0 : d3.value) ? Y(d3.value) : void 0, datePickerStartProps: c3 ? { name: c3.identifier, headerText: c3.name, defaultMode: "DAYS" } : void 0, datePickerEndProps: d3 ? { name: d3.identifier, headerText: d3.name, defaultMode: "DAYS" } : void 0, options: s2.length > 0 ? s2 : void 0, checkedIdentifier: o3.value, texts: { closeButton: null != l3 ? l3 : "Ferdig", resetButton: null != i3 ? i3 : "Nullstill" } }; 5470 return (null == c3 ? void 0 : c3.description) && (null == c3 || c3.description), e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: n3, closeText: r3, openText: a3 }, { children: e.jsx(to, u({}, _2, { disableOnMobile: true, width: "AutoWidth" }), o3.identifier) })); 5471 }(d2, t2, o2, null == n2 ? void 0 : n2.open, null == n2 ? void 0 : n2.close, null == n2 ? void 0 : n2.reset, null == n2 ? void 0 : n2.done)) : c2.push(function(t3, o3, n3, a3, r3) { 5472 var i3 = { id: t3, className: o3.identifier, name: o3.identifier, date: o3.value, datePickerProps: { name: o3.identifier, headerText: o3.name, defaultMode: "DAYS" }, autoClose: true, labelledBy: t3 }; 5473 return e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: n3, closeText: r3, openText: a3 }, { children: e.jsx(mo, u({ disableOnMobile: true }, i3), o3.identifier) })); 5474 }(d2, t2, o2, null == n2 ? void 0 : n2.open, null == n2 ? void 0 : n2.close)); 5475 break; 5476 case exports3.SearchFilterType.DropDownList: 5477 c2.push(function(t3, o3, n3, a3, r3) { 5478 var i3 = o3.fields.map(function(t4, n4) { 5479 var a4 = { id: o3 + t4.identifier, value: t4.identifier, text: t4.n
5479ame, selected: "true" === t4.value.toLowerCase(), defaultSelected: "true" === t4.defaultValue.toLowerCase() }; 5480 return e.jsx(Co.Option, u({}, a4), n4); 5481 }); 5482 return e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: n3, closeText: r3, openText: a3 }, { children: e.jsx(Co, u({ id: t3, className: o3.identifier, name: o3.identifier, labelledBy: t3 }, { children: i3.map(function(e2) { 5483 return e2; 5484 }) }), o3.identifier) })); 5485 }(d2, t2, o2, null == n2 ? void 0 : n2.open, null == n2 ? void 0 : n2.close)); 5486 break; 5487 case exports3.SearchFilterType.RadioButtonList: 5488 c2.push(function(t3, o3, n3, a3, r3) { 5489 var i3, l3, c3 = o3.fields.map(function(t4, n4) { 5490 var a4 = o3.identifier + "-" + t4.identifier + "-" + n4, r4 = { id: a4, name: t4.name, labelText: t4.name, level: t4.level, value: t4.identifier, checked: o3.value === t4.identifier, default: o3.defaultValue === t4.identifier }; 5491 return e.jsx(zt, u({ status: "primary" }, r4), a4); 5492 }); 5493 return e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: r3, closeText: null == n3 ? void 0 : n3.close, openText: null == n3 ? void 0 : n3.open }, { children: e.jsx(eo, u({ id: t3, className: o3.identifier, name: o3.identifier, collapsibleProps: { title: "", withButton: true, openText: null !== (i3 = null == n3 ? void 0 : n3.showMore) && void 0 !== i3 ? i3 : "Vis flere", closeText: null !== (l3 = null == n3 ? void 0 : n3.showLess) && void 0 !== l3 ? l3 : "Vis færre", showChevron: true, contentPosition: "top", softHide: true, buttonVariant: "icon" }, maxItemCount: null != a3 ? a3 : 6 }, { children: c3.map(function(e2) { 5494 return e2; 5495 }) }), o3.identifier) })); 5496 }(d2, t2, n2, a2, o2)); 5497 break; 5498 case exports3.SearchFilterType.CheckBoxList: 5499 c2.push(function(t3, o3, n3, a3, r3) { 5500 var i3, l3, c3 = o3.fields.map(function(t4, n4) { 5501 var a4 = o3.identifier + "-" + t4.identifier + "-" + n4, r4 = { id: a4, text: t4.name, name: t4.name, level: t4.level, value: t4.identifier, checked: "true" === t4.value.toLowerCase() }; 5502 return e.jsx(lo, u({ status: "primary" }, r4), a4); 5503 }); 5504 return e.jsx(nl, u({ labelId: t3, searchFilter: o3, onClickModalHelp: r3, closeText: null == n3 ? void 0 : n3.close, openText: null == n3 ? void 0 : n3.open }, { children: e.jsx(So, u({ id: t3, className: o3.identifier, maxItemCount: null != a3 ? a3 : 6, collapsibleProps: { title: "", withButton: true, openText: null !== (i3 = null == n3 ? void 0 : n3.showMore) && void 0 !== i3 ? i3 : "Vis flere", closeText: null !== (l3 = null == n3 ? void 0 : n3.showLess) && void 0 !== l3 ? l3 : "Vis færre", softHide: true, showChevron: true, contentPosition: "top", buttonVariant: "icon" }, name: o3.identifier }, { children: c3 }), o3.identifier) })); 5505 }(d2, t2, n2, a2, o2)); 5506 break; 5507 case exports3.SearchFilterType.Geolocation: 5508 c2.push(function(t3) { 5509 var o3, n3, a3 = t3.id, r3 = t3.searchFilter, i3 = t3.onClickModalHelp, l3 = t3.apiKey, c3 = t3.country, d3 = t3.locationBias, s2 = t3.closeText, _2 = t3.openText, m2 = r3.texts, p2 = "", b2 = "", h2 = "", f2 = r3.value.split(";"), g2 = null === (o3 = r3.defaultValue) || void 0 === o3 ? void 0 : o3.split(";"); 5510 if (4 === (null == g2 ? void 0 : g2.length) && (b2 = g2[2]), 4 == f2.length) { 5511 p2 = f2[2]; 5512 var v2 = f2[0], x2 = f2[1], y2 = parseFloat(v2), k2 = parseFloat(x2); 5513 "" !== v2 && "" !== x2 && 0 !== y2 && 0 !== k2 && (n3 = { lat: y2, lng: k2 }), h2 = f2[3]; 5514 } 5515 var w2 = r3.fields.map(function(e2, t4) { 5516 return { id: r3.identifier + "-" + e2.identifier + "-" + t4, name: e2.name, labelText: e2.name, value: e2.identifier, checked: p2 === e2.identifier, default: b2 === e2.identifier }; 5517 }), N2 = { buttonText: null == m2 ? void 0 : m2.buttonText, errorText: null == m2 ? void 0 : m2.errorText, radiuses: w2, id: r3.identifier, name: r3.identifier, inputLabel: null == m2 ? void 0 : m2.inputLabel, placeholderText: null == m2 ? void 0 : m2.placeholderText, apiKey: l3, searchText: h2, country: c3, locationBias: d3, clearButtonTitle: null == m2 ? void 0 : m2.clearButtonTitle, labelledBy: a3, showMyPositionButton: !!r3.configuration.showMyPositionButton, showAddressTextbox: !!r3.configuration.showAddressTextbox }; 5518 return e.jsx(nl, u({ labelId: a3, searchFilter: r3, onClickModalHelp: i3, closeText: s2, openText: _2 }, { children: e.jsx(dl, u({}, N2, { coords: n3 })) })); 5519 }({ id: d2, searchFilter: t2, onClickModalHelp: o2, apiKey: r2, country: i2, locationBias: l2, closeText: null == n2 ? void 0 : n2.close, openText: null == n2 ? void 0 : n2.open })); 5520 } 5521 return c2; 5522 } 5523 var ul = { base: "filter-module__base_9322_BcPpA", resetButton: "filter-module__resetButton_9322_Xcyl1", "collapsible-panel-content-item": "filter-module__collapsible-panel-content-item_9322_bOmLK", modalFilter: "filter-module__modalFilter_9322_is2Wc", modalHeader: "filter-module__modalHeader_9322_Z82qU", modalFooter: "filter-module__modalFooter_9322_EcV2I", modalFooterResults: "filter-module__modalFooterResults_9322_UGj3X", modalFooterButtonsCol: "filter-module__modalFooterButtonsCol_9322_EOwV3", modalFooterButtonWrapper: "filter-module__modalFooterButtonWrapper_9322_BXn5Z", modalFooterButton: "filter-module__modalFooterButton_9322_v6KZL", collapsibleFilter: "filter-module__collapsibleFilter_9322_pvG6g" }; 5524 c('.filter-module__base_9322_BcPpA>form .bc-content-button{word-break:keep-all}.filter-module__base_9322_BcPpA>form .bc-filter-label{display:inline-block;margin-bottom:1rem}.filter-module__base_9322_BcPpA>form .bc-filter-label>button{margin-left:.25rem}.filter-module__base_9322_BcPpA>form fieldset{border:.0625rem solid #0000;border-radius:.1875rem;box-shadow:none;margin:0;padding:0;position:relative}.filter-module__base_9322_BcPpA>form fieldset .bc-radiogroup{padding-top:0}.filter-module__base_9322_BcPpA>form fieldset legend{font-weight:700}.filter-module__base_9322_BcPpA>form fieldset .bc-select-body{max-height:15rem;overflow:auto}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-legend{display:block;font-weight:700;left:0;padding-bottom:1rem;position:relative}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-legend+.filter-module__bc-content-form-control_9322_yqrVz{margin-top:0}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control{display:flex;position:relative}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-checkbox{overflow:visible}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio~.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio{margin-top:1rem}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio{-moz-appearance:none;appearance:none;line-height:1;opacity:0;position:absolute}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio .bc-content-radio-label span:before{margin-right:20px}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio:focus+label:before,.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio:hover+label:before{background-color:#fefefe;border-color:#0e3b6c}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio:checked+label:before{background-color:#fff;border-color:#0e3b6c}.filter-module__base_9322_BcPpA>form fieldset .bc-content-form-control.bc-content-radio .bc-content-form-radio:checked+label:after{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(0);transform:scale(1)}.filter-module__base_9322_BcPpA>form .filter-module__resetButton_9322_Xcyl1{margin-top:1rem}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel-content-item_9322_bOmLK{padding-top:1rem}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel-content-item_9322_bOmLK:first-child{padding-top:0}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content{overflow:visible;padding:0}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content{border:1px solid #000;padding:0 1rem 1rem;text-align:left}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content .bc-content-form .bc-content-form-column{margin:1rem 0 1rem .5rem;min-height:1px}@media only screen and (min-width:48.0625em){.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content .bc-content-form .bc-content-form-column{margin:0}}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content .bc-content-form .bc-content-form-column:after{clear:both;content:"";display:table}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content .bc-content-form .bc-content-form-column .bc-filter-button-helptext{margin-left:.5rem}.filter-module__base_9322_BcPpA>form .filter-module__collapsible-panel_9322_1qxA4 .filter-module__collapsible_9322_Rdbut .bc-content-collapsible-content .bc-collapsible-panel-content .bc-content-form .bc-content-form-column .bc-content-form-row{clear:both;margin:1rem 0}.filter-module__modalFilter_9322_is2Wc .filter-module__modalHeader_9322_Z82qU{align-items:center;column-gap:1rem;display:flex;flex-direction:row;justify-content:center}.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I{align-items:center;column-gap:1rem;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}@media only screen and (max-width:992px){.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I{column-gap:0}.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I>*{width:100%}}.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I .f
5524ilter-module__modalFooterResults_9322_UGj3X{margin-bottom:1rem;text-align:center}.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I .filter-module__modalFooterButtonsCol_9322_EOwV3 .filter-module__modalFooterButtonWrapper_9322_BXn5Z{margin-left:1rem}.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I .filter-module__modalFooterButtonsCol_9322_EOwV3 .filter-module__modalFooterButtonWrapper_9322_BXn5Z:last-child{margin-right:1rem}.filter-module__collapsibleFilter_9322_pvG6g>.bc-content-collapsible-header .bc-collapsible-button-container,.filter-module__modalFilter_9322_is2Wc .filter-module__modalFooter_9322_EcV2I .filter-module__modalFooterButtonsCol_9322_EOwV3 .filter-module__modalFooterButtonWrapper_9322_BXn5Z .filter-module__modalFooterButton_9322_v6KZL{width:100%}.filter-module__collapsibleFilter_9322_pvG6g>.bc-content-collapsible-header .bc-content-button{display:none}@media only screen and (max-width:768px){.filter-module__collapsibleFilter_9322_pvG6g>.bc-content-collapsible-header .bc-content-button{display:block;margin-bottom:16px;margin-top:16px;width:100%}}'); 5525 var _l, ml = t.forwardRef(function(o2, n2) { 5526 var a2 = o2.searchOptions, r2 = o2.onChange, i2 = o2.onClearFilter, l2 = o2.texts, c2 = o2.maxFieldsPerGroup, d2 = o2.displayEmptyFilterButton, s2 = void 0 === d2 || d2, _2 = o2.apikey, m2 = o2.className, p2 = void 0 === m2 ? "" : m2, b2 = o2.country, f2 = o2.locationBias, g2 = t.useState(), v2 = g2[0], x2 = g2[1], y2 = t.useReducer(function(e2) { 5527 return e2 + 1; 5528 }, 1), k2 = y2[0], w2 = y2[1], N2 = t.useRef(null), C2 = t.useMemo(function() { 5529 var e2 = []; 5530 return a2 && k2 && a2.searchFilters.forEach(function(t2) { 5531 if (t2.identifier !== a2.searchTermFilterIdentifier) { 5532 var o3 = sl(t2, function() { 5533 t2.helpTitle && t2.helpHtml && x2({ title: t2.helpTitle, html: t2.helpHtml }); 5534 }, l2, c2, _2, b2, f2); 5535 e2.push.apply(e2, o3); 5536 } 5537 }), e2; 5538 }, [a2, k2, l2, c2, _2, b2, f2]), j2 = function() { 5539 var e2; 5540 null === (e2 = N2.current) || void 0 === e2 || e2.reset(), i2(); 5541 }; 5542 return t.useImperativeHandle(n2, function() { 5543 return { getValues: function() { 5544 var e2; 5545 return null === (e2 = N2.current) || void 0 === e2 ? void 0 : e2.getValues(); 5546 }, reset: j2, update: function() { 5547 return w2(); 5548 } }; 5549 }), e.jsxs("div", u({ className: "".concat(h, "-content-filter ").concat(ul.base, " ").concat(p2) }, { children: [e.jsxs(ao, u({ onChange: r2, ref: N2, returnEmptyValues: true }, { children: [C2.map(function(t2, o3) { 5550 return e.jsx("div", u({ className: "".concat(h, "-collapsible-panel-content-item ").concat(ul["collapsible-panel-content-item"]) }, { children: t2 }), o3); 5551 }), s2 && e.jsx(Q, { onClick: j2, text: null == l2 ? void 0 : l2.emptyFilter, className: ["nullstill-sokefilter", ul.resetButton].join(" ") })] })), v2 && e.jsx(no, u({ title: v2.title, show: null != v2, onClose: function() { 5552 return x2(void 0); 5553 }, closable: true, size: "medium" }, { children: e.jsx(H.Content.Body, { children: e.jsx("div", { dangerouslySetInnerHTML: { __html: v2.html } }) }) }))] })); 5554 }), pl = function(o2) { 5555 var n2, a2, r2 = _(o2, []), i2 = t.useState(0), l2 = i2[0], c2 = i2[1], d2 = t.useState(0), s2 = d2[0], m2 = d2[1], p2 = t.useRef(null), b2 = t.useRef(null), f2 = function() { 5556 var e2 = l2 + 1 > t.Children.count(r2.children) - 1 ? 0 : l2 + 1; 5557 c2(e2), m2(e2 - 1); 5558 }, g2 = function() { 5559 var e2 = l2 - 1 < 0 ? t.Children.count(r2.children) - 1 : l2 - 1; 5560 c2(e2), m2(e2 + 1); 5561 }, v2 = function(e2) { 5562 "ArrowRight" === e2.key ? f2() : "ArrowLeft" === e2.key && g2(); 5563 }, x2 = ["".concat(h, "-carousel ").concat(Vo.base)]; 5564 return r2.className && x2.push(r2.className), r2.animation && x2.push(Vo["animation--" + r2.animation], "animation--" + r2.animation), r2.theme && x2.push(Vo["theme--" + r2.theme], "theme--" + r2.theme), x2.push(Vo["description-position--" + (null !== (n2 = null == r2 ? void 0 : r2.descriptionPosition) && void 0 !== n2 ? n2 : "over")], "description-position--" + (null !== (a2 = null == r2 ? void 0 : r2.descriptionPosition) && void 0 !== a2 ? a2 : "over")), e.jsx(Go.Provider, u({ value: { selected: l2, setSelected: c2, previousSelected: s2, setPreviousSelected: m2 } }, { children: e.jsx(Jo, u({ className: x2.join(" "), onIndicatorKeyDown: function(e2, t2) { 5565 v2(e2), " " !== e2.key && "Enter" !== e2.key || c2(t2); 5566 }, onKeyDownArrow: v2, refPreviousButton: p2, refNextButton: b2, nextSlide: f2, prevSlide: g2, translations: r2.translations }, { children: r2.children })) })); 5567 }, bl = Object.assign(pl, { displayName: "Carousel", Item: $o, Caption: Zo, Miniature: Uo }); 5568 exports3.VanillaEventBrokerEventNames = void 0, (_l = exports3.VanillaEventBrokerEventNames || (exports3.VanillaEventBrokerEventNames = {})).AddBreadcrumb = "add-breadcrumb-item", _l.RemoveBreadcrumb = "remove-breadcrumb-item", _l.ResetBreadcrumb = "reset-breadcrumb", _l.SetPageTitle = "set-page-title"; 5569 var hl = function() { 5570 function e2() { 5571 } 5572 return e2.dispatch = function(e3) { 5573 window.eventBus && window.eventBus.dispatch(e3.name, e3.args); 5574 }, e2; 5575 }(), fl = { base: "file-module__base_9322_9tISH", "button-container": "file-module__button-container_9322_clMvg", error: "file-module__error_9322_x-7z0", "--error": "file-module__--error_9322_vVjfw", "theme--dark": "file-module__theme--dark_9322_bWrNU" }; 5576 c(".file-module__base_9322_9tISH label{font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.file-module__base_9322_9tISH{padding-bottom:calc(1rem + 2px)}.file-module__base_9322_9tISH :focus-within{border-radius:3px;outline:1.5px solid #000}.file-module__base_9322_9tISH label{display:block;margin-bottom:1rem}.file-module__base_9322_9tISH label span{color:var(--bc-c-text-secondary);font-size:1rem;font-weight:400;margin-left:1rem}.file-module__base_9322_9tISH .file-module__button-container_9322_clMvg input[type=file]{margin-left:1rem}.file-module__base_9322_9tISH .file-module__button-container_9322_clMvg input[type=file]::-webkit-file-upload-button{display:none}.file-module__base_9322_9tISH .file-module__error_9322_x-7z0{color:var(--bc-danger-color-500);margin:0}.file-module__base_9322_9tISH.file-module__--error_9322_vVjfw{padding-bottom:0}.file-module__base_9322_9tISH.file-module__theme--dark_9322_bWrNU,.file-module__base_9322_9tISH.file-module__theme--dark_9322_bWrNU label{color:#fff}"); 5577 var gl = t.forwardRef(function(o2, n2) { 5578 var a2, r2, i2, l2, c2, d2 = o2.buttonText, s2 = void 0 === d2 ? "Last opp en fil" : d2, m2 = _(o2, ["buttonText"]), p2 = t.createRef(), b2 = t.useState(null), f2 = b2[0], g2 = b2[1], v2 = t.useRef(""), x2 = t.useState(""), y2 = x2[0], k2 = x2[1], w2 = function() { 5579 return v2.current; 5580 }, N2 = function() { 5581 return m2.name; 5582 }, C2 = function() { 5583 return m2.labelText; 5584 }, j2 = function() { 5585 (null == p2 ? void 0 : p2.current) && p2.current.focus(); 5586 }, T2 = function() { 5587 var e2, t2; 5588 k2(""); 5589 var o3 = _e(f2, null !== (e2 = m2.formValidation) && void 0 !== e2 ? e2 : {}); 5590 return !(!o3 || !o3.error) && (k2(null !== (t2 = o3.error) && void 0 !== t2 ? t2 : ""), o3.error); 5591 }, P2 = function() { 5592 return p2; 5593 }, S2 = function() { 5594 return f2; 5595 }; 5596 t.useImperativeHandle(n2, function() { 5597 return { setValue: {}, getValue: w2, getName: N2, getLabel: C2, validate: T2, getNativeRef: P2, type: "File", focus: j2, getFileList: S2 }; 5598 }), c2 = (null === (r2 = null === (a2 = m2.formValidation) || void 0 === a2 ? void 0 : a2.required) || void 0 === r2 ? void 0 : r2.data) ? null !== (i2 = m2.requiredText) && void 0 !== i2 ? i2 : "(påkrevd)" : null !== (l2 = m2.notRequiredText) && void 0 !== l2 ? l2 : ""; 5599 var D2 = ["".concat(h, "-file-upload ").concat(fl.base)], A2 = m2.id ? "".concat(m2.id, "-upload") : "generic-upload"; 5600 return y2 && D2.push("".concat(h, "-file-upload--error ").concat(fl["--error"])), m2.theme && D2.push("".concat(h, "-file-upload--theme-").concat(m2.theme, " ").concat(fl["theme--".concat(m2.theme)])), m2.className && D2.push(m2.className), e.jsxs("div", u({ className: D2.join(" "), id: m2.id }, { children: [m2.labelText && e.jsxs("label", u({ htmlFor: A2 }, { children: [m2.labelText, e.jsx("span", { children: c2 })] })), e.jsxs("div", u({ className: "".concat(h, "-file-upload-button-container ").concat(fl["button-container"]) }, { children: [e.jsxs("span", u({ onClick: function() { 5601 p2.current && p2.current.click(); 5602 } }, { children: [!m2.renderUploadButton && e.jsx(Q, { type: "button", text: null != s2 ? s2 : "Last opp" }), m2.renderUploadButton && m2.renderUploadButton()] })), e.jsx("input", { id: A2 + "-file", onChange: function(e2) { 5603 g2(e2.target.files), v2.current = e2.target.value; 5604 }, multiple: m2.multipleFiles, ref: p2, type: "file", "aria-describedby": y2 ? A2 + "-error" : void 0, "aria-invalid": "" != y2 })] })), "" !== y2 && e.jsx("p", u({ className: "".concat(h, "-file-upload-error ").concat(fl.error), id: A2 + "-error" }, { children: y2 }))] })); 5605 }), vl = { base: "formErrorSummary-module__base_9322_QmCQQ" }; 5606 c(".formErrorSummary-module__base_9322_QmCQQ button{background-color:initial;border:none;color:var(--bc-danger-color-500);cursor:pointer;display:block;margin:.5rem 0;outline:none;padding:0;text-align:left;text-decoration:underline}.formErrorSummary-module__base_9322_QmCQQ button:focus{outline:1px solid #000}"); 5607 var xl = t.forwardRef(function(o2, n2) { 5608 var a2 = t.createRef(), r2 = t.useState([]), i2 = r2[0], l2 = r2[1], c2 = function(e2) { 5609 var t2, n3, a3, r3 = null === (n3 = null === (t2 = o2.formRef) || void 0 === t2 ? void 0 : t2.current) || void 0 === n3 ? void 0 : n3.getRefs(); 5610 if (e2 && (r3 = null === (a3 = e2.current) || void 0 === a3 ? void 0 : a3.getRefs()), r3) { 5611 var i3 = []; 5612 r3.forEach(function(e3) { 5613 e3 && e3.current && e3.current.validate && i3.push({ msg: e3.current.validate(), ref: e3 }); 5614 }), l2(i3); 5615 } 5616 }; 5617 t.useImperativeHandle(n2, function() { 5618 return { update: c2, focus: function() { 5619 var e2; 5620 a2.current && (null === (e2 = a2.current) || void 0 === e2 || e2.focus()); 5621 }, hasErrors: i2.some(function(e2) { 5622 return e2.msg; 5623 }) }; 5624 }); 5625 var d2 = ["".concat(h, "-form-error-summary ").concat(vl.base)]; 5626 return o2.theme && d2.push("".concat(h, "-content-textarea--theme-").concat(o2.theme, " ").concat(vl["theme--" + o2.theme])), o2.className && d2.push(o2.className), e.jsx("div", u({ className: d2.join(" "), role: "alert", id: o2.id }, { children: i2.filter(function(e2) { 5627 return e2.msg; 5628 }).map(function(t2, n3) { 5629 var r3, i3, l3, c3, d3, s2; 5630 return t2.msg ? e.jsxs("button", u({ type: "button", ref: n3 ? void 0 : a2, autoFocus: !n3, onClick: function() { 5631 var e2, o3, n4; 5632 null === (n4 = null === (o3 = null === (e2 = t2.ref) || void 0 === e2 ? void 0 : e2.current) || void 0 === o3 ? void 0 : o3.focus) || void 0 === n4 || n4.call(o3); 5633 } }, { children: [o2.includeLabels && (null === (l3 = null === (i3 = null === (r3 = t2.ref) || void 0 === r3 ? void 0 : r3.current) || void 0 === i3 ? void 0 : i3.getLabel) || void 0 === l3 ? void 0 : l3.call(i3)) + " - ", t2.msg] }), n3 + (null !== (s2 = null === (d3 = null === (c3 = t2.ref.current) || void 0 === c3 ? void 0 : c3.getName) || void 0 === d3 ? void 0 : d3.call(c3)) && void 0 !== s2 ? s2 : t2.msg)) : null; 5634 }) })); 5635 }); 5636 c(".bc-content-table-wrapper{overflow:auto}.bc-content-table{border:.0625rem solid #ccc;border-collapse:collapse}.bc-content-table caption{margin-bottom:1rem}.bc-content-table--normal.bc-content-table--fixed{table-layout:fixed}.bc-content-table--normal thead tr,.bc-content-table--normal thead tr:nth-child(2n){background-color:var(--bc-background-color);color:var(--bc-c-text-primary)}.bc-content-table--normal thead th{border:.0625rem solid #291111;font-weight:400;padding:1rem;text-align:left}.bc-content-table--normal thead th.bc-content-table-cell--left{text-align:left}.bc-content-table--normal thead th.bc-content-table-cell--center{text-align:center}.bc-content-table--normal thead th.bc-content-table-cell--right{text-align:right}.bc-content-table--normal tbody tr{background-color:#fff;color:var(--bc-c-text-primary)}.bc-content-table--normal tbody tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--normal tbody td{border:.0625rem solid #ccc;padding:1rem}.bc-content-table--normal tbody td.bc-content-table-cell--left{text-align:left}.bc-content-table--normal tbody td.bc-content-table-cell--center{text-align:center}.bc-content-table--normal tbody td.bc-content-table-cell--right{text-align:right}.bc-content-table--stackable{width:100%}.bc-content-table--stackable thead{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bc-content-table--stackable tr{background-color:#fff;border-top:.0625rem solid #ccc;color:var(--bc-c-text-primary);display:block}.bc-content-table--stackable tr:first-child{border-top:none}.bc-content-table--stackable tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--stackable td{border:none;display:block;padding:1rem;text-align:left}.bc-content-table--stackable td:before{content:attr(data-label);display:block;font-weight:700}.bc-content-table--full-width{width:100%}@media only screen and (max-width:48em){.bc-content-table--mobile-normal thead tr,.bc-content-table--mobile-normal thead tr:nth-child(2n){background-color:var(--bc-background-color);color:var(--bc-c-text-primary)}.bc-content-table--mobile-normal thead th{border:.0625rem solid #291111;font-weight:400;padding:1rem;text-align:left}.bc-content-table--mobile-normal thead th.bc-content-table-cell--left{text-align:left}.bc-content-table--mobile-normal thead th.bc-content-table-cell--center{text-align:center}.bc-content-table--mobile-normal thead th.bc-content-table-cell--right{text-align:right}.bc-content-table--mobile-normal tbody tr{background-color:#fff;color:var(--bc-c-text-primary)}.bc-content-table--mobile-normal tbody tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--mobile-normal tbody td{border:.0625rem solid #ccc;padding:1rem}.bc-content-table--mobile-normal tbody td.bc-content-table-cell--left{text-align:left}.bc-content-table--mobile-normal tbody td.bc-content-table-cell--center{text-align:center}.bc-content-table--mobile-normal tbody td.bc-content-table-cell--right{text-align:right}.bc-content-table--mobile-normal.bc-content-table--mobile-fixed{table-layout:fixed}.bc-content-table--mobile-stackable{width:100%}.bc-content-table--mobile-stackable thead{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bc-content-table--mobile-stackable tr{background-color:#fff;border-top:.0625rem solid #ccc;color:var(--bc-c-text-primary);display:block}.bc-content-table--mobile-stackable tr:first-child{border-top:none}.bc-content-table--mobile-stackable tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--mobile-stackable td{border:none;display:block;padding:1rem;text-align:left}.bc-content-table--mobile-stackable td:before{content:attr(data-label);display:block;font-weight:700}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-content-table--tablet-normal thead tr,.bc-content-table--tablet-normal thead tr:nth-child(2n){background-color:var(--bc-background-color);color:var(--bc-c-text-primary)}.bc-content-table--tablet-normal thead th{border:.0625rem solid #291111;font-weight:400;padding:1rem;text-align:left}.bc-content-table--tablet-normal thead th.bc-content
5636-table-cell--left{text-align:left}.bc-content-table--tablet-normal thead th.bc-content-table-cell--center{text-align:center}.bc-content-table--tablet-normal thead th.bc-content-table-cell--right{text-align:right}.bc-content-table--tablet-normal tbody tr{background-color:#fff;color:var(--bc-c-text-primary)}.bc-content-table--tablet-normal tbody tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--tablet-normal tbody td{border:.0625rem solid #ccc;padding:1rem}.bc-content-table--tablet-normal tbody td.bc-content-table-cell--left{text-align:left}.bc-content-table--tablet-normal tbody td.bc-content-table-cell--center{text-align:center}.bc-content-table--tablet-normal tbody td.bc-content-table-cell--right{text-align:right}.bc-content-table--tablet-normal.bc-content-table--tablet-fixed{table-layout:fixed}.bc-content-table--tablet-stackable{width:100%}.bc-content-table--tablet-stackable thead{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bc-content-table--tablet-stackable tr{background-color:#fff;border-top:.0625rem solid #ccc;color:var(--bc-c-text-primary);display:block}.bc-content-table--tablet-stackable tr:first-child{border-top:none}.bc-content-table--tablet-stackable tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--tablet-stackable td{border:none;display:block;padding:1rem;text-align:left}.bc-content-table--tablet-stackable td:before{content:attr(data-label);display:block;font-weight:700}}@media only screen and (min-width:62.0625em){.bc-content-table--desktop-normal thead tr,.bc-content-table--desktop-normal thead tr:nth-child(2n){background-color:var(--bc-background-color);color:var(--bc-c-text-primary)}.bc-content-table--desktop-normal thead th{border:.0625rem solid #291111;font-weight:400;padding:1rem;text-align:left}.bc-content-table--desktop-normal thead th.bc-content-table-cell--left{text-align:left}.bc-content-table--desktop-normal thead th.bc-content-table-cell--center{text-align:center}.bc-content-table--desktop-normal thead th.bc-content-table-cell--right{text-align:right}.bc-content-table--desktop-normal tbody tr{background-color:#fff;color:var(--bc-c-text-primary)}.bc-content-table--desktop-normal tbody tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--desktop-normal tbody td{border:.0625rem solid #ccc;padding:1rem}.bc-content-table--desktop-normal tbody td.bc-content-table-cell--left{text-align:left}.bc-content-table--desktop-normal tbody td.bc-content-table-cell--center{text-align:center}.bc-content-table--desktop-normal tbody td.bc-content-table-cell--right{text-align:right}.bc-content-table--desktop-normal.bc-content-table--desktop-fixed{table-layout:fixed}.bc-content-table--desktop-stackable{width:100%}.bc-content-table--desktop-stackable thead{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bc-content-table--desktop-stackable tr{background-color:#fff;border-top:.0625rem solid #ccc;color:var(--bc-c-text-primary);display:block}.bc-content-table--desktop-stackable tr:first-child{border-top:none}.bc-content-table--desktop-stackable tr:nth-child(2n){background-color:#dedede;color:var(--bc-c-text-primary)}.bc-content-table--desktop-stackable td{border:none;display:block;padding:1rem;text-align:left}.bc-content-table--desktop-stackable td:before{content:attr(data-label);display:block;font-weight:700}}.bc-content-table-upper-scrollbar{overflow:auto}.bc-content-table-upper-scrollbar-content{height:1px;overflow:none}.bc-width-full .bc-content-table{width:100%}@media only screen and (max-width:48em){.bc-width-mobile-full .bc-content-table{width:100%}}@media only screen and (min-width:48.0625em) and (max-width:62em){.bc-width-tablet-full .bc-content-table{width:100%}}@media only screen and (min-width:62.0625em){.bc-width-desktop-full .bc-content-table{width:100%}}"); 5637 c(".bc-content-mail-form-send-btn{margin:0;width:150px}.bc-content-mail-form-cancel-btn{margin:0 20px;width:150px}@media only screen and (max-width:48em){.bc-content-mail-form-reCAPTCHA{width:100%}}.bc-content-mail-form-all-fields-required-text{color:var(--bc-c-text-secondary)}.bc-content-mail-form-error{color:red}#MailFormTest-captcha-container{margin-top:20px}.bc-content-mail-form-error{margin-top:10px}"); 5638 c(".bc-pagination-stats{margin:0;padding:1rem 0}.bc-pagination-stats-list{margin:0;padding:0}.bc-pagination-stats-list-item{display:block;margin:0;padding:0}
5638@media only screen and (min-width:48.0625em){.bc-pagination-stats-list-item{display:inline}}.bc-pagination-stats-metrics{font-weight:700}.bc-pagination-stats--centered{text-align:center}"); 5639 var yl = function(t2) { 5640 var o2 = t2.totalItemCount, n2 = void 0 === o2 ? 10 : o2, a2 = t2.itemsPerPage, r2 = void 0 === a2 ? n2 : a2, i2 = t2.pageNumber, l2 = void 0 === i2 ? 1 : i2, c2 = t2.showingTranslation, d2 = void 0 === c2 ? "Showing" : c2, s2 = t2.ofTranslation, m2 = void 0 === s2 ? "of" : s2, p2 = t2.objectsTranslation, b2 = void 0 === p2 ? "personer" : p2, f2 = t2.pageTranslation, g2 = void 0 === f2 ? "page" : f2, v2 = _(t2, ["totalItemCount", "itemsPerPage", "pageNumber", "showingTranslation", "ofTranslation", "objectsTranslation", "pageTranslation"]), x2 = n2 > 0 ? 1 + r2 * (l2 - 1) : 0, y2 = r2 * l2 > n2 ? n2 : r2 * l2, k2 = Math.max(Math.ceil(n2 / r2), 1), w2 = v2.fullTranslation; 5641 return v2.fullTranslation && (w2 = null == (w2 = null == (w2 = null == (w2 = null == w2 ? void 0 : w2.replace("{totalItemCount}", "<span className={`${cssClassPrefix}-pagination-stats-metrics`}>" + n2.toString() + "</span>")) ? void 0 : w2.replace("{pageNumber}", "<span className={`${cssClassPrefix}-pagination-stats-metrics`}>" + l2.toString() + "</span>")) ? void 0 : w2.replace("{numberOfPages}", "<span className={`${cssClassPrefix}-pagination-stats-metrics`}>" + k2.toString() + "</span>")) ? void 0 : w2.replace("{from}-{to}", "<span className={`${cssClassPrefix}-pagination-stats-metrics`}>" + +x2 + "-" + y2 + "</span>")), e.jsx("div", u({ className: Xt.getClassName("pagination-stats", v2) }, { children: e.jsx("div", u({ className: "".concat(h, "-pagination-stats-list") }, { children: e.jsxs("div", u({ "aria-live": "polite", className: "".concat(h, "-pagination-stats-list-item") }, { children: [!v2.fullTranslation && e.jsxs(e.Fragment, { children: [d2, e.jsxs("span", u({ className: "".concat(h, "-pagination-stats-metrics") }, { children: [" " + x2, "-", y2] })), " " + m2, e.jsx("span", u({ className: "".concat(h, "-pagination-stats-metrics") }, { children: " " + n2 })), " " + b2 + ",", " " + g2, e.jsx("span", u({ className: "".concat(h, "-pagination-stats-metrics") }, { children: " " + l2 })), " " + m2, e.jsx("span", u({ className: "".concat(h, "-pagination-stats-metrics") }, { children: " " + k2 }))] }), v2.fullTranslation && w2 && e.jsx(e.Fragment, { children: e.jsx("div", { dangerouslySetInnerHTML: { __html: w2 } }) })] })) })) })); 5642 }; 5643 function kl(t2) { 5644 var o2 = ["".concat(h, "-pagination-count-selector")];
5645 return e.jsx(ao, u({ onChange: t2.onChange, className: "".concat(h, "-pagination-count-selector-container") }, { children: e.jsxs(Co, u({ id: t2.id ? t2.id : "pagination_result_count", labelText: t2.labelText, className: o2.join(" "), name: "count" }, { children: [e.jsx(bo, { value: 10, text: "10", selected: 10 === t2.defaultPageSize || !t2.defaultPageSize }), e.jsx(bo, { value: 25, text: "25", selected: 25 === t2.defaultPageSize }), e.jsx(bo, { value: 50, text: "50", selected: 50 === t2.defaultPageSize }), e.jsx(bo, { value: 75, text: "75", selected: 75 === t2.defaultPageSize }), e.jsx(bo, { value: 100, text: "100", selected: 100 === t2.defaultPageSize })] })) })); 5646 } 5647 c(".bc-pagination-count-selector{width:fit-content}.bc-pagination-count-selector .form{width:100%}.bc-pagination-count-selector label{padding:1rem 0 0}"); 5648 c('.bc-pagination-selector fieldset legend{display:block;font-size:var(--bc-input-font-size);font-weight:700;margin-left:0;margin-right:0}.bc-pagination-selector fieldset label{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.bc-pagination{margin:0}.bc-pagination-selector{width:100%}.bc-pagination-selector fieldset{align-items:center;border:none;column-gap:.4rem;display:flex;flex-direction:row;padding:0;width:100%}.bc-pagination-selector fieldset div{flex-grow:0;flex-shrink:1}.bc-pagination-selector fieldset div:nth-child(3){flex-grow:1;flex-shrink:0}.bc-pagination-selector fieldset .bc-content-button{height:3.75rem;margin-top:.6rem}.bc-pagination--centered{text-align:center}.bc-pagination-list{display:flex;flex-wrap:wrap;margin:0;padding:0}.bc-pagination-list-item{margin-left:0;margin-right:.5rem;padding:0}.bc-pagination-item,.bc-pagination-list-item{align-items:center;display:flex}.bc-pagination-item--link{background-color:var(--bc-background-color);border:var(--bc-input-border-width) solid var(--bc-c-border-input);border-radius:0;color:var(--bc-c-text-primary);display:flex;height:3.75rem;justify-content:center;margin:0;min-width:3.75rem;padding:0 1rem;text-align:center;transition:color .1s ease-in-out,background-color .1s ease-in-out;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.bc-pagination-item--link:focus,.bc-pagination-item--link:hover{background-color:var(--bc-c-action-primary-hover);border-color:var(--bc-c-action-primary-hover);color:var(--bc-c-action-primary-foreground-hover)}.bc-pagination-item--link[aria-current=true]{background-color:var(--bc-c-action-primary);border-color:var(--bc-c-action-primary);color:var(--bc-c-action-primary-foreground)}
5648.bc-pagination-item--link[rel=next]:after,.bc-pagination-item--link[rel=prev]:before{display:inline-block}button.bc-pagination-item--link{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}a.bc-pagination-item--link{text-decoration:none}.bc-pagination-item-text{display:inline-block;font-weight:700;line-height:normal;vertical-align:middle}@media only screen and (max-width:320px){.bc-pagination-list-item[data-val-gte~="1"]{display:none!important}}@media only screen and (max-width:480px){.bc-pagination-list-item[data-val-gte~="2"]{display:none!important}}.bc-page-select-label{text-transform:capitalize}'); 5649 var wl = function(t2) { 5650 var o2 = t2.defaultPageNumber, n2 = void 0 === o2 ? 1 : o2, a2 = t2.currentPage, r2 = void 0 === a2 ? 1 : a2, i2 = t2.pagesToShow, l2 = void 0 === i2 ? n2 : i2, c2 = t2.numberOfPages, d2 = void 0 === c2 ? n2 : c2, s2 = t2.goToFirstPageTranslation, m2 = void 0 === s2 ? "Goto first page" : s2, p2 = t2.goToPreviousPageTranslation, b2 = void 0 === p2 ? "Goto previous page" : p2, f2 = t2.goToNextPageTranslation, g2 = void 0 === f2 ? "Goto next page" : f2, v2 = t2.goToLastPageTranslation, x2 = void 0 === v2 ? "Goto last page" : v2, y2 = t2.goToPageTranslation, k2 = void 0 === y2 ? "Goto page" : y2, w2 = t2.currentPageTranslation, N2 = void 0 === w2 ? "Current page, page" : w2, C2 = t2.onPageChange, j2 = void 0 === C2 ? void 0 : C2, T2 = t2.navLabelTranslation, P2 = void 0 === T2 ? "pagination" : T2, S2 = _(t2, ["defaultPageNumber", "currentPage", "pagesToShow", "numberOfPages", "goToFirstPageTranslation", "goToPreviousPageTranslation", "goToNextPageTranslation", "goToLastPageTranslation", "goToPageTranslation", "currentPageTranslation", "onPageChange", "navLabelTranslation"]); 5651 if (S2.pagesToShowOnMobile && window.innerWidth < 768 && (l2 = S2.pagesToShowOnMobile), l2 = l2 > d2 ? d2 : l2, n2 = n2 <= d2 ? n2 : 1, S2.selector) { 5652 for (var D2 = [], A2 = 0; A2 < d2; A2++) D2.push(e.jsx(bo, { value: A2 + 1, text: (A2 + 1).toString(), selected: r2 === A2 + 1 }, A2)); 5653 return e.jsx(ao, u({ className: "".concat(h, "-pagination-selector"), onChange: function(e2, t3) { 5654 var o3; 5655 j2 && j2(null !== (o3 = t3["page-selector"]) && void 0 !== o3 ? o3 : 1); 5656 } }, { children: e.jsxs($i, { children: [e.jsx("legend", { children: S2.pageTranslation }), e.jsxs("div", { children: [e.jsx(ko, u({ className: "visually-hidden" }, { children: b2 })), e.jsx(Q, u({ type: "button", status: "secondary", disabled: 1 === r2, onClick: function() { 5657 j2 && r2 > 1 && j2(r2 - 1); 5658 }, className: "".concat(h, "-pagination-selector-button ").concat(h, "-pagination-selector-button--previous") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--2-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "‹" })) }))] }), e.jsxs("div", { children: [e.jsx(ko, u({ htmlFor: S2.id, className: "".concat(h, "-page-select-label visually-hidden") }, { children: S2.pageTranslation })), e.jsx(Co, u({ id: S2.id, name: "page-selector" }, { children: D2 }))] }), e.jsxs("div", { children: [e.jsx(ko, u({ className: "visually-hidden" }, { children: g2 })), e.jsx(Q, u({ type: "button", status: "secondary", disabled: r2 === d2, onClick: function() { 5659 j2 && r2 < d2 && j2(r2 + 1); 5660 }, className: "".concat(h, "-pagination-selector-button ").concat(h, "-pagination-selector-button--next") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--2-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "›" })) }))] })] }) })); 5661 } 5662 var E2 = []; 5663 1 !== r2 && E2.push(e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--3") : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("button", u({ type: "button", id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-item--link--3") : void 0, onClick: function() { 5664 j2 && j2(1); 5665 }, "aria-label": m2, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--link") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--3-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "«" })) })) }), "Pagination--3"), e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--2") : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("button", u({ type: "button", id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-item--link--2") : void 0, onClick: function() { 5666 j2 && r2 > 1 && j2(r2 - 1); 5667 }, "aria-label": b2, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--link") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--2-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "‹" })) })) }), "Pagination--2")); 5668 var R2 = Math.floor(l2 / 2), I2 = r2 - R2; 5669 I2 > 1 && l2 < d2 && E2.push(e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--1") : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--1--ellipsis") : void 0, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--ellipsis") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item--1-text") : void 0, className: "".concat(h, "-pagination-item-text") }, { children: "..." })) })) }), "Pagination--1")); 5670 var M2 = r2, z2 = r2, L2 = z2 < d2, F2 = r2 - R2 > 0 ? r2 - R2 : 1; 5671 for (A2 = 1; A2 < l2; A2++) M2 > 1 && (M2 > F2 || z2 === d2) ? M2-- : L2 && z2++; 5672 for (var O2 = function(t3) { 5673 var o3 = "".concat(t3 === r2 ? N2 : k2) + " " + t3; 5674 E2.push(e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(t3) : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("button", u({ type: "button", disabled: r2 === t3, id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-item--link-").concat(t3) : void 0, onClick: j2 ? function() { 5675 return j2(t3); 5676 } : void 0, "aria-current": t3 === r2, "aria-label": o3, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--link") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2, "-text") : void 0, className: "".concat(h, "-pagination-item-text") }, { children: t3 })) })) }), "Pagination-" + t3)); 5677 }, B2 = M2; B2 <= z2; B2++) O2(B2); 5678 var H2 = l2 % 2 == 0; 5679 return r2 + R2 + (I2 < 0 ? Math.abs(I2) : 0) + (H2 ? -1 : 0) < d2 && l2 < d2 && E2.push(e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 1) : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 1, "--ellipsis") : void 0, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--ellipsis") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 1, "-text") : void 0, className: "".concat(h, "-pagination-item-text") }, { children: "..." })) })) }), "Pagination-" + d2 + 1)), r2 !== d2 && E2.push(e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 2) : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("button", u({ type: "button", id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-item--link-").concat(d2 + 2) : void 0, onClick: function() { 5680 j2 && r2 < d2 && j2(r2 + 1); 5681 }, "aria-label": g2, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--link") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 2, "
5681-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "›" })) })) }), "Pagination-" + d2 + 2), e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 3) : void 0, className: "".concat(h, "-pagination-list-item") }, { children: e.jsx("button", u({ type: "button", id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-item--link-").concat(d2 + 3) : void 0, onClick: function() { 5682 j2 && r2 < d2 && j2(d2); 5683 }, "aria-label": x2, className: "".concat(h, "-pagination-item ").concat(h, "-pagination-item--link") }, { children: e.jsx("span", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list-item-").concat(d2 + 3, "-text") : void 0, "aria-hidden": "true", className: "".concat(h, "-pagination-item-text") }, { children: "»" })) })) }), "Pagination-" + d2 + 3)), e.jsx("nav", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id) : void 0, "aria-label": P2, className: Xt.getClassName("pagination", S2) }, { children: e.jsx("div", u({ id: S2.id ? "".concat(h, "-pagination-").concat(S2.id, "-list") : void 0, className: "".concat(h, "-pagination-list") }, { children: E2 })) })); 5684 }; 5685 c(".bc-pagination-composit{display:flex;width:100%}.bc-pagination-composit.bc-pagination-composit-selector--active{width:100%}.bc-pagination-composit.bc-pagination-composit-selector--active .bc-pagination-composit-selector-container{flex:1;margin-bottom:.75rem;margin-right:.75rem}.bc-pagination-composit.bc-pagination-composit-selector--active .bc-pagination-composit-count-container{align-self:flex-end;display:flex;flex-direction:column;justify-self:end}.bc-pagination-composit.stats-disabled .bc-pagination{margin-top:calc(3rem + 2px)}.bc-pagination-composit .bc-pagination{margin-bottom:.75rem}@media only screen and (max-width:48em){.bc-pagination-composit{display:block}}.bc-pagination-composit .bc-pagination-composit-selector-container{flex-grow:1}@media only screen and (max-width:48em){.bc-pagination-composit .bc-pagination-composit-selector-container{width:100%}}.bc-pagination-composit .bc-pagination-count-selector-container{margin-bottom:.75rem}@media only screen and (max-width:48em){.bc-pagination-composit .bc-pagination-count-selector-container{width:100%}}.bc-pagination-composit .bc-pagination-composit-count-container{align-self:flex-end}.bc-pagination-composit .bc-page-select-label{padding-top:0}.bc-pagination-composit .bc-pagination-stats{width:fit-content}.bc-pagination-composit .bc-pagination-count-selector label{padding-top:0}@media only screen and (max-width:48em){.bc-pagination-composit .bc-pagination-count-selector{width:100%}}.bc-pagination-composit.hidden-selector-label .bc-pagination-composit-count-container label{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}"); 5686 var Nl = t.forwardRef(function(o2, n2) { 5687 var a2 = _(o2, []), r2 = t.useState(a2.defaultPageNumber), i2 = r2[0], l2 = r2[1], c2 = t.useState(a2.defaultPageSize), d2 = c2[0], s2 = c2[1]; 5688 t.useEffect(function() { 5689 s2(a2.defaultPageSize); 5690 }, [a2.defaultPageSize]); 5691 var m2 = function(e2) { 5692 l2(e2); 5693 }; 5694 t.useImperativeHandle(n2, function() { 5695 return { reset: m2 }; 5696 }); 5697 var p2 = ["".concat(h, "-pagination-composit")]; 5698 return a2.disableStats && p2.push("stats-disabled"), a2.selector && p2.push("".concat(h, "-pagination-composit-selector--active")), a2.hiddenCountSelectorLabel && p2.push("hidden-selector-label"), e.jsxs("div", u({ className: p2.join(" ") }, { children: [e.jsxs("div", u({ className: "".concat(h, "-pagination-composit-selector-container") }, { children: [!a2.disableStats && e.jsx(yl, { totalItemCount: a2.totalItemCount, pageNumber: i2, itemsPerPage: d2, showingTranslation: a2.translations.textShowing, ofTranslation: a2.translations.textOf, objectsTranslation: a2.translations.textItem, pageTranslation: a2.translations.textPage, fullTranslation: a2.translations.textStatsFull }
5698), e.jsx(wl, { defaultPageNumber: a2.defaultPageNumber, currentPage: i2, numberOfPages: Math.max(Math.ceil(a2.totalItemCount / d2), 1), pagesToShow: a2.pagesToShow, pagesToShowOnMobile: a2.pagesToShowOnMobile, onPageChange: function(e2) { 5699 e2 !== i2 && (l2(e2), a2.onPageChange && a2.onPageChange(e2)); 5700 }, currentPageTranslation: a2.translations.textCurrentPage, goToFirstPageTranslation: a2.translations.textGoToFirstPage, goToLastPageTranslation: a2.translations.textGoToLastPage, goToNextPageTranslation: a2.translations.textGoToNextPage, goToPreviousPageTranslation: a2.translations.textGoToPreviousPage, pageTranslation: a2.translations.textPage, goToPageTranslation: a2.translations.textGoToPage, selector: a2.selector, navLabelTranslation: a2.translations.textNavLabel })] })), e.jsx("div", u({ className: "".concat(h, "-pagination-composit-count-container") }, { children: e.jsx(kl, { id: "pagination-count-button", onChange: function(e2, t2) { 5701 var o3 = t2.count, n3 = parseInt(o3), r3 = Math.max(Math.ceil((i2 - 1) * d2 / n3), 1); 5702 l2(r3), s2(n3), a2.countSelectorOnChange && a2.countSelectorOnChange(n3); 5703 }, defaultPageSize: d2, labelText: a2.translations.textCountSelectorLabel, labelledBy: "pagination-count-button-label" }) }))] })); 5704 }), Cl = function(t2) { 5705 var o2 = _(t2, []); 5706 return e.jsx("div", u({ className: Xt.getClassName("content-list-item", o2) }, { children: e.jsx("div", u({ className: Xt.getClassName("content-list-item-body", o2) }, { children: o2.renderItem(o2.item, o2.index) })) })); 5707 }; 5708 c(".bc-content-list{margin:0;padding:0}.bc-content-list-item{display:block}.bc-content-list-item .bc-content-teaser-title{font-size:1.375rem}"); 5709 var jl = function(t2) { 5710 var o2 = _(t2, []); 5711 return e.jsx("div", u({ className: Xt.getClassName("content-detail-list-header-column", o2) }, { children: e.jsx("div", u({ className: Xt.getClassName("content-detail-list-header-column-title") }, { children: e.jsx("span", u({ className: Xt.getClassName("content-detail-list-header-column-title-text") }, { children: o2.title })) })) })); 5712 }, Tl = function(t2) { 5713 var o2 = _(t2, []); 5714 return e.jsxs("div", u({ className: Xt.getClassName("content-detail-list-header", o2) }, { children: [o2.primaryColumn && e.jsx(jl, u({ _isPrimary: true }, o2.primaryColumn)), o2.secondaryColumns && o2.secondaryColumns.map(function(t3, o3) { 5715 return e.jsx(jl, u({}, t3), o3); 5716 }), o2.children] })); 5717 }; 5718 c('@charset "UTF-8";.bc-content-detail-list .bc-content-detail-list-header{align-items:flex-start;border-color:var(--bc-c-border-input);border-style:solid;border-width:0 0 .125rem;display:flex;flex-direction:row;justify-content:space-between;padding:1rem}.bc-content-detail-list .bc-content-detail-list-header .bc-content-detail-list-header-column{min-width:10rem;padding:0 .5rem}.bc-content-detail-list .bc-content-detail-list-header .bc-content-detail-list-header-column.is-primary{flex-grow:1}.bc-content-detail-list .bc-content-detail-list-header .bc-content-detail-list-header-column:not(.is-primary){text-align:left}.bc-content-detail-list .bc-content-detail-list-header .bc-content-detail-list-header-column .bc-content-detail-list-header-column-title{font-size:inherit;font-weight:400;font-weight:700;margin:0;padding:0}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item{border-color:var(--bc-c-border-separator);border-style:solid;border-width:0 0 .1rem}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item.is-expanded>.bc-content-detail-list-item-header{border-color:var(--bc-c-border-active)}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item.is-expanded>.bc-content-detail-list-item-header:before{content:"\\ea78"}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header{align-items:flex-start;background-color:var(--bc-background-color);border:solid #0000;border-width:0 0 0 .25rem;cursor:pointer;display:flex;flex-direction:row;justify-content:space-between;padding:1.5rem 0 1.5rem 1rem;text-align:left;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;
5718-o-user-select:none;user-select:none;width:100%}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header:before{content:"\\ea4e";font-size:1.25rem;position:relative;top:-.15rem}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header.is-clickable{cursor:pointer}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header.bc-icon:before{align-self:center}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column{min-width:10rem;padding:0 .5rem}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column.is-primary{flex-grow:1}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column.is-primary .bc-content-detail-list-item-header-column-title{font-weight:700}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column:not(.is-primary){text-align:left}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-title{font-size:inherit;font-weight:400;margin:0;padding:0}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-trigger{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#0000;border:none;border-radius:0;color:inherit;cursor:pointer;font:inherit;padding-left:0;padding-right:0;text-align:left}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description{margin-top:.5rem}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list{display:flex;flex-wrap:wrap;margin:0;padding:0;position:relative}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item{display:inline-block;list-style-type:none}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item:first-child{margin-left:0}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item-separator,.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item-text{display:inline-block}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item-separator:before{color:#000000b3;content:"·";font-size:24px;padding:0 .5rem;position:relative;top:-8px}@media only screen and (min-width:48.0625em){.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-header .bc-content-detail-list-item-header-column .bc-content-detail-list-item-header-column-description .bc-content-detail-list-item-header-column-description-list .bc-content-detail-list-item-header-column-description-list-item-separator:before{top:-6px}}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-body{background-color:var(--bc-background-color);border-color:var(--bc-background-color);border-style:solid;border-width:0 0 0 .25rem;display:none;padding:.5rem 2.25rem 2rem 2.5rem}.bc-content-detail-list .bc-content-detail-list-body .bc-content-detail-list-item .bc-content-detail-list-item-body.is-open{border-color:var(--bc-c-border-active);display:block}'); 5719 var Pl = function(o2) { 5720 var n2 = _(o2, []); 5721 return e.jsxs("div", u({ className: Xt.getClassName("content-detail-list-item-header-column", n2) }, { children: [e.jsx("h3", u({ className: Xt.getClassName("content-detail-list-item-header-column-title") }, { children: e.jsx("span", u({ className: Xt.getClassName("content-detail-list-item-header-column-title-text") }, { children: n2.title })) })), n2.description && e.jsx("div", { className: Xt.getClassName("content-detail-list-item-header-column-description"), dangerouslySetInnerHTML: { __html: n2.description } }), n2.subtitles && e.jsx("div", u({ className: Xt.getClassName("content-detail-list-item-header-column-description") }, { children: e.jsx("div", u({ className: Xt.getClassName("content-detail-list-item-header-column-description-list") }, { children: n2.subtitles.map(function(o3, n3) { 5722 return e.jsxs(t.Fragment, { children: [n3 > 0 && e.jsx("span", { className: Xt.getClassName("content-detail-list-item-header-column-description-list-item-separator") }), e.jsx("span", u({ className: Xt.getClassName("content-detail-list-item-header-column-description-list-item") }, { children: e.jsx("span", u({ className: Xt.getClassName("content-detail-list-item-header-column-description-list-item-text") }, { children: o3.title })) }))] }, n3); 5723 }) })) }))] })); 5724 }, Sl = function(o2) { 5725 var n2 = _(o2, []), a2 = t.useState(n2._isToggled), r2 = a2[0], i2 = a2[1]; 5726 return e.jsxs("button", u({ className: Xt.getClassName("content-detail-list-item-header", n2), type: "button", "aria-controls": n2._bodyClientID, tabIndex: 0, onClick: function(e2) { 5727 return t2 = e2, void (n2._isClickable && n2.onCommand && (t2.preventDefault(), n2.onCommand({ name: "toggle", args: { itemIndex: n2._itemIndex } }), i2(function(e3) { 5728 return !e3; 5729 }))); 5730 var t2; 5731 }, "aria-expanded": r2 }, { children: [n2.primaryColumn && e.jsx(Pl, u({}, n2.primaryColumn, { _isPrimary: true, onCommand: n2.onCommand, _itemIndex: n2._itemIndex })), n2.secondaryColumns && n2.secondaryColumns.map(function(t2, o3) { 5732 return e.jsx(Pl, u({ onCommand: n2.onCommand, _itemIndex: n2._itemIndex }, t2), o3); 5733 }), n2.children] })); 5734 }, Dl = function(t2) { 5735 var o2 = _(t2, []), n2 = o2._isOpen; 5736 return e.jsx("div", u({ id: o2.id, className: Xt.getClassName("content-detail-list-item-body", o2) }, { children: (n2 || !o2.mountOnOpen) && e.jsxs(e.Fragment, { children: [o2.renderItemBody && o2.item && o2.renderItemBody(o2.item), o2.children] }) })); 5737 }, Al = function(o2) { 5738 var n2 = _(o2, []), a2 = t.useRef(Xt.getNewID()).current, r2 = t.useRef(Xt.getNextClientID("content-detail-list-item-header", void 0 === n2._index ? a2 : n2._index)).current, i2 = t.useRef(Xt.getNextClientID("content-detail-list-item-body", void 0 === n2._index ? a2 : n2._index)).current; 5739 return e.jsxs("div", u({ className: Xt.getClassName("content-detail-list-item", n2), id: n2.id }, { children: [n2.header && e.jsx(Sl, u({}, n2.header, { onCommand: n2.onCommand, _bodyClientID: i2, id: r2, _isCl
5739ickable: n2.isExpandable, _isToggled: n2.isExpanded, _itemIndex: n2._index })), n2.renderItemBody && e.jsx(Dl, { renderItemBody: n2.renderItemBody, item: n2.item, id: i2, mountOnOpen: n2.mountOnOpen, _headerClientID: r2, _isOpen: n2.isExpanded }), n2.children] })); 5740 }, El = function(o2) { 5741 var n2, a2 = _(o2, []), r2 = null === (n2 = a2.items) || void 0 === n2 ? void 0 : n2.map(function(e2) { 5742 return e2.isExpanded || false; 5743 }), i2 = t.useState(r2), l2 = i2[0], c2 = i2[1], d2 = function(e2) { 5744 "toggle" === e2.name && c2(function(t2) { 5745 return null == t2 ? void 0 : t2.map(function(t3, o3) { 5746 return e2.args.itemIndex === o3 ? !t3 : t3; 5747 }); 5748 }); 5749 }; 5750 return e.jsxs("div", u({ className: Xt.getClassName("content-detail-list-body", a2) }, { children: [a2.items && a2.items.map(function(t2, o3) { 5751 var n3 = !!l2 && l2[o3]; 5752 return e.jsx(Al, u({}, t2, { isExpanded: n3, onCommand: d2, mountOnOpen: a2.mountOnOpen, renderItemBody: a2.renderItemBody, _index: o3 }), o3); 5753 }), a2.children] })); 5754 }, Rl = function(t2) { 5755 var o2 = _(t2, []); 5756 return e.jsx("dt", u({ className: Xt.getClassName("content-property-list-item-label", o2) }, { children: e.jsx("span", u({ className: Xt.getClassName("content-property-list-item-label-text") }, { children: o2.text })) })); 5757 }, Il = function(t2) { 5758 var o2 = _(t2, []); 5759 return e.jsxs("dd", u({ className: Xt.getClassName("content-property-list-item-value", o2) }, { children: [o2.content, o2.children] })); 5760 }, Ml = function(t2) { 5761 var o2 = _(t2, []); 5762 return e.jsxs("div", u({ className: Xt.getClassName("content-property-list-item", o2) }, { children: [o2.label && e.jsx(Rl, u({}, o2.label)), o2.value && e.jsx(Il, u({}, o2.value)), o2.children] })); 5763 }; 5764 c('.bc-content-property-list{margin:0;padding:0}.bc-content-property-list *{box-sizing:inherit}.bc-content-property-list.bc-orientation-vertical.bc-orientation-vertical.bc-content-property-list--tabular{border-collapse:collapse;display:table}.bc-content-property-list.bc-orientation-vertical.bc-orientation-vertical.bc-content-property-list--tabular .bc-content-property-list-item{display:table-row;margin:0;padding:.5rem}.bc-content-property-list.bc-orientation-vertical.bc-orientation-vertical.bc-content-property-list--tabular .bc-content-property-list-item-label{padding-bottom:.35rem;padding-top:.35rem}.bc-content-property-list.bc-orientation-vertical.bc-orientation-vertical.bc-content-property-list--tabular .bc-content-property-list-item-value{display:table-cell;padding-bottom:.35rem;padding-left:.5rem;padding-top:.35rem}.bc-content-property-list .bc-content-property-list-item{margin:.5rem 0;text-align:left}.bc-content-property-list .bc-content-property-list-item .bc-content-property-list-item-value{margin:0;padding-top:.25rem}.bc-content-property-list .bc-content-property-list-item .bc-content-property-list-item-value:after{clear:both;content:"";display:table}'); 5765 c('.bc-content-teaser:after{clear:both;content:"";display:table}.bc-content-teaser .is-clickable{cursor:pointer;position:relative}.bc-content-teaser .is-clickable .bc-content-teaser-title-link:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0}.bc-content-teaser-title{color:var(--bc-primary-color-500);font-size:1.75rem}.bc-content-teaser-section-header-text{font-size:2rem;font-weight:700}.bc-content-teaser-title-link{text-decoration:none}.bc-content-teaser-title-link .bc-content-teaser-title-text{text-decoration:underline}.bc-content-teaser-title-text{color:#2d2d2d;color:var(--bc-c-text-primary)}.bc-content-teaser-meta{color:var(--bc-c-text-primary);font-size:.875rem;font-size:.9rem;font-weight:400;line-height:1.1428571429;margin-top:1rem}@media only screen and (min-width:48.0625em){.bc-content-teaser-meta{font-size:1rem;line-height:1.25}}@media only print{.bc-content-teaser-meta{font-size:12pt}}.bc-content-teaser-meta-property{display:block;margin-top:.5rem}.bc-content-teaser-meta-property:first-child{margin-top:0}.bc-content-teaser-meta-property-label,.bc-content-teaser-meta-property-value{display:inline-block;margin:0;padding:0}.bc-content-teaser-meta-orientation--vertical .bc-content-teaser-meta-property-label{display:block}.bc-content-teaser-meta-orientation--vertical .bc-content-teaser-meta-property-value{display:block;margin-top:.15rem}.bc-content-teaser-meta-orientation--vertical.bc-content-teaser-meta--tabular{border-collapse:collapse;display:table}.bc-content-teaser-meta-orientation--vertical.bc-content-teaser-meta--tabular .bc-content-teaser-meta-property{display:table-row;margin:0;padding:.5rem}.bc-content-teaser-meta-orientation--vertical.bc-content-teaser-meta--tabular .bc-content-teaser-meta-property-label{padding-bottom:.35rem;padding-top:.35rem}.bc-content-teaser-meta-orientation--vertical.bc-content-teaser-meta--tabular .bc-content-teaser-meta-property-value{display:table-cell;padding-bottom:.35rem;padding-left:.5rem;padding-top:.35rem}.bc-content-teaser-excerpt{font-size:1rem;font-weight:400;line-height:1.25;margin-top:1rem}@media only screen and (min-width:48.0625em){.bc-content-teaser-excerpt{font-size:1.1875rem;line-height:1.5}}@media only print{.bc-content-teaser-excerpt{font-size:14pt}}.bc-content-teaser--has-image .bc-content-teaser-image img{display:block;max-width:100%;min-height:15rem;min-width:10rem}.bc-content-teaser--has-image.bc-content-teaser--left-aligned .bc-content-teaser-image{float:left;margin-right:1rem;max-height:10rem;max-width:10rem;overflow:hidden}.bc-content-teaser--has-image.bc-content-teaser--left-aligned .bc-content-teaser-text{margin-left:11rem}.bc-content-teaser--has-image.bc-content-teaser--right-aligned .bc-content-teaser-image{float:right;margin-left:1rem;max-height:10rem;max-width:10rem;overflow:hidden}.bc-content-teaser--has-image.bc-content-teaser--top-aligned .bc-content-teaser-text{margin-top:1rem}'); 5766 var zl = function(t2) { 5767 var o2 = t2.level, n2 = _(t2, ["level"]); 5768 return e.jsxs(r.Fragment, { children: [o2 && e.jsx(w, u({ level: o2, className: Xt.getClassName("content-teaser-title", n2) }, { children: e.jsxs("span", u({ className: Xt.getClassName("content-teaser-title-text", null) }, { children: [n2.text, n2.children] })) }
5768)), !o2 && e.jsx("div", u({ className: Xt.getClassName("content-teaser-title", n2) }, { children: e.jsxs("span", u({ className: Xt.getClassName("content-teaser-title-text", null) }, { children: [n2.text, n2.children] })) }))] }); 5769 }, Ll = t.forwardRef(function(t2, o2) { 5770 var n2 = t2.title, a2 = t2.variants, r2 = t2.children, i2 = _(t2, ["title", "variants", "children"]); 5771 return e.jsxs("article", u({}, i2, { className: Xt.getClassName("content-teaser", u(u({}, i2), { variants: a2 })), ref: o2 }, { children: [n2 && e.jsx(zl, { variants: a2, text: n2 }), r2] })); 5772 }), Fl = function(t2) { 5773 var o2 = _(t2, []); 5774 return e.jsx("dt", u({ className: Xt.getClassName("content-teaser-meta-property-label", o2) }, { children: o2.children })); 5775 }, Ol = function(t2) { 5776 var o2 = _(t2, []); 5777 return e.jsx("dd", u({ className: Xt.getClassName("content-teaser-meta-property-value", o2) }, { children: o2.children })); 5778 }; 5779 function Bl(e2) { 5780 var t2 = window.location.search.substr(1); 5781 return null != t2 && "" !== t2 ? function(e3) { 5782 for (var t3, o2 = {}, n2 = e3.split("&"), a2 = 0; a2 < n2.length; a2++) { 5783 var r2 = n2[a2].split("="); 5784 o2[r2[0]] = null != (t3 = r2[1]) && "" != t3 ? decodeURIComponent(t3.replace(/\+/g, "%20")) : t3; 5785 } 5786 return o2; 5787 }(t2)[e2] : {}; 5788 } 5789 exports3.Alert = Nn, exports3.Avatar = Io, exports3.Balloon = Ra, exports3.Button = Q, exports3.ButtonDecryptValue = function(o2) { 5790 var n2 = o2.encryptedValue, a2 = o2.onDecryptClick, i2 = o2.renderDecryptedItem, l2 = void 0 === i2 ? void 0 : i2, c2 = _(o2, ["encryptedValue", "onDecryptClick", "renderDecryptedItem"]), d2 = t.useState(""), s2 = d2[0], b2 = d2[1], h2 = r.useCallback(function() { 5791 return m(void 0, void 0, void 0, function() { 5792 var e2; 5793 return p(this, function(t2) { 5794 switch (t2.label) { 5795 case 0: 5796 return [4, a2(n2)]; 5797 case 1: 5798 return e2 = t2.sent(), b2(e2), [2]; 5799 } 5800 }); 5801 }); 5802 }, [n2, c2]); 5803 return e.jsxs(e.Fragment, { children: [("" === s2 || !l2) && e.jsx(Q, u({}, c2, { text: "" === s2 ? c2.text : String(s2), onClick: h2 })), "" !== s2 && l2 && l2(s2)] }); 5804 }, exports3.CCarousel = pl, exports3.Carousel = bl, exports3.Checkbox = zn, exports3.CheckboxComponent = io, exports3.CheckboxGroup = So, exports3.CheckboxGroupComponent = Po, exports3.Col = x, exports3.Collapsible = En, exports3.CollapsibleFilter = function(t2) { 5805 var o2 = t2.collapsibleProps, n2 = t2.collapsibleBodyProps, a2 = t2.collapsibleHeaderProps, r2 = t2.filterRef, i2 = t2.title, l2 = void 0 === i2 ? "Filter" : i2, c2 = _(t2, ["collapsibleProps", "collapsibleBodyProps", "collapsibleHeaderProps", "filterRef", "title"]), d2 = void 0; 5806 return (!a2 || a2 && !("children" in a2)) && (d2 = { title: l2, openText: "Åpne filter", withButton: true, buttonStatus: "primary", buttonVariant: "default", closeText: "Lukk filter" }), d2 = u(u({}, d2), a2), e.jsxs(En, u({ className: "".concat(h, "-filter-collapsible ").concat(ul.collapsibleFilter), defaultOpen: true, mobileDefaultOpen: false }, o2, { children: [e.jsx(En.Header, u({}, d2)), e.jsx(En.Body, u({}, n2, { children: e.jsx("div", u({ className: "".concat(h, "-collapsible-panel-content") }, { children: e.jsx(ml, u({}, c2, { ref: r2 })) })) }))] })); 5807 }, exports3.Container = f, exports3.ContentDetailList = function(t2) { 5808 var o2 = t2.header, n2 = t2.items, a2 = t2.renderItemBody, r2 = _(t2, ["header", "items", "renderItemBody"]); 5809 return e.jsxs("div", u({ className: Xt.getClassName("content-detail-list", r2) }, { children: [o2 && e.jsx(Tl, u({}, o2)), n2 && e.jsx(El, { items: n2, mountOnOpen: r2.mountOnOpen, renderItemBody: a2 }), r2.children] })); 5810 }, exports3.ContentDetailListBody = El, exports3.ContentDetailListHeader = Tl, exports3.ContentDetailListHeaderColumn = jl, exports3.ContentDetailListItem = Al, exports3.ContentDetailListItemBody = Dl, exports3.ContentDetailListItemHeader = Sl, exports3.ContentDetailListItemHeaderColumn = Pl, exports3.ContentList = function(t2) { 5811 var o2 = _(t2, []); 5812 return e.jsxs("div", u({ className: Xt.getClassName("content-list", o2) }, { children: [o2.items && o2.items.map(function(t3, n2) { 5813 return e.jsx(Cl, { index: n2, item: t3, renderItem: o2.renderItem }, n2); 5814 }), o2.children] })); 5815 }, exports3.ContentListItem = Cl, exports3.ContentPropertyList = function(t2) { 5816 var o2 = t2.orientation, n2 = void 0 === o2 ? "Horizontal" : o2, a2 = _(t2, ["orientation"]), r2 = Xt.getClassNameAsArray("content-property-list", a2); 5817 return "Vertical" === n2 && (r2.push("".concat(h, "-orientation")), r2.push("".concat(h, "-orientation-vertical")), r2.push("".concat(h, "-content-property-list--tabular"))), e.jsxs("dl", u({ className: r2.j
5817oin(" ") }, { children: [a2.items && a2.items.map(function(t3, o3) { 5818 return e.jsx(Ml, u({}, t3), o3); 5819 }), a2.children] })); 5820 }, exports3.ContentPropertyListItem = Ml, exports3.ContentPropertyListItemLabel = Rl, exports3.ContentPropertyListItemValue = Il, exports3.ContentTable = function(t2) { 5821 var o2 = t2.layout, n2 = void 0 === o2 ? "normal" : o2, a2 = _(t2, ["layout"]), r2 = Xt.getClassNameAsArray("content-table", a2); 5822 return a2.desktopLayout || r2.push("".concat(h, "-content-table--").concat(n2)), a2.mobileLayout && (r2.push("".concat(h, "-content-table--mobile-").concat(a2.mobileLayout)), delete a2.mobileLayout), a2.tableLayout && (r2.push("".concat(h, "-content-table--table-").concat(a2.tableLayout)), delete a2.tableLayout), a2.desktopLayout && (r2.push("".concat(h, "-content-table--desktop-").concat(a2.desktopLayout)), delete a2.desktopLayout), a2.width && (r2.push("".concat(h, "-content-table--").concat(a2.width)), delete a2.width), e.jsx("table", u({ className: r2.join(" ") }, { children: a2.children })); 5823 }, exports3.ContentTableBody = function(t2) { 5824 var o2 = _(t2, []); 5825 return e.jsx("tbody", u({ className: Xt.getClassName("content-table-body", o2) }, { children: o2.children })); 5826 }, exports3.ContentTableCell = function(t2) { 5827 var o2 = _(t2, []), n2 = Xt.getClassNameAsArray("content-table-cell", o2); 5828 return o2.alignment && n2.push("".concat(h, "-content-table-cell--").concat(o2.alignment)), e.jsx("td", u({ className: n2.join(" ") }, { children: o2.children })); 5829 }, exports3.ContentTableHead = function(t2) { 5830 var o2 = _(t2, []); 5831 return e.jsx("thead", u({ className: Xt.getClassName("content-table-head", o2) }, { children: o2.children })); 5832 }, exports3.ContentTableHeadCell = function(t2) { 5833 var o2 = _(t2, []); 5834 return e.jsx("th", u({ className: Xt.getClassName("content-table-cell", o2) }, { children: o2.children })); 5835 }, exports3.ContentTableRow = function(t2) { 5836 var o2 = _(t2, []), n2 = Xt.getClassNameAsArray("content-table-row", o2); 5837 return void 0 !== o2.className && "" !== o2.className && n2.push(o2.className), e.jsx("tr", u({ className: n2.join(" ") }, { children: o2.children })); 5838 }, exports3.ContentTeaser = Ll, exports3.ContentTeaserBody = function(t2) { 5839 var o2 = _(t2, []); 5840 return e.jsx("div", u({ className: Xt.getClassName("content-teaser-body", o2) }, { children: o2.children })); 5841 }, exports3.ContentTeaserExcerpt = function(t2) { 5842 var o2 = t2.content, n2 = void 0 === o2 ? "" : o2, a2 = _(t2, ["content"]), r2 = Xt.getClassName("content-teaser-excerpt", a2); 5843 return a2.children ? e.jsx("div", u({ className: r2 }, { children: a2.children })) : e.jsx("div", { className: r2, dangerouslySetInnerHTML: { __html: n2 } }); 5844 }, exports3.ContentTeaserFooter = function(t2) { 5845 var o2 = _(t2, []); 5846 return e.jsx("div", u({ className: Xt.getClassName("content-teaser-footer", o2) }, { children: o2.children })); 5847 }, exports3.ContentTeaserHeader = function(t2) { 5848 var o2 = _(t2, []); 5849 return e.jsx("div", u({ className: Xt.getClassName("content-teaser-header", o2) }, { children: o2.children })); 5850 }, exports3.ContentTeaserImage = function(t2) { 5851 var o2 = _(t2, []); 5852 return e.jsx("div", u({ className: Xt.getClassName("content-teaser-image", o2) }, { children: o2.children })); 5853 }, exports3.ContentTeaserMeta = function(t2) { 5854 var o2 = t2.orientation, n2 = void 0 === o2 ? "Horizontal" : o2, a2 = _(t2, ["orientation"]), r2 = Xt.getClassNameAsArray("content-teaser-meta", a2); 5855 return "Vertical" === n2 && r2.push("".concat(h, "-content-teaser-meta-orientation--vertical")), e.jsx("dl", u({ className: r2.join(" ") }, { children: a2.children })); 5856 }, exports3.ContentTeaserMetaLabel = Fl, exports3.ContentTeaserMetaProperty = function(t2) { 5857 var o2 = _(t2, []); 5858 return e.jsxs("div", u({ className: Xt.getClassName("content-teaser-meta-property", o2) }, { children: [o2.label && e.jsx(Fl, { children: o2.label }), o2.value && e.jsx(Ol, { children: o2.value }), o2.children] })); 5859 }, exports3.ContentTeaserMetaValue = Ol, exports3.ContentTeaserText = function(t2) { 5860 var o2 = _(t2, []); 5861 return e.jsx("div", u({ className: Xt.getClassName("content-teaser-text", o2) }, { children: o2.children })); 5862 }, exports3.ContentTeaserTitle = zl, exports3.DangerousHtml = function(t2) { 5863 var o2 = t2.as, n2 = t2.children, a2 = t2.className, r2 = t2.dangerousHtml, i2 = _(t2, ["as", "children", "className", "dangerousHtml"]), l2 = o2 || "div", c2 = Bi.sanitize(null != r2 ? r2 : "", { CUSTOM_ELEMENT_HANDLING: { tagNameCheck: function(e2) { 5864 return Vi.indexOf(e2) > -1; 5865 }, attributeNameCheck: function(e2) { 5866 return true; 5867 }, allowCustomizedBuiltInElements: true }, ADD_ATTR: ["hx-ext", "hx-get", "hx-indicator", "hx-post", "hx-target", "hx-trigger"] }), d2 = ["".concat(h, "-dangerousHtml"), Hi]; 5868 return a2 && d2.push(a2), e.jsx(l2, u({}, i2, { className: d2.join(" "), dangerouslySetInnerHTML: r2 ? { __html: c2 } : void 0 }, { children: n2 })); 5869 }, exports3.DatePicker = pe, exports3.DateRangePicker = Rt, exports3.DigitalClockPicker = function(o2) { 5870 var n2 = o2.format, a2 = void 0 === n2 ? "hh:mm" : n2, r2 = _(o2, ["format"]), i2 = function(e2) { 5871 var t2 = null; 5872 return e2.includes("h") && e2.includes("A") ? t2 = Array.from({ length: 12 }, function(e3, t3) { 5873 return t3 + 1; 5874 }).map(function(t3) { 5875 return { value: t3, label: t3.toString().padStart(e2.includes("hh") ? 2 : 1, "0") }; 5876 }) : e2.includes("h") && (t2 = Array.from({ length: 24 }, function(e3, t3) { 5877 return t3; 5878 }).map(function(t3) { 5879 return { value: t3, label: t3.toString().padStart(e2.includes("hh") ? 2 : 1, "0") }; 5880 })), [t2, e2.includes("m") ? Array.from({ length: 12 }, function(e3, t3) { 5881 return 5 * t3; 5882 }).map(function(t3) { 5883 return { value: t3, label: t3.toString().padStart(e2.includes("mm") ? 2 : 1, "0") }; 5884 }) : null, e2.includes("s") ? Array.from({ length: 12 }, function(e3, t3) { 5885 return 5 * t3; 5886 }).map(function(t3) { 5887 return { value: t3, label: t3.toString().padStart(e2.includes("ss") ? 2 : 1, "0") }; 5888 }) : null, e2.includes("A") ? [{ value: 0, label: "AM" }, { value: 1, label: "PM" }
5888] : null]; 5889 }(a2), l2 = i2[0], c2 = i2[1], d2 = i2[2], s2 = i2[3], m2 = t.useState(r2.value), p2 = m2[0], b2 = m2[1], f2 = ["".concat(h, "-digitalClockPicker"), Ln]; 5890 return r2.className && f2.push(r2.className), e.jsxs("div", u({ className: f2.join(" ") }, { children: [l2 && e.jsx(On, { onSelect: function(e2) { 5891 var t2; 5892 b2(e2.toString()), null === (t2 = r2.onChange) || void 0 === t2 || t2.call(r2, e2.toString()); 5893 }, items: l2 }), c2 && e.jsx(On, { onSelect: function(e2) { 5894 var t2; 5895 b2("".concat(p2, ":").concat(e2)), null === (t2 = r2.onChange) || void 0 === t2 || t2.call(r2, "".concat(p2, ":").concat(e2)); 5896 }, items: c2 }), d2 && e.jsx(On, { onSelect: function(e2) { 5897 var t2; 5898 b2("".concat(p2, ":").concat(e2)), null === (t2 = r2.onChange) || void 0 === t2 || t2.call(r2, "".concat(p2, ":").concat(e2)); 5899 }, items: d2 }), s2 && e.jsx(On, { onSelect: function(e2) { 5900 var t2; 5901 b2("".concat(p2, " ").concat(0 === e2 ? "AM" : "PM")), null === (t2 = r2.onChange) || void 0 === t2 || t2.call(r2, "".concat(p2, " ").concat(0 === e2 ? "AM" : "PM")); 5902 }, items: s2 })] })); 5903 }, exports3.Dropdown = function(o2) { 5904 var n2, a2 = o2.id, r2 = o2.options, i2 = o2.onChange, l2 = void 0 === i2 ? void 0 : i2, c2 = o2.name, d2 = _(o2, ["id", "options", "onChange", "name"]), s2 = Xt.getClassNameAsArray("content-form-control", d2); 5905 s2.push("".concat(h, "-content-form-control--select")), d2.className && s2.push(d2.className); 5906 var m2 = t.useState(null !== (n2 = d2.selectedValue) && void 0 !== n2 ? n2 : ""), p2 = m2[0], b2 = m2[1]; 5907 return e.jsxs("div", u({ className: s2.join(" ") }, { children: [null !== d2.text && "" !== d2.text && e.jsx("label", u({ id: a2 ? "".concat(h, "-content-form-control-dropdown--label-").concat(a2) : void 0, htmlFor: a2 ? "".concat(h, "-content-form-select-").concat(a2) : void 0, className: "".concat(h, "-content-form-control-dropdown--label") }, { children: d2.text })), e.jsx("select", u({ name: c2, id: a2 ? "".concat(h, "-content-form-select-").concat(a2) : void 0, className: "".concat(h, "-content-form-select"), onChange: function(e2) { 5908 b2(e2.target.value), l2 && l2(e2); 5909 }, value: p2 }, { children: r2.map(function(e2, t2) { 5910 return d2.renderOption(e2, t2); 5911 }) })), d2.children] })); 5912 }, exports3.DynamicDebounce = oe, exports3.ErrorBoundary = Ga, exports3.Feedback = function(o2) { 5913 var n2, a2 = o2.displayLegacy, r2 = void 0 !== a2 && a2, i2 = o2.reCAPTCHAVersion, l2 = void 0 === i2 ? "V2" : i2, c2 = o2.translations, d2 = void 0 === c2 ? { textHeader: "Fant du det du lette etter på denne siden?", textYes: "Ja", textNo: "Nei", textButtonClose: "Lukk", textButtonCancel: "Avbryt", textButtonSend: "Send", textModalTitle: "Fant du det du lette etter?", textStatusRadioLabel: "Ditt svar: ", textNegativeCommentDescription: "Hva lette du etter? Din tilbakemelding hjelper oss å forbedre nettsiden", textPositiveCommentDescription: "Så bra! Hva fant du på denne siden som du lette etter?", textCommentLabel: "Kommentar: ", textMailLabel: "Din e-post: ", textIsMailErrorMessage: "Skriv in en gyldig e-post", textFeedbackResult: "Takk for ditt innspill :)", textMailSubLabel: "default sublabel", textRecaptchaErrorMessage: "Fullfør recaptcha før du sender!", textButtonSendLoading: "Sender...", textOptional: "Valgfri", textAriaLabel: "Modal for å gi tilbakemelding" } : c2, s2 = _(o2, ["displayLegacy", "reCAPTCHAVersion", "translations"]), m2 = t.useState(false), p2 = m2[0], b2 = m2[1], h2 = t.useState(false), f2 = h2[0], g2 = h2[1], v2 = t.useState("no"), x2 = v2[0], y2 = v2[1], k2 = t.useState(false), w2 = k2[0], N2 = k2[1], C2 = t.useState(false), j2 = C2[0], T2 = C2[1], P2 = t.useState(false), S2 = P2[0], D2 = P2[1], A2 = { id: s2.id, translations: d2, formSubmited: j2, buttonPressed: function(e2) { 5914 b2(true), y2(e2), s2.displayEmailField || s2.displayCommentField || "" != l2 || (b2(false), s2.onSubmit({ status: e2, comment: "", mail: "", token: "" }).then(function() { 5915 g2(false), N2(false), T2(true); 5916 })); 5917 } }; 5918 return e.jsxs(e.Fragment, { children: [r2 ? e.jsx(Qi, u({}, A2)) : e.jsx(Wi, u({}, A2)), e.jsx(Yi, { id: s2.id, display: p2 && (s2.displayCommentField || s2.displayEmailField || "" !== l2), reCAPTCHAVersion: l2, onClose: function() { 5919 b2(false); 5920 }, translations: d2, onSubmit: function(e2) { 5921 b2(false), N2(true), s2.onSubmit(e2).then(function(e3) { 5922 g2(true), N2(false), T2(true), D2(e3); 5923 }); 5924 }, status: x2, setStatus: y2, siteKey: null !== (n2 = s2.siteKey) && void 0 !== n2 ? n2 : "", loading: w2, displayEmailField: s2.displayEmailField, displayCommentField: s2.displayCommentField }), e.jsx(Ji, { id: s2.id, display: f2 && (!!s2.displayCommentField || !!s2.displayEmailField), onClose: function() { 5925 g2(false); 5926 }, translations: d2, success: S2 })] }); 5927 }, exports3.Fieldset = $i, exports3.File = gl, exports3.Filter = ml, exports3.FocusTrap = function(t2) { 5928 var o2 = _(t2, []); 5929 return e.jsx(ft, u({}, o2)); 5930 }, exports3.Form = ja, exports3.FormErrorSummary = xl, exports3.FormatText = function(t2) { 5931 var o2 = Ki(); 5932 return e.jsx(e.Fragment, { children: o2(t2.id, t2.values) }); 5933 }, exports3.GeolocationElement = dl, exports3.GoogleMaps = function(t2) { 5934 var o2 = t2.mapPoints, n2 = void 0 === o2 ? [{ coordinates: { lat: 60.3470899, lng: 5.1320129 }, info: '<a href="https://www.acos.no">Gå til ACOS sine nettsider</a>' }, { coordinates: { lat: 60.3508603, lng: 5.1301421 }, info: "<p>Sotra Arena</p>" }, { coordinates: { lat: 30.3471963, lng: 5.1345316 }, info: '<span style="color: blue; font-weight: bold;">Obs Bygg Straume</span>' }] : o2, a2 = t2.mapZoom, r2 = void 0 === a2 ? 14 : a2, i2 = t2.he
5934ight, l2 = void 0 === i2 ? "20rem" : i2, c2 = t2.width, d2 = void 0 === c2 ? "40rem" : c2, s2 = t2.apiKey; 5935 return e.jsx("div", u({ className: "".concat(h, "-google-maps ").concat(nr), style: { height: l2, width: d2 } }, { children: e.jsx(or, u({ apiKey: s2, libraries: ["places"] }, { children: e.jsx(ir, { center: n2.length > 0 ? n2[0].coordinates : { lat: 0, lng: 0 }, zoom: r2, mapPoints: n2 }) })) })); 5936 }, exports3.Group = Jn, exports3.Heading = w, exports3.Icon = q, exports3.InBody = function(e2) { 5937 var t2 = e2.children, o2 = r.useState(false), n2 = o2[0], a2 = o2[1]; 5938 return r.useEffect(function() { 5939 a2(true); 5940 }, []), n2 ? l.default.createPortal(t2, document.body) : null; 5941 }, exports3.Input = Wn, exports3.Internationalize = function(t2) { 5942 return e.jsx(Ui.Provider, u({ value: { locale: t2.locale, defaultLocale: t2.defaultLocale, texts: t2.texts } }, { children: t2.children })); 5943 }, exports3.Label = ko, exports3.LegacyCheckbox = lo, exports3.LegacyCollapsible = Jt, exports3.LegacyForm = ao, exports3.LegacyInput = At, exports3.LegacyRadio = zt, exports3.LegacySelect = Co, exports3.Library = vn, exports3.Link = Oo, exports3.List = Xa, exports3.MailForm = function(o2) { 5944 var n2 = o2.texts, a2 = void 0 === n2 ? { formTitle: "E-post til Marte Berg", sendButton: "Send", cancelButton: "Avbryt", fromLabelText: "Fra", fromRequiredErrorText: "Dette feltet er påkrevd!", fromTypeErrorText: "Bare text i dette feltet!", fromMinimumErrorText: "Dette er for kort!", fromMailErrorText: "Mailen er ikke gyldig!", titleLabelText: "Tittel", titleRequiredErrorText: "Dette feltet er påkrevd!", titleTypeErrorText: "Bare text i dette feltet!", titleMinimumErrorText: "Dette er for kort!", contentLabelText: "Melding", contentRequiredErrorText: "Dette feltet er påkrevd!", contentTypeErrorText: "Bare text i dette feltet!", contentMinimumErrorText: "Dette er for kort, fortell oss mer!", recaptchaErrorText: "Fullfør recaptcha før du sender!", modalAriaDetailCloseTopButton: "Knapp for å lukke modalen", modalAllFieldsAreObligatory: "Alle felt er obligatorisk" } : n2, r2 = o2.loading, i2 = _(o2, ["texts", "loading"]), l2 = ["".concat(h, "-content-mail-form")], c2 = t.useRef(null); 5945 return e.jsx("div", u({ className: l2.join(" ") }, { children: e.jsx(no, u({ title: a2.formTitle, show: i2.show, onClose: i2.onClose, closable: true, size: "medium", renderFooter: function() { 5946 return e.jsxs(e.Fragment, { children: [e.jsx(Q, { loading: r2, disabled: r2, onClick: function() { 5947 !function() { 5948 var e2, t2, o3 = null === (e2 = c2.current) || void 0 === e2 ? void 0 : e2.getValues(); 5949 if (o3) { 5950 var n3 = { title: "string" == typeof o3.title ? o3.title : "", message: "string" == typeof o3.content ? o3.content : "", from: "string" == typeof o3.from ? o3.from : "", reCAPTCHA: "string" == typeof o3.recaptcha ? o3.recaptcha : "" }; 5951 (null === (t2 = c2.current) || void 0 === t2 ? void 0 : t2.validate()) ? i2.onSubmit(n3) : i2.onNotValid && i2.onNotValid(n3); 5952 } 5953 }(); 5954 }, type: "button", className: "".concat(h, "-content-mail-form-send-btn"), text: a2.sendButton }), e.jsx(Q, { disabled: r2, className: "".concat(h, "-content-mail-form-cancel-btn"), status: "secondary", text: a2.cancelButton, onClick: i2.onClose })] }); 5955 }, ariaDetailCloseTopButton: a2.modalAriaDetailCloseTopButton }, { children: e.jsxs(H.Content.Body, { children: [e.jsx("p", u({ className: "".concat(h, "-content-mail-form-all-fields-required-text") }, { children: a2.modalAllFieldsAreObligatory })), e.jsxs(ao, u({ onSubmit: i2.onSubmit, ref: c2 }, { children: [null, e.jsx(H.Content.Row, { children: e.jsx(At, { labelText: a2.titleLabelText, type: "text", name: "title", maxCharacters: 256, minCharacters: 3, disabled: r2, formValidation: { required: { data: true, errorMessage: a2.titleRequiredErrorText }, type: { data: "string", errorMessage: a2.titleTypeErrorText }, minimumLength: { data: 3, errorMessage: a2.titleMinimumErrorText } } }) }), e.jsx(H.Content.Row, { children: e.jsx(so, { labelText: a2.contentLabelText, maxCharacters: 500, minCharacters: 5, showCounter: true, name: "content", disabled: r2, formValidation: { required: { data: true, errorMessage: a2.contentRequiredErrorText }, type: { data: "string", errorMessage: a2.contentTypeErrorText }, minimumLength: { data: 5, errorMessage: a2.contentMinimumErrorText } } }) }), e.jsx(H.Content.Row, { children: e.jsx(At, { labelText: a2.fromLabelText, type: "email", name: "from", minCharacters: 3, autocomplete: "email", disabled: r2, formValidation: { required: { data: true, errorMessage: a2.fromRequiredErrorText }, type: { data: "string", errorMessage: a2.fromTypeErrorText }, minimumLength: { data: 3, errorMessage: a2.fromMinimumErrorText }, isMail: { data: true, errorMessage: a2.fromMailErrorText } } }) }), i2.reCAPTCHAVersion && i2.siteKey && e.jsx(H.Content.Row, { children: e.jsx(Eo, { version: i2.reCAPTCHAVersion, siteKey: i2.siteKey, id: i2.id + "-captcha", textUncheckedError: a2.recaptchaErrorText, name: "recaptcha" }) })] }))] }) })) })); 5956 }, exports3.Modal = no, exports3.ModalFilter = function(t2) { 5957 var o2 = t2.modalProps, n2 = t2.modalTexts, a2 = t2.onCloseModal, r2 = t2.onConfirmModal, i2 = t2.onClearModal, l2 = t2.showModal, c2 = void 0 !== l2 && l2, d2 = t2.filterRef, s2 = _(t2, ["modalProps", "modalTexts", "onCloseModal", "onConfirmModal", "onClearModal", "showModal", "filterRef"]), m2 = function(t3) { 5958 var o3 = t3.titleId; 5959 return e.jsxs("div", u({ className: "".concat(h, "-modal-header ").concat(ul.modalHeader) }, { children: [e.jsx(q, { icon: "ri-equalizer-fill" }), e.jsx("h2", u({ id: o3, className: "".concat(h, "-modal-title") }, { children: null == n2 ? void 0 : n2.header }))] })); 5960 }, p2 = function() { 5961 return e.jsxs("div", u({ className: "".concat(h, "-modal-footer ").concat(ul.modalFooter) }, { children: [(null == n2 ? void 0 : n2.results) && e.jsx(g, { children: e.jsx(x, u({ xs: "12" }, { children: e.jsx("div", u({ className: ul.modalFooterResults }, { children: n2.results })) })) }), e.jsxs(g, { children: [(null == n2 ? void 0 : n2.reset) && e.jsx(x, u({ xs: n2.apply ? "6" : "12", className: ul.modalFooterButtonsCol }, { children: e.jsx("div", u({ className: ul.modalFooterButtonWrapper }, { children: e.jsx(Q, u({ status: "secondary", className: ul.modalFooterButton, onClick: i2 }, { children: e.jsx("span", u({ className: "".concat(h, "-modal-footer-button-text") }, { children: n2.reset })) })) })) })), (null == n2 ? void 0 : n2.apply) && e.jsx(x, u({ xs: n2.reset ? "6" : "12", className: ul.modalFooterButtonsCol }, { children: e.jsx("div", u({ className: ul.modalFooterButtonWrapper }, { children: e.jsx(Q, u({ status: "primary", className: ul.modalFooterButton, onClick: r2 }, { children: e.jsx("span", u({ className: "".concat(h, "-modal-footer-button-text") }, { children: n2.apply })) })) })) }))] })] })); 5962 }, b2 = ["".concat(h, "-filter-modal"), ul.modalFilter, null == o2 ? void 0 : o2.className]; 5963 return e.jsx(no, u({ show: c2, closable: true, onClose: a2, size: "medium", variant: "dialog", renderHeader: function(t3) { 5964 return e.jsx(m2, { titleId: t3 }); 5965 }, renderFooter: function() { 5966 return e.jsx(p2, {}); 5967 } }, o2, { className: b2.join(" ") }, { children: e.jsx("div", u({ className: "".concat(h, "-modal-content") }, { children: e.jsx(ml, u({}, s2, { ref: d2 })) })) })); 5968 }, exports3.OnClickOutside = function(o2) { 5969 var n2 = _(o2, []), a2 = t.createRef(), r2 = n2.active, i2 = n2.clickHandler, l2 = n2.children, c2 = _(n2, ["active", "clickHandler", "children"]); 5970 t.useEffect(function() { 5971 var e2 = function(e3) { 5972 e3.target instanceof Node && a2.current && !a2.current.contains(e3.target) && i2(); 5973 }; 5974 return r2 || void 0 === r2 ? (document.addEventListener("click", e2, true), document.addEventListener("touchstart", e2, true)) : (document.removeEventListener("click", e2, true), document.removeEventListener("touchstart", e2, true)), function() { 5975 document.removeEventListener("click", e2, true), document.removeEventListener("touchstart", e2, true); 5976 }; 5977 }, [r2, i2]); 5978 var d2 = ["".concat(h, "-onClickOutside ").concat(Ua)]; 5979 return n2.className && d2.push(n2.className), e.jsx("div", u({}, c2, { ref: a2 }, { children: l2 })); 5980 }, exports3.Option = bo, exports3.Pagination = Nl, exports3.PaginationCountSelector = kl, exports3.PaginationSelector = wl, exports3.PaginationStats = yl, exports3.Paragraph = Lo, exports3.Radio = ea, exports3.RadioDateRangePicker = to, exports3.RadioGroup = eo, exports3.ReCAPTCHA = Eo, exports3.Region = H, exports3.Renderer = function(o2) { 5981 var n2 = o2.library, a2 = void 0 === n2 ? vn : n2, r2 = _(o2, ["library"]), i2 = ["".concat(h, "-renderer ").concat(yn)]; 5982 return r2.className && i2.push(r2.className), t.useState(0)[0], e.jsxs("div", u({ className: i2.join(" ") }, { children: [xn(r2, a2, r2.data.elements), r2.children] })); 5983 }, exports3.Row = g, exports3.Search = br, exports3.Select = xa, exports3.SelectSearch = function(o2) { 5984 var n2 = o2.minCharactersForSearch, a2 = void 0 === n2 ? 2 : n2, r2 = o2.showNoResultsText, i2 = void 0 === r2 || r2, l2 = o2.loadingBar, c2 = void 0 === l2 || l2, d2 = o2.clearButtonTitle, s2 = void 0 === d2 ? "Tøm søkeboks" : d2, m2 = o2.searchTimeout, p2 = void 0 === m2 ? 500 : m2, b2 = o2.maxResultsInSuggestions, f2 = void 0 === b2 ? 10 : b2, g2 = o2.size, v2 = void 0 === g2 ? "medium" : g2, x2 = o2.scrollTarget, y2 = void 0 === x2 ? window : x2, k2 = _(o2, ["minCharactersForSearch", "showNoResultsText", "loadingBar", "clearButtonTitle", "searchTimeout", "maxResultsInSuggestions", "size", "scrollTarget"]), w2 = t.useState(""), N2 = w2[0], C2 = w2[1], j2 = t.useState(k2.defaultPlaceholder), T2 = j2[0], P2 = j2[1], S2 = t.useState([]), D2 = S2[0], A2 = S2[1], E2 = t.useState(-1), R2 = E2[0], I2 = E2[1], M2 = t.useState(false), z2 = M2[0], L2 = M2[1], F2 = t.useState(true), O2 = F2[0], B2 = F2[1], H2 = t.createRef(), V2 = t.createRef(), G2 = t.createRef(), U2 = ["".concat(h, "-content-select-search"), hr.base]; 5985 U2.push("".concat(h, "-content-select-search-size--").concat(v2), hr["size--".concat(v2)]), k2.className && U2.push(k2.className); 5986 var K2 = function() { 5987 I2(-1), k2.fetchSuggestionData(fr).then(function(e2) { 5988 A2(e2); 5989 }).finally(function() { 5990 L2(false); 5991 }); 5992 }, W2 = t.useCallback(function(e2) { 5993 var t2; 5994 null === (t2 = G2.current) || void 0 === t2 || t2.focus(), k2.onSelect(e2.text, e2), B2(true), P2(e2.text), C2(""); 5995 }, [G2, k2]); 5996 return t.useEffect(function() { 5997 function e2(e3) { 5998 var t3; 5999 (null === (t3 = H2.current) || void 0 === t3 ? void 0 : t3.contains(e3.target)) || B2(true); 6000 } 6001 var t2 = _o(e2, 250), o3 = y2 && null != y2 ? y2 : window; 6002 return window.addEventListener("click", e2), o3.addEventListener("scroll", t2), window.addEventListener("touchstart", e2), function() { 6003 window.removeEventListener("click", e2), o3.removeEventListener("scroll", t2), window.removeEventListener("touchstart", e2); 6004 }; 6005 }
6005, [y2, H2]), e.jsxs("div", u({ id: k2.id, ref: H2, className: U2.join(" ") }, { children: ["" !== k2.labelText && k2.labelText && e.jsx("label", u({ className: k2.hideLabel ? "".concat(h, "-visually-hidden") : "", htmlFor: k2.id + "-input" }, { children: k2.labelText })), e.jsx("div", u({ className: "".concat(h, "-content-select-search-container ").concat(hr.container) }, { children: e.jsxs("div", { children: [e.jsxs("div", u({ className: "".concat(h, "-content-select-search-container-input-container ").concat(hr["input-container"]) }, { children: [e.jsx("input", { id: k2.id + "-input", type: "search", placeholder: null != T2 ? T2 : k2.defaultPlaceholder, value: N2, onChange: function(e2) { 6006 L2(true), C2(e2.target.value), fr = e2.target.value, "" === N2 && null !== D2 && D2.length > 0 && A2([]), -1 === R2 && "" !== N2 && a2 <= fr.length && (window.clearTimeout(R2), I2(window.setTimeout(K2, p2))), k2.onCleared && "" === fr && k2.onCleared(); 6007 }, onFocus: function() { 6008 K2(), B2(false); 6009 }, onClick: function(e2) { 6010 e2.stopPropagation(); 6011 }, autoComplete: "off", onKeyDown: function(e2) { 6012 O2 && "Tab" !== e2.key && B2(false), "ArrowDown" === e2.key && (e2.preventDefault(), V2.current && V2.current.focusFirst()); 6013 }, ref: G2 }), (N2 || T2) && e.jsx("span", u({ title: s2, "data-clear-input": true, onClick: function() { 6014 C2(""), P2(k2.defaultPlaceholder), k2.onCleared && k2.onCleared(); 6015 } }, { children: "×" }))] })), N2.length >= a2 && (!z2 || z2 && c2) && e.jsx(_r, { ref: V2, data: D2.slice(0, f2), highlighting: k2.highlighting, disableSuggestions: O2, searchText: N2, retrieveFocus: function() { 6016 var e2; 6017 null === (e2 = G2.current) || void 0 === e2 || e2.focus(), B2(true); 6018 }, loading: z2, renderListItem: k2.renderListItem, noResultsText: k2.noResultsText, showNoResultsText: i2, suggestionsIcon: k2.suggestionsIcon, onClick: W2 })] }) }))] })); 6019 }, exports3.SingleDatePicker = mo, exports3.Spinner = U, exports3.StringValidation = Va, exports3.Sublabel = No, exports3.Suggestions = _r, exports3.Summary = function(t2) { 6020 var o2, n2 = t2.title, a2 = t2.subtitle, r2 = t2.description, i2 = t2.footer, l2 = t2.groups, c2 = _(t2, ["title", "subtitle", "description", "footer", "groups"]), d2 = "".concat(h, "-summary"), s2 = "".concat(d2, "-group"), m2 = [d2, kn.base]; 6021 return c2.theme && m2.push("".concat(h, "-summary--theme-").concat(c2.theme, " ").concat(kn["theme--".concat(c2.theme)])), e.jsxs("div", u({ className: m2.join(" ") }, { children: [n2.length > 0 && e.jsx(w, u({ level: null !== (o2 = c2.titleHeadingLevel) && void 0 !== o2 ? o2 : 2, className: "".concat(d2, "-header-title") }, { children: n2 })), a2 && e.jsx("span", u({ className: "".concat(d2, "-header-subtitle") }, { children: a2 })), r2 && e.jsx("p", u({ className: "".concat(d2, "-header-description") }, { children: r2 })), l2.map(function(t3, o3) { 6022 var n3, a3 = t3.title, r3 = t3.description, i3 = t3.fields, l3 = t3.fieldsAlt; 6023 return e.jsxs("div", u({ className: s2 + " " + kn.group }, { children: [e.jsxs("div", u({ className: "".concat(s2, "-header") }, { children: [a3.length > 0 && e.jsx(w, u({ className: "".concat(s2, "-header-title"), level: Math.min((null !== (n3 = c2.titleHeadingLevel) && void 0 !== n3 ? n3 : 2) + 1, 6) }, { children: a3 })), e.jsx("p", u({ className: "".concat(s2, "-header-description") }, { children: r3 }))] })), e.jsxs("div", u({ className: "".concat(s2, "-body ").concat(kn["group-body"]) }, { children: [!l3 && i3 && i3.map(function(t4, o4) { 6024 return e.jsxs("div", u({ className: "".concat(s2, "-body-field ").concat(kn["group-body-field"]) }, { children: [e.jsx("label", u({ id: "".concat(s2, "-body-field-label-").concat(o4), className: "".concat(s2, "-body-field-label") }, { children: t4.label })), e.jsx("div", u({ className: "".concat(s2, "-body-field-value-container ").concat(kn["group-body-field-container"]) }, { children: e.jsx("div", u({ "aria-describedby": "".concat(s2, "-body-field-label-").concat(o4), className: "".concat(s2, "-body-field-value ").concat(kn["group-body-field-value"]), dangerouslySetInnerHTML: t4.isHTML ? { __html: t4.value } : void 0 }, { children: t4.isHTML ? void 0 : t4.value })) }))] }), o4); 6025 }), !i3 && e.jsxs(e.Fragment, { children: [l3 && l3.constructor !== Array && Gi(l3, s2), l3 && l3.constructor === Array && l3.map(function(e2) { 6026 return Gi(e2, s2); 6027 })] })] }))] }), o3); 6028 }), e.jsx("div", u({ className: "".concat(d2, "-footer") }, { children: i2 }))] })); 6029 }, exports3.Tab = jr, exports3.Table = vr, exports3.Tabs = function(o2) { 6030 var n2 = o2.onChange, a2 = void 0 === n2 ? void 0 : n2, i2 = _(o2, ["onChange"]), l2 = t.useState([]), c2 = l2[0], d2 = l2[1], s2 = t.useState([]), m2 = s2[0], p2 = s2[1], b2 = t.useState([]), f2 = b2[0], g2 = b2[1], v2 = t.useState([]), x2 = v2[0], y2 = v2[1], k2 = t.useState(false), w2 = k2[0], N2 = k2[1]; 6031 t.useEffect(function() { 6032 var e2 = []; 6033 g2(r.Children.map(i2.children, function(o3, n3) { 6034 if (e2.push(null), r.isValidElement(o3)) { 6035 e2[n3] = t.createRef(); 6036 var a3 = o3.props, i3 = { ref: e2[n3], selected: a3.selected }; 6037 return r.cloneElement(o3, i3); 6038 } 6039 return o3; 6040 })), d2(e2); 6041 }, [i2.children]), t.useEffect(function() { 6042 var o3 = []; 6043 y2(c2.map(function(n3, r2) { 6044 var l3 = "tab", d3 = ""; 6045 return o3.push(t.createRef()), n3 && n3.current && (n3.current.getTitle && (l3 = n3.current.getTitle()), i2.children[r2].props.selected && (d3 = "".concat(h, "-content-tabs--selected ").concat(Nr))), e.jsx("div", u({ className: "".concat(h, "-content-tabs-header-item ").concat(wr) }, { children: e.jsx("button", u({ type: "button", tabIndex: r2 ? -1 : 0, role: "tab", ref: o3[r2], className: d3, onClick: function() { 6046 !function(e2) { 6047 var t2, o4 = 0; 6048 c2.forEach(function(t3) { 6049 t3 && t3.current && t3.current.setVisibility && t3.current.setVisibility(false), a2 && t3 === e2 && a2(o4), o4++; 6050 }), (null === (t2 = null == e2 ? void 0 : e2.current) || void 0 === t2 ? void 0 : t2.setVisibility) && e2.current.setVisibility(true), N2(!w2); 6051 }(n3); 6052 } }, { children: l3 })) }), "tabkey-" + l3 + "-" + r2); 6053 })), p2(o3); 6054 }, [f2, w2, i2.children]); 6055 var C2 = ["".concat(h, "-content-tabs"), yr], j2 = ["".concat(h, "-content-tabs-body"), Cr]; 6056 return i2.className && C2.push(i2.className), e.jsxs("div", u({ className: C2.join(" "), id: i2.id, onKeyDown: function(e2) { 6057 var t2; 6058 "ArrowRight" == e2.key ? (t2 = true, m2.forEach(function(e3, o3) { 6059 document.activeElement === e3.current && t2 && (m2[(o3 + 1) % m2.length].current.focus(), t2 = false); 6060 })) : "ArrowLeft" == e2.key ? function() { 6061 var e3 = true; 6062 m2.forEach(function(t3, o3) { 6063 document.activeElement === t3.current && e3 && (m2[(0 == o3 ? m2.length - 1 : o3 - 1) % m2.length].current.focus(), e3 = false); 6064 }); 6065 }() : "Home" == e2.key && m2.length ? m2[0].current.focus() : "End" == e2.key && m2.length && m2[m2.length - 1].current.focus(); 6066 } }, { children: [e.jsx("div", u({ className: "".concat(h, "-content-tabs-header ").concat(kr), role: "tablist" }, { children: x2 })), e.jsx("div", u({ className: j2.join(" "), role: "tabpanel" }, { children: f2 }))] })); 6067 }, exports3.Tag = Pr, exports3.TagInput = function(o2) { 6068 var n2 = o2.status, a2 = void 0 === n2 ? "primary" : n2, r2 = o2.appearance, i2 = void 0 === r2 ? "filled" : r2, l2 = o2.name, c2 = void 0 === l2 ? void 0 : l2, d2 = o2.value, s2 = void 0 === d2 ? void 0 : d2, m2 = o2.allowDuplicates, p2 = void 0 !== m2 && m2, f2 = o2.initialTags, g2 = void 0 === f2 ? [] : f2, v2 = o2.onNewTag, x2 = void 0 === v2 ? void 0 : v2, y2 = o2.onTagChange, k2 = void 0 === y2 ? void 0 : y2, w2 = _(o2, ["status", "appearance", "name", "value", "allowDuplicates", "initialTags", "onNewTag", "onTagChange"]), N2 = t.useState(g2), C2 = N2[0], j2 = N2[1], T2 = t.useState(s2), P2 = T2[0], S2 = T2[1], D2 = w2.size, A2 = Xt.getClassNameAsArray("content-tag-input", w2); 6069 A2.push(Er.base), A2.push("".concat(h, "-content-tag-input--").concat(a2)), A2.push("".concat(h, "-content-tag-input--appearance-").concat(i2)); 6070 var E2 = function(e2) { 6071 x2 && x2(e2), k2 && k2(e2); 6072 }, R2 = function(e2, t2) { 6073 return !e2.includes(t2) || p2; 6074 }, I2 = function(e2) { 6075 M2(e2, k2(C2)); 6076 }, M2 = function(e2, t2) { 6077 j2(function(t3) { 6078 return t3.filter(function(t4, o3) { 6079 return o3 !== e2; 6080 }); 6081 }), t2 && t2(); 6082 }; 6083 return e.jsxs("span", u({ className: "".concat(h, "-content-tag-input-wrapper ").concat(Er["input-wrapper"]) }, { children: [e.jsx(Ar, { className: Er.tagList, onTagDelete: I2, tags: C2, size: D2, status: a2, appearance: i2 }), e.jsx("input", { name: c2, className: "".concat(h, "-content-tag-input"), placeholder: "enter a tag...", value: P2, onChange: function(e2) { 6084 var t2 = e2.target.value; 6085 S2(t2 = "," === t2 ? "" : t2); 6086 }, onKeyDown: function(e2) { 6087 var t2, o3 = e2.currentTarget.value; 6088 switch (e2.key) { 6089 case "Tab": 6090 o3 && e2.preventDefault(); 6091 case "Enter": 6092 case ",": 6093 (o3 = o3.trim()) && R2(C2, o3) ? R2(C2, t2 = { name: o3 }) && (j2(function(e3) { 6094 return b(b([], e3, true), [t2], false); 6095 }), S2(""), E2(C2)) : S2(""); 6096 break; 6097 case "Backspace": 6098 o3 || I2(C2.length - 1); 6099 } 6100 } })] })); 6101 }, exports3.TagList = Ar, exports3.TextArea = so, exports3.Textarea = Xn, exports3.Timeline = nn, exports3.Toggle = gn, exports3.Tooltip = function(o2) { 6102 var n2 = _(o2, []), a2 = t.useState(false), r2 = a2[0], i2 = a2[1], l2 = t.useRef(null); 6103 if (!(n2.text && "" !== n2.text || n2.children && 0 !== n2.children)) return null; 6104 t.useEffect(function() { 6105 var e2 = function(e3) { 6106 l2.current && r2 && !l2.current.contains(e3.target) && i2(false); 6107 }; 6108 return document.addEventListener("click", e2, true), function() { 6109 document.removeEventListener("click", e2, true); 6110 }; 6111 }); 6112 var c2 = ["".concat(h, "-tooltip"), Rr]; 6113 return e.jsxs("div", u({ id: n2.id, className: c2.join(" "), onKeyDown: function(e2) { 6114 "Escape" === e2.key && i2(false); 6115 }, ref: l2 }, { children: [e.jsxs("button", u({ className: "".concat(h, "-content-tooltip-trigger ").concat(Ir), type: "button", id: n2.id ? "".concat(n2.id, "-button") : void 0, "aria-labelledby": n2.id ? "".concat(n2.id, "-tooltip") : void 0, "aria-expanded": r2, onClick: function() { 6116 return i2(!r2); 6117 } }, { children: ["?", e.jsx("span", u({ className: "".concat(h, "-content-tooltip-trigger-text ").concat(zr) }, { children: n2.htmlTitle }))] })), e.jsxs("div", u({ id: n2.id ? "".concat(n2.id, "-tooltip") : void 0, role: "tooltip", className: "".concat(h, "-content-tooltip-content ").concat(Mr) }, { children: [n2.text && n2.text, n2.children, e.jsx("button", { "aria-label": "Knapp for å lukke tooltip", className: "".concat(h, "-content-tooltip-close-icon ").concat(Lr), onClick: function() { 6118 return i2(false); 6119 } })] }))] })); 6120 }, exports3.Transition = Ho, exports3.ValidateFormElement = _e, exports3.Validation = Ha, exports3.VanillaEventBroker = hl, exports3.Wizard = ln, exports3.WizardStep = rn, exports3.callApi = ae, exports3.callApiMultiForm = function(e2, t2, o2, n2, a2, r2, i2) { 6121 return m(this, void 0, void 0, function() { 6122 var l2 = this; 6123 return p(this, function(c2) { 6124 return [2, new Promise(function(c3, d2) { 6125 var s2 = new Headers(); 6126 s2.delete("Content-Type"), window.portalID && s2.append("PortalID", window.portalID), window.portalID && s2.append("MenypunktID", window.menypunktID), window.portalID && s2.append("SprakID", window.sprakID), window.webobjektID && s2.append("WebObjektID", window.webobjektID), window.objektID && s2.append("ObjektID", window.objektID); 6127 var u2 = ne(); 6128 u2 && s2.append("DeviceType", u2), s2.append("X-ANTI-CSRF", "1"), s2.append("enctype", "multipart/form-data"); 6129 var _2 = new FormData(); 6130 if (r2) for (var b2 = 0; b2 < r2.length; b2++) _2.append("files" + b2, r2[b2]); 6131 _2.append(n2, JSON.stringify(a2)); 6132 var h2 = { method: e2, headers: s2, body: _2, credentials: "same-origin" }; 6133 i2 && (h2.signal = i2.signal), fetch("".concat(t2).
6133concat(o2), h2).then(function(e3) { 6134 return m(l2, void 0, void 0, function() { 6135 var t3; 6136 return p(this, function(o3) { 6137 switch (o3.label) { 6138 case 0: 6139 return [4, e3.json()]; 6140 case 1: 6141 return t3 = o3.sent(), e3.ok && 200 === t3.statusCode ? c3(t3) : d2(t3), [2]; 6142 } 6143 }); 6144 }); 6145 }).catch(function(e3) { 6146 "AbortError" !== e3.name && d2(e3); 6147 }); 6148 })]; 6149 }); 6150 }); 6151 }, exports3.createResponseConfig = function(e2) { 6152 var t2; 6153 return void 0 === e2 && (e2 = {}), { redirectOn404: null === (t2 = e2.redirectOn404) || void 0 === t2 || t2 }; 6154 }, exports3.cssClassPrefix = h, exports3.dateToString = J, exports3.focusChild = te, exports3.getAPIEndPoint = function() { 6155 return window.API_ENDPOINT_V2 ? window.API_ENDPOINT_V2 : window.top !== window.self && window.top.API_ENDPOINT_V2 ? window.top.API_ENDPOINT_V2 : "/api/v2"; 6156 }, exports3.getAPIEndPointLegacy = function() { 6157 return window.API_ENDPOINT || "/api"; 6158 }, exports3.getBaseUrl = function() { 6159 return window.BASE_URL ? window.BASE_URL : window.top !== window.self && window.top.BASE_URL ? window.top.BASE_URL : "/"; 6160 }, exports3.getCurrentUrlWithoutParameter = function(e2) { 6161 for (var t2 = window.location.href, o2 = 0; o2 < e2.length; o2++) { 6162 var n2 = Bl(e2[o2]); 6163 t2 = (t2 = t2.replace("&".concat(e2[o2], "=").concat(n2), "")).replace("?".concat(e2[o2], "=").concat(n2), ""); 6164 } 6165 return t2; 6166 }, exports3.getDeviceType = ne, exports3.getUniqueID = function(e2) { 6167 var t2 = Math.random().toString(36).substr(2, 9); 6168 return "__".concat(e2, "--").concat(t2); 6169 }, exports3.getUrlParameter = Bl, exports3.handleApiResponse = function(e2, t2) { 6170 if (t2.redirectOn404 && 404 === e2.statusCode && (window.location.href = "/404"), !e2.statusCode || 200 !== e2.statusCode) throw new Error(e2.messages.join(", ")); 6171 return e2.content; 6172 }, exports3.isValidDate = X, exports3.stringToDate = Y, exports3.useApi = function(e2, o2) { 6173 var n2 = this; 6174 void 0 === e2 && (e2 = "POST"); 6175 var a2 = t.useState(true), r2 = a2[0], i2 = a2[1], l2 = t.useState(), c2 = l2[0], d2 = l2[1], s2 = t.useState(), u2 = s2[0], _2 = s2[1], b2 = t.useCallback(function(t2, a3, r3) { 6176 return m(n2, void 0, void 0, function() { 6177 var n3, l3; 6178 return p(this, function(c3) { 6179 switch (c3.label) { 6180 case 0: 6181 i2(true), c3.label = 1; 6182 case 1: 6183 return c3.trys.push([1, 3, 4, 5]), [4, ae(e2, o2, t2, a3, void 0, r3)]; 6184 case 2: 6185 return n3 = c3.sent(), d2(n3.content), 200 !== n3.statusCode && _2(n3.messages), [2, n3.content]; 6186 case 3: 6187 return (l3 = c3.sent()).messages ? _2(l3.messages) : _2([{ text: "Noe gikk galt. Prøv igjen senere." }]), [3, 5]; 6188 case 4: 6189 return i2(false), [7]; 6190 case 5: 6191 return [2]; 6192 } 6193 }); 6194 }); 6195 }, [e2, o2]); 6196 return [b2, r2, c2, u2, d2]; 6197 }, exports3.useTranslation = Ki, exports3.withBaseUrl = function(e2) { 6198 var t2 = ""; 6199 return void 0 === e2 || "" === e2 ? "" : (window.BASE_URL && (t2 = window.BASE_URL), "" === t2 && window.top !== window.self && window.top.BASE_URL && (t2 = window.top.BASE_URL), "" === t2 && (t2 = "/"), e2.startsWith("/") ? t2 + e2.substring(1, e2.length) : t2 + e2); 6200 }, exports3.withCharacterCounter = function(o2) { 6201 var n2, a2, r2 = function(n3) { 6202 var a3, r3, i2, l2 = t.useState(null !== (r3 = null === (a3 = n3.defaultValue) || void 0 === a3 ? void 0 : a3.length) && void 0 !== r3 ? r3 : 0), c2 = l2[0], d2 = l2[1], s2 = null !== (i2 = n3.maxLength) && void 0 !== i2 ? i2 : 0; 6203 return e.jsxs(e.Fragment, { children: [e.jsx(o2, u({}, n3, { onChange: function(e2) { 6204 var t2 = e2.target.value; 6205 d2(t2.length), n3.onChange && n3.onChange(e2); 6206 } })), e.jsxs("span", u({ className: Ta }, { children: [c2, " / ", s2] }))] }); 6207 }; 6208 return r2.displayName = "withCharacterCounter(".concat(null !== (a2 = null !== (n2 = o2.displayName) && void 0 !== n2 ? n2 : o2.name) && void 0 !== a2 ? a2 : "Component", ")"), r2; 6209 }, exports3.withClearButton = function(o2) { 6210 var n2 = function(n3, a2) { 6211 var r2 = n3.onClearButtonClick, i2 = n3.showClearButton, l2 = n3.clearButtonProps, c2 = _(n3, ["onClearButtonClick", "showClearButton", "clearButtonProps"]), d2 = t.useRef(null); 6212 return e.jsxs("div", u({ className: Pa, ref: d2 }, { children: [e.jsx(o2, u({}, c2, { ref: a2 })), i2 && e.jsx(Q, u({ className: Sa, onClick: function() { 6213 r2 && r2(), te(d2); 6214 }, appearance: "icon" }, l2, { children: e.jsx(q, { icon: "ri-close-line" }) }))] })); 6215 }; 6216 return n2.displayName = "withClearButton(".concat(o2.displayName || o2.name || "Component", ")"), t.forwardRef(n2); 6217 }, exports3.withDatepicker = function(o2) { 6218 var n2 = function(n3) { 6219 var a2, r2 = n3.onChange, i2 = n3.onKeyDown, l2 = n3.onClick, c2 = n3.openDatePickerAria, d2 = n3.value, s2 = n3.defaultValue, m2 = n3.datepickerProps, p2 = _(n3, ["onChange", "onKeyDown", "onClick", "openDatePickerAria", "value", "defaultValue", "datepickerProps"]), b2 = t.useState(null !== (a2 = null != d2 ? d2 : s2) && void 0 !== a2 ? a2 : ""), h2 = b2[0], f2 = b2[1], g2 = t.useState(false), v2 = g2[0], x2 = g2[1], y2 = t.useRef(null); 6220 t.useEffect(function() { 6221 d2 && !isNaN(Date.parse(d2)) && f2(d2); 6222 }, [d2]); 6223 var k2 = t.useCallback(function(e2) { 6224 "Escape" !== e2.key && "Enter" !== e2.key || (e2.stopPropagation(), e2.preventDefault(), x2(false)); 6225 }, []), w2 = t.useCallback(function(e2) { 6226 null == i2 || i2(e2), " " === e2.key && (e2.stopPropagation(), e2.preventDefault(), x2(true)); 6227 }, [i2]), N2 = t.useCallback(function(e2) { 6228 f2(e2.target.value), null == r2 || r2(e2); 6229 }, [r2]), C2 = t.useCallback(function(e2) { 6230 e2.preventDefault(), null == l2 || l2(e2); 6231 }, [l2]), j2 = null != m2 ? m2 : {}, T2 = j2.className, P2 = _(j2, ["className"]); 6232 return e.jsxs("div", u({ className: Da.base, onKeyDown: k2 }, { children: [e.jsx(o2, u({ value: h2, type: "date", ref: y2, onChange: N2, onKeyDown: w2, onClick: C2 }, p2)), e.jsx(Q, u({ className: Da.button, appearance: "icon", onClick: function() { 6233 x2(!v2); 6234 }, "aria-label": c2 }, { children: e.jsx(q, { icon: "ri-calendar-line" }) })), e.jsx(Ra, u({ show: v2, preferredPlacement: "bottom", target: y2, className: Da.balloon }, { children: e.jsx(ht, u({ active: v2, focusTrapOptions: { clickOutsideDeactivates: true, onDeactivate: function() { 6235 var e2; 6236 x2(false), null === (e2 = y2.current) || void 0 === e2 || e2.focus(); 6237 } } }, { children: e.jsx("div", { children: e.jsx(pe, u({}, P2, { onChange: function(e2) { 6238 var t2 = "string" != typeof e2 ? J(e2) : e2; 6239 f2(t2), null == r2 || r2({ target: { value: t2 } }); 6240 }, className: [Da.datepicker, T2].join(" "), value: h2 })) }) })) }))] })); 6241 }; 6242 return n2.displayName = "withDatepicker(".concat(o2.displayName || o2.name || "Component", ")"), n2; 6243 }, exports3.withErrorMessage = ha, exports3.withIcon = function(o2) { 6244 var n2 = function(t2, n3) { 6245 var a2 = t2.icon, r2 = t2.iconPosition, i2 = _(t2, ["icon", "iconPosition"]); 6246 return e.jsxs("div", u({ className: za.base }, { children: [e.jsx(o2, u({}, i2, { ref: n3 })), a2 && e.jsx(q, { icon: a2, className: za["icon--" + r2] })] })); 6247 }; 6248 return n2.displayName = "withIcon(".concat(o2.displayName || o2.name || "Component", ")"), t.forwardRef(n2); 6249 }, exports3.withShowPasswordButton = function(o2) { 6250 var n2 = function(n3) { 6251 var a2 = t.useState(false), r2 = a2[0], i2 = a2[1]; 6252 return e.jsxs("div", u({ className: Ia }, { children: [e.jsx(o2, u({}, n3, { type: r2 ? "text" : "password" })), e.jsx(Q, u({ className: Ma, appearance: "icon", onClick: function() { 6253 i2(!r2); 6254 } }, { children: e.jsx(q, { icon: r2 ? "ri-eye-line" : "ri-eye-off-line" }) }))] })); 6255 }; 6256 return n2.displayName = "withShowPasswordButton(".concat(o2.displayName || o2.name || "Component", ")"), n2; 6257 }, exports3.withSuggestions = function(o2) { 6258 var n2 = function(n3) { 6259 var a2 = n3.suggestions, r2 = _(n3, ["suggestions"]), i2 = t.useState([]), l2 = i2[0], c2 = i2[1], d2 = t.useRef(null), s2 = t.useRef([]); 6260 t.useEffect(function() { 6261 c2(a2.suggestions || []); 6262 }, [a2.suggestions]); 6263 var m2 = function(e2) { 6264 var t2, o3, n4, a3, r3; 6265 if ("ArrowDown" === e2.key) e2.preventDefault(), (l3 = ((i3 = s2.current.findIndex(function(e3) { 6266 return e3 === document.activeElement; 6267 })) + 1) % (s2.current.length + 1)) === s2.current.length ? null === (t2 = d2.current) || void 0 === t2 || t2.focus() : null === (o3 = s2.current[l3]) || void 0 === o3 || o3.focus(); 6268 else if ("ArrowUp" === e2.key) { 6269 var i3, l3; 6270 e2.preventDefault(), (l3 = 0 === (i3 = s2.current.findIndex(function(e3) { 6271 return e3 === document.activeElement; 6272 })) ? s2.current.length : i3 - 1) === s2.current.length ? null === (n4 = d2.current) || void 0 === n4 || n4.focus() : null === (a3 = s2.current[l3]) || void 0 === a3 || a3.focus(); 6273 } else "Escape" === e2.key && (e2.preventDefault(), null === (r3 = d2.current) || void 0 === r3 || r3.focus(), c2([])); 6274 }; 6275 return e.jsxs("div", u({ className: La.base }, { children: [e.jsx(o2, u({}, r2, { ref: d2, onKeyDown: function(e2) { 6276 m2(e2), r2.onKeyDown && r2.onKeyDown(e2); 6277 } })), a2.search.length >= a2.minLength && e.jsxs("ul", u({ className: ["".concat(h, "-suggestions"), La.suggestions].join(" "), role: "listbox" }, { children: [a2.loading && e.jsx("li", u({ className: [La.suggestion].join(" "), role: "option" }, { children: e.jsx(Oa, {}) })), !a2.loading && (null == l2 ? void 0 : l2.map(function(t2, o3) { 6278 return e.jsx("li", u({ className: ["".concat(h, "-suggestion"), La.suggestion].join(" ") }, { children: e.jsx("button", u({ type: "button", role: "option", className: "".concat(h, "-suggestion-button"), ref: function(e2) { 6279 return s2.current[o3] = e2; 6280 }, onClick: function() { 6281 return a2.onSelect && a2.onSelect(t2); 6282 }, onKeyDown: function(e2) { 6283 "Enter" != e2.key && " " != e2.key || !a2.onSelect || (e2.preventDefault(), a2.onSelect(t2)), m2(e2); 6284 } }, { children: t2.value })) }), o3); 6285 }))] }))] })); 6286 }; 6287 return n2.displayName = "withSuggestions(".concat(o2.displayName || o2.name || "Component", ")"), n2; 6288 }; 6289 })(dist); 6290 return dist; 6291 } 6292 var distExports = requireDist(); 6293 var reactExports = requireReact(); 6294 const getBaseUrl$1 = () => { 6295 return window.baseUrl || ""; 6296 }; 6297 const sendMail = async (mail, personIdentifier, abortController, success, _error) => { 6298 const mailRequest = { 6299 from: mail.from, 6300 message: mail.message, 6301 reCAPTCHA: mail.reCAPTCHA, 6302 title: mail.title, 6303 personIdentifier 6304 }; 6305 try { 6306 const baseUrl = getBaseUrl$1(); 6307 const apiPath = baseUrl && baseUrl.length > 0 ? `${baseUrl}/api/presentation/v2/person/` : "api/presentation/v2/person/"; 6308 const result = await distExports.callApi("POST", apiPath, "sendemailmessage", mailRequest, void 0, abortController); 6309 if (!result) { 6310 throw new Error("API call failed"); 6311 } 6312 if (success) { 6313 success(); 6314 } 6315 } catch (error) { 6316 if (_error) { 6317 _error(error); 6318 } 6319 } 6320 }; 6321 const fetchContactModalConfig = async () => { 6322 try { 6323 const apiResult = await distExports.callApi("GET", `/api/presentation/v2/person/`, "contact-modal-configuration", void 0, void 0); 6324 if (!apiResult || !apiResult.content) { 6325 throw new Error("Failed to fetch contact modal configuration"); 6326 } 6327 const result = apiResult.content; 6328 const translations = { 6329 mailFormHeader: result.mailFormTranslations.mailFormHeader, 6330 mailFormTitle: result.mailFormTranslations.mailFormTitle, 6331 mailFormText: result.mailFormTranslations.mailFormText, 6332 mailFormFrom: result.mailFormTranslations.mailFormFrom, 6333 mailFormRequired: result.mailFormTranslations.mailFormRequired, 6334 mailFormFieldRequired: result.mailFormTranslations.mailFormFieldRequired, 6335 mailFormFieldTitleRequired: result.mailFormTranslations.mailFormFieldTitleRequired, 6336 mailFormFieldContentRequired: result.mailFormTranslations.mailFormFieldContentRequired, 6337 mailFormFieldMailRequired: result.mailFormTranslations.mailFormFieldMailRequired, 6338 mailFormSendButton: result.mailFormTranslations.mailFormSendButton, 6339 mailFormCancelButton: result.mailFormTranslations.mailFormCancelButton, 6340 mailFormAriaDetailCloseTopButton: result.mailFormTranslations.mailFormAriaDetailCloseTopButton, 6341 mailFormMinimumErrorText: result.mailFormTranslations.mailFormMinimumErrorText, 6342 mailFormInputTypeError: result.mailFormTranslations.mailFormInputTypeError, 6343 mailFormFromError: result.mailFormTranslations.mailFormFromError, 6344 mailFormRecaptchaError: result.mailFormTranslations.mailFormRecaptchaError, 6345 mailFormAllFieldsAreObligatory: result.mailFormTranslations.mailFormAllFieldsAreObligatory, 6346 receiptTitle: result.mailFormTranslations.receiptTitle, 6347 receiptBodyMailTo: result.mailFormTranslations.receiptBodyMailTo, 6348 receiptBodySent: result.mailFormTranslations.receiptBodySent, 6349 receiptClose: result.mailFormTranslations.receiptClose, 6350 receiptErrorTitle: result.mailFormTranslations.receiptErrorTitle, 6351 receiptErrorBody: result.mailFormTranslations.receiptErrorBody 6352 }; 6353 return { 6354 translations, 6355 reCaptchaSiteKey: result.reCaptchaSiteKey || "" 6356 }; 6357 } catch (error) { 6358 console.error("Error fetching contact modal configuration:", error); 6359 return { 6360 translations: {}, 6361 reCaptchaSiteKey: "" 6362 }; 6363 } 6364 }; 6365 const sendMailWithEncryptedEmail = async (mail, encryptedEmail, abortController, success, _error) => { 6366 const mailRequest = { 6367 from: mail.from, 6368 message: mail.message, 6369 reCAPTCHA: mail.reCAPTCHA, 6370 title: mail.title, 6371 emailAddressEncrypted: encryptedEmail 6372 }; 6373 try { 6374 const result = await distExports.callApi("POST", `/api/presentation/v2/person/`, "sendemailmessagewithemail", mailRequest, void 0, abortController); 6375 if (!result) { 6376 throw new Error("API call failed"); 6377 } 6378 if (success) { 6379 success(); 6380 } 6381 } catch (error) { 6382 if (_error) { 6383 _error(error); 6384 } 6385 } 6386 }; 6387 const ContactModal = ({ 6388 personName, 6389 personIdentifier, 6390 translations = {}, 6391 reCaptchaSiteKey, 6392 showMailForm, 6393 setShowMailForm, 6394 encryptedEmailAddress 6395 }) => { 6396 const { 6397 mailFormTitle, 6398 mailFormHeader, 6399 mailFormText, 6400 mailFormFieldContentRequired, 6401 mailFormFieldMailRequired, 6402 mailFormFieldTitleRequired, 6403 mailFormSendButton, 6404 mailFormCancelButton, 6405 mailFormAriaDetailCloseTopButton, 6406 mailFormMinimumErrorText, 6407 mailFormInputTypeError, 6408 mailFormFrom, 6409 mailFormFromError, 6410 mailFormRecaptchaError, 6411 mailFormAllFieldsAreObligatory, 6412 receiptTitle, 6413 receiptBodyMailTo, 6414 receiptBodySent, 6415 receiptClose, 6416 receiptErrorBody 6417 } = translations; 6418 const [loading, setLoading] = reactExports.useState(false); 6419 const [showMailReceipt, setShowMailReceipt] = reactExports.useState(false); 6420 const [showMailReceiptError, setShowMailReceiptErr
6420or] = reactExports.useState(false); 6421 const abortControllerSendMail = reactExports.useRef(null); 6422 const handleMailFormClose = () => { 6423 setShowMailReceipt(false); 6424 setShowMailReceiptError(false); 6425 setShowMailForm(false); 6426 if (abortControllerSendMail.current && !abortControllerSendMail.current.signal.aborted) { 6427 abortControllerSendMail.current.abort(); 6428 setLoading(false); 6429 } 6430 }; 6431 const mailSentSuccess = () => { 6432 setShowMailForm(false); 6433 setShowMailReceipt(true); 6434 }; 6435 const mailSentError = (_error) => { 6436 setShowMailForm(false); 6437 setShowMailReceiptError(true); 6438 }; 6439 const handleSendMail = (data) => { 6440 if (abortControllerSendMail.current) { 6441 abortControllerSendMail.current.abort(); 6442 abortControllerSendMail.current = null; 6443 } 6444 abortControllerSendMail.current = new AbortController(); 6445 setLoading(true); 6446 if (encryptedEmailAddress) { 6447 sendMailWithEncryptedEmail(data, encryptedEmailAddress, abortControllerSendMail.current, mailSentSuccess, mailSentError).finally(() => { 6448 setLoading(false); 6449 }); 6450 } else if (personIdentifier) { 6451 sendMail(data, personIdentifier, abortControllerSendMail.current, mailSentSuccess, mailSentError).finally(() => { 6452 setLoading(false); 6453 }); 6454 } else { 6455 console.error("Cannot send mail: No recipient information provided"); 6456 mailSentError(); 6457 setLoading(false); 6458 } 6459 }; 6460 return /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(jsxDevRuntimeExports.Fragment, { children: [
6461 /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV( 6462 distExports.MailForm, 6463 { 6464 id: "contact-modal-mail-form", 6465 show: showMailForm, 6466 texts: { 6467 formTitle: mailFormHeader && personName ? mailFormHeader + " " + personName : mailFormHeader || "", 6468 cancelButton: mailFormCancelButton ?? "", 6469 contentLabelText: mailFormText ?? "", 6470 contentMinimumErrorText: (mailFormMinimumErrorText == null ? void 0 : mailFormMinimumErrorText.replace("#0#", "5")) ?? "", 6471 contentRequiredErrorText: mailFormFieldContentRequired ?? "", 6472 contentTypeErrorText: mailFormInputTypeError ?? "", 6473 fromLabelText: mailFormFrom ?? "", 6474 fromMailErrorText: mailFormFromError ?? "", 6475 fromMinimumErrorText: (mailFormMinimumErrorText == null ? void 0 : mailFormMinimumErrorText.replace("#0#", "3")) ?? "", 6476 fromRequiredErrorText: mailFormFieldMailRequired ?? "", 6477 fromTypeErrorText: mailFormInputTypeError ?? "", 6478 sendButton: mailFormSendButton ?? "", 6479 titleLabelText: mailFormTitle ?? "", 6480 titleMinimumErrorText: (mailFormMinimumErrorText == null ? void 0 : mailFormMinimumErrorText.replace("#0#", "3")) ?? "", 6481 titleRequiredErrorText: mailFormFieldTitleRequired ?? "", 6482 titleTypeErrorText: mailFormInputTypeError ?? "", 6483 modalAriaDetailCloseTopButton: mailFormAriaDetailCloseTopButton ?? "", 6484 recaptchaErrorText: mailFormRecaptchaError ?? "", 6485 modalAllFieldsAreObligatory: mailFormAllFieldsAreObligatory ?? "" 6486 }, 6487 onClose: () => { 6488 handleMailFormClose(); 6489 }, 6490 reCAPTCHAVersion: reCaptchaSiteKey !== "" ? "V2" : reCaptchaSiteKey, 6491 onSubmit: (data) => handleSendMail(data), 6492 siteKey: reCaptchaSiteKey, 6493 loading 6494 }, 6495 void 0, 6496 false, 6497 { 6498 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6499 lineNumber: 124, 6500 columnNumber: 9 6501 }, 6502 void 0 6503 ),
6504 /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV( 6505 distExports.Modal, 6506 { 6507 show: showMailReceipt, 6508 onClose: () => handleMailFormClose(), 6509 closable: true, 6510 size: "small", 6511 variant: "information", 6512 title: receiptTitle, 6513 ariaDetailCloseTopButton: mailFormAriaDetailCloseTopButton, 6514 closeText: receiptClose, 6515 closeTextAria: mailFormAriaDetailCloseTopButton, 6516 children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(distExports.Alert, { variant: "success", show: true, children: personName ? receiptBodyMailTo + " " + personName + " " + receiptBodySent : receiptBodySent || "Melding sendt" }, void 0, false, { 6517 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6518 lineNumber: 165, 6519 columnNumber: 17 6520 }, void 0) 6521 }, 6522 void 0, 6523 false, 6524 { 6525 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6526 lineNumber: 154, 6527 columnNumber: 13 6528 }, 6529 void 0 6530 ),
6531 /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV( 6532 distExports.Modal, 6533 { 6534 show: showMailReceiptError, 6535 onClose: () => { 6536 setShowMailReceiptError(false); 6537 }, 6538 closable: true, 6539 size: "small", 6540 variant: "information", 6541 ariaDetailCloseTopButton: mailFormAriaDetailCloseTopButton, 6542 closeText: receiptClose, 6543 closeTextAria: mailFormAriaDetailCloseTopButton, 6544 children: /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV(distExports.Alert, { variant: "danger", show: true, children: receiptErrorBody }, void 0, false, { 6545 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6546 lineNumber: 181, 6547 columnNumber: 17 6548 }, void 0) 6549 }, 6550 void 0, 6551 false, 6552 { 6553 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6554 lineNumber: 171, 6555 columnNumber: 13 6556 }, 6557 void 0 6558 ) 6559 ] }, void 0, true, { 6560 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/components/ContactModal/ContactModal.tsx", 6561 lineNumber: 123, 6562 columnNumber: 9 6563 }, void 0); 6564 }; 6565 var client = { exports: {} }; 6566 var scheduler = { exports: {} }; 6567 var scheduler_development = {}; 6568 var hasRequiredScheduler_development; 6569 function requireScheduler_development() { 6570 if (hasRequiredScheduler_development) return scheduler_development; 6571 hasRequiredScheduler_development = 1; 6572 (function(exports3) { 6573 /** 6574 * @license React 6575 * scheduler.development.js 6576 * 6577 * Copyright (c) Meta Platforms, Inc. and affiliates. 6578 * 6579 * This source code is licensed under the MIT license found in the 6580 * LICENSE file in the root directory of this source tree. 6581 */ 6582 (function() { 6583 function performWorkUntilDeadline() { 6584 needsPaint = false; 6585 if (isMessageLoopRunning) { 6586 var currentTime = exports3.unstable_now(); 6587 startTime = currentTime; 6588 var hasMoreWork = true; 6589 try { 6590 a: { 6591 isHostCallbackScheduled = false; 6592 isHostTimeoutScheduled && (isHostTimeoutScheduled = false, localClearTimeout(taskTimeoutID), taskTimeoutID = -1); 6593 isPerformingWork = true; 6594 var previousPriorityLevel = currentPriorityLevel; 6595 try { 6596 b: { 6597 advanceTimers(currentTime); 6598 for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost()); ) { 6599 var callback = currentTask.callback; 6600 if ("function" === typeof callback) { 6601 currentTask.callback = null; 6602 currentPriorityLevel = currentTask.priorityLevel; 6603 var continuationCallback = callback( 6604 currentTask.expirationTime <= currentTime 6605 ); 6606 currentTime = exports3.unstable_now(); 6607 if ("function" === typeof continuationCallback) { 6608 currentTask.callback = continuationCallback; 6609 advanceTimers(currentTime); 6610 hasMoreWork = true; 6611 break b; 6612 } 6613 currentTask === peek(taskQueue) && pop(taskQueue); 6614 advanceTimers(currentTime); 6615 } else pop(taskQueue); 6616 currentTask = peek(taskQueue); 6617 } 6618 if (null !== currentTask) hasMoreWork = true; 6619 else { 6620 var firstTimer = peek(timerQueue); 6621 null !== firstTimer && requestHostTimeout( 6622 handleTimeout, 6623 firstTimer.startTime - currentTime 6624 ); 6625 hasMoreWork = false;
6626 } 6627 } 6628 break a; 6629 } finally { 6630 currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = false; 6631 } 6632 hasMoreWork = void 0; 6633 } 6634 } finally { 6635 hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = false; 6636 } 6637 } 6638 } 6639 function push(heap, node) { 6640 var index = heap.length; 6641 heap.push(node); 6642 a: for (; 0 < index; ) { 6643 var parentIndex = index - 1 >>> 1, parent = heap[parentIndex]; 6644 if (0 < compare(parent, node)) 6645 heap[parentIndex] = node, heap[index] = parent, index = parentIndex; 6646 else break a; 6647 } 6648 } 6649 function peek(heap) { 6650 return 0 === heap.length ? null : heap[0]; 6651 } 6652 function pop(heap) { 6653 if (0 === heap.length) return null; 6654 var first = heap[0], last = heap.pop(); 6655 if (last !== first) { 6656 heap[0] = last; 6657 a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) { 6658 var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; 6659 if (0 > compare(left, last)) 6660 rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex); 6661 else if (rightIndex < length && 0 > compare(right, last)) 6662 heap[index] = right, heap[rightIndex] = last, index = rightIndex; 6663 else break a; 6664 } 6665 } 6666 return first; 6667 } 6668 function compare(a, b) { 6669 var diff = a.sortIndex - b.sortIndex; 6670 return 0 !== diff ? diff : a.id - b.id; 6671 } 6672 function advanceTimers(currentTime) { 6673 for (var timer = peek(timerQueue); null !== timer; ) { 6674 if (null === timer.callback) pop(timerQueue); 6675 else if (timer.startTime <= currentTime) 6676 pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer); 6677 else break; 6678 timer = peek(timerQueue); 6679 } 6680 } 6681 function handleTimeout(currentTime) { 6682 isHostTimeoutScheduled = false; 6683 advanceTimers(currentTime); 6684 if (!isHostCallbackScheduled) 6685 if (null !== peek(taskQueue)) 6686 isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline()); 6687 else { 6688 var firstTimer = peek(timerQueue); 6689 null !== firstTimer && requestHostTimeout( 6690 handleTimeout, 6691 firstTimer.startTime - currentTime 6692 ); 6693 } 6694 } 6695 function shouldYieldToHost() { 6696 return needsPaint ? true : exports3.unstable_now() - startTime < frameInterval ? false : true; 6697 } 6698 function requestHostTimeout(callback, ms) { 6699 taskTimeoutID = localSetTimeout(function() { 6700 callback(exports3.unstable_now()); 6701 }, ms); 6702 } 6703 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 6704 exports3.unstable_now = void 0; 6705 if ("object" === typeof performance && "function" === typeof performance.now) { 6706 var localPerformance = performance; 6707 exports3.unstable_now = function() { 6708 return localPerformance.now(); 6709 }; 6710 } else { 6711 var localDate = Date, initialTime = localDate.now(); 6712 exports3.unstable_now = function() { 6713 return localDate.now() - initialTime; 6714 }; 6715 } 6716 var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = false, isHostCallbackScheduled = false, isHostTimeoutScheduled = false, needsPaint = false, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1; 6717 if ("function" === typeof localSetImmediate) 6718 var schedulePerformWorkUntilDeadline = function() { 6719 localSetImmediate(performWorkUntilDeadline); 6720 }; 6721 else if ("undefined" !== typeof MessageChannel) { 6722 var channel = new MessageChannel(), port = channel.port2; 6723 channel.port1.onmessage = performWorkUntilDeadline; 6724 schedulePerformWorkUntilDeadline = function() { 6725 port.postMessage(null); 6726 }; 6727 } else 6728 schedulePerformWorkUntilDeadline = function() { 6729 localSetTimeout(performWorkUntilDeadline, 0); 6730 }; 6731 exports3.unstable_IdlePriority = 5; 6732 exports3.unstable_ImmediatePriority = 1; 6733 exports3.unstable_LowPriority = 4; 6734 exports3.unstable_NormalPriority = 3; 6735 exports3.unstable_Profiling = null; 6736 exports3.unstable_UserBlockingPriority = 2; 6737 exports3.unstable_cancelCallback = function(task) { 6738 task.callback = null; 6739 }; 6740 exports3.unstable_forceFrameRate = function(fps) { 6741 0 > fps || 125 < fps ? console.error( 6742 "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" 6743 ) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5; 6744 }; 6745 exports3.unstable_getCurrentPriorityLevel = function() { 6746 return currentPriorityLevel; 6747 }; 6748 exports3.unstable_next = function(eventHandler) { 6749 switch (currentPriorityLevel) { 6750 case 1: 6751 case 2: 6752 case 3: 6753 var priorityLevel = 3; 6754 break; 6755 default: 6756 priorityLevel = currentPriorityLevel; 6757 } 6758 var previousPriorityLevel = currentPriorityLevel; 6759 currentPriorityLevel = priorityLevel; 6760 try { 6761 return eventHandler(); 6762 } finally { 6763 currentPriorityLevel = previousPriorityLevel; 6764 } 6765 }; 6766 exports3.unstable_requestPaint = function() { 6767 needsPaint = true; 6768 }; 6769 exports3.unstable_runWithPriority = function(priorityLevel, eventHandler) { 6770 switch (priorityLevel) { 6771 case 1: 6772 case 2: 6773 case 3: 6774 case 4: 6775 case 5: 6776 break; 6777 default: 6778 priorityLevel = 3; 6779 } 6780 var previousPriorityLevel = currentPriorityLevel; 6781 currentPriorityLevel = priorityLevel; 6782 try { 6783 return eventHandler(); 6784 } finally { 6785 currentPriorityLevel = previousPriorityLevel; 6786 } 6787 }; 6788 exports3.unstable_scheduleCallback = function(priorityLevel, callback, options) { 6789 var currentTime = exports3.unstable_now(); 6790 "object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime; 6791 switch (priorityLevel) { 6792 case 1: 6793 var timeout = -1; 6794 break; 6795 case 2: 6796 timeout = 250; 6797 break; 6798 case 5: 6799 timeout = 1073741823; 6800 break; 6801 case 4: 6802 timeout = 1e4; 6803 break; 6804 default: 6805 timeout = 5e3; 6806 } 6807 timeout = options + timeout; 6808 priorityLevel = { 6809 id: taskIdCounter++, 6810 callback, 6811 priorityLevel, 6812 startTime: options, 6813 expirationTime: timeout, 6814 sortIndex: -1 6815 }; 6816 options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline()))); 6817 return priorityLevel; 6818 }; 6819 exports3.unstable_shouldYield = shouldYieldToHost; 6820 exports3.unstable_wrapCallback = function(callback) { 6821 var parentPriorityLevel = currentPriorityLevel; 6822 return function() { 6823 var previousPriorityLevel = currentPriorityLevel; 6824 currentPriorityLevel = parentPriorityLevel; 6825 try { 6826 return callback.apply(this, arguments); 6827 } finally { 6828 currentPriorityLevel = previousPriorityLevel; 6829 } 6830 }; 6831 }; 6832 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 6833 })(); 6834 })(scheduler_development); 6835 return scheduler_development; 6836 } 6837 var hasRequiredScheduler; 6838 function requireScheduler() { 6839 if (hasRequiredScheduler) return scheduler.exports; 6840 hasRequiredScheduler = 1; 6841 { 6842 scheduler.exports = requireScheduler_development(); 6843 } 6844 return scheduler.exports; 6845 } 6846 var reactDomClient_development = {}; 6847 var hasRequiredReactDomClient_development; 6848 function requireReactDomClient_development() { 6849 if (hasRequiredReactDomClient_development) return reactDomClient_development; 6850 hasRequiredReactDomClient_development = 1; 6851 /** 6852 * @license React 6853 * react-dom-client.development.js 6854 * 6855 * Copyright (c) Meta Platforms, Inc. and affiliates. 6856 * 6857 * This source code is licensed under the MIT license found in the 6858 * LICENSE file in the root directory of this source tree. 6859 */ 6860 (function() { 6861 function findHook(fiber, id) { 6862 for (fiber = fiber.memoizedState; null !== fiber && 0 < id; ) 6863 fiber = fiber.next, id--; 6864 return fiber; 6865 } 6866 function copyWithSetImpl(obj, path, index, value) { 6867 if (index >= path.length) return value; 6868 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 6869 updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); 6870 return updated; 6871 } 6872 function copyWithRename(obj, oldPath, newPath) { 6873 if (oldPath.length !== newPath.length) 6874 console.warn("copyWithRename() expects paths of the same length"); 6875 else { 6876 for (var i = 0; i < newPath.length - 1; i++) 6877 if (oldPath[i] !== newPath[i]) { 6878 console.warn( 6879 "copyWithRename() expects paths to be the same except for the deepest key" 6880 ); 6881 return; 6882 } 6883 return copyWithRenameImpl(obj, oldPath, newPath, 0); 6884 } 6885 } 6886 function copyWithRenameImpl(obj, oldPath, newPath, index) { 6887 var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 6888 index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl( 6889 obj[oldKey], 6890 oldPath, 6891 newPath, 6892 index + 1 6893 ); 6894 return updated; 6895 } 6896 function copyWithDeleteImpl(obj, path, index) { 6897 var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); 6898 if (index + 1 === path.length) 6899 return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated; 6900 updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); 6901 return updated; 6902 } 6903 function shouldSuspendImpl() { 6904 return false;
6905 } 6906 function shouldErrorImpl() { 6907 return null; 6908 } 6909 function warnForMissingKey() { 6910 } 6911 function warnInvalidHookAccess() { 6912 console.error( 6913 "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks" 6914 ); 6915 } 6916 function warnInvalidContextAccess() { 6917 console.error( 6918 "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." 6919 ); 6920 } 6921 function noop$2() { 6922 } 6923 function setToSortedString(set) { 6924 var array = []; 6925 set.forEach(function(value) { 6926 array.push(value); 6927 }); 6928 return array.sort().join(", "); 6929 } 6930 function createFiber(tag, pendingProps, key, mode) { 6931 return new FiberNode(tag, pendingProps, key, mode); 6932 } 6933 function scheduleRoot(root2, element) { 6934 root2.context === emptyContextObject && (updateContainerImpl(root2.current, 2, element, root2, null, null), flushSyncWork$1()); 6935 } 6936 function scheduleRefresh(root2, update) { 6937 if (null !== resolveFamily) { 6938 var staleFamilies = update.staleFamilies; 6939 update = update.updatedFamilies; 6940 flushPendingEffects(); 6941 scheduleFibersWithFamiliesRecursively( 6942 root2.current, 6943 update, 6944 staleFamilies 6945 ); 6946 flushSyncWork$1(); 6947 } 6948 } 6949 function setRefreshHandler(handler) { 6950 resolveFamily = handler; 6951 } 6952 function isValidContainer(node) { 6953 return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType); 6954 } 6955 function getNearestMountedFiber(fiber) { 6956 var node = fiber, nearestMounted = fiber; 6957 if (fiber.alternate) for (; node.return; ) node = node.return; 6958 else { 6959 fiber = node; 6960 do 6961 node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return; 6962 while (fiber); 6963 } 6964 return 3 === node.tag ? nearestMounted : null; 6965 } 6966 function getSuspenseInstanceFromFiber(fiber) { 6967 if (13 === fiber.tag) { 6968 var suspenseState = fiber.memoizedState; 6969 null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState)); 6970 if (null !== suspenseState) return suspenseState.dehydrated; 6971 } 6972 return null; 6973 } 6974 function assertIsMounted(fiber) { 6975 if (getNearestMountedFiber(fiber) !== fiber) 6976 throw Error("Unable to find node on an unmounted component."); 6977 } 6978 function findCurrentFiberUsingSlowPath(fiber) { 6979 var alternate = fiber.alternate; 6980 if (!alternate) { 6981 alternate = getNearestMountedFiber(fiber); 6982 if (null === alternate) 6983 throw Error("Unable to find node on an unmounted component."); 6984 return alternate !== fiber ? null : fiber; 6985 } 6986 for (var a = fiber, b = alternate; ; ) { 6987 var parentA = a.return; 6988 if (null === parentA) break; 6989 var parentB = parentA.alternate; 6990 if (null === parentB) { 6991 b = parentA.return; 6992 if (null !== b) { 6993 a = b; 6994 continue; 6995 } 6996 break; 6997 } 6998 if (parentA.child === parentB.child) { 6999 for (parentB = parentA.child; parentB; ) { 7000 if (parentB === a) return assertIsMounted(parentA), fiber; 7001 if (parentB === b) return assertIsMounted(parentA), alternate; 7002 parentB = parentB.sibling; 7003 } 7004 throw Error("Unable to find node on an unmounted component."); 7005 } 7006 if (a.return !== b.return) a = parentA, b = parentB; 7007 else { 7008 for (var didFindChild = false, _child = parentA.child; _child; ) { 7009 if (_child === a) { 7010 didFindChild = true; 7011 a = parentA; 7012 b = parentB; 7013 break; 7014 } 7015 if (_child === b) { 7016 didFindChild = true; 7017 b = parentA; 7018 a = parentB; 7019 break; 7020 } 7021 _child = _child.sibling; 7022 } 7023 if (!didFindChild) { 7024 for (_child = parentB.child; _child; ) { 7025 if (_child === a) { 7026 didFindChild = true; 7027 a = parentB; 7028 b = parentA; 7029 break; 7030 } 7031 if (_child === b) { 7032 didFindChild = true; 7033 b = parentB; 7034 a = parentA; 7035 break; 7036 } 7037 _child = _child.sibling; 7038 } 7039 if (!didFindChild) 7040 throw Error( 7041 "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." 7042 ); 7043 } 7044 } 7045 if (a.alternate !== b) 7046 throw Error( 7047 "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." 7048 ); 7049 } 7050 if (3 !== a.tag) 7051 throw Error("Unable to find node on an unmounted component."); 7052 return a.stateNode.current === a ? fiber : alternate; 7053 } 7054 function findCurrentHostFiberImpl(node) { 7055 var tag = node.tag; 7056 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; 7057 for (node = node.child; null !== node; ) { 7058 tag = findCurrentHostFiberImpl(node); 7059 if (null !== tag) return tag; 7060 node = node.sibling; 7061 } 7062 return null; 7063 } 7064 function getIteratorFn(maybeIterable) { 7065 if (null === maybeIterable || "object" !== typeof maybeIterable) 7066 return null; 7067 maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"]; 7068 return "function" === typeof maybeIterable ? maybeIterable : null; 7069 } 7070 function getComponentNameFromType(type) { 7071 if (null == type) return null; 7072 if ("function" === typeof type) 7073 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 7074 if ("string" === typeof type) return type; 7075 switch (type) { 7076 case REACT_FRAGMENT_TYPE: 7077 return "Fragment";
7078 case REACT_PROFILER_TYPE: 7079 return "Profiler"; 7080 case REACT_STRICT_MODE_TYPE: 7081 return "StrictMode"; 7082 case REACT_SUSPENSE_TYPE: 7083 return "Suspense"; 7084 case REACT_SUSPENSE_LIST_TYPE: 7085 return "SuspenseList"; 7086 case REACT_ACTIVITY_TYPE: 7087 return "Activity"; 7088 } 7089 if ("object" === typeof type) 7090 switch ("number" === typeof type.tag && console.error( 7091 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." 7092 ), type.$$typeof) { 7093 case REACT_PORTAL_TYPE: 7094 return "Portal"; 7095 case REACT_CONTEXT_TYPE: 7096 return (type.displayName || "Context") + ".Provider"; 7097 case REACT_CONSUMER_TYPE: 7098 return (type._context.displayName || "Context") + ".Consumer"; 7099 case REACT_FORWARD_REF_TYPE: 7100 var innerType = type.render; 7101 type = type.displayName; 7102 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 7103 return type; 7104 case REACT_MEMO_TYPE: 7105 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 7106 case REACT_LAZY_TYPE: 7107 innerType = type._payload; 7108 type = type._init; 7109 try { 7110 return getComponentNameFromType(type(innerType)); 7111 } catch (x) { 7112 } 7113 } 7114 return null; 7115 } 7116 function getComponentNameFromOwner(owner) { 7117 return "number" === typeof owner.tag ? getComponentNameFromFiber(owner) : "string" === typeof owner.name ? owner.name : null; 7118 } 7119 function getComponentNameFromFiber(fiber) { 7120 var type = fiber.type; 7121 switch (fiber.tag) { 7122 case 31: 7123 return "Activity"; 7124 case 24: 7125 return "Cache"; 7126 case 9: 7127 return (type._context.displayName || "Context") + ".Consumer"; 7128 case 10: 7129 return (type.displayName || "Context") + ".Provider"; 7130 case 18: 7131 return "DehydratedFragment"; 7132 case 11: 7133 return fiber = type.render, fiber = fiber.displayName || fiber.name || "", type.displayName || ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef"); 7134 case 7: 7135 return "Fragment"; 7136 case 26: 7137 case 27: 7138 case 5: 7139 return type; 7140 case 4: 7141 return "Portal"; 7142 case 3: 7143 return "Root"; 7144 case 6: 7145 return "Text"; 7146 case 16: 7147 return getComponentNameFromType(type); 7148 case 8: 7149 return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; 7150 case 22: 7151 return "Offscreen"; 7152 case 12: 7153 return "Profiler"; 7154 case 21: 7155 return "Scope"; 7156 case 13: 7157 return "Suspense"; 7158 case 19: 7159 return "SuspenseList"; 7160 case 25: 7161 return "TracingMarker"; 7162 case 1: 7163 case 0: 7164 case 14: 7165 case 15: 7166 if ("function" === typeof type) 7167 return type.displayName || type.name || null; 7168 if ("string" === typeof type) return type; 7169 break; 7170 case 29: 7171 type = fiber._debugInfo; 7172 if (null != type) { 7173 for (var i = type.length - 1; 0 <= i; i--) 7174 if ("string" === typeof type[i].name) return type[i].name; 7175 } 7176 if (null !== fiber.return) 7177 return getComponentNameFromFiber(fiber.return); 7178 } 7179 return null; 7180 } 7181 function createCursor(defaultValue) { 7182 return { current: defaultValue }; 7183 } 7184 function pop(cursor, fiber) { 7185 0 > index$jscomp$0 ? console.error("Unexpected pop.") : (fiber !== fiberStack[index$jscomp$0] && console.error("Unexpected Fiber popped."), cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, fiberStack[index$jscomp$0] = null, index$jscomp$0--); 7186 } 7187 function push(cursor, value, fiber) { 7188 index$jscomp$0++; 7189 valueStack[index$jscomp$0] = cursor.current; 7190 fiberStack[index$jscomp$0] = fiber; 7191 cursor.current = value; 7192 } 7193 function requiredContext(c) { 7194 null === c && console.error( 7195 "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." 7196 ); 7197 return c; 7198 } 7199 function pushHostContainer(fiber, nextRootInstance) { 7200 push(rootInstanceStackCursor, nextRootInstance, fiber); 7201 push(contextFiberStackCursor, fiber, fiber); 7202 push(contextStackCursor, null, fiber); 7203 var nextRootContext = nextRootInstance.nodeType; 7204 switch (nextRootContext) { 7205 case 9: 7206 case 11: 7207 nextRootContext = 9 === nextRootContext ? "#document" : "#fragment";
vendor: 4,185 bytes, lines 7208-7295
7208 nextRootInstance = (nextRootInstance = nextRootInstance.documentElement) ? (nextRootInstance = nextRootInstance.namespaceURI) ? getOwnHostContext(nextRootInstance) : HostContextNamespaceNone : HostContextNamespaceNone; 7209 break; 7210 default: 7211 if (nextRootContext = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI) 7212 nextRootInstance = getOwnHostContext(nextRootInstance), nextRootInstance = getChildHostContextProd( 7213 nextRootInstance, 7214 nextRootContext 7215 ); 7216 else 7217 switch (nextRootContext) { 7218 case "svg": 7219 nextRootInstance = HostContextNamespaceSvg; 7220 break; 7221 case "math": 7222 nextRootInstance = HostContextNamespaceMath; 7223 break; 7224 default: 7225 nextRootInstance = HostContextNamespaceNone; 7226 } 7227 } 7228 nextRootContext = nextRootContext.toLowerCase(); 7229 nextRootContext = updatedAncestorInfoDev(null, nextRootContext); 7230 nextRootContext = { 7231 context: nextRootInstance, 7232 ancestorInfo: nextRootContext 7233 }; 7234 pop(contextStackCursor, fiber); 7235 push(contextStackCursor, nextRootContext, fiber); 7236 } 7237 function popHostContainer(fiber) { 7238 pop(contextStackCursor, fiber); 7239 pop(contextFiberStackCursor, fiber); 7240 pop(rootInstanceStackCursor, fiber); 7241 } 7242 function getHostContext() { 7243 return requiredContext(contextStackCursor.current); 7244 } 7245 function pushHostContext(fiber) { 7246 null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber, fiber); 7247 var context = requiredContext(contextStackCursor.current); 7248 var type = fiber.type; 7249 var nextContext = getChildHostContextProd(context.context, type); 7250 type = updatedAncestorInfoDev(context.ancestorInfo, type); 7251 nextContext = { context: nextContext, ancestorInfo: type }; 7252 context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor, nextContext, fiber)); 7253 } 7254 function popHostContext(fiber) { 7255 contextFiberStackCursor.current === fiber && (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); 7256 hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor, fiber), HostTransitionContext._currentValue = NotPendingTransition); 7257 } 7258 function typeName(value) { 7259 return "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 7260 } 7261 function willCoercionThrow(value) { 7262 try { 7263 return testStringCoercion(value), false; 7264 } catch (e) { 7265 return true; 7266 } 7267 } 7268 function testStringCoercion(value) { 7269 return "" + value; 7270 } 7271 function checkAttributeStringCoercion(value, attributeName) { 7272 if (willCoercionThrow(value)) 7273 return console.error( 7274 "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", 7275 attributeName, 7276 typeName(value) 7277 ), testStringCoercion(value); 7278 } 7279 function checkCSSPropertyStringCoercion(value, propName) { 7280 if (willCoercionThrow(value)) 7281 return console.error( 7282 "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", 7283 propName, 7284 typeName(value) 7285 ), testStringCoercion(value); 7286 } 7287 function checkFormFieldValueStringCoercion(value) { 7288 if (willCoercionThrow(value)) 7289 return console.error( 7290 "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", 7291 typeName(value) 7292 ), testStringCoercion(value); 7293 } 7294 function injectInternals(internals) { 7295 if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return false;
7296 var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; 7297 if (hook.isDisabled) return true; 7298 if (!hook.supportsFiber) 7299 return console.error( 7300 "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" 7301 ), true; 7302 try { 7303 rendererID = hook.inject(internals), injectedHook = hook; 7304 } catch (err) { 7305 console.error("React instrumentation encountered an error: %s.", err); 7306 } 7307 return hook.checkDCE ? true : false; 7308 } 7309 function setIsStrictModeForDevtools(newIsStrictMode) { 7310 "function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode); 7311 if (injectedHook && "function" === typeof injectedHook.setStrictMode) 7312 try { 7313 injectedHook.setStrictMode(rendererID, newIsStrictMode); 7314 } catch (err) { 7315 hasLoggedError || (hasLoggedError = true, console.error( 7316 "React instrumentation encountered an error: %s", 7317 err 7318 )); 7319 } 7320 } 7321 function injectProfilingHooks(profilingHooks) { 7322 injectedProfilingHooks = profilingHooks; 7323 } 7324 function markCommitStopped() { 7325 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markCommitStopped && injectedProfilingHooks.markCommitStopped(); 7326 } 7327 function markComponentRenderStarted(fiber) { 7328 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStarted && injectedProfilingHooks.markComponentRenderStarted(fiber); 7329 } 7330 function markComponentRenderStopped() { 7331 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentRenderStopped && injectedProfilingHooks.markComponentRenderStopped(); 7332 } 7333 function markRenderStarted(lanes) { 7334 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStarted && injectedProfilingHooks.markRenderStarted(lanes); 7335 } 7336 function markRenderStopped() { 7337 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderStopped && injectedProfilingHooks.markRenderStopped(); 7338 } 7339 function markStateUpdateScheduled(fiber, lane) { 7340 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); 7341 } 7342 function clz32Fallback(x) { 7343 x >>>= 0; 7344 return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; 7345 } 7346 function getLabelForLane(lane) { 7347 if (lane & 1) return "SyncHydrationLane"; 7348 if (lane & 2) return "Sync"; 7349 if (lane & 4) return "InputContinuousHydration"; 7350 if (lane & 8) return "InputContinuous"; 7351 if (lane & 16) return "DefaultHydration"; 7352 if (lane & 32) return "Default"; 7353 if (lane & 128) return "TransitionHydration"; 7354 if (lane & 4194048) return "Transition"; 7355 if (lane & 62914560) return "Retry"; 7356 if (lane & 67108864) return "SelectiveHydration"; 7357 if (lane & 134217728) return "IdleHydration"; 7358 if (lane & 268435456) return "Idle"; 7359 if (lane & 536870912) return "Offscreen"; 7360 if (lane & 1073741824) return "Deferred"; 7361 } 7362 function getHighestPriorityLanes(lanes) { 7363 var pendingSyncLanes = lanes & 42; 7364 if (0 !== pendingSyncLanes) return pendingSyncLanes; 7365 switch (lanes & -lanes) { 7366 case 1: 7367 return 1; 7368 case 2: 7369 return 2; 7370 case 4: 7371 return 4; 7372 case 8: 7373 return 8; 7374 case 16: 7375 return 16; 7376 case 32: 7377 return 32; 7378 case 64: 7379 return 64; 7380 case 128: 7381 return 128; 7382 case 256: 7383 case 512: 7384 case 1024: 7385 case 2048: 7386 case 4096: 7387 case 8192: 7388 case 16384: 7389 case 32768: 7390 case 65536: 7391 case 131072: 7392 case 262144: 7393 case 524288: 7394 case 1048576: 7395 case 2097152: 7396 return lanes & 4194048; 7397 case 4194304: 7398 case 8388608: 7399 case 16777216: 7400 case 33554432: 7401 return lanes & 62914560; 7402 case 67108864: 7403 return 67108864; 7404 case 134217728: 7405 return 134217728; 7406 case 268435456: 7407 return 268435456; 7408 case 536870912: 7409 return 536870912; 7410 case 1073741824: 7411 return 0; 7412 default: 7413 return console.error( 7414 "Should have found matching lanes. This is a bug in React." 7415 ), lanes; 7416 } 7417 } 7418 function getNextLanes(root2, wipLanes, rootHasPendingCommit) { 7419 var pendingLanes = root2.pendingLanes; 7420 if (0 === pendingLanes) return 0; 7421 var nextLanes = 0, suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes; 7422 root2 = root2.warmLanes; 7423 var nonIdlePendingLanes = pendingLanes & 134217727; 7424 0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pen
7424dingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); 7425 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; 7426 } 7427 function checkIfRootIsPrerendering(root2, renderLanes2) { 7428 return 0 === (root2.pendingLanes & ~(root2.suspendedLanes & ~root2.pingedLanes) & renderLanes2); 7429 } 7430 function computeExpirationTime(lane, currentTime) { 7431 switch (lane) { 7432 case 1: 7433 case 2: 7434 case 4: 7435 case 8: 7436 case 64: 7437 return currentTime + 250; 7438 case 16: 7439 case 32: 7440 case 128: 7441 case 256: 7442 case 512: 7443 case 1024: 7444 case 2048: 7445 case 4096: 7446 case 8192: 7447 case 16384: 7448 case 32768: 7449 case 65536: 7450 case 131072: 7451 case 262144: 7452 case 524288: 7453 case 1048576: 7454 case 2097152: 7455 return currentTime + 5e3; 7456 case 4194304: 7457 case 8388608: 7458 case 16777216: 7459 case 33554432: 7460 return -1; 7461 case 67108864: 7462 case 134217728: 7463 case 268435456: 7464 case 536870912: 7465 case 1073741824: 7466 return -1; 7467 default: 7468 return console.error( 7469 "Should have found matching lanes. This is a bug in React." 7470 ), -1; 7471 } 7472 } 7473 function claimNextTransitionLane() { 7474 var lane = nextTransitionLane; 7475 nextTransitionLane <<= 1; 7476 0 === (nextTransitionLane & 4194048) && (nextTransitionLane = 256); 7477 return lane; 7478 } 7479 function claimNextRetryLane() { 7480 var lane = nextRetryLane; 7481 nextRetryLane <<= 1; 7482 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); 7483 return lane; 7484 } 7485 function createLaneMap(initial) { 7486 for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); 7487 return laneMap; 7488 } 7489 function markRootUpdated$1(root2, updateLane) { 7490 root2.pendingLanes |= updateLane; 7491 268435456 !== updateLane && (root2.suspendedLanes = 0, root2.pingedLanes = 0, root2.warmLanes = 0); 7492 } 7493 function markRootFinished(root2, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) { 7494 var previouslyPendingLanes = root2.pendingLanes; 7495 root2.pendingLanes = remainingLanes; 7496 root2.suspendedLanes = 0; 7497 root2.pingedLanes = 0; 7498 root2.warmLanes = 0; 7499 root2.expiredLanes &= remainingLanes; 7500 root2.entangledLanes &= remainingLanes; 7501 root2.errorRecoveryDisabledLanes &= remainingLanes; 7502 root2.shellSuspendCounter = 0; 7503 var entanglements = root2.entanglements, expirationTimes = root2.expirationTimes, hiddenUpdates = root2.hiddenUpdates; 7504 for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { 7505 var index = 31 - clz32(remainingLanes), lane = 1 << index; 7506 entanglements[index] = 0; 7507 expirationTimes[index] = -1; 7508 var hiddenUpdatesForLane = hiddenUpdates[index]; 7509 if (null !== hiddenUpdatesForLane) 7510 for (hiddenUpdates[index] = null, index = 0; index < hiddenUpdatesForLane.length; index++) { 7511 var update = hiddenUpdatesForLane[index]; 7512 null !== update && (update.lane &= -536870913); 7513 } 7514 remainingLanes &= ~lane; 7515 } 7516 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, 0); 7517 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root2.tag && (root2.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); 7518 } 7519 function markSpawnedDeferredLane(root2, spawnedLane, entangledLanes) { 7520 root2.pendingLanes |= spawnedLane; 7521 root2.suspendedLanes &= ~spawnedLane; 7522 var spawnedLaneIndex = 31 - clz32(spawnedLane); 7523 root2.entangledLanes |= spawnedLane; 7524 root2.entanglements[spawnedLaneIndex] = root2.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 4194090; 7525 } 7526 function markRootEntangled(root2, entangledLanes) { 7527 var rootEntangledLanes = root2.entangledLanes |= entangledLanes; 7528 for (root2 = root2.entanglements; rootEntangledLanes; ) { 7529 var index = 31 - clz32(rootEntangledLanes), lane = 1 << index; 7530 lane & entangledLanes | root2[index] & entangledLanes && (root2[index] |= entangledLanes); 7531 rootEntangledLanes &= ~lane; 7532 } 7533 } 7534 function getBumpedLaneForHydrationByLane(lane) { 7535 switch (lane) { 7536 case 2: 7537 lane = 1; 7538 break; 7539 case 8: 7540 lane = 4; 7541 break; 7542 case 32: 7543 lane = 16; 7544 break; 7545 case 256: 7546 case 512: 7547 case 1024: 7548 case 2048: 7549 case 4096: 7550 case 8192: 7551 case 16384: 7552 case 32768: 7553 case 65536: 7554 case 131072: 7555 case 262144: 7556 case 524288: 7557 case 1048576: 7558 case 2097152: 7559 case 4194304: 7560 case 8388608: 7561 case 16777216: 7562 case 33554432: 7563 lane = 128; 7564 break; 7565 case 268435456: 7566 lane = 134217728; 7567 break; 7568 default: 7569 lane = 0; 7570 } 7571 return lane; 7572 } 7573 function addFiberToLanesMap(root2, fiber, lanes) { 7574 if (isDevToolsPresent) 7575 for (root2 = root2.pendingUpdatersLaneMap; 0 < lanes; ) { 7576 var index = 31 - clz32(lanes), lane = 1 << index; 7577 root2[index].add(fiber); 7578 lanes &= ~lane; 7579 } 7580 } 7581 function movePendingFibersToMemoized(root2, lanes) { 7582 if (isDevToolsPresent) 7583 for (var pendingUpdatersLaneMap = root2.pendingUpdatersLaneMap, memoizedUpdaters = root2.memoizedUpdaters; 0 < lanes; ) { 7584 var index = 31 - clz32(lanes); 7585 root2 = 1 << index; 7586 index = pendingUpdatersLaneMap[index]; 7587 0 < index.size && (index.forEach(function(fiber) { 7588 var alternate = fiber.alternate; 7589 null !== alternate && memoizedUpdaters.has(alternate) || memoizedUpdaters.add(fiber); 7590 }), index.clear()); 7591 lanes &= ~root2; 7592 } 7593 } 7594 function lanesToEventPriority(lanes) { 7595 lanes &= -lanes; 7596 return DiscreteEventPriority < lanes ? ContinuousEventPriority < lanes ? 0 !== (lanes & 134217727) ? DefaultEventPriority : IdleEventPriority : ContinuousEventPriority : DiscreteEventPriority; 7597 } 7598 function resolveUpdatePriority() { 7599 var updatePriority = ReactDOMSharedInternals.p; 7600 if (0 !== updatePriority) return updatePriority; 7601 updatePriority = window.event; 7602 return void 0 === updatePriority ? DefaultEventPriority : getEventPriority(updatePriority.type); 7603 } 7604 function runWithPriority(priority, fn) { 7605 var previousPriority = ReactDOMSharedInternals.p; 7606 try { 7607 return ReactDOMSharedInternals.p = priority, fn(); 7608 } finally { 7609 ReactDOMSharedInternals.p = previousPriority; 7610 } 7611 } 7612 function detachDeletedInstance(node) { 7613 delete node[internalInstanceKey]; 7614 delete node[internalPropsKey]; 7615 delete node[internalEventHandlersKey]; 7616 delete node[internalEventHandlerListenersKey]; 7617 delete node[internalEventHandlesSetKey]; 7618 } 7619 function getClosestInstanceFromNode(targetNode) { 7620 var targetInst = targetNode[internalInstanceKey]; 7621 if (targetInst) return targetInst; 7622 for (var parentNode = targetNode.parentNode; parentNode; ) { 7623 if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) { 7624 parentNode = targetInst.alternate; 7625 if (null !== targetInst.child || null !== parentNode && null !== parentNode.child) 7626 for (targetNode = getParentSuspenseInstance(targetNode); null !== targetNode; ) { 7627 if (parentNode = targetNode[internalInstanceKey]) 7628 return parentNode; 7629 targetNode = getParentSuspenseInstance(targetNode); 7630 } 7631 return targetInst; 7632 } 7633 targetNode = parentNode; 7634 parentNode = targetNode.parentNode; 7635 } 7636 return null; 7637 } 7638 function getInstanceFromNode(node) { 7639 if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) { 7640 var tag = node.tag; 7641 if (5 === tag || 6 === tag || 13 === tag || 26 === tag || 27 === tag || 3 === tag) 7642 return node; 7643 } 7644 return null; 7645 } 7646 function getNodeFromInstance(inst) { 7647 var tag = inst.tag; 7648 if (5 === tag || 26 === tag || 27 === tag || 6 === tag) 7649 return inst.stateNode; 7650 throw Error("getNodeFromInstance: Invalid argument."); 7651 } 7652 function getResourcesFromRoot(root2) { 7653 var resources = root2[internalRootNodeResourcesKey]; 7654 resources || (resources = root2[internalRootNodeResourcesKey] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() }); 7655 return resources; 7656 } 7657 function markNodeAsHoistable(node) { 7658 node[internalHoistableMarker] = true; 7659 } 7660 function registerTwoPhaseEvent(registrationName, dependencies) { 7661 registerDirectEvent(registrationName, dependencies); 7662 registerDirectEvent(registrationName + "Capture", dependencies); 7663 } 7664 function registerDirectEvent(registrationName, dependencies) { 7665 registrationNameDependencies[registrationName] && console.error( 7666 "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", 7667 registrationName 7668 );
7669 registrationNameDependencies[registrationName] = dependencies; 7670 var lowerCasedName = registrationName.toLowerCase(); 7671 possibleRegistrationNames[lowerCasedName] = registrationName; 7672 "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); 7673 for (registrationName = 0; registrationName < dependencies.length; registrationName++) 7674 allNativeEvents.add(dependencies[registrationName]); 7675 } 7676 function checkControlledValueProps(tagName, props) { 7677 hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || null == props.value || ("select" === tagName ? console.error( 7678 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." 7679 ) : console.error( 7680 "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." 7681 )); 7682 props.onChange || props.readOnly || props.disabled || null == props.checked || console.error( 7683 "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." 7684 ); 7685 } 7686 function isAttributeNameSafe(attributeName) { 7687 if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) 7688 return true; 7689 if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) 7690 return false; 7691 if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) 7692 return validatedAttributeNameCache[attributeName] = true; 7693 illegalAttributeNameCache[attributeName] = true; 7694 console.error("Invalid attribute name: `%s`", attributeName); 7695 return false; 7696 } 7697 function getValueForAttributeOnCustomComponent(node, name, expected) { 7698 if (isAttributeNameSafe(name)) { 7699 if (!node.hasAttribute(name)) { 7700 switch (typeof expected) { 7701 case "symbol": 7702 case "object": 7703 return expected; 7704 case "function": 7705 return expected; 7706 case "boolean": 7707 if (false === expected) return expected; 7708 } 7709 return void 0 === expected ? void 0 : null; 7710 } 7711 node = node.getAttribute(name); 7712 if ("" === node && true === expected) return true; 7713 checkAttributeStringCoercion(expected, name); 7714 return node === "" + expected ? expected : node; 7715 } 7716 } 7717 function setValueForAttribute(node, name, value) { 7718 if (isAttributeNameSafe(name)) 7719 if (null === value) node.removeAttribute(name); 7720 else { 7721 switch (typeof value) { 7722 case "undefined": 7723 case "function": 7724 case "symbol": 7725 node.removeAttribute(name); 7726 return; 7727 case "boolean": 7728 var prefix2 = name.toLowerCase().slice(0, 5); 7729 if ("data-" !== prefix2 && "aria-" !== prefix2) { 7730 node.removeAttribute(name); 7731 return; 7732 } 7733 } 7734 checkAttributeStringCoercion(value, name); 7735 node.setAttribute(name, "" + value); 7736 } 7737 } 7738 function setValueForKnownAttribute(node, name, value) { 7739 if (null === value) node.removeAttribute(name); 7740 else { 7741 switch (typeof value) { 7742 case "undefined": 7743 case "function": 7744 case "symbol": 7745 case "boolean": 7746 node.removeAttribute(name); 7747 return; 7748 } 7749 checkAttributeStringCoercion(value, name); 7750 node.setAttribute(name, "" + value); 7751 } 7752 } 7753 function setValueForNamespacedAttribute(node, namespace, name, value) { 7754 if (null === value) node.removeAttribute(name); 7755 else { 7756 switch (typeof value) { 7757 case "undefined": 7758 case "function": 7759 case "symbol": 7760 case "boolean": 7761 node.removeAttribute(name); 7762 return; 7763 } 7764 checkAttributeStringCoercion(value, name); 7765 node.setAttributeNS(namespace, name, "" + value); 7766 } 7767 } 7768 function disabledLog() { 7769 } 7770 function disableLogs() { 7771 if (0 === disabledDepth) { 7772 prevLog = console.log; 7773 prevInfo = console.info; 7774 prevWarn = console.warn; 7775 prevError = console.error; 7776 prevGroup = console.group; 7777 prevGroupCollapsed = console.groupCollapsed; 7778 prevGroupEnd = console.groupEnd; 7779 var props = { 7780 configurable: true, 7781 enumerable: true, 7782 value: disabledLog, 7783 writable: true 7784 }; 7785 Object.defineProperties(console, { 7786 info: props, 7787 log: props, 7788 warn: props, 7789 error: props, 7790 group: props, 7791 groupCollapsed: props, 7792 groupEnd: props 7793 }); 7794 } 7795 disabledDepth++; 7796 } 7797 function reenableLogs() { 7798 disabledDepth--; 7799 if (0 === disabledDepth) { 7800 var props = { configurable: true, enumerable: true, writable: true }; 7801 Object.defineProperties(console, { 7802 log: assign({}, props, { value: prevLog }), 7803 info: assign({}, props, { value: prevInfo }), 7804 warn: assign({}, props, { value: prevWarn }), 7805 error: assign({}, props, { value: prevError }), 7806 group: assign({}, props, { value: prevGroup }), 7807 groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), 7808 groupEnd: assign({}, props, { value: prevGroupEnd }) 7809 }); 7810 } 7811 0 > disabledDepth && console.error( 7812 "disabledDepth fell below zero. This is a bug in React. Please file an issue." 7813 ); 7814 } 7815 function describeBuiltInComponentFrame(name) { 7816 if (void 0 === prefix) 7817 try { 7818 throw Error(); 7819 } catch (x) { 7820 var match = x.stack.trim().match(/\n( *(at )?)/); 7821 prefix = match && match[1] || ""; 7822 suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; 7823 } 7824 return "\n" + prefix + name + suffix; 7825 } 7826 function describeNativeComponentFrame(fn, construct) { 7827 if (!fn || reentry) return ""; 7828 var frame = componentFrameCache.get(fn); 7829 if (void 0 !== frame) return frame; 7830 reentry = true; 7831 frame = Error.prepareStackTrace; 7832 Error.prepareStackTrace = void 0; 7833 var previousDispatcher2 = null; 7834 previousDispatcher2 = ReactSharedInternals.H; 7835 ReactSharedInternals.H = null; 7836 disableLogs(); 7837 try { 7838 var RunInRootFrame = { 7839 DetermineComponentFrameRoot: function() { 7840 try { 7841 if (construct) { 7842 var Fake = function() { 7843 throw Error(); 7844 }; 7845 Object.defineProperty(Fake.prototype, "props", { 7846 set: function() { 7847 throw Error(); 7848 } 7849 }); 7850 if ("object" === typeof Reflect && Reflect.construct) { 7851 try { 7852 Reflect.construct(Fake, []); 7853 } catch (x) { 7854 var control = x; 7855 } 7856 Reflect.construct(fn, [], Fake); 7857 } else { 7858 try { 7859 Fake.call(); 7860 } catch (x$0) { 7861 control = x$0; 7862 } 7863 fn.call(Fake.prototype); 7864 } 7865 } else { 7866 try { 7867 throw Error(); 7868 } catch (x$1) { 7869 control = x$1; 7870 } 7871 (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() { 7872 }); 7873 } 7874 } catch (sample) { 7875 if (sample && control && "string" === typeof sample.
7875stack) 7876 return [sample.stack, control.stack]; 7877 } 7878 return [null, null]; 7879 } 7880 }; 7881 RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot"; 7882 var namePropDescriptor = Object.getOwnPropertyDescriptor( 7883 RunInRootFrame.DetermineComponentFrameRoot, 7884 "name" 7885 ); 7886 namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty( 7887 RunInRootFrame.DetermineComponentFrameRoot, 7888 "name", 7889 { value: "DetermineComponentFrameRoot" } 7890 ); 7891 var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1]; 7892 if (sampleStack && controlStack) { 7893 var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n"); 7894 for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes( 7895 "DetermineComponentFrameRoot" 7896 ); ) 7897 namePropDescriptor++; 7898 for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes( 7899 "DetermineComponentFrameRoot" 7900 ); ) 7901 _RunInRootFrame$Deter++; 7902 if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length) 7903 for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]; ) 7904 _RunInRootFrame$Deter--; 7905 for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--) 7906 if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 7907 if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { 7908 do 7909 if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) { 7910 var _frame = "\n" + sampleLines[namePropDescriptor].replace( 7911 " at new ", 7912 " at " 7913 ); 7914 fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName)); 7915 "function" === typeof fn && componentFrameCache.set(fn, _frame); 7916 return _frame; 7917 } 7918 while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); 7919 } 7920 break; 7921 } 7922 } 7923 } finally { 7924 reentry = false, ReactSharedInternals.H = previousDispatcher2, reenableLogs(), Error.prepareStackTrace = frame; 7925 } 7926 sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : ""; 7927 "function" === typeof fn && componentFrameCache.set(fn, sampleLines); 7928 return sampleLines; 7929 } 7930 function formatOwnerStack(error) { 7931 var prevPrepareStackTrace = Error.prepareStackTrace; 7932 Error.prepareStackTrace = void 0; 7933 error = error.stack; 7934 Error.prepareStackTrace = prevPrepareStackTrace; 7935 error.startsWith("Error: react-stack-top-frame\n") && (error = error.slice(29)); 7936 prevPrepareStackTrace = error.indexOf("\n"); 7937 -1 !== prevPrepareStackTrace && (error = error.slice(prevPrepareStackTrace + 1)); 7938 prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); 7939 -1 !== prevPrepareStackTrace && (prevPrepareStackTrace = error.lastIndexOf( 7940 "\n", 7941 prevPrepareStackTrace 7942 )); 7943 if (-1 !== prevPrepareStackTrace) 7944 error = error.slice(0, prevPrepareStackTrace); 7945 else return ""; 7946 return error; 7947 } 7948 function describeFiber(fiber) { 7949 switch (fiber.tag) { 7950 case 26: 7951 case 27: 7952 case 5: 7953 return describeBuiltInComponentFrame(fiber.type); 7954 case 16: 7955 return describeBuiltInComponentFrame("Lazy"); 7956 case 13: 7957 return describeBuiltInComponentFrame("Suspense"); 7958 case 19: 7959 return describeBuiltInComponentFrame("SuspenseList"); 7960 case 0: 7961 case 15: 7962 return describeNativeComponentFrame(fiber.type, false); 7963 case 11: 7964 return describeNativeComponentFrame(fiber.type.render, false); 7965 case 1: 7966 return describeNativeComponentFrame(fiber.type, true); 7967 case 31: 7968 return describeBuiltInComponentFrame("Activity"); 7969 default: 7970 return ""; 7971 } 7972 }
7973 function getStackByFiberInDevAndProd(workInProgress2) { 7974 try { 7975 var info = ""; 7976 do { 7977 info += describeFiber(workInProgress2); 7978 var debugInfo = workInProgress2._debugInfo; 7979 if (debugInfo) 7980 for (var i = debugInfo.length - 1; 0 <= i; i--) { 7981 var entry = debugInfo[i]; 7982 if ("string" === typeof entry.name) { 7983 var JSCompiler_temp_const = info, env = entry.env; 7984 var JSCompiler_inline_result = describeBuiltInComponentFrame( 7985 entry.name + (env ? " [" + env + "]" : "") 7986 ); 7987 info = JSCompiler_temp_const + JSCompiler_inline_result; 7988 } 7989 } 7990 workInProgress2 = workInProgress2.return; 7991 } while (workInProgress2); 7992 return info; 7993 } catch (x) { 7994 return "\nError generating stack: " + x.message + "\n" + x.stack; 7995 } 7996 } 7997 function describeFunctionComponentFrameWithoutLineNumber(fn) { 7998 return (fn = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(fn) : ""; 7999 } 8000 function getCurrentFiberOwnerNameInDevOrNull() { 8001 if (null === current) return null; 8002 var owner = current._debugOwner; 8003 return null != owner ? getComponentNameFromOwner(owner) : null; 8004 } 8005 function getCurrentFiberStackInDev() { 8006 if (null === current) return ""; 8007 var workInProgress2 = current; 8008 try { 8009 var info = ""; 8010 6 === workInProgress2.tag && (workInProgress2 = workInProgress2.return); 8011 switch (workInProgress2.tag) { 8012 case 26: 8013 case 27: 8014 case 5: 8015 info += describeBuiltInComponentFrame(workInProgress2.type); 8016 break; 8017 case 13: 8018 info += describeBuiltInComponentFrame("Suspense"); 8019 break; 8020 case 19: 8021 info += describeBuiltInComponentFrame("SuspenseList"); 8022 break; 8023 case 31: 8024 info += describeBuiltInComponentFrame("Activity"); 8025 break; 8026 case 30: 8027 case 0: 8028 case 15: 8029 case 1: 8030 workInProgress2._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber( 8031 workInProgress2.type 8032 )); 8033 break; 8034 case 11: 8035 workInProgress2._debugOwner || "" !== info || (info += describeFunctionComponentFrameWithoutLineNumber( 8036 workInProgress2.type.render 8037 )); 8038 } 8039 for (; workInProgress2; ) 8040 if ("number" === typeof workInProgress2.tag) { 8041 var fiber = workInProgress2; 8042 workInProgress2 = fiber._debugOwner; 8043 var debugStack = fiber._debugStack; 8044 workInProgress2 && debugStack && ("string" !== typeof debugStack && (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), "" !== debugStack && (info += "\n" + debugStack)); 8045 } else if (null != workInProgress2.debugStack) { 8046 var ownerStack = workInProgress2.debugStack; 8047 (workInProgress2 = workInProgress2.owner) && ownerStack && (info += "\n" + formatOwnerStack(ownerStack)); 8048 } else break; 8049 var JSCompiler_inline_result = info; 8050 } catch (x) { 8051 JSCompiler_inline_result = "\nError generating stack: " + x.message + "\n" + x.stack; 8052 } 8053 return JSCompiler_inline_result; 8054 } 8055 function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { 8056 var previousFiber = current; 8057 setCurrentFiber(fiber); 8058 try { 8059 return null !== fiber && fiber._debugTask ? fiber._debugTask.run( 8060 callback.bind(null, arg0, arg1, arg2, arg3, arg4) 8061 ) : callback(arg0, arg1, arg2, arg3, arg4); 8062 } finally { 8063 setCurrentFiber(previousFiber); 8064 } 8065 throw Error( 8066 "runWithFiberInDEV should never be called in production. This is a bug in React." 8067 ); 8068 } 8069 function setCurrentFiber(fiber) { 8070 ReactSharedInternals.getCurrentStack = null === fiber ? null : getCurrentFiberStackInDev; 8071 isRendering = false;
8072 current = fiber; 8073 } 8074 function getToStringValue(value) { 8075 switch (typeof value) { 8076 case "bigint": 8077 case "boolean": 8078 case "number": 8079 case "string": 8080 case "undefined": 8081 return value; 8082 case "object": 8083 return checkFormFieldValueStringCoercion(value), value; 8084 default: 8085 return ""; 8086 } 8087 } 8088 function isCheckable(elem) { 8089 var type = elem.type; 8090 return (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type); 8091 } 8092 function trackValueOnNode(node) { 8093 var valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor( 8094 node.constructor.prototype, 8095 valueField 8096 ); 8097 checkFormFieldValueStringCoercion(node[valueField]); 8098 var currentValue = "" + node[valueField]; 8099 if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) { 8100 var get = descriptor.get, set = descriptor.set; 8101 Object.defineProperty(node, valueField, { 8102 configurable: true, 8103 get: function() { 8104 return get.call(this); 8105 }, 8106 set: function(value) { 8107 checkFormFieldValueStringCoercion(value); 8108 currentValue = "" + value; 8109 set.call(this, value); 8110 } 8111 }); 8112 Object.defineProperty(node, valueField, { 8113 enumerable: descriptor.enumerable 8114 }); 8115 return { 8116 getValue: function() { 8117 return currentValue; 8118 }, 8119 setValue: function(value) { 8120 checkFormFieldValueStringCoercion(value); 8121 currentValue = "" + value; 8122 }, 8123 stopTracking: function() { 8124 node._valueTracker = null; 8125 delete node[valueField]; 8126 } 8127 }; 8128 } 8129 } 8130 function track(node) { 8131 node._valueTracker || (node._valueTracker = trackValueOnNode(node)); 8132 } 8133 function updateValueIfChanged(node) { 8134 if (!node) return false; 8135 var tracker = node._valueTracker; 8136 if (!tracker) return true; 8137 var lastValue = tracker.getValue(); 8138 var value = ""; 8139 node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value); 8140 node = value; 8141 return node !== lastValue ? (tracker.setValue(node), true) : false; 8142 } 8143 function getActiveElement(doc) { 8144 doc = doc || ("undefined" !== typeof document ? document : void 0); 8145 if ("undefined" === typeof doc) return null; 8146 try { 8147 return doc.activeElement || doc.body; 8148 } catch (e) { 8149 return doc.body; 8150 } 8151 } 8152 function escapeSelectorAttributeValueInsideDoubleQuotes(value) { 8153 return value.replace( 8154 escapeSelectorAttributeValueInsideDoubleQuotesRegex, 8155 function(ch) { 8156 return "\\" + ch.charCodeAt(0).toString(16) + " "; 8157 } 8158 ); 8159 } 8160 function validateInputProps(element, props) { 8161 void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || (console.error( 8162 "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", 8163 getCurrentFiberOwnerNameInDevOrNull() || "A component", 8164 props.type 8165 ), didWarnCheckedDefaultChecked = true); 8166 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue$1 || (console.error( 8167 "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components", 8168 getCurrentFiberOwnerNameInDevOrNull() || "A component", 8169 props.type 8170 ), didWarnValueDefaultValue$1 = true); 8171 } 8172 function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) { 8173 element.name = ""; 8174 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? (c
8174heckAttributeStringCoercion(type, "type"), element.type = type) : element.removeAttribute("type"); 8175 if (null != value) 8176 if ("number" === type) { 8177 if (0 === value && "" === element.value || element.value != value) 8178 element.value = "" + getToStringValue(value); 8179 } else 8180 element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value)); 8181 else 8182 "submit" !== type && "reset" !== type || element.removeAttribute("value"); 8183 null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); 8184 null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); 8185 null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); 8186 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? (checkAttributeStringCoercion(name, "name"), element.name = "" + getToStringValue(name)) : element.removeAttribute("name"); 8187 } 8188 function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating2) { 8189 null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (checkAttributeStringCoercion(type, "type"), element.type = type); 8190 if (null != value || null != defaultValue) { 8191 if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) 8192 return; 8193 defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 8194 value = null != value ? "" + getToStringValue(value) : defaultValue; 8195 isHydrating2 || value === element.value || (element.value = value); 8196 element.defaultValue = value; 8197 } 8198 checked = null != checked ? checked : defaultChecked; 8199 checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; 8200 element.checked = isHydrating2 ? element.checked : !!checked; 8201 element.defaultChecked = !!checked; 8202 null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (checkAttributeStringCoercion(name, "name"), element.name = name); 8203 } 8204 function setDefaultValue(node, type, value) { 8205 "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value); 8206 } 8207 function validateOptionProps(element, props) { 8208 null == props.value && ("object" === typeof props.children && null !== props.children ? React.Children.forEach(props.children, function(child) { 8209 null == child || "string" === typeof child || "number" === typeof child || "bigint" === typeof child || didWarnInvalidChild || (didWarnInvalidChild = true, console.error( 8210 "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>." 8211 )); 8212 }) : null == props.dangerouslySetInnerHTML || didWarnInvalidInnerHTML || (didWarnInvalidInnerHTML = true, console.error( 8213 "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected." 8214 ))); 8215 null == props.selected || didWarnSelectedSetOnOption || (console.error( 8216 "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>." 8217 ), didWarnSelectedSetOnOption = true); 8218 } 8219 function getDeclarationErrorAddendum() { 8220 var ownerName = getCurrentFiberOwnerNameInDevOrNull(); 8221 return ownerName ? "\n\nCheck the render method of `" + ownerName + "`." : ""; 8222 } 8223 function updateOptions(node, multiple, propValue, setDefaultSelected) { 8224 node = node.options; 8225 if (multiple) { 8226 multiple = {}; 8227 for (var i = 0; i < propValue.length; i++) 8228 multiple["$" + propValue[i]] = true; 8229 for (propValue = 0; propValue < node.length; propValue++) 8230 i = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = true); 8231 } else { 8232 propValue = "" + getToStringValue(propValue); 8233 multiple = null; 8234 for (i = 0; i < node.length; i++) { 8235 if (node[i].value === propValue) { 8236 node[i].selected = true; 8237 setDefaultSelected && (node[i].defaultSelected = true); 8238 return; 8239 } 8240 null !== multiple || node[i].disabled || (multiple = node[i]); 8241 } 8242 null !== multiple && (multiple.selected = true); 8243 } 8244 } 8245 function validateSelectProps(element, props) { 8246 for (element = 0; element < valuePropNames.length; element++) { 8247 var propName = valuePropNames[element]; 8248 if (null != props[propName]) { 8249 var propNameIsArray = isArrayImpl(props[propName]); 8250 props.multiple && !propNameIsArray ? console.error( 8251 "The `%s` prop supplied to <select> must be an array if `multiple` is true.%s", 8252 propName, 8253 getDeclarationErrorAddendum() 8254 ) : !props.multiple && propNameIsArray && console.error( 8255 "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s", 8256 propName, 8257 getDeclarationErrorAddendum() 8258 ); 8259 } 8260 } 8261 void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || (console.error( 8262 "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components" 8263 ), didWarnValueDefaultValue = true); 8264 } 8265 function validateTextareaProps(element, props) { 8266 void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || (console.error( 8267 "%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components", 8268 getCurrentFiberOwnerNameInDevOrNull() || "A component" 8269 ), didWarnValDefaultVal = true); 8270 null != props.children && null == props.value && console.error( 8271 "Use the `defaultValue` or `value` props instead of setting children on <textarea>." 8272 ); 8273 } 8274 function updateTextarea(element, value, defaultValue) { 8275 if (null != value && (value = "" + getToStringValue(value), value !== element.value && (element.value = value), null == defaultValue)) { 8276 element.defaultValue !== value && (element.defaultValue = value); 8277 return; 8278 } 8279 element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : ""; 8280 } 8281 function initTextarea(element, value, defaultValue, children) { 8282 if (null == value) { 8283 if (null != children) { 8284 if (null != defaultValue) 8285 throw Error( 8286 "If you supply `defaultValue` on a <textarea>, do not pass children." 8287 ); 8288 if (isArrayImpl(children)) { 8289 if (1 < children.length) 8290 throw Error("<textarea> can only have at most one child."); 8291 children = children[0]; 8292 } 8293 defaultValue = children; 8294 } 8295 null == defaultValue && (defaultValue = ""); 8296 value = defaultValue; 8297 } 8298 defaultValue = getToStringValue(value); 8299 element.defaultValue = defaultValue; 8300 children = element.textContent; 8301 children === defaultValue && "" !== children && null !== children && (element.value = children); 8302 } 8303 function findNotableNode(node, indent) { 8304 return void 0 === node.serverProps && 0 === node.serverTail.length && 1 === node.children.length && 3 < node.distanceFromLeaf && node.distanceFromLeaf > 15 - indent ? findNotableNode(node.children[0], indent) : node; 8305 } 8306 function indentation(indent) { 8307 return " " + " ".repeat(indent); 8308 } 8309 function added(indent) { 8310 return "+ " + " ".repeat(indent); 8311 } 8312 function removed(indent) { 8313 return "- " + " ".repeat(indent); 8314 } 8315 function describeFiberType(fiber) { 8316 switch (fiber.tag) { 8317 case 26: 8318 case 27: 8319 case 5: 8320 return fiber.type; 8321 case 16: 8322 return "Lazy"; 8323 case 13: 8324 return "Suspense"; 8325 case 19: 8326 return "SuspenseList"; 8327 case 0: 8328 case 15: 8329 return fiber = fiber.type, fiber.displayName || fiber.name || null; 8330 case 11: 8331 return fiber = fiber.type.render, fiber.displayName || fiber.name || null; 8332 case 1: 8333 return fiber = fiber.type, fiber.displayName || fiber.name || null; 8334 default: 8335 return null; 8336 } 8337 } 8338 function describeTextNode(content, maxLength) { 8339 return needsEscaping.test(content) ? (content = JSON.stringify(content), content.length > maxLength - 2 ? 8 > maxLength ? '{"..."}' : "{" + content.slice(0, maxLength - 7) + '..."}' : "{" + content + "}") : content.length > maxLength ? 5 > maxLength ? '{"..."}' : content.slice(0, maxLength - 3) + "..." : content; 8340 } 8341 function describeTextDiff(clientText, serverProps, indent) { 8342 var maxLength = 120 - 2 * indent; 8343 if (null === serverProps) 8344 return added(indent) + describeTextNode(clientText, maxLength) + "\n"; 8345 if ("string" === typeof serverProps) { 8346 for (var firstDiff = 0; firstDiff < serverProps.length && firstDiff < clientText.length && serverProps.charCodeAt(firstDiff) === clientText.charCodeAt(firstDiff); firstDiff++) ; 8347 firstDiff > maxLength - 8 && 10 < firstDiff && (clientText = "..." + clientText.slice(firstDiff - 8), serverProps = "..." + serverProps.slice(firstDiff - 8)); 8348 return added(indent) + describeTextNode(clientText, maxLength) + "\n" + removed(indent) + describeTextNode(serverProps, maxLength) + "\n"; 8349 } 8350 return indentation(indent) + describeTextNode(clientText, maxLength) + "\n"; 8351 } 8352 function objectName(object) { 8353 return Object.prototype.toString.call(object).replace(/^\[object (.*)\]$/, function(m, p0) { 8354 return p0; 8355 }); 8356 } 8357 function describeValue(value, maxLength) { 8358 switch (typeof value) { 8359 case "string": 8360 return value = JSON.stringify(value), value.length > maxLength ? 5 > maxLength ? '"..."' : value.slice(0, maxLength - 4) + '..."' : value; 8361 case "object": 8362 if (null === value) return "null"; 8363 if (isArrayImpl(value)) return "[...]"; 8364 if (value.$$typeof === REACT_ELEMENT_TYPE) 8365 return (maxLength = getComponentNameFromType(value.type)) ? "<" + maxLength + ">" : "<...>"; 8366 var name = objectName(value); 8367 if ("Object" === name) { 8368 name = ""; 8369 maxLength -= 2; 8370 for (var propName in value) 8371 if (value.hasOwnProperty(propName)) { 8372 var jsonPropName = JSON.stringify(propName); 8373 jsonPropName !== '"' + propName + '"' && (propName = jsonPropName); 8374 maxLength -= propName.length - 2; 8375 jsonPropName = describeValue( 8376 value[propName], 8377 15 > maxLength ? maxLength : 15 8378 ); 8379 maxLength -= jsonPropName.length; 8380 if (0 > maxLength) { 8381 name += "" === name ? "..." : ", ..."; 8382 break; 8383 } 8384 name += ("" === name ? "" : ",") + propName + ":" + jsonPropName; 8385 } 8386 return "{" + name + "}"; 8387 } 8388 return name; 8389 case "function": 8390 return (maxLength = value.displayName || value.name) ? "function " + maxLength : "function"; 8391 default: 8392 return String(value); 8393 } 8394 } 8395 function describePropValue(value, maxLength) { 8396 return "string" !== typeof value || needsEscaping.test(value) ? "{" + describeValue(value, maxLength - 2) + "}" : value.length > maxLength - 2 ? 5 > maxLength ? '"..."' : '"' + value.slice(0, maxLength - 5) + '..."' : '"' + value + '"'; 8397 } 8398 function describeExpandedElement(type, props, rowPrefix) { 8399 var remainingRowLength = 120 - rowPrefix.length - type.length, properties = [], propName; 8400 for (propName in props) 8401 if (props.hasOwnProperty(propName) && "children" !== propName) { 8402 var propValue = describePropValue( 8403 props[propName], 8404 120 - rowPrefix.length - propName.length - 1 8405 ); 8406 remainingRowLength -= propName.length + propValue.length + 2; 8407 properties.push(propName + "=" + propValue); 8408 } 8409 return 0 === properties.length ? rowPrefix + "<" + type + ">\n" : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties.join(" ") + ">\n" : rowPrefix + "<" + type + "\n" + rowPrefix + " " + properties.join("\n" + rowPrefix + " ") + "\n" + rowPrefix + ">\n"; 8410 } 8411 function describePropertiesDiff(clientObject, serverObject, indent) { 8412 var properties = "", remainingServerProperties = assign({}, serverObject), propName; 8413 for (propName in clientObject) 8414 if (clientObject.hasOwnProperty(propName)) { 8415 delete remainingServerProperties[propName]; 8416 var maxLength = 120 - 2 * indent - propName.length - 2, clientPropValue = describeValue(clientObject[propName], maxLength); 8417 serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties += added(indent) + propName + ": " + clientPropValue + "\n", properties += removed(indent) + propName + ": " + maxLength + "\n") : properties += added(indent) + propName + ": " + clientPropValue + "\n"; 8418 } 8419 for (var _propName in remainingServerProperties) 8420 remainingServerProperties.hasOwnProperty(_propName) && (clientObject = describeValue( 8421 remainingServerProperties[_propName], 8422 120 - 2 * indent - _propName.length - 2 8423 ), properties += removed(indent) + _propName + ": " + clientObject + "\n"); 8424 return properties; 8425 } 8426 function describeElementDiff(type, clientProps, serverProps, indent) { 8427 var content = "", serverPropNames = /* @__PURE__ */ new Map(); 8428 for (propName$jscomp$0 in serverProps) 8429 serverProps.hasOwnProperty(propName$jscomp$0) && serverPropNames.set( 8430 propName$jscomp$0.toLowerCase(), 8431 propName$jscomp$0 8432 ); 8433 if (1 === serverPropNames.size && serverPropNames.has("children")) 8434 content += describeExpandedElement( 8435 type, 8436 clientProps, 8437 indentation(indent) 8438 ); 8439 else { 8440 for (var _propName2 in clientProps) 8441 if (clientProps.hasOwnProperty(_propName2) && "children" !== _propName2) { 8442 var maxLength$jscomp$0 = 120 - 2 * (indent + 1) - _propName2.length - 1, serverPropName = serverPropNames.get(_propName2.toLowerCase()); 8443 if (void 0 !== serverPropName) { 8444 serverPropNames.delete(_propName2.toLowerCase()); 8445 var propName$jscomp$0 = clientProps[_propName2]; 8446 serverPropName = serverProps[serverPropName]; 8447 var clientPropValue = describePropValue( 8448 propName$jscomp$0, 8449 maxLength$jscomp$0 8450 ); 8451 maxLength$jscomp$0 = describePropValue( 8452 serverPropName, 8453 maxLength$jscomp$0 8454 ); 8455
8455 "object" === typeof propName$jscomp$0 && null !== propName$jscomp$0 && "object" === typeof serverPropName && null !== serverPropName && "Object" === objectName(propName$jscomp$0) && "Object" === objectName(serverPropName) && (2 < Object.keys(propName$jscomp$0).length || 2 < Object.keys(serverPropName).length || -1 < clientPropValue.indexOf("...") || -1 < maxLength$jscomp$0.indexOf("...")) ? content += indentation(indent + 1) + _propName2 + "={{\n" + describePropertiesDiff( 8456 propName$jscomp$0, 8457 serverPropName, 8458 indent + 2 8459 ) + indentation(indent + 1) + "}}\n" : (content += added(indent + 1) + _propName2 + "=" + clientPropValue + "\n", content += removed(indent + 1) + _propName2 + "=" + maxLength$jscomp$0 + "\n"); 8460 } else 8461 content += indentation(indent + 1) + _propName2 + "=" + describePropValue(clientProps[_propName2], maxLength$jscomp$0) + "\n"; 8462 } 8463 serverPropNames.forEach(function(propName) { 8464 if ("children" !== propName) { 8465 var maxLength = 120 - 2 * (indent + 1) - propName.length - 1; 8466 content += removed(indent + 1) + propName + "=" + describePropValue(serverProps[propName], maxLength) + "\n"; 8467 } 8468 }); 8469 content = "" === content ? indentation(indent) + "<" + type + ">\n" : indentation(indent) + "<" + type + "\n" + content + indentation(indent) + ">\n"; 8470 } 8471 type = serverProps.children; 8472 clientProps = clientProps.children; 8473 if ("string" === typeof type || "number" === typeof type || "bigint" === typeof type) { 8474 serverPropNames = ""; 8475 if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) 8476 serverPropNames = "" + clientProps; 8477 content += describeTextDiff(serverPropNames, "" + type, indent + 1); 8478 } else if ("string" === typeof clientProps || "number" === typeof clientProps || "bigint" === typeof clientProps) 8479 content = null == type ? content + describeTextDiff("" + clientProps, null, indent + 1) : content + describeTextDiff("" + clientProps, void 0, indent + 1); 8480 return content; 8481 } 8482 function describeSiblingFiber(fiber, indent) { 8483 var type = describeFiberType(fiber); 8484 if (null === type) { 8485 type = ""; 8486 for (fiber = fiber.child; fiber; ) 8487 type += describeSiblingFiber(fiber, indent), fiber = fiber.sibling; 8488 return type; 8489 } 8490 return indentation(indent) + "<" + type + ">\n"; 8491 } 8492 function describeNode(node, indent) { 8493 var skipToNode = findNotableNode(node, indent); 8494 if (skipToNode !== node && (1 !== node.children.length || node.children[0] !== skipToNode)) 8495 return indentation(indent) + "...\n" + describeNode(skipToNode, indent + 1); 8496 skipToNode = ""; 8497 var debugInfo = node.fiber._debugInfo; 8498 if (debugInfo) 8499 for (var i = 0; i < debugInfo.length; i++) { 8500 var serverComponentName = debugInfo[i].name; 8501 "string" === typeof serverComponentName && (skipToNode += indentation(indent) + "<" + serverComponentName + ">\n", indent++); 8502 } 8503 debugInfo = ""; 8504 i = node.fiber.pendingProps; 8505 if (6 === node.fiber.tag) 8506 debugInfo = describeTextDiff(i, node.serverProps, indent), indent++; 8507 else if (serverComponentName = describeFiberType(node.fiber), null !== serverComponentName) 8508 if (void 0 === node.serverProps) { 8509 debugInfo = indent; 8510 var maxLength = 120 - 2 * debugInfo - serverComponentName.length - 2, content = ""; 8511 for (propName in i) 8512 if (i.hasOwnProperty(propName) && "children" !== propName) { 8513 var propValue = describePropValue(i[propName], 15); 8514 maxLength -= propName.length + propValue.length + 2; 8515 if (0 > maxLength) { 8516 content += " ..."; 8517 break; 8518 } 8519 content += " " + propName + "=" + propValue; 8520 } 8521 debugInfo = indentation(debugInfo) + "<" + serverComponentName + content + ">\n"; 8522 indent++; 8523 } else 8524 null === node.serverProps ? (debugInfo = describeExpandedElement( 8525 serverComponentName, 8526 i, 8527 added(indent) 8528 ), indent++) : "string" === typeof node.serverProps ? console.error( 8529 "Should not have matched a non HostText fiber to a Text node. This is a bug in React." 8530 ) : (debugInfo = describeElementDiff( 8531 serverComponentName, 8532 i, 8533 node.serverProps, 8534 indent 8535 ), indent++); 8536 var propName = ""; 8537 i = node.fiber.child; 8538 for (serverComponentName = 0; i && serverComponentName < node.children.length; ) 8539 maxLength = node.children[serverComponentName], maxLength.fiber === i ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i, indent), i = i.sibling; 8540 i && 0 < node.children.length && (propName += indentation(indent) + "...\n"); 8541 i = node.serverTail; 8542 null === node.serverProps && indent--; 8543 for (node = 0; node < i.length; node++) 8544 serverComponentName = i[node], propName = "string" === typeof serverComponentName ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + "\n") : propName + describeExpandedElement( 8545 serverComponentName.type, 8546 serverComponentName.props, 8547 removed(indent) 8548 ); 8549 return skipToNode + debugInfo + propName; 8550 } 8551 function describeDiff(rootNode) { 8552 try { 8553 return "\n\n" + describeNode(rootNode, 0); 8554 } catch (x) { 8555 return ""; 8556 } 8557 } 8558 function describeAncestors(ancestor, child, props) { 8559 for (var fiber = child, node = null, distanceFromLeaf = 0; fiber; ) 8560 fiber === ancestor && (distanceFromLeaf = 0), node = { 8561 fiber, 8562 children: null !== node ? [node] : [], 8563 serverProps: fiber === child ? props : fiber === ancestor ? null : void 0, 8564 serverTail: [], 8565 distanceFromLeaf 8566 }, distanceFromLeaf++, fiber = fiber.return; 8567 return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; 8568 } 8569 function updatedAncestorInfoDev(oldInfo, tag) { 8570 var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), info = { tag }; 8571 -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, ancestorInfo.nobrTagInScope = null); 8572 -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null); 8573 -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, ancestorInfo.dlItemTagAutoclosing = null); 8574 ancestorInfo.current = info; 8575 "form" === tag && (ancestorInfo.formTag = info); 8576 "a" === tag && (ancestorInfo.aTagInScope = info); 8577 "button" === tag && (ancestorInfo.buttonTagInScope = info); 8578 "nobr" === tag && (ancestorInfo.nobrTagInScope = info); 8579 "p" === tag && (ancestorInfo.pTagInButtonScope = info); 8580 "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); 8581 if ("dd" === tag || "dt" === tag) 8582 ancestorInfo.dlItemTagAutoclosing = info; 8583 "#document" === tag || "html" === tag ? ancestorInfo.containerTagInScope = null : ancestorInfo.containerTagInScope || (ancestorInfo.containerTagInScope = info); 8584 null !== oldInfo || "#document" !== tag && "html" !== tag && "body" !== tag ? true === ancestorInfo.implicitRootScope && (ancestorInfo.implicitRootScope = false) : ancestorInfo.implicitRootScope = true; 8585 return ancestorInfo; 8586 } 8587 function isTagValidWithParent(tag, parentTag, implicitRootScope) { 8588 switch (parentTag) { 8589 case "select": 8590 return "hr" === tag || "option" === tag || "optgroup" === tag || "script" === tag || "template" === tag || "#text" === tag; 8591 case "optgroup": 8592 return "option" === tag || "#text" === tag; 8593 case "option": 8594 return "#text" === tag; 8595 case "tr": 8596 return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; 8597 case "tbody": 8598 case "thead": 8599 case "tfoot": 8600 return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; 8601 case "colgroup": 8602 return "col" === tag || "template" === tag; 8603 case "table": 8604 return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; 8605 case "head": 8606 return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; 8607 case "html": 8608 if (implicitRootScope) break; 8609 return "head" === tag || "body" === tag || "frameset" === tag; 8610 case "frameset": 8611 return "frame" === tag; 8612 case "#document": 8613 if (!implicitRootScope) return "html" === tag; 8614 } 8615 switch (tag) { 8616 case "h1": 8617 case "h2": 8618 case "h3": 8619 case "h4": 8620 case "h5": 8621 case "h6": 8622 return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag; 8623 case "rp": 8624 case "rt": 8625 return -1 === impliedEndTags.indexOf(parentTag); 8626 case "caption": 8627 case "col": 8628 case "colgroup": 8629 case "frameset": 8630 case "frame": 8631 case "tbody": 8632 case "td": 8633 case "tfoot": 8634 case "th": 8635 case "thead": 8636 case "tr": 8637 return null == parentTag; 8638 case "head": 8639 return implicitRootScope || null === parentTag; 8640 case "html": 8641 return implicitRootScope && "#document" === parentTag || null === parentTag; 8642 case "body": 8643 return implicitRootScope && ("#document" === parentTag || "html" === parentTag) || null === parentTag; 8644 } 8645 return true; 8646 }
vendor: 4,134 bytes, lines 8647-8753
8647 function findInvalidAncestorForTag(tag, ancestorInfo) { 8648 switch (tag) { 8649 case "address": 8650 case "article": 8651 case "aside": 8652 case "blockquote": 8653 case "center": 8654 case "details": 8655 case "dialog": 8656 case "dir": 8657 case "div": 8658 case "dl": 8659 case "fieldset": 8660 case "figcaption": 8661 case "figure": 8662 case "footer": 8663 case "header": 8664 case "hgroup": 8665 case "main": 8666 case "menu": 8667 case "nav": 8668 case "ol": 8669 case "p": 8670 case "section": 8671 case "summary": 8672 case "ul": 8673 case "pre": 8674 case "listing": 8675 case "table": 8676 case "hr": 8677 case "xmp": 8678 case "h1": 8679 case "h2": 8680 case "h3": 8681 case "h4": 8682 case "h5": 8683 case "h6": 8684 return ancestorInfo.pTagInButtonScope; 8685 case "form": 8686 return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 8687 case "li": 8688 return ancestorInfo.listItemTagAutoclosing; 8689 case "dd": 8690 case "dt": 8691 return ancestorInfo.dlItemTagAutoclosing; 8692 case "button": 8693 return ancestorInfo.buttonTagInScope; 8694 case "a": 8695 return ancestorInfo.aTagInScope; 8696 case "nobr": 8697 return ancestorInfo.nobrTagInScope; 8698 } 8699 return null; 8700 } 8701 function findAncestor(parent, tagName) { 8702 for (; parent; ) { 8703 switch (parent.tag) { 8704 case 5: 8705 case 26: 8706 case 27: 8707 if (parent.type === tagName) return parent; 8708 } 8709 parent = parent.return; 8710 } 8711 return null; 8712 } 8713 function validateDOMNesting(childTag, ancestorInfo) { 8714 ancestorInfo = ancestorInfo || emptyAncestorInfoDev; 8715 var parentInfo = ancestorInfo.current; 8716 ancestorInfo = (parentInfo = isTagValidWithParent( 8717 childTag, 8718 parentInfo && parentInfo.tag, 8719 ancestorInfo.implicitRootScope 8720 ) ? null : parentInfo) ? null : findInvalidAncestorForTag(childTag, ancestorInfo); 8721 ancestorInfo = parentInfo || ancestorInfo; 8722 if (!ancestorInfo) return true; 8723 var ancestorTag = ancestorInfo.tag; 8724 ancestorInfo = String(!!parentInfo) + "|" + childTag + "|" + ancestorTag; 8725 if (didWarn[ancestorInfo]) return false; 8726 didWarn[ancestorInfo] = true; 8727 var ancestor = (ancestorInfo = current) ? findAncestor(ancestorInfo.return, ancestorTag) : null, ancestorDescription = null !== ancestorInfo && null !== ancestor ? describeAncestors(ancestor, ancestorInfo, null) : "", tagDisplayName = "<" + childTag + ">"; 8728 parentInfo ? (parentInfo = "", "table" === ancestorTag && "tr" === childTag && (parentInfo += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), console.error( 8729 "In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s", 8730 tagDisplayName, 8731 ancestorTag, 8732 parentInfo, 8733 ancestorDescription 8734 )) : console.error( 8735 "In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s", 8736 tagDisplayName, 8737 ancestorTag, 8738 ancestorDescription 8739 ); 8740 ancestorInfo && (childTag = ancestorInfo.return, null === ancestor || null === childTag || ancestor === childTag && childTag._debugOwner === ancestorInfo._debugOwner || runWithFiberInDEV(ancestor, function() { 8741 console.error( 8742 "<%s> cannot contain a nested %s.\nSee this log for the ancestor stack trace.", 8743 ancestorTag, 8744 tagDisplayName 8745 ); 8746 })); 8747 return false; 8748 } 8749 function validateTextNesting(childText, parentTag, implicitRootScope) { 8750 if (implicitRootScope || isTagValidWithParent("#text", parentTag, false)) 8751 return true; 8752 implicitRootScope = "#text|" + parentTag; 8753 if (didWarn[implicitRootScope]) return false;
8754 didWarn[implicitRootScope] = true; 8755 var ancestor = (implicitRootScope = current) ? findAncestor(implicitRootScope, parentTag) : null; 8756 implicitRootScope = null !== implicitRootScope && null !== ancestor ? describeAncestors( 8757 ancestor, 8758 implicitRootScope, 8759 6 !== implicitRootScope.tag ? { children: null } : null 8760 ) : ""; 8761 /\S/.test(childText) ? console.error( 8762 "In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", 8763 parentTag, 8764 implicitRootScope 8765 ) : console.error( 8766 "In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", 8767 parentTag, 8768 implicitRootScope 8769 ); 8770 return false; 8771 } 8772 function setTextContent(node, text) { 8773 if (text) { 8774 var firstChild = node.firstChild; 8775 if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) { 8776 firstChild.nodeValue = text; 8777 return; 8778 } 8779 } 8780 node.textContent = text; 8781 } 8782 function camelize(string) { 8783 return string.replace(hyphenPattern, function(_, character) { 8784 return character.toUpperCase(); 8785 }); 8786 } 8787 function setValueForStyle(style2, styleName, value) { 8788 var isCustomProperty = 0 === styleName.indexOf("--"); 8789 isCustomProperty || (-1 < styleName.indexOf("-") ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = true, console.error( 8790 "Unsupported style property %s. Did you mean %s?", 8791 styleName, 8792 camelize(styleName.replace(msPattern, "ms-")) 8793 )) : badVendoredStyleNamePattern.test(styleName) ? warnedStyleNames.hasOwnProperty(styleName) && warnedStyleNames[styleName] || (warnedStyleNames[styleName] = true, console.error( 8794 "Unsupported vendor-prefixed style property %s. Did you mean %s?", 8795 styleName, 8796 styleName.charAt(0).toUpperCase() + styleName.slice(1) 8797 )) : !badStyleValueWithSemicolonPattern.test(value) || warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = true, console.error( 8798 `Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, 8799 styleName, 8800 value.replace(badStyleValueWithSemicolonPattern, "") 8801 )), "number" === typeof value && (isNaN(value) ? warnedForNaNValue || (warnedForNaNValue = true, console.error( 8802 "`NaN` is an invalid value for the `%s` css style property.", 8803 styleName 8804 )) : isFinite(value) || warnedForInfinityValue || (warnedForInfinityValue = true, console.error( 8805 "`Infinity` is an invalid value for the `%s` css style property.", 8806 styleName 8807 )))); 8808 null == value || "boolean" === typeof value || "" === value ? isCustomProperty ? style2.setProperty(styleName, "") : "float" === styleName ? style2.cssFloat = "" : style2[styleName] = "" : isCustomProperty ? style2.setProperty(styleName, value) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? "float" === styleName ? style2.cssFloat = value : (checkCSSPropertyStringCoercion(value, styleName), style2[styleName] = ("" + value).trim()) : style2[styleName] = value + "px"; 8809 } 8810 function setValueForStyles(node, styles, prevStyles) { 8811 if (null != styles && "object" !== typeof styles) 8812 throw Error( 8813 "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." 8814 ); 8815 styles && Object.freeze(styles); 8816 node = node.style; 8817 if (null != prevStyles) { 8818 if (styles) { 8819 var expandedUpdates = {}; 8820 if (prevStyles) { 8821 for (var key in prevStyles) 8822 if (prevStyles.hasOwnProperty(key) && !styles.hasOwnProperty(key)) 8823 for (var longhands = shorthandToLonghand[key] || [key], i = 0; i < longhands.length; i++)
8824 expandedUpdates[longhands[i]] = key; 8825 } 8826 for (var _key in styles) 8827 if (styles.hasOwnProperty(_key) && (!prevStyles || prevStyles[_key] !== styles[_key])) 8828 for (key = shorthandToLonghand[_key] || [_key], longhands = 0; longhands < key.length; longhands++) 8829 expandedUpdates[key[longhands]] = _key; 8830 _key = {}; 8831 for (var key$jscomp$0 in styles) 8832 for (key = shorthandToLonghand[key$jscomp$0] || [key$jscomp$0], longhands = 0; longhands < key.length; longhands++) 8833 _key[key[longhands]] = key$jscomp$0; 8834 key$jscomp$0 = {}; 8835 for (var _key2 in expandedUpdates) 8836 if (key = expandedUpdates[_key2], (longhands = _key[_key2]) && key !== longhands && (i = key + "," + longhands, !key$jscomp$0[i])) { 8837 key$jscomp$0[i] = true; 8838 i = console; 8839 var value = styles[key]; 8840 i.error.call( 8841 i, 8842 "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", 8843 null == value || "boolean" === typeof value || "" === value ? "Removing" : "Updating", 8844 key, 8845 longhands 8846 ); 8847 } 8848 } 8849 for (var styleName in prevStyles) 8850 !prevStyles.hasOwnProperty(styleName) || null != styles && styles.hasOwnProperty(styleName) || (0 === styleName.indexOf("--") ? node.setProperty(styleName, "") : "float" === styleName ? node.cssFloat = "" : node[styleName] = ""); 8851 for (var _styleName in styles) 8852 _key2 = styles[_styleName], styles.hasOwnProperty(_styleName) && prevStyles[_styleName] !== _key2 && setValueForStyle(node, _styleName, _key2); 8853 } else 8854 for (expandedUpdates in styles) 8855 styles.hasOwnProperty(expandedUpdates) && setValueForStyle(node, expandedUp
8855dates, styles[expandedUpdates]); 8856 } 8857 function isCustomElement(tagName) { 8858 if (-1 === tagName.indexOf("-")) return false; 8859 switch (tagName) { 8860 case "annotation-xml": 8861 case "color-profile": 8862 case "font-face": 8863 case "font-face-src": 8864 case "font-face-uri": 8865 case "font-face-format": 8866 case "font-face-name": 8867 case "missing-glyph": 8868 return false; 8869 default: 8870 return true; 8871 } 8872 } 8873 function getAttributeAlias(name) { 8874 return aliases.get(name) || name; 8875 } 8876 function validateProperty$1(tagName, name) { 8877 if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) 8878 return true; 8879 if (rARIACamel$1.test(name)) { 8880 tagName = "aria-" + name.slice(4).toLowerCase(); 8881 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 8882 if (null == tagName) 8883 return console.error( 8884 "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", 8885 name 8886 ), warnedProperties$1[name] = true; 8887 if (name !== tagName) 8888 return console.error( 8889 "Invalid ARIA attribute `%s`. Did you mean `%s`?", 8890 name, 8891 tagName 8892 ), warnedProperties$1[name] = true; 8893 } 8894 if (rARIA$1.test(name)) { 8895 tagName = name.toLowerCase(); 8896 tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; 8897 if (null == tagName) return warnedProperties$1[name] = true, false; 8898 name !== tagName && (console.error( 8899 "Unknown ARIA attribute `%s`. Did you mean `%s`?", 8900 name, 8901 tagName 8902 ), warnedProperties$1[name] = true); 8903 } 8904 return true; 8905 } 8906 function validateProperties$2(type, props) { 8907 var invalidProps = [], key; 8908 for (key in props) 8909 validateProperty$1(type, key) || invalidProps.push(key); 8910 props = invalidProps.map(function(prop) { 8911 return "`" + prop + "`"; 8912 }).join(", "); 8913 1 === invalidProps.length ? console.error( 8914 "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", 8915 props, 8916 type 8917 ) : 1 < invalidProps.length && console.error( 8918 "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", 8919 props, 8920 type 8921 ); 8922 } 8923 function validateProperty(tagName, name, value, eventRegistry) { 8924 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) 8925 return true; 8926 var lowerCasedName = name.toLowerCase(); 8927 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) 8928 return console.error( 8929 "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React." 8930 ), warnedProperties[name] = true; 8931 if ("function" === typeof value && ("form" === tagName && "action" === name || "input" === tagName && "formAction" === name || "button" === tagName && "formAction" === name)) 8932 return true; 8933 if (null != eventRegistry) { 8934 tagName = eventRegistry.possibleRegistrationNames; 8935 if (eventRegistry.registrationNameDependencies.hasOwnProperty(name)) 8936 return true; 8937 eventRegistry = tagName.hasOwnProperty(lowerCasedName) ? tagName[lowerCasedName] : null; 8938 if (null != eventRegistry) 8939 return console.error( 8940 "Invalid event handler property `%s`. Did you mean `%s`?", 8941 name, 8942 eventRegistry 8943 ), warnedProperties[name] = true; 8944 if (EVENT_NAME_REGEX.test(name)) 8945 return console.error( 8946 "Unknown event handler property `%s`. It will be ignored.", 8947 name 8948 ), warnedProperties[name] = true; 8949 } else if (EVENT_NAME_REGEX.test(name)) 8950 return INVALID_EVENT_NAME_REGEX.test(name) && console.error( 8951 "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", 8952 name 8953 ), warnedProperties[name] = true; 8954 if (rARIA.test(name) || rARIACamel.test(name)) return true; 8955 if ("innerhtml" === lowerCasedName) 8956 return console.error( 8957 "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`." 8958 ), warnedProperties[name] = true; 8959 if ("aria" === lowerCasedName) 8960 return console.error( 8961 "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead." 8962 ), warnedProperties[name] = true; 8963 if ("is" === lowerCasedName && null !== value && void 0 !== value && "string" !== typeof value) 8964 return console.error( 8965 "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", 8966 typeof value 8967 ), warnedProperties[name] = true; 8968 if ("number" === typeof value && isNaN(value)) 8969 return console.error( 8970 "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", 8971 name 8972 ), warnedProperties[name] = true; 8973 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { 8974 if (lowerCasedName = possibleStandardNames[lowerCasedName], lowerCasedName !== name) 8975 return console.error( 8976 "Invalid DOM property `%s`. Did you mean `%s`?", 8977 name, 8978 lowerCasedName 8979 ), warnedProperties[name] = true; 8980 } else if (name !== lowerCasedName) 8981 return console.error( 8982 "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", 8983 name, 8984 lowerCasedName 8985 ), warnedProperties[name] = true; 8986 switch (name) { 8987 case "dangerouslySetInnerHTML": 8988 case "children": 8989 case "style": 8990 case "suppressContentEditableWarning": 8991 case "suppressHydrationWarning": 8992 case "defaultValue": 8993 case "defaultChecked": 8994 case "innerHTML": 8995 case "ref": 8996 return true; 8997 case "innerText": 8998 case "textContent": 8999 return true; 9000 } 9001 switch (typeof value) { 9002 case "boolean": 9003 switch (name) { 9004 case "autoFocus": 9005 case "checked": 9006 case "multiple": 9007 case "muted": 9008 case "selected": 9009 case "contentEditable": 9010 case "spellCheck": 9011 case "draggable": 9012 case "value": 9013 case "autoReverse": 9014 case "externalResourcesRequired": 9015 case "focusable": 9016 case "preserveAlpha": 9017 case "allowFullScreen": 9018 case "async": 9019 case "autoPlay": 9020 case "controls": 9021 case "default": 9022 case "defer": 9023 case "disabled": 9024 case "disablePictureInPicture": 9025 case "disableRemotePlayback": 9026 case "formNoValidate": 9027 case "hidden": 9028 case "loop": 9029 case "noModule": 9030 case "noValidate": 9031 case "open":
9032 case "playsInline": 9033 case "readOnly": 9034 case "required": 9035 case "reversed": 9036 case "scoped": 9037 case "seamless": 9038 case "itemScope": 9039 case "capture": 9040 case "download": 9041 case "inert": 9042 return true; 9043 default: 9044 lowerCasedName = name.toLowerCase().slice(0, 5); 9045 if ("data-" === lowerCasedName || "aria-" === lowerCasedName) 9046 return true; 9047 value ? console.error( 9048 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', 9049 value, 9050 name, 9051 name, 9052 value, 9053 name 9054 ) : console.error( 9055 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', 9056 value, 9057 name, 9058 name, 9059 value, 9060 name, 9061 name, 9062 name 9063 ); 9064 return warnedProperties[name] = true; 9065 } 9066 case "function": 9067 case "symbol": 9068 return warnedProperties[name] = true, false; 9069 case "string": 9070 if ("false" === value || "true" === value) { 9071 switch (name) { 9072 case "checked": 9073 case "selected": 9074 case "multiple": 9075 case "muted": 9076 case "allowFullScreen": 9077 case "async": 9078 case "autoPlay": 9079 case "controls": 9080 case "default": 9081 case "defer": 9082 case "disabled": 9083 case "disablePictureInPicture": 9084 case "disableRemotePlayback": 9085 case "formNoValidate": 9086 case "hidden": 9087 case "loop": 9088 case "noModule": 9089 case "noValidate": 9090 case "open": 9091 case "playsInline": 9092 case "readOnly": 9093 case "required": 9094 case "reversed": 9095 case "scoped": 9096 case "seamless": 9097 case "itemScope": 9098 case "inert": 9099 break; 9100 default: 9101 return true; 9102 } 9103 console.error( 9104 "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", 9105 value, 9106 name, 9107 "false" === value ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', 9108 name, 9109 value 9110 ); 9111 warnedProperties[name] = true; 9112 } 9113 } 9114 return true; 9115 } 9116 function warnUnknownProperties(type, props, eventRegistry) { 9117 var unknownProps = [], key; 9118 for (key in props) 9119 validateProperty(type, key, props[key], eventRegistry) || unknownProps.push(key); 9120 props = unknownProps.map(function(prop) { 9121 return "`" + prop + "`"; 9122 }).join(", "); 9123 1 === unknownProps.length ? console.error( 9124 "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ", 9125 props, 9126 type 9127 ) : 1 < unknownProps.length && console.error( 9128 "Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ", 9129 props, 9130 type 9131 ); 9132 } 9133 function sanitizeURL(url) { 9134 return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url; 9135 } 9136 function getEventTarget(nativeEvent) { 9137 nativeEvent = nativeEvent.target || nativeEvent.srcElement || window; 9138 nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement); 9139 return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent; 9140 } 9141 function restoreStateOfTarget(target) { 9142 var internalInstance = getInstanceFromNode(target); 9143 if (internalInstance && (target = internalInstance.stateNode)) { 9144 var props = target[internalPropsKey] || null; 9145 a: switch (target = internalInstance.stateNode, internalInstance.type) { 9146 case "input": 9147 updateInput( 9148 target, 9149 props.value, 9150 props.defaultValue, 9151 props.defaultValue, 9152 props.checked, 9153 props.defaultChecked, 9154 props.type, 9155 props.name 9156 ); 9157 internalInstance = props.name; 9158 if ("radio" === props.type && null != internalInstance) { 9159 for (props = target; props.parentNode; ) props = props.parentNode; 9160 checkAttributeStringCoercion(internalInstance, "name"); 9161 props = props.querySelectorAll( 9162 'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes( 9163 "" + internalInstance 9164 ) + '"][type="radio"]' 9165 ); 9166 for (internalInstance = 0; internalInstance < props.length; internalInstance++) { 9167 var otherNode = props[internalInstance];
9168 if (otherNode !== target && otherNode.form === target.form) { 9169 var otherProps = otherNode[internalPropsKey] || null; 9170 if (!otherProps) 9171 throw Error( 9172 "ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported." 9173 ); 9174 updateInput( 9175 otherNode, 9176 otherProps.value, 9177 otherProps.defaultValue, 9178 otherProps.defaultValue, 9179 otherProps.checked, 9180 otherProps.defaultChecked, 9181 otherProps.type, 9182 otherProps.name 9183 ); 9184 } 9185 } 9186 for (internalInstance = 0; internalInstance < props.length; internalInstance++) 9187 otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode); 9188 } 9189 break a; 9190 case "textarea": 9191 updateTextarea(target, props.value, props.defaultValue); 9192 break a; 9193 case "select": 9194 internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false); 9195 } 9196 } 9197 } 9198 function batchedUpdates$1(fn, a, b) { 9199 if (isInsideEventHandler) return fn(a, b); 9200 isInsideEventHandler = true; 9201 try { 9202 var JSCompiler_inline_result = fn(a); 9203 return JSCompiler_inline_result; 9204 } finally { 9205 if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) { 9206 if (flushSyncWork$1(), restoreTarget && (a = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a), fn)) 9207 for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]); 9208 } 9209 } 9210 } 9211 function getListener(inst, registrationName) { 9212 var stateNode = inst.stateNode; 9213 if (null === stateNode) return null; 9214 var props = stateNode[internalPropsKey] || null; 9215 if (null === props) return null; 9216 stateNode = props[registrationName]; 9217 a: switch (registrationName) { 9218 case "onClick": 9219 case "onClickCapture": 9220 case "onDoubleClick": 9221 case "onDoubleClickCapture": 9222 case "onMouseDown": 9223 case "onMouseDownCapture": 9224 case "onMouseMove": 9225 case "onMouseMoveCapture": 9226 case "onMouseUp": 9227 case "onMouseUpCapture": 9228 case "onMouseEnter": 9229 (props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst)); 9230 inst = !props; 9231 break a; 9232 default: 9233 inst = false; 9234 } 9235 if (inst) return null; 9236 if (stateNode && "function" !== typeof stateNode) 9237 throw Error( 9238 "Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof stateNode + "` type." 9239 ); 9240 return stateNode; 9241 } 9242 function getData() { 9243 if (fallbackText) return fallbackText; 9244 var start, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length; 9245 for (start = 0; start < startLength && startValue[start] === endValue[start]; start++) ; 9246 var minEnd = startLength - start; 9247 for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ; 9248 return fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0); 9249 } 9250 function getEventCharCode(nativeEvent) { 9251 var keyCode = nativeEvent.keyCode; 9252 "charCode" in nativeEvent ? (nativeEvent = nativeEvent.charCode, 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : nativeEvent = keyCode; 9253 10 === nativeEvent && (nativeEvent = 13); 9254 return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0; 9255 } 9256 function functionThatReturnsTrue() { 9257 return true; 9258 } 9259 function functionThatReturnsFalse() { 9260 return false;
vendor: 4,538 bytes, lines 9261-9353
9261 } 9262 function createSyntheticEvent(Interface) { 9263 function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) { 9264 this._reactName = reactName; 9265 this._targetInst = targetInst; 9266 this.type = reactEventType; 9267 this.nativeEvent = nativeEvent; 9268 this.target = nativeEventTarget; 9269 this.currentTarget = null; 9270 for (var propName in Interface) 9271 Interface.hasOwnProperty(propName) && (reactName = Interface[propName], this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName]); 9272 this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : false === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse; 9273 this.isPropagationStopped = functionThatReturnsFalse; 9274 return this; 9275 } 9276 assign(SyntheticBaseEvent.prototype, { 9277 preventDefault: function() { 9278 this.defaultPrevented = true; 9279 var event = this.nativeEvent; 9280 event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = false), this.isDefaultPrevented = functionThatReturnsTrue); 9281 }, 9282 stopPropagation: function() { 9283 var event = this.nativeEvent; 9284 event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = true), this.isPropagationStopped = functionThatReturnsTrue); 9285 }, 9286 persist: function() { 9287 }, 9288 isPersistent: functionThatReturnsTrue 9289 }); 9290 return SyntheticBaseEvent; 9291 } 9292 function modifierStateGetter(keyArg) { 9293 var nativeEvent = this.nativeEvent; 9294 return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[keyArg] : false; 9295 } 9296 function getEventModifierState() { 9297 return modifierStateGetter; 9298 } 9299 function isFallbackCompositionEnd(domEventName, nativeEvent) { 9300 switch (domEventName) { 9301 case "keyup": 9302 return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 9303 case "keydown": 9304 return nativeEvent.keyCode !== START_KEYCODE; 9305 case "keypress": 9306 case "mousedown": 9307 case "focusout": 9308 return true; 9309 default: 9310 return false; 9311 } 9312 } 9313 function getDataFromCustomEvent(nativeEvent) { 9314 nativeEvent = nativeEvent.detail; 9315 return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null; 9316 } 9317 function getNativeBeforeInputChars(domEventName, nativeEvent) { 9318 switch (domEventName) { 9319 case "compositionend": 9320 return getDataFromCustomEvent(nativeEvent); 9321 case "keypress": 9322 if (nativeEvent.which !== SPACEBAR_CODE) return null; 9323 hasSpaceKeypress = true; 9324 return SPACEBAR_CHAR; 9325 case "textInput": 9326 return domEventName = nativeEvent.data, domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName; 9327 default: 9328 return null; 9329 } 9330 } 9331 function getFallbackBeforeInputChars(domEventName, nativeEvent) { 9332 if (isComposing) 9333 return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (domEventName = getData(), fallbackText = startText = root = null, isComposing = false, domEventName) : null; 9334 switch (domEventName) { 9335 case "paste": 9336 return null; 9337 case "keypress": 9338 if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) { 9339 if (nativeEvent.char && 1 < nativeEvent.char.length) 9340 return nativeEvent.char; 9341 if (nativeEvent.which) 9342 return String.fromCharCode(nativeEvent.which); 9343 } 9344 return null; 9345 case "compositionend": 9346 return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data; 9347 default: 9348 return null; 9349 } 9350 } 9351 function isTextInputElement(elem) { 9352 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 9353 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? true : false;
9354 } 9355 function isEventSupported(eventNameSuffix) { 9356 if (!canUseDOM) return false; 9357 eventNameSuffix = "on" + eventNameSuffix; 9358 var isSupported = eventNameSuffix in document; 9359 isSupported || (isSupported = document.createElement("div"), isSupported.setAttribute(eventNameSuffix, "return;"), isSupported = "function" === typeof isSupported[eventNameSuffix]); 9360 return isSupported; 9361 } 9362 function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) { 9363 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [target] : restoreTarget = target; 9364 inst = accumulateTwoPhaseListeners(inst, "onChange"); 9365 0 < inst.length && (nativeEvent = new SyntheticEvent( 9366 "onChange", 9367 "change", 9368 null, 9369 nativeEvent, 9370 target 9371 ), dispatchQueue.push({ event: nativeEvent, listeners: inst })); 9372 } 9373 function runEventInBatch(dispatchQueue) { 9374 processDispatchQueue(dispatchQueue, 0); 9375 } 9376 function getInstIfValueChanged(targetInst) { 9377 var targetNode = getNodeFromInstance(targetInst); 9378 if (updateValueIfChanged(targetNode)) return targetInst; 9379 } 9380 function getTargetInstForChangeEvent(domEventName, targetInst) { 9381 if ("change" === domEventName) return targetInst; 9382 } 9383 function stopWatchingForValueChange() { 9384 activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), activeElementInst$1 = activeElement$1 = null); 9385 } 9386 function handlePropertyChange(nativeEvent) { 9387 if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1)) { 9388 var dispatchQueue = []; 9389 createAndAccumulateChangeEvent( 9390 dispatchQueue, 9391 activeElementInst$1, 9392 nativeEvent, 9393 getEventTarget(nativeEvent) 9394 ); 9395 batchedUpdates$1(runEventInBatch, dispatchQueue); 9396 } 9397 } 9398 function handleEventsForInputEventPolyfill(domEventName, target, targetInst) { 9399 "focusin" === domEventName ? (stopWatchingForValueChange(), activeElement$1 = target, activeElementInst$1 = targetInst, activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange(); 9400 } 9401 function getTargetInstForInputEventPolyfill(domEventName) { 9402 if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName) 9403 return getInstIfValueChanged(activeElementInst$1); 9404 } 9405 function getTargetInstForClickEvent(domEventName, targetInst) { 9406 if ("click" === domEventName) return getInstIfValueChanged(targetInst); 9407 } 9408 function getTargetInstForInputOrChangeEvent(domEventName, targetInst) { 9409 if ("input" === domEventName || "change" === domEventName) 9410 return getInstIfValueChanged(targetInst); 9411 } 9412 function is(x, y) { 9413 return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y; 9414 } 9415 function shallowEqual(objA, objB) { 9416 if (objectIs(objA, objB)) return true; 9417 if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB) 9418 return false; 9419 var keysA = Object.keys(objA), keysB = Object.keys(objB); 9420 if (keysA.length !== keysB.length) return false; 9421 for (keysB = 0; keysB < keysA.length; keysB++) { 9422 var currentKey = keysA[keysB]; 9423 if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) 9424 return false; 9425 } 9426 return true; 9427 } 9428 function getLeafNode(node) { 9429 for (; node && node.firstChild; ) node = node.firstChild; 9430 return node; 9431 } 9432 function getNodeForCharacterOffset(root2, offset) { 9433 var node = getLeafNode(root2); 9434 root2 = 0; 9435 for (var nodeEnd; node; ) { 9436 if (3 === node.nodeType) { 9437 nodeEnd = root2 + node.textContent.length; 9438 if (root2 <= offset && nodeEnd >= offset) 9439 return { node, offset: offset - root2 }; 9440 root2 = nodeEnd; 9441 } 9442 a: { 9443 for (; node; ) { 9444 if (node.nextSibling) { 9445 node = node.nextSibling; 9446 break a; 9447 } 9448 node = node.parentNode; 9449 } 9450 node = void 0; 9451 } 9452 node = getLeafNode(node); 9453 } 9454 }
9455 function containsNode(outerNode, innerNode) { 9456 return outerNode && innerNode ? outerNode === innerNode ? true : outerNode && 3 === outerNode.nodeType ? false : innerNode && 3 === innerNode.nodeType ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition ? !!(outerNode.compareDocumentPosition(innerNode) & 16) : false : false; 9457 } 9458 function getActiveElementDeep(containerInfo) { 9459 containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window; 9460 for (var element = getActiveElement(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement; ) { 9461 try { 9462 var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href; 9463 } catch (err) { 9464 JSCompiler_inline_result = false; 9465 } 9466 if (JSCompiler_inline_result) containerInfo = element.contentWindow; 9467 else break; 9468 element = getActiveElement(containerInfo.document); 9469 } 9470 return element; 9471 } 9472 function hasSelectionCapabilities(elem) { 9473 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 9474 return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable); 9475 } 9476 function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) { 9477 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument; 9478 mouseDown || null == activeElement || activeElement !== getActiveElement(doc) || (doc = activeElement, "selectionStart" in doc && hasSelectionCapabilities(doc) ? doc = { start: doc.selectionStart, end: doc.selectionEnd } : (doc = (doc.ownerDocument && doc.ownerDocument.defaultView || window).getSelection(), doc = { 9479 anchorNode: doc.anchorNode, 9480 anchorOffset: doc.anchorOffset, 9481 focusNode: doc.focusNode, 9482 focusOffset: doc.focusOffset 9483 }), lastSelection && shallowEqual(lastSelection, doc) || (lastSelection = doc, doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect"), 0 < doc.length && (nativeEvent = new SyntheticEvent( 9484 "onSelect", 9485 "select", 9486 null, 9487 nativeEvent, 9488 nativeEventTarget 9489 ), dispatchQueue.push({ event: nativeEvent, listeners: doc }), nativeEvent.target = activeElement))); 9490 } 9491 function makePrefixMap(styleProp, eventName) { 9492 var prefixes = {}; 9493 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(); 9494 prefixes["Webkit" + styleProp] = "webkit" + eventName; 9495 prefixes["Moz" + styleProp] = "moz" + eventName; 9496 return prefixes; 9497 } 9498 function getVendorPrefixedEventName(eventName) { 9499 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 9500 if (!vendorPrefixes[eventName]) return eventName; 9501 var prefixMap = vendorPrefixes[eventName], styleProp; 9502 for (styleProp in prefixMap) 9503 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) 9504 return prefixedEventNames[eventName] = prefixMap[styleProp]; 9505 return eventName; 9506 } 9507 function registerSimpleEvent(domEventName, reactName) { 9508 topLevelEventsToReactNames.set(domEventName, reactName); 9509 registerTwoPhaseEvent(reactName, [domEventName]); 9510 } 9511 function createCapturedValueAtFiber(value, source) { 9512 if ("object" === typeof value && null !== value) { 9513 var existing = CapturedStacks.get(value); 9514 if (void 0 !== existing) return existing; 9515 source = { 9516 value, 9517 source, 9518 stack: getStackByFiberInDevAndProd(source) 9519 }; 9520 CapturedStacks.set(value, source); 9521 return source; 9522 } 9523 return { 9524 value, 9525 source, 9526 stack: getStackByFiberInDevAndProd(source) 9527 }; 9528 } 9529 function finishQueueingConcurrentUpdates() { 9530 for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex; ) { 9531 var fiber = concurrentQueues[i]; 9532 concurrentQueues[i++] = null; 9533 var queue = concurrentQueues[i]; 9534 concurrentQueues[i++] = null; 9535 var update = concurrentQueues[i]; 9536 concurrentQueues[i++] = null; 9537 var lane = concurrentQueues[i]; 9538 concurrentQueues[i++] = null; 9539 if (null !== queue && null !== update) { 9540 var pending = queue.pending;
9541 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 9542 queue.pending = update; 9543 } 9544 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane); 9545 } 9546 } 9547 function enqueueUpdate$1(fiber, queue, update, lane) { 9548 concurrentQueues[concurrentQueuesIndex++] = fiber; 9549 concurrentQueues[concurrentQueuesIndex++] = queue; 9550 concurrentQueues[concurrentQueuesIndex++] = update; 9551 concurrentQueues[concurrentQueuesIndex++] = lane; 9552 concurrentlyUpdatedLanes |= lane; 9553 fiber.lanes |= lane; 9554 fiber = fiber.alternate; 9555 null !== fiber && (fiber.lanes |= lane); 9556 } 9557 function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { 9558 enqueueUpdate$1(fiber, queue, update, lane); 9559 return getRootForUpdatedFiber(fiber); 9560 } 9561 function enqueueConcurrentRenderForLane(fiber, lane) { 9562 enqueueUpdate$1(fiber, null, null, lane); 9563 return getRootForUpdatedFiber(fiber); 9564 } 9565 function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) { 9566 sourceFiber.lanes |= lane; 9567 var alternate = sourceFiber.alternate; 9568 null !== alternate && (alternate.lanes |= lane); 9569 for (var isHidden = false, parent = sourceFiber.return; null !== parent; ) 9570 parent.childLanes |= lane, alternate = parent.alternate, null !== alternate && (alternate.childLanes |= lane), 22 === parent.tag && (sourceFiber = parent.stateNode, null === sourceFiber || sourceFiber._visibility & OffscreenVisible || (isHidden = true)), sourceFiber = parent, parent = parent.return; 9571 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; 9572 } 9573 function getRootForUpdatedFiber(sourceFiber) { 9574 if (nestedUpdateCount > NESTED_UPDATE_LIMIT) 9575 throw nestedPassiveUpdateCount = nestedUpdateCount = 0, rootWithPassiveNestedUpdates = rootWithNestedUpdates = null, Error( 9576 "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops." 9577 ); 9578 nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT && (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, console.error( 9579 "Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render." 9580 )); 9581 null === sourceFiber.alternate && 0 !== (sourceFiber.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); 9582 for (var node = sourceFiber, parent = node.return; null !== parent; ) 9583 null === node.alternate && 0 !== (node.flags & 4098) && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = node.return; 9584 return 3 === node.tag ? node.stateNode : null; 9585 } 9586 function resolveFunctionForHotReloading(type) { 9587 if (null === resolveFamily) return type; 9588 var family = resolveFamily(type); 9589 return void 0 === family ? type : family.current; 9590 } 9591 function resolveForwardRefForHotReloading(type) { 9592 if (null === resolveFamily) return type; 9593 var family = resolveFamily(type); 9594 return void 0 === family ? null !== type && void 0 !== type && "function" === typeof type.render && (family = resolveFunctionForHotReloading(type.render), type.render !== family) ? (family = { $$typeof: REACT_FORWARD_REF_TYPE, render: family }, void 0 !== type.displayName && (family.displayName = type.displayName), family) : type : family.current; 9595 } 9596 function isCompatibleFamilyForHotReloading(fiber, element) { 9597 if (null === resolveFamily) return false;
9598 var prevType = fiber.elementType; 9599 element = element.type; 9600 var needsCompareFamilies = false, $$typeofNextType = "object" === typeof element && null !== element ? element.$$typeof : null; 9601 switch (fiber.tag) { 9602 case 1: 9603 "function" === typeof element && (needsCompareFamilies = true); 9604 break; 9605 case 0: 9606 "function" === typeof element ? needsCompareFamilies = true : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = true); 9607 break; 9608 case 11: 9609 $$typeofNextType === REACT_FORWARD_REF_TYPE ? needsCompareFamilies = true : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = true); 9610 break; 9611 case 14: 9612 case 15: 9613 $$typeofNextType === REACT_MEMO_TYPE ? needsCompareFamilies = true : $$typeofNextType === REACT_LAZY_TYPE && (needsCompareFamilies = true); 9614 break; 9615 default: 9616 return false; 9617 } 9618 return needsCompareFamilies && (fiber = resolveFamily(prevType), void 0 !== fiber && fiber === resolveFamily(element)) ? true : false; 9619 } 9620 function markFailedErrorBoundaryForHotReloading(fiber) { 9621 null !== resolveFamily && "function" === typeof WeakSet && (null === failedBoundaries && (failedBoundaries = /* @__PURE__ */ new WeakSet()), failedBoundaries.add(fiber)); 9622 } 9623 function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { 9624 var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null; 9625 switch (tag) { 9626 case 0: 9627 case 15: 9628 case 1: 9629 candidateType = type; 9630 break; 9631 case 11: 9632 candidateType = type.render; 9633 } 9634 if (null === resolveFamily) 9635 throw Error("Expected resolveFamily to be set during hot reload."); 9636 var needsRender = false;
9637 type = false; 9638 null !== candidateType && (candidateType = resolveFamily(candidateType), void 0 !== candidateType && (staleFamilies.has(candidateType) ? type = true : updatedFamilies.has(candidateType) && (1 === tag ? type = true : needsRender = true))); 9639 null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (type = true); 9640 type && (fiber._debugNeedsRemount = true); 9641 if (type || needsRender) 9642 alternate = enqueueConcurrentRenderForLane(fiber, 2), null !== alternate && scheduleUpdateOnFiber(alternate, fiber, 2); 9643 null === child || type || scheduleFibersWithFamiliesRecursively( 9644 child, 9645 updatedFamilies, 9646 staleFamilies 9647 ); 9648 null !== sibling && scheduleFibersWithFamiliesRecursively( 9649 sibling, 9650 updatedFamilies, 9651 staleFamilies 9652 ); 9653 } 9654 function FiberNode(tag, pendingProps, key, mode) { 9655 this.tag = tag; 9656 this.key = key; 9657 this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; 9658 this.index = 0; 9659 this.refCleanup = this.ref = null; 9660 this.pendingProps = pendingProps; 9661 this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; 9662 this.mode = mode; 9663 this.subtreeFlags = this.flags = 0; 9664 this.deletions = null; 9665 this.childLanes = this.lanes = 0; 9666 this.alternate = null; 9667 this.actualDuration = -0; 9668 this.actualStartTime = -1.1; 9669 this.treeBaseDuration = this.selfBaseDuration = -0; 9670 this._debugTask = this._debugStack = this._debugOwner = this._debugInfo = null; 9671 this._debugNeedsRemount = false; 9672 this._debugHookTypes = null; 9673 hasBadMapPolyfill || "function" !== typeof Object.preventExtensions || Object.preventExtensions(this); 9674 } 9675 function shouldConstruct(Component) { 9676 Component = Component.prototype; 9677 return !(!Component || !Component.isReactComponent); 9678 } 9679 function createWorkInProgress(current2, pendingProps) { 9680 var workInProgress2 = current2.alternate; 9681 null === workInProgress2 ? (workInProgress2 = createFiber( 9682 current2.tag, 9683 pendingProps, 9684 current2.key, 9685 current2.mode 9686 ), workInProgress2.elementType = current2.elementType, workInProgress2.type = current2.type, workInProgress2.stateNode = current2.stateNode, workInProgress2._debugOwner = current2._debugOwner, workInProgress2._debugStack = current2._debugStack, workInProgress2._debugTask = current2._debugTask, workInProgress2._debugHookTypes = current2._debugHookTypes, workInProgress2.alternate = current2, current2.alternate = workInProgress2) : (workInProgress2.pendingProps = pendingProps, workInProgress2.type = current2.type, workInProgress2.flags = 0, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.actualDuration = -0, workInProgress2.actualStartTime = -1.1); 9687 workInProgress2.flags = current2.flags & 65011712; 9688 workInProgress2.childLanes = current2.childLanes; 9689 workInProgress2.lanes = current2.lanes; 9690 workInProgress2.child = current2.child; 9691 workInProgress2.memoizedProps = current2.memoizedProps; 9692 workInProgress2.memoizedState = current2.memoizedState; 9693 workInProgress2.updateQueue = current2.updateQueue; 9694 pendingProps = current2.dependencies; 9695 workInProgress2.dependencies = null === pendingProps ? null : { 9696 lanes: pendingProps.lanes, 9697 firstContext: pendingProps.firstContext, 9698 _debugThenableState: pendingProps._debugThenableState 9699 }; 9700 workInProgress2.sibling = current2.sibling; 9701 workInProgress2.index = current2.index; 9702 workInProgress2.ref = current2.ref; 9703 workInProgress2.refCleanup = current2.refCleanup; 9704 workInProgress2.selfBaseDuration = current2.selfBaseDuration; 9705 workInProgress2.treeBaseDuration = current2.treeBaseDuration; 9706 workInProgress2._debugInfo = current2._debugInfo; 9707 workInProgress2._debugNeedsRemount = current2._debugNeedsRemount; 9708 switch (workInProgress2.tag) { 9709 case 0: 9710 case 15: 9711 workInProgress2.type = resolveFunctionForHotReloading(current2.type); 9712 break; 9713 case 1: 9714 workInProgress2.type = resolveFunctionForHotReloading(current2.type); 9715 break; 9716 case 11: 9717 workInProgress2.type = resolveForwardRefForHotReloading(current2.type); 9718 } 9719 return workInProgress2; 9720 } 9721 function resetWorkInProgress(workInProgress2, renderLanes2) { 9722 workInProgress2.flags &= 65011714; 9723 var current2 = workInProgress2.alternate; 9724 null === current2 ? (workInProgress2.childLanes = 0, workInProgress2.lanes = renderLanes2, workInProgress2.child = null, workInProgress2.subtreeFlags = 0, workInProgress2.memoizedProps = null, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.dependencies = null, workInProgress2.stateNode = null, workInProgress2.selfBaseDuration = 0, workInProgress2.treeBaseDuration = 0) : (workInProgress2.childLanes = current2.childLanes, workInProgress2.lanes = current2.lanes, workInProgress2.child = current2.child, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.memoizedProps = current2.memoizedProps, workInProgress2.memoizedState = current2.memoizedState, workInProgress2.updateQueue = current2.updateQueue, workInProgress2.type = current2.type, renderLanes2 = current2.depen
9724dencies, workInProgress2.dependencies = null === renderLanes2 ? null : { 9725 lanes: renderLanes2.lanes, 9726 firstContext: renderLanes2.firstContext, 9727 _debugThenableState: renderLanes2._debugThenableState 9728 }, workInProgress2.selfBaseDuration = current2.selfBaseDuration, workInProgress2.treeBaseDuration = current2.treeBaseDuration); 9729 return workInProgress2; 9730 } 9731 function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { 9732 var fiberTag = 0, resolvedType = type; 9733 if ("function" === typeof type) 9734 shouldConstruct(type) && (fiberTag = 1), resolvedType = resolveFunctionForHotReloading(resolvedType); 9735 else if ("string" === typeof type) 9736 fiberTag = getHostContext(), fiberTag = isHostHoistableType(type, pendingProps, fiberTag) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5; 9737 else 9738 a: switch (type) { 9739 case REACT_ACTIVITY_TYPE: 9740 return key = createFiber(31, pendingProps, key, mode), key.elementType = REACT_ACTIVITY_TYPE, key.lanes = lanes, key; 9741 case REACT_FRAGMENT_TYPE: 9742 return createFiberFromFragment( 9743 pendingProps.children, 9744 mode, 9745 lanes, 9746 key 9747 ); 9748 case REACT_STRICT_MODE_TYPE: 9749 fiberTag = 8; 9750 mode |= StrictLegacyMode; 9751 mode |= StrictEffectsMode; 9752 break; 9753 case REACT_PROFILER_TYPE: 9754 return type = pendingProps, owner = mode, "string" !== typeof type.id && console.error( 9755 'Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', 9756 typeof type.id 9757 ), key = createFiber(12, type, key, owner | ProfileMode), key.elementType = REACT_PROFILER_TYPE, key.lanes = lanes, key.stateNode = { effectDuration: 0, passiveEffectDuration: 0 }, key; 9758 case REACT_SUSPENSE_TYPE: 9759 return key = createFiber(13, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key; 9760 case REACT_SUSPENSE_LIST_TYPE: 9761 return key = createFiber(19, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key; 9762 default: 9763 if ("object" === typeof type && null !== type) 9764 switch (type.$$typeof) { 9765 case REACT_PROVIDER_TYPE: 9766 case REACT_CONTEXT_TYPE: 9767 fiberTag = 10; 9768 break a; 9769 case REACT_CONSUMER_TYPE: 9770 fiberTag = 9; 9771 break a; 9772 case REACT_FORWARD_REF_TYPE: 9773 fiberTag = 11; 9774 resolvedType = resolveForwardRefForHotReloading(resolvedType); 9775 break a; 9776 case REACT_MEMO_TYPE: 9777 fiberTag = 14; 9778 break a; 9779 case REACT_LAZY_TYPE: 9780 fiberTag = 16; 9781 resolvedType = null; 9782 break a; 9783 } 9784 resolvedType = ""; 9785 if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length) 9786 resolvedType += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; 9787 null === type ? pendingProps = "null" : isArrayImpl(type) ? pendingProps = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (pendingProps = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", resolvedType = " Did you accidentally export a JSX literal instead of a component?") : pendingProps = typeof type; 9788 (fiberTag = owner ? getComponentNameFromOwner(owner) : null) && (resolvedType += "\n\nCheck the render method of `" + fiberTag + "`."); 9789 fiberTag = 29; 9790 pendingProps = Error( 9791 "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + (pendingProps + "." + resolvedType) 9792 ); 9793 resolvedType = null; 9794 } 9795 key = createFiber(fiberTag, pendingProps, key, mode); 9796 key.elementType = type; 9797 key.type = resolvedType; 9798 key.lanes = lanes; 9799 key._debugOwner = owner; 9800 return key; 9801 } 9802 function createFiberFromElement(element, mode, lanes) { 9803 mode = createFiberFromTypeAndProps( 9804 element.type, 9805 element.key, 9806 element.props, 9807 element._owner, 9808 mode, 9809 lanes 9810 ); 9811 mode._debugOwner = element._owner; 9812 mode._debugStack = element._debugStack; 9813 mode._debugTask = element._debugTask; 9814 return mode; 9815 } 9816 function createFiberFromFragment(elements, mode, lanes, key) { 9817 elements = createFiber(7, elements, key, mode); 9818 elements.lanes = lanes; 9819 return elements; 9820 } 9821 function createFiberFromText(content, mode, lanes) { 9822 content = createFiber(6, content, null, mode); 9823 content.lanes = lanes; 9824 return content; 9825 } 9826 function createFiberFromPortal(portal, mode, lanes) { 9827 mode = createFiber( 9828 4, 9829 null !== portal.children ? portal.children : [], 9830 portal.key, 9831 mode 9832 ); 9833 mode.lanes = lanes; 9834 mode.stateNode = { 9835 containerInfo: portal.containerInfo, 9836 pendingChildren: null, 9837 implementation: portal.implementation 9838 }; 9839 return mode; 9840 } 9841 function pushTreeFork(workInProgress2, totalChildren) { 9842 warnIfNotHydrating(); 9843 forkStack[forkStackIndex++] = treeForkCount; 9844 forkStack[forkStackIndex++] = treeForkProvider; 9845 treeForkProvider = workInProgress2; 9846 treeForkCount = totalChildren; 9847 } 9848 function pushTreeId(workInProgress2, totalChildren, index) { 9849 warnIfNotHydrating(); 9850 idStack[idStackIndex++] = treeContextId; 9851 idStack[idStackIndex++] = treeContextOverflow; 9852 idStack[idStackIndex++] = treeContextProvider; 9853 treeContextProvider = workInProgress2; 9854 var baseIdWithLeadingBit = treeContextId; 9855 workInProgress2 = treeContextOverflow; 9856 var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; 9857 baseIdWithLeadingBit &= ~(1 << baseLength); 9858 index += 1; 9859 var length = 32 - clz32(totalChildren) + baseLength; 9860 if (30 < length) { 9861 var numberOfOverflowBits = baseLength - baseLength % 5; 9862 length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32); 9863 baseIdWithLeadingBit >>= numberOfOverflowBits; 9864 baseLength -= numberOfOverflowBits; 9865 treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit; 9866 treeContextOverflow = length + workInProgress2; 9867 } else 9868 treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2; 9869 } 9870 function pushMaterializedTreeId(workInProgress2) { 9871 warnIfNotHydrating(); 9872 null !== workInProgress2.return && (pushTreeFork(workInProgress2, 1), pushTreeId(workInProgress2, 1, 0)); 9873 } 9874 function popTreeContext(workInProgress2) { 9875 for (; workInProgress2 === treeForkProvider; ) 9876 treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null; 9877 for (; workInProgress2 === treeContextProvider; ) 9878 treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null; 9879 } 9880 function warnIfNotHydrating() { 9881 isHydrating || console.error( 9882 "Expected to be hydrating. This is a bug in React. Please file an issue." 9883 ); 9884 } 9885 function buildHydrationDiffNode(fiber, distanceFromLeaf) { 9886 if (null === fiber.return) { 9887 if (null === hydrationDiffRootDEV) 9888 hydrationDiffRootDEV = { 9889 fiber, 9890 children: [], 9891 serverProps: void 0, 9892 serverTail: [], 9893 distanceFromLeaf 9894 }; 9895 else { 9896 if (hydrationDiffRootDEV.fiber !== fiber) 9897 throw Error( 9898 "Saw multiple hydration diff roots in a pass. This is a bug in React." 9899 ); 9900 hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf && (hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf); 9901 } 9902 return hydrationDiffRootDEV; 9903 } 9904 var siblings = buildHydrationDiffNode( 9905 fiber.return, 9906 distanceFromLeaf + 1 9907 ).children; 9908 if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber) 9909 return siblings = siblings[siblings.length - 1], siblings.distanceFromLeaf > distanceFromLeaf && (siblings.distanceFromLeaf = distanceFromLeaf), siblings; 9910 distanceFromLeaf = { 9911 fiber, 9912 children: [], 9913 serverProps: void 0, 9914 serverTail: [], 9915 distanceFromLeaf 9916 }; 9917 siblings.push(distanceFromLeaf); 9918 return distanceFromLeaf; 9919 } 9920 function warnNonHydratedInstance(fiber, rejectedCandidate) { 9921 didSuspendOrErrorDEV || (fiber = buildHydrationDiffNode(fiber, 0), fiber.serverProps = null, null !== rejectedCandidate && (rejectedCandidate = describeHydratableInstanceForDevWarnings(rejectedCandidate), fiber.serverTail.push(rejectedCandidate))); 9922 } 9923 function throwOnHydrationMismatch(fiber) { 9924 var diff = "", diffRoot = hydrationDiffRootDEV; 9925 null !== diffRoot && (hydrationDiffRootDEV = null, diff = describeDiff(diffRoot)); 9926 queueHydrationError( 9927 createCapturedValueAtFiber( 9928 Error( 9929 "Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + diff 9930 ), 9931 fiber 9932 ) 9933 ); 9934 throw HydrationMismatchException; 9935 } 9936 function prepareToHydrateHostInstance(fiber) { 9937 var didHydrate = fiber.stateNode; 9938 var type = fiber.type, props = fiber.memoizedProps; 9939 didHydrate[internalInstanceKey] = fiber; 9940 didHydrate[internalPropsKey] = props; 9941 validatePropertiesInDevelopment(type, props); 9942 switch (type) { 9943 case "dialog": 9944 listenToNonDelegatedEvent("cancel", didHydrate); 9945 listenToNonDelegatedEvent("close", didHydrate); 9946 break; 9947 case "iframe": 9948 case "object": 9949 case "embed": 9950 listenToNonDelegatedEvent("load", didHydrate); 9951 break; 9952 case "video": 9953 case "audio": 9954 for (type = 0; type < mediaEventTypes.length; type++) 9955 listenToNonDelegatedEvent(mediaEventTypes[type], didHydrate); 9956 break; 9957 case "source": 9958 listenToNonDelegatedEvent("error", didHydrate); 9959 break; 9960 case "img": 9961 case "image": 9962 case "link": 9963 listenToNonDelegatedEvent("error", didHydrate); 9964 listenToNonDelegatedEvent("load", didHydrate); 9965 break; 9966 case "details": 9967 listenToNonDelegatedEvent("toggle", didHydrate); 9968 break; 9969 case "input": 9970 checkControlledValueProps("input", props); 9971 listenToNonDelegatedEvent("invalid", didHydrate); 9972 validateInputProps(didHydrate, props); 9973 initInput( 9974 didHydrate, 9975 props.value, 9976 props.defaultValue, 9977 props.checked, 9978 props.defaultChecked, 9979 props.type, 9980 props.name, 9981 true 9982 ); 9983 track(didHydrate); 9984 break; 9985 case "option": 9986 validateOptionProps(didHydrate, props); 9987 break; 9988 case "select": 9989 checkControlledValueProps("select", props); 9990 listenToNonDelegatedEvent("invalid", didHydrate); 9991 validateSelectProps(didHydrate, props); 9992 break; 9993 case "textarea": 9994 checkControlledValueProps("textarea", props), listenToNonDelegatedEvent("invalid", didHydrate), val
9994idateTextareaProps(didHydrate, props), initTextarea( 9995 didHydrate, 9996 props.value, 9997 props.defaultValue, 9998 props.children 9999 ), track(didHydrate); 10000 } 10001 type = props.children; 10002 "string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type || didHydrate.textContent === "" + type || true === props.suppressHydrationWarning || checkForUnmatchedText(didHydrate.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", didHydrate), listenToNonDelegatedEvent("toggle", didHydrate)), null != props.onScroll && listenToNonDelegatedEvent("scroll", didHydrate), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", didHydrate), null != props.onClick && (didHydrate.onclick = noop$1), didHydrate = true) : didHydrate = false; 10003 didHydrate || throwOnHydrationMismatch(fiber); 10004 } 10005 function popToNextHostParent(fiber) { 10006 for (hydrationParentFiber = fiber.return; hydrationParentFiber; ) 10007 switch (hydrationParentFiber.tag) { 10008 case 5: 10009 case 13: 10010 rootOrSingletonContext = false; 10011 return; 10012 case 27: 10013 case 3: 10014 rootOrSingletonContext = true; 10015 return; 10016 default: 10017 hydrationParentFiber = hydrationParentFiber.return; 10018 } 10019 } 10020 function popHydrationState(fiber) { 10021 if (fiber !== hydrationParentFiber) return false; 10022 if (!isHydrating) 10023 return popToNextHostParent(fiber), isHydrating = true, false; 10024 var tag = fiber.tag, JSCompiler_temp; 10025 if (JSCompiler_temp = 3 !== tag && 27 !== tag) { 10026 if (JSCompiler_temp = 5 === tag) 10027 JSCompiler_temp = fiber.type, JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps); 10028 JSCompiler_temp = !JSCompiler_temp; 10029 } 10030 if (JSCompiler_temp && nextHydratableInstance) { 10031 for (JSCompiler_temp = nextHydratableInstance; JSCompiler_temp; ) { 10032 var diffNode = buildHydrationDiffNode(fiber, 0), description = describeHydratableInstanceForDevWarnings(JSCompiler_temp); 10033 diffNode.serverTail.push(description); 10034 JSCompiler_temp = "Suspense" === description.type ? getNextHydratableInstanceAfterSuspenseInstance(JSCompiler_temp) : getNextHydratable(JSCompiler_temp.nextSibling); 10035 } 10036 throwOnHydrationMismatch(fiber); 10037 } 10038 popToNextHostParent(fiber); 10039 if (13 === tag) { 10040 fiber = fiber.memoizedState; 10041 fiber = null !== fiber ? fiber.dehydrated : null; 10042 if (!fiber) 10043 throw Error( 10044 "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." 10045 ); 10046 nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(fiber); 10047 } else 10048 27 === tag ? (tag = nextHydratableInstance, isSingletonScope(fiber.type) ? (fiber = previousHydratableOnEnteringScopedSingleton, previousHydratableOnEnteringScopedSingleton = null, nextHydratableInstance = fiber) : nextHydratableInstance = tag) : nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null; 10049 return true; 10050 } 10051 function resetHydrationState() { 10052 nextHydratableInstance = hydrationParentFiber = null; 10053 didSuspendOrErrorDEV = isHydrating = false; 10054 } 10055 function upgradeHydrationErrorsToRecoverable() { 10056 var queuedErrors = hydrationErrors; 10057 null !== queuedErrors && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply( 10058 workInProgressRootRecoverableErrors, 10059 queuedErrors 10060 ), hydrationErrors = null); 10061 return queuedErrors; 10062 } 10063 function queueHydrationError(error) { 10064 null === hydrationErrors ? hydrationErrors = [error] : hydrationErrors.push(error); 10065 } 10066 function emitPendingHydrationWarnings() { 10067 var diffRoot = hydrationDiffRootDEV; 10068 if (null !== diffRoot) { 10069 hydrationDiffRootDEV = null; 10070 for (var diff = describeDiff(diffRoot); 0 < diffRoot.children.length; ) 10071 diffRoot = diffRoot.children[0]; 10072 runWithFiberInDEV(diffRoot.fiber, function() { 10073 console.error( 10074 "A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s", 10075 "https://react.dev/link/hydration-mismatch", 10076 diff 10077 ); 10078 }); 10079 } 10080 } 10081 function resetContextDependencies() { 10082 lastContextDependency = currentlyRenderingFiber$1 = null; 10083 isDisallowedContextReadInDEV = false;
10084 } 10085 function pushProvider(providerFiber, context, nextValue) { 10086 push(valueCursor, context._currentValue, providerFiber); 10087 context._currentValue = nextValue; 10088 push(rendererCursorDEV, context._currentRenderer, providerFiber); 10089 void 0 !== context._currentRenderer && null !== context._currentRenderer && context._currentRenderer !== rendererSigil && console.error( 10090 "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported." 10091 ); 10092 context._currentRenderer = rendererSigil; 10093 } 10094 function popProvider(context, providerFiber) { 10095 context._currentValue = valueCursor.current; 10096 var currentRenderer = rendererCursorDEV.current; 10097 pop(rendererCursorDEV, providerFiber); 10098 context._currentRenderer = currentRenderer; 10099 pop(valueCursor, providerFiber); 10100 } 10101 function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) { 10102 for (; null !== parent; ) { 10103 var alternate = parent.alternate; 10104 (parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, null !== alternate && (alternate.childLanes |= renderLanes2)) : null !== alternate && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2); 10105 if (parent === propagationRoot) break; 10106 parent = parent.return; 10107 } 10108 parent !== propagationRoot && console.error( 10109 "Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue." 10110 ); 10111 }
10112 function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) { 10113 var fiber = workInProgress2.child; 10114 null !== fiber && (fiber.return = workInProgress2); 10115 for (; null !== fiber; ) { 10116 var list = fiber.dependencies; 10117 if (null !== list) { 10118 var nextFiber = fiber.child; 10119 list = list.firstContext; 10120 a: for (; null !== list; ) { 10121 var dependency = list; 10122 list = fiber; 10123 for (var i = 0; i < contexts.length; i++) 10124 if (dependency.context === contexts[i]) { 10125 list.lanes |= renderLanes2; 10126 dependency = list.alternate; 10127 null !== dependency && (dependency.lanes |= renderLanes2); 10128 scheduleContextWorkOnParentPath( 10129 list.return, 10130 renderLanes2, 10131 workInProgress2 10132 ); 10133 forcePropagateEntireTree || (nextFiber = null); 10134 break a; 10135 } 10136 list = dependency.next; 10137 } 10138 } else if (18 === fiber.tag) { 10139 nextFiber = fiber.return; 10140 if (null === nextFiber) 10141 throw Error( 10142 "We just came from a parent so we must have had a parent. This is a bug in React." 10143 ); 10144 nextFiber.lanes |= renderLanes2; 10145 list = nextFiber.alternate; 10146 null !== list && (list.lanes |= renderLanes2); 10147 scheduleContextWorkOnParentPath( 10148 nextFiber, 10149 renderLanes2, 10150 workInProgress2 10151 ); 10152 nextFiber = null; 10153 } else nextFiber = fiber.child; 10154 if (null !== nextFiber) nextFiber.return = fiber; 10155 else 10156 for (nextFiber = fiber; null !== nextFiber; ) { 10157 if (nextFiber === workInProgress2) { 10158 nextFiber = null; 10159 break; 10160 } 10161 fiber = nextFiber.sibling; 10162 if (null !== fiber) { 10163 fiber.return = nextFiber.return; 10164 nextFiber = fiber; 10165 break; 10166 } 10167 nextFiber = nextFiber.return; 10168 } 10169 fiber = nextFiber; 10170 } 10171 } 10172 function propagateParentContextChanges(current2, workInProgress2, renderLanes2, forcePropagateEntireTree) { 10173 current2 = null; 10174 for (var parent = workInProgress2, isInsidePropagationBailout = false; null !== parent; ) { 10175 if (!isInsidePropagationBailout) { 10176 if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = true; 10177 else if (0 !== (parent.flags & 262144)) break; 10178 } 10179 if (10 === parent.tag) { 10180 var currentParent = parent.alternate; 10181 if (null === currentParent) 10182 throw Error("Should have a current fiber. This is a bug in React."); 10183 currentParent = currentParent.memoizedProps; 10184 if (null !== currentParent) { 10185 var context = parent.type; 10186 objectIs(parent.pendingProps.value, currentParent.value) || (null !== current2 ? current2.push(context) : current2 = [context]); 10187 } 10188 } else if (parent === hostTransitionProviderCursor.current) { 10189 currentParent = parent.alternate; 10190 if (null === currentParent) 10191 throw Error("Should have a current fiber. This is a bug in React."); 10192 currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current2 ? current2.push(HostTransitionContext) : current2 = [HostTransitionContext]); 10193 } 10194 parent = parent.return; 10195 } 10196 null !== current2 && propagateContextChanges( 10197 workInProgress2, 10198 current2, 10199 renderLanes2, 10200 forcePropagateEntireTree 10201 ); 10202 workInProgress2.flags |= 262144; 10203 } 10204 function checkIfContextChanged(currentDependencies) { 10205 for (currentDependencies = currentDependencies.firstContext; null !== currentDependencies; ) { 10206 if (!objectIs( 10207 currentDependencies.context._currentValue, 10208 currentDependencies.memoizedValue 10209 )) 10210 return true; 10211 currentDependencies = currentDependencies.next; 10212 } 10213 return false;
10214 } 10215 function prepareToReadContext(workInProgress2) { 10216 currentlyRenderingFiber$1 = workInProgress2; 10217 lastContextDependency = null; 10218 workInProgress2 = workInProgress2.dependencies; 10219 null !== workInProgress2 && (workInProgress2.firstContext = null); 10220 } 10221 function readContext(context) { 10222 isDisallowedContextReadInDEV && console.error( 10223 "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." 10224 ); 10225 return readContextForConsumer(currentlyRenderingFiber$1, context); 10226 } 10227 function readContextDuringReconciliation(consumer, context) { 10228 null === currentlyRenderingFiber$1 && prepareToReadContext(consumer); 10229 return readContextForConsumer(consumer, context); 10230 } 10231 function readContextForConsumer(consumer, context) { 10232 var value = context._currentValue; 10233 context = { context, memoizedValue: value, next: null }; 10234 if (null === lastContextDependency) { 10235 if (null === consumer) 10236 throw Error( 10237 "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()." 10238 ); 10239 lastContextDependency = context; 10240 consumer.dependencies = { 10241 lanes: 0, 10242 firstContext: context, 10243 _debugThenableState: null 10244 }; 10245 consumer.flags |= 524288; 10246 } else lastContextDependency = lastContextDependency.next = context; 10247 return value; 10248 } 10249 function createCache() { 10250 return { 10251 controller: new AbortControllerLocal(), 10252 data: /* @__PURE__ */ new Map(), 10253 refCount: 0 10254 }; 10255 } 10256 function retainCache(cache) { 10257 cache.controller.signal.aborted && console.warn( 10258 "A cache instance was retained after it was already freed. This likely indicates a bug in React." 10259 ); 10260 cache.refCount++; 10261 } 10262 function releaseCache(cache) { 10263 cache.refCount--; 10264 0 > cache.refCount && console.warn( 10265 "A cache instance was released after it was already freed. This likely indicates a bug in React." 10266 ); 10267 0 === cache.refCount && scheduleCallback$2(NormalPriority, function() { 10268 cache.controller.abort(); 10269 }); 10270 } 10271 function pushNestedEffectDurations() { 10272 var prevEffectDuration = profilerEffectDuration; 10273 profilerEffectDuration = 0; 10274 return prevEffectDuration; 10275 } 10276 function popNestedEffectDurations(prevEffectDuration) { 10277 var elapsedTime = profilerEffectDuration; 10278 profilerEffectDuration = prevEffectDuration; 10279 return elapsedTime; 10280 } 10281 function bubbleNestedEffectDurations(prevEffectDuration) { 10282 var elapsedTime = profilerEffectDuration; 10283 profilerEffectDuration += prevEffectDuration; 10284 return elapsedTime; 10285 } 10286 function startProfilerTimer(fiber) { 10287 profilerStartTime = now(); 10288 0 > fiber.actualStartTime && (fiber.actualStartTime = profilerStartTime); 10289 } 10290 function stopProfilerTimerIfRunningAndRecordDuration(fiber) { 10291 if (0 <= profilerStartTime) { 10292 var elapsedTime = now() - profilerStartTime; 10293 fiber.actualDuration += elapsedTime; 10294 fiber.selfBaseDuration = elapsedTime; 10295 profilerStartTime = -1; 10296 } 10297 } 10298 function stopProfilerTimerIfRunningAndRecordIncompleteDuration(fiber) { 10299 if (0 <= profilerStartTime) { 10300 var elapsedTime = now() - profilerStartTime; 10301 fiber.actualDuration += elapsedTime; 10302 profilerStartTime = -1; 10303 } 10304 } 10305 function recordEffectDuration() { 10306 if (0 <= profilerStartTime) { 10307 var elapsedTime = now() - profilerStartTime; 10308 profilerStartTime = -1; 10309 profilerEffectDuration += elapsedTime; 10310 } 10311 } 10312 function startEffectTimer() {
10313 profilerStartTime = now(); 10314 } 10315 function transferActualDuration(fiber) { 10316 for (var child = fiber.child; child; ) 10317 fiber.actualDuration += child.actualDuration, child = child.sibling; 10318 } 10319 function entangleAsyncAction(transition, thenable) { 10320 if (null === currentEntangledListeners) { 10321 var entangledListeners = currentEntangledListeners = []; 10322 currentEntangledPendingCount = 0; 10323 currentEntangledLane = requestTransitionLane(); 10324 currentEntangledActionThenable = { 10325 status: "pending", 10326 value: void 0, 10327 then: function(resolve) { 10328 entangledListeners.push(resolve); 10329 } 10330 }; 10331 } 10332 currentEntangledPendingCount++; 10333 thenable.then(pingEngtangledActionScope, pingEngtangledActionScope); 10334 return thenable; 10335 } 10336 function pingEngtangledActionScope() { 10337 if (0 === --currentEntangledPendingCount && null !== currentEntangledListeners) { 10338 null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled"); 10339 var listeners = currentEntangledListeners; 10340 currentEntangledListeners = null; 10341 currentEntangledLane = 0; 10342 currentEntangledActionThenable = null; 10343 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(); 10344 } 10345 } 10346 function chainThenableValue(thenable, result) { 10347 var listeners = [], thenableWithOverride = { 10348 status: "pending", 10349 value: null, 10350 reason: null, 10351 then: function(resolve) { 10352 listeners.push(resolve); 10353 } 10354 }; 10355 thenable.then( 10356 function() { 10357 thenableWithOverride.status = "fulfilled"; 10358 thenableWithOverride.value = result; 10359 for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result); 10360 }, 10361 function(error) { 10362 thenableWithOverride.status = "rejected"; 10363 thenableWithOverride.reason = error; 10364 for (error = 0; error < listeners.length; error++) 10365 (0, listeners[error])(void 0); 10366 } 10367 ); 10368 return thenableWithOverride; 10369 } 10370 function peekCacheFromPool() { 10371 var cacheResumedFromPreviousRender = resumedCache.current; 10372 return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache; 10373 } 10374 function pushTransition(offscreenWorkInProgress, prevCachePool) { 10375 null === prevCachePool ? push(resumedCache, resumedCache.current, offscreenWorkInProgress) : push(resumedCache, prevCachePool.pool, offscreenWorkInProgress); 10376 } 10377 function getSuspendedCache() { 10378 var cacheFromPool = peekCacheFromPool(); 10379 return null === cacheFromPool ? null : { parent: CacheContext._currentValue, pool: cacheFromPool }; 10380 } 10381 function createThenableState() { 10382 return { didWarnAboutUncachedPromise: false, thenables: [] }; 10383 } 10384 function isThenableResolved(thenable) { 10385 thenable = thenable.status; 10386 return "fulfilled" === thenable || "rejected" === thenable; 10387 } 10388 function noop$3() { 10389 } 10390 function trackUsedThenable(thenableState2, thenable, index) { 10391 null !== ReactSharedInternals.actQueue && (ReactSharedInternals.didUsePromise = true); 10392 var trackedThenables = thenableState2.thenables; 10393 index = trackedThenables[index]; 10394 void 0 === index ? trackedThenables.push(thenable) : index !== thenable && (thenableState2.didWarnAboutUncachedPromise || (thenableState2.didWarnAboutUncachedPromise = true, console.error( 10395 "A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework." 10396 )), thenable.then(noop$3, noop$3), thenable = index); 10397 switch (thenable.status) { 10398 case "fulfilled": 10399 return thenable.value; 10400 case "rejected": 10401 throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(the
10401nableState2), thenableState2; 10402 default: 10403 if ("string" === typeof thenable.status) 10404 thenable.then(noop$3, noop$3); 10405 else { 10406 thenableState2 = workInProgressRoot; 10407 if (null !== thenableState2 && 100 < thenableState2.shellSuspendCounter) 10408 throw Error( 10409 "An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server." 10410 ); 10411 thenableState2 = thenable; 10412 thenableState2.status = "pending"; 10413 thenableState2.then( 10414 function(fulfilledValue) { 10415 if ("pending" === thenable.status) { 10416 var fulfilledThenable = thenable; 10417 fulfilledThenable.status = "fulfilled"; 10418 fulfilledThenable.value = fulfilledValue; 10419 } 10420 }, 10421 function(error) { 10422 if ("pending" === thenable.status) { 10423 var rejectedThenable = thenable; 10424 rejectedThenable.status = "rejected"; 10425 rejectedThenable.reason = error; 10426 } 10427 } 10428 ); 10429 } 10430 switch (thenable.status) { 10431 case "fulfilled": 10432 return thenable.value; 10433 case "rejected": 10434 throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2; 10435 } 10436 suspendedThenable = thenable; 10437 needsToResetSuspendedThenableDEV = true; 10438 throw SuspenseException; 10439 } 10440 } 10441 function getSuspendedThenable() { 10442 if (null === suspendedThenable) 10443 throw Error( 10444 "Expected a suspended thenable. This is a bug in React. Please file an issue." 10445 ); 10446 var thenable = suspendedThenable; 10447 suspendedThenable = null; 10448 needsToResetSuspendedThenableDEV = false; 10449 return thenable; 10450 } 10451 function checkIfUseWrappedInAsyncCatch(rejectedReason) { 10452 if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException) 10453 throw Error( 10454 "Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server." 10455 ); 10456 } 10457 function initializeUpdateQueue(fiber) { 10458 fiber.updateQueue = { 10459 baseState: fiber.memoizedState, 10460 firstBaseUpdate: null, 10461 lastBaseUpdate: null, 10462 shared: { pending: null, lanes: 0, hiddenCallbacks: null }, 10463 callbacks: null 10464 }; 10465 } 10466 function cloneUpdateQueue(current2, workInProgress2) { 10467 current2 = current2.updateQueue; 10468 workInProgress2.updateQueue === current2 && (workInProgress2.updateQueue = { 10469 baseState: current2.baseState, 10470 firstBaseUpdate: current2.firstBaseUpdate, 10471 lastBaseUpdate: current2.lastBaseUpdate, 10472 shared: current2.shared, 10473 callbacks: null 10474 }); 10475 } 10476 function createUpdate(lane) { 10477 return { 10478 lane, 10479 tag: UpdateState, 10480 payload: null, 10481 callback: null, 10482 next: null 10483 }; 10484 } 10485 function enqueueUpdate(fiber, update, lane) { 10486 var updateQueue = fiber.updateQueue; 10487 if (null === updateQueue) return null; 10488 updateQueue = updateQueue.shared; 10489 if (currentlyProcessingQueue === updateQueue && !didWarnUpdateInsideUpdate) { 10490 var componentName2 = getComponentNameFromFiber(fiber); 10491 console.error( 10492 "An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.\n\nPlease update the following component: %s", 10493 componentName2 10494 );
10495 didWarnUpdateInsideUpdate = true; 10496 } 10497 if ((executionContext & RenderContext) !== NoContext) 10498 return componentName2 = updateQueue.pending, null === componentName2 ? update.next = update : (update.next = componentName2.next, componentName2.next = update), updateQueue.pending = update, update = getRootForUpdatedFiber(fiber), markUpdateLaneFromFiberToRoot(fiber, null, lane), update; 10499 enqueueUpdate$1(fiber, updateQueue, update, lane); 10500 return getRootForUpdatedFiber(fiber); 10501 } 10502 function entangleTransitions(root2, fiber, lane) { 10503 fiber = fiber.updateQueue; 10504 if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) { 10505 var queueLanes = fiber.lanes; 10506 queueLanes &= root2.pendingLanes; 10507 lane |= queueLanes; 10508 fiber.lanes = lane; 10509 markRootEntangled(root2, lane); 10510 } 10511 } 10512 function enqueueCapturedUpdate(workInProgress2, capturedUpdate) { 10513 var queue = workInProgress2.updateQueue, current2 = workInProgress2.alternate; 10514 if (null !== current2 && (current2 = current2.updateQueue, queue === current2)) { 10515 var newFirst = null, newLast = null; 10516 queue = queue.firstBaseUpdate; 10517 if (null !== queue) { 10518 do { 10519 var clone = { 10520 lane: queue.lane, 10521 tag: queue.tag, 10522 payload: queue.payload, 10523 callback: null, 10524 next: null 10525 }; 10526 null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; 10527 queue = queue.next; 10528 } while (null !== queue); 10529 null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; 10530 } else newFirst = newLast = capturedUpdate; 10531 queue = { 10532 baseState: current2.baseState, 10533 firstBaseUpdate: newFirst, 10534 lastBaseUpdate: newLast, 10535 shared: current2.shared, 10536 callbacks: current2.callbacks 10537 }; 10538 workInProgress2.updateQueue = queue; 10539 return; 10540 } 10541 workInProgress2 = queue.lastBaseUpdate; 10542 null === workInProgress2 ? queue.firstBaseUpdate = capturedUpdate : workInProgress2.next = capturedUpdate; 10543 queue.lastBaseUpdate = capturedUpdate; 10544 } 10545 function suspendIfUpdateReadFromEntangledAsyncAction() { 10546 if (didReadFromEntangledAsyncAction) { 10547 var entangledActionThenable = currentEntangledActionThenable; 10548 if (null !== entangledActionThenable) throw entangledActionThenable; 10549 } 10550 } 10551 function processUpdateQueue(workInProgress2, props, instance$jscomp$0, renderLanes2) { 10552 didReadFromEntangledAsyncAction = false; 10553 var queue = workInProgress2.updateQueue; 10554 hasForceUpdate = false; 10555 currentlyProcessingQueue = queue.shared; 10556 var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending; 10557 if (null !== pendingQueue) { 10558 queue.shared.pending = null; 10559 var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next; 10560 lastPendingUpdate.next = null; 10561 null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate; 10562 lastBaseUpdate = lastPendingUpdate; 10563 var current2 = workInProgress2.alternate; 10564 null !== current2 && (current2 = current2.updateQueue, pendingQueue = current2.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current2.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current2.lastBaseUpdate = lastPendingUpdate)); 10565 } 10566 if (null !== firstBaseUpdate) { 10567 var newState = queue.baseState; 10568 lastBaseUpdate = 0; 10569 current2 = firstPendingUpdate = lastPendingUpdate = null; 10570 pendingQueue = firstBaseUpdate; 10571 do { 10572 var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane; 10573 if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes2 & updateLane) === updateLane) { 10574 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = true); 10575 null !== current2 && (current2 = current2.next = { 10576 lane: 0, 10577 tag: pendingQueue.tag, 10578 payload: pendingQueue.payload, 10579 callback: null, 10580 next: null 10581 }); 10582 a: { 10583 updateLane = workInProgress2; 10584 var partialState = pendingQueue; 10585 var nextProps = props, instance = instance$jscomp$0; 10586 switch (partialState.tag) { 10587 case ReplaceState: 10588 partialState = partialState.payload; 10589 if ("function" === typeof partialState) { 10590 isDisallowedContextReadInDEV = true; 10591 var nextState = partialState.call( 10592 instance, 10593 newState, 10594 nextProps 10595 ); 10596 if (updateLane.mode & StrictLegacyMode) { 10597 setIsStrictModeForDevtools(true); 10598 try { 10599 partialState.call(instance, newState, nextProps); 10600 } finally { 10601 setIsStrictModeForDevtools(false); 10602 } 10603 } 10604 isDisallowedContextReadInDEV = false;
10605 newState = nextState; 10606 break a; 10607 } 10608 newState = partialState; 10609 break a; 10610 case CaptureUpdate: 10611 updateLane.flags = updateLane.flags & -65537 | 128; 10612 case UpdateState: 10613 nextState = partialState.payload; 10614 if ("function" === typeof nextState) { 10615 isDisallowedContextReadInDEV = true; 10616 partialState = nextState.call( 10617 instance, 10618 newState, 10619 nextProps 10620 ); 10621 if (updateLane.mode & StrictLegacyMode) { 10622 setIsStrictModeForDevtools(true); 10623 try { 10624 nextState.call(instance, newState, nextProps); 10625 } finally { 10626 setIsStrictModeForDevtools(false); 10627 } 10628 } 10629 isDisallowedContextReadInDEV = false; 10630 } else partialState = nextState; 10631 if (null === partialState || void 0 === partialState) break a; 10632 newState = assign({}, newState, partialState); 10633 break a; 10634 case ForceUpdate: 10635 hasForceUpdate = true; 10636 } 10637 } 10638 updateLane = pendingQueue.callback; 10639 null !== updateLane && (workInProgress2.flags |= 64, isHiddenUpdate && (workInProgress2.flags |= 8192), isHiddenUpdate = queue.callbacks, null === isHiddenUpdate ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane)); 10640 } else 10641 isHiddenUpdate = { 10642 lane: updateLane, 10643 tag: pendingQueue.tag, 10644 payload: pendingQueue.payload, 10645 callback: pendingQueue.callback, 10646 next: null 10647 }, null === current2 ? (firstPendingUpdate = current2 = isHiddenUpdate, lastPendingUpdate = newState) : current2 = current2.next = isHiddenUpdate, lastBaseUpdate |= updateLane; 10648 pendingQueue = pendingQueue.next; 10649 if (null === pendingQueue) 10650 if (pendingQueue = queue.shared.pending, null === pendingQueue) 10651 break; 10652 else 10653 isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null; 10654 } while (1); 10655 null === current2 && (lastPendingUpdate = newState); 10656 queue.baseState = lastPendingUpdate; 10657 queue.firstBaseUpdate = firstPendingUpdate; 10658 queue.lastBaseUpdate = current2; 10659 null === firstBaseUpdate && (queue.shared.lanes = 0); 10660 workInProgressRootSkippedLanes |= lastBaseUpdate; 10661 workInProgress2.lanes = lastBaseUpdate; 10662 workInProgress2.memoizedState = newState; 10663 } 10664 currentlyProcessingQueue = null; 10665 } 10666 function callCallback(callback, context) { 10667 if ("function" !== typeof callback) 10668 throw Error( 10669 "Invalid argument passed as callback. Expected a function. Instead received: " + callback 10670 ); 10671 callback.call(context); 10672 } 10673 function commitHiddenCallbacks(updateQueue, context) { 10674 var hiddenCallbacks = updateQueue.shared.hiddenCallbacks; 10675 if (null !== hiddenCallbacks) 10676 for (updateQueue.shared.hiddenCallbacks = null, updateQueue = 0; updateQueue < hiddenCallbacks.length; updateQueue++) 10677 callCallback(hiddenCallbacks[updateQueue], context); 10678 } 10679 function commitCallbacks(updateQueue, context) { 10680 var callbacks = updateQueue.callbacks; 10681 if (null !== callbacks) 10682 for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++) 10683 callCallback(callbacks[updateQueue], context); 10684 } 10685 function pushHiddenContext(fiber, context) { 10686 var prevEntangledRenderLanes = entangledRenderLanes; 10687 push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber); 10688 push(currentTreeHiddenStackCursor, context, fiber);
10689 entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes; 10690 } 10691 function reuseHiddenContextOnStack(fiber) { 10692 push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber); 10693 push( 10694 currentTreeHiddenStackCursor, 10695 currentTreeHiddenStackCursor.current, 10696 fiber 10697 ); 10698 } 10699 function popHiddenContext(fiber) { 10700 entangledRenderLanes = prevEntangledRenderLanesCursor.current; 10701 pop(currentTreeHiddenStackCursor, fiber); 10702 pop(prevEntangledRenderLanesCursor, fiber); 10703 } 10704 function mountHookTypesDev() { 10705 var hookName = currentHookNameInDev; 10706 null === hookTypesDev ? hookTypesDev = [hookName] : hookTypesDev.push(hookName); 10707 } 10708 function updateHookTypesDev() { 10709 var hookName = currentHookNameInDev; 10710 if (null !== hookTypesDev && (hookTypesUpdateIndexDev++, hookTypesDev[hookTypesUpdateIndexDev] !== hookName)) { 10711 var componentName2 = getComponentNameFromFiber(currentlyRenderingFiber); 10712 if (!didWarnAboutMismatchedHooksForComponent.has(componentName2) && (didWarnAboutMismatchedHooksForComponent.add(componentName2), null !== hookTypesDev)) { 10713 for (var table = "", i = 0; i <= hookTypesUpdateIndexDev; i++) { 10714 var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? hookName : oldHookName; 10715 for (oldHookName = i + 1 + ". " + oldHookName; 30 > oldHookName.length; ) 10716 oldHookName += " "; 10717 oldHookName += newHookName + "\n"; 10718 table += oldHookName; 10719 } 10720 console.error( 10721 "React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", 10722 componentName2, 10723 table 10724 ); 10725 } 10726 } 10727 } 10728 function checkDepsAreArrayDev(deps) { 10729 void 0 === deps || null === deps || isArrayImpl(deps) || console.error( 10730 "%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", 10731 currentHookNameInDev, 10732 typeof deps 10733 ); 10734 } 10735 function warnOnUseFormStateInDev() { 10736 var componentName2 = getComponentNameFromFiber(currentlyRenderingFiber); 10737 didWarnAboutUseFormState.has(componentName2) || (didWarnAboutUseFormState.add(componentName2), console.error( 10738 "ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.", 10739 componentName2 10740 )); 10741 } 10742 function throwInvalidHookError() { 10743 throw Error( 10744 "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." 10745 ); 10746 } 10747 function areHookInputsEqual(nextDeps, prevDeps) { 10748 if (ignorePreviousDependencies) return false; 10749 if (null === prevDeps) 10750 return console.error( 10751 "%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", 10752 currentHookNameInDev 10753 ), false; 10754 nextDeps.length !== prevDeps.length && console.error( 10755 "The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", 10756 currentHookNameInDev, 10757 "[" + prevDeps.join(", ") + "]", 10758 "[" + nextDeps.join(", ") + "]" 10759 ); 10760 for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) 10761 if (!objectIs(nextDeps[i], prevDeps[i])) return false;
10762 return true; 10763 } 10764 function renderWithHooks(current2, workInProgress2, Component, props, secondArg, nextRenderLanes) { 10765 renderLanes = nextRenderLanes; 10766 currentlyRenderingFiber = workInProgress2; 10767 hookTypesDev = null !== current2 ? current2._debugHookTypes : null; 10768 hookTypesUpdateIndexDev = -1; 10769 ignorePreviousDependencies = null !== current2 && current2.type !== workInProgress2.type; 10770 if ("[object AsyncFunction]" === Object.prototype.toString.call(Component) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component)) 10771 nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error( 10772 "%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", 10773 null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">" 10774 )); 10775 workInProgress2.memoizedState = null; 10776 workInProgress2.updateQueue = null; 10777 workInProgress2.lanes = 0; 10778 ReactSharedInternals.H = null !== current2 && null !== current2.memoizedState ? HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV; 10779 shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress2.mode & StrictLegacyMode) !== NoMode; 10780 var children = callComponentInDEV(Component, props, secondArg); 10781 shouldDoubleInvokeUserFnsInHooksDEV = false; 10782 didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain( 10783 workInProgress2, 10784 Component, 10785 props, 10786 secondArg 10787 )); 10788 if (nextRenderLanes) { 10789 setIsStrictModeForDevtools(true); 10790 try { 10791 children = renderWithHooksAgain( 10792 workInProgress2, 10793 Component, 10794 props, 10795 secondArg 10796 ); 10797 } finally { 10798 setIsStrictModeForDevtools(false); 10799 } 10800 } 10801 finishRenderingHooks(current2, workInProgress2); 10802 return children; 10803 } 10804 function finishRenderingHooks(current2, workInProgress2) { 10805 workInProgress2._debugHookTypes = hookTypesDev; 10806 null === workInProgress2.dependencies ? null !== thenableState$1 && (workInProgress2.dependencies = { 10807 lanes: 0, 10808 firstContext: null, 10809 _debugThenableState: thenableState$1 10810 }) : workInProgress2.dependencies._debugThenableState = thenableState$1; 10811 ReactSharedInternals.H = ContextOnlyDispatcher; 10812 var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next; 10813 renderLanes = 0; 10814 hookTypesDev = currentHookNameInDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 10815 hookTypesUpdateIndexDev = -1; 10816 null !== current2 && (current2.flags & 65011712) !== (workInProgress2.flags & 65011712) && console.error( 10817 "Internal React error: Expected static flag was missing. Please notify the React team." 10818 ); 10819 didScheduleRenderPhaseUpdate = false; 10820 thenableIndexCounter$1 = 0; 10821 thenableState$1 = null; 10822 if (didRenderTooFewHooks) 10823 throw Error( 10824 "Rendered fewer hooks than expected. This may be caused by an accidental early return statement." 10825 ); 10826 null === current2 || didReceiveUpdate || (current2 = current2.dependencies, null !== current2 && checkIfContextChanged(current2) && (didReceiveUpdate = true)); 10827 needsToResetSuspendedThenableDEV ? (needsToResetSuspendedThenableDEV = false, current2 = true) : current2 = false;
10828 current2 && (workInProgress2 = getComponentNameFromFiber(workInProgress2) || "Unknown", didWarnAboutUseWrappedInTryCatch.has(workInProgress2) || didWarnAboutAsyncClientComponent.has(workInProgress2) || (didWarnAboutUseWrappedInTryCatch.add(workInProgress2), console.error( 10829 "`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary." 10830 ))); 10831 } 10832 function renderWithHooksAgain(workInProgress2, Component, props, secondArg) { 10833 currentlyRenderingFiber = workInProgress2; 10834 var numberOfReRenders = 0; 10835 do { 10836 didScheduleRenderPhaseUpdateDuringThisPass && (thenableState$1 = null); 10837 thenableIndexCounter$1 = 0; 10838 didScheduleRenderPhaseUpdateDuringThisPass = false; 10839 if (numberOfReRenders >= RE_RENDER_LIMIT) 10840 throw Error( 10841 "Too many re-renders. React limits the number of renders to prevent an infinite loop." 10842 ); 10843 numberOfReRenders += 1; 10844 ignorePreviousDependencies = false; 10845 workInProgressHook = currentHook = null; 10846 if (null != workInProgress2.updateQueue) { 10847 var children = workInProgress2.updateQueue; 10848 children.lastEffect = null; 10849 children.events = null; 10850 children.stores = null; 10851 null != children.memoCache && (children.memoCache.index = 0); 10852 } 10853 hookTypesUpdateIndexDev = -1; 10854 ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV; 10855 children = callComponentInDEV(Component, props, secondArg); 10856 } while (didScheduleRenderPhaseUpdateDuringThisPass); 10857 return children; 10858 } 10859 function TransitionAwareHostComponent() { 10860 var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0]; 10861 maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable; 10862 dispatcher = dispatcher.useState()[0]; 10863 (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024); 10864 return maybeThenable; 10865 } 10866 function checkDidRenderIdHook() { 10867 var didRenderIdHook = 0 !== localIdCounter; 10868 localIdCounter = 0; 10869 return didRenderIdHook; 10870 } 10871 function bailoutHooks(current2, workInProgress2, lanes) { 10872 workInProgress2.updateQueue = current2.updateQueue; 10873 workInProgress2.flags = (workInProgress2.mode & StrictEffectsMode) !== NoMode ? workInProgress2.flags & -402655237 : workInProgress2.flags & -2053; 10874 current2.lanes &= ~lanes; 10875 } 10876 function resetHooksOnUnwind(workInProgress2) { 10877 if (didScheduleRenderPhaseUpdate) { 10878 for (workInProgress2 = workInProgress2.memoizedState; null !== workInProgress2; ) { 10879 var queue = workInProgress2.queue; 10880 null !== queue && (queue.pending = null); 10881 workInProgress2 = workInProgress2.next; 10882 } 10883 didScheduleRenderPhaseUpdate = false; 10884 } 10885 renderLanes = 0; 10886 hookTypesDev = workInProgressHook = currentHook = currentlyRenderingFiber = null; 10887 hookTypesUpdateIndexDev = -1; 10888 currentHookNameInDev = null; 10889 didScheduleRenderPhaseUpdateDuringThisPass = false; 10890 thenableIndexCounter$1 = localIdCounter = 0; 10891 thenableState$1 = null; 10892 } 10893 function mountWorkInProgressHook() { 10894 var hook = { 10895 memoizedState: null, 10896 baseState: null, 10897 baseQueue: null, 10898 queue: null, 10899 next: null 10900 }; 10901 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook; 10902 return workInProgressHook; 10903 } 10904 function updateWorkInProgressHook() { 10905 if (null === currentHook) { 10906 var nextCurrentHook = currentlyRenderingFiber.alternate; 10907 nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null; 10908 } else nextCurrentHook = currentHook.next; 10909 var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next; 10910 if (null !== nextWorkInProgressHook) 10911 workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook; 10912 else { 10913 if (null === nextCurrentHook) { 10914 if (null === currentlyRenderingFiber.alternate) 10915 throw Error(
10916 "Update hook called on initial render. This is likely a bug in React. Please file an issue." 10917 ); 10918 throw Error("Rendered more hooks than during the previous render."); 10919 } 10920 currentHook = nextCurrentHook; 10921 nextCurrentHook = { 10922 memoizedState: currentHook.memoizedState, 10923 baseState: currentHook.baseState, 10924 baseQueue: currentHook.baseQueue, 10925 queue: currentHook.queue, 10926 next: null 10927 }; 10928 null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook; 10929 } 10930 return workInProgressHook; 10931 } 10932 function createFunctionComponentUpdateQueue() { 10933 return { lastEffect: null, events: null, stores: null, memoCache: null }; 10934 } 10935 function useThenable(thenable) { 10936 var index = thenableIndexCounter$1; 10937 thenableIndexCounter$1 += 1; 10938 null === thenableState$1 && (thenableState$1 = createThenableState()); 10939 thenable = trackUsedThenable(thenableState$1, thenable, index); 10940 index = currentlyRenderingFiber; 10941 null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && (index = index.alternate, ReactSharedInternals.H = null !== index && null !== index.memoizedState ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV); 10942 return thenable; 10943 } 10944 function use(usable) { 10945 if (null !== usable && "object" === typeof usable) { 10946 if ("function" === typeof usable.then) return useThenable(usable); 10947 if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable); 10948 } 10949 throw Error("An unsupported type was passed to use(): " + String(usable)); 10950 } 10951 function useMemoCache(size) { 10952 var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue; 10953 null !== updateQueue && (memoCache = updateQueue.memoCache); 10954 if (null == memoCache) { 10955 var current2 = currentlyRenderingFiber.alternate; 10956 null !== current2 && (current2 = current2.updateQueue, null !== current2 && (current2 = current2.memoCache, null != current2 && (memoCache = { 10957 data: current2.data.map(function(array) { 10958 return array.slice(); 10959 }), 10960 index: 0 10961 }))); 10962 } 10963 null == memoCache && (memoCache = { data: [], index: 0 }); 10964 null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue); 10965 updateQueue.memoCache = memoCache; 10966 updateQueue = memoCache.data[memoCache.index]; 10967 if (void 0 === updateQueue || ignorePreviousDependencies) 10968 for (updateQueue = memoCache.data[memoCache.index] = Array(size), current2 = 0; current2 < size; current2++) 10969 updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL; 10970 else 10971 updateQueue.length !== size && console.error( 10972 "Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", 10973 updateQueue.length, 10974 size 10975 ); 10976 memoCache.index++; 10977 return updateQueue; 10978 } 10979 function basicStateReducer(state, action) { 10980 return "function" === typeof action ? action(state) : action; 10981 } 10982 function mountReducer(reducer, initialArg, init) { 10983 var hook = mountWorkInProgressHook(); 10984 if (void 0 !== init) { 10985 var initialState = init(initialArg); 10986 if (shouldDoubleInvokeUserFnsInHooksDEV) { 10987 setIsStrictModeForDevtools(true); 10988 try { 10989 init(initialArg); 10990 } finally { 10991 setIsStrictModeForDevtools(false); 10992 } 10993 } 10994 } else initialState = initialArg; 10995 hook.memoizedState = hook.baseState = initialState; 10996 reducer = { 10997 pending: null, 10998 lanes: 0, 10999 dispatch: null, 11000 lastRenderedReducer: reducer, 11001 lastRenderedState: initialState 11002 }; 11003 hook.queue = reducer; 11004 reducer = reducer.dispatch = dispatchReducerAction.bind( 11005 null, 11006 currentlyRenderingFiber, 11007 reducer 11008 ); 11009 return [hook.memoizedState, reducer]; 11010 } 11011 function updateReducer(reducer) { 11012 var hook = updateWorkInProgressHook(); 11013 return updateReducerImpl(hook, currentHook, reducer); 11014 } 11015 function updateReducerImpl(hook, current2, reducer) { 11016 var queue = hook.queue; 11017 if (null === queue) 11018 throw Error( 11019 "Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)" 11020 ); 11021 queue.lastRenderedReducer = reducer; 11022 var baseQueue = hook.baseQueue, pendingQueue = queue.pending; 11023 if (null !== pendingQueue) { 11024 if (null !== baseQueue) { 11025 var baseFirst = baseQueue.next; 11026 baseQueue.next = pendingQueue.next; 11027 pendingQueue.next = baseFirst; 11028 } 11029 current2.baseQueue !== baseQueue && console.error( 11030 "Internal error: Expected work-in-progress queue to be a clone. This is a bug in React." 11031 ); 11032 current2.baseQueue = baseQueue = pendingQueue; 11033 queue.pending = null; 11034 } 11035 pendingQueue = hook.baseState; 11036 if (null === baseQueue) hook.memoizedState = pendingQueue; 11037 else { 11038 current2 = baseQueue.next; 11039 var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current2, didReadFromEntangledAsyncAction2 = false;
11040 do { 11041 var updateLane = update.lane & -536870913; 11042 if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) { 11043 var revertLane = update.revertLane; 11044 if (0 === revertLane) 11045 null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = { 11046 lane: 0, 11047 revertLane: 0, 11048 action: update.action, 11049 hasEagerState: update.hasEagerState, 11050 eagerState: update.eagerState, 11051 next: null 11052 }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true); 11053 else if ((renderLanes & revertLane) === revertLane) { 11054 update = update.next; 11055 revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction2 = true); 11056 continue; 11057 } else 11058 updateLane = { 11059 lane: 0, 11060 revertLane: update.revertLane, 11061 action: update.action, 11062 hasEagerState: update.hasEagerState, 11063 eagerState: update.eagerState, 11064 next: null 11065 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane; 11066 updateLane = update.action; 11067 shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane); 11068 pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane); 11069 } else 11070 revertLane = { 11071 lane: updateLane, 11072 revertLane: update.revertLane, 11073 action: update.action, 11074 hasEagerState: update.hasEagerState, 11075 eagerState: update.eagerState, 11076 next: null 11077 }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane; 11078 update = update.next; 11079 } while (null !== update && update !== current2); 11080 null === newBaseQueueLast ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst; 11081 if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction2 && (reducer = currentEntangledActionThenable, null !== reducer))) 11082 throw reducer; 11083 hook.memoizedState = pendingQueue; 11084 hook.baseState = baseFirst; 11085 hook.baseQueue = newBaseQueueLast; 11086 queue.lastRenderedState = pendingQueue; 11087 } 11088 null === baseQueue && (queue.lanes = 0); 11089 return [hook.memoizedState, queue.dispatch]; 11090 } 11091 function rerenderReducer(reducer) { 11092 var hook = updateWorkInProgressHook(), queue = hook.queue; 11093 if (null === queue) 11094 throw Error( 11095 "Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)" 11096 ); 11097 queue.lastRenderedReducer = reducer; 11098 var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState; 11099 if (null !== lastRenderPhaseUpdate) { 11100 queue.pending = null; 11101 var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; 11102 do 11103 newState = reducer(newState, update.action), update = update.next; 11104 while (update !== lastRenderPhaseUpdate); 11105 objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true); 11106 hook.memoizedState = newState; 11107 null === hook.baseQueue && (hook.baseState = newState); 11108 queue.lastRenderedState = newState; 11109 } 11110 return [newState, dispatch]; 11111 } 11112 function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 11113 var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook(); 11114 if (isHydrating) { 11115 if (void 0 === getServerSnapshot) 11116 throw Error( 11117 "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering." 11118 ); 11119 var nextSnapshot = getServerSnapshot(); 11120 didWarnUncachedGetSnapshot || nextSnapshot === getServerSnapshot() || (console.error( 11121 "The result of getServerSnapshot should be cached to avoid an infinite loop" 11122 ), didWarnUncachedGetSnapshot = true); 11123 } else { 11124 nextSnapshot = getSnapshot(); 11125 didWarnUncachedGetSnapshot || (getServerSnapshot = getSnapshot(), objectIs(nextSnapshot, getServerSnapshot) || (console.error( 11126 "The result of getSnapshot should be cached to avoid an infinite loop" 11127 ), didWarnUncachedGetSnapshot = true)); 11128 if (null === workInProgressRoot) 11129 throw Error( 11130 "Expected a work-in-progress root. This is a bug in React. Please file an issue." 11131 ); 11132 0 !== (workInProgressRootRenderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); 11133 } 11134 hook.memoizedState = nextSnapshot; 11135 getServerSnapshot = { value: nextSnapshot, getSnapshot }; 11136 hook.queue = getServerSnapshot; 11137 mountEffect( 11138 subscribeToStore.bind(null, fiber, getServerSnapshot, subscribe), 11139 [subscribe] 11140 ); 11141 fiber.flags |= 2048; 11142 pushSimpleEffect( 11143 HasEffect | Passive,
11144 createEffectInstance(), 11145 updateStoreInstance.bind( 11146 null, 11147 fiber, 11148 getServerSnapshot, 11149 nextSnapshot, 11150 getSnapshot 11151 ), 11152 null 11153 ); 11154 return nextSnapshot; 11155 } 11156 function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { 11157 var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating; 11158 if (isHydrating$jscomp$0) { 11159 if (void 0 === getServerSnapshot) 11160 throw Error( 11161 "Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering." 11162 ); 11163 getServerSnapshot = getServerSnapshot(); 11164 } else if (getServerSnapshot = getSnapshot(), !didWarnUncachedGetSnapshot) { 11165 var cachedSnapshot = getSnapshot(); 11166 objectIs(getServerSnapshot, cachedSnapshot) || (console.error( 11167 "The result of getSnapshot should be cached to avoid an infinite loop" 11168 ), didWarnUncachedGetSnapshot = true); 11169 } 11170 if (cachedSnapshot = !objectIs( 11171 (currentHook || hook).memoizedState, 11172 getServerSnapshot 11173 )) 11174 hook.memoizedState = getServerSnapshot, didReceiveUpdate = true; 11175 hook = hook.queue; 11176 var create = subscribeToStore.bind(null, fiber, hook, subscribe); 11177 updateEffectImpl(2048, Passive, create, [subscribe]); 11178 if (hook.getSnapshot !== getSnapshot || cachedSnapshot || null !== workInProgressHook && workInProgressHook.memoizedState.tag & HasEffect) { 11179 fiber.flags |= 2048; 11180 pushSimpleEffect( 11181 HasEffect | Passive, 11182 createEffectInstance(), 11183 updateStoreInstance.bind( 11184 null, 11185 fiber, 11186 hook, 11187 getServerSnapshot, 11188 getSnapshot 11189 ), 11190 null 11191 ); 11192 if (null === workInProgressRoot) 11193 throw Error( 11194 "Expected a work-in-progress root. This is a bug in React. Please file an issue." 11195 ); 11196 isHydrating$jscomp$0 || 0 !== (renderLanes & 124) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot); 11197 } 11198 return getServerSnapshot; 11199 } 11200 function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { 11201 fiber.flags |= 16384; 11202 fiber = { getSnapshot, value: renderedSnapshot }; 11203 getSnapshot = currentlyRenderingFiber.updateQueue; 11204 null === getSnapshot ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber)); 11205 } 11206 function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { 11207 inst.value = nextSnapshot; 11208 inst.getSnapshot = getSnapshot; 11209 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 11210 } 11211 function subscribeToStore(fiber, inst, subscribe) { 11212 return subscribe(function() { 11213 checkIfSnapshotChanged(inst) && forceStoreRerender(fiber); 11214 }); 11215 } 11216 function checkIfSnapshotChanged(inst) { 11217 var latestGetSnapshot = inst.getSnapshot; 11218 inst = inst.value; 11219 try { 11220 var nextValue = latestGetSnapshot(); 11221 return !objectIs(inst, nextValue); 11222 } catch (error) { 11223 return true; 11224 } 11225 } 11226 function forceStoreRerender(fiber) { 11227 var root2 = enqueueConcurrentRenderForLane(fiber, 2); 11228 null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2); 11229 } 11230 function mountStateImpl(initialState) { 11231 var hook = mountWorkInProgressHook(); 11232 if ("function" === typeof initialState) { 11233 var initialStateInitializer = initialState; 11234 initialState = initialStateInitializer(); 11235 if (shouldDoubleInvokeUserFnsInHooksDEV) { 11236 setIsStrictModeForDevtools(true); 11237 try { 11238 initialStateInitializer(); 11239 } finally { 11240 setIsStrictModeForDevtools(false); 11241 } 11242 } 11243 } 11244 hook.memoizedState = hook.baseState = initialState; 11245 hook.queue = { 11246 pending: null, 11247 lanes: 0, 11248 dispatch: null, 11249 lastRenderedReducer: basicStateReducer, 11250 lastRenderedState: initialState 11251 }; 11252 return hook; 11253 } 11254 function mountState(initialState) { 11255 initialState = mountStateImpl(initialState); 11256 var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue); 11257 queue.dispatch = dispatch; 11258 return [initialState.memoizedState, dispatch]; 11259 } 11260 function mountOptimistic(passthrough) { 11261 var hook = mountWorkInProgressHook(); 11262 hook.memoizedState = hook.baseState = passthrough; 11263 var queue = { 11264 pending: null, 11265 lanes: 0, 11266 dispatch: null, 11267 lastRenderedReducer: null, 11268 lastRenderedState: null 11269 }; 11270 hook.queue = queue; 11271 hook = dispatchOptimisticSetState.bind( 11272 null, 11273 currentlyRenderingFiber, 11274 true, 11275 queue 11276 ); 11277 queue.dispatch = hook; 11278 return [passthrough, hook]; 11279 } 11280 function updateOptimistic(passthrough, reducer) { 11281 var hook = updateWorkInProgressHook(); 11282 return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 11283 } 11284 function updateOptimisticImpl(hook, current2, passthrough, reducer) { 11285 hook.baseState = passthrough; 11286 return updateReducerImpl( 11287 hook, 11288 currentHook, 11289 "function" === typeof reducer ? reducer : basicStateReducer 11290 ); 11291 } 11292 function rerenderOptimistic(passthrough, reducer) { 11293 var hook = updateWorkInProgressHook(); 11294 if (null !== currentHook) 11295 return updateOptimisticImpl(hook, currentHook, passthrough, reducer); 11296 hook.baseState = passthrough; 11297 return [passthrough, hook.queue.dispatch]; 11298 } 11299 function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) { 11300 if (isRenderPhaseUpdate(fiber)) 11301 throw Error("Cannot update form state while rendering."); 11302 fiber = actionQueue.action; 11303 if (null !== fiber) { 11304 var actionNode = { 11305 payload, 11306 action: fiber, 11307 next: null, 11308 isTransition: true, 11309 status: "pending", 11310 value: null, 11311 reason: null, 11312 listeners: [], 11313 then: function(listener) { 11314 actionNode.listeners.push(listener); 11315 } 11316 }; 11317 null !== ReactSharedInternals.T ? setPendingState(true) : actionNode.isTransition = false;
11318 setState(actionNode); 11319 setPendingState = actionQueue.pending; 11320 null === setPendingState ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(actionQueue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode); 11321 } 11322 } 11323 function runActionStateAction(actionQueue, node) { 11324 var action = node.action, payload = node.payload, prevState = actionQueue.state; 11325 if (node.isTransition) { 11326 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 11327 ReactSharedInternals.T = currentTransition; 11328 ReactSharedInternals.T._updatedFibers = /* @__PURE__ */ new Set(); 11329 try { 11330 var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S; 11331 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 11332 handleActionReturnValue(actionQueue, node, returnValue); 11333 } catch (error) { 11334 onActionError(actionQueue, node, error); 11335 } finally { 11336 ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (actionQueue = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < actionQueue && console.warn( 11337 "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." 11338 )); 11339 } 11340 } else 11341 try { 11342 currentTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, currentTransition); 11343 } catch (error$4) { 11344 onActionError(actionQueue, node, error$4); 11345 } 11346 } 11347 function handleActionReturnValue(actionQueue, node, returnValue) { 11348 null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? (returnValue.then( 11349 function(nextState) {
vendor: 5,963 bytes, lines 11350-11490
11350 onActionSuccess(actionQueue, node, nextState); 11351 }, 11352 function(error) { 11353 return onActionError(actionQueue, node, error); 11354 } 11355 ), node.isTransition || console.error( 11356 "An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop." 11357 )) : onActionSuccess(actionQueue, node, returnValue); 11358 } 11359 function onActionSuccess(actionQueue, actionNode, nextState) { 11360 actionNode.status = "fulfilled"; 11361 actionNode.value = nextState; 11362 notifyActionListeners(actionNode); 11363 actionQueue.state = nextState; 11364 actionNode = actionQueue.pending; 11365 null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState))); 11366 } 11367 function onActionError(actionQueue, actionNode, error) { 11368 var last = actionQueue.pending; 11369 actionQueue.pending = null; 11370 if (null !== last) { 11371 last = last.next; 11372 do 11373 actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next; 11374 while (actionNode !== last); 11375 } 11376 actionQueue.action = null; 11377 } 11378 function notifyActionListeners(actionNode) { 11379 actionNode = actionNode.listeners; 11380 for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])(); 11381 } 11382 function actionStateReducer(oldState, newState) { 11383 return newState; 11384 } 11385 function mountActionState(action, initialStateProp) { 11386 if (isHydrating) { 11387 var ssrFormState = workInProgressRoot.formState; 11388 if (null !== ssrFormState) { 11389 a: { 11390 var isMatching = currentlyRenderingFiber; 11391 if (isHydrating) { 11392 if (nextHydratableInstance) { 11393 b: { 11394 var markerInstance = nextHydratableInstance; 11395 for (var inRootOrSingleton = rootOrSingletonContext; 8 !== markerInstance.nodeType; ) { 11396 if (!inRootOrSingleton) { 11397 markerInstance = null; 11398 break b; 11399 } 11400 markerInstance = getNextHydratable( 11401 markerInstance.nextSibling 11402 ); 11403 if (null === markerInstance) { 11404 markerInstance = null; 11405 break b; 11406 } 11407 } 11408 inRootOrSingleton = markerInstance.data; 11409 markerInstance = inRootOrSingleton === FORM_STATE_IS_MATCHING || inRootOrSingleton === FORM_STATE_IS_NOT_MATCHING ? markerInstance : null; 11410 } 11411 if (markerInstance) { 11412 nextHydratableInstance = getNextHydratable( 11413 markerInstance.nextSibling 11414 ); 11415 isMatching = markerInstance.data === FORM_STATE_IS_MATCHING; 11416 break a; 11417 } 11418 } 11419 throwOnHydrationMismatch(isMatching); 11420 } 11421 isMatching = false; 11422 } 11423 isMatching && (initialStateProp = ssrFormState[0]); 11424 } 11425 } 11426 ssrFormState = mountWorkInProgressHook(); 11427 ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp; 11428 isMatching = { 11429 pending: null, 11430 lanes: 0, 11431 dispatch: null, 11432 lastRenderedReducer: actionStateReducer, 11433 lastRenderedState: initialStateProp 11434 }; 11435 ssrFormState.queue = isMatching; 11436 ssrFormState = dispatchSetState.bind( 11437 null, 11438 currentlyRenderingFiber, 11439 isMatching 11440 ); 11441 isMatching.dispatch = ssrFormState; 11442 isMatching = mountStateImpl(false); 11443 inRootOrSingleton = dispatchOptimisticSetState.bind( 11444 null, 11445 currentlyRenderingFiber, 11446 false, 11447 isMatching.queue 11448 ); 11449 isMatching = mountWorkInProgressHook(); 11450 markerInstance = { 11451 state: initialStateProp, 11452 dispatch: null, 11453 action, 11454 pending: null 11455 }; 11456 isMatching.queue = markerInstance; 11457 ssrFormState = dispatchActionState.bind( 11458 null, 11459 currentlyRenderingFiber, 11460 markerInstance, 11461 inRootOrSingleton, 11462 ssrFormState 11463 ); 11464 markerInstance.dispatch = ssrFormState; 11465 isMatching.memoizedState = action; 11466 return [initialStateProp, ssrFormState, false]; 11467 } 11468 function updateActionState(action) { 11469 var stateHook = updateWorkInProgressHook(); 11470 return updateActionStateImpl(stateHook, currentHook, action); 11471 } 11472 function updateActionStateImpl(stateHook, currentStateHook, action) { 11473 currentStateHook = updateReducerImpl( 11474 stateHook, 11475 currentStateHook, 11476 actionStateReducer 11477 )[0]; 11478 stateHook = updateReducer(basicStateReducer)[0]; 11479 if ("object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then) 11480 try { 11481 var state = useThenable(currentStateHook); 11482 } catch (x) { 11483 if (x === SuspenseException) throw SuspenseActionException; 11484 throw x; 11485 } 11486 else state = currentStateHook; 11487 currentStateHook = updateWorkInProgressHook(); 11488 var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch; 11489 action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect( 11490 HasEffect | Passive,
11491 createEffectInstance(), 11492 actionStateActionEffect.bind(null, actionQueue, action), 11493 null 11494 )); 11495 return [state, dispatch, stateHook]; 11496 } 11497 function actionStateActionEffect(actionQueue, action) { 11498 actionQueue.action = action; 11499 } 11500 function rerenderActionState(action) { 11501 var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook; 11502 if (null !== currentStateHook) 11503 return updateActionStateImpl(stateHook, currentStateHook, action); 11504 updateWorkInProgressHook(); 11505 stateHook = stateHook.memoizedState; 11506 currentStateHook = updateWorkInProgressHook(); 11507 var dispatch = currentStateHook.queue.dispatch; 11508 currentStateHook.memoizedState = action; 11509 return [stateHook, dispatch, false]; 11510 } 11511 function pushSimpleEffect(tag, inst, create, createDeps) { 11512 tag = { 11513 tag, 11514 create, 11515 deps: createDeps, 11516 inst, 11517 next: null 11518 }; 11519 inst = currentlyRenderingFiber.updateQueue; 11520 null === inst && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst); 11521 create = inst.lastEffect; 11522 null === create ? inst.lastEffect = tag.next = tag : (createDeps = create.next, create.next = tag, tag.next = createDeps, inst.lastEffect = tag); 11523 return tag; 11524 } 11525 function createEffectInstance() { 11526 return { destroy: void 0, resource: void 0 }; 11527 } 11528 function mountRef(initialValue) { 11529 var hook = mountWorkInProgressHook(); 11530 initialValue = { current: initialValue }; 11531 return hook.memoizedState = initialValue; 11532 } 11533 function mountEffectImpl(fiberFlags, hookFlags, create, createDeps) { 11534 var hook = mountWorkInProgressHook(); 11535 createDeps = void 0 === createDeps ? null : createDeps; 11536 currentlyRenderingFiber.flags |= fiberFlags; 11537 hook.memoizedState = pushSimpleEffect( 11538 HasEffect | hookFlags, 11539 createEffectInstance(), 11540 create, 11541 createDeps 11542 ); 11543 } 11544 function updateEffectImpl(fiberFlags, hookFlags, create, deps) { 11545 var hook = updateWorkInProgressHook(); 11546 deps = void 0 === deps ? null : deps; 11547 var inst = hook.memoizedState.inst; 11548 null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect( 11549 HasEffect | hookFlags, 11550 inst, 11551 create, 11552 deps 11553 )); 11554 } 11555 function mountEffect(create, createDeps) { 11556 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode ? mountEffectImpl(276826112, Passive, create, createDeps) : mountEffectImpl(8390656, Passive, create, createDeps); 11557 } 11558 function mountLayoutEffect(create, deps) { 11559 var fiberFlags = 4194308; 11560 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728); 11561 return mountEffectImpl(fiberFlags, Layout, create, deps); 11562 } 11563 function imperativeHandleEffect(create, ref) { 11564 if ("function" === typeof ref) { 11565 create = create(); 11566 var refCleanup = ref(create); 11567 return function() { 11568 "function" === typeof refCleanup ? refCleanup() : ref(null); 11569 }; 11570 } 11571 if (null !== ref && void 0 !== ref) 11572 return ref.hasOwnProperty("current") || console.error( 11573 "Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", 11574 "an object with keys {" + Object.keys(ref).join(", ") + "}" 11575 ), create = create(), ref.current = create, function() { 11576 ref.current = null; 11577 }; 11578 } 11579 function mountImperativeHandle(ref, create, deps) { 11580 "function" !== typeof create && console.error( 11581 "Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", 11582 null !== create ? typeof create : "null" 11583 ); 11584 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 11585 var fiberFlags = 4194308; 11586 (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (fiberFlags |= 134217728); 11587 mountEffectImpl( 11588 fiberFlags, 11589 Layout, 11590 imperativeHandleEffect.bind(null, create, ref), 11591 deps 11592 ); 11593 } 11594 function updateImperativeHandle(ref, create, deps) { 11595 "function" !== typeof create && console.error( 11596 "Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", 11597 null !== create ? typeof create : "null" 11598 ); 11599 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; 11600 updateEffectImpl( 11601 4, 11602 Layout, 11603 imperativeHandleEffect.bind(null, create, ref), 11604 deps 11605 ); 11606 } 11607 function mountCallback(callback, deps) { 11608 mountWorkInProgressHook().memoizedState = [ 11609 callback, 11610 void 0 === deps ? null : deps 11611 ]; 11612 return callback; 11613 } 11614 function updateCallback(callback, deps) { 11615 var hook = updateWorkInProgressHook(); 11616 deps = void 0 === deps ? null : deps; 11617 var prevState = hook.memoizedState; 11618 if (null !== deps && areHookInputsEqual(deps, prevState[1])) 11619 return prevState[0]; 11620 hook.memoizedState = [callback, deps]; 11621 return callback; 11622 } 11623 function mountMemo(nextCreate, deps) { 11624 var hook = mountWorkInProgressHook(); 11625 deps = void 0 === deps ? null : deps; 11626 var nextValue = nextCreate(); 11627 if (shouldDoubleInvokeUserFnsInHooksDEV) { 11628 setIsStrictModeForDevtools(true); 11629 try { 11630 nextCreate(); 11631 } finally { 11632 setIsStrictModeForDevtools(false); 11633 } 11634 } 11635 hook.memoizedState = [nextValue, deps]; 11636 return nextValue; 11637 } 11638 function updateMemo(nextCreate, deps) { 11639 var hook = updateWorkInProgressHook(); 11640 deps = void 0 === deps ? null : deps; 11641 var prevState = hook.memoizedState; 11642 if (null !== deps && areHookInputsEqual(deps, prevState[1])) 11643 return prevState[0]; 11644 prevState = nextCreate(); 11645 if (shouldDoubleInvokeUserFnsInHooksDEV) { 11646 setIsStrictModeForDevtools(true); 11647 try { 11648 nextCreate(); 11649 } finally { 11650 setIsStrictModeForDevtools(false); 11651 } 11652 } 11653 hook.memoizedState = [prevState, deps]; 11654 return prevState; 11655 } 11656 function mountDeferredValue(value, initialValue) { 11657 var hook = mountWorkInProgressHook(); 11658 return mountDeferredValueImpl(hook, value, initialValue); 11659 } 11660 function updateDeferredValue(value, initialValue) { 11661 var hook = updateWorkInProgressHook(); 11662 return updateDeferredValueImpl( 11663 hook, 11664 currentHook.memoizedState, 11665 value, 11666 initialValue 11667 ); 11668 } 11669 function rerenderDeferredValue(value, initialValue) { 11670 var hook = updateWorkInProgressHook();
11671 return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl( 11672 hook, 11673 currentHook.memoizedState, 11674 value, 11675 initialValue 11676 ); 11677 } 11678 function mountDeferredValueImpl(hook, value, initialValue) { 11679 if (void 0 === initialValue || 0 !== (renderLanes & 1073741824)) 11680 return hook.memoizedState = value; 11681 hook.memoizedState = initialValue; 11682 hook = requestDeferredLane(); 11683 currentlyRenderingFiber.lanes |= hook; 11684 workInProgressRootSkippedLanes |= hook; 11685 return initialValue; 11686 } 11687 function updateDeferredValueImpl(hook, prevValue, value, initialValue) { 11688 if (objectIs(value, prevValue)) return value; 11689 if (null !== currentTreeHiddenStackCursor.current) 11690 return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = true), hook; 11691 if (0 === (renderLanes & 42)) 11692 return didReceiveUpdate = true, hook.memoizedState = value; 11693 hook = requestDeferredLane(); 11694 currentlyRenderingFiber.lanes |= hook; 11695 workInProgressRootSkippedLanes |= hook; 11696 return prevValue; 11697 } 11698 function startTransition(fiber, queue, pendingState, finishedState, callback) { 11699 var previousPriority = ReactDOMSharedInternals.p; 11700 ReactDOMSharedInternals.p = 0 !== previousPriority && previousPriority < ContinuousEventPriority ? previousPriority : ContinuousEventPriority; 11701 var prevTransition = ReactSharedInternals.T, currentTransition = {}; 11702 ReactSharedInternals.T = currentTransition; 11703 dispatchOptimisticSetState(fiber, false, queue, pendingState); 11704 currentTransition._updatedFibers = /* @__PURE__ */ new Set(); 11705 try { 11706 var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S; 11707 null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue); 11708 if (null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then) { 11709 var thenableForFinishedState = chainThenableValue( 11710 returnValue, 11711 finishedState 11712 ); 11713 dispatchSetStateInternal( 11714 fiber, 11715 queue, 11716 thenableForFinishedState, 11717 requestUpdateLane(fiber) 11718 ); 11719 } else 11720 dispatchSetStateInternal( 11721 fiber, 11722 queue, 11723 finishedState, 11724 requestUpdateLane(fiber) 11725 ); 11726 } catch (error) { 11727 dispatchSetStateInternal( 11728 fiber, 11729 queue, 11730 { then: function() { 11731 }, status: "rejected", reason: error }, 11732 requestUpdateLane(fiber) 11733 ); 11734 } finally { 11735 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, null === prevTransition && currentTransition._updatedFibers && (fiber = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < fiber && console.warn( 11736 "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." 11737 )); 11738 } 11739 } 11740 function startHostTransition(formFiber, pendingState, action, formData) { 11741 if (5 !== formFiber.tag) 11742 throw Error( 11743 "Expected the form instance to be a HostComponent. This is a bug in React." 11744 ); 11745 var queue = ensureFormComponentIsStateful(formFiber).queue; 11746 startTransition( 11747 formFiber, 11748 queue, 11749 pendingState, 11750 NotPendingTransition, 11751 null === action ? noop$2 : function() { 11752 requestFormReset$1(formFiber); 11753 return action(formData); 11754 } 11755 ); 11756 } 11757 function ensureFormComponentIsStateful(formFiber) { 11758 var existingStateHook = formFiber.memoizedState; 11759 if (null !== existingStateHook) return existingStateHook; 11760 existingStateHook = { 11761 memoizedState: NotPendingTransition, 11762 baseState: NotPendingTransition, 11763 baseQueue: null, 11764 queue: { 11765 pending: null, 11766 lanes: 0, 11767 dispatch: null, 11768 lastRenderedReducer: basicStateReducer, 11769 lastRenderedState: NotPendingTransition 11770 }, 11771 next: null 11772 }; 11773 var initialResetState = {}; 11774 existingStateHook.next = { 11775 memoizedState: initialResetState, 11776 baseState: initialResetState, 11777 baseQueue: null, 11778 queue: { 11779 pending: null, 11780 lanes: 0, 11781 dispatch: null, 11782 lastRenderedReducer: basicStateReducer, 11783 lastRenderedState: initialResetState 11784 }, 11785 next: null 11786 }; 11787 formFiber.memoizedState = existingStateHook; 11788 formFiber = formFiber.alternate; 11789 null !== formFiber && (formFiber.memoizedState = existingStateHook); 11790 return existingStateHook; 11791 } 11792 function requestFormReset$1(formFiber) { 11793 null === ReactSharedInternals.T && console.error( 11794 "requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition." 11795 ); 11796 var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue; 11797 dispatchSetStateInternal( 11798 formFiber, 11799 resetStateQueue, 11800 {}, 11801 requestUpdateLane(formFiber) 11802 ); 11803 } 11804 function mountTransition() { 11805 var stateHook = mountStateImpl(false); 11806 stateHook = startTransition.bind( 11807 null, 11808 currentlyRenderingFiber, 11809 stateHook.queue, 11810 true, 11811 false 11812 ); 11813 mountWorkInProgressHook().memoizedState = stateHook; 11814 return [false, stateHook]; 11815 } 11816 function updateTransition() { 11817 var booleanOrThenable = updateReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 11818 return [ 11819 "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), 11820 start 11821 ]; 11822 } 11823 function rerenderTransition() { 11824 var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start = updateWorkInProgressHook().memoizedState; 11825 return [ 11826 "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable), 11827 start 11828 ]; 11829 } 11830 function useHostTransitionStatus() { 11831 return readContext(HostTransitionContext); 11832 } 11833 function mountId() { 11834 var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix; 11835 if (isHydrating) { 11836 var treeId = treeContextOverflow; 11837 var idWithLeadingBit = treeContextId; 11838 treeId = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + treeId;
11839 identifierPrefix = "«" + identifierPrefix + "R" + treeId; 11840 treeId = localIdCounter++; 11841 0 < treeId && (identifierPrefix += "H" + treeId.toString(32)); 11842 identifierPrefix += "»"; 11843 } else 11844 treeId = globalClientIdCounter++, identifierPrefix = "«" + identifierPrefix + "r" + treeId.toString(32) + "»"; 11845 return hook.memoizedState = identifierPrefix; 11846 } 11847 function mountRefresh() { 11848 return mountWorkInProgressHook().memoizedState = refreshCache.bind( 11849 null, 11850 currentlyRenderingFiber 11851 ); 11852 } 11853 function refreshCache(fiber, seedKey) { 11854 for (var provider = fiber.return; null !== provider; ) { 11855 switch (provider.tag) { 11856 case 24: 11857 case 3: 11858 var lane = requestUpdateLane(provider); 11859 fiber = createUpdate(lane); 11860 var root2 = enqueueUpdate(provider, fiber, lane); 11861 null !== root2 && (scheduleUpdateOnFiber(root2, provider, lane), entangleTransitions(root2, provider, lane)); 11862 provider = createCache(); 11863 null !== seedKey && void 0 !== seedKey && null !== root2 && console.error( 11864 "The seed argument is not enabled outside experimental channels." 11865 ); 11866 fiber.payload = { cache: provider }; 11867 return; 11868 } 11869 provider = provider.return; 11870 } 11871 } 11872 function dispatchReducerAction(fiber, queue, action) { 11873 var args = arguments; 11874 "function" === typeof args[3] && console.error( 11875 "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." 11876 ); 11877 args = requestUpdateLane(fiber); 11878 var update = { 11879 lane: args, 11880 revertLane: 0, 11881 action, 11882 hasEagerState: false, 11883 eagerState: null, 11884 next: null 11885 }; 11886 isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, update) : (update = enqueueConcurrentHookUpdate(fiber, queue, update, args), null !== update && (scheduleUpdateOnFiber(update, fiber, args), entangleTransitionUpdate(update, queue, args
11886))); 11887 markStateUpdateScheduled(fiber, args); 11888 } 11889 function dispatchSetState(fiber, queue, action) { 11890 var args = arguments; 11891 "function" === typeof args[3] && console.error( 11892 "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." 11893 ); 11894 args = requestUpdateLane(fiber); 11895 dispatchSetStateInternal(fiber, queue, action, args); 11896 markStateUpdateScheduled(fiber, args); 11897 } 11898 function dispatchSetStateInternal(fiber, queue, action, lane) { 11899 var update = { 11900 lane, 11901 revertLane: 0, 11902 action, 11903 hasEagerState: false, 11904 eagerState: null, 11905 next: null 11906 }; 11907 if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update); 11908 else { 11909 var alternate = fiber.alternate; 11910 if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate)) { 11911 var prevDispatcher = ReactSharedInternals.H; 11912 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 11913 try { 11914 var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action); 11915 update.hasEagerState = true; 11916 update.eagerState = eagerState; 11917 if (objectIs(eagerState, currentState)) 11918 return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), false; 11919 } catch (error) { 11920 } finally { 11921 ReactSharedInternals.H = prevDispatcher; 11922 } 11923 } 11924 action = enqueueConcurrentHookUpdate(fiber, queue, update, lane); 11925 if (null !== action) 11926 return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true; 11927 } 11928 return false; 11929 } 11930 function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) { 11931 null === ReactSharedInternals.T && 0 === currentEntangledLane && console.error( 11932 "An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition." 11933 ); 11934 action = { 11935 lane: 2, 11936 revertLane: requestTransitionLane(), 11937 action, 11938 hasEagerState: false, 11939 eagerState: null, 11940 next: null 11941 }; 11942 if (isRenderPhaseUpdate(fiber)) { 11943 if (throwIfDuringRender) 11944 throw Error("Cannot update optimistic state while rendering."); 11945 console.error("Cannot call startTransition while rendering."); 11946 } else 11947 throwIfDuringRender = enqueueConcurrentHookUpdate( 11948 fiber, 11949 queue, 11950 action, 11951 2 11952 ), null !== throwIfDuringRender && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2); 11953 markStateUpdateScheduled(fiber, 2); 11954 } 11955 function isRenderPhaseUpdate(fiber) { 11956 var alternate = fiber.alternate; 11957 return fiber === currentlyRenderingFiber || null !== alternate && alternate === currentlyRenderingFiber; 11958 } 11959 function enqueueRenderPhaseUpdate(queue, update) { 11960 didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; 11961 var pending = queue.pending; 11962 null === pending ? update.next = update : (update.next = pending.next, pending.next = update); 11963 queue.pending = update; 11964 } 11965 function entangleTransitionUpdate(root2, queue, lane) { 11966 if (0 !== (lane & 4194048)) { 11967 var queueLanes = queue.lanes; 11968 queueLanes &= root2.pendingLanes; 11969 lane |= queueLanes; 11970 queue.lanes = lane; 11971 markRootEntangled(root2, lane); 11972 } 11973 } 11974 function pushDebugInfo(debugInfo) { 11975 var previousDebugInfo = currentDebugInfo; 11976 null != debugInfo && (currentDebugInfo = null === previousDebugInfo ? debugInfo : previousDebugInfo.concat(debugInfo)); 11977 return previousDebugInfo; 11978 } 11979 function validateFragmentProps(element, fiber, returnFiber) { 11980 for (var keys = Object.keys(element.props), i = 0; i < keys.length; i++) { 11981 var key = keys[i]; 11982 if ("children" !== key && "key" !== key) { 11983 null === fiber && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber); 11984 runWithFiberInDEV( 11985 fiber, 11986 function(erroredKey) { 11987 console.error( 11988 "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", 11989 erroredKey 11990 ); 11991 }, 11992 key 11993 ); 11994 break; 11995 } 11996 } 11997 } 11998 function unwrapThenable(thenable) { 11999 var index = thenableIndexCounter; 12000 thenableIndexCounter += 1; 12001 null === thenableState && (thenableState = createThenableState()); 12002 return trackUsedThenable(thenableState, thenable, index); 12003 } 12004 function coerceRef(workInProgress2, element) { 12005 element = element.props.ref; 12006 workInProgress2.ref = void 0 !== element ? element : null; 12007 }
12008 function throwOnInvalidObjectType(returnFiber, newChild) { 12009 if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) 12010 throw Error( 12011 'A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.' 12012 ); 12013 returnFiber = Object.prototype.toString.call(newChild); 12014 throw Error( 12015 "Objects are not valid as a React child (found: " + ("[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber) + "). If you meant to render a collection of children, use an array instead." 12016 ); 12017 } 12018 function warnOnFunctionType(returnFiber, invalidChild) { 12019 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 12020 ownerHasFunctionTypeWarning[parentName] || (ownerHasFunctionTypeWarning[parentName] = true, invalidChild = invalidChild.displayName || invalidChild.name || "Component", 3 === returnFiber.tag ? console.error( 12021 "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)", 12022 invalidChild, 12023 invalidChild, 12024 invalidChild 12025 ) : console.error( 12026 "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}</%s>", 12027 invalidChild, 12028 invalidChild, 12029 parentName, 12030 invalidChild, 12031 parentName 12032 )); 12033 } 12034 function warnOnSymbolType(returnFiber, invalidChild) { 12035 var parentName = getComponentNameFromFiber(returnFiber) || "Component"; 12036 ownerHasSymbolTypeWarning[parentName] || (ownerHasSymbolTypeWarning[parentName] = true, invalidChild = String(invalidChild), 3 === returnFiber.tag ? console.error( 12037 "Symbols are not valid as a React child.\n root.render(%s)", 12038 invalidChild 12039 ) : console.error( 12040 "Symbols are not valid as a React child.\n <%s>%s</%s>", 12041 parentName, 12042 invalidChild, 12043 parentName 12044 )); 12045 } 12046 function createChildReconciler(shouldTrackSideEffects) { 12047 function deleteChild(returnFiber, childToDelete) { 12048 if (shouldTrackSideEffects) { 12049 var deletions = returnFiber.deletions; 12050 null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete); 12051 } 12052 } 12053 function deleteRemainingChildren(returnFiber, currentFirstChild) { 12054 if (!shouldTrackSideEffects) return null; 12055 for (; null !== currentFirstChild; ) 12056 deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 12057 return null; 12058 } 12059 function mapRemainingChildren(currentFirstChild) { 12060 for (var existingChildren = /* @__PURE__ */ new Map(); null !== currentFirstChild; ) 12061 null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling; 12062 return existingChildren; 12063 } 12064 function useFiber(fiber, pendingProps) { 12065 fiber = createWorkInProgress(fiber, pendingProps); 12066 fiber.index = 0; 12067 fiber.sibling = null; 12068 return fiber; 12069 } 12070 function placeChild(newFiber, lastPlacedIndex, newIndex) { 12071 newFiber.index = newIndex; 12072 if (!shouldTrackSideEffects) 12073 return newFiber.flags |= 1048576, lastPlacedIndex; 12074 newIndex = newFiber.alternate; 12075 if (null !== newIndex) 12076 return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex; 12077 newFiber.flags |= 67108866; 12078 return lastPlacedIndex; 12079 } 12080 function placeSingleChild(newFiber) { 12081 shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 67108866); 12082 return newFiber; 12083 } 12084 function updateTextNode(returnFiber, current2, textContent, lanes) { 12085 if (null === current2 || 6 !== current2.tag) 12086 return current2 = createFiberFromText( 12087 textContent, 12088 returnFiber.mode, 12089 lanes 12090 ), current2.return = returnFiber, current2._debugOwner = returnFiber, current2._debugTask = returnFiber._debugTask, current2._debugInfo = currentDebugInfo, current2; 12091 current2 = useFiber(current2, textContent); 12092 current2.return = returnFiber; 12093 current2._debugInfo = currentDebugInfo; 12094 return current2; 12095 } 12096 function updateElement(returnFiber, current2, element, lanes) { 12097 var elementType = element.type; 12098 if (elementType === REACT_FRAGMENT_TYPE) 12099 return current2 = updateFragment( 12100 returnFiber, 12101 current2, 12102 element.props.children, 12103 lanes, 12104 element.key
12105 ), validateFragmentProps(element, current2, returnFiber), current2; 12106 if (null !== current2 && (current2.elementType === elementType || isCompatibleFamilyForHotReloading(current2, element) || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE && callLazyInitInDEV(elementType) === current2.type)) 12107 return current2 = useFiber(current2, element.props), coerceRef(current2, element), current2.return = returnFiber, current2._debugOwner = element._owner, current2._debugInfo = currentDebugInfo, current2; 12108 current2 = createFiberFromElement(element, returnFiber.mode, lanes); 12109 coerceRef(current2, element); 12110 current2.return = returnFiber; 12111 current2._debugInfo = currentDebugInfo; 12112 return current2; 12113 } 12114 function updatePortal(returnFiber, current2, portal, lanes) { 12115 if (null === current2 || 4 !== current2.tag || current2.stateNode.containerInfo !== portal.containerInfo || current2.stateNode.implementation !== portal.implementation) 12116 return current2 = createFiberFromPortal(portal, returnFiber.mode, lanes), current2.return = returnFiber, current2._debugInfo = currentDebugInfo, current2; 12117 current2 = useFiber(current2, portal.children || []); 12118 current2.return = returnFiber; 12119 current2._debugInfo = currentDebugInfo; 12120 return current2; 12121 } 12122 function updateFragment(returnFiber, current2, fragment, lanes, key) { 12123 if (null === current2 || 7 !== current2.tag) 12124 return current2 = createFiberFromFragment( 12125 fragment, 12126 returnFiber.mode, 12127 lanes, 12128 key 12129 ), current2.return = returnFiber, current2._debugOwner = returnFiber, current2._debugTask = returnFiber._debugTask, current2._debugInfo = currentDebugInfo, current2; 12130 current2 = useFiber(current2, fragment); 12131 current2.return = returnFiber; 12132 current2._debugInfo = currentDebugInfo; 12133 return current2; 12134 } 12135 function createChild(returnFiber, newChild, lanes) { 12136 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) 12137 return newChild = createFiberFromText( 12138 "" + newChild, 12139 returnFiber.mode, 12140 lanes 12141 ), newChild.return = returnFiber, newChild._debugOwner = returnFiber, newChild._debugTask = returnFiber._debugTask, newChild._debugInfo = currentDebugInfo, newChild; 12142 if ("object" === typeof newChild && null !== newChild) { 12143 switch (newChild.$$typeof) { 12144 case REACT_ELEMENT_TYPE: 12145 return lanes = createFiberFromElement( 12146 newChild, 12147 returnFiber.mode, 12148 lanes 12149 ), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 12150 case REACT_PORTAL_TYPE: 12151 return newChild = createFiberFromPortal( 12152 newChild, 12153 returnFiber.mode, 12154 lanes 12155 ), newChild.return = returnFiber, newChild._debugInfo = currentDebugInfo, newChild; 12156 case REACT_LAZY_TYPE: 12157 var _prevDebugInfo = pushDebugInfo(newChild._debugInfo); 12158 newChild = callLazyInitInDEV(newChild); 12159 returnFiber = createChild(returnFiber, newChild, lanes); 12160 currentDebugInfo = _prevDebugInfo; 12161 return returnFiber; 12162 } 12163 if (isArrayImpl(newChild) || getIteratorFn(newChild)) 12164 return lanes = createFiberFromFragment( 12165 newChild, 12166 returnFiber.mode, 12167 lanes, 12168 null 12169 ), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, returnFiber = pushDebugInfo(newChild._debugInfo), lanes._debugInfo = currentDebugInfo, currentDebugInfo = returnFiber, lanes; 12170 if ("function" === typeof newChild.then) 12171 return _prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = createChild( 12172 returnFiber, 12173 unwrapThenable(newChild), 12174 lanes 12175 ), currentDebugInfo = _prevDebugInfo, returnFiber; 12176 if (newChild.$$typeof === REACT_CONTEXT_TYPE) 12177 return createChild( 12178 returnFiber, 12179 readContextDuringReconciliation(returnFiber, newChild), 12180 lanes 12181 );
12182 throwOnInvalidObjectType(returnFiber, newChild); 12183 } 12184 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 12185 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 12186 return null; 12187 } 12188 function updateSlot(returnFiber, oldFiber, newChild, lanes) { 12189 var key = null !== oldFiber ? oldFiber.key : null; 12190 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) 12191 return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); 12192 if ("object" === typeof newChild && null !== newChild) { 12193 switch (newChild.$$typeof) { 12194 case REACT_ELEMENT_TYPE: 12195 return newChild.key === key ? (key = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement( 12196 returnFiber, 12197 oldFiber, 12198 newChild, 12199 lanes 12200 ), currentDebugInfo = key, returnFiber) : null; 12201 case REACT_PORTAL_TYPE: 12202 return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null; 12203 case REACT_LAZY_TYPE: 12204 return key = pushDebugInfo(newChild._debugInfo), newChild = callLazyInitInDEV(newChild), returnFiber = updateSlot( 12205 returnFiber, 12206 oldFiber, 12207 newChild, 12208 lanes 12209 ), currentDebugInfo = key, returnFiber; 12210 } 12211 if (isArrayImpl(newChild) || getIteratorFn(newChild)) { 12212 if (null !== key) return null; 12213 key = pushDebugInfo(newChild._debugInfo); 12214 returnFiber = updateFragment( 12215 returnFiber, 12216 oldFiber, 12217 newChild, 12218 lanes, 12219 null 12220 ); 12221 currentDebugInfo = key; 12222 return returnFiber; 12223 } 12224 if ("function" === typeof newChild.then) 12225 return key = pushDebugInfo(newChild._debugInfo), returnFiber = updateSlot( 12226 returnFiber, 12227 oldFiber, 12228 unwrapThenable(newChild), 12229 lanes 12230 ), currentDebugInfo = key, returnFiber; 12231 if (newChild.$$typeof === REACT_CONTEXT_TYPE) 12232 return updateSlot( 12233 returnFiber, 12234 oldFiber, 12235 readContextDuringReconciliation(returnFiber, newChild), 12236 lanes 12237 ); 12238 throwOnInvalidObjectType(returnFiber, newChild); 12239 } 12240 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 12241 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 12242 return null; 12243 } 12244 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { 12245 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) 12246 return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes); 12247 if ("object" === typeof newChild && null !== newChild) { 12248 switch (newChild.$$typeof) { 12249 case REACT_ELEMENT_TYPE: 12250 return newIdx = existingChildren.get( 12251 null === newChild.key ? newIdx : newChild.key 12252 ) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateElement( 12253 returnFiber, 12254 newIdx, 12255 newChild, 12256 lanes 12257 ), currentDebugInfo = existingChildren, returnFiber; 12258 case REACT_PORTAL_TYPE: 12259 return existingChildren = existingChildren.get( 12260 null === newChild.key ? newIdx : newChild.key 12261 ) || null, updatePortal(returnFiber, existingChildren, newChild, lanes); 12262 case REACT_LAZY_TYPE: 12263 var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo); 12264 newChild = callLazyInitInDEV(newChild); 12265 returnFiber = updateFromMap( 12266 existingChildren, 12267 returnFiber, 12268 newIdx, 12269 newChild, 12270 lanes 12271 ); 12272 currentDebugInfo = _prevDebugInfo7; 12273 return returnFiber; 12274 } 12275 if (isArrayImpl(newChild) || getIteratorFn(newChild)) 12276 return newIdx = existingChildren.get(newIdx) || null, existingChildren = pushDebugInfo(newChild._debugInfo), returnFiber = updateFragment( 12277 returnFiber, 12278 newIdx, 12279 newChild, 12280 lanes, 12281 null 12282 ), currentDebugInfo = existingChildren, returnFiber; 12283 if ("function" === typeof newChild.then) 12284 return _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo), returnFiber = updateFromMap( 12285 existingChildren, 12286 returnFiber, 12287 newIdx, 12288 unwrapThenable(newChild), 12289 lanes 12290 ), currentDebugInfo = _prevDebugInfo7, returnFiber; 12291 if (newChild.$$typeof === REACT_CONTEXT_TYPE) 12292 return updateFromMap( 12293 existingChildren, 12294 returnFiber, 12295 newIdx, 12296 readContextDuringReconciliation(returnFiber, newChild), 12297 lanes 12298 );
12299 throwOnInvalidObjectType(returnFiber, newChild); 12300 } 12301 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 12302 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 12303 return null; 12304 } 12305 function warnOnInvalidKey(returnFiber, workInProgress2, child, knownKeys) { 12306 if ("object" !== typeof child || null === child) return knownKeys; 12307 switch (child.$$typeof) { 12308 case REACT_ELEMENT_TYPE: 12309 case REACT_PORTAL_TYPE: 12310 warnForMissingKey(returnFiber, workInProgress2, child); 12311 var key = child.key; 12312 if ("string" !== typeof key) break; 12313 if (null === knownKeys) { 12314 knownKeys = /* @__PURE__ */ new Set(); 12315 knownKeys.add(key); 12316 break; 12317 } 12318 if (!knownKeys.has(key)) { 12319 knownKeys.add(key); 12320 break; 12321 } 12322 runWithFiberInDEV(workInProgress2, function() { 12323 console.error( 12324 "Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/
12324or omitted — the behavior is unsupported and could change in a future version.", 12325 key 12326 ); 12327 }); 12328 break; 12329 case REACT_LAZY_TYPE: 12330 child = callLazyInitInDEV(child), warnOnInvalidKey(returnFiber, workInProgress2, child, knownKeys); 12331 } 12332 return knownKeys; 12333 } 12334 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { 12335 for (var knownKeys = null, resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { 12336 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 12337 var newFiber = updateSlot( 12338 returnFiber, 12339 oldFiber, 12340 newChildren[newIdx], 12341 lanes 12342 ); 12343 if (null === newFiber) { 12344 null === oldFiber && (oldFiber = nextOldFiber); 12345 break; 12346 }
12347 knownKeys = warnOnInvalidKey( 12348 returnFiber, 12349 newFiber, 12350 newChildren[newIdx], 12351 knownKeys 12352 ); 12353 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 12354 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 12355 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 12356 previousNewFiber = newFiber; 12357 oldFiber = nextOldFiber; 12358 } 12359 if (newIdx === newChildren.length) 12360 return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 12361 if (null === oldFiber) { 12362 for (; newIdx < newChildren.length; newIdx++) 12363 oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (knownKeys = warnOnInvalidKey( 12364 returnFiber, 12365 oldFiber, 12366 newChildren[newIdx], 12367 knownKeys 12368 ), currentFirstChild = placeChild( 12369 oldFiber, 12370 currentFirstChild, 12371 newIdx 12372 ), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 12373 isHydrating && pushTreeFork(returnFiber, newIdx); 12374 return resultingFirstChild; 12375 } 12376 for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++) 12377 nextOldFiber = updateFromMap( 12378 oldFiber, 12379 returnFiber, 12380 newIdx, 12381 newChildren[newIdx], 12382 lanes 12383 ), null !== nextOldFiber && (knownKeys = warnOnInvali
vendor: 3,392 bytes, lines 12383-12447
12383dKey( 12384 returnFiber, 12385 nextOldFiber, 12386 newChildren[newIdx], 12387 knownKeys 12388 ), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete( 12389 null === nextOldFiber.key ? newIdx : nextOldFiber.key 12390 ), currentFirstChild = placeChild( 12391 nextOldFiber, 12392 currentFirstChild, 12393 newIdx 12394 ), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 12395 shouldTrackSideEffects && oldFiber.forEach(function(child) { 12396 return deleteChild(returnFiber, child); 12397 }); 12398 isHydrating && pushTreeFork(returnFiber, newIdx); 12399 return resultingFirstChild; 12400 } 12401 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) { 12402 if (null == newChildren) 12403 throw Error("An iterable object provided no iterator."); 12404 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, knownKeys = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) { 12405 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 12406 var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); 12407 if (null === newFiber) { 12408 null === oldFiber && (oldFiber = nextOldFiber); 12409 break; 12410 } 12411 knownKeys = warnOnInvalidKey( 12412 returnFiber, 12413 newFiber, 12414 step.value, 12415 knownKeys 12416 ); 12417 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber); 12418 currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx); 12419 null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber; 12420 previousNewFiber = newFiber; 12421 oldFiber = nextOldFiber; 12422 } 12423 if (step.done) 12424 return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild; 12425 if (null === oldFiber) { 12426 for (; !step.done; newIdx++, step = newChildren.next()) 12427 oldFiber = createChild(returnFiber, step.value, lanes), null !== oldFiber && (knownKeys = warnOnInvalidKey( 12428 returnFiber, 12429 oldFiber, 12430 step.value, 12431 knownKeys 12432 ), currentFirstChild = placeChild( 12433 oldFiber, 12434 currentFirstChild, 12435 newIdx 12436 ), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber); 12437 isHydrating && pushTreeFork(returnFiber, newIdx); 12438 return resultingFirstChild; 12439 } 12440 for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next()) 12441 nextOldFiber = updateFromMap( 12442 oldFiber, 12443 returnFiber, 12444 newIdx, 12445 step.value, 12446 lanes 12447 ), null !== nextOldFiber && (knownKeys = warnOnInvali
12447dKey( 12448 returnFiber, 12449 nextOldFiber, 12450 step.value, 12451 knownKeys 12452 ), shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete( 12453 null === nextOldFiber.key ? newIdx : nextOldFiber.key 12454 ), currentFirstChild = placeChild( 12455 nextOldFiber, 12456 currentFirstChild, 12457 newIdx 12458 ), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber); 12459 shouldTrackSideEffects && oldFiber.forEach(function(child) { 12460 return deleteChild(returnFiber, child); 12461 }); 12462 isHydrating && pushTreeFork(returnFiber, newIdx); 12463 return resultingFirstChild; 12464 } 12465 function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) { 12466 "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (validateFragmentProps(newChild, null, returnFiber), newChild = newChild.props.children); 12467 if ("object" === typeof newChild && null !== newChild) { 12468 switch (newChild.$$typeof) { 12469 case REACT_ELEMENT_TYPE: 12470 var prevDebugInfo = pushDebugInfo(newChild._debugInfo); 12471 a: { 12472 for (var key = newChild.key; null !== currentFirstChild; ) { 12473 if (currentFirstChild.key === key) { 12474 key = newChild.type; 12475 if (key === REACT_FRAGMENT_TYPE) { 12476 if (7 === currentFirstChild.tag) { 12477 deleteRemainingChildren( 12478 returnFiber, 12479 currentFirstChild.sibling 12480 ); 12481 lanes = useFiber( 12482 currentFirstChild, 12483 newChild.props.children 12484 ); 12485 lanes.return = returnFiber; 12486 lanes._debugOwner = newChild._owner; 12487 lanes._debugInfo = currentDebugInfo; 12488 validateFragmentProps(newChild, lanes, returnFiber); 12489 returnFiber = lanes; 12490 break a; 12491 } 12492 } else if (currentFirstChild.elementType === key || isCompatibleFamilyForHotReloading( 12493 currentFirstChild, 12494 newChild 12495 ) || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && callLazyInitInDEV(key) === currentFirstChild.type) { 12496 deleteRemainingChildren( 12497 returnFiber, 12498 currentFirstChild.sibling 12499 ); 12500 lanes = useFiber(currentFirstChild, newChild.props); 12501 coerceRef(lanes, newChild); 12502 lanes.return = returnFiber; 12503 lanes._debugOwner = newChild._owner; 12504 lanes._debugInfo = currentDebugInfo; 12505 returnFiber = lanes; 12506 break a; 12507 } 12508 deleteRemainingChildren(returnFiber, currentFirstChild); 12509 break; 12510 } else deleteChild(returnFiber, currentFirstChild); 12511 currentFirstChild = currentFirstChild.sibling; 12512 } 12513 newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment( 12514 newChild.props.children, 12515 returnFiber.mode, 12516 lanes, 12517 newChild.key 12518 ), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, validateFragmentProps(newChild, lanes, returnFiber), returnFiber = lanes) : (lanes = createFiberFromElement( 12519 newChild, 12520 returnFiber.mode, 12521 lanes 12522 ), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes._debugInfo = currentDebugInfo, returnFiber = lanes); 12523 } 12524 returnFiber = placeSingleChild(returnFiber); 12525 currentDebugInfo = prevDebugInfo; 12526 return returnFiber; 12527 case REACT_PORTAL_TYPE: 12528 a: { 12529 prevDebugInfo = newChild; 12530 for (newChild = prevDebugInfo.key; null !== currentFirstChild; ) { 12531 if (currentFirstChild.key === newChild) 12532 if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === prevDebugInfo.containerInfo && currentFirstChild.stateNode.implementation === prevDebugInfo.implementation) { 12533 deleteRemainingChildren( 12534 returnFiber, 12535 currentFirstChild.sibling 12536 ); 12537 lanes = useFiber( 12538 currentFirstChild, 12539 prevDebugInfo.children || [] 12540 ); 12541 lanes.return = returnFiber; 12542 returnFiber = lanes; 12543 break a; 12544 } else { 12545 deleteRemainingChildren(returnFiber, currentFirstChild); 12546 break; 12547 } 12548 else deleteChild(returnFiber, currentFirstChild); 12549 currentFirstChild = currentFirstChild.sibling; 12550 } 12551 lanes = createFiberFromPortal( 12552 prevDebugInfo, 12553 returnFiber.mode, 12554 lanes 12555 ); 12556 lanes.return = returnFiber; 12557 returnFiber = lanes; 12558 } 12559 return placeSingleChild(returnFiber); 12560 case REACT_LAZY_TYPE: 12561 return prevDebugInfo = pushDebugInfo(newChild._debugInfo), newChild = callLazyInitInDEV(newChild), returnFiber = reconcileChildFibersImpl( 12562 returnFiber, 12563 currentFirstChild, 12564 newChild, 12565 lanes 12566 ), currentDebugInfo = prevDebugInfo, returnFiber; 12567 } 12568 if (isArrayImpl(newChild)) 12569 return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildrenArray( 12570 returnFiber, 12571 currentFirstChild, 12572 newChild, 12573 lanes 12574 ), currentDebugInfo = prevDebugInfo, returnFiber; 12575 if (getIteratorFn(newChild)) { 12576 prevDebugInfo = pushDebugInfo(newChild._debugInfo); 12577 key = getIteratorFn(newChild); 12578 if ("function" !== typeof key) 12579 throw Error( 12580 "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." 12581 ); 12582 var newChildren = key.call(newChild); 12583 if (newChildren === newChild) { 12584 if (0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || "[object Generator]" !== Object.prototype.toString.call(newChildren)) 12585 didWarnAboutGenerators || console.error( 12586 "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items." 12587 ), didWarnAboutGenerators = true; 12588 } else 12589 newChild.entries !== key || didWarnAboutMaps || (console.error( 12590 "Using Maps as children is not supported. Use an array of keyed ReactElements instead." 12591 ), didWarnAboutMaps = true); 12592 returnFiber = reconcileChildrenIterator( 12593 returnFiber, 12594 currentFirstChild, 12595 newChildren, 12596 lanes 12597 ); 12598 currentDebugInfo = prevDebugInfo; 12599 return returnFiber; 12600 } 12601 if ("function" === typeof newChild.then) 12602 return prevDebugInfo = pushDebugInfo(newChild._debugInfo), returnFiber = reconcileChildFibersImpl( 12603 returnFiber, 12604 currentFirstChild, 12605 unwrapThenable(newChild), 12606 lanes 12607 ), currentDebugInfo = prevDebugInfo, returnFiber; 12608 if (newChild.$$typeof === REACT_CONTEXT_TYPE) 12609 return reconcileChildFibersImpl( 12610 returnFiber, 12611 currentFirstChild, 12612 readContextDuringReconciliation(returnFiber, newChild), 12613 lanes 12614 );
12615 throwOnInvalidObjectType(returnFiber, newChild); 12616 } 12617 if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild) 12618 return prevDebugInfo = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren( 12619 returnFiber, 12620 currentFirstChild.sibling 12621 ), lanes = useFiber(currentFirstChild, prevDebugInfo), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText( 12622 prevDebugInfo, 12623 returnFiber.mode, 12624 lanes 12625 ), lanes.return = returnFiber, lanes._debugOwner = returnFiber, lanes._debugTask = returnFiber._debugTask, lanes._debugInfo = currentDebugInfo, returnFiber = lanes), placeSingleChild(returnFiber); 12626 "function" === typeof newChild && warnOnFunctionType(returnFiber, newChild); 12627 "symbol" === typeof newChild && warnOnSymbolType(returnFiber, newChild); 12628 return deleteRemainingChildren(returnFiber, currentFirstChild); 12629 } 12630 return function(returnFiber, currentFirstChild, newChild, lanes) { 12631 var prevDebugInfo = currentDebugInfo; 12632 currentDebugInfo = null; 12633 try { 12634 thenableIndexCounter = 0; 12635 var firstChildFiber = reconcileChildFibersImpl( 12636 returnFiber, 12637 currentFirstChild, 12638 newChild, 12639 lanes 12640 ); 12641 thenableState = null; 12642 return firstChildFiber; 12643 } catch (x) { 12644 if (x === SuspenseException || x === SuspenseActionException) throw x; 12645 var fiber = createFiber(29, x, null, returnFiber.mode); 12646 fiber.lanes = lanes; 12647 fiber.return = returnFiber; 12648 var debugInfo = fiber._debugInfo = currentDebugInfo; 12649 fiber._debugOwner = returnFiber._debugOwner; 12650 fiber._debugTask = returnFiber._debugTask; 12651 if (null != debugInfo) { 12652 for (var i = debugInfo.length - 1; 0 <= i; i--) 12653 if ("string" === typeof debugInfo[i].stack) { 12654 fiber._debugOwner = debugInfo[i]; 12655 fiber._debugTask = debugInfo[i].debugTask; 12656 break; 12657 } 12658 } 12659 return fiber; 12660 } finally { 12661 currentDebugInfo = prevDebugInfo; 12662 } 12663 }; 12664 } 12665 function pushPrimaryTreeSuspenseHandler(handler) { 12666 var current2 = handler.alternate; 12667 push( 12668 suspenseStackCursor, 12669 suspenseStackCursor.current & SubtreeSuspenseContextMask, 12670 handler 12671 ); 12672 push(suspenseHandlerStackCursor, handler, handler); 12673 null === shellBoundary && (null === current2 || null !== currentTreeHiddenStackCursor.current ? shellBoundary = handler : null !== current2.memoizedState && (shellBoundary = handler)); 12674 } 12675 function pushOffscreenSuspenseHandler(fiber) { 12676 if (22 === fiber.tag) { 12677 if (push(suspenseStackCursor, suspenseStackCursor.current, fiber), push(suspenseHandlerStackCursor, fiber, fiber), null === shellBoundary) { 12678 var current2 = fiber.alternate; 12679 null !== current2 && null !== current2.memoizedState && (shellBoundary = fiber); 12680 } 12681 } else reuseSuspenseHandlerOnStack(fiber); 12682 } 12683 function reuseSuspenseHandlerOnStack(fiber) { 12684 push(suspenseStackCursor, suspenseStackCursor.current, fiber); 12685 push( 12686 suspenseHandlerStackCursor, 12687 suspenseHandlerStackCursor.current, 12688 fiber 12689 ); 12690 } 12691 function popSuspenseHandler(fiber) { 12692 pop(suspenseHandlerStackCursor, fiber); 12693 shellBoundary === fiber && (shellBoundary = null); 12694 pop(suspenseStackCursor, fiber); 12695 } 12696 function findFirstSuspended(row) { 12697 for (var node = row; null !== node; ) { 12698 if (13 === node.tag) { 12699 var state = node.memoizedState; 12700 if (null !== state && (state = state.dehydrated, null === state || state.data === SUSPENSE_PENDING_START_DATA || isSuspenseInstanceFallback(state))) 12701 return node; 12702 } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { 12703 if (0 !== (node.flags & 128)) return node; 12704 } else if (null !== node.child) { 12705 node.child.return = node; 12706 node = node.child; 12707 continue; 12708 } 12709 if (node === row) break; 12710 for (; null === node.sibling; ) { 12711 if (null === node.return || node.return === row) return null; 12712 node = node.return; 12713 } 12714 node.sibling.return = node.return; 12715 node = node.sibling; 12716 } 12717 return null; 12718 }
12719 function warnOnInvalidCallback(callback) { 12720 if (null !== callback && "function" !== typeof callback) { 12721 var key = String(callback); 12722 didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), console.error( 12723 "Expected the last optional `callback` argument to be a function. Instead received: %s.", 12724 callback 12725 )); 12726 } 12727 } 12728 function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) { 12729 var prevState = workInProgress2.memoizedState, partialState = getDerivedStateFromProps(nextProps, prevState); 12730 if (workInProgress2.mode & StrictLegacyMode) { 12731 setIsStrictModeForDevtools(true); 12732 try { 12733 partialState = getDerivedStateFromProps(nextProps, prevState); 12734 } finally { 12735 setIsStrictModeForDevtools(false); 12736 } 12737 } 12738 void 0 === partialState && (ctor = getComponentNameFromType(ctor) || "Component", didWarnAboutUndefinedDerivedState.has(ctor) || (didWarnAboutUndefinedDerivedState.add(ctor), console.error( 12739 "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", 12740 ctor 12741 ))); 12742 prevState = null === partialState || void 0 === partialState ? prevState : assign({}, prevState, partialState); 12743 workInProgress2.memoizedState = prevState; 12744 0 === workInProgress2.lanes && (workInProgress2.updateQueue.baseState = prevState); 12745 } 12746 function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) { 12747 var instance = workInProgress2.stateNode; 12748 if ("function" === typeof instance.shouldComponentUpdate) { 12749 oldProps = instance.shouldComponentUpdate( 12750 newProps, 12751 newState, 12752 nextContext 12753 ); 12754 if (workInProgress2.mode & StrictLegacyMode) { 12755 setIsStrictModeForDevtools(true); 12756 try { 12757 oldProps = instance.shouldComponentUpdate( 12758 newProps, 12759 newState, 12760 nextContext 12761 ); 12762 } finally { 12763 setIsStrictModeForDevtools(false); 12764 } 12765 } 12766 void 0 === oldProps && console.error( 12767 "%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", 12768 getComponentNameFromType(ctor) || "Component" 12769 ); 12770 return oldProps; 12771 } 12772 return ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : true; 12773 } 12774 function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) { 12775 var oldState = instance.state; 12776 "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext); 12777 "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); 12778 instance.state !== oldState && (workInProgress2 = getComponentNameFromFiber(workInProgress2) || "Component", didWarnAboutStateAssignmentForComponent.has(workInProgress2) || (didWarnAboutStateAssignmentForComponent.add(workInProgress2), console.error( 12779 "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", 12780 workInProgress2 12781 )), classComponentUpdater.enqueueReplaceState( 12782 instance, 12783 instance.state, 12784 null 12785 )); 12786 } 12787 function resolveClassComponentProps(Component, baseProps) { 12788 var newProps = baseProps; 12789 if ("ref" in baseProps) { 12790 newProps = {}; 12791 for (var propName in baseProps) 12792 "ref" !== propName && (newProps[propName] = baseProps[propName]); 12793 } 12794 if (Component = Component.defaultProps) { 12795 newProps === baseProps && (newProps = assign({}, newProps)); 12796 for (var _propName in Component) 12797 void 0 === newProps[_propName] && (newProps[_propName] = Component[_propName]); 12798 } 12799 return newProps; 12800 } 12801 function defaultOnUncaughtError(error) { 12802 reportGlobalError(error); 12803 console.warn( 12804 "%s\n\n%s\n", 12805 componentName ? "An error occurred in the <" + componentName + "> component." : "An error occurred in one of your React components.", 12806 "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." 12807 ); 12808 } 12809 function defaultOnCaughtError(error) { 12810 var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component." : "The above error occurred in one of your React components.", recreateMessage = "React will try to recreate this component tree from scratch using the error boundary you provided, " + ((errorBoundaryName || "Anonymous") + "."); 12811 if ("object" === typeof error && null !== error && "string" === typeof error.environmentName) { 12812 var JSCompiler_inline_result = error.environmentName; 12813 error = [ 12814 "%o\n\n%s\n\n%s\n", 12815 error, 12816 componentNameMessage, 12817 recreateMessage 12818 ].slice(0); 12819 "string" === typeof error[0] ? error.splice( 12820 0, 12821 1, 12822 badgeFormat + error[0], 12823 badgeStyle, 12824 pad + JSCompiler_inline_result + pad, 12825 resetStyle 12826 ) : error.splice( 12827 0, 12828 0, 12829 badgeFormat, 12830 badgeStyle, 12831 pad + JSCompiler_inline_result + pad, 12832 resetStyle 12833 ); 12834 error.unshift(console); 12835 JSCompiler_inline_result = bind.apply(console.error, error); 12836 JSCompiler_inline_result(); 12837 } else 12838 console.error( 12839 "%o\n\n%s\n\n%s\n", 12840 error, 12841 componentNameMessage, 12842 recreateMessage 12843 ); 12844 } 12845 function defaultOnRecoverableError(error) { 12846 reportGlobalError(error); 12847 } 12848 function logUncaughtError(root2, errorInfo) { 12849 try { 12850 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 12851 errorBoundaryName = null; 12852 var error = errorInfo.value; 12853 if (null !== ReactSharedInternals.actQueue) 12854 ReactSharedInternals.thrownErrors.push(error); 12855 else { 12856 var onUncaughtError = root2.onUncaughtError; 12857 onUncaughtError(error, { componentStack: errorInfo.stack }); 12858 } 12859 } catch (e$5) { 12860 setTimeout(function() { 12861 throw e$5; 12862 }); 12863 } 12864 } 12865 function logCaughtError(root2, boundary, errorInfo) { 12866 try { 12867 componentName = errorInfo.source ? getComponentNameFromFiber(errorInfo.source) : null; 12868 errorBoundaryName = getComponentNameFromFiber(boundary); 12869 var onCaughtError = root2.onCaughtError; 12870 onCaughtError(errorInfo.value, { 12871 componentStack: errorInfo.stack,
12872 errorBoundary: 1 === boundary.tag ? boundary.stateNode : null 12873 }); 12874 } catch (e$6) { 12875 setTimeout(function() { 12876 throw e$6; 12877 }); 12878 } 12879 } 12880 function createRootErrorUpdate(root2, errorInfo, lane) { 12881 lane = createUpdate(lane); 12882 lane.tag = CaptureUpdate; 12883 lane.payload = { element: null }; 12884 lane.callback = function() { 12885 runWithFiberInDEV(errorInfo.source, logUncaughtError, root2, errorInfo); 12886 }; 12887 return lane; 12888 } 12889 function createClassErrorUpdate(lane) { 12890 lane = createUpdate(lane); 12891 lane.tag = CaptureUpdate; 12892 return lane; 12893 } 12894 function initializeClassErrorUpdate(update, root2, fiber, errorInfo) { 12895 var getDerivedStateFromError = fiber.type.getDerivedStateFromError; 12896 if ("function" === typeof getDerivedStateFromError) { 12897 var error = errorInfo.value; 12898 update.payload = function() { 12899 return getDerivedStateFromError(error); 12900 }; 12901 update.callback = function() { 12902 markFailedErrorBoundaryForHotReloading(fiber); 12903 runWithFiberInDEV( 12904 errorInfo.source, 12905 logCaughtError, 12906 root2, 12907 fiber, 12908 errorInfo 12909 ); 12910 }; 12911 } 12912 var inst = fiber.stateNode; 12913 null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() { 12914 markFailedErrorBoundaryForHotReloading(fiber); 12915 runWithFiberInDEV( 12916 errorInfo.source, 12917 logCaughtError, 12918 root2, 12919 fiber, 12920 errorInfo 12921 ); 12922 "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this)); 12923 callComponentDidCatchInDEV(this, errorInfo); 12924 "function" === typeof getDerivedStateFromError || 0 === (fiber.lanes & 2) && console.error( 12925 "%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", 12926 getComponentNameFromFiber(fiber) || "Unknown" 12927 ); 12928 }); 12929 } 12930 function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes) { 12931 sourceFiber.flags |= 32768; 12932 isDevToolsPresent && restorePendingUpdaters(root2, rootRenderLanes); 12933 if (null !== value && "object" === typeof value && "function" === typeof value.then) { 12934 returnFiber = sourceFiber.alternate; 12935 null !== returnFiber && propagateParentContextChanges( 12936 returnFiber, 12937 sourceFiber, 12938 rootRenderLanes, 12939 true 12940 ); 12941 isHydrating && (didSuspendOrErrorDEV = true); 12942 sourceFiber = suspenseHandlerStackCursor.current; 12943 if (null !== sourceFiber) { 12944 switch (sourceFiber.tag) { 12945 case 13: 12946 return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootSuspended), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), false; 12947 case 22: 12948 return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = { 12949 transitions: null, 12950 markerInstances: null, 12951 retryQueue: /* @__PURE__ */ new Set([value]) 12952 }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRen
12952derLanes)), false; 12953 } 12954 throw Error( 12955 "Unexpected Suspense handler tag (" + sourceFiber.tag + "). This is a bug in React." 12956 ); 12957 } 12958 attachPingListener(root2, value, rootRenderLanes); 12959 renderDidSuspendDelayIfPossible(); 12960 return false; 12961 } 12962 if (isHydrating) 12963 return didSuspendOrErrorDEV = true, returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && queueHydrationError( 12964 createCapturedValueAtFiber( 12965 Error( 12966 "There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.", 12967 { cause: value } 12968 ), 12969 sourceFiber 12970 ) 12971 )) : (value !== HydrationMismatchException && queueHydrationError( 12972 createCapturedValueAtFiber( 12973 Error( 12974 "There was an error while hydrating but React was able to recover by instead client rendering the entire root.", 12975 { cause: value } 12976 ), 12977 sourceFiber 12978 ) 12979 ), root2 = root2.current.alternate, root2.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root2.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate( 12980 root2.stateNode, 12981 value, 12982 rootRenderLanes 12983 ), enqueueCapturedUpdate(root2, rootRenderLanes), workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored)), false; 12984 var error = createCapturedValueAtFiber( 12985 Error( 12986 "There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.", 12987 { cause: value } 12988 ), 12989 sourceFiber 12990 ); 12991 null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [error] : workInProgressRootConcurrentErrors.push(error); 12992 workInProgressRootExitStatus !== RootSuspendedWithDelay && (workInProgressRootExitStatus = RootErrored); 12993 if (null === returnFiber) return true; 12994 value = createCapturedValueAtFiber(value, sourceFiber); 12995 sourceFiber = returnFiber; 12996 do { 12997 switch (sourceFiber.tag) { 12998 case 3: 12999 return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate( 13000 sourceFiber.stateNode, 13001 value, 13002 root2 13003 ), enqueueCapturedUpdate(sourceFiber, root2), false; 13004 case 1: 13005 if (returnFiber = sourceFiber.type, error = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== error && "function" === typeof error.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(error)))) 13006 return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate( 13007 rootRenderLanes, 13008 root2, 13009 sourceFiber, 13010 value 13011 ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), false; 13012 } 13013 sourceFiber = sourceFiber.return; 13014 } while (null !== sourceFiber); 13015 return false; 13016 } 13017 function reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2) { 13018 workInProgress2.child = null === current2 ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers( 13019 workInProgress2, 13020 current2.child, 13021 nextChildren, 13022 renderLanes2 13023 ); 13024 } 13025 function updateForwardRef(current2, workInProgress2, Component, nextProps, renderLanes2) { 13026 Component = Component.render; 13027 var ref = workInProgress2.ref; 13028 if ("ref" in nextProps) { 13029 var propsWithoutRef = {}; 13030 for (var key in nextProps) 13031 "ref" !== key && (propsWithoutRef[key] = nextProps[key]); 13032 } else propsWithoutRef = nextProps; 13033 prepareToReadContext(workInProgress2); 13034 markComponentRenderStarted(workInProgress2); 13035 nextProps = renderWithHooks( 13036 current2, 13037 workInProgress2, 13038 Component, 13039 propsWithoutRef, 13040 ref, 13041 renderLanes2 13042 ); 13043 key = checkDidRenderIdHook(); 13044 markComponentRenderStopped(); 13045 if (null !== current2 && !didReceiveUpdate) 13046 return bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); 13047 isHydrating && key && pushMaterializedTreeId(workInProgress2); 13048 workInProgress2.flags |= 1; 13049 reconcileChildren(current2, workInProgress2, nextProps, renderLanes2); 13050 return workInProgress2.child; 13051 } 13052 function updateMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { 13053 if (null === current2) { 13054 var type = Component.type; 13055 if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) 13056 return Component = resolveFunctionForHotReloading(type), workInProgress2.tag = 15, workInProgress2.type = Component, validateFunctionComponentInDev(workInProgress2, type), updateSimpleMemoComponent( 13057 current2, 13058 workInProgress2, 13059 Component, 13060 nextProps, 13061 renderLanes2 13062 ); 13063 current2 = createFiberFromTypeAndProps( 13064 Component.type, 13065 null, 13066 nextProps, 13067 workInProgress2, 13068 workInProgress2.mode, 13069 renderLanes2 13070 ); 13071 current2.ref = workInProgress2.ref;
13072 current2.return = workInProgress2; 13073 return workInProgress2.child = current2; 13074 } 13075 type = current2.child; 13076 if (!checkScheduledUpdateOrContext(current2, renderLanes2)) { 13077 var prevProps = type.memoizedProps; 13078 Component = Component.compare; 13079 Component = null !== Component ? Component : shallowEqual; 13080 if (Component(prevProps, nextProps) && current2.ref === workInProgress2.ref) 13081 return bailoutOnAlreadyFinishedWork( 13082 current2, 13083 workInProgress2, 13084 renderLanes2 13085 ); 13086 } 13087 workInProgress2.flags |= 1; 13088 current2 = createWorkInProgress(type, nextProps); 13089 current2.ref = workInProgress2.ref; 13090 current2.return = workInProgress2; 13091 return workInProgress2.child = current2; 13092 } 13093 function updateSimpleMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { 13094 if (null !== current2) { 13095 var prevProps = current2.memoizedProps; 13096 if (shallowEqual(prevProps, nextProps) && current2.ref === workInProgress2.ref && workInProgress2.type === current2.type) 13097 if (didReceiveUpdate = false, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current2, renderLanes2)) 13098 0 !== (current2.flags & 131072) && (didReceiveUpdate = true); 13099 else 13100 return workInProgress2.lanes = current2.lanes, bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); 13101 } 13102 return updateFunctionComponent( 13103 current2, 13104 workInProgress2, 13105 Component, 13106 nextProps, 13107 renderLanes2 13108 ); 13109 } 13110 function updateOffscreenComponent(current2, workInProgress2, renderLanes2) { 13111 var nextProps = workInProgress2.pendingProps, nextChildren = nextProps.children, prevState = null !== current2 ? current2.memoizedState : null; 13112 if ("hidden" === nextProps.mode) { 13113 if (0 !== (workInProgress2.flags & 128)) { 13114 nextProps = null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2; 13115 if (null !== current2) { 13116 nextChildren = workInProgress2.child = current2.child; 13117 for (prevState = 0; null !== nextChildren; ) 13118 prevState = prevState | nextChildren.lanes | nextChildren.childLanes, nextChildren = nextChildren.sibling; 13119 workInProgress2.childLanes = prevState & ~nextProps; 13120 } else workInProgress2.childLanes = 0, workInProgress2.child = null; 13121 return deferHiddenOffscreenComponent( 13122 current2, 13123 workInProgress2, 13124 nextProps, 13125 renderLanes2 13126 ); 13127 } 13128 if (0 !== (renderLanes2 & 536870912)) 13129 workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, null !== current2 && pushTransition( 13130 workInProgress2, 13131 null !== prevState ? prevState.cachePool : null 13132 ), null !== prevState ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(workInProgress2), pushOffscreenSuspenseHandler(workInProgress2); 13133 else 13134 return workInProgress2.lanes = workInProgress2.childLanes = 536870912, deferHiddenOffscreenComponent( 13135 current2, 13136 workInProgress2, 13137 null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2, 13138 renderLanes2 13139 ); 13140 } else 13141 null !== prevState ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.memoizedState = null) : (null !== current2 && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(workInProgress2), reuseSuspenseHandlerOnStack(workInProgress2)); 13142 reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); 13143 return workInProgress2.child; 13144 } 13145 function deferHiddenOffscreenComponent(current2, workInProgress2, nextBaseLanes, renderLanes2) { 13146 var JSCompiler_inline_result = peekCacheFromPool(); 13147 JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { 13148 parent: CacheContext._currentValue, 13149 pool: JSCompiler_inline_result 13150 }; 13151 workInProgress2.memoizedState = { 13152 baseLanes: nextBaseLanes, 13153 cachePool: JSCompiler_inline_result 13154 }; 13155 null !== current2 && pushTransition(workInProgress2, null); 13156 reuseHiddenContextOnStack(workInProgress2); 13157 pushOffscreenSuspenseHandler(workInProgress2); 13158 null !== current2 && propagateParentContextChanges(current2, workInProgress2, renderLanes2, true); 13159 return null; 13160 } 13161 function markRef(current2, workInProgress2) { 13162 var ref = workInProgress2.ref; 13163 if (null === ref) 13164 null !== current2 && null !== current2.ref && (workInProgress2.flags |= 4194816); 13165 else { 13166 if ("function" !== typeof ref && "object" !== typeof ref) 13167 throw Error( 13168 "Expected ref to be a function, an object returned by React.createRef(), or undefined/null." 13169 ); 13170 if (null === current2 || current2.ref !== ref) 13171 workInProgress2.flags |= 4194816; 13172 } 13173 } 13174 function updateFunctionComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { 13175 if (Component.prototype && "function" === typeof Component.prototype.render) { 13176 var componentName2 = getComponentNameFromType(Component) || "Unknown"; 13177 didWarnAboutBadClass[componentName2] || (console.error( 13178 "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", 13179 componentName2, 13180 componentName2 13181 ), didWarnAboutBadClass[componentName2] = true); 13182 } 13183 workInProgress2.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning( 13184 workInProgress2, 13185 null 13186 ); 13187 null === current2 && (validateFunctionComponentInDev(workInProgress2, workInProgress2.type), Component.contextTypes && (componentName2 = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypes[componentName2] || (didWarnAboutContextTypes[componentName2] = true, console.error( 13188 "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", 13189 componentName2 13190 )))); 13191 prepareToReadContext(workInProgress2); 13192 markComponentRenderStarted(workInProgress2); 13193 Component = renderWithHooks( 13194 current2, 13195 workInProgress2, 13196 Component, 13197 nextProps, 13198 void 0, 13199 renderLanes2 13200 ); 13201 nextProps = checkDidRenderIdHook(); 13202 markComponentRenderStopped(); 13203 if (null !== current2 && !didReceiveUpdate) 13204 return bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); 13205 isHydrating && nextProps && pushMaterializedTreeId(workInProgress2); 13206 workInProgress2.flags |= 1; 13207 reconcileChildren(current2, workInProgress2, Component, renderLanes2); 13208 return workInProgress2.child; 13209 } 13210 function replayFunctionComponent(current2, workInProgress2, nextProps, Component, secondArg, renderLanes2) { 13211 prepareToReadContext(workInProgress2); 13212 markComponentRenderStarted(workInProgress2); 13213 hookTypesUpdateIndexDev = -1; 13214 ignorePreviousDependencies = null !== current2 && current2.type !== workInProgress2.type; 13215 workInProgress2.updateQueue = null; 13216 nextProps = renderWithHooksAgain( 13217 workInProgress2, 13218 Component, 13219 nextProps, 13220 secondArg 13221 ); 13222 finishRenderingHooks(current2, workInProgress2); 13223 Component = checkDidRenderIdHook(); 13224 markComponentRenderStopped(); 13225 if (null !== current2 && !didReceiveUpdate) 13226 return bailoutHooks(current2, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); 13227 isHydrating && Component && pushMaterializedTreeId(workInProgress2); 13228 workInProgress2.flags |= 1; 13229 reconcileChildren(current2, workInProgress2, nextProps, renderLanes2); 13230 return workInProgress2.child; 13231 } 13232 function updateClassComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { 13233 switch (shouldErrorImpl(workInProgress2)) { 13234 case false: 13235 var _instance = workInProgress2.stateNode, state = new workInProgress2.type( 13236 workInProgress2.memoizedProps, 13237 _instance.context 13238 ).state; 13239 _instance.updater.enqueueSetState(_instance, state, null); 13240 break; 13241 case true: 13242 workInProgress2.flags |= 128; 13243 workInProgress2.flags |= 65536; 13244 _instance = Error("Simulated error coming from DevTools"); 13245 var lane = renderLanes2 & -renderLanes2; 13246 workInProgress2.lanes |= lane; 13247 state = workInProgressRoot; 13248 if (null === state) 13249 throw Error( 13250 "Expected a work-in-progress root. This is a bug in React. Please file an issue." 13251 ); 13252 lane = createClassErrorUpdate(lane); 13253 initializeClassErrorUpdate( 13254 lane, 13255 state, 13256 workInProgress2, 13257 createCapturedValueAtFiber(_instance, workInProgress2) 13258 ); 13259 enqueueCapturedUpdate(workInProgress2, lane); 13260 } 13261 prepareToReadContext(workInProgress2); 13262 if (null === workInProgress2.stateNode) { 13263 state = emptyContextObject; 13264 _instance = Component.contextType; 13265 "contextType" in Component && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component) && (didWarnAboutInvalidateContextType.add(Component), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error(
13266 "%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", 13267 getComponentNameFromType(Component) || "Component", 13268 lane 13269 )); 13270 "object" === typeof _instance && null !== _instance && (state = readContext(_instance)); 13271 _instance = new Component(nextProps, state); 13272 if (workInProgress2.mode & StrictLegacyMode) { 13273 setIsStrictModeForDevtools(true); 13274 try { 13275 _instance = new Component(nextProps, state); 13276 } finally { 13277 setIsStrictModeForDevtools(false); 13278 } 13279 } 13280 state = workInProgress2.memoizedState = null !== _instance.state && void 0 !== _instance.state ? _instance.state : null; 13281 _instance.updater = classComponentUpdater; 13282 workInProgress2.stateNode = _instance; 13283 _instance._reactInternals = workInProgress2; 13284 _instance._reactInternalInstance = fakeInternalInstance; 13285 "function" === typeof Component.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error( 13286 "`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", 13287 state, 13288 null === _instance.state ? "null" : "undefined", 13289 state 13290 ))); 13291 if ("function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) { 13292 var foundWillUpdateName = lane = state = null; 13293 "function" === typeof _instance.componentWillMount && true !== _instance.componentWillMount.__suppressDeprecationWarning ? state = "componentWillMount" : "function" === typeof _instance.UNSAFE_componentWillMount && (state = "UNSAFE_componentWillMount"); 13294 "function" === typeof _instance.componentWillReceiveProps && true !== _instance.componentWillReceiveProps.__suppressDeprecationWarning ? lane = "componentWillReceiveProps" : "function" === typeof _instance.UNSAFE_componentWillReceiveProps && (lane = "UNSAFE_componentWillReceiveProps"); 13295 "function" === typeof _instance.componentWillUpdate && true !== _instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" === typeof _instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"); 13296 if (null !== state || null !== lane || null !== foundWillUpdateName) { 13297 _instance = getComponentNameFromType(Component) || "Component"; 13298 var newApiName = "function" === typeof Component.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; 13299 didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error( 13300 "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", 13301 _instance, 13302 newApiName, 13303 null !== state ? "\n " + state : "", 13304 null !== lane ? "\n " + lane : "", 13305 null !== foundWillUpdateName ? "\n " + foundWillUpdateName : "" 13306 )); 13307 } 13308 } 13309 _instance = workInProgress2.stateNode; 13310 state = getComponentNameFromType(Component) || "Component"; 13311 _instance.render || (Component.prototype && "function" === typeof Component.prototype.render ? console.error( 13312 "No `render` method found on the %s instance: did you accidentally return an object from the constructor?", 13313 state 13314 ) : console.error( 13315 "No `render` method found on the %s instance: you may have forgotten to define `render`.", 13316 state 13317 )); 13318 !_instance.getInitialState || _instance.getInitialState.isReactClassApproved || _instance.state || console.error( 13319 "getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", 13320 state 13321 ); 13322 _instance.getDefaultProps && !_instance.getDefaultProps.isReactClassApproved && console.error( 13323 "getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", 13324 state 13325 ); 13326 _instance.contextType && console.error( 13327 "contextType was defined as an instance property on %s. Use a static property to define contextType instead.", 13328 state 13329 ); 13330 Component.childContextTypes && !didWarnAboutChildContextTypes.has(Component) && (didWarnAboutChildContextTypes.add(Component), console.error( 13331 "%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", 13332 state 13333 )); 13334 Component.contextTypes && !didWarnAboutContextTypes$1.has(Component) && (didWarnAboutContextTypes$1.add(Component), console.error( 13335 "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", 13336 state 13337 )); 13338 "function" === typeof _instance.componentShouldUpdate && console.error( 13339 "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", 13340 state 13341 ); 13342 Component.prototype && Component.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error( 13343 "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", 13344 getComponentNameFromType(Component) || "A pure component" 13345 ); 13346 "function" === typeof _instance.componentDidUnmount && console.error( 13347 "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", 13348 state 13349 ); 13350 "function" === typeof _instance.componentDidReceiveProps && console.error( 13351 "%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", 13352 state 13353 ); 13354 "function" === typeof _instance.componentWillRecieveProps && console.error( 13355 "%s has a method called componentWillRecieveProps(). Did
13355you mean componentWillReceiveProps()?", 13356 state 13357 ); 13358 "function" === typeof _instance.UNSAFE_componentWillRecieveProps && console.error( 13359 "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", 13360 state 13361 ); 13362 lane = _instance.props !== nextProps; 13363 void 0 !== _instance.props && lane && console.error( 13364 "When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", 13365 state 13366 ); 13367 _instance.defaultProps && console.error( 13368 "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", 13369 state, 13370 state 13371 ); 13372 "function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component), console.error( 13373 "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", 13374 getComponentNameFromType(Component) 13375 )); 13376 "function" === typeof _instance.getDerivedStateFromProps && console.error( 13377 "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", 13378 state 13379 ); 13380 "function" === typeof _instance.getDerivedStateFromError && console.error( 13381 "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", 13382 state 13383 ); 13384 "function" === typeof Component.getSnapshotBeforeUpdate && console.error( 13385 "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", 13386 state 13387 ); 13388 (lane = _instance.state) && ("object" !== typeof lane || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state); 13389 "function" === typeof _instance.getChildContext && "object" !== typeof Component.childContextTypes && console.error( 13390 "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", 13391 state 13392 ); 13393 _instance = workInProgress2.stateNode; 13394 _instance.props = nextProps; 13395 _instance.state = workInProgress2.memoizedState; 13396 _instance.refs = {}; 13397 initializeUpdateQueue(workInProgress2); 13398 state = Component.contextType; 13399 _instance.context = "object" === typeof state && null !== state ? readContext(state) : emptyContextObject; 13400 _instance.state === nextProps && (state = getComponentNameFromType(Component) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error( 13401 "%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", 13402 state 13403 ))); 13404 workInProgress2.mode & StrictLegacyMode && ReactStrictModeWarnings.recordLegacyContextWarning( 13405 workInProgress2, 13406 _instance 13407 ); 13408 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings( 13409 workInProgress2, 13410 _instance 13411 ); 13412 _instance.state = workInProgress2.memoizedState; 13413 state = Component.getDerivedStateFromProps; 13414 "function" === typeof state && (applyDerivedStateFromProps( 13415 workInProgress2, 13416 Component, 13417 state, 13418 nextProps 13419 ), _instance.state = workInProgress2.memoizedState); 13420 "function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error( 13421 "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", 13422 getComponentNameFromFiber(workInProgress2) || "Component" 13423 ), classComponentUpdater.enqueueReplaceState( 13424 _instance, 13425 _instance.state, 13426 null 13427 )), processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress2.memoizedState); 13428 "function" === typeof _instance.componentDidMount && (workInProgress2.flags |= 4194308); 13429 (workInProgress2.mode & StrictEffectsMode) !== NoMode && (workInProgress2.flags |= 134217728); 13430 _instance = true; 13431 } else if (null === current2) { 13432 _instance = workInProgress2.stateNode; 13433 var unresolvedOldProps = workInProgress2.memoizedProps;
13434 lane = resolveClassComponentProps(Component, unresolvedOldProps); 13435 _instance.props = lane; 13436 var oldContext = _instance.context; 13437 foundWillUpdateName = Component.contextType; 13438 state = emptyContextObject; 13439 "object" === typeof foundWillUpdateName && null !== foundWillUpdateName && (state = readContext(foundWillUpdateName)); 13440 newApiName = Component.getDerivedStateFromProps; 13441 foundWillUpdateName = "function" === typeof newApiName || "function" === typeof _instance.getSnapshotBeforeUpdate; 13442 unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps; 13443 foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps( 13444 workInProgress2, 13445 _instance, 13446 nextProps, 13447 state 13448 ); 13449 hasForceUpdate = false; 13450 var oldState = workInProgress2.memoizedState; 13451 _instance.state = oldState; 13452 processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2); 13453 suspendIfUpdateReadFromEntangledAsyncAction(); 13454 oldContext = workInProgress2.memoizedState; 13455 unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps( 13456 workInProgress2, 13457 Component, 13458 newApiName, 13459 nextProps 13460 ), oldContext = workInProgress2.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate( 13461 workInProgress2, 13462 Component, 13463 lane, 13464 nextProps, 13465 oldState, 13466 oldContext, 13467 state 13468 )) ? (foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || ("function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount()), "function" === typeof _instance.componentDidMount && (workInProgress2.flags |= 4194308), (workInProgress2.mode & StrictEffectsMode) !== NoMode && (workInProgress2.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress2.flags |= 4194308), (workInProgress2.mode & StrictEffectsMode) !== NoMode && (workInProgress2.flags |= 134217728), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : ("function" === typeof _instance.componentDidMount && (workInProgress2.flags |= 4194308), (workInProgress2.mode & StrictEffectsMode) !== NoMode && (workInProgress2.flags |= 134217728), _instance = false); 13469 } else { 13470 _instance = workInProgress2.stateNode; 13471 cloneUpdateQueue(current2, workInProgress2); 13472 state = workInProgress2.memoizedProps; 13473 foundWillUpdateName = resolveClassComponentProps(Component, state); 13474 _instance.props = foundWillUpdateName; 13475 newApiName = workInProgress2.pendingProps; 13476 oldState = _instance.context; 13477 oldContext = Component.contextType; 13478 lane = emptyContextObject; 13479 "object" === typeof oldContext && null !== oldContext && (lane = readContext(oldContext)); 13480 unresolvedOldProps = Component.getDerivedStateFromProps; 13481 (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof _instance.getSnapshotBeforeUpdate) || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps( 13482 workInProgress2, 13483 _instance, 13484 nextProps, 13485 lane 13486 ); 13487 hasForceUpdate = false; 13488 oldState = workInProgress2.memoizedState; 13489 _instance.state = oldState; 13490 processUpdateQueue(workInProgress2, nextProps, _instance, renderLanes2); 13491 suspendIfUpdateReadFromEntangledAsyncAction(); 13492 var newState = workInProgress2.memoizedState; 13493 state !== newApiName || oldState !== newState || hasForceUpdate || null !== current2 && null !== current2.depen
13493dencies && checkIfContextChanged(current2.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps( 13494 workInProgress2, 13495 Component, 13496 unresolvedOldProps, 13497 nextProps 13498 ), newState = workInProgress2.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate( 13499 workInProgress2, 13500 Component, 13501 foundWillUpdateName, 13502 nextProps, 13503 oldState, 13504 newState, 13505 lane 13506 ) || null !== current2 && null !== current2.dependencies && checkIfContextChanged(current2.dependencies)) ? (oldContext || "function" !== typeof _instance.UNSAFE_componentWillUpdate && "function" !== typeof _instance.componentWillUpdate || ("function" === typeof _instance.componentWillUpdate && _instance.componentWillUpdate(nextProps, newState, lane), "function" === typeof _instance.UNSAFE_componentWillUpdate && _instance.UNSAFE_componentWillUpdate( 13507 nextProps, 13508 newState, 13509 lane 13510 )), "function" === typeof _instance.componentDidUpdate && (workInProgress2.flags |= 4), "function" === typeof _instance.getSnapshotBeforeUpdate && (workInProgress2.flags |= 1024)) : ("function" !== typeof _instance.componentDidUpdate || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : ("function" !== typeof _instance.componentDidUpdate || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current2.memoizedProps && oldState === current2.memoizedState || (workInProgress2.flags |= 1024), _instance = false); 13511 } 13512 lane = _instance; 13513 markRef(current2, workInProgress2); 13514 state = 0 !== (workInProgress2.flags & 128); 13515 if (lane || state) { 13516 lane = workInProgress2.stateNode; 13517 setCurrentFiber(workInProgress2); 13518 if (state && "function" !== typeof Component.getDerivedStateFromError) 13519 Component = null, profilerStartTime = -1; 13520 else { 13521 markComponentRenderStarted(workInProgress2); 13522 Component = callRenderInDEV(lane); 13523 if (workInProgress2.mode & StrictLegacyMode) { 13524 setIsStrictModeForDevtools(true); 13525 try { 13526 callRenderInDEV(lane); 13527 } finally { 13528 setIsStrictModeForDevtools(false); 13529 } 13530 } 13531 markComponentRenderStopped(); 13532 } 13533 workInProgress2.flags |= 1; 13534 null !== current2 && state ? (workInProgress2.child = reconcileChildFibers( 13535 workInProgress2, 13536 current2.child, 13537 null, 13538 renderLanes2 13539 ), workInProgress2.child = reconcileChildFibers( 13540 workInProgress2, 13541 null, 13542 Component, 13543 renderLanes2 13544 )) : reconcileChildren(current2, workInProgress2, Component, renderLanes2); 13545 workInProgress2.memoizedState = lane.state; 13546 current2 = workInProgress2.child; 13547 } else 13548 current2 = bailoutOnAlreadyFinishedWork( 13549 current2, 13550 workInProgress2, 13551 renderLanes2 13552 ); 13553 renderLanes2 = workInProgress2.stateNode; 13554 _instance && renderLanes2.props !== nextProps && (didWarnAboutReassigningProps || console.error( 13555 "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", 13556 getComponentNameFromFiber(workInProgress2) || "a component" 13557 ), didWarnAboutReassigningProps = true); 13558 return current2; 13559 } 13560 function mountHostRootWithoutHydrating(current2, workInProgress2, nextChildren, renderLanes2) { 13561 resetHydrationState(); 13562 workInProgress2.flags |= 256; 13563 reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); 13564 return workInProgress2.child; 13565 } 13566 function validateFunctionComponentInDev(workInProgress2, Component) { 13567 Component && Component.childContextTypes && console.error( 13568 "childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", 13569 Component.displayName || Component.name || "Component" 13570 ); 13571 "function" === typeof Component.getDerivedStateFromProps && (workInProgress2 = getComponentNameFromType(Component) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] || (console.error( 13572 "%s: Function components do not support getDerivedStateFromProps.", 13573 workInProgress2 13574 ), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress2] = true)); 13575 "object" === typeof Component.contextType && null !== Component.contextType && (Component = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component] || (console.error( 13576 "%s: Function components do not support contextType.", 13577 Component 13578 ), didWarnAboutContextTypeOnFunctionComponent[Component] = true)); 13579 } 13580 function mountSuspenseOffscreenState(renderLanes2) { 13581 return { baseLanes: renderLanes2, cachePool: getSuspendedCache() }; 13582 } 13583 function getRemainingWorkInPrimaryTree(current2, primaryTreeDidDefer, renderLanes2) { 13584 current2 = null !== current2 ? current2.childLanes & ~renderLanes2 : 0; 13585 primaryTreeDidDefer && (current2 |= workInProgressDeferredLane); 13586 return current2; 13587 } 13588 function updateSuspenseComponent(current2, workInProgress2, renderLanes2) { 13589 var JSCompiler_object_inline_digest_2451; 13590 var JSCompiler_object_inline_stack_2452 = workInProgress2.pendingProps; 13591 shouldSuspendImpl(workInProgress2) && (workInProgress2.flags |= 128); 13592 var JSCompiler_object_inline_componentStack_2453 = false;
13593 var didSuspend = 0 !== (workInProgress2.flags & 128); 13594 (JSCompiler_object_inline_digest_2451 = didSuspend) || (JSCompiler_object_inline_digest_2451 = null !== current2 && null === current2.memoizedState ? false : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); 13595 JSCompiler_object_inline_digest_2451 && (JSCompiler_object_inline_componentStack_2453 = true, workInProgress2.flags &= -129); 13596 JSCompiler_object_inline_digest_2451 = 0 !== (workInProgress2.flags & 32); 13597 workInProgress2.flags &= -33; 13598 if (null === current2) { 13599 if (isHydrating) { 13600 JSCompiler_object_inline_componentStack_2453 ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(workInProgress2); 13601 if (isHydrating) { 13602 var JSCompiler_object_inline_message_2450 = nextHydratableInstance; 13603 var JSCompiler_temp; 13604 if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2450)) { 13605 c: { 13606 var instance = JSCompiler_object_inline_message_2450; 13607 for (JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; ) { 13608 if (!JSCompiler_temp) { 13609 JSCompiler_temp = null; 13610 break c; 13611 } 13612 instance = getNextHydratable(instance.nextSibling); 13613 if (null === instance) { 13614 JSCompiler_temp = null; 13615 break c; 13616 } 13617 } 13618 JSCompiler_temp = instance; 13619 } 13620 null !== JSCompiler_temp ? (warnIfNotHydrating(), workInProgress2.memoizedState = { 13621 dehydrated: JSCompiler_temp, 13622 treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null, 13623 retryLane: 536870912, 13624 hydrationErrors: null 13625 }, instance = createFiber(18, null, null, NoMode), instance.stateNode = JSCompiler_temp, instance.return = workInProgress2, workInProgress2.child = instance, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, JSCompiler_temp = true) : JSCompiler_temp = false; 13626 JSCompiler_temp = !JSCompiler_temp; 13627 } 13628 JSCompiler_temp && (warnNonHydratedInstance( 13629 workInProgress2, 13630 JSCompiler_object_inline_message_2450 13631 ), throwOnHydrationMismatch(workInProgress2)); 13632 } 13633 JSCompiler_object_inline_message_2450 = workInProgress2.memoizedState; 13634 if (null !== JSCompiler_object_inline_message_2450 && (JSCompiler_object_inline_message_2450 = JSCompiler_object_inline_message_2450.dehydrated, null !== JSCompiler_object_inline_message_2450)) 13635 return isSuspenseInstanceFallback(JSCompiler_object_inline_message_2450) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null; 13636 popSuspenseHandler(workInProgress2); 13637 } 13638 JSCompiler_object_inline_message_2450 = JSCompiler_object_inline_stack_2452.children; 13639 JSCompiler_object_inline_stack_2452 = JSCompiler_object_inline_stack_2452.fallback; 13640 if (JSCompiler_object_inline_componentStack_2453) 13641 return reuseSuspenseHandlerOnStack(workInProgress2), JSCompiler_object_inline_componentStack_2453 = workInProgress2.mode, JSCompiler_object_inline_message_2450 = mountWorkInProgressOffscreenFiber( 13642 { 13643 mode: "hidden", 13644 children: JSCompiler_object_inline_message_2450 13645 }, 13646 JSCompiler_object_inline_componentStack_2453 13647 ), JSCompiler_object_inline_stack_2452 = createFiberFromFragment( 13648 JSCompiler_object_inline_stack_2452, 13649 JSCompiler_object_inline_componentStack_2453, 13650 renderLanes2, 13651 null 13652 ), JSCompiler_object_inline_message_2450.return = workInProgress2, JSCompiler_object_inline_stack_2452.return = workInProgress2, JSCompiler_object_inline_message_2450.sibling = JSCompiler_object_inline_stack_2452, workInProgress2.child = JSCompiler_object_inline_message_2450, JSCompiler_object_inline_componentStack_2453 = workInProgress2.child, JSCompiler_object_inline_componentStack_2453.memoizedState = mountSuspenseOffscreenState(renderLanes2), JSCompiler_object_inline_componentStack_2453.childLanes = getRemainingWorkInPrimaryTree( 13653 current2, 13654 JSCompiler_object_inline_digest_2451, 13655 renderLanes2 13656 ), workInProgress2.memoizedState = SUSPENDED_MARKER, JSCompiler_object_inline_stack_2452; 13657 pushPrimaryTreeSuspenseHandler(workInProgress2); 13658 return mountSuspensePrimaryChildren( 13659 workInProgress2, 13660 JSCompiler_object_inline_message_2450 13661 ); 13662 } 13663 var prevState = current2.memoizedState; 13664 if (null !== prevState && (JSCompiler_object_inline_message_2450 = prevState.dehydrated, null !== JSCompiler_object_inline_message_2450)) { 13665 if (didSuspend) 13666 workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, workInProgress2 = retrySuspenseComponentWithoutHydrating( 13667 current2, 13668 workInProgress2, 13669 renderLanes2 13670 )) : null !== workInProgress2.memoizedState ? (reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.child = current2.child, workInProgress2.flags |= 128, workInProgress2 = null) : (reuseSuspenseHandlerOnStack(workInProgress2), JSCompiler_object_inline_componentStack_2453 = JSCompiler_object_inline_stack_2452.fallback, JSCompiler_object_inline_message_2450 = workInProgress2.mode, JSCompiler_object_inline_stack_2452 = mountWorkInProgressOffscreenFiber( 13671 { 13672 mode: "visible", 13673 children: JSCompiler_object_inline_stack_2452.children 13674 }, 13675 JSCompiler_object_inline_message_2450 13676 ), JSCompiler_object_inline_componentStack_2453 = createFiberFromFragment( 13677 JSCompiler_object_inline_componentStack_2453, 13678 JSCompiler_object_inline_message_2450, 13679 renderLanes2, 13680 null 13681 ), JSCompiler_object_inline_componentStack_2453.flags |= 2, JSCompiler_object_inline_stack_2452.return = w
13681orkInProgress2, JSCompiler_object_inline_componentStack_2453.return = workInProgress2, JSCompiler_object_inline_stack_2452.sibling = JSCompiler_object_inline_componentStack_2453, workInProgress2.child = JSCompiler_object_inline_stack_2452, reconcileChildFibers( 13682 workInProgress2, 13683 current2.child, 13684 null, 13685 renderLanes2 13686 ), JSCompiler_object_inline_stack_2452 = workInProgress2.child, JSCompiler_object_inline_stack_2452.memoizedState = mountSuspenseOffscreenState(renderLanes2), JSCompiler_object_inline_stack_2452.childLanes = getRemainingWorkInPrimaryTree( 13687 current2, 13688 JSCompiler_object_inline_digest_2451, 13689 renderLanes2 13690 ), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = JSCompiler_object_inline_componentStack_2453); 13691 else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isHydrating && console.error( 13692 "We should not be hydrating here. This is a bug in React. Please file a bug." 13693 ), isSuspenseInstanceFallback(JSCompiler_object_inline_message_2450)) { 13694 JSCompiler_object_inline_digest_2451 = JSCompiler_object_inline_message_2450.nextSibling && JSCompiler_object_inline_message_2450.nextSibling.dataset; 13695 if (JSCompiler_object_inline_digest_2451) { 13696 JSCompiler_temp = JSCompiler_object_inline_digest_2451.dgst; 13697 var message = JSCompiler_object_inline_digest_2451.msg; 13698 instance = JSCompiler_object_inline_digest_2451.stck; 13699 var componentStack = JSCompiler_object_inline_digest_2451.cstck; 13700 } 13701 JSCompiler_object_inline_message_2450 = message; 13702 JSCompiler_object_inline_digest_2451 = JSCompiler_temp; 13703 JSCompiler_object_inline_stack_2452 = instance; 13704 JSCompiler_temp = JSCompiler_object_inline_componentStack_2453 = componentStack; 13705 JSCompiler_object_inline_componentStack_2453 = JSCompiler_object_inline_message_2450 ? Error(JSCompiler_object_inline_message_2450) : Error( 13706 "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." 13707 ); 13708 JSCompiler_object_inline_componentStack_2453.stack = JSCompiler_object_inline_stack_2452 || ""; 13709 JSCompiler_object_inline_componentStack_2453.digest = JSCompiler_object_inline_digest_2451; 13710 JSCompiler_object_inline_digest_2451 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; 13711 JSCompiler_object_inline_stack_2452 = { 13712 value: JSCompiler_object_inline_componentStack_2453, 13713 source: null, 13714 stack: JSCompiler_object_inline_digest_2451 13715 }; 13716 "string" === typeof JSCompiler_object_inline_digest_2451 && CapturedStacks.set( 13717 JSCompiler_object_inline_componentStack_2453, 13718 JSCompiler_object_inline_stack_2452 13719 ); 13720 queueHydrationError(JSCompiler_object_inline_stack_2452); 13721 workInProgress2 = retrySuspenseComponentWithoutHydrating( 13722 current2, 13723 workInProgress2, 13724 renderLanes2 13725 ); 13726 } else if (didReceiveUpdate || propagateParentContextChanges( 13727 current2, 13728 workInProgress2, 13729 renderLanes2, 13730 false 13731 ), JSCompiler_object_inline_digest_2451 = 0 !== (renderLanes2 & current2.childLanes), didReceiveUpdate || JSCompiler_object_inline_digest_2451) { 13732 JSCompiler_object_inline_digest_2451 = workInProgressRoot; 13733 if (null !== JSCompiler_object_inline_digest_2451 && (JSCompiler_object_inline_stack_2452 = renderLanes2 & -renderLanes2, JSCompiler_object_inline_stack_2452 = 0 !== (JSCompiler_object_inline_stack_2452 & 42) ? 1 : getBumpedLaneForHydrationByLane( 13734 JSCompiler_object_inline_stack_2452 13735 ), JSCompiler_object_inline_stack_2452 = 0 !== (JSCompiler_object_inline_stack_2452 & (JSCompiler_object_inline_digest_2451.suspendedLanes | renderLanes2)) ? 0 : JSCompiler_object_inline_stack_2452, 0 !== JSCompiler_object_inline_stack_2452 && JSCompiler_object_inline_stack_2452 !== prevState.retryLane)) 13736 throw prevState.retryLane = JSCompiler_object_inline_stack_2452, enqueueConcurrentRenderForLane( 13737 current2, 13738 JSCompiler_object_inline_stack_2452 13739 ), scheduleUpdateOnFiber( 13740 JSCompiler_object_inline_digest_2451, 13741 current2, 13742 JSCompiler_object_inline_stack_2452 13743 ), SelectiveHydrationException; 13744 JSCompiler_object_inline_message_2450.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); 13745 workInProgress2 = retrySuspenseComponentWithoutHydrating( 13746 current2, 13747 workInProgress2, 13748 renderLanes2 13749 ); 13750 } else 13751 JSCompiler_object_inline_message_2450.data === SUSPENSE_PENDING_START_DATA ? (workInProgress2.flags |= 192, workInProgress2.child = current2.child, workInProgress2 = null) : (current2 = prevState.treeContext, nextHydratableInstance = getNextHydratable( 13752 JSCompiler_object_inline_message_2450.nextSibling 13753 ), hydrationParentFiber = workInProgress2, isHydrating = true, hydrationErrors = null, didSuspendOrErrorDEV = false, hydrationDiffRootDEV = null, rootOrSingletonContext = false, null !== current2 && (warnIfNotHydrating(), idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextId = current2.id, treeContextOverflow = current2.overflow, treeContextProvider = workInProgress2), workInProgress2 = mountSuspensePrimaryChildren( 13754 workInProgress2, 13755 JSCompiler_object_inline_stack_2452.children 13756 ), workInProgress2.flags |= 4096); 13757 return workInProgress2; 13758 } 13759 if (JSCompiler_object_inline_componentStack_2453) 13760 return reuseSuspenseHandlerOnStack(workInProgress2), JSCompiler_object_inline_componentStack_2453 = JSCompiler_object_inline_stack_2452.fallback, JSCompiler_object_inline_message_2450 = workInProgress2.mode, JSCompiler_temp = current2.child, instance = JSCompiler_temp.sibling, JSCompiler_object_inline_stack_2452 = createWorkInProgress( 13761 JSCompiler_temp, 13762 { 13763 mode: "hidden", 13764 children: JSCompiler_object_inline_stack_2452.children 13765 } 13766 ), JSCompiler_object_inline_stack_2452.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712, null !== instance ? JSCompiler_object_inline_componentStack_2453 = createWorkInProgress( 13767 instance, 13768 JSCompiler_object_inline_componentStack_2453 13769 ) : (JSCompiler_object_inline_componentStack_2453 = createFiberFromFragment( 13770 JSCompiler_object_inline_componentStack_2453, 13771 JSCompiler_object_inline_message_2450, 13772 renderLanes2, 13773 null 13774 ), JSCompiler_object_inline_componentStack_2453.flags |= 2), JSCompiler_object_inline_componentStack_2453.return = w
13774orkInProgress2, JSCompiler_object_inline_stack_2452.return = workInProgress2, JSCompiler_object_inline_stack_2452.sibling = JSCompiler_object_inline_componentStack_2453, workInProgress2.child = JSCompiler_object_inline_stack_2452, JSCompiler_object_inline_stack_2452 = JSCompiler_object_inline_componentStack_2453, JSCompiler_object_inline_componentStack_2453 = workInProgress2.child, JSCompiler_object_inline_message_2450 = current2.child.memoizedState, null === JSCompiler_object_inline_message_2450 ? JSCompiler_object_inline_message_2450 = mountSuspenseOffscreenState(renderLanes2) : (JSCompiler_temp = JSCompiler_object_inline_message_2450.cachePool, null !== JSCompiler_temp ? (instance = CacheContext._currentValue, JSCompiler_temp = JSCompiler_temp.parent !== instance ? { parent: instance, pool: instance } : JSCompiler_temp) : JSCompiler_temp = getSuspendedCache(), JSCompiler_object_inline_message_2450 = { 13775 baseLanes: JSCompiler_object_inline_message_2450.baseLanes | renderLanes2, 13776 cachePool: JSCompiler_temp 13777 }), JSCompiler_object_inline_componentStack_2453.memoizedState = JSCompiler_object_inline_message_2450, JSCompiler_object_inline_componentStack_2453.childLanes = getRemainingWorkInPrimaryTree( 13778 current2, 13779 JSCompiler_object_inline_digest_2451, 13780 renderLanes2 13781 ), workInProgress2.memoizedState = SUSPENDED_MARKER, JSCompiler_object_inline_stack_2452; 13782 pushPrimaryTreeSuspenseHandler(workInProgress2); 13783 renderLanes2 = current2.child; 13784 current2 = renderLanes2.sibling; 13785 renderLanes2 = createWorkInProgress(renderLanes2, { 13786 mode: "visible", 13787 children: JSCompiler_object_inline_stack_2452.children 13788 }); 13789 renderLanes2.return = workInProgress2; 13790 renderLanes2.sibling = null; 13791 null !== current2 && (JSCompiler_object_inline_digest_2451 = workInProgress2.deletions, null === JSCompiler_object_inline_digest_2451 ? (workInProgress2.deletions = [current2], workInProgress2.flags |= 16) : JSCompiler_object_inline_digest_2451.push(current2)); 13792 workInProgress2.child = renderLanes2; 13793 workInProgress2.memoizedState = null; 13794 return renderLanes2; 13795 } 13796 function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) { 13797 primaryChildren = mountWorkInProgressOffscreenFiber( 13798 { mode: "visible", children: primaryChildren }, 13799 workInProgress2.mode 13800 ); 13801 primaryChildren.return = workInProgress2; 13802 return workInProgress2.child = primaryChildren; 13803 } 13804 function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { 13805 offscreenProps = createFiber(22, offscreenProps, null, mode); 13806 offscreenProps.lanes = 0; 13807 offscreenProps.stateNode = { 13808 _visibility: OffscreenVisible, 13809 _pendingMarkers: null, 13810 _retryCache: null, 13811 _transitions: null 13812 }; 13813 return offscreenProps; 13814 } 13815 function retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2) { 13816 reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2); 13817 current2 = mountSuspensePrimaryChildren( 13818 workInProgress2, 13819 workInProgress2.pendingProps.children 13820 ); 13821 current2.flags |= 2; 13822 workInProgress2.memoizedState = null; 13823 return current2; 13824 } 13825 function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) { 13826 fiber.lanes |= renderLanes2; 13827 var alternate = fiber.alternate; 13828 null !== alternate && (alternate.lanes |= renderLanes2); 13829 scheduleContextWorkOnParentPath( 13830 fiber.return, 13831 renderLanes2, 13832 propagationRoot 13833 ); 13834 } 13835 function validateSuspenseListNestedChild(childSlot, index) { 13836 var isAnArray = isArrayImpl(childSlot); 13837 childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot); 13838 return isAnArray || childSlot ? (isAnArray = isAnArray ? "array" : "iterable", console.error( 13839 "A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>", 13840 isAnArray, 13841 index, 13842 isAnArray 13843 ), false) : true; 13844 } 13845 function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode) { 13846 var renderState = workInProgress2.memoizedState;
13847 null === renderState ? workInProgress2.memoizedState = { 13848 isBackwards, 13849 rendering: null, 13850 renderingStartTime: 0, 13851 last: lastContentRow, 13852 tail, 13853 tailMode 13854 } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode); 13855 } 13856 function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) { 13857 var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail; 13858 nextProps = nextProps.children; 13859 if (void 0 !== revealOrder && "forwards" !== revealOrder && "backwards" !== revealOrder && "together" !== revealOrder && !didWarnAboutRevealOrder[revealOrder]) 13860 if (didWarnAboutRevealOrder[revealOrder] = true, "string" === typeof revealOrder) 13861 switch (revealOrder.toLowerCase()) { 13862 case "together": 13863 case "forwards": 13864 case "backwards": 13865 console.error( 13866 '"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.', 13867 revealOrder, 13868 revealOrder.toLowerCase() 13869 ); 13870 break; 13871 case "forward": 13872 case "backward": 13873 console.error( 13874 '"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.', 13875 revealOrder, 13876 revealOrder.toLowerCase() 13877 ); 13878 break; 13879 default: 13880 console.error( 13881 '"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?', 13882 revealOrder 13883 ); 13884 } 13885 else 13886 console.error( 13887 '%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?', 13888 revealOrder 13889 ); 13890 void 0 === tailMode || didWarnAboutTailOptions[tailMode] || ("collapsed" !== tailMode && "hidden" !== tailMode ? (didWarnAboutTailOptions[tailMode] = true, console.error( 13891 '"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?', 13892 tailMode 13893 )) : "forwards" !== revealOrder && "backwards" !== revealOrder && (didWarnAboutTailOptions[tailMode] = true, console.error( 13894 '<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', 13895 tailMode 13896 ))); 13897 a: if (("forwards" === revealOrder || "backwards" === revealOrder) && void 0 !== nextProps && null !== nextProps && false !== nextProps) 13898 if (isArrayImpl(nextProps)) 13899 for (var i = 0; i < nextProps.length; i++) { 13900 if (!validateSuspenseListNestedChild(nextProps[i], i)) break a; 13901 } 13902 else if (i = getIteratorFn(nextProps), "function" === typeof i) { 13903 if (i = i.call(nextProps)) 13904 for (var step = i.next(), _i = 0; !step.done; step = i.next()) { 13905 if (!validateSuspenseListNestedChild(step.value, _i)) break a; 13906 _i++; 13907 } 13908 } else 13909 console.error( 13910 'A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', 13911 revealOrder 13912 ); 13913 reconcileChildren(current2, workInProgress2, nextProps, renderLanes2); 13914 nextProps = suspenseStackCursor.current; 13915 if (0 !== (nextProps & ForceSuspenseFallback)) 13916 nextProps = nextProps & SubtreeSuspenseContextMask | ForceSuspenseFallback, workInProgress2.flags |= 128; 13917 else { 13918 if (null !== current2 && 0 !== (current2.flags & 128)) 13919 a: for (current2 = workInProgress2.child; null !== current2; ) { 13920 if (13 === current2.tag) 13921 null !== current2.memoizedState && scheduleSuspenseWorkOnFiber( 13922 current2, 13923 renderLanes2, 13924 workInProgress2 13925 ); 13926 else if (19 === current2.tag) 13927 scheduleSuspenseWorkOnFiber(current2, renderLanes2, workInProgress2); 13928 else if (null !== current2.child) { 13929 current2.child.return = current2; 13930 current2 = current2.child; 13931 continue; 13932 } 13933 if (current2 === workInProgress2) break a; 13934 for (; null === current2.sibling; ) { 13935 if (null === current2.return || current2.return === workInProgress2) 13936 break a; 13937 current2 = current2.return; 13938 } 13939 current2.sibling.return = current2.return; 13940 current2 = current2.sibling; 13941 } 13942 nextProps &= SubtreeSuspenseContextMask; 13943 } 13944 push(suspenseStackCursor, nextProps, workInProgress2); 13945 switch (revealOrder) { 13946 case "forwards": 13947 renderLanes2 = workInProgress2.child; 13948 for (revealOrder = null; null !== renderLanes2; ) 13949 current2 = renderLanes2.alternate, null !== current2 && null === findFirstSuspended(current2) && (revealOrder = renderLanes2), renderLanes2 = renderLanes2.sibling; 13950 renderLanes2 = revealOrder; 13951 null === renderLanes2 ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null); 13952 initSuspenseListRenderState( 13953 workInProgress2, 13954 false, 13955 revealOrder, 13956 renderLanes2, 13957 tailMode 13958 ); 13959 break; 13960 case "backwards": 13961 renderLanes2 = null; 13962 revealOrder = workInProgress2.child; 13963 for (workInProgress2.child = null; null !== revealOrder; ) { 13964 current2 = revealOrder.alternate; 13965 if (null !== current2 && null === findFirstSuspended(current2)) { 13966 workInProgress2.child = revealOrder; 13967 break; 13968 } 13969 current2 = revealOrder.sibling; 13970 revealOrder.sibling = renderLanes2; 13971 renderLanes2 = revealOrder; 13972 revealOrder = current2; 13973 } 13974 initSuspenseListRenderState( 13975 workInProgress2, 13976 true, 13977 renderLanes2, 13978 null, 13979 tailMode 13980 ); 13981 break; 13982 case "together": 13983 initSuspenseListRenderState(workInProgress2, false, null, null, void 0); 13984 break; 13985 default: 13986 workInProgress2.memoizedState = null; 13987 } 13988 return workInProgress2.child; 13989 } 13990 function bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2) { 13991 null !== current2 && (workInProgress2.dependencies = current2.depen
13991dencies); 13992 profilerStartTime = -1; 13993 workInProgressRootSkippedLanes |= workInProgress2.lanes; 13994 if (0 === (renderLanes2 & workInProgress2.childLanes)) 13995 if (null !== current2) { 13996 if (propagateParentContextChanges( 13997 current2, 13998 workInProgress2, 13999 renderLanes2, 14000 false 14001 ), 0 === (renderLanes2 & workInProgress2.childLanes)) 14002 return null; 14003 } else return null; 14004 if (null !== current2 && workInProgress2.child !== current2.child) 14005 throw Error("Resuming work not yet implemented."); 14006 if (null !== workInProgress2.child) { 14007 current2 = workInProgress2.child; 14008 renderLanes2 = createWorkInProgress(current2, current2.pendingProps); 14009 workInProgress2.child = renderLanes2; 14010 for (renderLanes2.return = workInProgress2; null !== current2.sibling; ) 14011 current2 = current2.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current2, current2.pendingProps), renderLanes2.return = workInProgress2; 14012 renderLanes2.sibling = null; 14013 } 14014 return workInProgress2.child; 14015 } 14016 function checkScheduledUpdateOrContext(current2, renderLanes2) { 14017 if (0 !== (current2.lanes & renderLanes2)) return true; 14018 current2 = current2.dependencies; 14019 return null !== current2 && checkIfContextChanged(current2) ? true : false; 14020 } 14021 function attemptEarlyBailoutIfNoScheduledUpdate(current2, workInProgress2, renderLanes2) { 14022 switch (workInProgress2.tag) { 14023 case 3: 14024 pushHostContainer( 14025 workInProgress2, 14026 workInProgress2.stateNode.containerInfo 14027 ); 14028 pushProvider( 14029 workInProgress2, 14030 CacheContext, 14031 current2.memoizedState.cache 14032 ); 14033 resetHydrationState(); 14034 break; 14035 case 27: 14036 case 5: 14037 pushHostContext(workInProgress2); 14038 break; 14039 case 4: 14040 pushHostContainer( 14041 workInProgress2, 14042 workInProgress2.stateNode.containerInfo 14043 ); 14044 break; 14045 case 10: 14046 pushProvider( 14047 workInProgress2, 14048 workInProgress2.type, 14049 workInProgress2.memoizedProps.value 14050 ); 14051 break; 14052 case 12: 14053 0 !== (renderLanes2 & workInProgress2.childLanes) && (workInProgress2.flags |= 4); 14054 workInProgress2.flags |= 2048; 14055 var stateNode = workInProgress2.stateNode; 14056 stateNode.effectDuration = -0; 14057 stateNode.passiveEffectDuration = -0; 14058 break; 14059 case 13: 14060 stateNode = workInProgress2.memoizedState; 14061 if (null !== stateNode) { 14062 if (null !== stateNode.dehydrated) 14063 return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null; 14064 if (0 !== (renderLanes2 & workInProgress2.child.childLanes)) 14065 return updateSuspenseComponent( 14066 current2, 14067 workInProgress2, 14068 renderLanes2 14069 ); 14070 pushPrimaryTreeSuspenseHandler(workInProgress2); 14071 current2 = bailoutOnAlreadyFinishedWork( 14072 current2, 14073 workInProgress2, 14074 renderLanes2 14075 ); 14076 return null !== current2 ? current2.sibling : null; 14077 } 14078 pushPrimaryTreeSuspenseHandler(workInProgress2); 14079 break; 14080 case 19: 14081 var didSuspendBefore = 0 !== (current2.flags & 128); 14082 stateNode = 0 !== (renderLanes2 & workInProgress2.childLanes); 14083 stateNode || (propagateParentContextChanges( 14084 current2, 14085 workInProgress2, 14086 renderLanes2, 14087 false 14088 ), stateNode = 0 !== (renderLanes2 & workInProgress2.childLanes)); 14089 if (didSuspendBefore) { 14090 if (stateNode) 14091 return updateSuspenseListComponent( 14092 current2, 14093 workInProgress2, 14094 renderLanes2 14095 ); 14096 workInProgress2.flags |= 128; 14097 } 14098 didSuspendBefore = workInProgress2.memoizedState; 14099 null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null); 14100 push( 14101 suspenseStackCursor, 14102 suspenseStackCursor.current, 14103 workInProgress2 14104 ); 14105 if (stateNode) break; 14106 else return null; 14107 case 22: 14108 case 23: 14109 return workInProgress2.lanes = 0, updateOffscreenComponent(current2, workInProgress2, renderLanes2); 14110 case 24: 14111 pushProvider( 14112 workInProgress2, 14113 CacheContext, 14114 current2.memoizedState.cache 14115 ); 14116 } 14117 return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); 14118 } 14119 function beginWork(current2, workInProgress2, renderLanes2) { 14120 if (workInProgress2._debugNeedsRemount && null !== current2) { 14121 renderLanes2 = createFiberFromTypeAndProps( 14122 workInProgress2.type, 14123 workInProgress2.key, 14124 workInProgress2.pendingProps, 14125 workInProgress2._debugOwner || null, 14126 workInProgress2.mode, 14127 workInProgress2.lanes 14128 ); 14129 renderLanes2._debugStack = workInProgress2._debugStack; 14130 renderLanes2._debugTask = workInProgress2._debugTask; 14131 var returnFiber = workInProgress2.return; 14132 if (null === returnFiber) throw Error("Cannot swap the root fiber."); 14133 current2.alternate = null; 14134 workInProgress2.alternate = null; 14135 renderLanes2.index = workInProgress2.index; 14136 renderLanes2.sibling = workInProgress2.sibling;
14137 renderLanes2.return = workInProgress2.return; 14138 renderLanes2.ref = workInProgress2.ref; 14139 renderLanes2._debugInfo = workInProgress2._debugInfo; 14140 if (workInProgress2 === returnFiber.child) 14141 returnFiber.child = renderLanes2; 14142 else { 14143 var prevSibling = returnFiber.child; 14144 if (null === prevSibling) 14145 throw Error("Expected parent to have a child."); 14146 for (; prevSibling.sibling !== workInProgress2; ) 14147 if (prevSibling = prevSibling.sibling, null === prevSibling) 14148 throw Error("Expected to find the previous sibling."); 14149 prevSibling.sibling = renderLanes2; 14150 } 14151 workInProgress2 = returnFiber.deletions; 14152 null === workInProgress2 ? (returnFiber.deletions = [current2], returnFiber.flags |= 16) : workInProgress2.push(current2); 14153 renderLanes2.flags |= 2; 14154 return renderLanes2; 14155 } 14156 if (null !== current2) 14157 if (current2.memoizedProps !== workInProgress2.pendingProps || workInProgress2.type !== current2.type) 14158 didReceiveUpdate = true; 14159 else { 14160 if (!checkScheduledUpdateOrContext(current2, renderLanes2) && 0 === (workInProgress2.flags & 128)) 14161 return didReceiveUpdate = false, attemptEarlyBailoutIfNoScheduledUpdate( 14162 current2, 14163 workInProgress2, 14164 renderLanes2 14165 ); 14166 didReceiveUpdate = 0 !== (current2.flags & 131072) ? true : false; 14167 } 14168 else { 14169 didReceiveUpdate = false; 14170 if (returnFiber = isHydrating) 14171 warnIfNotHydrating(), returnFiber = 0 !== (workInProgress2.flags & 1048576); 14172 returnFiber && (returnFiber = workInProgress2.index, warnIfNotHydrating(), pushTreeId(workInProgress2, treeForkCount, returnFiber)); 14173 } 14174 workInProgress2.lanes = 0; 14175 switch (workInProgress2.tag) { 14176 case 16: 14177 a: if (returnFiber = workInProgress2.pendingProps, current2 = callLazyInitInDEV(workInProgress2.elementType), workInProgress2.type = current2, "function" === typeof current2) 14178 shouldConstruct(current2) ? (returnFiber = resolveClassComponentProps( 14179 current2, 14180 returnFiber 14181 ), workInProgress2.tag = 1, workInProgress2.type = current2 = resolveFunctionForHotReloading(current2), workInProgress2 = updateClassComponent( 14182 null, 14183 workInProgress2, 14184 current2, 14185 returnFiber, 14186 renderLanes2 14187 )) : (workInProgress2.tag = 0, validateFunctionComponentInDev(workInProgress2, current2), workInProgress2.type = current2 = resolveFunctionForHotReloading(current2), workInProgress2 = updateFunctionComponent( 14188 null, 14189 workInProgress2, 14190 current2, 14191 returnFiber, 14192 renderLanes2 14193 )); 14194 else { 14195 if (void 0 !== current2 && null !== current2) { 14196 if (prevSibling = current2.$$typeof, prevSibling === REACT_FORWARD_REF_TYPE) { 14197 workInProgress2.tag = 11; 14198 workInProgress2.type = current2 = resolveForwardRefForHotReloading(current2); 14199 workInProgress2 = updateForwardRef( 14200 null, 14201 workInProgress2, 14202 current2, 14203 returnFiber, 14204 renderLanes2 14205 ); 14206 break a; 14207 } else if (prevSibling === REACT_MEMO_TYPE) { 14208 workInProgress2.tag = 14; 14209 workInProgress2 = updateMemoComponent( 14210 null, 14211 workInProgress2, 14212 current2, 14213 returnFiber, 14214 renderLanes2 14215 ); 14216 break a; 14217 } 14218 } 14219 workInProgress2 = ""; 14220 null !== current2 && "object" === typeof current2 && current2.$$typeof === REACT_LAZY_TYPE && (workInProgress2 = " Did you wrap a component in React.lazy() more than once?"); 14221 current2 = getComponentNameFromType(current2) || current2; 14222 throw Error(
14223 "Element type is invalid. Received a promise that resolves to: " + current2 + ". Lazy element type must resolve to a class or function." + workInProgress2 14224 ); 14225 } 14226 return workInProgress2; 14227 case 0: 14228 return updateFunctionComponent( 14229 current2, 14230 workInProgress2, 14231 workInProgress2.type, 14232 workInProgress2.pendingProps, 14233 renderLanes2 14234 ); 14235 case 1: 14236 return returnFiber = workInProgress2.type, prevSibling = resolveClassComponentProps( 14237 returnFiber, 14238 workInProgress2.pendingProps 14239 ), updateClassComponent( 14240 current2, 14241 workInProgress2, 14242 returnFiber, 14243 prevSibling, 14244 renderLanes2 14245 ); 14246 case 3: 14247 a: { 14248 pushHostContainer( 14249 workInProgress2, 14250 workInProgress2.stateNode.containerInfo 14251 ); 14252 if (null === current2) 14253 throw Error( 14254 "Should have a current fiber. This is a bug in React." 14255 ); 14256 returnFiber = workInProgress2.pendingProps; 14257 var prevState = workInProgress2.memoizedState; 14258 prevSibling = prevState.element; 14259 cloneUpdateQueue(current2, workInProgress2); 14260 processUpdateQueue(workInProgress2, returnFiber, null, renderLanes2); 14261 var nextState = workInProgress2.memoizedState; 14262 returnFiber = nextState.cache; 14263 pushProvider(workInProgress2, CacheContext, returnFiber); 14264 returnFiber !== prevState.cache && propagateContextChanges( 14265 workInProgress2, 14266 [CacheContext], 14267 renderLanes2, 14268 true 14269 ); 14270 suspendIfUpdateReadFromEntangledAsyncAction(); 14271 returnFiber = nextState.element; 14272 if (prevState.isDehydrated) 14273 if (prevState = { 14274 element: returnFiber, 14275 isDehydrated: false, 14276 cache: nextState.cache 14277 }, workInProgress2.updateQueue.baseState = prevState, workInProgress2.memoizedState = prevState, workInProgress2.flags & 256) { 14278 workInProgress2 = mountHostRootWithoutHydrating( 14279 current2, 14280 workInProgress2, 14281 returnFiber, 14282 renderLanes2 14283 ); 14284 break a; 14285 } else if (returnFiber !== prevSibling) { 14286 prevSibling = createCapturedValueAtFiber( 14287 Error( 14288 "This root received an early update, before anything was able hydrate. Switched the entire root to client rendering." 14289 ), 14290 workInProgress2 14291 ); 14292 queueHydrationError(prevSibling); 14293 workInProgress2 = mountHostRootWithoutHydrating( 14294 current2, 14295 workInProgress2, 14296 returnFiber, 14297 renderLanes2 14298 ); 14299 break a; 14300 } else { 14301 current2 = workInProgress2.stateNode.containerInfo; 14302 switch (current2.nodeType) { 14303 case 9: 14304 current2 = current2.body; 14305 break; 14306 default: 14307 current2 = "HTML" === current2.nodeName ? current2.ownerDocument.body : current2; 14308 } 14309 nextHydratableInstance = getNextHydratable(current2.firstChild); 14310 hydrationParentFiber = workInProgress2; 14311 isHydrating = true; 14312 hydrationErrors = null; 14313 didSuspendOrErrorDEV = false; 14314 hydrationDiffRootDEV = null; 14315 rootOrSingletonContext = true; 14316 current2 = mountChildFibers( 14317 workInProgress2, 14318 null, 14319 returnFiber, 14320 renderLanes2 14321 ); 14322 for (workInProgress2.child = current2; current2; ) 14323 current2.flags = current2.flags & -3 | 4096, current2 = current2.sibling; 14324 } 14325 else { 14326 resetHydrationState(); 14327 if (returnFiber === prevSibling) { 14328 workInProgress2 = bailoutOnAlreadyFinishedWork( 14329 current2, 14330 workInProgress2, 14331 renderLanes2 14332 ); 14333 break a; 14334 } 14335 reconcileChildren( 14336 current2, 14337 workInProgress2, 14338 returnFiber, 14339 renderLanes2 14340 ); 14341 } 14342 workInProgress2 = workInProgress2.child; 14343 } 14344 return workInProgress2; 14345 case 26: 14346 return markRef(current2, workInProgress2), null === current2 ? (current2 = getResource( 14347 workInProgress2.type, 14348 null, 14349 workInProgress2.pendingProps, 14350 null 14351 )) ? workInProgress2.memoizedState = current2 : isHydrating || (current2 = workInProgress2.type, renderLanes2 = workInProgress2.pendingProps, returnFiber = requiredContext( 14352 rootInstanceStackCursor.current 14353 ), returnFiber = getOwnerDocumentFromRootContainer( 14354 returnFiber 14355 ).createElement(current2), returnFiber[internalInstanceKey] = workInProgress2, returnFiber[internalPropsKey] = renderLanes2, setInitialProperties(returnFiber, current2, renderLanes2), markNodeAsHoistable(returnFiber), workInProgress2.stateNode = returnFiber) : workInProgress2.memoizedState = getResource( 14356 workInProgress2.type, 14357 current2.memoizedProps, 14358 workInProgress2.pendingProps, 14359 current2.memoizedState 14360 ), null; 14361 case 27: 14362 return pushHostContext(workInProgress2), null === current2 && isHydrating && (returnFiber = requiredContext(rootInstanceStackCursor.current), prevSibling = getHostContext(), returnFiber = workInProgress2.stateNode = resolveSingletonInstance( 14363 workInProgress2.type, 14364 workInProgress2.pendingProps, 14365 returnFiber, 14366 prevSibling, 14367 false 14368 ), didSuspendOrErrorDEV || (prevSibling = diffHydratedProperties( 14369 returnFiber, 14370 workInProgress2.type, 14371 workInProgress2.pendingProps, 14372 prevSibling 14373 ), null !== prevSibling && (buildHydrationDiffNode(workInProgress2, 0).serverProps = prevSibling)), hydrationParentFiber = workInProgress2, rootOrSingletonContext = true, prevSibling = nextHydratableInstance, isSingletonScope(workInProgress2.type) ? (previousHydratableOnEnteringScopedSingleton = prevSibling, nextHydratableInstance = getNextHydratable( 14374 returnFiber.firstChild 14375 )) : nextHydratableInstance = prevSibling), reconcileChildren( 14376 current2, 14377 workInProgress2, 14378 workInProgress2.pendingProps.children, 14379 renderLanes2 14380 ), markRef(current2, workInProgress2), null === current2 && (workInProgress2.flags |= 4194304), workInProgress2.child; 14381 case 5: 14382 return null === current2 && isHydrating && (prevState = getHostContext(), returnFiber = validateDOMNesting( 14383 workInProgress2.type, 14384 prevState.ancestorInfo 14385 ), prevSibling = nextHydratableInstance, (nextState = !prevSibling) || (nextState = canHydrateInstance( 14386 prevSibling, 14387 workInProgress2.type, 14388 workInProgress2.pendingProps, 14389 rootOrSingletonContext 14390 ), null !== nextState ? (workInProgress2.stateNode = nextState, didSuspendOrErrorDEV || (prevState = diffHydratedProperties( 14391 nextState, 14392 workInProgress2.type, 14393 workInProgress2.pendingProps, 14394 prevState 14395 ), null !== prevState && (buildHydrationDiffNode(workInProgress2, 0).serverProps = prevState)), hydrationParentFiber = workInProgress2, nextHydratableInstance = getNextHydratable( 14396 nextState.firstChild 14397 ), rootOrSingletonContext = false, prevState = true) : prevState = false, nextState = !prevState), nextState && (returnFiber && warnNonHydratedInstance(workInProgress2, prevSibling), throwOnHydrationMismatch(workInProgress2))), pushHostContext(workInProgress2), prevSibling = workInProgress2.type, prevState = workInProgress2.pendingProps, nextState = null !== current2 ? current2.memoizedProps : null, returnFiber = prevState.children, shouldSetTextContent(prevSibling, prevState) ? returnFiber = null : null !== nextState && shouldSetTextContent(prevSibling, nextState) && (workInProgress2.flags |= 32), null !== workInProgress2.memoizedState && (prevSibling = renderWithHooks( 14398 current2, 14399 workInProgress2, 14400 TransitionAwareHostComponent, 14401 null, 14402 null, 14403 renderLanes2 14404 ), HostTransitionContext._currentValue = prevSibling), markRef(current2, workInProgress2), reconcileChildren( 14405 current2, 14406 workInProgress2, 14407 returnFiber, 14408 renderLanes2 14409 ), workInProgress2.child; 14410 case 6: 14411 return null === current2 && isHydrating && (current2 = workInProgress2.pendingProps, renderLanes2 = getHostContext(), returnFiber = renderLanes2.ancestorInfo.current, current2 = null != returnFiber ? validateTextNesting( 14412 current2, 14413 returnFiber.tag, 14414 renderLanes2.ancestorInfo.implicitRootScope 14415 ) : true, renderLanes2 = nextHydratableInstance, (returnFiber = !renderLanes2) || (returnFiber = canHydrateTextInstance( 14416 renderLanes2, 14417 workInProgress2.pendingProps, 14418 rootOrSingletonContext 14419 ), null !== returnFiber ? (workInProgress2.stateNode = returnFiber, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, returnFiber = true) : returnFiber = false, returnFiber = !returnFiber), returnFiber && (current2 && warnNonHydratedInstance(workInProgress2, renderLanes2), throwOnHydrationMismatch(workInProgress2))), null; 14420 case 13: 14421 return updateSuspenseComponent(current2, workInProgress2, renderLanes2); 14422 case 4: 14423 return pushHostContainer( 14424 workInProgress2, 14425 workInProgress2.stateNode.containerInfo 14426 ), returnFiber = workInProgress2.pendingProps, null === current2 ? workInProgress2.child = reconcileChildFibers( 14427 workInProgress2, 14428 null, 14429 returnFiber, 14430 renderLanes2 14431 ) : reconcileChildren( 14432 current2, 14433 workInProgress2, 14434 returnFiber, 14435 renderLanes2 14436 ), workInProgress2.child; 14437 case 11: 14438 return updateForwardRef( 14439 current2, 14440 workInProgress2, 14441 workInProgress2.type, 14442 workInProgress2.pendingProps, 14443 renderLanes2 14444 ); 14445 case 7: 14446 return reconcileChildren( 14447 current2, 14448 workInProgress2, 14449 workInProgress2.pendingProps, 14450 renderLanes2 14451 ), workInProgress2.child; 14452 case 8: 14453 return reconcileChildren( 14454 current2, 14455 workInProgress2, 14456 workInProgress2.pendingProps.children, 14457 renderLanes2 14458 ), workInProgress2.child; 14459 case 12: 14460 return workInProgress2.flags |= 4, workInProgress2.flags |= 2048, returnFiber = workInProgress2.stateNode, returnFiber.effectDuration = -0, returnFiber.passiveEffectDuration = -0, reconcileChildren( 14461 current2, 14462 workInProgress2, 14463 workInProgress2.pendingProps.children, 14464 renderLanes2 14465 ), workInProgress2.child; 14466 case 10: 14467 return returnFiber = workInProgress2.type, prevSibling = workInProgress2.pendingProps, prevState = prevSibling.value, "value" in prevSibling || hasWarnedAboutUsingNoValuePropOnContextProvider || (hasWarnedAboutUsingNoValuePropOnContextProvider = true, console.error( 14468 "The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?" 14469 )), pushProvider(workInProgress2, returnFiber, prevState), reconcileChildren( 14470 current2, 14471 workInProgress2, 14472 prevSibling.children, 14473 renderLanes2 14474 ), workInProgress2.child; 14475 case 9: 14476 return prevSibling = workInProgress2.type._context, returnFiber = workInProgress2.pendingProps.children, "function" !== typeof returnFiber && console.error( 14477 "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it." 14478 ), prepareToReadContext(workInProgress2), prevSibling = readContext(prevSibling), markComponentRenderStarted(workInProgress2), returnFiber = callComponentInDEV( 14479 returnFiber, 14480 prevSibling, 14481 void 0 14482 ), markComponentRenderStopped(), workInProgress2.flags |= 1, reconcileChildren( 14483 current2, 14484 workInProgress2, 14485 returnFiber, 14486 renderLanes2 14487 ), workInProgress2.child; 14488 case 14: 14489 return updateMemoComponent( 14490 current2, 14491 workInProgress2, 14492 workInProgress2.type, 14493 workInProgress2.pendingProps, 14494 renderLanes2 14495 ); 14496 case 15: 14497 return updateSimpleMemoComponent( 14498 current2, 14499 workInProgress2, 14500 workInProgress2.type, 14501 workInProgress2.pendingProps, 14502 renderLanes2 14503 ); 14504 case 19: 14505 return updateSuspenseListComponent( 14506 current2, 14507 workInProgress2, 14508 renderLanes2 14509 ); 14510 case 31: 14511 return returnFiber = workInProgress2.pendingProps, renderLanes2 = workInProgress2.mode, returnFiber = { 14512 mode: returnFiber.mode, 14513 children: returnFiber.children 14514 }, null === current2 ? (current2 = mountWorkInProgressOffscreenFiber( 14515 returnFiber, 14516 renderLanes2 14517 ), current2.ref = workInProgress2.ref, workInProgress2.child = current2, current2.return = w
14517orkInProgress2, workInProgress2 = current2) : (current2 = createWorkInProgress(current2.child, returnFiber), current2.ref = workInProgress2.ref, workInProgress2.child = current2, current2.return = workInProgress2, workInProgress2 = current2), workInProgress2; 14518 case 22: 14519 return updateOffscreenComponent(current2, workInProgress2, renderLanes2); 14520 case 24: 14521 return prepareToReadContext(workInProgress2), returnFiber = readContext(CacheContext), null === current2 ? (prevSibling = peekCacheFromPool(), null === prevSibling && (prevSibling = workInProgressRoot, prevState = createCache(), prevSibling.pooledCache = prevState, retainCache(prevState), null !== prevState && (prevSibling.pooledCacheLanes |= renderLanes2), prevSibling = prevState), workInProgress2.memoizedState = { 14522 parent: returnFiber, 14523 cache: prevSibling 14524 }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, prevSibling)) : (0 !== (current2.lanes & renderLanes2) && (cloneUpdateQueue(current2, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), prevSibling = current2.memoizedState, prevState = workInProgress2.memoizedState, prevSibling.parent !== returnFiber ? (prevSibling = { 14525 parent: returnFiber, 14526 cache: returnFiber 14527 }, workInProgress2.memoizedState = prevSibling, 0 === workInProgress2.lanes && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = prevSibling), pushProvider(workInProgress2, CacheContext, returnFiber)) : (returnFiber = prevState.cache, pushProvider(workInProgress2, CacheContext, returnFiber), returnFiber !== prevSibling.cache && propagateContextChanges( 14528 workInProgress2, 14529 [CacheContext], 14530 renderLanes2, 14531 true 14532 ))), reconcileChildren( 14533 current2, 14534 workInProgress2, 14535 workInProgress2.pendingProps.children, 14536 renderLanes2 14537 ), workInProgress2.child; 14538 case 29: 14539 throw workInProgress2.pendingProps; 14540 } 14541 throw Error( 14542 "Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue." 14543 ); 14544 } 14545 function markUpdate(workInProgress2) { 14546 workInProgress2.flags |= 4; 14547 } 14548 function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) { 14549 if ("stylesheet" !== resource.type || (resource.state.loading & Inserted) !== NotLoaded) 14550 workInProgress2.flags &= -16777217; 14551 else if (workInProgress2.flags |= 16777216, !preloadResource(resource)) { 14552 resource = suspenseHandlerStackCursor.current; 14553 if (null !== resource && ((workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? null !== shellBoundary : (workInProgressRootRenderLanes & 62914560) !== workInProgressRootRenderLanes && 0 === (workInProgressRootRenderLanes & 536870912) || resource !== shellBoundary)) 14554 throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException; 14555 workInProgress2.flags |= 8192; 14556 } 14557 } 14558 function scheduleRetryEffect(workInProgress2, retryQueue) { 14559 null !== retryQueue && (workInProgress2.flags |= 4); 14560 workInProgress2.flags & 16384 && (retryQueue = 22 !== workInProgress2.tag ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue); 14561 } 14562 function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { 14563 if (!isHydrating) 14564 switch (renderState.tailMode) { 14565 case "hidden": 14566 hasRenderedATailFallback = renderState.tail; 14567 for (var lastTailNode = null; null !== hasRenderedATailFallback; ) 14568 null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
14569 null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null; 14570 break; 14571 case "collapsed": 14572 lastTailNode = renderState.tail; 14573 for (var _lastTailNode = null; null !== lastTailNode; ) 14574 null !== lastTailNode.alternate && (_lastTailNode = lastTailNode), lastTailNode = lastTailNode.sibling; 14575 null === _lastTailNode ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : _lastTailNode.sibling = null; 14576 } 14577 } 14578 function bubbleProperties(completedWork) { 14579 var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0; 14580 if (didBailout) 14581 if ((completedWork.mode & ProfileMode) !== NoMode) { 14582 for (var _treeBaseDuration = completedWork.selfBaseDuration, _child2 = completedWork.child; null !== _child2; ) 14583 newChildLanes |= _child2.lanes | _child2.childLanes, subtreeFlags |= _child2.subtreeFlags & 65011712, subtreeFlags |= _child2.flags & 65011712, _treeBaseDuration += _child2.treeBaseDuration, _child2 = _child2.sibling; 14584 completedWork.treeBaseDuration = _treeBaseDuration; 14585 } else 14586 for (_treeBaseDuration = completedWork.child; null !== _treeBaseDuration; ) 14587 newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712, subtreeFlags |= _treeBaseDuration.flags & 65011712, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 14588 else if ((completedWork.mode & ProfileMode) !== NoMode) { 14589 _treeBaseDuration = completedWork.actualDuration; 14590 _child2 = completedWork.selfBaseDuration; 14591 for (var child = completedWork.child; null !== child; ) 14592 newChildLanes |= child.lanes | child.childLanes, subtreeFlags |= child.subtreeFlags, subtreeFlags |= child.flags, _treeBaseDuration += child.actualDuration, _child2 += child.treeBaseDuration, child = child.sibling; 14593 completedWork.actualDuration = _treeBaseDuration; 14594 completedWork.treeBaseDuration = _child2; 14595 } else 14596 for (_treeBaseDuration = completedWork.child; null !== _treeBaseDuration; ) 14597 newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes, subtreeFlags |= _treeBaseDuration.subtreeFlags, subtreeFlags |= _treeBaseDuration.flags, _treeBaseDuration.return = completedWork, _treeBaseDuration = _treeBaseDuration.sibling; 14598 completedWork.subtreeFlags |= subtreeFlags; 14599 completedWork.childLanes = newChildLanes; 14600 return didBailout; 14601 } 14602 function completeWork(current2, workInProgress2, renderLanes2) { 14603 var newProps = workInProgress2.pendingProps; 14604 popTreeContext(workInProgress2); 14605 switch (workInProgress2.tag) { 14606 case 31: 14607 case 16: 14608 case 15: 14609 case 0: 14610 case 11: 14611 case 7: 14612 case 8: 14613 case 12: 14614 case 9: 14615 case 14: 14616 return bubbleProperties(workInProgress2), null; 14617 case 1: 14618 return bubbleProperties(workInProgress2), null; 14619 case 3: 14620 renderLanes2 = workInProgress2.stateNode; 14621 newProps = null; 14622 null !== current2 && (newProps = current2.memoizedState.cache); 14623 workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048); 14624 popProvider(CacheContext, workInProgress2); 14625 popHostContainer(workInProgress2); 14626 renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null); 14627 if (null === current2 || null === current2.child) 14628 popHydrationState(workInProgress2) ? (emitPendingHydrationWarnings(), markUpdate(workInProgress2)) : null === current2 || current2.memoizedState.isDehydrated && 0 === (workInProgress2.flags & 256) || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable()); 14629 bubbleProperties(workInProgress2); 14630 return null; 14631 case 26: 14632 return renderLanes2 = workInProgress2.memoizedState, null === current2 ? (markUpdate(workInProgress2), null !== renderLanes2 ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded( 14633 workInProgress2, 14634 renderLanes2 14635 )) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217)) : renderLanes2 ? renderLanes2 !== current2.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded( 14636 workInProgress2, 14637 renderLanes2 14638 )) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (current2.memoizedProps !== newProps && markUpdate(workInProgress2), bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217), null; 14639 case 27: 14640 popHostContext(workInProgress2); 14641 renderLanes2 = requiredContext(rootInstanceStackCursor.current); 14642 var _type = workInProgress2.type; 14643 if (null !== current2 && null != workInProgress2.stateNode) 14644 current2.memoizedProps !== newProps && markUpdate(workInProgress2); 14645 else { 14646 if (!newProps) { 14647 if (null === workInProgress2.stateNode) 14648 throw Error( 14649 "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." 14650 ); 14651 bubbleProperties(workInProgress2); 14652 return null; 14653 } 14654 current2 = getHostContext(); 14655 popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2) : (current2 = resolveSingletonInstance( 14656 _type, 14657 newProps, 14658 renderLanes2, 14659 current2, 14660 true 14661 ), workInProgress2.stateNode = current2, markUpdate(workInProgress2)); 14662 } 14663 bubbleProperties(workInProgress2); 14664 return null; 14665 case 5: 14666 popHostContext(workInProgress2); 14667 renderLanes2 = workInProgress2.type; 14668 if (null !== current2 && null != workInProgress2.stateNode) 14669 current2.memoizedProps !== newProps && markUpdate(workInProgress2); 14670 else { 14671 if (!newProps) { 14672 if (null === workInProgress2.stateNode) 14673 throw Error( 14674 "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." 14675 ); 14676 bubbleProperties(workInProgress2); 14677 return null; 14678 } 14679 _type = getHostContext(); 14680 if (popHydrationState(workInProgress2)) 14681 prepareToHydrateHostInstance(workInProgress2); 14682 else { 14683 current2 = requiredContext(rootInstanceStackCursor.current); 14684 validateDOMNesting(renderLanes2, _type.ancestorInfo); 14685 _type = _type.context; 14686 current2 = getOwnerDocumentFromRootContainer(current2); 14687 switch (_type) { 14688 case HostContextNamespaceSvg: 14689 current2 = current2.createElementNS(SVG_NAMESPACE, renderLanes2); 14690 break; 14691 case HostContextNamespaceMath: 14692 current2 = current2.createElementNS( 14693 MATH_NAMESPACE, 14694 renderLanes2 14695 ); 14696 break; 14697 default: 14698 switch (renderLanes2) { 14699 case "svg": 14700 current2 = current2.createElementNS( 14701 SVG_NAMESPACE, 14702 renderLanes2 14703 ); 14704 break; 14705 case "math": 14706 current2 = current2.createElementNS( 14707 MATH_NAMESPACE, 14708 renderLanes2 14709 ); 14710 break; 14711 case "script": 14712 current2 = current2.createElement("div"); 14713 current2.innerHTML = "<script><\/script>"; 14714 current2 = current2.removeChild(current2.firstChild); 14715 break; 14716 case "select": 14717 current2 = "string" === typeof newProps.is ? current2.createElement("select", { is: newProps.is }) : current2.createElement("select"); 14718 newProps.multiple ? current2.multiple = true : newProps.size && (current2.size = newProps.size); 14719 break; 14720 default: 14721 current2 = "string" === typeof newProps.is ? current2.createElement(renderLanes2, { 14722 is: newProps.is 14723 }) : current2.createElement(renderLanes2), -1 === renderLanes2.indexOf("-") && (renderLanes2 !== renderLanes2.toLowerCase() && console.error( 14724 "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", 14725 renderLanes2 14726 ), "[object HTMLUnknownElement]" !== Object.prototype.toString.call(current2) || hasOwnProperty.call( 14727 warnedUnknownTags, 14728 renderLanes2 14729 ) || (warnedUnknownTags[renderLanes2] = true, console.error( 14730 "The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", 14731 renderLanes2 14732 ))); 14733 } 14734 } 14735 current2[internalInstanceKey] = workInProgress2; 14736 current2[internalPropsKey] = newProps; 14737 a: for (_type = workInProgress2.child; null !== _type; ) { 14738 if (5 === _type.tag || 6 === _type.tag) 14739 current2.appendChild(_type.stateNode); 14740 else if (4 !== _type.tag && 27 !== _type.tag && null !== _type.child) { 14741 _type.child.return = _type; 14742 _type = _type.child; 14743 continue; 14744 } 14745 if (_type === workInProgress2) break a; 14746 for (; null === _type.sibling; ) { 14747 if (null === _type.return || _type.return === workInProgress2) 14748 break a; 14749 _type = _type.return; 14750 } 14751 _type.sibling.return = _type.return; 14752 _type = _type.sibling; 14753 } 14754 workInProgress2.stateNode = current2; 14755 a: switch (setInitialProperties(current2, renderLanes2, newProps), renderLanes2) { 14756 case "button": 14757 case "input": 14758 case "select": 14759 case "textarea": 14760 current2 = !!newProps.autoFocus; 14761 break a; 14762 case "img": 14763 current2 = true; 14764 break a; 14765 default: 14766 current2 = false;
14767 } 14768 current2 && markUpdate(workInProgress2); 14769 } 14770 } 14771 bubbleProperties(workInProgress2); 14772 workInProgress2.flags &= -16777217; 14773 return null; 14774 case 6: 14775 if (current2 && null != workInProgress2.stateNode) 14776 current2.memoizedProps !== newProps && markUpdate(workInProgress2); 14777 else { 14778 if ("string" !== typeof newProps && null === workInProgress2.stateNode) 14779 throw Error( 14780 "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue." 14781 ); 14782 current2 = requiredContext(rootInstanceStackCursor.current); 14783 renderLanes2 = getHostContext(); 14784 if (popHydrationState(workInProgress2)) { 14785 current2 = workInProgress2.stateNode; 14786 renderLanes2 = workInProgress2.memoizedProps; 14787 _type = !didSuspendOrErrorDEV; 14788 newProps = null; 14789 var returnFiber = hydrationParentFiber; 14790 if (null !== returnFiber) 14791 switch (returnFiber.tag) { 14792 case 3: 14793 _type && (_type = diffHydratedTextForDevWarnings( 14794 current2, 14795 renderLanes2, 14796 newProps 14797 ), null !== _type && (buildHydrationDiffNode(workInProgress2, 0).serverProps = _type)); 14798 break; 14799 case 27: 14800 case 5: 14801 newProps = returnFiber.memoizedProps, _type && (_type = diffHydratedTextForDevWarnings( 14802 current2, 14803 renderLanes2, 14804 newProps 14805 ), null !== _type && (buildHydrationDiffNode( 14806 workInProgress2, 14807 0 14808 ).serverProps = _type)); 14809 } 14810 current2[internalInstanceKey] = workInProgress2; 14811 current2 = current2.nodeValue === renderLanes2 || null !== newProps && true === newProps.suppressHydrationWarning || checkForUnmatchedText(current2.nodeValue, renderLanes2) ? true : false; 14812 current2 || throwOnHydrationMismatch(workInProgress2); 14813 } else 14814 _type = renderLanes2.ancestorInfo.current, null != _type && validateTextNesting( 14815 newProps, 14816 _type.tag, 14817 renderLanes2.ancestorInfo.implicitRootScope 14818 ), current2 = getOwnerDocumentFromRootContainer(current2).createTextNode( 14819 newProps 14820 ), current2[internalInstanceKey] = workInProgress2, workInProgress2.stateNode = current2; 14821 } 14822 bubbleProperties(workInProgress2); 14823 return null; 14824 case 13: 14825 newProps = workInProgress2.memoizedState; 14826 if (null === current2 || null !== current2.memoizedState && null !== current2.memoizedState.dehydrated) { 14827 _type = popHydrationState(workInProgress2); 14828 if (null !== newProps && null !== newProps.dehydrated) { 14829 if (null === current2) { 14830 if (!_type) 14831 throw Error( 14832 "A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React." 14833 ); 14834 _type = workInProgress2.memoizedState; 14835 _type = null !== _type ? _type.dehydrated : null; 14836 if (!_type) 14837 throw Error( 14838 "Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue." 14839 ); 14840 _type[internalInstanceKey] = workInProgress2; 14841 bubbleProperties(workInProgress2); 14842 (workInProgress2.mode & ProfileMode) !== NoMode && null !== newProps && (_type = workInProgress2.child, null !== _type && (workInProgress2.treeBaseDuration -= _type.treeBaseDuration)); 14843 } else 14844 emitPendingHydrationWarnings(), resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4, bubbleProperties(workInProgress2), (workInProgress2.mode & ProfileMode) !== NoMode && null !== newProps && (_type = workInProgress2.child, null !== _type && (workInProgress2.treeBaseDuration -= _type.treeBaseDuration)); 14845 _type = false;
14846 } else 14847 _type = upgradeHydrationErrorsToRecoverable(), null !== current2 && null !== current2.memoizedState && (current2.memoizedState.hydrationErrors = _type), _type = true; 14848 if (!_type) { 14849 if (workInProgress2.flags & 256) 14850 return popSuspenseHandler(workInProgress2), workInProgress2; 14851 popSuspenseHandler(workInProgress2); 14852 return null; 14853 } 14854 } 14855 popSuspenseHandler(workInProgress2); 14856 if (0 !== (workInProgress2.flags & 128)) 14857 return workInProgress2.lanes = renderLanes2, (workInProgress2.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress2), workInProgress2; 14858 renderLanes2 = null !== newProps; 14859 current2 = null !== current2 && null !== current2.memoizedState; 14860 renderLanes2 && (newProps = workInProgress2.child, _type = null, null !== newProps.alternate && null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (_type = newProps.alternate.memoizedState.cachePool.pool), returnFiber = null, null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && (returnFiber = newProps.memoizedState.cachePool.pool), returnFiber !== _type && (newProps.flags |= 2048)); 14861 renderLanes2 !== current2 && renderLanes2 && (workInProgress2.child.flags |= 8192); 14862 scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue); 14863 bubbleProperties(workInProgress2); 14864 (workInProgress2.mode & ProfileMode) !== NoMode && renderLanes2 && (current2 = workInProgress2.child, null !== current2 && (workInProgress2.treeBaseDuration -= current2.treeBaseDuration)); 14865 return null; 14866 case 4: 14867 return popHostContainer(workInProgress2), null === current2 && listenToAllSupportedEvents( 14868 workInProgress2.stateNode.containerInfo 14869 ), bubbleProperties(workInProgress2), null; 14870 case 10: 14871 return popProvider(workInProgress2.type, workInProgress2), bubbleProperties(workInProgress2), null; 14872 case 19: 14873 pop(suspenseStackCursor, workInProgress2); 14874 _type = workInProgress2.memoizedState; 14875 if (null === _type) return bubbleProperties(workInProgress2), null; 14876 newProps = 0 !== (workInProgress2.flags & 128); 14877 returnFiber = _type.rendering; 14878 if (null === returnFiber) 14879 if (newProps) cutOffTailIfNeeded(_type, false); 14880 else { 14881 if (workInProgressRootExitStatus !== RootInProgress || null !== current2 && 0 !== (current2.flags & 128)) 14882 for (current2 = workInProgress2.child; null !== current2; ) { 14883 returnFiber = findFirstSuspended(current2); 14884 if (null !== returnFiber) { 14885 workInProgress2.flags |= 128; 14886 cutOffTailIfNeeded(_type, false); 14887 current2 = returnFiber.updateQueue; 14888 workInProgress2.updateQueue = current2; 14889 scheduleRetryEffect(workInProgress2, current2); 14890 workInProgress2.subtreeFlags = 0; 14891 current2 = renderLanes2; 14892 for (renderLanes2 = workInProgress2.child; null !== renderLanes2; ) 14893 resetWorkInProgress(renderLanes2, current2), renderLanes2 = renderLanes2.sibling; 14894 push( 14895 suspenseStackCursor, 14896 suspenseStackCursor.current & SubtreeSuspenseContextMask | ForceSuspenseFallback, 14897 workInProgress2 14898 ); 14899 return workInProgress2.child; 14900 } 14901 current2 = current2.sibling; 14902 } 14903 null !== _type.tail && now$1() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, newProps = true, cutOffTailIfNeeded(_type, false), workInProgress2.lanes = 4194304); 14904 } 14905 else { 14906 if (!newProps) 14907 if (current2 = findFirstSuspended(returnFiber), null !== current2) { 14908 if (workInProgress2.flags |= 128, newProps = true, current2 = current2.updateQueue, workInProgress2.updateQueue = current2, scheduleRetryEffect(workInProgress2, current2), cutOffTailIfNeeded(_type, true), null === _type.tail && "hidden" === _type.tailMode && !returnFiber.alternate && !isHydrating) 14909 return bubbleProperties(workInProgress2), null; 14910 } else 14911 2 * now$1() - _type.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes2 && (workInProgress2.flags |= 128, newProps = true, cutOffTailIfNeeded(_type, false), workInProgress2.lanes = 4194304); 14912 _type.isBackwards ? (returnFiber.sibling = workInProgress2.child, workInProgress2.child = returnFiber) : (current2 = _type.last, null !== current2 ? current2.sibling = returnFiber : workInProgress2.child = returnFiber, _type.last = returnFiber); 14913 } 14914 if (null !== _type.tail) 14915 return current2 = _type.tail, _type.rendering = current2, _type.tail = current2.sibling, _type.renderingStartTime = n
14915ow$1(), current2.sibling = null, renderLanes2 = suspenseStackCursor.current, renderLanes2 = newProps ? renderLanes2 & SubtreeSuspenseContextMask | ForceSuspenseFallback : renderLanes2 & SubtreeSuspenseContextMask, push(suspenseStackCursor, renderLanes2, workInProgress2), current2; 14916 bubbleProperties(workInProgress2); 14917 return null; 14918 case 22: 14919 case 23: 14920 return popSuspenseHandler(workInProgress2), popHiddenContext(workInProgress2), newProps = null !== workInProgress2.memoizedState, null !== current2 ? null !== current2.memoizedState !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? 0 !== (renderLanes2 & 536870912) && 0 === (workInProgress2.flags & 128) && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, null !== renderLanes2 && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, null !== current2 && null !== current2.memoizedState && null !== current2.memoizedState.cachePool && (renderLanes2 = current2.memoizedState.cachePool.pool), newProps = null, null !== workInProgress2.memoizedState && null !== workInProgress2.memoizedState.cachePool && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), null !== current2 && pop(resumedCache, workInProgress2), null; 14921 case 24: 14922 return renderLanes2 = null, null !== current2 && (renderLanes2 = current2.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext, workInProgress2), bubbleProperties(workInProgress2), null; 14923 case 25: 14924 return null; 14925 case 30: 14926 return null; 14927 } 14928 throw Error( 14929 "Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue." 14930 ); 14931 } 14932 function unwindWork(current2, workInProgress2) { 14933 popTreeContext(workInProgress2); 14934 switch (workInProgress2.tag) { 14935 case 1: 14936 return current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null; 14937 case 3: 14938 return popProvider(CacheContext, workInProgress2), popHostContainer(workInProgress2), current2 = workInProgress2.flags, 0 !== (current2 & 65536) && 0 === (current2 & 128) ? (workInProgress2.flags = current2 & -65537 | 128, workInProgress2) : null; 14939 case 26: 14940 case 27: 14941 case 5: 14942 return popHostContext(workInProgress2), null; 14943 case 13: 14944 popSuspenseHandler(workInProgress2); 14945 current2 = workInProgress2.memoizedState; 14946 if (null !== current2 && null !== current2.dehydrated) { 14947 if (null === workInProgress2.alternate) 14948 throw Error( 14949 "Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue." 14950 ); 14951 resetHydrationState(); 14952 } 14953 current2 = workInProgress2.flags; 14954 return current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null; 14955 case 19: 14956 return pop(suspenseStackCursor, workInProgress2), null; 14957 case 4: 14958 return popHostContainer(workInProgress2), null; 14959 case 10: 14960 return popProvider(workInProgress2.type, workInProgress2), null; 14961 case 22: 14962 case 23: 14963 return popSuspenseHandler(workInProgress2), popHiddenContext(workInProgress2), null !== current2 && pop(resumedCache, workInProgress2), current2 = workInProgress2.flags, current2 & 65536 ? (workInProgress2.flags = current2 & -65537 | 128, (workInProgress2.mode & ProfileMode) !== NoMode && transferActualDuration(workInProgress2), workInProgress2) : null; 14964 case 24:
14965 return popProvider(CacheContext, workInProgress2), null; 14966 case 25: 14967 return null; 14968 default: 14969 return null; 14970 } 14971 } 14972 function unwindInterruptedWork(current2, interruptedWork) { 14973 popTreeContext(interruptedWork); 14974 switch (interruptedWork.tag) { 14975 case 3: 14976 popProvider(CacheContext, interruptedWork); 14977 popHostContainer(interruptedWork); 14978 break; 14979 case 26: 14980 case 27: 14981 case 5: 14982 popHostContext(interruptedWork); 14983 break; 14984 case 4: 14985 popHostContainer(interruptedWork); 14986 break; 14987 case 13: 14988 popSuspenseHandler(interruptedWork); 14989 break; 14990 case 19: 14991 pop(suspenseStackCursor, interruptedWork); 14992 break; 14993 case 10: 14994 popProvider(interruptedWork.type, interruptedWork); 14995 break; 14996 case 22: 14997 case 23: 14998 popSuspenseHandler(interruptedWork); 14999 popHiddenContext(interruptedWork); 15000 null !== current2 && pop(resumedCache, interruptedWork); 15001 break; 15002 case 24: 15003 popProvider(CacheContext, interruptedWork); 15004 } 15005 } 15006 function shouldProfile(current2) { 15007 return (current2.mode & ProfileMode) !== NoMode; 15008 } 15009 function commitHookLayoutEffects(finishedWork, hookFlags) { 15010 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 15011 } 15012 function commitHookLayoutUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 15013 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount( 15014 hookFlags, 15015 finishedWork, 15016 nearestMountedAncestor 15017 ), recordEffectDuration()) : commitHookEffectListUnmount( 15018 hookFlags, 15019 finishedWork, 15020 nearestMountedAncestor 15021 ); 15022 } 15023 function commitHookEffectListMount(flags, finishedWork) { 15024 try { 15025 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 15026 if (null !== lastEffect) { 15027 var firstEffect = lastEffect.next; 15028 updateQueue = firstEffect; 15029 do { 15030 if ((updateQueue.tag & flags) === flags && ((flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStarted && injectedProfilingHooks.markComponentPassiveEffectMountStarted( 15031 finishedWork 15032 ) : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStarted && injectedProfilingHooks.markComponentLayoutEffectMountStarted( 15033 finishedWork 15034 ), lastEffect = void 0, (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = true), lastEffect = runWithFiberInDEV( 15035 finishedWork, 15036 callCreateInDEV, 15037 updateQueue 15038 ), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = false), (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectMountStopped && injectedProfilingHooks.markComponentPassiveEffectMountStopped() : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectMountStopped && injectedProfilingHooks.markComponentLayoutEffectMountStopped(), void 0 !== lastEffect && "function" !== typeof lastEffect)) { 15039 var hookName = void 0; 15040 hookName = 0 !== (updateQueue.tag & Layout) ? "useLayoutEffect" : 0 !== (updateQueue.tag & Insertion) ? "useInsertionEffect" : "useEffect"; 15041 var addendum = void 0; 15042 addendum = null === lastEffect ? " You returned null. If your effect does not require clean up, return undefined (or nothing)." : "function" === typeof lastEffect.then ? "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + hookName + "(() =>
15042 {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching" : " You returned: " + lastEffect; 15043 runWithFiberInDEV( 15044 finishedWork, 15045 function(n, a) { 15046 console.error( 15047 "%s must not return anything besides a function, which is used for clean-up.%s", 15048 n, 15049 a 15050 ); 15051 }, 15052 hookName, 15053 addendum 15054 ); 15055 } 15056 updateQueue = updateQueue.next; 15057 } while (updateQueue !== firstEffect); 15058 } 15059 } catch (error) { 15060 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15061 } 15062 } 15063 function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { 15064 try { 15065 var updateQueue = finishedWork.updateQueue, lastEffect = null !== updateQueue ? updateQueue.lastEffect : null; 15066 if (null !== lastEffect) { 15067 var firstEffect = lastEffect.next; 15068 updateQueue = firstEffect; 15069 do { 15070 if ((updateQueue.tag & flags) === flags) { 15071 var inst = updateQueue.inst, destroy = inst.destroy; 15072 void 0 !== destroy && (inst.destroy = void 0, (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStarted && injectedProfilingHooks.markComponentPassiveEffectUnmountStarted( 15073 finishedWork 15074 ) : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStarted && injectedProfilingHooks.markComponentLayoutEffectUnmountStarted( 15075 finishedWork 15076 ), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = true), lastEffect = finishedWork, runWithFiberInDEV( 15077 lastEffect, 15078 callDestroyInDEV, 15079 lastEffect, 15080 nearestMountedAncestor, 15081 destroy 15082 ), (flags & Insertion) !== NoFlags && (isRunningInsertionEffect = false), (flags & Passive) !== NoFlags ? null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentPassiveEffectUnmountStopped && injectedProfilingHooks.markComponentPassiveEffectUnmountStopped() : (flags & Layout) !== NoFlags && null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentLayoutEffectUnmountStopped && injectedProfilingHooks.markComponentLayoutEffectUnmountStopped()); 15083 } 15084 updateQueue = updateQueue.next; 15085 } while (updateQueue !== firstEffect); 15086 } 15087 } catch (error) { 15088 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15089 } 15090 } 15091 function commitHookPassiveMountEffects(finishedWork, hookFlags) { 15092 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListMount(hookFlags, finishedWork), recordEffectDuration()) : commitHookEffectListMount(hookFlags, finishedWork); 15093 } 15094 function commitHookPassiveUnmountEffects(finishedWork, nearestMountedAncestor, hookFlags) { 15095 shouldProfile(finishedWork) ? (startEffectTimer(), commitHookEffectListUnmount( 15096 hookFlags, 15097 finishedWork, 15098 nearestMountedAncestor 15099 ), recordEffectDuration()) : commitHookEffectListUnmount( 15100 hookFlags, 15101 finishedWork, 15102 nearestMountedAncestor 15103 ); 15104 } 15105 function commitClassCallbacks(finishedWork) { 15106 var updateQueue = finishedWork.updateQueue; 15107 if (null !== updateQueue) { 15108 var instance = finishedWork.stateNode; 15109 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (instance.props !== finishedWork.memoizedProps && console.error( 15110 "Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", 15111 getComponentNameFromFiber(finishedWork) || "instance" 15112 ), instance.state !== finishedWork.memoizedState && console.error( 15113 "Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", 15114 getComponentNameFromFiber(finishedWork) || "instance" 15115 )); 15116 try { 15117 runWithFiberInDEV( 15118 finishedWork, 15119 commitCallbacks, 15120 updateQueue, 15121 instance 15122 ); 15123 } catch (error) { 15124 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15125 } 15126 } 15127 } 15128 function callGetSnapshotBeforeUpdates(instance, prevProps, prevState) { 15129 return instance.getSnapshotBeforeUpdate(prevProps, prevState); 15130 } 15131 function commitClassSnapshot(finishedWork, current2) { 15132 var prevProps = current2.memoizedProps, prevState = current2.memoizedState; 15133 current2 = finishedWork.stateNode; 15134 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (current2.props !== finishedWork.memoizedProps && console.error( 15135 "Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", 15136 getComponentNameFromFiber(finishedWork) || "instance" 15137 ), current2.state !== finishedWork.memoizedState && console.error( 15138 "Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", 15139 getComponentNameFromFiber(finishedWork) || "instance" 15140 )); 15141 try {
15142 var resolvedPrevProps = resolveClassComponentProps( 15143 finishedWork.type, 15144 prevProps, 15145 finishedWork.elementType === finishedWork.type 15146 ); 15147 var snapshot = runWithFiberInDEV( 15148 finishedWork, 15149 callGetSnapshotBeforeUpdates, 15150 current2, 15151 resolvedPrevProps, 15152 prevState 15153 ); 15154 prevProps = didWarnAboutUndefinedSnapshotBeforeUpdate; 15155 void 0 !== snapshot || prevProps.has(finishedWork.type) || (prevProps.add(finishedWork.type), runWithFiberInDEV(finishedWork, function() { 15156 console.error( 15157 "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", 15158 getComponentNameFromFiber(finishedWork) 15159 ); 15160 })); 15161 current2.__reactInternalSnapshotBeforeUpdate = snapshot; 15162 } catch (error) { 15163 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15164 } 15165 } 15166 function safelyCallComponentWillUnmount(current2, nearestMountedAncestor, instance) { 15167 instance.props = resolveClassComponentProps( 15168 current2.type, 15169 current2.memoizedProps 15170 ); 15171 instance.state = current2.memoizedState; 15172 shouldProfile(current2) ? (startEffectTimer(), runWithFiberInDEV( 15173 current2, 15174 callComponentWillUnmountInDEV, 15175 current2, 15176 nearestMountedAncestor, 15177 instance 15178 ), recordEffectDuration()) : runWithFiberInDEV( 15179 current2, 15180 callComponentWillUnmountInDEV, 15181 current2, 15182 nearestMountedAncestor, 15183 instance 15184 ); 15185 } 15186 function commitAttachRef(finishedWork) { 15187 var ref = finishedWork.ref; 15188 if (null !== ref) { 15189 switch (finishedWork.tag) { 15190 case 26: 15191 case 27: 15192 case 5: 15193 var instanceToUse = finishedWork.stateNode; 15194 break; 15195 case 30: 15196 instanceToUse = finishedWork.stateNode; 15197 break; 15198 default: 15199 instanceToUse = finishedWork.stateNode; 15200 } 15201 if ("function" === typeof ref) 15202 if (shouldProfile(finishedWork)) 15203 try { 15204 startEffectTimer(), finishedWork.refCleanup = ref(instanceToUse); 15205 } finally { 15206 recordEffectDuration(); 15207 } 15208 else finishedWork.refCleanup = ref(instanceToUse); 15209 else 15210 "string" === typeof ref ? console.error("String refs are no longer supported.") : ref.hasOwnProperty("current") || console.error( 15211 "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", 15212 getComponentNameFromFiber(finishedWork) 15213 ), ref.current = instanceToUse; 15214 } 15215 } 15216 function safelyAttachRef(current2, nearestMountedAncestor) { 15217 try { 15218 runWithFiberInDEV(current2, commitAttachRef, current2); 15219 } catch (error) { 15220 captureCommitPhaseError(current2, nearestMountedAncestor, error); 15221 } 15222 } 15223 function safelyDetachRef(current2, nearestMountedAncestor) { 15224 var ref = current2.ref, refCleanup = current2.refCleanup; 15225 if (null !== ref) 15226 if ("function" === typeof refCleanup) 15227 try { 15228 if (shouldProfile(current2)) 15229 try { 15230 startEffectTimer(), runWithFiberInDEV(current2, refCleanup); 15231 } finally { 15232 recordEffectDuration(current2); 15233 } 15234 else runWithFiberInDEV(current2, refCleanup); 15235 } catch (error) { 15236 captureCommitPhaseError(current2, nearestMountedAncestor, error); 15237 } finally { 15238 current2.refCleanup = null, current2 = current2.alternate, null != current2 && (current2.refCleanup = null); 15239 } 15240 else if ("function" === typeof ref) 15241 try { 15242 if (shouldProfile(current2)) 15243 try { 15244 startEffectTimer(), runWithFiberInDEV(current2, ref, null); 15245 } finally { 15246 recordEffectDuration(current2); 15247 } 15248 else runWithFiberInDEV(current2, ref, null); 15249 } catch (error$7) { 15250 captureCommitPhaseError(current2, nearestMountedAncestor, error$7); 15251 } 15252 else ref.current = null; 15253 } 15254 function commitProfiler(finishedWork, current2, commitStartTime2, effectDuration) { 15255 var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onCommit = _finishedWork$memoize.onCommit; 15256 _finishedWork$memoize = _finishedWork$memoize.onRender; 15257 current2 = null === current2 ? "mount" : "update"; 15258 currentUpdateIsNested && (current2 = "nested-update"); 15259 "function" === typeof _finishedWork$memoize && _finishedWork$memoize( 15260 id, 15261 current2, 15262 finishedWork.actualDuration, 15263 finishedWork.treeBaseDuration, 15264 finishedWork.actualStartTime, 15265 commitStartTime2 15266 ); 15267 "function" === typeof onCommit && onCommit( 15268 finishedWork.memoizedProps.id, 15269 current2, 15270 effectDuration, 15271 commitStartTime2 15272 ); 15273 } 15274 function commitProfilerPostCommitImpl(finishedWork, current2, commitStartTime2, passiveEffectDuration) { 15275 var _finishedWork$memoize2 = finishedWork.memoizedProps; 15276 finishedWork = _finishedWork$memoize2.id; 15277 _finishedWork$memoize2 = _finishedWork$memoize2.onPostCommit; 15278 current2 = null === current2 ? "mount" : "update"; 15279 currentUpdateIsNested && (current2 = "nested-update"); 15280 "function" === typeof _finishedWork$memoize2 && _finishedWork$memoize2( 15281 finishedWork, 15282 current2, 15283 passiveEffectDuration, 15284 commitStartTime2 15285 ); 15286 } 15287 function commitHostMount(finishedWork) { 15288 var type = finishedWork.type, props = finishedWork.memoizedProps, instance = f
15288inishedWork.stateNode; 15289 try { 15290 runWithFiberInDEV( 15291 finishedWork, 15292 commitMount, 15293 instance, 15294 type, 15295 props, 15296 finishedWork 15297 ); 15298 } catch (error) { 15299 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15300 } 15301 } 15302 function commitHostUpdate(finishedWork, newProps, oldProps) { 15303 try { 15304 runWithFiberInDEV( 15305 finishedWork, 15306 commitUpdate, 15307 finishedWork.stateNode, 15308 finishedWork.type, 15309 oldProps, 15310 newProps, 15311 finishedWork 15312 ); 15313 } catch (error) { 15314 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15315 } 15316 } 15317 function isHostParent(fiber) { 15318 return 5 === fiber.tag || 3 === fiber.tag || 26 === fiber.tag || 27 === fiber.tag && isSingletonScope(fiber.type) || 4 === fiber.tag; 15319 } 15320 function getHostSibling(fiber) { 15321 a: for (; ; ) { 15322 for (; null === fiber.sibling; ) { 15323 if (null === fiber.return || isHostParent(fiber.return)) return null; 15324 fiber = fiber.return; 15325 } 15326 fiber.sibling.return = fiber.return; 15327 for (fiber = fiber.sibling; 5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag; ) { 15328 if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a; 15329 if (fiber.flags & 2) continue a; 15330 if (null === fiber.child || 4 === fiber.tag) continue a; 15331 else fiber.child.return = fiber, fiber = fiber.child; 15332 } 15333 if (!(fiber.flags & 2)) return fiber.stateNode; 15334 } 15335 } 15336 function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { 15337 var tag = node.tag; 15338 if (5 === tag || 6 === tag) 15339 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)); 15340 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode, before = null), node = node.child, null !== node)) 15341 for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node; ) 15342 insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; 15343 } 15344 function insertOrAppendPlacementNode(node, before, parent) { 15345 var tag = node.tag; 15346 if (5 === tag || 6 === tag) 15347 node = node.stateNode, before ? parent.insertBefore(node, before) : parent.appendChild(node); 15348 else if (4 !== tag && (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode), node = node.child, null !== node)) 15349 for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; ) 15350 insertOrAppendPlacementNode(node, before, parent), node = node.sibling; 15351 } 15352 function commitPlacement(finishedWork) { 15353 for (var hostParentFiber, parentFiber = finishedWork.return; null !== parentFiber; ) { 15354 if (isHostParent(parentFiber)) { 15355 hostParentFiber = parentFiber; 15356 break; 15357 } 15358 parentFiber = parentFiber.return; 15359 } 15360 if (null == hostParentFiber) 15361 throw Error( 15362 "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." 15363 ); 15364 switch (hostParentFiber.tag) { 15365 case 27: 15366 hostParentFiber = hostParentFiber.stateNode; 15367 parentFiber = getHostSibling(finishedWork); 15368 insertOrAppendPlacementNode( 15369 finishedWork, 15370 parentFiber, 15371 hostParentFiber 15372 ); 15373 break; 15374 case 5: 15375 parentFiber = hostParentFiber.stateNode; 15376 hostParentFiber.flags & 32 && (resetTextContent(parentFiber), hostParentFiber.flags &= -33); 15377 hostParentFiber = getHostSibling(finishedWork); 15378 insertOrAppendPlacementNode( 15379 finishedWork, 15380 hostParentFiber, 15381 parentFiber 15382 ); 15383 break; 15384 case 3: 15385 case 4: 15386 hostParentFiber = hostParentFiber.stateNode.containerInfo; 15387 parentFiber = getHostSibling(finishedWork); 15388 insertOrAppendPlacementNodeIntoContainer( 15389 finishedWork, 15390 parentFiber, 15391 hostParentFiber 15392 ); 15393 break; 15394 default: 15395 throw Error( 15396 "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue." 15397 ); 15398 } 15399 } 15400 function commitHostSingletonAcquisition(finishedWork) { 15401 var singleton = finishedWork.stateNode, props = finishedWork.memoizedProps; 15402 try { 15403 runWithFiberInDEV( 15404 finishedWork, 15405 acquireSingletonInstance, 15406 finishedWork.type, 15407 props, 15408 singleton, 15409 finishedWork 15410 ); 15411 } catch (error) { 15412 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15413 } 15414 } 15415 function commitBeforeMutationEffects(root2, firstChild) { 15416 root2 = root2.containerInfo; 15417 eventsEnabled = _enabled; 15418 root2 = getActiveElementDeep(root2); 15419 if (hasSelectionCapabilities(root2)) { 15420 if ("selectionStart" in root2) 15421 var JSCompiler_temp = { 15422 start: root2.selectionStart, 15423 end: root2.selectionEnd 15424 }; 15425 else 15426 a: { 15427 JSCompiler_temp = (JSCompiler_temp = root2.ownerDocument) && JSCompiler_temp.defaultView || window; 15428 var selection = JSCompiler_temp.getSelection && JSCompiler_temp.getSelection(); 15429 if (selection && 0 !== selection.rangeCount) { 15430 JSCompiler_temp = selection.anchorNode; 15431 var anchorOffset = selection.anchorOffset, focusNode = selection.focusNode; 15432 selection = selection.focusOffset; 15433 try { 15434 JSCompiler_temp.nodeType, focusNode.nodeType; 15435 } catch (e$2) { 15436 JSCompiler_temp = null; 15437 break a; 15438 } 15439 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = root2, parentNode = null; 15440 b: for (; ; ) { 15441 for (var next; ; ) { 15442 node !== JSCompiler_temp || 0 !== anchorOffset && 3 !== node.nodeType || (start = length + anchorOffset); 15443 node !== focusNode || 0 !== selection && 3 !== node.nodeType || (end = length + selection); 15444 3 === node.nodeType && (length += node.nodeValue.length); 15445 if (null === (next = node.firstChild)) break; 15446 parentNode = node; 15447 node = next; 15448 } 15449 for (; ; ) { 15450 if (node === root2) break b; 15451 parentNode === JSCompiler_temp && ++indexWithinAnchor === anchorOffset && (start = length); 15452 parentNode === focusNode && ++indexWithinFocus === selection && (end = length); 15453 if (null !== (next = node.nextSibling)) break; 15454 node = parentNode; 15455 parentNode = node.parentNode; 15456 } 15457 node = next; 15458 }
15459 JSCompiler_temp = -1 === start || -1 === end ? null : { start, end }; 15460 } else JSCompiler_temp = null; 15461 } 15462 JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 }; 15463 } else JSCompiler_temp = null; 15464 selectionInformation = { 15465 focusedElem: root2, 15466 selectionRange: JSCompiler_temp 15467 }; 15468 _enabled = false; 15469 for (nextEffect = firstChild; null !== nextEffect; ) 15470 if (firstChild = nextEffect, root2 = firstChild.child, 0 !== (firstChild.subtreeFlags & 1024) && null !== root2) 15471 root2.return = firstChild, nextEffect = root2; 15472 else 15473 for (; null !== nextEffect; ) { 15474 root2 = firstChild = nextEffect; 15475 JSCompiler_temp = root2.alternate; 15476 anchorOffset = root2.flags; 15477 switch (root2.tag) { 15478 case 0: 15479 break; 15480 case 11: 15481 case 15: 15482 break; 15483 case 1: 15484 0 !== (anchorOffset & 1024) && null !== JSCompiler_temp && commitClassSnapshot(root2, JSCompiler_temp); 15485 break; 15486 case 3: 15487 if (0 !== (anchorOffset & 1024)) { 15488 if (root2 = root2.stateNode.containerInfo, JSCompiler_temp = root2.nodeType, 9 === JSCompiler_temp) 15489 clearContainerSparingly(root2); 15490 else if (1 === JSCompiler_temp) 15491 switch (root2.nodeName) { 15492 case "HEAD": 15493 case "HTML": 15494 case "BODY": 15495 clearContainerSparingly(root2); 15496 break; 15497 default: 15498 root2.textContent = ""; 15499 } 15500 } 15501 break; 15502 case 5: 15503 case 26: 15504 case 27: 15505 case 6: 15506 case 4: 15507 case 17: 15508 break; 15509 default: 15510 if (0 !== (anchorOffset & 1024)) 15511 throw Error( 15512 "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue." 15513 ); 15514 } 15515 root2 = firstChild.sibling; 15516 if (null !== root2) { 15517 root2.return = firstChild.return; 15518 nextEffect = root2; 15519 break; 15520 } 15521 nextEffect = firstChild.return; 15522 } 15523 } 15524 function commitLayoutEffectOnFiber(finishedRoot, current2, finishedWork) { 15525 var flags = finishedWork.flags; 15526 switch (finishedWork.tag) { 15527 case 0: 15528 case 11: 15529 case 15: 15530 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15531 flags & 4 && commitHookLayoutEffects(finishedWork, Layout | HasEffect); 15532 break; 15533 case 1: 15534 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15535 if (flags & 4) 15536 if (finishedRoot = finishedWork.stateNode, null === current2) 15537 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error( 15538 "Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", 15539 getComponentNameFromFiber(finishedWork) || "instance" 15540 ), finishedRoot.state !== finishedWork.memoizedState && console.error( 15541 "Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", 15542 getComponentNameFromFiber(finishedWork) || "instance" 15543 )), shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV( 15544 finishedWork, 15545 callComponentDidMountInDEV, 15546 finishedWork, 15547 finishedRoot 15548 ), recordEffectDuration()) : runWithFiberInDEV( 15549 finishedWork, 15550 callComponentDidMountInDEV, 15551 finishedWork, 15552 finishedRoot 15553 ); 15554 else {
15555 var prevProps = resolveClassComponentProps( 15556 finishedWork.type, 15557 current2.memoizedProps 15558 ); 15559 current2 = current2.memoizedState; 15560 finishedWork.type.defaultProps || "ref" in finishedWork.memoizedProps || didWarnAboutReassigningProps || (finishedRoot.props !== finishedWork.memoizedProps && console.error( 15561 "Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", 15562 getComponentNameFromFiber(finishedWork) || "instance" 15563 ), finishedRoot.state !== finishedWork.memoizedState && console.error( 15564 "Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", 15565 getComponentNameFromFiber(finishedWork) || "instance" 15566 )); 15567 shouldProfile(finishedWork) ? (startEffectTimer(), runWithFiberInDEV( 15568 finishedWork, 15569 callComponentDidUpdateInDEV, 15570 finishedWork, 15571 finishedRoot, 15572 prevProps, 15573 current2, 15574 finishedRoot.__reactInternalSnapshotBeforeUpdate 15575 ), recordEffectDuration()) : runWithFiberInDEV( 15576 finishedWork, 15577 callComponentDidUpdateInDEV, 15578 finishedWork, 15579 finishedRoot, 15580 prevProps, 15581 current2, 15582 finishedRoot.__reactInternalSnapshotBeforeUpdate 15583 ); 15584 } 15585 flags & 64 && commitClassCallbacks(finishedWork); 15586 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 15587 break; 15588 case 3: 15589 current2 = pushNestedEffectDurations(); 15590 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15591 if (flags & 64 && (flags = finishedWork.updateQueue, null !== flags)) { 15592 prevProps = null; 15593 if (null !== finishedWork.child) 15594 switch (finishedWork.child.tag) { 15595 case 27: 15596 case 5: 15597 prevProps = finishedWork.child.stateNode; 15598 break; 15599 case 1: 15600 prevProps = finishedWork.child.stateNode; 15601 } 15602 try { 15603 runWithFiberInDEV( 15604 finishedWork, 15605 commitCallbacks, 15606 flags, 15607 prevProps 15608 ); 15609 } catch (error) { 15610 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15611 } 15612 } 15613 finishedRoot.effectDuration += popNestedEffectDurations(current2); 15614 break; 15615 case 27: 15616 null === current2 && flags & 4 && commitHostSingletonAcquisition(finishedWork); 15617 case 26: 15618 case 5: 15619 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15620 null === current2 && flags & 4 && commitHostMount(finishedWork); 15621 flags & 512 && safelyAttachRef(finishedWork, finishedWork.return); 15622 break; 15623 case 12: 15624 if (flags & 4) { 15625 flags = pushNestedEffectDurations(); 15626 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15627 finishedRoot = finishedWork.stateNode; 15628 finishedRoot.effectDuration += bubbleNestedEffectDurations(flags); 15629 try { 15630 runWithFiberInDEV( 15631 finishedWork, 15632 commitProfiler, 15633 finishedWork, 15634 current2, 15635 commitStartTime, 15636 finishedRoot.effectDuration 15637 ); 15638 } catch (error) { 15639 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15640 } 15641 } else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15642 break; 15643 case 13: 15644 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15645 flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 15646 flags & 64 && (finishedRoot = finishedWork.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot && (finishedWork = retryDehydratedSuspenseBoundary.bind( 15647 null, 15648 finishedWork 15649 ), registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); 15650 break; 15651 case 22: 15652 flags = null !== finishedWork.memoizedState || offscreenSubtreeIsHidden; 15653 if (!flags) { 15654 current2 = null !== current2 && null !== current2.memoizedState || offscreenSubtreeWasHidden; 15655 prevProps = offscreenSubtreeIsHidden; 15656 var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 15657 offscreenSubtreeIsHidden = flags; 15658 (offscreenSubtreeWasHidden = current2) && !prevOffscreenSubtreeWasHidden ? recursivelyTraverseReappearLayoutEffects( 15659 finishedRoot, 15660 finishedWork, 15661 0 !== (finishedWork.subtreeFlags & 8772) 15662 ) : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15663 offscreenSubtreeIsHidden = prevProps; 15664 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 15665 } 15666 break; 15667 case 30: 15668 break; 15669 default: 15670 recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); 15671 } 15672 } 15673 function detachFiberAfterEffects(fiber) { 15674 var alternate = fiber.alternate; 15675 null !== alternate && (fiber.alternate = null, detachFiberAfterEffects(alternate)); 15676 fiber.child = null; 15677 fiber.deletions = null; 15678 fiber.sibling = null; 15679 5 === fiber.tag && (alternate = fiber.stateNode, null !== alternate && detachDeletedInstance(alternate)); 15680 fiber.stateNode = null; 15681 fiber._debugOwner = null; 15682 fiber.return = null; 15683 fiber.dependencies = null; 15684 fiber.memoizedProps = null; 15685 fiber.memoizedState = null; 15686 fiber.pendingProps = null; 15687 fiber.stateNode = null; 15688 fiber.updateQueue = null; 15689 } 15690 function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { 15691 for (parent = parent.child; null !== parent; )
15692 commitDeletionEffectsOnFiber( 15693 finishedRoot, 15694 nearestMountedAncestor, 15695 parent 15696 ), parent = parent.sibling; 15697 } 15698 function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { 15699 if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount) 15700 try { 15701 injectedHook.onCommitFiberUnmount(rendererID, deletedFiber); 15702 } catch (err) { 15703 hasLoggedError || (hasLoggedError = true, console.error( 15704 "React instrumentation encountered an error: %s", 15705 err 15706 )); 15707 } 15708 switch (deletedFiber.tag) { 15709 case 26: 15710 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 15711 recursivelyTraverseDeletionEffects( 15712 finishedRoot, 15713 nearestMountedAncestor, 15714 deletedFiber 15715 ); 15716 deletedFiber.memoizedState ? deletedFiber.memoizedState.count-- : deletedFiber.stateNode && (deletedFiber = deletedFiber.stateNode, deletedFiber.parentNode.removeChild(deletedFiber)); 15717 break; 15718 case 27: 15719 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 15720 var prevHostParent = hostParent, prevHostParentIsContainer = hostParentIsContainer; 15721 isSingletonScope(deletedFiber.type) && (hostParent = deletedFiber.stateNode, hostParentIsContainer = false); 15722 recursivelyTraverseDeletionEffects( 15723 finishedRoot, 15724 nearestMountedAncestor, 15725 deletedFiber 15726 ); 15727 runWithFiberInDEV( 15728 deletedFiber, 15729 releaseSingletonInstance, 15730 deletedFiber.stateNode 15731 ); 15732 hostParent = prevHostParent; 15733 hostParentIsContainer = prevHostParentIsContainer; 15734 break; 15735 case 5: 15736 offscreenSubtreeWasHidden || safelyDetachRef(deletedFiber, nearestMountedAncestor); 15737 case 6: 15738 prevHostParent = hostParent; 15739 prevHostParentIsContainer = hostParentIsContainer; 15740 hostParent = null; 15741 recursivelyTraverseDeletionEffects( 15742 finishedRoot, 15743 nearestMountedAncestor, 15744 deletedFiber 15745 ); 15746 hostParent = prevHostParent; 15747 hostParentIsContainer = prevHostParentIsContainer; 15748 if (null !== hostParent) 15749 if (hostParentIsContainer) 15750 try { 15751 runWithFiberInDEV( 15752 deletedFiber, 15753 removeChildFromContainer, 15754 hostParent, 15755 deletedFiber.stateNode 15756 ); 15757 } catch (error) { 15758 captureCommitPhaseError( 15759 deletedFiber, 15760 nearestMountedAncestor, 15761 error 15762 ); 15763 } 15764 else 15765 try { 15766 runWithFiberInDEV( 15767 deletedFiber, 15768 removeChild, 15769 hostParent, 15770 deletedFiber.stateNode 15771 ); 15772 } catch (error) { 15773 captureCommitPhaseError( 15774 deletedFiber, 15775 nearestMountedAncestor, 15776 error 15777 ); 15778 } 15779 break; 15780 case 18: 15781 null !== hostParent && (hostParentIsContainer ? (finishedRoot = hostParent, clearSuspenseBoundary( 15782 9 === finishedRoot.nodeType ? finishedRoot.body : "HTML" === finishedRoot.nodeName ? finishedRoot.ownerDocument.body : finishedRoot, 15783 deletedFiber.stateNode 15784 ), retryIfBlockedOn(finishedRoot)) : clearSuspenseBoundary(hostParent, deletedFiber.stateNode)); 15785 break; 15786 case 4: 15787 prevHostParent = hostParent; 15788 prevHostParentIsContainer = hostParentIsContainer; 15789 hostParent = deletedFiber.stateNode.containerInfo; 15790 hostParentIsContainer = true; 15791 recursivelyTraverseDeletionEffects( 15792 finishedRoot, 15793 nearestMountedAncestor, 15794 deletedFiber 15795 ); 15796 hostParent = prevHostParent; 15797 hostParentIsContainer = prevHostParentIsContainer; 15798 break; 15799 case 0: 15800 case 11: 15801 case 14: 15802 case 15: 15803 offscreenSubtreeWasHidden || commitHookEffectListUnmount( 15804 Insertion, 15805 deletedFiber, 15806 nearestMountedAncestor 15807 ); 15808 offscreenSubtreeWasHidden || commitHookLayoutUnmountEffects( 15809 deletedFiber, 15810 nearestMountedAncestor, 15811 Layout 15812 ); 15813 recursivelyTraverseDeletionEffects( 15814 finishedRoot, 15815 nearestMountedAncestor, 15816 deletedFiber 15817 ); 15818 break; 15819 case 1: 15820 offscreenSubtreeWasHidden || (safelyDetachRef(deletedFiber, nearestMountedAncestor), prevHostParent = deletedFiber.stateNode, "function" === typeof prevHostParent.componentWillUnmount && safelyCallComponentWillUnmount( 15821 deletedFiber, 15822 nearestMountedAncestor, 15823 prevHostParent 15824 )); 15825 recursivelyTraverseDeletionEffects( 15826 finishedRoot, 15827 nearestMountedAncestor, 15828 deletedFiber 15829 ); 15830 break; 15831 case 21: 15832 recursivelyTraverseDeletionEffects( 15833 finishedRoot, 15834 nearestMountedAncestor, 15835 deletedFiber 15836 ); 15837 break; 15838 case 22: 15839 offscreenSubtreeWasHidden = (prevHostParent = offscreenSubtreeWasHidden
15839) || null !== deletedFiber.memoizedState; 15840 recursivelyTraverseDeletionEffects( 15841 finishedRoot, 15842 nearestMountedAncestor, 15843 deletedFiber 15844 ); 15845 offscreenSubtreeWasHidden = prevHostParent; 15846 break; 15847 default: 15848 recursivelyTraverseDeletionEffects( 15849 finishedRoot, 15850 nearestMountedAncestor, 15851 deletedFiber 15852 ); 15853 } 15854 } 15855 function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { 15856 if (null === finishedWork.memoizedState && (finishedRoot = finishedWork.alternate, null !== finishedRoot && (finishedRoot = finishedRoot.memoizedState, null !== finishedRoot && (finishedRoot = finishedRoot.dehydrated, null !== finishedRoot)))) 15857 try { 15858 runWithFiberInDEV( 15859 finishedWork, 15860 commitHydratedSuspenseInstance, 15861 finishedRoot 15862 ); 15863 } catch (error) { 15864 captureCommitPhaseError(finishedWork, finishedWork.return, error); 15865 } 15866 } 15867 function getRetryCache(finishedWork) { 15868 switch (finishedWork.tag) { 15869 case 13: 15870 case 19: 15871 var retryCache = finishedWork.stateNode; 15872 null === retryCache && (retryCache = finishedWork.stateNode = new PossiblyWeakSet()); 15873 return retryCache; 15874 case 22: 15875 return finishedWork = finishedWork.stateNode, retryCache = finishedWork._retryCache, null === retryCache && (retryCache = finishedWork._retryCache = new PossiblyWeakSet()), retryCache; 15876 default: 15877 throw Error( 15878 "Unexpected Suspense handler tag (" + finishedWork.tag + "). This is a bug in React." 15879 ); 15880 } 15881 } 15882 function attachSuspenseRetryListeners(finishedWork, wakeables) { 15883 var retryCache = getRetryCache(finishedWork); 15884 wakeables.forEach(function(wakeable) { 15885 var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); 15886 if (!retryCache.has(wakeable)) { 15887 retryCache.add(wakeable); 15888 if (isDevToolsPresent) 15889 if (null !== inProgressLanes && null !== inProgressRoot) 15890 restorePendingUpdaters(inProgressRoot, inProgressLanes); 15891 else 15892 throw Error( 15893 "Expected finished root and lanes to be set. This is a bug in React." 15894 ); 15895 wakeable.then(retry, retry); 15896 } 15897 }); 15898 } 15899 function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { 15900 var deletions = parentFiber.deletions; 15901 if (null !== deletions) 15902 for (var i = 0; i < deletions.length; i++) { 15903 var root2 = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i], parent = returnFiber; 15904 a: for (; null !== parent; ) { 15905 switch (parent.tag) { 15906 case 27: 15907 if (isSingletonScope(parent.type)) { 15908 hostParent = parent.stateNode; 15909 hostParentIsContainer = false; 15910 break a; 15911 } 15912 break; 15913 case 5: 15914 hostParent = parent.stateNode; 15915 hostParentIsContainer = false; 15916 break a; 15917 case 3: 15918 case 4: 15919 hostParent = parent.stateNode.containerInfo; 15920 hostParentIsContainer = true; 15921 break a; 15922 } 15923 parent = parent.return; 15924 } 15925 if (null === hostParent) 15926 throw Error( 15927 "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." 15928 ); 15929 commitDeletionEffectsOnFiber(root2, returnFiber, deletedFiber); 15930 hostParent = null; 15931 hostParentIsContainer = false; 15932 root2 = deletedFiber; 15933 returnFiber = root2.alternate; 15934 null !== returnFiber && (returnFiber.return = null); 15935 root2.return = null; 15936 } 15937 if (parentFiber.subtreeFlags & 13878) 15938 for (parentFiber = parentFiber.child; null !== parentFiber; ) 15939 commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling; 15940 } 15941 function commitMutationEffectsOnFiber(finishedWork, root2) { 15942 var current2 = finishedWork.alternate, flags = finishedWork.flags; 15943 switch (finishedWork.tag) { 15944 case 0: 15945 case 11: 15946 case 14: 15947 case 15: 15948 recursivelyTraverseMutationEffects(root2, finishedWork); 15949 commitReconciliationEffects(finishedWork); 15950 flags & 4 && (commitHookEffectListUnmount( 15951 Insertion | HasEffect, 15952 finishedWork, 15953 finishedWork.return 15954 ), commitHookEffectListMount(Insertion | HasEffect, finishedWork), commitHookLayoutUnmountEffects( 15955 finishedWork, 15956 finishedWork.return, 15957 Layout | HasEffect 15958 )); 15959 break; 15960 case 1: 15961 recursivelyTraverseMutationEffects(root2, finishedWork); 15962 commitReconciliationEffects(finishedWork); 15963 flags & 512 && (offscreenSubtreeWasHidden || null === current2 || safelyDetachRef(current2, current2.return)); 15964 flags & 64 && offscreenSubtreeIsHidden && (finishedWork = finishedWork.updateQueue, null !== finishedWork && (flags = finishedWork.callbacks, null !== flags && (current2 = finishedWork.shared.hiddenCallbacks, finishedWork.shared.hiddenCallbacks = null === current2 ? flags : current2.concat(flags)))); 15965 break; 15966 case 26: 15967 var hoistableRoot = currentHoistableRoot; 15968 recursivelyTraverseMutationEffects(root2, finishedWork); 15969 commitReconciliationEffects(finishedWork); 15970 flags & 512 && (offscreenSubtreeWasHidden || null === current2 || safelyDetachRef(current2, current2.return)); 15971 if (flags & 4) 15972 if (root2 = null !== current2 ? current2.memoizedState : null, flags = finishedWork.memoizedState, null === current2) 15973 if (null === flags) 15974 if (null === finishedWork.stateNode) { 15975 a: { 15976 flags = finishedWork.type; 15977 current2 = finishedWork.memoizedProps; 15978 root2 = hoistableRoot.ownerDocument || hoistableRoot; 15979 b: switch (flags) { 15980 case "title": 15981 hoistableRoot = root2.getElementsByTagName("title")[0]; 15982 if (!hoistableRoot || hoistableRoot[internalHoistableMarker] || hoistableRoot[internalInstanceKey] || hoistableRoot.namespaceURI === SVG_NAMESPACE || hoistableRoot.hasAttribute("itemprop")) 15983 hoistableRoot = root2.createElement(flags), root2.head.insertBefore( 15984 hoistableRoot, 15985 root2.querySelector("head > title") 15986 ); 15987 setInitialProperties(hoistableRoot, flags, current2); 15988 hoistableRoot[internalInstanceKey] = finishedWork; 15989 markNodeAsHoistable(hoistableRoot); 15990 flags = hoistableRoot; 15991 break a; 15992 case "link": 15993 var maybeNodes = getHydratableHoistableCache( 15994 "link", 15995 "href", 15996 root2 15997 ).get(flags + (current2.href || "")); 15998 if (maybeNodes) { 15999 for (var i = 0; i < maybeNodes.length; i++) 16000 if (hoistableRoot = maybeNodes[i], hoistableRoot.getAttribute("href") === (null == current2.href || "" === current2.href ? null : current2.href) && hoistableRoot.getAttribute("rel") === (null == current2.rel ? null : current2.rel) && hoistableRoot.getAttribute("title") === (null == current2.title ? null : current2.title) && hoistableRoot.getAttribute("crossorigin") === (null == current2.crossOrigin ? null : current2.crossOrigin)) { 16001 maybeNodes.splice(i, 1); 16002 break b; 16003 } 16004 } 16005 hoistableRoot = root2.createElement(flags); 16006 setInitialProperties(hoistableRoot, flags, current2); 16007 root2.head.appendChild(hoistableRoot); 16008 break; 16009 case "meta": 16010 if (maybeNodes = getHydratableHoistableCache( 16011 "meta", 16012 "content", 16013 root2 16014 ).get(flags + (current2.content || ""))) { 16015 for (i = 0; i < maybeNodes.length; i++) 16016 if (hoistableRoot = maybeNodes[i], checkAttributeStringCoercion( 16017 current2.content, 16018 "content" 16019 ), hoistableRoot.getAttribute("content") === (null == current2.content ? null : "" + current2.content) && hoistableRoot.getAttribute("name") === (null == current2.name ? null : current2.name) && hoistableRoot.getAttribute("property") === (null == current2.property ? null : current2.property) && hoistableRoot.getAttribute("http-equiv") === (null == current2.httpEquiv ? null : current2.httpEquiv) && hoistableRoot.getAttribute("charset")
16019=== (null == current2.charSet ? null : current2.charSet)) { 16020 maybeNodes.splice(i, 1); 16021 break b; 16022 } 16023 } 16024 hoistableRoot = root2.createElement(flags); 16025 setInitialProperties(hoistableRoot, flags, current2); 16026 root2.head.appendChild(hoistableRoot); 16027 break; 16028 default: 16029 throw Error( 16030 'getNodesForType encountered a type it did not expect: "' + flags + '". This is a bug in React.' 16031 ); 16032 } 16033 hoistableRoot[internalInstanceKey] = finishedWork; 16034 markNodeAsHoistable(hoistableRoot); 16035 flags = hoistableRoot; 16036 } 16037 finishedWork.stateNode = flags; 16038 } else 16039 mountHoistable( 16040 hoistableRoot, 16041 finishedWork.type, 16042 finishedWork.stateNode 16043 ); 16044 else 16045 finishedWork.stateNode = acquireResource( 16046 hoistableRoot, 16047 flags, 16048 finishedWork.memoizedProps 16049 ); 16050 else 16051 root2 !== flags ? (null === root2 ? null !== current2.stateNode && (current2 = current2.stateNode, current2.parentNode.removeChild(current2)) : root2.count--, null === flags ? mountHoistable( 16052 hoistableRoot, 16053 finishedWork.type, 16054 finishedWork.stateNode 16055 ) : acquireResource( 16056 hoistableRoot, 16057 flags, 16058 finishedWork.memoizedProps 16059 )) : null === flags && null !== finishedWork.stateNode && commitHostUpdate( 16060 finishedWork, 16061 finishedWork.memoizedProps, 16062 current2.memoizedProps 16063 ); 16064 break; 16065 case 27: 16066 recursivelyTraverseMutationEffects(root2, finishedWork); 16067 commitReconciliationEffects(finishedWork); 16068 flags & 512 && (offscreenSubtreeWasHidden || null === current2 || safelyDetachRef(current2, current2.return)); 16069 null !== current2 && flags & 4 && commitHostUpdate( 16070 finishedWork, 16071 finishedWork.memoizedProps, 16072 current2.memoizedProps 16073 ); 16074 break; 16075 case 5: 16076 recursivelyTraverseMutationEffects(root2, finishedWork); 16077 commitReconciliationEffects(finishedWork); 16078 flags & 512 && (offscreenSubtreeWasHidden || null === current2 || safelyDetachRef(current2, current2.return)); 16079 if (finishedWork.flags & 32) { 16080 root2 = finishedWork.stateNode; 16081 try { 16082 runWithFiberInDEV(finishedWork, resetTextContent, root2); 16083 } catch (error) { 16084 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16085 } 16086 } 16087 flags & 4 && null != finishedWork.stateNode && (root2 = finishedWork.memoizedProps, commitHostUpdate( 16088 finishedWork, 16089 root2, 16090 null !== current2 ? current2.memoizedProps : root2 16091 )); 16092 flags & 1024 && (needsFormReset = true, "form" !== finishedWork.type && console.error( 16093 "Unexpected host component type. Expected a form. This is a bug in React." 16094 )); 16095 break; 16096 case 6: 16097 recursivelyTraverseMutationEffects(root2, finishedWork); 16098 commitReconciliationEffects(finishedWork); 16099 if (flags & 4) { 16100 if (null === finishedWork.stateNode) 16101 throw Error( 16102 "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue." 16103 ); 16104 flags = finishedWork.memoizedProps; 16105 current2 = null !== current2 ? current2.memoizedProps : flags; 16106 root2 = finishedWork.stateNode; 16107 try { 16108 runWithFiberInDEV( 16109 finishedWork, 16110 commitTextUpdate, 16111 root2, 16112 current2, 16113 flags 16114 ); 16115 } catch (error) { 16116 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16117 } 16118 } 16119 break; 16120 case 3: 16121 hoistableRoot = pushNestedEffectDurations(); 16122 tagCaches = null; 16123 maybeNodes = currentHoistableRoot; 16124 currentHoistableRoot = getHoistableRoot(root2.containerInfo); 16125 recursivelyTraverseMutationEffects(root2, finishedWork); 16126 currentHoistableRoot = maybeNodes; 16127 commitReconciliationEffects(finishedWork); 16128 if (flags & 4 && null !== current2 && current2.memoizedState.isDehydrated) 16129 try { 16130 runWithFiberInDEV( 16131 finishedWork, 16132 commitHydratedContainer, 16133 root2.containerInfo 16134 ); 16135 } catch (error) { 16136 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16137 } 16138 needsFormReset && (needsFormReset = false, recursivelyResetForms(finishedWork)); 16139 root2.effectDuration += popNestedEffectDurations(hoistableRoot); 16140 break; 16141 case 4: 16142 flags = currentHoistableRoot; 16143 currentHoistableRoot = getHoistableRoot( 16144 finishedWork.stateNode.containerInfo 16145 ); 16146 recursivelyTraverseMutationEffects(root2, finishedWork); 16147 commitReconciliationEffects(finishedWork); 16148 currentHoistableRoot = flags; 16149 break; 16150 case 12: 16151 flags = pushNestedEffectDurations(); 16152 recursivelyTraverseMutationEffects(root2, finishedWork); 16153 commitReconciliationEffects(finishedWork); 16154 finishedWork.stateNode.effectDuration += bubbleNestedEffectDurations(flags); 16155 break; 16156 case 13: 16157 recursivelyTraverseMutationEffects(root2, finishedWork); 16158 commitReconciliationEffects(finishedWork); 16159 finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current2 && null !== current2.memoizedState) && (globalMostRecentFallbackTime = now$1()); 16160 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 16161 break; 16162 case 22: 16163 hoistableRoot = null !== finishedWork.memoizedState; 16164 var wasHidden = null !== current2 && null !== current2.memoizedState, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; 16165 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot; 16166 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden; 16167 recursivelyTraverseMutationEffects(root2, finishedWork); 16168 offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; 16169 offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden; 16170 commitReconciliationEffects(finishedWork); 16171 if (flags & 8192) 16172 a: for (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & -2 : root2._visibility | OffscreenVisible, hoistableRoot && (null === current2 || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), current2 = null, root2 = finishedWork; ; ) { 16173 if (5 === root2.tag || 26 === root2.tag) { 16174 if (null === current2) { 16175 wasHidden = current2 = root2; 16176 try { 16177 maybeNodes = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(wasHidden, hideInstance, maybeNodes) : runWithFiberInDEV( 16178 wasHidden, 16179 unhideInstance, 16180 wasHidden.stateNode, 16181 wasHidden.memoizedProps 16182 ); 16183 } catch (error) { 16184 captureCommitPhaseError(wasHidden, wasHidden.return, error); 16185 } 16186 } 16187 }
16187 else if (6 === root2.tag) { 16188 if (null === current2) { 16189 wasHidden = root2; 16190 try { 16191 i = wasHidden.stateNode, hoistableRoot ? runWithFiberInDEV(wasHidden, hideTextInstance, i) : runWithFiberInDEV( 16192 wasHidden, 16193 unhideTextInstance, 16194 i, 16195 wasHidden.memoizedProps 16196 ); 16197 } catch (error) { 16198 captureCommitPhaseError(wasHidden, wasHidden.return, error); 16199 } 16200 } 16201 } else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) { 16202 root2.child.return = root2; 16203 root2 = root2.child; 16204 continue; 16205 } 16206 if (root2 === finishedWork) break a; 16207 for (; null === root2.sibling; ) { 16208 if (null === root2.return || root2.return === finishedWork) 16209 break a; 16210 current2 === root2 && (current2 = null); 16211 root2 = root2.return; 16212 } 16213 current2 === root2 && (current2 = null); 16214 root2.sibling.return = root2.return; 16215 root2 = root2.sibling; 16216 } 16217 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current2 = flags.retryQueue, null !== current2 && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current2)))); 16218 break; 16219 case 19: 16220 recursivelyTraverseMutationEffects(root2, finishedWork); 16221 commitReconciliationEffects(finishedWork); 16222 flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags))); 16223 break; 16224 case 30: 16225 break; 16226 case 21: 16227 break; 16228 default: 16229 recursivelyTraverseMutationEffects(root2, finishedWork), commitReconciliationEffects(finishedWork); 16230 } 16231 } 16232 function commitReconciliationEffects(finishedWork) { 16233 var flags = finishedWork.flags; 16234 if (flags & 2) { 16235 try { 16236 runWithFiberInDEV(finishedWork, commitPlacement, finishedWork); 16237 } catch (error) { 16238 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16239 } 16240 finishedWork.flags &= -3; 16241 } 16242 flags & 4096 && (finishedWork.flags &= -4097); 16243 } 16244 function recursivelyResetForms(parentFiber) { 16245 if (parentFiber.subtreeFlags & 1024) 16246 for (parentFiber = parentFiber.child; null !== parentFiber; ) { 16247 var fiber = parentFiber; 16248 recursivelyResetForms(fiber); 16249 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset(); 16250 parentFiber = parentFiber.sibling; 16251 } 16252 } 16253 function recursivelyTraverseLayoutEffects(root2, parentFiber) { 16254 if (parentFiber.subtreeFlags & 8772) 16255 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16256 commitLayoutEffectOnFiber(root2, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling; 16257 } 16258 function disappearLayoutEffects(finishedWork) { 16259 switch (finishedWork.tag) { 16260 case 0: 16261 case 11: 16262 case 14: 16263 case 15: 16264 commitHookLayoutUnmountEffects( 16265 finishedWork, 16266 finishedWork.return, 16267 Layout 16268 ); 16269 recursivelyTraverseDisappearLayoutEffects(finishedWork); 16270 break; 16271 case 1: 16272 safelyDetachRef(finishedWork, finishedWork.return); 16273 var instance = finishedWork.stateNode; 16274 "function" === typeof instance.componentWillUnmount && safelyCallComponentWillUnmount( 16275 finishedWork, 16276 finishedWork.return, 16277 instance 16278 ); 16279 recursivelyTraverseDisappearLayoutEffects(finishedWork); 16280 break; 16281 case 27: 16282 runWithFiberInDEV( 16283 finishedWork, 16284 releaseSingletonInstance, 16285 finishedWork.stateNode 16286 ); 16287 case 26: 16288 case 5: 16289 safelyDetachRef(finishedWork, finishedWork.return); 16290 recursivelyTraverseDisappearLayoutEffects(finishedWork); 16291 break; 16292 case 22: 16293 null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); 16294 break; 16295 case 30: 16296 recursivelyTraverseDisappearLayoutEffects(finishedWork); 16297 break; 16298 default: 16299 recursivelyTraverseDisappearLayoutEffects(finishedWork); 16300 } 16301 } 16302 function recursivelyTraverseDisappearLayoutEffects(parentFiber) { 16303 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16304 disappearLayoutEffects(parentFiber), parentFiber = parentFiber.sibling; 16305 } 16306 function reappearLayoutEffects(finishedRoot, current2, finishedWork, includeWorkInProgressEffects) { 16307 var flags = finishedWork.flags; 16308 switch (finishedWork.tag) { 16309 case 0: 16310 case 11: 16311 case 15: 16312 recursivelyTraverseReappearLayoutEffects( 16313 finishedRoot, 16314 finishedWork, 16315 includeWorkInProgressEffects 16316 ); 16317 commitHookLayoutEffects(finishedWork, Layout); 16318 break; 16319 case 1: 16320 recursivelyTraverseReappearLayoutEffects( 16321 finishedRoot, 16322 finishedWork, 16323 includeWorkInProgressEffects 16324 ); 16325 current2 = finishedWork.stateNode; 16326 "function" === typeof current2.componentDidMount && runWithFiberInDEV( 16327 finishedWork, 16328 callComponentDidMountInDEV, 16329 finishedWork, 16330 current2 16331 ); 16332 current2 = finishedWork.updateQueue; 16333 if (null !== current2) { 16334 finishedRoot = finishedWork.stateNode; 16335 try { 16336 runWithFiberInDEV( 16337 finishedWork, 16338 commitHiddenCallbacks, 16339 current2, 16340 finishedRoot 16341 ); 16342 } catch (error) { 16343 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16344 } 16345 } 16346 includeWorkInProgressEffects && flags & 64 && commitClassCallbacks(finishedWork); 16347 safelyAttachRef(finishedWork, finishedWork.return); 16348 break; 16349 case 27: 16350 commitHostSingletonAcquisition(finishedWork); 16351 case 26: 16352 case 5: 16353 recursivelyTraverseReappearLayoutEffects( 16354 finishedRoot, 16355 finishedWork, 16356 includeWorkInProgressEffects 16357 ); 16358 includeWorkInProgressEffects && null === current2 && flags & 4 && commitHostMount(finishedWork); 16359 safelyAttachRef(finishedWork, finishedWork.return); 16360 break; 16361 case 12: 16362 if (includeWorkInProgressEffects && flags & 4) { 16363 flags = pushNestedEffectDurations(); 16364 recursivelyTraverseReappearLayoutEffects( 16365 finishedRoot, 16366 finishedWork, 16367 includeWorkInProgressEffects 16368 ); 16369 includeWorkInProgressEffects = finishedWork.stateNode; 16370 includeWorkInProgressEffects.effectDuration += bubbleNestedEffectDurations(flags); 16371 try { 16372 runWithFiberInDEV( 16373 finishedWork, 16374 commitProfiler, 16375 finishedWork, 16376 current2, 16377 commitStartTime, 16378 includeWorkInProgressEffects.effectDuration 16379 ); 16380 } catch (error) { 16381 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16382 } 16383 } else 16384 recursivelyTraverseReappearLayoutEffects( 16385 finishedRoot, 16386 finishedWork, 16387 includeWorkInProgressEffects 16388 ); 16389 break; 16390 case 13: 16391 recursivelyTraverseReappearLayoutEffects( 16392 finishedRoot, 16393 finishedWork, 16394 includeWorkInProgressEffects 16395 ); 16396 includeWorkInProgressEffects && flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); 16397 break; 16398 case 22: 16399 null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects( 16400 finishedRoot, 16401 finishedWork, 16402 includeWorkInProgressEffects 16403 ); 16404 safelyAttachRef(finishedWork, finishedWork.return); 16405 break; 16406 case 30: 16407 break; 16408 default: 16409 recursivelyTraverseReappearLayoutEffects( 16410 finishedRoot, 16411 finishedWork, 16412 includeWorkInProgressEffects 16413 ); 16414 } 16415 } 16416 function recursivelyTraverseReappearLayoutEffects(finishedRoot, parentFiber, includeWorkInProgressEffects) { 16417 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); 16418 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16419 reappearLayoutEffects( 16420 finishedRoot, 16421 parentFiber.alternate, 16422 parentFiber, 16423 includeWorkInProgressEffects 16424 ), parentFiber = parentFiber.sibling; 16425 } 16426 function commitOffscreenPassiveMountEffects(current2, finishedWork) { 16427 var previousCache = null; 16428 null !== current2 && null !== current2.memoizedState && null !== current2.memoizedState.cachePool && (previousCache = current2.memoizedState.cachePool.pool); 16429 current2 = null; 16430 null !== finishedWork.memoizedState && null !== finishedWork.memoizedState.cachePool && (current2 = finishedWork.memoizedState.cachePool.pool); 16431 current2 !== previousCache && (null != current2 && retainCache(current2), null != previousCache && releaseCache(previousCache)); 16432 } 16433 function commitCachePassiveMountEffect(current2, finishedWork) { 16434 current2 = null; 16435 null !== finishedWork.alternate && (current2 = finishedWork.alternate.memoizedState.cache); 16436 finishedWork = finishedWork.memoizedState.cache;
16437 finishedWork !== current2 && (retainCache(finishedWork), null != current2 && releaseCache(current2)); 16438 } 16439 function recursivelyTraversePassiveMountEffects(root2, parentFiber, committedLanes, committedTransitions) { 16440 if (parentFiber.subtreeFlags & 10256) 16441 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16442 commitPassiveMountOnFiber( 16443 root2, 16444 parentFiber, 16445 committedLanes, 16446 committedTransitions 16447 ), parentFiber = parentFiber.sibling; 16448 } 16449 function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { 16450 var flags = finishedWork.flags; 16451 switch (finishedWork.tag) { 16452 case 0: 16453 case 11: 16454 case 15: 16455 recursivelyTraversePassiveMountEffects( 16456 finishedRoot, 16457 finishedWork, 16458 committedLanes, 16459 committedTransitions 16460 ); 16461 flags & 2048 && commitHookPassiveMountEffects(finishedWork, Passive | HasEffect); 16462 break; 16463 case 1: 16464 recursivelyTraversePassiveMountEffects( 16465 finishedRoot, 16466 finishedWork, 16467 committedLanes, 16468 committedTransitions 16469 ); 16470 break; 16471 case 3: 16472 var prevEffectDuration = pushNestedEffectDurations(); 16473 recursivelyTraversePassiveMountEffects( 16474 finishedRoot, 16475 finishedWork, 16476 committedLanes, 16477 committedTransitions 16478 ); 16479 flags & 2048 && (committedLanes = null, null !== finishedWork.alternate && (committedLanes = finishedWork.alternate.memoizedState.cache), finishedWork = finishedWork.memoizedState.cache, finishedWork !== committedLanes && (retainCache(finishedWork), null != committedLanes && releaseCache(committedLanes))); 16480 finishedRoot.passiveEffectDuration += popNestedEffectDurations(prevEffectDuration); 16481 break; 16482 case 12: 16483 if (flags & 2048) { 16484 flags = pushNestedEffectDurations(); 16485 recursivelyTraversePassiveMountEffects( 16486 finishedRoot, 16487 finishedWork, 16488 committedLanes, 16489 committedTransitions 16490 ); 16491 finishedRoot = finishedWork.stateNode; 16492 finishedRoot.passiveEffectDuration += bubbleNestedEffectDurations(flags); 16493 try { 16494 runWithFiberInDEV( 16495 finishedWork, 16496 commitProfilerPostCommitImpl, 16497 finishedWork, 16498 finishedWork.alternate, 16499 commitStartTime, 16500 finishedRoot.passiveEffectDuration 16501 ); 16502 } catch (error) { 16503 captureCommitPhaseError(finishedWork, finishedWork.return, error); 16504 } 16505 } else 16506 recursivelyTraversePassiveMountEffects( 16507 finishedRoot, 16508 finishedWork, 16509 committedLanes, 16510 committedTransitions 16511 ); 16512 break; 16513 case 13: 16514 recursivelyTraversePassiveMountEffects( 16515 finishedRoot, 16516 finishedWork, 16517 committedLanes, 16518 committedTransitions 16519 ); 16520 break; 16521 case 23: 16522 break; 16523 case 22: 16524 prevEffectDuration = finishedWork.stateNode; 16525 var _current = finishedWork.alternate; 16526 null !== finishedWork.memoizedState ? prevEffectDuration._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects( 16527 finishedRoot, 16528 finishedWork, 16529 committedLanes, 16530 committedTransitions 16531 ) : recursivelyTraverseAtomicPassiveEffects( 16532 finishedRoot, 16533 finishedWork 16534 ) : prevEffectDuration._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraversePassiveMountEffects( 16535 finishedRoot, 16536 finishedWork, 16537 committedLanes, 16538 committedTransitions
16539 ) : (prevEffectDuration._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects( 16540 finishedRoot, 16541 finishedWork, 16542 committedLanes, 16543 committedTransitions, 16544 0 !== (finishedWork.subtreeFlags & 10256) 16545 )); 16546 flags & 2048 && commitOffscreenPassiveMountEffects(_current, finishedWork); 16547 break; 16548 case 24: 16549 recursivelyTraversePassiveMountEffects( 16550 finishedRoot, 16551 finishedWork, 16552 committedLanes, 16553 committedTransitions 16554 ); 16555 flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 16556 break; 16557 default: 16558 recursivelyTraversePassiveMountEffects( 16559 finishedRoot, 16560 finishedWork, 16561 committedLanes, 16562 committedTransitions 16563 ); 16564 } 16565 } 16566 function recursivelyTraverseReconnectPassiveEffects(finishedRoot, parentFiber, committedLanes, committedTransitions, includeWorkInProgressEffects) { 16567 includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); 16568 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16569 reconnectPassiveEffects( 16570 finishedRoot, 16571 parentFiber, 16572 committedLanes, 16573 committedTransitions, 16574 includeWorkInProgressEffects 16575 ), parentFiber = parentFiber.sibling; 16576 } 16577 function reconnectPassiveEffects(finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects) { 16578 var flags = finishedWork.flags; 16579 switch (finishedWork.tag) { 16580 case 0: 16581 case 11: 16582 case 15: 16583 recursivelyTraverseReconnectPassiveEffects( 16584 finishedRoot, 16585 finishedWork, 16586 committedLanes, 16587 committedTransitions, 16588 includeWorkInProgressEffects 16589 ); 16590 commitHookPassiveMountEffects(finishedWork, Passive); 16591 break; 16592 case 23: 16593 break; 16594 case 22: 16595 var _instance2 = finishedWork.stateNode; 16596 null !== finishedWork.memoizedState ? _instance2._visibility & OffscreenPassiveEffectsConnected ? recursivelyTraverseReconnectPassiveEffects( 16597 finishedRoot, 16598 finishedWork, 16599 committedLanes, 16600 committedTransitions, 16601 includeWorkInProgressEffects 16602 ) : recursivelyTraverseAtomicPassiveEffects( 16603 finishedRoot, 16604 finishedWork 16605 ) : (_instance2._visibility |= OffscreenPassiveEffectsConnected, recursivelyTraverseReconnectPassiveEffects( 16606 finishedRoot, 16607 finishedWork, 16608 committedLanes, 16609 committedTransitions, 16610 includeWorkInProgressEffects 16611 )); 16612 includeWorkInProgressEffects && flags & 2048 && commitOffscreenPassiveMountEffects( 16613 finishedWork.alternate, 16614 finishedWork 16615 ); 16616 break; 16617 case 24: 16618 recursivelyTraverseReconnectPassiveEffects( 16619 finishedRoot, 16620 finishedWork, 16621 committedLanes, 16622 committedTransitions, 16623 includeWorkInProgressEffects 16624 ); 16625 includeWorkInProgressEffects && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); 16626 break; 16627 default: 16628 recursivelyTraverseReconnectPassiveEffects( 16629 finishedRoot, 16630 finishedWork, 16631 committedLanes, 16632 committedTransitions, 16633 includeWorkInProgressEffects 16634 ); 16635 } 16636 } 16637 function recursivelyTraverseAtomicPassiveEffects(finishedRoot$jscomp$0, parentFiber) { 16638 if (parentFiber.subtreeFlags & 10256) 16639 for (parentFiber = parentFiber.child; null !== parentFiber; ) { 16640 var finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; 16641 switch (finishedWork.tag) { 16642 case 22: 16643 recursivelyTraverseAtomicPassiveEffects( 16644 finishedRoot, 16645 finishedWork 16646 ); 16647 flags & 2048 && commitOffscreenPassiveMountEffects( 16648 finishedWork.alternate, 16649 finishedWork 16650 ); 16651 break; 16652 case 24: 16653 recursivelyTraverseAtomicPassiveEffects( 16654 finishedRoot, 16655 finishedWork 16656 ); 16657 flags & 2048 && commitCachePassiveMountEffect( 16658 finishedWork.alternate, 16659 finishedWork 16660 ); 16661 break; 16662 default: 16663 recursivelyTraverseAtomicPassiveEffects( 16664 finishedRoot, 16665 finishedWork 16666 ); 16667 } 16668 parentFiber = parentFiber.sibling; 16669 } 16670 } 16671 function recursivelyAccumulateSuspenseyCommit(parentFiber) { 16672 if (parentFiber.subtreeFlags & suspenseyCommitFlag) 16673 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16674 accumulateSuspenseyCommitOnFiber(parentFiber), parentFiber = parentFiber.sibling; 16675 } 16676 function accumulateSuspenseyCommitOnFiber(fiber) { 16677 switch (fiber.tag) { 16678 case 26: 16679 recursivelyAccumulateSuspenseyCommit(fiber); 16680 fiber.flags & suspenseyCommitFlag && null !== fiber.memoizedState && suspendResource( 16681 currentHoistableRoot, 16682 fiber.memoizedState, 16683 fiber.memoizedProps 16684 ); 16685 break; 16686 case 5: 16687 recursivelyAccumulateSuspenseyCommit(fiber); 16688 break; 16689 case 3: 16690 case 4: 16691 var previousHoistableRoot = currentHoistableRoot; 16692 currentHoistableRoot = getHoistableRoot( 16693 fiber.stateNode.containerInfo 16694 ); 16695 recursivelyAccumulateSuspenseyCommit(fiber); 16696 currentHoistableRoot = previousHoistableRoot; 16697 break; 16698 case 22: 16699 null === fiber.memoizedState && (previousHoistableRoot = fiber.alternate, null !== previousHoistableRoot && null !== previousHoistableRoot.memoizedState ? (previousHoistableRoot = suspenseyCommitFlag, suspenseyCommitFlag = 16777216, recursivelyAccumulateSuspenseyCommit(fiber), suspenseyCommitFlag = previousHoistableRoot) : recursivelyAccumulateSuspenseyCommit(fiber)); 16700 break; 16701 default: 16702 recursivelyAccumulateSuspenseyCommit(fiber); 16703 } 16704 } 16705 function detachAlternateSiblings(parentFiber) { 16706 var previousFiber = parentFiber.alternate; 16707 if (null !== previousFiber && (parentFiber = previousFiber.child, null !== parentFiber)) { 16708 previousFiber.child = null; 16709 do 16710 previousFiber = parentFiber.sibling, parentFiber.sibling = null, parentFiber = previousFiber; 16711 while (null !== parentFiber); 16712 } 16713 } 16714 function recursivelyTraversePassiveUnmountEffects(parentFiber) {
16715 var deletions = parentFiber.deletions; 16716 if (0 !== (parentFiber.flags & 16)) { 16717 if (null !== deletions) 16718 for (var i = 0; i < deletions.length; i++) { 16719 var childToDelete = deletions[i]; 16720 nextEffect = childToDelete; 16721 commitPassiveUnmountEffectsInsideOfDeletedTree_begin( 16722 childToDelete, 16723 parentFiber 16724 ); 16725 } 16726 detachAlternateSiblings(parentFiber); 16727 } 16728 if (parentFiber.subtreeFlags & 10256) 16729 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16730 commitPassiveUnmountOnFiber(parentFiber), parentFiber = parentFiber.sibling; 16731 } 16732 function commitPassiveUnmountOnFiber(finishedWork) { 16733 switch (finishedWork.tag) { 16734 case 0: 16735 case 11: 16736 case 15: 16737 recursivelyTraversePassiveUnmountEffects(finishedWork); 16738 finishedWork.flags & 2048 && commitHookPassiveUnmountEffects( 16739 finishedWork, 16740 finishedWork.return, 16741 Passive | HasEffect 16742 ); 16743 break; 16744 case 3: 16745 var prevEffectDuration = pushNestedEffectDurations(); 16746 recursivelyTraversePassiveUnmountEffects(finishedWork); 16747 finishedWork.stateNode.passiveEffectDuration += popNestedEffectDurations(prevEffectDuration); 16748 break; 16749 case 12: 16750 prevEffectDuration = pushNestedEffectDurations(); 16751 recursivelyTraversePassiveUnmountEffects(finishedWork); 16752 finishedWork.stateNode.passiveEffectDuration += bubbleNestedEffectDurations(prevEffectDuration); 16753 break; 16754 case 22: 16755 prevEffectDuration = finishedWork.stateNode; 16756 null !== finishedWork.memoizedState && prevEffectDuration._visibility & OffscreenPassiveEffectsConnected && (null === finishedWork.return || 13 !== finishedWork.return.tag) ? (prevEffectDuration._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(finishedWork)) : recursivelyTraversePassiveUnmountEffects(finishedWork); 16757 break; 16758 default: 16759 recursivelyTraversePassiveUnmountEffects(finishedWork); 16760 } 16761 } 16762 function recursivelyTraverseDisconnectPassiveEffects(parentFiber) { 16763 var deletions = parentFiber.deletions; 16764 if (0 !== (parentFiber.flags & 16)) { 16765 if (null !== deletions) 16766 for (var i = 0; i < deletions.length; i++) { 16767 var childToDelete = deletions[i]; 16768 nextEffect = childToDelete; 16769 commitPassiveUnmountEffectsInsideOfDeletedTree_begin( 16770 childToDelete, 16771 parentFiber 16772 ); 16773 } 16774 detachAlternateSiblings(parentFiber); 16775 } 16776 for (parentFiber = parentFiber.child; null !== parentFiber; ) 16777 disconnectPassiveEffect(parentFiber), parentFiber = parentFiber.sibling; 16778 } 16779 function disconnectPassiveEffect(finishedWork) { 16780 switch (finishedWork.tag) { 16781 case 0: 16782 case 11: 16783 case 15: 16784 commitHookPassiveUnmountEffects( 16785 finishedWork, 16786 finishedWork.return, 16787 Passive 16788 ); 16789 recursivelyTraverseDisconnectPassiveEffects(finishedWork); 16790 break; 16791 case 22: 16792 var instance = finishedWork.stateNode; 16793 instance._visibility & OffscreenPassiveEffectsConnected && (instance._visibility &= -3, recursivelyTraverseDisconnectPassiveEffects(finishedWork)); 16794 break; 16795 default: 16796 recursivelyTraverseDisconnectPassiveEffects(finishedWork); 16797 } 16798 } 16799 function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { 16800 for (; null !== nextEffect; ) { 16801 var fiber = nextEffect, current2 = fiber; 16802 switch (current2.tag) { 16803 case 0: 16804 case 11: 16805 case 15: 16806 commitHookPassiveUnmountEffects( 16807 current2, 16808 nearestMountedAncestor, 16809 Passive 16810 ); 16811 break; 16812 case 23: 16813 case 22: 16814 null !== current2.memoizedState && null !== current2.memoizedState.cachePool && (current2 = current2.memoizedState.cachePool.pool, null != current2 && retainCache(current2)); 16815 break; 16816 case 24: 16817 releaseCache(current2.memoizedState.cache); 16818 } 16819 current2 = fiber.child; 16820 if (null !== current2) current2.return = fiber, nextEffect = current2; 16821 else 16822 a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) { 16823 current2 = nextEffect; 16824 var sibling = current2.sibling, returnFiber = current2.return; 16825 detachFiberAfterEffects(current2); 16826 if (current2 === fiber) { 16827 nextEffect = null; 16828 break a; 16829 } 16830 if (null !== sibling) { 16831 sibling.return = returnFiber; 16832 nextEffect = sibling; 16833 break a; 16834 } 16835 nextEffect = returnFiber; 16836 } 16837 } 16838 } 16839 function onCommitRoot() { 16840 commitHooks.forEach(function(commitHook) { 16841 return commitHook(); 16842 }); 16843 }
16844 function isConcurrentActEnvironment() { 16845 var isReactActEnvironmentGlobal = "undefined" !== typeof IS_REACT_ACT_ENVIRONMENT ? IS_REACT_ACT_ENVIRONMENT : void 0; 16846 isReactActEnvironmentGlobal || null === ReactSharedInternals.actQueue || console.error( 16847 "The current testing environment is not configured to support act(...)" 16848 ); 16849 return isReactActEnvironmentGlobal; 16850 } 16851 function requestUpdateLane(fiber) { 16852 if ((executionContext & RenderContext) !== NoContext && 0 !== workInProgressRootRenderLanes) 16853 return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; 16854 var transition = ReactSharedInternals.T; 16855 return null !== transition ? (transition._updatedFibers || (transition._updatedFibers = /* @__PURE__ */ new Set()), transition._updatedFibers.add(fiber), fiber = currentEntangledLane, 0 !== fiber ? fiber : requestTransitionLane()) : resolveUpdatePriority(); 16856 } 16857 function requestDeferredLane() { 16858 0 === workInProgressDeferredLane && (workInProgressDeferredLane = 0 === (workInProgressRootRenderLanes & 536870912) || isHydrating ? claimNextTransitionLane() : 536870912); 16859 var suspenseHandler = suspenseHandlerStackCursor.current; 16860 null !== suspenseHandler && (suspenseHandler.flags |= 32); 16861 return workInProgressDeferredLane; 16862 } 16863 function scheduleUpdateOnFiber(root2, fiber, lane) { 16864 isRunningInsertionEffect && console.error("useInsertionEffect must not schedule updates."); 16865 isFlushingPassiveEffects && (didScheduleUpdateDuringPassiveEffects = true); 16866 if (root2 === workInProgressRoot && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root2.cancelPendingCommit) 16867 prepareFreshStack(root2, 0), markRootSuspended( 16868 root2, 16869 workInProgressRootRenderLanes, 16870 workInProgressDeferredLane, 16871 false 16872 ); 16873 markRootUpdated$1(root2, lane); 16874 if (0 !== (executionContext & RenderContext) && root2 === workInProgressRoot) { 16875 if (isRendering) 16876 switch (fiber.tag) { 16877 case 0: 16878 case 11: 16879 case 15: 16880 root2 = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; 16881 didWarnAboutUpdateInRenderForAnotherComponent.has(root2) || (didWarnAboutUpdateInRenderForAnotherComponent.add(root2), fiber = getComponentNameFromFiber(fiber) || "Unknown", console.error( 16882 "Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render", 16883 fiber, 16884 root2, 16885 root2 16886 )); 16887 break; 16888 case 1: 16889 didWarnAboutUpdateInRender || (console.error( 16890 "Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state." 16891 ), didWarnAboutUpdateInRender = true); 16892 } 16893 } else 16894 isDevToolsPresent && addFiberToLanesMap(root2, fiber, lane), warnIfUpdatesNotWrappedWithActDEV(fiber), root2 === workInProgressRoot && ((executionContext & RenderContext) === NoContext && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === RootSuspendedWithDelay && markRootSuspended( 16895 root2, 16896 workInProgressRootRenderLanes, 16897 workInProgressDeferredLane, 16898 false 16899 )), ensureRootIsScheduled(root2); 16900 } 16901 function performWorkOnRoot(root2, lanes, forceSync) { 16902 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) 16903 throw Error("Should not already be working."); 16904 var shouldTimeSlice = !forceSync && 0 === (lanes & 124) && 0 === (lanes & root2.expiredLanes) || checkIfRootIsPrerendering(root2, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root2, lanes) : renderRootSync(root2, lanes, true), renderWasConcurrent = shouldTimeSlice; 16905 do { 16906 if (exitStatus === RootInProgress) { 16907 workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root2, lanes, 0, false); 16908 break; 16909 } else { 16910 forceSync = root2.current.alternate; 16911 if (renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) { 16912 exitStatus = renderRootSync(root2, lanes, false); 16913 renderWasConcurrent = false;
16914 continue; 16915 } 16916 if (exitStatus === RootErrored) { 16917 renderWasConcurrent = lanes; 16918 if (root2.errorRecoveryDisabledLanes & renderWasConcurrent) 16919 var errorRetryLanes = 0; 16920 else 16921 errorRetryLanes = root2.pendingLanes & -536870913, errorRetryLanes = 0 !== errorRetryLanes ? errorRetryLanes : errorRetryLanes & 536870912 ? 536870912 : 0; 16922 if (0 !== errorRetryLanes) { 16923 lanes = errorRetryLanes; 16924 a: { 16925 exitStatus = root2; 16926 var errorRetryLanes$jscomp$0 = errorRetryLanes; 16927 errorRetryLanes = workInProgressRootConcurrentErrors; 16928 var wasRootDehydrated = exitStatus.current.memoizedState.isDehydrated; 16929 wasRootDehydrated && (prepareFreshStack( 16930 exitStatus, 16931 errorRetryLanes$jscomp$0 16932 ).flags |= 256); 16933 errorRetryLanes$jscomp$0 = renderRootSync( 16934 exitStatus, 16935 errorRetryLanes$jscomp$0, 16936 false 16937 ); 16938 if (errorRetryLanes$jscomp$0 !== RootErrored) { 16939 if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) { 16940 exitStatus.errorRecoveryDisabledLanes |= renderWasConcurrent; 16941 workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent; 16942 exitStatus = RootSuspendedWithDelay; 16943 break a; 16944 } 16945 exitStatus = workInProgressRootRecoverableErrors; 16946 workInProgressRootRecoverableErrors = errorRetryLanes; 16947 null !== exitStatus && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = exitStatus : workInProgressRootRecoverableErrors.push.apply( 16948 workInProgressRootRecoverableErrors, 16949 exitStatus 16950 )); 16951 } 16952 exitStatus = errorRetryLanes$jscomp$0; 16953 } 16954 renderWasConcurrent = false; 16955 if (exitStatus !== RootErrored) continue; 16956 } 16957 } 16958 if (exitStatus === RootFatalErrored) { 16959 prepareFreshStack(root2, 0); 16960 markRootSuspended(root2, lanes, 0, true); 16961 break; 16962 } 16963 a: { 16964 shouldTimeSlice = root2; 16965 switch (exitStatus) { 16966 case RootInProgress: 16967 case RootFatalErrored: 16968 throw Error("Root did not complete. This is a bug in React."); 16969 case RootSuspendedWithDelay: 16970 if ((lanes & 4194048) !== lanes) break; 16971 case RootSuspendedAtTheShell: 16972 markRootSuspended( 16973 shouldTimeSlice, 16974 lanes, 16975 workInProgressDeferredLane, 16976 !workInProgressRootDidSkipSuspendedSiblings 16977 ); 16978 break a; 16979 case RootErrored: 16980 workInProgressRootRecoverableErrors = null; 16981 break; 16982 case RootSuspended: 16983 case RootCompleted: 16984 break; 16985 default: 16986 throw Error("Unknown root exit status."); 16987 } 16988 if (null !== ReactSharedInternals.actQueue) 16989 commitRoot( 16990 shouldTimeSlice, 16991 forceSync, 16992 lanes, 16993 workInProgressRootRecoverableErrors, 16994 workInProgressTransitions, 16995 workInProgressRootDidIncludeRecursiveRenderUpdate, 16996 workInProgressDeferredLane, 16997 workInProgressRootInterleavedUpdatedLanes, 16998 workInProgressSuspendedRetryLanes 16999 ); 17000 else { 17001 if ((lanes & 62914560) === lanes && (renderWasConcurrent = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now$1(), 10 < renderWasConcurrent)) { 17002 markRootSuspended( 17003 shouldTimeSlice, 17004 lanes, 17005 workInProgressDeferredLane,
17006 !workInProgressRootDidSkipSuspendedSiblings 17007 ); 17008 if (0 !== getNextLanes(shouldTimeSlice, 0, true)) break a; 17009 shouldTimeSlice.timeoutHandle = scheduleTimeout( 17010 commitRootWhenReady.bind( 17011 null, 17012 shouldTimeSlice, 17013 forceSync, 17014 workInProgressRootRecoverableErrors, 17015 workInProgressTransitions, 17016 workInProgressRootDidIncludeRecursiveRenderUpdate, 17017 lanes, 17018 workInProgressDeferredLane, 17019 workInProgressRootInterleavedUpdatedLanes, 17020 workInProgressSuspendedRetryLanes, 17021 workInProgressRootDidSkipSuspendedSiblings, 17022 exitStatus, 17023 THROTTLED_COMMIT, 17024 renderStartTime, 17025 0 17026 ), 17027 renderWasConcurrent 17028 ); 17029 break a; 17030 } 17031 commitRootWhenReady( 17032 shouldTimeSlice, 17033 forceSync, 17034 workInProgressRootRecoverableErrors, 17035 workInProgressTransitions, 17036 workInProgressRootDidIncludeRecursiveRenderUpdate, 17037 lanes, 17038 workInProgressDeferredLane, 17039 workInProgressRootInterleavedUpdatedLanes, 17040 workInProgressSuspendedRetryLanes, 17041 workInProgressRootDidSkipSuspendedSiblings, 17042 exitStatus, 17043 IMMEDIATE_COMMIT, 17044 renderStartTime, 17045 0 17046 ); 17047 } 17048 } 17049 } 17050 break; 17051 } while (1); 17052 ensureRootIsScheduled(root2); 17053 } 17054 function commitRootWhenReady(root2, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) { 17055 root2.timeoutHandle = noTimeout; 17056 suspendedCommitReason = finishedWork.subtreeFlags; 17057 if (suspendedCommitReason & 8192 || 16785408 === (suspendedCommitReason & 16785408)) { 17058 if (suspendedState = { stylesheets: null, count: 0, unsuspend: noop }, accumulateSuspenseyCommitOnFiber(finishedWork), suspendedCommitReason = waitForCommitToBeReady(), null !== suspendedCommitReason) { 17059 root2.cancelPendingCommit = suspendedCommitReason( 17060 commitRoot.bind( 17061 null, 17062 root2, 17063 finishedWork, 17064 lanes, 17065 recoverableErrors, 17066 transitions, 17067 didIncludeRenderPhaseUpdate, 17068 spawnedLane, 17069 updatedLanes, 17070 suspendedRetryLanes, 17071 exitStatus, 17072 SUSPENDED_COMMIT, 17073 completedRenderStartTime, 17074 completedRenderEndTime 17075 ) 17076 ); 17077 markRootSuspended( 17078 root2, 17079 lanes, 17080 spawnedLane, 17081 !didSkipSuspendedSiblings 17082 ); 17083 return; 17084 } 17085 } 17086 commitRoot( 17087 root2, 17088 finishedWork, 17089 lanes, 17090 recoverableErrors, 17091 transitions, 17092 didIncludeRenderPhaseUpdate, 17093 spawnedLane, 17094 updatedLanes, 17095 suspendedRetryLanes 17096 ); 17097 } 17098 function isRenderConsistentWithExternalStores(finishedWork) { 17099 for (var node = finishedWork; ; ) { 17100 var tag = node.tag; 17101 if ((0 === tag || 11 === tag || 15 === tag) && node.flags & 16384 && (tag = node.updateQueue, null !== tag && (tag = tag.stores, null !== tag))) 17102 for (var i = 0; i < tag.length; i++) { 17103 var check = tag[i], getSnapshot = check.getSnapshot; 17104 check = check.value; 17105 try { 17106 if (!objectIs(getSnapshot(), check)) return false;
17107 } catch (error) { 17108 return false; 17109 } 17110 } 17111 tag = node.child; 17112 if (node.subtreeFlags & 16384 && null !== tag) 17113 tag.return = node, node = tag; 17114 else { 17115 if (node === finishedWork) break; 17116 for (; null === node.sibling; ) { 17117 if (null === node.return || node.return === finishedWork) return true; 17118 node = node.return; 17119 } 17120 node.sibling.return = node.return; 17121 node = node.sibling; 17122 } 17123 } 17124 return true; 17125 } 17126 function markRootSuspended(root2, suspendedLanes, spawnedLane, didAttemptEntireTree) { 17127 suspendedLanes &= ~workInProgressRootPingedLanes; 17128 suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; 17129 root2.suspendedLanes |= suspendedLanes; 17130 root2.pingedLanes &= ~suspendedLanes; 17131 didAttemptEntireTree && (root2.warmLanes |= suspendedLanes); 17132 didAttemptEntireTree = root2.expirationTimes; 17133 for (var lanes = suspendedLanes; 0 < lanes; ) { 17134 var index = 31 - clz32(lanes), lane = 1 << index; 17135 didAttemptEntireTree[index] = -1; 17136 lanes &= ~lane; 17137 } 17138 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes); 17139 } 17140 function flushSyncWork$1() { 17141 return (executionContext & (RenderContext | CommitContext)) === NoContext ? (flushSyncWorkAcrossRoots_impl(0), false) : true; 17142 } 17143 function resetWorkInProgressStack() { 17144 if (null !== workInProgress) { 17145 if (workInProgressSuspendedReason === NotSuspended) 17146 var interruptedWork = workInProgress.return; 17147 else 17148 interruptedWork = workInProgress, resetContextDependencies(), resetHooksOnUnwind(interruptedWork), thenableState = null, thenableIndexCounter = 0, interruptedWork = workInProgress; 17149 for (; null !== interruptedWork; ) 17150 unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return; 17151 workInProgress = null; 17152 } 17153 } 17154 function prepareFreshStack(root2, lanes) { 17155 var timeoutHandle = root2.timeoutHandle; 17156 timeoutHandle !== noTimeout && (root2.timeoutHandle = noTimeout, cancelTimeout(timeoutHandle)); 17157 timeoutHandle = root2.cancelPendingCommit; 17158 null !== timeoutHandle && (root2.cancelPendingCommit = null, timeoutHandle()); 17159 resetWorkInProgressStack(); 17160 workInProgressRoot = root2; 17161 workInProgress = timeoutHandle = createWorkInProgress(root2.current, null); 17162 workInProgressRootRenderLanes = lanes; 17163 workInProgressSuspendedReason = NotSuspended; 17164 workInProgressThrownValue = null; 17165 workInProgressRootDidSkipSuspendedSiblings = false; 17166 workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes); 17167 workInProgressRootDidAttachPingListener = false;
17168 workInProgressRootExitStatus = RootInProgress; 17169 workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = 0; 17170 workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; 17171 workInProgressRootDidIncludeRecursiveRenderUpdate = false; 17172 0 !== (lanes & 8) && (lanes |= lanes & 32); 17173 var allEntangledLanes = root2.entangledLanes; 17174 if (0 !== allEntangledLanes) 17175 for (root2 = root2.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes; ) { 17176 var index = 31 - clz32(allEntangledLanes), lane = 1 << index; 17177 lanes |= root2[index]; 17178 allEntangledLanes &= ~lane; 17179 } 17180 entangledRenderLanes = lanes; 17181 finishQueueingConcurrentUpdates(); 17182 lanes = getCurrentTime(); 17183 1e3 < lanes - lastResetTime && (ReactSharedInternals.recentlyCreatedOwnerStacks = 0, lastResetTime = lanes); 17184 ReactStrictModeWarnings.discardPendingWarnings(); 17185 return timeoutHandle; 17186 } 17187 function handleThrow(root2, thrownValue) { 17188 currentlyRenderingFiber = null; 17189 ReactSharedInternals.H = ContextOnlyDispatcher; 17190 ReactSharedInternals.getCurrentStack = null; 17191 isRendering = false; 17192 current = null; 17193 thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnImmediate) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = SuspendedOnInstance) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? SuspendedOnHydration : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? SuspendedOnDeprecatedThrowPromise : SuspendedOnError; 17194 workInProgressThrownValue = thrownValue; 17195 var erroredWork = workInProgress; 17196 if (null === erroredWork) 17197 workInProgressRootExitStatus = RootFatalErrored, logUncaughtError( 17198 root2, 17199 createCapturedValueAtFiber(thrownValue, root2.current) 17200 ); 17201 else 17202 switch (erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork), markComponentRenderStopped(), workInProgressSuspendedReason) { 17203 case SuspendedOnError: 17204 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentErrored && injectedProfilingHooks.markComponentErrored( 17205 erroredWork, 17206 thrownValue, 17207 workInProgressRootRenderLanes 17208 ); 17209 break; 17210 case SuspendedOnData: 17211 case SuspendedOnAction: 17212 case SuspendedOnImmediate: 17213 case SuspendedOnDeprecatedThrowPromise: 17214 case SuspendedAndReadyToContinue: 17215 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markComponentSuspended && injectedProfilingHooks.markComponentSuspended( 17216 erroredWork, 17217 thrownValue, 17218 workInProgressRootRenderLanes 17219 ); 17220 } 17221 } 17222 function pushDispatcher() { 17223 var prevDispatcher = ReactSharedInternals.H; 17224 ReactSharedInternals.H = ContextOnlyDispatcher; 17225 return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher; 17226 } 17227 function pushAsyncDispatcher() { 17228 var prevAsyncDispatcher = ReactSharedInternals.A; 17229 ReactSharedInternals.A = DefaultAsyncDispatcher; 17230 return prevAsyncDispatcher; 17231 } 17232 function renderDidSuspendDelayIfPossible() { 17233 workInProgressRootExitStatus = RootSuspendedWithDelay; 17234 workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = true); 17235 0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedU
17235pdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended( 17236 workInProgressRoot, 17237 workInProgressRootRenderLanes, 17238 workInProgressDeferredLane, 17239 false 17240 ); 17241 } 17242 function renderRootSync(root2, lanes, shouldYieldForPrerendering) { 17243 var prevExecutionContext = executionContext; 17244 executionContext |= RenderContext; 17245 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 17246 if (workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes) { 17247 if (isDevToolsPresent) { 17248 var memoizedUpdaters = root2.memoizedUpdaters; 17249 0 < memoizedUpdaters.size && (restorePendingUpdaters(root2, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 17250 movePendingFibersToMemoized(root2, lanes); 17251 } 17252 workInProgressTransitions = null; 17253 prepareFreshStack(root2, lanes); 17254 } 17255 markRenderStarted(lanes); 17256 lanes = false; 17257 memoizedUpdaters = workInProgressRootExitStatus; 17258 a: do 17259 try { 17260 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) { 17261 var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue; 17262 switch (workInProgressSuspendedReason) { 17263 case SuspendedOnHydration: 17264 resetWorkInProgressStack(); 17265 memoizedUpdaters = RootSuspendedAtTheShell; 17266 break a; 17267 case SuspendedOnImmediate: 17268 case SuspendedOnData: 17269 case SuspendedOnAction: 17270 case SuspendedOnDeprecatedThrowPromise: 17271 null === suspenseHandlerStackCursor.current && (lanes = true); 17272 var reason = workInProgressSuspendedReason; 17273 workInProgressSuspendedReason = NotSuspended; 17274 workInProgressThrownValue = null; 17275 throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason); 17276 if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) { 17277 memoizedUpdaters = RootInProgress; 17278 break a; 17279 } 17280 break; 17281 default: 17282 reason = workInProgressSuspendedReason, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason); 17283 } 17284 } 17285 workLoopSync(); 17286 memoizedUpdaters = workInProgressRootExitStatus; 17287 break; 17288 } catch (thrownValue$8) { 17289 handleThrow(root2, thrownValue$8); 17290 } 17291 while (1); 17292 lanes && root2.shellSuspendCounter++; 17293 resetContextDependencies(); 17294 executionContext = prevExecutionContext; 17295 ReactSharedInternals.H = prevDispatcher; 17296 ReactSharedInternals.A = prevAsyncDispatcher; 17297 markRenderStopped(); 17298 null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()); 17299 return memoizedUpdaters; 17300 } 17301 function workLoopSync() { 17302 for (; null !== workInProgress; ) performUnitOfWork(workInProgress); 17303 } 17304 function renderRootConcurrent(root2, lanes) { 17305 var prevExecutionContext = executionContext; 17306 executionContext |= RenderContext; 17307 var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher(); 17308 if (workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes) { 17309 if (isDevToolsPresent) { 17310 var memoizedUpdaters = root2.memoizedUpdaters; 17311 0 < memoizedUpdaters.size && (restorePendingUpdaters(root2, workInProgressRootRenderLanes), memoizedUpdaters.clear()); 17312 movePendingFibersToMemoized(root2, lanes); 17313 } 17314 workInProgressTransitions = null; 17315 workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; 17316 prepareFreshStack(root2, lanes); 17317 } else 17318 workInProgressRootIsPrerendering = checkIfRootIsPrerendering( 17319 root2, 17320 lanes 17321 ); 17322 markRenderStarted(lanes); 17323 a: do 17324 try { 17325 if (workInProgressSuspendedReason !== NotSuspended && null !== workInProgress) 17326 b: switch (lanes = workInProgress, memoizedUpdaters = workInProgressThrownValue, workInProgressSuspendedReason) { 17327 case SuspendedOnError: 17328 workInProgressSuspendedReason = NotSuspended; 17329 workInProgressThrownValue = null; 17330 throwAndUnwindWorkLoop( 17331 root2, 17332 lanes, 17333 memoizedUpdaters, 17334 SuspendedOnError 17335 ); 17336 break; 17337 case SuspendedOnData: 17338 case SuspendedOnAction: 17339 if (isThenableResolved(memoizedUpdaters)) { 17340 workInProgressSuspendedReason = NotSuspended; 17341 workInProgressThrownValue = null; 17342 replaySuspendedUnitOfWork(lanes); 17343 break; 17344 } 17345 lanes = function() { 17346 workInProgressSuspendedReason !== SuspendedOnData && workInProgressSuspendedReason !== SuspendedOnAction || workInProgressRoot !== root2 || (workInProgressSuspendedReason = SuspendedAndReadyToContinue); 17347 ensureRootIsScheduled(root2); 17348 }; 17349 memoizedUpdaters.then(lanes, lanes); 17350 break a; 17351 case SuspendedOnImmediate: 17352 workInProgressSuspendedReason = SuspendedAndReadyToContinue; 17353 break a; 17354 case SuspendedOnInstance: 17355 workInProgressSuspendedReason = SuspendedOnInstanceAndReadyToContinue; 17356 break a; 17357 case SuspendedAndReadyToContinue: 17358 isThenableResolved(memoizedUpdaters) ? (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, throwAndUnwindWorkLoop( 17359 root2, 17360 lanes, 17361 memoizedUpdaters, 17362 SuspendedAndReadyToContinue 17363 )); 17364 break; 17365 case SuspendedOnInstanceAndReadyToContinue: 17366 var resource = null; 17367 switch (workInProgress.tag) { 17368 case 26: 17369 resource = workInProgress.memoizedState; 17370 case 5: 17371 case 27: 17372 var hostFiber = workInProgress; 17373 if (resource ? preloadResource(resource) : 1) { 17374 workInProgressSuspendedReason = NotSuspended; 17375 workInProgressThrownValue = null; 17376 var sibling = hostFiber.sibling; 17377 if (null !== sibling) workInProgress = sibling; 17378 else { 17379 var returnFiber = hostFiber.return; 17380 null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null; 17381 } 17382 break b; 17383 } 17384 break; 17385 default: 17386 console.error( 17387 "Unexpected type of fiber triggered a suspensey commit. This is a bug in React." 17388 ); 17389 } 17390 workInProgressSuspendedReason = NotSuspended; 17391 workInProgressThrownValue = null; 17392 throwAndUnwindWorkLoop( 17393 root2, 17394 lanes, 17395 memoizedUpdaters, 17396 SuspendedOnInstanceAndReadyToContinue 17397 ); 17398 break; 17399 case SuspendedOnDeprecatedThrowPromise: 17400 workInProgressSuspendedReason = NotSuspended; 17401 workInProgressThrownValue = null; 17402 throwAndUnwindWorkLoop( 17403 root2, 17404 lanes, 17405 memoizedUpdaters, 17406 SuspendedOnDeprecatedThrowPromise 17407 ); 17408 break; 17409 case SuspendedOnHydration: 17410 resetWorkInProgressStack(); 17411 workInProgressRootExitStatus = RootSuspendedAtTheShell; 17412 break a; 17413 default: 17414 throw Error( 17415 "Unexpected SuspendedReason. This is a bug in React." 17416 ); 17417 } 17418 null !== ReactSharedInternals.actQueue ? workLoopSync() : workLoopConcurrentByScheduler(); 17419 break; 17420 } catch (thrownValue$9) { 17421 handleThrow(root2, thrownValue$9); 17422 } 17423 while (1); 17424 resetContextDependencies(); 17425 ReactSharedInternals.H = prevDispatcher; 17426 ReactSharedInternals.A = prevAsyncDispatcher; 17427 executionContext = prevExecutionContext; 17428 if (null !== workInProgress) 17429 return null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderYielded && injectedProfilingHooks.markRenderYielded(), RootInProgress; 17430 markRenderStopped(); 17431 workInProgressRoot = null; 17432 workInProgressRootRenderLanes = 0; 17433 finishQueueingConcurrentUpdates(); 17434 return workInProgressRootExitStatus; 17435 } 17436 function workLoopConcurrentByScheduler() { 17437 for (; null !== workInProgress && !shouldYield(); ) 17438 performUnitOfWork(workInProgress); 17439 } 17440 function performUnitOfWork(unitOfWork) { 17441 var current2 = unitOfWork.alternate; 17442 (unitOfWork.mode & ProfileMode) !== NoMode ? (startProfilerTimer(unitOfWork), current2 = runWithFiberInDEV( 17443 unitOfWork, 17444 beginWork, 17445 current2, 17446 unitOfWork, 17447 entangledRenderLanes 17448 ), stopProfilerTimerIfRunningAndRecordDuration(unitOfWork)) : current2 = runWithFiberInDEV( 17449 unitOfWork, 17450 beginWork, 17451 current2, 17452 unitOfWork, 17453 entangledRenderLanes 17454 ); 17455 unitOfWork.memoizedProps = unitOfWork.pendingProps; 17456 null === current2 ? completeUnitOfWork(unitOfWork) : workInProgress = current2; 17457 } 17458 function replaySuspendedUnitOfWork(unitOfWork) { 17459 var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork); 17460 unitOfWork.memoizedProps = unitOfWork.pendingProps; 17461 null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next; 17462 } 17463 function replayBeginWork(unitOfWork) { 17464 var current2 = unitOfWork.alternate, isProfilingMode = (unitOfWork.mode & ProfileMode) !== NoMode; 17465 isProfilingMode && startProfilerTimer(unitOfWork); 17466 switch (unitOfWork.tag) { 17467 case 15: 17468 case 0: 17469 current2 = replayFunctionComponent( 17470 current2, 17471 unitOfWork, 17472 unitOfWork.pendingProps, 17473 unitOfWork.type, 17474 void 0, 17475 workInProgressRootRenderLanes 17476 ); 17477 break; 17478 case 11: 17479 current2 = replayFunctionComponent( 17480 current2, 17481 unitOfWork, 17482 unitOfWork.pendingProps, 17483 unitOfWork.type.render, 17484 unitOfWork.ref, 17485 workInProgressRootRenderLanes 17486 ); 17487 break; 17488 case 5: 17489 resetHooksOnUnwind(unitOfWork); 17490 default: 17491 unwindInterruptedWork(current2, unitOfWork), unitOfWork = workInProgress = resetWorkInProgress(unitOfWork, entangledRenderLanes), current2 = beginWork(current2, unitOfWork, entangledRenderLanes); 17492 } 17493 isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); 17494 return current2; 17495 } 17496 function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason) { 17497 resetContextDependencies(); 17498 resetHooksOnUnwind(unitOfWork); 17499 thenableState = null; 17500 thenableIndexCounter = 0; 17501 var returnFiber = unitOfWork.return; 17502 try { 17503 if (throwException( 17504 root2, 17505 returnFiber, 17506 unitOfWork, 17507 thrownValue, 17508 workInProgressRootRenderLanes 17509 )) {
17510 workInProgressRootExitStatus = RootFatalErrored; 17511 logUncaughtError( 17512 root2, 17513 createCapturedValueAtFiber(thrownValue, root2.current) 17514 ); 17515 workInProgress = null; 17516 return; 17517 } 17518 } catch (error) { 17519 if (null !== returnFiber) throw workInProgress = returnFiber, error; 17520 workInProgressRootExitStatus = RootFatalErrored; 17521 logUncaughtError( 17522 root2, 17523 createCapturedValueAtFiber(thrownValue, root2.current) 17524 ); 17525 workInProgress = null; 17526 return; 17527 } 17528 if (unitOfWork.flags & 32768) { 17529 if (isHydrating || suspendedReason === SuspendedOnError) root2 = true; 17530 else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912)) 17531 root2 = false; 17532 else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, suspendedReason === SuspendedOnData || suspendedReason === SuspendedOnAction || suspendedReason === SuspendedOnImmediate || suspendedReason === SuspendedOnDeprecatedThrowPromise) 17533 suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384); 17534 unwindUnitOfWork(unitOfWork, root2); 17535 } else completeUnitOfWork(unitOfWork); 17536 } 17537 function completeUnitOfWork(unitOfWork) { 17538 var completedWork = unitOfWork; 17539 do { 17540 if (0 !== (completedWork.flags & 32768)) { 17541 unwindUnitOfWork( 17542 completedWork, 17543 workInProgressRootDidSkipSuspendedSiblings 17544 ); 17545 return; 17546 } 17547 var current2 = completedWork.alternate; 17548 unitOfWork = completedWork.return; 17549 startProfilerTimer(completedWork); 17550 current2 = runWithFiberInDEV( 17551 completedWork, 17552 completeWork, 17553 current2, 17554 completedWork, 17555 entangledRenderLanes 17556 ); 17557 (completedWork.mode & ProfileMode) !== NoMode && stopProfilerTimerIfRunningAndRecordIncompleteDuration(completedWork); 17558 if (null !== current2) { 17559 workInProgress = current2; 17560 return; 17561 } 17562 completedWork = completedWork.sibling; 17563 if (null !== completedWork) { 17564 workInProgress = completedWork; 17565 return; 17566 } 17567 workInProgress = completedWork = unitOfWork; 17568 } while (null !== completedWork); 17569 workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); 17570 } 17571 function unwindUnitOfWork(unitOfWork, skipSiblings) { 17572 do { 17573 var next = unwindWork(unitOfWork.alternate, unitOfWork); 17574 if (null !== next) { 17575 next.flags &= 32767; 17576 workInProgress = next; 17577 return; 17578 } 17579 if ((unitOfWork.mode & ProfileMode) !== NoMode) { 17580 stopProfilerTimerIfRunningAndRecordIncompleteDuration(unitOfWork); 17581 next = unitOfWork.actualDuration; 17582 for (var child = unitOfWork.child; null !== child; ) 17583 next += child.actualDuration, child = child.sibling; 17584 unitOfWork.actualDuration = next; 17585 } 17586 next = unitOfWork.return; 17587 null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null); 17588 if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) { 17589 workInProgress = unitOfWork; 17590 return; 17591 } 17592 workInProgress = unitOfWork = next; 17593 } while (null !== unitOfWork); 17594 workInProgressRootExitStatus = RootSuspendedAtTheShell; 17595 workInProgress = null; 17596 } 17597 function commitRoot(root2, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) { 17598 root2.cancelPendingCommit = null; 17599 do 17600 flushPendingEffects(); 17601 while (pendingEffectsStatus !== NO_PENDING_EFFECTS); 17602 ReactStrictModeWarnings.flushLegacyContextWarning(); 17603 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); 17604 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) 17605 throw Error("Should not already be working."); 17606 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markCommitStarted && injectedProfilingHooks.markCommitStarted(lanes); 17607 if (null === finishedWork) markCommitStopped(); 17608 else { 17609 0 === lanes && console.error( 17610 "finishedLanes should not be empty during a commit. This is a bug in React." 17611 ); 17612 if (finishedWork === root2.current) 17613 throw Error( 17614 "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." 17615 ); 17616 didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes; 17617 didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes; 17618 markRootFinished( 17619 root2, 17620 lanes, 17621 didIncludeRenderPhaseUpdate, 17622 spawnedLane, 17623 updatedLanes, 17624 suspendedRetryLanes 17625 ); 17626 root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0); 17627 pendingFinishedWork = finishedWork; 17628 pendingEffectsRoot = root2; 17629 pendingEffectsLanes = lanes; 17630 pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate; 17631 pendingPassiveTransitions = transitions; 17632 pendingRecoverableErrors = recoverableErrors; 17633 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() { 17634 flushPassiveEffects(); 17635 return null; 17636 })) : (root2.callbackNode = null, root2.callbackPriority = 0);
17637 commitStartTime = now(); 17638 recoverableErrors = 0 !== (finishedWork.flags & 13878); 17639 if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { 17640 recoverableErrors = ReactSharedInternals.T; 17641 ReactSharedInternals.T = null; 17642 transitions = ReactDOMSharedInternals.p; 17643 ReactDOMSharedInternals.p = DiscreteEventPriority; 17644 spawnedLane = executionContext; 17645 executionContext |= CommitContext; 17646 try { 17647 commitBeforeMutationEffects(root2, finishedWork, lanes); 17648 } finally { 17649 executionContext = spawnedLane, ReactDOMSharedInternals.p = transitions, ReactSharedInternals.T = recoverableErrors; 17650 } 17651 } 17652 pendingEffectsStatus = PENDING_MUTATION_PHASE; 17653 flushMutationEffects(); 17654 flushLayoutEffects(); 17655 flushSpawnedWork(); 17656 } 17657 } 17658 function flushMutationEffects() { 17659 if (pendingEffectsStatus === PENDING_MUTATION_PHASE) { 17660 pendingEffectsStatus = NO_PENDING_EFFECTS; 17661 var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878); 17662 if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) { 17663 rootMutationHasEffect = ReactSharedInternals.T; 17664 ReactSharedInternals.T = null; 17665 var previousPriority = ReactDOMSharedInternals.p; 17666 ReactDOMSharedInternals.p = DiscreteEventPriority; 17667 var prevExecutionContext = executionContext; 17668 executionContext |= CommitContext; 17669 try { 17670 inProgressLanes = lanes; 17671 inProgressRoot = root2; 17672 commitMutationEffectsOnFiber(finishedWork, root2); 17673 inProgressRoot = inProgressLanes = null; 17674 lanes = selectionInformation; 17675 var curFocusedElem = getActiveElementDeep(root2.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange; 17676 if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode( 17677 priorFocusedElem.ownerDocument.documentElement, 17678 priorFocusedElem 17679 )) { 17680 if (null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem)) { 17681 var start = priorSelectionRange.start, end = priorSelectionRange.end; 17682 void 0 === end && (end = start); 17683 if ("selectionStart" in priorFocusedElem) 17684 priorFocusedElem.selectionStart = start, priorFocusedElem.selectionEnd = Math.min( 17685 end, 17686 priorFocusedElem.value.length 17687 ); 17688 else { 17689 var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window; 17690 if (win.getSelection) { 17691 var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min( 17692 priorSelectionRange.start, 17693 length 17694 ), end$jscomp$0 = void 0 === priorSelectionRange.end ? start$jscomp$0 : Math.min(priorSelectionRange.end, length); 17695 !selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem); 17696 var startMarker = getNodeForCharacterOffset( 17697 priorFocusedElem, 17698 start$jscomp$0 17699 ), endMarker = getNodeForCharacterOffset( 17700 priorFocusedElem, 17701 end$jscomp$0 17702 ); 17703 if (startMarker && endMarker && (1 !== selection.rangeCount || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) { 17704 var range = doc.createRange(); 17705 range.setStart(startMarker.node, startMarker.offset); 17706 selection.removeAllRanges(); 17707 start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endM
17707arker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range)); 17708 } 17709 } 17710 } 17711 } 17712 doc = []; 17713 for (selection = priorFocusedElem; selection = selection.parentNode; ) 17714 1 === selection.nodeType && doc.push({ 17715 element: selection, 17716 left: selection.scrollLeft, 17717 top: selection.scrollTop 17718 }); 17719 "function" === typeof priorFocusedElem.focus && priorFocusedElem.focus(); 17720 for (priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) { 17721 var info = doc[priorFocusedElem]; 17722 info.element.scrollLeft = info.left; 17723 info.element.scrollTop = info.top; 17724 } 17725 } 17726 _enabled = !!eventsEnabled; 17727 selectionInformation = eventsEnabled = null; 17728 } finally { 17729 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect; 17730 } 17731 } 17732 root2.current = finishedWork; 17733 pendingEffectsStatus = PENDING_LAYOUT_PHASE; 17734 } 17735 } 17736 function flushLayoutEffects() { 17737 if (pendingEffectsStatus === PENDING_LAYOUT_PHASE) { 17738 pendingEffectsStatus = NO_PENDING_EFFECTS; 17739 var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772); 17740 if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) { 17741 rootHasLayoutEffect = ReactSharedInternals.T; 17742 ReactSharedInternals.T = null; 17743 var previousPriority = ReactDOMSharedInternals.p; 17744 ReactDOMSharedInternals.p = DiscreteEventPriority; 17745 var prevExecutionContext = executionContext; 17746 executionContext |= CommitContext; 17747 try { 17748 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && injectedProfilingHooks.markLayoutEffectsStarted(lanes), inProgressLanes = lanes, inProgressRoot = root2, commitLayoutEffectOnFiber( 17749 root2, 17750 finishedWork.alternate, 17751 finishedWork 17752 ), inProgressRoot = inProgressLanes = null, null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && injectedProfilingHooks.markLayoutEffectsStopped(); 17753 } finally { 17754 executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootHasLayoutEffect; 17755 } 17756 } 17757 pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; 17758 } 17759 } 17760 function flushSpawnedWork() { 17761 if (pendingEffectsStatus === PENDING_SPAWNED_WORK || pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE) { 17762 pendingEffectsStatus = NO_PENDING_EFFECTS; 17763 requestPaint(); 17764 var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors, rootDidHavePassiveEffects = 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256); 17765 rootDidHavePassiveEffects ? pendingEffectsStatus = PENDING_PASSIVE_PHASE : (pendingEffectsStatus = NO_PENDING_EFFECTS, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes), nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null); 17766 var remainingLanes = root2.pendingLanes; 17767 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); 17768 rootDidHavePassiveEffects || commitDoubleInvokeEffectsInDEV(root2); 17769 rootDidHavePassiveEffects = lanesToEventPriority(lanes); 17770 finishedWork = finishedWork.stateNode; 17771 if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) 17772 try { 17773 var didError = 128 === (finishedWork.current.flags & 128); 17774 switch (rootDidHavePassiveEffects) { 17775 case DiscreteEventPriority: 17776 var schedulerPriority = ImmediatePriority; 17777 break; 17778 case ContinuousEventPriority: 17779 schedulerPriority = UserBlockingPriority; 17780 break; 17781 case DefaultEventPriority: 17782 schedulerPriority = NormalPriority$1; 17783 break; 17784 case IdleEventPriority: 17785 schedulerPriority = IdlePriority; 17786 break; 17787 default: 17788 schedulerPriority = NormalPriority$1; 17789 } 17790 injectedHook.onCommitFiberRoot( 17791 rendererID, 17792 finishedWork, 17793 schedulerPriority, 17794 didError 17795 ); 17796 } catch (err) { 17797 hasLoggedError || (hasLoggedError = true, console.error( 17798 "React instrumentation encountered an error: %s", 17799 err 17800 )); 17801 } 17802 isDevToolsPresent && root2.memoizedUpdaters.clear(); 17803 onCommitRoot(); 17804 if (null !== recoverableErrors) { 17805 didError = ReactSharedInternals.T; 17806 schedulerPriority = ReactDOMSharedInternals.p; 17807 ReactDOMSharedInternals.p = DiscreteEventPriority; 17808 ReactSharedInternals.T = null; 17809 try { 17810 var onRecoverableError = root2.onRecoverableError; 17811 for (finishedWork = 0; finishedWork < recoverableErrors.length; finishedWork++) { 17812 var recoverableError = recoverableErrors[finishedWork], errorInfo = makeErrorInfo(recoverableError.stack); 17813 runWithFiberInDEV( 17814 recoverableError.source, 17815 onRecoverableError, 17816 recoverableError.value, 17817 errorInfo 17818 ); 17819 } 17820 } finally { 17821 ReactSharedInternals.T = didError, ReactDOMSharedInternals.p = schedulerPriority; 17822 } 17823 } 17824 0 !== (pendingEffectsLanes & 3) && flushPendingEffects(); 17825 ensureRootIsScheduled(root2); 17826 remainingLanes = root2.pendingLanes; 17827 0 !== (lanes & 4194090) && 0 !== (remainingLanes & 42) ? (nestedUpdateScheduled = true, root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2)) : nestedUpdateCount = 0; 17828 flushSyncWorkAcrossRoots_impl(0); 17829 markCommitStopped(); 17830 } 17831 } 17832 function makeErrorInfo(componentStack) { 17833 componentStack = { componentStack }; 17834 Object.defineProperty(componentStack, "digest", { 17835 get: function() { 17836 console.error( 17837 'You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.' 17838 ); 17839 } 17840 }); 17841 return componentStack; 17842 } 17843 function releaseRootPooledCache(root2, remainingLanes) { 17844 0 === (root2.pooledCacheLanes &= remainingLanes) && (remainingLanes = root2.pooledCache, null != remainingLanes && (root2.pooledCache = null, releaseCache(remainingLanes))); 17845 } 17846 function flushPendingEffects(wasDelayedCommit) { 17847 flushMutationEffects(); 17848 flushLayoutEffects(); 17849 flushSpawnedWork(); 17850 return flushPassiveEffects(); 17851 } 17852 function flushPassiveEffects() { 17853 if (pendingEffectsStatus !== PENDING_PASSIVE_PHASE) return false;
17854 var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; 17855 pendingEffectsRemainingLanes = 0; 17856 var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = DefaultEventPriority > renderPriority ? DefaultEventPriority : renderPriority; 17857 renderPriority = ReactSharedInternals.T; 17858 var previousPriority = ReactDOMSharedInternals.p; 17859 try { 17860 ReactDOMSharedInternals.p = priority; 17861 ReactSharedInternals.T = null; 17862 priority = pendingPassiveTransitions; 17863 pendingPassiveTransitions = null; 17864 var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes; 17865 pendingEffectsStatus = NO_PENDING_EFFECTS; 17866 pendingFinishedWork = pendingEffectsRoot = null; 17867 pendingEffectsLanes = 0; 17868 if ((executionContext & (RenderContext | CommitContext)) !== NoContext) 17869 throw Error("Cannot flush passive effects while already rendering."); 17870 isFlushingPassiveEffects = true; 17871 didScheduleUpdateDuringPassiveEffects = false; 17872 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markPassiveEffectsStarted && injectedProfilingHooks.markPassiveEffectsStarted(lanes); 17873 var prevExecutionContext = executionContext; 17874 executionContext |= CommitContext; 17875 commitPassiveUnmountOnFiber(root$jscomp$0.current); 17876 commitPassiveMountOnFiber( 17877 root$jscomp$0, 17878 root$jscomp$0.current, 17879 lanes, 17880 priority 17881 ); 17882 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markPassiveEffectsStopped && injectedProfilingHooks.markPassiveEffectsStopped(); 17883 commitDoubleInvokeEffectsInDEV(root$jscomp$0); 17884 executionContext = prevExecutionContext; 17885 flushSyncWorkAcrossRoots_impl(0, false); 17886 didScheduleUpdateDuringPassiveEffects ? root$jscomp$0 === rootWithPassiveNestedUpdates ? nestedPassiveUpdateCount++ : (nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = root$jscomp$0) : nestedPassiveUpdateCount = 0; 17887 didScheduleUpdateDuringPassiveEffects = isFlushingPassiveEffects = false; 17888 if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot) 17889 try { 17890 injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0); 17891 } catch (err) { 17892 hasLoggedError || (hasLoggedError = true, console.error( 17893 "React instrumentation encountered an error: %s", 17894 err 17895 )); 17896 } 17897 var stateNode = root$jscomp$0.current.stateNode; 17898 stateNode.effectDuration = 0; 17899 stateNode.passiveEffectDuration = 0; 17900 return true; 17901 } finally { 17902 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root2, remainingLanes); 17903 } 17904 } 17905 function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { 17906 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 17907 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2); 17908 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2); 17909 null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber)); 17910 } 17911 function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { 17912 isRunningInsertionEffect = false; 17913 if (3 === sourceFiber.tag) 17914 captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error); 17915 else { 17916 for (; null !== nearestMountedAncestor; ) { 17917 if (3 === nearestMountedAncestor.tag) { 17918 captureCommitPhaseErrorOnRoot( 17919 nearestMountedAncestor, 17920 sourceFiber, 17921 error 17922 ); 17923 return; 17924 } 17925 if (1 === nearestMountedAncestor.tag) { 17926 var instance = nearestMountedAncestor.stateNode; 17927 if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) { 17928 sourceFiber = createCapturedValueAtFiber(error, sourceFiber); 17929 error = createClassErrorUpdate(2); 17930 instance = enqueueUpdate(nearestMountedAncestor, error, 2); 17931 null !== instance && (initializeClassErrorUpdate( 17932 error, 17933 instance, 17934 nearestMountedAncestor, 17935 sourceFiber 17936 ), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance)); 17937 return; 17938 } 17939 } 17940 nearestMountedAncestor = nearestMountedAncestor.return; 17941 } 17942 console.error( 17943 "Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", 17944 error 17945 ); 17946 } 17947 } 17948 function attachPingListener(root2, wakeable, lanes) { 17949 var pingCache = root2.pingCache; 17950 if (null === pingCache) { 17951 pingCache = root2.pingCache = new PossiblyWeakMap(); 17952 var threadIDs = /* @__PURE__ */ new Set(); 17953 pingCache.set(wakeable, threadIDs); 17954 } else 17955 threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs)); 17956 threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = true, threadIDs.add(lanes), pingCache = pingSuspendedRoot.bind(null, root2, wakeable, lanes), isDevToolsPresent && restorePendingUpdaters(root2, lanes), wakeable.then(pingCache, pingCache)); 17957 } 17958 function pingSuspendedRoot(root2, wakeable, pingedLanes) { 17959 var pingCache = root2.pingCache; 17960 null !== pingCache && pingCache.delete(wakeable); 17961 root2.pingedLanes |= root2.suspendedLanes & pingedLanes; 17962 root2.warmLanes &= ~pingedLanes;
17963 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && console.error( 17964 "A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act" 17965 ); 17966 workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && now$1() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS ? (executionContext & RenderContext) === NoContext && prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)); 17967 ensureRootIsScheduled(root2); 17968 } 17969 function retryTimedOutBoundary(boundaryFiber, retryLane) { 17970 0 === retryLane && (retryLane = claimNextRetryLane()); 17971 boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); 17972 null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber)); 17973 } 17974 function retryDehydratedSuspenseBoundary(boundaryFiber) { 17975 var suspenseState = boundaryFiber.memoizedState, retryLane = 0; 17976 null !== suspenseState && (retryLane = suspenseState.retryLane); 17977 retryTimedOutBoundary(boundaryFiber, retryLane); 17978 } 17979 function resolveRetryWakeable(boundaryFiber, wakeable) { 17980 var retryLane = 0; 17981 switch (boundaryFiber.tag) { 17982 case 13: 17983 var retryCache = boundaryFiber.stateNode; 17984 var suspenseState = boundaryFiber.memoizedState; 17985 null !== suspenseState && (retryLane = suspenseState.retryLane); 17986 break; 17987 case 19: 17988 retryCache = boundaryFiber.stateNode; 17989 break; 17990 case 22: 17991 retryCache = boundaryFiber.stateNode._retryCache; 17992 break; 17993 default: 17994 throw Error( 17995 "Pinged unknown suspense boundary type. This is probably a bug in React." 17996 ); 17997 } 17998 null !== retryCache && retryCache.delete(wakeable); 17999 retryTimedOutBoundary(boundaryFiber, retryLane); 18000 } 18001 function recursivelyTraverseAndDoubleInvokeEffectsInDEV(root$jscomp$0, parentFiber, isInStrictMode) { 18002 if (0 !== (parentFiber.subtreeFlags & 67117056)) 18003 for (parentFiber = parentFiber.child; null !== parentFiber; ) { 18004 var root2 = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; 18005 isStrictModeFiber = isInStrictMode || isStrictModeFiber; 18006 22 !== fiber.tag ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( 18007 fiber, 18008 doubleInvokeEffectsOnFiber, 18009 root2, 18010 fiber, 18011 (fiber.mode & NoStrictPassiveEffectsMode) === NoMode 18012 ) : recursivelyTraverseAndDoubleInvokeEffectsInDEV( 18013 root2, 18014 fiber, 18015 isStrictModeFiber 18016 ) : null === fiber.memoizedState && (isStrictModeFiber && fiber.flags & 8192 ? runWithFiberInDEV( 18017 fiber, 18018 doubleInvokeEffectsOnFiber, 18019 root2, 18020 fiber 18021 ) : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( 18022 fiber, 18023 recursivelyTraverseAndDoubleInvokeEffectsInDEV, 18024 root2, 18025 fiber, 18026 isStrictModeFiber 18027 )); 18028 parentFiber = parentFiber.sibling; 18029 } 18030 } 18031 function doubleInvokeEffectsOnFiber(root2, fiber) { 18032 var shouldDoubleInvokePassiveEffects = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : true; 18033 setIsStrictModeForDevtools(true); 18034 try { 18035 disappearLayoutEffects(fiber), shouldDoubleInvokePassiveEffects && disconnectPassiveEffect(fiber), reappearLayoutEffects(root2, fiber.alternate, fiber, false), shouldDoubleInvokePassiveEffects && reconnectPassiveEffects(root2, fiber, 0, null, false, 0); 18036 } finally { 18037 setIsStrictModeForDevtools(false); 18038 } 18039 } 18040 function commitDoubleInvokeEffectsInDEV(root2) { 18041 var doubleInvokeEffects = true; 18042 root2.current.mode & (StrictLegacyMode | StrictEffectsMode) || (doubleInvokeEffects = false); 18043 recursivelyTraverseAndDoubleInvokeEffectsInDEV( 18044 root2, 18045 root2.current, 18046 doubleInvokeEffects 18047 ); 18048 } 18049 function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { 18050 if ((executionContext & RenderContext) === NoContext) { 18051 var tag = fiber.tag; 18052 if (3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag) { 18053 tag = getComponentNameFromFiber(fiber) || "ReactComponent"; 18054 if (null !== didWarnStateUpdateForNotYetMountedComponent) { 18055 if (didWarnStateUpdateForNotYetMountedComponent.has(tag)) return; 18056 didWarnStateUpdateForNotYetMountedComponent.add(tag); 18057 } else didWarnStateUpdateForNotYetMountedComponent = /* @__PURE__ */ new Set([tag]); 18058 runWithFiberInDEV(fiber, function() { 18059 console.error( 18060 "Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead." 18061 ); 18062 }); 18063 } 18064 } 18065 } 18066 function restorePendingUpdaters(root2, lanes) {
18067 isDevToolsPresent && root2.memoizedUpdaters.forEach(function(schedulingFiber) { 18068 addFiberToLanesMap(root2, schedulingFiber, lanes); 18069 }); 18070 } 18071 function scheduleCallback$1(priorityLevel, callback) { 18072 var actQueue = ReactSharedInternals.actQueue; 18073 return null !== actQueue ? (actQueue.push(callback), fakeActCallbackNode$1) : scheduleCallback$3(priorityLevel, callback); 18074 } 18075 function warnIfUpdatesNotWrappedWithActDEV(fiber) { 18076 isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && runWithFiberInDEV(fiber, function() { 18077 console.error( 18078 "An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act", 18079 getComponentNameFromFiber(fiber) 18080 ); 18081 }); 18082 } 18083 function ensureRootIsScheduled(root2) { 18084 root2 !== lastScheduledRoot && null === root2.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2); 18085 mightHavePendingSyncWork = true; 18086 null !== ReactSharedInternals.actQueue ? didScheduleMicrotask_act || (didScheduleMicrotask_act = true, scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || (didScheduleMicrotask = true, scheduleImmediateRootScheduleTask()); 18087 } 18088 function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { 18089 if (!isFlushingWork && mightHavePendingSyncWork) { 18090 isFlushingWork = true; 18091 do { 18092 var didPerformSomeWork = false; 18093 for (var root2 = firstScheduledRoot; null !== root2; ) { 18094 if (0 !== syncTransitionLanes) { 18095 var pendingLanes = root2.pendingLanes; 18096 if (0 === pendingLanes) var nextLanes = 0; 18097 else { 18098 var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes; 18099 nextLanes = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1; 18100 nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes); 18101 nextLanes = nextLanes & 201326741 ? nextLanes & 201326741 | 1 : nextLanes ? nextLanes | 2 : 0; 18102 } 18103 0 !== nextLanes && (didPerformSomeWork = true, performSyncWorkOnRoot(root2, nextLanes)); 18104 } else 18105 nextLanes = workInProgressRootRenderLanes, nextLanes = getNextLanes( 18106 root2, 18107 root2 === workInProgressRoot ? nextLanes : 0, 18108 null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout 18109 ), 0 === (nextLanes & 3) || checkIfRootIsPrerendering(root2, nextLanes) || (didPerformSomeWork = true, performSyncWorkOnRoot(root2, nextLanes)); 18110 root2 = root2.next; 18111 } 18112 } while (didPerformSomeWork); 18113 isFlushingWork = false; 18114 } 18115 } 18116 function processRootScheduleInImmediateTask() { 18117 processRootScheduleInMicrotask(); 18118 } 18119 function processRootScheduleInMicrotask() { 18120 mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = false; 18121 var syncTransitionLanes = 0; 18122 0 !== currentEventTransitionLane && (shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane), currentEventTransitionLane = 0); 18123 for (var currentTime = now$1(), prev = null, root2 = firstScheduledRoot; null !== root2; ) { 18124 var next = root2.next, nextLanes = scheduleTaskForRootDuringMicrotask(root2, currentTime); 18125 if (0 === nextLanes) 18126 root2.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev); 18127 else if (prev = root2, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3)) 18128 mightHavePendingSyncWork = true; 18129 root2 = next; 18130 } 18131 flushSyncWorkAcrossRoots_impl(syncTransitionLanes); 18132 } 18133 function scheduleTaskForRootDuringMicrotask(root2, currentTime) { 18134 for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) { 18135 var index = 31 - clz32(lanes), lane = 1 << index, expirationTime = expirationTimes[index]; 18136 if (-1 === expirationTime) { 18137 if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) 18138 expirationTimes[index] = computeExpirationTime(lane, currentTime); 18139 } else expirationTime <= currentTime && (root2.expiredLanes |= lane); 18140 lanes &= ~lane; 18141 } 18142 currentTime = workInProgressRoot;
18143 suspendedLanes = workInProgressRootRenderLanes; 18144 suspendedLanes = getNextLanes( 18145 root2, 18146 root2 === currentTime ? suspendedLanes : 0, 18147 null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout 18148 ); 18149 pingedLanes = root2.callbackNode; 18150 if (0 === suspendedLanes || root2 === currentTime && (workInProgressSuspendedReason === SuspendedOnData || workInProgressSuspendedReason === SuspendedOnAction) || null !== root2.cancelPendingCommit) 18151 return null !== pingedLanes && cancelCallback(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0; 18152 if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root2, suspendedLanes)) { 18153 currentTime = suspendedLanes & -suspendedLanes; 18154 if (currentTime !== root2.callbackPriority || null !== ReactSharedInternals.actQueue && pingedLanes !== fakeActCallbackNode) 18155 cancelCallback(pingedLanes); 18156 else return currentTime; 18157 switch (lanesToEventPriority(suspendedLanes)) { 18158 case DiscreteEventPriority: 18159 case ContinuousEventPriority: 18160 suspendedLanes = UserBlockingPriority; 18161 break; 18162 case DefaultEventPriority: 18163 suspendedLanes = NormalPriority$1; 18164 break; 18165 case IdleEventPriority: 18166 suspendedLanes = IdlePriority; 18167 break; 18168 default: 18169 suspendedLanes = NormalPriority$1; 18170 } 18171 pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2); 18172 null !== ReactSharedInternals.actQueue ? (ReactSharedInternals.actQueue.push(pingedLanes), suspendedLanes = fakeActCallbackNode) : suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); 18173 root2.callbackPriority = currentTime; 18174 root2.callbackNode = suspendedLanes; 18175 return currentTime; 18176 } 18177 null !== pingedLanes && cancelCallback(pingedLanes); 18178 root2.callbackPriority = 2; 18179 root2.callbackNode = null; 18180 return 2; 18181 } 18182 function performWorkOnRootViaSchedulerTask(root2, didTimeout) { 18183 nestedUpdateScheduled = currentUpdateIsNested = false; 18184 if (pendingEffectsStatus !== NO_PENDING_EFFECTS && pendingEffectsStatus !== PENDING_PASSIVE_PHASE) 18185 return root2.callbackNode = null, root2.callbackPriority = 0, null; 18186 var originalCallbackNode = root2.callbackNode; 18187 if (flushPendingEffects() && root2.callbackNode !== originalCallbackNode) 18188 return null; 18189 var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes; 18190 workInProgressRootRenderLanes$jscomp$0 = getNextLanes( 18191 root2, 18192 root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0, 18193 null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout 18194 ); 18195 if (0 === workInProgressRootRenderLanes$jscomp$0) return null; 18196 performWorkOnRoot( 18197 root2, 18198 workInProgressRootRenderLanes$jscomp$0, 18199 didTimeout 18200 ); 18201 scheduleTaskForRootDuringMicrotask(root2, now$1()); 18202 return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null; 18203 } 18204 function performSyncWorkOnRoot(root2, lanes) { 18205 if (flushPendingEffects()) return null; 18206 currentUpdateIsNested = nestedUpdateScheduled; 18207 nestedUpdateScheduled = false; 18208 performWorkOnRoot(root2, lanes, true); 18209 } 18210 function cancelCallback(callbackNode) { 18211 callbackNode !== fakeActCallbackNode && null !== callbackNode && cancelCallback$1(callbackNode); 18212 } 18213 function scheduleImmediateRootScheduleTask() { 18214 null !== ReactSharedInternals.actQueue && ReactSharedInternals.actQueue.push(function() { 18215 processRootScheduleInMicrotask(); 18216 return null; 18217 }); 18218 scheduleMicrotask(function() { 18219 (executionContext & (RenderContext | CommitContext)) !== NoContext ? scheduleCallback$3( 18220 ImmediatePriority, 18221 processRootScheduleInImmediateTask 18222 ) : processRootScheduleInMicrotask(); 18223 }); 18224 } 18225 function requestTransitionLane() { 18226 0 === currentEventTransitionLane && (currentEventTransitionLane = claimNextTransitionLane()); 18227 return currentEventTransitionLane; 18228 } 18229 function coerceFormActionProp(actionProp) { 18230 if (null == actionProp || "symbol" === typeof actionProp || "boolean" === typeof actionProp) 18231 return null; 18232 if ("function" === typeof actionProp) return actionProp; 18233 checkAttributeStringCoercion(actionProp, "action"); 18234 return sanitizeURL("" + actionProp); 18235 } 18236 function createFormDataWithSubmitter(form, submitter) { 18237 var temp = submitter.ownerDocument.createElement("input"); 18238 temp.name = submitter.name; 18239 temp.value = submitter.value; 18240 form.id && temp.setAttribute("form", form.id); 18241 submitter.parentNode.insertBefore(temp, submitter); 18242 form = new FormData(form); 18243 temp.parentNode.removeChild(temp); 18244 return form; 18245 } 18246 function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEvent, nativeEventTarget) { 18247 if ("submit" === domEventName && maybeTargetInst && maybeTargetInst.stateNode === nativeEventTarget) { 18248 var action = coerceFormActionProp( 18249 (nativeEventTarget[internalPropsKey] || null).action 18250 ), submitter = nativeEvent.submitter; 18251 submitter && (domEventName = (domEventName = submitter[internalPropsKey] || null) ? coerceFormActionProp(domEventName.formAction) : submitter.getAttribute("formAction"), null !== domEventName && (action = domEventName, submitter = null)); 18252 var event = new SyntheticEvent( 18253 "action", 18254 "action", 18255 null, 18256 nativeEvent, 18257 nativeEventTarget 18258 ); 18259 dispatchQueue.push({ 18260 event, 18261 listeners: [ 18262 { 18263 instance: null, 18264 listener: function() { 18265 if (nativeEvent.defaultPrevented) { 18266 if (0 !== currentEventTransitionLane) { 18267 var formData = submitter ? createFormDataWithSubmitter( 18268 nativeEventTarget, 18269 submitter 18270 ) : new FormData(nativeEventTarget), pendingState = { 18271 pending: true, 18272 data: formData, 18273 method: nativeEventTarget.method, 18274 action 18275 }; 18276 Object.freeze(pendingState); 18277 startHostTransition( 18278 maybeTargetInst, 18279 pendingState, 18280 null, 18281 formData 18282 ); 18283 } 18284 } else 18285 "function" === typeof action && (event.preventDefault(), formData = submitter ? createFormDataWithSubmitter( 18286 nativeEventTarget, 18287 submitter 18288 ) : new FormData(nativeEventTarget), pendingState = { 18289 pending: true, 18290 data: formData, 18291 method: nativeEventTarget.method, 18292 action 18293 }, Object.freeze(pendingState), startHostTransition( 18294 maybeTargetInst, 18295 pendingState, 18296 action, 18297 formData 18298 )); 18299 }, 18300 currentTarget: nativeEventTarget 18301 } 18302 ] 18303 }); 18304 } 18305 } 18306 function executeDispatch(event, listener, currentTarget) { 18307 event.currentTarget = currentTarget; 18308 try { 18309 listener(event); 18310 } catch (error) { 18311 reportGlobalError(error); 18312 } 18313 event.currentTarget = null; 18314 }
18315 function processDispatchQueue(dispatchQueue, eventSystemFlags) { 18316 eventSystemFlags = 0 !== (eventSystemFlags & 4); 18317 for (var i = 0; i < dispatchQueue.length; i++) { 18318 var _dispatchQueue$i = dispatchQueue[i]; 18319 a: { 18320 var previousInstance = void 0, event = _dispatchQueue$i.event; 18321 _dispatchQueue$i = _dispatchQueue$i.listeners; 18322 if (eventSystemFlags) 18323 for (var i$jscomp$0 = _dispatchQueue$i.length - 1; 0 <= i$jscomp$0; i$jscomp$0--) { 18324 var _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0], instance = _dispatchListeners$i.instance, currentTarget = _dispatchListeners$i.currentTarget; 18325 _dispatchListeners$i = _dispatchListeners$i.listener; 18326 if (instance !== previousInstance && event.isPropagationStopped()) 18327 break a; 18328 null !== instance ? runWithFiberInDEV( 18329 instance, 18330 executeDispatch, 18331 event, 18332 _dispatchListeners$i, 18333 currentTarget 18334 ) : executeDispatch(event, _dispatchListeners$i, currentTarget); 18335 previousInstance = instance; 18336 } 18337 else 18338 for (i$jscomp$0 = 0; i$jscomp$0 < _dispatchQueue$i.length; i$jscomp$0++) { 18339 _dispatchListeners$i = _dispatchQueue$i[i$jscomp$0]; 18340 instance = _dispatchListeners$i.instance; 18341 currentTarget = _dispatchListeners$i.currentTarget; 18342 _dispatchListeners$i = _dispatchListeners$i.listener; 18343 if (instance !== previousInstance && event.isPropagationStopped()) 18344 break a; 18345 null !== instance ? runWithFiberInDEV( 18346 instance, 18347 executeDispatch, 18348 event, 18349 _dispatchListeners$i, 18350 currentTarget 18351 ) : executeDispatch(event, _dispatchListeners$i, currentTarget); 18352 previousInstance = instance; 18353 } 18354 } 18355 } 18356 } 18357 function listenToNonDelegatedEvent(domEventName, targetElement) { 18358 nonDelegatedEvents.has(domEventName) || console.error( 18359 'Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.', 18360 domEventName 18361 ); 18362 var listenerSet = targetElement[internalEventHandlersKey]; 18363 void 0 === listenerSet && (listenerSet = targetElement[internalEventHandlersKey] = /* @__PURE__ */ new Set()); 18364 var listenerSetKey = domEventName + "__bubble"; 18365 listenerSet.has(listenerSetKey) || (addTrappedEventListener(targetElement, domEventName, 2, false), listenerSet.add(listenerSetKey)); 18366 } 18367 function listenToNativeEvent(domEventName, isCapturePhaseListener, target) { 18368 nonDelegatedEvents.has(domEventName) && !isCapturePhaseListener && console.error( 18369 'Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.', 18370 domEventName 18371 ); 18372 var eventSystemFlags = 0; 18373 isCapturePhaseListener && (eventSystemFlags |= 4); 18374 addTrappedEventListener( 18375 target, 18376 domEventName, 18377 eventSystemFlags, 18378 isCapturePhaseListener 18379 ); 18380 } 18381 function listenToAllSupportedEvents(rootContainerElement) { 18382 if (!rootContainerElement[listeningMarker]) { 18383 rootContainerElement[listeningMarker] = true; 18384 allNativeEvents.forEach(function(domEventName) { 18385 "selectionchange" !== domEventName && (nonDelegatedEvents.has(domEventName) || listenToNativeEvent(domEventName, false, rootContainerElement), listenToNativeEvent(domEventName, true, rootContainerElement)); 18386 }); 18387 var ownerDocument = 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 18388 null === ownerDocument || ownerDocument[listeningMarker] || (ownerDocument[listeningMarker] = true, listenToNativeEvent("selectionchange", false, ownerDocument)); 18389 } 18390 } 18391 function addTrappedEventListener(targetContainer, domEventName, eventSystemFlags, isCapturePhaseListener) { 18392 switch (getEventPriority(domEventName)) { 18393 case DiscreteEventPriority: 18394 var listenerWrapper = dispatchDiscreteEvent; 18395 break; 18396 case ContinuousEventPriority: 18397 listenerWrapper = dispatchContinuousEvent; 18398 break; 18399 default: 18400 listenerWrapper = dispatchEvent; 18401 } 18402 eventSystemFlags = listenerWrapper.bind( 18403 null, 18404 domEventName, 18405 eventSystemFlags, 18406 targetContainer 18407 ); 18408 listenerWrapper = void 0; 18409 !passiveBrowserEventsSupported || "touchstart" !== domEventName && "touchmove" !== domEventName && "wheel" !== domEventName || (listenerWrapper = true); 18410 isCapturePhaseListener ? void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 18411 capture: true, 18412 passive: listenerWrapper 18413 }) : targetContainer.addEventListener(domEventName, eventSystemFlags, true) : void 0 !== listenerWrapper ? targetContainer.addEventListener(domEventName, eventSystemFlags, { 18414 passive: listenerWrapper 18415 }) : targetContainer.addEventListener( 18416 domEventName, 18417 eventSystemFlags, 18418 false 18419 ); 18420 } 18421 function dispatchEventForPluginEventSystem(domEventName, eventSystemFlags, nativeEvent, targetInst$jscomp$0, targetContainer) { 18422 var ancestorInst = targetInst$jscomp$0; 18423 if (0 === (eventSystemFlags & 1) && 0 === (eventSystemFlags & 2) && null !== targetInst$jscomp$0) 18424 a: for (; ; ) { 18425 if (null === targetInst$jscomp$0) return; 18426 var nodeTag = targetInst$jscomp$0.tag; 18427 if (3 === nodeTag || 4 === nodeTag) { 18428 var container = targetInst$jscomp$0.stateNode.containerInfo; 18429 if (container === targetContainer) break; 18430 if (4 === nodeTag) 18431 for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) { 18432 var grandTag = nodeTag.tag; 18433 if ((3 === grandTag || 4 === grandTag) && nodeTag.stateNode.containerInfo === targetContainer) 18434 return; 18435 nodeTag = nodeTag.return; 18436 } 18437 for (; null !== container; ) { 18438 nodeTag = getClosestInstanceFromNode(container); 18439 if (null === nodeTag) return; 18440 grandTag = nodeTag.tag; 18441 if (5 === grandTag || 6 === grandTag || 26 === grandTag || 27 === grandTag) { 18442 targetInst$jscomp$0 = ancestorInst = nodeTag; 18443 continue a; 18444 } 18445 container = container.parentNode; 18446 } 18447 } 18448 targetInst$jscomp$0 = targetInst$jscomp$0.return; 18449 } 18450 batchedUpdates$1(function() { 18451 var targetInst = ancestorInst, nativeEventTarget = getEventTarget(nativeEvent), dispatchQueue = []; 18452 a: { 18453 var reactName = topLevelEventsToReactNames.get(domEventName); 18454 if (void 0 !== reactName) { 18455 var SyntheticEventCtor = SyntheticEvent, reactEventType = domEventName; 18456 switch (domEventName) { 18457 case "keypress":
vendor: 15,097 bytes, lines 18458-18754
18458 if (0 === getEventCharCode(nativeEvent)) break a; 18459 case "keydown": 18460 case "keyup": 18461 SyntheticEventCtor = SyntheticKeyboardEvent; 18462 break; 18463 case "focusin": 18464 reactEventType = "focus"; 18465 SyntheticEventCtor = SyntheticFocusEvent; 18466 break; 18467 case "focusout": 18468 reactEventType = "blur"; 18469 SyntheticEventCtor = SyntheticFocusEvent; 18470 break; 18471 case "beforeblur": 18472 case "afterblur": 18473 SyntheticEventCtor = SyntheticFocusEvent; 18474 break; 18475 case "click": 18476 if (2 === nativeEvent.button) break a; 18477 case "auxclick": 18478 case "dblclick": 18479 case "mousedown": 18480 case "mousemove": 18481 case "mouseup": 18482 case "mouseout": 18483 case "mouseover": 18484 case "contextmenu": 18485 SyntheticEventCtor = SyntheticMouseEvent; 18486 break; 18487 case "drag": 18488 case "dragend": 18489 case "dragenter": 18490 case "dragexit": 18491 case "dragleave": 18492 case "dragover": 18493 case "dragstart": 18494 case "drop": 18495 SyntheticEventCtor = SyntheticDragEvent; 18496 break; 18497 case "touchcancel": 18498 case "touchend": 18499 case "touchmove": 18500 case "touchstart": 18501 SyntheticEventCtor = SyntheticTouchEvent; 18502 break; 18503 case ANIMATION_END: 18504 case ANIMATION_ITERATION: 18505 case ANIMATION_START: 18506 SyntheticEventCtor = SyntheticAnimationEvent; 18507 break; 18508 case TRANSITION_END: 18509 SyntheticEventCtor = SyntheticTransitionEvent; 18510 break; 18511 case "scroll": 18512 case "scrollend": 18513 SyntheticEventCtor = SyntheticUIEvent; 18514 break; 18515 case "wheel": 18516 SyntheticEventCtor = SyntheticWheelEvent; 18517 break; 18518 case "copy": 18519 case "cut": 18520 case "paste": 18521 SyntheticEventCtor = SyntheticClipboardEvent; 18522 break; 18523 case "gotpointercapture": 18524 case "lostpointercapture": 18525 case "pointercancel": 18526 case "pointerdown": 18527 case "pointermove": 18528 case "pointerout": 18529 case "pointerover": 18530 case "pointerup": 18531 SyntheticEventCtor = SyntheticPointerEvent; 18532 break; 18533 case "toggle": 18534 case "beforetoggle": 18535 SyntheticEventCtor = SyntheticToggleEvent; 18536 } 18537 var inCapturePhase = 0 !== (eventSystemFlags & 4), accumulateTargetOnly = !inCapturePhase && ("scroll" === domEventName || "scrollend" === domEventName), reactEventName = inCapturePhase ? null !== reactName ? reactName + "Capture" : null : reactName; 18538 inCapturePhase = []; 18539 for (var instance = targetInst, lastHostComponent; null !== instance; ) { 18540 var _instance2 = instance; 18541 lastHostComponent = _instance2.stateNode; 18542 _instance2 = _instance2.tag; 18543 5 !== _instance2 && 26 !== _instance2 && 27 !== _instance2 || null === lastHostComponent || null === reactEventName || (_instance2 = getListener(instance, reactEventName), null != _instance2 && inCapturePhase.push( 18544 createDispatchListener( 18545 instance, 18546 _instance2, 18547 lastHostComponent 18548 ) 18549 )); 18550 if (accumulateTargetOnly) break; 18551 instance = instance.return; 18552 } 18553 0 < inCapturePhase.length && (reactName = new SyntheticEventCtor( 18554 reactName, 18555 reactEventType, 18556 null, 18557 nativeEvent, 18558 nativeEventTarget 18559 ), dispatchQueue.push({ 18560 event: reactName, 18561 listeners: inCapturePhase 18562 })); 18563 } 18564 } 18565 if (0 === (eventSystemFlags & 7)) { 18566 a: { 18567 reactName = "mouseover" === domEventName || "pointerover" === domEventName; 18568 SyntheticEventCtor = "mouseout" === domEventName || "pointerout" === domEventName; 18569 if (reactName && nativeEvent !== currentReplayingEvent && (reactEventType = nativeEvent.relatedTarget || nativeEvent.fromElement) && (getClosestInstanceFromNode(reactEventType) || reactEventType[internalContainerInstanceKey])) 18570 break a; 18571 if (SyntheticEventCtor || reactName) { 18572 reactName = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget : (reactName = nativeEventTarget.ownerDocument) ? reactName.defaultView || reactName.parentWindow : window; 18573 if (SyntheticEventCtor) { 18574 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)) 18575 reactEventType = null; 18576 } else SyntheticEventCtor = null, reactEventType = targetInst; 18577 if (SyntheticEventCtor !== reactEventType) { 18578 inCapturePhase = SyntheticMouseEvent; 18579 _instance2 = "onMouseLeave"; 18580 reactEventName = "onMouseEnter"; 18581 instance = "mouse"; 18582 if ("pointerout" === domEventName || "pointerover" === domEventName) 18583 inCapturePhase = SyntheticPointerEvent, _instance2 = "onPointerLeave", reactEventName = "onPointerEnter", instance = "pointer"; 18584 accumulateTargetOnly = null == SyntheticEventCtor ? reactName : getNodeFromInstance(SyntheticEventCtor); 18585 lastHostComponent = null == reactEventType ? reactName : getNodeFromInstance(reactEventType); 18586 reactName = new inCapturePhase( 18587 _instance2, 18588 instance + "leave", 18589 SyntheticEventCtor, 18590 nativeEvent, 18591 nativeEventTarget 18592 ); 18593 reactName.target = accumulateTargetOnly; 18594 reactName.relatedTarget = lastHostComponent; 18595 _instance2 = null; 18596 getClosestInstanceFromNode(nativeEventTarget) === targetInst && (inCapturePhase = new inCapturePhase( 18597 reactEventName, 18598 instance + "enter", 18599 reactEventType, 18600 nativeEvent, 18601 nativeEventTarget 18602 ), inCapturePhase.target = lastHostComponent, inCapturePhase.relatedTarget = accumulateTargetOnly, _instance2 = inCapturePhase); 18603 accumulateTargetOnly = _instance2; 18604 if (SyntheticEventCtor && reactEventType) 18605 b: { 18606 inCapturePhase = SyntheticEventCtor; 18607 reactEventName = reactEventType; 18608 instance = 0; 18609 for (lastHostComponent = inCapturePhase; lastHostComponent; lastHostComponent = getParent(lastHostComponent)) 18610 instance++; 18611 lastHostComponent = 0; 18612 for (_instance2 = reactEventName; _instance2; _instance2 = getParent(_instance2)) 18613 lastHostComponent++; 18614 for (; 0 < instance - lastHostComponent; ) 18615 inCapturePhase = getParent(inCapturePhase), instance--; 18616 for (; 0 < lastHostComponent - instance; ) 18617 reactEventName = getParent(reactEventName), lastHostComponent--; 18618 for (; instance--; ) { 18619 if (inCapturePhase === reactEventName || null !== reactEventName && inCapturePhase === reactEventName.alternate) 18620 break b; 18621 inCapturePhase = getParent(inCapturePhase); 18622 reactEventName = getParent(reactEventName); 18623 } 18624 inCapturePhase = null; 18625 } 18626 else inCapturePhase = null; 18627 null !== SyntheticEventCtor && accumulateEnterLeaveListenersForEvent( 18628 dispatchQueue, 18629 reactName, 18630 SyntheticEventCtor, 18631 inCapturePhase, 18632 false 18633 ); 18634 null !== reactEventType && null !== accumulateTargetOnly && accumulateEnterLeaveListenersForEvent( 18635 dispatchQueue, 18636 accumulateTargetOnly, 18637 reactEventType, 18638 inCapturePhase, 18639 true 18640 ); 18641 } 18642 } 18643 } 18644 a: { 18645 reactName = targetInst ? getNodeFromInstance(targetInst) : window; 18646 SyntheticEventCtor = reactName.nodeName && reactName.nodeName.toLowerCase(); 18647 if ("select" === SyntheticEventCtor || "input" === SyntheticEventCtor && "file" === reactName.type) 18648 var getTargetInstFunc = getTargetInstForChangeEvent; 18649 else if (isTextInputElement(reactName)) 18650 if (isInputEventSupported) 18651 getTargetInstFunc = getTargetInstForInputOrChangeEvent; 18652 else { 18653 getTargetInstFunc = getTargetInstForInputEventPolyfill; 18654 var handleEventFunc = handleEventsForInputEventPolyfill; 18655 } 18656 else 18657 SyntheticEventCtor = reactName.nodeName, !SyntheticEventCtor || "input" !== SyntheticEventCtor.toLowerCase() || "checkbox" !== reactName.type && "radio" !== reactName.type ? targetInst && isCustomElement(targetInst.elementType) && (getTargetInstFunc = getTargetInstForChangeEvent) : getTargetInstFunc = getTargetInstForClickEvent; 18658 if (getTargetInstFunc && (getTargetInstFunc = getTargetInstFunc(domEventName, targetInst))) { 18659 createAndAccumulateChangeEvent( 18660 dispatchQueue, 18661 getTargetInstFunc, 18662 nativeEvent, 18663 nativeEventTarget 18664 ); 18665 break a; 18666 } 18667 handleEventFunc && handleEventFunc(domEventName, reactName, targetInst); 18668 "focusout" === domEventName && targetInst && "number" === reactName.type && null != targetInst.memoizedProps.value && setDefaultValue(reactName, "number", reactName.value); 18669 } 18670 handleEventFunc = targetInst ? getNodeFromInstance(targetInst) : window; 18671 switch (domEventName) { 18672 case "focusin": 18673 if (isTextInputElement(handleEventFunc) || "true" === handleEventFunc.contentEditable) 18674 activeElement = handleEventFunc, activeElementInst = targetInst, lastSelection = null; 18675 break; 18676 case "focusout": 18677 lastSelection = activeElementInst = activeElement = null; 18678 break; 18679 case "mousedown": 18680 mouseDown = true; 18681 break; 18682 case "contextmenu": 18683 case "mouseup": 18684 case "dragend": 18685 mouseDown = false; 18686 constructSelectEvent( 18687 dispatchQueue, 18688 nativeEvent, 18689 nativeEventTarget 18690 ); 18691 break; 18692 case "selectionchange": 18693 if (skipSelectionChangeEvent) break; 18694 case "keydown": 18695 case "keyup": 18696 constructSelectEvent( 18697 dispatchQueue, 18698 nativeEvent, 18699 nativeEventTarget 18700 ); 18701 } 18702 var fallbackData; 18703 if (canUseCompositionEvent) 18704 b: { 18705 switch (domEventName) { 18706 case "compositionstart": 18707 var eventType = "onCompositionStart"; 18708 break b; 18709 case "compositionend": 18710 eventType = "onCompositionEnd"; 18711 break b; 18712 case "compositionupdate": 18713 eventType = "onCompositionUpdate"; 18714 break b; 18715 } 18716 eventType = void 0; 18717 } 18718 else 18719 isComposing ? isFallbackCompositionEnd(domEventName, nativeEvent) && (eventType = "onCompositionEnd") : "keydown" === domEventName && nativeEvent.keyCode === START_KEYCODE && (eventType = "onCompositionStart"); 18720 eventType && (useFallbackCompositionData && "ko" !== nativeEvent.locale && (isComposing || "onCompositionStart" !== eventType ? "onCompositionEnd" === eventType && isComposing && (fallbackData = getData()) : (root = nativeEventTarget, startText = "value" in root ? root.value : root.textContent, isComposing = true)), handleEventFunc = accumulateTwoPhaseListeners( 18721 targetInst, 18722 eventType 18723 ), 0 < handleEventFunc.length && (eventType = new SyntheticCompositionEvent( 18724 eventType, 18725 domEventName, 18726 null, 18727 nativeEvent, 18728 nativeEventTarget 18729 ), dispatchQueue.push({ 18730 event: eventType, 18731 listeners: handleEventFunc 18732 }), fallbackData ? eventType.data = fallbackData : (fallbackData = getDataFromCustomEvent(nativeEvent), null !== fallbackData && (eventType.data = fallbackData)))); 18733 if (fallbackData = canUseTextInputEvent ? getNativeBeforeInputChars(domEventName, nativeEvent) : getFallbackBeforeInputChars(domEventName, nativeEvent)) 18734 eventType = accumulateTwoPhaseListeners( 18735 targetInst, 18736 "onBeforeInput" 18737 ), 0 < eventType.length && (handleEventFunc = new SyntheticInputEvent( 18738 "onBeforeInput", 18739 "beforeinput", 18740 null, 18741 nativeEvent, 18742 nativeEventTarget 18743 ), dispatchQueue.push({ 18744 event: handleEventFunc, 18745 listeners: eventType 18746 }), handleEventFunc.data = fallbackData); 18747 extractEvents$1( 18748 dispatchQueue, 18749 domEventName, 18750 targetInst, 18751 nativeEvent, 18752 nativeEventTarget 18753 ); 18754 }
18755 processDispatchQueue(dispatchQueue, eventSystemFlags); 18756 }); 18757 } 18758 function createDispatchListener(instance, listener, currentTarget) { 18759 return { 18760 instance, 18761 listener, 18762 currentTarget 18763 }; 18764 } 18765 function accumulateTwoPhaseListeners(targetFiber, reactName) { 18766 for (var captureName = reactName + "Capture", listeners = []; null !== targetFiber; ) { 18767 var _instance3 = targetFiber, stateNode = _instance3.stateNode; 18768 _instance3 = _instance3.tag; 18769 5 !== _instance3 && 26 !== _instance3 && 27 !== _instance3 || null === stateNode || (_instance3 = getListener(targetFiber, captureName), null != _instance3 && listeners.unshift( 18770 createDispatchListener(targetFiber, _instance3, stateNode) 18771 ), _instance3 = getListener(targetFiber, reactName), null != _instance3 && listeners.push( 18772 createDispatchListener(targetFiber, _instance3, stateNode) 18773 )); 18774 if (3 === targetFiber.tag) return listeners; 18775 targetFiber = targetFiber.return; 18776 } 18777 return []; 18778 } 18779 function getParent(inst) { 18780 if (null === inst) return null; 18781 do 18782 inst = inst.return; 18783 while (inst && 5 !== inst.tag && 27 !== inst.tag); 18784 return inst ? inst : null; 18785 } 18786 function accumulateEnterLeaveListenersForEvent(dispatchQueue, event, target, common, inCapturePhase) { 18787 for (var registrationName = event._reactName, listeners = []; null !== target && target !== common; ) { 18788 var _instance4 = target, alternate = _instance4.alternate, stateNode = _instance4.stateNode; 18789 _instance4 = _instance4.tag; 18790 if (null !== alternate && alternate === common) break; 18791 5 !== _instance4 && 26 !== _instance4 && 27 !== _instance4 || null === stateNode || (alternate = stateNode, inCapturePhase ? (stateNode = getListener(target, registrationName), null != stateNode && listeners.unshift( 18792 createDispatchListener(target, stateNode, alternate) 18793 )) : inCapturePhase || (stateNode = getListener(target, registrationName), null != stateNode && listeners.push( 18794 createDispatchListener(target, stateNode, alternate) 18795 ))); 18796 target = target.return; 18797 } 18798 0 !== listeners.length && dispatchQueue.push({ event, listeners }); 18799 } 18800 function validatePropertiesInDevelopment(type, props) { 18801 validateProperties$2(type, props); 18802 "input" !== type && "textarea" !== type && "select" !== type || null == props || null !== props.value || didWarnValueNull || (didWarnValueNull = true, "select" === type && props.multiple ? console.error( 18803 "`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", 18804 type 18805 ) : console.error( 18806 "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", 18807 type 18808 )); 18809 var eventRegistry = { 18810 registrationNameDependencies, 18811 possibleRegistrationNames 18812 }; 18813 isCustomElement(type) || "string" === typeof props.is || warnUnknownProperties(type, props, eventRegistry); 18814 props.contentEditable && !props.suppressContentEditableWarning && null != props.children && console.error( 18815 "A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional." 18816 ); 18817 } 18818 function warnForPropDifference(propName, serverValue, clientValue, serverDifferences) { 18819 serverValue !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(serverValue) !== clientValue && (serverDifferences[propName] = serverValue)); 18820 } 18821 function warnForExtraAttributes(domElement, attributeNames, serverDifferences) {
18822 attributeNames.forEach(function(attributeName) { 18823 serverDifferences[getPropNameFromAttributeName(attributeName)] = "style" === attributeName ? getStylesObjectFromElement(domElement) : domElement.getAttribute(attributeName); 18824 }); 18825 } 18826 function warnForInvalidEventListener(registrationName, listener) { 18827 false === listener ? console.error( 18828 "Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.", 18829 registrationName, 18830 registrationName, 18831 registrationName 18832 ) : console.error( 18833 "Expected `%s` listener to be a function, instead got a value of `%s` type.", 18834 registrationName, 18835 typeof listener 18836 ); 18837 } 18838 function normalizeHTML(parent, html) { 18839 parent = parent.namespaceURI === MATH_NAMESPACE || parent.namespaceURI === SVG_NAMESPACE ? parent.ownerDocument.createElementNS( 18840 parent.namespaceURI, 18841 parent.tagName 18842 ) : parent.ownerDocument.createElement(parent.tagName); 18843 parent.innerHTML = html; 18844 return parent.innerHTML; 18845 } 18846 function normalizeMarkupForTextOrAttribute(markup) { 18847 willCoercionThrow(markup) && (console.error( 18848 "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.", 18849 typeName(markup) 18850 ), testStringCoercion(markup)); 18851 return ("string" === typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 18852 } 18853 function checkForUnmatchedText(serverText, clientText) { 18854 clientText = normalizeMarkupForTextOrAttribute(clientText); 18855 return normalizeMarkupForTextOrAttribute(serverText) === clientText ? true : false; 18856 } 18857 function noop$1() { 18858 } 18859 function setProp(domElement, tag, key, value, props, prevValue) { 18860 switch (key) { 18861 case "children": 18862 if ("string" === typeof value) 18863 validateTextNesting(value, tag, false), "body" === tag || "textarea" === tag && "" === value || setTextContent(domElement, value); 18864 else if ("number" === typeof value || "bigint" === typeof value) 18865 validateTextNesting("" + value, tag, false), "body" !== tag && setTextContent(domElement, "" + value); 18866 break; 18867 case "className": 18868 setValueForKnownAttribute(domElement, "class", value); 18869 break; 18870 case "tabIndex": 18871 setValueForKnownAttribute(domElement, "tabindex", value); 18872 break; 18873 case "dir": 18874 case "role": 18875 case "viewBox": 18876 case "width": 18877 case "height": 18878 setValueForKnownAttribute(domElement, key, value); 18879 break; 18880 case "style": 18881 setValueForStyles(domElement, value, prevValue); 18882 break; 18883 case "data": 18884 if ("object" !== tag) { 18885 setValueForKnownAttribute(domElement, "data", value); 18886 break; 18887 } 18888 case "src": 18889 case "href": 18890 if ("" === value && ("a" !== tag || "href" !== key)) { 18891 "src" === key ? console.error( 18892 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', 18893 key, 18894 key 18895 ) : console.error( 18896 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', 18897 key, 18898 key 18899 ); 18900 domElement.removeAttribute(key); 18901 break; 18902 } 18903 if (null == value || "function" === typeof value || "symbol" === typeof value || "boolean" === typeof value) { 18904 domElement.removeAttribute(key); 18905 break; 18906 } 18907 checkAttributeStringCoercion(value, key); 18908 value = sanitizeURL("" + value); 18909 domElement.setAttribute(key, value); 18910 break; 18911 case "action": 18912 case "formAction": 18913 null != value && ("form" === tag ? "formAction" === key ? console.error( 18914 "You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>." 18915 ) : "function" === typeof value && (null == props.encType && null == props.method || didWarnFormActionMethod || (didWarnFormActionMethod = true, console.error( 18916 "Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden." 18917 )), null == props.target || didWarnFormActionTarget || (didWarnFormActionTarget = true, console.error( 18918 "Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window." 18919 ))) : "input" === tag || "button" === tag ? "action" === key ? console.error( 18920 "You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>." 18921 ) : "input" !== tag || "submit" === props.type || "image" === props.type || didWarnFormActionType ? "button" !== tag || null == props.type || "submit" === props.type || didWarnFormActionType ? "function" === typeof value && (null == props.name || didWarnFormActionName || (didWarnFormActionName = true, console.error( 18922 'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.' 18923 )), null == props.formEncType && null == props.formMethod || didWarnFormActionMethod || (didWarnFormActionMethod = true, console.error( 18924 "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden." 18925 )), null == props.formTarget || didWarnFormActionTarget || (didWarnFormActionTarget = true, console.error( 18926 "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window." 18927 ))) : (didWarnFormActionType = true, console.error( 18928 'A button can only specify a formAction along with type="submit" or no type.' 18929 )) : (didWarnFormActionType = true, console.error( 18930 'An input can only specify a formAction along with type="submit" or type="image".' 18931 )) : "action" === key ? console.error( 18932 "You can only pass the action prop to <form>." 18933 ) : console.error( 18934 "You can only pass the formAction prop to <input> or <button>." 18935 )); 18936 if ("function" === typeof value) { 18937 domElement.setAttribute( 18938 key, 18939 "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().')" 18940 ); 18941 break; 18942 } else 18943 "function" === typeof prevValue && ("formAction" === key ? ("input" !== tag && setProp(domElement, tag, "name", props.name, props, null), setProp( 18944 domElement, 18945 tag, 18946 "formEncType", 18947 props.formEncType, 18948 props, 18949 null 18950 ), setProp( 18951 domElement, 18952 tag, 18953 "formMethod", 18954 props.formMethod, 18955 props, 18956 null 18957 ), setProp( 18958 domElement, 18959 tag, 18960 "formTarget", 18961 props.formTarget, 18962 props, 18963 null 18964 )) : (setProp( 18965 domElement, 18966 tag, 18967 "encType", 18968 props.encType, 18969 props, 18970 null 18971 ), setProp(domElement, tag, "method", props.method, props, null), setProp( 18972 domElement, 18973 tag, 18974 "target", 18975 props.target, 18976 props, 18977 null 18978 ))); 18979 if (null == value || "symbol" === typeof value || "boolean" === typeof value) { 18980 domElement.removeAttribute(key); 18981 break; 18982 } 18983 checkAttributeStringCoercion(value, key); 18984 value = sanitizeURL("" + value); 18985 domElement.setAttribute(key, value); 18986 break; 18987 case "onClick": 18988 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 18989 break; 18990 case "onScroll": 18991 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 18992 break; 18993 case "onScrollEnd": 18994 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 18995 break; 18996 case "dangerouslySetInnerHTML": 18997 if (null != value) { 18998 if ("object" !== typeof value || !("__html" in value)) 18999 throw Error( 19000 "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." 19001 ); 19002 key = value.__html; 19003 if (null != key) { 19004 if (null != props.children) 19005 throw Error( 19006 "Can only set one of `children` or `props.dangerouslySetInnerHTML`." 19007 ); 19008 domElement.innerHTML = key; 19009 } 19010 } 19011 break; 19012 case "multiple": 19013 domElement.multiple = value && "function" !== typeof value && "symbol" !== typeof value; 19014 break; 19015 case "muted": 19016 domElement.muted = value && "function" !== typeof value && "symbol" !== typeof value; 19017 break; 19018 case "suppressContentEditableWarning": 19019 case "suppressHydrationWarning": 19020 case "defaultValue": 19021 case "defaultChecked": 19022 case "innerHTML": 19023 case "ref": 19024 break; 19025 case "autoFocus": 19026 break; 19027 case "xlinkHref": 19028 if (null == value || "function" === typeof value || "boolean" === typeof value || "symbol" === typeof value) { 19029 domElement.removeAttribute("xlink:href"); 19030 break; 19031 } 19032 checkAttributeStringCoercion(value, key); 19033 key = sanitizeURL("" + value); 19034 domElement.setAttributeNS(xlinkNamespace, "xlink:href", key); 19035 break; 19036 case "contentEditable": 19037 case "spellCheck": 19038 case "draggable": 19039 case "value": 19040 case "autoReverse": 19041 case "externalResourcesRequired": 19042 case "focusable": 19043 case "preserveAlpha": 19044 null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, "" + value)) : domElement.removeAttribute(key); 19045 break; 19046 case "inert": 19047 "" !== value || didWarnForNewBooleanPropsWithEmptyValue[key] || (didWarnForNewBooleanPropsWithEmptyValue[key] = true, console.error( 19048 "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", 19049 key 19050 )); 19051 case "allowFullScreen": 19052 case "async": 19053 case "autoPlay": 19054 case "controls": 19055 case "default": 19056 case "defer": 19057 case "disabled": 19058 case "disablePictureInPicture": 19059 case "disableRemotePlayback": 19060 case "formNoValidate": 19061 case "hidden": 19062 case "loop": 19063 case "noModule": 19064 case "noValidate": 19065 case "open":
19066 case "playsInline": 19067 case "readOnly": 19068 case "required": 19069 case "reversed": 19070 case "scoped": 19071 case "seamless": 19072 case "itemScope": 19073 value && "function" !== typeof value && "symbol" !== typeof value ? domElement.setAttribute(key, "") : domElement.removeAttribute(key); 19074 break; 19075 case "capture": 19076 case "download": 19077 true === value ? domElement.setAttribute(key, "") : false !== value && null != value && "function" !== typeof value && "symbol" !== typeof value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 19078 break; 19079 case "cols": 19080 case "rows": 19081 case "size": 19082 case "span": 19083 null != value && "function" !== typeof value && "symbol" !== typeof value && !isNaN(value) && 1 <= value ? (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)) : domElement.removeAttribute(key); 19084 break; 19085 case "rowSpan": 19086 case "start": 19087 null == value || "function" === typeof value || "symbol" === typeof value || isNaN(value) ? domElement.removeAttribute(key) : (checkAttributeStringCoercion(value, key), domElement.setAttribute(key, value)); 19088 break; 19089 case "popover": 19090 listenToNonDelegatedEvent("beforetoggle", domElement); 19091 listenToNonDelegatedEvent("toggle", domElement); 19092 setValueForAttribute(domElement, "popover", value); 19093 break; 19094 case "xlinkActuate": 19095 setValueForNamespacedAttribute( 19096 domElement, 19097 xlinkNamespace, 19098 "xlink:actuate", 19099 value 19100 ); 19101 break; 19102 case "xlinkArcrole": 19103 setValueForNamespacedAttribute( 19104 domElement, 19105 xlinkNamespace, 19106 "xlink:arcrole", 19107 value 19108 ); 19109 break; 19110 case "xlinkRole": 19111 setValueForNamespacedAttribute( 19112 domElement, 19113 xlinkNamespace, 19114 "xlink:role", 19115 value 19116 ); 19117 break; 19118 case "xlinkShow": 19119 setValueForNamespacedAttribute( 19120 domElement, 19121 xlinkNamespace, 19122 "xlink:show", 19123 value 19124 ); 19125 break; 19126 case "xlinkTitle": 19127 setValueForNamespacedAttribute( 19128 domElement, 19129 xlinkNamespace, 19130 "xlink:title", 19131 value 19132 ); 19133 break; 19134 case "xlinkType": 19135 setValueForNamespacedAttribute( 19136 domElement, 19137 xlinkNamespace, 19138 "xlink:type", 19139 value 19140 ); 19141 break; 19142 case "xmlBase": 19143 setValueForNamespacedAttribute( 19144 domElement, 19145 xmlNamespace, 19146 "xml:base", 19147 value 19148 ); 19149 break; 19150 case "xmlLang": 19151 setValueForNamespacedAttribute( 19152 domElement, 19153 xmlNamespace, 19154 "xml:lang", 19155 value 19156 ); 19157 break; 19158 case "xmlSpace": 19159 setValueForNamespacedAttribute( 19160 domElement, 19161 xmlNamespace, 19162 "xml:space", 19163 value 19164 ); 19165 break; 19166 case "is": 19167 null != prevValue && console.error( 19168 'Cannot update the "is" prop after it has been initialized.' 19169 ); 19170 setValueForAttribute(domElement, "is", value); 19171 break; 19172 case "innerText": 19173 case "textContent": 19174 break; 19175 case "popoverTarget": 19176 didWarnPopoverTargetObject || null == value || "object" !== typeof value || (didWarnPopoverTargetObject = true, console.error( 19177 "The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.", 19178 value 19179 )); 19180 default: 19181 !(2 < key.length) || "o" !== key[0] && "O" !== key[0] || "n" !== key[1] && "N" !== key[1] ? (key = getAttributeAlias(key), setValueForAttribute(domElement, key, value)) : registrationNameDependencies.hasOwnProperty(key) && null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 19182 } 19183 } 19184 function setPropOnCustomElement(domElement, tag, key, value, props, prevValue) { 19185 switch (key) { 19186 case "style": 19187 setValueForStyles(domElement, value, prevValue); 19188 break; 19189 case "dangerouslySetInnerHTML": 19190 if (null != value) { 19191 if ("object" !== typeof value || !("__html" in value)) 19192 throw Error( 19193 "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." 19194 ); 19195 key = value.__html; 19196 if (null != key) { 19197 if (null != props.children) 19198 throw Error( 19199 "Can only set one of `children` or `props.dangerouslySetInnerHTML`." 19200 ); 19201 domElement.innerHTML = key; 19202 } 19203 } 19204 break; 19205 case "children": 19206 "string" === typeof value ? setTextContent(domElement, value) : ("number" === typeof value || "bigint" === typeof value) && setTextContent(domElement, "" + value); 19207 break; 19208 case "onScroll": 19209 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scroll", domElement)); 19210 break; 19211 case "onScrollEnd": 19212 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), listenToNonDelegatedEvent("scrollend", domElement)); 19213 break; 19214 case "onClick": 19215 null != value && ("function" !== typeof value && warnForInvalidEventListener(key, value), domElement.onclick = noop$1); 19216 break; 19217 case "suppressContentEditableWarning": 19218 case "suppressHydrationWarning": 19219 case "innerHTML": 19220 case "ref": 19221 break; 19222 case "innerText": 19223 case "textContent": 19224 break; 19225 default: 19226 if (registrationNameDependencies.hasOwnProperty(key)) 19227 null != value && "function" !== typeof value && warnForInvalidEventListener(key, value); 19228 else 19229 a: { 19230 if ("o" === key[0] && "n" === key[1] && (props = key.endsWith("Capture"), tag = ke
19230y.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)) { 19231 "function" !== typeof prevValue && null !== prevValue && (key in domElement ? domElement[key] = null : domElement.hasAttribute(key) && domElement.removeAttribute(key)); 19232 domElement.addEventListener(tag, value, props); 19233 break a; 19234 } 19235 key in domElement ? domElement[key] = value : true === value ? domElement.setAttribute(key, "") : setValueForAttribute(domElement, key, value); 19236 } 19237 } 19238 } 19239 function setInitialProperties(domElement, tag, props) { 19240 validatePropertiesInDevelopment(tag, props); 19241 switch (tag) { 19242 case "div": 19243 case "span": 19244 case "svg": 19245 case "path": 19246 case "a": 19247 case "g": 19248 case "p": 19249 case "li": 19250 break; 19251 case "img": 19252 listenToNonDelegatedEvent("error", domElement); 19253 listenToNonDelegatedEvent("load", domElement); 19254 var hasSrc = false, hasSrcSet = false, propKey; 19255 for (propKey in props) 19256 if (props.hasOwnProperty(propKey)) { 19257 var propValue = props[propKey]; 19258 if (null != propValue) 19259 switch (propKey) { 19260 case "src": 19261 hasSrc = true; 19262 break; 19263 case "srcSet": 19264 hasSrcSet = true; 19265 break; 19266 case "children": 19267 case "dangerouslySetInnerHTML": 19268 throw Error( 19269 tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." 19270 ); 19271 default: 19272 setProp(domElement, tag, propKey, propValue, props, null); 19273 } 19274 } 19275 hasSrcSet && setProp(domElement, tag, "srcSet", props.srcSet, props, null); 19276 hasSrc && setProp(domElement, tag, "src", props.src, props, null); 19277 return; 19278 case "input": 19279 checkControlledValueProps("input", props); 19280 listenToNonDelegatedEvent("invalid", domElement); 19281 var defaultValue = propKey = propValue = hasSrcSet = null, checked = null, defaultChecked = null; 19282 for (hasSrc in props) 19283 if (props.hasOwnProperty(hasSrc)) { 19284 var _propValue = props[hasSrc]; 19285 if (null != _propValue) 19286 switch (hasSrc) { 19287 case "name": 19288 hasSrcSet = _propValue; 19289 break; 19290 case "type": 19291 propValue = _propValue; 19292 break; 19293 case "checked": 19294 checked = _propValue; 19295 break; 19296 case "defaultChecked": 19297 defaultChecked = _propValue; 19298 break; 19299 case "value": 19300 propKey = _propValue; 19301 break; 19302 case "defaultValue": 19303 defaultValue = _propValue; 19304 break; 19305 case "children": 19306 case "dangerouslySetInnerHTML": 19307 if (null != _propValue) 19308 throw Error( 19309 tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." 19310 ); 19311 break; 19312 default: 19313 setProp(domElement, tag, hasSrc, _propValue, props, null); 19314 } 19315 } 19316 validateInputProps(domElement, props); 19317 initInput( 19318 domElement, 19319 propKey, 19320 defaultValue, 19321 checked, 19322 defaultChecked, 19323 propValue, 19324 hasSrcSet, 19325 false 19326 ); 19327 track(domElement); 19328 return; 19329 case "select": 19330 checkControlledValueProps("select", props); 19331 listenToNonDelegatedEvent("invalid", domElement); 19332 hasSrc = propValue = propKey = null; 19333 for (hasSrcSet in props) 19334 if (props.hasOwnProperty(hasSrcSet) && (defaultValue = props[hasSrcSet], null != defaultValue)) 19335 switch (hasSrcSet) { 19336 case "value": 19337 propKey = defaultValue; 19338 break; 19339 case "defaultValue": 19340 propValue = defaultValue; 19341 break; 19342 case "multiple": 19343 hasSrc = defaultValue; 19344 default: 19345 setProp( 19346 domElement, 19347 tag, 19348 hasSrcSet, 19349 defaultValue, 19350 props, 19351 null 19352 ); 19353 } 19354 validateSelectProps(domElement, props); 19355 tag = propKey; 19356 props = propValue; 19357 domElement.multiple = !!hasSrc; 19358 null != tag ? updateOptions(domElement, !!hasSrc, tag, false) : null != props && updateOptions(domElement, !!hasSrc, props, true); 19359 return; 19360 case "textarea": 19361 checkControlledValueProps("textarea", props); 19362 listenToNonDelegatedEvent("invalid", domElement); 19363 propKey = hasSrcSet = hasSrc = null; 19364 for (propValue in props) 19365 if (props.hasOwnProperty(propValue) && (defaultValue = props[propValue], null != defaultValue)) 19366 switch (propValue) { 19367 case "value": 19368 hasSrc = defaultValue; 19369 break; 19370 case "defaultValue": 19371 hasSrcSet = defaultValue; 19372 break; 19373 case "children": 19374 propKey = defaultValue; 19375 break; 19376 case "dangerouslySetInnerHTML": 19377 if (null != defaultValue) 19378 throw Error( 19379 "`dangerouslySetInnerHTML` does not make sense on <textarea>." 19380 ); 19381 break; 19382 default: 19383 setProp( 19384 domElement, 19385 tag, 19386 propValue, 19387 defaultValue, 19388 props, 19389 null 19390 ); 19391 } 19392 validateTextareaProps(domElement, props); 19393 initTextarea(domElement, hasSrc, hasSrcSet, propKey); 19394 track(domElement); 19395 return; 19396 case "option": 19397 validateOptionProps(domElement, props); 19398 for (checked in props) 19399 if (props.hasOwnProperty(checked) && (hasSrc = props[checked], null != hasSrc)) 19400 switch (checked) { 19401 case "selected": 19402 domElement.selected = hasSrc && "function" !== typeof hasSrc && "symbol" !== typeof hasSrc; 19403 break; 19404 default: 19405 setProp(domElement, tag, checked, hasSrc, props, null); 19406 } 19407 return; 19408 case "dialog": 19409 listenToNonDelegatedEvent("beforetoggle", domElement); 19410 listenToNonDelegatedEvent("toggle", domElement); 19411 listenToNonDelegatedEvent("cancel", domElement); 19412 listenToNonDelegatedEvent("close", domElement); 19413 break; 19414 case "iframe": 19415 case "object": 19416 listenToNonDelegatedEvent("load", domElement); 19417 break; 19418 case "video": 19419 case "audio": 19420 for (hasSrc = 0; hasSrc < mediaEventTypes.length; hasSrc++) 19421 listenToNonDelegatedEvent(mediaEventTypes[hasSrc], domElement); 19422 break; 19423 case "image": 19424 listenToNonDelegatedEvent("error", domElement); 19425 listenToNonDelegatedEvent("load", domElement); 19426 break; 19427 case "details": 19428 listenToNonDelegatedEvent("toggle", domElement); 19429 break; 19430 case "embed": 19431 case "source": 19432 case "link": 19433 listenToNonDelegatedEvent("error", domElement), listenToNonDelegatedEvent("load", domElement); 19434 case "area": 19435 case "base": 19436 case "br": 19437 case "col": 19438 case "hr": 19439 case "keygen": 19440 case "meta": 19441 case "param": 19442 case "track": 19443 case "wbr": 19444 case "menuitem": 19445 for (defaultChecked in props) 19446 if (props.hasOwnProperty(defaultChecked) && (hasSrc = props[defaultChecked], null != hasSrc)) 19447 switch (defaultChecked) { 19448 case "children": 19449 case "dangerouslySetInnerHTML": 19450 throw Error( 19451 tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." 19452 ); 19453 default: 19454 setProp(domElement, tag, defaultChecked, hasSrc, props, null); 19455 } 19456 return; 19457 default: 19458 if (isCustomElement(tag)) { 19459 for (_propValue in props) 19460 props.hasOwnProperty(_propValue) && (hasSrc = props[_propValue], void 0 !== hasSrc && setPropOnCustomElement( 19461 domElement, 19462 tag, 19463 _propValue, 19464 hasSrc, 19465 props, 19466 void 0 19467 )); 19468 return; 19469 } 19470 } 19471 for (defaultValue in props) 19472 props.hasOwnProperty(defaultValue) && (hasSrc = props[defaultValue], null != hasSrc && setProp(domElement, tag, defaultValue, hasSrc, props, null)); 19473 } 19474 function updateProperties(domElement, tag, lastProps, nextProps) { 19475 validatePropertiesInDevelopment(tag, nextProps); 19476 switch (tag) { 19477 case "div": 19478 case "span": 19479 case "svg": 19480 case "path": 19481 case "a": 19482 case "g": 19483 case "p": 19484 case "li": 19485 break; 19486 case "input": 19487 var name = null, type = null, value = null, defaultValue = null, lastDefaultValue = null, checked = null, defaultChecked = null; 19488 for (propKey in lastProps) { 19489 var lastProp = lastProps[propKey]; 19490 if (lastProps.hasOwnProperty(propKey) && null != lastProp) 19491 switch (propKey) { 19492 case "checked": 19493 break; 19494 case "value": 19495 break; 19496 case "defaultValue": 19497 lastDefaultValue = lastProp; 19498 default: 19499 nextProps.hasOwnProperty(propKey) || setProp( 19500 domElement, 19501 tag, 19502 propKey, 19503 null, 19504 nextProps, 19505 lastProp 19506 ); 19507 } 19508 } 19509 for (var _propKey8 in nextProps) { 19510 var propKey = nextProps[_propKey8]; 19511 lastProp = lastProps[_propKey8]; 19512 if (nextProps.hasOwnProperty(_propKey8) && (null != propKey || null != lastProp)) 19513 switch (_propKey8) { 19514 case "type": 19515 type = propKey; 19516 break; 19517 case "name": 19518 name = propKey; 19519 break; 19520 case "checked": 19521 checked = propKey; 19522 break; 19523 case "defaultChecked": 19524 defaultChecked = propKey; 19525 break; 19526 case "value": 19527 value = propKey; 19528 break; 19529 case "defaultValue": 19530 defaultValue = propKey; 19531 break; 19532 case "children": 19533 case "dangerouslySetInnerHTML": 19534 if (null != propKey) 19535 throw Error( 19536 tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." 19537 ); 19538 break; 19539 default: 19540 propKey !== lastProp && setProp( 19541 domElement, 19542 tag, 19543 _propKey8, 19544 propKey, 19545 nextProps, 19546 lastProp 19547 ); 19548 } 19549 } 19550 tag = "checkbox" === lastProps.type || "radio" === lastProps.type ? null != lastProps.checked : null != lastProps.value; 19551 nextProps = "checkbox" === nextProps.type || "radio" === nextProps.type ? null != nextProps.checked : null != nextProps.value; 19552 tag || !nextProps || didWarnUncontrolledToControlled || (console.error( 19553 "A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components" 19554 ), didWarnUncontrolledToControlled = true); 19555 !tag || nextProps || didWarnControlledToUncontrolled || (console.error( 19556 "A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components" 19557 ), didWarnControlledToUncontrolled = true); 19558 updateInput( 19559 domElement, 19560 value, 19561 defaultValue, 19562 lastDefaultValue, 19563 checked, 19564 defaultChecked, 19565 type, 19566 name 19567 ); 19568 return; 19569 case "select": 19570 propKey = value = defaultValue = _propKey8 = null; 19571 for (type in lastProps) 19572 if (lastDefaultValue = lastProps[type], lastProps.hasOwnProperty(type) && null != lastDefaultValue) 19573 switch (type) { 19574 case "value": 19575 break; 19576 case "multiple": 19577 propKey = lastDefaultValue; 19578 default: 19579 nextProps.hasOwnProperty(type) || setProp( 19580 domElement, 19581 tag, 19582 type, 19583 null, 19584 nextProps, 19585 lastDefaultValue 19586 ); 19587 } 19588 for (name in nextProps) 19589 if (type = nextProps[name], lastDefaultValue = lastProps[name], nextProps.hasOwnProperty(name) && (null != type || null != lastDefaultValue)) 19590 switch (name) { 19591 case "value": 19592 _propKey8 = type; 19593 break; 19594 case "defaultValue": 19595 defaultValue = type; 19596 break; 19597 case "multiple": 19598 value = type; 19599 default: 19600 type !== lastDefaultValue && setProp( 19601 domElement, 19602 tag, 19603 name, 19604 type, 19605 nextProps, 19606 lastDefaultValue 19607 ); 19608 } 19609 nextProps = defaultValue; 19610 tag = value; 19611 lastProps = propKey; 19612 null != _propKey8 ? updateOptions(domElement, !!tag, _propKey8, false) : !!lastProps !== !!tag && (null != nextProps ? updateOptions(domElement, !!tag, nextProps, true) : updateOptions(domElement, !!tag, tag ? [] : "", false)); 19613 return; 19614 case "textarea": 19615 propKey = _propKey8 = null; 19616 for (d
19616efaultValue in lastProps) 19617 if (name = lastProps[defaultValue], lastProps.hasOwnProperty(defaultValue) && null != name && !nextProps.hasOwnProperty(defaultValue)) 19618 switch (defaultValue) { 19619 case "value": 19620 break; 19621 case "children": 19622 break; 19623 default: 19624 setProp(domElement, tag, defaultValue, null, nextProps, name); 19625 } 19626 for (value in nextProps) 19627 if (name = nextProps[value], type = lastProps[value], nextProps.hasOwnProperty(value) && (null != name || null != type)) 19628 switch (value) { 19629 case "value": 19630 _propKey8 = name; 19631 break; 19632 case "defaultValue": 19633 propKey = name; 19634 break; 19635 case "children": 19636 break; 19637 case "dangerouslySetInnerHTML": 19638 if (null != name) 19639 throw Error( 19640 "`dangerouslySetInnerHTML` does not make sense on <textarea>." 19641 ); 19642 break; 19643 default: 19644 name !== type && setProp(domElement, tag, value, name, nextProps, type); 19645 } 19646 updateTextarea(domElement, _propKey8, propKey); 19647 return; 19648 case "option": 19649 for (var _propKey13 in lastProps) 19650 if (_propKey8 = lastProps[_propKey13], lastProps.hasOwnProperty(_propKey13) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey13)) 19651 switch (_propKey13) { 19652 case "selected": 19653 domElement.selected = false; 19654 break; 19655 default: 19656 setProp( 19657 domElement, 19658 tag, 19659 _propKey13, 19660 null, 19661 nextProps, 19662 _propKey8 19663 ); 19664 } 19665 for (lastDefaultValue in nextProps) 19666 if (_propKey8 = nextProps[lastDefaultValue], propKey = lastProps[lastDefaultValue], nextProps.hasOwnProperty(lastDefaultValue) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) 19667 switch (lastDefaultValue) { 19668 case "selected": 19669 domElement.selected = _propKey8 && "function" !== typeof _propKey8 && "symbol" !== typeof _propKey8; 19670 break; 19671 default: 19672 setProp( 19673 domElement, 19674 tag, 19675 lastDefaultValue, 19676 _propKey8, 19677 nextProps, 19678 propKey 19679 ); 19680 } 19681 return; 19682 case "img": 19683 case "link": 19684 case "area": 19685 case "base": 19686 case "br": 19687 case "col": 19688 case "embed": 19689 case "hr": 19690 case "keygen": 19691 case "meta": 19692 case "param": 19693 case "source": 19694 case "track": 19695 case "wbr": 19696 case "menuitem": 19697 for (var _propKey15 in lastProps) 19698 _propKey8 = lastProps[_propKey15], lastProps.hasOwnProperty(_propKey15) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey15) && setProp( 19699 domElement, 19700 tag, 19701 _propKey15, 19702 null, 19703 nextProps, 19704 _propKey8 19705 ); 19706 for (checked in nextProps) 19707 if (_propKey8 = nextProps[checked], propKey = lastProps[checked], nextProps.hasOwnProperty(checked) && _propKey8 !== propKey && (null != _propKey8 || null != propKey)) 19708 switch (checked) { 19709 case "children": 19710 case "dangerouslySetInnerHTML": 19711 if (null != _propKey8) 19712 throw Error( 19713 tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`." 19714 ); 19715 break; 19716 default: 19717 setProp( 19718 domElement, 19719 tag, 19720 checked, 19721 _propKey8, 19722 nextProps, 19723 propKey 19724 ); 19725 } 19726 return; 19727 default: 19728 if (isCustomElement(tag)) { 19729 for (var _propKey17 in lastProps) 19730 _propKey8 = lastProps[_propKey17], lastProps.hasOwnProperty(_propKey17) && void 0 !== _propKey8 && !nextProps.hasOwnProperty(_propKey17) && setPropOnCustomElement( 19731 domElement, 19732 tag, 19733 _propKey17, 19734 void 0, 19735 nextProps, 19736 _propKey8 19737 ); 19738 for (defaultChecked in nextProps) 19739 _propKey8 = nextProps[defaultChecked], propKey = lastProps[defaultChecked], !nextProps.hasOwnProperty(defaultChecked) || _propKey8 === propKey || void 0 === _propKey8 && void 0 === propKey || setPropOnCustomElement( 19740 domElement, 19741 tag, 19742 defaultChecked, 19743 _propKey8, 19744 nextProps, 19745 propKey 19746 ); 19747 return; 19748 } 19749 } 19750 for (var _propKey19 in lastProps) 19751 _propKey8 = lastProps[_propKey19], lastProps.hasOwnProperty(_propKey19) && null != _propKey8 && !nextProps.hasOwnProperty(_propKey19) && setProp(domElement, tag, _propKey19, null, nextProps, _propKey8); 19752 for (lastProp in nextProps) 19753 _propKey8 = nextProps[lastProp], propKey = lastProps[lastProp], !nextProps.hasOwnProperty(lastProp) || _propKey8 === propKey || null == _propKey8 && null == propKey || setProp(domElement, tag, lastProp, _propKey8, nextProps, propKey); 19754 } 19755 function getPropNameFromAttributeName(attrName) { 19756 switch (attrName) { 19757 case "class": 19758 return "className"; 19759 case "for": 19760 return "htmlFor"; 19761 default: 19762 return attrName; 19763 } 19764 } 19765 function getStylesObjectFromElement(domElement) { 19766 var serverValueInObjectForm = {}; 19767 domElement = domElement.style; 19768 for (var i = 0; i < domElement.length; i++) { 19769 var styleName = domElement[i]; 19770 serverValueInObjectForm[styleName] = domElement.getPropertyValue(styleName); 19771 } 19772 return serverValueInObjectForm; 19773 } 19774 function diffHydratedStyles(domElement, value$jscomp$0, serverDifferences) { 19775 if (null != value$jscomp$0 && "object" !== typeof value$jscomp$0) 19776 console.error( 19777 "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." 19778 ); 19779 else { 19780 var clientValue; 19781 var delimiter = clientValue = "", styleName; 19782 for (styleName in value$jscomp$0) 19783 if (value$jscomp$0.hasOwnProperty(styleName)) { 19784 var value = value$jscomp$0[styleName]; 19785 null != value && "boolean" !== typeof value && "" !== value && (0 === styleName.indexOf("--") ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName + ":" + ("" + value).trim()) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? (checkCSSPropertyStringCoercion(value, styleName), clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + ("" + value).trim()) : clientValue += delimiter + styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern$1, "-ms-") + ":" + value + "px", delimiter = ";"); 19786 } 19787 clientValue = clientValue || null; 19788 value$jscomp$0 = domElement.getAttribute("style"); 19789 value$jscomp$0 !== clientValue && (clientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizeMarkupForTextOrAttribute(value$jscomp$0) !== clientValue && (serverDifferences.style = getStylesObjectFromElement(domElement))); 19790 } 19791 } 19792 function hydrateAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 19793 extraAttributes.delete(attributeName); 19794 domElement = domElement.getAttribute(attributeName); 19795 if (null === domElement) 19796 switch (typeof value) { 19797 case "undefined": 19798 case "function": 19799 case "symbol": 19800 case "boolean": 19801 return; 19802 } 19803 else if (null != value) 19804 switch (typeof value) { 19805 case "function": 19806 case "symbol": 19807 case "boolean": 19808 break; 19809 default: 19810 if (checkAttributeStringCoercion(value, propKey), domElement === "" + value) 19811 return; 19812 } 19813 warnForPropDifference(propKey, domElement, value, serverDifferences); 19814 } 19815 function hydrateBooleanAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 19816 extraAttributes.delete(attributeName); 19817 domElement = domElement.getAttribute(attributeName); 19818 if (null === domElement) { 19819 switch (typeof value) { 19820 case "function": 19821 case "symbol": 19822 return; 19823 } 19824 if (!value) return; 19825 } else 19826 switch (typeof value) { 19827 case "function": 19828 case "symbol": 19829 break; 19830 default: 19831 if (value) return; 19832 } 19833 warnForPropDifference(propKey, domElement, value, serverDifferences); 19834 } 19835 function hydrateBooleanishAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 19836 extraAttributes.delete(attributeName); 19837 domElement = domElement.getAttribute(attributeName); 19838 if (null === domElement) 19839 switch (typeof value) { 19840 case "undefined": 19841 case "function": 19842 case "symbol": 19843 return; 19844 } 19845 else if (null != value) 19846 switch (typeof value) { 19847 case "function": 19848 case "symbol": 19849 break; 19850 default: 19851 if (checkAttributeStringCoercion(value, attributeName), domElement === "" + value) 19852 return; 19853 } 19854 warnForPropDifference(propKey, domElement, value, serverDifferences); 19855 } 19856 function hydrateNumericAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 19857 extraAttributes.delete(attributeName); 19858 domElement = domElement.getAttribute(attributeName); 19859 if (null === domElement) 19860 switch (typeof value) { 19861 case "undefined": 19862 case "function": 19863 case "symbol": 19864 case "boolean": 19865 return; 19866 default: 19867 if (isNaN(value)) return; 19868 } 19869 else if (null != value) 19870 switch (typeof value) { 19871 case "function": 19872 case "symbol": 19873 case "boolean": 19874 break; 19875 default: 19876 if (!isNaN(value) && (checkAttributeStringCoercion(value, propKey), domElement === "" + value)) 19877 return; 19878 } 19879 warnForPropDifference(propKey, domElement, value, serverDifferences); 19880 } 19881 function hydrateSanitizedAttribute(domElement, propKey, attributeName, value, extraAttributes, serverDifferences) { 19882 extraAttributes.delete(attributeName); 19883 domElement = domElement.getAttribute(attributeName); 19884 if (null === domElement) 19885 switch (typeof value) { 19886 case "undefined": 19887 case "function": 19888 case "symbol": 19889 case "boolean": 19890 return; 19891 } 19892 else if (null != value) 19893 switch (typeof value) { 19894 case "function": 19895 case "symbol": 19896 case "boolean": 19897 break; 19898 default: 19899 if (checkAttributeStringCoercion(value, propKey), attributeName = sanitizeURL("" + value), domElement === attributeName) 19900 return; 19901 } 19902 warnForPropDifference(propKey, domElement, value, serverDifferences); 19903 } 19904 function diffHydratedProperties(domElement, tag, props, hostContext) { 19905 for (var serverDifferences = {}, extraAttributes = /* @__PURE__ */ new Set(), attributes = domElement.attributes, i = 0; i < attributes.length; i++) 19906 switch (attributes[i].name.toLowerCase()) { 19907 case "value": 19908 break; 19909 case "checked": 19910 break; 19911 case "selected": 19912 break; 19913 default: 19914 extraAttributes.add(attributes[i].name); 19915 } 19916 if (isCustomElement(tag)) 19917 for (var propKey in props) { 19918 if (props.hasOwnProperty(propKey)) { 19919 var value = props[propKey]; 19920 if (null != value) { 19921 if (registrationNameDependencies.hasOwnProperty(propKey)) 19922 "function" !== typeof value && warnForInvalidEventListener(propKey, value); 19923 else if (true !== props.suppressHydrationWarning) 19924 switch (propKey) { 19925 case "children": 19926 "string" !== typeof value && "number" !== typeof value || warnForPropDifference( 19927 "children", 19928 domElement.textContent, 19929 value, 19930 serverDifferences 19931 ); 19932 continue; 19933 case "suppressContentEditableWarning": 19934 case "suppressHydrationWarning": 19935 case "defaultValue": 19936 case "defaultChecked": 19937 case "innerHTML": 19938 case "ref": 19939 continue; 19940 case "dangerouslySetInnerHTML": 19941 attributes = domElement.innerHTML; 19942 value = value ? value.__html : void 0; 19943 null != value && (value = normalizeHTML(domElement, value), warnForPropDifference( 19944 propKey, 19945 attributes, 19946 value, 19947 serverDifferences 19948 )); 19949 continue; 19950 case "style": 19951 extraAttributes.delete(propKey); 19952 diffHydratedStyles(domElement, value, serverDifferences); 19953 continue; 19954 case "offsetParent": 19955 case "offsetTop": 19956 case "offsetLeft": 19957 case "offsetWidth": 19958 case "offsetHeight": 19959 case "isContentEditable": 19960 case "outerText": 19961 case "outerHTML": 19962 extraAttributes.delete(propKey.toLowerCase()); 19963 console.error( 19964 "Assignment to read-only property will result in a
19964no-op: `%s`", 19965 propKey 19966 ); 19967 continue; 19968 case "className": 19969 extraAttributes.delete("class"); 19970 attributes = getValueForAttributeOnCustomComponent( 19971 domElement, 19972 "class", 19973 value 19974 ); 19975 warnForPropDifference( 19976 "className", 19977 attributes, 19978 value, 19979 serverDifferences 19980 ); 19981 continue; 19982 default: 19983 hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(propKey.toLowerCase()) : extraAttributes.delete(propKey), attributes = getValueForAttributeOnCustomComponent( 19984 domElement, 19985 propKey, 19986 value 19987 ), warnForPropDifference( 19988 propKey, 19989 attributes, 19990 value, 19991 serverDifferences 19992 ); 19993 } 19994 } 19995 } 19996 } 19997 else 19998 for (value in props) 19999 if (props.hasOwnProperty(value) && (propKey = props[value], null != propKey)) { 20000 if (registrationNameDependencies.hasOwnProperty(value)) 20001 "function" !== typeof propKey && warnForInvalidEventListener(value, propKey); 20002 else if (true !== props.suppressHydrationWarning) 20003 switch (value) { 20004 case "children": 20005 "string" !== typeof propKey && "number" !== typeof propKey || warnForPropDifference( 20006 "children", 20007 domElement.textContent, 20008 propKey, 20009 serverDifferences 20010 ); 20011 continue; 20012 case "suppressContentEditableWarning": 20013 case "suppressHydrationWarning": 20014 case "value": 20015 case "checked": 20016 case "selected": 20017 case "defaultValue": 20018 case "defaultChecked": 20019 case "innerHTML": 20020 case "ref": 20021 continue; 20022 case "dangerouslySetInnerHTML": 20023 attributes = domElement.innerHTML; 20024 propKey = propKey ? propKey.__html : void 0; 20025 null != propKey && (propKey = normalizeHTML(domElement, propKey), attributes !== propKey && (serverDifferences[value] = { __html: attributes })); 20026 continue; 20027 case "className": 20028 hydrateAttribute( 20029 domElement, 20030 value, 20031 "class", 20032 propKey, 20033 extraAttributes, 20034 serverDifferences 20035 ); 20036 continue; 20037 case "tabIndex": 20038 hydrateAttribute( 20039 domElement, 20040 value, 20041 "tabindex", 20042 propKey, 20043 extraAttributes, 20044 serverDifferences 20045 ); 20046 continue; 20047 case "style": 20048 extraAttributes.delete(value); 20049 diffHydratedStyles(domElement, propKey, serverDifferences); 20050 continue; 20051 case "multiple": 20052 extraAttributes.delete(value); 20053 warnForPropDifference( 20054 value, 20055 domElement.multiple, 20056 propKey, 20057 serverDifferences 20058 ); 20059 continue; 20060 case "muted": 20061 extraAttributes.delete(value); 20062 warnForPropDifference( 20063 value, 20064 domElement.muted, 20065 propKey, 20066 serverDifferences 20067 ); 20068 continue; 20069 case "autoFocus": 20070 extraAttributes.delete("autofocus"); 20071 warnForPropDifference( 20072 value, 20073 domElement.autofocus, 20074 propKey, 20075 serverDifferences 20076 ); 20077 continue; 20078 case "data": 20079 if ("object" !== tag) { 20080 extraAttributes.delete(value); 20081 attributes = domElement.getAttribute("data"); 20082 warnForPropDifference( 20083 value, 20084 attributes, 20085 propKey, 20086 serverDifferences 20087 ); 20088 continue; 20089 } 20090 case "src": 20091 case "href": 20092 if (!("" !== propKey || "a" === tag && "href" === value || "object" === tag && "data" === value)) { 20093 "src" === value ? console.error( 20094 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', 20095 value, 20096 value 20097 ) : console.error( 20098 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', 20099 value, 20100 value 20101 ); 20102 continue; 20103 } 20104 hydrateSanitizedAttribute( 20105 domElement, 20106 value, 20107 value, 20108 propKey, 20109 extraAttributes, 20110 serverDifferences 20111 ); 20112 continue; 20113 case "action": 20114 case "formAction": 20115 attributes = domElement.getAttribute(value); 20116 if ("function" === typeof propKey) { 20117 extraAttributes.delete(value.toLowerCase()); 20118 "formAction" === value ? (extraAttributes.delete("name"), extraAttributes.delete("formenctype"), extraAttributes.delete("formmethod"), extraAttributes.delete("formtarget")) : (extraAttributes.delete("enctype"), extraAttributes.delete("method"), extraAttributes.delete("target")); 20119 continue; 20120 } else if (attributes === EXPECTED_FORM_ACTION_URL) { 20121 extraAttributes.delete(value.toLowerCase()); 20122 warnForPropDifference( 20123 value, 20124 "function", 20125 propKey, 20126 serverDifferences 20127 ); 20128 continue; 20129 } 20130 hydrateSanitizedAttribute( 20131 domElement, 20132 value, 20133 value.toLowerCase(), 20134 propKey, 20135 extraAttributes, 20136 serverDifferences 20137 ); 20138 continue; 20139 case "xlinkHref": 20140 hydrateSanitizedAttribute( 20141 domElement, 20142 value, 20143 "xlink:href", 20144 propKey, 20145 extraAttributes, 20146 serverDifferences 20147 ); 20148 continue; 20149 case "contentEditable": 20150 hydrateBooleanishAttribute( 20151 domElement, 20152 value, 20153 "contenteditable", 20154 propKey, 20155 extraAttributes, 20156 serverDifferences 20157 ); 20158 continue; 20159 case "spellCheck": 20160 hydrateBooleanishAttribute( 20161 domElement, 20162 value, 20163 "spellcheck", 20164 propKey, 20165 extraAttributes, 20166 serverDifferences 20167 ); 20168 continue; 20169 case "draggable": 20170 case "autoReverse": 20171 case "externalResourcesRequired": 20172 case "focusable": 20173 case "preserveAlpha": 20174 hydrateBooleanishAttribute( 20175 domElement, 20176 value, 20177 value, 20178 propKey, 20179 extraAttributes, 20180 serverDifferences 20181 ); 20182 continue; 20183 case "allowFullScreen": 20184 case "async": 20185 case "autoPlay": 20186 case "controls": 20187 case "default": 20188 case "defer": 20189 case "disabled": 20190 case "disablePictureInPicture": 20191 case "disableRemotePlayback": 20192 case "formNoValidate": 20193 case "hidden": 20194 case "loop": 20195 case "noModule": 20196 case "noValidate": 20197 case "open":
20198 case "playsInline": 20199 case "readOnly": 20200 case "required": 20201 case "reversed": 20202 case "scoped": 20203 case "seamless": 20204 case "itemScope": 20205 hydrateBooleanAttribute( 20206 domElement, 20207 value, 20208 value.toLowerCase(), 20209 propKey, 20210 extraAttributes, 20211 serverDifferences 20212 ); 20213 continue; 20214 case "capture": 20215 case "download": 20216 a: { 20217 i = domElement; 20218 var attributeName = attributes = value, serverDifferences$jscomp$0 = serverDifferences; 20219 extraAttributes.delete(attributeName); 20220 i = i.getAttribute(attributeName); 20221 if (null === i) 20222 switch (typeof propKey) { 20223 case "undefined": 20224 case "function": 20225 case "symbol": 20226 break a; 20227 default: 20228 if (false === propKey) break a; 20229 } 20230 else if (null != propKey) 20231 switch (typeof propKey) { 20232 case "function": 20233 case "symbol": 20234 break; 20235 case "boolean": 20236 if (true === propKey && "" === i) break a; 20237 break; 20238 default: 20239 if (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey) 20240 break a; 20241 } 20242 warnForPropDifference( 20243 attributes, 20244 i, 20245 propKey, 20246 serverDifferences$jscomp$0 20247 ); 20248 } 20249 continue; 20250 case "cols": 20251 case "rows": 20252 case "size": 20253 case "span": 20254 a: { 20255 i = domElement; 20256 attributeName = attributes = value; 20257 serverDifferences$jscomp$0 = serverDifferences; 20258 extraAttributes.delete(attributeName); 20259 i = i.getAttribute(attributeName); 20260 if (null === i) 20261 switch (typeof propKey) { 20262 case "undefined": 20263 case "function": 20264 case "symbol": 20265 case "boolean": 20266 break a; 20267 default: 20268 if (isNaN(propKey) || 1 > propKey) break a; 20269 } 20270 else if (null != propKey) 20271 switch (typeof propKey) { 20272 case "function": 20273 case "symbol": 20274 case "boolean": 20275 break; 20276 default: 20277 if (!(isNaN(propKey) || 1 > propKey) && (checkAttributeStringCoercion(propKey, attributes), i === "" + propKey)) 20278 break a; 20279 } 20280 warnForPropDifference( 20281 attributes, 20282 i, 20283 propKey, 20284 serverDifferences$jscomp$0 20285 ); 20286 } 20287 continue; 20288 case "rowSpan": 20289 hydrateNumericAttribute( 20290 domElement, 20291 value, 20292 "rowspan", 20293 propKey, 20294 extraAttributes, 20295 serverDifferences 20296 ); 20297 continue; 20298 case "start": 20299 hydrateNumericAttribute( 20300 domElement, 20301 value, 20302 value, 20303 propKey, 20304 extraAttributes, 20305 serverDifferences 20306 ); 20307 continue; 20308 case "xHeight": 20309 hydrateAttribute( 20310 domElement, 20311 value, 20312 "x-height", 20313 propKey, 20314 extraAttributes, 20315 serverDifferences 20316 ); 20317 continue; 20318 case "xlinkActuate": 20319 hydrateAttribute( 20320 domElement, 20321 value, 20322 "xlink:actuate", 20323 propKey, 20324 extraAttributes, 20325 serverDifferences 20326 ); 20327 continue; 20328 case "xlinkArcrole": 20329 hydrateAttribute( 20330 domElement, 20331 value, 20332 "xlink:arcrole", 20333 propKey, 20334 extraAttributes, 20335 serverDifferences 20336 ); 20337 continue; 20338 case "xlinkRole": 20339 hydrateAttribute( 20340 domElement, 20341 value, 20342 "xlink:role", 20343 propKey, 20344 extraAttributes, 20345 serverDifferences 20346 ); 20347 continue; 20348 case "xlinkShow": 20349 hydrateAttribute( 20350 domElement, 20351 value, 20352 "xlink:show", 20353 propKey, 20354 extraAttributes, 20355 serverDifferences 20356 ); 20357 continue; 20358 case "xlinkTitle": 20359 hydrateAttribute( 20360 domElement, 20361 value, 20362 "xlink:title", 20363 propKey, 20364 extraAttributes, 20365 serverDifferences 20366 ); 20367 continue; 20368 case "xlinkType": 20369 hydrateAttribute( 20370 domElement, 20371 value, 20372 "xlink:type", 20373 propKey, 20374 extraAttributes, 20375 serverDifferences 20376 ); 20377 continue; 20378 case "xmlBase": 20379 hydrateAttribute( 20380 domElement, 20381 value, 20382 "xml:base", 20383 propKey, 20384 extraAttributes, 20385 serverDifferences 20386 ); 20387 continue; 20388 case "xmlLang": 20389 hydrateAttribute( 20390 domElement, 20391 value, 20392 "xml:lang", 20393 propKey, 20394 extraAttributes, 20395 serverDifferences 20396 ); 20397 continue; 20398 case "xmlSpace": 20399 hydrateAttribute( 20400 domElement, 20401 value, 20402 "xml:space", 20403 propKey, 20404 extraAttributes, 20405 serverDifferences 20406 ); 20407 continue; 20408 case "inert": 20409 "" !== propKey || didWarnForNewBooleanPropsWithEmptyValue[value] || (didWarnForNewBooleanPropsWithEmptyValue[value] = true, console.error( 20410 "Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", 20411 value 20412 )); 20413 hydrateBooleanAttribute( 20414 domElement, 20415 value, 20416 value, 20417 propKey, 20418 extraAttributes, 20419 serverDifferences 20420 ); 20421 continue; 20422 default: 20423 if (!(2 < value.length) || "o" !== value[0] && "O" !== value[0] || "n" !== value[1] && "N" !== value[1]) { 20424 i = getAttributeAlias(value); 20425 attributes = false;
20426 hostContext.context === HostContextNamespaceNone && "svg" !== tag && "math" !== tag ? extraAttributes.delete(i.toLowerCase()) : (attributeName = value.toLowerCase(), attributeName = possibleStandardNames.hasOwnProperty( 20427 attributeName 20428 ) ? possibleStandardNames[attributeName] || null : null, null !== attributeName && attributeName !== value && (attributes = true, extraAttributes.delete(attributeName)), extraAttributes.delete(i)); 20429 a: if (attributeName = domElement, serverDifferences$jscomp$0 = i, i = propKey, isAttributeNameSafe(serverDifferences$jscomp$0)) 20430 if (attributeName.hasAttribute(serverDifferences$jscomp$0)) 20431 attributeName = attributeName.getAttribute( 20432 serverDifferences$jscomp$0 20433 ), checkAttributeStringCoercion( 20434 i, 20435 serverDifferences$jscomp$0 20436 ), i = attributeName === "" + i ? i : attributeName; 20437 else { 20438 switch (typeof i) { 20439 case "function": 20440 case "symbol": 20441 break a; 20442 case "boolean": 20443 if (attributeName = serverDifferences$jscomp$0.toLowerCase().slice(0, 5), "data-" !== attributeName && "aria-" !== attributeName) 20444 break a; 20445 } 20446 i = void 0 === i ? void 0 : null; 20447 } 20448 else i = void 0; 20449 attributes || warnForPropDifference( 20450 value, 20451 i, 20452 propKey, 20453 serverDifferences 20454 ); 20455 } 20456 } 20457 } 20458 0 < extraAttributes.size && true !== props.suppressHydrationWarning && warnForExtraAttributes(domElement, extraAttributes, serverDifferences); 20459 return 0 === Object.keys(serverDifferences).length ? null : serverDifferences; 20460 } 20461 function propNamesListJoin(list, combinator) { 20462 switch (list.length) { 20463 case 0: 20464 return ""; 20465 case 1: 20466 return list[0]; 20467 case 2: 20468 return list[0] + " " + combinator + " " + list[1]; 20469 default: 20470 return list.slice(0, -1).join(", ") + ", " + combinator + " " + list[list.length - 1]; 20471 } 20472 } 20473 function getOwnerDocumentFromRootContainer(rootContainerElement) { 20474 return 9 === rootContainerElement.nodeType ? rootContainerElement : rootContainerElement.ownerDocument; 20475 } 20476 function getOwnHostContext(namespaceURI) { 20477 switch (namespaceURI) { 20478 case SVG_NAMESPACE: 20479 return HostContextNamespaceSvg; 20480 case MATH_NAMESPACE: 20481 return HostContextNamespaceMath; 20482 default: 20483 return HostContextNamespaceNone; 20484 } 20485 } 20486 function getChildHostContextProd(parentNamespace, type) { 20487 if (parentNamespace === HostContextNamespaceNone) 20488 switch (type) { 20489 case "svg": 20490 return HostContextNamespaceSvg; 20491 case "math": 20492 return HostContextNamespaceMath; 20493 default: 20494 return HostContextNamespaceNone; 20495 } 20496 return parentNamespace === HostContextNamespaceSvg && "foreignObject" === type ? HostContextNamespaceNone : parentNamespace; 20497 } 20498 function shouldSetTextContent(type, props) { 20499 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; 20500 } 20501 function shouldAttemptEagerTransition() { 20502 var event = window.event; 20503 if (event && "popstate" === event.type) { 20504 if (event === currentPopstateTransitionEvent) return false;
20505 currentPopstateTransitionEvent = event; 20506 return true; 20507 } 20508 currentPopstateTransitionEvent = null; 20509 return false; 20510 } 20511 function handleErrorInNextTick(error) { 20512 setTimeout(function() { 20513 throw error; 20514 }); 20515 } 20516 function commitMount(domElement, type, newProps) { 20517 switch (type) { 20518 case "button": 20519 case "input": 20520 case "select": 20521 case "textarea": 20522 newProps.autoFocus && domElement.focus(); 20523 break; 20524 case "img": 20525 newProps.src ? domElement.src = newProps.src : newProps.srcSet && (domElement.srcset = newProps.srcSet); 20526 } 20527 } 20528 function commitUpdate(domElement, type, oldProps, newProps) { 20529 updateProperties(domElement, type, oldProps, newProps); 20530 domElement[internalPropsKey] = newProps; 20531 } 20532 function resetTextContent(domElement) { 20533 setTextContent(domElement, ""); 20534 } 20535 function commitTextUpdate(textInstance, oldText, newText) { 20536 textInstance.nodeValue = newText; 20537 } 20538 function isSingletonScope(type) { 20539 return "head" === type; 20540 } 20541 function removeChild(parentInstance, child) { 20542 parentInstance.removeChild(child); 20543 } 20544 function removeChildFromContainer(container, child) { 20545 (9 === container.nodeType ? container.body : "HTML" === container.nodeName ? container.ownerDocument.body : container).removeChild(child); 20546 } 20547 function clearSuspenseBoundary(parentInstance, suspenseInstance) { 20548 var node = suspenseInstance, possiblePreambleContribution = 0, depth = 0; 20549 do { 20550 var nextNode = node.nextSibling; 20551 parentInstance.removeChild(node); 20552 if (nextNode && 8 === nextNode.nodeType) 20553 if (node = nextNode.data, node === SUSPENSE_END_DATA) { 20554 if (0 < possiblePreambleContribution && 8 > possiblePreambleContribution) { 20555 node = possiblePreambleContribution; 20556 var ownerDocument = parentInstance.ownerDocument; 20557 node & PREAMBLE_CONTRIBUTION_HTML && releaseSingletonInstance(ownerDocument.documentElement); 20558 node & PREAMBLE_CONTRIBUTION_BODY && releaseSingletonInstance(ownerDocument.body); 20559 if (node & PREAMBLE_CONTRIBUTION_HEAD) 20560 for (node = ownerDocument.head, releaseSingletonInstance(node), ownerDocument = node.firstChild; ownerDocument; ) { 20561 var nextNode$jscomp$0 = ownerDocument.nextSibling, nodeName = ownerDocument.nodeName; 20562 ownerDocument[internalHoistableMarker] || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === ownerDocument.rel.toLowerCase() || node.removeChild(ownerDocument); 20563 ownerDocument = nextNode$jscomp$0; 20564 } 20565 } 20566 if (0 === depth) { 20567 parentInstance.removeChild(nextNode); 20568 retryIfBlockedOn(suspenseInstance); 20569 return; 20570 } 20571 depth--; 20572 } else 20573 node === SUSPENSE_START_DATA || node === SUSPENSE_PENDING_START_DATA || node === SUSPENSE_FALLBACK_START_DATA ? depth++ : possiblePreambleContribution = node.charCodeAt(0) - 48; 20574 else possiblePreambleContribution = 0; 20575 node = nextNode; 20576 } while (node); 20577 retryIfBlockedOn(suspenseInstance); 20578 } 20579 function hideInstance(instance) { 20580 instance = instance.style; 20581 "function" === typeof instance.setProperty ? instance.setProperty("display", "none", "important") : instance.display = "none"; 20582 } 20583 function hideTextInstance(textInstance) { 20584 textInstance.nodeValue = ""; 20585 } 20586 function unhideInstance(instance, props) { 20587 props = props[STYLE]; 20588 props = void 0 !== props && null !== props && props.hasOwnProperty("display") ? props.display : null; 20589 instance.style.display = null == props || "boolean" === typeof props ? "" : ("" + props).trim(); 20590 } 20591 function unhideTextInstance(textInstance, text) { 20592 textInstance.nodeValue = text; 20593 } 20594 function clearContainerSparingly(container) { 20595 var nextNode = container.firstChild; 20596 nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling); 20597 for (; nextNode; ) { 20598 var node = nextNode; 20599 nextNode = nextNode.nextSibling; 20600 switch (node.nodeName) { 20601 case "HTML": 20602 case "HEAD": 20603 case "BODY": 20604 clearContainerSparingly(node); 20605 detachDeletedInstance(node); 20606 continue; 20607 case "SCRIPT": 20608 case "STYLE": 20609 continue; 20610 case "LINK": 20611 if ("stylesheet" === node.rel.toLowerCase()) continue; 20612 } 20613 container.removeChild(node); 20614 } 20615 } 20616 function canHydrateInstance(instance, type, props, inRootOrSingleton) { 20617 for (; 1 === instance.nodeType; ) { 20618 var anyProps = props; 20619 if (instance.nodeName.toLowerCase() !== type.toLowerCase()) { 20620 if (!inRootOrSingleton && ("INPUT" !== instance.nodeName || "hidden" !== instance.type)) 20621 break; 20622 } else if (!inRootOrSingleton) 20623 if ("input" === type && "hidden" === instance.type) { 20624 checkAttributeStringCoercion(anyProps.name, "name"); 20625 var name = null == anyProps.name ? null : "" + anyProps.name; 20626 if ("hidden" === anyProps.type && instance.getAttribute("name") === name) 20627 return instance; 20628 } else return instance; 20629 else if (!instance[internalHoistableMarker]) 20630 switch (type) { 20631 case "meta": 20632 if (!instance.hasAttribute("itemprop")) break; 20633 return instance; 20634 case "link": 20635 name = instance.getAttribute("rel"); 20636 if ("stylesheet" === name && instance.hasAttribute("data-precedence")) 20637 break; 20638 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)) 20639 break; 20640 return instance; 20641 case "style": 20642 if (instance.hasAttribute("data-precedence")) break; 20643 return instance; 20644 case "script": 20645 name = instance.getAttribute("src"); 20646 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")) 20647 break; 20648 return instance; 20649 default: 20650 return instance; 20651 } 20652 instance = getNextHydratable(instance.nextSibling); 20653 if (null === instance) break; 20654 } 20655 return null; 20656 } 20657 function canHydrateTextInstance(instance, text, inRootOrSingleton) { 20658 if ("" === text) return null; 20659 for (; 3 !== instance.nodeType; ) { 20660 if ((1 !== instance.nodeType || "INPUT" !== instance.nodeName || "hidden" !== instance.type) && !inRootOrSingleton) 20661 return null; 20662 instance = getNextHydratable(instance.nextSibling); 20663 if (null === instance) return null; 20664 } 20665 return instance; 20666 } 20667 function isSuspenseInstanceFallback(instance) { 20668 return instance.data === SUSPENSE_FALLBACK_START_DATA || instance.data === SUSPENSE_PENDING_START_DATA && instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE; 20669 } 20670 function registerSuspenseInstanceRetry(instance, callback) { 20671 var ownerDocument = instance.ownerDocument; 20672 if (instance.data !== SUSPENSE_PENDING_START_DATA || ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) 20673 callback(); 20674 else { 20675 var listener = function() { 20676 callback(); 20677 ownerDocument.removeEventListener("DOMContentLoaded", listener); 20678 }; 20679 ownerDocument.addEventListener("DOMContentLoaded", listener); 20680 instance._reactRetry = listener; 20681 } 20682 } 20683 function getNextHydratable(node) { 20684 for (; null != node; node = node.nextSibling) { 20685 var nodeType = node.nodeType;
20686 if (1 === nodeType || 3 === nodeType) break; 20687 if (8 === nodeType) { 20688 nodeType = node.data; 20689 if (nodeType === SUSPENSE_START_DATA || nodeType === SUSPENSE_FALLBACK_START_DATA || nodeType === SUSPENSE_PENDING_START_DATA || nodeType === FORM_STATE_IS_MATCHING || nodeType === FORM_STATE_IS_NOT_MATCHING) 20690 break; 20691 if (nodeType === SUSPENSE_END_DATA) return null; 20692 } 20693 } 20694 return node; 20695 } 20696 function describeHydratableInstanceForDevWarnings(instance) { 20697 if (1 === instance.nodeType) { 20698 for (var JSCompiler_temp_const = instance.nodeName.toLowerCase(), serverDifferences = {}, attributes = instance.attributes, i = 0; i < attributes.length; i++) { 20699 var attr = attributes[i]; 20700 serverDifferences[getPropNameFromAttributeName(attr.name)] = "style" === attr.name.toLowerCase() ? getStylesObjectFromElement(instance) : attr.value; 20701 } 20702 return { type: JSCompiler_temp_const, props: serverDifferences }; 20703 } 20704 return 8 === instance.nodeType ? { type: "Suspense", props: {} } : instance.nodeValue; 20705 } 20706 function diffHydratedTextForDevWarnings(textInstance, text, parentProps) { 20707 return null === parentProps || true !== parentProps[SUPPRESS_HYDRATION_WARNING] ? (textInstance.nodeValue === text ? textInstance = null : (text = normalizeMarkupForTextOrAttribute(text), textInstance = normalizeMarkupForTextOrAttribute(textInstance.nodeValue) === text ? null : textInstance.nodeValue), textInstance) : null; 20708 } 20709 function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) { 20710 suspenseInstance = suspenseInstance.nextSibling; 20711 for (var depth = 0; suspenseInstance; ) { 20712 if (8 === suspenseInstance.nodeType) { 20713 var data = suspenseInstance.data; 20714 if (data === SUSPENSE_END_DATA) { 20715 if (0 === depth) 20716 return getNextHydratable(suspenseInstance.nextSibling); 20717 depth--; 20718 } else 20719 data !== SUSPENSE_START_DATA && data !== SUSPENSE_FALLBACK_START_DATA && data !== SUSPENSE_PENDING_START_DATA || depth++; 20720 } 20721 suspenseInstance = suspenseInstance.nextSibling; 20722 } 20723 return null; 20724 } 20725 function getParentSuspenseInstance(targetInstance) { 20726 targetInstance = targetInstance.previousSibling; 20727 for (var depth = 0; targetInstance; ) { 20728 if (8 === targetInstance.nodeType) { 20729 var data = targetInstance.data; 20730 if (data === SUSPENSE_START_DATA || data === SUSPENSE_FALLBACK_START_DATA || data === SUSPENSE_PENDING_START_DATA) { 20731 if (0 === depth) return targetInstance; 20732 depth--; 20733 } else data === SUSPENSE_END_DATA && depth++; 20734 } 20735 targetInstance = targetInstance.previousSibling; 20736 } 20737 return null; 20738 } 20739 function commitHydratedContainer(container) { 20740 retryIfBlockedOn(container); 20741 } 20742 function commitHydratedSuspenseInstance(suspenseInstance) { 20743 retryIfBlockedOn(suspenseInstance); 20744 } 20745 function resolveSingletonInstance(type, props, rootContainerInstance, hostContext, validateDOMNestingDev) { 20746 validateDOMNestingDev && validateDOMNesting(type, hostContext.ancestorInfo); 20747 props = getOwnerDocumentFromRootContainer(rootContainerInstance); 20748 switch (type) { 20749 case "html": 20750 type = props.documentElement; 20751 if (!type) 20752 throw Error( 20753 "React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page." 20754 ); 20755 return type; 20756 case "head": 20757 type = props.head; 20758 if (!type) 20759 throw Error( 20760 "React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page." 20761 ); 20762 return type; 20763 case "body": 20764 type = props.body; 20765 if (!type) 20766 throw Error( 20767 "React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page." 20768 ); 20769 return type; 20770 default: 20771 throw Error( 20772 "resolveSingletonInstance was called with an element type that is not supported. This is a bug in React." 20773 ); 20774 } 20775 } 20776 function acquireSingletonInstance(type, props, instance, internalInstanceHandle) { 20777 if (!instance[internalContainerInstanceKey] && getInstanceFromNode(instance)) { 20778 var tagName = instance.tagName.toLowerCase(); 20779 console.error( 20780 "You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", 20781 tagName, 20782 tagName, 20783 tagName 20784 ); 20785 } 20786 switch (type) { 20787 case "html": 20788 case "head": 20789 case "body": 20790 break; 20791 default: 20792 console.error( 20793 "acquireSingletonInstance was called with an element type that is not supported. This is a bug in React." 20794 ); 20795 } 20796 for (tagName = instance.attributes; tagName.length; ) 20797 instance.removeAttributeNode(tagName[0]); 20798 setInitialProperties(instance, type, props); 20799 instance[internalInstanceKey] = internalInstanceHandle; 20800 instance[internalPropsKey] = props; 20801 } 20802 function releaseSingletonInstance(instance) { 20803 for (var attributes = instance.attributes; attributes.length; ) 20804 instance.removeAttributeNode(attributes[0]); 20805 detachDeletedInstance(instance); 20806 } 20807 function getHoistableRoot(container) { 20808 return "function" === typeof container.getRootNode ? container.getRootNode() : 9 === container.nodeType ? container : container.ownerDocument; 20809 } 20810 function preconnectAs(rel, href, crossOrigin) { 20811 var ownerDocument = globalDocument; 20812 if (ownerDocument && "string" === typeof href && href) { 20813 var limitedEscapedHref = escapeSelectorAttributeValueInsideDoubleQuotes(href); 20814 limitedEscapedHref = 'link[rel="' + rel + '"][href="' + limitedEscapedHref + '"]'; 20815 "string" === typeof crossOrigin && (limitedEscapedHref += '[crossorigin="' + crossOrigin + '"]'); 20816 preconnectsSet.has(limitedEscapedHref) || (preconnectsSet.add(limitedEscapedHref), rel = { rel, crossOrigin, href }, null === ownerDocument.querySelector(limitedEscapedHref) && (href = ownerDocument.createElement("link"), setInitialProperties(href, "link", rel), markNodeAsHoistable(href), ownerDocument.head.appendChild(href))); 20817 } 20818 } 20819 function getResource(type, currentProps, pendingProps, currentResource) { 20820 var resourceRoot = (resourceRoot = rootInstanceStackCursor.current) ? getHoistableRoot(resourceRoot) : null; 20821 if (!resourceRoot) 20822 throw Error( 20823 '"resourceRoot" was expected to exist. This is a bug in React.' 20824 ); 20825 switch (type) { 20826 case "meta": 20827 case "title": 20828 return null; 20829 case "style": 20830 return "string" === typeof pendingProps.precedence && "string" === typeof pendingProps.href ? (pendingProps = getStyleKey(pendingProps.href), currentProps = getResourcesFromRoot(resourceRoot).hoistableStyles, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 20831 type: "style", 20832 instance: null, 20833 count: 0, 20834 state: null 20835 }, currentProps.set(pendingProps, currentResource)), currentResource) : { type: "void", instance: null, count: 0, state: null }; 20836 case "link":
20837 if ("stylesheet" === pendingProps.rel && "string" === typeof pendingProps.href && "string" === typeof pendingProps.precedence) { 20838 type = getStyleKey(pendingProps.href); 20839 var _styles = getResourcesFromRoot(resourceRoot).hoistableStyles, _resource = _styles.get(type); 20840 if (!_resource && (resourceRoot = resourceRoot.ownerDocument || resourceRoot, _resource = { 20841 type: "stylesheet", 20842 instance: null, 20843 count: 0, 20844 state: { loading: NotLoaded, preload: null } 20845 }, _styles.set(type, _resource), (_styles = resourceRoot.querySelector( 20846 getStylesheetSelectorFromKey(type) 20847 )) && !_styles._p && (_resource.instance = _styles, _resource.state.loading = Loaded | Inserted), !preloadPropsMap.has(type))) { 20848 var preloadProps = { 20849 rel: "preload", 20850 as: "style", 20851 href: pendingProps.href, 20852 crossOrigin: pendingProps.crossOrigin, 20853 integrity: pendingProps.integrity, 20854 media: pendingProps.media, 20855 hrefLang: pendingProps.hrefLang, 20856 referrerPolicy: pendingProps.referrerPolicy 20857 }; 20858 preloadPropsMap.set(type, preloadProps); 20859 _styles || preloadStylesheet( 20860 resourceRoot, 20861 type, 20862 preloadProps, 20863 _resource.state 20864 ); 20865 } 20866 if (currentProps && null === currentResource) 20867 throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error( 20868 "Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps 20869 ); 20870 return _resource; 20871 } 20872 if (currentProps && null !== currentResource) 20873 throw pendingProps = "\n\n - " + describeLinkForResourceErrorDEV(currentProps) + "\n + " + describeLinkForResourceErrorDEV(pendingProps), Error( 20874 "Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key." + pendingProps 20875 ); 20876 return null; 20877 case "script": 20878 return currentProps = pendingProps.async, pendingProps = pendingProps.src, "string" === typeof pendingProps && currentProps && "function" !== typeof currentProps && "symbol" !== typeof currentProps ? (pendingProps = getScriptKey(pendingProps), currentProps = getResourcesFromRoot(resourceRoot).hoistableScripts, currentResource = currentProps.get(pendingProps), currentResource || (currentResource = { 20879 type: "script", 20880 instance: null, 20881 count: 0, 20882 state: null 20883 }, currentProps.set(pendingProps, currentResource)), currentResource) : { type: "void", instance: null, count: 0, state: null }; 20884 default: 20885 throw Error( 20886 'getResource encountered a type it did not expect: "' + type + '". this is a bug in React.' 20887 ); 20888 } 20889 } 20890 function describeLinkForResourceErrorDEV(props) { 20891 var describedProps = 0, description = "<link"; 20892 "string" === typeof props.rel ? (describedProps++, description += ' rel="' + props.rel + '"') : hasOwnProperty.call(props, "rel") && (describedProps++, description += ' rel="' + (null === props.rel ? "null" : "invalid type " + typeof props.rel) + '"'); 20893 "string" === typeof props.href ? (describedProps++, description += ' href="' + props.href + '"') : hasOwnProperty.call(props, "href") && (describedProps++, description += ' href="' + (null === props.href ? "null" : "invali
20893d type " + typeof props.href) + '"'); 20894 "string" === typeof props.precedence ? (describedProps++, description += ' precedence="' + props.precedence + '"') : hasOwnProperty.call(props, "precedence") && (describedProps++, description += " precedence={" + (null === props.precedence ? "null" : "invalid type " + typeof props.precedence) + "}"); 20895 Object.getOwnPropertyNames(props).length > describedProps && (description += " ..."); 20896 return description + " />"; 20897 } 20898 function getStyleKey(href) { 20899 return 'href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"'; 20900 } 20901 function getStylesheetSelectorFromKey(key) { 20902 return 'link[rel="stylesheet"][' + key + "]"; 20903 } 20904 function stylesheetPropsFromRawProps(rawProps) { 20905 return assign({}, rawProps, { 20906 "data-precedence": rawProps.precedence, 20907 precedence: null 20908 }); 20909 } 20910 function preloadStylesheet(ownerDocument, key, preloadProps, state) { 20911 ownerDocument.querySelector( 20912 'link[rel="preload"][as="style"][' + key + "]" 20913 ) ? state.loading = Loaded : (key = ownerDocument.createElement("link"), state.preload = key, key.addEventListener("load", function() { 20914 return state.loading |= Loaded; 20915 }), key.addEventListener("error", function() { 20916 return state.loading |= Errored; 20917 }), setInitialProperties(key, "link", preloadProps), markNodeAsHoistable(key), ownerDocument.head.appendChild(key)); 20918 } 20919 function getScriptKey(src) { 20920 return '[src="' + escapeSelectorAttributeValueInsideDoubleQuotes(src) + '"]'; 20921 } 20922 function getScriptSelectorFromKey(key) { 20923 return "script[async]" + key; 20924 } 20925 function acquireResource(hoistableRoot, resource, props) { 20926 resource.count++; 20927 if (null === resource.instance) 20928 switch (resource.type) { 20929 case "style": 20930 var instance = hoistableRoot.querySelector( 20931 'style[data-href~="' + escapeSelectorAttributeValueInsideDoubleQuotes(props.href) + '"]' 20932 ); 20933 if (instance) 20934 return resource.instance = instance, markNodeAsHoistable(instance), instance; 20935 var styleProps = assign({}, props, { 20936 "data-href": props.href, 20937 "data-precedence": props.precedence, 20938 href: null, 20939 precedence: null 20940 }); 20941 instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("style"); 20942 markNodeAsHoistable(instance); 20943 setInitialProperties(instance, "style", styleProps); 20944 insertStylesheet(instance, props.precedence, hoistableRoot); 20945 return resource.instance = instance; 20946 case "stylesheet": 20947 styleProps = getStyleKey(props.href); 20948 var _instance = hoistableRoot.querySelector( 20949 getStylesheetSelectorFromKey(styleProps) 20950 ); 20951 if (_instance) 20952 return resource.state.loading |= Inserted, resource.instance = _instance, markNodeAsHoistable(_instance), _instance; 20953 instance = stylesheetPropsFromRawProps(props); 20954 (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); 20955 _instance = (hoistableRoot.ownerDocument || hoistableRoot).createElement("link"); 20956 markNodeAsHoistable(_instance); 20957 var linkInstance = _instance; 20958 linkInstance._p = new Promise(function(resolve, reject) { 20959 linkInstance.onload = resolve; 20960 linkInstance.onerror = reject; 20961 }); 20962 setInitialProperties(_instance, "link", instance); 20963 resource.state.loading |= Inserted; 20964 insertStylesheet(_instance, props.precedence, hoistableRoot); 20965 return resource.instance = _instance; 20966 case "script": 20967 _instance = getScriptKey(props.src); 20968 if (styleProps = hoistableRoot.querySelector( 20969 getScriptSelectorFromKey(_instance) 20970 )) 20971 return resource.instance = styleProps, markNodeAsHoistable(styleProps), styleProps; 20972 instance = props; 20973 if (styleProps = preloadPropsMap.get(_instance)) 20974 instance = assign({}, props), adoptPreloadPropsForScript(instance, styleProps); 20975 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 20976 styleProps = hoistableRoot.createElement("script"); 20977 markNodeAsHoistable(styleProps); 20978 setInitialProperties(styleProps, "link", instance); 20979 hoistableRoot.head.appendChild(styleProps); 20980 return resource.instance = styleProps; 20981 case "void": 20982 return null; 20983 default: 20984 throw Error( 20985 'acquireResource encountered a resource type it did not expect: "' + resource.type + '". this is a bug in React.' 20986 ); 20987 } 20988 else 20989 "stylesheet" === resource.type && (resource.state.loading & Inserted) === NotLoaded && (instance = resource.instance, resource.state.loading |= Inserted, insertStylesheet(instance, props.precedence, hoistableRoot)); 20990 return resource.instance; 20991 } 20992 function insertStylesheet(instance, precedence, root2) { 20993 for (var nodes = root2.querySelectorAll( 20994 'link[rel="stylesheet"][data-precedence],style[data-precedence]' 20995 ), last = nodes.length ? nodes[nodes.length - 1] : null, prior = last, i = 0; i < nodes.length; i++) { 20996 var node = nodes[i]; 20997 if (node.dataset.precedence === precedence) prior = node; 20998 else if (prior !== last) break; 20999 } 21000 prior ? prior.parentNode.insertBefore(instance, prior.nextSibling) : (precedence = 9 === root2.nodeType ? root2.head : root2, precedence.insertBefore(instance, precedence.firstChild)); 21001 } 21002 function adoptPreloadPropsForStylesheet(stylesheetProps, preloadProps) { 21003 null == stylesheetProps.crossOrigin && (stylesheetProps.crossOrigin = preloadProps.crossOrigin); 21004 null == stylesheetProps.referrerPolicy && (stylesheetProps.referrerPolicy = preloadProps.referrerPolicy); 21005 null == stylesheetProps.title && (stylesheetProps.title = preloadProps.title); 21006 } 21007 function adoptPreloadPropsForScript(scriptProps, preloadProps) { 21008 null == scriptProps.crossOrigin && (scriptProps.crossOrigin = preloadProps.crossOrigin); 21009 null == scriptProps.referrerPolicy && (scriptProps.referrerPolicy = preloadProps.referrerPolicy); 21010 null == scriptProps.integrity && (scriptProps.integrity = preloadProps.integrity); 21011 } 21012 function getHydratableHoistableCache(type, keyAttribute, ownerDocument) { 21013 if (null === tagCaches) { 21014 var cache = /* @__PURE__ */ new Map(); 21015 var caches = tagCaches = /* @__PURE__ */ new Map(); 21016 caches.set(ownerDocument, cache); 21017 } else 21018 caches = tagCaches, cache = caches.get(ownerDocument), cache || (cache = /* @__PURE__ */ new Map(), caches.set(ownerDocument, cache)); 21019 if (cache.has(type)) return cache; 21020 cache.set(type, null); 21021 ownerDocument = ownerDocument.getElementsByTagName(type); 21022 for (caches = 0; caches < ownerDocument.length; caches++) { 21023 var node = ownerDocument[caches]; 21024 if (!(node[internalHoistableMarker] || node[internalInstanceKey] || "link" === type && "stylesheet" === node.getAttribute("rel")) && node.namespaceURI !== SVG_NAMESPACE) { 21025 var nodeKey = node.getAttribute(keyAttribute) || ""; 21026 nodeKey = type + nodeKey; 21027 var existing = cache.get(nodeKey);
21028 existing ? existing.push(node) : cache.set(nodeKey, [node]); 21029 } 21030 } 21031 return cache; 21032 } 21033 function mountHoistable(hoistableRoot, type, instance) { 21034 hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; 21035 hoistableRoot.head.insertBefore( 21036 instance, 21037 "title" === type ? hoistableRoot.querySelector("head > title") : null 21038 ); 21039 } 21040 function isHostHoistableType(type, props, hostContext) { 21041 var outsideHostContainerContext = !hostContext.ancestorInfo.containerTagInScope; 21042 if (hostContext.context === HostContextNamespaceSvg || null != props.itemProp) 21043 return !outsideHostContainerContext || null == props.itemProp || "meta" !== type && "title" !== type && "style" !== type && "link" !== type && "script" !== type || console.error( 21044 "Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.", 21045 type, 21046 type 21047 ), false; 21048 switch (type) { 21049 case "meta": 21050 case "title": 21051 return true; 21052 case "style": 21053 if ("string" !== typeof props.precedence || "string" !== typeof props.href || "" === props.href) { 21054 outsideHostContainerContext && console.error( 21055 'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.' 21056 ); 21057 break; 21058 } 21059 return true; 21060 case "link": 21061 if ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href || props.onLoad || props.onError) { 21062 if ("stylesheet" === props.rel && "string" === typeof props.precedence) { 21063 type = props.href; 21064 var onError = props.onError, disabled = props.disabled; 21065 hostContext = []; 21066 props.onLoad && hostContext.push("`onLoad`"); 21067 onError && hostContext.push("`onError`"); 21068 null != disabled && hostContext.push("`disabled`"); 21069 onError = propNamesListJoin(hostContext, "and"); 21070 onError += 1 === hostContext.length ? " prop" : " props"; 21071 disabled = 1 === hostContext.length ? "an " + onError : "the " + onError; 21072 hostContext.length && console.error( 21073 'React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.', 21074 type, 21075 disabled, 21076 onError 21077 ); 21078 } 21079 outsideHostContainerContext && ("string" !== typeof props.rel || "string" !== typeof props.href || "" === props.href ? console.error( 21080 "Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag" 21081 ) : (props.onError || props.onLoad) && console.error( 21082 "Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>." 21083 )); 21084 break; 21085 } 21086 switch (props.rel) { 21087 case "stylesheet": 21088 return type = props.precedence, props = props.disabled, "string" !== typeof type && outsideHostContainerContext && console.error( 21089 'Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.' 21090 ), "string" === typeof type && null == props; 21091 default: 21092 return true; 21093 } 21094 case "script": 21095 type = props.async && "function" !== typeof props.async && "symbol" !== typeof props.async; 21096 if (!type || props.onLoad || props.onError || !props.src || "string" !== typeof props.src) { 21097 outsideHostContainerContext && (type ? props.onLoad || props.onError ? console.error( 21098 "Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>." 21099 ) : console.error( 21100 "Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>." 21101 ) : console.error( 21102 'Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.' 21103 )); 21104 break; 21105 } 21106 return true; 21107 case "noscript": 21108 case "template": 21109 outsideHostContainerContext && console.error( 21110 "Cannot render <%s> outside the main document. Try moving it into the root <head> tag.", 21111 type 21112 ); 21113 } 21114 return false;
21115 } 21116 function preloadResource(resource) { 21117 return "stylesheet" === resource.type && (resource.state.loading & Settled) === NotLoaded ? false : true; 21118 } 21119 function noop() { 21120 } 21121 function suspendResource(hoistableRoot, resource, props) { 21122 if (null === suspendedState) 21123 throw Error( 21124 "Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug." 21125 ); 21126 var state = suspendedState; 21127 if ("stylesheet" === resource.type && ("string" !== typeof props.media || false !== matchMedia(props.media).matches) && (resource.state.loading & Inserted) === NotLoaded) { 21128 if (null === resource.instance) { 21129 var key = getStyleKey(props.href), instance = hoistableRoot.querySelector( 21130 getStylesheetSelectorFromKey(key) 21131 ); 21132 if (instance) { 21133 hoistableRoot = instance._p; 21134 null !== hoistableRoot && "object" === typeof hoistableRoot && "function" === typeof hoistableRoot.then && (state.count++, state = onUnsuspend.bind(state), hoistableRoot.then(state, state)); 21135 resource.state.loading |= Inserted; 21136 resource.instance = instance; 21137 markNodeAsHoistable(instance); 21138 return; 21139 } 21140 instance = hoistableRoot.ownerDocument || hoistableRoot; 21141 props = stylesheetPropsFromRawProps(props); 21142 (key = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(props, key); 21143 instance = instance.createElement("link"); 21144 markNodeAsHoistable(instance); 21145 var linkInstance = instance; 21146 linkInstance._p = new Promise(function(resolve, reject) { 21147 linkInstance.onload = resolve; 21148 linkInstance.onerror = reject; 21149 }); 21150 setInitialProperties(instance, "link", props); 21151 resource.instance = instance; 21152 } 21153 null === state.stylesheets && (state.stylesheets = /* @__PURE__ */ new Map()); 21154 state.stylesheets.set(resource, hoistableRoot); 21155 (hoistableRoot = resource.state.preload) && (resource.state.loading & Settled) === NotLoaded && (state.count++, resource = onUnsuspend.bind(state), hoistableRoot.addEventListener("load", resource), hoistableRoot.addEventListener("error", resource)); 21156 } 21157 } 21158 function waitForCommitToBeReady() { 21159 if (null === suspendedState) 21160 throw Error( 21161 "Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug." 21162 ); 21163 var state = suspendedState; 21164 state.stylesheets && 0 === state.count && insertSuspendedStylesheets(state, state.stylesheets); 21165 return 0 < state.count ? function(commit) { 21166 var stylesheetTimer = setTimeout(function() { 21167 state.stylesheets && insertSuspendedStylesheets(state, state.stylesheets); 21168 if (state.unsuspend) { 21169 var unsuspend = state.unsuspend; 21170 state.unsuspend = null; 21171 unsuspend(); 21172 } 21173 }, 6e4); 21174 state.unsuspend = commit; 21175 return function() { 21176 state.unsuspend = null; 21177 clearTimeout(stylesheetTimer); 21178 }; 21179 } : null; 21180 } 21181 function onUnsuspend() { 21182 this.count--; 21183 if (0 === this.count) { 21184 if (this.stylesheets) 21185 insertSuspendedStylesheets(this, this.stylesheets); 21186 else if (this.unsuspend) { 21187 var unsuspend = this.unsuspend; 21188 this.unsuspend = null; 21189 unsuspend(); 21190 } 21191 } 21192 } 21193 function insertSuspendedStylesheets(state, resources) { 21194 state.stylesheets = null; 21195 null !== state.unsuspend && (state.count++, precedencesByRoot = /* @__PURE__ */ new Map(), resources.forEach(insertStylesheetIntoRoot, state), precedencesByRoot = null, onUnsuspend.call(state)); 21196 } 21197 function insertStylesheetIntoRoot(root2, resource) { 21198 if (!(resource.state.loading & Inserted)) { 21199 var precedences = precedencesByRoot.get(root2); 21200 if (precedences) var last = precedences.get(LAST_PRECEDENCE); 21201 else { 21202 precedences = /* @__PURE__ */ new Map(); 21203 precedencesByRoot.set(root2, precedences); 21204 for (var nodes = root2.querySelectorAll( 21205 "link[data-precedence],style[data-precedence]" 21206 ), i = 0; i < nodes.length; i++) { 21207 var node = nodes[i];
21208 if ("LINK" === node.nodeName || "not all" !== node.getAttribute("media")) 21209 precedences.set(node.dataset.precedence, node), last = node; 21210 } 21211 last && precedences.set(LAST_PRECEDENCE, last); 21212 } 21213 nodes = resource.instance; 21214 node = nodes.getAttribute("data-precedence"); 21215 i = precedences.get(node) || last; 21216 i === last && precedences.set(LAST_PRECEDENCE, nodes); 21217 precedences.set(node, nodes); 21218 this.count++; 21219 last = onUnsuspend.bind(this); 21220 nodes.addEventListener("load", last); 21221 nodes.addEventListener("error", last); 21222 i ? i.parentNode.insertBefore(nodes, i.nextSibling) : (root2 = 9 === root2.nodeType ? root2.head : root2, root2.insertBefore(nodes, root2.firstChild)); 21223 resource.state.loading |= Inserted; 21224 } 21225 } 21226 function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, formState) { 21227 this.tag = 1; 21228 this.containerInfo = containerInfo; 21229 this.pingCache = this.current = this.pendingChildren = null; 21230 this.timeoutHandle = noTimeout; 21231 this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null; 21232 this.callbackPriority = 0; 21233 this.expirationTimes = createLaneMap(-1); 21234 this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; 21235 this.entanglements = createLaneMap(0); 21236 this.hiddenUpdates = createLaneMap(null); 21237 this.identifierPrefix = identifierPrefix; 21238 this.onUncaughtError = onUncaughtError; 21239 this.onCaughtError = onCaughtError; 21240 this.onRecoverableError = onRecoverableError; 21241 this.pooledCache = null; 21242 this.pooledCacheLanes = 0; 21243 this.formState = formState; 21244 this.incompleteTransitions = /* @__PURE__ */ new Map(); 21245 this.passiveEffectDuration = this.effectDuration = -0; 21246 this.memoizedUpdaters = /* @__PURE__ */ new Set(); 21247 containerInfo = this.pendingUpdatersLaneMap = []; 21248 for (tag = 0; 31 > tag; tag++) containerInfo.push(/* @__PURE__ */ new Set()); 21249 this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; 21250 } 21251 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transitionCallbacks, formState) { 21252 containerInfo = new FiberRootNode( 21253 containerInfo, 21254 tag, 21255 hydrate, 21256 identifierPrefix, 21257 onUncaughtError, 21258 onCaughtError, 21259 onRecoverableError, 21260 formState 21261 ); 21262 tag = ConcurrentMode; 21263 true === isStrictMode && (tag |= StrictLegacyMode | StrictEffectsMode); 21264 isDevToolsPresent && (tag |= ProfileMode); 21265 isStrictMode = createFiber(3, null, null, tag); 21266 containerInfo.current = isStrictMode; 21267 isStrictMode.stateNode = containerInfo; 21268 tag = createCache(); 21269 retainCache(tag); 21270 containerInfo.pooledCache = tag; 21271 retainCache(tag); 21272 isStrictMode.memoizedState = { 21273 element: initialChildren, 21274 isDehydrated: hydrate, 21275 cache: tag 21276 }; 21277 initializeUpdateQueue(isStrictMode); 21278 return containerInfo; 21279 } 21280 function getContextForSubtree(parentComponent) { 21281 if (!parentComponent) return emptyContextObject; 21282 parentComponent = emptyContextObject; 21283 return parentComponent; 21284 } 21285 function updateContainerImpl(rootFiber, lane, element, container, parentComponent, callback) { 21286 if (injectedHook && "function" === typeof injectedHook.onScheduleFiberRoot) 21287 try { 21288 injectedHook.onScheduleFiberRoot(rendererID, container, element); 21289 } catch (err) { 21290 hasLoggedError || (hasLoggedError = true, console.error( 21291 "React instrumentation encountered an error: %s", 21292 err 21293 )); 21294 } 21295 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markRenderScheduled && injectedProfilingHooks.markRenderScheduled(lane); 21296 parentComponent = getContextForSubtree(parentComponent); 21297 null === container.context ? container.context = parentComponent : container.pendingContext = parentComponent; 21298 isRendering && null !== current && !didWarnAboutNestedUpdates && (didWarnAboutNestedUpdates = true, console.error( 21299 "Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", 21300 getComponentNameFromFiber(current) || "Unknown" 21301 )); 21302 container = createUpdate(lane); 21303 container.payload = { element }; 21304 callback = void 0 === callback ? null : callback; 21305 null !== callback && ("function" !== typeof callback && console.error( 21306 "Expected the last optional `callback` argument to be a function. Instead received: %s.", 21307 callback 21308 ), container.callback = callback); 21309 element = enqueueUpdate(rootFiber, container, lane); 21310 null !== element && (scheduleUpdateOnFiber(element, rootFiber, lane), entangleTransitions(element, rootFiber, lane)); 21311 } 21312 function markRetryLaneImpl(fiber, retryLane) { 21313 fiber = fiber.memoizedState; 21314 if (null !== fiber && null !== fiber.dehydrated) { 21315 var a = fiber.retryLane; 21316 fiber.retryLane = 0 !== a && a < retryLane ? a : retryLane; 21317 } 21318 } 21319 function markRetryLaneIfNotHydrated(fiber, retryLane) { 21320 markRetryLaneImpl(fiber, retryLane); 21321 (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane); 21322 } 21323 function attemptContinuousHydration(fiber) { 21324 if (13 === fiber.tag) { 21325 var root2 = enqueueConcurrentRenderForLane(fiber, 67108864); 21326 null !== root2 && scheduleUpdateOnFiber(root2, fiber, 67108864); 21327 markRetryLaneIfNotHydrated(fiber, 67108864); 21328 } 21329 } 21330 function getCurrentFiberForDevTools() { 21331 return current; 21332 } 21333 function getLaneLabelMap() { 21334 for (var map = /* @__PURE__ */ new Map(), lane = 1, index = 0; 31 > index; index++) { 21335 var label = getLabelForLane(lane); 21336 map.set(lane, label); 21337 lane *= 2; 21338 } 21339 return map; 21340 } 21341 function dispatchDiscreteEvent(domEventName, eventSystemFlags, container, nativeEvent) { 21342 var prevTransition = ReactSharedInternals.T; 21343 ReactSharedInternals.T = null; 21344 var previousPriority = ReactDOMSharedInternals.p; 21345 try { 21346 ReactDOMSharedInternals.p = DiscreteEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 21347 } finally { 21348 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 21349 } 21350 } 21351 function dispatchContinuousEvent(domEventName, eventSystemFlags, container, nativeEvent) { 21352 var prevTransition = ReactSharedInternals.T; 21353 ReactSharedInternals.T = null; 21354 var previousPriority = ReactDOMSharedInternals.p; 21355 try { 21356 ReactDOMSharedInternals.p = ContinuousEventPriority, dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); 21357 } finally { 21358 ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition; 21359 } 21360 } 21361 function dispatchEvent(domEventName, eventSystemFlags, targetContainer, nativeEvent) { 21362 if (_enabled) { 21363 var blockedOn = findInstanceBlockingEvent(nativeEvent); 21364 if (null === blockedOn) 21365 dispatchEventForPluginEventSystem( 21366 domEventName, 21367 eventSystemFlags, 21368 nativeEvent, 21369 return_targetInst, 21370 targetContainer 21371 ), clearIfContinuousEvent(domEventName, nativeEvent); 21372 else if (queueIfContinuousEvent( 21373 blockedOn, 21374 domEventName, 21375 eventSystemFlags, 21376 targetContainer, 21377 nativeEvent 21378 )) 21379 nativeEvent.stopPropagation(); 21380 else if (clearIfContinuousEvent(domEventName, nativeEvent), eventSystemFlags & 4 && -1 < discreteReplayableEvents.indexOf(domEventName)) { 21381 for (; null !== blockedOn; ) { 21382 var fiber = getInstanceFromNode(blockedOn); 21383 if (null !== fiber) 21384 switch (fiber.tag) { 21385 case 3: 21386 fiber = fiber.stateNode; 21387 if (fiber.current.memoizedState.isDehydrated) { 21388 var lanes = getHighestPriorityLanes(fiber.pendingLanes); 21389 if (0 !== lanes) { 21390 var root2 = fiber; 21391 root2.pendingLanes |= 2; 21392 for (root2.entangledLanes |= 2; lanes; ) { 21393 var lane = 1 << 31 - clz32(lanes); 21394 root2.entanglements[1] |= lane; 21395 lanes &= ~lane; 21396 } 21397 ensureRootIsScheduled(fiber); 21398 (executionContext & (RenderContext | CommitContext)) === NoContext && (workInProgressRootRenderTargetTime = n
21398ow$1() + RENDER_TIMEOUT_MS, flushSyncWorkAcrossRoots_impl(0)); 21399 } 21400 } 21401 break; 21402 case 13: 21403 root2 = enqueueConcurrentRenderForLane(fiber, 2), null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2), flushSyncWork$1(), markRetryLaneIfNotHydrated(fiber, 2); 21404 } 21405 fiber = findInstanceBlockingEvent(nativeEvent); 21406 null === fiber && dispatchEventForPluginEventSystem( 21407 domEventName, 21408 eventSystemFlags, 21409 nativeEvent, 21410 return_targetInst, 21411 targetContainer 21412 ); 21413 if (fiber === blockedOn) break; 21414 blockedOn = fiber; 21415 } 21416 null !== blockedOn && nativeEvent.stopPropagation(); 21417 } else 21418 dispatchEventForPluginEventSystem( 21419 domEventName, 21420 eventSystemFlags, 21421 nativeEvent, 21422 null, 21423 targetContainer 21424 ); 21425 } 21426 } 21427 function findInstanceBlockingEvent(nativeEvent) { 21428 nativeEvent = getEventTarget(nativeEvent); 21429 return findInstanceBlockingTarget(nativeEvent); 21430 } 21431 function findInstanceBlockingTarget(targetNode) { 21432 return_targetInst = null; 21433 targetNode = getClosestInstanceFromNode(targetNode); 21434 if (null !== targetNode) { 21435 var nearestMounted = getNearestMountedFiber(targetNode); 21436 if (null === nearestMounted) targetNode = null; 21437 else { 21438 var tag = nearestMounted.tag; 21439 if (13 === tag) { 21440 targetNode = getSuspenseInstanceFromFiber(nearestMounted); 21441 if (null !== targetNode) return targetNode; 21442 targetNode = null; 21443 } else if (3 === tag) { 21444 if (nearestMounted.stateNode.current.memoizedState.isDehydrated) 21445 return 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 21446 targetNode = null; 21447 } else nearestMounted !== targetNode && (targetNode = null); 21448 } 21449 } 21450 return_targetInst = targetNode; 21451 return null; 21452 } 21453 function getEventPriority(domEventName) { 21454 switch (domEventName) { 21455 case "beforetoggle": 21456 case "cancel": 21457 case "click": 21458 case "close": 21459 case "contextmenu": 21460 case "copy": 21461 case "cut": 21462 case "auxclick": 21463 case "dblclick": 21464 case "dragend": 21465 case "dragstart": 21466 case "drop": 21467 case "focusin": 21468 case "focusout": 21469 case "input": 21470 case "invalid": 21471 case "keydown": 21472 case "keypress": 21473 case "keyup": 21474 case "mousedown": 21475 case "mouseup": 21476 case "paste": 21477 case "pause": 21478 case "play": 21479 case "pointercancel": 21480 case "pointerdown": 21481 case "pointerup": 21482 case "ratechange": 21483 case "reset": 21484 case "resize": 21485 case "seeked": 21486 case "submit": 21487 case "toggle": 21488 case "touchcancel": 21489 case "touchend": 21490 case "touchstart": 21491 case "volumechange": 21492 case "change": 21493 case "selectionchange": 21494 case "textInput": 21495 case "compositionstart": 21496 case "compositionend": 21497 case "compositionupdate": 21498 case "beforeblur": 21499 case "afterblur": 21500 case "beforeinput": 21501 case "blur": 21502 case "fullscreenchange": 21503 case "focus": 21504 case "hashchange": 21505 case "popstate": 21506 case "select": 21507 case "selectstart": 21508 return DiscreteEventPriority; 21509 case "drag": 21510 case "dragenter": 21511 case "dragexit": 21512 case "dragleave": 21513 case "dragover": 21514 case "mousemove": 21515 case "mouseout": 21516 case "mouseover": 21517 case "pointermove": 21518 case "pointerout": 21519 case "pointerover": 21520 case "scroll": 21521 case "touchmove": 21522 case "wheel": 21523 case "mouseenter": 21524 case "mouseleave": 21525 case "pointerenter": 21526 case "pointerleave": 21527 return ContinuousEventPriority; 21528 case "message": 21529 switch (getCurrentPriorityLevel()) { 21530 case ImmediatePriority: 21531 return DiscreteEventPriority; 21532 case UserBlockingPriority: 21533 return ContinuousEventPriority; 21534 case NormalPriority$1: 21535 case LowPriority: 21536 return DefaultEventPriority; 21537 case IdlePriority: 21538 return IdleEventPriority; 21539 default: 21540 return DefaultEventPriority; 21541 } 21542 default: 21543 return DefaultEventPriority; 21544 } 21545 } 21546 function clearIfContinuousEvent(domEventName, nativeEvent) { 21547 switch (domEventName) { 21548 case "focusin": 21549 case "focusout": 21550 queuedFocus = null; 21551 break; 21552 case "dragenter": 21553 case "dragleave": 21554 queuedDrag = null; 21555 break; 21556 case "mouseover": 21557 case "mouseout": 21558 queuedMouse = null; 21559 break; 21560 case "pointerover": 21561 case "pointerout": 21562 queuedPointers.delete(nativeEvent.pointerId); 21563 break; 21564 case "gotpointercapture": 21565 case "lostpointercapture": 21566 queuedPointerCaptures.delete(nativeEvent.pointerId); 21567 } 21568 } 21569 function accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 21570 if (null === existingQueuedEvent || existingQueuedEvent.nativeEvent !== nativeEvent) 21571 return existingQueuedEvent = { 21572 blockedOn, 21573 domEventName, 21574 eventSystemFlags, 21575 nativeEvent, 21576 targetContainers: [targetContainer] 21577 }, null !== blockedOn && (blockedOn = getInstanceFromNode(blockedOn), null !== blockedOn && attemptContinuousHydration(blockedOn)), existingQueuedEvent; 21578 existingQueuedEvent.eventSystemFlags |= eventSystemFlags; 21579 blockedOn = existingQueuedEvent.targetContainers; 21580 null !== targetContainer && -1 === blockedOn.indexOf(targetContainer) && blockedOn.push(targetContainer); 21581 return existingQueuedEvent; 21582 } 21583 function queueIfContinuousEvent(blockedOn, domEventName, eventSystemFlags, targetContainer, nativeEvent) { 21584 switch (domEventName) { 21585 case "focusin": 21586 return queuedFocus = accumulateOrCreateContinuousQueuedReplayableEvent( 21587 queuedFocus, 21588 blockedOn, 21589 domEventName, 21590 eventSystemFlags, 21591 targetContainer, 21592 nativeEvent 21593 ), true; 21594 case "dragenter": 21595 return queuedDrag = accumulateOrCreateContinuousQueuedReplayableEvent( 21596 queuedDrag, 21597 blockedOn, 21598 domEventName, 21599 eventSystemFlags, 21600 targetContainer, 21601 nativeEvent 21602 ), true; 21603 case "mouseover": 21604 return queuedMouse = accumulateOrCreateContinuousQueuedReplayableEvent( 21605 queuedMouse, 21606 blockedOn, 21607 domEventName, 21608 eventSystemFlags, 21609 targetContainer, 21610 nativeEvent 21611 ), true; 21612 case "pointerover": 21613 var pointerId = nativeEvent.pointerId; 21614 queuedPointers.set( 21615 pointerId, 21616 accumulateOrCreateContinuousQueuedReplayableEvent( 21617 queuedPointers.get(pointerId) || null, 21618 blockedOn, 21619 domEventName, 21620 eventSystemFlags, 21621 targetContainer, 21622 nativeEvent 21623 ) 21624 ); 21625 return true; 21626 case "gotpointercapture": 21627 return pointerId = nativeEvent.pointerId, queuedPointerCaptures.set( 21628 pointerId, 21629 accumulateOrCreateContinuousQueuedReplayableEvent( 21630 queuedPointerCaptures.get(pointerId) || null, 21631 blockedOn, 21632 domEventName, 21633 eventSystemFlags, 21634 targetContainer, 21635 nativeEvent 21636 ) 21637 ), true; 21638 } 21639 return false;
21640 } 21641 function attemptExplicitHydrationTarget(queuedTarget) { 21642 var targetInst = getClosestInstanceFromNode(queuedTarget.target); 21643 if (null !== targetInst) { 21644 var nearestMounted = getNearestMountedFiber(targetInst); 21645 if (null !== nearestMounted) { 21646 if (targetInst = nearestMounted.tag, 13 === targetInst) { 21647 if (targetInst = getSuspenseInstanceFromFiber(nearestMounted), null !== targetInst) { 21648 queuedTarget.blockedOn = targetInst; 21649 runWithPriority(queuedTarget.priority, function() { 21650 if (13 === nearestMounted.tag) { 21651 var lane = requestUpdateLane(nearestMounted); 21652 lane = getBumpedLaneForHydrationByLane(lane); 21653 var root2 = enqueueConcurrentRenderForLane( 21654 nearestMounted, 21655 lane 21656 ); 21657 null !== root2 && scheduleUpdateOnFiber(root2, nearestMounted, lane); 21658 markRetryLaneIfNotHydrated(nearestMounted, lane); 21659 } 21660 }); 21661 return; 21662 } 21663 } else if (3 === targetInst && nearestMounted.stateNode.current.memoizedState.isDehydrated) { 21664 queuedTarget.blockedOn = 3 === nearestMounted.tag ? nearestMounted.stateNode.containerInfo : null; 21665 return; 21666 } 21667 } 21668 } 21669 queuedTarget.blockedOn = null; 21670 } 21671 function attemptReplayContinuousQueuedEvent(queuedEvent) { 21672 if (null !== queuedEvent.blockedOn) return false; 21673 for (var targetContainers = queuedEvent.targetContainers; 0 < targetContainers.length; ) { 21674 var nextBlockedOn = findInstanceBlockingEvent(queuedEvent.nativeEvent); 21675 if (null === nextBlockedOn) { 21676 nextBlockedOn = queuedEvent.nativeEvent; 21677 var nativeEventClone = new nextBlockedOn.constructor( 21678 nextBlockedOn.type, 21679 nextBlockedOn 21680 ), event = nativeEventClone; 21681 null !== currentReplayingEvent && console.error( 21682 "Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue." 21683 ); 21684 currentReplayingEvent = event; 21685 nextBlockedOn.target.dispatchEvent(nativeEventClone); 21686 null === currentReplayingEvent && console.error( 21687 "Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue." 21688 ); 21689 currentReplayingEvent = null; 21690 } else 21691 return targetContainers = getInstanceFromNode(nextBlockedOn), null !== targetContainers && attemptContinuousHydration(targetContainers), queuedEvent.blockedOn = nextBlockedOn, false; 21692 targetContainers.shift(); 21693 } 21694 return true; 21695 } 21696 function attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map) { 21697 attemptReplayContinuousQueuedEvent(queuedEvent) && map.delete(key); 21698 } 21699 function replayUnblockedEvents() { 21700 hasScheduledReplayAttempt = false; 21701 null !== queuedFocus && attemptReplayContinuousQueuedEvent(queuedFocus) && (queuedFocus = null); 21702 null !== queuedDrag && attemptReplayContinuousQueuedEvent(queuedDrag) && (queuedDrag = null); 21703 null !== queuedMouse && attemptReplayContinuousQueuedEvent(queuedMouse) && (queuedMouse = null); 21704 queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap); 21705 queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap); 21706 } 21707 function scheduleCallbackIfUnblocked(queuedEvent, unblocked) { 21708 queuedEvent.blockedOn === unblocked && (queuedEvent.blockedOn = null, hasScheduledReplayAttempt || (hasScheduledReplayAttempt = true, Scheduler.unstable_scheduleCallback( 21709 Scheduler.unstable_NormalPriority, 21710 replayUnblockedEvents 21711 ))); 21712 } 21713 function scheduleReplayQueueIfNeeded(formReplayingQueue) { 21714 lastScheduledReplayQueue !== formReplayingQueue && (lastScheduledReplayQueue = formReplayingQueue, Scheduler.unstable_scheduleCallback( 21715 Scheduler.unstable_NormalPriority, 21716 function() { 21717 lastScheduledReplayQueue === formReplayingQueue && (lastScheduledReplayQueue = null); 21718 for (var i = 0; i < formReplayingQueue.length; i += 3) { 21719 var form = formReplayingQueue[i], submitterOrAction = formReplayingQueue[i + 1], formData = formReplayingQueue[i + 2]; 21720 if ("function" !== typeof submitterOrAction) 21721 if (null === findInstanceBlockingTarget(submitterOrAction || form)) 21722 continue; 21723 else break; 21724 var formInst = getInstanceFromNode(form); 21725 null !== formInst && (formReplayingQueue.splice(i, 3), i -= 3, form = { 21726 pending: true, 21727 data: formData, 21728 method: form.method, 21729 action: submitterOrAction 21730 }, Object.freeze(form), startHostTransition( 21731 formInst, 21732 form, 21733 submitterOrAction, 21734 formData 21735 )); 21736 } 21737 } 21738 )); 21739 } 21740 function retryIfBlockedOn(unblocked) { 21741 function unblock(queuedEvent) { 21742 return scheduleCallbackIfUnblocked(queuedEvent, unblocked); 21743 } 21744 null !== queuedFocus && scheduleCallbackIfUnblocked(queuedFocus, unblocked); 21745 null !== queuedDrag && scheduleCallbackIfUnblocked(queuedDrag, unblocked); 21746 null !== queuedMouse && scheduleCallbackIfUnblocked(queuedMouse, unblocked);
21747 queuedPointers.forEach(unblock); 21748 queuedPointerCaptures.forEach(unblock); 21749 for (var i = 0; i < queuedExplicitHydrationTargets.length; i++) { 21750 var queuedTarget = queuedExplicitHydrationTargets[i]; 21751 queuedTarget.blockedOn === unblocked && (queuedTarget.blockedOn = null); 21752 } 21753 for (; 0 < queuedExplicitHydrationTargets.length && (i = queuedExplicitHydrationTargets[0], null === i.blockedOn); ) 21754 attemptExplicitHydrationTarget(i), null === i.blockedOn && queuedExplicitHydrationTargets.shift(); 21755 i = (unblocked.ownerDocument || unblocked).$$reactFormReplay; 21756 if (null != i) 21757 for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) { 21758 var form = i[queuedTarget], submitterOrAction = i[queuedTarget + 1], formProps = form[internalPropsKey] || null; 21759 if ("function" === typeof submitterOrAction) 21760 formProps || scheduleReplayQueueIfNeeded(i); 21761 else if (formProps) { 21762 var action = null; 21763 if (submitterOrAction && submitterOrAction.hasAttribute("formAction")) 21764 if (form = submitterOrAction, formProps = submitterOrAction[internalPropsKey] || null) 21765 action = formProps.formAction; 21766 else { 21767 if (null !== findInstanceBlockingTarget(form)) continue; 21768 } 21769 else action = formProps.action; 21770 "function" === typeof action ? i[queuedTarget + 1] = action : (i.splice(queuedTarget, 3), queuedTarget -= 3); 21771 scheduleReplayQueueIfNeeded(i); 21772 } 21773 } 21774 } 21775 function ReactDOMRoot(internalRoot) { 21776 this._internalRoot = internalRoot; 21777 } 21778 function ReactDOMHydrationRoot(internalRoot) { 21779 this._internalRoot = internalRoot; 21780 } 21781 function warnIfReactDOMContainerInDEV(container) { 21782 container[internalContainerInstanceKey] && (container._reactRootContainer ? console.error( 21783 "You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported." 21784 ) : console.error( 21785 "You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it." 21786 )); 21787 } 21788 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); 21789 var Scheduler = requireScheduler(), React = requireReact(), ReactDOM = requireReactDom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"); 21790 var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"); 21791 var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"); 21792 var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({ 21793 pending: false, 21794 data: null, 21795 method: null, 21796 action: null 21797 }), valueStack = []; 21798 var fiberStack = [];
21799 var index$jscomp$0 = -1, contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now$1 = Scheduler.unstable_now, getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, LowPriority = Scheduler.unstable_LowPriority, IdlePriority = Scheduler.unstable_IdlePriority, log$1 = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, injectedProfilingHooks = null, hasLoggedError = false, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2, nextTransitionLane = 256, nextRetryLane = 4194304, DiscreteEventPriority = 2, ContinuousEventPriority = 8, DefaultEventPriority = 32, IdleEventPriority = 268435456, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactFiber$" + randomKey, internalPropsKey = "__reactProps$" + randomKey, internalContainerInstanceKey = "__reactContainer$" + randomKey, internalEventHandlersKey = "__reactEvents$" + randomKey, internalEventHandlerListenersKey = "__reactListeners$" + randomKey, internalEventHandlesSetKey = "__reactHandles$" + randomKey, internalRootNodeResourcesKey = "__reactResources$" + randomKey, internalHoistableMarker = "__reactMarker$" + randomKey, allNativeEvents = /* @__PURE__ */ new Set(), registrationNameDependencies = {}, possibleRegistrationNames = {}, hasReadOnlyValue = { 21800 button: true, 21801 checkbox: true, 21802 image: true, 21803 hidden: true, 21804 radio: true, 21805 reset: true, 21806 submit: true 21807 }, VALID_ATTRIBUTE_NAME_REGEX = RegExp( 21808 "^[: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]*$" 21809 ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd; 21810 disabledLog.__reactDisabledLog = true; 21811 var prefix, suffix, reentry = false; 21812 var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)(); 21813 var current = null, isRendering = false, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = false, didWarnCheckedDefaultChecked = false, didWarnSelectedSetOnOption = false, didWarnInvalidChild = false, didWarnInvalidInnerHTML = false; 21814 var didWarnValueDefaultValue = false; 21815 var valuePropNames = ["value", "defaultValue"], didWarnValDefaultVal = false, needsEscaping = /["'&<>\n\t]|^\s|\s$/, specialTags = "address applet area article aside base basefont bgsound blockquote body br button caption center col
vendor: 13,468 bytes, lines 21815-22116
21815colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split( 21816 " " 21817 ), inScopeTags = "applet caption html table td th marquee object template foreignObject desc title".split( 21818 " " 21819 ), buttonScopeTags = inScopeTags.concat(["button"]), impliedEndTags = "dd dt li option optgroup p rp rt".split(" "), emptyAncestorInfoDev = { 21820 current: null, 21821 formTag: null, 21822 aTagInScope: null, 21823 buttonTagInScope: null, 21824 nobrTagInScope: null, 21825 pTagInButtonScope: null, 21826 listItemTagAutoclosing: null, 21827 dlItemTagAutoclosing: null, 21828 containerTagInScope: null, 21829 implicitRootScope: false 21830 }, didWarn = {}, shorthandToLonghand = { 21831 animation: "animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split( 21832 " " 21833 ), 21834 background: "backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split( 21835 " " 21836 ), 21837 backgroundPosition: ["backgroundPositionX", "backgroundPositionY"], 21838 border: "borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split( 21839 " " 21840 ), 21841 borderBlockEnd: [ 21842 "borderBlockEndColor", 21843 "borderBlockEndStyle", 21844 "borderBlockEndWidth" 21845 ], 21846 borderBlockStart: [ 21847 "borderBlockStartColor", 21848 "borderBlockStartStyle", 21849 "borderBlockStartWidth" 21850 ], 21851 borderBottom: [ 21852 "borderBottomColor", 21853 "borderBottomStyle", 21854 "borderBottomWidth" 21855 ], 21856 borderColor: [ 21857 "borderBottomColor", 21858 "borderLeftColor", 21859 "borderRightColor", 21860 "borderTopColor" 21861 ], 21862 borderImage: [ 21863 "borderImageOutset", 21864 "borderImageRepeat", 21865 "borderImageSlice", 21866 "borderImageSource", 21867 "borderImageWidth" 21868 ], 21869 borderInlineEnd: [ 21870 "borderInlineEndColor", 21871 "borderInlineEndStyle", 21872 "borderInlineEndWidth" 21873 ], 21874 borderInlineStart: [ 21875 "borderInlineStartColor", 21876 "borderInlineStartStyle", 21877 "borderInlineStartWidth" 21878 ], 21879 borderLeft: ["borderLeftColor", "borderLeftStyle", "borderLeftWidth"], 21880 borderRadius: [ 21881 "borderBottomLeftRadius", 21882 "borderBottomRightRadius", 21883 "borderTopLeftRadius", 21884 "borderTopRightRadius" 21885 ], 21886 borderRight: [ 21887 "borderRightColor", 21888 "borderRightStyle", 21889 "borderRightWidth" 21890 ], 21891 borderStyle: [ 21892 "borderBottomStyle", 21893 "borderLeftStyle", 21894 "borderRightStyle", 21895 "borderTopStyle" 21896 ], 21897 borderTop: ["borderTopColor", "borderTopStyle", "borderTopWidth"], 21898 borderWidth: [ 21899 "borderBottomWidth", 21900 "borderLeftWidth", 21901 "borderRightWidth", 21902 "borderTopWidth" 21903 ], 21904 columnRule: ["columnRuleColor", "columnRuleStyle", "columnRuleWidth"], 21905 columns: ["columnCount", "columnWidth"], 21906 flex: ["flexBasis", "flexGrow", "flexShrink"], 21907 flexFlow: ["flexDirection", "flexWrap"], 21908 font: "fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split( 21909 " " 21910 ), 21911 fontVariant: "fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split( 21912 " " 21913 ), 21914 gap: ["columnGap", "rowGap"], 21915 grid: "gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split( 21916 " " 21917 ), 21918 gridArea: [ 21919 "gridColumnEnd", 21920 "gridColumnStart", 21921 "gridRowEnd", 21922 "gridRowStart" 21923 ], 21924 gridColumn: ["gridColumnEnd", "gridColumnStart"], 21925 gridColumnGap: ["columnGap"], 21926 gridGap: ["columnGap", "rowGap"], 21927 gridRow: ["gridRowEnd", "gridRowStart"], 21928 gridRowGap: ["rowGap"], 21929 gridTemplate: [ 21930 "gridTemplateAreas", 21931 "gridTemplateColumns", 21932 "gridTemplateRows" 21933 ], 21934 listStyle: ["listStyleImage", "listStylePosition", "listStyleType"], 21935 margin: ["marginBottom", "marginLeft", "marginRight", "marginTop"], 21936 marker: ["markerEnd", "markerMid", "markerStart"], 21937 mask: "maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split( 21938 " " 21939 ), 21940 maskPosition: ["maskPositionX", "maskPositionY"], 21941 outline: ["outlineColor", "outlineStyle", "outlineWidth"], 21942 overflow: ["overflowX", "overflowY"], 21943 padding: ["paddingBottom", "paddingLeft", "paddingRight", "paddingTop"], 21944 placeContent: ["alignContent", "justifyContent"], 21945 placeItems: ["alignItems", "justifyItems"], 21946 placeSelf: ["alignSelf", "justifySelf"], 21947 textDecoration: [ 21948 "textDecorationColor", 21949 "textDecorationLine", 21950 "textDecorationStyle" 21951 ], 21952 textEmphasis: ["textEmphasisColor", "textEmphasisStyle"], 21953 transition: [ 21954 "transitionDelay", 21955 "transitionDuration", 21956 "transitionProperty", 21957 "transitionTimingFunction" 21958 ], 21959 wordWrap: ["overflowWrap"] 21960 }, uppercasePattern = /([A-Z])/g, msPattern$1 = /^ms-/, badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, msPattern = /^-ms-/, hyphenPattern = /-(.)/g, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = false, warnedForInfinityValue = false, unitlessNumbers = new Set( 21961 "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( 21962 " " 21963 ) 21964 ), MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", aliases = /* @__PURE__ */ new Map([ 21965 ["acceptCharset", "accept-charset"], 21966 ["htmlFor", "for"], 21967 ["httpEquiv", "http-equiv"], 21968 ["crossOrigin", "crossorigin"], 21969 ["accentHeight", "accent-height"], 21970 ["alignmentBaseline", "alignment-baseline"], 21971 ["arabicForm", "arabic-form"], 21972 ["baselineShift", "baseline-shift"], 21973 ["capHeight", "cap-height"], 21974 ["clipPath", "clip-path"], 21975 ["clipRule", "clip-rule"], 21976 ["colorInterpolation", "color-interpolation"], 21977 ["colorInterpolationFilters", "color-interpolation-filters"], 21978 ["colorProfile", "color-profile"], 21979 ["colorRendering", "color-rendering"], 21980 ["dominantBaseline", "dominant-baseline"], 21981 ["enableBackground", "enable-background"], 21982 ["fillOpacity", "fill-opacity"], 21983 ["fillRule", "fill-rule"], 21984 ["floodColor", "flood-color"], 21985 ["floodOpacity", "flood-opacity"], 21986 ["fontFamily", "font-family"], 21987 ["fontSize", "font-size"], 21988 ["fontSizeAdjust", "font-size-adjust"], 21989 ["fontStretch", "font-stretch"], 21990 ["fontStyle", "font-style"], 21991 ["fontVariant", "font-variant"], 21992 ["fontWeight", "font-weight"], 21993 ["glyphName", "glyph-name"], 21994 ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], 21995 ["glyphOrientationVertical", "glyph-orientation-vertical"], 21996 ["horizAdvX", "horiz-adv-x"], 21997 ["horizOriginX", "horiz-origin-x"], 21998 ["imageRendering", "image-rendering"], 21999 ["letterSpacing", "letter-spacing"], 22000 ["lightingColor", "lighting-color"], 22001 ["markerEnd", "marker-end"], 22002 ["markerMid", "marker-mid"], 22003 ["markerStart", "marker-start"], 22004 ["overlinePosition", "overline-position"], 22005 ["overlineThickness", "overline-thickness"], 22006 ["paintOrder", "paint-order"], 22007 ["panose-1", "panose-1"], 22008 ["pointerEvents", "pointer-events"], 22009 ["renderingIntent", "rendering-intent"], 22010 ["shapeRendering", "shape-rendering"], 22011 ["stopColor", "stop-color"], 22012 ["stopOpacity", "stop-opacity"], 22013 ["strikethroughPosition", "strikethrough-position"], 22014 ["strikethroughThickness", "strikethrough-thickness"], 22015 ["strokeDasharray", "stroke-dasharray"], 22016 ["strokeDashoffset", "stroke-dashoffset"], 22017 ["strokeLinecap", "stroke-linecap"], 22018 ["strokeLinejoin", "stroke-linejoin"], 22019 ["strokeMiterlimit", "stroke-miterlimit"], 22020 ["strokeOpacity", "stroke-opacity"], 22021 ["strokeWidth", "stroke-width"], 22022 ["textAnchor", "text-anchor"], 22023 ["textDecoration", "text-decoration"], 22024 ["textRendering", "text-rendering"], 22025 ["transformOrigin", "transform-origin"], 22026 ["underlinePosition", "underline-position"], 22027 ["underlineThickness", "underline-thickness"], 22028 ["unicodeBidi", "unicode-bidi"], 22029 ["unicodeRange", "unicode-range"], 22030 ["unitsPerEm", "units-per-em"], 22031 ["vAlphabetic", "v-alphabetic"], 22032 ["vHanging", "v-hanging"], 22033 ["vIdeographic", "v-ideographic"], 22034 ["vMathematical", "v-mathematical"], 22035 ["vectorEffect", "vector-effect"], 22036 ["vertAdvY", "vert-adv-y"], 22037 ["vertOriginX", "vert-origin-x"], 22038 ["vertOriginY", "vert-origin-y"], 22039 ["wordSpacing", "word-spacing"], 22040 ["writingMode", "writing-mode"], 22041 ["xmlnsXlink", "xmlns:xlink"], 22042 ["xHeight", "x-height"] 22043 ]), possibleStandardNames = { 22044 accept: "accept", 22045 acceptcharset: "acceptCharset", 22046 "accept-charset": "acceptCharset", 22047 accesskey: "accessKey", 22048 action: "action", 22049 allowfullscreen: "allowFullScreen", 22050 alt: "alt", 22051 as: "as", 22052 async: "async", 22053 autocapitalize: "autoCapitalize", 22054 autocomplete: "autoComplete", 22055 autocorrect: "autoCorrect", 22056 autofocus: "autoFocus", 22057 autoplay: "autoPlay", 22058 autosave: "autoSave", 22059 capture: "capture", 22060 cellpadding: "cellPadding", 22061 cellspacing: "cellSpacing", 22062 challenge: "challenge", 22063 charset: "charSet", 22064 checked: "checked", 22065 children: "children", 22066 cite: "cite", 22067 class: "className", 22068 classid: "classID", 22069 classname: "className", 22070 cols: "cols", 22071 colspan: "colSpan", 22072 content: "content", 22073 contenteditable: "contentEditable", 22074 contextmenu: "contextMenu", 22075 controls: "controls", 22076 controlslist: "controlsList", 22077 coords: "coords", 22078 crossorigin: "crossOrigin", 22079 dangerouslysetinnerhtml: "dangerouslySetInnerHTML", 22080 data: "data", 22081 datetime: "dateTime", 22082 default: "default", 22083 defaultchecked: "defaultChecked", 22084 defaultvalue: "defaultValue", 22085 defer: "defer", 22086 dir: "dir", 22087 disabled: "disabled", 22088 disablepictureinpicture: "disablePictureInPicture", 22089 disableremoteplayback: "disableRemotePlayback", 22090 download: "download", 22091 draggable: "draggable", 22092 enctype: "encType", 22093 enterkeyhint: "enterKeyHint", 22094 fetchpriority: "fetchPriority", 22095 for: "htmlFor", 22096 form: "form", 22097 formmethod: "formMethod", 22098 formaction: "formAction", 22099 formenctype: "formEncType", 22100 formnovalidate: "formNoValidate", 22101 formtarget: "formTarget", 22102 frameborder: "frameBorder", 22103 headers: "headers", 22104 height: "height", 22105 hidden: "hidden", 22106 high: "high", 22107 href: "href", 22108 hreflang: "hrefLang", 22109 htmlfor: "htmlFor", 22110 httpequiv: "httpEquiv", 22111 "http-equiv": "httpEquiv", 22112 icon: "icon", 22113 id: "id", 22114 imagesizes: "imageSizes", 22115 imagesrcset: "imageSrcSet", 22116 inert: "inert",
22117 innerhtml: "innerHTML", 22118 inputmode: "inputMode", 22119 integrity: "integrity", 22120 is: "is", 22121 itemid: "itemID", 22122 itemprop: "itemProp", 22123 itemref: "itemRef", 22124 itemscope: "itemScope", 22125 itemtype: "itemType", 22126 keyparams: "keyParams", 22127 keytype: "keyType", 22128 kind: "kind", 22129 label: "label", 22130 lang: "lang", 22131 list: "list", 22132 loop: "loop", 22133 low: "low", 22134 manifest: "manifest", 22135 marginwidth: "marginWidth", 22136 marginheight: "marginHeight", 22137 max: "max", 22138 maxlength: "maxLength", 22139 media: "media", 22140 mediagroup: "mediaGroup", 22141 method: "method", 22142 min: "min", 22143 minlength: "minLength", 22144 multiple: "multiple", 22145 muted: "muted", 22146 name: "name", 22147 nomodule: "noModule", 22148 nonce: "nonce", 22149 novalidate: "noValidate", 22150 open: "open", 22151 optimum: "optimum", 22152 pattern: "pattern", 22153 placeholder: "placeholder", 22154 playsinline: "playsInline", 22155 poster: "poster", 22156 preload: "preload", 22157 profile: "profile", 22158 radiogroup: "radioGroup", 22159 readonly: "readOnly", 22160 referrerpolicy: "referrerPolicy", 22161 rel: "rel", 22162 required: "required", 22163 reversed: "reversed", 22164 role: "role", 22165 rows: "rows", 22166 rowspan: "rowSpan", 22167 sandbox: "sandbox", 22168 scope: "scope", 22169 scoped: "scoped", 22170 scrolling: "scrolling", 22171 seamless: "seamless", 22172 selected: "selected", 22173 shape: "shape", 22174 size: "size", 22175 sizes: "sizes", 22176 span: "span", 22177 spellcheck: "spellCheck", 22178 src: "src", 22179 srcdoc: "srcDoc", 22180 srclang: "srcLang", 22181 srcset: "srcSet", 22182 start: "start", 22183 step: "step", 22184 style: "style", 22185 summary: "summary", 22186 tabindex: "tabIndex", 22187 target: "target", 22188 title: "title", 22189 type: "type", 22190 usemap: "useMap", 22191 value: "value", 22192 width: "width", 22193 wmode: "wmode", 22194 wrap: "wrap", 22195 about: "about", 22196 accentheight: "accentHeight", 22197 "accent-height": "accentHeight", 22198 accumulate: "accumulate", 22199 additive: "additive", 22200 alignmentbaseline: "alignmentBaseline", 22201 "alignment-baseline": "alignmentBaseline", 22202 allowreorder: "allowReorder", 22203 alphabetic: "alphabetic", 22204 amplitude: "amplitude", 22205 arabicform: "arabicForm", 22206 "arabic-form": "arabicForm", 22207 ascent: "ascent", 22208 attributename: "attributeName", 22209 attributetype: "attributeType", 22210 autoreverse: "autoReverse", 22211 azimuth: "azimuth", 22212 basefrequency: "baseFrequency", 22213 baselineshift: "baselineShift", 22214 "baseline-shift": "baselineShift", 22215 baseprofile: "baseProfile", 22216 bbox: "bbox", 22217 begin: "begin", 22218 bias: "bias", 22219 by: "by", 22220 calcmode: "calcMode", 22221 capheight: "capHeight", 22222 "cap-height": "capHeight", 22223 clip: "clip", 22224 clippath: "clipPath", 22225 "clip-path": "clipPath", 22226 clippathunits: "clipPathUnits", 22227 cliprule: "clipRule", 22228 "clip-rule": "clipRule", 22229 color: "color", 22230 colorinterpolation: "colorInterpolation", 22231 "color-interpolation": "colorInterpolation", 22232 colorinterpolationfilters: "colorInterpolationFilters", 22233 "color-interpolation-filters": "colorInterpolationFilters", 22234 colorprofile: "colorProfile", 22235 "color-profile": "colorProfile", 22236 colorrendering: "colorRendering", 22237 "color-rendering": "colorRendering", 22238 contentscripttype: "contentScriptType", 22239 contentstyletype: "contentStyleType", 22240 cursor: "cursor", 22241 cx: "cx", 22242 cy: "cy", 22243 d: "d", 22244 datatype: "datatype", 22245 decelerate: "decelerate", 22246 descent: "descent", 22247 diffuseconstant: "diffuseConstant", 22248 direction: "direction", 22249 display: "display", 22250 divisor: "divisor", 22251 dominantbaseline: "dominantBaseline", 22252 "dominant-baseline": "dominantBaseline", 22253 dur: "dur", 22254 dx: "dx", 22255 dy: "dy", 22256 edgemode: "edgeMode", 22257 elevation: "elevation",
22258 enablebackground: "enableBackground", 22259 "enable-background": "enableBackground", 22260 end: "end", 22261 exponent: "exponent", 22262 externalresourcesrequired: "externalResourcesRequired", 22263 fill: "fill", 22264 fillopacity: "fillOpacity", 22265 "fill-opacity": "fillOpacity", 22266 fillrule: "fillRule", 22267 "fill-rule": "fillRule", 22268 filter: "filter", 22269 filterres: "filterRes", 22270 filterunits: "filterUnits", 22271 floodopacity: "floodOpacity", 22272 "flood-opacity": "floodOpacity", 22273 floodcolor: "floodColor", 22274 "flood-color": "floodColor", 22275 focusable: "focusable", 22276 fontfamily: "fontFamily", 22277 "font-family": "fontFamily", 22278 fontsize: "fontSize", 22279 "font-size": "fontSize", 22280 fontsizeadjust: "fontSizeAdjust", 22281 "font-size-adjust": "fontSizeAdjust", 22282 fontstretch: "fontStretch", 22283 "font-stretch": "fontStretch", 22284 fontstyle: "fontStyle", 22285 "font-style": "fontStyle", 22286 fontvariant: "fontVariant", 22287 "font-variant": "fontVariant", 22288 fontweight: "fontWeight", 22289 "font-weight": "fontWeight", 22290 format: "format", 22291 from: "from", 22292 fx: "fx", 22293 fy: "fy", 22294 g1: "g1", 22295 g2: "g2", 22296 glyphname: "glyphName", 22297 "glyph-name": "glyphName", 22298 glyphorientationhorizontal: "glyphOrientationHorizontal", 22299 "glyph-orientation-horizontal": "glyphOrientationHorizontal", 22300 glyphorientationvertical: "glyphOrientationVertical", 22301 "glyph-orientation-vertical": "glyphOrientationVertical", 22302 glyphref: "glyphRef", 22303 gradienttransform: "gradientTransform", 22304 gradientunits: "gradientUnits", 22305 hanging: "hanging", 22306 horizadvx: "horizAdvX", 22307 "horiz-adv-x": "horizAdvX", 22308 horizoriginx: "horizOriginX", 22309 "horiz-origin-x": "horizOriginX", 22310 ideographic: "ideographic", 22311 imagerendering: "imageRendering", 22312 "image-rendering": "imageRendering", 22313 in2: "in2", 22314 in: "in", 22315 inlist: "inlist", 22316 intercept: "intercept", 22317 k1: "k1", 22318 k2: "k2", 22319 k3: "k3", 22320 k4: "k4", 22321 k: "k", 22322 kernelmatrix: "kernelMatrix", 22323 kernelunitlength: "kernelUnitLength", 22324 kerning: "kerning", 22325 keypoints: "keyPoints", 22326 keysplines: "keySplines", 22327 keytimes: "keyTimes", 22328 lengthadjust: "lengthAdjust", 22329 letterspacing: "letterSpacing", 22330 "letter-spacing": "letterSpacing", 22331 lightingcolor: "lightingColor", 22332 "lighting-color": "lightingColor", 22333 limitingconeangle: "limitingConeAngle", 22334 local: "local", 22335 markerend: "markerEnd", 22336 "marker-end": "markerEnd", 22337 markerheight: "markerHeight", 22338 markermid: "markerMid", 22339 "marker-mid": "markerMid", 22340 markerstart: "markerStart", 22341 "marker-start": "markerStart", 22342 markerunits: "markerUnits", 22343 markerwidth: "markerWidth", 22344 mask: "mask", 22345 maskcontentunits: "maskContentUnits", 22346 maskunits: "maskUnits", 22347 mathematical: "mathematical", 22348 mode: "mode", 22349 numoctaves: "numOctaves", 22350 offset: "offset", 22351 opacity: "opacity", 22352 operator: "operator", 22353 order: "order", 22354 orient: "orient", 22355 orientation: "orientation", 22356 origin: "origin", 22357 overflow: "overflow", 22358 overlineposition: "overlinePosition", 22359 "overline-position": "overlinePosition", 22360 overlinethickness: "overlineThickness", 22361 "overline-thickness": "overlineThickness", 22362 paintorder: "paintOrder", 22363 "paint-order": "paintOrder", 22364 panose1: "panose1", 22365 "panose-1": "panose1", 22366 pathlength: "pathLength", 22367 patterncontentunits: "patternContentUnits", 22368 patterntransform: "patternTransform", 22369 patternunits: "patternUnits", 22370 pointerevents: "pointerEvents", 22371 "pointer-events": "pointerEvents", 22372 points: "points", 22373 pointsatx: "pointsAtX", 22374 pointsaty: "pointsAtY", 22375 pointsatz: "pointsAtZ", 22376 popover: "popover", 22377 popovertarget: "popoverTarget", 22378 popovertargetaction: "popoverTargetAction", 22379 prefix: "prefix", 22380 preservealpha: "preserveAlpha", 22381 preserveaspectratio: "preserveAspectRatio", 22382 primitiveunits: "primitiveUnits", 22383 property: "property", 22384 r: "r", 22385 radius: "radius", 22386 refx: "refX", 22387 refy: "refY", 22388 renderingintent: "renderingIntent", 22389 "rendering-intent": "renderingIntent", 22390 repeatcount: "repeatCount", 22391 repeatdur: "repeatDur", 22392 requiredextensions: "requiredExtensions", 22393 requiredfeatures: "requiredFeatures", 22394 resource: "resource", 22395 restart: "restart", 22396 result: "result", 22397 results: "results", 22398 rotate: "rotate", 22399 rx: "rx", 22400 ry: "ry", 22401 scale: "scale", 22402 security: "security", 22403 seed: "seed", 22404 shaperendering: "shapeRendering", 22405 "shape-rendering": "shapeRendering", 22406 slope: "slope", 22407 spacing: "spacing", 22408 specularconstant: "specularConstant", 22409 specularexponent: "specularExponent", 22410 speed: "speed", 22411 spreadmethod: "spreadMethod", 22412 startoffset: "startOffset", 22413 stddeviation: "stdDeviation", 22414 stemh: "stemh", 22415 stemv: "stemv", 22416 stitchtiles: "stitchTiles", 22417 stopcolor: "stopColor", 22418 "stop-color": "stopColor", 22419 stopopacity: "stopOpacity", 22420 "stop-opacity": "stopOpacity",
22421 strikethroughposition: "strikethroughPosition", 22422 "strikethrough-position": "strikethroughPosition", 22423 strikethroughthickness: "strikethroughThickness", 22424 "strikethrough-thickness": "strikethroughThickness", 22425 string: "string", 22426 stroke: "stroke", 22427 strokedasharray: "strokeDasharray", 22428 "stroke-dasharray": "strokeDasharray", 22429 strokedashoffset: "strokeDashoffset", 22430 "stroke-dashoffset": "strokeDashoffset", 22431 strokelinecap: "strokeLinecap", 22432 "stroke-linecap": "strokeLinecap", 22433 strokelinejoin: "strokeLinejoin", 22434 "stroke-linejoin": "strokeLinejoin", 22435 strokemiterlimit: "strokeMiterlimit", 22436 "stroke-miterlimit": "strokeMiterlimit", 22437 strokewidth: "strokeWidth", 22438 "stroke-width": "strokeWidth", 22439 strokeopacity: "strokeOpacity", 22440 "stroke-opacity": "strokeOpacity", 22441 suppresscontenteditablewarning: "suppressContentEditableWarning", 22442 suppresshydrationwarning: "suppressHydrationWarning", 22443 surfacescale: "surfaceScale", 22444 systemlanguage: "systemLanguage", 22445 tablevalues: "tableValues", 22446 targetx: "targetX", 22447 targety: "targetY", 22448 textanchor: "textAnchor", 22449 "text-anchor": "textAnchor", 22450 textdecoration: "textDecoration", 22451 "text-decoration": "textDecoration", 22452 textlength: "textLength", 22453 textrendering: "textRendering", 22454 "text-rendering": "textRendering", 22455 to: "to", 22456 transform: "transform", 22457 transformorigin: "transformOrigin", 22458 "transform-origin": "transformOrigin", 22459 typeof: "typeof", 22460 u1: "u1", 22461 u2: "u2", 22462 underlineposition: "underlinePosition", 22463 "underline-position": "underlinePosition", 22464 underlinethickness: "underlineThickness", 22465 "underline-thickness": "underlineThickness", 22466 unicode: "unicode", 22467 unicodebidi: "unicodeBidi", 22468 "unicode-bidi": "unicodeBidi", 22469 unicoderange: "unicodeRange", 22470 "unicode-range": "unicodeRange", 22471 unitsperem: "unitsPerEm", 22472 "units-per-em": "unitsPerEm", 22473 unselectable: "unselectable", 22474 valphabetic: "vAlphabetic", 22475 "v-alphabetic": "vAlphabetic", 22476 values: "values", 22477 vectoreffect: "vectorEffect", 22478 "vector-effect": "vectorEffect", 22479 version: "version", 22480 vertadvy: "vertAdvY", 22481 "vert-adv-y": "vertAdvY", 22482 vertoriginx: "vertOriginX", 22483 "vert-origin-x": "vertOriginX", 22484 vertoriginy: "vertOriginY", 22485 "vert-origin-y": "vertOriginY", 22486 vhanging: "vHanging", 22487 "v-hanging": "vHanging", 22488 videographic: "vIdeographic", 22489 "v-ideographic": "vIdeographic", 22490 viewbox: "viewBox", 22491 viewtarget: "viewTarget", 22492 visibility: "visibility", 22493 vmathematical: "vMathematical", 22494 "v-mathematical": "vMathematical", 22495 vocab: "vocab", 22496 widths: "widths", 22497 wordspacing: "wordSpacing", 22498 "word-spacing": "wordSpacing", 22499 writingmode: "writingMode", 22500 "writing-mode": "writingMode", 22501 x1: "x1", 22502 x2: "x2", 22503 x: "x", 22504 xchannelselector: "xChannelSelector", 22505 xheight: "xHeight", 22506 "x-height": "xHeight", 22507 xlinkactuate: "xlinkActuate", 22508 "xlink:actuate": "xlinkActuate", 22509 xlinkarcrole: "xlinkArcrole", 22510 "xlink:arcrole": "xlinkArcrole", 22511 xlinkhref: "xlinkHref", 22512 "xlink:href": "xlinkHref", 22513 xlinkrole: "xlinkRole", 22514 "xlink:role": "xlinkRole", 22515 xlinkshow: "xlinkShow", 22516 "xlink:show": "xlinkShow", 22517 xlinktitle: "xlinkTitle", 22518 "xlink:title": "xlinkTitle", 22519 xlinktype: "xlinkType", 22520 "xlink:type": "xlinkType", 22521 xmlbase: "xmlBase", 22522 "xml:base": "xmlBase", 22523 xmllang: "xmlLang", 22524 "xml:lang": "xmlLang", 22525 xmlns: "xmlns", 22526 "xml:space": "xmlSpace", 22527 xmlnsxlink: "xmlnsXlink", 22528 "xmlns:xlink": "xmlnsXlink", 22529 xmlspace: "xmlSpace", 22530 y1: "y1", 22531 y2: "y2", 22532 y: "y", 22533 ychannelselector: "yChannelSelector", 22534 z: "z", 22535 zoomandpan: "zoomAndPan" 22536 }, ariaProperties = { 22537 "aria-current": 0, 22538 "aria-description": 0, 22539 "aria-details": 0, 22540 "aria-disabled": 0, 22541 "aria-hidden": 0, 22542 "aria-invalid": 0, 22543 "aria-keyshortcuts": 0, 22544 "aria-label": 0, 22545 "aria-roledescription": 0, 22546 "aria-autocomplete": 0, 22547 "aria-checked": 0, 22548 "aria-expanded": 0, 22549 "aria-haspopup": 0, 22550 "aria-level": 0, 22551 "aria-modal": 0, 22552 "aria-multiline": 0, 22553 "aria-multiselectable": 0, 22554 "aria-orientation": 0, 22555 "aria-placeholder": 0, 22556 "aria-pressed": 0, 22557 "aria-readonly": 0, 22558 "aria-required": 0, 22559 "aria-selected": 0, 22560 "aria-sort": 0, 22561 "aria-valuemax": 0, 22562 "aria-valuemin": 0, 22563 "aria-valuenow": 0, 22564 "aria-valuetext": 0, 22565 "aria-atomic": 0, 22566 "aria-busy": 0, 22567 "aria-live": 0, 22568 "aria-relevant": 0, 22569 "aria-dropeffect": 0, 22570 "aria-grabbed": 0, 22571 "aria-activedescendant": 0, 22572 "aria-colcount": 0, 22573 "aria-colindex": 0, 22574 "aria-colspan": 0, 22575 "aria-controls": 0, 22576 "aria-describedby": 0, 22577 "aria-errormessage": 0, 22578 "aria-flowto": 0, 22579 "aria-labelledby": 0, 22580 "aria-owns": 0, 22581 "aria-posinset": 0, 22582 "aria-rowcount": 0, 22583 "aria-rowindex": 0, 22584 "aria-rowspan": 0, 22585 "aria-setsize": 0 22586 }, warnedProperties$1 = {}, rARIA$1 = RegExp(
vendor: 6,358 bytes, lines 22587-22713
22587 "^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" 22588 ), rARIACamel$1 = RegExp( 22589 "^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" 22590 ), didWarnValueNull = false, warnedProperties = {}, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA = RegExp( 22591 "^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" 22592 ), rARIACamel = RegExp( 22593 "^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" 22594 ), isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i, currentReplayingEvent = null, restoreTarget = null, restoreQueue = null, isInsideEventHandler = false, canUseDOM = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), passiveBrowserEventsSupported = false; 22595 if (canUseDOM) 22596 try { 22597 var options$jscomp$0 = {}; 22598 Object.defineProperty(options$jscomp$0, "passive", { 22599 get: function() { 22600 passiveBrowserEventsSupported = true; 22601 } 22602 }); 22603 window.addEventListener("test", options$jscomp$0, options$jscomp$0); 22604 window.removeEventListener("test", options$jscomp$0, options$jscomp$0); 22605 } catch (e) { 22606 passiveBrowserEventsSupported = false; 22607 } 22608 var root = null, startText = null, fallbackText = null, EventInterface = { 22609 eventPhase: 0, 22610 bubbles: 0, 22611 cancelable: 0, 22612 timeStamp: function(event) { 22613 return event.timeStamp || Date.now(); 22614 }, 22615 defaultPrevented: 0, 22616 isTrusted: 0 22617 }, SyntheticEvent = createSyntheticEvent(EventInterface), UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }), SyntheticUIEvent = createSyntheticEvent(UIEventInterface), lastMovementX, lastMovementY, lastMouseEvent, MouseEventInterface = assign({}, UIEventInterface, { 22618 screenX: 0, 22619 screenY: 0, 22620 clientX: 0, 22621 clientY: 0, 22622 pageX: 0, 22623 pageY: 0, 22624 ctrlKey: 0, 22625 shiftKey: 0, 22626 altKey: 0, 22627 metaKey: 0, 22628 getModifierState: getEventModifierState, 22629 button: 0, 22630 buttons: 0, 22631 relatedTarget: function(event) { 22632 return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget; 22633 }, 22634 movementX: function(event) { 22635 if ("movementX" in event) return event.movementX; 22636 event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event); 22637 return lastMovementX; 22638 }, 22639 movementY: function(event) { 22640 return "movementY" in event ? event.movementY : lastMovementY; 22641 } 22642 }), SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface), DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }), SyntheticDragEvent = createSyntheticEvent(DragEventInterface), FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }), SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface), AnimationEventInterface = assign({}, EventInterface, { 22643 animationName: 0, 22644 elapsedTime: 0, 22645 pseudoElement: 0 22646 }), SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface), ClipboardEventInterface = assign({}, EventInterface, { 22647 clipboardData: function(event) { 22648 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 22649 } 22650 }), SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface), CompositionEventInterface = assign({}, EventInterface, { data: 0 }), SyntheticCompositionEvent = createSyntheticEvent( 22651 CompositionEventInterface 22652 ), SyntheticInputEvent = SyntheticCompositionEvent, normalizeKey = { 22653 Esc: "Escape", 22654 Spacebar: " ", 22655 Left: "ArrowLeft", 22656 Up: "ArrowUp", 22657 Right: "ArrowRight", 22658 Down: "ArrowDown", 22659 Del: "Delete", 22660 Win: "OS", 22661 Menu: "ContextMenu", 22662 Apps: "ContextMenu", 22663 Scroll: "ScrollLock", 22664 MozPrintableKey: "Unidentified" 22665 }, translateToKey = { 22666 8: "Backspace", 22667 9: "Tab", 22668 12: "Clear", 22669 13: "Enter", 22670 16: "Shift", 22671 17: "Control", 22672 18: "Alt", 22673 19: "Pause", 22674 20: "CapsLock", 22675 27: "Escape", 22676 32: " ", 22677 33: "PageUp", 22678 34: "PageDown", 22679 35: "End", 22680 36: "Home", 22681 37: "ArrowLeft", 22682 38: "ArrowUp", 22683 39: "ArrowRight", 22684 40: "ArrowDown", 22685 45: "Insert", 22686 46: "Delete", 22687 112: "F1", 22688 113: "F2", 22689 114: "F3", 22690 115: "F4", 22691 116: "F5", 22692 117: "F6", 22693 118: "F7", 22694 119: "F8", 22695 120: "F9", 22696 121: "F10", 22697 122: "F11", 22698 123: "F12", 22699 144: "NumLock", 22700 145: "ScrollLock", 22701 224: "Meta" 22702 }, modifierKeyToProp = { 22703 Alt: "altKey", 22704 Control: "ctrlKey", 22705 Meta: "metaKey", 22706 Shift: "shiftKey" 22707 }, KeyboardEventInterface = assign({}, UIEventInterface, { 22708 key: function(nativeEvent) { 22709 if (nativeEvent.key) { 22710 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 22711 if ("Unidentified" !== key) return key; 22712 } 22713 return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCo
22713de(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 22714 }, 22715 code: 0, 22716 location: 0, 22717 ctrlKey: 0, 22718 shiftKey: 0, 22719 altKey: 0, 22720 metaKey: 0, 22721 repeat: 0, 22722 locale: 0, 22723 getModifierState: getEventModifierState, 22724 charCode: function(event) { 22725 return "keypress" === event.type ? getEventCharCode(event) : 0; 22726 }, 22727 keyCode: function(event) { 22728 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 22729 }, 22730 which: function(event) { 22731 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 22732 } 22733 }), SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface), PointerEventInterface = assign({}, MouseEventInterface, { 22734 pointerId: 0, 22735 width: 0, 22736 height: 0, 22737 pressure: 0, 22738 tangentialPressure: 0, 22739 tiltX: 0, 22740 tiltY: 0, 22741 twist: 0, 22742 pointerType: 0, 22743 isPrimary: 0 22744 }), SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface), TouchEventInterface = assign({}, UIEventInterface, { 22745 touches: 0, 22746 targetTouches: 0, 22747 changedTouches: 0, 22748 altKey: 0, 22749 metaKey: 0, 22750 ctrlKey: 0, 22751 shiftKey: 0, 22752 getModifierState: getEventModifierState 22753 }), SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface), TransitionEventInterface = assign({}, EventInterface, { 22754 propertyName: 0, 22755 elapsedTime: 0, 22756 pseudoElement: 0 22757 }), SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface), WheelEventInterface = assign({}, MouseEventInterface, { 22758 deltaX: function(event) { 22759 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 22760 }, 22761 deltaY: function(event) { 22762 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 22763 }, 22764 deltaZ: 0, 22765 deltaMode: 0 22766 }), SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface), ToggleEventInterface = assign({}, EventInterface, { 22767 newState: 0, 22768 oldState: 0 22769 }), SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface), END_KEYCODES = [9, 13, 27, 32], START_KEYCODE = 229, canUseCompositionEvent = canUseDOM && "CompositionEvent" in window, documentMode = null; 22770 canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 22771 var canUseTextInputEvent = canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && 8 < documentMode && 11 >= documentMode), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), hasSpaceKeypress = false, isComposing = false, supportedInputTypes = { 22772 color: true, 22773 date: true, 22774 datetime: true, 22775 "datetime-local": true, 22776 email: true, 22777 month: true, 22778 number: true, 22779 password: true, 22780 range: true, 22781 search: true, 22782 tel: true, 22783 text: true, 22784 time: true, 22785 url: true, 22786 week: true 22787 }, activeElement$1 = null, activeElementInst$1 = null, isInputEventSupported = false; 22788 canUseDOM && (isInputEventSupported = isEventSupported("input") && (!document.documentMode || 9 < document.documentMode)); 22789 var objectIs = "function" === typeof Object.is ? Object.is : is, skipSelectionChangeEvent = canUseDOM && "documentMode" in document && 11 >= document.documentMode, activeElement = null, activeElementInst = null, lastSelection = null, mouseDown = false, vendorPrefixes = { 22790 animationend: makePrefixMap("Animation", "AnimationEnd"), 22791 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 22792 animationstart: makePrefixMap("Animation", "AnimationStart"), 22793 transitionrun: makePrefixMap("Transition", "TransitionRun"), 22794 transitionstart: makePrefixMap("Transition", "TransitionStart"), 22795 transitioncancel: makePrefixMap("Transition", "TransitionCancel"), 22796 transitionend: makePrefixMap("Transition", "TransitionEnd") 22797 }, prefixedEventNames = {}, style = {}; 22798 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); 22799 var ANIMATION_END = getVendorPrefixedEventName("animationend"), ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration"), ANIMATION_
22799START = 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( 22800 " " 22801 ); 22802 simpleEventPluginEvents.push("scrollEnd"); 22803 var CapturedStacks = /* @__PURE__ */ new WeakMap(), OffscreenVisible = 1, OffscreenPassiveEffectsConnected = 2, concurrentQueues = [], concurrentQueuesIndex = 0, concurrentlyUpdatedLanes = 0, emptyContextObject = {}; 22804 Object.freeze(emptyContextObject); 22805 var resolveFamily = null, failedBoundaries = null, NoMode = 0, ConcurrentMode = 1, ProfileMode = 2, StrictLegacyMode = 8, StrictEffectsMode = 16, NoStrictPassiveEffectsMode = 64; 22806 var hasBadMapPolyfill = false; 22807 try { 22808 var nonExtensibleObject = Object.preventExtensions({});
22809 /* @__PURE__ */ new Map([[nonExtensibleObject, null]]); 22810 /* @__PURE__ */ new Set([nonExtensibleObject]); 22811 } catch (e$3) { 22812 hasBadMapPolyfill = true; 22813 } 22814 var forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = false, didSuspendOrErrorDEV = false, hydrationDiffRootDEV = null, hydrationErrors = null, rootOrSingletonContext = false, HydrationMismatchException = Error( 22815 "Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React." 22816 ), lastResetTime = 0; 22817 if ("object" === typeof performance && "function" === typeof performance.now) { 22818 var localPerformance = performance; 22819 var getCurrentTime = function() { 22820 return localPerformance.now(); 22821 }; 22822 } else { 22823 var localDate = Date; 22824 getCurrentTime = function() { 22825 return localDate.now(); 22826 }; 22827 } 22828 var valueCursor = createCursor(null); 22829 var rendererCursorDEV = createCursor(null); 22830 var rendererSigil = {}; 22831 var currentlyRenderingFiber$1 = null, lastContextDependency = null, isDisallowedContextReadInDEV = false, AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() { 22832 var listeners = [], signal = this.signal = { 22833 aborted: false, 22834 addEventListener: function(type, listener) { 22835 listeners.push(listener); 22836 } 22837 }; 22838 this.abort = function() { 22839 signal.aborted = true; 22840 listeners.forEach(function(listener) { 22841 return listener(); 22842 }); 22843 }; 22844 }, scheduleCallback$2 = Scheduler.unstable_scheduleCallback, NormalPriority = Scheduler.unstable_NormalPriority, CacheContext = { 22845 $$typeof: REACT_CONTEXT_TYPE, 22846 Consumer: null, 22847 Provider: null, 22848 _currentValue: null, 22849 _currentValue2: null, 22850 _threadCount: 0, 22851 _currentRenderer: null, 22852 _currentRenderer2: null 22853 }
22853, now = Scheduler.unstable_now, renderStartTime = -0, commitStartTime = -0, profilerStartTime = -1.1, profilerEffectDuration = -0, currentUpdateIsNested = false, nestedUpdateScheduled = false, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; 22854 ReactSharedInternals.S = function(transition, returnValue) { 22855 "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue); 22856 null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); 22857 }; 22858 var resumedCache = createCursor(null), ReactStrictModeWarnings = { 22859 recordUnsafeLifecycleWarnings: function() { 22860 }, 22861 flushPendingUnsafeLifecycleWarnings: function() { 22862 }, 22863 recordLegacyContextWarning: function() { 22864 }, 22865 flushLegacyContextWarning: function() { 22866 }, 22867 discardPendingWarnings: function() { 22868 } 22869 }, pendingComponentWillMountWarnings = [], pendingUNSAFE_ComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingUNSAFE_ComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUNSAFE_ComponentWillUpdateWarnings = [], didWarnAboutUnsafeLifecycles = /* @__PURE__ */ new Set(); 22870 ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { 22871 didWarnAboutUnsafeLifecycles.has(fiber.type) || ("function" === typeof instance.componentWillMount && true !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillMount && pendingUNSAFE_ComponentWillMountWarnings.push(fiber), "function" === typeof instance.componentWillReceiveProps && true !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillReceiveProps && pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber), "function" === typeof instance.componentWillUpdate && true !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber), fiber.mode & StrictLegacyMode && "function" === typeof instance.UNSAFE_componentWillUpdate && pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber)); 22872 }; 22873 ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { 22874 var componentWillMountUniqueNames = /* @__PURE__ */ new Set(); 22875 0 < pendingComponentWillMountWarnings.length && (pendingComponentWillMountWarnings.forEac
22875h(function(fiber) { 22876 componentWillMountUniqueNames.add( 22877 getComponentNameFromFiber(fiber) || "Component" 22878 ); 22879 didWarnAboutUnsafeLifecycles.add(fiber.type); 22880 }), pendingComponentWillMountWarnings = []); 22881 var UNSAFE_componentWillMountUniqueNames = /* @__PURE__ */ new Set(); 22882 0 < pendingUNSAFE_ComponentWillMountWarnings.length && (pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) { 22883 UNSAFE_componentWillMountUniqueNames.add( 22884 getComponentNameFromFiber(fiber) || "Component" 22885 ); 22886 didWarnAboutUnsafeLifecycles.add(fiber.type); 22887 }), pendingUNSAFE_ComponentWillMountWarnings = []); 22888 var componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); 22889 0 < pendingComponentWillReceivePropsWarnings.length && (pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { 22890 componentWillReceivePropsUniqueNames.add( 22891 getComponentNameFromFiber(fiber) || "Component" 22892 ); 22893 didWarnAboutUnsafeLifecycles.add(fiber.type); 22894 }), pendingComponentWillReceivePropsWarnings = []); 22895 var UNSAFE_componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); 22896 0 < pendingUNSAFE_ComponentWillReceivePropsWarnings.length && (pendingUNSAFE_ComponentWillReceivePropsWarnings.forEac
22896h( 22897 function(fiber) { 22898 UNSAFE_componentWillReceivePropsUniqueNames.add( 22899 getComponentNameFromFiber(fiber) || "Component" 22900 ); 22901 didWarnAboutUnsafeLifecycles.add(fiber.type); 22902 } 22903 ), pendingUNSAFE_ComponentWillReceivePropsWarnings = []); 22904 var componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); 22905 0 < pendingComponentWillUpdateWarnings.length && (pendingComponentWillUpdateWarnings.forEach(function(fiber) { 22906 componentWillUpdateUniqueNames.add( 22907 getComponentNameFromFiber(fiber) || "Component" 22908 ); 22909 didWarnAboutUnsafeLifecycles.add(fiber.type); 22910 }), pendingComponentWillUpdateWarnings = []); 22911 var UNSAFE_componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); 22912 0 < pendingUNSAFE_ComponentWillUpdateWarnings.length && (pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) { 22913 UNSAFE_componentWillUpdateUniqueNames.add( 22914 getComponentNameFromFiber(fiber) || "Component" 22915 ); 22916 didWarnAboutUnsafeLifecycles.add(fiber.type); 22917 }), pendingUNSAFE_ComponentWillUpdateWarnings = []); 22918 if (0 < UNSAFE_componentWillMountUniqueNames.size) { 22919 var sortedNames = setToSortedString( 22920 UNSAFE_componentWillMountUniqueNames 22921 ); 22922 console.error( 22923 "Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", 22924 sortedNames 22925 ); 22926 } 22927 0 < UNSAFE_componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString( 22928 UNSAFE_componentWillReceivePropsUniqueNames 22929 ), console.error( 22930 "Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n\nPlease update the following components: %s", 22931 sortedNames 22932 )); 22933 0 < UNSAFE_componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString( 22934 UNSAFE_componentWillUpdateUniqueNames 22935 ), console.error( 22936 "Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", 22937 sortedNames 22938 )); 22939 0 < componentWillMountUniqueNames.size && (sortedNames = setToSortedString(componentWillMountUniqueNames), console.warn( 22940 "componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", 22941 sortedNames 22942 )); 22943 0 < componentWillReceivePropsUniqueNames.size && (sortedNames = setToSortedString( 22944 componentWillReceivePropsUniqueNames 22945 ), console.warn( 22946 "componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your co
22946de to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", 22947 sortedNames 22948 )); 22949 0 < componentWillUpdateUniqueNames.size && (sortedNames = setToSortedString(componentWillUpdateUniqueNames), console.warn( 22950 "componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s", 22951 sortedNames 22952 )); 22953 }; 22954 var pendingLegacyContextWarning = /* @__PURE__ */ new Map(), didWarnAboutLegacyContext = /* @__PURE__ */ new Set(); 22955 ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { 22956 var strictRoot = null; 22957 for (var node = fiber; null !== node; ) 22958 node.mode & StrictLegacyMode && (strictRoot = node), node = node.return; 22959 null === strictRoot ? console.error( 22960 "Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue." 22961 ) : !didWarnAboutLegacyContext.has(fiber.type) && (node = pendingLegacyContextWarning.get(strictRoot), null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" === typeof instance.getChildContext) && (void 0 === node && (node = [], pendingLegacyContextWarning.set(strictRoot, node)), node.push(fiber)); 22962 }; 22963 ReactStrictModeWarnings.flushLegacyContextWarning = function() { 22964 pendingLegacyContextWarning.forEach(function(fiberArray) { 22965 if (0 !== fiberArray.length) { 22966 var firstFiber = fiberArray[0], uniqueNames = /* @__PURE__ */ new Set(); 22967 fiberArray.forEach(function(fiber) { 22968 uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); 22969 didWarnAboutLegacyContext.add(fiber.type); 22970 }); 22971 var sortedNames = setToSortedString(uniqueNames); 22972 runWithFiberInDEV(firstFiber, function() { 22973 console.error( 22974 "Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://react.dev/link/legacy-context", 22975 sortedNames 22976 ); 22977 }); 22978 } 22979 }); 22980 }; 22981 ReactStrictModeWarnings.discardPendingWarnings = function() { 22982 pendingComponentWillMountWarnings = []; 22983 pendingUNSAFE_ComponentWillMountWarnings = []; 22984 pendingComponentWillReceivePropsWarnings = []; 22985 pendingUNSAFE_ComponentWillReceivePropsWarnings = []; 22986 pendingComponentWillUpdateWarnings = []; 22987 pendingUNSAFE_ComponentWillUpdateWarnings = []; 22988 pendingLegacyContextWarning = /* @__PURE__ */ new Map(); 22989 }; 22990 var SuspenseException = Error( 22991 "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`." 22992 ), SuspenseyCommitException = Error( 22993 "Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React." 22994 ), SuspenseActionException = Error( 22995 "Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary." 22996 ), noopSuspenseyCommitThenable = { 22997 then: function() { 22998 console.error( 22999 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.' 23000 ); 23001 } 23002 }, suspendedThenable = null, needsToResetSuspendedThenableDEV = false, NoFlags = 0, HasEffect = 1, Insertion = 2, Layout = 4, Passive = 8, UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = false;
vendor: 35,224 bytes, lines 23003-23927
23003 var didWarnUpdateInsideUpdate = false; 23004 var currentlyProcessingQueue = null; 23005 var didReadFromEntangledAsyncAction = false, currentTreeHiddenStackCursor = createCursor(null), prevEntangledRenderLanesCursor = createCursor(0), didWarnUncachedGetSnapshot; 23006 var didWarnAboutMismatchedHooksForComponent = /* @__PURE__ */ new Set(); 23007 var didWarnAboutUseWrappedInTryCatch = /* @__PURE__ */ new Set(); 23008 var didWarnAboutAsyncClientComponent = /* @__PURE__ */ new Set(); 23009 var didWarnAboutUseFormState = /* @__PURE__ */ new Set(); 23010 var renderLanes = 0, currentlyRenderingFiber = null, currentHook = null, workInProgressHook = null, didScheduleRenderPhaseUpdate = false, didScheduleRenderPhaseUpdateDuringThisPass = false, shouldDoubleInvokeUserFnsInHooksDEV = false, localIdCounter = 0, thenableIndexCounter$1 = 0, thenableState$1 = null, globalClientIdCounter = 0, RE_RENDER_LIMIT = 25, currentHookNameInDev = null, hookTypesDev = null, hookTypesUpdateIndexDev = -1, ignorePreviousDependencies = false, ContextOnlyDispatcher = { 23011 readContext, 23012 use, 23013 useCallback: throwInvalidHookError, 23014 useContext: throwInvalidHookError, 23015 useEffect: throwInvalidHookError, 23016 useImperativeHandle: throwInvalidHookError, 23017 useLayoutEffect: throwInvalidHookError, 23018 useInsertionEffect: throwInvalidHookError, 23019 useMemo: throwInvalidHookError, 23020 useReducer: throwInvalidHookError, 23021 useRef: throwInvalidHookError, 23022 useState: throwInvalidHookError, 23023 useDebugValue: throwInvalidHookError, 23024 useDeferredValue: throwInvalidHookError, 23025 useTransition: throwInvalidHookError, 23026 useSyncExternalStore: throwInvalidHookError, 23027 useId: throwInvalidHookError, 23028 useHostTransitionStatus: throwInvalidHookError, 23029 useFormState: throwInvalidHookError, 23030 useActionState: throwInvalidHookError, 23031 useOptimistic: throwInvalidHookError, 23032 useMemoCache: throwInvalidHookError, 23033 useCacheRefresh: throwInvalidHookError 23034 }, HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, HooksDispatcherOnRerenderInDEV = null, InvalidNestedHooksDispatcherOnMountInDEV = null, InvalidNestedHooksDispatcherOnUpdateInDEV = null, InvalidNestedHooksDispatcherOnRerenderInDEV = null; 23035 HooksDispatcherOnMountInDEV = { 23036 readContext: function(context) { 23037 return readContext(context); 23038 }, 23039 use, 23040 useCallback: function(callback, deps) { 23041 currentHookNameInDev = "useCallback"; 23042 mountHookTypesDev(); 23043 checkDepsAreArrayDev(deps); 23044 return mountCallback(callback, deps); 23045 }, 23046 useContext: function(context) { 23047 currentHookNameInDev = "useContext"; 23048 mountHookTypesDev(); 23049 return readContext(context); 23050 }, 23051 useEffect: function(create, createDeps) { 23052 currentHookNameInDev = "useEffect"; 23053 mountHookTypesDev(); 23054 checkDepsAreArrayDev(createDeps); 23055 return mountEffect(create, createDeps); 23056 }, 23057 useImperativeHandle: function(ref, create, deps) { 23058 currentHookNameInDev = "useImperativeHandle"; 23059 mountHookTypesDev(); 23060 checkDepsAreArrayDev(deps); 23061 return mountImperativeHandle(ref, create, deps); 23062 }, 23063 useInsertionEffect: function(create, deps) { 23064 currentHookNameInDev = "useInsertionEffect"; 23065 mountHookTypesDev(); 23066 checkDepsAreArrayDev(deps); 23067 mountEffectImpl(4, Insertion, create, deps); 23068 }, 23069 useLayoutEffect: function(create, deps) { 23070 currentHookNameInDev = "useLayoutEffect"; 23071 mountHookTypesDev(); 23072 checkDepsAreArrayDev(deps); 23073 return mountLayoutEffect(create, deps); 23074 }, 23075 useMemo: function(create, deps) { 23076 currentHookNameInDev = "useMemo"; 23077 mountHookTypesDev(); 23078 checkDepsAreArrayDev(deps); 23079 var prevDispatcher = ReactSharedInternals.H; 23080 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23081 try { 23082 return mountMemo(create, deps); 23083 } finally { 23084 ReactSharedInternals.H = prevDispatcher; 23085 } 23086 }, 23087 useReducer: function(reducer, initialArg, init) { 23088 currentHookNameInDev = "useReducer"; 23089 mountHookTypesDev(); 23090 var prevDispatcher = ReactSharedInternals.H; 23091 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23092 try { 23093 return mountReducer(reducer, initialArg, init); 23094 } finally { 23095 ReactSharedInternals.H = prevDispatcher; 23096 } 23097 }, 23098 useRef: function(initialValue) { 23099 currentHookNameInDev = "useRef"; 23100 mountHookTypesDev(); 23101 return mountRef(initialValue); 23102 }, 23103 useState: function(initialState) { 23104 currentHookNameInDev = "useState"; 23105 mountHookTypesDev(); 23106 var prevDispatcher = ReactSharedInternals.H; 23107 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23108 try { 23109 return mountState(initialState); 23110 } finally { 23111 ReactSharedInternals.H = prevDispatcher; 23112 } 23113 }, 23114 useDebugValue: function() { 23115 currentHookNameInDev = "useDebugValue"; 23116 mountHookTypesDev(); 23117 }, 23118 useDeferredValue: function(value, initialValue) { 23119 currentHookNameInDev = "useDeferredValue"; 23120 mountHookTypesDev(); 23121 return mountDeferredValue(value, initialValue); 23122 }, 23123 useTransition: function() { 23124 currentHookNameInDev = "useTransition"; 23125 mountHookTypesDev(); 23126 return mountTransition(); 23127 }, 23128 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23129 currentHookNameInDev = "useSyncExternalStore"; 23130 mountHookTypesDev(); 23131 return mountSyncExternalStore( 23132 subscribe, 23133 getSnapshot, 23134 getServerSnapshot 23135 ); 23136 }, 23137 useId: function() { 23138 currentHookNameInDev = "useId"; 23139 mountHookTypesDev(); 23140 return mountId(); 23141 }, 23142 useFormState: function(action, initialState) { 23143 currentHookNameInDev = "useFormState"; 23144 mountHookTypesDev(); 23145 warnOnUseFormStateInDev(); 23146 return mountActionState(action, initialState); 23147 }, 23148 useActionState: function(action, initialState) { 23149 currentHookNameInDev = "useActionState"; 23150 mountHookTypesDev(); 23151 return mountActionState(action, initialState); 23152 }, 23153 useOptimistic: function(passthrough) { 23154 currentHookNameInDev = "useOptimistic"; 23155 mountHookTypesDev(); 23156 return mountOptimistic(passthrough); 23157 }, 23158 useHostTransitionStatus, 23159 useMemoCache, 23160 useCacheRefresh: function() { 23161 currentHookNameInDev = "useCacheRefresh"; 23162 mountHookTypesDev(); 23163 return mountRefresh(); 23164 } 23165 }; 23166 HooksDispatcherOnMountWithHookTypesInDEV = { 23167 readContext: function(context) { 23168 return readContext(context); 23169 }, 23170 use, 23171 useCallback: function(callback, deps) { 23172 currentHookNameInDev = "useCallback"; 23173 updateHookTypesDev(); 23174 return mountCallback(callback, deps); 23175 }, 23176 useContext: function(context) { 23177 currentHookNameInDev = "useContext"; 23178 updateHookTypesDev(); 23179 return readContext(context); 23180 }, 23181 useEffect: function(create, createDeps) { 23182 currentHookNameInDev = "useEffect"; 23183 updateHookTypesDev(); 23184 return mountEffect(create, createDeps); 23185 }, 23186 useImperativeHandle: function(ref, create, deps) { 23187 currentHookNameInDev = "useImperativeHandle"; 23188 updateHookTypesDev(); 23189 return mountImperativeHandle(ref, create, deps); 23190 }, 23191 useInsertionEffect: function(create, deps) { 23192 currentHookNameInDev = "useInsertionEffect"; 23193 updateHookTypesDev(); 23194 mountEffectImpl(4, Insertion, create, deps); 23195 }, 23196 useLayoutEffect: function(create, deps) { 23197 currentHookNameInDev = "useLayoutEffect"; 23198 updateHookTypesDev(); 23199 return mountLayoutEffect(create, deps); 23200 }, 23201 useMemo: function(create, deps) { 23202 currentHookNameInDev = "useMemo"; 23203 updateHookTypesDev(); 23204 var prevDispatcher = ReactSharedInternals.H; 23205 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23206 try { 23207 return mountMemo(create, deps); 23208 } finally { 23209 ReactSharedInternals.H = prevDispatcher; 23210 } 23211 }, 23212 useReducer: function(reducer, initialArg, init) { 23213 currentHookNameInDev = "useReducer"; 23214 updateHookTypesDev(); 23215 var prevDispatcher = ReactSharedInternals.H; 23216 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23217 try { 23218 return mountReducer(reducer, initialArg, init); 23219 } finally { 23220 ReactSharedInternals.H = prevDispatcher; 23221 } 23222 }, 23223 useRef: function(initialValue) { 23224 currentHookNameInDev = "useRef"; 23225 updateHookTypesDev(); 23226 return mountRef(initialValue); 23227 }, 23228 useState: function(initialState) { 23229 currentHookNameInDev = "useState"; 23230 updateHookTypesDev(); 23231 var prevDispatcher = ReactSharedInternals.H; 23232 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23233 try { 23234 return mountState(initialState); 23235 } finally { 23236 ReactSharedInternals.H = prevDispatcher; 23237 } 23238 }, 23239 useDebugValue: function() { 23240 currentHookNameInDev = "useDebugValue"; 23241 updateHookTypesDev(); 23242 }, 23243 useDeferredValue: function(value, initialValue) { 23244 currentHookNameInDev = "useDeferredValue"; 23245 updateHookTypesDev(); 23246 return mountDeferredValue(value, initialValue); 23247 }, 23248 useTransition: function() { 23249 currentHookNameInDev = "useTransition"; 23250 updateHookTypesDev(); 23251 return mountTransition(); 23252 }, 23253 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23254 currentHookNameInDev = "useSyncExternalStore"; 23255 updateHookTypesDev(); 23256 return mountSyncExternalStore( 23257 subscribe, 23258 getSnapshot, 23259 getServerSnapshot 23260 ); 23261 }, 23262 useId: function() { 23263 currentHookNameInDev = "useId"; 23264 updateHookTypesDev(); 23265 return mountId(); 23266 }, 23267 useActionState: function(action, initialState) { 23268 currentHookNameInDev = "useActionState"; 23269 updateHookTypesDev(); 23270 return mountActionState(action, initialState); 23271 }, 23272 useFormState: function(action, initialState) { 23273 currentHookNameInDev = "useFormState"; 23274 updateHookTypesDev(); 23275 warnOnUseFormStateInDev(); 23276 return mountActionState(action, initialState); 23277 }, 23278 useOptimistic: function(passthrough) { 23279 currentHookNameInDev = "useOptimistic"; 23280 updateHookTypesDev(); 23281 return mountOptimistic(passthrough); 23282 }, 23283 useHostTransitionStatus, 23284 useMemoCache, 23285 useCacheRefresh: function() { 23286 currentHookNameInDev = "useCacheRefresh"; 23287 updateHookTypesDev(); 23288 return mountRefresh(); 23289 } 23290 }; 23291 HooksDispatcherOnUpdateInDEV = { 23292 readContext: function(context) { 23293 return readContext(context); 23294 }, 23295 use, 23296 useCallback: function(callback, deps) { 23297 currentHookNameInDev = "useCallback"; 23298 updateHookTypesDev(); 23299 return updateCallback(callback, deps); 23300 }, 23301 useContext: function(context) { 23302 currentHookNameInDev = "useContext"; 23303 updateHookTypesDev(); 23304 return readContext(context); 23305 }, 23306 useEffect: function(create, createDeps) { 23307 currentHookNameInDev = "useEffect"; 23308 updateHookTypesDev(); 23309 updateEffectImpl(2048, Passive, create, createDeps); 23310 }, 23311 useImperativeHandle: function(ref, create, deps) { 23312 currentHookNameInDev = "useImperativeHandle"; 23313 updateHookTypesDev(); 23314 return updateImperativeHandle(ref, create, deps); 23315 }, 23316 useInsertionEffect: function(create, deps) { 23317 currentHookNameInDev = "useInsertionEffect"; 23318 updateHookTypesDev(); 23319 return updateEffectImpl(4, Insertion, create, deps); 23320 }, 23321 useLayoutEffect: function(create, deps) { 23322 currentHookNameInDev = "useLayoutEffect"; 23323 updateHookTypesDev(); 23324 return updateEffectImpl(4, Layout, create, deps); 23325 }, 23326 useMemo: function(create, deps) { 23327 currentHookNameInDev = "useMemo"; 23328 updateHookTypesDev(); 23329 var prevDispatcher = ReactSharedInternals.H; 23330 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23331 try { 23332 return updateMemo(create, deps); 23333 } finally { 23334 ReactSharedInternals.H = prevDispatcher; 23335 } 23336 }, 23337 useReducer: function(reducer, initialArg, init) { 23338 currentHookNameInDev = "useReducer"; 23339 updateHookTypesDev(); 23340 var prevDispatcher = ReactSharedInternals.H; 23341 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23342 try { 23343 return updateReducer(reducer, initialArg, init); 23344 } finally { 23345 ReactSharedInternals.H = prevDispatcher; 23346 } 23347 }, 23348 useRef: function() { 23349 currentHookNameInDev = "useRef"; 23350 updateHookTypesDev(); 23351 return updateWorkInProgressHook().memoizedState; 23352 }, 23353 useState: function() { 23354 currentHookNameInDev = "useState"; 23355 updateHookTypesDev(); 23356 var prevDispatcher = ReactSharedInternals.H; 23357 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23358 try { 23359 return updateReducer(basicStateReducer); 23360 } finally { 23361 ReactSharedInternals.H = prevDispatcher; 23362 } 23363 }, 23364 useDebugValue: function() { 23365 currentHookNameInDev = "useDebugValue"; 23366 updateHookTypesDev(); 23367 }, 23368 useDeferredValue: function(value, initialValue) { 23369 currentHookNameInDev = "useDeferredValue"; 23370 updateHookTypesDev(); 23371 return updateDeferredValue(value, initialValue); 23372 }, 23373 useTransition: function() { 23374 currentHookNameInDev = "useTransition"; 23375 updateHookTypesDev(); 23376 return updateTransition(); 23377 }, 23378 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23379 currentHookNameInDev = "useSyncExternalStore"; 23380 updateHookTypesDev(); 23381 return updateSyncExternalStore( 23382 subscribe, 23383 getSnapshot, 23384 getServerSnapshot 23385 ); 23386 }, 23387 useId: function() { 23388 currentHookNameInDev = "useId"; 23389 updateHookTypesDev(); 23390 return updateWorkInProgressHook().memoizedState; 23391 }, 23392 useFormState: function(action) { 23393 currentHookNameInDev = "useFormState"; 23394 updateHookTypesDev(); 23395 warnOnUseFormStateInDev(); 23396 return updateActionState(action); 23397 }, 23398 useActionState: function(action) { 23399 currentHookNameInDev = "useActionState"; 23400 updateHookTypesDev(); 23401 return updateActionState(action); 23402 }, 23403 useOptimistic: function(passthrough, reducer) { 23404 currentHookNameInDev = "useOptimistic"; 23405 updateHookTypesDev(); 23406 return updateOptimistic(passthrough, reducer); 23407 }, 23408 useHostTransitionStatus, 23409 useMemoCache, 23410 useCacheRefresh: function() { 23411 currentHookNameInDev = "useCacheRefresh"; 23412 updateHookTypesDev(); 23413 return updateWorkInProgressHook().memoizedState; 23414 } 23415 }; 23416 HooksDispatcherOnRerenderInDEV = { 23417 readContext: function(context) { 23418 return readContext(context); 23419 }, 23420 use, 23421 useCallback: function(callback, deps) { 23422 currentHookNameInDev = "useCallback"; 23423 updateHookTypesDev(); 23424 return updateCallback(callback, deps); 23425 }, 23426 useContext: function(context) { 23427 currentHookNameInDev = "useContext"; 23428 updateHookTypesDev(); 23429 return readContext(context); 23430 }, 23431 useEffect: function(create, createDeps) { 23432 currentHookNameInDev = "useEffect"; 23433 updateHookTypesDev(); 23434 updateEffectImpl(2048, Passive, create, createDeps); 23435 }, 23436 useImperativeHandle: function(ref, create, deps) { 23437 currentHookNameInDev = "useImperativeHandle"; 23438 updateHookTypesDev(); 23439 return updateImperativeHandle(ref, create, deps); 23440 }, 23441 useInsertionEffect: function(create, deps) { 23442 currentHookNameInDev = "useInsertionEffect"; 23443 updateHookTypesDev(); 23444 return updateEffectImpl(4, Insertion, create, deps); 23445 }, 23446 useLayoutEffect: function(create, deps) { 23447 currentHookNameInDev = "useLayoutEffect"; 23448 updateHookTypesDev(); 23449 return updateEffectImpl(4, Layout, create, deps); 23450 }, 23451 useMemo: function(create, deps) { 23452 currentHookNameInDev = "useMemo"; 23453 updateHookTypesDev(); 23454 var prevDispatcher = ReactSharedInternals.H; 23455 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 23456 try { 23457 return updateMemo(create, deps); 23458 } finally { 23459 ReactSharedInternals.H = prevDispatcher; 23460 } 23461 }, 23462 useReducer: function(reducer, initialArg, init) { 23463 currentHookNameInDev = "useReducer"; 23464 updateHookTypesDev(); 23465 var prevDispatcher = ReactSharedInternals.H; 23466 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 23467 try { 23468 return rerenderReducer(reducer, initialArg, init); 23469 } finally { 23470 ReactSharedInternals.H = prevDispatcher; 23471 } 23472 }, 23473 useRef: function() { 23474 currentHookNameInDev = "useRef"; 23475 updateHookTypesDev(); 23476 return updateWorkInProgressHook().memoizedState; 23477 }, 23478 useState: function() { 23479 currentHookNameInDev = "useState"; 23480 updateHookTypesDev(); 23481 var prevDispatcher = ReactSharedInternals.H; 23482 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV; 23483 try { 23484 return rerenderReducer(basicStateReducer); 23485 } finally { 23486 ReactSharedInternals.H = prevDispatcher; 23487 } 23488 }, 23489 useDebugValue: function() { 23490 currentHookNameInDev = "useDebugValue"; 23491 updateHookTypesDev(); 23492 }, 23493 useDeferredValue: function(value, initialValue) { 23494 currentHookNameInDev = "useDeferredValue"; 23495 updateHookTypesDev(); 23496 return rerenderDeferredValue(value, initialValue); 23497 }, 23498 useTransition: function() { 23499 currentHookNameInDev = "useTransition"; 23500 updateHookTypesDev(); 23501 return rerenderTransition(); 23502 }, 23503 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23504 currentHookNameInDev = "useSyncExternalStore"; 23505 updateHookTypesDev(); 23506 return updateSyncExternalStore( 23507 subscribe, 23508 getSnapshot, 23509 getServerSnapshot 23510 ); 23511 }, 23512 useId: function() { 23513 currentHookNameInDev = "useId"; 23514 updateHookTypesDev(); 23515 return updateWorkInProgressHook().memoizedState; 23516 }, 23517 useFormState: function(action) { 23518 currentHookNameInDev = "useFormState"; 23519 updateHookTypesDev(); 23520 warnOnUseFormStateInDev(); 23521 return rerenderActionState(action); 23522 }, 23523 useActionState: function(action) { 23524 currentHookNameInDev = "useActionState"; 23525 updateHookTypesDev(); 23526 return rerenderActionState(action); 23527 }, 23528 useOptimistic: function(passthrough, reducer) { 23529 currentHookNameInDev = "useOptimistic"; 23530 updateHookTypesDev(); 23531 return rerenderOptimistic(passthrough, reducer); 23532 }, 23533 useHostTransitionStatus, 23534 useMemoCache, 23535 useCacheRefresh: function() { 23536 currentHookNameInDev = "useCacheRefresh"; 23537 updateHookTypesDev(); 23538 return updateWorkInProgressHook().memoizedState; 23539 } 23540 }; 23541 InvalidNestedHooksDispatcherOnMountInDEV = { 23542 readContext: function(context) { 23543 warnInvalidContextAccess(); 23544 return readContext(context); 23545 }, 23546 use: function(usable) { 23547 warnInvalidHookAccess(); 23548 return use(usable); 23549 }, 23550 useCallback: function(callback, deps) { 23551 currentHookNameInDev = "useCallback"; 23552 warnInvalidHookAccess(); 23553 mountHookTypesDev(); 23554 return mountCallback(callback, deps); 23555 }, 23556 useContext: function(context) { 23557 currentHookNameInDev = "useContext"; 23558 warnInvalidHookAccess(); 23559 mountHookTypesDev(); 23560 return readContext(context); 23561 }, 23562 useEffect: function(create, createDeps) { 23563 currentHookNameInDev = "useEffect"; 23564 warnInvalidHookAccess(); 23565 mountHookTypesDev(); 23566 return mountEffect(create, createDeps); 23567 }, 23568 useImperativeHandle: function(ref, create, deps) { 23569 currentHookNameInDev = "useImperativeHandle"; 23570 warnInvalidHookAccess(); 23571 mountHookTypesDev(); 23572 return mountImperativeHandle(ref, create, deps); 23573 }, 23574 useInsertionEffect: function(create, deps) { 23575 currentHookNameInDev = "useInsertionEffect"; 23576 warnInvalidHookAccess(); 23577 mountHookTypesDev(); 23578 mountEffectImpl(4, Insertion, create, deps); 23579 }, 23580 useLayoutEffect: function(create, deps) { 23581 currentHookNameInDev = "useLayoutEffect"; 23582 warnInvalidHookAccess(); 23583 mountHookTypesDev(); 23584 return mountLayoutEffect(create, deps); 23585 }, 23586 useMemo: function(create, deps) { 23587 currentHookNameInDev = "useMemo"; 23588 warnInvalidHookAccess(); 23589 mountHookTypesDev(); 23590 var prevDispatcher = ReactSharedInternals.H; 23591 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23592 try { 23593 return mountMemo(create, deps); 23594 } finally { 23595 ReactSharedInternals.H = prevDispatcher; 23596 } 23597 }, 23598 useReducer: function(reducer, initialArg, init) { 23599 currentHookNameInDev = "useReducer"; 23600 warnInvalidHookAccess(); 23601 mountHookTypesDev(); 23602 var prevDispatcher = ReactSharedInternals.H; 23603 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23604 try { 23605 return mountReducer(reducer, initialArg, init); 23606 } finally { 23607 ReactSharedInternals.H = prevDispatcher; 23608 } 23609 }, 23610 useRef: function(initialValue) { 23611 currentHookNameInDev = "useRef"; 23612 warnInvalidHookAccess(); 23613 mountHookTypesDev(); 23614 return mountRef(initialValue); 23615 }, 23616 useState: function(initialState) { 23617 currentHookNameInDev = "useState"; 23618 warnInvalidHookAccess(); 23619 mountHookTypesDev(); 23620 var prevDispatcher = ReactSharedInternals.H; 23621 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV; 23622 try { 23623 return mountState(initialState); 23624 } finally { 23625 ReactSharedInternals.H = prevDispatcher; 23626 } 23627 }, 23628 useDebugValue: function() { 23629 currentHookNameInDev = "useDebugValue"; 23630 warnInvalidHookAccess(); 23631 mountHookTypesDev(); 23632 }, 23633 useDeferredValue: function(value, initialValue) { 23634 currentHookNameInDev = "useDeferredValue"; 23635 warnInvalidHookAccess(); 23636 mountHookTypesDev(); 23637 return mountDeferredValue(value, initialValue); 23638 }, 23639 useTransition: function() { 23640 currentHookNameInDev = "useTransition"; 23641 warnInvalidHookAccess(); 23642 mountHookTypesDev(); 23643 return mountTransition(); 23644 }, 23645 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23646 currentHookNameInDev = "useSyncExternalStore"; 23647 warnInvalidHookAccess(); 23648 mountHookTypesDev(); 23649 return mountSyncExternalStore( 23650 subscribe, 23651 getSnapshot, 23652 getServerSnapshot 23653 ); 23654 }, 23655 useId: function() { 23656 currentHookNameInDev = "useId"; 23657 warnInvalidHookAccess(); 23658 mountHookTypesDev(); 23659 return mountId(); 23660 }, 23661 useFormState: function(action, initialState) { 23662 currentHookNameInDev = "useFormState"; 23663 warnInvalidHookAccess(); 23664 mountHookTypesDev(); 23665 return mountActionState(action, initialState); 23666 }, 23667 useActionState: function(action, initialState) { 23668 currentHookNameInDev = "useActionState"; 23669 warnInvalidHookAccess(); 23670 mountHookTypesDev(); 23671 return mountActionState(action, initialState); 23672 }, 23673 useOptimistic: function(passthrough) { 23674 currentHookNameInDev = "useOptimistic"; 23675 warnInvalidHookAccess(); 23676 mountHookTypesDev(); 23677 return mountOptimistic(passthrough); 23678 }, 23679 useMemoCache: function(size) { 23680 warnInvalidHookAccess(); 23681 return useMemoCache(size); 23682 }, 23683 useHostTransitionStatus, 23684 useCacheRefresh: function() { 23685 currentHookNameInDev = "useCacheRefresh"; 23686 mountHookTypesDev(); 23687 return mountRefresh(); 23688 } 23689 }; 23690 InvalidNestedHooksDispatcherOnUpdateInDEV = { 23691 readContext: function(context) { 23692 warnInvalidContextAccess(); 23693 return readContext(context); 23694 }, 23695 use: function(usable) { 23696 warnInvalidHookAccess(); 23697 return use(usable); 23698 }, 23699 useCallback: function(callback, deps) { 23700 currentHookNameInDev = "useCallback"; 23701 warnInvalidHookAccess(); 23702 updateHookTypesDev(); 23703 return updateCallback(callback, deps); 23704 }, 23705 useContext: function(context) { 23706 currentHookNameInDev = "useContext"; 23707 warnInvalidHookAccess(); 23708 updateHookTypesDev(); 23709 return readContext(context); 23710 }, 23711 useEffect: function(create, createDeps) { 23712 currentHookNameInDev = "useEffect"; 23713 warnInvalidHookAccess(); 23714 updateHookTypesDev(); 23715 updateEffectImpl(2048, Passive, create, createDeps); 23716 }, 23717 useImperativeHandle: function(ref, create, deps) { 23718 currentHookNameInDev = "useImperativeHandle"; 23719 warnInvalidHookAccess(); 23720 updateHookTypesDev(); 23721 return updateImperativeHandle(ref, create, deps); 23722 }, 23723 useInsertionEffect: function(create, deps) { 23724 currentHookNameInDev = "useInsertionEffect"; 23725 warnInvalidHookAccess(); 23726 updateHookTypesDev(); 23727 return updateEffectImpl(4, Insertion, create, deps); 23728 }, 23729 useLayoutEffect: function(create, deps) { 23730 currentHookNameInDev = "useLayoutEffect"; 23731 warnInvalidHookAccess(); 23732 updateHookTypesDev(); 23733 return updateEffectImpl(4, Layout, create, deps); 23734 }, 23735 useMemo: function(create, deps) { 23736 currentHookNameInDev = "useMemo"; 23737 warnInvalidHookAccess(); 23738 updateHookTypesDev(); 23739 var prevDispatcher = ReactSharedInternals.H; 23740 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23741 try { 23742 return updateMemo(create, deps); 23743 } finally { 23744 ReactSharedInternals.H = prevDispatcher; 23745 } 23746 }, 23747 useReducer: function(reducer, initialArg, init) { 23748 currentHookNameInDev = "useReducer"; 23749 warnInvalidHookAccess(); 23750 updateHookTypesDev(); 23751 var prevDispatcher = ReactSharedInternals.H; 23752 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23753 try { 23754 return updateReducer(reducer, initialArg, init); 23755 } finally { 23756 ReactSharedInternals.H = prevDispatcher; 23757 } 23758 }, 23759 useRef: function() { 23760 currentHookNameInDev = "useRef"; 23761 warnInvalidHookAccess(); 23762 updateHookTypesDev(); 23763 return updateWorkInProgressHook().memoizedState; 23764 }, 23765 useState: function() { 23766 currentHookNameInDev = "useState"; 23767 warnInvalidHookAccess(); 23768 updateHookTypesDev(); 23769 var prevDispatcher = ReactSharedInternals.H; 23770 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23771 try { 23772 return updateReducer(basicStateReducer); 23773 } finally { 23774 ReactSharedInternals.H = prevDispatcher; 23775 } 23776 }, 23777 useDebugValue: function() { 23778 currentHookNameInDev = "useDebugValue"; 23779 warnInvalidHookAccess(); 23780 updateHookTypesDev(); 23781 }, 23782 useDeferredValue: function(value, initialValue) { 23783 currentHookNameInDev = "useDeferredValue"; 23784 warnInvalidHookAccess(); 23785 updateHookTypesDev(); 23786 return updateDeferredValue(value, initialValue); 23787 }, 23788 useTransition: function() { 23789 currentHookNameInDev = "useTransition"; 23790 warnInvalidHookAccess(); 23791 updateHookTypesDev(); 23792 return updateTransition(); 23793 }, 23794 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23795 currentHookNameInDev = "useSyncExternalStore"; 23796 warnInvalidHookAccess(); 23797 updateHookTypesDev(); 23798 return updateSyncExternalStore( 23799 subscribe, 23800 getSnapshot, 23801 getServerSnapshot 23802 ); 23803 }, 23804 useId: function() { 23805 currentHookNameInDev = "useId"; 23806 warnInvalidHookAccess(); 23807 updateHookTypesDev(); 23808 return updateWorkInProgressHook().memoizedState; 23809 }, 23810 useFormState: function(action) { 23811 currentHookNameInDev = "useFormState"; 23812 warnInvalidHookAccess(); 23813 updateHookTypesDev(); 23814 return updateActionState(action); 23815 }, 23816 useActionState: function(action) { 23817 currentHookNameInDev = "useActionState"; 23818 warnInvalidHookAccess(); 23819 updateHookTypesDev(); 23820 return updateActionState(action); 23821 }, 23822 useOptimistic: function(passthrough, reducer) { 23823 currentHookNameInDev = "useOptimistic"; 23824 warnInvalidHookAccess(); 23825 updateHookTypesDev(); 23826 return updateOptimistic(passthrough, reducer); 23827 }, 23828 useMemoCache: function(size) { 23829 warnInvalidHookAccess(); 23830 return useMemoCache(size); 23831 }, 23832 useHostTransitionStatus, 23833 useCacheRefresh: function() { 23834 currentHookNameInDev = "useCacheRefresh"; 23835 updateHookTypesDev(); 23836 return updateWorkInProgressHook().memoizedState; 23837 } 23838 }; 23839 InvalidNestedHooksDispatcherOnRerenderInDEV = { 23840 readContext: function(context) { 23841 warnInvalidContextAccess(); 23842 return readContext(context); 23843 }, 23844 use: function(usable) { 23845 warnInvalidHookAccess(); 23846 return use(usable); 23847 }, 23848 useCallback: function(callback, deps) { 23849 currentHookNameInDev = "useCallback"; 23850 warnInvalidHookAccess(); 23851 updateHookTypesDev(); 23852 return updateCallback(callback, deps); 23853 }, 23854 useContext: function(context) { 23855 currentHookNameInDev = "useContext"; 23856 warnInvalidHookAccess(); 23857 updateHookTypesDev(); 23858 return readContext(context); 23859 }, 23860 useEffect: function(create, createDeps) { 23861 currentHookNameInDev = "useEffect"; 23862 warnInvalidHookAccess(); 23863 updateHookTypesDev(); 23864 updateEffectImpl(2048, Passive, create, createDeps); 23865 }, 23866 useImperativeHandle: function(ref, create, deps) { 23867 currentHookNameInDev = "useImperativeHandle"; 23868 warnInvalidHookAccess(); 23869 updateHookTypesDev(); 23870 return updateImperativeHandle(ref, create, deps); 23871 }, 23872 useInsertionEffect: function(create, deps) { 23873 currentHookNameInDev = "useInsertionEffect"; 23874 warnInvalidHookAccess(); 23875 updateHookTypesDev(); 23876 return updateEffectImpl(4, Insertion, create, deps); 23877 }, 23878 useLayoutEffect: function(create, deps) { 23879 currentHookNameInDev = "useLayoutEffect"; 23880 warnInvalidHookAccess(); 23881 updateHookTypesDev(); 23882 return updateEffectImpl(4, Layout, create, deps); 23883 }, 23884 useMemo: function(create, deps) { 23885 currentHookNameInDev = "useMemo"; 23886 warnInvalidHookAccess(); 23887 updateHookTypesDev(); 23888 var prevDispatcher = ReactSharedInternals.H; 23889 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23890 try { 23891 return updateMemo(create, deps); 23892 } finally { 23893 ReactSharedInternals.H = prevDispatcher; 23894 } 23895 }, 23896 useReducer: function(reducer, initialArg, init) { 23897 currentHookNameInDev = "useReducer"; 23898 warnInvalidHookAccess(); 23899 updateHookTypesDev(); 23900 var prevDispatcher = ReactSharedInternals.H; 23901 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23902 try { 23903 return rerenderReducer(reducer, initialArg, init); 23904 } finally { 23905 ReactSharedInternals.H = prevDispatcher; 23906 } 23907 }, 23908 useRef: function() { 23909 currentHookNameInDev = "useRef"; 23910 warnInvalidHookAccess(); 23911 updateHookTypesDev(); 23912 return updateWorkInProgressHook().memoizedState; 23913 }, 23914 useState: function() { 23915 currentHookNameInDev = "useState"; 23916 warnInvalidHookAccess(); 23917 updateHookTypesDev(); 23918 var prevDispatcher = ReactSharedInternals.H; 23919 ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV; 23920 try { 23921 return rerenderReducer(basicStateReducer); 23922 } finally { 23923 ReactSharedInternals.H = prevDispatcher; 23924 } 23925 }, 23926 useDebugValue: function() { 23927 currentHookNameInDev = "useDebugValue";
23928 warnInvalidHookAccess(); 23929 updateHookTypesDev(); 23930 }, 23931 useDeferredValue: function(value, initialValue) { 23932 currentHookNameInDev = "useDeferredValue"; 23933 warnInvalidHookAccess(); 23934 updateHookTypesDev(); 23935 return rerenderDeferredValue(value, initialValue); 23936 }, 23937 useTransition: function() { 23938 currentHookNameInDev = "useTransition"; 23939 warnInvalidHookAccess(); 23940 updateHookTypesDev(); 23941 return rerenderTransition(); 23942 }, 23943 useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { 23944 currentHookNameInDev = "useSyncExternalStore"; 23945 warnInvalidHookAccess(); 23946 updateHookTypesDev(); 23947 return updateSyncExternalStore( 23948 subscribe, 23949 getSnapshot, 23950 getServerSnapshot 23951 ); 23952 }, 23953 useId: function() { 23954 currentHookNameInDev = "useId"; 23955 warnInvalidHookAccess(); 23956 updateHookTypesDev(); 23957 return updateWorkInProgressHook().memoizedState; 23958 }, 23959 useFormState: function(action) { 23960 currentHookNameInDev = "useFormState"; 23961 warnInvalidHookAccess(); 23962 updateHookTypesDev(); 23963 return rerenderActionState(action); 23964 }, 23965 useActionState: function(action) { 23966 currentHookNameInDev = "useActionState"; 23967 warnInvalidHookAccess(); 23968 updateHookTypesDev(); 23969 return rerenderActionState(action); 23970 }, 23971 useOptimistic: function(passthrough, reducer) { 23972 currentHookNameInDev = "useOptimistic"; 23973 warnInvalidHookAccess(); 23974 updateHookTypesDev(); 23975 return rerenderOptimistic(passthrough, reducer); 23976 }, 23977 useMemoCache: function(size) { 23978 warnInvalidHookAccess(); 23979 return useMemoCache(size); 23980 }, 23981 useHostTransitionStatus, 23982 useCacheRefresh: function() { 23983 currentHookNameInDev = "useCacheRefresh"; 23984 updateHookTypesDev(); 23985 return updateWorkInProgressHook().memoizedState; 23986 } 23987 }; 23988 var callComponent = { 23989 "react-stack-bottom-frame": function(Component, props, secondArg) { 23990 var wasRendering = isRendering; 23991 isRendering = true; 23992 try { 23993 return Component(props, secondArg); 23994 } finally { 23995 isRendering = wasRendering; 23996 } 23997 } 23998 }, callComponentInDEV = callComponent["react-stack-bottom-frame"].bind(callComponent), callRender = { 23999 "react-stack-bottom-frame": function(instance) { 24000 var wasRendering = isRendering; 24001 isRendering = true; 24002 try { 24003 return instance.render(); 24004 } finally { 24005 isRendering = wasRendering; 24006 } 24007 } 24008 }, callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender), callComponentDidMount = { 24009 "react-stack-bottom-frame": function(finishedWork, instance) { 24010 try { 24011 instance.componentDidMount(); 24012 } catch (error) { 24013 captureCommitPhaseError(finishedWork, finishedWork.return, error); 24014 } 24015 } 24016 }, callComponentDidMountInDEV = callComponentDidMount["react-stack-bottom-frame"].bind(callComponentDidMount), callComponentDidUpdate = { 24017 "react-stack-bottom-frame": function(finishedWork, instance, prevProps, prevState, snapshot) { 24018 try { 24019 instance.componentDidUpdate(prevProps, prevState, snapshot); 24020 } catch (error) { 24021 captureCommitPhaseError(finishedWork, finishedWork.return, error); 24022 } 24023 } 24024 }, callComponentDidUpdateInDEV = callComponentDidUpdate["react-stack-bottom-frame"].bind(callComponentDidUpdate), callComponentDidCatch = { 24025 "react-stack-bottom-frame": function(instance, errorInfo) { 24026 var stack = errorInfo.stack; 24027 instance.componentDidCatch(errorInfo.value, { 24028 componentStack: null !== stack ? stack : "" 24029 }); 24030 } 24031 }, callComponentDidCatchInDEV = callComponentDidCatch["react-stack-bottom-frame"].bind(callComponentDidCatch), callComponentWillUnmount = { 24032 "react-stack-bottom-frame": function(current2, nearestMountedAncestor, instance) { 24033 try { 24034 instance.componentWillUnmount(); 24035 } catch (error) { 24036 captureCommitPhaseError(current2, nearestMountedAncestor, error); 24037 } 24038 } 24039 }, callComponentWillUnmountInDEV = callComponentWillUnmount["react-stack-bottom-frame"].bind(callComponentWillUnmount), callCreate = { 24040 "react-stack-bottom-frame": function(effect) { 24041 null != effect.resourceKind && console.error( 24042 "Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s", 24043 effect.resourceKind 24044 ); 24045 var create = effect.create; 24046 effect = effect.inst; 24047 create = create(); 24048 return effect.destroy = create; 24049 } 24050 }, callCreateInDEV = callCreate["react-stack-bottom-frame"].bind(callCreate), callDestroy = { 24051 "react-stack-bottom-frame": function(current2, nearestMountedAncestor, destroy) { 24052 try { 24053 destroy(); 24054 } catch (error) { 24055 captureCommitPhaseError(current2, nearestMountedAncestor, error); 24056 } 24057 } 24058 }, callDestroyInDEV = callDestroy["react-stack-bottom-frame"].bind(callDestroy), callLazyInit = { 24059 "react-stack-bottom-frame": function(lazy) { 24060 var init = lazy._init; 24061 return init(lazy._payload); 24062 } 24063 }, callLazyInitInDEV = callLazyInit["react-stack-bottom-frame"].bind(callLazyInit), thenableState = null, thenableIndexCounter = 0, currentDebugInfo = null, didWarnAboutMaps; 24064 var didWarnAboutGenerators = didWarnAboutMaps = false;
24065 var ownerHasKeyUseWarning = {}; 24066 var ownerHasFunctionTypeWarning = {}; 24067 var ownerHasSymbolTypeWarning = {}; 24068 warnForMissingKey = function(returnFiber, workInProgress2, child) { 24069 if (null !== child && "object" === typeof child && child._store && (!child._store.validated && null == child.key || 2 === child._store.validated)) { 24070 if ("object" !== typeof child._store) 24071 throw Error( 24072 "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue." 24073 ); 24074 child._store.validated = 1; 24075 var componentName2 = getComponentNameFromFiber(returnFiber), componentKey = componentName2 || "null"; 24076 if (!ownerHasKeyUseWarning[componentKey]) { 24077 ownerHasKeyUseWarning[componentKey] = true; 24078 child = child._owner; 24079 returnFiber = returnFiber._debugOwner; 24080 var currentComponentErrorInfo = ""; 24081 returnFiber && "number" === typeof returnFiber.tag && (componentKey = getComponentNameFromFiber(returnFiber)) && (currentComponentErrorInfo = "\n\nCheck the render method of `" + componentKey + "`."); 24082 currentComponentErrorInfo || componentName2 && (currentComponentErrorInfo = "\n\nCheck the top-level render call using <" + componentName2 + ">."); 24083 var childOwnerAppendix = ""; 24084 null != child && returnFiber !== child && (componentName2 = null, "number" === typeof child.tag ? componentName2 = getComponentNameFromFiber(child) : "string" === typeof child.name && (componentName2 = child.name), componentName2 && (childOwnerAppendix = " It was passed a child from " + componentName2 + ".")); 24085 runWithFiberInDEV(workInProgress2, function() { 24086 console.error( 24087 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', 24088 currentComponentErrorInfo, 24089 childOwnerAppendix 24090 ); 24091 }); 24092 } 24093 } 24094 }; 24095 var reconcileChildFibers = createChildReconciler(true), mountChildFibers = createChildReconciler(false), suspenseHandlerStackCursor = createCursor(null), shellBoundary = null, SubtreeSuspenseContextMask = 1, ForceSuspenseFallback = 2, suspenseStackCursor = createCursor(0), fakeInternalInstance = {}; 24096 var didWarnAboutStateAssignmentForComponent = /* @__PURE__ */ new Set(); 24097 var didWarnAboutUninitializedState = /* @__PURE__ */ new Set(); 24098 var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = /* @__PURE__ */ new Set(); 24099 var didWarnAboutLegacyLifecyclesAndDerivedState = /* @__PURE__ */ new Set(); 24100 var didWarnAboutDirectlyAssigningPropsToState = /* @__PURE__ */ new Set(); 24101 var didWarnAboutUndefinedDerivedState = /* @__PURE__ */ new Set(); 24102 var didWarnAboutContextTypes$1 = /* @__PURE__ */ new Set(); 24103 var didWarnAboutChildContextTypes = /* @__PURE__ */ new Set(); 24104 var didWarnAboutInvalidateContextType = /* @__PURE__ */ new Set(); 24105 var didWarnOnInvalidCallback = /* @__PURE__ */ new Set(); 24106 Object.freeze(fakeInternalInstance); 24107 var classComponentUpdater = { 24108 enqueueSetState: function(inst, payload, callback) { 24109 inst = inst._reactInternals; 24110 var lane = requestUpdateLane(inst), update = createUpdate(lane); 24111 update.payload = payload; 24112 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 24113 payload = enqueueUpdate(inst, update, lane); 24114 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 24115 markStateUpdateScheduled(inst, lane); 24116 }, 24117 enqueueReplaceState: function(inst, payload, callback) { 24118 inst = inst._reactInternals; 24119 var lane = requestUpdateLane(inst), update = createUpdate(lane); 24120 update.tag = ReplaceState; 24121 update.payload = payload; 24122 void 0 !== callback && null !== callback && (warnOnInvali
24122dCallback(callback), update.callback = callback); 24123 payload = enqueueUpdate(inst, update, lane); 24124 null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane)); 24125 markStateUpdateScheduled(inst, lane); 24126 }, 24127 enqueueForceUpdate: function(inst, callback) { 24128 inst = inst._reactInternals; 24129 var lane = requestUpdateLane(inst), update = createUpdate(lane); 24130 update.tag = ForceUpdate; 24131 void 0 !== callback && null !== callback && (warnOnInvalidCallback(callback), update.callback = callback); 24132 callback = enqueueUpdate(inst, update, lane); 24133 null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane)); 24134 null !== injectedProfilingHooks && "function" === typeof injectedProfilingHooks.markForceUpdateScheduled && injectedProfilingHooks.markForceUpdateScheduled(inst, lane); 24135 } 24136 }, reportGlobalError = "function" === typeof reportError ? reportError : function(error) { 24137 if ("object" === typeof window && "function" === typeof window.ErrorEvent) { 24138 var event = new window.ErrorEvent("error", { 24139 bubbles: true, 24140 cancelable: true, 24141 message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error), 24142 error 24143 }); 24144 if (!window.dispatchEvent(event)) return; 24145 } else if ("object" === typeof process && "function" === typeof process.emit) { 24146 process.emit("uncaughtException", error); 24147 return; 24148 } 24149 console.error(error); 24150 }, componentName = null, errorBoundaryName = null, SelectiveHydrationException = Error( 24151 "This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue." 24152 ), didReceiveUpdate = false; 24153 var didWarnAboutBadClass = {}; 24154 var didWarnAboutContextTypeOnFunctionComponent = {}; 24155 var didWarnAboutContextTypes = {}; 24156 var didWarnAboutGetDerivedStateOnFunctionComponent = {}; 24157 var didWarnAboutReassigningProps = false; 24158 var didWarnAboutRevealOrder = {}; 24159 var didWarnAboutTailOptions = {}; 24160 var SUSPENDED_MARKER = { 24161 dehydrated: null, 24162 treeContext: null, 24163 retryLane: 0, 24164 hydrationErrors: null 24165 }, hasWarnedAboutUsingNoValuePropOnContextProvider = false, didWarnAboutUndefinedSnapshotBeforeUpdate = null; 24166 didWarnAboutUndefinedSnapshotBeforeUpdate = /* @__PURE__ */ new Set(); 24167 var offscreenSubtreeIsHidden = false, offscreenSubtreeWasHidden = false, needsFormReset = false, PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set, nextEffect = null, inProgressLanes = null, inProgressRoot = null, hostParent = null, hostParentIsContainer = false, currentHoistableRoot = null, suspenseyCommitFlag = 8192, DefaultAsyncDispatcher = { 24168 getCacheForType: function(resourceType) { 24169 var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType); 24170 void 0 === cacheForType && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)); 24171 return cacheForType; 24172 }, 24173 getOwner: function() { 24174 return current; 24175 } 24176 }; 24177 if ("function" === typeof Symbol && Symbol.for) { 24178 var symbolFor = Symbol.for; 24179 symbolFor("selector.component"); 24180 symbolFor("selector.has_pseudo_class"); 24181 symbolFor("selector.role"); 24182 symbolFor("selector.test_id"); 24183 symbolFor("selector.text"); 24184 } 24185 var commitHooks = [], PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, NoContext = 0, RenderContext = 2, CommitContext = 4, RootInProgress = 0, RootFatalErrored = 1, RootErrored = 2, RootSuspended = 3, RootSuspendedWithDelay = 4, RootSuspendedAtTheShell = 6, RootCompleted = 5, executionContext = NoContext, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, NotSuspended = 0, SuspendedOnError = 1, SuspendedOnData = 2, SuspendedOnImmediate = 3, SuspendedOnInstance = 4, SuspendedOnInstanceAndReadyToContinue = 5, SuspendedOnDeprecatedThrowPromise = 6, SuspendedAndReadyToContinue = 7, SuspendedOnHydration = 8, SuspendedOnAction = 9, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSu
24185spendedSiblings = false, workInProgressRootIsPrerendering = false, workInProgressRootDidAttachPingListener = false, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = false, globalMostRecentFallbackTime = 0, FALLBACK_THROTTLE_MS = 300, workInProgressRootRenderTargetTime = Infinity, RENDER_TIMEOUT_MS = 500, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, IMMEDIATE_COMMIT = 0, SUSPENDED_COMMIT = 1, THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, PENDING_LAYOUT_PHASE = 2, PENDING_AFTER_MUTATION_PHASE = 3, PENDING_SPAWNED_WORK = 4, PENDING_PASSIVE_PHASE = 5, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, NESTED_UPDATE_LIMIT = 50, nestedUpdateCount = 0, rootWithNestedUpdates = null, isFlushingPassiveEffects = false, didScheduleUpdateDuringPassiveEffects = false, NESTED_PASSIVE_UPDATE_LIMIT = 50, nestedPassiveUpdateCount = 0, rootWithPassiveNestedUpdates = null, isRunningInsertionEffect = false, didWarnStateUpdateForNotYetMountedComponent = null, didWarnAboutUpdateInRender = false;
vendor: 13,731 bytes, lines 24186-24415
24186 var didWarnAboutUpdateInRenderForAnotherComponent = /* @__PURE__ */ new Set(); 24187 var fakeActCallbackNode$1 = {}, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, didScheduleMicrotask_act = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, fakeActCallbackNode = {}; 24188 (function() { 24189 for (var i = 0; i < simpleEventPluginEvents.length; i++) { 24190 var eventName = simpleEventPluginEvents[i], domEventName = eventName.toLowerCase(); 24191 eventName = eventName[0].toUpperCase() + eventName.slice(1); 24192 registerSimpleEvent(domEventName, "on" + eventName); 24193 } 24194 registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); 24195 registerSimpleEvent(ANIMATION_ITERATION, "onAnimationIteration"); 24196 registerSimpleEvent(ANIMATION_START, "onAnimationStart"); 24197 registerSimpleEvent("dblclick", "onDoubleClick"); 24198 registerSimpleEvent("focusin", "onFocus"); 24199 registerSimpleEvent("focusout", "onBlur"); 24200 registerSimpleEvent(TRANSITION_RUN, "onTransitionRun"); 24201 registerSimpleEvent(TRANSITION_START, "onTransitionStart"); 24202 registerSimpleEvent(TRANSITION_CANCEL, "onTransitionCancel"); 24203 registerSimpleEvent(TRANSITION_END, "onTransitionEnd"); 24204 })(); 24205 registerDirectEvent("onMouseEnter", ["mouseout", "mouseover"]); 24206 registerDirectEvent("onMouseLeave", ["mouseout", "mouseover"]); 24207 registerDirectEvent("onPointerEnter", ["pointerout", "pointerover"]); 24208 registerDirectEvent("onPointerLeave", ["pointerout", "pointerover"]); 24209 registerTwoPhaseEvent( 24210 "onChange", 24211 "change click focusin focusout input keydown keyup selectionchange".split( 24212 " " 24213 ) 24214 ); 24215 registerTwoPhaseEvent( 24216 "onSelect", 24217 "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( 24218 " " 24219 ) 24220 ); 24221 registerTwoPhaseEvent("onBeforeInput", [ 24222 "compositionend", 24223 "keypress", 24224 "textInput", 24225 "paste" 24226 ]); 24227 registerTwoPhaseEvent( 24228 "onCompositionEnd", 24229 "compositionend focusout keydown keypress keyup mousedown".split(" ") 24230 ); 24231 registerTwoPhaseEvent( 24232 "onCompositionStart", 24233 "compositionstart focusout keydown keypress keyup mousedown".split(" ") 24234 ); 24235 registerTwoPhaseEvent( 24236 "onCompositionUpdate", 24237 "compositionupdate focusout keydown keypress keyup mousedown".split(" ") 24238 ); 24239 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( 24240 " " 24241 ), nonDelegatedEvents = new Set( 24242 "beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mediaEventTypes) 24243 ), listeningMarker = "_reactListening" + Math.random().toString(36).slice(2), didWarnControlledToUncontrolled = false, didWarnUncontrolledToControlled = false, didWarnFormActionType = false, didWarnFormActionName = false, didWarnFormActionTarget = false, didWarnFormActionMethod = false, didWarnPopoverTargetObject = false; 24244 var didWarnForNewBooleanPropsWithEmptyValue = {}; 24245 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g, xlinkNamespace = "http://www.w3.org/1999/xlink", xmlNamespace = "http://www.w3.org/XML/1998/namespace", EXPECTED_FORM_ACTION_URL = "javascript:throw new Error('React form unexpectedly submitted.')", SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning", SUSPENSE_START_DATA = "$", SUSPENSE_END_DATA = "/$", SUSPENSE_PENDING_START_DATA = "$?", SUSPENSE_FALLBACK_START_DATA = "$!", PREAMBLE_CONTRIBUTION_HTML = 1, PREAMBLE_CONTRIBUTION_BODY = 2, PREAMBLE_CONTRIBUTION_HEAD = 4, FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, HostContextNamespaceMath = 2, eventsEnabled = null, selectionInformation = null, warnedUnknownTags = { dialog: true, webview: true }, currentPopstateTransitionEvent = null, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, noTimeout = -1, localPromise = "function" === typeof Promise ? Promise : void 0, scheduleMicrotask = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof localPromise ? function(callback) { 24246 return localPromise.resolve(null).then(callback).catch(handleErrorInNextTick); 24247 } : scheduleTimeout, previousHydratableOnEnteringScopedSingleton = null, NotLoaded = 0, Loaded = 1, Errored = 2, Settled = 3, Inserted = 4, preloadPropsMap = /* @__PURE__ */ new Map(), preconnectsSet = /* @__PURE__ */ new Set(), previousDispatcher = ReactDOMSharedInternals.d; 24248 ReactDOMSharedInternals.d = { 24249 f: function() { 24250 var previousWasRendering = previousDispatcher.f(), wasRendering = flushSyncWork$1(); 24251 return previousWasRendering || wasRendering; 24252 }, 24253 r: function(form) { 24254 var formInst = getInstanceFromNode(form); 24255 null !== formInst && 5 === formInst.tag && "form" === formInst.type ? requestFormReset$1(formInst) : previousDispatcher.r(form); 24256 }, 24257 D: function(href) { 24258 previousDispatcher.D(href); 24259 preconnectAs("dns-prefetch", href, null); 24260 }, 24261 C: function(href, crossOrigin) { 24262 previousDispatcher.C(href, crossOrigin); 24263 preconnectAs("preconnect", href, crossOrigin); 24264 }, 24265 L: function(href, as, options) { 24266 previousDispatcher.L(href, as, options); 24267 var ownerDocument = globalDocument; 24268 if (ownerDocument && href && as) { 24269 var preloadSelector = 'link[rel="preload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"]'; 24270 "image" === as ? options && options.imageSrcSet ? (preloadSelector += '[imagesrcset="' + escapeSelectorAttributeValueInsideDoubleQuotes( 24271 options.imageSrcSet 24272 ) + '"]', "string" === typeof options.imageSizes && (preloadSelector += '[imagesizes="' + escapeSelectorAttributeValueInsideDoubleQuotes( 24273 options.imageSizes 24274 ) + '"]')) : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]' : preloadSelector += '[href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]'; 24275 var key = preloadSelector; 24276 switch (as) { 24277 case "style": 24278 key = getStyleKey(href); 24279 break; 24280 case "script": 24281 key = getScriptKey(href); 24282 } 24283 preloadPropsMap.has(key) || (href = assign( 24284 { 24285 rel: "preload", 24286 href: "image" === as && options && options.imageSrcSet ? void 0 : href, 24287 as 24288 }, 24289 options 24290 ), preloadPropsMap.set(key, href), null !== ownerDocument.querySelector(preloadSelector) || "style" === as && ownerDocument.querySelector( 24291 getStylesheetSelectorFromKey(key) 24292 ) || "script" === as && ownerDocument.querySelector(getScriptSelectorFromKey(key)) || (as = ownerDocument.createElement("link"), setInitialProperties(as, "link", href), markNodeAsHoistable(as), ownerDocument.head.appendChild(as))); 24293 } 24294 }, 24295 m: function(href, options) { 24296 previousDispatcher.m(href, options); 24297 var ownerDocument = globalDocument; 24298 if (ownerDocument && href) { 24299 var as = options && "string" === typeof options.as ? options.as : "script", preloadSelector = 'link[rel="modulepreload"][as="' + escapeSelectorAttributeValueInsideDoubleQuotes(as) + '"][href="' + escapeSelectorAttributeValueInsideDoubleQuotes(href) + '"]', key = preloadSelector; 24300 switch (as) { 24301 case "audioworklet": 24302 case "paintworklet": 24303 case "serviceworker": 24304 case "sharedworker": 24305 case "worker": 24306 case "script": 24307 key = getScriptKey(href); 24308 } 24309 if (!preloadPropsMap.has(key) && (href = assign({ rel: "modulepreload", href }, options), preloadPropsMap.set(key, href), null === ownerDocument.querySelector(preloadSelector))) { 24310 switch (as) { 24311 case "audioworklet": 24312 case "paintworklet": 24313 case "serviceworker": 24314 case "sharedworker": 24315 case "worker": 24316 case "script": 24317 if (ownerDocument.querySelector(getScriptSelectorFromKey(key))) 24318 return; 24319 } 24320 as = ownerDocument.createElement("link"); 24321 setInitialProperties(as, "link", href); 24322 markNodeAsHoistable(as); 24323 ownerDocument.head.appendChild(as); 24324 } 24325 } 24326 }, 24327 X: function(src, options) { 24328 previousDispatcher.X(src, options); 24329 var ownerDocument = globalDocument; 24330 if (ownerDocument && src) { 24331 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 24332 resource || (resource = ownerDocument.querySelector( 24333 getScriptSelectorFromKey(key) 24334 ), resource || (src = assign({ src, async: true }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 24335 type: "script", 24336 instance: resource, 24337 count: 1, 24338 state: null 24339 }, scripts.set(key, resource)); 24340 } 24341 }, 24342 S: function(href, precedence, options) { 24343 previousDispatcher.S(href, precedence, options); 24344 var ownerDocument = globalDocument; 24345 if (ownerDocument && href) { 24346 var styles = getResourcesFromRoot(ownerDocument).hoistableStyles, key = getStyleKey(href); 24347 precedence = precedence || "default"; 24348 var resource = styles.get(key); 24349 if (!resource) { 24350 var state = { loading: NotLoaded, preload: null }; 24351 if (resource = ownerDocument.querySelector( 24352 getStylesheetSelectorFromKey(key) 24353 )) 24354 state.loading = Loaded | Inserted; 24355 else { 24356 href = assign( 24357 { 24358 rel: "stylesheet", 24359 href, 24360 "data-precedence": precedence 24361 }, 24362 options 24363 ); 24364 (options = preloadPropsMap.get(key)) && adoptPreloadPropsForStylesheet(href, options); 24365 var link = resource = ownerDocument.createElement("link"); 24366 markNodeAsHoistable(link); 24367 setInitialProperties(link, "link", href); 24368 link._p = new Promise(function(resolve, reject) { 24369 link.onload = resolve; 24370 link.onerror = reject; 24371 }); 24372 link.addEventListener("load", function() { 24373 state.loading |= Loaded; 24374 }); 24375 link.addEventListener("error", function() { 24376 state.loading |= Errored; 24377 }); 24378 state.loading |= Inserted; 24379 insertStylesheet(resource, precedence, ownerDocument); 24380 } 24381 resource = { 24382 type: "stylesheet", 24383 instance: resource, 24384 count: 1, 24385 state 24386 }; 24387 styles.set(key, resource); 24388 } 24389 } 24390 }, 24391 M: function(src, options) { 24392 previousDispatcher.M(src, options); 24393 var ownerDocument = globalDocument; 24394 if (ownerDocument && src) { 24395 var scripts = getResourcesFromRoot(ownerDocument).hoistableScripts, key = getScriptKey(src), resource = scripts.get(key); 24396 resource || (resource = ownerDocument.querySelector( 24397 getScriptSelectorFromKey(key) 24398 ), resource || (src = assign({ src, async: true, type: "module" }, options), (options = preloadPropsMap.get(key)) && adoptPreloadPropsForScript(src, options), resource = ownerDocument.createElement("script"), markNodeAsHoistable(resource), setInitialProperties(resource, "link", src), ownerDocument.head.appendChild(resource)), resource = { 24399 type: "script", 24400 instance: resource, 24401 count: 1, 24402 state: null 24403 }, scripts.set(key, resource)); 24404 } 24405 } 24406 }; 24407 var globalDocument = "undefined" === typeof document ? null : document, tagCaches = null, suspendedState = null, LAST_PRECEDENCE = null, precedencesByRoot = null, NotPendingTransition = NotPending, HostTransitionContext = { 24408 $$typeof: REACT_CONTEXT_TYPE, 24409 Provider: null, 24410 Consumer: null, 24411 _currentValue: NotPendingTransition, 24412 _currentValue2: NotPendingTransition, 24413 _threadCount: 0 24414 }, badgeFormat = "%c%s%c ", badgeStyle = "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", resetStyle = "", pad = " ", bind = Function.prototype.bind; 24415 var didWarnAboutNestedUpdates = false;
24416 var overrideHookState = null, overrideHookStateDeletePath = null, overrideHookStateRenamePath = null, overrideProps = null, overridePropsDeletePath = null, overridePropsRenamePath = null, scheduleUpdate = null, setErrorHandler = null, setSuspenseHandler = null; 24417 overrideHookState = function(fiber, id, path, value) { 24418 id = findHook(fiber, id); 24419 null !== id && (path = copyWithSetImpl(id.memoizedState, path, 0, value), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 24420 }; 24421 overrideHookStateDeletePath = function(fiber, id, path) { 24422 id = findHook(fiber, id); 24423 null !== id && (path = copyWithDeleteImpl(id.memoizedState, path, 0), id.memoizedState = path, id.baseState = path, fiber.memoizedProps = assign({}, fiber.memoizedProps), path = enqueueConcurrentRenderForLane(fiber, 2), null !== path && scheduleUpdateOnFiber(path, fiber, 2)); 24424 }; 24425 overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) { 24426 id = findHook(fiber, id); 24427 null !== id && (oldPath = copyWithRename(id.memoizedState, oldPath, newPath), id.memoizedState = oldPath, id.baseState = oldPath, fiber.memoizedProps = assign({}, fiber.memoizedProps), oldPath = enqueueConcurrentRenderForLane(fiber, 2), null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2)); 24428 }; 24429 overrideProps = function(fiber, path, value) { 24430 fiber.pendingProps = copyWithSetImpl(fiber.memoizedProps, path, 0, value); 24431 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 24432 path = enqueueConcurrentRenderForLane(fiber, 2); 24433 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 24434 }; 24435 overridePropsDeletePath = function(fiber, path) { 24436 fiber.pendingProps = copyWithDeleteImpl(fiber.memoizedProps, path, 0); 24437 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 24438 path = enqueueConcurrentRenderForLane(fiber, 2); 24439 null !== path && scheduleUpdateOnFiber(path, fiber, 2); 24440 }; 24441 overridePropsRenamePath = function(fiber, oldPath, newPath) { 24442 fiber.pendingProps = copyWithRename( 24443 fiber.memoizedProps, 24444 oldPath, 24445 newPath 24446 ); 24447 fiber.alternate && (fiber.alternate.pendingProps = fiber.pendingProps); 24448 oldPath = enqueueConcurrentRenderForLane(fiber, 2); 24449 null !== oldPath && scheduleUpdateOnFiber(oldPath, fiber, 2); 24450 }; 24451 scheduleUpdate = function(fiber) { 24452 var root2 = enqueueConcurrentRenderForLane(fiber, 2); 24453 null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2); 24454 }; 24455 setErrorHandler = function(newShouldErrorImpl) { 24456 shouldErrorImpl = newShouldErrorImpl; 24457 }; 24458 setSuspenseHandler = function(newShouldSuspendImpl) { 24459 shouldSuspendImpl = newShouldSuspendImpl; 24460 }; 24461 var _enabled = true, return_targetInst = null, hasScheduledReplayAttempt = false, 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( 24462 " " 24463 ), lastScheduledReplayQueue = null; 24464 ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(children) { 24465 var root2 = this._internalRoot; 24466 if (null === root2) throw Error("Cannot update an unmounted root."); 24467 var args = arguments; 24468 "function" === typeof args[1] ? console.error( 24469 "does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." 24470 ) : isValidContainer(args[1]) ? console.error( 24471 "You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root." 24472 ) : "undefined" !== typeof args[1] && console.error( 24473 "You passed a second argument to root.render(...) but it only accepts one argument." 24474 ); 24475 args = children; 24476 var current2 = root2.current, lane = requestUpdateLane(current2); 24477 updateContainerImpl(current2, lane, args, root2, null, null); 24478 }; 24479 ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() { 24480 var args = arguments; 24481 "function" === typeof args[0] && console.error( 24482 "does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." 24483 ); 24484 args = this._internalRoot; 24485 if (null !== args) { 24486 this._internalRoot = null; 24487 var container = args.containerInfo; 24488 (executionContext & (RenderContext | CommitContext)) !== NoContext && console.error( 24489 "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition." 24490 ); 24491 updateContainerImpl(args.current, 2, null, args, null, null); 24492 flushSyncWork$1(); 24493 container[internalContainerInstanceKey] = null; 24494 } 24495 }; 24496 ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function(target) { 24497 if (target) { 24498 var updatePriority = resolveUpdatePriority(); 24499 target = { blockedOn: null, target, priority: updatePriority }; 24500 for (var i = 0; i < queuedExplicitHydrationTargets.length && 0 !== updatePriority && updatePriority < queuedExplicitHydrationTargets[i].priority; i++) ; 24501 queuedExplicitHydrationTargets.splice(i, 0, target); 24502 0 === i && attemptExplicitHydrationTarget(target); 24503 } 24504 }; 24505 (function() {
24506 var isomorphicReactPackageVersion = React.version; 24507 if ("19.1.0" !== isomorphicReactPackageVersion) 24508 throw Error( 24509 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.0\nLearn more: https://react.dev/warnings/version-mismatch") 24510 ); 24511 })(); 24512 "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error( 24513 "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills" 24514 ); 24515 ReactDOMSharedInternals.findDOMNode = function(componentOrElement) { 24516 var fiber = componentOrElement._reactInternals; 24517 if (void 0 === fiber) { 24518 if ("function" === typeof componentOrElement.render) 24519 throw Error("Unable to find node on an unmounted component."); 24520 componentOrElement = Object.keys(componentOrElement).join(","); 24521 throw Error( 24522 "Argument appears to not be a ReactComponent. Keys: " + componentOrElement 24523 ); 24524 } 24525 componentOrElement = findCurrentFiberUsingSlowPath(fiber); 24526 componentOrElement = null !== componentOrElement ? findCurrentHostFiberImpl(componentOrElement) : null; 24527 componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode; 24528 return componentOrElement; 24529 }; 24530 if (!function() { 24531 var internals = { 24532 bundleType: 1, 24533 version: "19.1.0", 24534 rendererPackageName: "react-dom", 24535 currentDispatcherRef: ReactSharedInternals, 24536 reconcilerVersion: "19.1.0" 24537 }; 24538 internals.overrideHookState = overrideHookState; 24539 internals.overrideHookStateDeletePath = overrideHookStateDeletePath; 24540 internals.overrideHookStateRenamePath = overrideHookStateRenamePath; 24541 internals.overrideProps = overrideProps; 24542 internals.overridePropsDeletePath = overridePropsDeletePath; 24543 internals.overridePropsRenamePath = overridePropsRenamePath; 24544 internals.scheduleUpdate = scheduleUpdate; 24545 internals.setErrorHandler = setErrorHandler; 24546 internals.setSuspenseHandler = setSuspenseHandler; 24547 internals.scheduleRefresh = scheduleRefresh; 24548 internals.scheduleRoot = scheduleRoot; 24549 internals.setRefreshHandler = setRefreshHandler; 24550 internals.getCurrentFiber = getCurrentFiberForDevTools; 24551 internals.getLaneLabelMap = getLaneLabelMap; 24552 internals.injectProfilingHooks = injectProfilingHooks; 24553 return injectInternals(internals); 24554 }() && canUseDOM && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && -1 === navigator.userAgent.indexOf("Edge") || -1 < navigator.userAgent.indexOf("Firefox"))) { 24555 var protocol = window.location.protocol; 24556 /^(https?|file):$/.test(protocol) && console.info( 24557 "%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools" + ("file:" === protocol ? "\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq" : ""), 24558 "font-weight:bold" 24559 ); 24560 } 24561 reactDomClient_development.createRoot = function(container, options) { 24562 if (!isValidContainer(container)) 24563 throw Error("Target container is not a DOM element."); 24564 warnIfReactDOMContainerInDEV(container); 24565 var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null; 24566 null !== options && void 0 !== options && (options.hydrate ? console.warn( 24567 "hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead." 24568 ) : "object" === typeof options && null !== options && options.$$typeof === REACT_ELEMENT_TYPE && console.error( 24569 "You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);" 24570 ), true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks)); 24571 options = createFiberRoot( 24572 container, 24573 1, 24574 false, 24575 null, 24576 null, 24577 isStrictMode, 24578 identifierPrefix, 24579 onUncaughtError, 24580 onCaughtError, 24581 onRecoverableError, 24582 transitionCallbacks, 24583 null 24584 ); 24585 container[internalContainerInstanceKey] = options.current; 24586 listenToAllSupportedEvents(container); 24587 return new ReactDOMRoot(options); 24588 }; 24589 reactDomClient_development.hydrateRoot = function(container, initialChildren, options) { 24590 if (!isValidContainer(container)) 24591 throw Error("Target container is not a DOM element."); 24592 warnIfReactDOMContainerInDEV(container); 24593 void 0 === initialChildren && console.error( 24594 "Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)" 24595 ); 24596 var isStrictMode = false, identifierPrefix = "", onUncaughtError = defaultOnUncaughtError, onCaughtError = defaultOnCaughtError, onRecoverableError = defaultOnRecoverableError, transitionCallbacks = null, formState = null; 24597 null !== options && void 0 !== options && (true === options.unstable_strictMode && (isStrictMode = true), void 0 !== options.identifierPrefix && (identifierPrefix = options.identifierPrefix), void 0 !== options.onUncaughtError && (onUncaughtError = options.onUncaughtError), void 0 !== options.onCaughtError && (onCaughtError = options.onCaughtError), void 0 !== options.onRecoverableError && (onRecoverableError = options.onRecoverableError), void 0 !== options.unstable_transitionCallbacks && (transitionCallbacks = options.unstable_transitionCallbacks), void 0 !== options.formState && (formState = options.formState)); 24598 initialChildren = createFiberRoot( 24599 container, 24600 1, 24601 true, 24602 initialChildren, 24603 null != options ? options : null, 24604 isStrictMode, 24605 identifierPrefix, 24606 onUncaughtError, 24607 onCaughtError, 24608 onRecoverableError, 24609 transitionCallbacks, 24610 formState 24611 ); 24612 initialChildren.context = getContextForSubtree(null); 24613 options = initialChildren.current; 24614 isStrictMode = requestUpdateLane(options); 24615 isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); 24616 identifierPrefix = createUpdate(isStrictMode); 24617 identifierPrefix.callback = null; 24618 enqueueUpdate(options, identifierPrefix, isStrictMode); 24619 options = isStrictMode; 24620 initialChildren.current.lanes = options; 24621 markRootUpdated$1(initialChildren, options); 24622 ensureRootIsScheduled(initialChildren); 24623 container[internalContainerInstanceKey] = initialChildren.current; 24624 listenToAllSupportedEvents(container); 24625 return new ReactDOMHydrationRoot(initialChildren); 24626 }; 24627 reactDomClient_development.version = "19.1.0"; 24628 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); 24629 })(); 24630 return reactDomClient_development; 24631 } 24632 var hasRequiredClient; 24633 function requireClient() { 24634 if (hasRequiredClient) return client.exports; 24635 hasRequiredClient = 1; 24636 { 24637 client.exports = requireReactDomClient_development(); 24638 } 24639 return client.exports; 24640 } 24641 var clientExports = requireClient(); 24642 class ContactModalBridge { 24643 constructor() { 24644 __publicField(this, "rootElement", null); 24645 __publicField(this, "root", null); 24646 __publicField(this, "visible", false); 24647 __publicField(this, "personIdentifier"); 24648 __publicField(this, "encryptedEmailAddress"); 24649 __publicField(this, "headerTitle"); 24650 __publicField(this, "translations"); 24651 __publicField(this, "element"); 24652 __publicField(this, "reCaptchaSiteKey", ""); 24653 __publicField(this, "onVisibilityChangeCallback", null); 24654 this.toggleModal = this.toggleModal.bind(this); 24655 this.showModal = this.showModal.bind(this); 24656 this.hideModal = this.hideModal.bind(this); 24657 this.updatePersonIdentifier = this.updatePersonIdentifier.bind(this); 24658 this.updateEncryptedEmail = this.updateEncryptedEmail.bind(this); 24659 this.updateHeaderTitle = this.updateHeaderTitle.bind(this); 24660 } 24661 /** 24662 * Update the personIdentifier data 24663 */ 24664 updatePersonIdentifier(personIdentifier) { 24665 this.personIdentifier = personIdentifier; 24666 this.renderModal(); 24667 } 24668 updateEncryptedEmail(encryptedEmailAddress) { 24669 this.encryptedEmailAddress = encryptedEmailAddress; 24670 this.renderModal(); 24671 } 24672 /** 24673 * Update the header title (person name) 24674 */ 24675 updateHeaderTitle(headerTitle) { 24676 this.headerTitle = headerTitle; 24677 this.renderModal(); 24678 } 24679 /** 24680 * Initialize the contact modal with the given parameters 24681 */ 24682 async initialize(params) { 24683 const { element, translations, reCaptchaSiteKey, onVisibilityChange } = params; 24684 this.element = element; 24685 this.translations = translations; 24686 this.reCaptchaSiteKey = reCaptchaSiteKey || ""; 24687 this.onVisibilityChangeCallback = onVisibilityChange || null; 24688 } 24689 async fetchSettingsAndCreateElement() { 24690 if (!this.translations) { 24691 try { 24692 const serverData = await fetchContactModalConfig(); 24693 this.translations = serverData.translations; 24694 this.reCaptchaSiteKey = this.reCaptchaSiteKey || serverData.reCaptchaSiteKey || ""; 24695 } catch (error) { 24696 console.error("Failed to fetch translations:", error); 24697 this.translations = {}; 24698 this.reCaptchaSiteKey = this.reCaptchaSiteKey || ""; 24699 } 24700 } else { 24701 this.reCaptchaSiteKey = this.reCaptchaSiteKey || ""; 24702 } 24703 if (typeof this.element === "string") { 24704 let containerElement = document.getElementById(this.element); 24705 if (!containerElement) { 24706 containerElement = document.createElement("div"); 24707 containerElement.id = this.element; 24708 document.body.appendChild(containerElement); 24709 } 24710 this.rootElement = containerElement; 24711 } else { 24712 this.rootElement = this.element; 24713 } 24714 if (!this.root) { 24715 this.root = clientExports.createRoot(this.rootElement); 24716 } 24717 this.renderModal(); 24718 } 24719 /** 24720 * Toggle the visibility of the modal 24721 */ 24722 toggleModal() { 24723 this.visible = !this.visible; 24724 this.fetchSettingsAndCreateElement(); 24725 if (this.onVisibilityChangeCallback) { 24726 this.onVisibilityChangeCallback(this.visible); 24727 } 24728 } 24729 /** 24730 * Show the contact modal 24731 */ 24732 async showModal() { 24733 if (this.visible) return; 24734 this.visible = true; 24735 await this.fetchSettingsAndCreateElement(); 24736 if (this.onVisibilityChangeCallback) { 24737 this.onVisibilityChangeCallback(true); 24738 } 24739 } 24740 /** 24741 * Hide the contact modal 24742 */ 24743 hideModal() { 24744 if (!this.visible) return; 24745 this.visible = false;
24746 this.renderModal(); 24747 if (this.onVisibilityChangeCallback) { 24748 this.onVisibilityChangeCallback(false); 24749 } 24750 } 24751 /** 24752 * Render the modal component with current state 24753 */ 24754 renderModal() { 24755 if (!this.root) return; 24756 if (!this.visible && !(this.personIdentifier || this.encryptedEmailAddress)) { 24757 this.root.render(null); 24758 return; 24759 } 24760 this.root.render( 24761 /* @__PURE__ */ jsxDevRuntimeExports.jsxDEV( 24762 ContactModal, 24763 { 24764 personIdentifier: this.personIdentifier, 24765 encryptedEmailAddress: this.encryptedEmailAddress, 24766 personName: this.headerTitle, 24767 showMailForm: this.visible, 24768 setShowMailForm: (show) => { 24769 const newVisibility = typeof show === "boolean" ? show : !this.visible; 24770 if (this.visible !== newVisibility) { 24771 this.visible = newVisibility; 24772 this.renderModal(); 24773 if (this.onVisibilityChangeCallback) { 24774 this.onVisibilityChangeCallback(this.visible); 24775 } 24776 } 24777 }, 24778 translations: this.translations, 24779 reCaptchaSiteKey: this.reCaptchaSiteKey 24780 }, 24781 void 0, 24782 false, 24783 { 24784 fileName: "C:/BuildAgent2/work/f12373e15cfe5307/www/ClientApp/reactjs-front/shared-components/src/utils/ContactModalBridge.tsx", 24785 lineNumber: 150, 24786 columnNumber: 7 24787 }, 24788 this 24789 ) 24790 ); 24791 } 24792 /** 24793 * Destroy the modal and clean up 24794 */ 24795 destroy() { 24796 if (this.root) { 24797 this.root.unmount(); 24798 this.root = null; 24799 } 24800 if (this.rootElement) { 24801 this.rootElement.remove(); 24802 this.rootElement = null; 24803 } 24804 } 24805 } 24806 class ContactModalElement extends HTMLElement { 24807 constructor() { 24808 super(); 24809 __publicField(this, "bridge"); 24810 __publicField(this, "container"); 24811 __publicField(this, "contentContainer"); 24812 __publicField(this, "initialized", false); 24813 __publicField(this, "personIdentifier", null); 24814 __publicField(this, "_email", null); 24815 __publicField(this, "_headerTitle", null); 24816 __publicField(this, "boundHandleClick"); 24817 /** 24818 * Handle visibility changes from the modal 24819 */ 24820 __publicField(this, "handleVisibilityChange", (isVisible) => { 24821 if (!isVisible && this.hasAttribute("open")) { 24822 this.removeAttribute("open"); 24823 } else if (isVisible && !this.hasAttribute("open")) { 24824 this.setAttribute("open", ""); 24825 } 24826 }); 24827 this.bridge = new ContactModalBridge(); 24828 this.container = document.createElement("div"); 24829 this.container.id = `contact-modal-container-${Math.round(Math.random() * 1e4)}`; 24830 this.style.display = "block"; 24831 this.contentContainer = document.createElement("div"); 24832 this.contentContainer.className = "contact-modal-content"; 24833 const slot = document.createElement("slot"); 24834 this.contentContainer.appendChild(slot); 24835 this.boundHandleClick = this.handleClick.bind(this); 24836 this.attachShadow({ mode: "open" }); 24837 this.shadowRoot.appendChild(this.contentContainer); 24838 this.shadowRoot.appendChild(this.container); 24839 this.contentContainer.addEventListener("click", this.boundHandleClick); 24840 } 24841 // Specify observed attributes to react when they change 24842 static get observedAttributes() { 24843 return ["encryptedemail", "personidentifier", "open", "headertitle"]; 24844 } 24845 /** 24846 * Handle click events on the component 24847 */ 24848 handleClick(event) { 24849 this.setAttribute("open", ""); 24850 event.preventDefault(); 24851 event.stopPropagation(); 24852 } 24853 /** 24854 * Initialize the ContactModalBridge 24855 */ 24856 initializeBridge() { 24857 if (this.initialized) return; 24858 this.bridge.initialize({ 24859 element: this.container, 24860 onVisibilityChange: this.handleVisibilityChange 24861 }).then(() => { 24862 this.initialized = true; 24863 this.updateConfiguration(); 24864 if (this.hasAttribute("open")) { 24865 this.bridge.showModal(); 24866 } 24867 }).catch((error) => { 24868 console.error("Failed to initialize contact modal bridge:", error); 24869 }); 24870 } 24871 /** 24872 * Update configuration based on current attributes 24873 */ 24874 updateConfiguration() { 24875 if (this.personIdentifier) { 24876 this.bridge.updatePersonIdentifier(this.personIdentifier); 24877 } 24878 if (this._email) { 24879 this.bridge.updateEncryptedEmail(this._email); 24880 } 24881 if (this._headerTitle) { 24882 this.bridge.updateHeaderTitle(this._headerTitle); 24883 } 24884 } 24885 connectedCallback() { 24886 this.initializeBridge(); 24887 } 24888 attributeChangedCallback(name, oldValue, newValue) { 24889 if (oldValue === newValue) return; 24890 name = name.toLowerCase().replace(/-/g, ""); 24891 switch (name) { 24892 case "encryptedemail": 24893 this._email = newValue; 24894 if (this.initialized) { 24895 this.updateConfiguration(); 24896 } 24897 break; 24898 case "personidentifier": 24899 this.personIdentifier = newValue; 24900 if (newValue && this.initialized) { 24901 this.updateConfiguration(); 24902 } 24903 break; 24904 case "headertitle": 24905 this._headerTitle = newValue; 24906 if (this.initialized) { 24907 this.updateConfiguration(); 24908 } 24909 break; 24910 case "open": 24911 if (this.initialized) { 24912 if (newValue !== null) { 24913 this.bridge.showModal(); 24914 } else { 24915 this.bridge.hideModal(); 24916 } 24917 } 24918 break; 24919 } 24920 } 24921 disconnectedCallback() { 24922 this.contentContainer.removeEventListener("click", this.boundHandleClick); 24923 if (this.bridge) { 24924 this.bridge.destroy(); 24925 } 24926 } 24927 } 24928 const getBaseUrl = () => { 24929 return window.baseUrl || ""; 24930 };
24931 const decryptValue = async (encryptedValue, abortController) => { 24932 try { 24933 const baseUrl = getBaseUrl(); 24934 const base = baseUrl.replace(/\/+$/, ""); 24935 const apiPath = base ? `${base}/api/presentation/v2/person/` : "/api/presentation/v2/person/"; 24936 const result = await distExports.callApi("POST", apiPath, "valuev2", encryptedValue, void 0, abortController); 24937 if (!result || !result.content) { 24938 throw new Error("API call failed"); 24939 } 24940 return result.content; 24941 } catch (error) { 24942 throw error instanceof Error ? error : new Error("Decryption failed"); 24943 } 24944 }; 24945 class DecryptValueButton extends HTMLElement { 24946 constructor() { 24947 super(); 24948 __publicField(this, "button", null); 24949 __publicField(this, "_encryptedValue", ""); 24950 __publicField(this, "_buttonText", "Click me"); 24951 __publicField(this, "_buttonTextAria", "Click me"); 24952 __publicField(this, "originalButtonText", "Click me"); 24953 __publicField(this, "originalButtonTextAria", "Click me"); 24954 __publicField(this, "_customButton", false); 24955 __publicField(this, "abortController", null); 24956 __publicField(this, "buttonTextTimeout", null); 24957 __publicField(this, "_buttonTimeoutText", "Please wait {0} seconds"); 24958 __publicField(this, "ariaLiveRegion", null); 24959 } 24960 static get observedAttributes() { 24961 return ["encrypted-value", "button-text", "button-timeout-text"]; 24962 } 24963 connectedCallback() { 24964 setTimeout(() => { 24965 this.button = this.querySelector("button"); 24966 if (this.button) { 24967 this._customButton = true; 24968 this._buttonText = this.button.textContent ?? this._buttonText; 24969 this._buttonTextAria = this.button.getAttribute("aria-label") || this._buttonTextAria; 24970 this.originalButtonText = this._buttonText; 24971 this.originalButtonTextAria = this._buttonTextAria; 24972 const span = this.querySelector("button span"); 24973 if (span) { 24974 span.setAttribute("aria-hidden", "true"); 24975 } 24976 } else { 24977 this._customButton = false; 24978 this.attachShadow({ mode: "open" }); 24979 this.button = document.createElement("button"); 24980 this.shadowRoot.appendChild(this.button); 24981 this.originalButtonText = this._buttonText; 24982 this.originalButtonTextAria = this._buttonTextAria; 24983 } 24984 this.createAriaLiveRegion(); 24985 if (this.button) { 24986 this.button.setAttribute("aria-label", this.originalButtonTextAria); 24987 } 24988 this.button.addEventListener("click", this.handleClick.bind(this)); 24989 this.updateButton(); 24990 }, 0); 24991 } 24992 disconnectedCallback() { 24993 if (this.abortController) { 24994 this.abortController.abort(); 24995 this.abortController = null; 24996 } 24997 if (this.buttonTextTimeout !== null) { 24998 clearTimeout(this.buttonTextTimeout); 24999 this.buttonTextTimeout = null; 25000 } 25001 if (this.ariaLiveRegion && this.ariaLiveRegion.parentNode) { 25002 this.ariaLiveRegion.parentNode.removeChild(this.ariaLiveRegion); 25003 this.ariaLiveRegion = null; 25004 } 25005 } 25006 get encryptedValue() { 25007 return this._encryptedValue; 25008 } 25009 set encryptedValue(value) { 25010 this._encryptedValue = value; 25011 } 25012 get buttonText() { 25013 return this._buttonText; 25014 } 25015 set buttonText(value) { 25016 this._buttonText = value; 25017 } 25018 get buttonTextAria() { 25019 return this._buttonTextAria; 25020 } 25021 set buttonTextAria(value) { 25022 this._buttonTextAria = value; 25023 } 25024 get buttonTimeoutText() { 25025 return this._buttonTimeoutText; 25026 } 25027 set buttonTimeoutText(value) { 25028 this._buttonTimeoutText = value; 25029 } 25030 attributeChangedCallback(name, oldValue, newValue) { 25031 if (oldValue !== newValue) { 25032 switch (name) { 25033 case "encrypted-value": 25034 this.encryptedValue = newValue || ""; 25035 break; 25036 case "button-text": 25037 this.buttonText = newValue || "Click me"; 25038 this.originalButtonText = this.buttonText; 25039 this.updateButton(); 25040 break; 25041 case "button-timeout-text":
25042 this.buttonTimeoutText = newValue || "Please wait {0} seconds"; 25043 break; 25044 } 25045 } 25046 } 25047 updateButton() { 25048 if (!this._customButton && this.button) { 25049 this.button.textContent = this._buttonText; 25050 } 25051 if (this._customButton) { 25052 const span = this.querySelector("button span"); 25053 if (span) { 25054 span.textContent = this._buttonText; 25055 } 25056 } 25057 } 25058 /** 25059 * Creates a visually hidden aria-live region for screen reader announcements 25060 */ 25061 createAriaLiveRegion() { 25062 this.ariaLiveRegion = document.createElement("div"); 25063 this.ariaLiveRegion.setAttribute("aria-live", "polite"); 25064 this.ariaLiveRegion.setAttribute("aria-atomic", "true"); 25065 this.ariaLiveRegion.style.position = "absolute"; 25066 this.ariaLiveRegion.style.left = "-10000px"; 25067 this.ariaLiveRegion.style.width = "1px"; 25068 this.ariaLiveRegion.style.height = "1px"; 25069 this.ariaLiveRegion.style.overflow = "hidden"; 25070 document.body.appendChild(this.ariaLiveRegion); 25071 } 25072 /** 25073 * Announces a message to screen readers via the aria-live region 25074 */ 25075 announceToScreenReader(message) { 25076 if (this.ariaLiveRegion) { 25077 this.ariaLiveRegion.textContent = ""; 25078 setTimeout(() => { 25079 if (this.ariaLiveRegion) { 25080 this.ariaLiveRegion.textContent = message; 25081 } 25082 }, 100); 25083 } 25084 } 25085 /** 25086 * Changes the button text after a specified delay 25087 * @param timeInSeconds The delay in seconds before changing the text 25088 */ 25089 setButtonTextAfterDelay(timeInSeconds) { 25090 this.buttonTextTimeout = window.setTimeout(() => { 25091 if (timeInSeconds > 0) { 25092 this.buttonText = this._buttonTimeoutText.replace("{0}", timeInSeconds.toString()); 25093 this.updateButton(); 25094 if (timeInSeconds % 5 === 0) { 25095 this.announceToScreenReader(this.buttonText); 25096 } 25097 this.setButtonTextAfterDelay(timeInSeconds - 1); 25098 } else { 25099 this.buttonText = this.originalButtonText; 25100 this.updateButton(); 25101 this.announceToScreenReader(this.originalButtonTextAria); 25102 if (this.buttonTextTimeout !== null) { 25103 clearTimeout(this.buttonTextTimeout); 25104 this.buttonTextTimeout = null; 25105 } 25106 } 25107 }, 1e3); 25108 } 25109 handleClick(event) { 25110 event.stopPropagation(); 25111 if (this.buttonTextTimeout !== null) { 25112 return; 25113 } 25114 if (this.abortController) { 25115 this.abortController.abort(); 25116 } 25117 this.abortController = new AbortController(); 25118 decryptValue( 25119 this._encryptedValue, 25120 this.abortController 25121 ).then((decryptedValue) => { 25122 if (typeof decryptedValue === "number") { 25123 if (this.buttonTextTimeout !== null) { 25124 clearTimeout(this.buttonTextTimeout); 25125 this.buttonTextTimeout = null; 25126 } 25127 this.buttonText = this._buttonTimeoutText.replace("{0}", decryptedValue.toString()); 25128 this.updateButton(); 25129 this.announceToScreenReader(this.buttonText); 25130 this.setButtonTextAfterDelay(decryptedValue - 1); 25131 } else { 25132 const parent = this.parentNode; 25133 if (parent) { 25134 const fragment = document.createRange().createContextualFragment(decryptedValue.content); 25135 parent.replaceChild(fragment, this); 25136 } 25137 } 25138 }).catch((error) => { 25139 console.error("Decryption failed:", error); 25140 }).finally(() => { 25141 this.abortController = null; 25142 }); 25143 event.preventDefault(); 25144 } 25145 } 25146 const ContactModalConstructor = ContactModalBridge; 25147 if (typeof window !== "undefined") { 25148 window.AcosSharedComponents = window.AcosSharedComponents || {}; 25149 window.AcosSharedComponents.ContactModalVanillaJs = ContactModalConstructor; 25150 if (typeof customElements !== "undefined") { 25151 if (!customElements.get("contact-modal")) { 25152 customElements.define("contact-modal", ContactModalElement); 25153 } 25154 if (!customElements.get("decrypt-value-button")) {
25155 customElements.define("decrypt-value-button", DecryptValueButton); 25156 } 25157 } 25158 } 25159 exports2.ContactModal = ContactModal; 25160 exports2.ContactModalBridge = ContactModalBridge; 25161 exports2.ContactModalElement = ContactModalElement; 25162 exports2.DecryptValueButton = DecryptValueButton; 25163 Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" }); 25164});
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.