diff --git a/docs/features.test.js b/docs/features.test.js index 327a85f9..145b1682 100644 --- a/docs/features.test.js +++ b/docs/features.test.js @@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge mod )); -// node_modules/graphology/dist/graphology.umd.js +// ../testeranto/node_modules/graphology/dist/graphology.umd.js var require_graphology_umd = __commonJS({ - "node_modules/graphology/dist/graphology.umd.js"(exports, module) { + "../testeranto/node_modules/graphology/dist/graphology.umd.js"(exports, module) { (function(global, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.graphology = factory()); })(exports, function() { @@ -3685,7 +3685,7 @@ var require_graphology_umd = __commonJS({ } }); -// node_modules/testeranto/dist/module/Features.js +// ../testeranto/dist/module/Features.js var import_graphology_umd = __toESM(require_graphology_umd(), 1); var { DirectedGraph, UndirectedGraph } = import_graphology_umd.default; var BaseFeature = class { diff --git a/docs/node/BrowserWebSocketTransport-T7EHS33P.mjs b/docs/node/BrowserWebSocketTransport-VT34BAS5.mjs similarity index 72% rename from docs/node/BrowserWebSocketTransport-T7EHS33P.mjs rename to docs/node/BrowserWebSocketTransport-VT34BAS5.mjs index ab90eaf6..394cdae3 100644 --- a/docs/node/BrowserWebSocketTransport-T7EHS33P.mjs +++ b/docs/node/BrowserWebSocketTransport-VT34BAS5.mjs @@ -1,8 +1,8 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { BrowserWebSocketTransport -} from "./chunk-GF7QN4NN.mjs"; -import "./chunk-4IESOCHA.mjs"; +} from "./chunk-CTKBT5JH.mjs"; +import "./chunk-THMF2HPO.mjs"; export { BrowserWebSocketTransport }; diff --git a/docs/node/NodeWebSocketTransport-DL6OUWEF.mjs b/docs/node/NodeWebSocketTransport-UA4FKYLF.mjs similarity index 62% rename from docs/node/NodeWebSocketTransport-DL6OUWEF.mjs rename to docs/node/NodeWebSocketTransport-UA4FKYLF.mjs index be3a7bce..04b4fb8c 100644 --- a/docs/node/NodeWebSocketTransport-DL6OUWEF.mjs +++ b/docs/node/NodeWebSocketTransport-UA4FKYLF.mjs @@ -1,9 +1,9 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { NodeWebSocketTransport -} from "./chunk-BRBW5YJH.mjs"; -import "./chunk-S5L4ZC6L.mjs"; -import "./chunk-4IESOCHA.mjs"; +} from "./chunk-PJC2V65J.mjs"; +import "./chunk-VDOS7AVZ.mjs"; +import "./chunk-THMF2HPO.mjs"; export { NodeWebSocketTransport }; diff --git a/docs/node/bidi-COHEKL2Q.mjs b/docs/node/bidi-2I2CA3WT.mjs similarity index 97% rename from docs/node/bidi-COHEKL2Q.mjs rename to docs/node/bidi-2I2CA3WT.mjs index ef6cc3f7..1d3d11de 100644 --- a/docs/node/bidi-COHEKL2Q.mjs +++ b/docs/node/bidi-2I2CA3WT.mjs @@ -80,8 +80,8 @@ import { throwIfDetached, throwIfDisposed, timeout -} from "./chunk-6SZJES2S.mjs"; -import "./chunk-S5L4ZC6L.mjs"; +} from "./chunk-RBWPBMY4.mjs"; +import "./chunk-VDOS7AVZ.mjs"; import { __commonJS, __esm, @@ -96,9 +96,9 @@ import { __toCommonJS, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/mitt/dist/mitt.mjs +// ../testeranto/node_modules/mitt/dist/mitt.mjs var mitt_exports = {}; __export(mitt_exports, { default: () => mitt_default @@ -120,14 +120,14 @@ function mitt_default(n) { } }; } var init_mitt = __esm({ - "node_modules/mitt/dist/mitt.mjs"() { + "../testeranto/node_modules/mitt/dist/mitt.mjs"() { init_cjs_shim(); } }); -// node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js var require_EventEmitter = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault = exports && exports.__importDefault || function(mod) { @@ -188,9 +188,9 @@ var require_EventEmitter = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/log.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/log.js var require_log = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/log.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/log.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -206,9 +206,9 @@ var require_log = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js var require_ProcessingQueue = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -270,18 +270,18 @@ var require_ProcessingQueue = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/cdp.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js var require_cdp = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/cdp.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js var require_chromium_bidi = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -361,18 +361,18 @@ var require_chromium_bidi = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js var require_webdriver_bidi = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js var require_ErrorResponse = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -545,27 +545,27 @@ var require_ErrorResponse = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js var require_webdriver_bidi_permissions = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js var require_webdriver_bidi_bluetooth = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/protocol.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js var require_protocol = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/protocol.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -616,9 +616,9 @@ var require_protocol = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js var require_BidiNoOpParser = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -775,9 +775,9 @@ var require_BidiNoOpParser = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js var require_BrowserProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -842,9 +842,9 @@ var require_BrowserProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js var require_CdpProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -890,9 +890,9 @@ var require_CdpProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js var require_BrowsingContextProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -1080,9 +1080,9 @@ var require_BrowsingContextProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/assert.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/assert.js var require_assert = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/assert.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/assert.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -1095,9 +1095,9 @@ var require_assert = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js var require_GraphemeTools = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -1113,9 +1113,9 @@ var require_GraphemeTools = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js var require_InputSource = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -1255,9 +1255,9 @@ var require_InputSource = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js var require_keyUtils = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -1726,9 +1726,9 @@ var require_keyUtils = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js var require_USKeyboardLayout = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -1988,9 +1988,9 @@ var require_USKeyboardLayout = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js var require_ActionDispatcher = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -2652,9 +2652,9 @@ var require_ActionDispatcher = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Mutex.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js var require_Mutex = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Mutex.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -2699,9 +2699,9 @@ var require_Mutex = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js var require_InputState = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -2782,9 +2782,9 @@ var require_InputState = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js var require_InputStateManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -2804,9 +2804,9 @@ var require_InputStateManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js var require_InputProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -2979,9 +2979,9 @@ var require_InputProcessor = __commonJS({ } }); -// node_modules/urlpattern-polyfill/dist/urlpattern.cjs +// ../testeranto/node_modules/urlpattern-polyfill/dist/urlpattern.cjs var require_urlpattern = __commonJS({ - "node_modules/urlpattern-polyfill/dist/urlpattern.cjs"(exports, module) { + "../testeranto/node_modules/urlpattern-polyfill/dist/urlpattern.cjs"(exports, module) { "use strict"; init_cjs_shim(); var M = Object.defineProperty; @@ -3787,9 +3787,9 @@ var require_urlpattern = __commonJS({ } }); -// node_modules/urlpattern-polyfill/index.cjs +// ../testeranto/node_modules/urlpattern-polyfill/index.cjs var require_urlpattern_polyfill = __commonJS({ - "node_modules/urlpattern-polyfill/index.cjs"(exports, module) { + "../testeranto/node_modules/urlpattern-polyfill/index.cjs"(exports, module) { init_cjs_shim(); var { URLPattern } = require_urlpattern(); module.exports = { URLPattern }; @@ -3799,9 +3799,9 @@ var require_urlpattern_polyfill = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js var require_UrlPattern = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -3815,9 +3815,9 @@ var require_UrlPattern = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js var require_NetworkProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4087,9 +4087,9 @@ var require_NetworkProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js var require_PermissionsProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4124,9 +4124,9 @@ var require_PermissionsProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/uuid.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/uuid.js var require_uuid = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/uuid.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/uuid.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4157,9 +4157,9 @@ var require_uuid = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js var require_ChannelProxy = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4380,9 +4380,9 @@ var require_ChannelProxy = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js var require_PreloadScript = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4482,9 +4482,9 @@ var require_PreloadScript = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js var require_ScriptProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4586,9 +4586,9 @@ var require_ScriptProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js var require_SessionProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4692,9 +4692,9 @@ var require_SessionProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Base64.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Base64.js var require_Base64 = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Base64.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Base64.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4708,9 +4708,9 @@ var require_Base64 = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js var require_NetworkUtils = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4956,9 +4956,9 @@ var require_NetworkUtils = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js var require_StorageProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5114,9 +5114,9 @@ var require_StorageProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js var require_OutgoingMessage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5156,9 +5156,9 @@ var require_OutgoingMessage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js var require_CommandProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5349,9 +5349,9 @@ var require_CommandProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js var require_BluetoothProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5395,9 +5395,9 @@ var require_BluetoothProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Deferred.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js var require_Deferred = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Deferred.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5453,9 +5453,9 @@ var require_Deferred = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js var require_unitConversions = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5466,9 +5466,9 @@ var require_unitConversions = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js var require_Realm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5930,9 +5930,9 @@ var require_Realm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js var require_SharedId = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5989,9 +5989,9 @@ var require_SharedId = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js var require_WindowRealm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -6101,9 +6101,9 @@ var require_WindowRealm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js var require_BrowsingContextImpl = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -7356,9 +7356,9 @@ var require_BrowsingContextImpl = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js var require_WorkerRealm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -7416,9 +7416,9 @@ var require_WorkerRealm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js var require_logHelper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -7531,9 +7531,9 @@ var require_logHelper = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js var require_LogManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -7727,9 +7727,9 @@ var require_LogManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js var require_CdpTarget = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -7994,9 +7994,9 @@ var require_CdpTarget = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js var require_CdpTargetManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -8209,9 +8209,9 @@ var require_CdpTargetManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js var require_BrowsingContextStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -8296,9 +8296,9 @@ var require_BrowsingContextStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js var require_NetworkRequest = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -8985,9 +8985,9 @@ var require_NetworkRequest = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js var require_NetworkStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9212,9 +9212,9 @@ var require_NetworkStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js var require_PreloadScriptStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9258,9 +9258,9 @@ var require_PreloadScriptStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js var require_RealmStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9333,9 +9333,9 @@ var require_RealmStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Buffer.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js var require_Buffer = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Buffer.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9369,9 +9369,9 @@ var require_Buffer = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js var require_DefaultMap = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9394,9 +9394,9 @@ var require_DefaultMap = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js var require_DistinctValues = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9426,9 +9426,9 @@ var require_DistinctValues = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js var require_IdWrapper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9451,9 +9451,9 @@ var require_IdWrapper = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js var require_events = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9471,9 +9471,9 @@ var require_events = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js var require_SubscriptionManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9672,9 +9672,9 @@ var require_SubscriptionManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js var require_EventManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js"(exports) { "use strict"; init_cjs_shim(); var _a3; @@ -9884,9 +9884,9 @@ var require_EventManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js var require_BidiServer = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9990,9 +9990,9 @@ var require_BidiServer = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js var require_BidiMapper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -10012,17 +10012,17 @@ var require_BidiMapper = __commonJS({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/bidi.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/bidi.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js init_cjs_shim(); var BidiMapper = __toESM(require_BidiMapper(), 1); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/CDPSession.js init_cjs_shim(); var _detached, _connection, _sessionId; var _BidiCdpSession = class extends CDPSession { @@ -10104,7 +10104,7 @@ _connection = new WeakMap(); _sessionId = new WeakMap(); __publicField(BidiCdpSession, "sessions", /* @__PURE__ */ new Map()); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js var debugProtocolSend = debug("puppeteer:webDriverBiDi:SEND \u25BA"); var debugProtocolReceive = debug("puppeteer:webDriverBiDi:RECV \u25C0"); var BidiConnection = class extends EventEmitter { @@ -10225,7 +10225,7 @@ function isCdpEvent(event) { return event.method.startsWith("cdp."); } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js var bidiServerLogger = (prefix, ...args) => { debug(`bidi:${prefix}`)(args); }; @@ -10348,19 +10348,19 @@ var NoOpTransport = class extends BidiMapper.EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js init_cjs_shim(); var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -10530,7 +10530,7 @@ var Navigation = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js init_cjs_shim(); var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -10805,7 +10805,7 @@ var SharedWorkerRealm = class extends Realm2 { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js init_cjs_shim(); var __runInitializers3 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -11036,7 +11036,7 @@ var Request = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js init_cjs_shim(); var __runInitializers4 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -11172,7 +11172,7 @@ var UserPrompt = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js var __runInitializers5 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11640,7 +11640,7 @@ var BrowsingContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js var __runInitializers6 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11843,13 +11843,13 @@ var UserContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Deserializer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Deserializer.js init_cjs_shim(); var _deserializeNumber, deserializeNumber_fn, _deserializeTuple, deserializeTuple_fn; var BidiDeserializer = class { @@ -11925,7 +11925,7 @@ deserializeTuple_fn = function([serializedKey, serializedValue]) { __privateAdd(BidiDeserializer, _deserializeNumber); __privateAdd(BidiDeserializer, _deserializeTuple); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js init_cjs_shim(); var BidiDialog = class extends Dialog { static from(prompt) { @@ -11945,14 +11945,14 @@ var BidiDialog = class extends Dialog { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js init_cjs_shim(); var Bidi = __toESM(require_protocol(), 1); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/JSHandle.js init_cjs_shim(); var BidiJSHandle = class extends JSHandle { static from(value, realm) { @@ -12014,7 +12014,7 @@ var BidiJSHandle = class extends JSHandle { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js var __runInitializers7 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -12230,7 +12230,7 @@ var BidiElementHandle = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js var __addDisposableResource2 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -12471,10 +12471,10 @@ var ExposeableFunction = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPResponse.js init_cjs_shim(); var __runInitializers8 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -12639,7 +12639,7 @@ var BidiHTTPResponse = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js var _a2; var requests = /* @__PURE__ */ new WeakMap(); var BidiHTTPRequest = class extends HTTPRequest { @@ -12875,10 +12875,10 @@ function getBidiHeaders(rawHeaders) { return headers; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Serializer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Serializer.js init_cjs_shim(); var UnserializableError = class extends Error { }; @@ -12984,7 +12984,7 @@ serializeObject_fn = function(arg) { __privateAdd(BidiSerializer, _serializeNumber); __privateAdd(BidiSerializer, _serializeObject); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js init_cjs_shim(); function createEvaluationError(details) { if (details.exception.type !== "error") { @@ -13022,7 +13022,7 @@ function rewriteNavigationError(message, ms) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js var __addDisposableResource3 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -13320,7 +13320,7 @@ var BidiWorkerRealm = class extends BidiRealm { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/WebWorker.js init_cjs_shim(); var BidiWebWorker = class extends WebWorker { static from(frame, realm) { @@ -13345,7 +13345,7 @@ var BidiWebWorker = class extends WebWorker { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js var __runInitializers9 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -13815,7 +13815,7 @@ function getStackTraceLocations(stackTrace) { return stackTraceLocations; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Input.js init_cjs_shim(); var SourceActionsType; (function(SourceActionsType2) { @@ -14422,7 +14422,7 @@ var BidiTouchscreen = class extends Touchscreen { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js var __esDecorate10 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") @@ -15203,7 +15203,7 @@ function convertCookiesSameSiteCdpToBiDi(sameSite) { return sameSite === "Strict" ? "strict" : sameSite === "Lax" ? "lax" : "none"; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js init_cjs_shim(); var BidiBrowserTarget = class extends Target { #browser; @@ -15331,7 +15331,7 @@ var BidiWorkerTarget = class extends Target { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js var __esDecorate11 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") @@ -15662,10 +15662,10 @@ var BidiBrowserContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js init_cjs_shim(); var __runInitializers12 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -15954,7 +15954,7 @@ var Browser2 = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js var __runInitializers13 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -16134,7 +16134,7 @@ var Session = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js var __esDecorate14 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") diff --git a/docs/node/chunk-CDRQ6FZS.mjs b/docs/node/chunk-3P3QDLUF.mjs similarity index 98% rename from docs/node/chunk-CDRQ6FZS.mjs rename to docs/node/chunk-3P3QDLUF.mjs index f0120323..12d2387a 100644 --- a/docs/node/chunk-CDRQ6FZS.mjs +++ b/docs/node/chunk-3P3QDLUF.mjs @@ -91,13 +91,13 @@ import { timer, validateDialogType, withSourcePuppeteerURLIfNone -} from "./chunk-6SZJES2S.mjs"; +} from "./chunk-RBWPBMY4.mjs"; import { NodeWebSocketTransport -} from "./chunk-BRBW5YJH.mjs"; +} from "./chunk-PJC2V65J.mjs"; import { require_src -} from "./chunk-LE3VN4X4.mjs"; +} from "./chunk-FLSG3ZVV.mjs"; import { __commonJS, __esm, @@ -107,11 +107,11 @@ import { __toCommonJS, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/semver/internal/constants.js +// ../testeranto/node_modules/semver/internal/constants.js var require_constants = __commonJS({ - "node_modules/semver/internal/constants.js"(exports, module) { + "../testeranto/node_modules/semver/internal/constants.js"(exports, module) { init_cjs_shim(); var SEMVER_SPEC_VERSION = "2.0.0"; var MAX_LENGTH = 256; @@ -141,9 +141,9 @@ var require_constants = __commonJS({ } }); -// node_modules/semver/internal/debug.js +// ../testeranto/node_modules/semver/internal/debug.js var require_debug = __commonJS({ - "node_modules/semver/internal/debug.js"(exports, module) { + "../testeranto/node_modules/semver/internal/debug.js"(exports, module) { init_cjs_shim(); var debug5 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { }; @@ -151,9 +151,9 @@ var require_debug = __commonJS({ } }); -// node_modules/semver/internal/re.js +// ../testeranto/node_modules/semver/internal/re.js var require_re = __commonJS({ - "node_modules/semver/internal/re.js"(exports, module) { + "../testeranto/node_modules/semver/internal/re.js"(exports, module) { init_cjs_shim(); var { MAX_SAFE_COMPONENT_LENGTH, @@ -237,9 +237,9 @@ var require_re = __commonJS({ } }); -// node_modules/semver/internal/parse-options.js +// ../testeranto/node_modules/semver/internal/parse-options.js var require_parse_options = __commonJS({ - "node_modules/semver/internal/parse-options.js"(exports, module) { + "../testeranto/node_modules/semver/internal/parse-options.js"(exports, module) { init_cjs_shim(); var looseOption = Object.freeze({ loose: true }); var emptyOpts = Object.freeze({}); @@ -256,9 +256,9 @@ var require_parse_options = __commonJS({ } }); -// node_modules/semver/internal/identifiers.js +// ../testeranto/node_modules/semver/internal/identifiers.js var require_identifiers = __commonJS({ - "node_modules/semver/internal/identifiers.js"(exports, module) { + "../testeranto/node_modules/semver/internal/identifiers.js"(exports, module) { init_cjs_shim(); var numeric = /^[0-9]+$/; var compareIdentifiers = (a, b) => { @@ -278,9 +278,9 @@ var require_identifiers = __commonJS({ } }); -// node_modules/semver/classes/semver.js +// ../testeranto/node_modules/semver/classes/semver.js var require_semver = __commonJS({ - "node_modules/semver/classes/semver.js"(exports, module) { + "../testeranto/node_modules/semver/classes/semver.js"(exports, module) { init_cjs_shim(); var debug5 = require_debug(); var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(); @@ -521,9 +521,9 @@ var require_semver = __commonJS({ } }); -// node_modules/semver/functions/parse.js +// ../testeranto/node_modules/semver/functions/parse.js var require_parse = __commonJS({ - "node_modules/semver/functions/parse.js"(exports, module) { + "../testeranto/node_modules/semver/functions/parse.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var parse = (version, options, throwErrors = false) => { @@ -543,9 +543,9 @@ var require_parse = __commonJS({ } }); -// node_modules/semver/functions/valid.js +// ../testeranto/node_modules/semver/functions/valid.js var require_valid = __commonJS({ - "node_modules/semver/functions/valid.js"(exports, module) { + "../testeranto/node_modules/semver/functions/valid.js"(exports, module) { init_cjs_shim(); var parse = require_parse(); var valid = (version, options) => { @@ -556,9 +556,9 @@ var require_valid = __commonJS({ } }); -// node_modules/semver/functions/clean.js +// ../testeranto/node_modules/semver/functions/clean.js var require_clean = __commonJS({ - "node_modules/semver/functions/clean.js"(exports, module) { + "../testeranto/node_modules/semver/functions/clean.js"(exports, module) { init_cjs_shim(); var parse = require_parse(); var clean = (version, options) => { @@ -569,9 +569,9 @@ var require_clean = __commonJS({ } }); -// node_modules/semver/functions/inc.js +// ../testeranto/node_modules/semver/functions/inc.js var require_inc = __commonJS({ - "node_modules/semver/functions/inc.js"(exports, module) { + "../testeranto/node_modules/semver/functions/inc.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var inc = (version, release, options, identifier, identifierBase) => { @@ -593,9 +593,9 @@ var require_inc = __commonJS({ } }); -// node_modules/semver/functions/diff.js +// ../testeranto/node_modules/semver/functions/diff.js var require_diff = __commonJS({ - "node_modules/semver/functions/diff.js"(exports, module) { + "../testeranto/node_modules/semver/functions/diff.js"(exports, module) { init_cjs_shim(); var parse = require_parse(); var diff = (version1, version2) => { @@ -638,9 +638,9 @@ var require_diff = __commonJS({ } }); -// node_modules/semver/functions/major.js +// ../testeranto/node_modules/semver/functions/major.js var require_major = __commonJS({ - "node_modules/semver/functions/major.js"(exports, module) { + "../testeranto/node_modules/semver/functions/major.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var major = (a, loose) => new SemVer(a, loose).major; @@ -648,9 +648,9 @@ var require_major = __commonJS({ } }); -// node_modules/semver/functions/minor.js +// ../testeranto/node_modules/semver/functions/minor.js var require_minor = __commonJS({ - "node_modules/semver/functions/minor.js"(exports, module) { + "../testeranto/node_modules/semver/functions/minor.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var minor = (a, loose) => new SemVer(a, loose).minor; @@ -658,9 +658,9 @@ var require_minor = __commonJS({ } }); -// node_modules/semver/functions/patch.js +// ../testeranto/node_modules/semver/functions/patch.js var require_patch = __commonJS({ - "node_modules/semver/functions/patch.js"(exports, module) { + "../testeranto/node_modules/semver/functions/patch.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var patch = (a, loose) => new SemVer(a, loose).patch; @@ -668,9 +668,9 @@ var require_patch = __commonJS({ } }); -// node_modules/semver/functions/prerelease.js +// ../testeranto/node_modules/semver/functions/prerelease.js var require_prerelease = __commonJS({ - "node_modules/semver/functions/prerelease.js"(exports, module) { + "../testeranto/node_modules/semver/functions/prerelease.js"(exports, module) { init_cjs_shim(); var parse = require_parse(); var prerelease = (version, options) => { @@ -681,9 +681,9 @@ var require_prerelease = __commonJS({ } }); -// node_modules/semver/functions/compare.js +// ../testeranto/node_modules/semver/functions/compare.js var require_compare = __commonJS({ - "node_modules/semver/functions/compare.js"(exports, module) { + "../testeranto/node_modules/semver/functions/compare.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)); @@ -691,9 +691,9 @@ var require_compare = __commonJS({ } }); -// node_modules/semver/functions/rcompare.js +// ../testeranto/node_modules/semver/functions/rcompare.js var require_rcompare = __commonJS({ - "node_modules/semver/functions/rcompare.js"(exports, module) { + "../testeranto/node_modules/semver/functions/rcompare.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var rcompare = (a, b, loose) => compare(b, a, loose); @@ -701,9 +701,9 @@ var require_rcompare = __commonJS({ } }); -// node_modules/semver/functions/compare-loose.js +// ../testeranto/node_modules/semver/functions/compare-loose.js var require_compare_loose = __commonJS({ - "node_modules/semver/functions/compare-loose.js"(exports, module) { + "../testeranto/node_modules/semver/functions/compare-loose.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var compareLoose = (a, b) => compare(a, b, true); @@ -711,9 +711,9 @@ var require_compare_loose = __commonJS({ } }); -// node_modules/semver/functions/compare-build.js +// ../testeranto/node_modules/semver/functions/compare-build.js var require_compare_build = __commonJS({ - "node_modules/semver/functions/compare-build.js"(exports, module) { + "../testeranto/node_modules/semver/functions/compare-build.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var compareBuild = (a, b, loose) => { @@ -725,9 +725,9 @@ var require_compare_build = __commonJS({ } }); -// node_modules/semver/functions/sort.js +// ../testeranto/node_modules/semver/functions/sort.js var require_sort = __commonJS({ - "node_modules/semver/functions/sort.js"(exports, module) { + "../testeranto/node_modules/semver/functions/sort.js"(exports, module) { init_cjs_shim(); var compareBuild = require_compare_build(); var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)); @@ -735,9 +735,9 @@ var require_sort = __commonJS({ } }); -// node_modules/semver/functions/rsort.js +// ../testeranto/node_modules/semver/functions/rsort.js var require_rsort = __commonJS({ - "node_modules/semver/functions/rsort.js"(exports, module) { + "../testeranto/node_modules/semver/functions/rsort.js"(exports, module) { init_cjs_shim(); var compareBuild = require_compare_build(); var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)); @@ -745,9 +745,9 @@ var require_rsort = __commonJS({ } }); -// node_modules/semver/functions/gt.js +// ../testeranto/node_modules/semver/functions/gt.js var require_gt = __commonJS({ - "node_modules/semver/functions/gt.js"(exports, module) { + "../testeranto/node_modules/semver/functions/gt.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var gt = (a, b, loose) => compare(a, b, loose) > 0; @@ -755,9 +755,9 @@ var require_gt = __commonJS({ } }); -// node_modules/semver/functions/lt.js +// ../testeranto/node_modules/semver/functions/lt.js var require_lt = __commonJS({ - "node_modules/semver/functions/lt.js"(exports, module) { + "../testeranto/node_modules/semver/functions/lt.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var lt = (a, b, loose) => compare(a, b, loose) < 0; @@ -765,9 +765,9 @@ var require_lt = __commonJS({ } }); -// node_modules/semver/functions/eq.js +// ../testeranto/node_modules/semver/functions/eq.js var require_eq = __commonJS({ - "node_modules/semver/functions/eq.js"(exports, module) { + "../testeranto/node_modules/semver/functions/eq.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var eq = (a, b, loose) => compare(a, b, loose) === 0; @@ -775,9 +775,9 @@ var require_eq = __commonJS({ } }); -// node_modules/semver/functions/neq.js +// ../testeranto/node_modules/semver/functions/neq.js var require_neq = __commonJS({ - "node_modules/semver/functions/neq.js"(exports, module) { + "../testeranto/node_modules/semver/functions/neq.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var neq = (a, b, loose) => compare(a, b, loose) !== 0; @@ -785,9 +785,9 @@ var require_neq = __commonJS({ } }); -// node_modules/semver/functions/gte.js +// ../testeranto/node_modules/semver/functions/gte.js var require_gte = __commonJS({ - "node_modules/semver/functions/gte.js"(exports, module) { + "../testeranto/node_modules/semver/functions/gte.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var gte = (a, b, loose) => compare(a, b, loose) >= 0; @@ -795,9 +795,9 @@ var require_gte = __commonJS({ } }); -// node_modules/semver/functions/lte.js +// ../testeranto/node_modules/semver/functions/lte.js var require_lte = __commonJS({ - "node_modules/semver/functions/lte.js"(exports, module) { + "../testeranto/node_modules/semver/functions/lte.js"(exports, module) { init_cjs_shim(); var compare = require_compare(); var lte = (a, b, loose) => compare(a, b, loose) <= 0; @@ -805,9 +805,9 @@ var require_lte = __commonJS({ } }); -// node_modules/semver/functions/cmp.js +// ../testeranto/node_modules/semver/functions/cmp.js var require_cmp = __commonJS({ - "node_modules/semver/functions/cmp.js"(exports, module) { + "../testeranto/node_modules/semver/functions/cmp.js"(exports, module) { init_cjs_shim(); var eq = require_eq(); var neq = require_neq(); @@ -855,9 +855,9 @@ var require_cmp = __commonJS({ } }); -// node_modules/semver/functions/coerce.js +// ../testeranto/node_modules/semver/functions/coerce.js var require_coerce = __commonJS({ - "node_modules/semver/functions/coerce.js"(exports, module) { + "../testeranto/node_modules/semver/functions/coerce.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var parse = require_parse(); @@ -901,9 +901,9 @@ var require_coerce = __commonJS({ } }); -// node_modules/semver/internal/lrucache.js +// ../testeranto/node_modules/semver/internal/lrucache.js var require_lrucache = __commonJS({ - "node_modules/semver/internal/lrucache.js"(exports, module) { + "../testeranto/node_modules/semver/internal/lrucache.js"(exports, module) { init_cjs_shim(); var LRUCache = class { constructor() { @@ -939,9 +939,9 @@ var require_lrucache = __commonJS({ } }); -// node_modules/semver/classes/range.js +// ../testeranto/node_modules/semver/classes/range.js var require_range = __commonJS({ - "node_modules/semver/classes/range.js"(exports, module) { + "../testeranto/node_modules/semver/classes/range.js"(exports, module) { init_cjs_shim(); var SPACE_CHARACTERS = /\s+/g; var Range = class { @@ -1315,9 +1315,9 @@ var require_range = __commonJS({ } }); -// node_modules/semver/classes/comparator.js +// ../testeranto/node_modules/semver/classes/comparator.js var require_comparator = __commonJS({ - "node_modules/semver/classes/comparator.js"(exports, module) { + "../testeranto/node_modules/semver/classes/comparator.js"(exports, module) { init_cjs_shim(); var ANY = Symbol("SemVer ANY"); var Comparator = class { @@ -1428,9 +1428,9 @@ var require_comparator = __commonJS({ } }); -// node_modules/semver/functions/satisfies.js +// ../testeranto/node_modules/semver/functions/satisfies.js var require_satisfies = __commonJS({ - "node_modules/semver/functions/satisfies.js"(exports, module) { + "../testeranto/node_modules/semver/functions/satisfies.js"(exports, module) { init_cjs_shim(); var Range = require_range(); var satisfies = (version, range, options) => { @@ -1445,9 +1445,9 @@ var require_satisfies = __commonJS({ } }); -// node_modules/semver/ranges/to-comparators.js +// ../testeranto/node_modules/semver/ranges/to-comparators.js var require_to_comparators = __commonJS({ - "node_modules/semver/ranges/to-comparators.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/to-comparators.js"(exports, module) { init_cjs_shim(); var Range = require_range(); var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")); @@ -1455,9 +1455,9 @@ var require_to_comparators = __commonJS({ } }); -// node_modules/semver/ranges/max-satisfying.js +// ../testeranto/node_modules/semver/ranges/max-satisfying.js var require_max_satisfying = __commonJS({ - "node_modules/semver/ranges/max-satisfying.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/max-satisfying.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var Range = require_range(); @@ -1484,9 +1484,9 @@ var require_max_satisfying = __commonJS({ } }); -// node_modules/semver/ranges/min-satisfying.js +// ../testeranto/node_modules/semver/ranges/min-satisfying.js var require_min_satisfying = __commonJS({ - "node_modules/semver/ranges/min-satisfying.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/min-satisfying.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var Range = require_range(); @@ -1513,9 +1513,9 @@ var require_min_satisfying = __commonJS({ } }); -// node_modules/semver/ranges/min-version.js +// ../testeranto/node_modules/semver/ranges/min-version.js var require_min_version = __commonJS({ - "node_modules/semver/ranges/min-version.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/min-version.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var Range = require_range(); @@ -1570,9 +1570,9 @@ var require_min_version = __commonJS({ } }); -// node_modules/semver/ranges/valid.js +// ../testeranto/node_modules/semver/ranges/valid.js var require_valid2 = __commonJS({ - "node_modules/semver/ranges/valid.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/valid.js"(exports, module) { init_cjs_shim(); var Range = require_range(); var validRange = (range, options) => { @@ -1586,9 +1586,9 @@ var require_valid2 = __commonJS({ } }); -// node_modules/semver/ranges/outside.js +// ../testeranto/node_modules/semver/ranges/outside.js var require_outside = __commonJS({ - "node_modules/semver/ranges/outside.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/outside.js"(exports, module) { init_cjs_shim(); var SemVer = require_semver(); var Comparator = require_comparator(); @@ -1655,9 +1655,9 @@ var require_outside = __commonJS({ } }); -// node_modules/semver/ranges/gtr.js +// ../testeranto/node_modules/semver/ranges/gtr.js var require_gtr = __commonJS({ - "node_modules/semver/ranges/gtr.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/gtr.js"(exports, module) { init_cjs_shim(); var outside = require_outside(); var gtr = (version, range, options) => outside(version, range, ">", options); @@ -1665,9 +1665,9 @@ var require_gtr = __commonJS({ } }); -// node_modules/semver/ranges/ltr.js +// ../testeranto/node_modules/semver/ranges/ltr.js var require_ltr = __commonJS({ - "node_modules/semver/ranges/ltr.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/ltr.js"(exports, module) { init_cjs_shim(); var outside = require_outside(); var ltr = (version, range, options) => outside(version, range, "<", options); @@ -1675,9 +1675,9 @@ var require_ltr = __commonJS({ } }); -// node_modules/semver/ranges/intersects.js +// ../testeranto/node_modules/semver/ranges/intersects.js var require_intersects = __commonJS({ - "node_modules/semver/ranges/intersects.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/intersects.js"(exports, module) { init_cjs_shim(); var Range = require_range(); var intersects = (r1, r2, options) => { @@ -1689,9 +1689,9 @@ var require_intersects = __commonJS({ } }); -// node_modules/semver/ranges/simplify.js +// ../testeranto/node_modules/semver/ranges/simplify.js var require_simplify = __commonJS({ - "node_modules/semver/ranges/simplify.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/simplify.js"(exports, module) { init_cjs_shim(); var satisfies = require_satisfies(); var compare = require_compare(); @@ -1739,9 +1739,9 @@ var require_simplify = __commonJS({ } }); -// node_modules/semver/ranges/subset.js +// ../testeranto/node_modules/semver/ranges/subset.js var require_subset = __commonJS({ - "node_modules/semver/ranges/subset.js"(exports, module) { + "../testeranto/node_modules/semver/ranges/subset.js"(exports, module) { init_cjs_shim(); var Range = require_range(); var Comparator = require_comparator(); @@ -1902,9 +1902,9 @@ var require_subset = __commonJS({ } }); -// node_modules/semver/index.js +// ../testeranto/node_modules/semver/index.js var require_semver2 = __commonJS({ - "node_modules/semver/index.js"(exports, module) { + "../testeranto/node_modules/semver/index.js"(exports, module) { init_cjs_shim(); var internalRe = require_re(); var constants = require_constants(); @@ -1997,9 +1997,9 @@ var require_semver2 = __commonJS({ } }); -// node_modules/proxy-agent/node_modules/lru-cache/index.js +// ../testeranto/node_modules/proxy-agent/node_modules/lru-cache/index.js var require_lru_cache = __commonJS({ - "node_modules/proxy-agent/node_modules/lru-cache/index.js"(exports, module) { + "../testeranto/node_modules/proxy-agent/node_modules/lru-cache/index.js"(exports, module) { init_cjs_shim(); var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date; var hasAbortController = typeof AbortController === "function"; @@ -3015,9 +3015,9 @@ var require_lru_cache = __commonJS({ } }); -// node_modules/agent-base/dist/helpers.js +// ../testeranto/node_modules/agent-base/dist/helpers.js var require_helpers = __commonJS({ - "node_modules/agent-base/dist/helpers.js"(exports) { + "../testeranto/node_modules/agent-base/dist/helpers.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -3091,9 +3091,9 @@ var require_helpers = __commonJS({ } }); -// node_modules/agent-base/dist/index.js +// ../testeranto/node_modules/agent-base/dist/index.js var require_dist = __commonJS({ - "node_modules/agent-base/dist/index.js"(exports) { + "../testeranto/node_modules/agent-base/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -3251,9 +3251,9 @@ var require_dist = __commonJS({ } }); -// node_modules/proxy-from-env/index.js +// ../testeranto/node_modules/proxy-from-env/index.js var require_proxy_from_env = __commonJS({ - "node_modules/proxy-from-env/index.js"(exports) { + "../testeranto/node_modules/proxy-from-env/index.js"(exports) { "use strict"; init_cjs_shim(); var parseUrl = __require("url").parse; @@ -3322,9 +3322,9 @@ var require_proxy_from_env = __commonJS({ } }); -// node_modules/http-proxy-agent/dist/index.js +// ../testeranto/node_modules/http-proxy-agent/dist/index.js var require_dist2 = __commonJS({ - "node_modules/http-proxy-agent/dist/index.js"(exports) { + "../testeranto/node_modules/http-proxy-agent/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -3458,9 +3458,9 @@ var require_dist2 = __commonJS({ } }); -// node_modules/https-proxy-agent/dist/parse-proxy-response.js +// ../testeranto/node_modules/https-proxy-agent/dist/parse-proxy-response.js var require_parse_proxy_response = __commonJS({ - "node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) { + "../testeranto/node_modules/https-proxy-agent/dist/parse-proxy-response.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -3555,9 +3555,9 @@ var require_parse_proxy_response = __commonJS({ } }); -// node_modules/https-proxy-agent/dist/index.js +// ../testeranto/node_modules/https-proxy-agent/dist/index.js var require_dist3 = __commonJS({ - "node_modules/https-proxy-agent/dist/index.js"(exports) { + "../testeranto/node_modules/https-proxy-agent/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -3708,9 +3708,9 @@ var require_dist3 = __commonJS({ } }); -// node_modules/smart-buffer/build/utils.js +// ../testeranto/node_modules/smart-buffer/build/utils.js var require_utils = __commonJS({ - "node_modules/smart-buffer/build/utils.js"(exports) { + "../testeranto/node_modules/smart-buffer/build/utils.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -3778,9 +3778,9 @@ var require_utils = __commonJS({ } }); -// node_modules/smart-buffer/build/smartbuffer.js +// ../testeranto/node_modules/smart-buffer/build/smartbuffer.js var require_smartbuffer = __commonJS({ - "node_modules/smart-buffer/build/smartbuffer.js"(exports) { + "../testeranto/node_modules/smart-buffer/build/smartbuffer.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -4937,9 +4937,9 @@ var require_smartbuffer = __commonJS({ } }); -// node_modules/socks/build/common/constants.js +// ../testeranto/node_modules/socks/build/common/constants.js var require_constants2 = __commonJS({ - "node_modules/socks/build/common/constants.js"(exports) { + "../testeranto/node_modules/socks/build/common/constants.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5055,9 +5055,9 @@ var require_constants2 = __commonJS({ } }); -// node_modules/socks/build/common/util.js +// ../testeranto/node_modules/socks/build/common/util.js var require_util = __commonJS({ - "node_modules/socks/build/common/util.js"(exports) { + "../testeranto/node_modules/socks/build/common/util.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5079,9 +5079,9 @@ var require_util = __commonJS({ } }); -// node_modules/ip-address/dist/common.js +// ../testeranto/node_modules/ip-address/dist/common.js var require_common = __commonJS({ - "node_modules/ip-address/dist/common.js"(exports) { + "../testeranto/node_modules/ip-address/dist/common.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5111,9 +5111,9 @@ var require_common = __commonJS({ } }); -// node_modules/ip-address/dist/v4/constants.js +// ../testeranto/node_modules/ip-address/dist/v4/constants.js var require_constants3 = __commonJS({ - "node_modules/ip-address/dist/v4/constants.js"(exports) { + "../testeranto/node_modules/ip-address/dist/v4/constants.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5125,9 +5125,9 @@ var require_constants3 = __commonJS({ } }); -// node_modules/ip-address/dist/address-error.js +// ../testeranto/node_modules/ip-address/dist/address-error.js var require_address_error = __commonJS({ - "node_modules/ip-address/dist/address-error.js"(exports) { + "../testeranto/node_modules/ip-address/dist/address-error.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -5145,9 +5145,9 @@ var require_address_error = __commonJS({ } }); -// node_modules/ip-address/node_modules/jsbn/index.js +// ../testeranto/node_modules/jsbn/index.js var require_jsbn = __commonJS({ - "node_modules/ip-address/node_modules/jsbn/index.js"(exports, module) { + "../testeranto/node_modules/jsbn/index.js"(exports, module) { init_cjs_shim(); (function() { var dbits; @@ -6572,9 +6572,9 @@ var require_jsbn = __commonJS({ } }); -// node_modules/sprintf-js/src/sprintf.js +// ../testeranto/node_modules/sprintf-js/src/sprintf.js var require_sprintf = __commonJS({ - "node_modules/sprintf-js/src/sprintf.js"(exports) { + "../testeranto/node_modules/sprintf-js/src/sprintf.js"(exports) { init_cjs_shim(); !function() { "use strict"; @@ -6776,9 +6776,9 @@ var require_sprintf = __commonJS({ } }); -// node_modules/ip-address/dist/ipv4.js +// ../testeranto/node_modules/ip-address/dist/ipv4.js var require_ipv4 = __commonJS({ - "node_modules/ip-address/dist/ipv4.js"(exports) { + "../testeranto/node_modules/ip-address/dist/ipv4.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -7096,9 +7096,9 @@ var require_ipv4 = __commonJS({ } }); -// node_modules/ip-address/dist/v6/constants.js +// ../testeranto/node_modules/ip-address/dist/v6/constants.js var require_constants4 = __commonJS({ - "node_modules/ip-address/dist/v6/constants.js"(exports) { + "../testeranto/node_modules/ip-address/dist/v6/constants.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -7148,9 +7148,9 @@ var require_constants4 = __commonJS({ } }); -// node_modules/ip-address/dist/v6/helpers.js +// ../testeranto/node_modules/ip-address/dist/v6/helpers.js var require_helpers2 = __commonJS({ - "node_modules/ip-address/dist/v6/helpers.js"(exports) { + "../testeranto/node_modules/ip-address/dist/v6/helpers.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -7189,9 +7189,9 @@ var require_helpers2 = __commonJS({ } }); -// node_modules/ip-address/dist/v6/regular-expressions.js +// ../testeranto/node_modules/ip-address/dist/v6/regular-expressions.js var require_regular_expressions = __commonJS({ - "node_modules/ip-address/dist/v6/regular-expressions.js"(exports) { + "../testeranto/node_modules/ip-address/dist/v6/regular-expressions.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -7288,9 +7288,9 @@ var require_regular_expressions = __commonJS({ } }); -// node_modules/ip-address/dist/ipv6.js +// ../testeranto/node_modules/ip-address/dist/ipv6.js var require_ipv6 = __commonJS({ - "node_modules/ip-address/dist/ipv6.js"(exports) { + "../testeranto/node_modules/ip-address/dist/ipv6.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -8204,9 +8204,9 @@ var require_ipv6 = __commonJS({ } }); -// node_modules/ip-address/dist/ip-address.js +// ../testeranto/node_modules/ip-address/dist/ip-address.js var require_ip_address = __commonJS({ - "node_modules/ip-address/dist/ip-address.js"(exports) { + "../testeranto/node_modules/ip-address/dist/ip-address.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -8260,9 +8260,9 @@ var require_ip_address = __commonJS({ } }); -// node_modules/socks/build/common/helpers.js +// ../testeranto/node_modules/socks/build/common/helpers.js var require_helpers3 = __commonJS({ - "node_modules/socks/build/common/helpers.js"(exports) { + "../testeranto/node_modules/socks/build/common/helpers.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -8368,9 +8368,9 @@ var require_helpers3 = __commonJS({ } }); -// node_modules/socks/build/common/receivebuffer.js +// ../testeranto/node_modules/socks/build/common/receivebuffer.js var require_receivebuffer = __commonJS({ - "node_modules/socks/build/common/receivebuffer.js"(exports) { + "../testeranto/node_modules/socks/build/common/receivebuffer.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -8417,9 +8417,9 @@ var require_receivebuffer = __commonJS({ } }); -// node_modules/socks/build/client/socksclient.js +// ../testeranto/node_modules/socks/build/client/socksclient.js var require_socksclient = __commonJS({ - "node_modules/socks/build/client/socksclient.js"(exports) { + "../testeranto/node_modules/socks/build/client/socksclient.js"(exports) { "use strict"; init_cjs_shim(); var __awaiter2 = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { @@ -9097,9 +9097,9 @@ var require_socksclient = __commonJS({ } }); -// node_modules/socks/build/index.js +// ../testeranto/node_modules/socks/build/index.js var require_build = __commonJS({ - "node_modules/socks/build/index.js"(exports) { + "../testeranto/node_modules/socks/build/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -9127,9 +9127,9 @@ var require_build = __commonJS({ } }); -// node_modules/socks-proxy-agent/dist/index.js +// ../testeranto/node_modules/socks-proxy-agent/dist/index.js var require_dist4 = __commonJS({ - "node_modules/socks-proxy-agent/dist/index.js"(exports) { + "../testeranto/node_modules/socks-proxy-agent/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -9316,9 +9316,9 @@ var require_dist4 = __commonJS({ } }); -// node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js +// ../testeranto/node_modules/data-uri-to-buffer/dist/common.js var require_common2 = __commonJS({ - "node_modules/get-uri/node_modules/data-uri-to-buffer/dist/common.js"(exports) { + "../testeranto/node_modules/data-uri-to-buffer/dist/common.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9365,9 +9365,9 @@ var require_common2 = __commonJS({ } }); -// node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js +// ../testeranto/node_modules/data-uri-to-buffer/dist/node.js var require_node = __commonJS({ - "node_modules/get-uri/node_modules/data-uri-to-buffer/dist/node.js"(exports) { + "../testeranto/node_modules/data-uri-to-buffer/dist/node.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9392,9 +9392,9 @@ var require_node = __commonJS({ } }); -// node_modules/get-uri/dist/notmodified.js +// ../testeranto/node_modules/get-uri/dist/notmodified.js var require_notmodified = __commonJS({ - "node_modules/get-uri/dist/notmodified.js"(exports) { + "../testeranto/node_modules/get-uri/dist/notmodified.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -9408,9 +9408,9 @@ var require_notmodified = __commonJS({ } }); -// node_modules/get-uri/dist/data.js +// ../testeranto/node_modules/get-uri/dist/data.js var require_data = __commonJS({ - "node_modules/get-uri/dist/data.js"(exports) { + "../testeranto/node_modules/get-uri/dist/data.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -9450,9 +9450,9 @@ var require_data = __commonJS({ } }); -// node_modules/universalify/index.js +// ../testeranto/node_modules/universalify/index.js var require_universalify = __commonJS({ - "node_modules/universalify/index.js"(exports) { + "../testeranto/node_modules/universalify/index.js"(exports) { "use strict"; init_cjs_shim(); exports.fromCallback = function(fn) { @@ -9481,9 +9481,9 @@ var require_universalify = __commonJS({ } }); -// node_modules/graceful-fs/polyfills.js +// ../testeranto/node_modules/graceful-fs/polyfills.js var require_polyfills = __commonJS({ - "node_modules/graceful-fs/polyfills.js"(exports, module) { + "../testeranto/node_modules/graceful-fs/polyfills.js"(exports, module) { init_cjs_shim(); var constants = __require("constants"); var origCwd = process.cwd; @@ -9798,9 +9798,9 @@ var require_polyfills = __commonJS({ } }); -// node_modules/graceful-fs/legacy-streams.js +// ../testeranto/node_modules/graceful-fs/legacy-streams.js var require_legacy_streams = __commonJS({ - "node_modules/graceful-fs/legacy-streams.js"(exports, module) { + "../testeranto/node_modules/graceful-fs/legacy-streams.js"(exports, module) { init_cjs_shim(); var Stream = __require("stream").Stream; module.exports = legacy; @@ -9898,9 +9898,9 @@ var require_legacy_streams = __commonJS({ } }); -// node_modules/graceful-fs/clone.js +// ../testeranto/node_modules/graceful-fs/clone.js var require_clone = __commonJS({ - "node_modules/graceful-fs/clone.js"(exports, module) { + "../testeranto/node_modules/graceful-fs/clone.js"(exports, module) { "use strict"; init_cjs_shim(); module.exports = clone; @@ -9922,9 +9922,9 @@ var require_clone = __commonJS({ } }); -// node_modules/graceful-fs/graceful-fs.js +// ../testeranto/node_modules/graceful-fs/graceful-fs.js var require_graceful_fs = __commonJS({ - "node_modules/graceful-fs/graceful-fs.js"(exports, module) { + "../testeranto/node_modules/graceful-fs/graceful-fs.js"(exports, module) { init_cjs_shim(); var fs6 = __require("fs"); var polyfills = require_polyfills(); @@ -10293,9 +10293,9 @@ var require_graceful_fs = __commonJS({ } }); -// node_modules/fs-extra/lib/fs/index.js +// ../testeranto/node_modules/fs-extra/lib/fs/index.js var require_fs = __commonJS({ - "node_modules/fs-extra/lib/fs/index.js"(exports) { + "../testeranto/node_modules/fs-extra/lib/fs/index.js"(exports) { "use strict"; init_cjs_shim(); var u = require_universalify().fromCallback; @@ -10410,9 +10410,9 @@ var require_fs = __commonJS({ } }); -// node_modules/fs-extra/lib/mkdirs/utils.js +// ../testeranto/node_modules/fs-extra/lib/mkdirs/utils.js var require_utils2 = __commonJS({ - "node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) { "use strict"; init_cjs_shim(); var path10 = __require("path"); @@ -10429,9 +10429,9 @@ var require_utils2 = __commonJS({ } }); -// node_modules/fs-extra/lib/mkdirs/make-dir.js +// ../testeranto/node_modules/fs-extra/lib/mkdirs/make-dir.js var require_make_dir = __commonJS({ - "node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -10459,9 +10459,9 @@ var require_make_dir = __commonJS({ } }); -// node_modules/fs-extra/lib/mkdirs/index.js +// ../testeranto/node_modules/fs-extra/lib/mkdirs/index.js var require_mkdirs = __commonJS({ - "node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/mkdirs/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -10479,9 +10479,9 @@ var require_mkdirs = __commonJS({ } }); -// node_modules/fs-extra/lib/path-exists/index.js +// ../testeranto/node_modules/fs-extra/lib/path-exists/index.js var require_path_exists = __commonJS({ - "node_modules/fs-extra/lib/path-exists/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/path-exists/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -10496,9 +10496,9 @@ var require_path_exists = __commonJS({ } }); -// node_modules/fs-extra/lib/util/utimes.js +// ../testeranto/node_modules/fs-extra/lib/util/utimes.js var require_utimes = __commonJS({ - "node_modules/fs-extra/lib/util/utimes.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/util/utimes.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -10531,9 +10531,9 @@ var require_utimes = __commonJS({ } }); -// node_modules/fs-extra/lib/util/stat.js +// ../testeranto/node_modules/fs-extra/lib/util/stat.js var require_stat = __commonJS({ - "node_modules/fs-extra/lib/util/stat.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/util/stat.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -10670,9 +10670,9 @@ var require_stat = __commonJS({ } }); -// node_modules/fs-extra/lib/copy/copy.js +// ../testeranto/node_modules/fs-extra/lib/copy/copy.js var require_copy = __commonJS({ - "node_modules/fs-extra/lib/copy/copy.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/copy/copy.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -10804,9 +10804,9 @@ var require_copy = __commonJS({ } }); -// node_modules/fs-extra/lib/copy/copy-sync.js +// ../testeranto/node_modules/fs-extra/lib/copy/copy-sync.js var require_copy_sync = __commonJS({ - "node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_graceful_fs(); @@ -10946,9 +10946,9 @@ var require_copy_sync = __commonJS({ } }); -// node_modules/fs-extra/lib/copy/index.js +// ../testeranto/node_modules/fs-extra/lib/copy/index.js var require_copy2 = __commonJS({ - "node_modules/fs-extra/lib/copy/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/copy/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -10959,9 +10959,9 @@ var require_copy2 = __commonJS({ } }); -// node_modules/fs-extra/lib/remove/index.js +// ../testeranto/node_modules/fs-extra/lib/remove/index.js var require_remove = __commonJS({ - "node_modules/fs-extra/lib/remove/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/remove/index.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_graceful_fs(); @@ -10979,9 +10979,9 @@ var require_remove = __commonJS({ } }); -// node_modules/fs-extra/lib/empty/index.js +// ../testeranto/node_modules/fs-extra/lib/empty/index.js var require_empty = __commonJS({ - "node_modules/fs-extra/lib/empty/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/empty/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11019,9 +11019,9 @@ var require_empty = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/file.js +// ../testeranto/node_modules/fs-extra/lib/ensure/file.js var require_file = __commonJS({ - "node_modules/fs-extra/lib/ensure/file.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/file.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11083,9 +11083,9 @@ var require_file = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/link.js +// ../testeranto/node_modules/fs-extra/lib/ensure/link.js var require_link = __commonJS({ - "node_modules/fs-extra/lib/ensure/link.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/link.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11144,9 +11144,9 @@ var require_link = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/symlink-paths.js +// ../testeranto/node_modules/fs-extra/lib/ensure/symlink-paths.js var require_symlink_paths = __commonJS({ - "node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) { "use strict"; init_cjs_shim(); var path10 = __require("path"); @@ -11220,9 +11220,9 @@ var require_symlink_paths = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/symlink-type.js +// ../testeranto/node_modules/fs-extra/lib/ensure/symlink-type.js var require_symlink_type = __commonJS({ - "node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -11256,9 +11256,9 @@ var require_symlink_type = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/symlink.js +// ../testeranto/node_modules/fs-extra/lib/ensure/symlink.js var require_symlink = __commonJS({ - "node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11321,9 +11321,9 @@ var require_symlink = __commonJS({ } }); -// node_modules/fs-extra/lib/ensure/index.js +// ../testeranto/node_modules/fs-extra/lib/ensure/index.js var require_ensure = __commonJS({ - "node_modules/fs-extra/lib/ensure/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/ensure/index.js"(exports, module) { "use strict"; init_cjs_shim(); var { createFile, createFileSync } = require_file(); @@ -11349,9 +11349,9 @@ var require_ensure = __commonJS({ } }); -// node_modules/fs-extra/node_modules/jsonfile/utils.js +// ../testeranto/node_modules/jsonfile/utils.js var require_utils3 = __commonJS({ - "node_modules/fs-extra/node_modules/jsonfile/utils.js"(exports, module) { + "../testeranto/node_modules/jsonfile/utils.js"(exports, module) { init_cjs_shim(); function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) { const EOF = finalEOL ? EOL : ""; @@ -11367,9 +11367,9 @@ var require_utils3 = __commonJS({ } }); -// node_modules/fs-extra/node_modules/jsonfile/index.js +// ../testeranto/node_modules/jsonfile/index.js var require_jsonfile = __commonJS({ - "node_modules/fs-extra/node_modules/jsonfile/index.js"(exports, module) { + "../testeranto/node_modules/jsonfile/index.js"(exports, module) { init_cjs_shim(); var _fs; try { @@ -11441,9 +11441,9 @@ var require_jsonfile = __commonJS({ } }); -// node_modules/fs-extra/lib/json/jsonfile.js +// ../testeranto/node_modules/fs-extra/lib/json/jsonfile.js var require_jsonfile2 = __commonJS({ - "node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/json/jsonfile.js"(exports, module) { "use strict"; init_cjs_shim(); var jsonFile = require_jsonfile(); @@ -11457,9 +11457,9 @@ var require_jsonfile2 = __commonJS({ } }); -// node_modules/fs-extra/lib/output-file/index.js +// ../testeranto/node_modules/fs-extra/lib/output-file/index.js var require_output_file = __commonJS({ - "node_modules/fs-extra/lib/output-file/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/output-file/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11488,9 +11488,9 @@ var require_output_file = __commonJS({ } }); -// node_modules/fs-extra/lib/json/output-json.js +// ../testeranto/node_modules/fs-extra/lib/json/output-json.js var require_output_json = __commonJS({ - "node_modules/fs-extra/lib/json/output-json.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/json/output-json.js"(exports, module) { "use strict"; init_cjs_shim(); var { stringify } = require_utils3(); @@ -11503,9 +11503,9 @@ var require_output_json = __commonJS({ } }); -// node_modules/fs-extra/lib/json/output-json-sync.js +// ../testeranto/node_modules/fs-extra/lib/json/output-json-sync.js var require_output_json_sync = __commonJS({ - "node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module) { "use strict"; init_cjs_shim(); var { stringify } = require_utils3(); @@ -11518,9 +11518,9 @@ var require_output_json_sync = __commonJS({ } }); -// node_modules/fs-extra/lib/json/index.js +// ../testeranto/node_modules/fs-extra/lib/json/index.js var require_json = __commonJS({ - "node_modules/fs-extra/lib/json/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/json/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11537,9 +11537,9 @@ var require_json = __commonJS({ } }); -// node_modules/fs-extra/lib/move/move.js +// ../testeranto/node_modules/fs-extra/lib/move/move.js var require_move = __commonJS({ - "node_modules/fs-extra/lib/move/move.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/move/move.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_fs(); @@ -11590,9 +11590,9 @@ var require_move = __commonJS({ } }); -// node_modules/fs-extra/lib/move/move-sync.js +// ../testeranto/node_modules/fs-extra/lib/move/move-sync.js var require_move_sync = __commonJS({ - "node_modules/fs-extra/lib/move/move-sync.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/move/move-sync.js"(exports, module) { "use strict"; init_cjs_shim(); var fs6 = require_graceful_fs(); @@ -11648,9 +11648,9 @@ var require_move_sync = __commonJS({ } }); -// node_modules/fs-extra/lib/move/index.js +// ../testeranto/node_modules/fs-extra/lib/move/index.js var require_move2 = __commonJS({ - "node_modules/fs-extra/lib/move/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/move/index.js"(exports, module) { "use strict"; init_cjs_shim(); var u = require_universalify().fromPromise; @@ -11661,9 +11661,9 @@ var require_move2 = __commonJS({ } }); -// node_modules/fs-extra/lib/index.js +// ../testeranto/node_modules/fs-extra/lib/index.js var require_lib = __commonJS({ - "node_modules/fs-extra/lib/index.js"(exports, module) { + "../testeranto/node_modules/fs-extra/lib/index.js"(exports, module) { "use strict"; init_cjs_shim(); module.exports = { @@ -11683,9 +11683,9 @@ var require_lib = __commonJS({ } }); -// node_modules/get-uri/dist/notfound.js +// ../testeranto/node_modules/get-uri/dist/notfound.js var require_notfound = __commonJS({ - "node_modules/get-uri/dist/notfound.js"(exports) { + "../testeranto/node_modules/get-uri/dist/notfound.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -11699,9 +11699,9 @@ var require_notfound = __commonJS({ } }); -// node_modules/get-uri/dist/file.js +// ../testeranto/node_modules/get-uri/dist/file.js var require_file2 = __commonJS({ - "node_modules/get-uri/dist/file.js"(exports) { + "../testeranto/node_modules/get-uri/dist/file.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -11752,9 +11752,9 @@ var require_file2 = __commonJS({ } }); -// node_modules/basic-ftp/dist/parseControlResponse.js +// ../testeranto/node_modules/basic-ftp/dist/parseControlResponse.js var require_parseControlResponse = __commonJS({ - "node_modules/basic-ftp/dist/parseControlResponse.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/parseControlResponse.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -11806,9 +11806,9 @@ var require_parseControlResponse = __commonJS({ } }); -// node_modules/basic-ftp/dist/FtpContext.js +// ../testeranto/node_modules/basic-ftp/dist/FtpContext.js var require_FtpContext = __commonJS({ - "node_modules/basic-ftp/dist/FtpContext.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/FtpContext.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12124,9 +12124,9 @@ Closing reason: ${this._closingError.stack}`; } }); -// node_modules/basic-ftp/dist/FileInfo.js +// ../testeranto/node_modules/basic-ftp/dist/FileInfo.js var require_FileInfo = __commonJS({ - "node_modules/basic-ftp/dist/FileInfo.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/FileInfo.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12182,9 +12182,9 @@ var require_FileInfo = __commonJS({ } }); -// node_modules/basic-ftp/dist/parseListDOS.js +// ../testeranto/node_modules/basic-ftp/dist/parseListDOS.js var require_parseListDOS = __commonJS({ - "node_modules/basic-ftp/dist/parseListDOS.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/parseListDOS.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12227,9 +12227,9 @@ var require_parseListDOS = __commonJS({ } }); -// node_modules/basic-ftp/dist/parseListUnix.js +// ../testeranto/node_modules/basic-ftp/dist/parseListUnix.js var require_parseListUnix = __commonJS({ - "node_modules/basic-ftp/dist/parseListUnix.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/parseListUnix.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12315,9 +12315,9 @@ var require_parseListUnix = __commonJS({ } }); -// node_modules/basic-ftp/dist/parseListMLSD.js +// ../testeranto/node_modules/basic-ftp/dist/parseListMLSD.js var require_parseListMLSD = __commonJS({ - "node_modules/basic-ftp/dist/parseListMLSD.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/parseListMLSD.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12480,9 +12480,9 @@ var require_parseListMLSD = __commonJS({ } }); -// node_modules/basic-ftp/dist/parseList.js +// ../testeranto/node_modules/basic-ftp/dist/parseList.js var require_parseList = __commonJS({ - "node_modules/basic-ftp/dist/parseList.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/parseList.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -12555,9 +12555,9 @@ var require_parseList = __commonJS({ } }); -// node_modules/basic-ftp/dist/ProgressTracker.js +// ../testeranto/node_modules/basic-ftp/dist/ProgressTracker.js var require_ProgressTracker = __commonJS({ - "node_modules/basic-ftp/dist/ProgressTracker.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/ProgressTracker.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12627,9 +12627,9 @@ var require_ProgressTracker = __commonJS({ } }); -// node_modules/basic-ftp/dist/StringWriter.js +// ../testeranto/node_modules/basic-ftp/dist/StringWriter.js var require_StringWriter = __commonJS({ - "node_modules/basic-ftp/dist/StringWriter.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/StringWriter.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12656,9 +12656,9 @@ var require_StringWriter = __commonJS({ } }); -// node_modules/basic-ftp/dist/netUtils.js +// ../testeranto/node_modules/basic-ftp/dist/netUtils.js var require_netUtils = __commonJS({ - "node_modules/basic-ftp/dist/netUtils.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/netUtils.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12709,9 +12709,9 @@ var require_netUtils = __commonJS({ } }); -// node_modules/basic-ftp/dist/transfer.js +// ../testeranto/node_modules/basic-ftp/dist/transfer.js var require_transfer = __commonJS({ - "node_modules/basic-ftp/dist/transfer.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/transfer.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -12949,9 +12949,9 @@ var require_transfer = __commonJS({ } }); -// node_modules/basic-ftp/dist/Client.js +// ../testeranto/node_modules/basic-ftp/dist/Client.js var require_Client = __commonJS({ - "node_modules/basic-ftp/dist/Client.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/Client.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -13671,18 +13671,18 @@ var require_Client = __commonJS({ } }); -// node_modules/basic-ftp/dist/StringEncoding.js +// ../testeranto/node_modules/basic-ftp/dist/StringEncoding.js var require_StringEncoding = __commonJS({ - "node_modules/basic-ftp/dist/StringEncoding.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/StringEncoding.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/basic-ftp/dist/index.js +// ../testeranto/node_modules/basic-ftp/dist/index.js var require_dist5 = __commonJS({ - "node_modules/basic-ftp/dist/index.js"(exports) { + "../testeranto/node_modules/basic-ftp/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -13722,9 +13722,9 @@ var require_dist5 = __commonJS({ } }); -// node_modules/get-uri/dist/ftp.js +// ../testeranto/node_modules/get-uri/dist/ftp.js var require_ftp = __commonJS({ - "node_modules/get-uri/dist/ftp.js"(exports) { + "../testeranto/node_modules/get-uri/dist/ftp.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -13804,9 +13804,9 @@ var require_ftp = __commonJS({ } }); -// node_modules/get-uri/dist/http-error.js +// ../testeranto/node_modules/get-uri/dist/http-error.js var require_http_error = __commonJS({ - "node_modules/get-uri/dist/http-error.js"(exports) { + "../testeranto/node_modules/get-uri/dist/http-error.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -13822,9 +13822,9 @@ var require_http_error = __commonJS({ } }); -// node_modules/get-uri/dist/http.js +// ../testeranto/node_modules/get-uri/dist/http.js var require_http = __commonJS({ - "node_modules/get-uri/dist/http.js"(exports) { + "../testeranto/node_modules/get-uri/dist/http.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -13976,9 +13976,9 @@ var require_http = __commonJS({ } }); -// node_modules/get-uri/dist/https.js +// ../testeranto/node_modules/get-uri/dist/https.js var require_https = __commonJS({ - "node_modules/get-uri/dist/https.js"(exports) { + "../testeranto/node_modules/get-uri/dist/https.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -13995,9 +13995,9 @@ var require_https = __commonJS({ } }); -// node_modules/get-uri/dist/index.js +// ../testeranto/node_modules/get-uri/dist/index.js var require_dist6 = __commonJS({ - "node_modules/get-uri/dist/index.js"(exports) { + "../testeranto/node_modules/get-uri/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -14041,9 +14041,9 @@ var require_dist6 = __commonJS({ } }); -// node_modules/estraverse/estraverse.js +// ../testeranto/node_modules/estraverse/estraverse.js var require_estraverse = __commonJS({ - "node_modules/estraverse/estraverse.js"(exports) { + "../testeranto/node_modules/estraverse/estraverse.js"(exports) { init_cjs_shim(); (function clone(exports2) { "use strict"; @@ -14658,9 +14658,9 @@ var require_estraverse = __commonJS({ } }); -// node_modules/esutils/lib/ast.js +// ../testeranto/node_modules/esutils/lib/ast.js var require_ast = __commonJS({ - "node_modules/esutils/lib/ast.js"(exports, module) { + "../testeranto/node_modules/esutils/lib/ast.js"(exports, module) { init_cjs_shim(); (function() { "use strict"; @@ -14779,9 +14779,9 @@ var require_ast = __commonJS({ } }); -// node_modules/esutils/lib/code.js +// ../testeranto/node_modules/esutils/lib/code.js var require_code = __commonJS({ - "node_modules/esutils/lib/code.js"(exports, module) { + "../testeranto/node_modules/esutils/lib/code.js"(exports, module) { init_cjs_shim(); (function() { "use strict"; @@ -14881,9 +14881,9 @@ var require_code = __commonJS({ } }); -// node_modules/esutils/lib/keyword.js +// ../testeranto/node_modules/esutils/lib/keyword.js var require_keyword = __commonJS({ - "node_modules/esutils/lib/keyword.js"(exports, module) { + "../testeranto/node_modules/esutils/lib/keyword.js"(exports, module) { init_cjs_shim(); (function() { "use strict"; @@ -15010,9 +15010,9 @@ var require_keyword = __commonJS({ } }); -// node_modules/esutils/lib/utils.js +// ../testeranto/node_modules/esutils/lib/utils.js var require_utils4 = __commonJS({ - "node_modules/esutils/lib/utils.js"(exports) { + "../testeranto/node_modules/esutils/lib/utils.js"(exports) { init_cjs_shim(); (function() { "use strict"; @@ -15023,9 +15023,9 @@ var require_utils4 = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/base64.js +// ../testeranto/node_modules/source-map/lib/base64.js var require_base64 = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/base64.js"(exports) { + "../testeranto/node_modules/source-map/lib/base64.js"(exports) { init_cjs_shim(); var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); exports.encode = function(number) { @@ -15065,9 +15065,9 @@ var require_base64 = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js +// ../testeranto/node_modules/source-map/lib/base64-vlq.js var require_base64_vlq = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(exports) { + "../testeranto/node_modules/source-map/lib/base64-vlq.js"(exports) { init_cjs_shim(); var base64 = require_base64(); var VLQ_BASE_SHIFT = 5; @@ -15120,9 +15120,9 @@ var require_base64_vlq = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/util.js +// ../testeranto/node_modules/source-map/lib/util.js var require_util2 = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/util.js"(exports) { + "../testeranto/node_modules/source-map/lib/util.js"(exports) { init_cjs_shim(); function getArg(aArgs, aName, aDefaultValue) { if (aName in aArgs) { @@ -15422,9 +15422,9 @@ var require_util2 = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/array-set.js +// ../testeranto/node_modules/source-map/lib/array-set.js var require_array_set = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/array-set.js"(exports) { + "../testeranto/node_modules/source-map/lib/array-set.js"(exports) { init_cjs_shim(); var util = require_util2(); var has = Object.prototype.hasOwnProperty; @@ -15493,9 +15493,9 @@ var require_array_set = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/mapping-list.js +// ../testeranto/node_modules/source-map/lib/mapping-list.js var require_mapping_list = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(exports) { + "../testeranto/node_modules/source-map/lib/mapping-list.js"(exports) { init_cjs_shim(); var util = require_util2(); function generatedPositionAfter(mappingA, mappingB) { @@ -15533,9 +15533,9 @@ var require_mapping_list = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js +// ../testeranto/node_modules/source-map/lib/source-map-generator.js var require_source_map_generator = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(exports) { + "../testeranto/node_modules/source-map/lib/source-map-generator.js"(exports) { init_cjs_shim(); var base64VLQ = require_base64_vlq(); var util = require_util2(); @@ -15810,9 +15810,9 @@ var require_source_map_generator = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/binary-search.js +// ../testeranto/node_modules/source-map/lib/binary-search.js var require_binary_search = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(exports) { + "../testeranto/node_modules/source-map/lib/binary-search.js"(exports) { init_cjs_shim(); exports.GREATEST_LOWER_BOUND = 1; exports.LEAST_UPPER_BOUND = 2; @@ -15867,9 +15867,9 @@ var require_binary_search = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/quick-sort.js +// ../testeranto/node_modules/source-map/lib/quick-sort.js var require_quick_sort = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(exports) { + "../testeranto/node_modules/source-map/lib/quick-sort.js"(exports) { init_cjs_shim(); function swap(ary, x, y) { var temp = ary[x]; @@ -15903,9 +15903,9 @@ var require_quick_sort = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js +// ../testeranto/node_modules/source-map/lib/source-map-consumer.js var require_source_map_consumer = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(exports) { + "../testeranto/node_modules/source-map/lib/source-map-consumer.js"(exports) { init_cjs_shim(); var util = require_util2(); var binarySearch = require_binary_search(); @@ -16505,9 +16505,9 @@ var require_source_map_consumer = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/lib/source-node.js +// ../testeranto/node_modules/source-map/lib/source-node.js var require_source_node = __commonJS({ - "node_modules/escodegen/node_modules/source-map/lib/source-node.js"(exports) { + "../testeranto/node_modules/source-map/lib/source-node.js"(exports) { init_cjs_shim(); var SourceMapGenerator = require_source_map_generator().SourceMapGenerator; var util = require_util2(); @@ -16772,9 +16772,9 @@ var require_source_node = __commonJS({ } }); -// node_modules/escodegen/node_modules/source-map/source-map.js +// ../testeranto/node_modules/source-map/source-map.js var require_source_map = __commonJS({ - "node_modules/escodegen/node_modules/source-map/source-map.js"(exports) { + "../testeranto/node_modules/source-map/source-map.js"(exports) { init_cjs_shim(); exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator; exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer; @@ -16782,9 +16782,9 @@ var require_source_map = __commonJS({ } }); -// node_modules/escodegen/package.json +// ../testeranto/node_modules/escodegen/package.json var require_package = __commonJS({ - "node_modules/escodegen/package.json"(exports, module) { + "../testeranto/node_modules/escodegen/package.json"(exports, module) { module.exports = { name: "escodegen", description: "ECMAScript code generator", @@ -16851,9 +16851,9 @@ var require_package = __commonJS({ } }); -// node_modules/escodegen/escodegen.js +// ../testeranto/node_modules/escodegen/escodegen.js var require_escodegen = __commonJS({ - "node_modules/escodegen/escodegen.js"(exports) { + "../testeranto/node_modules/escodegen/escodegen.js"(exports) { init_cjs_shim(); (function() { "use strict"; @@ -18936,9 +18936,9 @@ var require_escodegen = __commonJS({ } }); -// node_modules/esprima/dist/esprima.js +// ../testeranto/node_modules/esprima/dist/esprima.js var require_esprima = __commonJS({ - "node_modules/esprima/dist/esprima.js"(exports, module) { + "../testeranto/node_modules/esprima/dist/esprima.js"(exports, module) { init_cjs_shim(); (function webpackUniversalModuleDefinition(root, factory) { if (typeof exports === "object" && typeof module === "object") @@ -25173,7 +25173,7 @@ var require_esprima = __commonJS({ } }); -// node_modules/tslib/tslib.es6.mjs +// ../testeranto/node_modules/tslib/tslib.es6.mjs var tslib_es6_exports = {}; __export(tslib_es6_exports, { __addDisposableResource: () => __addDisposableResource5, @@ -25674,7 +25674,7 @@ function __rewriteRelativeImportExtension(path10, preserveJsx) { } var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default; var init_tslib_es6 = __esm({ - "node_modules/tslib/tslib.es6.mjs"() { + "../testeranto/node_modules/tslib/tslib.es6.mjs"() { init_cjs_shim(); extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { @@ -25769,9 +25769,9 @@ var init_tslib_es6 = __esm({ } }); -// node_modules/ast-types/lib/types.js +// ../testeranto/node_modules/ast-types/lib/types.js var require_types = __commonJS({ - "node_modules/ast-types/lib/types.js"(exports) { + "../testeranto/node_modules/ast-types/lib/types.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -26455,9 +26455,9 @@ var require_types = __commonJS({ } }); -// node_modules/ast-types/lib/path.js +// ../testeranto/node_modules/ast-types/lib/path.js var require_path = __commonJS({ - "node_modules/ast-types/lib/path.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/path.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -26759,9 +26759,9 @@ var require_path = __commonJS({ } }); -// node_modules/ast-types/lib/scope.js +// ../testeranto/node_modules/ast-types/lib/scope.js var require_scope = __commonJS({ - "node_modules/ast-types/lib/scope.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/scope.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27022,9 +27022,9 @@ var require_scope = __commonJS({ } }); -// node_modules/ast-types/lib/node-path.js +// ../testeranto/node_modules/ast-types/lib/node-path.js var require_node_path = __commonJS({ - "node_modules/ast-types/lib/node-path.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/node-path.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27378,9 +27378,9 @@ var require_node_path = __commonJS({ } }); -// node_modules/ast-types/lib/path-visitor.js +// ../testeranto/node_modules/ast-types/lib/path-visitor.js var require_path_visitor = __commonJS({ - "node_modules/ast-types/lib/path-visitor.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/path-visitor.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27673,9 +27673,9 @@ var require_path_visitor = __commonJS({ } }); -// node_modules/ast-types/lib/equiv.js +// ../testeranto/node_modules/ast-types/lib/equiv.js var require_equiv = __commonJS({ - "node_modules/ast-types/lib/equiv.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/equiv.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27825,9 +27825,9 @@ var require_equiv = __commonJS({ } }); -// node_modules/ast-types/fork.js +// ../testeranto/node_modules/ast-types/fork.js var require_fork = __commonJS({ - "node_modules/ast-types/fork.js"(exports, module) { + "../testeranto/node_modules/ast-types/fork.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27884,9 +27884,9 @@ var require_fork = __commonJS({ } }); -// node_modules/ast-types/lib/shared.js +// ../testeranto/node_modules/ast-types/lib/shared.js var require_shared = __commonJS({ - "node_modules/ast-types/lib/shared.js"(exports, module) { + "../testeranto/node_modules/ast-types/lib/shared.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -27946,9 +27946,9 @@ var require_shared = __commonJS({ } }); -// node_modules/ast-types/def/core.js +// ../testeranto/node_modules/ast-types/def/core.js var require_core = __commonJS({ - "node_modules/ast-types/def/core.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/core.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28077,9 +28077,9 @@ var require_core = __commonJS({ } }); -// node_modules/ast-types/def/es6.js +// ../testeranto/node_modules/ast-types/def/es6.js var require_es6 = __commonJS({ - "node_modules/ast-types/def/es6.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/es6.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28143,9 +28143,9 @@ var require_es6 = __commonJS({ } }); -// node_modules/ast-types/def/es7.js +// ../testeranto/node_modules/ast-types/def/es7.js var require_es7 = __commonJS({ - "node_modules/ast-types/def/es7.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/es7.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28171,9 +28171,9 @@ var require_es7 = __commonJS({ } }); -// node_modules/ast-types/def/es2020.js +// ../testeranto/node_modules/ast-types/def/es2020.js var require_es2020 = __commonJS({ - "node_modules/ast-types/def/es2020.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/es2020.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28191,9 +28191,9 @@ var require_es2020 = __commonJS({ } }); -// node_modules/ast-types/def/jsx.js +// ../testeranto/node_modules/ast-types/def/jsx.js var require_jsx = __commonJS({ - "node_modules/ast-types/def/jsx.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/jsx.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28257,9 +28257,9 @@ var require_jsx = __commonJS({ } }); -// node_modules/ast-types/def/type-annotations.js +// ../testeranto/node_modules/ast-types/def/type-annotations.js var require_type_annotations = __commonJS({ - "node_modules/ast-types/def/type-annotations.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/type-annotations.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28289,9 +28289,9 @@ var require_type_annotations = __commonJS({ } }); -// node_modules/ast-types/def/flow.js +// ../testeranto/node_modules/ast-types/def/flow.js var require_flow = __commonJS({ - "node_modules/ast-types/def/flow.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/flow.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28386,9 +28386,9 @@ var require_flow = __commonJS({ } }); -// node_modules/ast-types/def/esprima.js +// ../testeranto/node_modules/ast-types/def/esprima.js var require_esprima2 = __commonJS({ - "node_modules/ast-types/def/esprima.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/esprima.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28446,9 +28446,9 @@ var require_esprima2 = __commonJS({ } }); -// node_modules/ast-types/def/babel-core.js +// ../testeranto/node_modules/ast-types/def/babel-core.js var require_babel_core = __commonJS({ - "node_modules/ast-types/def/babel-core.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/babel-core.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28571,9 +28571,9 @@ var require_babel_core = __commonJS({ } }); -// node_modules/ast-types/def/babel.js +// ../testeranto/node_modules/ast-types/def/babel.js var require_babel = __commonJS({ - "node_modules/ast-types/def/babel.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/babel.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28589,9 +28589,9 @@ var require_babel = __commonJS({ } }); -// node_modules/ast-types/def/typescript.js +// ../testeranto/node_modules/ast-types/def/typescript.js var require_typescript = __commonJS({ - "node_modules/ast-types/def/typescript.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/typescript.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28749,9 +28749,9 @@ var require_typescript = __commonJS({ } }); -// node_modules/ast-types/def/es-proposals.js +// ../testeranto/node_modules/ast-types/def/es-proposals.js var require_es_proposals = __commonJS({ - "node_modules/ast-types/def/es-proposals.js"(exports, module) { + "../testeranto/node_modules/ast-types/def/es-proposals.js"(exports, module) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28777,9 +28777,9 @@ var require_es_proposals = __commonJS({ } }); -// node_modules/ast-types/gen/namedTypes.js +// ../testeranto/node_modules/ast-types/gen/namedTypes.js var require_namedTypes = __commonJS({ - "node_modules/ast-types/gen/namedTypes.js"(exports) { + "../testeranto/node_modules/ast-types/gen/namedTypes.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28790,9 +28790,9 @@ var require_namedTypes = __commonJS({ } }); -// node_modules/ast-types/main.js +// ../testeranto/node_modules/ast-types/main.js var require_main = __commonJS({ - "node_modules/ast-types/main.js"(exports) { + "../testeranto/node_modules/ast-types/main.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28868,9 +28868,9 @@ var require_main = __commonJS({ } }); -// node_modules/degenerator/dist/degenerator.js +// ../testeranto/node_modules/degenerator/dist/degenerator.js var require_degenerator = __commonJS({ - "node_modules/degenerator/dist/degenerator.js"(exports) { + "../testeranto/node_modules/degenerator/dist/degenerator.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -28984,9 +28984,9 @@ var require_degenerator = __commonJS({ } }); -// node_modules/degenerator/dist/compile.js +// ../testeranto/node_modules/degenerator/dist/compile.js var require_compile = __commonJS({ - "node_modules/degenerator/dist/compile.js"(exports) { + "../testeranto/node_modules/degenerator/dist/compile.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29080,9 +29080,9 @@ ${err.cause.stack}`; } }); -// node_modules/degenerator/dist/index.js +// ../testeranto/node_modules/degenerator/dist/index.js var require_dist7 = __commonJS({ - "node_modules/degenerator/dist/index.js"(exports) { + "../testeranto/node_modules/degenerator/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -29111,9 +29111,9 @@ var require_dist7 = __commonJS({ } }); -// node_modules/pac-resolver/dist/dateRange.js +// ../testeranto/node_modules/pac-resolver/dist/dateRange.js var require_dateRange = __commonJS({ - "node_modules/pac-resolver/dist/dateRange.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/dateRange.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29124,9 +29124,9 @@ var require_dateRange = __commonJS({ } }); -// node_modules/pac-resolver/dist/dnsDomainIs.js +// ../testeranto/node_modules/pac-resolver/dist/dnsDomainIs.js var require_dnsDomainIs = __commonJS({ - "node_modules/pac-resolver/dist/dnsDomainIs.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/dnsDomainIs.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29139,9 +29139,9 @@ var require_dnsDomainIs = __commonJS({ } }); -// node_modules/pac-resolver/dist/dnsDomainLevels.js +// ../testeranto/node_modules/pac-resolver/dist/dnsDomainLevels.js var require_dnsDomainLevels = __commonJS({ - "node_modules/pac-resolver/dist/dnsDomainLevels.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/dnsDomainLevels.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29157,9 +29157,9 @@ var require_dnsDomainLevels = __commonJS({ } }); -// node_modules/pac-resolver/dist/util.js +// ../testeranto/node_modules/pac-resolver/dist/util.js var require_util3 = __commonJS({ - "node_modules/pac-resolver/dist/util.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/util.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29184,9 +29184,9 @@ var require_util3 = __commonJS({ } }); -// node_modules/pac-resolver/dist/dnsResolve.js +// ../testeranto/node_modules/pac-resolver/dist/dnsResolve.js var require_dnsResolve = __commonJS({ - "node_modules/pac-resolver/dist/dnsResolve.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/dnsResolve.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29206,9 +29206,9 @@ var require_dnsResolve = __commonJS({ } }); -// node_modules/netmask/lib/netmask.js +// ../testeranto/node_modules/netmask/lib/netmask.js var require_netmask = __commonJS({ - "node_modules/netmask/lib/netmask.js"(exports) { + "../testeranto/node_modules/netmask/lib/netmask.js"(exports) { init_cjs_shim(); (function() { var Netmask, atob2, chr, chr0, chrA, chra, ip2long, long2ip; @@ -29402,9 +29402,9 @@ var require_netmask = __commonJS({ } }); -// node_modules/pac-resolver/dist/isInNet.js +// ../testeranto/node_modules/pac-resolver/dist/isInNet.js var require_isInNet = __commonJS({ - "node_modules/pac-resolver/dist/isInNet.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/isInNet.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29426,9 +29426,9 @@ var require_isInNet = __commonJS({ } }); -// node_modules/pac-resolver/dist/isPlainHostName.js +// ../testeranto/node_modules/pac-resolver/dist/isPlainHostName.js var require_isPlainHostName = __commonJS({ - "node_modules/pac-resolver/dist/isPlainHostName.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/isPlainHostName.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29439,9 +29439,9 @@ var require_isPlainHostName = __commonJS({ } }); -// node_modules/pac-resolver/dist/isResolvable.js +// ../testeranto/node_modules/pac-resolver/dist/isResolvable.js var require_isResolvable = __commonJS({ - "node_modules/pac-resolver/dist/isResolvable.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/isResolvable.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29460,9 +29460,9 @@ var require_isResolvable = __commonJS({ } }); -// node_modules/pac-resolver/dist/localHostOrDomainIs.js +// ../testeranto/node_modules/pac-resolver/dist/localHostOrDomainIs.js var require_localHostOrDomainIs = __commonJS({ - "node_modules/pac-resolver/dist/localHostOrDomainIs.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/localHostOrDomainIs.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29482,9 +29482,9 @@ var require_localHostOrDomainIs = __commonJS({ } }); -// node_modules/pac-resolver/dist/ip.js +// ../testeranto/node_modules/pac-resolver/dist/ip.js var require_ip = __commonJS({ - "node_modules/pac-resolver/dist/ip.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/ip.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -29532,9 +29532,9 @@ var require_ip = __commonJS({ } }); -// node_modules/pac-resolver/dist/myIpAddress.js +// ../testeranto/node_modules/pac-resolver/dist/myIpAddress.js var require_myIpAddress = __commonJS({ - "node_modules/pac-resolver/dist/myIpAddress.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/myIpAddress.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -29568,9 +29568,9 @@ var require_myIpAddress = __commonJS({ } }); -// node_modules/pac-resolver/dist/shExpMatch.js +// ../testeranto/node_modules/pac-resolver/dist/shExpMatch.js var require_shExpMatch = __commonJS({ - "node_modules/pac-resolver/dist/shExpMatch.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/shExpMatch.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29586,9 +29586,9 @@ var require_shExpMatch = __commonJS({ } }); -// node_modules/pac-resolver/dist/timeRange.js +// ../testeranto/node_modules/pac-resolver/dist/timeRange.js var require_timeRange = __commonJS({ - "node_modules/pac-resolver/dist/timeRange.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/timeRange.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29634,9 +29634,9 @@ var require_timeRange = __commonJS({ } }); -// node_modules/pac-resolver/dist/weekdayRange.js +// ../testeranto/node_modules/pac-resolver/dist/weekdayRange.js var require_weekdayRange = __commonJS({ - "node_modules/pac-resolver/dist/weekdayRange.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/weekdayRange.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29683,9 +29683,9 @@ var require_weekdayRange = __commonJS({ } }); -// node_modules/pac-resolver/dist/index.js +// ../testeranto/node_modules/pac-resolver/dist/index.js var require_dist8 = __commonJS({ - "node_modules/pac-resolver/dist/index.js"(exports) { + "../testeranto/node_modules/pac-resolver/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __importDefault2 = exports && exports.__importDefault || function(mod) { @@ -29762,9 +29762,9 @@ var require_dist8 = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js var require_esmHelpers = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29781,9 +29781,9 @@ var require_esmHelpers = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js var require_debug2 = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/debug.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29794,9 +29794,9 @@ var require_debug2 = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js var require_errors = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/errors.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29855,9 +29855,9 @@ var require_errors = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js var require_asyncify_helpers = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -29898,9 +29898,9 @@ var require_asyncify_helpers = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js var require_lifetime = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30106,9 +30106,9 @@ Lifetime used`); } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js var require_deferred_promise = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30167,9 +30167,9 @@ var require_deferred_promise = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js var require_memory = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/memory.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30211,9 +30211,9 @@ var require_memory = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js var require_types_ffi = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30254,9 +30254,9 @@ var require_types_ffi = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/types.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/types.js var require_types2 = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/types.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/types.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30301,9 +30301,9 @@ var require_types2 = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/context.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/context.js var require_context = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/context.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/context.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -30902,9 +30902,9 @@ ${cause.stack}Host: ${hostStack}`; } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js var require_runtime = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31173,9 +31173,9 @@ var require_runtime = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/module.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module.js var require_module = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/module.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31438,9 +31438,9 @@ Attempted to suspend at:`); } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js var require_context_asyncify = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31490,9 +31490,9 @@ var require_context_asyncify = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js var require_runtime_asyncify = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31545,9 +31545,9 @@ var require_runtime_asyncify = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js var require_module_asyncify = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31633,9 +31633,9 @@ var require_module_asyncify = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js var require_ffi_WASM_RELEASE_SYNC = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -31702,9 +31702,9 @@ var require_ffi_WASM_RELEASE_SYNC = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js"(exports, module) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js"(exports, module) { "use strict"; init_cjs_shim(); var QuickJSRaw = (() => { @@ -32441,9 +32441,9 @@ var require_emscripten_module_WASM_RELEASE_SYNC = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js var require_variants = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/variants.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -32553,9 +32553,9 @@ var require_variants = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js var require_vm_interface = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -32571,9 +32571,9 @@ var require_vm_interface = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js var require_module_test = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js"(exports) { "use strict"; init_cjs_shim(); Object.defineProperty(exports, "__esModule", { value: true }); @@ -32642,9 +32642,9 @@ var require_module_test = __commonJS({ } }); -// node_modules/@tootallnate/quickjs-emscripten/dist/index.js +// ../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/index.js var require_dist9 = __commonJS({ - "node_modules/@tootallnate/quickjs-emscripten/dist/index.js"(exports) { + "../testeranto/node_modules/@tootallnate/quickjs-emscripten/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -32747,9 +32747,9 @@ var require_dist9 = __commonJS({ } }); -// node_modules/pac-proxy-agent/dist/index.js +// ../testeranto/node_modules/pac-proxy-agent/dist/index.js var require_dist10 = __commonJS({ - "node_modules/pac-proxy-agent/dist/index.js"(exports) { + "../testeranto/node_modules/pac-proxy-agent/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -32968,9 +32968,9 @@ var require_dist10 = __commonJS({ } }); -// node_modules/proxy-agent/dist/index.js +// ../testeranto/node_modules/proxy-agent/dist/index.js var require_dist11 = __commonJS({ - "node_modules/proxy-agent/dist/index.js"(exports) { + "../testeranto/node_modules/proxy-agent/dist/index.js"(exports) { "use strict"; init_cjs_shim(); var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { @@ -33094,9 +33094,9 @@ var require_dist11 = __commonJS({ } }); -// node_modules/wrappy/wrappy.js +// ../testeranto/node_modules/wrappy/wrappy.js var require_wrappy = __commonJS({ - "node_modules/wrappy/wrappy.js"(exports, module) { + "../testeranto/node_modules/wrappy/wrappy.js"(exports, module) { init_cjs_shim(); module.exports = wrappy; function wrappy(fn, cb) { @@ -33126,9 +33126,9 @@ var require_wrappy = __commonJS({ } }); -// node_modules/once/once.js +// ../testeranto/node_modules/once/once.js var require_once = __commonJS({ - "node_modules/once/once.js"(exports, module) { + "../testeranto/node_modules/once/once.js"(exports, module) { init_cjs_shim(); var wrappy = require_wrappy(); module.exports = wrappy(once); @@ -33172,9 +33172,9 @@ var require_once = __commonJS({ } }); -// node_modules/end-of-stream/index.js +// ../testeranto/node_modules/end-of-stream/index.js var require_end_of_stream = __commonJS({ - "node_modules/end-of-stream/index.js"(exports, module) { + "../testeranto/node_modules/end-of-stream/index.js"(exports, module) { init_cjs_shim(); var once = require_once(); var noop = function() { @@ -33268,9 +33268,9 @@ var require_end_of_stream = __commonJS({ } }); -// node_modules/pump/index.js +// ../testeranto/node_modules/pump/index.js var require_pump = __commonJS({ - "node_modules/pump/index.js"(exports, module) { + "../testeranto/node_modules/pump/index.js"(exports, module) { init_cjs_shim(); var once = require_once(); var eos = require_end_of_stream(); @@ -33357,9 +33357,9 @@ var require_pump = __commonJS({ } }); -// node_modules/get-stream/buffer-stream.js +// ../testeranto/node_modules/get-stream/buffer-stream.js var require_buffer_stream = __commonJS({ - "node_modules/get-stream/buffer-stream.js"(exports, module) { + "../testeranto/node_modules/get-stream/buffer-stream.js"(exports, module) { "use strict"; init_cjs_shim(); var { PassThrough: PassThroughStream } = __require("stream"); @@ -33403,9 +33403,9 @@ var require_buffer_stream = __commonJS({ } }); -// node_modules/get-stream/index.js +// ../testeranto/node_modules/get-stream/index.js var require_get_stream = __commonJS({ - "node_modules/get-stream/index.js"(exports, module) { + "../testeranto/node_modules/get-stream/index.js"(exports, module) { "use strict"; init_cjs_shim(); var { constants: BufferConstants } = __require("buffer"); @@ -33457,9 +33457,9 @@ var require_get_stream = __commonJS({ } }); -// node_modules/pend/index.js +// ../testeranto/node_modules/pend/index.js var require_pend = __commonJS({ - "node_modules/pend/index.js"(exports, module) { + "../testeranto/node_modules/pend/index.js"(exports, module) { init_cjs_shim(); module.exports = Pend; function Pend() { @@ -33514,9 +33514,9 @@ var require_pend = __commonJS({ } }); -// node_modules/fd-slicer/index.js +// ../testeranto/node_modules/fd-slicer/index.js var require_fd_slicer = __commonJS({ - "node_modules/fd-slicer/index.js"(exports) { + "../testeranto/node_modules/fd-slicer/index.js"(exports) { init_cjs_shim(); var fs6 = __require("fs"); var util = __require("util"); @@ -33783,9 +33783,9 @@ var require_fd_slicer = __commonJS({ } }); -// node_modules/buffer-crc32/index.js +// ../testeranto/node_modules/buffer-crc32/index.js var require_buffer_crc32 = __commonJS({ - "node_modules/buffer-crc32/index.js"(exports, module) { + "../testeranto/node_modules/buffer-crc32/index.js"(exports, module) { init_cjs_shim(); var Buffer2 = __require("buffer").Buffer; var CRC_TABLE = [ @@ -34091,9 +34091,9 @@ var require_buffer_crc32 = __commonJS({ } }); -// node_modules/yauzl/index.js +// ../testeranto/node_modules/yauzl/index.js var require_yauzl = __commonJS({ - "node_modules/yauzl/index.js"(exports) { + "../testeranto/node_modules/yauzl/index.js"(exports) { init_cjs_shim(); var fs6 = __require("fs"); var zlib = __require("zlib"); @@ -34793,9 +34793,9 @@ var require_yauzl = __commonJS({ } }); -// node_modules/extract-zip/index.js +// ../testeranto/node_modules/extract-zip/index.js var require_extract_zip = __commonJS({ - "node_modules/extract-zip/index.js"(exports, module) { + "../testeranto/node_modules/extract-zip/index.js"(exports, module) { init_cjs_shim(); var debug5 = require_src()("extract-zip"); var { createWriteStream, promises: fs6 } = __require("fs"); @@ -34932,25 +34932,25 @@ var require_extract_zip = __commonJS({ } }); -// node_modules/queue-tick/queue-microtask.js +// ../testeranto/node_modules/queue-tick/queue-microtask.js var require_queue_microtask = __commonJS({ - "node_modules/queue-tick/queue-microtask.js"(exports, module) { + "../testeranto/node_modules/queue-tick/queue-microtask.js"(exports, module) { init_cjs_shim(); module.exports = typeof queueMicrotask === "function" ? queueMicrotask : (fn) => Promise.resolve().then(fn); } }); -// node_modules/queue-tick/process-next-tick.js +// ../testeranto/node_modules/queue-tick/process-next-tick.js var require_process_next_tick = __commonJS({ - "node_modules/queue-tick/process-next-tick.js"(exports, module) { + "../testeranto/node_modules/queue-tick/process-next-tick.js"(exports, module) { init_cjs_shim(); module.exports = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : require_queue_microtask(); } }); -// node_modules/fast-fifo/fixed-size.js +// ../testeranto/node_modules/fast-fifo/fixed-size.js var require_fixed_size = __commonJS({ - "node_modules/fast-fifo/fixed-size.js"(exports, module) { + "../testeranto/node_modules/fast-fifo/fixed-size.js"(exports, module) { init_cjs_shim(); module.exports = class FixedFIFO { constructor(hwm) { @@ -34992,9 +34992,9 @@ var require_fixed_size = __commonJS({ } }); -// node_modules/fast-fifo/index.js +// ../testeranto/node_modules/fast-fifo/index.js var require_fast_fifo = __commonJS({ - "node_modules/fast-fifo/index.js"(exports, module) { + "../testeranto/node_modules/fast-fifo/index.js"(exports, module) { init_cjs_shim(); var FixedFIFO = require_fixed_size(); module.exports = class FastFIFO { @@ -35042,9 +35042,9 @@ var require_fast_fifo = __commonJS({ } }); -// node_modules/text-decoder/lib/pass-through-decoder.js +// ../testeranto/node_modules/text-decoder/lib/pass-through-decoder.js var require_pass_through_decoder = __commonJS({ - "node_modules/text-decoder/lib/pass-through-decoder.js"(exports, module) { + "../testeranto/node_modules/text-decoder/lib/pass-through-decoder.js"(exports, module) { init_cjs_shim(); module.exports = class PassThroughDecoder { constructor(encoding) { @@ -35063,9 +35063,9 @@ var require_pass_through_decoder = __commonJS({ } }); -// node_modules/text-decoder/lib/utf8-decoder.js +// ../testeranto/node_modules/text-decoder/lib/utf8-decoder.js var require_utf8_decoder = __commonJS({ - "node_modules/text-decoder/lib/utf8-decoder.js"(exports, module) { + "../testeranto/node_modules/text-decoder/lib/utf8-decoder.js"(exports, module) { init_cjs_shim(); module.exports = class UTF8Decoder { constructor() { @@ -35153,9 +35153,9 @@ var require_utf8_decoder = __commonJS({ } }); -// node_modules/text-decoder/index.js +// ../testeranto/node_modules/text-decoder/index.js var require_text_decoder = __commonJS({ - "node_modules/text-decoder/index.js"(exports, module) { + "../testeranto/node_modules/text-decoder/index.js"(exports, module) { init_cjs_shim(); var PassThroughDecoder = require_pass_through_decoder(); var UTF8Decoder = require_utf8_decoder(); @@ -35218,9 +35218,9 @@ var require_text_decoder = __commonJS({ } }); -// node_modules/streamx/index.js +// ../testeranto/node_modules/streamx/index.js var require_streamx = __commonJS({ - "node_modules/streamx/index.js"(exports, module) { + "../testeranto/node_modules/streamx/index.js"(exports, module) { init_cjs_shim(); var { EventEmitter: EventEmitter2 } = __require("events"); var STREAM_DESTROYED = new Error("Stream was destroyed"); @@ -35313,7 +35313,6 @@ var require_streamx = __commonJS({ var WRITE_BACKPRESSURE_STATUS = WRITE_UNDRAINED | DESTROY_STATUS | WRITE_FINISHING | WRITE_DONE; var WRITE_UPDATE_SYNC_STATUS = WRITE_UPDATING | OPEN_STATUS | WRITE_NEXT_TICK | WRITE_PRIMARY; var WRITE_DROP_DATA = WRITE_FINISHING | WRITE_DONE | DESTROY_STATUS; - var DISTURBED_STATUS = OPEN_STATUS | READ_RESUMED_READ_AHEAD | WRITE_QUEUED; var asyncIterator = Symbol.asyncIterator || Symbol("asyncIterator"); var WritableState = class { constructor(stream, { highWaterMark = 16384, map: map2 = null, mapWritable, byteLength, byteLengthWritable } = {}) { @@ -36232,9 +36231,6 @@ var require_streamx = __commonJS({ function isReadStreamx(stream) { return isStreamx(stream) && stream.readable; } - function isDisturbed(stream) { - return (stream._duplexState & DISTURBED_STATUS) !== OPENING; - } function isTypedArray(data) { return typeof data === "object" && data !== null && typeof data.byteLength === "number"; } @@ -36254,7 +36250,6 @@ var require_streamx = __commonJS({ pipelinePromise, isStream, isStreamx, - isDisturbed, isEnded, isFinished, getStreamError, @@ -36269,9 +36264,9 @@ var require_streamx = __commonJS({ } }); -// node_modules/b4a/index.js +// ../testeranto/node_modules/b4a/index.js var require_b4a = __commonJS({ - "node_modules/b4a/index.js"(exports, module) { + "../testeranto/node_modules/b4a/index.js"(exports, module) { init_cjs_shim(); function isBuffer(value) { return Buffer.isBuffer(value) || value instanceof Uint8Array; @@ -36428,9 +36423,9 @@ var require_b4a = __commonJS({ } }); -// node_modules/tar-stream/headers.js +// ../testeranto/node_modules/tar-stream/headers.js var require_headers = __commonJS({ - "node_modules/tar-stream/headers.js"(exports) { + "../testeranto/node_modules/tar-stream/headers.js"(exports) { init_cjs_shim(); var b4a = require_b4a(); var ZEROS = "0000000000000000000"; @@ -36725,9 +36720,9 @@ var require_headers = __commonJS({ } }); -// node_modules/tar-stream/extract.js +// ../testeranto/node_modules/tar-stream/extract.js var require_extract = __commonJS({ - "node_modules/tar-stream/extract.js"(exports, module) { + "../testeranto/node_modules/tar-stream/extract.js"(exports, module) { init_cjs_shim(); var { Writable, Readable, getStreamError } = require_streamx(); var FIFO = require_fast_fifo(); @@ -37085,9 +37080,9 @@ var require_extract = __commonJS({ } }); -// node_modules/tar-stream/constants.js +// ../testeranto/node_modules/tar-stream/constants.js var require_constants5 = __commonJS({ - "node_modules/tar-stream/constants.js"(exports, module) { + "../testeranto/node_modules/tar-stream/constants.js"(exports, module) { init_cjs_shim(); var constants = { // just for envs without fs @@ -37106,9 +37101,9 @@ var require_constants5 = __commonJS({ } }); -// node_modules/tar-stream/pack.js +// ../testeranto/node_modules/tar-stream/pack.js var require_pack = __commonJS({ - "node_modules/tar-stream/pack.js"(exports, module) { + "../testeranto/node_modules/tar-stream/pack.js"(exports, module) { init_cjs_shim(); var { Readable, Writable, getStreamError } = require_streamx(); var b4a = require_b4a(); @@ -37366,18 +37361,18 @@ var require_pack = __commonJS({ } }); -// node_modules/tar-stream/index.js +// ../testeranto/node_modules/tar-stream/index.js var require_tar_stream = __commonJS({ - "node_modules/tar-stream/index.js"(exports) { + "../testeranto/node_modules/tar-stream/index.js"(exports) { init_cjs_shim(); exports.extract = require_extract(); exports.pack = require_pack(); } }); -// node_modules/tar-fs/index.js +// ../testeranto/node_modules/tar-fs/index.js var require_tar_fs = __commonJS({ - "node_modules/tar-fs/index.js"(exports) { + "../testeranto/node_modules/tar-fs/index.js"(exports) { init_cjs_shim(); var tar2 = require_tar_stream(); var pump = require_pump(); @@ -37721,9 +37716,9 @@ var require_tar_fs = __commonJS({ } }); -// node_modules/through/index.js +// ../testeranto/node_modules/through/index.js var require_through = __commonJS({ - "node_modules/through/index.js"(exports, module) { + "../testeranto/node_modules/through/index.js"(exports, module) { init_cjs_shim(); var Stream = __require("stream"); exports = module.exports = through; @@ -37815,9 +37810,9 @@ var require_through = __commonJS({ } }); -// node_modules/unbzip2-stream/lib/bzip2.js +// ../testeranto/node_modules/unbzip2-stream/lib/bzip2.js var require_bzip2 = __commonJS({ - "node_modules/unbzip2-stream/lib/bzip2.js"(exports, module) { + "../testeranto/node_modules/unbzip2-stream/lib/bzip2.js"(exports, module) { init_cjs_shim(); function Bzip2Error(message2) { this.name = "Bzip2Error"; @@ -38360,9 +38355,9 @@ var require_bzip2 = __commonJS({ } }); -// node_modules/unbzip2-stream/lib/bit_iterator.js +// ../testeranto/node_modules/unbzip2-stream/lib/bit_iterator.js var require_bit_iterator = __commonJS({ - "node_modules/unbzip2-stream/lib/bit_iterator.js"(exports, module) { + "../testeranto/node_modules/unbzip2-stream/lib/bit_iterator.js"(exports, module) { init_cjs_shim(); var BITMASK = [0, 1, 3, 7, 15, 31, 63, 127, 255]; module.exports = function bitIterator(nextBuffer) { @@ -38403,9 +38398,9 @@ var require_bit_iterator = __commonJS({ } }); -// node_modules/unbzip2-stream/index.js +// ../testeranto/node_modules/unbzip2-stream/index.js var require_unbzip2_stream = __commonJS({ - "node_modules/unbzip2-stream/index.js"(exports, module) { + "../testeranto/node_modules/unbzip2-stream/index.js"(exports, module) { init_cjs_shim(); var through = require_through(); var bz2 = require_bzip2(); @@ -38487,9 +38482,9 @@ var require_unbzip2_stream = __commonJS({ } }); -// node_modules/progress/lib/node-progress.js +// ../testeranto/node_modules/progress/lib/node-progress.js var require_node_progress = __commonJS({ - "node_modules/progress/lib/node-progress.js"(exports, module) { + "../testeranto/node_modules/progress/lib/node-progress.js"(exports, module) { init_cjs_shim(); exports = module.exports = ProgressBar2; function ProgressBar2(fmt, options) { @@ -38608,30 +38603,30 @@ var require_node_progress = __commonJS({ } }); -// node_modules/progress/index.js +// ../testeranto/node_modules/progress/index.js var require_progress = __commonJS({ - "node_modules/progress/index.js"(exports, module) { + "../testeranto/node_modules/progress/index.js"(exports, module) { init_cjs_shim(); module.exports = require_node_progress(); } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/index.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/index.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js init_cjs_shim(); var __addDisposableResource = function(env2, value, async) { if (value !== null && value !== void 0) { @@ -38784,10 +38779,10 @@ var Binding = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js init_cjs_shim(); var __addDisposableResource2 = function(env2, value, async) { if (value !== null && value !== void 0) { @@ -38933,13 +38928,13 @@ var CdpBrowserContext = class extends BrowserContext { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js init_cjs_shim(); var CdpCDPSession = class extends CDPSession { #sessionId; @@ -39040,10 +39035,10 @@ var CdpCDPSession = class extends CDPSession { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js init_cjs_shim(); var FileChooser = class { #element; @@ -39090,7 +39085,7 @@ var FileChooser = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js init_cjs_shim(); var NetworkManagerEvent; (function(NetworkManagerEvent2) { @@ -39101,7 +39096,7 @@ var NetworkManagerEvent; NetworkManagerEvent2.RequestFinished = Symbol("NetworkManager.RequestFinished"); })(NetworkManagerEvent || (NetworkManagerEvent = {})); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js init_cjs_shim(); var debugProtocolSend = debug("puppeteer:protocol:SEND \u25BA"); var debugProtocolReceive = debug("puppeteer:protocol:RECV \u25C0"); @@ -39296,7 +39291,7 @@ function isTargetClosedError(error) { return error instanceof TargetCloseError; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js init_cjs_shim(); var CdpDialog = class extends Dialog { #client; @@ -39312,7 +39307,7 @@ var CdpDialog = class extends Dialog { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js init_cjs_shim(); var FirefoxTargetManager = class extends EventEmitter { #connection; @@ -39441,10 +39436,10 @@ var FirefoxTargetManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js init_cjs_shim(); var CdpPreloadScript = class { /** @@ -39477,7 +39472,7 @@ var CdpPreloadScript = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js init_cjs_shim(); var DeviceRequestPromptDevice = class { /** @@ -39656,16 +39651,16 @@ var DeviceRequestPromptManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js init_cjs_shim(); function createEvaluationError(details) { let name; @@ -39808,7 +39803,7 @@ function pageBindingInitString(type, name) { return evaluationString(addPageBinding, type, name, CDP_BINDING_PREFIX); } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js var CdpJSHandle = class extends JSHandle { #disposed = false; #remoteObject; @@ -39890,7 +39885,7 @@ async function releaseObject(client, remoteObject) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -40072,7 +40067,7 @@ var CdpElementHandle = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js var __addDisposableResource3 = function(env2, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -40492,10 +40487,10 @@ var rewriteError = (error) => { throw error; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js init_cjs_shim(); var FrameManagerEvent; (function(FrameManagerEvent2) { @@ -40509,7 +40504,7 @@ var FrameManagerEvent; FrameManagerEvent2.BindingCalled = Symbol("FrameManager.BindingCalled"); })(FrameManagerEvent || (FrameManagerEvent = {})); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js init_cjs_shim(); var IsolatedWorld = class extends Realm { #context; @@ -40640,12 +40635,12 @@ var IsolatedWorld = class extends Realm { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js init_cjs_shim(); var MAIN_WORLD = Symbol("mainWorld"); var PUPPETEER_WORLD = Symbol("puppeteerWorld"); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js init_cjs_shim(); var puppeteerToProtocolLifecycle = /* @__PURE__ */ new Map([ ["load", "load"], @@ -40793,7 +40788,7 @@ var LifecycleWatcher = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -41122,7 +41117,7 @@ var CdpFrame = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js init_cjs_shim(); var FrameTree = class { #frames = /* @__PURE__ */ new Map(); @@ -41198,10 +41193,10 @@ var FrameTree = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js init_cjs_shim(); var CdpHTTPRequest = class extends HTTPRequest { id; @@ -41361,7 +41356,7 @@ var CdpHTTPRequest = class extends HTTPRequest { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js init_cjs_shim(); var CdpHTTPResponse = class extends HTTPResponse { #request; @@ -41472,7 +41467,7 @@ var CdpHTTPResponse = class extends HTTPResponse { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js init_cjs_shim(); var NetworkEventManager = class { /** @@ -41617,7 +41612,7 @@ var NetworkEventManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js var NetworkManager = class extends EventEmitter { #frameManager; #networkEventManager = new NetworkEventManager(); @@ -42040,7 +42035,7 @@ var NetworkManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js var TIME_FOR_WAITING_FOR_SWAP = 100; var FrameManager = class extends EventEmitter { #page; @@ -42426,10 +42421,10 @@ var FrameManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js init_cjs_shim(); var _keyDefinitions = { "0": { keyCode: 48, key: "0", code: "Digit0" }, @@ -42817,7 +42812,7 @@ var _keyDefinitions = { VolumeUp: { keyCode: 183, key: "VolumeUp", code: "VolumeUp", location: 4 } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js var CdpKeyboard = class extends Keyboard { #client; #pressedKeys = /* @__PURE__ */ new Set(); @@ -43285,7 +43280,7 @@ var CdpTouchscreen = class extends Touchscreen { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js init_cjs_shim(); var CdpWebWorker = class extends WebWorker { #world; @@ -43342,7 +43337,7 @@ var CdpWebWorker = class extends WebWorker { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js var __addDisposableResource4 = function(env2, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -44207,7 +44202,7 @@ function getIntersectionRect(clip, viewport) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js var InitializationStatus; (function(InitializationStatus2) { InitializationStatus2["SUCCESS"] = "success"; @@ -44432,7 +44427,7 @@ var WorkerTarget = class extends CdpTarget { var OtherTarget = class extends CdpTarget { }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js function isPageTargetBecomingPrimary(target, newTargetInfo) { return Boolean(target._subtype()) && !newTargetInfo.subtype; } @@ -44691,7 +44686,7 @@ var ChromeTargetManager = class extends EventEmitter { }; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js var CdpBrowser = class extends Browser { protocol = "cdp"; static async _create(product, connection, contextIds, acceptInsecureCerts, defaultViewport, downloadBehavior, process2, closeCallback, targetFilterCallback, isPageTargetCallback, waitForInitiallyDiscoveredTargets = true) { @@ -44912,7 +44907,7 @@ var CdpBrowser = class extends Browser { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js init_cjs_shim(); async function _connectToCdpBrowser(connectionTransport, url, options) { const { acceptInsecureCerts = false, defaultViewport = DEFAULT_VIEWPORT, downloadBehavior, targetFilter, _isPageTarget: isPageTarget, slowMo = 0, protocolTimeout } = options; @@ -44926,10 +44921,10 @@ async function _connectToCdpBrowser(connectionTransport, url, options) { return browser; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js init_cjs_shim(); var PredefinedNetworkConditions = Object.freeze({ // Generally aligned with DevTools @@ -44970,13 +44965,13 @@ var PredefinedNetworkConditions = Object.freeze({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js init_cjs_shim(); var knownDevices = [ { @@ -46558,20 +46553,20 @@ for (const device of knownDevices) { } var KnownDevices = Object.freeze(knownDevicesByName); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js init_cjs_shim(); async function _connectToBiDiBrowser(connectionTransport, url, options) { const { acceptInsecureCerts = false, defaultViewport = DEFAULT_VIEWPORT } = options; const { bidiConnection, cdpConnection, closeCallback } = await getBiDiConnection(connectionTransport, url, options); const BiDi = await import( /* webpackIgnore: true */ - "./bidi-COHEKL2Q.mjs" + "./bidi-2I2CA3WT.mjs" ); const bidiBrowser = await BiDi.BidiBrowser.create({ connection: bidiConnection, @@ -46587,7 +46582,7 @@ async function _connectToBiDiBrowser(connectionTransport, url, options) { async function getBiDiConnection(connectionTransport, url, options) { const BiDi = await import( /* webpackIgnore: true */ - "./bidi-COHEKL2Q.mjs" + "./bidi-2I2CA3WT.mjs" ); const { slowMo = 0, protocolTimeout } = options; const pureBidiConnection = new BiDi.BidiConnection(url, connectionTransport, slowMo, protocolTimeout); @@ -46622,9 +46617,9 @@ async function getBiDiConnection(connectionTransport, url, options) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js var getWebSocketTransportClass = async () => { - return isNode ? (await import("./NodeWebSocketTransport-DL6OUWEF.mjs")).NodeWebSocketTransport : (await import("./BrowserWebSocketTransport-T7EHS33P.mjs")).BrowserWebSocketTransport; + return isNode ? (await import("./NodeWebSocketTransport-UA4FKYLF.mjs")).NodeWebSocketTransport : (await import("./BrowserWebSocketTransport-VT34BAS5.mjs")).BrowserWebSocketTransport; }; async function _connectToBrowser(options) { const { connectionTransport, endpointUrl } = await getConnectionTransport(options); @@ -46678,7 +46673,7 @@ async function getWSEndpoint(browserURL) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js var Puppeteer = class { /** * Registers a {@link CustomQueryHandler | custom query handler}. @@ -46760,10 +46755,10 @@ var Puppeteer = class { */ __publicField(Puppeteer, "customQueryHandlers", customQueryHandlers); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js init_cjs_shim(); var PUPPETEER_REVISIONS = Object.freeze({ chrome: "131.0.6778.85", @@ -46771,36 +46766,36 @@ var PUPPETEER_REVISIONS = Object.freeze({ firefox: "stable_132.0.2" }); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/node/node.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js init_cjs_shim(); import { mkdtemp } from "fs/promises"; import os5 from "os"; import path7 from "path"; -// node_modules/@puppeteer/browsers/lib/esm/main.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/main.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/lib/esm/launch.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/launch.js init_cjs_shim(); import childProcess from "child_process"; import { accessSync } from "fs"; import os3 from "os"; import readline from "readline"; -// node_modules/@puppeteer/browsers/lib/esm/browser-data/browser-data.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/browser-data.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js init_cjs_shim(); import path2 from "path"; -// node_modules/@puppeteer/browsers/lib/esm/browser-data/types.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/types.js init_cjs_shim(); var Browser2; (function(Browser3) { @@ -46837,12 +46832,12 @@ var ChromeReleaseChannel; ChromeReleaseChannel2["BETA"] = "beta"; })(ChromeReleaseChannel || (ChromeReleaseChannel = {})); -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js init_cjs_shim(); var import_semver = __toESM(require_semver2(), 1); import path from "path"; -// node_modules/@puppeteer/browsers/lib/esm/httpUtil.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/httpUtil.js init_cjs_shim(); var import_proxy_agent = __toESM(require_dist11(), 1); import * as http from "http"; @@ -46903,7 +46898,7 @@ function getText(url) { }); } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js function folder(platform) { switch (platform) { case BrowserPlatform.LINUX: @@ -47018,7 +47013,7 @@ function compareVersions(a, b) { } } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js function folder2(platform) { switch (platform) { case BrowserPlatform.LINUX: @@ -47056,7 +47051,7 @@ function relativeExecutablePath2(platform, _buildId) { } } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chromedriver.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromedriver.js init_cjs_shim(); import path3 from "path"; function folder3(platform) { @@ -47092,7 +47087,7 @@ function relativeExecutablePath3(platform, _buildId) { } } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/chromium.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromium.js init_cjs_shim(); import path4 from "path"; function archive(platform, buildId) { @@ -47146,7 +47141,7 @@ function compareVersions2(a, b) { return Number(a) - Number(b); } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/firefox.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/firefox.js init_cjs_shim(); import fs from "fs"; import path5 from "path"; @@ -47483,7 +47478,7 @@ function compareVersions3(a, b) { return parseInt(a.replace(".", ""), 16) - parseInt(b.replace(".", ""), 16); } -// node_modules/@puppeteer/browsers/lib/esm/browser-data/browser-data.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/browser-data/browser-data.js var downloadUrls = { [Browser2.CHROMEDRIVER]: resolveDownloadUrl3, [Browser2.CHROMEHEADLESSSHELL]: resolveDownloadUrl2, @@ -47653,14 +47648,14 @@ function getVersionComparator(browser) { return versionComparators[browser]; } -// node_modules/@puppeteer/browsers/lib/esm/Cache.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/Cache.js init_cjs_shim(); var import_debug = __toESM(require_src(), 1); import fs2 from "fs"; import os2 from "os"; import path6 from "path"; -// node_modules/@puppeteer/browsers/lib/esm/detectPlatform.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/detectPlatform.js init_cjs_shim(); import os from "os"; function detectBrowserPlatform() { @@ -47688,7 +47683,7 @@ function isWindows11(version) { return false; } -// node_modules/@puppeteer/browsers/lib/esm/Cache.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/Cache.js var debugCache = (0, import_debug.default)("puppeteer:browsers:cache"); var InstalledBrowser = class { browser; @@ -47837,11 +47832,11 @@ function parseFolderPath(folderPath) { return { platform, buildId }; } -// node_modules/@puppeteer/browsers/lib/esm/debug.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/debug.js init_cjs_shim(); var import_debug2 = __toESM(require_src(), 1); -// node_modules/@puppeteer/browsers/lib/esm/launch.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/launch.js var debugLaunch = (0, import_debug2.default)("puppeteer:browsers:launcher"); function computeExecutablePath(options) { return new Cache(options.cacheDir).computeExecutablePath(options); @@ -48144,17 +48139,17 @@ var TimeoutError2 = class extends Error { } }; -// node_modules/@puppeteer/browsers/lib/esm/install.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/install.js init_cjs_shim(); import os4 from "os"; -// node_modules/@puppeteer/browsers/lib/esm/fileUtil.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/fileUtil.js init_cjs_shim(); var import_extract_zip = __toESM(require_extract_zip(), 1); var import_tar_fs = __toESM(require_tar_fs(), 1); var import_unbzip2_stream = __toESM(require_unbzip2_stream(), 1); -// node_modules/@puppeteer/browsers/lib/esm/install.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/install.js var debugInstall = (0, import_debug2.default)("puppeteer:browsers:install"); async function uninstall(options) { options.platform ??= detectBrowserPlatform(); @@ -48167,21 +48162,21 @@ async function getInstalledBrowsers(options) { return new Cache(options.cacheDir).getInstalledBrowsers(); } -// node_modules/@puppeteer/browsers/lib/esm/CLI.js +// ../testeranto/node_modules/@puppeteer/browsers/lib/esm/CLI.js init_cjs_shim(); var import_progress = __toESM(require_progress(), 1); -// node_modules/@puppeteer/browsers/node_modules/yargs/index.mjs +// ../testeranto/node_modules/yargs/index.mjs init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/lib/platform-shims/esm.mjs +// ../testeranto/node_modules/yargs/lib/platform-shims/esm.mjs init_cjs_shim(); import { notStrictEqual, strictEqual } from "assert"; -// node_modules/@puppeteer/browsers/node_modules/cliui/index.mjs +// ../testeranto/node_modules/cliui/index.mjs init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/cliui/build/lib/index.js +// ../testeranto/node_modules/cliui/build/lib/index.js init_cjs_shim(); var align = { right: alignRight, @@ -48438,7 +48433,7 @@ function cliui(opts, _mixin) { }); } -// node_modules/@puppeteer/browsers/node_modules/cliui/build/lib/string-utils.js +// ../testeranto/node_modules/cliui/build/lib/string-utils.js init_cjs_shim(); var ansi = new RegExp("\x1B(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)", "g"); function stripAnsi(str) { @@ -48460,7 +48455,7 @@ function wrap(str, width) { return wrapped; } -// node_modules/@puppeteer/browsers/node_modules/cliui/index.mjs +// ../testeranto/node_modules/cliui/index.mjs function ui(opts) { return cliui(opts, { stringWidth: (str) => { @@ -48471,7 +48466,7 @@ function ui(opts) { }); } -// node_modules/escalade/sync/index.mjs +// ../testeranto/node_modules/escalade/sync/index.mjs init_cjs_shim(); import { dirname, resolve } from "path"; import { readdirSync, statSync } from "fs"; @@ -48491,17 +48486,17 @@ function sync_default(start, callback) { } } -// node_modules/@puppeteer/browsers/node_modules/yargs/lib/platform-shims/esm.mjs +// ../testeranto/node_modules/yargs/lib/platform-shims/esm.mjs import { inspect } from "util"; import { readFileSync as readFileSync3 } from "fs"; import { fileURLToPath } from "url"; -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/index.js +// ../testeranto/node_modules/yargs-parser/build/lib/index.js init_cjs_shim(); import { format } from "util"; import { normalize, resolve as resolve2 } from "path"; -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/string-utils.js +// ../testeranto/node_modules/yargs-parser/build/lib/string-utils.js init_cjs_shim(); function camelCase(str) { const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase(); @@ -48556,10 +48551,10 @@ function looksLikeNumber(x) { return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); } -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/yargs-parser.js +// ../testeranto/node_modules/yargs-parser/build/lib/yargs-parser.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +// ../testeranto/node_modules/yargs-parser/build/lib/tokenize-arg-string.js init_cjs_shim(); function tokenizeArgString(argString) { if (Array.isArray(argString)) { @@ -48592,7 +48587,7 @@ function tokenizeArgString(argString) { return args; } -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/yargs-parser-types.js +// ../testeranto/node_modules/yargs-parser/build/lib/yargs-parser-types.js init_cjs_shim(); var DefaultValuesForTypeKey; (function(DefaultValuesForTypeKey2) { @@ -48602,7 +48597,7 @@ var DefaultValuesForTypeKey; DefaultValuesForTypeKey2["ARRAY"] = "array"; })(DefaultValuesForTypeKey || (DefaultValuesForTypeKey = {})); -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/yargs-parser.js +// ../testeranto/node_modules/yargs-parser/build/lib/yargs-parser.js var mixin2; var YargsParser = class { constructor(_mixin) { @@ -49442,7 +49437,7 @@ function stripQuotes(val) { return typeof val === "string" && (val[0] === "'" || val[0] === '"') && val[val.length - 1] === val[0] ? val.substring(1, val.length - 1) : val; } -// node_modules/@puppeteer/browsers/node_modules/yargs-parser/build/lib/index.js +// ../testeranto/node_modules/yargs-parser/build/lib/index.js import { readFileSync } from "fs"; var _a; var _b; @@ -49488,10 +49483,10 @@ yargsParser.decamelize = decamelize; yargsParser.looksLikeNumber = looksLikeNumber; var lib_default = yargsParser; -// node_modules/@puppeteer/browsers/node_modules/yargs/lib/platform-shims/esm.mjs +// ../testeranto/node_modules/yargs/lib/platform-shims/esm.mjs import { basename, dirname as dirname2, extname, relative, resolve as resolve4 } from "path"; -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/process-argv.js +// ../testeranto/node_modules/yargs/build/lib/utils/process-argv.js init_cjs_shim(); function getProcessArgvBinIndex() { if (isBundledElectronApp()) @@ -49508,7 +49503,7 @@ function getProcessArgvBin() { return process.argv[getProcessArgvBinIndex()]; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/yerror.js +// ../testeranto/node_modules/yargs/build/lib/yerror.js init_cjs_shim(); var YError = class extends Error { constructor(msg) { @@ -49520,10 +49515,10 @@ var YError = class extends Error { } }; -// node_modules/y18n/index.mjs +// ../testeranto/node_modules/y18n/index.mjs init_cjs_shim(); -// node_modules/y18n/build/lib/platform-shims/node.js +// ../testeranto/node_modules/y18n/build/lib/platform-shims/node.js init_cjs_shim(); import { readFileSync as readFileSync2, statSync as statSync2, writeFile } from "fs"; import { format as format2 } from "util"; @@ -49544,7 +49539,7 @@ var node_default = { } }; -// node_modules/y18n/build/lib/index.js +// ../testeranto/node_modules/y18n/build/lib/index.js init_cjs_shim(); var shim; var Y18N = class { @@ -49706,13 +49701,13 @@ function y18n(opts, _shim) { }; } -// node_modules/y18n/index.mjs +// ../testeranto/node_modules/y18n/index.mjs var y18n2 = (opts) => { return y18n(opts, node_default); }; var y18n_default = y18n2; -// node_modules/@puppeteer/browsers/node_modules/yargs/lib/platform-shims/esm.mjs +// ../testeranto/node_modules/yargs/lib/platform-shims/esm.mjs var REQUIRE_ERROR = "require is not supported by ESM"; var REQUIRE_DIRECTORY_ERROR = "loading a directory of commands is not supported yet for ESM"; var __dirname2; @@ -49771,13 +49766,13 @@ var esm_default = { }) }; -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/yargs-factory.js +// ../testeranto/node_modules/yargs/build/lib/yargs-factory.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/command.js +// ../testeranto/node_modules/yargs/build/lib/command.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/typings/common-types.js +// ../testeranto/node_modules/yargs/build/lib/typings/common-types.js init_cjs_shim(); function assertNotStrictEqual(actual, expected, shim3, message) { shim3.assert.notStrictEqual(actual, expected, message); @@ -49789,19 +49784,19 @@ function objectKeys(object) { return Object.keys(object); } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/is-promise.js +// ../testeranto/node_modules/yargs/build/lib/utils/is-promise.js init_cjs_shim(); function isPromise(maybePromise) { return !!maybePromise && !!maybePromise.then && typeof maybePromise.then === "function"; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/middleware.js +// ../testeranto/node_modules/yargs/build/lib/middleware.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/argsert.js +// ../testeranto/node_modules/yargs/build/lib/argsert.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/parse-command.js +// ../testeranto/node_modules/yargs/build/lib/parse-command.js init_cjs_shim(); function parseCommand(cmd) { const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, " "); @@ -49835,7 +49830,7 @@ function parseCommand(cmd) { return parsedCommand; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/argsert.js +// ../testeranto/node_modules/yargs/build/lib/argsert.js var positionName = ["first", "second", "third", "fourth", "fifth", "sixth"]; function argsert(arg1, arg2, arg3) { function parseArgs() { @@ -49893,7 +49888,7 @@ function argumentTypeError(observedType, allowedTypes, position) { throw new YError(`Invalid ${positionName[position] || "manyith"} argument. Expected ${allowedTypes.join(" or ")} but received ${observedType}.`); } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/middleware.js +// ../testeranto/node_modules/yargs/build/lib/middleware.js var GlobalMiddleware = class { constructor(yargs) { this.globalMiddleware = []; @@ -49975,7 +49970,7 @@ function applyMiddleware(argv, yargs, middlewares, beforeValidation) { }, argv); } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/maybe-async-result.js +// ../testeranto/node_modules/yargs/build/lib/utils/maybe-async-result.js init_cjs_shim(); function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => { throw err; @@ -49991,7 +49986,7 @@ function isFunction(arg) { return typeof arg === "function"; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/which-module.js +// ../testeranto/node_modules/yargs/build/lib/utils/which-module.js init_cjs_shim(); function whichModule(exported) { if (typeof __require === "undefined") @@ -50004,7 +49999,7 @@ function whichModule(exported) { return null; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/command.js +// ../testeranto/node_modules/yargs/build/lib/command.js var DEFAULT_MARKER = /(^\*)|(^\$0)/; var CommandInstance = class { constructor(usage2, validation2, globalMiddleware, shim3) { @@ -50396,10 +50391,10 @@ function isCommandHandlerDefinition(cmd) { return typeof cmd === "object" && !Array.isArray(cmd); } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/usage.js +// ../testeranto/node_modules/yargs/build/lib/usage.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/obj-filter.js +// ../testeranto/node_modules/yargs/build/lib/utils/obj-filter.js init_cjs_shim(); function objFilter(original = {}, filter2 = () => true) { const obj = {}; @@ -50411,7 +50406,7 @@ function objFilter(original = {}, filter2 = () => true) { return obj; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/set-blocking.js +// ../testeranto/node_modules/yargs/build/lib/utils/set-blocking.js init_cjs_shim(); function setBlocking(blocking) { if (typeof process === "undefined") @@ -50424,7 +50419,7 @@ function setBlocking(blocking) { }); } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/usage.js +// ../testeranto/node_modules/yargs/build/lib/usage.js function isBoolean(fail) { return typeof fail === "boolean"; } @@ -50950,10 +50945,10 @@ function getText2(text) { return isIndentedText(text) ? text.text : text; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/completion.js +// ../testeranto/node_modules/yargs/build/lib/completion.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/completion-templates.js +// ../testeranto/node_modules/yargs/build/lib/completion-templates.js init_cjs_shim(); var completionShTemplate = `###-begin-{{app_name}}-completions-### # @@ -51005,7 +51000,7 @@ compdef _{{app_name}}_yargs_completions {{app_name}} ###-end-{{app_name}}-completions-### `; -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/completion.js +// ../testeranto/node_modules/yargs/build/lib/completion.js var Completion = class { constructor(yargs, usage2, command2, shim3) { var _a2, _b2, _c2; @@ -51218,10 +51213,10 @@ function isFallbackCompletionFunction(completionFunction) { return completionFunction.length > 3; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/validation.js +// ../testeranto/node_modules/yargs/build/lib/validation.js init_cjs_shim(); -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/levenshtein.js +// ../testeranto/node_modules/yargs/build/lib/utils/levenshtein.js init_cjs_shim(); function levenshtein(a, b) { if (a.length === 0) @@ -51253,7 +51248,7 @@ function levenshtein(a, b) { return matrix[b.length][a.length]; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/validation.js +// ../testeranto/node_modules/yargs/build/lib/validation.js var specialKeys = ["$0", "--", "_"]; function validation(yargs, usage2, shim3) { const __ = shim3.y18n.__; @@ -51522,7 +51517,7 @@ ${customMsgs.join("\n")}` : ""; return self2; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/utils/apply-extends.js +// ../testeranto/node_modules/yargs/build/lib/utils/apply-extends.js init_cjs_shim(); var previouslyVisitedConfigs = []; var shim2; @@ -51576,7 +51571,7 @@ function mergeDeep(config1, config2) { return target; } -// node_modules/@puppeteer/browsers/node_modules/yargs/build/lib/yargs-factory.js +// ../testeranto/node_modules/yargs/build/lib/yargs-factory.js var __classPrivateFieldSet2 = function(receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); @@ -53075,19 +53070,19 @@ function isYargsInstance(y) { return !!y && typeof y.getInternalMethods === "function"; } -// node_modules/@puppeteer/browsers/node_modules/yargs/index.mjs +// ../testeranto/node_modules/yargs/index.mjs var Yargs = YargsFactory(esm_default); -// node_modules/@puppeteer/browsers/node_modules/yargs/helpers/helpers.mjs +// ../testeranto/node_modules/yargs/helpers/helpers.mjs init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js init_cjs_shim(); import { existsSync } from "fs"; import { tmpdir } from "os"; import { join } from "path"; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js init_cjs_shim(); var PipeTransport = class { #pipeWrite; @@ -53152,7 +53147,7 @@ var PipeTransport = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js var BrowserLauncher = class { #browser; /** @@ -53312,7 +53307,7 @@ var BrowserLauncher = class { async createBiDiOverCdpBrowser(browserProcess, connection, closeCallback, opts) { const BiDi = await import( /* webpackIgnore: true */ - "./bidi-COHEKL2Q.mjs" + "./bidi-2I2CA3WT.mjs" ); const bidiConnection = await BiDi.connectBidiOverCdp(connection); return await BiDi.BidiBrowser.create({ @@ -53332,7 +53327,7 @@ var BrowserLauncher = class { const transport = await NodeWebSocketTransport.create(browserWSEndpoint); const BiDi = await import( /* webpackIgnore: true */ - "./bidi-COHEKL2Q.mjs" + "./bidi-2I2CA3WT.mjs" ); const bidiConnection = new BiDi.BidiConnection(browserWSEndpoint, transport, opts.slowMo, opts.protocolTimeout); return await BiDi.BidiBrowser.create({ @@ -53400,7 +53395,7 @@ For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/util/fs.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/util/fs.js init_cjs_shim(); import fs3 from "fs"; var rmOptions = { @@ -53412,7 +53407,7 @@ async function rm(path10) { await fs3.promises.rm(path10, rmOptions); } -// node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js var ChromeLauncher = class extends BrowserLauncher { constructor(puppeteer2) { super(puppeteer2, "chrome"); @@ -53622,7 +53617,7 @@ function removeMatchingFlags(array, flag) { return array; } -// node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js init_cjs_shim(); import fs4 from "fs"; import { rename, unlink, mkdtemp as mkdtemp2 } from "fs/promises"; @@ -53781,7 +53776,7 @@ var FirefoxLauncher = class extends BrowserLauncher { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.js init_cjs_shim(); var PuppeteerNode = class extends Puppeteer { #_launcher; @@ -54005,7 +54000,7 @@ var PuppeteerNode = class extends Puppeteer { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js init_cjs_shim(); var import_debug5 = __toESM(require_src(), 1); import { spawn, spawnSync } from "child_process"; @@ -54228,7 +54223,7 @@ var ScreenRecorder = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js import fs5 from "fs"; import path9 from "path"; environment.value = { @@ -54260,9 +54255,6 @@ var { var puppeteer_core_default = puppeteer; export { - require_graceful_fs, - require_once, - require_get_stream, puppeteer_core_default }; /*! Bundled license information: diff --git a/docs/node/chunk-O3OSUFIX.mjs b/docs/node/chunk-47FK6YVH.mjs similarity index 94% rename from docs/node/chunk-O3OSUFIX.mjs rename to docs/node/chunk-47FK6YVH.mjs index 7ac6dc26..a9ba3f29 100644 --- a/docs/node/chunk-O3OSUFIX.mjs +++ b/docs/node/chunk-47FK6YVH.mjs @@ -1,18 +1,18 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { puppeteer_core_default -} from "./chunk-CDRQ6FZS.mjs"; +} from "./chunk-3P3QDLUF.mjs"; import { init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/testeranto/src/Node.ts +// ../testeranto/src/Node.ts init_cjs_shim(); -// node_modules/testeranto/src/lib/core.ts +// ../testeranto/src/lib/core.ts init_cjs_shim(); -// node_modules/testeranto/src/lib/index.ts +// ../testeranto/src/lib/index.ts init_cjs_shim(); var BaseTestInterface = { beforeAll: async (s) => s, @@ -35,16 +35,9 @@ var defaultTestResourceRequirement = { ports: 0 }; -// node_modules/testeranto/src/lib/abstractBase.ts +// ../testeranto/src/lib/abstractBase.ts init_cjs_shim(); var BaseSuite = class { - name; - givens; - checks; - store; - fails; - testResourceConfiguration; - index; constructor(name, index, givens = {}, checks = []) { this.name = name; this.index = index; @@ -145,16 +138,6 @@ var BaseSuite = class { } }; var BaseGiven = class { - name; - features; - whens; - thens; - error; - fail; - store; - recommendedFsPath; - givenCB; - initialValues; constructor(name, features, whens, thens, givenCB, initialValues) { this.name = name; this.features = features; @@ -275,9 +258,6 @@ var BaseGiven = class { } }; var BaseWhen = class { - name; - whenCB; - error; constructor(name, whenCB) { this.name = name; this.whenCB = whenCB; @@ -317,9 +297,6 @@ var BaseWhen = class { } }; var BaseThen = class { - name; - thenCB; - error; constructor(name, thenCB) { this.name = name; this.thenCB = thenCB; @@ -348,11 +325,6 @@ var BaseThen = class { } }; var BaseCheck = class { - name; - features; - checkCB; - whens; - thens; constructor(name, features, checkCB, whens, thens) { this.name = name; this.features = features; @@ -403,15 +375,16 @@ var BaseCheck = class { } }; -// node_modules/testeranto/src/lib/classBuilder.ts +// ../testeranto/src/lib/classBuilder.ts init_cjs_shim(); -// node_modules/testeranto/src/lib/basebuilder.ts +// ../testeranto/src/lib/basebuilder.ts init_cjs_shim(); var BaseBuilder = class { constructor(input, suitesOverrides, givenOverides, whenOverides, thenOverides, checkOverides, testResourceRequirement, testSpecification) { this.input = input; this.artifacts = []; + this.artifacts = []; this.testResourceRequirement = testResourceRequirement; this.suitesOverrides = suitesOverrides; this.givenOverides = givenOverides; @@ -450,7 +423,6 @@ var BaseBuilder = class { const runner = suiteRunner(suite); return { test: suite, - // testResourceRequirement, toObj: () => { return suite.toObj(); }, @@ -489,18 +461,6 @@ var BaseBuilder = class { }; }); } - specs; - assertThis; - testResourceRequirement; - artifacts = []; - testJobs; - testSpecification; - suitesOverrides; - givenOverides; - whenOverides; - thenOverides; - checkOverides; - puppetMaster; Specs() { return this.specs; } @@ -521,7 +481,7 @@ var BaseBuilder = class { } }; -// node_modules/testeranto/src/lib/classBuilder.ts +// ../testeranto/src/lib/classBuilder.ts var ClassBuilder = class extends BaseBuilder { constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, checkKlasser, testResourceRequirement) { const classySuites = Object.entries(testImplementation.suites).reduce( @@ -607,7 +567,7 @@ var ClassBuilder = class extends BaseBuilder { } }; -// node_modules/testeranto/src/lib/core.ts +// ../testeranto/src/lib/core.ts var Testeranto = class extends ClassBuilder { constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testInterface) { const fullTestInterface = DefaultTestInterface(testInterface); @@ -679,7 +639,6 @@ var Testeranto = class extends ClassBuilder { } }, class Check extends BaseCheck { - initialValues; constructor(name, features, checkCallback, whens, thens, initialValues) { super(name, features, checkCallback, whens, thens); this.initialValues = initialValues; @@ -716,30 +675,19 @@ var Testeranto = class extends ClassBuilder { } }; -// node_modules/testeranto/src/PM/node.ts +// ../testeranto/src/PM/node.ts init_cjs_shim(); import fs from "fs"; import path from "path"; -// node_modules/testeranto/src/PM/index.ts +// ../testeranto/src/PM/index.ts init_cjs_shim(); var PM = class { - server; - browser; - testResourceConfiguration; - // pages(): Promise; - // pages(): Promise { - // return new Promise((res, rej) => { - // res(super.pages()); - // }); - // } }; -// node_modules/testeranto/src/PM/node.ts +// ../testeranto/src/PM/node.ts var fPaths = []; var PM_Node = class extends PM { - server; - testResourceConfiguration; constructor(t) { super(); this.server = {}; @@ -831,7 +779,7 @@ var PM_Node = class extends PM { } }; -// node_modules/testeranto/src/Node.ts +// ../testeranto/src/Node.ts var NodeTesteranto = class extends Testeranto { constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) { super( diff --git a/docs/node/chunk-EYV3TTNW.mjs b/docs/node/chunk-5K2J4QBY.mjs similarity index 98% rename from docs/node/chunk-EYV3TTNW.mjs rename to docs/node/chunk-5K2J4QBY.mjs index f3c57371..e25d8b0b 100644 --- a/docs/node/chunk-EYV3TTNW.mjs +++ b/docs/node/chunk-5K2J4QBY.mjs @@ -1,7 +1,7 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; // src/app.test.ts init_cjs_shim(); diff --git a/docs/node/chunk-GF7QN4NN.mjs b/docs/node/chunk-CTKBT5JH.mjs similarity index 88% rename from docs/node/chunk-GF7QN4NN.mjs rename to docs/node/chunk-CTKBT5JH.mjs index d6831089..77eade2a 100644 --- a/docs/node/chunk-GF7QN4NN.mjs +++ b/docs/node/chunk-CTKBT5JH.mjs @@ -1,9 +1,9 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js init_cjs_shim(); var BrowserWebSocketTransport = class { static create(url) { diff --git a/docs/node/chunk-FWCV2CYO.mjs b/docs/node/chunk-EP6GCRJ6.mjs similarity index 99% rename from docs/node/chunk-FWCV2CYO.mjs rename to docs/node/chunk-EP6GCRJ6.mjs index 235e832b..6fa1a661 100644 --- a/docs/node/chunk-FWCV2CYO.mjs +++ b/docs/node/chunk-EP6GCRJ6.mjs @@ -3,7 +3,7 @@ import { __commonJS, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; // node_modules/immer/dist/immer.cjs.production.min.js var require_immer_cjs_production_min = __commonJS({ diff --git a/docs/node/chunk-LE3VN4X4.mjs b/docs/node/chunk-FLSG3ZVV.mjs similarity index 96% rename from docs/node/chunk-LE3VN4X4.mjs rename to docs/node/chunk-FLSG3ZVV.mjs index 28925c65..2c596f1c 100644 --- a/docs/node/chunk-LE3VN4X4.mjs +++ b/docs/node/chunk-FLSG3ZVV.mjs @@ -3,11 +3,11 @@ import { __commonJS, __require, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/ms/index.js +// ../testeranto/node_modules/ms/index.js var require_ms = __commonJS({ - "node_modules/ms/index.js"(exports, module) { + "../testeranto/node_modules/ms/index.js"(exports, module) { init_cjs_shim(); var s = 1e3; var m = s * 60; @@ -122,9 +122,9 @@ var require_ms = __commonJS({ } }); -// node_modules/debug/src/common.js +// ../testeranto/node_modules/debug/src/common.js var require_common = __commonJS({ - "node_modules/debug/src/common.js"(exports, module) { + "../testeranto/node_modules/debug/src/common.js"(exports, module) { init_cjs_shim(); function setup(env) { createDebug.debug = createDebug; @@ -286,9 +286,9 @@ var require_common = __commonJS({ } }); -// node_modules/debug/src/browser.js +// ../testeranto/node_modules/debug/src/browser.js var require_browser = __commonJS({ - "node_modules/debug/src/browser.js"(exports, module) { + "../testeranto/node_modules/debug/src/browser.js"(exports, module) { init_cjs_shim(); exports.formatArgs = formatArgs; exports.save = save; @@ -457,9 +457,9 @@ var require_browser = __commonJS({ } }); -// node_modules/supports-color/node_modules/has-flag/index.js +// ../testeranto/node_modules/has-flag/index.js var require_has_flag = __commonJS({ - "node_modules/supports-color/node_modules/has-flag/index.js"(exports, module) { + "../testeranto/node_modules/has-flag/index.js"(exports, module) { "use strict"; init_cjs_shim(); module.exports = (flag, argv) => { @@ -472,9 +472,9 @@ var require_has_flag = __commonJS({ } }); -// node_modules/supports-color/index.js +// ../testeranto/node_modules/supports-color/index.js var require_supports_color = __commonJS({ - "node_modules/supports-color/index.js"(exports, module) { + "../testeranto/node_modules/supports-color/index.js"(exports, module) { "use strict"; init_cjs_shim(); var os = __require("os"); @@ -568,9 +568,9 @@ var require_supports_color = __commonJS({ } }); -// node_modules/debug/src/node.js +// ../testeranto/node_modules/debug/src/node.js var require_node = __commonJS({ - "node_modules/debug/src/node.js"(exports, module) { + "../testeranto/node_modules/debug/src/node.js"(exports, module) { init_cjs_shim(); var tty = __require("tty"); var util = __require("util"); @@ -743,9 +743,9 @@ var require_node = __commonJS({ } }); -// node_modules/debug/src/index.js +// ../testeranto/node_modules/debug/src/index.js var require_src = __commonJS({ - "node_modules/debug/src/index.js"(exports, module) { + "../testeranto/node_modules/debug/src/index.js"(exports, module) { init_cjs_shim(); if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) { module.exports = require_browser(); diff --git a/docs/node/chunk-IAOYGSRV.mjs b/docs/node/chunk-LNUIT2ZO.mjs similarity index 90% rename from docs/node/chunk-IAOYGSRV.mjs rename to docs/node/chunk-LNUIT2ZO.mjs index 1dae255b..497ea414 100644 --- a/docs/node/chunk-IAOYGSRV.mjs +++ b/docs/node/chunk-LNUIT2ZO.mjs @@ -1,16 +1,16 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { puppeteer_core_default -} from "./chunk-CDRQ6FZS.mjs"; +} from "./chunk-3P3QDLUF.mjs"; import { __commonJS, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/react/cjs/react.production.min.js +// ../testeranto/node_modules/react/cjs/react.production.min.js var require_react_production_min = __commonJS({ - "node_modules/react/cjs/react.production.min.js"(exports) { + "../testeranto/node_modules/react/cjs/react.production.min.js"(exports) { "use strict"; init_cjs_shim(); var l = Symbol.for("react.element"); @@ -306,9 +306,9 @@ var require_react_production_min = __commonJS({ } }); -// node_modules/react/cjs/react.development.js +// ../testeranto/node_modules/react/cjs/react.development.js var require_react_development = __commonJS({ - "node_modules/react/cjs/react.development.js"(exports, module) { + "../testeranto/node_modules/react/cjs/react.development.js"(exports, module) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV !== "production") { @@ -2180,9 +2180,9 @@ var require_react_development = __commonJS({ } }); -// node_modules/react/index.js +// ../testeranto/node_modules/react/index.js var require_react = __commonJS({ - "node_modules/react/index.js"(exports, module) { + "../testeranto/node_modules/react/index.js"(exports, module) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV === "production") { @@ -2193,9 +2193,9 @@ var require_react = __commonJS({ } }); -// node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +// ../testeranto/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js var require_scheduler_unstable_mock_production_min = __commonJS({ - "node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js"(exports) { + "../testeranto/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js"(exports) { "use strict"; init_cjs_shim(); function f(a, b) { @@ -2523,9 +2523,9 @@ var require_scheduler_unstable_mock_production_min = __commonJS({ } }); -// node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +// ../testeranto/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js var require_scheduler_unstable_mock_development = __commonJS({ - "node_modules/scheduler/cjs/scheduler-unstable_mock.development.js"(exports) { + "../testeranto/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js"(exports) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV !== "production") { @@ -3060,9 +3060,9 @@ var require_scheduler_unstable_mock_development = __commonJS({ } }); -// node_modules/scheduler/unstable_mock.js +// ../testeranto/node_modules/scheduler/unstable_mock.js var require_unstable_mock = __commonJS({ - "node_modules/scheduler/unstable_mock.js"(exports, module) { + "../testeranto/node_modules/scheduler/unstable_mock.js"(exports, module) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV === "production") { @@ -3073,9 +3073,9 @@ var require_unstable_mock = __commonJS({ } }); -// node_modules/scheduler/cjs/scheduler.production.min.js +// ../testeranto/node_modules/scheduler/cjs/scheduler.production.min.js var require_scheduler_production_min = __commonJS({ - "node_modules/scheduler/cjs/scheduler.production.min.js"(exports) { + "../testeranto/node_modules/scheduler/cjs/scheduler.production.min.js"(exports) { "use strict"; init_cjs_shim(); function f(a, b) { @@ -3345,9 +3345,9 @@ var require_scheduler_production_min = __commonJS({ } }); -// node_modules/scheduler/cjs/scheduler.development.js +// ../testeranto/node_modules/scheduler/cjs/scheduler.development.js var require_scheduler_development = __commonJS({ - "node_modules/scheduler/cjs/scheduler.development.js"(exports) { + "../testeranto/node_modules/scheduler/cjs/scheduler.development.js"(exports) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV !== "production") { @@ -3796,9 +3796,9 @@ var require_scheduler_development = __commonJS({ } }); -// node_modules/scheduler/index.js +// ../testeranto/node_modules/scheduler/index.js var require_scheduler = __commonJS({ - "node_modules/scheduler/index.js"(exports, module) { + "../testeranto/node_modules/scheduler/index.js"(exports, module) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV === "production") { @@ -3809,9 +3809,9 @@ var require_scheduler = __commonJS({ } }); -// node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +// ../testeranto/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js var require_react_test_renderer_production_min = __commonJS({ - "node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js"(exports) { + "../testeranto/node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js"(exports) { "use strict"; init_cjs_shim(); var aa = require_react(); @@ -8395,9 +8395,9 @@ var require_react_test_renderer_production_min = __commonJS({ } }); -// node_modules/react-test-renderer/cjs/react-test-renderer.development.js +// ../testeranto/node_modules/react-test-renderer/cjs/react-test-renderer.development.js var require_react_test_renderer_development = __commonJS({ - "node_modules/react-test-renderer/cjs/react-test-renderer.development.js"(exports) { + "../testeranto/node_modules/react-test-renderer/cjs/react-test-renderer.development.js"(exports) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV !== "production") { @@ -21412,9 +21412,9 @@ var require_react_test_renderer_development = __commonJS({ } }); -// node_modules/react-test-renderer/index.js +// ../testeranto/node_modules/react-test-renderer/index.js var require_react_test_renderer = __commonJS({ - "node_modules/react-test-renderer/index.js"(exports, module) { + "../testeranto/node_modules/react-test-renderer/index.js"(exports, module) { "use strict"; init_cjs_shim(); if (process.env.NODE_ENV === "production") { @@ -21425,138 +21425,2323 @@ var require_react_test_renderer = __commonJS({ } }); -// node_modules/testeranto/dist/module/SubPackages/react-test-renderer/jsx/node.js -init_cjs_shim(); - -// node_modules/testeranto/dist/module/Node.js -init_cjs_shim(); - -// node_modules/testeranto/dist/module/lib/core.js -init_cjs_shim(); - -// node_modules/testeranto/dist/module/lib/index.js -init_cjs_shim(); -var BaseTestInterface = { - beforeAll: async (s) => s, - beforeEach: async function(subject, initialValues, x, testResource, pm) { - return subject; - }, - afterEach: async (s) => s, - afterAll: (store) => void 0, - butThen: async (store, thenCb) => thenCb(store), - andWhen: (a) => a, - assertThis: () => null -}; -var DefaultTestInterface = (p) => { - return Object.assign(Object.assign({}, BaseTestInterface), p); -}; -var defaultTestResourceRequirement = { - ports: 0 -}; - -// node_modules/testeranto/dist/module/lib/abstractBase.js -init_cjs_shim(); -var BaseSuite = class { - constructor(name, index, givens = {}, checks = []) { - this.name = name; - this.index = index; - this.givens = givens; - this.checks = checks; - this.fails = []; - } - toObj() { - return { - name: this.name, - givens: Object.keys(this.givens).map((k) => this.givens[k].toObj()), - fails: this.fails +// node_modules/react/cjs/react.production.min.js +var require_react_production_min2 = __commonJS({ + "node_modules/react/cjs/react.production.min.js"(exports) { + "use strict"; + init_cjs_shim(); + var l = Symbol.for("react.element"); + var n = Symbol.for("react.portal"); + var p = Symbol.for("react.fragment"); + var q = Symbol.for("react.strict_mode"); + var r = Symbol.for("react.profiler"); + var t = Symbol.for("react.provider"); + var u = Symbol.for("react.context"); + var v = Symbol.for("react.forward_ref"); + var w = Symbol.for("react.suspense"); + var x = Symbol.for("react.memo"); + var y = Symbol.for("react.lazy"); + var z = Symbol.iterator; + function A(a) { + if (null === a || "object" !== typeof a) + return null; + a = z && a[z] || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + var B = { isMounted: function() { + return false; + }, enqueueForceUpdate: function() { + }, enqueueReplaceState: function() { + }, enqueueSetState: function() { + } }; + var C = Object.assign; + var D = {}; + function E(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + E.prototype.isReactComponent = {}; + E.prototype.setState = function(a, b) { + if ("object" !== typeof a && "function" !== typeof a && null != a) + throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a, b, "setState"); }; - } - setup(s, artifactory, tr, pm) { - return new Promise((res) => res(s)); - } - assertThat(t) { - return t; - } - afterAll(store, artifactory, pm) { - return store; - } - async run(input, testResourceConfiguration, artifactory, tLog, pm) { - this.testResourceConfiguration = testResourceConfiguration; - tLog("test resources: ", JSON.stringify(testResourceConfiguration)); - const suiteArtifactory = (fPath, value) => artifactory(`suite-${this.index}-${this.name}/${fPath}`, value); - console.log("\nSuite:", this.index, this.name); - tLog("\nSuite:", this.index, this.name); - const sNdx = this.index; - const sName = this.name; - for (const [gNdx, g] of Object.entries(this.givens)) { - const subject = await this.setup(input, suiteArtifactory, testResourceConfiguration, pm); - const giver = this.givens[gNdx]; - try { - this.store = await giver.give(subject, gNdx, testResourceConfiguration, this.assertThat, suiteArtifactory, tLog, pm, sNdx); - } catch (e) { - console.error(e); - this.fails.push(giver); + E.prototype.forceUpdate = function(a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); + }; + function F() { + } + F.prototype = E.prototype; + function G(a, b, e) { + this.props = a; + this.context = b; + this.refs = D; + this.updater = e || B; + } + var H = G.prototype = new F(); + H.constructor = G; + C(H, E.prototype); + H.isPureReactComponent = true; + var I = Array.isArray; + var J = Object.prototype.hasOwnProperty; + var K = { current: null }; + var L = { key: true, ref: true, __self: true, __source: true }; + function M(a, b, e) { + var d, c = {}, k = null, h = null; + if (null != b) + for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) + J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]); + var g = arguments.length - 2; + if (1 === g) + c.children = e; + else if (1 < g) { + for (var f = Array(g), m = 0; m < g; m++) + f[m] = arguments[m + 2]; + c.children = f; } + if (a && a.defaultProps) + for (d in g = a.defaultProps, g) + void 0 === c[d] && (c[d] = g[d]); + return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current }; } - const afterAllProxy = new Proxy(pm, { - get(target, prop, receiver) { - if (prop === "writeFileSync") { - return (fp, contents) => target[prop](`suite-${sNdx}/afterAll/${fp}`, contents); - } - if (prop === "browser") { - return new Proxy(target[prop], { - get(bTarget, bProp, bReceiver) { - if (bProp === "pages") { - return async () => { - return bTarget.pages().then((pages) => { - return pages.map((page) => { - return new Proxy(page, { - get(pTarget, pProp, pReciever) { - if (pProp === "screenshot") { - return async (x) => { - return await window["custom-screenshot"](Object.assign(Object.assign({}, x), { path: `${testResourceConfiguration.fs}/suite-${sNdx}/afterAll/` + x.path })); - }; - } else { - return Reflect.get(...arguments); - } - } - }); - }); - }); - }; - } + function N(a, b) { + return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner }; + } + function O(a) { + return "object" === typeof a && null !== a && a.$$typeof === l; + } + function escape(a) { + var b = { "=": "=0", ":": "=2" }; + return "$" + a.replace(/[=:]/g, function(a2) { + return b[a2]; + }); + } + var P = /\/+/g; + function Q(a, b) { + return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); + } + function R(a, b, e, d, c) { + var k = typeof a; + if ("undefined" === k || "boolean" === k) + a = null; + var h = false; + if (null === a) + h = true; + else + switch (k) { + case "string": + case "number": + h = true; + break; + case "object": + switch (a.$$typeof) { + case l: + case n: + h = true; } - }); } - return Reflect.get(...arguments); - } - }); - try { - this.afterAll(this.store, artifactory, afterAllProxy); - } catch (e) { - console.error(e); + if (h) + return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) { + return a2; + })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1; + h = 0; + d = "" === d ? "." : d + ":"; + if (I(a)) + for (var g = 0; g < a.length; g++) { + k = a[g]; + var f = d + Q(k, g); + h += R(k, b, e, f, c); + } + else if (f = A(a), "function" === typeof f) + for (a = f.call(a), g = 0; !(k = a.next()).done; ) + k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c); + else if ("object" === k) + throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + return h; } - return this; - } -}; -var BaseGiven = class { - constructor(name, features, whens, thens, givenCB, initialValues) { - this.name = name; - this.features = features; - this.whens = whens; - this.thens = thens; - this.givenCB = givenCB; - this.initialValues = initialValues; - } - beforeAll(store, artifactory) { - return store; - } - toObj() { - return { - name: this.name, - whens: this.whens.map((w) => w.toObj()), - thens: this.thens.map((t) => t.toObj()), - error: this.error ? [this.error, this.error.stack] : null, + function S(a, b, e) { + if (null == a) + return a; + var d = [], c = 0; + R(a, d, "", "", function(a2) { + return b.call(e, a2, c++); + }); + return d; + } + function T(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then(function(b2) { + if (0 === a._status || -1 === a._status) + a._status = 1, a._result = b2; + }, function(b2) { + if (0 === a._status || -1 === a._status) + a._status = 2, a._result = b2; + }); + -1 === a._status && (a._status = 0, a._result = b); + } + if (1 === a._status) + return a._result.default; + throw a._result; + } + var U = { current: null }; + var V = { transition: null }; + var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K }; + exports.Children = { map: S, forEach: function(a, b, e) { + S(a, function() { + b.apply(this, arguments); + }, e); + }, count: function(a) { + var b = 0; + S(a, function() { + b++; + }); + return b; + }, toArray: function(a) { + return S(a, function(a2) { + return a2; + }) || []; + }, only: function(a) { + if (!O(a)) + throw Error("React.Children.only expected to receive a single React element child."); + return a; + } }; + exports.Component = E; + exports.Fragment = p; + exports.Profiler = r; + exports.PureComponent = G; + exports.StrictMode = q; + exports.Suspense = w; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; + exports.cloneElement = function(a, b, e) { + if (null === a || void 0 === a) + throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); + var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner; + if (null != b) { + void 0 !== b.ref && (k = b.ref, h = K.current); + void 0 !== b.key && (c = "" + b.key); + if (a.type && a.type.defaultProps) + var g = a.type.defaultProps; + for (f in b) + J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]); + } + var f = arguments.length - 2; + if (1 === f) + d.children = e; + else if (1 < f) { + g = Array(f); + for (var m = 0; m < f; m++) + g[m] = arguments[m + 2]; + d.children = g; + } + return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h }; + }; + exports.createContext = function(a) { + a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; + a.Provider = { $$typeof: t, _context: a }; + return a.Consumer = a; + }; + exports.createElement = M; + exports.createFactory = function(a) { + var b = M.bind(null, a); + b.type = a; + return b; + }; + exports.createRef = function() { + return { current: null }; + }; + exports.forwardRef = function(a) { + return { $$typeof: v, render: a }; + }; + exports.isValidElement = O; + exports.lazy = function(a) { + return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T }; + }; + exports.memo = function(a, b) { + return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; + }; + exports.startTransition = function(a) { + var b = V.transition; + V.transition = {}; + try { + a(); + } finally { + V.transition = b; + } + }; + exports.unstable_act = function() { + throw Error("act(...) is not supported in production builds of React."); + }; + exports.useCallback = function(a, b) { + return U.current.useCallback(a, b); + }; + exports.useContext = function(a) { + return U.current.useContext(a); + }; + exports.useDebugValue = function() { + }; + exports.useDeferredValue = function(a) { + return U.current.useDeferredValue(a); + }; + exports.useEffect = function(a, b) { + return U.current.useEffect(a, b); + }; + exports.useId = function() { + return U.current.useId(); + }; + exports.useImperativeHandle = function(a, b, e) { + return U.current.useImperativeHandle(a, b, e); + }; + exports.useInsertionEffect = function(a, b) { + return U.current.useInsertionEffect(a, b); + }; + exports.useLayoutEffect = function(a, b) { + return U.current.useLayoutEffect(a, b); + }; + exports.useMemo = function(a, b) { + return U.current.useMemo(a, b); + }; + exports.useReducer = function(a, b, e) { + return U.current.useReducer(a, b, e); + }; + exports.useRef = function(a) { + return U.current.useRef(a); + }; + exports.useState = function(a) { + return U.current.useState(a); + }; + exports.useSyncExternalStore = function(a, b, e) { + return U.current.useSyncExternalStore(a, b, e); + }; + exports.useTransition = function() { + return U.current.useTransition(); + }; + exports.version = "18.2.0"; + } +}); + +// node_modules/react/cjs/react.development.js +var require_react_development2 = __commonJS({ + "node_modules/react/cjs/react.development.js"(exports, module) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var ReactVersion = "18.2.0"; + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + var ReactCurrentBatchConfig = { + transition: null + }; + var ReactCurrentActQueue = { + current: null, + // Used to reproduce behavior of `batchedUpdates` in legacy mode. + isBatchingLegacy: false, + didScheduleLegacyUpdate: false + }; + var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + var ReactDebugCurrentFrame = {}; + var currentExtraStackFrame = null; + function setExtraStackFrame(stack) { + { + currentExtraStackFrame = stack; + } + } + { + ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { + { + currentExtraStackFrame = stack; + } + }; + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame.getStackAddendum = function() { + var stack = ""; + if (currentExtraStackFrame) { + stack += currentExtraStackFrame; + } + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ""; + } + return stack; + }; + } + var enableScopeAPI = false; + var enableCacheElement = false; + var enableTransitionTracing = false; + var enableLegacyHidden = false; + var enableDebugTracing = false; + var ReactSharedInternals = { + ReactCurrentDispatcher, + ReactCurrentBatchConfig, + ReactCurrentOwner + }; + { + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; + } + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var didWarnStateUpdateForUnmountedComponent = {}; + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + error("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.", callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function(publicInstance) { + return false; + }, + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function(publicInstance, callback, callerName) { + warnNoop(publicInstance, "forceUpdate"); + }, + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, "replaceState"); + }, + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, "setState"); + } + }; + var assign = Object.assign; + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + function Component(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + Component.prototype.isReactComponent = {}; + Component.prototype.setState = function(partialState, callback) { + if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { + throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + } + this.updater.enqueueSetState(this, partialState, callback, "setState"); + }; + Component.prototype.forceUpdate = function(callback) { + this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); + }; + { + var deprecatedAPIs = { + isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], + replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] + }; + var defineDeprecationWarning = function(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function() { + warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); + return void 0; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + function ComponentDummy() { + } + ComponentDummy.prototype = Component.prototype; + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + assign(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; + } + var isArrayImpl = Array.isArray; + function isArray(a) { + return isArrayImpl(a); + } + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, "ref")) { + var getter = Object.getOwnPropertyDescriptor(config, "ref").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== void 0; + } + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== void 0; + } + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function() { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error("%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://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, "key", { + get: warnAboutAccessingKey, + configurable: true + }); + } + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function() { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error("%s: `ref` 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://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, "ref", { + get: warnAboutAccessingRef, + configurable: true + }); + } + function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + var ReactElement = function(type, key, ref, self, source, owner, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type, + key, + ref, + props, + // Record the component responsible for creating this element. + _owner: owner + }; + { + element._store = {}; + Object.defineProperty(element._store, "validated", { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + Object.defineProperty(element, "_self", { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + Object.defineProperty(element, "_source", { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + return element; + }; + function createElement(type, config, children) { + var propName; + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + self = config.__self === void 0 ? null : config.__self; + source = config.__source === void 0 ? null : config.__source; + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === void 0) { + props[propName] = defaultProps[propName]; + } + } + } + { + if (key || ref) { + var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + function cloneElement(element, config, children) { + if (element === null || element === void 0) { + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); + } + var propName; + var props = assign({}, element.props); + var key = element.key; + var ref = element.ref; + var self = element._self; + var source = element._source; + var owner = element._owner; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + var defaultProps; + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === void 0 && defaultProps !== void 0) { + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + props.children = childArray; + } + return ReactElement(element.type, key, ref, self, source, owner, props); + } + function isValidElement(object) { + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + var SEPARATOR = "."; + var SUBSEPARATOR = ":"; + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + "=": "=0", + ":": "=2" + }; + var escapedString = key.replace(escapeRegex, function(match) { + return escaperLookup[match]; + }); + return "$" + escapedString; + } + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text) { + return text.replace(userProvidedKeyEscapeRegex, "$&/"); + } + function getElementKey(element, index) { + if (typeof element === "object" && element !== null && element.key != null) { + { + checkKeyStringCoercion(element.key); + } + return escape("" + element.key); + } + return index.toString(36); + } + function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { + var type = typeof children; + if (type === "undefined" || type === "boolean") { + children = null; + } + var invokeCallback = false; + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case "string": + case "number": + invokeCallback = true; + break; + case "object": + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + } + } + if (invokeCallback) { + var _child = children; + var mappedChild = callback(_child); + var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; + if (isArray(mappedChild)) { + var escapedChildKey = ""; + if (childKey != null) { + escapedChildKey = escapeUserProvidedKey(childKey) + "/"; + } + mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + { + if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { + checkKeyStringCoercion(mappedChild.key); + } + } + mappedChild = cloneAndReplaceKey( + mappedChild, + // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? ( + // $FlowFixMe Flow incorrectly thinks existing element's key can be a number + // eslint-disable-next-line react-internal/safe-string-coercion + escapeUserProvidedKey("" + mappedChild.key) + "/" + ) : "") + childKey + ); + } + array.push(mappedChild); + } + return 1; + } + var child; + var nextName; + var subtreeCount = 0; + var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getElementKey(child, i); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var iterableChildren = children; + { + if (iteratorFn === iterableChildren.entries) { + if (!didWarnAboutMaps) { + warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(iterableChildren); + var step; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getElementKey(child, ii++); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else if (type === "object") { + var childrenString = String(children); + throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); + } + } + return subtreeCount; + } + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + var result = []; + var count = 0; + mapIntoArray(children, result, "", "", function(child) { + return func.call(context, child, count++); + }); + return result; + } + function countChildren(children) { + var n = 0; + mapChildren(children, function() { + n++; + }); + return n; + } + function forEachChildren(children, forEachFunc, forEachContext) { + mapChildren(children, function() { + forEachFunc.apply(this, arguments); + }, forEachContext); + } + function toArray(children) { + return mapChildren(children, function(child) { + return child; + }) || []; + } + function onlyChild(children) { + if (!isValidElement(children)) { + throw new Error("React.Children.only expected to receive a single React element child."); + } + return children; + } + function createContext(defaultValue) { + var context = { + $$typeof: REACT_CONTEXT_TYPE, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null, + // Add these to use same hidden class in VM as ServerContext + _defaultValue: null, + _globalName: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + var hasWarnedAboutDisplayNameOnConsumer = false; + { + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context + }; + Object.defineProperties(Consumer, { + Provider: { + get: function() { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Provider; + }, + set: function(_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function() { + return context._currentValue; + }, + set: function(_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function() { + return context._currentValue2; + }, + set: function(_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function() { + return context._threadCount; + }, + set: function(_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function() { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Consumer; + } + }, + displayName: { + get: function() { + return context.displayName; + }, + set: function(displayName) { + if (!hasWarnedAboutDisplayNameOnConsumer) { + warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); + hasWarnedAboutDisplayNameOnConsumer = true; + } + } + } + }); + context.Consumer = Consumer; + } + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + return context; + } + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function lazyInitializer(payload) { + if (payload._status === Uninitialized) { + var ctor = payload._result; + var thenable = ctor(); + thenable.then(function(moduleObject2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var resolved = payload; + resolved._status = Resolved; + resolved._result = moduleObject2; + } + }, function(error2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var rejected = payload; + rejected._status = Rejected; + rejected._result = error2; + } + }); + if (payload._status === Uninitialized) { + var pending = payload; + pending._status = Pending; + pending._result = thenable; + } + } + if (payload._status === Resolved) { + var moduleObject = payload._result; + { + if (moduleObject === void 0) { + error("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?", moduleObject); + } + } + { + if (!("default" in moduleObject)) { + error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); + } + } + return moduleObject.default; + } else { + throw payload._result; + } + } + function lazy(ctor) { + var payload = { + // We use these fields to store the result. + _status: Uninitialized, + _result: ctor + }; + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: payload, + _init: lazyInitializer + }; + { + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function() { + return defaultProps; + }, + set: function(newDefaultProps) { + error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + defaultProps = newDefaultProps; + Object.defineProperty(lazyType, "defaultProps", { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function() { + return propTypes; + }, + set: function(newPropTypes) { + error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + propTypes = newPropTypes; + Object.defineProperty(lazyType, "propTypes", { + enumerable: true + }); + } + } + }); + } + return lazyType; + } + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); + } else if (typeof render !== "function") { + error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); + } + } + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); + } + } + } + var elementType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!render.name && !render.displayName) { + render.displayName = name; + } + } + }); + } + return elementType; + } + var REACT_MODULE_REFERENCE; + { + REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); + } + function isValidElementType(type) { + if (typeof type === "string" || typeof type === "function") { + return true; + } + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { + return true; + } + if (typeof type === "object" && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { + return true; + } + } + return false; + } + function memo(type, compare) { + { + if (!isValidElementType(type)) { + error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); + } + } + var elementType = { + $$typeof: REACT_MEMO_TYPE, + type, + compare: compare === void 0 ? null : compare + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!type.name && !type.displayName) { + type.displayName = name; + } + } + }); + } + return elementType; + } + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + { + if (dispatcher === null) { + error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + } + return dispatcher; + } + function useContext(Context) { + var dispatcher = resolveDispatcher(); + { + if (Context._context !== void 0) { + var realContext = Context._context; + if (realContext.Consumer === Context) { + error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); + } else if (realContext.Provider === Context) { + error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); + } + } + } + return dispatcher.useContext(Context); + } + function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); + } + function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); + } + function useInsertionEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useInsertionEffect(create, deps); + } + function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); + } + function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + function useTransition() { + var dispatcher = resolveDispatcher(); + return dispatcher.useTransition(); + } + function useDeferredValue(value) { + var dispatcher = resolveDispatcher(); + return dispatcher.useDeferredValue(value); + } + function useId() { + var dispatcher = resolveDispatcher(); + return dispatcher.useId(); + } + function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var dispatcher = resolveDispatcher(); + return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); + } + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn.displayName); + } + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher$1.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component2) { + var prototype = Component2.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + function setCurrentlyValidatingElement$1(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + setExtraStackFrame(stack); + } else { + setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); + if (name) { + return "\n\nCheck the render method of `" + name + "`."; + } + } + return ""; + } + function getSourceInfoErrorAddendum(source) { + if (source !== void 0) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ""); + var lineNumber = source.lineNumber; + return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; + } + return ""; + } + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== void 0) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + return ""; + } + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + if (!info) { + var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info; + } + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + var childOwner = ""; + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; + } + { + setCurrentlyValidatingElement$1(element); + error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + function validateChildKeys(node, parentType) { + if (typeof node !== "object") { + return; + } + if (isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === "function") { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + function validatePropTypes(element) { + { + var type = element.type; + if (type === null || type === void 0 || typeof type === "string") { + return; + } + var propTypes; + if (typeof type === "function") { + propTypes = type.propTypes; + } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentNameFromType(type); + checkPropTypes(propTypes, element.props, "prop", name, element); + } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + var _name = getComponentNameFromType(type); + error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); + } + if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { + error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + } + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== "children" && key !== "key") { + setCurrentlyValidatingElement$1(fragment); + error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error("Invalid attribute `ref` supplied to `React.Fragment`."); + setCurrentlyValidatingElement$1(null); + } + } + } + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); + if (!validType) { + var info = ""; + if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + var typeString; + if (type === null) { + typeString = "null"; + } else if (isArray(type)) { + typeString = "array"; + } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; + info = " Did you accidentally export a JSX literal instead of a component?"; + } else { + typeString = typeof type; + } + { + error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); + } + } + var element = createElement.apply(this, arguments); + if (element == null) { + return element; + } + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + return element; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); + } + Object.defineProperty(validatedFactory, "type", { + enumerable: false, + get: function() { + warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); + Object.defineProperty(this, "type", { + value: type + }); + return type; + } + }); + } + return validatedFactory; + } + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + function startTransition(scope, options) { + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = {}; + var currentTransition = ReactCurrentBatchConfig.transition; + { + ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); + } + try { + scope(); + } finally { + ReactCurrentBatchConfig.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + var didWarnAboutMessageChannel = false; + var enqueueTaskImpl = null; + function enqueueTask(task) { + if (enqueueTaskImpl === null) { + try { + var requireString = ("require" + Math.random()).slice(0, 7); + var nodeRequire = module && module[requireString]; + enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate; + } catch (_err) { + enqueueTaskImpl = function(callback) { + { + if (didWarnAboutMessageChannel === false) { + didWarnAboutMessageChannel = true; + if (typeof MessageChannel === "undefined") { + error("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."); + } + } + } + var channel = new MessageChannel(); + channel.port1.onmessage = callback; + channel.port2.postMessage(void 0); + }; + } + } + return enqueueTaskImpl(task); + } + var actScopeDepth = 0; + var didWarnNoAwaitAct = false; + function act2(callback) { + { + var prevActScopeDepth = actScopeDepth; + actScopeDepth++; + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + } + var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; + var result; + try { + ReactCurrentActQueue.isBatchingLegacy = true; + result = callback(); + if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = false; + flushActQueue(queue); + } + } + } catch (error2) { + popActScope(prevActScopeDepth); + throw error2; + } finally { + ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; + } + if (result !== null && typeof result === "object" && typeof result.then === "function") { + var thenableResult = result; + var wasAwaited = false; + var thenable = { + then: function(resolve, reject) { + wasAwaited = true; + thenableResult.then(function(returnValue2) { + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + recursivelyFlushAsyncActWork(returnValue2, resolve, reject); + } else { + resolve(returnValue2); + } + }, function(error2) { + popActScope(prevActScopeDepth); + reject(error2); + }); + } + }; + { + if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { + Promise.resolve().then(function() { + }).then(function() { + if (!wasAwaited) { + didWarnNoAwaitAct = true; + error("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 () => ...);"); + } + }); + } + } + return thenable; + } else { + var returnValue = result; + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + var _queue = ReactCurrentActQueue.current; + if (_queue !== null) { + flushActQueue(_queue); + ReactCurrentActQueue.current = null; + } + var _thenable = { + then: function(resolve, reject) { + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } else { + resolve(returnValue); + } + } + }; + return _thenable; + } else { + var _thenable2 = { + then: function(resolve, reject) { + resolve(returnValue); + } + }; + return _thenable2; + } + } + } + } + function popActScope(prevActScopeDepth) { + { + if (prevActScopeDepth !== actScopeDepth - 1) { + error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); + } + actScopeDepth = prevActScopeDepth; + } + } + function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { + { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + try { + flushActQueue(queue); + enqueueTask(function() { + if (queue.length === 0) { + ReactCurrentActQueue.current = null; + resolve(returnValue); + } else { + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } + }); + } catch (error2) { + reject(error2); + } + } else { + resolve(returnValue); + } + } + } + var isFlushing = false; + function flushActQueue(queue) { + { + if (!isFlushing) { + isFlushing = true; + var i = 0; + try { + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(true); + } while (callback !== null); + } + queue.length = 0; + } catch (error2) { + queue = queue.slice(i + 1); + throw error2; + } finally { + isFlushing = false; + } + } + } + } + var createElement$1 = createElementWithValidation; + var cloneElement$1 = cloneElementWithValidation; + var createFactory = createFactoryWithValidation; + var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray, + only: onlyChild + }; + exports.Children = Children; + exports.Component = Component; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.Profiler = REACT_PROFILER_TYPE; + exports.PureComponent = PureComponent; + exports.StrictMode = REACT_STRICT_MODE_TYPE; + exports.Suspense = REACT_SUSPENSE_TYPE; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; + exports.cloneElement = cloneElement$1; + exports.createContext = createContext; + exports.createElement = createElement$1; + exports.createFactory = createFactory; + exports.createRef = createRef; + exports.forwardRef = forwardRef; + exports.isValidElement = isValidElement; + exports.lazy = lazy; + exports.memo = memo; + exports.startTransition = startTransition; + exports.unstable_act = act2; + exports.useCallback = useCallback; + exports.useContext = useContext; + exports.useDebugValue = useDebugValue; + exports.useDeferredValue = useDeferredValue; + exports.useEffect = useEffect; + exports.useId = useId; + exports.useImperativeHandle = useImperativeHandle; + exports.useInsertionEffect = useInsertionEffect; + exports.useLayoutEffect = useLayoutEffect; + exports.useMemo = useMemo; + exports.useReducer = useReducer; + exports.useRef = useRef; + exports.useState = useState; + exports.useSyncExternalStore = useSyncExternalStore; + exports.useTransition = useTransition; + exports.version = ReactVersion; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// node_modules/react/index.js +var require_react2 = __commonJS({ + "node_modules/react/index.js"(exports, module) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV === "production") { + module.exports = require_react_production_min2(); + } else { + module.exports = require_react_development2(); + } + } +}); + +// ../testeranto/dist/module/SubPackages/react-test-renderer/jsx/node.js +init_cjs_shim(); + +// ../testeranto/dist/module/Node.js +init_cjs_shim(); + +// ../testeranto/dist/module/lib/core.js +init_cjs_shim(); + +// ../testeranto/dist/module/lib/index.js +init_cjs_shim(); +var BaseTestInterface = { + beforeAll: async (s) => s, + beforeEach: async function(subject, initialValues, x, testResource, pm) { + return subject; + }, + afterEach: async (s) => s, + afterAll: (store) => void 0, + butThen: async (store, thenCb) => thenCb(store), + andWhen: (a) => a, + assertThis: () => null +}; +var DefaultTestInterface = (p) => { + return Object.assign(Object.assign({}, BaseTestInterface), p); +}; +var defaultTestResourceRequirement = { + ports: 0 +}; + +// ../testeranto/dist/module/lib/abstractBase.js +init_cjs_shim(); +var BaseSuite = class { + constructor(name, index, givens = {}, checks = []) { + this.name = name; + this.index = index; + this.givens = givens; + this.checks = checks; + this.fails = []; + } + toObj() { + return { + name: this.name, + givens: Object.keys(this.givens).map((k) => this.givens[k].toObj()), + fails: this.fails + }; + } + setup(s, artifactory, tr, pm) { + return new Promise((res) => res(s)); + } + assertThat(t) { + return t; + } + afterAll(store, artifactory, pm) { + return store; + } + async run(input, testResourceConfiguration, artifactory, tLog, pm) { + this.testResourceConfiguration = testResourceConfiguration; + tLog("test resources: ", JSON.stringify(testResourceConfiguration)); + const suiteArtifactory = (fPath, value) => artifactory(`suite-${this.index}-${this.name}/${fPath}`, value); + console.log("\nSuite:", this.index, this.name); + tLog("\nSuite:", this.index, this.name); + const sNdx = this.index; + const sName = this.name; + for (const [gNdx, g] of Object.entries(this.givens)) { + const subject = await this.setup(input, suiteArtifactory, testResourceConfiguration, pm); + const giver = this.givens[gNdx]; + try { + this.store = await giver.give(subject, gNdx, testResourceConfiguration, this.assertThat, suiteArtifactory, tLog, pm, sNdx); + } catch (e) { + console.error(e); + this.fails.push(giver); + } + } + const afterAllProxy = new Proxy(pm, { + get(target, prop, receiver) { + if (prop === "writeFileSync") { + return (fp, contents) => target[prop](`suite-${sNdx}/afterAll/${fp}`, contents); + } + if (prop === "browser") { + return new Proxy(target[prop], { + get(bTarget, bProp, bReceiver) { + if (bProp === "pages") { + return async () => { + return bTarget.pages().then((pages) => { + return pages.map((page) => { + return new Proxy(page, { + get(pTarget, pProp, pReciever) { + if (pProp === "screenshot") { + return async (x) => { + return await window["custom-screenshot"](Object.assign(Object.assign({}, x), { path: `${testResourceConfiguration.fs}/suite-${sNdx}/afterAll/` + x.path })); + }; + } else { + return Reflect.get(...arguments); + } + } + }); + }); + }); + }; + } + } + }); + } + return Reflect.get(...arguments); + } + }); + try { + this.afterAll(this.store, artifactory, afterAllProxy); + } catch (e) { + console.error(e); + } + return this; + } +}; +var BaseGiven = class { + constructor(name, features, whens, thens, givenCB, initialValues) { + this.name = name; + this.features = features; + this.whens = whens; + this.thens = thens; + this.givenCB = givenCB; + this.initialValues = initialValues; + } + beforeAll(store, artifactory) { + return store; + } + toObj() { + return { + name: this.name, + whens: this.whens.map((w) => w.toObj()), + thens: this.thens.map((t) => t.toObj()), + error: this.error ? [this.error, this.error.stack] : null, // fail: this.fail ? [this.fail] : false, features: this.features }; @@ -21724,10 +23909,10 @@ var BaseCheck = class { } }; -// node_modules/testeranto/dist/module/lib/classBuilder.js +// ../testeranto/dist/module/lib/classBuilder.js init_cjs_shim(); -// node_modules/testeranto/dist/module/lib/basebuilder.js +// ../testeranto/dist/module/lib/basebuilder.js init_cjs_shim(); var BaseBuilder = class { constructor(input, suitesOverrides, givenOverides, whenOverides, thenOverides, checkOverides, testResourceRequirement, testSpecification) { @@ -21807,7 +23992,7 @@ var BaseBuilder = class { } }; -// node_modules/testeranto/dist/module/lib/classBuilder.js +// ../testeranto/dist/module/lib/classBuilder.js var ClassBuilder = class extends BaseBuilder { constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, checkKlasser, testResourceRequirement) { const classySuites = Object.entries(testImplementation.suites).reduce((a, [key], index) => { @@ -21854,7 +24039,7 @@ var ClassBuilder = class extends BaseBuilder { } }; -// node_modules/testeranto/dist/module/lib/core.js +// ../testeranto/dist/module/lib/core.js var Testeranto = class extends ClassBuilder { constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testInterface2) { const fullTestInterface = DefaultTestInterface(testInterface2); @@ -21917,17 +24102,17 @@ var Testeranto = class extends ClassBuilder { } }; -// node_modules/testeranto/dist/module/PM/node.js +// ../testeranto/dist/module/PM/node.js init_cjs_shim(); import fs from "fs"; import path from "path"; -// node_modules/testeranto/dist/module/PM/index.js +// ../testeranto/dist/module/PM/index.js init_cjs_shim(); var PM = class { }; -// node_modules/testeranto/dist/module/PM/node.js +// ../testeranto/dist/module/PM/node.js var fPaths = []; var PM_Node = class extends PM { constructor(t) { @@ -22000,7 +24185,7 @@ var PM_Node = class extends PM { } }; -// node_modules/testeranto/dist/module/Node.js +// ../testeranto/dist/module/Node.js var NodeTesteranto = class extends Testeranto { constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface2) { super(input, testSpecification, testImplementation, testResourceRequirement, testInterface2); @@ -22016,7 +24201,7 @@ var Node_default = async (input, testSpecification, testImplementation, testInte return new NodeTesteranto(input, testSpecification, testImplementation, testResourceRequirement, testInterface2); }; -// node_modules/testeranto/dist/module/SubPackages/react-test-renderer/jsx/index.js +// ../testeranto/dist/module/SubPackages/react-test-renderer/jsx/index.js init_cjs_shim(); var import_react = __toESM(require_react(), 1); var import_react_test_renderer = __toESM(require_react_test_renderer(), 1); @@ -22038,16 +24223,14 @@ var testInterface = { } }; -// node_modules/testeranto/dist/module/SubPackages/react-test-renderer/jsx/node.js +// ../testeranto/dist/module/SubPackages/react-test-renderer/jsx/node.js var node_default = (testImplementations, testSpecifications, testInput, testInterface2 = testInterface) => { return Node_default(testInput, testSpecifications, testImplementations, testInterface2); }; export { - require_react, - require_scheduler, - require_react_test_renderer, - node_default + node_default, + require_react2 as require_react }; /*! Bundled license information: @@ -22138,4 +24321,26 @@ react-test-renderer/cjs/react-test-renderer.development.js: * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) + +react/cjs/react.production.min.js: + (** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react/cjs/react.development.js: + (** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) */ diff --git a/docs/node/chunk-7DTFZFDN.mjs b/docs/node/chunk-MSVTAS6Q.mjs similarity index 99% rename from docs/node/chunk-7DTFZFDN.mjs rename to docs/node/chunk-MSVTAS6Q.mjs index 10dd9e08..38c1642f 100644 --- a/docs/node/chunk-7DTFZFDN.mjs +++ b/docs/node/chunk-MSVTAS6Q.mjs @@ -4,7 +4,7 @@ import { __require, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; // node_modules/assertion-error/index.js var require_assertion_error = __commonJS({ diff --git a/docs/node/chunk-BRBW5YJH.mjs b/docs/node/chunk-PJC2V65J.mjs similarity index 91% rename from docs/node/chunk-BRBW5YJH.mjs rename to docs/node/chunk-PJC2V65J.mjs index f13a2611..1acc5f29 100644 --- a/docs/node/chunk-BRBW5YJH.mjs +++ b/docs/node/chunk-PJC2V65J.mjs @@ -1,17 +1,17 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { packageVersion -} from "./chunk-S5L4ZC6L.mjs"; +} from "./chunk-VDOS7AVZ.mjs"; import { __commonJS, __require, __toESM, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/ws/lib/stream.js +// ../testeranto/node_modules/ws/lib/stream.js var require_stream = __commonJS({ - "node_modules/ws/lib/stream.js"(exports, module) { + "../testeranto/node_modules/ws/lib/stream.js"(exports, module) { "use strict"; init_cjs_shim(); var { Duplex } = __require("stream"); @@ -115,9 +115,9 @@ var require_stream = __commonJS({ } }); -// node_modules/ws/lib/constants.js +// ../testeranto/node_modules/ws/lib/constants.js var require_constants = __commonJS({ - "node_modules/ws/lib/constants.js"(exports, module) { + "../testeranto/node_modules/ws/lib/constants.js"(exports, module) { "use strict"; init_cjs_shim(); var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"]; @@ -139,247 +139,9 @@ var require_constants = __commonJS({ } }); -// node_modules/node-gyp-build/node-gyp-build.js -var require_node_gyp_build = __commonJS({ - "node_modules/node-gyp-build/node-gyp-build.js"(exports, module) { - init_cjs_shim(); - var fs = __require("fs"); - var path = __require("path"); - var os = __require("os"); - var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; - var vars = process.config && process.config.variables || {}; - var prebuildsOnly = !!process.env.PREBUILDS_ONLY; - var abi = process.versions.modules; - var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node"; - var arch = process.env.npm_config_arch || os.arch(); - var platform = process.env.npm_config_platform || os.platform(); - var libc = process.env.LIBC || (isAlpine(platform) ? "musl" : "glibc"); - var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || ""; - var uv = (process.versions.uv || "").split(".")[0]; - module.exports = load; - function load(dir) { - return runtimeRequire(load.resolve(dir)); - } - load.resolve = load.path = function(dir) { - dir = path.resolve(dir || "."); - try { - var name = runtimeRequire(path.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_"); - if (process.env[name + "_PREBUILD"]) - dir = process.env[name + "_PREBUILD"]; - } catch (err) { - } - if (!prebuildsOnly) { - var release = getFirst(path.join(dir, "build/Release"), matchBuild); - if (release) - return release; - var debug = getFirst(path.join(dir, "build/Debug"), matchBuild); - if (debug) - return debug; - } - var prebuild = resolve(dir); - if (prebuild) - return prebuild; - var nearby = resolve(path.dirname(process.execPath)); - if (nearby) - return nearby; - var target = [ - "platform=" + platform, - "arch=" + arch, - "runtime=" + runtime, - "abi=" + abi, - "uv=" + uv, - armv ? "armv=" + armv : "", - "libc=" + libc, - "node=" + process.versions.node, - process.versions.electron ? "electron=" + process.versions.electron : "", - typeof __webpack_require__ === "function" ? "webpack=true" : "" - // eslint-disable-line - ].filter(Boolean).join(" "); - throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n"); - function resolve(dir2) { - var tuples = readdirSync(path.join(dir2, "prebuilds")).map(parseTuple); - var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0]; - if (!tuple) - return; - var prebuilds = path.join(dir2, "prebuilds", tuple.name); - var parsed = readdirSync(prebuilds).map(parseTags); - var candidates = parsed.filter(matchTags(runtime, abi)); - var winner = candidates.sort(compareTags(runtime))[0]; - if (winner) - return path.join(prebuilds, winner.file); - } - }; - function readdirSync(dir) { - try { - return fs.readdirSync(dir); - } catch (err) { - return []; - } - } - function getFirst(dir, filter) { - var files = readdirSync(dir).filter(filter); - return files[0] && path.join(dir, files[0]); - } - function matchBuild(name) { - return /\.node$/.test(name); - } - function parseTuple(name) { - var arr = name.split("-"); - if (arr.length !== 2) - return; - var platform2 = arr[0]; - var architectures = arr[1].split("+"); - if (!platform2) - return; - if (!architectures.length) - return; - if (!architectures.every(Boolean)) - return; - return { name, platform: platform2, architectures }; - } - function matchTuple(platform2, arch2) { - return function(tuple) { - if (tuple == null) - return false; - if (tuple.platform !== platform2) - return false; - return tuple.architectures.includes(arch2); - }; - } - function compareTuples(a, b) { - return a.architectures.length - b.architectures.length; - } - function parseTags(file) { - var arr = file.split("."); - var extension = arr.pop(); - var tags = { file, specificity: 0 }; - if (extension !== "node") - return; - for (var i = 0; i < arr.length; i++) { - var tag = arr[i]; - if (tag === "node" || tag === "electron" || tag === "node-webkit") { - tags.runtime = tag; - } else if (tag === "napi") { - tags.napi = true; - } else if (tag.slice(0, 3) === "abi") { - tags.abi = tag.slice(3); - } else if (tag.slice(0, 2) === "uv") { - tags.uv = tag.slice(2); - } else if (tag.slice(0, 4) === "armv") { - tags.armv = tag.slice(4); - } else if (tag === "glibc" || tag === "musl") { - tags.libc = tag; - } else { - continue; - } - tags.specificity++; - } - return tags; - } - function matchTags(runtime2, abi2) { - return function(tags) { - if (tags == null) - return false; - if (tags.runtime && tags.runtime !== runtime2 && !runtimeAgnostic(tags)) - return false; - if (tags.abi && tags.abi !== abi2 && !tags.napi) - return false; - if (tags.uv && tags.uv !== uv) - return false; - if (tags.armv && tags.armv !== armv) - return false; - if (tags.libc && tags.libc !== libc) - return false; - return true; - }; - } - function runtimeAgnostic(tags) { - return tags.runtime === "node" && tags.napi; - } - function compareTags(runtime2) { - return function(a, b) { - if (a.runtime !== b.runtime) { - return a.runtime === runtime2 ? -1 : 1; - } else if (a.abi !== b.abi) { - return a.abi ? -1 : 1; - } else if (a.specificity !== b.specificity) { - return a.specificity > b.specificity ? -1 : 1; - } else { - return 0; - } - }; - } - function isNwjs() { - return !!(process.versions && process.versions.nw); - } - function isElectron() { - if (process.versions && process.versions.electron) - return true; - if (process.env.ELECTRON_RUN_AS_NODE) - return true; - return typeof window !== "undefined" && window.process && window.process.type === "renderer"; - } - function isAlpine(platform2) { - return platform2 === "linux" && fs.existsSync("/etc/alpine-release"); - } - load.parseTags = parseTags; - load.matchTags = matchTags; - load.compareTags = compareTags; - load.parseTuple = parseTuple; - load.matchTuple = matchTuple; - load.compareTuples = compareTuples; - } -}); - -// node_modules/node-gyp-build/index.js -var require_node_gyp_build2 = __commonJS({ - "node_modules/node-gyp-build/index.js"(exports, module) { - init_cjs_shim(); - var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; - if (typeof runtimeRequire.addon === "function") { - module.exports = runtimeRequire.addon.bind(runtimeRequire); - } else { - module.exports = require_node_gyp_build(); - } - } -}); - -// node_modules/bufferutil/fallback.js -var require_fallback = __commonJS({ - "node_modules/bufferutil/fallback.js"(exports, module) { - "use strict"; - init_cjs_shim(); - var mask = (source, mask2, output, offset, length) => { - for (var i = 0; i < length; i++) { - output[offset + i] = source[i] ^ mask2[i & 3]; - } - }; - var unmask = (buffer, mask2) => { - const length = buffer.length; - for (var i = 0; i < length; i++) { - buffer[i] ^= mask2[i & 3]; - } - }; - module.exports = { mask, unmask }; - } -}); - -// node_modules/bufferutil/index.js -var require_bufferutil = __commonJS({ - "node_modules/bufferutil/index.js"(exports, module) { - "use strict"; - init_cjs_shim(); - try { - module.exports = require_node_gyp_build2()(__dirname); - } catch (e) { - module.exports = require_fallback(); - } - } -}); - -// node_modules/ws/lib/buffer-util.js +// ../testeranto/node_modules/ws/lib/buffer-util.js var require_buffer_util = __commonJS({ - "node_modules/ws/lib/buffer-util.js"(exports, module) { + "../testeranto/node_modules/ws/lib/buffer-util.js"(exports, module) { "use strict"; init_cjs_shim(); var { EMPTY_BUFFER } = require_constants(); @@ -441,7 +203,7 @@ var require_buffer_util = __commonJS({ }; if (!process.env.WS_NO_BUFFER_UTIL) { try { - const bufferUtil = require_bufferutil(); + const bufferUtil = __require("bufferutil"); module.exports.mask = function(source, mask, output, offset, length) { if (length < 48) _mask(source, mask, output, offset, length); @@ -460,9 +222,9 @@ var require_buffer_util = __commonJS({ } }); -// node_modules/ws/lib/limiter.js +// ../testeranto/node_modules/ws/lib/limiter.js var require_limiter = __commonJS({ - "node_modules/ws/lib/limiter.js"(exports, module) { + "../testeranto/node_modules/ws/lib/limiter.js"(exports, module) { "use strict"; init_cjs_shim(); var kDone = Symbol("kDone"); @@ -512,9 +274,9 @@ var require_limiter = __commonJS({ } }); -// node_modules/ws/lib/permessage-deflate.js +// ../testeranto/node_modules/ws/lib/permessage-deflate.js var require_permessage_deflate = __commonJS({ - "node_modules/ws/lib/permessage-deflate.js"(exports, module) { + "../testeranto/node_modules/ws/lib/permessage-deflate.js"(exports, module) { "use strict"; init_cjs_shim(); var zlib = __require("zlib"); @@ -893,60 +655,9 @@ var require_permessage_deflate = __commonJS({ } }); -// node_modules/utf-8-validate/fallback.js -var require_fallback2 = __commonJS({ - "node_modules/utf-8-validate/fallback.js"(exports, module) { - "use strict"; - init_cjs_shim(); - function isValidUTF8(buf) { - const len = buf.length; - let i = 0; - while (i < len) { - if ((buf[i] & 128) === 0) { - i++; - } else if ((buf[i] & 224) === 192) { - if (i + 1 === len || (buf[i + 1] & 192) !== 128 || (buf[i] & 254) === 192) { - return false; - } - i += 2; - } else if ((buf[i] & 240) === 224) { - if (i + 2 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || buf[i] === 224 && (buf[i + 1] & 224) === 128 || // overlong - buf[i] === 237 && (buf[i + 1] & 224) === 160) { - return false; - } - i += 3; - } else if ((buf[i] & 248) === 240) { - if (i + 3 >= len || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || (buf[i + 3] & 192) !== 128 || buf[i] === 240 && (buf[i + 1] & 240) === 128 || // overlong - buf[i] === 244 && buf[i + 1] > 143 || buf[i] > 244) { - return false; - } - i += 4; - } else { - return false; - } - } - return true; - } - module.exports = isValidUTF8; - } -}); - -// node_modules/utf-8-validate/index.js -var require_utf_8_validate = __commonJS({ - "node_modules/utf-8-validate/index.js"(exports, module) { - "use strict"; - init_cjs_shim(); - try { - module.exports = require_node_gyp_build2()(__dirname); - } catch (e) { - module.exports = require_fallback2(); - } - } -}); - -// node_modules/ws/lib/validation.js +// ../testeranto/node_modules/ws/lib/validation.js var require_validation = __commonJS({ - "node_modules/ws/lib/validation.js"(exports, module) { + "../testeranto/node_modules/ws/lib/validation.js"(exports, module) { "use strict"; init_cjs_shim(); var { isUtf8 } = __require("buffer"); @@ -1136,7 +847,7 @@ var require_validation = __commonJS({ }; } else if (!process.env.WS_NO_UTF_8_VALIDATE) { try { - const isValidUTF8 = require_utf_8_validate(); + const isValidUTF8 = __require("utf-8-validate"); module.exports.isValidUTF8 = function(buf) { return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf); }; @@ -1146,9 +857,9 @@ var require_validation = __commonJS({ } }); -// node_modules/ws/lib/receiver.js +// ../testeranto/node_modules/ws/lib/receiver.js var require_receiver = __commonJS({ - "node_modules/ws/lib/receiver.js"(exports, module) { + "../testeranto/node_modules/ws/lib/receiver.js"(exports, module) { "use strict"; init_cjs_shim(); var { Writable } = __require("stream"); @@ -1750,9 +1461,9 @@ var require_receiver = __commonJS({ } }); -// node_modules/ws/lib/sender.js +// ../testeranto/node_modules/ws/lib/sender.js var require_sender = __commonJS({ - "node_modules/ws/lib/sender.js"(exports, module) { + "../testeranto/node_modules/ws/lib/sender.js"(exports, module) { "use strict"; init_cjs_shim(); var { Duplex } = __require("stream"); @@ -2245,9 +1956,9 @@ var require_sender = __commonJS({ } }); -// node_modules/ws/lib/event-target.js +// ../testeranto/node_modules/ws/lib/event-target.js var require_event_target = __commonJS({ - "node_modules/ws/lib/event-target.js"(exports, module) { + "../testeranto/node_modules/ws/lib/event-target.js"(exports, module) { "use strict"; init_cjs_shim(); var { kForOnEventAttribute, kListener } = require_constants(); @@ -2475,9 +2186,9 @@ var require_event_target = __commonJS({ } }); -// node_modules/ws/lib/extension.js +// ../testeranto/node_modules/ws/lib/extension.js var require_extension = __commonJS({ - "node_modules/ws/lib/extension.js"(exports, module) { + "../testeranto/node_modules/ws/lib/extension.js"(exports, module) { "use strict"; init_cjs_shim(); var { tokenChars } = require_validation(); @@ -2646,9 +2357,9 @@ var require_extension = __commonJS({ } }); -// node_modules/ws/lib/websocket.js +// ../testeranto/node_modules/ws/lib/websocket.js var require_websocket = __commonJS({ - "node_modules/ws/lib/websocket.js"(exports, module) { + "../testeranto/node_modules/ws/lib/websocket.js"(exports, module) { "use strict"; init_cjs_shim(); var EventEmitter = __require("events"); @@ -3559,9 +3270,9 @@ var require_websocket = __commonJS({ } }); -// node_modules/ws/lib/subprotocol.js +// ../testeranto/node_modules/ws/lib/subprotocol.js var require_subprotocol = __commonJS({ - "node_modules/ws/lib/subprotocol.js"(exports, module) { + "../testeranto/node_modules/ws/lib/subprotocol.js"(exports, module) { "use strict"; init_cjs_shim(); var { tokenChars } = require_validation(); @@ -3608,9 +3319,9 @@ var require_subprotocol = __commonJS({ } }); -// node_modules/ws/lib/websocket-server.js +// ../testeranto/node_modules/ws/lib/websocket-server.js var require_websocket_server = __commonJS({ - "node_modules/ws/lib/websocket-server.js"(exports, module) { + "../testeranto/node_modules/ws/lib/websocket-server.js"(exports, module) { "use strict"; init_cjs_shim(); var EventEmitter = __require("events"); @@ -4005,10 +3716,10 @@ var require_websocket_server = __commonJS({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js init_cjs_shim(); -// node_modules/ws/wrapper.mjs +// ../testeranto/node_modules/ws/wrapper.mjs init_cjs_shim(); var import_stream = __toESM(require_stream(), 1); var import_receiver = __toESM(require_receiver(), 1); @@ -4017,7 +3728,7 @@ var import_websocket = __toESM(require_websocket(), 1); var import_websocket_server = __toESM(require_websocket_server(), 1); var wrapper_default = import_websocket.default; -// node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js var NodeWebSocketTransport = class { static create(url, headers) { return new Promise((resolve, reject) => { @@ -4066,7 +3777,6 @@ var NodeWebSocketTransport = class { }; export { - require_node_gyp_build2 as require_node_gyp_build, NodeWebSocketTransport }; /*! Bundled license information: diff --git a/docs/node/chunk-6SZJES2S.mjs b/docs/node/chunk-RBWPBMY4.mjs similarity index 98% rename from docs/node/chunk-6SZJES2S.mjs rename to docs/node/chunk-RBWPBMY4.mjs index 23cadba2..beeb14ce 100644 --- a/docs/node/chunk-6SZJES2S.mjs +++ b/docs/node/chunk-RBWPBMY4.mjs @@ -1,16 +1,16 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { packageVersion -} from "./chunk-S5L4ZC6L.mjs"; +} from "./chunk-VDOS7AVZ.mjs"; import { __privateAdd, __privateGet, __privateSet, __publicField, init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js init_cjs_shim(); var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { @@ -2332,10 +2332,10 @@ function tap(observerOrNext, error, complete) { }) : identity; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js init_cjs_shim(); function mitt_default(n) { return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) { @@ -2354,7 +2354,7 @@ function mitt_default(n) { } }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js init_cjs_shim(); Symbol.dispose ??= Symbol("dispose"); Symbol.asyncDispose ??= Symbol("asyncDispose"); @@ -2569,7 +2569,7 @@ var AsyncDisposableStack = class { [Symbol.toStringTag] = "AsyncDisposableStack"; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js var EventEmitter = class { #emitter; #handlers = /* @__PURE__ */ new Map(); @@ -2678,7 +2678,7 @@ var EventEmitter = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js init_cjs_shim(); var isNode = !!(typeof process !== "undefined" && process.version); var environment = { @@ -2692,7 +2692,7 @@ var environment = { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js init_cjs_shim(); var assert = (value, message) => { if (!value) { @@ -2700,7 +2700,7 @@ var assert = (value, message) => { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js init_cjs_shim(); function stringToTypedArray(string, base64Encoded = false) { if (base64Encoded) { @@ -2738,12 +2738,12 @@ function mergeUint8Arrays(items) { return result; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js init_cjs_shim(); var debugModule = null; async function importDebug() { if (!debugModule) { - debugModule = (await import("./src-N7R57C4Y.mjs")).default; + debugModule = (await import("./src-X2XRWCOR.mjs")).default; } return debugModule; } @@ -2777,7 +2777,7 @@ var debug = (prefix) => { var capturedLogs = []; var captureLogs = false; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js init_cjs_shim(); var PuppeteerError = class extends Error { /** @@ -2827,10 +2827,10 @@ var UnsupportedOperation = class extends PuppeteerError { var TargetCloseError = class extends ProtocolError { }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js init_cjs_shim(); var paperFormats = { letter: { width: 8.5, height: 11 }, @@ -2846,7 +2846,7 @@ var paperFormats = { a6: { width: 4.1339, height: 5.8268 } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js var debugError = debug("puppeteer:error"); var DEFAULT_VIEWPORT = Object.freeze({ width: 800, height: 600 }); var SOURCE_URL = Symbol("Source URL for Puppeteer evaluation scripts"); @@ -3127,7 +3127,7 @@ function filterAsync(predicate) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js init_cjs_shim(); var WEB_PERMISSION_TO_PROTOCOL_PERMISSION = /* @__PURE__ */ new Map([ ["geolocation", "geolocation"], @@ -3228,13 +3228,13 @@ var Browser = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js init_cjs_shim(); var Deferred = class { static create(opts) { @@ -3321,7 +3321,7 @@ var Deferred = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js var _locked, _acquirers; var _Mutex = class { constructor() { @@ -3364,7 +3364,7 @@ __publicField(Mutex, "Guard", class Guard { } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js var BrowserContext = class extends EventEmitter { /** * @internal @@ -3446,7 +3446,7 @@ var BrowserContext = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js init_cjs_shim(); function isErrorLike(obj) { return typeof obj === "object" && obj !== null && "name" in obj && "message" in obj; @@ -3464,7 +3464,7 @@ function createProtocolErrorMessage(object) { return message; } -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js init_cjs_shim(); var createdFunctions = /* @__PURE__ */ new Map(); var createFunction = (functionValue) => { @@ -3512,7 +3512,7 @@ var interpolateFunction = (fn, replacements) => { return createFunction(value); }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js init_cjs_shim(); var _get; var _LazyArg = class { @@ -3530,7 +3530,7 @@ __publicField(LazyArg, "create", (get) => { return new _LazyArg(get); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js init_cjs_shim(); var AsyncIterableUtil = class { static async *map(iterable, map2) { @@ -3558,17 +3558,17 @@ var AsyncIterableUtil = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js init_cjs_shim(); var _isElementHandle = Symbol("_isElementHandle"); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js init_cjs_shim(); var __addDisposableResource = function(env, value, async2) { if (value !== null && value !== void 0) { @@ -3703,7 +3703,7 @@ async function* transposeIterableHandle(handle) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js var __addDisposableResource2 = function(env, value, async2) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -3922,7 +3922,7 @@ var QueryHandler = class { __publicField(QueryHandler, "querySelectorAll"); __publicField(QueryHandler, "querySelector"); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js var isKnownAttribute = (attribute) => { return ["name", "role"].includes(attribute); }; @@ -3956,14 +3956,14 @@ __publicField(ARIAQueryHandler, "queryOne", async (element, selector) => { return await AsyncIterableUtil.first(_ARIAQueryHandler.queryAll(element, selector)) ?? null; }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js init_cjs_shim(); var source = '"use strict";var g=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},J=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of B(e))!Y.call(t,n)&&n!==r&&g(t,n,{get:()=>e[n],enumerable:!(o=X(e,n))||o.enumerable});return t};var z=t=>J(g({},"__esModule",{value:!0}),t);var pe={};l(pe,{default:()=>he});module.exports=z(pe);var N=class extends Error{constructor(e,r){super(e,r),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},p=class extends N{};var c=class t{static create(e){return new t(e)}static async race(e){let r=new Set;try{let o=e.map(n=>n instanceof t?(n.#n&&r.add(n),n.valueOrThrow()):n);return await Promise.race(o)}finally{for(let o of r)o.reject(new Error("Timeout cleared"))}}#e=!1;#r=!1;#o;#t;#a=new Promise(e=>{this.#t=e});#n;#i;constructor(e){e&&e.timeout>0&&(this.#i=new p(e.message),this.#n=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#n),this.#o=e,this.#t()}resolve(e){this.#r||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#r||this.#e||(this.#r=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#r}value(){return this.#o}#s;valueOrThrow(){return this.#s||(this.#s=(async()=>{if(await this.#a,this.#r)throw this.#o;return this.#o})()),this.#s}};var L=new Map,F=t=>{let e=L.get(t);return e||(e=new Function(`return ${t}`)(),L.set(t,e),e)};var x={};l(x,{ariaQuerySelector:()=>G,ariaQuerySelectorAll:()=>b});var G=(t,e)=>globalThis.__ariaQuerySelector(t,e),b=async function*(t,e){yield*await globalThis.__ariaQuerySelectorAll(t,e)};var E={};l(E,{cssQuerySelector:()=>K,cssQuerySelectorAll:()=>Z});var K=(t,e)=>t.querySelector(e),Z=function(t,e){return t.querySelectorAll(e)};var A={};l(A,{customQuerySelectors:()=>P});var v=class{#e=new Map;register(e,r){if(!r.queryOne&&r.queryAll){let o=r.queryAll;r.queryOne=(n,i)=>{for(let s of o(n,i))return s;return null}}else if(r.queryOne&&!r.queryAll){let o=r.queryOne;r.queryAll=(n,i)=>{let s=o(n,i);return s?[s]:[]}}else if(!r.queryOne||!r.queryAll)throw new Error("At least one query method must be defined.");this.#e.set(e,{querySelector:r.queryOne,querySelectorAll:r.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},P=new v;var R={};l(R,{pierceQuerySelector:()=>ee,pierceQuerySelectorAll:()=>te});var ee=(t,e)=>{let r=null,o=n=>{let i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&o(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==n&&!r&&s.matches(e)&&(r=s)}while(!r&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r},te=(t,e)=>{let r=[],o=n=>{let i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&o(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==n&&s.matches(e)&&r.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r};var u=(t,e)=>{if(!t)throw new Error(e)};var y=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=new MutationObserver(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())}),this.#o.observe(this.#r,{childList:!0,subtree:!0,attributes:!0})}async stop(){u(this.#t,"Polling never started."),this.#t.finished()||this.#t.reject(new Error("Polling stopped")),this.#o&&(this.#o.disconnect(),this.#o=void 0)}result(){return u(this.#t,"Polling never started."),this.#t.valueOrThrow()}},w=class{#e;#r;constructor(e){this.#e=e}async start(){let e=this.#r=c.create(),r=await this.#e();if(r){e.resolve(r);return}let o=async()=>{if(e.finished())return;let n=await this.#e();if(!n){window.requestAnimationFrame(o);return}e.resolve(n),await this.stop()};window.requestAnimationFrame(o)}async stop(){u(this.#r,"Polling never started."),this.#r.finished()||this.#r.reject(new Error("Polling stopped"))}result(){return u(this.#r,"Polling never started."),this.#r.valueOrThrow()}},S=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=setInterval(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())},this.#r)}async stop(){u(this.#t,"Polling never started."),this.#t.finished()||this.#t.reject(new Error("Polling stopped")),this.#o&&(clearInterval(this.#o),this.#o=void 0)}result(){return u(this.#t,"Polling never started."),this.#t.valueOrThrow()}};var _={};l(_,{PCombinator:()=>H,pQuerySelector:()=>fe,pQuerySelectorAll:()=>$});var a=class{static async*map(e,r){for await(let o of e)yield await r(o)}static async*flatMap(e,r){for await(let o of e)yield*r(o)}static async collect(e){let r=[];for await(let o of e)r.push(o);return r}static async first(e){for await(let r of e)return r}};var C={};l(C,{textQuerySelectorAll:()=>m});var re=new Set(["checkbox","image","radio"]),oe=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!re.has(t.type),ne=new Set(["SCRIPT","STYLE"]),f=t=>!ne.has(t.nodeName)&&!document.head?.contains(t),I=new WeakMap,j=t=>{for(;t;)I.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},W=new WeakSet,se=new MutationObserver(t=>{for(let e of t)j(e.target)}),d=t=>{let e=I.get(t);if(e||(e={full:"",immediate:[]},!f(t)))return e;let r="";if(oe(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener("input",o=>{j(o.target)},{once:!0,capture:!0});else{for(let o=t.firstChild;o;o=o.nextSibling){if(o.nodeType===Node.TEXT_NODE){e.full+=o.nodeValue??"",r+=o.nodeValue??"";continue}r&&e.immediate.push(r),r="",o.nodeType===Node.ELEMENT_NODE&&(e.full+=d(o).full)}r&&e.immediate.push(r),t instanceof Element&&t.shadowRoot&&(e.full+=d(t.shadowRoot).full),W.has(t)||(se.observe(t,{childList:!0,characterData:!0,subtree:!0}),W.add(t))}return I.set(t,e),e};var m=function*(t,e){let r=!1;for(let o of t.childNodes)if(o instanceof Element&&f(o)){let n;o.shadowRoot?n=m(o.shadowRoot,e):n=m(o,e);for(let i of n)yield i,r=!0}r||t instanceof Element&&f(t)&&d(t).full.includes(e)&&(yield t)};var k={};l(k,{checkVisibility:()=>le,pierce:()=>T,pierceAll:()=>O});var ie=["hidden","collapse"],le=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let r=t.nodeType===Node.TEXT_NODE?t.parentElement:t,o=window.getComputedStyle(r),n=o&&!ie.includes(o.visibility)&&!ae(r);return e===n?t:!1};function ae(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var ce=t=>"shadowRoot"in t&&t.shadowRoot instanceof ShadowRoot;function*T(t){ce(t)?yield t.shadowRoot:yield t}function*O(t){t=T(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let r of e){let o;for(;o=r.nextNode();)o.shadowRoot&&(yield o.shadowRoot,e.push(document.createTreeWalker(o.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var Q={};l(Q,{xpathQuerySelectorAll:()=>q});var q=function*(t,e,r=-1){let n=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=n.iterateNext())&&(i.push(s),!(r&&i.length===r)););for(let h=0;h(r.Descendent=">>>",r.Child=">>>>",r))(H||{}),V=t=>"querySelectorAll"in t,M=class{#e;#r=[];#o=void 0;elements;constructor(e,r){this.elements=[e],this.#e=r,this.#t()}async run(){if(typeof this.#o=="string")switch(this.#o.trimStart()){case":scope":this.#t();break}for(;this.#o!==void 0;this.#t()){let e=this.#o;typeof e=="string"?e[0]&&ue.test(e[0])?this.elements=a.flatMap(this.elements,async function*(r){V(r)&&(yield*r.querySelectorAll(e))}):this.elements=a.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!V(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let n of r.parentElement.children)if(++o,n===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=a.flatMap(this.elements,async function*(r){switch(e.name){case"text":yield*m(r,e.value);break;case"xpath":yield*q(r,e.value);break;case"aria":yield*b(r,e.value);break;default:let o=P.get(e.name);if(!o)throw new Error(`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#t(){if(this.#r.length!==0){this.#o=this.#r.shift();return}if(this.#e.length===0){this.#o=void 0;return}let e=this.#e.shift();switch(e){case">>>>":{this.elements=a.flatMap(this.elements,T),this.#t();break}case">>>":{this.elements=a.flatMap(this.elements,O),this.#t();break}default:this.#r=e,this.#t();break}}},D=class{#e=new WeakMap;calculate(e,r=[]){if(e===null)return r;e instanceof ShadowRoot&&(e=e.host);let o=this.#e.get(e);if(o)return[...o,...r];let n=0;for(let s=e.previousSibling;s;s=s.previousSibling)++n;let i=this.calculate(e.parentNode,[n]);return this.#e.set(e,i),[...i,...r]}},U=(t,e)=>{if(t.length+e.length===0)return 0;let[r=-1,...o]=t,[n=-1,...i]=e;return r===n?U(o,i):r[o,r.calculate(o)]).sort(([,o],[,n])=>U(o,n)).map(([o])=>o)},$=function(t,e){let r=JSON.parse(e);if(r.some(o=>{let n=0;return o.some(i=>(typeof i=="string"?++n:n=0,n>1))}))throw new Error("Multiple deep combinators found in sequence.");return de(a.flatMap(r,o=>{let n=new M(t,o);return n.run(),n.elements}))},fe=async function(t,e){for await(let r of $(t,e))return r;return null};var me=Object.freeze({...x,...A,...R,..._,...C,...k,...Q,...E,Deferred:c,createFunction:F,createTextContent:d,IntervalPoller:S,isSuitableNodeForTextMatching:f,MutationPoller:y,RAFPoller:w}),he=me;\n'; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js var ScriptInjector = class { #updated = false; #amendments = /* @__PURE__ */ new Set(); @@ -4001,7 +4001,7 @@ var ScriptInjector = class { }; var scriptInjector = new ScriptInjector(); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js init_cjs_shim(); var __addDisposableResource3 = function(env, value, async2) { if (value !== null && value !== void 0) { @@ -4226,7 +4226,7 @@ function bubble(events) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js init_cjs_shim(); var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; @@ -4460,13 +4460,13 @@ var JSHandle = (() => { return JSHandle2 = _classThis; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js init_cjs_shim(); var CSSQueryHandler = class extends QueryHandler { }; @@ -4477,7 +4477,7 @@ __publicField(CSSQueryHandler, "querySelectorAll", (element, selector, { cssQuer return cssQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js init_cjs_shim(); var CustomQueryHandlerRegistry = class { #handlers = /* @__PURE__ */ new Map(); @@ -4561,7 +4561,7 @@ var CustomQueryHandlerRegistry = class { }; var customQueryHandlers = new CustomQueryHandlerRegistry(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js init_cjs_shim(); var PierceQueryHandler = class extends QueryHandler { }; @@ -4572,7 +4572,7 @@ __publicField(PierceQueryHandler, "querySelectorAll", (element, selector, { pier return pierceQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js init_cjs_shim(); var PQueryHandler = class extends QueryHandler { }; @@ -4583,10 +4583,10 @@ __publicField(PQueryHandler, "querySelector", (element, selector, { pQuerySelect return pQuerySelector(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js init_cjs_shim(); var TOKENS = { attribute: /\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu, @@ -4765,7 +4765,7 @@ function stringify(listOrNode) { return tokens.map((token) => token.content).join(""); } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js TOKENS["nesting"] = /&/g; TOKENS["combinator"] = /\s*(>>>>?|[\s>+~])\s*/g; var ESCAPE_REGEXP = /\\[\s\S]/g; @@ -4863,7 +4863,7 @@ function parsePSelectors(selector) { return [selectors, isPureCSS, hasPseudoClasses, hasAria]; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js init_cjs_shim(); var TextQueryHandler = class extends QueryHandler { }; @@ -4871,7 +4871,7 @@ __publicField(TextQueryHandler, "querySelectorAll", (element, selector, { textQu return textQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js init_cjs_shim(); var XPathQueryHandler = class extends QueryHandler { }; @@ -4885,7 +4885,7 @@ __publicField(XPathQueryHandler, "querySelector", (element, selector, { xpathQue return null; }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js var BUILTIN_QUERY_HANDLERS = { aria: ARIAQueryHandler, pierce: PierceQueryHandler, @@ -4937,7 +4937,7 @@ function getQueryHandlerAndSelector(selector) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -6228,10 +6228,10 @@ function intersectBoundingBox(box, width, height) { box.height = Math.max(box.y >= 0 ? Math.min(height - box.y, box.height) : Math.min(height, box.height + box.y), 0); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js init_cjs_shim(); var __addDisposableResource6 = function(env, value, async2) { if (value !== null && value !== void 0) { @@ -6913,7 +6913,7 @@ var RaceLocator = class extends Locator { }; var RETRY_DELAY = 100; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js var __runInitializers3 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -7739,7 +7739,7 @@ var Frame = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js init_cjs_shim(); var HTTPRequest = class { /** @@ -8131,7 +8131,7 @@ function handleError(error) { debugError(error); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js init_cjs_shim(); var HTTPResponse = class { /** @@ -8174,10 +8174,10 @@ var HTTPResponse = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js init_cjs_shim(); function createIncrementalIdGenerator() { let id = 0; @@ -8186,7 +8186,7 @@ function createIncrementalIdGenerator() { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js var Keyboard = class { /** * @internal @@ -8272,10 +8272,10 @@ var Touchscreen = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js init_cjs_shim(); var DEFAULT_TIMEOUT = 3e4; var TimeoutSettings = class { @@ -8308,7 +8308,7 @@ var TimeoutSettings = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js var __runInitializers4 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -9772,10 +9772,10 @@ function roundRectangle(clip) { return { ...clip, x, y, width, height }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js init_cjs_shim(); var WaitTask = class { #world; @@ -9944,7 +9944,7 @@ var TaskManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js var Realm = class { timeoutSettings; taskManager = new TaskManager(); @@ -9979,7 +9979,7 @@ var Realm = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js init_cjs_shim(); var Accessibility = class { #realm; @@ -10353,7 +10353,7 @@ var AXNode = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js init_cjs_shim(); var CallbackRegistry = class { #callbacks = /* @__PURE__ */ new Map(); @@ -10455,7 +10455,7 @@ var Callback = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js init_cjs_shim(); var ConsoleMessage = class { #type; @@ -10505,7 +10505,7 @@ var ConsoleMessage = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js init_cjs_shim(); var Coverage = class { #jsCoverage; @@ -10807,10 +10807,10 @@ function convertToDisjointRanges(nestedRanges) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js init_cjs_shim(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js init_cjs_shim(); var CDPSessionEvent; (function(CDPSessionEvent2) { @@ -10837,7 +10837,7 @@ var CDPSession = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js var __runInitializers5 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11286,7 +11286,7 @@ var EmulationManager = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js init_cjs_shim(); var SecurityDetails = class { #subjectName; @@ -11346,7 +11346,7 @@ var SecurityDetails = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js init_cjs_shim(); var Tracing = class { #client; @@ -11434,7 +11434,7 @@ var Tracing = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js init_cjs_shim(); var Dialog = class { #type; @@ -11498,7 +11498,7 @@ var Dialog = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js init_cjs_shim(); var TargetType; (function(TargetType2) { @@ -11532,7 +11532,7 @@ var Target = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js init_cjs_shim(); var WebWorker = class extends EventEmitter { /** diff --git a/docs/node/chunk-4IESOCHA.mjs b/docs/node/chunk-THMF2HPO.mjs similarity index 97% rename from docs/node/chunk-4IESOCHA.mjs rename to docs/node/chunk-THMF2HPO.mjs index b0b882cb..f1fc8e56 100644 --- a/docs/node/chunk-4IESOCHA.mjs +++ b/docs/node/chunk-THMF2HPO.mjs @@ -75,11 +75,11 @@ var __privateMethod = (obj, member, method) => { return method; }; -// node_modules/testeranto/dist/cjs-shim.js +// ../testeranto/dist/cjs-shim.js import path from "node:path"; import url from "node:url"; var init_cjs_shim = __esm({ - "node_modules/testeranto/dist/cjs-shim.js"() { + "../testeranto/dist/cjs-shim.js"() { globalThis.__filename = url.fileURLToPath(import.meta.url); globalThis.__dirname = path.dirname(__filename); } diff --git a/docs/node/chunk-S5L4ZC6L.mjs b/docs/node/chunk-VDOS7AVZ.mjs similarity index 62% rename from docs/node/chunk-S5L4ZC6L.mjs rename to docs/node/chunk-VDOS7AVZ.mjs index 25e18e51..fb7f6e8a 100644 --- a/docs/node/chunk-S5L4ZC6L.mjs +++ b/docs/node/chunk-VDOS7AVZ.mjs @@ -1,9 +1,9 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { init_cjs_shim -} from "./chunk-4IESOCHA.mjs"; +} from "./chunk-THMF2HPO.mjs"; -// node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js init_cjs_shim(); var packageVersion = "23.9.0"; diff --git a/docs/node/src-N7R57C4Y.mjs b/docs/node/src-X2XRWCOR.mjs similarity index 69% rename from docs/node/src-N7R57C4Y.mjs rename to docs/node/src-X2XRWCOR.mjs index f8f0a34d..2e0599e0 100644 --- a/docs/node/src-N7R57C4Y.mjs +++ b/docs/node/src-X2XRWCOR.mjs @@ -1,6 +1,6 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { require_src -} from "./chunk-LE3VN4X4.mjs"; -import "./chunk-4IESOCHA.mjs"; +} from "./chunk-FLSG3ZVV.mjs"; +import "./chunk-THMF2HPO.mjs"; export default require_src(); diff --git a/docs/node/src/LoginPage/react-test-renderer/node.test.mjs b/docs/node/src/LoginPage/react-test-renderer/node.test.mjs index 261f3f22..dbff9746 100644 --- a/docs/node/src/LoginPage/react-test-renderer/node.test.mjs +++ b/docs/node/src/LoginPage/react-test-renderer/node.test.mjs @@ -1,27 +1,25 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { node_default, - require_react, - require_react_test_renderer, - require_scheduler -} from "../../../chunk-IAOYGSRV.mjs"; + require_react +} from "../../../chunk-LNUIT2ZO.mjs"; import { app_default -} from "../../../chunk-FWCV2CYO.mjs"; +} from "../../../chunk-EP6GCRJ6.mjs"; import { assert -} from "../../../chunk-7DTFZFDN.mjs"; -import "../../../chunk-CDRQ6FZS.mjs"; -import "../../../chunk-6SZJES2S.mjs"; -import "../../../chunk-BRBW5YJH.mjs"; -import "../../../chunk-S5L4ZC6L.mjs"; -import "../../../chunk-LE3VN4X4.mjs"; -import "../../../chunk-GF7QN4NN.mjs"; +} from "../../../chunk-MSVTAS6Q.mjs"; +import "../../../chunk-3P3QDLUF.mjs"; +import "../../../chunk-RBWPBMY4.mjs"; +import "../../../chunk-PJC2V65J.mjs"; +import "../../../chunk-VDOS7AVZ.mjs"; +import "../../../chunk-FLSG3ZVV.mjs"; +import "../../../chunk-CTKBT5JH.mjs"; import { __commonJS, __toESM, init_cjs_shim -} from "../../../chunk-4IESOCHA.mjs"; +} from "../../../chunk-THMF2HPO.mjs"; // node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js var require_use_sync_external_store_shim_production_min = __commonJS({ @@ -374,6 +372,742 @@ var require_with_selector = __commonJS({ } }); +// node_modules/scheduler/cjs/scheduler.production.min.js +var require_scheduler_production_min = __commonJS({ + "node_modules/scheduler/cjs/scheduler.production.min.js"(exports) { + "use strict"; + init_cjs_shim(); + function f(a, b) { + var c = a.length; + a.push(b); + a: + for (; 0 < c; ) { + var d = c - 1 >>> 1, e = a[d]; + if (0 < g(e, b)) + a[d] = b, a[c] = e, c = d; + else + break a; + } + } + function h(a) { + return 0 === a.length ? null : a[0]; + } + function k(a) { + if (0 === a.length) + return null; + var b = a[0], c = a.pop(); + if (c !== b) { + a[0] = c; + a: + for (var d = 0, e = a.length, w = e >>> 1; d < w; ) { + var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n]; + if (0 > g(C, c)) + n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m); + else if (n < e && 0 > g(x, c)) + a[d] = x, a[n] = c, d = n; + else + break a; + } + } + return b; + } + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; + } + if ("object" === typeof performance && "function" === typeof performance.now) { + l = performance; + exports.unstable_now = function() { + return l.now(); + }; + } else { + p = Date, q = p.now(); + exports.unstable_now = function() { + return p.now() - q; + }; + } + var l; + var p; + var q; + var r = []; + var t = []; + var u = 1; + var v = null; + var y = 3; + var z = false; + var A = false; + var B = false; + var D = "function" === typeof setTimeout ? setTimeout : null; + var E = "function" === typeof clearTimeout ? clearTimeout : null; + var F = "undefined" !== typeof setImmediate ? setImmediate : null; + "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); + function G(a) { + for (var b = h(t); null !== b; ) { + if (null === b.callback) + k(t); + else if (b.startTime <= a) + k(t), b.sortIndex = b.expirationTime, f(r, b); + else + break; + b = h(t); + } + } + function H(a) { + B = false; + G(a); + if (!A) + if (null !== h(r)) + A = true, I(J); + else { + var b = h(t); + null !== b && K(H, b.startTime - a); + } + } + function J(a, b) { + A = false; + B && (B = false, E(L), L = -1); + z = true; + var c = y; + try { + G(b); + for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M()); ) { + var d = v.callback; + if ("function" === typeof d) { + v.callback = null; + y = v.priorityLevel; + var e = d(v.expirationTime <= b); + b = exports.unstable_now(); + "function" === typeof e ? v.callback = e : v === h(r) && k(r); + G(b); + } else + k(r); + v = h(r); + } + if (null !== v) + var w = true; + else { + var m = h(t); + null !== m && K(H, m.startTime - b); + w = false; + } + return w; + } finally { + v = null, y = c, z = false; + } + } + var N = false; + var O = null; + var L = -1; + var P = 5; + var Q = -1; + function M() { + return exports.unstable_now() - Q < P ? false : true; + } + function R() { + if (null !== O) { + var a = exports.unstable_now(); + Q = a; + var b = true; + try { + b = O(true, a); + } finally { + b ? S() : (N = false, O = null); + } + } else + N = false; + } + var S; + if ("function" === typeof F) + S = function() { + F(R); + }; + else if ("undefined" !== typeof MessageChannel) { + T = new MessageChannel(), U = T.port2; + T.port1.onmessage = R; + S = function() { + U.postMessage(null); + }; + } else + S = function() { + D(R, 0); + }; + var T; + var U; + function I(a) { + O = a; + N || (N = true, S()); + } + function K(a, b) { + L = D(function() { + a(exports.unstable_now()); + }, b); + } + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_cancelCallback = function(a) { + a.callback = null; + }; + exports.unstable_continueExecution = function() { + A || z || (A = true, I(J)); + }; + exports.unstable_forceFrameRate = function(a) { + 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5; + }; + exports.unstable_getCurrentPriorityLevel = function() { + return y; + }; + exports.unstable_getFirstCallbackNode = function() { + return h(r); + }; + exports.unstable_next = function(a) { + switch (y) { + case 1: + case 2: + case 3: + var b = 3; + break; + default: + b = y; + } + var c = y; + y = b; + try { + return a(); + } finally { + y = c; + } + }; + exports.unstable_pauseExecution = function() { + }; + exports.unstable_requestPaint = function() { + }; + exports.unstable_runWithPriority = function(a, b) { + switch (a) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + a = 3; + } + var c = y; + y = a; + try { + return b(); + } finally { + y = c; + } + }; + exports.unstable_scheduleCallback = function(a, b, c) { + var d = exports.unstable_now(); + "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1e4; + break; + default: + e = 5e3; + } + e = c + e; + a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 }; + c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J))); + return a; + }; + exports.unstable_shouldYield = M; + exports.unstable_wrapCallback = function(a) { + var b = y; + return function() { + var c = y; + y = b; + try { + return a.apply(this, arguments); + } finally { + y = c; + } + }; + }; + } +}); + +// node_modules/scheduler/cjs/scheduler.development.js +var require_scheduler_development = __commonJS({ + "node_modules/scheduler/cjs/scheduler.development.js"(exports) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var enableSchedulerDebugging = false; + var enableProfiling = false; + var frameYieldMs = 5; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; + } + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + return first; + } + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + return; + } + } + } + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; + if (compare(left, node) < 0) { + if (rightIndex < length && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + return; + } + } + } + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) { + } + var hasPerformanceNow = typeof performance === "object" && typeof performance.now === "function"; + if (hasPerformanceNow) { + var localPerformance = performance; + exports.unstable_now = function() { + return localPerformance.now(); + }; + } else { + var localDate = Date; + var initialTime = localDate.now(); + exports.unstable_now = function() { + return localDate.now() - initialTime; + }; + } + var maxSigned31BitInt = 1073741823; + var IMMEDIATE_PRIORITY_TIMEOUT = -1; + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5e3; + var LOW_PRIORITY_TIMEOUT = 1e4; + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + var taskQueue = []; + var timerQueue = []; + var taskIdCounter = 1; + var currentTask = null; + var currentPriorityLevel = NormalPriority; + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + var localSetTimeout = typeof setTimeout === "function" ? setTimeout : null; + var localClearTimeout = typeof clearTimeout === "function" ? clearTimeout : null; + var localSetImmediate = typeof setImmediate !== "undefined" ? setImmediate : null; + var isInputPending = typeof navigator !== "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function advanceTimers(currentTime) { + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + return; + } + timer = peek(timerQueue); + } + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + function flushWork(hasTimeRemaining, initialTime2) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime2); + } catch (error) { + if (currentTask !== null) { + var currentTime = exports.unstable_now(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + throw error; + } + } else { + return workLoop(hasTimeRemaining, initialTime2); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + } + } + function workLoop(hasTimeRemaining, initialTime2) { + var currentTime = initialTime2; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + break; + } + var callback = currentTask.callback; + if (typeof callback === "function") { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = exports.unstable_now(); + if (typeof continuationCallback === "function") { + currentTask.callback = continuationCallback; + } else { + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + currentTask = peek(taskQueue); + } + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + return false; + } + } + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + default: + priorityLevel = NormalPriority; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_next(eventHandler) { + var priorityLevel; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + priorityLevel = NormalPriority; + break; + default: + priorityLevel = currentPriorityLevel; + break; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function() { + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = exports.unstable_now(); + var startTime2; + if (typeof options === "object" && options !== null) { + var delay = options.delay; + if (typeof delay === "number" && delay > 0) { + startTime2 = currentTime + delay; + } else { + startTime2 = currentTime; + } + } else { + startTime2 = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime2 + timeout; + var newTask = { + id: taskIdCounter++, + callback, + priorityLevel, + startTime: startTime2, + expirationTime, + sortIndex: -1 + }; + if (startTime2 > currentTime) { + newTask.sortIndex = startTime2; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + if (isHostTimeoutScheduled) { + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } + requestHostTimeout(handleTimeout, startTime2 - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; + } + function unstable_pauseExecution() { + } + function unstable_continueExecution() { + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + function unstable_cancelCallback(task) { + task.callback = null; + } + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; + var frameInterval = frameYieldMs; + var startTime = -1; + function shouldYieldToHost() { + var timeElapsed = exports.unstable_now() - startTime; + if (timeElapsed < frameInterval) { + return false; + } + return true; + } + function requestPaint() { + } + function forceFrameRate(fps) { + if (fps < 0 || fps > 125) { + console["error"]("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); + return; + } + if (fps > 0) { + frameInterval = Math.floor(1e3 / fps); + } else { + frameInterval = frameYieldMs; + } + } + var performWorkUntilDeadline = function() { + if (scheduledHostCallback !== null) { + var currentTime = exports.unstable_now(); + startTime = currentTime; + var hasTimeRemaining = true; + var hasMoreWork = true; + try { + hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + } finally { + if (hasMoreWork) { + schedulePerformWorkUntilDeadline(); + } else { + isMessageLoopRunning = false; + scheduledHostCallback = null; + } + } + } else { + isMessageLoopRunning = false; + } + }; + var schedulePerformWorkUntilDeadline; + if (typeof localSetImmediate === "function") { + schedulePerformWorkUntilDeadline = function() { + localSetImmediate(performWorkUntilDeadline); + }; + } else if (typeof MessageChannel !== "undefined") { + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + schedulePerformWorkUntilDeadline = function() { + port.postMessage(null); + }; + } else { + schedulePerformWorkUntilDeadline = function() { + localSetTimeout(performWorkUntilDeadline, 0); + }; + } + function requestHostCallback(callback) { + scheduledHostCallback = callback; + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + schedulePerformWorkUntilDeadline(); + } + } + function requestHostTimeout(callback, ms) { + taskTimeoutID = localSetTimeout(function() { + callback(exports.unstable_now()); + }, ms); + } + function cancelHostTimeout() { + localClearTimeout(taskTimeoutID); + taskTimeoutID = -1; + } + var unstable_requestPaint = requestPaint; + var unstable_Profiling = null; + exports.unstable_IdlePriority = IdlePriority; + exports.unstable_ImmediatePriority = ImmediatePriority; + exports.unstable_LowPriority = LowPriority; + exports.unstable_NormalPriority = NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = UserBlockingPriority; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_forceFrameRate = forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = unstable_requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_shouldYield = shouldYieldToHost; + exports.unstable_wrapCallback = unstable_wrapCallback; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// node_modules/scheduler/index.js +var require_scheduler = __commonJS({ + "node_modules/scheduler/index.js"(exports, module) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV === "production") { + module.exports = require_scheduler_production_min(); + } else { + module.exports = require_scheduler_development(); + } + } +}); + // node_modules/react-dom/cjs/react-dom.production.min.js var require_react_dom_production_min = __commonJS({ "node_modules/react-dom/cjs/react-dom.production.min.js"(exports) { @@ -30823,162 +31557,18658 @@ var require_lib = __commonJS({ } }); -// src/LoginPage/react-test-renderer/node.test.tsx -init_cjs_shim(); - -// src/LoginPage/test.ts -init_cjs_shim(); -var LoginPageSpecs = (Suite, Given, When, Then, Check) => { - return [ - Suite.Default( - "Testing the LoginPage as react", - { - test0: Given.default( - [], - [When.TheEmailIsSetTo("adam@email.com")], - [Then.TheEmailIs("adam@email.com")] - ), - test1: Given.default( - [], - [ - When.TheEmailIsSetTo("adam@email.com"), - When.ThePasswordIsSetTo("secret") - ], - [ - Then.TheEmailIsNot("wade@rpc"), - Then.TheEmailIs("adam@email.com"), - Then.ThePasswordIs("secret"), - Then.ThePasswordIsNot("idk") - ] - ), - test2: Given.default( - [], - [When.TheEmailIsSetTo("adam@email.com")], - [Then.ThereIsNotAnEmailError()] - ), - test3: Given.default( - [], - [When.TheEmailIsSetTo("bob"), When.TheLoginIsSubmitted()], - [Then.ThereIsAnEmailError()] - ), - test4: Given.default( - [], - [ - When.TheEmailIsSetTo("adam@mail.com"), - When.ThePasswordIsSetTo("foso") - ], - [Then.ThereIsNotAnEmailError()] - ), - test5: Given.default( - [], - [ - When.TheEmailIsSetTo("adam@mail.com"), - When.ThePasswordIsSetTo("foso") - ], - [Then.ThereIsNotAnEmailError()] - ) - }, - [] - ) - ]; -}; - -// src/LoginPage/index.tsx -init_cjs_shim(); -var import_react = __toESM(require_react(), 1); -var import_react_redux = __toESM(require_lib(), 1); -var core = app_default(); -var selector = core.select.loginPageSelection; -var actions = core.app.actions; -var store = core.store; -var emailwarning = "Something isn\u2019t right. Please double check your email"; -function LoginPage() { - const selection = (0, import_react_redux.useSelector)(selector); - return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h2", null, "Welcome back!"), /* @__PURE__ */ import_react.default.createElement("form", null, /* @__PURE__ */ import_react.default.createElement("input", { type: "email", value: selection.email, onChange: (e) => store.dispatch(actions.setEmail(e.target.value)) }), /* @__PURE__ */ import_react.default.createElement("p", { id: "invalid-email-warning", className: "warnin" }, selection.error === "invalidEmail" && emailwarning), /* @__PURE__ */ import_react.default.createElement("br", null), /* @__PURE__ */ import_react.default.createElement("input", { type: "password", value: selection.password, onChange: (e) => store.dispatch(actions.setPassword(e.target.value)) }), /* @__PURE__ */ import_react.default.createElement("p", { id: "error" }, selection.error === "credentialFail" && "You entered an incorrect email, password, or both."), /* @__PURE__ */ import_react.default.createElement("br", null), /* @__PURE__ */ import_react.default.createElement("button", { disabled: selection.disableSubmit, onClick: (event) => { - store.dispatch(actions.signIn()); - } }, "Sign In")), /* @__PURE__ */ import_react.default.createElement("pre", null, JSON.stringify(selection, null, 2))); -} -function LoginPage_default() { - return /* @__PURE__ */ import_react.default.createElement(import_react_redux.Provider, { store }, /* @__PURE__ */ import_react.default.createElement(LoginPage, null)); -} - -// src/LoginPage/react-test-renderer/test.tsx -init_cjs_shim(); -var import_react_test_renderer = __toESM(require_react_test_renderer(), 1); -var LoginPageReactTestRendererTestInterface = { - butThen: async function(s, thenCB, tr) { - return thenCB(s); - }, - beforeEach: async function(CComponent, props) { - let component; - let elem; - await (0, import_react_test_renderer.act)(async () => { - elem = CComponent(); - component = import_react_test_renderer.default.create(elem); - }); - await component.root.props.store.dispatch(actions.reset()); - return component; - }, - andWhen: async function(renderer2, whenCB) { - await (0, import_react_test_renderer.act)(() => whenCB(renderer2)); - return renderer2; - } -}; -var loginPageImpl = { - suites: { - Default: "a default suite" - }, - givens: { - default: () => (i) => { - return i; +// node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +var require_scheduler_unstable_mock_production_min = __commonJS({ + "node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js"(exports) { + "use strict"; + init_cjs_shim(); + function f(a, b) { + var c = a.length; + a.push(b); + a: + for (; 0 < c; ) { + var d = c - 1 >>> 1, e = a[d]; + if (0 < g(e, b)) + a[d] = b, a[c] = e, c = d; + else + break a; + } } - }, - whens: { - TheLoginIsSubmitted: () => (component) => component.root.findByType("button").props.onClick(), - TheEmailIsSetTo: (email) => (component) => { - component.root.findByProps({ type: "email" }).props.onChange({ target: { value: email } }); - }, - ThePasswordIsSetTo: (password) => (component) => component.root.findByProps({ type: "password" }).props.onChange({ target: { value: password } }) - }, - thens: { - TheEmailIs: (email) => (component) => { - assert.equal( - component.root.findByProps({ type: "email" }).props.value, - email - ); - }, - TheEmailIsNot: (email) => (component) => assert.notEqual( - component.root.findByProps({ type: "email" }).props.value, - email - ), - ThePasswordIs: (password) => (component) => assert.equal( - component.root.findByProps({ type: "password" }).props.value, - password - ), - ThePasswordIsNot: (password) => (component) => assert.notEqual( - component.root.findByProps({ type: "password" }).props.value, - password - ), - ThereIsAnEmailError: () => (component) => { - assert.equal( - component.root.findByProps({ id: "invalid-email-warning" }).children[0], - emailwarning - ); - }, - ThereIsNotAnEmailError: () => (component) => { - const errorField = component.root.findByProps({ id: "invalid-email-warning" }); - console.log(errorField.children); - assert.isEmpty(errorField.children); + function h(a) { + return 0 === a.length ? null : a[0]; } - }, - checks: { - default: () => () => { - return {}; + function k(a) { + if (0 === a.length) + return null; + var b = a[0], c = a.pop(); + if (c !== b) { + a[0] = c; + a: + for (var d = 0, e = a.length, D = e >>> 1; d < D; ) { + var u = 2 * (d + 1) - 1, z = a[u], v = u + 1, E = a[v]; + if (0 > g(z, c)) + v < e && 0 > g(E, z) ? (a[d] = E, a[v] = c, d = v) : (a[d] = z, a[u] = c, d = u); + else if (v < e && 0 > g(E, c)) + a[d] = E, a[v] = c, d = v; + else + break a; + } + } + return b; + } + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; + } + var l = []; + var m = []; + var n = 1; + var p = null; + var q = 3; + var r = false; + var t = false; + var w = false; + var x = 0; + var y = null; + var A = null; + var B = -1; + var C = null; + var F = -1; + var G = false; + var H = false; + var I = false; + var J = false; + var K = false; + function L(a) { + for (var b = h(m); null !== b; ) { + if (null === b.callback) + k(m); + else if (b.startTime <= a) + k(m), b.sortIndex = b.expirationTime, f(l, b); + else + break; + b = h(m); + } + } + function M(a) { + w = false; + L(a); + if (!t) + if (null !== h(l)) + t = true, y = N; + else { + var b = h(m); + null !== b && (a = b.startTime - a, A = M, B = x + a); + } + } + function N(a, b) { + t = false; + w && (w = false, A = null, B = -1); + r = true; + var c = q; + try { + L(b); + for (p = h(l); null !== p && (!(p.expirationTime > b) || a && !O()); ) { + var d = p.callback; + if ("function" === typeof d) { + p.callback = null; + q = p.priorityLevel; + var e = d(p.expirationTime <= b); + b = x; + "function" === typeof e ? p.callback = e : p === h(l) && k(l); + L(b); + } else + k(l); + p = h(l); + } + if (null !== p) + var D = true; + else { + var u = h(m); + if (null !== u) { + var z = u.startTime - b; + A = M; + B = x + z; + } + D = false; + } + return D; + } finally { + p = null, q = c, r = false; + } + } + function O() { + return 0 === F && null === C || -1 !== F && null !== C && C.length >= F || J && I ? G = true : false; + } + function P() { + if (H) + throw Error("Already flushing work."); + if (null !== y) { + var a = y; + H = true; + try { + var b = true; + do + b = a(true, x); + while (b); + b || (y = null); + return true; + } finally { + H = false; + } + } else + return false; } + exports.reset = function() { + if (H) + throw Error("Cannot reset while already flushing work."); + x = 0; + A = y = null; + B = -1; + C = null; + F = -1; + I = H = G = false; + }; + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_advanceTime = function(a) { + "disabledLog" === console.log.name || K || (x += a, null !== A && B <= x && (A(x), B = -1, A = null)); + }; + exports.unstable_cancelCallback = function(a) { + a.callback = null; + }; + exports.unstable_clearYields = function() { + if (null === C) + return []; + var a = C; + C = null; + return a; + }; + exports.unstable_continueExecution = function() { + t || r || (t = true, y = N); + }; + exports.unstable_flushAll = function() { + if (null !== C) + throw Error("Log is not empty. Assert on the log of yielded values before flushing additional work."); + P(); + if (null !== C) + throw Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])"); + }; + exports.unstable_flushAllWithoutAsserting = P; + exports.unstable_flushExpired = function() { + if (H) + throw Error("Already flushing work."); + if (null !== y) { + H = true; + try { + y(false, x) || (y = null); + } finally { + H = false; + } + } + }; + exports.unstable_flushNumberOfYields = function(a) { + if (H) + throw Error("Already flushing work."); + if (null !== y) { + var b = y; + F = a; + H = true; + try { + a = true; + do + a = b(true, x); + while (a && !G); + a || (y = null); + } finally { + F = -1, H = G = false; + } + } + }; + exports.unstable_flushUntilNextPaint = function() { + if (H) + throw Error("Already flushing work."); + if (null !== y) { + var a = y; + J = true; + I = false; + H = true; + try { + var b = true; + do + b = a(true, x); + while (b && !G); + b || (y = null); + } finally { + H = G = J = false; + } + } + }; + exports.unstable_forceFrameRate = function() { + }; + exports.unstable_getCurrentPriorityLevel = function() { + return q; + }; + exports.unstable_getFirstCallbackNode = function() { + return h(l); + }; + exports.unstable_next = function(a) { + switch (q) { + case 1: + case 2: + case 3: + var b = 3; + break; + default: + b = q; + } + var c = q; + q = b; + try { + return a(); + } finally { + q = c; + } + }; + exports.unstable_now = function() { + return x; + }; + exports.unstable_pauseExecution = function() { + }; + exports.unstable_requestPaint = function() { + I = true; + }; + exports.unstable_runWithPriority = function(a, b) { + switch (a) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + a = 3; + } + var c = q; + q = a; + try { + return b(); + } finally { + q = c; + } + }; + exports.unstable_scheduleCallback = function(a, b, c) { + var d = x; + "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1e4; + break; + default: + e = 5e3; + } + e = c + e; + a = { id: n++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 }; + c > d ? (a.sortIndex = c, f(m, a), null === h(l) && a === h(m) && (w ? (A = null, B = -1) : w = true, A = M, B = x + (c - d))) : (a.sortIndex = e, f(l, a), t || r || (t = true, y = N)); + return a; + }; + exports.unstable_setDisableYieldValue = function(a) { + K = a; + }; + exports.unstable_shouldYield = O; + exports.unstable_wrapCallback = function(a) { + var b = q; + return function() { + var c = q; + q = b; + try { + return a.apply(this, arguments); + } finally { + q = c; + } + }; + }; + exports.unstable_yieldValue = function(a) { + "disabledLog" === console.log.name || K || (null === C ? C = [a] : C.push(a)); + }; } -}; +}); -// src/LoginPage/react-test-renderer/node.test.tsx +// node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +var require_scheduler_unstable_mock_development = __commonJS({ + "node_modules/scheduler/cjs/scheduler-unstable_mock.development.js"(exports) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + var enableSchedulerDebugging = false; + var enableProfiling = false; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; + } + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + return first; + } + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + return; + } + } + } + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; + if (compare(left, node) < 0) { + if (rightIndex < length && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + return; + } + } + } + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) { + } + var maxSigned31BitInt = 1073741823; + var IMMEDIATE_PRIORITY_TIMEOUT = -1; + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5e3; + var LOW_PRIORITY_TIMEOUT = 1e4; + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + var taskQueue = []; + var timerQueue = []; + var taskIdCounter = 1; + var currentTask = null; + var currentPriorityLevel = NormalPriority; + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + var currentMockTime = 0; + var scheduledCallback = null; + var scheduledTimeout = null; + var timeoutTime = -1; + var yieldedValues = null; + var expectedNumberOfYields = -1; + var didStop = false; + var isFlushing = false; + var needsPaint = false; + var shouldYieldForPaint = false; + var disableYieldValue = false; + function setDisableYieldValue(newValue) { + disableYieldValue = newValue; + } + function advanceTimers(currentTime) { + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + return; + } + timer = peek(timerQueue); + } + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + function flushWork(hasTimeRemaining, initialTime) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime); + } catch (error) { + if (currentTask !== null) { + var currentTime = getCurrentTime(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + throw error; + } + } else { + return workLoop(hasTimeRemaining, initialTime); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + } + } + function workLoop(hasTimeRemaining, initialTime) { + var currentTime = initialTime; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + break; + } + var callback = currentTask.callback; + if (typeof callback === "function") { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = getCurrentTime(); + if (typeof continuationCallback === "function") { + currentTask.callback = continuationCallback; + } else { + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + currentTask = peek(taskQueue); + } + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + return false; + } + } + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + default: + priorityLevel = NormalPriority; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_next(eventHandler) { + var priorityLevel; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + priorityLevel = NormalPriority; + break; + default: + priorityLevel = currentPriorityLevel; + break; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function() { + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = getCurrentTime(); + var startTime; + if (typeof options === "object" && options !== null) { + var delay = options.delay; + if (typeof delay === "number" && delay > 0) { + startTime = currentTime + delay; + } else { + startTime = currentTime; + } + } else { + startTime = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime + timeout; + var newTask = { + id: taskIdCounter++, + callback, + priorityLevel, + startTime, + expirationTime, + sortIndex: -1 + }; + if (startTime > currentTime) { + newTask.sortIndex = startTime; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + if (isHostTimeoutScheduled) { + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } + requestHostTimeout(handleTimeout, startTime - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; + } + function unstable_pauseExecution() { + } + function unstable_continueExecution() { + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + function unstable_cancelCallback(task) { + task.callback = null; + } + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + function requestHostCallback(callback) { + scheduledCallback = callback; + } + function requestHostTimeout(callback, ms) { + scheduledTimeout = callback; + timeoutTime = currentMockTime + ms; + } + function cancelHostTimeout() { + scheduledTimeout = null; + timeoutTime = -1; + } + function shouldYieldToHost() { + if (expectedNumberOfYields === 0 && yieldedValues === null || expectedNumberOfYields !== -1 && yieldedValues !== null && yieldedValues.length >= expectedNumberOfYields || shouldYieldForPaint && needsPaint) { + didStop = true; + return true; + } + return false; + } + function getCurrentTime() { + return currentMockTime; + } + function forceFrameRate() { + } + function reset() { + if (isFlushing) { + throw new Error("Cannot reset while already flushing work."); + } + currentMockTime = 0; + scheduledCallback = null; + scheduledTimeout = null; + timeoutTime = -1; + yieldedValues = null; + expectedNumberOfYields = -1; + didStop = false; + isFlushing = false; + needsPaint = false; + } + function unstable_flushNumberOfYields(count) { + if (isFlushing) { + throw new Error("Already flushing work."); + } + if (scheduledCallback !== null) { + var cb = scheduledCallback; + expectedNumberOfYields = count; + isFlushing = true; + try { + var hasMoreWork = true; + do { + hasMoreWork = cb(true, currentMockTime); + } while (hasMoreWork && !didStop); + if (!hasMoreWork) { + scheduledCallback = null; + } + } finally { + expectedNumberOfYields = -1; + didStop = false; + isFlushing = false; + } + } + } + function unstable_flushUntilNextPaint() { + if (isFlushing) { + throw new Error("Already flushing work."); + } + if (scheduledCallback !== null) { + var cb = scheduledCallback; + shouldYieldForPaint = true; + needsPaint = false; + isFlushing = true; + try { + var hasMoreWork = true; + do { + hasMoreWork = cb(true, currentMockTime); + } while (hasMoreWork && !didStop); + if (!hasMoreWork) { + scheduledCallback = null; + } + } finally { + shouldYieldForPaint = false; + didStop = false; + isFlushing = false; + } + } + } + function unstable_flushExpired() { + if (isFlushing) { + throw new Error("Already flushing work."); + } + if (scheduledCallback !== null) { + isFlushing = true; + try { + var hasMoreWork = scheduledCallback(false, currentMockTime); + if (!hasMoreWork) { + scheduledCallback = null; + } + } finally { + isFlushing = false; + } + } + } + function unstable_flushAllWithoutAsserting() { + if (isFlushing) { + throw new Error("Already flushing work."); + } + if (scheduledCallback !== null) { + var cb = scheduledCallback; + isFlushing = true; + try { + var hasMoreWork = true; + do { + hasMoreWork = cb(true, currentMockTime); + } while (hasMoreWork); + if (!hasMoreWork) { + scheduledCallback = null; + } + return true; + } finally { + isFlushing = false; + } + } else { + return false; + } + } + function unstable_clearYields() { + if (yieldedValues === null) { + return []; + } + var values = yieldedValues; + yieldedValues = null; + return values; + } + function unstable_flushAll() { + if (yieldedValues !== null) { + throw new Error("Log is not empty. Assert on the log of yielded values before flushing additional work."); + } + unstable_flushAllWithoutAsserting(); + if (yieldedValues !== null) { + throw new Error("While flushing work, something yielded a value. Use an assertion helper to assert on the log of yielded values, e.g. expect(Scheduler).toFlushAndYield([...])"); + } + } + function unstable_yieldValue(value) { + if (console.log.name === "disabledLog" || disableYieldValue) { + return; + } + if (yieldedValues === null) { + yieldedValues = [value]; + } else { + yieldedValues.push(value); + } + } + function unstable_advanceTime(ms) { + if (console.log.name === "disabledLog" || disableYieldValue) { + return; + } + currentMockTime += ms; + if (scheduledTimeout !== null && timeoutTime <= currentMockTime) { + scheduledTimeout(currentMockTime); + timeoutTime = -1; + scheduledTimeout = null; + } + } + function requestPaint() { + needsPaint = true; + } + var unstable_Profiling = null; + exports.reset = reset; + exports.unstable_IdlePriority = IdlePriority; + exports.unstable_ImmediatePriority = ImmediatePriority; + exports.unstable_LowPriority = LowPriority; + exports.unstable_NormalPriority = NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = UserBlockingPriority; + exports.unstable_advanceTime = unstable_advanceTime; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_clearYields = unstable_clearYields; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_flushAll = unstable_flushAll; + exports.unstable_flushAllWithoutAsserting = unstable_flushAllWithoutAsserting; + exports.unstable_flushExpired = unstable_flushExpired; + exports.unstable_flushNumberOfYields = unstable_flushNumberOfYields; + exports.unstable_flushUntilNextPaint = unstable_flushUntilNextPaint; + exports.unstable_forceFrameRate = forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_now = getCurrentTime; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_setDisableYieldValue = setDisableYieldValue; + exports.unstable_shouldYield = shouldYieldToHost; + exports.unstable_wrapCallback = unstable_wrapCallback; + exports.unstable_yieldValue = unstable_yieldValue; + })(); + } + } +}); + +// node_modules/scheduler/unstable_mock.js +var require_unstable_mock = __commonJS({ + "node_modules/scheduler/unstable_mock.js"(exports, module) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV === "production") { + module.exports = require_scheduler_unstable_mock_production_min(); + } else { + module.exports = require_scheduler_unstable_mock_development(); + } + } +}); + +// node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js +var require_react_test_renderer_production_min = __commonJS({ + "node_modules/react-test-renderer/cjs/react-test-renderer.production.min.js"(exports) { + "use strict"; + init_cjs_shim(); + var aa = require_react(); + var ba = require_unstable_mock(); + var ca = require_scheduler(); + function da(a, b) { + for (var c = 0; c < b.length; c++) { + var d = b[c]; + d.enumerable = d.enumerable || false; + d.configurable = true; + "value" in d && (d.writable = true); + Object.defineProperty(a, d.key, d); + } + } + function ea(a, b, c) { + b && da(a.prototype, b); + c && da(a, c); + return a; + } + var fa = Object.assign; + var ha = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var ia = Symbol.for("react.element"); + var ja = Symbol.for("react.portal"); + var ka = Symbol.for("react.fragment"); + var la = Symbol.for("react.strict_mode"); + var ma = Symbol.for("react.profiler"); + var na = Symbol.for("react.provider"); + var oa = Symbol.for("react.context"); + var pa = Symbol.for("react.forward_ref"); + var qa = Symbol.for("react.suspense"); + var ra = Symbol.for("react.suspense_list"); + var sa = Symbol.for("react.memo"); + var ta = Symbol.for("react.lazy"); + Symbol.for("react.scope"); + Symbol.for("react.debug_trace_mode"); + var ua = Symbol.for("react.offscreen"); + Symbol.for("react.legacy_hidden"); + Symbol.for("react.cache"); + Symbol.for("react.tracing_marker"); + var va = Symbol.iterator; + function wa(a) { + if (null === a || "object" !== typeof a) + return null; + a = va && a[va] || a["@@iterator"]; + return "function" === typeof a ? a : null; + } + function xa(a) { + if (null == a) + return null; + if ("function" === typeof a) + return a.displayName || a.name || null; + if ("string" === typeof a) + return a; + switch (a) { + case ka: + return "Fragment"; + case ja: + return "Portal"; + case ma: + return "Profiler"; + case la: + return "StrictMode"; + case qa: + return "Suspense"; + case ra: + return "SuspenseList"; + } + if ("object" === typeof a) + switch (a.$$typeof) { + case oa: + return (a.displayName || "Context") + ".Consumer"; + case na: + return (a._context.displayName || "Context") + ".Provider"; + case pa: + var b = a.render; + a = a.displayName; + a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + return a; + case sa: + return b = a.displayName || null, null !== b ? b : xa(a.type) || "Memo"; + case ta: + b = a._payload; + a = a._init; + try { + return xa(a(b)); + } catch (c) { + } + } + return null; + } + function ya(a) { + var b = a.type; + switch (a.tag) { + case 24: + return "Cache"; + case 9: + return (b.displayName || "Context") + ".Consumer"; + case 10: + return (b._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return b; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return xa(b); + case 8: + return b === la ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof b) + return b.displayName || b.name || null; + if ("string" === typeof b) + return b; + } + return null; + } + function za(a) { + var b = a, c = a; + if (a.alternate) + for (; b.return; ) + b = b.return; + else { + a = b; + do + b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; + while (a); + } + return 3 === b.tag ? c : null; + } + function Aa(a) { + if (za(a) !== a) + throw Error("Unable to find node on an unmounted component."); + } + function Ba(a) { + var b = a.alternate; + if (!b) { + b = za(a); + if (null === b) + throw Error("Unable to find node on an unmounted component."); + return b !== a ? null : a; + } + for (var c = a, d = b; ; ) { + var e = c.return; + if (null === e) + break; + var f = e.alternate; + if (null === f) { + d = e.return; + if (null !== d) { + c = d; + continue; + } + break; + } + if (e.child === f.child) { + for (f = e.child; f; ) { + if (f === c) + return Aa(e), a; + if (f === d) + return Aa(e), b; + f = f.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (c.return !== d.return) + c = e, d = f; + else { + for (var g = false, h = e.child; h; ) { + if (h === c) { + g = true; + c = e; + d = f; + break; + } + if (h === d) { + g = true; + d = e; + c = f; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f.child; h; ) { + if (h === c) { + g = true; + c = f; + d = e; + break; + } + if (h === d) { + g = true; + d = f; + c = e; + break; + } + h = h.sibling; + } + if (!g) + throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + if (c.alternate !== d) + throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + if (3 !== c.tag) + throw Error("Unable to find node on an unmounted component."); + return c.stateNode.current === c ? a : b; + } + function Ca(a) { + if (5 === a.tag || 6 === a.tag) + return a; + for (a = a.child; null !== a; ) { + var b = Ca(a); + if (null !== b) + return b; + a = a.sibling; + } + return null; + } + var Da = Array.isArray; + var Ea = ca.unstable_scheduleCallback; + var Fa = ca.unstable_cancelCallback; + var Ga = ca.unstable_shouldYield; + var Ha = ca.unstable_requestPaint; + var q = ca.unstable_now; + var Ia = ca.unstable_ImmediatePriority; + var Ja = ca.unstable_UserBlockingPriority; + var La = ca.unstable_NormalPriority; + var Ma = ca.unstable_IdlePriority; + var Na = null; + var Oa = null; + function Pa(a) { + if (Oa && "function" === typeof Oa.onCommitFiberRoot) + try { + Oa.onCommitFiberRoot(Na, a, void 0, 128 === (a.current.flags & 128)); + } catch (b) { + } + } + var Ra = Math.clz32 ? Math.clz32 : Qa; + var Sa = Math.log; + var Ta = Math.LN2; + function Qa(a) { + a >>>= 0; + return 0 === a ? 32 : 31 - (Sa(a) / Ta | 0) | 0; + } + var Ua = 64; + var Va = 4194304; + function Wa(a) { + switch (a & -a) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a; + } + } + function Xa(a, b) { + var c = a.pendingLanes; + if (0 === c) + return 0; + var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455; + if (0 !== g) { + var h = g & ~e; + 0 !== h ? d = Wa(h) : (f &= g, 0 !== f && (d = Wa(f))); + } else + g = c & ~e, 0 !== g ? d = Wa(g) : 0 !== f && (d = Wa(f)); + if (0 === d) + return 0; + if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) + return b; + 0 !== (d & 4) && (d |= c & 16); + b = a.entangledLanes; + if (0 !== b) + for (a = a.entanglements, b &= d; 0 < b; ) + c = 31 - Ra(b), e = 1 << c, d |= a[c], b &= ~e; + return d; + } + function Za(a, b) { + switch (a) { + case 1: + case 2: + case 4: + return b + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } + } + function $a(a) { + a = a.pendingLanes & -1073741825; + return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; + } + function ab() { + var a = Ua; + Ua <<= 1; + 0 === (Ua & 4194240) && (Ua = 64); + return a; + } + function bb(a) { + for (var b = [], c = 0; 31 > c; c++) + b.push(a); + return b; + } + function cb(a, b, c) { + a.pendingLanes |= b; + 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0); + a = a.eventTimes; + b = 31 - Ra(b); + a[b] = c; + } + function db(a, b) { + var c = a.pendingLanes & ~b; + a.pendingLanes = b; + a.suspendedLanes = 0; + a.pingedLanes = 0; + a.expiredLanes &= b; + a.mutableReadLanes &= b; + a.entangledLanes &= b; + b = a.entanglements; + var d = a.eventTimes; + for (a = a.expirationTimes; 0 < c; ) { + var e = 31 - Ra(c), f = 1 << e; + b[e] = 0; + d[e] = -1; + a[e] = -1; + c &= ~f; + } + } + function eb(a, b) { + var c = a.entangledLanes |= b; + for (a = a.entanglements; c; ) { + var d = 31 - Ra(c), e = 1 << d; + e & b | a[d] & b && (a[d] |= b); + c &= ~e; + } + } + var v = 0; + function fb(a) { + a &= -a; + return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; + } + function gb() { + throw Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); + } + var ib = {}; + var jb = {}; + var kb = /* @__PURE__ */ new WeakMap(); + function lb(a) { + switch (a.tag) { + case "INSTANCE": + var b = a.rootContainerInstance.createNodeMock; + b = b({ type: a.type, props: a.props }); + "object" === typeof b && null !== b && kb.set(b, a); + return b; + default: + return a; + } + } + function mb(a, b) { + var c = a.children.indexOf(b); + -1 !== c && a.children.splice(c, 1); + a.children.push(b); + } + function nb(a, b, c) { + var d = a.children.indexOf(b); + -1 !== d && a.children.splice(d, 1); + c = a.children.indexOf(c); + a.children.splice(c, 0, b); + } + var ob = setTimeout; + var pb = clearTimeout; + var qb; + function rb(a) { + if (void 0 === qb) + try { + throw Error(); + } catch (c) { + var b = c.stack.trim().match(/\n( *(at )?)/); + qb = b && b[1] || ""; + } + return "\n" + qb + a; + } + var sb = false; + function tb(a, b) { + if (!a || sb) + return ""; + sb = true; + var c = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b) + if (b = function() { + throw Error(); + }, Object.defineProperty(b.prototype, "props", { set: function() { + throw Error(); + } }), "object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(b, []); + } catch (l) { + var d = l; + } + Reflect.construct(a, [], b); + } else { + try { + b.call(); + } catch (l) { + d = l; + } + a.call(b.prototype); + } + else { + try { + throw Error(); + } catch (l) { + d = l; + } + a(); + } + } catch (l) { + if (l && d && "string" === typeof l.stack) { + for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h]; ) + h--; + for (; 1 <= g && 0 <= h; g--, h--) + if (e[g] !== f[h]) { + if (1 !== g || 1 !== h) { + do + if (g--, h--, 0 > h || e[g] !== f[h]) { + var k = "\n" + e[g].replace(" at new ", " at "); + a.displayName && k.includes("") && (k = k.replace("", a.displayName)); + return k; + } + while (1 <= g && 0 <= h); + } + break; + } + } + } finally { + sb = false, Error.prepareStackTrace = c; + } + return (a = a ? a.displayName || a.name : "") ? rb(a) : ""; + } + var ub = Object.prototype.hasOwnProperty; + var vb = []; + var wb = -1; + function xb(a) { + return { current: a }; + } + function x(a) { + 0 > wb || (a.current = vb[wb], vb[wb] = null, wb--); + } + function y(a, b) { + wb++; + vb[wb] = a.current; + a.current = b; + } + var yb = {}; + var z = xb(yb); + var C = xb(false); + var zb = yb; + function Ab(a, b) { + var c = a.type.contextTypes; + if (!c) + return yb; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) + return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, f; + for (f in c) + e[f] = b[f]; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e); + return e; + } + function D(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; + } + function Bb() { + x(C); + x(z); + } + function Cb(a, b, c) { + if (z.current !== yb) + throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + y(z, b); + y(C, c); + } + function Db(a, b, c) { + var d = a.stateNode; + b = b.childContextTypes; + if ("function" !== typeof d.getChildContext) + return c; + d = d.getChildContext(); + for (var e in d) + if (!(e in b)) + throw Error((ya(a) || "Unknown") + '.getChildContext(): key "' + e + '" is not defined in childContextTypes.'); + return fa({}, c, d); + } + function Eb(a) { + a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || yb; + zb = z.current; + y(z, a); + y(C, C.current); + return true; + } + function Fb(a, b, c) { + var d = a.stateNode; + if (!d) + throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + c ? (a = Db(a, b, zb), d.__reactInternalMemoizedMergedChildContext = a, x(C), x(z), y(z, a)) : x(C); + y(C, c); + } + function Gb(a, b) { + return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; + } + var Hb = "function" === typeof Object.is ? Object.is : Gb; + var E = null; + var Ib = false; + var Jb = false; + function Kb() { + if (!Jb && null !== E) { + Jb = true; + var a = 0, b = v; + try { + var c = E; + for (v = 1; a < c.length; a++) { + var d = c[a]; + do + d = d(true); + while (null !== d); + } + E = null; + Ib = false; + } catch (e) { + throw null !== E && (E = E.slice(a + 1)), Ea(Ia, Kb), e; + } finally { + v = b, Jb = false; + } + } + return null; + } + var Lb = []; + var Mb = 0; + var Nb = null; + var Ob = []; + var Pb = 0; + var Qb = null; + function Rb(a) { + for (; a === Nb; ) + Nb = Lb[--Mb], Lb[Mb] = null, --Mb, Lb[Mb] = null; + for (; a === Qb; ) + Qb = Ob[--Pb], Ob[Pb] = null, --Pb, Ob[Pb] = null, --Pb, Ob[Pb] = null; + } + var Sb = null; + var Tb = ha.ReactCurrentBatchConfig; + function Ub(a, b) { + if (Hb(a, b)) + return true; + if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) + return false; + var c = Object.keys(a), d = Object.keys(b); + if (c.length !== d.length) + return false; + for (d = 0; d < c.length; d++) { + var e = c[d]; + if (!ub.call(b, e) || !Hb(a[e], b[e])) + return false; + } + return true; + } + function Vb(a) { + switch (a.tag) { + case 5: + return rb(a.type); + case 16: + return rb("Lazy"); + case 13: + return rb("Suspense"); + case 19: + return rb("SuspenseList"); + case 0: + case 2: + case 15: + return a = tb(a.type, false), a; + case 11: + return a = tb(a.type.render, false), a; + case 1: + return a = tb(a.type, true), a; + default: + return ""; + } + } + function Wb(a, b) { + if (a && a.defaultProps) { + b = fa({}, b); + a = a.defaultProps; + for (var c in a) + void 0 === b[c] && (b[c] = a[c]); + return b; + } + return b; + } + var Xb = xb(null); + var Yb = null; + var Zb = null; + var $b = null; + function ac() { + $b = Zb = Yb = null; + } + function bc(a) { + var b = Xb.current; + x(Xb); + a._currentValue2 = b; + } + function cc(a, b, c) { + for (; null !== a; ) { + var d = a.alternate; + (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); + if (a === c) + break; + a = a.return; + } + } + function dc(a, b) { + Yb = a; + $b = Zb = null; + a = a.dependencies; + null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (F = true), a.firstContext = null); + } + function H(a) { + var b = a._currentValue2; + if ($b !== a) + if (a = { context: a, memoizedValue: b, next: null }, null === Zb) { + if (null === Yb) + throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + Zb = a; + Yb.dependencies = { lanes: 0, firstContext: a }; + } else + Zb = Zb.next = a; + return b; + } + var ec = null; + function fc(a) { + null === ec ? ec = [a] : ec.push(a); + } + function gc(a, b, c, d) { + var e = b.interleaved; + null === e ? (c.next = c, fc(b)) : (c.next = e.next, e.next = c); + b.interleaved = c; + return hc(a, d); + } + function hc(a, b) { + a.lanes |= b; + var c = a.alternate; + null !== c && (c.lanes |= b); + c = a; + for (a = a.return; null !== a; ) + a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return; + return 3 === c.tag ? c.stateNode : null; + } + var ic = false; + function jc(a) { + a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; + } + function kc(a, b) { + a = a.updateQueue; + b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects }); + } + function lc(a, b) { + return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null }; + } + function mc(a, b, c) { + var d = a.updateQueue; + if (null === d) + return null; + d = d.shared; + if (0 !== (I & 2)) { + var e = d.pending; + null === e ? b.next = b : (b.next = e.next, e.next = b); + d.pending = b; + return hc(a, c); + } + e = d.interleaved; + null === e ? (b.next = b, fc(d)) : (b.next = e.next, e.next = b); + d.interleaved = b; + return hc(a, c); + } + function nc(a, b, c) { + b = b.updateQueue; + if (null !== b && (b = b.shared, 0 !== (c & 4194240))) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + eb(a, c); + } + } + function oc(a, b) { + var c = a.updateQueue, d = a.alternate; + if (null !== d && (d = d.updateQueue, c === d)) { + var e = null, f = null; + c = c.firstBaseUpdate; + if (null !== c) { + do { + var g = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null }; + null === f ? e = f = g : f = f.next = g; + c = c.next; + } while (null !== c); + null === f ? e = f = b : f = f.next = b; + } else + e = f = b; + c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f, shared: d.shared, effects: d.effects }; + a.updateQueue = c; + return; + } + a = c.lastBaseUpdate; + null === a ? c.firstBaseUpdate = b : a.next = b; + c.lastBaseUpdate = b; + } + function pc(a, b, c, d) { + var e = a.updateQueue; + ic = false; + var f = e.firstBaseUpdate, g = e.lastBaseUpdate, h = e.shared.pending; + if (null !== h) { + e.shared.pending = null; + var k = h, l = k.next; + k.next = null; + null === g ? f = l : g.next = l; + g = k; + var m = a.alternate; + null !== m && (m = m.updateQueue, h = m.lastBaseUpdate, h !== g && (null === h ? m.firstBaseUpdate = l : h.next = l, m.lastBaseUpdate = k)); + } + if (null !== f) { + var w = e.baseState; + g = 0; + m = l = k = null; + h = f; + do { + var p = h.lane, B = h.eventTime; + if ((d & p) === p) { + null !== m && (m = m.next = { + eventTime: B, + lane: 0, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }); + a: { + var r = a, G = h; + p = b; + B = c; + switch (G.tag) { + case 1: + r = G.payload; + if ("function" === typeof r) { + w = r.call(B, w, p); + break a; + } + w = r; + break a; + case 3: + r.flags = r.flags & -65537 | 128; + case 0: + r = G.payload; + p = "function" === typeof r ? r.call(B, w, p) : r; + if (null === p || void 0 === p) + break a; + w = fa({}, w, p); + break a; + case 2: + ic = true; + } + } + null !== h.callback && 0 !== h.lane && (a.flags |= 64, p = e.effects, null === p ? e.effects = [h] : p.push(h)); + } else + B = { eventTime: B, lane: p, tag: h.tag, payload: h.payload, callback: h.callback, next: null }, null === m ? (l = m = B, k = w) : m = m.next = B, g |= p; + h = h.next; + if (null === h) + if (h = e.shared.pending, null === h) + break; + else + p = h, h = p.next, p.next = null, e.lastBaseUpdate = p, e.shared.pending = null; + } while (1); + null === m && (k = w); + e.baseState = k; + e.firstBaseUpdate = l; + e.lastBaseUpdate = m; + b = e.shared.interleaved; + if (null !== b) { + e = b; + do + g |= e.lane, e = e.next; + while (e !== b); + } else + null === f && (e.shared.lanes = 0); + J |= g; + a.lanes = g; + a.memoizedState = w; + } + } + function qc(a, b, c) { + a = b.effects; + b.effects = null; + if (null !== a) + for (b = 0; b < a.length; b++) { + var d = a[b], e = d.callback; + if (null !== e) { + d.callback = null; + if ("function" !== typeof e) + throw Error("Invalid argument passed as callback. Expected a function. Instead received: " + e); + e.call(c); + } + } + } + var rc = new aa.Component().refs; + function sc(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : fa({}, b, c); + a.memoizedState = c; + 0 === a.lanes && (a.updateQueue.baseState = c); + } + var wc = { isMounted: function(a) { + return (a = a._reactInternals) ? za(a) === a : false; + }, enqueueSetState: function(a, b, c) { + a = a._reactInternals; + var d = tc(), e = uc(a), f = lc(d, e); + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = mc(a, f, e); + null !== b && (vc(b, a, e, d), nc(b, a, e)); + }, enqueueReplaceState: function(a, b, c) { + a = a._reactInternals; + var d = tc(), e = uc(a), f = lc(d, e); + f.tag = 1; + f.payload = b; + void 0 !== c && null !== c && (f.callback = c); + b = mc(a, f, e); + null !== b && (vc(b, a, e, d), nc(b, a, e)); + }, enqueueForceUpdate: function(a, b) { + a = a._reactInternals; + var c = tc(), d = uc(a), e = lc(c, d); + e.tag = 2; + void 0 !== b && null !== b && (e.callback = b); + b = mc(a, e, d); + null !== b && (vc(b, a, d, c), nc(b, a, d)); + } }; + function xc(a, b, c, d, e, f, g) { + a = a.stateNode; + return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Ub(c, d) || !Ub(e, f) : true; + } + function yc(a, b, c) { + var d = false, e = yb; + var f = b.contextType; + "object" === typeof f && null !== f ? f = H(f) : (e = D(b) ? zb : z.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Ab(a, e) : yb); + b = new b(c, f); + a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; + b.updater = wc; + a.stateNode = b; + b._reactInternals = a; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f); + return b; + } + function zc(a, b, c, d) { + a = b.state; + "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); + "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && wc.enqueueReplaceState(b, b.state, null); + } + function Ac(a, b, c, d) { + var e = a.stateNode; + e.props = c; + e.state = a.memoizedState; + e.refs = rc; + jc(a); + var f = b.contextType; + "object" === typeof f && null !== f ? e.context = H(f) : (f = D(b) ? zb : z.current, e.context = Ab(a, f)); + e.state = a.memoizedState; + f = b.getDerivedStateFromProps; + "function" === typeof f && (sc(a, b, f, c), e.state = a.memoizedState); + "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && wc.enqueueReplaceState(e, e.state, null), pc(a, c, e, d), e.state = a.memoizedState); + "function" === typeof e.componentDidMount && (a.flags |= 4); + } + function Bc(a, b, c) { + a = c.ref; + if (null !== a && "function" !== typeof a && "object" !== typeof a) { + if (c._owner) { + c = c._owner; + if (c) { + if (1 !== c.tag) + throw Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + var d = c.stateNode; + } + if (!d) + throw Error("Missing owner for string ref " + a + ". This error is likely caused by a bug in React. Please file an issue."); + var e = d, f = "" + a; + if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f) + return b.ref; + b = function(a2) { + var b2 = e.refs; + b2 === rc && (b2 = e.refs = {}); + null === a2 ? delete b2[f] : b2[f] = a2; + }; + b._stringRef = f; + return b; + } + if ("string" !== typeof a) + throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + if (!c._owner) + throw Error("Element ref was specified as a string (" + a + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + return a; + } + function Cc(a, b) { + a = Object.prototype.toString.call(b); + throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a) + "). If you meant to render a collection of children, use an array instead."); + } + function Dc(a) { + var b = a._init; + return b(a._payload); + } + function Ec(a) { + function b(b2, c2) { + if (a) { + var d2 = b2.deletions; + null === d2 ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2); + } + } + function c(c2, d2) { + if (!a) + return null; + for (; null !== d2; ) + b(c2, d2), d2 = d2.sibling; + return null; + } + function d(a2, b2) { + for (a2 = /* @__PURE__ */ new Map(); null !== b2; ) + null !== b2.key ? a2.set(b2.key, b2) : a2.set(b2.index, b2), b2 = b2.sibling; + return a2; + } + function e(a2, b2) { + a2 = Fc(a2, b2); + a2.index = 0; + a2.sibling = null; + return a2; + } + function f(b2, c2, d2) { + b2.index = d2; + if (!a) + return b2.flags |= 1048576, c2; + d2 = b2.alternate; + if (null !== d2) + return d2 = d2.index, d2 < c2 ? (b2.flags |= 2, c2) : d2; + b2.flags |= 2; + return c2; + } + function g(b2) { + a && null === b2.alternate && (b2.flags |= 2); + return b2; + } + function h(a2, b2, c2, d2) { + if (null === b2 || 6 !== b2.tag) + return b2 = Gc(c2, a2.mode, d2), b2.return = a2, b2; + b2 = e(b2, c2); + b2.return = a2; + return b2; + } + function k(a2, b2, c2, d2) { + var f2 = c2.type; + if (f2 === ka) + return m(a2, b2, c2.props.children, d2, c2.key); + if (null !== b2 && (b2.elementType === f2 || "object" === typeof f2 && null !== f2 && f2.$$typeof === ta && Dc(f2) === b2.type)) + return d2 = e(b2, c2.props), d2.ref = Bc(a2, b2, c2), d2.return = a2, d2; + d2 = Hc(c2.type, c2.key, c2.props, null, a2.mode, d2); + d2.ref = Bc(a2, b2, c2); + d2.return = a2; + return d2; + } + function l(a2, b2, c2, d2) { + if (null === b2 || 4 !== b2.tag || b2.stateNode.containerInfo !== c2.containerInfo || b2.stateNode.implementation !== c2.implementation) + return b2 = Ic(c2, a2.mode, d2), b2.return = a2, b2; + b2 = e(b2, c2.children || []); + b2.return = a2; + return b2; + } + function m(a2, b2, c2, d2, f2) { + if (null === b2 || 7 !== b2.tag) + return b2 = Jc(c2, a2.mode, d2, f2), b2.return = a2, b2; + b2 = e(b2, c2); + b2.return = a2; + return b2; + } + function w(a2, b2, c2) { + if ("string" === typeof b2 && "" !== b2 || "number" === typeof b2) + return b2 = Gc("" + b2, a2.mode, c2), b2.return = a2, b2; + if ("object" === typeof b2 && null !== b2) { + switch (b2.$$typeof) { + case ia: + return c2 = Hc(b2.type, b2.key, b2.props, null, a2.mode, c2), c2.ref = Bc(a2, null, b2), c2.return = a2, c2; + case ja: + return b2 = Ic(b2, a2.mode, c2), b2.return = a2, b2; + case ta: + var d2 = b2._init; + return w(a2, d2(b2._payload), c2); + } + if (Da(b2) || wa(b2)) + return b2 = Jc(b2, a2.mode, c2, null), b2.return = a2, b2; + Cc(a2, b2); + } + return null; + } + function p(a2, b2, c2, d2) { + var e2 = null !== b2 ? b2.key : null; + if ("string" === typeof c2 && "" !== c2 || "number" === typeof c2) + return null !== e2 ? null : h(a2, b2, "" + c2, d2); + if ("object" === typeof c2 && null !== c2) { + switch (c2.$$typeof) { + case ia: + return c2.key === e2 ? k(a2, b2, c2, d2) : null; + case ja: + return c2.key === e2 ? l(a2, b2, c2, d2) : null; + case ta: + return e2 = c2._init, p( + a2, + b2, + e2(c2._payload), + d2 + ); + } + if (Da(c2) || wa(c2)) + return null !== e2 ? null : m(a2, b2, c2, d2, null); + Cc(a2, c2); + } + return null; + } + function B(a2, b2, c2, d2, e2) { + if ("string" === typeof d2 && "" !== d2 || "number" === typeof d2) + return a2 = a2.get(c2) || null, h(b2, a2, "" + d2, e2); + if ("object" === typeof d2 && null !== d2) { + switch (d2.$$typeof) { + case ia: + return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, k(b2, a2, d2, e2); + case ja: + return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, l(b2, a2, d2, e2); + case ta: + var f2 = d2._init; + return B(a2, b2, c2, f2(d2._payload), e2); + } + if (Da(d2) || wa(d2)) + return a2 = a2.get(c2) || null, m(b2, a2, d2, e2, null); + Cc(b2, d2); + } + return null; + } + function r(e2, g2, h2, k2) { + for (var l2 = null, m2 = null, n = g2, t = g2 = 0, A = null; null !== n && t < h2.length; t++) { + n.index > t ? (A = n, n = null) : A = n.sibling; + var u = p(e2, n, h2[t], k2); + if (null === u) { + null === n && (n = A); + break; + } + a && n && null === u.alternate && b(e2, n); + g2 = f(u, g2, t); + null === m2 ? l2 = u : m2.sibling = u; + m2 = u; + n = A; + } + if (t === h2.length) + return c(e2, n), l2; + if (null === n) { + for (; t < h2.length; t++) + n = w(e2, h2[t], k2), null !== n && (g2 = f(n, g2, t), null === m2 ? l2 = n : m2.sibling = n, m2 = n); + return l2; + } + for (n = d(e2, n); t < h2.length; t++) + A = B(n, e2, t, h2[t], k2), null !== A && (a && null !== A.alternate && n.delete(null === A.key ? t : A.key), g2 = f(A, g2, t), null === m2 ? l2 = A : m2.sibling = A, m2 = A); + a && n.forEach(function(a2) { + return b(e2, a2); + }); + return l2; + } + function G(e2, g2, h2, k2) { + var l2 = wa(h2); + if ("function" !== typeof l2) + throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + h2 = l2.call(h2); + if (null == h2) + throw Error("An iterable object provided no iterator."); + for (var m2 = l2 = null, n = g2, t = g2 = 0, A = null, u = h2.next(); null !== n && !u.done; t++, u = h2.next()) { + n.index > t ? (A = n, n = null) : A = n.sibling; + var r2 = p(e2, n, u.value, k2); + if (null === r2) { + null === n && (n = A); + break; + } + a && n && null === r2.alternate && b(e2, n); + g2 = f(r2, g2, t); + null === m2 ? l2 = r2 : m2.sibling = r2; + m2 = r2; + n = A; + } + if (u.done) + return c(e2, n), l2; + if (null === n) { + for (; !u.done; t++, u = h2.next()) + u = w(e2, u.value, k2), null !== u && (g2 = f(u, g2, t), null === m2 ? l2 = u : m2.sibling = u, m2 = u); + return l2; + } + for (n = d(e2, n); !u.done; t++, u = h2.next()) + u = B(n, e2, t, u.value, k2), null !== u && (a && null !== u.alternate && n.delete(null === u.key ? t : u.key), g2 = f(u, g2, t), null === m2 ? l2 = u : m2.sibling = u, m2 = u); + a && n.forEach(function(a2) { + return b(e2, a2); + }); + return l2; + } + function Ka(a2, d2, f2, h2) { + "object" === typeof f2 && null !== f2 && f2.type === ka && null === f2.key && (f2 = f2.props.children); + if ("object" === typeof f2 && null !== f2) { + switch (f2.$$typeof) { + case ia: + a: { + for (var k2 = f2.key, l2 = d2; null !== l2; ) { + if (l2.key === k2) { + k2 = f2.type; + if (k2 === ka) { + if (7 === l2.tag) { + c(a2, l2.sibling); + d2 = e(l2, f2.props.children); + d2.return = a2; + a2 = d2; + break a; + } + } else if (l2.elementType === k2 || "object" === typeof k2 && null !== k2 && k2.$$typeof === ta && Dc(k2) === l2.type) { + c(a2, l2.sibling); + d2 = e(l2, f2.props); + d2.ref = Bc(a2, l2, f2); + d2.return = a2; + a2 = d2; + break a; + } + c(a2, l2); + break; + } else + b(a2, l2); + l2 = l2.sibling; + } + f2.type === ka ? (d2 = Jc(f2.props.children, a2.mode, h2, f2.key), d2.return = a2, a2 = d2) : (h2 = Hc(f2.type, f2.key, f2.props, null, a2.mode, h2), h2.ref = Bc(a2, d2, f2), h2.return = a2, a2 = h2); + } + return g(a2); + case ja: + a: { + for (l2 = f2.key; null !== d2; ) { + if (d2.key === l2) + if (4 === d2.tag && d2.stateNode.containerInfo === f2.containerInfo && d2.stateNode.implementation === f2.implementation) { + c(a2, d2.sibling); + d2 = e(d2, f2.children || []); + d2.return = a2; + a2 = d2; + break a; + } else { + c(a2, d2); + break; + } + else + b(a2, d2); + d2 = d2.sibling; + } + d2 = Ic(f2, a2.mode, h2); + d2.return = a2; + a2 = d2; + } + return g(a2); + case ta: + return l2 = f2._init, Ka(a2, d2, l2(f2._payload), h2); + } + if (Da(f2)) + return r(a2, d2, f2, h2); + if (wa(f2)) + return G(a2, d2, f2, h2); + Cc(a2, f2); + } + return "string" === typeof f2 && "" !== f2 || "number" === typeof f2 ? (f2 = "" + f2, null !== d2 && 6 === d2.tag ? (c(a2, d2.sibling), d2 = e(d2, f2), d2.return = a2, a2 = d2) : (c(a2, d2), d2 = Gc(f2, a2.mode, h2), d2.return = a2, a2 = d2), g(a2)) : c(a2, d2); + } + return Ka; + } + var Kc = Ec(true); + var Lc = Ec(false); + var Mc = {}; + var Nc = xb(Mc); + var Oc = xb(Mc); + var Pc = xb(Mc); + function Qc(a) { + if (a === Mc) + throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + return a; + } + function Rc(a, b) { + y(Pc, b); + y(Oc, a); + y(Nc, Mc); + x(Nc); + y(Nc, ib); + } + function Sc() { + x(Nc); + x(Oc); + x(Pc); + } + function Tc(a) { + Qc(Pc.current); + Qc(Nc.current) !== ib && (y(Oc, a), y(Nc, ib)); + } + function Uc(a) { + Oc.current === a && (x(Nc), x(Oc)); + } + var K = xb(0); + function Vc(a) { + for (var b = a; null !== b; ) { + if (13 === b.tag) { + var c = b.memoizedState; + if (null !== c && (null === c.dehydrated || gb() || gb())) + return b; + } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { + if (0 !== (b.flags & 128)) + return b; + } else if (null !== b.child) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) + break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) + return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + return null; + } + var Wc = []; + function Xc() { + for (var a = 0; a < Wc.length; a++) + Wc[a]._workInProgressVersionSecondary = null; + Wc.length = 0; + } + var Yc = ha.ReactCurrentDispatcher; + var Zc = ha.ReactCurrentBatchConfig; + var $c = 0; + var L = null; + var M = null; + var N = null; + var ad = false; + var bd = false; + var cd = 0; + function O() { + throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function dd(a, b) { + if (null === b) + return false; + for (var c = 0; c < b.length && c < a.length; c++) + if (!Hb(a[c], b[c])) + return false; + return true; + } + function ed(a, b, c, d, e, f) { + $c = f; + L = b; + b.memoizedState = null; + b.updateQueue = null; + b.lanes = 0; + Yc.current = null === a || null === a.memoizedState ? fd : gd; + a = c(d, e); + if (bd) { + f = 0; + do { + bd = false; + if (25 <= f) + throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + f += 1; + N = M = null; + b.updateQueue = null; + Yc.current = hd; + a = c(d, e); + } while (bd); + } + Yc.current = id; + b = null !== M && null !== M.next; + $c = 0; + N = M = L = null; + ad = false; + if (b) + throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + return a; + } + function jd() { + var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; + null === N ? L.memoizedState = N = a : N = N.next = a; + return N; + } + function kd() { + if (null === M) { + var a = L.alternate; + a = null !== a ? a.memoizedState : null; + } else + a = M.next; + var b = null === N ? L.memoizedState : N.next; + if (null !== b) + N = b, M = a; + else { + if (null === a) + throw Error("Rendered more hooks than during the previous render."); + M = a; + a = { memoizedState: M.memoizedState, baseState: M.baseState, baseQueue: M.baseQueue, queue: M.queue, next: null }; + null === N ? L.memoizedState = N = a : N = N.next = a; + } + return N; + } + function ld(a, b) { + return "function" === typeof b ? b(a) : b; + } + function md(a) { + var b = kd(), c = b.queue; + if (null === c) + throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + c.lastRenderedReducer = a; + var d = M, e = d.baseQueue, f = c.pending; + if (null !== f) { + if (null !== e) { + var g = e.next; + e.next = f.next; + f.next = g; + } + d.baseQueue = e = f; + c.pending = null; + } + if (null !== e) { + f = e.next; + d = d.baseState; + var h = g = null, k = null, l = f; + do { + var m = l.lane; + if (($c & m) === m) + null !== k && (k = k.next = { lane: 0, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }), d = l.hasEagerState ? l.eagerState : a(d, l.action); + else { + var w = { lane: m, action: l.action, hasEagerState: l.hasEagerState, eagerState: l.eagerState, next: null }; + null === k ? (h = k = w, g = d) : k = k.next = w; + L.lanes |= m; + J |= m; + } + l = l.next; + } while (null !== l && l !== f); + null === k ? g = d : k.next = h; + Hb(d, b.memoizedState) || (F = true); + b.memoizedState = d; + b.baseState = g; + b.baseQueue = k; + c.lastRenderedState = d; + } + a = c.interleaved; + if (null !== a) { + e = a; + do + f = e.lane, L.lanes |= f, J |= f, e = e.next; + while (e !== a); + } else + null === e && (c.lanes = 0); + return [b.memoizedState, c.dispatch]; + } + function nd(a) { + var b = kd(), c = b.queue; + if (null === c) + throw Error("Should have a queue. This is likely a bug in React. Please file an issue."); + c.lastRenderedReducer = a; + var d = c.dispatch, e = c.pending, f = b.memoizedState; + if (null !== e) { + c.pending = null; + var g = e = e.next; + do + f = a(f, g.action), g = g.next; + while (g !== e); + Hb(f, b.memoizedState) || (F = true); + b.memoizedState = f; + null === b.baseQueue && (b.baseState = f); + c.lastRenderedState = f; + } + return [f, d]; + } + function od() { + } + function pd(a, b) { + var c = L, d = kd(), e = b(), f = !Hb(d.memoizedState, e); + f && (d.memoizedState = e, F = true); + d = d.queue; + qd(rd.bind(null, c, d, a), [a]); + if (d.getSnapshot !== b || f || null !== N && N.memoizedState.tag & 1) { + c.flags |= 2048; + sd(9, td.bind(null, c, d, e, b), void 0, null); + if (null === P) + throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== ($c & 30) || ud(c, b, e); + } + return e; + } + function ud(a, b, c) { + a.flags |= 16384; + a = { getSnapshot: b, value: c }; + b = L.updateQueue; + null === b ? (b = { lastEffect: null, stores: null }, L.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a)); + } + function td(a, b, c, d) { + b.value = c; + b.getSnapshot = d; + vd(b) && wd(a); + } + function rd(a, b, c) { + return c(function() { + vd(b) && wd(a); + }); + } + function vd(a) { + var b = a.getSnapshot; + a = a.value; + try { + var c = b(); + return !Hb(a, c); + } catch (d) { + return true; + } + } + function wd(a) { + var b = hc(a, 1); + null !== b && vc(b, a, 1, -1); + } + function xd(a) { + var b = jd(); + "function" === typeof a && (a = a()); + b.memoizedState = b.baseState = a; + a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: ld, lastRenderedState: a }; + b.queue = a; + a = a.dispatch = yd.bind(null, L, a); + return [b.memoizedState, a]; + } + function sd(a, b, c, d) { + a = { tag: a, create: b, destroy: c, deps: d, next: null }; + b = L.updateQueue; + null === b ? (b = { lastEffect: null, stores: null }, L.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a)); + return a; + } + function zd() { + return kd().memoizedState; + } + function Ad(a, b, c, d) { + var e = jd(); + L.flags |= a; + e.memoizedState = sd(1 | b, c, void 0, void 0 === d ? null : d); + } + function Bd(a, b, c, d) { + var e = kd(); + d = void 0 === d ? null : d; + var f = void 0; + if (null !== M) { + var g = M.memoizedState; + f = g.destroy; + if (null !== d && dd(d, g.deps)) { + e.memoizedState = sd(b, c, f, d); + return; + } + } + L.flags |= a; + e.memoizedState = sd(1 | b, c, f, d); + } + function Cd(a, b) { + return Ad(8390656, 8, a, b); + } + function qd(a, b) { + return Bd(2048, 8, a, b); + } + function Dd(a, b) { + return Bd(4, 2, a, b); + } + function Ed(a, b) { + return Bd(4, 4, a, b); + } + function Fd(a, b) { + if ("function" === typeof b) + return a = a(), b(a), function() { + b(null); + }; + if (null !== b && void 0 !== b) + return a = a(), b.current = a, function() { + b.current = null; + }; + } + function Gd(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return Bd(4, 4, Fd.bind(null, b, a), c); + } + function Hd() { + } + function Id(a, b) { + var c = kd(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && dd(b, d[1])) + return d[0]; + c.memoizedState = [a, b]; + return a; + } + function Jd(a, b) { + var c = kd(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && dd(b, d[1])) + return d[0]; + a = a(); + c.memoizedState = [a, b]; + return a; + } + function Kd(a, b, c) { + if (0 === ($c & 21)) + return a.baseState && (a.baseState = false, F = true), a.memoizedState = c; + Hb(c, b) || (c = ab(), L.lanes |= c, J |= c, a.baseState = true); + return b; + } + function Ld(a, b) { + var c = v; + v = 0 !== c && 4 > c ? c : 4; + a(true); + var d = Zc.transition; + Zc.transition = {}; + try { + a(false), b(); + } finally { + v = c, Zc.transition = d; + } + } + function Md() { + return kd().memoizedState; + } + function Nd(a, b, c) { + var d = uc(a); + c = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null }; + if (Od(a)) + Pd(b, c); + else if (c = gc(a, b, c, d), null !== c) { + var e = tc(); + vc(c, a, d, e); + Qd(c, b, d); + } + } + function yd(a, b, c) { + var d = uc(a), e = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null }; + if (Od(a)) + Pd(b, e); + else { + var f = a.alternate; + if (0 === a.lanes && (null === f || 0 === f.lanes) && (f = b.lastRenderedReducer, null !== f)) + try { + var g = b.lastRenderedState, h = f(g, c); + e.hasEagerState = true; + e.eagerState = h; + if (Hb(h, g)) { + var k = b.interleaved; + null === k ? (e.next = e, fc(b)) : (e.next = k.next, k.next = e); + b.interleaved = e; + return; + } + } catch (l) { + } finally { + } + c = gc(a, b, e, d); + null !== c && (e = tc(), vc(c, a, d, e), Qd(c, b, d)); + } + } + function Od(a) { + var b = a.alternate; + return a === L || null !== b && b === L; + } + function Pd(a, b) { + bd = ad = true; + var c = a.pending; + null === c ? b.next = b : (b.next = c.next, c.next = b); + a.pending = b; + } + function Qd(a, b, c) { + if (0 !== (c & 4194240)) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + eb(a, c); + } + } + var id = { readContext: H, useCallback: O, useContext: O, useEffect: O, useImperativeHandle: O, useInsertionEffect: O, useLayoutEffect: O, useMemo: O, useReducer: O, useRef: O, useState: O, useDebugValue: O, useDeferredValue: O, useTransition: O, useMutableSource: O, useSyncExternalStore: O, useId: O, unstable_isNewReconciler: false }; + var fd = { readContext: H, useCallback: function(a, b) { + jd().memoizedState = [a, void 0 === b ? null : b]; + return a; + }, useContext: H, useEffect: Cd, useImperativeHandle: function(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return Ad( + 4, + 4, + Fd.bind(null, b, a), + c + ); + }, useLayoutEffect: function(a, b) { + return Ad(4, 4, a, b); + }, useInsertionEffect: function(a, b) { + return Ad(4, 2, a, b); + }, useMemo: function(a, b) { + var c = jd(); + b = void 0 === b ? null : b; + a = a(); + c.memoizedState = [a, b]; + return a; + }, useReducer: function(a, b, c) { + var d = jd(); + b = void 0 !== c ? c(b) : b; + d.memoizedState = d.baseState = b; + a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b }; + d.queue = a; + a = a.dispatch = Nd.bind(null, L, a); + return [d.memoizedState, a]; + }, useRef: function(a) { + var b = jd(); + a = { current: a }; + return b.memoizedState = a; + }, useState: xd, useDebugValue: Hd, useDeferredValue: function(a) { + return jd().memoizedState = a; + }, useTransition: function() { + var a = xd(false), b = a[0]; + a = Ld.bind(null, a[1]); + jd().memoizedState = a; + return [b, a]; + }, useMutableSource: function() { + }, useSyncExternalStore: function(a, b) { + var c = L, d = jd(); + var e = b(); + if (null === P) + throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + 0 !== ($c & 30) || ud(c, b, e); + d.memoizedState = e; + var f = { value: e, getSnapshot: b }; + d.queue = f; + Cd(rd.bind(null, c, f, a), [a]); + c.flags |= 2048; + sd(9, td.bind(null, c, f, e, b), void 0, null); + return e; + }, useId: function() { + var a = jd(), b = P.identifierPrefix, c = cd++; + b = ":" + b + "r" + c.toString(32) + ":"; + return a.memoizedState = b; + }, unstable_isNewReconciler: false }; + var gd = { readContext: H, useCallback: Id, useContext: H, useEffect: qd, useImperativeHandle: Gd, useInsertionEffect: Dd, useLayoutEffect: Ed, useMemo: Jd, useReducer: md, useRef: zd, useState: function() { + return md(ld); + }, useDebugValue: Hd, useDeferredValue: function(a) { + var b = kd(); + return Kd( + b, + M.memoizedState, + a + ); + }, useTransition: function() { + var a = md(ld)[0], b = kd().memoizedState; + return [a, b]; + }, useMutableSource: od, useSyncExternalStore: pd, useId: Md, unstable_isNewReconciler: false }; + var hd = { readContext: H, useCallback: Id, useContext: H, useEffect: qd, useImperativeHandle: Gd, useInsertionEffect: Dd, useLayoutEffect: Ed, useMemo: Jd, useReducer: nd, useRef: zd, useState: function() { + return nd(ld); + }, useDebugValue: Hd, useDeferredValue: function(a) { + var b = kd(); + return null === M ? b.memoizedState = a : Kd(b, M.memoizedState, a); + }, useTransition: function() { + var a = nd(ld)[0], b = kd().memoizedState; + return [a, b]; + }, useMutableSource: od, useSyncExternalStore: pd, useId: Md, unstable_isNewReconciler: false }; + function Rd(a, b) { + try { + var c = "", d = b; + do + c += Vb(d), d = d.return; + while (d); + var e = c; + } catch (f) { + e = "\nError generating stack: " + f.message + "\n" + f.stack; + } + return { value: a, source: b, stack: e, digest: null }; + } + function Sd(a, b, c) { + return { value: a, source: null, stack: null != c ? c : null, digest: null != b ? b : null }; + } + function Td(a, b) { + try { + console.error(b.value); + } catch (c) { + setTimeout(function() { + throw c; + }); + } + } + var Ud = "function" === typeof WeakMap ? WeakMap : Map; + function Vd(a, b, c) { + c = lc(-1, c); + c.tag = 3; + c.payload = { element: null }; + var d = b.value; + c.callback = function() { + Wd || (Wd = true, Xd = d); + Td(a, b); + }; + return c; + } + function Yd(a, b, c) { + c = lc(-1, c); + c.tag = 3; + var d = a.type.getDerivedStateFromError; + if ("function" === typeof d) { + var e = b.value; + c.payload = function() { + return d(e); + }; + c.callback = function() { + Td(a, b); + }; + } + var f = a.stateNode; + null !== f && "function" === typeof f.componentDidCatch && (c.callback = function() { + Td(a, b); + "function" !== typeof d && (null === Zd ? Zd = /* @__PURE__ */ new Set([this]) : Zd.add(this)); + var c2 = b.stack; + this.componentDidCatch(b.value, { componentStack: null !== c2 ? c2 : "" }); + }); + return c; + } + function $d(a, b, c) { + var d = a.pingCache; + if (null === d) { + d = a.pingCache = new Ud(); + var e = /* @__PURE__ */ new Set(); + d.set(b, e); + } else + e = d.get(b), void 0 === e && (e = /* @__PURE__ */ new Set(), d.set(b, e)); + e.has(c) || (e.add(c), a = ae.bind(null, a, b, c), b.then(a, a)); + } + var be = ha.ReactCurrentOwner; + var F = false; + function Q(a, b, c, d) { + b.child = null === a ? Lc(b, null, c, d) : Kc(b, a.child, c, d); + } + function ce(a, b, c, d, e) { + c = c.render; + var f = b.ref; + dc(b, e); + d = ed(a, b, c, d, f, e); + if (null !== a && !F) + return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, de(a, b, e); + b.flags |= 1; + Q(a, b, d, e); + return b.child; + } + function ee(a, b, c, d, e) { + if (null === a) { + var f = c.type; + if ("function" === typeof f && !fe(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps) + return b.tag = 15, b.type = f, ge(a, b, f, d, e); + a = Hc(c.type, null, d, b, b.mode, e); + a.ref = b.ref; + a.return = b; + return b.child = a; + } + f = a.child; + if (0 === (a.lanes & e)) { + var g = f.memoizedProps; + c = c.compare; + c = null !== c ? c : Ub; + if (c(g, d) && a.ref === b.ref) + return de(a, b, e); + } + b.flags |= 1; + a = Fc(f, d); + a.ref = b.ref; + a.return = b; + return b.child = a; + } + function ge(a, b, c, d, e) { + if (null !== a) { + var f = a.memoizedProps; + if (Ub(f, d) && a.ref === b.ref) + if (F = false, b.pendingProps = d = f, 0 !== (a.lanes & e)) + 0 !== (a.flags & 131072) && (F = true); + else + return b.lanes = a.lanes, de(a, b, e); + } + return he(a, b, c, d, e); + } + function ie(a, b, c) { + var d = b.pendingProps, e = d.children, f = null !== a ? a.memoizedState : null; + if ("hidden" === d.mode) + if (0 === (b.mode & 1)) + b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, y(je, R), R |= c; + else { + if (0 === (c & 1073741824)) + return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b.updateQueue = null, y(je, R), R |= a, null; + b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }; + d = null !== f ? f.baseLanes : c; + y(je, R); + R |= d; + } + else + null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, y(je, R), R |= d; + Q(a, b, e, c); + return b.child; + } + function ke(a, b) { + var c = b.ref; + if (null === a && null !== c || null !== a && a.ref !== c) + b.flags |= 512; + } + function he(a, b, c, d, e) { + var f = D(c) ? zb : z.current; + f = Ab(b, f); + dc(b, e); + c = ed(a, b, c, d, f, e); + if (null !== a && !F) + return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, de(a, b, e); + b.flags |= 1; + Q(a, b, c, e); + return b.child; + } + function le(a, b, c, d, e) { + if (D(c)) { + var f = true; + Eb(b); + } else + f = false; + dc(b, e); + if (null === b.stateNode) + me(a, b), yc(b, c, d), Ac(b, c, d, e), d = true; + else if (null === a) { + var g = b.stateNode, h = b.memoizedProps; + g.props = h; + var k = g.context, l = c.contextType; + "object" === typeof l && null !== l ? l = H(l) : (l = D(c) ? zb : z.current, l = Ab(b, l)); + var m = c.getDerivedStateFromProps, w = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate; + w || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && zc(b, g, d, l); + ic = false; + var p = b.memoizedState; + g.state = p; + pc(b, d, g, e); + k = b.memoizedState; + h !== d || p !== k || C.current || ic ? ("function" === typeof m && (sc(b, c, m, d), k = b.memoizedState), (h = ic || xc(b, c, h, d, p, k, l)) ? (w || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4)) : ("function" === typeof g.componentDidMount && (b.flags |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4), d = false); + } else { + g = b.stateNode; + kc(a, b); + h = b.memoizedProps; + l = b.type === b.elementType ? h : Wb(b.type, h); + g.props = l; + w = b.pendingProps; + p = g.context; + k = c.contextType; + "object" === typeof k && null !== k ? k = H(k) : (k = D(c) ? zb : z.current, k = Ab(b, k)); + var B = c.getDerivedStateFromProps; + (m = "function" === typeof B || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== w || p !== k) && zc(b, g, d, k); + ic = false; + p = b.memoizedState; + g.state = p; + pc(b, d, g, e); + var r = b.memoizedState; + h !== w || p !== r || C.current || ic ? ("function" === typeof B && (sc(b, c, B, d), r = b.memoizedState), (l = ic || xc(b, c, l, d, p, r, k) || false) ? (m || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, r, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, r, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = r), g.props = d, g.state = r, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && p === a.memoizedState || (b.flags |= 1024), d = false); + } + return ne(a, b, c, d, f, e); + } + function ne(a, b, c, d, e, f) { + ke(a, b); + var g = 0 !== (b.flags & 128); + if (!d && !g) + return e && Fb(b, c, false), de(a, b, f); + d = b.stateNode; + be.current = b; + var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render(); + b.flags |= 1; + null !== a && g ? (b.child = Kc(b, a.child, null, f), b.child = Kc(b, null, h, f)) : Q(a, b, h, f); + b.memoizedState = d.state; + e && Fb(b, c, true); + return b.child; + } + function oe(a) { + var b = a.stateNode; + b.pendingContext ? Cb(a, b.pendingContext, b.pendingContext !== b.context) : b.context && Cb(a, b.context, false); + Rc(a, b.containerInfo); + } + var pe = { dehydrated: null, treeContext: null, retryLane: 0 }; + function qe(a) { + return { baseLanes: a, cachePool: null, transitions: null }; + } + function re(a, b, c) { + var d = b.pendingProps, e = K.current, f = false, g = 0 !== (b.flags & 128), h; + (h = g) || (h = null !== a && null === a.memoizedState ? false : 0 !== (e & 2)); + if (h) + f = true, b.flags &= -129; + else if (null === a || null !== a.memoizedState) + e |= 1; + y(K, e & 1); + if (null === a) { + a = b.memoizedState; + if (null !== a && null !== a.dehydrated) + return 0 === (b.mode & 1) ? b.lanes = 1 : gb() ? b.lanes = 8 : b.lanes = 1073741824, null; + g = d.children; + a = d.fallback; + return f ? (d = b.mode, f = b.child, g = { mode: "hidden", children: g }, 0 === (d & 1) && null !== f ? (f.childLanes = 0, f.pendingProps = g) : f = se(g, d, 0, null), a = Jc(a, d, c, null), f.return = b, a.return = b, f.sibling = a, b.child = f, b.child.memoizedState = qe(c), b.memoizedState = pe, a) : te(b, g); + } + e = a.memoizedState; + if (null !== e && (h = e.dehydrated, null !== h)) + return ue(a, b, g, d, h, e, c); + if (f) { + f = d.fallback; + g = b.mode; + e = a.child; + h = e.sibling; + var k = { mode: "hidden", children: d.children }; + 0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = Fc(e, k), d.subtreeFlags = e.subtreeFlags & 14680064); + null !== h ? f = Fc(h, f) : (f = Jc(f, g, c, null), f.flags |= 2); + f.return = b; + d.return = b; + d.sibling = f; + b.child = d; + d = f; + f = b.child; + g = a.child.memoizedState; + g = null === g ? qe(c) : { baseLanes: g.baseLanes | c, cachePool: null, transitions: g.transitions }; + f.memoizedState = g; + f.childLanes = a.childLanes & ~c; + b.memoizedState = pe; + return d; + } + f = a.child; + a = f.sibling; + d = Fc(f, { mode: "visible", children: d.children }); + 0 === (b.mode & 1) && (d.lanes = c); + d.return = b; + d.sibling = null; + null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a)); + b.child = d; + b.memoizedState = null; + return d; + } + function te(a, b) { + b = se({ mode: "visible", children: b }, a.mode, 0, null); + b.return = a; + return a.child = b; + } + function ve(a, b, c, d) { + null !== d && (null === Sb ? Sb = [d] : Sb.push(d)); + Kc(b, a.child, null, c); + a = te(b, b.pendingProps.children); + a.flags |= 2; + b.memoizedState = null; + return a; + } + function ue(a, b, c, d, e, f, g) { + if (c) { + if (b.flags & 256) + return b.flags &= -257, f = Sd(Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")), ve(a, b, g, f); + if (null !== b.memoizedState) + return b.child = a.child, b.flags |= 128, null; + f = d.fallback; + c = b.mode; + d = se({ mode: "visible", children: d.children }, c, 0, null); + f = Jc(f, c, g, null); + f.flags |= 2; + d.return = b; + f.return = b; + d.sibling = f; + b.child = d; + 0 !== (b.mode & 1) && Kc(b, a.child, null, g); + b.child.memoizedState = qe(g); + b.memoizedState = pe; + return f; + } + if (0 === (b.mode & 1)) + return ve(a, b, g, null); + if (gb()) + return f = gb().digest, f = Sd(Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."), f, void 0), ve(a, b, g, f); + c = 0 !== (g & a.childLanes); + if (F || c) { + d = P; + if (null !== d) { + switch (g & -g) { + case 4: + c = 2; + break; + case 16: + c = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + c = 32; + break; + case 536870912: + c = 268435456; + break; + default: + c = 0; + } + c = 0 !== (c & (d.suspendedLanes | g)) ? 0 : c; + 0 !== c && c !== f.retryLane && (f.retryLane = c, hc(a, c), vc(d, a, c, -1)); + } + we(); + f = Sd(Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + return ve(a, b, g, f); + } + if (gb()) + return b.flags |= 128, b.child = a.child, xe.bind(null, a), gb(), null; + a = te(b, d.children); + a.flags |= 4096; + return a; + } + function ye(a, b, c) { + a.lanes |= b; + var d = a.alternate; + null !== d && (d.lanes |= b); + cc(a.return, b, c); + } + function ze(a, b, c, d, e) { + var f = a.memoizedState; + null === f ? a.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e); + } + function Ae(a, b, c) { + var d = b.pendingProps, e = d.revealOrder, f = d.tail; + Q(a, b, d.children, c); + d = K.current; + if (0 !== (d & 2)) + d = d & 1 | 2, b.flags |= 128; + else { + if (null !== a && 0 !== (a.flags & 128)) + a: + for (a = b.child; null !== a; ) { + if (13 === a.tag) + null !== a.memoizedState && ye(a, c, b); + else if (19 === a.tag) + ye(a, c, b); + else if (null !== a.child) { + a.child.return = a; + a = a.child; + continue; + } + if (a === b) + break a; + for (; null === a.sibling; ) { + if (null === a.return || a.return === b) + break a; + a = a.return; + } + a.sibling.return = a.return; + a = a.sibling; + } + d &= 1; + } + y(K, d); + if (0 === (b.mode & 1)) + b.memoizedState = null; + else + switch (e) { + case "forwards": + c = b.child; + for (e = null; null !== c; ) + a = c.alternate, null !== a && null === Vc(a) && (e = c), c = c.sibling; + c = e; + null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null); + ze(b, false, e, c, f); + break; + case "backwards": + c = null; + e = b.child; + for (b.child = null; null !== e; ) { + a = e.alternate; + if (null !== a && null === Vc(a)) { + b.child = e; + break; + } + a = e.sibling; + e.sibling = c; + c = e; + e = a; + } + ze(b, true, c, null, f); + break; + case "together": + ze(b, false, null, null, void 0); + break; + default: + b.memoizedState = null; + } + return b.child; + } + function me(a, b) { + 0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2); + } + function de(a, b, c) { + null !== a && (b.dependencies = a.dependencies); + J |= b.lanes; + if (0 === (c & b.childLanes)) + return null; + if (null !== a && b.child !== a.child) + throw Error("Resuming work not yet implemented."); + if (null !== b.child) { + a = b.child; + c = Fc(a, a.pendingProps); + b.child = c; + for (c.return = b; null !== a.sibling; ) + a = a.sibling, c = c.sibling = Fc(a, a.pendingProps), c.return = b; + c.sibling = null; + } + return b.child; + } + function Be(a, b, c) { + switch (b.tag) { + case 3: + oe(b); + break; + case 5: + Tc(b); + break; + case 1: + D(b.type) && Eb(b); + break; + case 4: + Rc(b, b.stateNode.containerInfo); + break; + case 10: + var d = b.type._context, e = b.memoizedProps.value; + y(Xb, d._currentValue2); + d._currentValue2 = e; + break; + case 13: + d = b.memoizedState; + if (null !== d) { + if (null !== d.dehydrated) + return y(K, K.current & 1), b.flags |= 128, null; + if (0 !== (c & b.child.childLanes)) + return re(a, b, c); + y(K, K.current & 1); + a = de(a, b, c); + return null !== a ? a.sibling : null; + } + y(K, K.current & 1); + break; + case 19: + d = 0 !== (c & b.childLanes); + if (0 !== (a.flags & 128)) { + if (d) + return Ae(a, b, c); + b.flags |= 128; + } + e = b.memoizedState; + null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null); + y(K, K.current); + if (d) + break; + else + return null; + case 22: + case 23: + return b.lanes = 0, ie(a, b, c); + } + return de(a, b, c); + } + var Ce; + var De; + var Ee; + var Fe; + Ce = function(a, b) { + for (var c = b.child; null !== c; ) { + if (5 === c.tag || 6 === c.tag) { + var d = a, e = c.stateNode, f = d.children.indexOf(e); + -1 !== f && d.children.splice(f, 1); + d.children.push(e); + } else if (4 !== c.tag && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === b) + break; + for (; null === c.sibling; ) { + if (null === c.return || c.return === b) + return; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } + }; + De = function() { + }; + Ee = function(a, b, c, d) { + a.memoizedProps !== d && (Qc(Nc.current), b.updateQueue = jb) && (b.flags |= 4); + }; + Fe = function(a, b, c, d) { + c !== d && (b.flags |= 4); + }; + function Ge(a, b) { + switch (a.tailMode) { + case "hidden": + b = a.tail; + for (var c = null; null !== b; ) + null !== b.alternate && (c = b), b = b.sibling; + null === c ? a.tail = null : c.sibling = null; + break; + case "collapsed": + c = a.tail; + for (var d = null; null !== c; ) + null !== c.alternate && (d = c), c = c.sibling; + null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null; + } + } + function S(a) { + var b = null !== a.alternate && a.alternate.child === a.child, c = 0, d = 0; + if (b) + for (var e = a.child; null !== e; ) + c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling; + else + for (e = a.child; null !== e; ) + c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling; + a.subtreeFlags |= d; + a.childLanes = c; + return b; + } + function He(a, b, c) { + var d = b.pendingProps; + Rb(b); + switch (b.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S(b), null; + case 1: + return D(b.type) && Bb(), S(b), null; + case 3: + return c = b.stateNode, Sc(), x(C), x(z), Xc(), c.pendingContext && (c.context = c.pendingContext, c.pendingContext = null), null !== a && null !== a.child || null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== Sb && (Ie(Sb), Sb = null)), De(a, b), S(b), null; + case 5: + Uc(b); + c = Qc(Pc.current); + var e = b.type; + if (null !== a && null != b.stateNode) + Ee(a, b, e, d, c), a.ref !== b.ref && (b.flags |= 512); + else { + if (!d) { + if (null === b.stateNode) + throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + S(b); + return null; + } + Qc(Nc.current); + a = { type: e, props: d, isHidden: false, children: [], internalInstanceHandle: b, rootContainerInstance: c, tag: "INSTANCE" }; + Ce(a, b, false, false); + b.stateNode = a; + null !== b.ref && (b.flags |= 512); + } + S(b); + return null; + case 6: + if (a && null != b.stateNode) + Fe(a, b, a.memoizedProps, d); + else { + if ("string" !== typeof d && null === b.stateNode) + throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + Qc(Pc.current); + Qc(Nc.current); + b.stateNode = { text: d, isHidden: false, tag: "TEXT" }; + } + S(b); + return null; + case 13: + x(K); + d = b.memoizedState; + if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) { + if (null !== d && null !== d.dehydrated) { + if (null === a) { + throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + 0 === (b.flags & 128) && (b.memoizedState = null); + b.flags |= 4; + S(b); + e = false; + } else + null !== Sb && (Ie(Sb), Sb = null), e = true; + if (!e) + return b.flags & 65536 ? b : null; + } + if (0 !== (b.flags & 128)) + return b.lanes = c, b; + c = null !== d; + c !== (null !== a && null !== a.memoizedState) && c && (b.child.flags |= 8192, 0 !== (b.mode & 1) && (null === a || 0 !== (K.current & 1) ? 0 === T && (T = 3) : we())); + null !== b.updateQueue && (b.flags |= 4); + S(b); + return null; + case 4: + return Sc(), De(a, b), S(b), null; + case 10: + return bc(b.type._context), S(b), null; + case 17: + return D(b.type) && Bb(), S(b), null; + case 19: + x(K); + e = b.memoizedState; + if (null === e) + return S(b), null; + d = 0 !== (b.flags & 128); + var f = e.rendering; + if (null === f) + if (d) + Ge(e, false); + else { + if (0 !== T || null !== a && 0 !== (a.flags & 128)) + for (a = b.child; null !== a; ) { + f = Vc(a); + if (null !== f) { + b.flags |= 128; + Ge(e, false); + a = f.updateQueue; + null !== a && (b.updateQueue = a, b.flags |= 4); + b.subtreeFlags = 0; + a = c; + for (c = b.child; null !== c; ) + d = c, e = a, d.flags &= 14680066, f = d.alternate, null === f ? (d.childLanes = 0, d.lanes = e, d.child = null, d.subtreeFlags = 0, d.memoizedProps = null, d.memoizedState = null, d.updateQueue = null, d.dependencies = null, d.stateNode = null) : (d.childLanes = f.childLanes, d.lanes = f.lanes, d.child = f.child, d.subtreeFlags = 0, d.deletions = null, d.memoizedProps = f.memoizedProps, d.memoizedState = f.memoizedState, d.updateQueue = f.updateQueue, d.type = f.type, e = f.dependencies, d.dependencies = null === e ? null : { lanes: e.lanes, firstContext: e.firstContext }), c = c.sibling; + y(K, K.current & 1 | 2); + return b.child; + } + a = a.sibling; + } + null !== e.tail && q() > Je && (b.flags |= 128, d = true, Ge(e, false), b.lanes = 4194304); + } + else { + if (!d) + if (a = Vc(f), null !== a) { + if (b.flags |= 128, d = true, a = a.updateQueue, null !== a && (b.updateQueue = a, b.flags |= 4), Ge(e, true), null === e.tail && "hidden" === e.tailMode && !f.alternate) + return S(b), null; + } else + 2 * q() - e.renderingStartTime > Je && 1073741824 !== c && (b.flags |= 128, d = true, Ge(e, false), b.lanes = 4194304); + e.isBackwards ? (f.sibling = b.child, b.child = f) : (a = e.last, null !== a ? a.sibling = f : b.child = f, e.last = f); + } + if (null !== e.tail) + return b = e.tail, e.rendering = b, e.tail = b.sibling, e.renderingStartTime = q(), b.sibling = null, a = K.current, y(K, d ? a & 1 | 2 : a & 1), b; + S(b); + return null; + case 22: + case 23: + return Ke(), c = null !== b.memoizedState, null !== a && null !== a.memoizedState !== c && (b.flags |= 8192), c && 0 !== (b.mode & 1) ? 0 !== (R & 1073741824) && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : S(b), null; + case 24: + return null; + case 25: + return null; + } + throw Error("Unknown unit of work tag (" + b.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function Le(a, b) { + Rb(b); + switch (b.tag) { + case 1: + return D(b.type) && Bb(), a = b.flags, a & 65536 ? (b.flags = a & -65537 | 128, b) : null; + case 3: + return Sc(), x(C), x(z), Xc(), a = b.flags, 0 !== (a & 65536) && 0 === (a & 128) ? (b.flags = a & -65537 | 128, b) : null; + case 5: + return Uc(b), null; + case 13: + x(K); + a = b.memoizedState; + if (null !== a && null !== a.dehydrated && null === b.alternate) + throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + a = b.flags; + return a & 65536 ? (b.flags = a & -65537 | 128, b) : null; + case 19: + return x(K), null; + case 4: + return Sc(), null; + case 10: + return bc(b.type._context), null; + case 22: + case 23: + return Ke(), null; + case 24: + return null; + default: + return null; + } + } + var Me = "function" === typeof WeakSet ? WeakSet : Set; + var U = null; + function Ne(a, b) { + var c = a.ref; + if (null !== c) + if ("function" === typeof c) + try { + c(null); + } catch (d) { + V(a, b, d); + } + else + c.current = null; + } + function Oe(a, b, c) { + try { + c(); + } catch (d) { + V(a, b, d); + } + } + var Pe = false; + function Qe(a, b) { + for (U = b; null !== U; ) + if (a = U, b = a.child, 0 !== (a.subtreeFlags & 1028) && null !== b) + b.return = a, U = b; + else + for (; null !== U; ) { + a = U; + try { + var c = a.alternate; + if (0 !== (a.flags & 1024)) + switch (a.tag) { + case 0: + case 11: + case 15: + break; + case 1: + if (null !== c) { + var d = c.memoizedProps, e = c.memoizedState, f = a.stateNode, g = f.getSnapshotBeforeUpdate(a.elementType === a.type ? d : Wb(a.type, d), e); + f.__reactInternalSnapshotBeforeUpdate = g; + } + break; + case 3: + a.stateNode.containerInfo.children.splice(0); + break; + case 5: + case 6: + case 4: + case 17: + break; + default: + throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } catch (h) { + V(a, a.return, h); + } + b = a.sibling; + if (null !== b) { + b.return = a.return; + U = b; + break; + } + U = a.return; + } + c = Pe; + Pe = false; + return c; + } + function Re(a, b, c) { + var d = b.updateQueue; + d = null !== d ? d.lastEffect : null; + if (null !== d) { + var e = d = d.next; + do { + if ((e.tag & a) === a) { + var f = e.destroy; + e.destroy = void 0; + void 0 !== f && Oe(b, c, f); + } + e = e.next; + } while (e !== d); + } + } + function Se(a, b) { + b = b.updateQueue; + b = null !== b ? b.lastEffect : null; + if (null !== b) { + var c = b = b.next; + do { + if ((c.tag & a) === a) { + var d = c.create; + c.destroy = d(); + } + c = c.next; + } while (c !== b); + } + } + function Te(a) { + var b = a.alternate; + null !== b && (a.alternate = null, Te(b)); + a.child = null; + a.deletions = null; + a.sibling = null; + a.stateNode = null; + a.return = null; + a.dependencies = null; + a.memoizedProps = null; + a.memoizedState = null; + a.pendingProps = null; + a.stateNode = null; + a.updateQueue = null; + } + function Ue(a) { + return 5 === a.tag || 3 === a.tag || 4 === a.tag; + } + function Ve(a) { + a: + for (; ; ) { + for (; null === a.sibling; ) { + if (null === a.return || Ue(a.return)) + return null; + a = a.return; + } + a.sibling.return = a.return; + for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag; ) { + if (a.flags & 2) + continue a; + if (null === a.child || 4 === a.tag) + continue a; + else + a.child.return = a, a = a.child; + } + if (!(a.flags & 2)) + return a.stateNode; + } + } + function We(a, b, c) { + var d = a.tag; + if (5 === d || 6 === d) + a = a.stateNode, b ? nb(c, a, b) : mb(c, a); + else if (4 !== d && (a = a.child, null !== a)) + for (We(a, b, c), a = a.sibling; null !== a; ) + We(a, b, c), a = a.sibling; + } + function Xe(a, b, c) { + var d = a.tag; + if (5 === d || 6 === d) + a = a.stateNode, b ? nb(c, a, b) : mb(c, a); + else if (4 !== d && (a = a.child, null !== a)) + for (Xe(a, b, c), a = a.sibling; null !== a; ) + Xe(a, b, c), a = a.sibling; + } + var W = null; + function Ye(a, b, c) { + for (c = c.child; null !== c; ) + Ze(a, b, c), c = c.sibling; + } + function Ze(a, b, c) { + if (Oa && "function" === typeof Oa.onCommitFiberUnmount) + try { + Oa.onCommitFiberUnmount(Na, c); + } catch (h) { + } + switch (c.tag) { + case 5: + Ne(c, b); + case 6: + var d = W; + W = null; + Ye(a, b, c); + W = d; + null !== W && (a = W, c = a.children.indexOf(c.stateNode), a.children.splice(c, 1)); + break; + case 18: + null !== W && gb(W, c.stateNode); + break; + case 4: + d = W; + W = c.stateNode.containerInfo; + Ye(a, b, c); + W = d; + break; + case 0: + case 11: + case 14: + case 15: + d = c.updateQueue; + if (null !== d && (d = d.lastEffect, null !== d)) { + var e = d = d.next; + do { + var f = e, g = f.destroy; + f = f.tag; + void 0 !== g && (0 !== (f & 2) ? Oe(c, b, g) : 0 !== (f & 4) && Oe(c, b, g)); + e = e.next; + } while (e !== d); + } + Ye(a, b, c); + break; + case 1: + Ne(c, b); + d = c.stateNode; + if ("function" === typeof d.componentWillUnmount) + try { + d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount(); + } catch (h) { + V(c, b, h); + } + Ye(a, b, c); + break; + case 21: + Ye(a, b, c); + break; + case 22: + Ye(a, b, c); + break; + default: + Ye(a, b, c); + } + } + function $e(a) { + var b = a.updateQueue; + if (null !== b) { + a.updateQueue = null; + var c = a.stateNode; + null === c && (c = a.stateNode = new Me()); + b.forEach(function(b2) { + var d = af.bind(null, a, b2); + c.has(b2) || (c.add(b2), b2.then(d, d)); + }); + } + } + function bf(a, b) { + var c = b.deletions; + if (null !== c) + for (var d = 0; d < c.length; d++) { + var e = c[d]; + try { + var f = a, g = b, h = g; + a: + for (; null !== h; ) { + switch (h.tag) { + case 5: + W = h.stateNode; + break a; + case 3: + W = h.stateNode.containerInfo; + break a; + case 4: + W = h.stateNode.containerInfo; + break a; + } + h = h.return; + } + if (null === W) + throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + Ze(f, g, e); + W = null; + var k = e.alternate; + null !== k && (k.return = null); + e.return = null; + } catch (l) { + V(e, b, l); + } + } + if (b.subtreeFlags & 12854) + for (b = b.child; null !== b; ) + cf(b, a), b = b.sibling; + } + function cf(a, b) { + var c = a.alternate, d = a.flags; + switch (a.tag) { + case 0: + case 11: + case 14: + case 15: + bf(b, a); + df(a); + if (d & 4) { + try { + Re(3, a, a.return), Se(3, a); + } catch (f) { + V(a, a.return, f); + } + try { + Re(5, a, a.return); + } catch (f) { + V(a, a.return, f); + } + } + break; + case 1: + bf(b, a); + df(a); + d & 512 && null !== c && Ne(c, c.return); + break; + case 5: + bf(b, a); + df(a); + d & 512 && null !== c && Ne(c, c.return); + if (d & 4) { + var e = a.stateNode; + if (null != e && (d = a.memoizedProps, b = a.type, c = a.updateQueue, a.updateQueue = null, null !== c)) + try { + e.type = b, e.props = d; + } catch (f) { + V(a, a.return, f); + } + } + break; + case 6: + bf( + b, + a + ); + df(a); + if (d & 4) { + if (null === a.stateNode) + throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + e = a.stateNode; + d = a.memoizedProps; + try { + e.text = d; + } catch (f) { + V(a, a.return, f); + } + } + break; + case 3: + bf(b, a); + df(a); + break; + case 4: + bf(b, a); + df(a); + break; + case 13: + bf(b, a); + df(a); + e = a.child; + e.flags & 8192 && (b = null !== e.memoizedState, e.stateNode.isHidden = b, !b || null !== e.alternate && null !== e.alternate.memoizedState || (ef = q())); + d & 4 && $e(a); + break; + case 22: + bf(b, a); + df(a); + if (d & 8192) + a: + for (d = null !== a.memoizedState, a.stateNode.isHidden = d, b = null, c = a; ; ) { + if (5 === c.tag) { + if (null === b) { + b = c; + try { + e = c.stateNode, d ? e.isHidden = true : c.stateNode.isHidden = false; + } catch (f) { + V(a, a.return, f); + } + } + } else if (6 === c.tag) { + if (null === b) + try { + c.stateNode.isHidden = d ? true : false; + } catch (f) { + V(a, a.return, f); + } + } else if ((22 !== c.tag && 23 !== c.tag || null === c.memoizedState || c === a) && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === a) + break a; + for (; null === c.sibling; ) { + if (null === c.return || c.return === a) + break a; + b === c && (b = null); + c = c.return; + } + b === c && (b = null); + c.sibling.return = c.return; + c = c.sibling; + } + break; + case 19: + bf(b, a); + df(a); + d & 4 && $e(a); + break; + case 21: + break; + default: + bf(b, a), df(a); + } + } + function df(a) { + var b = a.flags; + if (b & 2) { + try { + a: { + for (var c = a.return; null !== c; ) { + if (Ue(c)) { + var d = c; + break a; + } + c = c.return; + } + throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + } + switch (d.tag) { + case 5: + var e = d.stateNode; + d.flags & 32 && (d.flags &= -33); + var f = Ve(a); + Xe(a, f, e); + break; + case 3: + case 4: + var g = d.stateNode.containerInfo, h = Ve(a); + We(a, h, g); + break; + default: + throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); + } + } catch (k) { + V(a, a.return, k); + } + a.flags &= -3; + } + b & 4096 && (a.flags &= -4097); + } + function ff(a) { + for (U = a; null !== U; ) { + var b = U, c = b.child; + if (0 !== (b.subtreeFlags & 8772) && null !== c) + c.return = b, U = c; + else + for (b = a; null !== U; ) { + c = U; + if (0 !== (c.flags & 8772)) { + var d = c.alternate; + try { + if (0 !== (c.flags & 8772)) + switch (c.tag) { + case 0: + case 11: + case 15: + Se(5, c); + break; + case 1: + var e = c.stateNode; + if (c.flags & 4) + if (null === d) + e.componentDidMount(); + else { + var f = c.elementType === c.type ? d.memoizedProps : Wb(c.type, d.memoizedProps); + e.componentDidUpdate(f, d.memoizedState, e.__reactInternalSnapshotBeforeUpdate); + } + var g = c.updateQueue; + null !== g && qc(c, g, e); + break; + case 3: + var h = c.updateQueue; + if (null !== h) { + d = null; + if (null !== c.child) + switch (c.child.tag) { + case 5: + d = lb(c.child.stateNode); + break; + case 1: + d = c.child.stateNode; + } + qc(c, h, d); + } + break; + case 5: + break; + case 6: + break; + case 4: + break; + case 12: + break; + case 13: + break; + case 19: + case 17: + case 21: + case 22: + case 23: + case 25: + break; + default: + throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + if (c.flags & 512) { + d = void 0; + var k = c.ref; + if (null !== k) { + var l = c.stateNode; + switch (c.tag) { + case 5: + d = lb(l); + break; + default: + d = l; + } + "function" === typeof k ? k(d) : k.current = d; + } + } + } catch (m) { + V(c, c.return, m); + } + } + if (c === b) { + U = null; + break; + } + d = c.sibling; + if (null !== d) { + d.return = c.return; + U = d; + break; + } + U = c.return; + } + } + } + var gf = Math.ceil; + var hf = ha.ReactCurrentDispatcher; + var jf = ha.ReactCurrentOwner; + var kf = ha.ReactCurrentBatchConfig; + var I = 0; + var P = null; + var X = null; + var Y = 0; + var R = 0; + var je = xb(0); + var T = 0; + var lf = null; + var J = 0; + var mf = 0; + var nf = 0; + var of = null; + var Z = null; + var ef = 0; + var Je = Infinity; + var pf = null; + var Wd = false; + var Xd = null; + var Zd = null; + var qf = false; + var rf = null; + var sf = 0; + var tf = 0; + var uf = null; + var vf = -1; + var wf = 0; + function tc() { + return 0 !== (I & 6) ? q() : -1 !== vf ? vf : vf = q(); + } + function uc(a) { + if (0 === (a.mode & 1)) + return 1; + if (0 !== (I & 2) && 0 !== Y) + return Y & -Y; + if (null !== Tb.transition) + return 0 === wf && (wf = ab()), wf; + a = v; + return 0 !== a ? a : 16; + } + function vc(a, b, c, d) { + if (50 < tf) + throw tf = 0, uf = null, Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + cb(a, c, d); + if (0 === (I & 2) || a !== P) + a === P && (0 === (I & 2) && (mf |= c), 4 === T && xf(a, Y)), yf(a, d), 1 === c && 0 === I && 0 === (b.mode & 1) && (Je = q() + 500, Ib && Kb()); + } + function yf(a, b) { + for (var c = a.callbackNode, d = a.suspendedLanes, e = a.pingedLanes, f = a.expirationTimes, g = a.pendingLanes; 0 < g; ) { + var h = 31 - Ra(g), k = 1 << h, l = f[h]; + if (-1 === l) { + if (0 === (k & d) || 0 !== (k & e)) + f[h] = Za(k, b); + } else + l <= b && (a.expiredLanes |= k); + g &= ~k; + } + d = Xa(a, a === P ? Y : 0); + if (0 === d) + null !== c && Fa(c), a.callbackNode = null, a.callbackPriority = 0; + else if (b = d & -d, a.callbackPriority !== b) { + null != c && Fa(c); + if (1 === b) + 0 === a.tag ? (c = zf.bind(null, a), Ib = true, null === E ? E = [c] : E.push(c)) : (c = zf.bind(null, a), null === E ? E = [c] : E.push(c)), Ea(Ia, Kb), c = null; + else { + switch (fb(d)) { + case 1: + c = Ia; + break; + case 4: + c = Ja; + break; + case 16: + c = La; + break; + case 536870912: + c = Ma; + break; + default: + c = La; + } + c = Af(c, Bf.bind(null, a)); + } + a.callbackPriority = b; + a.callbackNode = c; + } + } + function Bf(a, b) { + vf = -1; + wf = 0; + if (0 !== (I & 6)) + throw Error("Should not already be working."); + var c = a.callbackNode; + if (Cf() && a.callbackNode !== c) + return null; + var d = Xa(a, a === P ? Y : 0); + if (0 === d) + return null; + if (0 !== (d & 30) || 0 !== (d & a.expiredLanes) || b) + b = Df(a, d); + else { + b = d; + var e = I; + I |= 2; + var f = Ef(); + if (P !== a || Y !== b) + pf = null, Je = q() + 500, Ff(a, b); + do + try { + Gf(); + break; + } catch (h) { + Hf(a, h); + } + while (1); + ac(); + hf.current = f; + I = e; + null !== X ? b = 0 : (P = null, Y = 0, b = T); + } + if (0 !== b) { + 2 === b && (e = $a(a), 0 !== e && (d = e, b = Kf(a, e))); + if (1 === b) + throw c = lf, Ff(a, 0), xf(a, d), yf( + a, + q() + ), c; + if (6 === b) + xf(a, d); + else { + e = a.current.alternate; + if (0 === (d & 30) && !Lf(e) && (b = Df(a, d), 2 === b && (f = $a(a), 0 !== f && (d = f, b = Kf(a, f))), 1 === b)) + throw c = lf, Ff(a, 0), xf(a, d), yf(a, q()), c; + a.finishedWork = e; + a.finishedLanes = d; + switch (b) { + case 0: + case 1: + throw Error("Root did not complete. This is a bug in React."); + case 2: + Mf(a, Z, pf); + break; + case 3: + xf(a, d); + if ((d & 130023424) === d && (b = ef + 500 - q(), 10 < b)) { + if (0 !== Xa(a, 0)) + break; + e = a.suspendedLanes; + if ((e & d) !== d) { + tc(); + a.pingedLanes |= a.suspendedLanes & e; + break; + } + a.timeoutHandle = ob(Mf.bind( + null, + a, + Z, + pf + ), b); + break; + } + Mf(a, Z, pf); + break; + case 4: + xf(a, d); + if ((d & 4194240) === d) + break; + b = a.eventTimes; + for (e = -1; 0 < d; ) { + var g = 31 - Ra(d); + f = 1 << g; + g = b[g]; + g > e && (e = g); + d &= ~f; + } + d = e; + d = q() - d; + d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3e3 > d ? 3e3 : 4320 > d ? 4320 : 1960 * gf(d / 1960)) - d; + if (10 < d) { + a.timeoutHandle = ob(Mf.bind(null, a, Z, pf), d); + break; + } + Mf(a, Z, pf); + break; + case 5: + Mf(a, Z, pf); + break; + default: + throw Error("Unknown root exit status."); + } + } + } + yf(a, q()); + return a.callbackNode === c ? Bf.bind(null, a) : null; + } + function Kf(a, b) { + var c = of; + a.current.memoizedState.isDehydrated && (Ff(a, b).flags |= 256); + a = Df(a, b); + 2 !== a && (b = Z, Z = c, null !== b && Ie(b)); + return a; + } + function Ie(a) { + null === Z ? Z = a : Z.push.apply(Z, a); + } + function Lf(a) { + for (var b = a; ; ) { + if (b.flags & 16384) { + var c = b.updateQueue; + if (null !== c && (c = c.stores, null !== c)) + for (var d = 0; d < c.length; d++) { + var e = c[d], f = e.getSnapshot; + e = e.value; + try { + if (!Hb(f(), e)) + return false; + } catch (g) { + return false; + } + } + } + c = b.child; + if (b.subtreeFlags & 16384 && null !== c) + c.return = b, b = c; + else { + if (b === a) + break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) + return true; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + } + return true; + } + function xf(a, b) { + b &= ~nf; + b &= ~mf; + a.suspendedLanes |= b; + a.pingedLanes &= ~b; + for (a = a.expirationTimes; 0 < b; ) { + var c = 31 - Ra(b), d = 1 << c; + a[c] = -1; + b &= ~d; + } + } + function zf(a) { + if (0 !== (I & 6)) + throw Error("Should not already be working."); + Cf(); + var b = Xa(a, 0); + if (0 === (b & 1)) + return yf(a, q()), null; + var c = Df(a, b); + if (0 !== a.tag && 2 === c) { + var d = $a(a); + 0 !== d && (b = d, c = Kf(a, d)); + } + if (1 === c) + throw c = lf, Ff(a, 0), xf(a, b), yf(a, q()), c; + if (6 === c) + throw Error("Root did not complete. This is a bug in React."); + a.finishedWork = a.current.alternate; + a.finishedLanes = b; + Mf(a, Z, pf); + yf(a, q()); + return null; + } + function Nf(a) { + null !== rf && 0 === rf.tag && 0 === (I & 6) && Cf(); + var b = I; + I |= 1; + var c = kf.transition, d = v; + try { + if (kf.transition = null, v = 1, a) + return a(); + } finally { + v = d, kf.transition = c, I = b, 0 === (I & 6) && Kb(); + } + } + function Ke() { + R = je.current; + x(je); + } + function Ff(a, b) { + a.finishedWork = null; + a.finishedLanes = 0; + var c = a.timeoutHandle; + -1 !== c && (a.timeoutHandle = -1, pb(c)); + if (null !== X) + for (c = X.return; null !== c; ) { + var d = c; + Rb(d); + switch (d.tag) { + case 1: + d = d.type.childContextTypes; + null !== d && void 0 !== d && Bb(); + break; + case 3: + Sc(); + x(C); + x(z); + Xc(); + break; + case 5: + Uc(d); + break; + case 4: + Sc(); + break; + case 13: + x(K); + break; + case 19: + x(K); + break; + case 10: + bc(d.type._context); + break; + case 22: + case 23: + Ke(); + } + c = c.return; + } + P = a; + X = a = Fc(a.current, null); + Y = R = b; + T = 0; + lf = null; + nf = mf = J = 0; + Z = of = null; + if (null !== ec) { + for (b = 0; b < ec.length; b++) + if (c = ec[b], d = c.interleaved, null !== d) { + c.interleaved = null; + var e = d.next, f = c.pending; + if (null !== f) { + var g = f.next; + f.next = e; + d.next = g; + } + c.pending = d; + } + ec = null; + } + return a; + } + function Hf(a, b) { + do { + var c = X; + try { + ac(); + Yc.current = id; + if (ad) { + for (var d = L.memoizedState; null !== d; ) { + var e = d.queue; + null !== e && (e.pending = null); + d = d.next; + } + ad = false; + } + $c = 0; + N = M = L = null; + bd = false; + jf.current = null; + if (null === c || null === c.return) { + T = 1; + lf = b; + X = null; + break; + } + a: { + var f = a, g = c.return, h = c, k = b; + b = Y; + h.flags |= 32768; + if (null !== k && "object" === typeof k && "function" === typeof k.then) { + var l = k, m = h, w = m.tag; + if (0 === (m.mode & 1) && (0 === w || 11 === w || 15 === w)) { + var p = m.alternate; + p ? (m.updateQueue = p.updateQueue, m.memoizedState = p.memoizedState, m.lanes = p.lanes) : (m.updateQueue = null, m.memoizedState = null); + } + b: { + m = g; + do { + var B; + if (B = 13 === m.tag) { + var r = m.memoizedState; + B = null !== r ? null !== r.dehydrated ? true : false : true; + } + if (B) { + var G = m; + break b; + } + m = m.return; + } while (null !== m); + G = null; + } + if (null !== G) { + G.flags &= -257; + k = G; + m = b; + if (0 === (k.mode & 1)) + if (k === g) + k.flags |= 65536; + else { + k.flags |= 128; + h.flags |= 131072; + h.flags &= -52805; + if (1 === h.tag) + if (null === h.alternate) + h.tag = 17; + else { + var Ka = lc(-1, 1); + Ka.tag = 2; + mc(h, Ka, 1); + } + h.lanes |= 1; + } + else + k.flags |= 65536, k.lanes = m; + G.mode & 1 && $d(f, l, b); + b = G; + f = l; + var A = b.updateQueue; + if (null === A) { + var n = /* @__PURE__ */ new Set(); + n.add(f); + b.updateQueue = n; + } else + A.add(f); + break a; + } else { + if (0 === (b & 1)) { + $d(f, l, b); + we(); + break a; + } + k = Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + } + } + f = k = Rd(k, h); + 4 !== T && (T = 2); + null === of ? of = [f] : of.push(f); + f = g; + do { + switch (f.tag) { + case 3: + l = k; + f.flags |= 65536; + b &= -b; + f.lanes |= b; + var t = Vd(f, l, b); + oc(f, t); + break a; + case 1: + l = k; + var hb = f.type, Ya = f.stateNode; + if (0 === (f.flags & 128) && ("function" === typeof hb.getDerivedStateFromError || null !== Ya && "function" === typeof Ya.componentDidCatch && (null === Zd || !Zd.has(Ya)))) { + f.flags |= 65536; + b &= -b; + f.lanes |= b; + var If = Yd(f, l, b); + oc(f, If); + break a; + } + } + f = f.return; + } while (null !== f); + } + Of(c); + } catch (Jf) { + b = Jf; + X === c && null !== c && (X = c = c.return); + continue; + } + break; + } while (1); + } + function Ef() { + var a = hf.current; + hf.current = id; + return null === a ? id : a; + } + function we() { + if (0 === T || 3 === T || 2 === T) + T = 4; + null === P || 0 === (J & 268435455) && 0 === (mf & 268435455) || xf(P, Y); + } + function Df(a, b) { + var c = I; + I |= 2; + var d = Ef(); + if (P !== a || Y !== b) + pf = null, Ff(a, b); + do + try { + Pf(); + break; + } catch (e) { + Hf(a, e); + } + while (1); + ac(); + I = c; + hf.current = d; + if (null !== X) + throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + P = null; + Y = 0; + return T; + } + function Pf() { + for (; null !== X; ) + Qf(X); + } + function Gf() { + for (; null !== X && !Ga(); ) + Qf(X); + } + function Qf(a) { + var b = Rf(a.alternate, a, R); + a.memoizedProps = a.pendingProps; + null === b ? Of(a) : X = b; + jf.current = null; + } + function Of(a) { + var b = a; + do { + var c = b.alternate; + a = b.return; + if (0 === (b.flags & 32768)) { + if (c = He(c, b, R), null !== c) { + X = c; + return; + } + } else { + c = Le(c, b); + if (null !== c) { + c.flags &= 32767; + X = c; + return; + } + if (null !== a) + a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null; + else { + T = 6; + X = null; + return; + } + } + b = b.sibling; + if (null !== b) { + X = b; + return; + } + X = b = a; + } while (null !== b); + 0 === T && (T = 5); + } + function Mf(a, b, c) { + var d = v, e = kf.transition; + try { + kf.transition = null, v = 1, Sf(a, b, c, d); + } finally { + kf.transition = e, v = d; + } + return null; + } + function Sf(a, b, c, d) { + do + Cf(); + while (null !== rf); + if (0 !== (I & 6)) + throw Error("Should not already be working."); + c = a.finishedWork; + var e = a.finishedLanes; + if (null === c) + return null; + a.finishedWork = null; + a.finishedLanes = 0; + if (c === a.current) + throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + a.callbackNode = null; + a.callbackPriority = 0; + var f = c.lanes | c.childLanes; + db(a, f); + a === P && (X = P = null, Y = 0); + 0 === (c.subtreeFlags & 2064) && 0 === (c.flags & 2064) || qf || (qf = true, Af(La, function() { + Cf(); + return null; + })); + f = 0 !== (c.flags & 15990); + if (0 !== (c.subtreeFlags & 15990) || f) { + f = kf.transition; + kf.transition = null; + var g = v; + v = 1; + var h = I; + I |= 4; + jf.current = null; + Qe(a, c); + cf(c, a); + a.current = c; + ff(c, a, e); + Ha(); + I = h; + v = g; + kf.transition = f; + } else + a.current = c; + qf && (qf = false, rf = a, sf = e); + f = a.pendingLanes; + 0 === f && (Zd = null); + Pa(c.stateNode, d); + yf(a, q()); + if (null !== b) + for (d = a.onRecoverableError, c = 0; c < b.length; c++) + e = b[c], d(e.value, { componentStack: e.stack, digest: e.digest }); + if (Wd) + throw Wd = false, a = Xd, Xd = null, a; + 0 !== (sf & 1) && 0 !== a.tag && Cf(); + f = a.pendingLanes; + 0 !== (f & 1) ? a === uf ? tf++ : (tf = 0, uf = a) : tf = 0; + Kb(); + return null; + } + function Cf() { + if (null !== rf) { + var a = fb(sf), b = kf.transition, c = v; + try { + kf.transition = null; + v = 16 > a ? 16 : a; + if (null === rf) + var d = false; + else { + a = rf; + rf = null; + sf = 0; + if (0 !== (I & 6)) + throw Error("Cannot flush passive effects while already rendering."); + var e = I; + I |= 4; + for (U = a.current; null !== U; ) { + var f = U, g = f.child; + if (0 !== (U.flags & 16)) { + var h = f.deletions; + if (null !== h) { + for (var k = 0; k < h.length; k++) { + var l = h[k]; + for (U = l; null !== U; ) { + var m = U; + switch (m.tag) { + case 0: + case 11: + case 15: + Re(8, m, f); + } + var w = m.child; + if (null !== w) + w.return = m, U = w; + else + for (; null !== U; ) { + m = U; + var p = m.sibling, B = m.return; + Te(m); + if (m === l) { + U = null; + break; + } + if (null !== p) { + p.return = B; + U = p; + break; + } + U = B; + } + } + } + var r = f.alternate; + if (null !== r) { + var G = r.child; + if (null !== G) { + r.child = null; + do { + var Ka = G.sibling; + G.sibling = null; + G = Ka; + } while (null !== G); + } + } + U = f; + } + } + if (0 !== (f.subtreeFlags & 2064) && null !== g) + g.return = f, U = g; + else + b: + for (; null !== U; ) { + f = U; + if (0 !== (f.flags & 2048)) + switch (f.tag) { + case 0: + case 11: + case 15: + Re(9, f, f.return); + } + var A = f.sibling; + if (null !== A) { + A.return = f.return; + U = A; + break b; + } + U = f.return; + } + } + var n = a.current; + for (U = n; null !== U; ) { + g = U; + var t = g.child; + if (0 !== (g.subtreeFlags & 2064) && null !== t) + t.return = g, U = t; + else + b: + for (g = n; null !== U; ) { + h = U; + if (0 !== (h.flags & 2048)) + try { + switch (h.tag) { + case 0: + case 11: + case 15: + Se(9, h); + } + } catch (Ya) { + V(h, h.return, Ya); + } + if (h === g) { + U = null; + break b; + } + var hb = h.sibling; + if (null !== hb) { + hb.return = h.return; + U = hb; + break b; + } + U = h.return; + } + } + I = e; + Kb(); + if (Oa && "function" === typeof Oa.onPostCommitFiberRoot) + try { + Oa.onPostCommitFiberRoot(Na, a); + } catch (Ya) { + } + d = true; + } + return d; + } finally { + v = c, kf.transition = b; + } + } + return false; + } + function Tf(a, b, c) { + b = Rd(c, b); + b = Vd(a, b, 1); + a = mc(a, b, 1); + b = tc(); + null !== a && (cb(a, 1, b), yf(a, b)); + } + function V(a, b, c) { + if (3 === a.tag) + Tf(a, a, c); + else + for (b = a.return; null !== b; ) { + if (3 === b.tag) { + Tf(b, a, c); + break; + } else if (1 === b.tag) { + var d = b.stateNode; + if ("function" === typeof b.type.getDerivedStateFromError || "function" === typeof d.componentDidCatch && (null === Zd || !Zd.has(d))) { + a = Rd(c, a); + a = Yd(b, a, 1); + b = mc(b, a, 1); + a = tc(); + null !== b && (cb(b, 1, a), yf(b, a)); + break; + } + } + b = b.return; + } + } + function ae(a, b, c) { + var d = a.pingCache; + null !== d && d.delete(b); + b = tc(); + a.pingedLanes |= a.suspendedLanes & c; + P === a && (Y & c) === c && (4 === T || 3 === T && (Y & 130023424) === Y && 500 > q() - ef ? Ff(a, 0) : nf |= c); + yf(a, b); + } + function Uf(a, b) { + 0 === b && (0 === (a.mode & 1) ? b = 1 : (b = Va, Va <<= 1, 0 === (Va & 130023424) && (Va = 4194304))); + var c = tc(); + a = hc(a, b); + null !== a && (cb(a, b, c), yf(a, c)); + } + function xe(a) { + var b = a.memoizedState, c = 0; + null !== b && (c = b.retryLane); + Uf(a, c); + } + function af(a, b) { + var c = 0; + switch (a.tag) { + case 13: + var d = a.stateNode; + var e = a.memoizedState; + null !== e && (c = e.retryLane); + break; + case 19: + d = a.stateNode; + break; + default: + throw Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + null !== d && d.delete(b); + Uf(a, c); + } + var Rf; + Rf = function(a, b, c) { + if (null !== a) + if (a.memoizedProps !== b.pendingProps || C.current) + F = true; + else { + if (0 === (a.lanes & c) && 0 === (b.flags & 128)) + return F = false, Be(a, b, c); + F = 0 !== (a.flags & 131072) ? true : false; + } + else + F = false; + b.lanes = 0; + switch (b.tag) { + case 2: + var d = b.type; + me(a, b); + a = b.pendingProps; + var e = Ab(b, z.current); + dc(b, c); + e = ed(null, b, d, a, e, c); + b.flags |= 1; + if ("object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof) { + b.tag = 1; + b.memoizedState = null; + b.updateQueue = null; + if (D(d)) { + var f = true; + Eb(b); + } else + f = false; + b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null; + jc(b); + e.updater = wc; + b.stateNode = e; + e._reactInternals = b; + Ac(b, d, a, c); + b = ne(null, b, d, true, f, c); + } else + b.tag = 0, Q(null, b, e, c), b = b.child; + return b; + case 16: + d = b.elementType; + a: { + me(a, b); + a = b.pendingProps; + e = d._init; + d = e(d._payload); + b.type = d; + e = b.tag = Vf(d); + a = Wb(d, a); + switch (e) { + case 0: + b = he(null, b, d, a, c); + break a; + case 1: + b = le(null, b, d, a, c); + break a; + case 11: + b = ce(null, b, d, a, c); + break a; + case 14: + b = ee(null, b, d, Wb(d.type, a), c); + break a; + } + throw Error("Element type is invalid. Received a promise that resolves to: " + d + ". Lazy element type must resolve to a class or function."); + } + return b; + case 0: + return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Wb(d, e), he(a, b, d, e, c); + case 1: + return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Wb(d, e), le(a, b, d, e, c); + case 3: + oe(b); + if (null === a) + throw Error("Should have a current fiber. This is a bug in React."); + e = b.pendingProps; + d = b.memoizedState.element; + kc(a, b); + pc(b, e, null, c); + e = b.memoizedState.element; + e === d ? b = de(a, b, c) : (Q(a, b, e, c), b = b.child); + return b; + case 5: + return Tc(b), d = b.pendingProps.children, ke(a, b), Q(a, b, d, c), b.child; + case 6: + return null; + case 13: + return re(a, b, c); + case 4: + return Rc(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = Kc(b, null, d, c) : Q(a, b, d, c), b.child; + case 11: + return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Wb(d, e), ce(a, b, d, e, c); + case 7: + return Q(a, b, b.pendingProps, c), b.child; + case 8: + return Q(a, b, b.pendingProps.children, c), b.child; + case 12: + return Q(a, b, b.pendingProps.children, c), b.child; + case 10: + a: { + d = b.type._context; + e = b.pendingProps; + f = b.memoizedProps; + var g = e.value; + y(Xb, d._currentValue2); + d._currentValue2 = g; + if (null !== f) + if (Hb(f.value, g)) { + if (f.children === e.children && !C.current) { + b = de(a, b, c); + break a; + } + } else + for (f = b.child, null !== f && (f.return = b); null !== f; ) { + var h = f.dependencies; + if (null !== h) { + g = f.child; + for (var k = h.firstContext; null !== k; ) { + if (k.context === d) { + if (1 === f.tag) { + k = lc(-1, c & -c); + k.tag = 2; + var l = f.updateQueue; + if (null !== l) { + l = l.shared; + var m = l.pending; + null === m ? k.next = k : (k.next = m.next, m.next = k); + l.pending = k; + } + } + f.lanes |= c; + k = f.alternate; + null !== k && (k.lanes |= c); + cc(f.return, c, b); + h.lanes |= c; + break; + } + k = k.next; + } + } else if (10 === f.tag) + g = f.type === b.type ? null : f.child; + else if (18 === f.tag) { + g = f.return; + if (null === g) + throw Error("We just came from a parent so we must have had a parent. This is a bug in React."); + g.lanes |= c; + h = g.alternate; + null !== h && (h.lanes |= c); + cc(g, c, b); + g = f.sibling; + } else + g = f.child; + if (null !== g) + g.return = f; + else + for (g = f; null !== g; ) { + if (g === b) { + g = null; + break; + } + f = g.sibling; + if (null !== f) { + f.return = g.return; + g = f; + break; + } + g = g.return; + } + f = g; + } + Q(a, b, e.children, c); + b = b.child; + } + return b; + case 9: + return e = b.type, d = b.pendingProps.children, dc(b, c), e = H(e), d = d(e), b.flags |= 1, Q(a, b, d, c), b.child; + case 14: + return d = b.type, e = Wb(d, b.pendingProps), e = Wb(d.type, e), ee(a, b, d, e, c); + case 15: + return ge(a, b, b.type, b.pendingProps, c); + case 17: + return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Wb(d, e), me(a, b), b.tag = 1, D(d) ? (a = true, Eb(b)) : a = false, dc(b, c), yc(b, d, e), Ac(b, d, e, c), ne(null, b, d, true, a, c); + case 19: + return Ae(a, b, c); + case 22: + return ie(a, b, c); + } + throw Error("Unknown unit of work tag (" + b.tag + "). This error is likely caused by a bug in React. Please file an issue."); + }; + function Af(a, b) { + return Ea(a, b); + } + function Wf(a, b, c, d) { + this.tag = a; + this.key = c; + this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; + this.index = 0; + this.ref = null; + this.pendingProps = b; + this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; + this.mode = d; + this.subtreeFlags = this.flags = 0; + this.deletions = null; + this.childLanes = this.lanes = 0; + this.alternate = null; + } + function Xf(a, b, c, d) { + return new Wf(a, b, c, d); + } + function fe(a) { + a = a.prototype; + return !(!a || !a.isReactComponent); + } + function Vf(a) { + if ("function" === typeof a) + return fe(a) ? 1 : 0; + if (void 0 !== a && null !== a) { + a = a.$$typeof; + if (a === pa) + return 11; + if (a === sa) + return 14; + } + return 2; + } + function Fc(a, b) { + var c = a.alternate; + null === c ? (c = Xf(a.tag, b, a.key, a.mode), c.elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.type = a.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null); + c.flags = a.flags & 14680064; + c.childLanes = a.childLanes; + c.lanes = a.lanes; + c.child = a.child; + c.memoizedProps = a.memoizedProps; + c.memoizedState = a.memoizedState; + c.updateQueue = a.updateQueue; + b = a.dependencies; + c.dependencies = null === b ? null : { lanes: b.lanes, firstContext: b.firstContext }; + c.sibling = a.sibling; + c.index = a.index; + c.ref = a.ref; + return c; + } + function Hc(a, b, c, d, e, f) { + var g = 2; + d = a; + if ("function" === typeof a) + fe(a) && (g = 1); + else if ("string" === typeof a) + g = 5; + else + a: + switch (a) { + case ka: + return Jc(c.children, e, f, b); + case la: + g = 8; + e |= 8; + break; + case ma: + return a = Xf(12, c, b, e | 2), a.elementType = ma, a.lanes = f, a; + case qa: + return a = Xf(13, c, b, e), a.elementType = qa, a.lanes = f, a; + case ra: + return a = Xf(19, c, b, e), a.elementType = ra, a.lanes = f, a; + case ua: + return se(c, e, f, b); + default: + if ("object" === typeof a && null !== a) + switch (a.$$typeof) { + case na: + g = 10; + break a; + case oa: + g = 9; + break a; + case pa: + g = 11; + break a; + case sa: + g = 14; + break a; + case ta: + g = 16; + d = null; + break a; + } + throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " + ((null == a ? a : typeof a) + ".")); + } + b = Xf(g, c, b, e); + b.elementType = a; + b.type = d; + b.lanes = f; + return b; + } + function Jc(a, b, c, d) { + a = Xf(7, a, d, b); + a.lanes = c; + return a; + } + function se(a, b, c, d) { + a = Xf(22, a, d, b); + a.elementType = ua; + a.lanes = c; + a.stateNode = { isHidden: false }; + return a; + } + function Gc(a, b, c) { + a = Xf(6, a, null, b); + a.lanes = c; + return a; + } + function Ic(a, b, c) { + b = Xf(4, null !== a.children ? a.children : [], a.key, b); + b.lanes = c; + b.stateNode = { containerInfo: a.containerInfo, pendingChildren: null, implementation: a.implementation }; + return b; + } + function Yf(a, b, c, d, e) { + this.tag = b; + this.containerInfo = a; + this.finishedWork = this.pingCache = this.current = this.pendingChildren = null; + this.timeoutHandle = -1; + this.callbackNode = this.pendingContext = this.context = null; + this.callbackPriority = 0; + this.eventTimes = bb(0); + this.expirationTimes = bb(-1); + this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0; + this.entanglements = bb(0); + this.identifierPrefix = d; + this.onRecoverableError = e; + } + function Zf(a, b, c, d, e, f, g) { + a = new Yf(a, b, false, f, g); + 1 === b ? (b = 1, true === d && (b |= 8)) : b = 0; + d = Xf(3, null, null, b); + a.current = d; + d.stateNode = a; + d.memoizedState = { element: null, isDehydrated: false, cache: null, transitions: null, pendingSuspenseBoundaries: null }; + jc(d); + return a; + } + function $f(a, b, c, d) { + var e = b.current, f = tc(), g = uc(e); + a: + if (c) { + c = c._reactInternals; + b: { + if (za(c) !== c || 1 !== c.tag) + throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + var h = c; + do { + switch (h.tag) { + case 3: + h = h.stateNode.context; + break b; + case 1: + if (D(h.type)) { + h = h.stateNode.__reactInternalMemoizedMergedChildContext; + break b; + } + } + h = h.return; + } while (null !== h); + throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + if (1 === c.tag) { + var k = c.type; + if (D(k)) { + c = Db(c, k, h); + break a; + } + } + c = h; + } else + c = yb; + null === b.context ? b.context = c : b.pendingContext = c; + b = lc(f, g); + b.payload = { element: a }; + d = void 0 === d ? null : d; + null !== d && (b.callback = d); + a = mc(e, b, g); + null !== a && (vc(a, e, g, f), nc(a, e, g)); + return g; + } + function ag() { + return null; + } + var bg = aa.unstable_act; + var cg = { createNodeMock: function() { + return null; + } }; + function dg(a) { + if (a.isHidden) + return null; + switch (a.tag) { + case "TEXT": + return a.text; + case "INSTANCE": + var b = a.props; + var c = ["children"]; + if (null == b) + b = {}; + else { + var d = {}, e = Object.keys(b), f; + for (f = 0; f < e.length; f++) { + var g = e[f]; + 0 <= c.indexOf(g) || (d[g] = b[g]); + } + b = d; + } + c = null; + if (a.children && a.children.length) + for (d = 0; d < a.children.length; d++) + e = dg(a.children[d]), null !== e && (null === c ? c = [e] : c.push(e)); + a = { type: a.type, props: b, children: c }; + Object.defineProperty(a, "$$typeof", { value: Symbol.for("react.test.json") }); + return a; + default: + throw Error("Unexpected node type in toJSON: " + a.tag); + } + } + function eg(a) { + if (!a) + return null; + a = fg(a); + return 0 === a.length ? null : 1 === a.length ? gg(a[0]) : hg(a.map(gg)); + } + function fg(a) { + for (var b = []; null != a; ) + b.push(a), a = a.sibling; + return b; + } + function hg(a) { + var b = []; + for (a = [{ i: 0, array: a }]; a.length; ) + for (var c = a.pop(); c.i < c.array.length; ) { + var d = c.array[c.i]; + c.i += 1; + if (Da(d)) { + a.push(c); + a.push({ i: 0, array: d }); + break; + } + b.push(d); + } + return b; + } + function gg(a) { + if (null == a) + return null; + switch (a.tag) { + case 3: + return eg(a.child); + case 4: + return eg(a.child); + case 1: + return { nodeType: "component", type: a.type, props: fa({}, a.memoizedProps), instance: a.stateNode, rendered: eg(a.child) }; + case 0: + case 15: + return { nodeType: "component", type: a.type, props: fa({}, a.memoizedProps), instance: null, rendered: eg(a.child) }; + case 5: + return { nodeType: "host", type: a.type, props: fa({}, a.memoizedProps), instance: null, rendered: hg(fg(a.child).map(gg)) }; + case 6: + return a.stateNode.text; + case 7: + case 10: + case 9: + case 8: + case 12: + case 11: + case 14: + case 17: + case 21: + return eg(a.child); + default: + throw Error("toTree() does not yet know how to handle nodes with tag=" + a.tag); + } + } + var ig = /* @__PURE__ */ new Set([0, 1, 5, 11, 14, 15, 3]); + function jg(a) { + var b = [], c = a; + if (null === c.child) + return b; + c.child.return = c; + c = c.child; + a: + for (; ; ) { + var d = false; + ig.has(c.tag) ? b.push(kg(c)) : 6 === c.tag ? b.push("" + c.memoizedProps) : d = true; + if (d && null !== c.child) + c.child.return = c, c = c.child; + else { + for (; null === c.sibling; ) { + if (c.return === a) + break a; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } + } + return b; + } + var ng = function() { + function a(a2) { + if (!ig.has(a2.tag)) + throw Error("Unexpected object passed to ReactTestInstance constructor (tag: " + a2.tag + "). This is probably a bug in React."); + this._fiber = a2; + } + var b = a.prototype; + b._currentFiber = function() { + var a2 = Ba(this._fiber); + if (null === a2) + throw Error("Can't read from currently-mounting component. This error is likely caused by a bug in React. Please file an issue."); + return a2; + }; + b.find = function(a2) { + return lg(this.findAll(a2, { deep: false }), "matching custom predicate: " + a2.toString()); + }; + b.findByType = function(a2) { + return lg(this.findAllByType(a2, { deep: false }), 'with node type: "' + (xa(a2) || "Unknown") + '"'); + }; + b.findByProps = function(a2) { + return lg(this.findAllByProps(a2, { deep: false }), "with props: " + JSON.stringify(a2)); + }; + b.findAll = function(a2) { + return mg(this, a2, 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null); + }; + b.findAllByType = function(a2) { + return mg(this, function(b2) { + return b2.type === a2; + }, 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null); + }; + b.findAllByProps = function(a2) { + return mg(this, function(b2) { + var c; + if (c = b2.props) + a: { + for (var d in a2) + if (b2.props[d] !== a2[d]) { + c = false; + break a; + } + c = true; + } + return c; + }, 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null); + }; + ea(a, [{ key: "instance", get: function() { + return 5 === this._fiber.tag ? lb(this._fiber.stateNode) : this._fiber.stateNode; + } }, { key: "type", get: function() { + return this._fiber.type; + } }, { key: "props", get: function() { + return this._currentFiber().memoizedProps; + } }, { key: "parent", get: function() { + for (var a2 = this._fiber.return; null !== a2; ) { + if (ig.has(a2.tag)) { + if (3 === a2.tag && 2 > jg(a2).length) + break; + return kg(a2); + } + a2 = a2.return; + } + return null; + } }, { key: "children", get: function() { + return jg(this._currentFiber()); + } }]); + return a; + }(); + function mg(a, b, c) { + var d = c ? c.deep : true, e = []; + if (b(a) && (e.push(a), !d)) + return e; + a.children.forEach(function(a2) { + "string" !== typeof a2 && e.push.apply(e, mg(a2, b, c)); + }); + return e; + } + function lg(a, b) { + if (1 === a.length) + return a[0]; + throw Error((0 === a.length ? "No instances found " : "Expected 1 but found " + a.length + " instances ") + b); + } + function og(a) { + console.error(a); + } + var pg = /* @__PURE__ */ new WeakMap(); + function kg(a) { + var b = pg.get(a); + void 0 === b && null !== a.alternate && (b = pg.get(a.alternate)); + void 0 === b && (b = new ng(a), pg.set(a, b)); + return b; + } + var qg = { findFiberByHostInstance: function() { + throw Error("TestRenderer does not support findFiberByHostInstance()"); + }, bundleType: 0, version: "18.2.0", rendererPackageName: "react-test-renderer" }; + var rg = { + bundleType: qg.bundleType, + version: qg.version, + rendererPackageName: qg.rendererPackageName, + rendererConfig: qg.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ha.ReactCurrentDispatcher, + findHostInstanceByFiber: function(a) { + a = Ba(a); + a = null !== a ? Ca(a) : null; + return null === a ? null : a.stateNode; + }, + findFiberByHostInstance: qg.findFiberByHostInstance || ag, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "18.2.0-next-9e3b772b8-20220608" + }; + if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { + sg = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (!sg.isDisabled && sg.supportsFiber) + try { + Na = sg.inject(rg), Oa = sg; + } catch (a) { + } + } + var sg; + exports._Scheduler = ba; + exports.act = bg; + exports.create = function(a, b) { + var c = cg.createNodeMock, d = false, e = false; + "object" === typeof b && null !== b && ("function" === typeof b.createNodeMock && (c = b.createNodeMock), true === b.unstable_isConcurrent && (d = true), true === b.unstable_strictMode && (e = true)); + var f = { children: [], createNodeMock: c, tag: "CONTAINER" }, g = Zf(f, d ? 1 : 0, null, e, null, "", og); + if (null == g) + throw Error("something went wrong"); + $f(a, g, null, null); + a = { _Scheduler: ba, root: void 0, toJSON: function() { + if (null == g || null == g.current || null == f || 0 === f.children.length) + return null; + if (1 === f.children.length) + return dg(f.children[0]); + if (2 === f.children.length && true === f.children[0].isHidden && false === f.children[1].isHidden) + return dg(f.children[1]); + var a2 = null; + if (f.children && f.children.length) + for (var b2 = 0; b2 < f.children.length; b2++) { + var c2 = dg(f.children[b2]); + null !== c2 && (null === a2 ? a2 = [c2] : a2.push(c2)); + } + return a2; + }, toTree: function() { + return null == g || null == g.current ? null : gg(g.current); + }, update: function(a2) { + null != g && null != g.current && $f(a2, g, null, null); + }, unmount: function() { + null != g && null != g.current && ($f(null, g, null, null), g = f = null); + }, getInstance: function() { + if (null == g || null == g.current) + return null; + a: { + var a2 = g.current; + if (a2.child) + switch (a2.child.tag) { + case 5: + a2 = lb(a2.child.stateNode); + break a; + default: + a2 = a2.child.stateNode; + } + else + a2 = null; + } + return a2; + }, unstable_flushSync: Nf }; + Object.defineProperty(a, "root", { configurable: true, enumerable: true, get: function() { + if (null === g) + throw Error("Can't access .root on unmounted test renderer"); + var a2 = jg(g.current); + if (0 === a2.length) + throw Error("Can't access .root on unmounted test renderer"); + return 1 === a2.length ? a2[0] : kg(g.current); + } }); + return a; + }; + exports.unstable_batchedUpdates = function(a, b) { + var c = I; + I |= 1; + try { + return a(b); + } finally { + I = c, 0 === I && (Je = q() + 500, Ib && Kb()); + } + }; + } +}); + +// node_modules/react-test-renderer/cjs/react-test-renderer.development.js +var require_react_test_renderer_development = __commonJS({ + "node_modules/react-test-renderer/cjs/react-test-renderer.development.js"(exports) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + var React2 = require_react(); + var Scheduler = require_unstable_mock(); + var Scheduler$1 = require_scheduler(); + var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) + descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) + _defineProperties(Constructor.prototype, protoProps); + if (staticProps) + _defineProperties(Constructor, staticProps); + return Constructor; + } + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) + return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) + continue; + target[key] = source[key]; + } + return target; + } + var assign = Object.assign; + function get(key) { + return key._reactInternals; + } + function set(key, value) { + key._reactInternals = value; + } + var enableSchedulingProfiler = false; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var warnAboutStringRefs = false; + var enableSuspenseAvoidThisFallback = false; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; + var HostRoot = 3; + var HostPortal = 4; + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + return "StrictMode"; + } + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; + } + return null; + } + var NoFlags = ( + /* */ + 0 + ); + var PerformedWork = ( + /* */ + 1 + ); + var Placement = ( + /* */ + 2 + ); + var Update = ( + /* */ + 4 + ); + var ChildDeletion = ( + /* */ + 16 + ); + var ContentReset = ( + /* */ + 32 + ); + var Callback = ( + /* */ + 64 + ); + var DidCapture = ( + /* */ + 128 + ); + var ForceClientRender = ( + /* */ + 256 + ); + var Ref = ( + /* */ + 512 + ); + var Snapshot = ( + /* */ + 1024 + ); + var Passive = ( + /* */ + 2048 + ); + var Hydrating = ( + /* */ + 4096 + ); + var Visibility = ( + /* */ + 8192 + ); + var StoreConsistency = ( + /* */ + 16384 + ); + var LifecycleEffectMask = Passive | Update | Callback | Ref | Snapshot | StoreConsistency; + var HostEffectMask = ( + /* */ + 32767 + ); + var Incomplete = ( + /* */ + 32768 + ); + var ShouldCapture = ( + /* */ + 65536 + ); + var ForceUpdateForLegacySuspense = ( + /* */ + 131072 + ); + var Forked = ( + /* */ + 1048576 + ); + var RefStatic = ( + /* */ + 2097152 + ); + var LayoutStatic = ( + /* */ + 4194304 + ); + var PassiveStatic = ( + /* */ + 8388608 + ); + var BeforeMutationMask = ( + // TODO: Remove Update flag from before mutation phase by re-landing Visibility + // flag logic (see #20043) + Update | Snapshot | 0 + ); + var MutationMask = Placement | Update | ChildDeletion | ContentReset | Ref | Hydrating | Visibility; + var LayoutMask = Update | Callback | Ref | Visibility; + var PassiveMask = Passive | ChildDeletion; + var StaticMask = LayoutStatic | PassiveStatic | RefStatic; + var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; + function getNearestMountedFiber(fiber) { + var node = fiber; + var nearestMounted = fiber; + if (!fiber.alternate) { + var nextNode = node; + do { + node = nextNode; + if ((node.flags & (Placement | Hydrating)) !== NoFlags) { + nearestMounted = node.return; + } + nextNode = node.return; + } while (nextNode); + } else { + while (node.return) { + node = node.return; + } + } + if (node.tag === HostRoot) { + return nearestMounted; + } + return null; + } + function isFiberMounted(fiber) { + return getNearestMountedFiber(fiber) === fiber; + } + function isMounted(component) { + { + var owner = ReactCurrentOwner.current; + if (owner !== null && owner.tag === ClassComponent) { + var ownerFiber = owner; + var instance = ownerFiber.stateNode; + if (!instance._warnedAboutRefsInRender) { + error("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentNameFromFiber(ownerFiber) || "A component"); + } + instance._warnedAboutRefsInRender = true; + } + } + var fiber = get(component); + if (!fiber) { + return false; + } + return getNearestMountedFiber(fiber) === fiber; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) { + throw new Error("Unable to find node on an unmounted component."); + } + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + var nearestMounted = getNearestMountedFiber(fiber); + if (nearestMounted === null) { + throw new Error("Unable to find node on an unmounted component."); + } + if (nearestMounted !== fiber) { + return null; + } + return fiber; + } + var a = fiber; + var b = alternate; + while (true) { + var parentA = a.return; + if (parentA === null) { + break; + } + var parentB = parentA.alternate; + if (parentB === null) { + var nextParent = parentA.return; + if (nextParent !== null) { + a = b = nextParent; + continue; + } + break; + } + if (parentA.child === parentB.child) { + var child = parentA.child; + while (child) { + if (child === a) { + assertIsMounted(parentA); + return fiber; + } + if (child === b) { + assertIsMounted(parentA); + return alternate; + } + child = child.sibling; + } + throw new Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) { + a = parentA; + b = parentB; + } else { + var didFindChild = false; + var _child = parentA.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = true; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + _child = parentB.child; + while (_child) { + if (_child === a) { + didFindChild = true; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = true; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); + } + } + } + if (a.alternate !== b) { + throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); + } + } + if (a.tag !== HostRoot) { + throw new Error("Unable to find node on an unmounted component."); + } + if (a.stateNode.current === a) { + return fiber; + } + return alternate; + } + function findCurrentHostFiber(parent) { + var currentParent = findCurrentFiberUsingSlowPath(parent); + return currentParent !== null ? findCurrentHostFiberImpl(currentParent) : null; + } + function findCurrentHostFiberImpl(node) { + if (node.tag === HostComponent || node.tag === HostText) { + return node; + } + var child = node.child; + while (child !== null) { + var match = findCurrentHostFiberImpl(child); + if (match !== null) { + return match; + } + child = child.sibling; + } + return null; + } + var isArrayImpl = Array.isArray; + function isArray(a) { + return isArrayImpl(a); + } + var scheduleCallback = Scheduler$1.unstable_scheduleCallback; + var cancelCallback = Scheduler$1.unstable_cancelCallback; + var shouldYield = Scheduler$1.unstable_shouldYield; + var requestPaint = Scheduler$1.unstable_requestPaint; + var now = Scheduler$1.unstable_now; + var ImmediatePriority = Scheduler$1.unstable_ImmediatePriority; + var UserBlockingPriority = Scheduler$1.unstable_UserBlockingPriority; + var NormalPriority = Scheduler$1.unstable_NormalPriority; + var IdlePriority = Scheduler$1.unstable_IdlePriority; + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var rendererID = null; + var injectedHook = null; + var hasLoggedError = false; + var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined"; + function injectInternals(internals) { + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined") { + return false; + } + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) { + return true; + } + if (!hook.supportsFiber) { + { + error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"); + } + return true; + } + try { + if (enableSchedulingProfiler) { + internals = assign({}, internals, { + getLaneLabelMap, + injectProfilingHooks + }); + } + rendererID = hook.inject(internals); + injectedHook = hook; + } catch (err) { + { + error("React instrumentation encountered an error: %s.", err); + } + } + if (hook.checkDCE) { + return true; + } else { + return false; + } + } + function onScheduleRoot(root, children) { + { + if (injectedHook && typeof injectedHook.onScheduleFiberRoot === "function") { + try { + injectedHook.onScheduleFiberRoot(rendererID, root, children); + } catch (err) { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitRoot(root, eventPriority) { + if (injectedHook && typeof injectedHook.onCommitFiberRoot === "function") { + try { + var didError = (root.current.flags & DidCapture) === DidCapture; + if (enableProfilerTimer) { + var schedulerPriority; + switch (eventPriority) { + case DiscreteEventPriority: + schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority; + break; + } + injectedHook.onCommitFiberRoot(rendererID, root, schedulerPriority, didError); + } else { + injectedHook.onCommitFiberRoot(rendererID, root, void 0, didError); + } + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onPostCommitRoot(root) { + if (injectedHook && typeof injectedHook.onPostCommitFiberRoot === "function") { + try { + injectedHook.onPostCommitFiberRoot(rendererID, root); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function onCommitUnmount(fiber) { + if (injectedHook && typeof injectedHook.onCommitFiberUnmount === "function") { + try { + injectedHook.onCommitFiberUnmount(rendererID, fiber); + } catch (err) { + { + if (!hasLoggedError) { + hasLoggedError = true; + error("React instrumentation encountered an error: %s", err); + } + } + } + } + } + function injectProfilingHooks(profilingHooks) { + } + function getLaneLabelMap() { + { + return null; + } + } + function markComponentRenderStopped() { + } + function markComponentErrored(fiber, thrownValue, lanes) { + } + function markComponentSuspended(fiber, wakeable, lanes) { + } + var NoMode = ( + /* */ + 0 + ); + var ConcurrentMode = ( + /* */ + 1 + ); + var ProfileMode = ( + /* */ + 2 + ); + var StrictLegacyMode = ( + /* */ + 8 + ); + var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback; + var log = Math.log; + var LN2 = Math.LN2; + function clz32Fallback(x) { + var asUint = x >>> 0; + if (asUint === 0) { + return 32; + } + return 31 - (log(asUint) / LN2 | 0) | 0; + } + var TotalLanes = 31; + var NoLanes = ( + /* */ + 0 + ); + var NoLane = ( + /* */ + 0 + ); + var SyncLane = ( + /* */ + 1 + ); + var InputContinuousHydrationLane = ( + /* */ + 2 + ); + var InputContinuousLane = ( + /* */ + 4 + ); + var DefaultHydrationLane = ( + /* */ + 8 + ); + var DefaultLane = ( + /* */ + 16 + ); + var TransitionHydrationLane = ( + /* */ + 32 + ); + var TransitionLanes = ( + /* */ + 4194240 + ); + var TransitionLane1 = ( + /* */ + 64 + ); + var TransitionLane2 = ( + /* */ + 128 + ); + var TransitionLane3 = ( + /* */ + 256 + ); + var TransitionLane4 = ( + /* */ + 512 + ); + var TransitionLane5 = ( + /* */ + 1024 + ); + var TransitionLane6 = ( + /* */ + 2048 + ); + var TransitionLane7 = ( + /* */ + 4096 + ); + var TransitionLane8 = ( + /* */ + 8192 + ); + var TransitionLane9 = ( + /* */ + 16384 + ); + var TransitionLane10 = ( + /* */ + 32768 + ); + var TransitionLane11 = ( + /* */ + 65536 + ); + var TransitionLane12 = ( + /* */ + 131072 + ); + var TransitionLane13 = ( + /* */ + 262144 + ); + var TransitionLane14 = ( + /* */ + 524288 + ); + var TransitionLane15 = ( + /* */ + 1048576 + ); + var TransitionLane16 = ( + /* */ + 2097152 + ); + var RetryLanes = ( + /* */ + 130023424 + ); + var RetryLane1 = ( + /* */ + 4194304 + ); + var RetryLane2 = ( + /* */ + 8388608 + ); + var RetryLane3 = ( + /* */ + 16777216 + ); + var RetryLane4 = ( + /* */ + 33554432 + ); + var RetryLane5 = ( + /* */ + 67108864 + ); + var SomeRetryLane = RetryLane1; + var SelectiveHydrationLane = ( + /* */ + 134217728 + ); + var NonIdleLanes = ( + /* */ + 268435455 + ); + var IdleHydrationLane = ( + /* */ + 268435456 + ); + var IdleLane = ( + /* */ + 536870912 + ); + var OffscreenLane = ( + /* */ + 1073741824 + ); + var NoTimestamp = -1; + var nextTransitionLane = TransitionLane1; + var nextRetryLane = RetryLane1; + function getHighestPriorityLanes(lanes) { + switch (getHighestPriorityLane(lanes)) { + case SyncLane: + return SyncLane; + case InputContinuousHydrationLane: + return InputContinuousHydrationLane; + case InputContinuousLane: + return InputContinuousLane; + case DefaultHydrationLane: + return DefaultHydrationLane; + case DefaultLane: + return DefaultLane; + case TransitionHydrationLane: + return TransitionHydrationLane; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return lanes & TransitionLanes; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return lanes & RetryLanes; + case SelectiveHydrationLane: + return SelectiveHydrationLane; + case IdleHydrationLane: + return IdleHydrationLane; + case IdleLane: + return IdleLane; + case OffscreenLane: + return OffscreenLane; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + return lanes; + } + } + function getNextLanes(root, wipLanes) { + var pendingLanes = root.pendingLanes; + if (pendingLanes === NoLanes) { + return NoLanes; + } + var nextLanes = NoLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + var nonIdlePendingLanes = pendingLanes & NonIdleLanes; + if (nonIdlePendingLanes !== NoLanes) { + var nonIdleUnblockedLanes = nonIdlePendingLanes & ~suspendedLanes; + if (nonIdleUnblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdleUnblockedLanes); + } else { + var nonIdlePingedLanes = nonIdlePendingLanes & pingedLanes; + if (nonIdlePingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(nonIdlePingedLanes); + } + } + } else { + var unblockedLanes = pendingLanes & ~suspendedLanes; + if (unblockedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(unblockedLanes); + } else { + if (pingedLanes !== NoLanes) { + nextLanes = getHighestPriorityLanes(pingedLanes); + } + } + } + if (nextLanes === NoLanes) { + return NoLanes; + } + if (wipLanes !== NoLanes && wipLanes !== nextLanes && // If we already suspended with a delay, then interrupting is fine. Don't + // bother waiting until the root is complete. + (wipLanes & suspendedLanes) === NoLanes) { + var nextLane = getHighestPriorityLane(nextLanes); + var wipLane = getHighestPriorityLane(wipLanes); + if ( + // Tests whether the next lane is equal or lower priority than the wip + // one. This works because the bits decrease in priority as you go left. + nextLane >= wipLane || // Default priority updates should not interrupt transition updates. The + // only difference between default updates and transition updates is that + // default updates do not support refresh transitions. + nextLane === DefaultLane && (wipLane & TransitionLanes) !== NoLanes + ) { + return wipLanes; + } + } + if ((nextLanes & InputContinuousLane) !== NoLanes) { + nextLanes |= pendingLanes & DefaultLane; + } + var entangledLanes = root.entangledLanes; + if (entangledLanes !== NoLanes) { + var entanglements = root.entanglements; + var lanes = nextLanes & entangledLanes; + while (lanes > 0) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + nextLanes |= entanglements[index2]; + lanes &= ~lane; + } + } + return nextLanes; + } + function getMostRecentEventTime(root, lanes) { + var eventTimes = root.eventTimes; + var mostRecentEventTime = NoTimestamp; + while (lanes > 0) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + var eventTime = eventTimes[index2]; + if (eventTime > mostRecentEventTime) { + mostRecentEventTime = eventTime; + } + lanes &= ~lane; + } + return mostRecentEventTime; + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case SyncLane: + case InputContinuousHydrationLane: + case InputContinuousLane: + return currentTime + 250; + case DefaultHydrationLane: + case DefaultLane: + case TransitionHydrationLane: + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + return currentTime + 5e3; + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + return NoTimestamp; + case SelectiveHydrationLane: + case IdleHydrationLane: + case IdleLane: + case OffscreenLane: + return NoTimestamp; + default: + { + error("Should have found matching lanes. This is a bug in React."); + } + return NoTimestamp; + } + } + function markStarvedLanesAsExpired(root, currentTime) { + var pendingLanes = root.pendingLanes; + var suspendedLanes = root.suspendedLanes; + var pingedLanes = root.pingedLanes; + var expirationTimes = root.expirationTimes; + var lanes = pendingLanes; + while (lanes > 0) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + var expirationTime = expirationTimes[index2]; + if (expirationTime === NoTimestamp) { + if ((lane & suspendedLanes) === NoLanes || (lane & pingedLanes) !== NoLanes) { + expirationTimes[index2] = computeExpirationTime(lane, currentTime); + } + } else if (expirationTime <= currentTime) { + root.expiredLanes |= lane; + } + lanes &= ~lane; + } + } + function getLanesToRetrySynchronouslyOnError(root) { + var everythingButOffscreen = root.pendingLanes & ~OffscreenLane; + if (everythingButOffscreen !== NoLanes) { + return everythingButOffscreen; + } + if (everythingButOffscreen & OffscreenLane) { + return OffscreenLane; + } + return NoLanes; + } + function includesSyncLane(lanes) { + return (lanes & SyncLane) !== NoLanes; + } + function includesNonIdleWork(lanes) { + return (lanes & NonIdleLanes) !== NoLanes; + } + function includesOnlyRetries(lanes) { + return (lanes & RetryLanes) === lanes; + } + function includesOnlyNonUrgentLanes(lanes) { + var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; + return (lanes & UrgentLanes) === NoLanes; + } + function includesOnlyTransitions(lanes) { + return (lanes & TransitionLanes) === lanes; + } + function includesBlockingLane(root, lanes) { + var SyncDefaultLanes = InputContinuousHydrationLane | InputContinuousLane | DefaultHydrationLane | DefaultLane; + return (lanes & SyncDefaultLanes) !== NoLanes; + } + function includesExpiredLane(root, lanes) { + return (lanes & root.expiredLanes) !== NoLanes; + } + function isTransitionLane(lane) { + return (lane & TransitionLanes) !== NoLanes; + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + if ((nextTransitionLane & TransitionLanes) === NoLanes) { + nextTransitionLane = TransitionLane1; + } + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + if ((nextRetryLane & RetryLanes) === NoLanes) { + nextRetryLane = RetryLane1; + } + return lane; + } + function getHighestPriorityLane(lanes) { + return lanes & -lanes; + } + function pickArbitraryLane(lanes) { + return getHighestPriorityLane(lanes); + } + function pickArbitraryLaneIndex(lanes) { + return 31 - clz32(lanes); + } + function laneToIndex(lane) { + return pickArbitraryLaneIndex(lane); + } + function includesSomeLane(a, b) { + return (a & b) !== NoLanes; + } + function isSubsetOfLanes(set2, subset) { + return (set2 & subset) === subset; + } + function mergeLanes(a, b) { + return a | b; + } + function removeLanes(set2, subset) { + return set2 & ~subset; + } + function intersectLanes(a, b) { + return a & b; + } + function laneToLanes(lane) { + return lane; + } + function createLaneMap(initial) { + var laneMap = []; + for (var i = 0; i < TotalLanes; i++) { + laneMap.push(initial); + } + return laneMap; + } + function markRootUpdated(root, updateLane, eventTime) { + root.pendingLanes |= updateLane; + if (updateLane !== IdleLane) { + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + } + var eventTimes = root.eventTimes; + var index2 = laneToIndex(updateLane); + eventTimes[index2] = eventTime; + } + function markRootSuspended(root, suspendedLanes) { + root.suspendedLanes |= suspendedLanes; + root.pingedLanes &= ~suspendedLanes; + var expirationTimes = root.expirationTimes; + var lanes = suspendedLanes; + while (lanes > 0) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + expirationTimes[index2] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootPinged(root, pingedLanes, eventTime) { + root.pingedLanes |= root.suspendedLanes & pingedLanes; + } + function markRootFinished(root, remainingLanes) { + var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = NoLanes; + root.pingedLanes = NoLanes; + root.expiredLanes &= remainingLanes; + root.mutableReadLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + var entanglements = root.entanglements; + var eventTimes = root.eventTimes; + var expirationTimes = root.expirationTimes; + var lanes = noLongerPendingLanes; + while (lanes > 0) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + entanglements[index2] = NoLanes; + eventTimes[index2] = NoTimestamp; + expirationTimes[index2] = NoTimestamp; + lanes &= ~lane; + } + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = root.entangledLanes |= entangledLanes; + var entanglements = root.entanglements; + var lanes = rootEntangledLanes; + while (lanes) { + var index2 = pickArbitraryLaneIndex(lanes); + var lane = 1 << index2; + if ( + // Is this one of the newly entangled lanes? + lane & entangledLanes | // Is this lane transitively entangled with the newly entangled lanes? + entanglements[index2] & entangledLanes + ) { + entanglements[index2] |= entangledLanes; + } + lanes &= ~lane; + } + } + function getBumpedLaneForHydration(root, renderLanes2) { + var renderLane = getHighestPriorityLane(renderLanes2); + var lane; + switch (renderLane) { + case InputContinuousLane: + lane = InputContinuousHydrationLane; + break; + case DefaultLane: + lane = DefaultHydrationLane; + break; + case TransitionLane1: + case TransitionLane2: + case TransitionLane3: + case TransitionLane4: + case TransitionLane5: + case TransitionLane6: + case TransitionLane7: + case TransitionLane8: + case TransitionLane9: + case TransitionLane10: + case TransitionLane11: + case TransitionLane12: + case TransitionLane13: + case TransitionLane14: + case TransitionLane15: + case TransitionLane16: + case RetryLane1: + case RetryLane2: + case RetryLane3: + case RetryLane4: + case RetryLane5: + lane = TransitionHydrationLane; + break; + case IdleLane: + lane = IdleHydrationLane; + break; + default: + lane = NoLane; + break; + } + if ((lane & (root.suspendedLanes | renderLanes2)) !== NoLane) { + return NoLane; + } + return lane; + } + function getTransitionsForLanes(root, lanes) { + { + return null; + } + } + var DiscreteEventPriority = SyncLane; + var ContinuousEventPriority = InputContinuousLane; + var DefaultEventPriority = DefaultLane; + var IdleEventPriority = IdleLane; + var currentUpdatePriority = NoLane; + function getCurrentUpdatePriority() { + return currentUpdatePriority; + } + function setCurrentUpdatePriority(newPriority) { + currentUpdatePriority = newPriority; + } + function higherEventPriority(a, b) { + return a !== 0 && a < b ? a : b; + } + function lowerEventPriority(a, b) { + return a === 0 || a > b ? a : b; + } + function isHigherEventPriority(a, b) { + return a !== 0 && a < b; + } + function lanesToEventPriority(lanes) { + var lane = getHighestPriorityLane(lanes); + if (!isHigherEventPriority(DiscreteEventPriority, lane)) { + return DiscreteEventPriority; + } + if (!isHigherEventPriority(ContinuousEventPriority, lane)) { + return ContinuousEventPriority; + } + if (includesNonIdleWork(lane)) { + return DefaultEventPriority; + } + return IdleEventPriority; + } + function shim() { + throw new Error("The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."); + } + var isSuspenseInstancePending = shim; + var isSuspenseInstanceFallback = shim; + var getSuspenseInstanceFallbackErrorDetails = shim; + var registerSuspenseInstanceRetry = shim; + var hydrateTextInstance = shim; + var clearSuspenseBoundary = shim; + var clearSuspenseBoundaryFromContainer = shim; + var errorHydratingContainer = shim; + var NO_CONTEXT = {}; + var UPDATE_SIGNAL = {}; + var nodeToInstanceMap = /* @__PURE__ */ new WeakMap(); + { + Object.freeze(NO_CONTEXT); + Object.freeze(UPDATE_SIGNAL); + } + function getPublicInstance(inst) { + switch (inst.tag) { + case "INSTANCE": + var createNodeMock = inst.rootContainerInstance.createNodeMock; + var mockNode = createNodeMock({ + type: inst.type, + props: inst.props + }); + if (typeof mockNode === "object" && mockNode !== null) { + nodeToInstanceMap.set(mockNode, inst); + } + return mockNode; + default: + return inst; + } + } + function appendChild(parentInstance, child) { + { + if (!isArray(parentInstance.children)) { + error("An invalid container has been provided. This may indicate that another renderer is being used in addition to the test renderer. (For example, ReactDOM.createPortal inside of a ReactTestRenderer tree.) This is not supported."); + } + } + var index2 = parentInstance.children.indexOf(child); + if (index2 !== -1) { + parentInstance.children.splice(index2, 1); + } + parentInstance.children.push(child); + } + function insertBefore(parentInstance, child, beforeChild) { + var index2 = parentInstance.children.indexOf(child); + if (index2 !== -1) { + parentInstance.children.splice(index2, 1); + } + var beforeIndex = parentInstance.children.indexOf(beforeChild); + parentInstance.children.splice(beforeIndex, 0, child); + } + function removeChild(parentInstance, child) { + var index2 = parentInstance.children.indexOf(child); + parentInstance.children.splice(index2, 1); + } + function clearContainer(container) { + container.children.splice(0); + } + function getRootHostContext(rootContainerInstance) { + return NO_CONTEXT; + } + function getChildHostContext(parentHostContext, type, rootContainerInstance) { + return NO_CONTEXT; + } + function prepareForCommit(containerInfo) { + return null; + } + function resetAfterCommit(containerInfo) { + } + function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { + return { + type, + props, + isHidden: false, + children: [], + internalInstanceHandle, + rootContainerInstance, + tag: "INSTANCE" + }; + } + function appendInitialChild(parentInstance, child) { + var index2 = parentInstance.children.indexOf(child); + if (index2 !== -1) { + parentInstance.children.splice(index2, 1); + } + parentInstance.children.push(child); + } + function prepareUpdate(testElement, type, oldProps, newProps, rootContainerInstance, hostContext) { + return UPDATE_SIGNAL; + } + function shouldSetTextContent(type, props) { + return false; + } + function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { + return { + text, + isHidden: false, + tag: "TEXT" + }; + } + function getCurrentEventPriority() { + return DefaultEventPriority; + } + var scheduleTimeout = setTimeout; + var cancelTimeout = clearTimeout; + var noTimeout = -1; + function commitUpdate(instance, updatePayload, type, oldProps, newProps, internalInstanceHandle) { + instance.type = type; + instance.props = newProps; + } + function commitTextUpdate(textInstance, oldText, newText) { + textInstance.text = newText; + } + function resetTextContent(testElement) { + } + var appendChildToContainer = appendChild; + var insertInContainerBefore = insertBefore; + var removeChildFromContainer = removeChild; + function hideInstance(instance) { + instance.isHidden = true; + } + function hideTextInstance(textInstance) { + textInstance.isHidden = true; + } + function unhideInstance(instance, props) { + instance.isHidden = false; + } + function unhideTextInstance(textInstance, text) { + textInstance.isHidden = false; + } + function preparePortalMount(portalInstance) { + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn.displayName); + } + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeNativeComponentFrame(ctor, true); + } + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + var valueStack = []; + var fiberStack; + { + fiberStack = []; + } + var index = -1; + function createCursor(defaultValue) { + return { + current: defaultValue + }; + } + function pop(cursor, fiber) { + if (index < 0) { + { + error("Unexpected pop."); + } + return; + } + { + if (fiber !== fiberStack[index]) { + error("Unexpected Fiber popped."); + } + } + cursor.current = valueStack[index]; + valueStack[index] = null; + { + fiberStack[index] = null; + } + index--; + } + function push(cursor, value, fiber) { + index++; + valueStack[index] = cursor.current; + { + fiberStack[index] = fiber; + } + cursor.current = value; + } + var warnedAboutMissingGetChildContext; + { + warnedAboutMissingGetChildContext = {}; + } + var emptyContextObject = {}; + { + Object.freeze(emptyContextObject); + } + var contextStackCursor = createCursor(emptyContextObject); + var didPerformWorkStackCursor = createCursor(false); + var previousContext = emptyContextObject; + function getUnmaskedContext(workInProgress2, Component, didPushOwnContextIfProvider) { + { + if (didPushOwnContextIfProvider && isContextProvider(Component)) { + return previousContext; + } + return contextStackCursor.current; + } + } + function cacheContext(workInProgress2, unmaskedContext, maskedContext) { + { + var instance = workInProgress2.stateNode; + instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; + instance.__reactInternalMemoizedMaskedChildContext = maskedContext; + } + } + function getMaskedContext(workInProgress2, unmaskedContext) { + { + var type = workInProgress2.type; + var contextTypes = type.contextTypes; + if (!contextTypes) { + return emptyContextObject; + } + var instance = workInProgress2.stateNode; + if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) { + return instance.__reactInternalMemoizedMaskedChildContext; + } + var context = {}; + for (var key in contextTypes) { + context[key] = unmaskedContext[key]; + } + { + var name = getComponentNameFromFiber(workInProgress2) || "Unknown"; + checkPropTypes(contextTypes, context, "context", name); + } + if (instance) { + cacheContext(workInProgress2, unmaskedContext, context); + } + return context; + } + } + function hasContextChanged() { + { + return didPerformWorkStackCursor.current; + } + } + function isContextProvider(type) { + { + var childContextTypes = type.childContextTypes; + return childContextTypes !== null && childContextTypes !== void 0; + } + } + function popContext(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function popTopLevelContextObject(fiber) { + { + pop(didPerformWorkStackCursor, fiber); + pop(contextStackCursor, fiber); + } + } + function pushTopLevelContextObject(fiber, context, didChange) { + { + if (contextStackCursor.current !== emptyContextObject) { + throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."); + } + push(contextStackCursor, context, fiber); + push(didPerformWorkStackCursor, didChange, fiber); + } + } + function processChildContext(fiber, type, parentContext) { + { + var instance = fiber.stateNode; + var childContextTypes = type.childContextTypes; + if (typeof instance.getChildContext !== "function") { + { + var componentName = getComponentNameFromFiber(fiber) || "Unknown"; + if (!warnedAboutMissingGetChildContext[componentName]) { + warnedAboutMissingGetChildContext[componentName] = true; + error("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", componentName, componentName); + } + } + return parentContext; + } + var childContext = instance.getChildContext(); + for (var contextKey in childContext) { + if (!(contextKey in childContextTypes)) { + throw new Error((getComponentNameFromFiber(fiber) || "Unknown") + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'); + } + } + { + var name = getComponentNameFromFiber(fiber) || "Unknown"; + checkPropTypes(childContextTypes, childContext, "child context", name); + } + return assign({}, parentContext, childContext); + } + } + function pushContextProvider(workInProgress2) { + { + var instance = workInProgress2.stateNode; + var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; + previousContext = contextStackCursor.current; + push(contextStackCursor, memoizedMergedChildContext, workInProgress2); + push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress2); + return true; + } + } + function invalidateContextProvider(workInProgress2, type, didChange) { + { + var instance = workInProgress2.stateNode; + if (!instance) { + throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."); + } + if (didChange) { + var mergedContext = processChildContext(workInProgress2, type, previousContext); + instance.__reactInternalMemoizedMergedChildContext = mergedContext; + pop(didPerformWorkStackCursor, workInProgress2); + pop(contextStackCursor, workInProgress2); + push(contextStackCursor, mergedContext, workInProgress2); + push(didPerformWorkStackCursor, didChange, workInProgress2); + } else { + pop(didPerformWorkStackCursor, workInProgress2); + push(didPerformWorkStackCursor, didChange, workInProgress2); + } + } + } + function findCurrentUnmaskedContext(fiber) { + { + if (!isFiberMounted(fiber) || fiber.tag !== ClassComponent) { + throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); + } + var node = fiber; + do { + switch (node.tag) { + case HostRoot: + return node.stateNode.context; + case ClassComponent: { + var Component = node.type; + if (isContextProvider(Component)) { + return node.stateNode.__reactInternalMemoizedMergedChildContext; + } + break; + } + } + node = node.return; + } while (node !== null); + throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."); + } + } + var LegacyRoot = 0; + var ConcurrentRoot = 1; + function is(x, y) { + return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; + } + var objectIs = typeof Object.is === "function" ? Object.is : is; + var syncQueue = null; + var includesLegacySyncCallbacks = false; + var isFlushingSyncQueue = false; + function scheduleSyncCallback(callback) { + if (syncQueue === null) { + syncQueue = [callback]; + } else { + syncQueue.push(callback); + } + } + function scheduleLegacySyncCallback(callback) { + includesLegacySyncCallbacks = true; + scheduleSyncCallback(callback); + } + function flushSyncCallbacksOnlyInLegacyMode() { + if (includesLegacySyncCallbacks) { + flushSyncCallbacks(); + } + } + function flushSyncCallbacks() { + if (!isFlushingSyncQueue && syncQueue !== null) { + isFlushingSyncQueue = true; + var i = 0; + var previousUpdatePriority = getCurrentUpdatePriority(); + try { + var isSync = true; + var queue = syncQueue; + setCurrentUpdatePriority(DiscreteEventPriority); + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(isSync); + } while (callback !== null); + } + syncQueue = null; + includesLegacySyncCallbacks = false; + } catch (error2) { + if (syncQueue !== null) { + syncQueue = syncQueue.slice(i + 1); + } + scheduleCallback(ImmediatePriority, flushSyncCallbacks); + throw error2; + } finally { + setCurrentUpdatePriority(previousUpdatePriority); + isFlushingSyncQueue = false; + } + } + return null; + } + function isRootDehydrated(root) { + var currentState = root.current.memoizedState; + return currentState.isDehydrated; + } + var forkStack = []; + var forkStackIndex = 0; + var treeForkProvider = null; + var treeForkCount = 0; + var idStack = []; + var idStackIndex = 0; + var treeContextProvider = null; + var treeContextId = 1; + var treeContextOverflow = ""; + function popTreeContext(workInProgress2) { + while (workInProgress2 === treeForkProvider) { + treeForkProvider = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + treeForkCount = forkStack[--forkStackIndex]; + forkStack[forkStackIndex] = null; + } + while (workInProgress2 === treeContextProvider) { + treeContextProvider = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextOverflow = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + treeContextId = idStack[--idStackIndex]; + idStack[idStackIndex] = null; + } + } + var isHydrating = false; + var hydrationErrors = null; + function reenterHydrationStateFromDehydratedSuspenseInstance(fiber, suspenseInstance, treeContext) { + { + return false; + } + } + function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { + { + throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + } + function prepareToHydrateHostTextInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + var shouldUpdate = hydrateTextInstance(); + } + function prepareToHydrateHostSuspenseInstance(fiber) { + { + throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); + } + } + function popHydrationState(fiber) { + { + return false; + } + } + function upgradeHydrationErrorsToRecoverable() { + if (hydrationErrors !== null) { + queueRecoverableErrors(hydrationErrors); + hydrationErrors = null; + } + } + function getIsHydrating() { + return isHydrating; + } + function queueHydrationError(error2) { + if (hydrationErrors === null) { + hydrationErrors = [error2]; + } else { + hydrationErrors.push(error2); + } + } + var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; + var NoTransition = null; + function requestCurrentTransition() { + return ReactCurrentBatchConfig.transition; + } + function shallowEqual(objA, objB) { + if (objectIs(objA, objB)) { + return true; + } + if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) { + return false; + } + var keysA = Object.keys(objA); + var keysB = Object.keys(objB); + if (keysA.length !== keysB.length) { + return false; + } + for (var i = 0; i < keysA.length; i++) { + var currentKey = keysA[i]; + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) { + return false; + } + } + return true; + } + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy"); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense"); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList"); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render); + case ClassComponent: + return describeClassComponentFrame(fiber.type); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress2) { + try { + var info = ""; + var node = workInProgress2; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } + } + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame$1.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame$1.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function getCurrentFiber() { + { + return current; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + var ReactStrictModeWarnings = { + recordUnsafeLifecycleWarnings: function(fiber, instance) { + }, + flushPendingUnsafeLifecycleWarnings: function() { + }, + recordLegacyContextWarning: function(fiber, instance) { + }, + flushLegacyContextWarning: function() { + }, + discardPendingWarnings: function() { + } + }; + { + var findStrictRoot = function(fiber) { + var maybeStrictRoot = null; + var node = fiber; + while (node !== null) { + if (node.mode & StrictLegacyMode) { + maybeStrictRoot = node; + } + node = node.return; + } + return maybeStrictRoot; + }; + var setToSortedString = function(set2) { + var array = []; + set2.forEach(function(value) { + array.push(value); + }); + return array.sort().join(", "); + }; + var pendingComponentWillMountWarnings = []; + var pendingUNSAFE_ComponentWillMountWarnings = []; + var pendingComponentWillReceivePropsWarnings = []; + var pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + var pendingComponentWillUpdateWarnings = []; + var pendingUNSAFE_ComponentWillUpdateWarnings = []; + var didWarnAboutUnsafeLifecycles = /* @__PURE__ */ new Set(); + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { + if (didWarnAboutUnsafeLifecycles.has(fiber.type)) { + return; + } + if (typeof instance.componentWillMount === "function" && // Don't warn about react-lifecycles-compat polyfilled components. + instance.componentWillMount.__suppressDeprecationWarning !== true) { + pendingComponentWillMountWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillMount === "function") { + pendingUNSAFE_ComponentWillMountWarnings.push(fiber); + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + pendingComponentWillReceivePropsWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillReceiveProps === "function") { + pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber); + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + pendingComponentWillUpdateWarnings.push(fiber); + } + if (fiber.mode & StrictLegacyMode && typeof instance.UNSAFE_componentWillUpdate === "function") { + pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber); + } + }; + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { + var componentWillMountUniqueNames = /* @__PURE__ */ new Set(); + if (pendingComponentWillMountWarnings.length > 0) { + pendingComponentWillMountWarnings.forEach(function(fiber) { + componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillMountWarnings = []; + } + var UNSAFE_componentWillMountUniqueNames = /* @__PURE__ */ new Set(); + if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) { + pendingUNSAFE_ComponentWillMountWarnings.forEach(function(fiber) { + UNSAFE_componentWillMountUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillMountWarnings = []; + } + var componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); + if (pendingComponentWillReceivePropsWarnings.length > 0) { + pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { + componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillReceivePropsWarnings = []; + } + var UNSAFE_componentWillReceivePropsUniqueNames = /* @__PURE__ */ new Set(); + if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) { + pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function(fiber) { + UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + } + var componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); + if (pendingComponentWillUpdateWarnings.length > 0) { + pendingComponentWillUpdateWarnings.forEach(function(fiber) { + componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingComponentWillUpdateWarnings = []; + } + var UNSAFE_componentWillUpdateUniqueNames = /* @__PURE__ */ new Set(); + if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) { + pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function(fiber) { + UNSAFE_componentWillUpdateUniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutUnsafeLifecycles.add(fiber.type); + }); + pendingUNSAFE_ComponentWillUpdateWarnings = []; + } + if (UNSAFE_componentWillMountUniqueNames.size > 0) { + var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames); + error("Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s", sortedNames); + } + if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames); + error("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/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://reactjs.org/link/derived-state\n\nPlease update the following components: %s", _sortedNames); + } + if (UNSAFE_componentWillUpdateUniqueNames.size > 0) { + var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames); + error("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s", _sortedNames2); + } + if (componentWillMountUniqueNames.size > 0) { + var _sortedNames3 = setToSortedString(componentWillMountUniqueNames); + warn("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/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", _sortedNames3); + } + if (componentWillReceivePropsUniqueNames.size > 0) { + var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames); + warn("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/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://reactjs.org/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", _sortedNames4); + } + if (componentWillUpdateUniqueNames.size > 0) { + var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames); + warn("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/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", _sortedNames5); + } + }; + var pendingLegacyContextWarning = /* @__PURE__ */ new Map(); + var didWarnAboutLegacyContext = /* @__PURE__ */ new Set(); + ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { + var strictRoot = findStrictRoot(fiber); + if (strictRoot === null) { + error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."); + return; + } + if (didWarnAboutLegacyContext.has(fiber.type)) { + return; + } + var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); + if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === "function") { + if (warningsForRoot === void 0) { + warningsForRoot = []; + pendingLegacyContextWarning.set(strictRoot, warningsForRoot); + } + warningsForRoot.push(fiber); + } + }; + ReactStrictModeWarnings.flushLegacyContextWarning = function() { + pendingLegacyContextWarning.forEach(function(fiberArray, strictRoot) { + if (fiberArray.length === 0) { + return; + } + var firstFiber = fiberArray[0]; + var uniqueNames = /* @__PURE__ */ new Set(); + fiberArray.forEach(function(fiber) { + uniqueNames.add(getComponentNameFromFiber(fiber) || "Component"); + didWarnAboutLegacyContext.add(fiber.type); + }); + var sortedNames = setToSortedString(uniqueNames); + try { + setCurrentFiber(firstFiber); + error("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context", sortedNames); + } finally { + resetCurrentFiber(); + } + }); + }; + ReactStrictModeWarnings.discardPendingWarnings = function() { + pendingComponentWillMountWarnings = []; + pendingUNSAFE_ComponentWillMountWarnings = []; + pendingComponentWillReceivePropsWarnings = []; + pendingUNSAFE_ComponentWillReceivePropsWarnings = []; + pendingComponentWillUpdateWarnings = []; + pendingUNSAFE_ComponentWillUpdateWarnings = []; + pendingLegacyContextWarning = /* @__PURE__ */ new Map(); + }; + } + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + function resolveDefaultProps(Component, baseProps) { + if (Component && Component.defaultProps) { + var props = assign({}, baseProps); + var defaultProps = Component.defaultProps; + for (var propName in defaultProps) { + if (props[propName] === void 0) { + props[propName] = defaultProps[propName]; + } + } + return props; + } + return baseProps; + } + var valueCursor = createCursor(null); + var rendererSigil; + { + rendererSigil = {}; + } + var currentlyRenderingFiber = null; + var lastContextDependency = null; + var lastFullyObservedContext = null; + var isDisallowedContextReadInDEV = false; + function resetContextDependencies() { + currentlyRenderingFiber = null; + lastContextDependency = null; + lastFullyObservedContext = null; + { + isDisallowedContextReadInDEV = false; + } + } + function enterDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = true; + } + } + function exitDisallowedContextReadInDEV() { + { + isDisallowedContextReadInDEV = false; + } + } + function pushProvider(providerFiber, context, nextValue) { + { + push(valueCursor, context._currentValue2, providerFiber); + context._currentValue2 = nextValue; + { + if (context._currentRenderer2 !== void 0 && context._currentRenderer2 !== null && context._currentRenderer2 !== rendererSigil) { + error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."); + } + context._currentRenderer2 = rendererSigil; + } + } + } + function popProvider(context, providerFiber) { + var currentValue = valueCursor.current; + pop(valueCursor, providerFiber); + { + { + context._currentValue2 = currentValue; + } + } + } + function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) { + var node = parent; + while (node !== null) { + var alternate = node.alternate; + if (!isSubsetOfLanes(node.childLanes, renderLanes2)) { + node.childLanes = mergeLanes(node.childLanes, renderLanes2); + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes2); + } + } else if (alternate !== null && !isSubsetOfLanes(alternate.childLanes, renderLanes2)) { + alternate.childLanes = mergeLanes(alternate.childLanes, renderLanes2); + } + if (node === propagationRoot) { + break; + } + node = node.return; + } + { + if (node !== propagationRoot) { + error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue."); + } + } + } + function propagateContextChange(workInProgress2, context, renderLanes2) { + { + propagateContextChange_eager(workInProgress2, context, renderLanes2); + } + } + function propagateContextChange_eager(workInProgress2, context, renderLanes2) { + var fiber = workInProgress2.child; + if (fiber !== null) { + fiber.return = workInProgress2; + } + while (fiber !== null) { + var nextFiber = void 0; + var list = fiber.dependencies; + if (list !== null) { + nextFiber = fiber.child; + var dependency = list.firstContext; + while (dependency !== null) { + if (dependency.context === context) { + if (fiber.tag === ClassComponent) { + var lane = pickArbitraryLane(renderLanes2); + var update = createUpdate(NoTimestamp, lane); + update.tag = ForceUpdate; + var updateQueue = fiber.updateQueue; + if (updateQueue === null) + ; + else { + var sharedQueue = updateQueue.shared; + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + } + } + fiber.lanes = mergeLanes(fiber.lanes, renderLanes2); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes2); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes2, workInProgress2); + list.lanes = mergeLanes(list.lanes, renderLanes2); + break; + } + dependency = dependency.next; + } + } else if (fiber.tag === ContextProvider) { + nextFiber = fiber.type === workInProgress2.type ? null : fiber.child; + } else if (fiber.tag === DehydratedFragment) { + var parentSuspense = fiber.return; + if (parentSuspense === null) { + throw new Error("We just came from a parent so we must have had a parent. This is a bug in React."); + } + parentSuspense.lanes = mergeLanes(parentSuspense.lanes, renderLanes2); + var _alternate = parentSuspense.alternate; + if (_alternate !== null) { + _alternate.lanes = mergeLanes(_alternate.lanes, renderLanes2); + } + scheduleContextWorkOnParentPath(parentSuspense, renderLanes2, workInProgress2); + nextFiber = fiber.sibling; + } else { + nextFiber = fiber.child; + } + if (nextFiber !== null) { + nextFiber.return = fiber; + } else { + nextFiber = fiber; + while (nextFiber !== null) { + if (nextFiber === workInProgress2) { + nextFiber = null; + break; + } + var sibling = nextFiber.sibling; + if (sibling !== null) { + sibling.return = nextFiber.return; + nextFiber = sibling; + break; + } + nextFiber = nextFiber.return; + } + } + fiber = nextFiber; + } + } + function prepareToReadContext(workInProgress2, renderLanes2) { + currentlyRenderingFiber = workInProgress2; + lastContextDependency = null; + lastFullyObservedContext = null; + var dependencies = workInProgress2.dependencies; + if (dependencies !== null) { + { + var firstContext = dependencies.firstContext; + if (firstContext !== null) { + if (includesSomeLane(dependencies.lanes, renderLanes2)) { + markWorkInProgressReceivedUpdate(); + } + dependencies.firstContext = null; + } + } + } + } + function readContext(context) { + { + if (isDisallowedContextReadInDEV) { + error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + } + } + var value = context._currentValue2; + if (lastFullyObservedContext === context) + ; + else { + var contextItem = { + context, + memoizedValue: value, + next: null + }; + if (lastContextDependency === null) { + if (currentlyRenderingFiber === null) { + throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + } + lastContextDependency = contextItem; + currentlyRenderingFiber.dependencies = { + lanes: NoLanes, + firstContext: contextItem + }; + } else { + lastContextDependency = lastContextDependency.next = contextItem; + } + } + return value; + } + var concurrentQueues = null; + function pushConcurrentUpdateQueue(queue) { + if (concurrentQueues === null) { + concurrentQueues = [queue]; + } else { + concurrentQueues.push(queue); + } + } + function finishQueueingConcurrentUpdates() { + if (concurrentQueues !== null) { + for (var i = 0; i < concurrentQueues.length; i++) { + var queue = concurrentQueues[i]; + var lastInterleavedUpdate = queue.interleaved; + if (lastInterleavedUpdate !== null) { + queue.interleaved = null; + var firstInterleavedUpdate = lastInterleavedUpdate.next; + var lastPendingUpdate = queue.pending; + if (lastPendingUpdate !== null) { + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = firstInterleavedUpdate; + lastInterleavedUpdate.next = firstPendingUpdate; + } + queue.pending = lastInterleavedUpdate; + } + } + concurrentQueues = null; + } + } + function enqueueConcurrentHookUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + update.next = update; + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + update.next = update; + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + } + function enqueueConcurrentClassUpdate(fiber, queue, update, lane) { + var interleaved = queue.interleaved; + if (interleaved === null) { + update.next = update; + pushConcurrentUpdateQueue(queue); + } else { + update.next = interleaved.next; + interleaved.next = update; + } + queue.interleaved = update; + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + function enqueueConcurrentRenderForLane(fiber, lane) { + return markUpdateLaneFromFiberToRoot(fiber, lane); + } + var unsafe_markUpdateLaneFromFiberToRoot = markUpdateLaneFromFiberToRoot; + function markUpdateLaneFromFiberToRoot(sourceFiber, lane) { + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, lane); + var alternate = sourceFiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, lane); + } + { + if (alternate === null && (sourceFiber.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + var node = sourceFiber; + var parent = sourceFiber.return; + while (parent !== null) { + parent.childLanes = mergeLanes(parent.childLanes, lane); + alternate = parent.alternate; + if (alternate !== null) { + alternate.childLanes = mergeLanes(alternate.childLanes, lane); + } else { + { + if ((parent.flags & (Placement | Hydrating)) !== NoFlags) { + warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); + } + } + } + node = parent; + parent = parent.return; + } + if (node.tag === HostRoot) { + var root = node.stateNode; + return root; + } else { + return null; + } + } + var UpdateState = 0; + var ReplaceState = 1; + var ForceUpdate = 2; + var CaptureUpdate = 3; + var hasForceUpdate = false; + var didWarnUpdateInsideUpdate; + var currentlyProcessingQueue; + { + didWarnUpdateInsideUpdate = false; + currentlyProcessingQueue = null; + } + function initializeUpdateQueue(fiber) { + var queue = { + baseState: fiber.memoizedState, + firstBaseUpdate: null, + lastBaseUpdate: null, + shared: { + pending: null, + interleaved: null, + lanes: NoLanes + }, + effects: null + }; + fiber.updateQueue = queue; + } + function cloneUpdateQueue(current2, workInProgress2) { + var queue = workInProgress2.updateQueue; + var currentQueue = current2.updateQueue; + if (queue === currentQueue) { + var clone = { + baseState: currentQueue.baseState, + firstBaseUpdate: currentQueue.firstBaseUpdate, + lastBaseUpdate: currentQueue.lastBaseUpdate, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress2.updateQueue = clone; + } + } + function createUpdate(eventTime, lane) { + var update = { + eventTime, + lane, + tag: UpdateState, + payload: null, + callback: null, + next: null + }; + return update; + } + function enqueueUpdate(fiber, update, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return null; + } + var sharedQueue = updateQueue.shared; + { + if (currentlyProcessingQueue === sharedQueue && !didWarnUpdateInsideUpdate) { + error("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."); + didWarnUpdateInsideUpdate = true; + } + } + if (isUnsafeClassRenderPhaseUpdate()) { + var pending = sharedQueue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + sharedQueue.pending = update; + return unsafe_markUpdateLaneFromFiberToRoot(fiber, lane); + } else { + return enqueueConcurrentClassUpdate(fiber, sharedQueue, update, lane); + } + } + function entangleTransitions(root, fiber, lane) { + var updateQueue = fiber.updateQueue; + if (updateQueue === null) { + return; + } + var sharedQueue = updateQueue.shared; + if (isTransitionLane(lane)) { + var queueLanes = sharedQueue.lanes; + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + var newQueueLanes = mergeLanes(queueLanes, lane); + sharedQueue.lanes = newQueueLanes; + markRootEntangled(root, newQueueLanes); + } + } + function enqueueCapturedUpdate(workInProgress2, capturedUpdate) { + var queue = workInProgress2.updateQueue; + var current2 = workInProgress2.alternate; + if (current2 !== null) { + var currentQueue = current2.updateQueue; + if (queue === currentQueue) { + var newFirst = null; + var newLast = null; + var firstBaseUpdate = queue.firstBaseUpdate; + if (firstBaseUpdate !== null) { + var update = firstBaseUpdate; + do { + var clone = { + eventTime: update.eventTime, + lane: update.lane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLast === null) { + newFirst = newLast = clone; + } else { + newLast.next = clone; + newLast = clone; + } + update = update.next; + } while (update !== null); + if (newLast === null) { + newFirst = newLast = capturedUpdate; + } else { + newLast.next = capturedUpdate; + newLast = capturedUpdate; + } + } else { + newFirst = newLast = capturedUpdate; + } + queue = { + baseState: currentQueue.baseState, + firstBaseUpdate: newFirst, + lastBaseUpdate: newLast, + shared: currentQueue.shared, + effects: currentQueue.effects + }; + workInProgress2.updateQueue = queue; + return; + } + } + var lastBaseUpdate = queue.lastBaseUpdate; + if (lastBaseUpdate === null) { + queue.firstBaseUpdate = capturedUpdate; + } else { + lastBaseUpdate.next = capturedUpdate; + } + queue.lastBaseUpdate = capturedUpdate; + } + function getStateFromUpdate(workInProgress2, queue, update, prevState, nextProps, instance) { + switch (update.tag) { + case ReplaceState: { + var payload = update.payload; + if (typeof payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + var nextState = payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + return nextState; + } + return payload; + } + case CaptureUpdate: { + workInProgress2.flags = workInProgress2.flags & ~ShouldCapture | DidCapture; + } + case UpdateState: { + var _payload = update.payload; + var partialState; + if (typeof _payload === "function") { + { + enterDisallowedContextReadInDEV(); + } + partialState = _payload.call(instance, prevState, nextProps); + { + exitDisallowedContextReadInDEV(); + } + } else { + partialState = _payload; + } + if (partialState === null || partialState === void 0) { + return prevState; + } + return assign({}, prevState, partialState); + } + case ForceUpdate: { + hasForceUpdate = true; + return prevState; + } + } + return prevState; + } + function processUpdateQueue(workInProgress2, props, instance, renderLanes2) { + var queue = workInProgress2.updateQueue; + hasForceUpdate = false; + { + currentlyProcessingQueue = queue.shared; + } + var firstBaseUpdate = queue.firstBaseUpdate; + var lastBaseUpdate = queue.lastBaseUpdate; + var pendingQueue = queue.shared.pending; + if (pendingQueue !== null) { + queue.shared.pending = null; + var lastPendingUpdate = pendingQueue; + var firstPendingUpdate = lastPendingUpdate.next; + lastPendingUpdate.next = null; + if (lastBaseUpdate === null) { + firstBaseUpdate = firstPendingUpdate; + } else { + lastBaseUpdate.next = firstPendingUpdate; + } + lastBaseUpdate = lastPendingUpdate; + var current2 = workInProgress2.alternate; + if (current2 !== null) { + var currentQueue = current2.updateQueue; + var currentLastBaseUpdate = currentQueue.lastBaseUpdate; + if (currentLastBaseUpdate !== lastBaseUpdate) { + if (currentLastBaseUpdate === null) { + currentQueue.firstBaseUpdate = firstPendingUpdate; + } else { + currentLastBaseUpdate.next = firstPendingUpdate; + } + currentQueue.lastBaseUpdate = lastPendingUpdate; + } + } + } + if (firstBaseUpdate !== null) { + var newState = queue.baseState; + var newLanes = NoLanes; + var newBaseState = null; + var newFirstBaseUpdate = null; + var newLastBaseUpdate = null; + var update = firstBaseUpdate; + do { + var updateLane = update.lane; + var updateEventTime = update.eventTime; + if (!isSubsetOfLanes(renderLanes2, updateLane)) { + var clone = { + eventTime: updateEventTime, + lane: updateLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + if (newLastBaseUpdate === null) { + newFirstBaseUpdate = newLastBaseUpdate = clone; + newBaseState = newState; + } else { + newLastBaseUpdate = newLastBaseUpdate.next = clone; + } + newLanes = mergeLanes(newLanes, updateLane); + } else { + if (newLastBaseUpdate !== null) { + var _clone = { + eventTime: updateEventTime, + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. + lane: NoLane, + tag: update.tag, + payload: update.payload, + callback: update.callback, + next: null + }; + newLastBaseUpdate = newLastBaseUpdate.next = _clone; + } + newState = getStateFromUpdate(workInProgress2, queue, update, newState, props, instance); + var callback = update.callback; + if (callback !== null && // If the update was already committed, we should not queue its + // callback again. + update.lane !== NoLane) { + workInProgress2.flags |= Callback; + var effects = queue.effects; + if (effects === null) { + queue.effects = [update]; + } else { + effects.push(update); + } + } + } + update = update.next; + if (update === null) { + pendingQueue = queue.shared.pending; + if (pendingQueue === null) { + break; + } else { + var _lastPendingUpdate = pendingQueue; + var _firstPendingUpdate = _lastPendingUpdate.next; + _lastPendingUpdate.next = null; + update = _firstPendingUpdate; + queue.lastBaseUpdate = _lastPendingUpdate; + queue.shared.pending = null; + } + } + } while (true); + if (newLastBaseUpdate === null) { + newBaseState = newState; + } + queue.baseState = newBaseState; + queue.firstBaseUpdate = newFirstBaseUpdate; + queue.lastBaseUpdate = newLastBaseUpdate; + var lastInterleaved = queue.shared.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + newLanes = mergeLanes(newLanes, interleaved.lane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (firstBaseUpdate === null) { + queue.shared.lanes = NoLanes; + } + markSkippedUpdateLanes(newLanes); + workInProgress2.lanes = newLanes; + workInProgress2.memoizedState = newState; + } + { + currentlyProcessingQueue = null; + } + } + function callCallback(callback, context) { + if (typeof callback !== "function") { + throw new Error("Invalid argument passed as callback. Expected a function. Instead " + ("received: " + callback)); + } + callback.call(context); + } + function resetHasForceUpdateBeforeProcessing() { + hasForceUpdate = false; + } + function checkHasForceUpdateAfterProcessing() { + return hasForceUpdate; + } + function commitUpdateQueue(finishedWork, finishedQueue, instance) { + var effects = finishedQueue.effects; + finishedQueue.effects = null; + if (effects !== null) { + for (var i = 0; i < effects.length; i++) { + var effect = effects[i]; + var callback = effect.callback; + if (callback !== null) { + effect.callback = null; + callCallback(callback, instance); + } + } + } + } + var fakeInternalInstance = {}; + var emptyRefsObject = new React2.Component().refs; + var didWarnAboutStateAssignmentForComponent; + var didWarnAboutUninitializedState; + var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate; + var didWarnAboutLegacyLifecyclesAndDerivedState; + var didWarnAboutUndefinedDerivedState; + var warnOnUndefinedDerivedState; + var warnOnInvalidCallback; + var didWarnAboutDirectlyAssigningPropsToState; + var didWarnAboutContextTypeAndContextTypes; + var didWarnAboutInvalidateContextType; + { + didWarnAboutStateAssignmentForComponent = /* @__PURE__ */ new Set(); + didWarnAboutUninitializedState = /* @__PURE__ */ new Set(); + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = /* @__PURE__ */ new Set(); + didWarnAboutLegacyLifecyclesAndDerivedState = /* @__PURE__ */ new Set(); + didWarnAboutDirectlyAssigningPropsToState = /* @__PURE__ */ new Set(); + didWarnAboutUndefinedDerivedState = /* @__PURE__ */ new Set(); + didWarnAboutContextTypeAndContextTypes = /* @__PURE__ */ new Set(); + didWarnAboutInvalidateContextType = /* @__PURE__ */ new Set(); + var didWarnOnInvalidCallback = /* @__PURE__ */ new Set(); + warnOnInvalidCallback = function(callback, callerName) { + if (callback === null || typeof callback === "function") { + return; + } + var key = callerName + "_" + callback; + if (!didWarnOnInvalidCallback.has(key)) { + didWarnOnInvalidCallback.add(key); + error("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callerName, callback); + } + }; + warnOnUndefinedDerivedState = function(type, partialState) { + if (partialState === void 0) { + var componentName = getComponentNameFromType(type) || "Component"; + if (!didWarnAboutUndefinedDerivedState.has(componentName)) { + didWarnAboutUndefinedDerivedState.add(componentName); + error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", componentName); + } + } + }; + Object.defineProperty(fakeInternalInstance, "_processChildContext", { + enumerable: false, + value: function() { + throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."); + } + }); + Object.freeze(fakeInternalInstance); + } + function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) { + var prevState = workInProgress2.memoizedState; + var partialState = getDerivedStateFromProps(nextProps, prevState); + { + warnOnUndefinedDerivedState(ctor, partialState); + } + var memoizedState = partialState === null || partialState === void 0 ? prevState : assign({}, prevState, partialState); + workInProgress2.memoizedState = memoizedState; + if (workInProgress2.lanes === NoLanes) { + var updateQueue = workInProgress2.updateQueue; + updateQueue.baseState = memoizedState; + } + } + var classComponentUpdater = { + isMounted, + enqueueSetState: function(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.payload = payload; + if (callback !== void 0 && callback !== null) { + { + warnOnInvalidCallback(callback, "setState"); + } + update.callback = callback; + } + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + }, + enqueueReplaceState: function(inst, payload, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ReplaceState; + update.payload = payload; + if (callback !== void 0 && callback !== null) { + { + warnOnInvalidCallback(callback, "replaceState"); + } + update.callback = callback; + } + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + }, + enqueueForceUpdate: function(inst, callback) { + var fiber = get(inst); + var eventTime = requestEventTime(); + var lane = requestUpdateLane(fiber); + var update = createUpdate(eventTime, lane); + update.tag = ForceUpdate; + if (callback !== void 0 && callback !== null) { + { + warnOnInvalidCallback(callback, "forceUpdate"); + } + update.callback = callback; + } + var root = enqueueUpdate(fiber, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitions(root, fiber, lane); + } + } + }; + function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) { + var instance = workInProgress2.stateNode; + if (typeof instance.shouldComponentUpdate === "function") { + var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); + { + if (shouldUpdate === void 0) { + error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", getComponentNameFromType(ctor) || "Component"); + } + } + return shouldUpdate; + } + if (ctor.prototype && ctor.prototype.isPureReactComponent) { + return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); + } + return true; + } + function checkClassInstance(workInProgress2, ctor, newProps) { + var instance = workInProgress2.stateNode; + { + var name = getComponentNameFromType(ctor) || "Component"; + var renderPresent = instance.render; + if (!renderPresent) { + if (ctor.prototype && typeof ctor.prototype.render === "function") { + error("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?", name); + } else { + error("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.", name); + } + } + if (instance.getInitialState && !instance.getInitialState.isReactClassApproved && !instance.state) { + error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", name); + } + if (instance.getDefaultProps && !instance.getDefaultProps.isReactClassApproved) { + error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", name); + } + if (instance.propTypes) { + error("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name); + } + if (instance.contextType) { + error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", name); + } + { + if (instance.contextTypes) { + error("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name); + } + if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) { + didWarnAboutContextTypeAndContextTypes.add(ctor); + error("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.", name); + } + } + if (typeof instance.componentShouldUpdate === "function") { + error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", name); + } + if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== "undefined") { + error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(ctor) || "A pure component"); + } + if (typeof instance.componentDidUnmount === "function") { + error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name); + } + if (typeof instance.componentDidReceiveProps === "function") { + error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name); + } + if (typeof instance.componentWillRecieveProps === "function") { + error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name); + } + if (typeof instance.UNSAFE_componentWillRecieveProps === "function") { + error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); + } + var hasMutatedProps = instance.props !== newProps; + if (instance.props !== void 0 && hasMutatedProps) { + error("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", name, name); + } + if (instance.defaultProps) { + error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", name, name); + } + if (typeof instance.getSnapshotBeforeUpdate === "function" && typeof instance.componentDidUpdate !== "function" && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) { + didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor); + error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(ctor)); + } + if (typeof instance.getDerivedStateFromProps === "function") { + error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof instance.getDerivedStateFromError === "function") { + error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name); + } + if (typeof ctor.getSnapshotBeforeUpdate === "function") { + error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", name); + } + var _state = instance.state; + if (_state && (typeof _state !== "object" || isArray(_state))) { + error("%s.state: must be set to an object or null", name); + } + if (typeof instance.getChildContext === "function" && typeof ctor.childContextTypes !== "object") { + error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name); + } + } + } + function adoptClassInstance(workInProgress2, instance) { + instance.updater = classComponentUpdater; + workInProgress2.stateNode = instance; + set(instance, workInProgress2); + { + instance._reactInternalInstance = fakeInternalInstance; + } + } + function constructClassInstance(workInProgress2, ctor, props) { + var isLegacyContextConsumer = false; + var unmaskedContext = emptyContextObject; + var context = emptyContextObject; + var contextType = ctor.contextType; + { + if ("contextType" in ctor) { + var isValid = ( + // Allow null for conditional declaration + contextType === null || contextType !== void 0 && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === void 0 + ); + if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) { + didWarnAboutInvalidateContextType.add(ctor); + var addendum = ""; + if (contextType === void 0) { + addendum = " 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."; + } else if (typeof contextType !== "object") { + addendum = " However, it is set to a " + typeof contextType + "."; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = " Did you accidentally pass the Context.Provider instead?"; + } else if (contextType._context !== void 0) { + addendum = " Did you accidentally pass the Context.Consumer instead?"; + } else { + addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; + } + error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(ctor) || "Component", addendum); + } + } + } + if (typeof contextType === "object" && contextType !== null) { + context = readContext(contextType); + } else { + unmaskedContext = getUnmaskedContext(workInProgress2, ctor, true); + var contextTypes = ctor.contextTypes; + isLegacyContextConsumer = contextTypes !== null && contextTypes !== void 0; + context = isLegacyContextConsumer ? getMaskedContext(workInProgress2, unmaskedContext) : emptyContextObject; + } + var instance = new ctor(props, context); + var state = workInProgress2.memoizedState = instance.state !== null && instance.state !== void 0 ? instance.state : null; + adoptClassInstance(workInProgress2, instance); + { + if (typeof ctor.getDerivedStateFromProps === "function" && state === null) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutUninitializedState.has(componentName)) { + didWarnAboutUninitializedState.add(componentName); + error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", componentName, instance.state === null ? "null" : "undefined", componentName); + } + } + if (typeof ctor.getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function") { + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof instance.componentWillMount === "function" && instance.componentWillMount.__suppressDeprecationWarning !== true) { + foundWillMountName = "componentWillMount"; + } else if (typeof instance.UNSAFE_componentWillMount === "function") { + foundWillMountName = "UNSAFE_componentWillMount"; + } + if (typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) { + foundWillReceivePropsName = "componentWillReceiveProps"; + } else if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"; + } + if (typeof instance.componentWillUpdate === "function" && instance.componentWillUpdate.__suppressDeprecationWarning !== true) { + foundWillUpdateName = "componentWillUpdate"; + } else if (typeof instance.UNSAFE_componentWillUpdate === "function") { + foundWillUpdateName = "UNSAFE_componentWillUpdate"; + } + if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) { + var _componentName = getComponentNameFromType(ctor) || "Component"; + var newApiName = typeof ctor.getDerivedStateFromProps === "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; + if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) { + didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName); + error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles", _componentName, newApiName, foundWillMountName !== null ? "\n " + foundWillMountName : "", foundWillReceivePropsName !== null ? "\n " + foundWillReceivePropsName : "", foundWillUpdateName !== null ? "\n " + foundWillUpdateName : ""); + } + } + } + } + if (isLegacyContextConsumer) { + cacheContext(workInProgress2, unmaskedContext, context); + } + return instance; + } + function callComponentWillMount(workInProgress2, instance) { + var oldState = instance.state; + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + if (oldState !== instance.state) { + { + error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress2) || "Component"); + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) { + var oldState = instance.state; + if (typeof instance.componentWillReceiveProps === "function") { + instance.componentWillReceiveProps(newProps, nextContext); + } + if (typeof instance.UNSAFE_componentWillReceiveProps === "function") { + instance.UNSAFE_componentWillReceiveProps(newProps, nextContext); + } + if (instance.state !== oldState) { + { + var componentName = getComponentNameFromFiber(workInProgress2) || "Component"; + if (!didWarnAboutStateAssignmentForComponent.has(componentName)) { + didWarnAboutStateAssignmentForComponent.add(componentName); + error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", componentName); + } + } + classComponentUpdater.enqueueReplaceState(instance, instance.state, null); + } + } + function mountClassInstance(workInProgress2, ctor, newProps, renderLanes2) { + { + checkClassInstance(workInProgress2, ctor, newProps); + } + var instance = workInProgress2.stateNode; + instance.props = newProps; + instance.state = workInProgress2.memoizedState; + instance.refs = emptyRefsObject; + initializeUpdateQueue(workInProgress2); + var contextType = ctor.contextType; + if (typeof contextType === "object" && contextType !== null) { + instance.context = readContext(contextType); + } else { + var unmaskedContext = getUnmaskedContext(workInProgress2, ctor, true); + instance.context = getMaskedContext(workInProgress2, unmaskedContext); + } + { + if (instance.state === newProps) { + var componentName = getComponentNameFromType(ctor) || "Component"; + if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) { + didWarnAboutDirectlyAssigningPropsToState.add(componentName); + error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", componentName); + } + } + if (workInProgress2.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2, instance); + } + { + ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress2, instance); + } + } + instance.state = workInProgress2.memoizedState; + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps); + instance.state = workInProgress2.memoizedState; + } + if (typeof ctor.getDerivedStateFromProps !== "function" && typeof instance.getSnapshotBeforeUpdate !== "function" && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + callComponentWillMount(workInProgress2, instance); + processUpdateQueue(workInProgress2, newProps, instance, renderLanes2); + instance.state = workInProgress2.memoizedState; + } + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress2.flags |= fiberFlags; + } + } + function resumeMountClassInstance(workInProgress2, ctor, newProps, renderLanes2) { + var instance = workInProgress2.stateNode; + var oldProps = workInProgress2.memoizedProps; + instance.props = oldProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = readContext(contextType); + } else { + var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress2, ctor, true); + nextContext = getMaskedContext(workInProgress2, nextLegacyUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (oldProps !== newProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress2.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress2, newProps, instance, renderLanes2); + newState = workInProgress2.memoizedState; + if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) { + if (typeof instance.componentDidMount === "function") { + var fiberFlags = Update; + workInProgress2.flags |= fiberFlags; + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress2.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext); + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === "function" || typeof instance.componentWillMount === "function")) { + if (typeof instance.componentWillMount === "function") { + instance.componentWillMount(); + } + if (typeof instance.UNSAFE_componentWillMount === "function") { + instance.UNSAFE_componentWillMount(); + } + } + if (typeof instance.componentDidMount === "function") { + var _fiberFlags = Update; + workInProgress2.flags |= _fiberFlags; + } + } else { + if (typeof instance.componentDidMount === "function") { + var _fiberFlags2 = Update; + workInProgress2.flags |= _fiberFlags2; + } + workInProgress2.memoizedProps = newProps; + workInProgress2.memoizedState = newState; + } + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + function updateClassInstance(current2, workInProgress2, ctor, newProps, renderLanes2) { + var instance = workInProgress2.stateNode; + cloneUpdateQueue(current2, workInProgress2); + var unresolvedOldProps = workInProgress2.memoizedProps; + var oldProps = workInProgress2.type === workInProgress2.elementType ? unresolvedOldProps : resolveDefaultProps(workInProgress2.type, unresolvedOldProps); + instance.props = oldProps; + var unresolvedNewProps = workInProgress2.pendingProps; + var oldContext = instance.context; + var contextType = ctor.contextType; + var nextContext = emptyContextObject; + if (typeof contextType === "object" && contextType !== null) { + nextContext = readContext(contextType); + } else { + var nextUnmaskedContext = getUnmaskedContext(workInProgress2, ctor, true); + nextContext = getMaskedContext(workInProgress2, nextUnmaskedContext); + } + var getDerivedStateFromProps = ctor.getDerivedStateFromProps; + var hasNewLifecycles = typeof getDerivedStateFromProps === "function" || typeof instance.getSnapshotBeforeUpdate === "function"; + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === "function" || typeof instance.componentWillReceiveProps === "function")) { + if (unresolvedOldProps !== unresolvedNewProps || oldContext !== nextContext) { + callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext); + } + } + resetHasForceUpdateBeforeProcessing(); + var oldState = workInProgress2.memoizedState; + var newState = instance.state = oldState; + processUpdateQueue(workInProgress2, newProps, instance, renderLanes2); + newState = workInProgress2.memoizedState; + if (unresolvedOldProps === unresolvedNewProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing() && !enableLazyContextPropagation) { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) { + workInProgress2.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) { + workInProgress2.flags |= Snapshot; + } + } + return false; + } + if (typeof getDerivedStateFromProps === "function") { + applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, newProps); + newState = workInProgress2.memoizedState; + } + var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) || // TODO: In some cases, we'll end up checking if context has changed twice, + // both before and after `shouldComponentUpdate` has been called. Not ideal, + // but I'm loath to refactor this function. This only happens for memoized + // components so it's not that common. + enableLazyContextPropagation; + if (shouldUpdate) { + if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === "function" || typeof instance.componentWillUpdate === "function")) { + if (typeof instance.componentWillUpdate === "function") { + instance.componentWillUpdate(newProps, newState, nextContext); + } + if (typeof instance.UNSAFE_componentWillUpdate === "function") { + instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext); + } + } + if (typeof instance.componentDidUpdate === "function") { + workInProgress2.flags |= Update; + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + workInProgress2.flags |= Snapshot; + } + } else { + if (typeof instance.componentDidUpdate === "function") { + if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) { + workInProgress2.flags |= Update; + } + } + if (typeof instance.getSnapshotBeforeUpdate === "function") { + if (unresolvedOldProps !== current2.memoizedProps || oldState !== current2.memoizedState) { + workInProgress2.flags |= Snapshot; + } + } + workInProgress2.memoizedProps = newProps; + workInProgress2.memoizedState = newState; + } + instance.props = newProps; + instance.state = newState; + instance.context = nextContext; + return shouldUpdate; + } + var didWarnAboutMaps; + var didWarnAboutGenerators; + var didWarnAboutStringRefs; + var ownerHasKeyUseWarning; + var ownerHasFunctionTypeWarning; + var warnForMissingKey = function(child, returnFiber) { + }; + { + didWarnAboutMaps = false; + didWarnAboutGenerators = false; + didWarnAboutStringRefs = {}; + ownerHasKeyUseWarning = {}; + ownerHasFunctionTypeWarning = {}; + warnForMissingKey = function(child, returnFiber) { + if (child === null || typeof child !== "object") { + return; + } + if (!child._store || child._store.validated || child.key != null) { + return; + } + if (typeof child._store !== "object") { + throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."); + } + child._store.validated = true; + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasKeyUseWarning[componentName]) { + return; + } + ownerHasKeyUseWarning[componentName] = true; + error('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'); + }; + } + function coerceRef(returnFiber, current2, element) { + var mixedRef = element.ref; + if (mixedRef !== null && typeof mixedRef !== "function" && typeof mixedRef !== "object") { + { + if ((returnFiber.mode & StrictLegacyMode || warnAboutStringRefs) && // We warn in ReactElement.js if owner and self are equal for string refs + // because these cannot be automatically converted to an arrow function + // using a codemod. Therefore, we don't have to warn about string refs again. + !(element._owner && element._self && element._owner.stateNode !== element._self)) { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (!didWarnAboutStringRefs[componentName]) { + { + error('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', mixedRef); + } + didWarnAboutStringRefs[componentName] = true; + } + } + } + if (element._owner) { + var owner = element._owner; + var inst; + if (owner) { + var ownerFiber = owner; + if (ownerFiber.tag !== ClassComponent) { + throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref"); + } + inst = ownerFiber.stateNode; + } + if (!inst) { + throw new Error("Missing owner for string ref " + mixedRef + ". This error is likely caused by a bug in React. Please file an issue."); + } + var resolvedInst = inst; + { + checkPropStringCoercion(mixedRef, "ref"); + } + var stringRef = "" + mixedRef; + if (current2 !== null && current2.ref !== null && typeof current2.ref === "function" && current2.ref._stringRef === stringRef) { + return current2.ref; + } + var ref = function(value) { + var refs = resolvedInst.refs; + if (refs === emptyRefsObject) { + refs = resolvedInst.refs = {}; + } + if (value === null) { + delete refs[stringRef]; + } else { + refs[stringRef] = value; + } + }; + ref._stringRef = stringRef; + return ref; + } else { + if (typeof mixedRef !== "string") { + throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null."); + } + if (!element._owner) { + throw new Error("Element ref was specified as a string (" + mixedRef + ") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information."); + } + } + } + return mixedRef; + } + function throwOnInvalidObjectType(returnFiber, newChild) { + var childString = Object.prototype.toString.call(newChild); + throw new Error("Objects are not valid as a React child (found: " + (childString === "[object Object]" ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : childString) + "). If you meant to render a collection of children, use an array instead."); + } + function warnOnFunctionType(returnFiber) { + { + var componentName = getComponentNameFromFiber(returnFiber) || "Component"; + if (ownerHasFunctionTypeWarning[componentName]) { + return; + } + ownerHasFunctionTypeWarning[componentName] = true; + error("Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it."); + } + } + function resolveLazy(lazyType) { + var payload = lazyType._payload; + var init = lazyType._init; + return init(payload); + } + function ChildReconciler(shouldTrackSideEffects) { + function deleteChild(returnFiber, childToDelete) { + if (!shouldTrackSideEffects) { + return; + } + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [childToDelete]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(childToDelete); + } + } + function deleteRemainingChildren(returnFiber, currentFirstChild) { + if (!shouldTrackSideEffects) { + return null; + } + var childToDelete = currentFirstChild; + while (childToDelete !== null) { + deleteChild(returnFiber, childToDelete); + childToDelete = childToDelete.sibling; + } + return null; + } + function mapRemainingChildren(returnFiber, currentFirstChild) { + var existingChildren = /* @__PURE__ */ new Map(); + var existingChild = currentFirstChild; + while (existingChild !== null) { + if (existingChild.key !== null) { + existingChildren.set(existingChild.key, existingChild); + } else { + existingChildren.set(existingChild.index, existingChild); + } + existingChild = existingChild.sibling; + } + return existingChildren; + } + function useFiber(fiber, pendingProps) { + var clone = createWorkInProgress(fiber, pendingProps); + clone.index = 0; + clone.sibling = null; + return clone; + } + function placeChild(newFiber, lastPlacedIndex, newIndex) { + newFiber.index = newIndex; + if (!shouldTrackSideEffects) { + newFiber.flags |= Forked; + return lastPlacedIndex; + } + var current2 = newFiber.alternate; + if (current2 !== null) { + var oldIndex = current2.index; + if (oldIndex < lastPlacedIndex) { + newFiber.flags |= Placement; + return lastPlacedIndex; + } else { + return oldIndex; + } + } else { + newFiber.flags |= Placement; + return lastPlacedIndex; + } + } + function placeSingleChild(newFiber) { + if (shouldTrackSideEffects && newFiber.alternate === null) { + newFiber.flags |= Placement; + } + return newFiber; + } + function updateTextNode(returnFiber, current2, textContent, lanes) { + if (current2 === null || current2.tag !== HostText) { + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current2, textContent); + existing.return = returnFiber; + return existing; + } + } + function updateElement(returnFiber, current2, element, lanes) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + return updateFragment2(returnFiber, current2, element.props.children, lanes, element.key); + } + if (current2 !== null) { + if (current2.elementType === elementType || // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(current2, element) || // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === current2.type) { + var existing = useFiber(current2, element.props); + existing.ref = coerceRef(returnFiber, current2, element); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } + var created = createFiberFromElement(element, returnFiber.mode, lanes); + created.ref = coerceRef(returnFiber, current2, element); + created.return = returnFiber; + return created; + } + function updatePortal(returnFiber, current2, portal, lanes) { + if (current2 === null || current2.tag !== HostPortal || current2.stateNode.containerInfo !== portal.containerInfo || current2.stateNode.implementation !== portal.implementation) { + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current2, portal.children || []); + existing.return = returnFiber; + return existing; + } + } + function updateFragment2(returnFiber, current2, fragment, lanes, key) { + if (current2 === null || current2.tag !== Fragment) { + var created = createFiberFromFragment(fragment, returnFiber.mode, lanes, key); + created.return = returnFiber; + return created; + } else { + var existing = useFiber(current2, fragment); + existing.return = returnFiber; + return existing; + } + } + function createChild(returnFiber, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var created = createFiberFromText("" + newChild, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: { + var _created = createFiberFromElement(newChild, returnFiber.mode, lanes); + _created.ref = coerceRef(returnFiber, null, newChild); + _created.return = returnFiber; + return _created; + } + case REACT_PORTAL_TYPE: { + var _created2 = createFiberFromPortal(newChild, returnFiber.mode, lanes); + _created2.return = returnFiber; + return _created2; + } + case REACT_LAZY_TYPE: { + var payload = newChild._payload; + var init = newChild._init; + return createChild(returnFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _created3 = createFiberFromFragment(newChild, returnFiber.mode, lanes, null); + _created3.return = returnFiber; + return _created3; + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateSlot(returnFiber, oldFiber, newChild, lanes) { + var key = oldFiber !== null ? oldFiber.key : null; + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + if (key !== null) { + return null; + } + return updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: { + if (newChild.key === key) { + return updateElement(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_PORTAL_TYPE: { + if (newChild.key === key) { + return updatePortal(returnFiber, oldFiber, newChild, lanes); + } else { + return null; + } + } + case REACT_LAZY_TYPE: { + var payload = newChild._payload; + var init = newChild._init; + return updateSlot(returnFiber, oldFiber, init(payload), lanes); + } + } + if (isArray(newChild) || getIteratorFn(newChild)) { + if (key !== null) { + return null; + } + return updateFragment2(returnFiber, oldFiber, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) { + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + var matchedFiber = existingChildren.get(newIdx) || null; + return updateTextNode(returnFiber, matchedFiber, "" + newChild, lanes); + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: { + var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updateElement(returnFiber, _matchedFiber, newChild, lanes); + } + case REACT_PORTAL_TYPE: { + var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null; + return updatePortal(returnFiber, _matchedFiber2, newChild, lanes); + } + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + return updateFromMap(existingChildren, returnFiber, newIdx, init(payload), lanes); + } + if (isArray(newChild) || getIteratorFn(newChild)) { + var _matchedFiber3 = existingChildren.get(newIdx) || null; + return updateFragment2(returnFiber, _matchedFiber3, newChild, lanes, null); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return null; + } + function warnOnInvalidKey(child, knownKeys, returnFiber) { + { + if (typeof child !== "object" || child === null) { + return knownKeys; + } + switch (child.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + warnForMissingKey(child, returnFiber); + var key = child.key; + if (typeof key !== "string") { + break; + } + if (knownKeys === null) { + knownKeys = /* @__PURE__ */ new Set(); + knownKeys.add(key); + break; + } + if (!knownKeys.has(key)) { + knownKeys.add(key); + break; + } + error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.", key); + break; + case REACT_LAZY_TYPE: + var payload = child._payload; + var init = child._init; + warnOnInvalidKey(init(payload), knownKeys, returnFiber); + break; + } + } + return knownKeys; + } + function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) { + { + var knownKeys = null; + for (var i = 0; i < newChildren.length; i++) { + var child = newChildren[i]; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (newIdx === newChildren.length) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber = createChild(returnFiber, newChildren[newIdx], lanes); + if (_newFiber === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber; + } else { + previousNewFiber.sibling = _newFiber; + } + previousNewFiber = _newFiber; + } + return resultingFirstChild; + } + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + for (; newIdx < newChildren.length; newIdx++) { + var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], lanes); + if (_newFiber2 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber2.alternate !== null) { + existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key); + } + } + lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber2; + } else { + previousNewFiber.sibling = _newFiber2; + } + previousNewFiber = _newFiber2; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function(child2) { + return deleteChild(returnFiber, child2); + }); + } + return resultingFirstChild; + } + function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, lanes) { + var iteratorFn = getIteratorFn(newChildrenIterable); + if (typeof iteratorFn !== "function") { + throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."); + } + { + if (typeof Symbol === "function" && // $FlowFixMe Flow doesn't know about toStringTag + newChildrenIterable[Symbol.toStringTag] === "Generator") { + if (!didWarnAboutGenerators) { + error("Using Generators 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. Keep in mind you might need to polyfill these features for older browsers."); + } + didWarnAboutGenerators = true; + } + if (newChildrenIterable.entries === iteratorFn) { + if (!didWarnAboutMaps) { + error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + var _newChildren = iteratorFn.call(newChildrenIterable); + if (_newChildren) { + var knownKeys = null; + var _step = _newChildren.next(); + for (; !_step.done; _step = _newChildren.next()) { + var child = _step.value; + knownKeys = warnOnInvalidKey(child, knownKeys, returnFiber); + } + } + } + var newChildren = iteratorFn.call(newChildrenIterable); + if (newChildren == null) { + throw new Error("An iterable object provided no iterator."); + } + var resultingFirstChild = null; + var previousNewFiber = null; + var oldFiber = currentFirstChild; + var lastPlacedIndex = 0; + var newIdx = 0; + var nextOldFiber = null; + var step = newChildren.next(); + for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) { + if (oldFiber.index > newIdx) { + nextOldFiber = oldFiber; + oldFiber = null; + } else { + nextOldFiber = oldFiber.sibling; + } + var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes); + if (newFiber === null) { + if (oldFiber === null) { + oldFiber = nextOldFiber; + } + break; + } + if (shouldTrackSideEffects) { + if (oldFiber && newFiber.alternate === null) { + deleteChild(returnFiber, oldFiber); + } + } + lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = newFiber; + } else { + previousNewFiber.sibling = newFiber; + } + previousNewFiber = newFiber; + oldFiber = nextOldFiber; + } + if (step.done) { + deleteRemainingChildren(returnFiber, oldFiber); + return resultingFirstChild; + } + if (oldFiber === null) { + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber3 = createChild(returnFiber, step.value, lanes); + if (_newFiber3 === null) { + continue; + } + lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber3; + } else { + previousNewFiber.sibling = _newFiber3; + } + previousNewFiber = _newFiber3; + } + return resultingFirstChild; + } + var existingChildren = mapRemainingChildren(returnFiber, oldFiber); + for (; !step.done; newIdx++, step = newChildren.next()) { + var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, lanes); + if (_newFiber4 !== null) { + if (shouldTrackSideEffects) { + if (_newFiber4.alternate !== null) { + existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key); + } + } + lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx); + if (previousNewFiber === null) { + resultingFirstChild = _newFiber4; + } else { + previousNewFiber.sibling = _newFiber4; + } + previousNewFiber = _newFiber4; + } + } + if (shouldTrackSideEffects) { + existingChildren.forEach(function(child2) { + return deleteChild(returnFiber, child2); + }); + } + return resultingFirstChild; + } + function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, lanes) { + if (currentFirstChild !== null && currentFirstChild.tag === HostText) { + deleteRemainingChildren(returnFiber, currentFirstChild.sibling); + var existing = useFiber(currentFirstChild, textContent); + existing.return = returnFiber; + return existing; + } + deleteRemainingChildren(returnFiber, currentFirstChild); + var created = createFiberFromText(textContent, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + function reconcileSingleElement(returnFiber, currentFirstChild, element, lanes) { + var key = element.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + var elementType = element.type; + if (elementType === REACT_FRAGMENT_TYPE) { + if (child.tag === Fragment) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, element.props.children); + existing.return = returnFiber; + { + existing._debugSource = element._source; + existing._debugOwner = element._owner; + } + return existing; + } + } else { + if (child.elementType === elementType || // Keep this check inline so it only runs on the false path: + isCompatibleFamilyForHotReloading(child, element) || // Lazy types should reconcile their resolved type. + // We need to do this after the Hot Reloading check above, + // because hot reloading has different semantics than prod because + // it doesn't resuspend. So we can't let the call below suspend. + typeof elementType === "object" && elementType !== null && elementType.$$typeof === REACT_LAZY_TYPE && resolveLazy(elementType) === child.type) { + deleteRemainingChildren(returnFiber, child.sibling); + var _existing = useFiber(child, element.props); + _existing.ref = coerceRef(returnFiber, child, element); + _existing.return = returnFiber; + { + _existing._debugSource = element._source; + _existing._debugOwner = element._owner; + } + return _existing; + } + } + deleteRemainingChildren(returnFiber, child); + break; + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + if (element.type === REACT_FRAGMENT_TYPE) { + var created = createFiberFromFragment(element.props.children, returnFiber.mode, lanes, element.key); + created.return = returnFiber; + return created; + } else { + var _created4 = createFiberFromElement(element, returnFiber.mode, lanes); + _created4.ref = coerceRef(returnFiber, currentFirstChild, element); + _created4.return = returnFiber; + return _created4; + } + } + function reconcileSinglePortal(returnFiber, currentFirstChild, portal, lanes) { + var key = portal.key; + var child = currentFirstChild; + while (child !== null) { + if (child.key === key) { + if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { + deleteRemainingChildren(returnFiber, child.sibling); + var existing = useFiber(child, portal.children || []); + existing.return = returnFiber; + return existing; + } else { + deleteRemainingChildren(returnFiber, child); + break; + } + } else { + deleteChild(returnFiber, child); + } + child = child.sibling; + } + var created = createFiberFromPortal(portal, returnFiber.mode, lanes); + created.return = returnFiber; + return created; + } + function reconcileChildFibers2(returnFiber, currentFirstChild, newChild, lanes) { + var isUnkeyedTopLevelFragment = typeof newChild === "object" && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null; + if (isUnkeyedTopLevelFragment) { + newChild = newChild.props.children; + } + if (typeof newChild === "object" && newChild !== null) { + switch (newChild.$$typeof) { + case REACT_ELEMENT_TYPE: + return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_PORTAL_TYPE: + return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes)); + case REACT_LAZY_TYPE: + var payload = newChild._payload; + var init = newChild._init; + return reconcileChildFibers2(returnFiber, currentFirstChild, init(payload), lanes); + } + if (isArray(newChild)) { + return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes); + } + if (getIteratorFn(newChild)) { + return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, lanes); + } + throwOnInvalidObjectType(returnFiber, newChild); + } + if (typeof newChild === "string" && newChild !== "" || typeof newChild === "number") { + return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, lanes)); + } + { + if (typeof newChild === "function") { + warnOnFunctionType(returnFiber); + } + } + return deleteRemainingChildren(returnFiber, currentFirstChild); + } + return reconcileChildFibers2; + } + var reconcileChildFibers = ChildReconciler(true); + var mountChildFibers = ChildReconciler(false); + function cloneChildFibers(current2, workInProgress2) { + if (current2 !== null && workInProgress2.child !== current2.child) { + throw new Error("Resuming work not yet implemented."); + } + if (workInProgress2.child === null) { + return; + } + var currentChild = workInProgress2.child; + var newChild = createWorkInProgress(currentChild, currentChild.pendingProps); + workInProgress2.child = newChild; + newChild.return = workInProgress2; + while (currentChild.sibling !== null) { + currentChild = currentChild.sibling; + newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps); + newChild.return = workInProgress2; + } + newChild.sibling = null; + } + function resetChildFibers(workInProgress2, lanes) { + var child = workInProgress2.child; + while (child !== null) { + resetWorkInProgress(child, lanes); + child = child.sibling; + } + } + var NO_CONTEXT$1 = {}; + var contextStackCursor$1 = createCursor(NO_CONTEXT$1); + var contextFiberStackCursor = createCursor(NO_CONTEXT$1); + var rootInstanceStackCursor = createCursor(NO_CONTEXT$1); + function requiredContext(c) { + if (c === NO_CONTEXT$1) { + throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."); + } + return c; + } + function getRootHostContainer() { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + return rootInstance; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, NO_CONTEXT$1, fiber); + var nextRootContext = getRootHostContext(); + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); + } + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + var context = requiredContext(contextStackCursor$1.current); + return context; + } + function pushHostContext(fiber) { + var rootInstance = requiredContext(rootInstanceStackCursor.current); + var context = requiredContext(contextStackCursor$1.current); + var nextContext = getChildHostContext(context, fiber.type); + if (context === nextContext) { + return; + } + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, nextContext, fiber); + } + function popHostContext(fiber) { + if (contextFiberStackCursor.current !== fiber) { + return; + } + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + } + var DefaultSuspenseContext = 0; + var SubtreeSuspenseContextMask = 1; + var InvisibleParentSuspenseContext = 1; + var ForceSuspenseFallback = 2; + var suspenseStackCursor = createCursor(DefaultSuspenseContext); + function hasSuspenseContext(parentContext, flag) { + return (parentContext & flag) !== 0; + } + function setDefaultShallowSuspenseContext(parentContext) { + return parentContext & SubtreeSuspenseContextMask; + } + function setShallowSuspenseContext(parentContext, shallowContext) { + return parentContext & SubtreeSuspenseContextMask | shallowContext; + } + function addSubtreeSuspenseContext(parentContext, subtreeContext) { + return parentContext | subtreeContext; + } + function pushSuspenseContext(fiber, newContext) { + push(suspenseStackCursor, newContext, fiber); + } + function popSuspenseContext(fiber) { + pop(suspenseStackCursor, fiber); + } + function shouldCaptureSuspense(workInProgress2, hasInvisibleParent) { + var nextState = workInProgress2.memoizedState; + if (nextState !== null) { + if (nextState.dehydrated !== null) { + return true; + } + return false; + } + var props = workInProgress2.memoizedProps; + { + return true; + } + } + function findFirstSuspended(row) { + var node = row; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + var dehydrated = state.dehydrated; + if (dehydrated === null || isSuspenseInstancePending() || isSuspenseInstanceFallback()) { + return node; + } + } + } else if (node.tag === SuspenseListComponent && // revealOrder undefined can't be trusted because it don't + // keep track of whether it suspended or not. + node.memoizedProps.revealOrder !== void 0) { + var didSuspend = (node.flags & DidCapture) !== NoFlags; + if (didSuspend) { + return node; + } + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === row) { + return null; + } + while (node.sibling === null) { + if (node.return === null || node.return === row) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return null; + } + var NoFlags$1 = ( + /* */ + 0 + ); + var HasEffect = ( + /* */ + 1 + ); + var Insertion = ( + /* */ + 2 + ); + var Layout = ( + /* */ + 4 + ); + var Passive$1 = ( + /* */ + 8 + ); + var workInProgressSources = []; + function resetWorkInProgressVersions() { + for (var i = 0; i < workInProgressSources.length; i++) { + var mutableSource = workInProgressSources[i]; + { + mutableSource._workInProgressVersionSecondary = null; + } + } + workInProgressSources.length = 0; + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig; + var didWarnAboutMismatchedHooksForComponent; + var didWarnUncachedGetSnapshot; + { + didWarnAboutMismatchedHooksForComponent = /* @__PURE__ */ new Set(); + } + var renderLanes = NoLanes; + var currentlyRenderingFiber$1 = null; + var currentHook = null; + var workInProgressHook = null; + var didScheduleRenderPhaseUpdate = false; + var didScheduleRenderPhaseUpdateDuringThisPass = false; + var globalClientIdCounter = 0; + var RE_RENDER_LIMIT = 25; + var currentHookNameInDev = null; + var hookTypesDev = null; + var hookTypesUpdateIndexDev = -1; + var ignorePreviousDependencies = false; + function mountHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev === null) { + hookTypesDev = [hookName]; + } else { + hookTypesDev.push(hookName); + } + } + } + function updateHookTypesDev() { + { + var hookName = currentHookNameInDev; + if (hookTypesDev !== null) { + hookTypesUpdateIndexDev++; + if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) { + warnOnHookMismatchInDev(hookName); + } + } + } + } + function checkDepsAreArrayDev(deps) { + { + if (deps !== void 0 && deps !== null && !isArray(deps)) { + error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.", currentHookNameInDev, typeof deps); + } + } + } + function warnOnHookMismatchInDev(currentHookName) { + { + var componentName = getComponentNameFromFiber(currentlyRenderingFiber$1); + if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) { + didWarnAboutMismatchedHooksForComponent.add(componentName); + if (hookTypesDev !== null) { + var table = ""; + var secondColumnStart = 30; + for (var i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i]; + var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName; + var row = i + 1 + ". " + oldHookName; + while (row.length < secondColumnStart) { + row += " "; + } + row += newHookName + "\n"; + table += row; + } + error("React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", componentName, table); + } + } + } + } + function throwInvalidHookError() { + throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + function areHookInputsEqual(nextDeps, prevDeps) { + { + if (ignorePreviousDependencies) { + return false; + } + } + if (prevDeps === null) { + { + error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev); + } + return false; + } + { + if (nextDeps.length !== prevDeps.length) { + error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]"); + } + } + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) { + if (objectIs(nextDeps[i], prevDeps[i])) { + continue; + } + return false; + } + return true; + } + function renderWithHooks(current2, workInProgress2, Component, props, secondArg, nextRenderLanes) { + renderLanes = nextRenderLanes; + currentlyRenderingFiber$1 = workInProgress2; + { + hookTypesDev = current2 !== null ? current2._debugHookTypes : null; + hookTypesUpdateIndexDev = -1; + ignorePreviousDependencies = current2 !== null && current2.type !== workInProgress2.type; + } + workInProgress2.memoizedState = null; + workInProgress2.updateQueue = null; + workInProgress2.lanes = NoLanes; + { + if (current2 !== null && current2.memoizedState !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV; + } else if (hookTypesDev !== null) { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV; + } else { + ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV; + } + } + var children = Component(props, secondArg); + if (didScheduleRenderPhaseUpdateDuringThisPass) { + var numberOfReRenders = 0; + do { + didScheduleRenderPhaseUpdateDuringThisPass = false; + if (numberOfReRenders >= RE_RENDER_LIMIT) { + throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + } + numberOfReRenders += 1; + { + ignorePreviousDependencies = false; + } + currentHook = null; + workInProgressHook = null; + workInProgress2.updateQueue = null; + { + hookTypesUpdateIndexDev = -1; + } + ReactCurrentDispatcher$1.current = HooksDispatcherOnRerenderInDEV; + children = Component(props, secondArg); + } while (didScheduleRenderPhaseUpdateDuringThisPass); + } + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + { + workInProgress2._debugHookTypes = hookTypesDev; + } + var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null; + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + currentHookNameInDev = null; + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + if (current2 !== null && (current2.flags & StaticMask) !== (workInProgress2.flags & StaticMask) && // Disable this warning in legacy mode, because legacy Suspense is weird + // and creates false positives. To make this work in legacy mode, we'd + // need to mark fibers that commit in an incomplete state, somehow. For + // now I'll disable the warning that most of the bugs that would trigger + // it are either exclusive to concurrent mode or exist in both. + (current2.mode & ConcurrentMode) !== NoMode) { + error("Internal React error: Expected static flag was missing. Please notify the React team."); + } + } + didScheduleRenderPhaseUpdate = false; + if (didRenderTooFewHooks) { + throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement."); + } + return children; + } + function bailoutHooks(current2, workInProgress2, lanes) { + workInProgress2.updateQueue = current2.updateQueue; + { + workInProgress2.flags &= ~(Passive | Update); + } + current2.lanes = removeLanes(current2.lanes, lanes); + } + function resetHooksAfterThrow() { + ReactCurrentDispatcher$1.current = ContextOnlyDispatcher; + if (didScheduleRenderPhaseUpdate) { + var hook = currentlyRenderingFiber$1.memoizedState; + while (hook !== null) { + var queue = hook.queue; + if (queue !== null) { + queue.pending = null; + } + hook = hook.next; + } + didScheduleRenderPhaseUpdate = false; + } + renderLanes = NoLanes; + currentlyRenderingFiber$1 = null; + currentHook = null; + workInProgressHook = null; + { + hookTypesDev = null; + hookTypesUpdateIndexDev = -1; + currentHookNameInDev = null; + isUpdatingOpaqueValueInRenderPhase = false; + } + didScheduleRenderPhaseUpdateDuringThisPass = false; + } + function mountWorkInProgressHook() { + var hook = { + memoizedState: null, + baseState: null, + baseQueue: null, + queue: null, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook; + } else { + workInProgressHook = workInProgressHook.next = hook; + } + return workInProgressHook; + } + function updateWorkInProgressHook() { + var nextCurrentHook; + if (currentHook === null) { + var current2 = currentlyRenderingFiber$1.alternate; + if (current2 !== null) { + nextCurrentHook = current2.memoizedState; + } else { + nextCurrentHook = null; + } + } else { + nextCurrentHook = currentHook.next; + } + var nextWorkInProgressHook; + if (workInProgressHook === null) { + nextWorkInProgressHook = currentlyRenderingFiber$1.memoizedState; + } else { + nextWorkInProgressHook = workInProgressHook.next; + } + if (nextWorkInProgressHook !== null) { + workInProgressHook = nextWorkInProgressHook; + nextWorkInProgressHook = workInProgressHook.next; + currentHook = nextCurrentHook; + } else { + if (nextCurrentHook === null) { + throw new Error("Rendered more hooks than during the previous render."); + } + currentHook = nextCurrentHook; + var newHook = { + memoizedState: currentHook.memoizedState, + baseState: currentHook.baseState, + baseQueue: currentHook.baseQueue, + queue: currentHook.queue, + next: null + }; + if (workInProgressHook === null) { + currentlyRenderingFiber$1.memoizedState = workInProgressHook = newHook; + } else { + workInProgressHook = workInProgressHook.next = newHook; + } + } + return workInProgressHook; + } + function createFunctionComponentUpdateQueue() { + return { + lastEffect: null, + stores: null + }; + } + function basicStateReducer(state, action) { + return typeof action === "function" ? action(state) : action; + } + function mountReducer(reducer, initialArg, init) { + var hook = mountWorkInProgressHook(); + var initialState; + if (init !== void 0) { + initialState = init(initialArg); + } else { + initialState = initialArg; + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: reducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + var current2 = currentHook; + var baseQueue = current2.baseQueue; + var pendingQueue = queue.pending; + if (pendingQueue !== null) { + if (baseQueue !== null) { + var baseFirst = baseQueue.next; + var pendingFirst = pendingQueue.next; + baseQueue.next = pendingFirst; + pendingQueue.next = baseFirst; + } + { + if (current2.baseQueue !== baseQueue) { + error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."); + } + } + current2.baseQueue = baseQueue = pendingQueue; + queue.pending = null; + } + if (baseQueue !== null) { + var first = baseQueue.next; + var newState = current2.baseState; + var newBaseState = null; + var newBaseQueueFirst = null; + var newBaseQueueLast = null; + var update = first; + do { + var updateLane = update.lane; + if (!isSubsetOfLanes(renderLanes, updateLane)) { + var clone = { + lane: updateLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + if (newBaseQueueLast === null) { + newBaseQueueFirst = newBaseQueueLast = clone; + newBaseState = newState; + } else { + newBaseQueueLast = newBaseQueueLast.next = clone; + } + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); + markSkippedUpdateLanes(updateLane); + } else { + if (newBaseQueueLast !== null) { + var _clone = { + // This update is going to be committed so we never want uncommit + // it. Using NoLane works because 0 is a subset of all bitmasks, so + // this will never be skipped by the check above. + lane: NoLane, + action: update.action, + hasEagerState: update.hasEagerState, + eagerState: update.eagerState, + next: null + }; + newBaseQueueLast = newBaseQueueLast.next = _clone; + } + if (update.hasEagerState) { + newState = update.eagerState; + } else { + var action = update.action; + newState = reducer(newState, action); + } + } + update = update.next; + } while (update !== null && update !== first); + if (newBaseQueueLast === null) { + newBaseState = newState; + } else { + newBaseQueueLast.next = newBaseQueueFirst; + } + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + hook.baseState = newBaseState; + hook.baseQueue = newBaseQueueLast; + queue.lastRenderedState = newState; + } + var lastInterleaved = queue.interleaved; + if (lastInterleaved !== null) { + var interleaved = lastInterleaved; + do { + var interleavedLane = interleaved.lane; + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, interleavedLane); + markSkippedUpdateLanes(interleavedLane); + interleaved = interleaved.next; + } while (interleaved !== lastInterleaved); + } else if (baseQueue === null) { + queue.lanes = NoLanes; + } + var dispatch = queue.dispatch; + return [hook.memoizedState, dispatch]; + } + function rerenderReducer(reducer, initialArg, init) { + var hook = updateWorkInProgressHook(); + var queue = hook.queue; + if (queue === null) { + throw new Error("Should have a queue. This is likely a bug in React. Please file an issue."); + } + queue.lastRenderedReducer = reducer; + var dispatch = queue.dispatch; + var lastRenderPhaseUpdate = queue.pending; + var newState = hook.memoizedState; + if (lastRenderPhaseUpdate !== null) { + queue.pending = null; + var firstRenderPhaseUpdate = lastRenderPhaseUpdate.next; + var update = firstRenderPhaseUpdate; + do { + var action = update.action; + newState = reducer(newState, action); + update = update.next; + } while (update !== firstRenderPhaseUpdate); + if (!objectIs(newState, hook.memoizedState)) { + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = newState; + if (hook.baseQueue === null) { + hook.baseState = newState; + } + queue.lastRenderedState = newState; + } + return [newState, dispatch]; + } + function mountMutableSource(source, getSnapshot, subscribe) { + { + return void 0; + } + } + function updateMutableSource(source, getSnapshot, subscribe) { + { + return void 0; + } + } + function mountSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = mountWorkInProgressHook(); + var nextSnapshot; + { + nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + hook.memoizedState = nextSnapshot; + var inst = { + value: nextSnapshot, + getSnapshot + }; + hook.queue = inst; + mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + return nextSnapshot; + } + function updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var fiber = currentlyRenderingFiber$1; + var hook = updateWorkInProgressHook(); + var nextSnapshot = getSnapshot(); + { + if (!didWarnUncachedGetSnapshot) { + var cachedSnapshot = getSnapshot(); + if (!objectIs(nextSnapshot, cachedSnapshot)) { + error("The result of getSnapshot should be cached to avoid an infinite loop"); + didWarnUncachedGetSnapshot = true; + } + } + } + var prevSnapshot = hook.memoizedState; + var snapshotChanged = !objectIs(prevSnapshot, nextSnapshot); + if (snapshotChanged) { + hook.memoizedState = nextSnapshot; + markWorkInProgressReceivedUpdate(); + } + var inst = hook.queue; + updateEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]); + if (inst.getSnapshot !== getSnapshot || snapshotChanged || // Check if the susbcribe function changed. We can save some memory by + // checking whether we scheduled a subscription effect above. + workInProgressHook !== null && workInProgressHook.memoizedState.tag & HasEffect) { + fiber.flags |= Passive; + pushEffect(HasEffect | Passive$1, updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot), void 0, null); + var root = getWorkInProgressRoot(); + if (root === null) { + throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue."); + } + if (!includesBlockingLane(root, renderLanes)) { + pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot); + } + } + return nextSnapshot; + } + function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) { + fiber.flags |= StoreConsistency; + var check = { + getSnapshot, + value: renderedSnapshot + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.stores = [check]; + } else { + var stores = componentUpdateQueue.stores; + if (stores === null) { + componentUpdateQueue.stores = [check]; + } else { + stores.push(check); + } + } + } + function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) { + inst.value = nextSnapshot; + inst.getSnapshot = getSnapshot; + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + } + function subscribeToStore(fiber, inst, subscribe) { + var handleStoreChange = function() { + if (checkIfSnapshotChanged(inst)) { + forceStoreRerender(fiber); + } + }; + return subscribe(handleStoreChange); + } + function checkIfSnapshotChanged(inst) { + var latestGetSnapshot = inst.getSnapshot; + var prevValue = inst.value; + try { + var nextValue = latestGetSnapshot(); + return !objectIs(prevValue, nextValue); + } catch (error2) { + return true; + } + } + function forceStoreRerender(fiber) { + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + function mountState(initialState) { + var hook = mountWorkInProgressHook(); + if (typeof initialState === "function") { + initialState = initialState(); + } + hook.memoizedState = hook.baseState = initialState; + var queue = { + pending: null, + interleaved: null, + lanes: NoLanes, + dispatch: null, + lastRenderedReducer: basicStateReducer, + lastRenderedState: initialState + }; + hook.queue = queue; + var dispatch = queue.dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue); + return [hook.memoizedState, dispatch]; + } + function updateState(initialState) { + return updateReducer(basicStateReducer); + } + function rerenderState(initialState) { + return rerenderReducer(basicStateReducer); + } + function pushEffect(tag, create2, destroy, deps) { + var effect = { + tag, + create: create2, + destroy, + deps, + // Circular + next: null + }; + var componentUpdateQueue = currentlyRenderingFiber$1.updateQueue; + if (componentUpdateQueue === null) { + componentUpdateQueue = createFunctionComponentUpdateQueue(); + currentlyRenderingFiber$1.updateQueue = componentUpdateQueue; + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var lastEffect = componentUpdateQueue.lastEffect; + if (lastEffect === null) { + componentUpdateQueue.lastEffect = effect.next = effect; + } else { + var firstEffect = lastEffect.next; + lastEffect.next = effect; + effect.next = firstEffect; + componentUpdateQueue.lastEffect = effect; + } + } + return effect; + } + function mountRef(initialValue) { + var hook = mountWorkInProgressHook(); + { + var _ref2 = { + current: initialValue + }; + hook.memoizedState = _ref2; + return _ref2; + } + } + function updateRef(initialValue) { + var hook = updateWorkInProgressHook(); + return hook.memoizedState; + } + function mountEffectImpl(fiberFlags, hookFlags, create2, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create2, void 0, nextDeps); + } + function updateEffectImpl(fiberFlags, hookFlags, create2, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + var destroy = void 0; + if (currentHook !== null) { + var prevEffect = currentHook.memoizedState; + destroy = prevEffect.destroy; + if (nextDeps !== null) { + var prevDeps = prevEffect.deps; + if (areHookInputsEqual(nextDeps, prevDeps)) { + hook.memoizedState = pushEffect(hookFlags, create2, destroy, nextDeps); + return; + } + } + } + currentlyRenderingFiber$1.flags |= fiberFlags; + hook.memoizedState = pushEffect(HasEffect | hookFlags, create2, destroy, nextDeps); + } + function mountEffect(create2, deps) { + { + return mountEffectImpl(Passive | PassiveStatic, Passive$1, create2, deps); + } + } + function updateEffect(create2, deps) { + return updateEffectImpl(Passive, Passive$1, create2, deps); + } + function mountInsertionEffect(create2, deps) { + return mountEffectImpl(Update, Insertion, create2, deps); + } + function updateInsertionEffect(create2, deps) { + return updateEffectImpl(Update, Insertion, create2, deps); + } + function mountLayoutEffect(create2, deps) { + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, create2, deps); + } + function updateLayoutEffect(create2, deps) { + return updateEffectImpl(Update, Layout, create2, deps); + } + function imperativeHandleEffect(create2, ref) { + if (typeof ref === "function") { + var refCallback = ref; + var _inst = create2(); + refCallback(_inst); + return function() { + refCallback(null); + }; + } else if (ref !== null && ref !== void 0) { + var refObject = ref; + { + if (!refObject.hasOwnProperty("current")) { + error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.", "an object with keys {" + Object.keys(refObject).join(", ") + "}"); + } + } + var _inst2 = create2(); + refObject.current = _inst2; + return function() { + refObject.current = null; + }; + } + } + function mountImperativeHandle(ref, create2, deps) { + { + if (typeof create2 !== "function") { + error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null"); + } + } + var effectDeps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null; + var fiberFlags = Update; + return mountEffectImpl(fiberFlags, Layout, imperativeHandleEffect.bind(null, create2, ref), effectDeps); + } + function updateImperativeHandle(ref, create2, deps) { + { + if (typeof create2 !== "function") { + error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", create2 !== null ? typeof create2 : "null"); + } + } + var effectDeps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null; + return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create2, ref), effectDeps); + } + function mountDebugValue(value, formatterFn) { + } + var updateDebugValue = mountDebugValue; + function mountCallback(callback, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function updateCallback(callback, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + hook.memoizedState = [callback, nextDeps]; + return callback; + } + function mountMemo(nextCreate, deps) { + var hook = mountWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function updateMemo(nextCreate, deps) { + var hook = updateWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + var prevState = hook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + var nextValue = nextCreate(); + hook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function mountDeferredValue(value) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = value; + return value; + } + function updateDeferredValue(value) { + var hook = updateWorkInProgressHook(); + var resolvedCurrentHook = currentHook; + var prevValue = resolvedCurrentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + function rerenderDeferredValue(value) { + var hook = updateWorkInProgressHook(); + if (currentHook === null) { + hook.memoizedState = value; + return value; + } else { + var prevValue = currentHook.memoizedState; + return updateDeferredValueImpl(hook, prevValue, value); + } + } + function updateDeferredValueImpl(hook, prevValue, value) { + var shouldDeferValue = !includesOnlyNonUrgentLanes(renderLanes); + if (shouldDeferValue) { + if (!objectIs(value, prevValue)) { + var deferredLane = claimNextTransitionLane(); + currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, deferredLane); + markSkippedUpdateLanes(deferredLane); + hook.baseState = true; + } + return prevValue; + } else { + if (hook.baseState) { + hook.baseState = false; + markWorkInProgressReceivedUpdate(); + } + hook.memoizedState = value; + return value; + } + } + function startTransition(setPending, callback, options) { + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(higherEventPriority(previousPriority, ContinuousEventPriority)); + setPending(true); + var prevTransition = ReactCurrentBatchConfig$1.transition; + ReactCurrentBatchConfig$1.transition = {}; + var currentTransition = ReactCurrentBatchConfig$1.transition; + { + ReactCurrentBatchConfig$1.transition._updatedFibers = /* @__PURE__ */ new Set(); + } + try { + setPending(false); + callback(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$1.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + function mountTransition() { + var _mountState = mountState(false), isPending = _mountState[0], setPending = _mountState[1]; + var start = startTransition.bind(null, setPending); + var hook = mountWorkInProgressHook(); + hook.memoizedState = start; + return [isPending, start]; + } + function updateTransition() { + var _updateState = updateState(), isPending = _updateState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + function rerenderTransition() { + var _rerenderState = rerenderState(), isPending = _rerenderState[0]; + var hook = updateWorkInProgressHook(); + var start = hook.memoizedState; + return [isPending, start]; + } + var isUpdatingOpaqueValueInRenderPhase = false; + function getIsUpdatingOpaqueValueInRenderPhaseInDEV() { + { + return isUpdatingOpaqueValueInRenderPhase; + } + } + function mountId() { + var hook = mountWorkInProgressHook(); + var root = getWorkInProgressRoot(); + var identifierPrefix = root.identifierPrefix; + var id; + { + var globalClientId = globalClientIdCounter++; + id = ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; + } + hook.memoizedState = id; + return id; + } + function updateId() { + var hook = updateWorkInProgressHook(); + var id = hook.memoizedState; + return id; + } + function dispatchReducerAction(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane, + action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitionUpdate(root, queue, lane); + } + } + } + function dispatchSetState(fiber, queue, action) { + { + if (typeof arguments[3] === "function") { + error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."); + } + } + var lane = requestUpdateLane(fiber); + var update = { + lane, + action, + hasEagerState: false, + eagerState: null, + next: null + }; + if (isRenderPhaseUpdate(fiber)) { + enqueueRenderPhaseUpdate(queue, update); + } else { + var alternate = fiber.alternate; + if (fiber.lanes === NoLanes && (alternate === null || alternate.lanes === NoLanes)) { + var lastRenderedReducer = queue.lastRenderedReducer; + if (lastRenderedReducer !== null) { + var prevDispatcher; + { + prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + } + try { + var currentState = queue.lastRenderedState; + var eagerState = lastRenderedReducer(currentState, action); + update.hasEagerState = true; + update.eagerState = eagerState; + if (objectIs(eagerState, currentState)) { + enqueueConcurrentHookUpdateAndEagerlyBailout(fiber, queue, update, lane); + return; + } + } catch (error2) { + } finally { + { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + } + } + } + var root = enqueueConcurrentHookUpdate(fiber, queue, update, lane); + if (root !== null) { + var eventTime = requestEventTime(); + scheduleUpdateOnFiber(root, fiber, lane, eventTime); + entangleTransitionUpdate(root, queue, lane); + } + } + } + function isRenderPhaseUpdate(fiber) { + var alternate = fiber.alternate; + return fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1; + } + function enqueueRenderPhaseUpdate(queue, update) { + didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true; + var pending = queue.pending; + if (pending === null) { + update.next = update; + } else { + update.next = pending.next; + pending.next = update; + } + queue.pending = update; + } + function entangleTransitionUpdate(root, queue, lane) { + if (isTransitionLane(lane)) { + var queueLanes = queue.lanes; + queueLanes = intersectLanes(queueLanes, root.pendingLanes); + var newQueueLanes = mergeLanes(queueLanes, lane); + queue.lanes = newQueueLanes; + markRootEntangled(root, newQueueLanes); + } + } + var ContextOnlyDispatcher = { + readContext, + useCallback: throwInvalidHookError, + useContext: throwInvalidHookError, + useEffect: throwInvalidHookError, + useImperativeHandle: throwInvalidHookError, + useInsertionEffect: throwInvalidHookError, + useLayoutEffect: throwInvalidHookError, + useMemo: throwInvalidHookError, + useReducer: throwInvalidHookError, + useRef: throwInvalidHookError, + useState: throwInvalidHookError, + useDebugValue: throwInvalidHookError, + useDeferredValue: throwInvalidHookError, + useTransition: throwInvalidHookError, + useMutableSource: throwInvalidHookError, + useSyncExternalStore: throwInvalidHookError, + useId: throwInvalidHookError, + unstable_isNewReconciler: enableNewReconciler + }; + var HooksDispatcherOnMountInDEV = null; + var HooksDispatcherOnMountWithHookTypesInDEV = null; + var HooksDispatcherOnUpdateInDEV = null; + var HooksDispatcherOnRerenderInDEV = null; + var InvalidNestedHooksDispatcherOnMountInDEV = null; + var InvalidNestedHooksDispatcherOnUpdateInDEV = null; + var InvalidNestedHooksDispatcherOnRerenderInDEV = null; + { + var warnInvalidContextAccess = function() { + error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + }; + var warnInvalidHookAccess = function() { + error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"); + }; + HooksDispatcherOnMountInDEV = { + readContext: function(context) { + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + mountHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + return mountLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + mountHookTypesDev(); + checkDepsAreArrayDev(deps); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnMountWithHookTypesInDEV = { + readContext: function(context) { + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return mountEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return mountImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return mountInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return mountLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return mountRef(initialValue); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnUpdateInDEV = { + readContext: function(context) { + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + HooksDispatcherOnRerenderInDEV = { + readContext: function(context) { + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + updateHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + updateHookTypesDev(); + return updateEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + updateHookTypesDev(); + return updateImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + updateHookTypesDev(); + return updateInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + updateHookTypesDev(); + return updateLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return updateMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + updateHookTypesDev(); + return updateRef(); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnMountInDEV = { + readContext: function(context) { + warnInvalidContextAccess(); + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountRef(initialValue); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV; + try { + return mountState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnUpdateInDEV = { + readContext: function(context) { + warnInvalidContextAccess(); + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + InvalidNestedHooksDispatcherOnRerenderInDEV = { + readContext: function(context) { + warnInvalidContextAccess(); + return readContext(context); + }, + useCallback: function(callback, deps) { + currentHookNameInDev = "useCallback"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateCallback(callback, deps); + }, + useContext: function(context) { + currentHookNameInDev = "useContext"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return readContext(context); + }, + useEffect: function(create2, deps) { + currentHookNameInDev = "useEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateEffect(create2, deps); + }, + useImperativeHandle: function(ref, create2, deps) { + currentHookNameInDev = "useImperativeHandle"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateImperativeHandle(ref, create2, deps); + }, + useInsertionEffect: function(create2, deps) { + currentHookNameInDev = "useInsertionEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateInsertionEffect(create2, deps); + }, + useLayoutEffect: function(create2, deps) { + currentHookNameInDev = "useLayoutEffect"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateLayoutEffect(create2, deps); + }, + useMemo: function(create2, deps) { + currentHookNameInDev = "useMemo"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return updateMemo(create2, deps); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useReducer: function(reducer, initialArg, init) { + currentHookNameInDev = "useReducer"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderReducer(reducer, initialArg, init); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useRef: function(initialValue) { + currentHookNameInDev = "useRef"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateRef(); + }, + useState: function(initialState) { + currentHookNameInDev = "useState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + var prevDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV; + try { + return rerenderState(initialState); + } finally { + ReactCurrentDispatcher$1.current = prevDispatcher; + } + }, + useDebugValue: function(value, formatterFn) { + currentHookNameInDev = "useDebugValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateDebugValue(); + }, + useDeferredValue: function(value) { + currentHookNameInDev = "useDeferredValue"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderDeferredValue(value); + }, + useTransition: function() { + currentHookNameInDev = "useTransition"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderTransition(); + }, + useMutableSource: function(source, getSnapshot, subscribe) { + currentHookNameInDev = "useMutableSource"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateMutableSource(); + }, + useSyncExternalStore: function(subscribe, getSnapshot, getServerSnapshot) { + currentHookNameInDev = "useSyncExternalStore"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateSyncExternalStore(subscribe, getSnapshot); + }, + useId: function() { + currentHookNameInDev = "useId"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateId(); + }, + unstable_isNewReconciler: enableNewReconciler + }; + } + var now$1 = Scheduler$1.unstable_now; + var commitTime = 0; + var layoutEffectStartTime = -1; + var profilerStartTime = -1; + var passiveEffectStartTime = -1; + var currentUpdateIsNested = false; + var nestedUpdateScheduled = false; + function isCurrentUpdateNested() { + return currentUpdateIsNested; + } + function markNestedUpdateScheduled() { + { + nestedUpdateScheduled = true; + } + } + function resetNestedUpdateFlag() { + { + currentUpdateIsNested = false; + nestedUpdateScheduled = false; + } + } + function syncNestedUpdateFlag() { + { + currentUpdateIsNested = nestedUpdateScheduled; + nestedUpdateScheduled = false; + } + } + function getCommitTime() { + return commitTime; + } + function recordCommitTime() { + commitTime = now$1(); + } + function startProfilerTimer(fiber) { + profilerStartTime = now$1(); + if (fiber.actualStartTime < 0) { + fiber.actualStartTime = now$1(); + } + } + function stopProfilerTimerIfRunning(fiber) { + profilerStartTime = -1; + } + function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) { + if (profilerStartTime >= 0) { + var elapsedTime = now$1() - profilerStartTime; + fiber.actualDuration += elapsedTime; + if (overrideBaseTime) { + fiber.selfBaseDuration = elapsedTime; + } + profilerStartTime = -1; + } + } + function recordLayoutEffectDuration(fiber) { + if (layoutEffectStartTime >= 0) { + var elapsedTime = now$1() - layoutEffectStartTime; + layoutEffectStartTime = -1; + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += elapsedTime; + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += elapsedTime; + return; + } + parentFiber = parentFiber.return; + } + } + } + function recordPassiveEffectDuration(fiber) { + if (passiveEffectStartTime >= 0) { + var elapsedTime = now$1() - passiveEffectStartTime; + passiveEffectStartTime = -1; + var parentFiber = fiber.return; + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + if (root !== null) { + root.passiveEffectDuration += elapsedTime; + } + return; + case Profiler: + var parentStateNode = parentFiber.stateNode; + if (parentStateNode !== null) { + parentStateNode.passiveEffectDuration += elapsedTime; + } + return; + } + parentFiber = parentFiber.return; + } + } + } + function startLayoutEffectTimer() { + layoutEffectStartTime = now$1(); + } + function startPassiveEffectTimer() { + passiveEffectStartTime = now$1(); + } + function transferActualDuration(fiber) { + var child = fiber.child; + while (child) { + fiber.actualDuration += child.actualDuration; + child = child.sibling; + } + } + function createCapturedValueAtFiber(value, source) { + return { + value, + source, + stack: getStackByFiberInDevAndProd(source), + digest: null + }; + } + function createCapturedValue(value, digest, stack) { + return { + value, + source: null, + stack: stack != null ? stack : null, + digest: digest != null ? digest : null + }; + } + function showErrorDialog(boundary, errorInfo) { + return true; + } + function logCapturedError(boundary, errorInfo) { + try { + var logError = showErrorDialog(boundary, errorInfo); + if (logError === false) { + return; + } + var error2 = errorInfo.value; + if (true) { + var source = errorInfo.source; + var stack = errorInfo.stack; + var componentStack = stack !== null ? stack : ""; + if (error2 != null && error2._suppressLogging) { + if (boundary.tag === ClassComponent) { + return; + } + console["error"](error2); + } + var componentName = source ? getComponentNameFromFiber(source) : null; + var componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:"; + var errorBoundaryMessage; + if (boundary.tag === HostRoot) { + errorBoundaryMessage = "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries."; + } else { + var errorBoundaryName = getComponentNameFromFiber(boundary) || "Anonymous"; + errorBoundaryMessage = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + errorBoundaryName + "."); + } + var combinedMessage = componentNameMessage + "\n" + componentStack + "\n\n" + ("" + errorBoundaryMessage); + console["error"](combinedMessage); + } else { + console["error"](error2); + } + } catch (e) { + setTimeout(function() { + throw e; + }); + } + } + var PossiblyWeakMap$1 = typeof WeakMap === "function" ? WeakMap : Map; + function createRootErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + update.tag = CaptureUpdate; + update.payload = { + element: null + }; + var error2 = errorInfo.value; + update.callback = function() { + onUncaughtError(error2); + logCapturedError(fiber, errorInfo); + }; + return update; + } + function createClassErrorUpdate(fiber, errorInfo, lane) { + var update = createUpdate(NoTimestamp, lane); + update.tag = CaptureUpdate; + var getDerivedStateFromError = fiber.type.getDerivedStateFromError; + if (typeof getDerivedStateFromError === "function") { + var error$1 = errorInfo.value; + update.payload = function() { + return getDerivedStateFromError(error$1); + }; + update.callback = function() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + }; + } + var inst = fiber.stateNode; + if (inst !== null && typeof inst.componentDidCatch === "function") { + update.callback = function callback() { + { + markFailedErrorBoundaryForHotReloading(fiber); + } + logCapturedError(fiber, errorInfo); + if (typeof getDerivedStateFromError !== "function") { + markLegacyErrorBoundaryAsFailed(this); + } + var error$12 = errorInfo.value; + var stack = errorInfo.stack; + this.componentDidCatch(error$12, { + componentStack: stack !== null ? stack : "" + }); + { + if (typeof getDerivedStateFromError !== "function") { + if (!includesSomeLane(fiber.lanes, SyncLane)) { + error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.", getComponentNameFromFiber(fiber) || "Unknown"); + } + } + } + }; + } + return update; + } + function attachPingListener(root, wakeable, lanes) { + var pingCache = root.pingCache; + var threadIDs; + if (pingCache === null) { + pingCache = root.pingCache = new PossiblyWeakMap$1(); + threadIDs = /* @__PURE__ */ new Set(); + pingCache.set(wakeable, threadIDs); + } else { + threadIDs = pingCache.get(wakeable); + if (threadIDs === void 0) { + threadIDs = /* @__PURE__ */ new Set(); + pingCache.set(wakeable, threadIDs); + } + } + if (!threadIDs.has(lanes)) { + threadIDs.add(lanes); + var ping = pingSuspendedRoot.bind(null, root, wakeable, lanes); + wakeable.then(ping, ping); + } + } + function attachRetryListener(suspenseBoundary, root, wakeable, lanes) { + var wakeables = suspenseBoundary.updateQueue; + if (wakeables === null) { + var updateQueue = /* @__PURE__ */ new Set(); + updateQueue.add(wakeable); + suspenseBoundary.updateQueue = updateQueue; + } else { + wakeables.add(wakeable); + } + } + function resetSuspendedComponent(sourceFiber, rootRenderLanes) { + var tag = sourceFiber.tag; + if ((sourceFiber.mode & ConcurrentMode) === NoMode && (tag === FunctionComponent || tag === ForwardRef || tag === SimpleMemoComponent)) { + var currentSource = sourceFiber.alternate; + if (currentSource) { + sourceFiber.updateQueue = currentSource.updateQueue; + sourceFiber.memoizedState = currentSource.memoizedState; + sourceFiber.lanes = currentSource.lanes; + } else { + sourceFiber.updateQueue = null; + sourceFiber.memoizedState = null; + } + } + } + function getNearestSuspenseBoundaryToCapture(returnFiber) { + var node = returnFiber; + do { + if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) { + return node; + } + node = node.return; + } while (node !== null); + return null; + } + function markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes) { + if ((suspenseBoundary.mode & ConcurrentMode) === NoMode) { + if (suspenseBoundary === returnFiber) { + suspenseBoundary.flags |= ShouldCapture; + } else { + suspenseBoundary.flags |= DidCapture; + sourceFiber.flags |= ForceUpdateForLegacySuspense; + sourceFiber.flags &= ~(LifecycleEffectMask | Incomplete); + if (sourceFiber.tag === ClassComponent) { + var currentSourceFiber = sourceFiber.alternate; + if (currentSourceFiber === null) { + sourceFiber.tag = IncompleteClassComponent; + } else { + var update = createUpdate(NoTimestamp, SyncLane); + update.tag = ForceUpdate; + enqueueUpdate(sourceFiber, update, SyncLane); + } + } + sourceFiber.lanes = mergeLanes(sourceFiber.lanes, SyncLane); + } + return suspenseBoundary; + } + suspenseBoundary.flags |= ShouldCapture; + suspenseBoundary.lanes = rootRenderLanes; + return suspenseBoundary; + } + function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) { + sourceFiber.flags |= Incomplete; + if (value !== null && typeof value === "object" && typeof value.then === "function") { + var wakeable = value; + resetSuspendedComponent(sourceFiber); + var suspenseBoundary = getNearestSuspenseBoundaryToCapture(returnFiber); + if (suspenseBoundary !== null) { + suspenseBoundary.flags &= ~ForceClientRender; + markSuspenseBoundaryShouldCapture(suspenseBoundary, returnFiber, sourceFiber, root, rootRenderLanes); + if (suspenseBoundary.mode & ConcurrentMode) { + attachPingListener(root, wakeable, rootRenderLanes); + } + attachRetryListener(suspenseBoundary, root, wakeable); + return; + } else { + if (!includesSyncLane(rootRenderLanes)) { + attachPingListener(root, wakeable, rootRenderLanes); + renderDidSuspendDelayIfPossible(); + return; + } + var uncaughtSuspenseError = new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."); + value = uncaughtSuspenseError; + } + } + value = createCapturedValueAtFiber(value, sourceFiber); + renderDidError(value); + var workInProgress2 = returnFiber; + do { + switch (workInProgress2.tag) { + case HostRoot: { + var _errorInfo = value; + workInProgress2.flags |= ShouldCapture; + var lane = pickArbitraryLane(rootRenderLanes); + workInProgress2.lanes = mergeLanes(workInProgress2.lanes, lane); + var update = createRootErrorUpdate(workInProgress2, _errorInfo, lane); + enqueueCapturedUpdate(workInProgress2, update); + return; + } + case ClassComponent: + var errorInfo = value; + var ctor = workInProgress2.type; + var instance = workInProgress2.stateNode; + if ((workInProgress2.flags & DidCapture) === NoFlags && (typeof ctor.getDerivedStateFromError === "function" || instance !== null && typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance))) { + workInProgress2.flags |= ShouldCapture; + var _lane = pickArbitraryLane(rootRenderLanes); + workInProgress2.lanes = mergeLanes(workInProgress2.lanes, _lane); + var _update = createClassErrorUpdate(workInProgress2, errorInfo, _lane); + enqueueCapturedUpdate(workInProgress2, _update); + return; + } + break; + } + workInProgress2 = workInProgress2.return; + } while (workInProgress2 !== null); + } + function getSuspendedCache() { + { + return null; + } + } + var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; + var didReceiveUpdate = false; + var didWarnAboutBadClass; + var didWarnAboutModulePatternComponent; + var didWarnAboutContextTypeOnFunctionComponent; + var didWarnAboutGetDerivedStateOnFunctionComponent; + var didWarnAboutFunctionRefs; + var didWarnAboutReassigningProps; + var didWarnAboutRevealOrder; + var didWarnAboutTailOptions; + { + didWarnAboutBadClass = {}; + didWarnAboutModulePatternComponent = {}; + didWarnAboutContextTypeOnFunctionComponent = {}; + didWarnAboutGetDerivedStateOnFunctionComponent = {}; + didWarnAboutFunctionRefs = {}; + didWarnAboutReassigningProps = false; + didWarnAboutRevealOrder = {}; + didWarnAboutTailOptions = {}; + } + function reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2) { + if (current2 === null) { + workInProgress2.child = mountChildFibers(workInProgress2, null, nextChildren, renderLanes2); + } else { + workInProgress2.child = reconcileChildFibers(workInProgress2, current2.child, nextChildren, renderLanes2); + } + } + function forceUnmountCurrentAndReconcile(current2, workInProgress2, nextChildren, renderLanes2) { + workInProgress2.child = reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2); + workInProgress2.child = reconcileChildFibers(workInProgress2, null, nextChildren, renderLanes2); + } + function updateForwardRef(current2, workInProgress2, Component, nextProps, renderLanes2) { + { + if (workInProgress2.type !== workInProgress2.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes( + innerPropTypes, + nextProps, + // Resolved props + "prop", + getComponentNameFromType(Component) + ); + } + } + } + var render = Component.render; + var ref = workInProgress2.ref; + var nextChildren; + prepareToReadContext(workInProgress2, renderLanes2); + { + ReactCurrentOwner$1.current = workInProgress2; + setIsRendering(true); + nextChildren = renderWithHooks(current2, workInProgress2, render, nextProps, ref, renderLanes2); + setIsRendering(false); + } + if (current2 !== null && !didReceiveUpdate) { + bailoutHooks(current2, workInProgress2, renderLanes2); + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + workInProgress2.flags |= PerformedWork; + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { + if (current2 === null) { + var type = Component.type; + if (isSimpleFunctionComponent(type) && Component.compare === null && // SimpleMemoComponent codepath doesn't resolve outer props either. + Component.defaultProps === void 0) { + var resolvedType = type; + { + resolvedType = resolveFunctionForHotReloading(type); + } + workInProgress2.tag = SimpleMemoComponent; + workInProgress2.type = resolvedType; + { + validateFunctionComponentInDev(workInProgress2, type); + } + return updateSimpleMemoComponent(current2, workInProgress2, resolvedType, nextProps, renderLanes2); + } + { + var innerPropTypes = type.propTypes; + if (innerPropTypes) { + checkPropTypes( + innerPropTypes, + nextProps, + // Resolved props + "prop", + getComponentNameFromType(type) + ); + } + } + var child = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress2, workInProgress2.mode, renderLanes2); + child.ref = workInProgress2.ref; + child.return = workInProgress2; + workInProgress2.child = child; + return child; + } + { + var _type = Component.type; + var _innerPropTypes = _type.propTypes; + if (_innerPropTypes) { + checkPropTypes( + _innerPropTypes, + nextProps, + // Resolved props + "prop", + getComponentNameFromType(_type) + ); + } + } + var currentChild = current2.child; + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current2, renderLanes2); + if (!hasScheduledUpdateOrContext) { + var prevProps = currentChild.memoizedProps; + var compare = Component.compare; + compare = compare !== null ? compare : shallowEqual; + if (compare(prevProps, nextProps) && current2.ref === workInProgress2.ref) { + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + } + workInProgress2.flags |= PerformedWork; + var newChild = createWorkInProgress(currentChild, nextProps); + newChild.ref = workInProgress2.ref; + newChild.return = workInProgress2; + workInProgress2.child = newChild; + return newChild; + } + function updateSimpleMemoComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { + { + if (workInProgress2.type !== workInProgress2.elementType) { + var outerMemoType = workInProgress2.elementType; + if (outerMemoType.$$typeof === REACT_LAZY_TYPE) { + var lazyComponent = outerMemoType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + outerMemoType = init(payload); + } catch (x) { + outerMemoType = null; + } + var outerPropTypes = outerMemoType && outerMemoType.propTypes; + if (outerPropTypes) { + checkPropTypes( + outerPropTypes, + nextProps, + // Resolved (SimpleMemoComponent has no defaultProps) + "prop", + getComponentNameFromType(outerMemoType) + ); + } + } + } + } + if (current2 !== null) { + var prevProps = current2.memoizedProps; + if (shallowEqual(prevProps, nextProps) && current2.ref === workInProgress2.ref && // Prevent bailout if the implementation changed due to hot reload. + workInProgress2.type === current2.type) { + didReceiveUpdate = false; + workInProgress2.pendingProps = nextProps = prevProps; + if (!checkScheduledUpdateOrContext(current2, renderLanes2)) { + workInProgress2.lanes = current2.lanes; + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } else if ((current2.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } + } + } + return updateFunctionComponent(current2, workInProgress2, Component, nextProps, renderLanes2); + } + function updateOffscreenComponent(current2, workInProgress2, renderLanes2) { + var nextProps = workInProgress2.pendingProps; + var nextChildren = nextProps.children; + var prevState = current2 !== null ? current2.memoizedState : null; + if (nextProps.mode === "hidden" || enableLegacyHidden) { + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + var nextState = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress2.memoizedState = nextState; + pushRenderLanes(workInProgress2, renderLanes2); + } else if (!includesSomeLane(renderLanes2, OffscreenLane)) { + var spawnedCachePool = null; + var nextBaseLanes; + if (prevState !== null) { + var prevBaseLanes = prevState.baseLanes; + nextBaseLanes = mergeLanes(prevBaseLanes, renderLanes2); + } else { + nextBaseLanes = renderLanes2; + } + workInProgress2.lanes = workInProgress2.childLanes = laneToLanes(OffscreenLane); + var _nextState = { + baseLanes: nextBaseLanes, + cachePool: spawnedCachePool, + transitions: null + }; + workInProgress2.memoizedState = _nextState; + workInProgress2.updateQueue = null; + pushRenderLanes(workInProgress2, nextBaseLanes); + return null; + } else { + var _nextState2 = { + baseLanes: NoLanes, + cachePool: null, + transitions: null + }; + workInProgress2.memoizedState = _nextState2; + var subtreeRenderLanes2 = prevState !== null ? prevState.baseLanes : renderLanes2; + pushRenderLanes(workInProgress2, subtreeRenderLanes2); + } + } else { + var _subtreeRenderLanes; + if (prevState !== null) { + _subtreeRenderLanes = mergeLanes(prevState.baseLanes, renderLanes2); + workInProgress2.memoizedState = null; + } else { + _subtreeRenderLanes = renderLanes2; + } + pushRenderLanes(workInProgress2, _subtreeRenderLanes); + } + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateFragment(current2, workInProgress2, renderLanes2) { + var nextChildren = workInProgress2.pendingProps; + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateMode(current2, workInProgress2, renderLanes2) { + var nextChildren = workInProgress2.pendingProps.children; + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateProfiler(current2, workInProgress2, renderLanes2) { + { + workInProgress2.flags |= Update; + { + var stateNode = workInProgress2.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + var nextProps = workInProgress2.pendingProps; + var nextChildren = nextProps.children; + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function markRef(current2, workInProgress2) { + var ref = workInProgress2.ref; + if (current2 === null && ref !== null || current2 !== null && current2.ref !== ref) { + workInProgress2.flags |= Ref; + } + } + function updateFunctionComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { + { + if (workInProgress2.type !== workInProgress2.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes( + innerPropTypes, + nextProps, + // Resolved props + "prop", + getComponentNameFromType(Component) + ); + } + } + } + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress2, Component, true); + context = getMaskedContext(workInProgress2, unmaskedContext); + } + var nextChildren; + prepareToReadContext(workInProgress2, renderLanes2); + { + ReactCurrentOwner$1.current = workInProgress2; + setIsRendering(true); + nextChildren = renderWithHooks(current2, workInProgress2, Component, nextProps, context, renderLanes2); + setIsRendering(false); + } + if (current2 !== null && !didReceiveUpdate) { + bailoutHooks(current2, workInProgress2, renderLanes2); + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + workInProgress2.flags |= PerformedWork; + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateClassComponent(current2, workInProgress2, Component, nextProps, renderLanes2) { + { + switch (shouldError(workInProgress2)) { + case false: { + var _instance = workInProgress2.stateNode; + var ctor = workInProgress2.type; + var tempInstance = new ctor(workInProgress2.memoizedProps, _instance.context); + var state = tempInstance.state; + _instance.updater.enqueueSetState(_instance, state, null); + break; + } + case true: { + workInProgress2.flags |= DidCapture; + workInProgress2.flags |= ShouldCapture; + var error$1 = new Error("Simulated error coming from DevTools"); + var lane = pickArbitraryLane(renderLanes2); + workInProgress2.lanes = mergeLanes(workInProgress2.lanes, lane); + var update = createClassErrorUpdate(workInProgress2, createCapturedValueAtFiber(error$1, workInProgress2), lane); + enqueueCapturedUpdate(workInProgress2, update); + break; + } + } + if (workInProgress2.type !== workInProgress2.elementType) { + var innerPropTypes = Component.propTypes; + if (innerPropTypes) { + checkPropTypes( + innerPropTypes, + nextProps, + // Resolved props + "prop", + getComponentNameFromType(Component) + ); + } + } + } + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress2); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress2, renderLanes2); + var instance = workInProgress2.stateNode; + var shouldUpdate; + if (instance === null) { + resetSuspendedCurrentOnMountInLegacyMode(current2, workInProgress2); + constructClassInstance(workInProgress2, Component, nextProps); + mountClassInstance(workInProgress2, Component, nextProps, renderLanes2); + shouldUpdate = true; + } else if (current2 === null) { + shouldUpdate = resumeMountClassInstance(workInProgress2, Component, nextProps, renderLanes2); + } else { + shouldUpdate = updateClassInstance(current2, workInProgress2, Component, nextProps, renderLanes2); + } + var nextUnitOfWork = finishClassComponent(current2, workInProgress2, Component, shouldUpdate, hasContext, renderLanes2); + { + var inst = workInProgress2.stateNode; + if (shouldUpdate && inst.props !== nextProps) { + if (!didWarnAboutReassigningProps) { + error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.", getComponentNameFromFiber(workInProgress2) || "a component"); + } + didWarnAboutReassigningProps = true; + } + } + return nextUnitOfWork; + } + function finishClassComponent(current2, workInProgress2, Component, shouldUpdate, hasContext, renderLanes2) { + markRef(current2, workInProgress2); + var didCaptureError = (workInProgress2.flags & DidCapture) !== NoFlags; + if (!shouldUpdate && !didCaptureError) { + if (hasContext) { + invalidateContextProvider(workInProgress2, Component, false); + } + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + var instance = workInProgress2.stateNode; + ReactCurrentOwner$1.current = workInProgress2; + var nextChildren; + if (didCaptureError && typeof Component.getDerivedStateFromError !== "function") { + nextChildren = null; + { + stopProfilerTimerIfRunning(); + } + } else { + { + setIsRendering(true); + nextChildren = instance.render(); + setIsRendering(false); + } + } + workInProgress2.flags |= PerformedWork; + if (current2 !== null && didCaptureError) { + forceUnmountCurrentAndReconcile(current2, workInProgress2, nextChildren, renderLanes2); + } else { + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + } + workInProgress2.memoizedState = instance.state; + if (hasContext) { + invalidateContextProvider(workInProgress2, Component, true); + } + return workInProgress2.child; + } + function pushHostRootContext(workInProgress2) { + var root = workInProgress2.stateNode; + if (root.pendingContext) { + pushTopLevelContextObject(workInProgress2, root.pendingContext, root.pendingContext !== root.context); + } else if (root.context) { + pushTopLevelContextObject(workInProgress2, root.context, false); + } + pushHostContainer(workInProgress2, root.containerInfo); + } + function updateHostRoot(current2, workInProgress2, renderLanes2) { + pushHostRootContext(workInProgress2); + if (current2 === null) { + throw new Error("Should have a current fiber. This is a bug in React."); + } + var nextProps = workInProgress2.pendingProps; + var prevState = workInProgress2.memoizedState; + var prevChildren = prevState.element; + cloneUpdateQueue(current2, workInProgress2); + processUpdateQueue(workInProgress2, nextProps, null, renderLanes2); + var nextState = workInProgress2.memoizedState; + var root = workInProgress2.stateNode; + var nextChildren = nextState.element; + { + if (nextChildren === prevChildren) { + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + } + return workInProgress2.child; + } + function updateHostComponent(current2, workInProgress2, renderLanes2) { + pushHostContext(workInProgress2); + var type = workInProgress2.type; + var nextProps = workInProgress2.pendingProps; + var prevProps = current2 !== null ? current2.memoizedProps : null; + var nextChildren = nextProps.children; + if (prevProps !== null && shouldSetTextContent()) { + workInProgress2.flags |= ContentReset; + } + markRef(current2, workInProgress2); + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + return workInProgress2.child; + } + function updateHostText(current2, workInProgress2) { + return null; + } + function mountLazyComponent(_current, workInProgress2, elementType, renderLanes2) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress2); + var props = workInProgress2.pendingProps; + var lazyComponent = elementType; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + var Component = init(payload); + workInProgress2.type = Component; + var resolvedTag = workInProgress2.tag = resolveLazyComponentTag(Component); + var resolvedProps = resolveDefaultProps(Component, props); + var child; + switch (resolvedTag) { + case FunctionComponent: { + { + validateFunctionComponentInDev(workInProgress2, Component); + workInProgress2.type = Component = resolveFunctionForHotReloading(Component); + } + child = updateFunctionComponent(null, workInProgress2, Component, resolvedProps, renderLanes2); + return child; + } + case ClassComponent: { + { + workInProgress2.type = Component = resolveClassForHotReloading(Component); + } + child = updateClassComponent(null, workInProgress2, Component, resolvedProps, renderLanes2); + return child; + } + case ForwardRef: { + { + workInProgress2.type = Component = resolveForwardRefForHotReloading(Component); + } + child = updateForwardRef(null, workInProgress2, Component, resolvedProps, renderLanes2); + return child; + } + case MemoComponent: { + { + if (workInProgress2.type !== workInProgress2.elementType) { + var outerPropTypes = Component.propTypes; + if (outerPropTypes) { + checkPropTypes( + outerPropTypes, + resolvedProps, + // Resolved for outer only + "prop", + getComponentNameFromType(Component) + ); + } + } + } + child = updateMemoComponent( + null, + workInProgress2, + Component, + resolveDefaultProps(Component.type, resolvedProps), + // The inner type can have defaults too + renderLanes2 + ); + return child; + } + } + var hint = ""; + { + if (Component !== null && typeof Component === "object" && Component.$$typeof === REACT_LAZY_TYPE) { + hint = " Did you wrap a component in React.lazy() more than once?"; + } + } + throw new Error("Element type is invalid. Received a promise that resolves to: " + Component + ". " + ("Lazy element type must resolve to a class or function." + hint)); + } + function mountIncompleteClassComponent(_current, workInProgress2, Component, nextProps, renderLanes2) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress2); + workInProgress2.tag = ClassComponent; + var hasContext; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress2); + } else { + hasContext = false; + } + prepareToReadContext(workInProgress2, renderLanes2); + constructClassInstance(workInProgress2, Component, nextProps); + mountClassInstance(workInProgress2, Component, nextProps, renderLanes2); + return finishClassComponent(null, workInProgress2, Component, true, hasContext, renderLanes2); + } + function mountIndeterminateComponent(_current, workInProgress2, Component, renderLanes2) { + resetSuspendedCurrentOnMountInLegacyMode(_current, workInProgress2); + var props = workInProgress2.pendingProps; + var context; + { + var unmaskedContext = getUnmaskedContext(workInProgress2, Component, false); + context = getMaskedContext(workInProgress2, unmaskedContext); + } + prepareToReadContext(workInProgress2, renderLanes2); + var value; + { + if (Component.prototype && typeof Component.prototype.render === "function") { + var componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutBadClass[componentName]) { + error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName); + didWarnAboutBadClass[componentName] = true; + } + } + if (workInProgress2.mode & StrictLegacyMode) { + ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress2, null); + } + setIsRendering(true); + ReactCurrentOwner$1.current = workInProgress2; + value = renderWithHooks(null, workInProgress2, Component, props, context, renderLanes2); + setIsRendering(false); + } + workInProgress2.flags |= PerformedWork; + { + if (typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === void 0) { + var _componentName = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName]) { + error("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", _componentName, _componentName, _componentName); + didWarnAboutModulePatternComponent[_componentName] = true; + } + } + } + if ( + // Run these checks in production only if the flag is off. + // Eventually we'll delete this branch altogether. + typeof value === "object" && value !== null && typeof value.render === "function" && value.$$typeof === void 0 + ) { + { + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutModulePatternComponent[_componentName2]) { + error("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", _componentName2, _componentName2, _componentName2); + didWarnAboutModulePatternComponent[_componentName2] = true; + } + } + workInProgress2.tag = ClassComponent; + workInProgress2.memoizedState = null; + workInProgress2.updateQueue = null; + var hasContext = false; + if (isContextProvider(Component)) { + hasContext = true; + pushContextProvider(workInProgress2); + } else { + hasContext = false; + } + workInProgress2.memoizedState = value.state !== null && value.state !== void 0 ? value.state : null; + initializeUpdateQueue(workInProgress2); + adoptClassInstance(workInProgress2, value); + mountClassInstance(workInProgress2, Component, props, renderLanes2); + return finishClassComponent(null, workInProgress2, Component, true, hasContext, renderLanes2); + } else { + workInProgress2.tag = FunctionComponent; + reconcileChildren(null, workInProgress2, value, renderLanes2); + { + validateFunctionComponentInDev(workInProgress2, Component); + } + return workInProgress2.child; + } + } + function validateFunctionComponentInDev(workInProgress2, Component) { + { + if (Component) { + if (Component.childContextTypes) { + error("%s(...): childContextTypes cannot be defined on a function component.", Component.displayName || Component.name || "Component"); + } + } + if (workInProgress2.ref !== null) { + var info = ""; + var ownerName = getCurrentFiberOwnerNameInDevOrNull(); + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + var warningKey = ownerName || ""; + var debugSource = workInProgress2._debugSource; + if (debugSource) { + warningKey = debugSource.fileName + ":" + debugSource.lineNumber; + } + if (!didWarnAboutFunctionRefs[warningKey]) { + didWarnAboutFunctionRefs[warningKey] = true; + error("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", info); + } + } + if (typeof Component.getDerivedStateFromProps === "function") { + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3]) { + error("%s: Function components do not support getDerivedStateFromProps.", _componentName3); + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; + } + } + if (typeof Component.contextType === "object" && Component.contextType !== null) { + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + error("%s: Function components do not support contextType.", _componentName4); + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + } + } + } + } + var SUSPENDED_MARKER = { + dehydrated: null, + treeContext: null, + retryLane: NoLane + }; + function mountSuspenseOffscreenState(renderLanes2) { + return { + baseLanes: renderLanes2, + cachePool: getSuspendedCache(), + transitions: null + }; + } + function updateSuspenseOffscreenState(prevOffscreenState, renderLanes2) { + var cachePool = null; + return { + baseLanes: mergeLanes(prevOffscreenState.baseLanes, renderLanes2), + cachePool, + transitions: prevOffscreenState.transitions + }; + } + function shouldRemainOnFallback(suspenseContext, current2, workInProgress2, renderLanes2) { + if (current2 !== null) { + var suspenseState = current2.memoizedState; + if (suspenseState === null) { + return false; + } + } + return hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + } + function getRemainingWorkInPrimaryTree(current2, renderLanes2) { + return removeLanes(current2.childLanes, renderLanes2); + } + function updateSuspenseComponent(current2, workInProgress2, renderLanes2) { + var nextProps = workInProgress2.pendingProps; + { + if (shouldSuspend(workInProgress2)) { + workInProgress2.flags |= DidCapture; + } + } + var suspenseContext = suspenseStackCursor.current; + var showFallback = false; + var didSuspend = (workInProgress2.flags & DidCapture) !== NoFlags; + if (didSuspend || shouldRemainOnFallback(suspenseContext, current2)) { + showFallback = true; + workInProgress2.flags &= ~DidCapture; + } else { + if (current2 === null || current2.memoizedState !== null) { + { + suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext); + } + } + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + pushSuspenseContext(workInProgress2, suspenseContext); + if (current2 === null) { + var suspenseState = workInProgress2.memoizedState; + if (suspenseState !== null) { + var dehydrated = suspenseState.dehydrated; + if (dehydrated !== null) { + return mountDehydratedSuspenseComponent(workInProgress2); + } + } + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + if (showFallback) { + var fallbackFragment = mountSuspenseFallbackChildren(workInProgress2, nextPrimaryChildren, nextFallbackChildren, renderLanes2); + var primaryChildFragment = workInProgress2.child; + primaryChildFragment.memoizedState = mountSuspenseOffscreenState(renderLanes2); + workInProgress2.memoizedState = SUSPENDED_MARKER; + return fallbackFragment; + } else { + return mountSuspensePrimaryChildren(workInProgress2, nextPrimaryChildren); + } + } else { + var prevState = current2.memoizedState; + if (prevState !== null) { + var _dehydrated = prevState.dehydrated; + if (_dehydrated !== null) { + return updateDehydratedSuspenseComponent(current2, workInProgress2, didSuspend, nextProps, _dehydrated, prevState, renderLanes2); + } + } + if (showFallback) { + var _nextFallbackChildren = nextProps.fallback; + var _nextPrimaryChildren = nextProps.children; + var fallbackChildFragment = updateSuspenseFallbackChildren(current2, workInProgress2, _nextPrimaryChildren, _nextFallbackChildren, renderLanes2); + var _primaryChildFragment2 = workInProgress2.child; + var prevOffscreenState = current2.child.memoizedState; + _primaryChildFragment2.memoizedState = prevOffscreenState === null ? mountSuspenseOffscreenState(renderLanes2) : updateSuspenseOffscreenState(prevOffscreenState, renderLanes2); + _primaryChildFragment2.childLanes = getRemainingWorkInPrimaryTree(current2, renderLanes2); + workInProgress2.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } else { + var _nextPrimaryChildren2 = nextProps.children; + var _primaryChildFragment3 = updateSuspensePrimaryChildren(current2, workInProgress2, _nextPrimaryChildren2, renderLanes2); + workInProgress2.memoizedState = null; + return _primaryChildFragment3; + } + } + } + function mountSuspensePrimaryChildren(workInProgress2, primaryChildren, renderLanes2) { + var mode = workInProgress2.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + primaryChildFragment.return = workInProgress2; + workInProgress2.child = primaryChildFragment; + return primaryChildFragment; + } + function mountSuspenseFallbackChildren(workInProgress2, primaryChildren, fallbackChildren, renderLanes2) { + var mode = workInProgress2.mode; + var progressedPrimaryFragment = workInProgress2.child; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + var fallbackChildFragment; + if ((mode & ConcurrentMode) === NoMode && progressedPrimaryFragment !== null) { + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress2.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = 0; + primaryChildFragment.treeBaseDuration = 0; + } + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes2, null); + } else { + primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, mode); + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes2, null); + } + primaryChildFragment.return = workInProgress2; + fallbackChildFragment.return = workInProgress2; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress2.child = primaryChildFragment; + return fallbackChildFragment; + } + function mountWorkInProgressOffscreenFiber(offscreenProps, mode, renderLanes2) { + return createFiberFromOffscreen(offscreenProps, mode, NoLanes, null); + } + function updateWorkInProgressOffscreenFiber(current2, offscreenProps) { + return createWorkInProgress(current2, offscreenProps); + } + function updateSuspensePrimaryChildren(current2, workInProgress2, primaryChildren, renderLanes2) { + var currentPrimaryChildFragment = current2.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, { + mode: "visible", + children: primaryChildren + }); + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + primaryChildFragment.lanes = renderLanes2; + } + primaryChildFragment.return = workInProgress2; + primaryChildFragment.sibling = null; + if (currentFallbackChildFragment !== null) { + var deletions = workInProgress2.deletions; + if (deletions === null) { + workInProgress2.deletions = [currentFallbackChildFragment]; + workInProgress2.flags |= ChildDeletion; + } else { + deletions.push(currentFallbackChildFragment); + } + } + workInProgress2.child = primaryChildFragment; + return primaryChildFragment; + } + function updateSuspenseFallbackChildren(current2, workInProgress2, primaryChildren, fallbackChildren, renderLanes2) { + var mode = workInProgress2.mode; + var currentPrimaryChildFragment = current2.child; + var currentFallbackChildFragment = currentPrimaryChildFragment.sibling; + var primaryChildProps = { + mode: "hidden", + children: primaryChildren + }; + var primaryChildFragment; + if ( + // In legacy mode, we commit the primary tree as if it successfully + // completed, even though it's in an inconsistent state. + (mode & ConcurrentMode) === NoMode && // Make sure we're on the second pass, i.e. the primary child fragment was + // already cloned. In legacy mode, the only case where this isn't true is + // when DevTools forces us to display a fallback; we skip the first render + // pass entirely and go straight to rendering the fallback. (In Concurrent + // Mode, SuspenseList can also trigger this scenario, but this is a legacy- + // only codepath.) + workInProgress2.child !== currentPrimaryChildFragment + ) { + var progressedPrimaryFragment = workInProgress2.child; + primaryChildFragment = progressedPrimaryFragment; + primaryChildFragment.childLanes = NoLanes; + primaryChildFragment.pendingProps = primaryChildProps; + if (workInProgress2.mode & ProfileMode) { + primaryChildFragment.actualDuration = 0; + primaryChildFragment.actualStartTime = -1; + primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration; + primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration; + } + workInProgress2.deletions = null; + } else { + primaryChildFragment = updateWorkInProgressOffscreenFiber(currentPrimaryChildFragment, primaryChildProps); + primaryChildFragment.subtreeFlags = currentPrimaryChildFragment.subtreeFlags & StaticMask; + } + var fallbackChildFragment; + if (currentFallbackChildFragment !== null) { + fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren); + } else { + fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes2, null); + fallbackChildFragment.flags |= Placement; + } + fallbackChildFragment.return = workInProgress2; + primaryChildFragment.return = workInProgress2; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress2.child = primaryChildFragment; + return fallbackChildFragment; + } + function retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, recoverableError) { + if (recoverableError !== null) { + queueHydrationError(recoverableError); + } + reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2); + var nextProps = workInProgress2.pendingProps; + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress2, primaryChildren); + primaryChildFragment.flags |= Placement; + workInProgress2.memoizedState = null; + return primaryChildFragment; + } + function mountSuspenseFallbackAfterRetryWithoutHydrating(current2, workInProgress2, primaryChildren, fallbackChildren, renderLanes2) { + var fiberMode = workInProgress2.mode; + var primaryChildProps = { + mode: "visible", + children: primaryChildren + }; + var primaryChildFragment = mountWorkInProgressOffscreenFiber(primaryChildProps, fiberMode); + var fallbackChildFragment = createFiberFromFragment(fallbackChildren, fiberMode, renderLanes2, null); + fallbackChildFragment.flags |= Placement; + primaryChildFragment.return = workInProgress2; + fallbackChildFragment.return = workInProgress2; + primaryChildFragment.sibling = fallbackChildFragment; + workInProgress2.child = primaryChildFragment; + if ((workInProgress2.mode & ConcurrentMode) !== NoMode) { + reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2); + } + return fallbackChildFragment; + } + function mountDehydratedSuspenseComponent(workInProgress2, suspenseInstance, renderLanes2) { + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + { + error("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, ).render(element) or remove the Suspense components from the server rendered components."); + } + workInProgress2.lanes = laneToLanes(SyncLane); + } else if (isSuspenseInstanceFallback()) { + workInProgress2.lanes = laneToLanes(DefaultHydrationLane); + } else { + workInProgress2.lanes = laneToLanes(OffscreenLane); + } + return null; + } + function updateDehydratedSuspenseComponent(current2, workInProgress2, didSuspend, nextProps, suspenseInstance, suspenseState, renderLanes2) { + if (!didSuspend) { + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + return retrySuspenseComponentWithoutHydrating( + current2, + workInProgress2, + renderLanes2, + // TODO: When we delete legacy mode, we should make this error argument + // required — every concurrent mode path that causes hydration to + // de-opt to client rendering should have an error message. + null + ); + } + if (isSuspenseInstanceFallback()) { + var digest, message, stack; + { + var _getSuspenseInstanceF = getSuspenseInstanceFallbackErrorDetails(); + digest = _getSuspenseInstanceF.digest; + message = _getSuspenseInstanceF.message; + stack = _getSuspenseInstanceF.stack; + } + var error2; + if (message) { + error2 = new Error(message); + } else { + error2 = new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."); + } + var capturedValue = createCapturedValue(error2, digest, stack); + return retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, capturedValue); + } + var hasContextChanged2 = includesSomeLane(renderLanes2, current2.childLanes); + if (didReceiveUpdate || hasContextChanged2) { + var root = getWorkInProgressRoot(); + if (root !== null) { + var attemptHydrationAtLane = getBumpedLaneForHydration(root, renderLanes2); + if (attemptHydrationAtLane !== NoLane && attemptHydrationAtLane !== suspenseState.retryLane) { + suspenseState.retryLane = attemptHydrationAtLane; + var eventTime = NoTimestamp; + enqueueConcurrentRenderForLane(current2, attemptHydrationAtLane); + scheduleUpdateOnFiber(root, current2, attemptHydrationAtLane, eventTime); + } + } + renderDidSuspendDelayIfPossible(); + var _capturedValue = createCapturedValue(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")); + return retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, _capturedValue); + } else if (isSuspenseInstancePending()) { + workInProgress2.flags |= DidCapture; + workInProgress2.child = current2.child; + var retry = retryDehydratedSuspenseBoundary.bind(null, current2); + registerSuspenseInstanceRetry(); + return null; + } else { + reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress2, suspenseInstance, suspenseState.treeContext); + var primaryChildren = nextProps.children; + var primaryChildFragment = mountSuspensePrimaryChildren(workInProgress2, primaryChildren); + primaryChildFragment.flags |= Hydrating; + return primaryChildFragment; + } + } else { + if (workInProgress2.flags & ForceClientRender) { + workInProgress2.flags &= ~ForceClientRender; + var _capturedValue2 = createCapturedValue(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")); + return retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2, _capturedValue2); + } else if (workInProgress2.memoizedState !== null) { + workInProgress2.child = current2.child; + workInProgress2.flags |= DidCapture; + return null; + } else { + var nextPrimaryChildren = nextProps.children; + var nextFallbackChildren = nextProps.fallback; + var fallbackChildFragment = mountSuspenseFallbackAfterRetryWithoutHydrating(current2, workInProgress2, nextPrimaryChildren, nextFallbackChildren, renderLanes2); + var _primaryChildFragment4 = workInProgress2.child; + _primaryChildFragment4.memoizedState = mountSuspenseOffscreenState(renderLanes2); + workInProgress2.memoizedState = SUSPENDED_MARKER; + return fallbackChildFragment; + } + } + } + function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) { + fiber.lanes = mergeLanes(fiber.lanes, renderLanes2); + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.lanes = mergeLanes(alternate.lanes, renderLanes2); + } + scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot); + } + function propagateSuspenseContextChange(workInProgress2, firstChild, renderLanes2) { + var node = firstChild; + while (node !== null) { + if (node.tag === SuspenseComponent) { + var state = node.memoizedState; + if (state !== null) { + scheduleSuspenseWorkOnFiber(node, renderLanes2, workInProgress2); + } + } else if (node.tag === SuspenseListComponent) { + scheduleSuspenseWorkOnFiber(node, renderLanes2, workInProgress2); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress2) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress2) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + function findLastContentRow(firstChild) { + var row = firstChild; + var lastContentRow = null; + while (row !== null) { + var currentRow = row.alternate; + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + lastContentRow = row; + } + row = row.sibling; + } + return lastContentRow; + } + function validateRevealOrder(revealOrder) { + { + if (revealOrder !== void 0 && revealOrder !== "forwards" && revealOrder !== "backwards" && revealOrder !== "together" && !didWarnAboutRevealOrder[revealOrder]) { + didWarnAboutRevealOrder[revealOrder] = true; + if (typeof revealOrder === "string") { + switch (revealOrder.toLowerCase()) { + case "together": + case "forwards": + case "backwards": { + error('"%s" is not a valid value for revealOrder on . Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + case "forward": + case "backward": { + error('"%s" is not a valid value for revealOrder on . React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase()); + break; + } + default: + error('"%s" is not a supported revealOrder on . Did you mean "together", "forwards" or "backwards"?', revealOrder); + break; + } + } else { + error('%s is not a supported value for revealOrder on . Did you mean "together", "forwards" or "backwards"?', revealOrder); + } + } + } + } + function validateTailOptions(tailMode, revealOrder) { + { + if (tailMode !== void 0 && !didWarnAboutTailOptions[tailMode]) { + if (tailMode !== "collapsed" && tailMode !== "hidden") { + didWarnAboutTailOptions[tailMode] = true; + error('"%s" is not a supported value for tail on . Did you mean "collapsed" or "hidden"?', tailMode); + } else if (revealOrder !== "forwards" && revealOrder !== "backwards") { + didWarnAboutTailOptions[tailMode] = true; + error(' is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?', tailMode); + } + } + } + } + function validateSuspenseListNestedChild(childSlot, index2) { + { + var isAnArray = isArray(childSlot); + var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === "function"; + if (isAnArray || isIterable) { + var type = isAnArray ? "array" : "iterable"; + error("A nested %s was passed to row #%s in . Wrap it in an additional SuspenseList to configure its revealOrder: ... {%s} ... ", type, index2, type); + return false; + } + } + return true; + } + function validateSuspenseListChildren(children, revealOrder) { + { + if ((revealOrder === "forwards" || revealOrder === "backwards") && children !== void 0 && children !== null && children !== false) { + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + if (!validateSuspenseListNestedChild(children[i], i)) { + return; + } + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var childrenIterator = iteratorFn.call(children); + if (childrenIterator) { + var step = childrenIterator.next(); + var _i = 0; + for (; !step.done; step = childrenIterator.next()) { + if (!validateSuspenseListNestedChild(step.value, _i)) { + return; + } + _i++; + } + } + } else { + error('A single row was passed to a . This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?', revealOrder); + } + } + } + } + } + function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode) { + var renderState = workInProgress2.memoizedState; + if (renderState === null) { + workInProgress2.memoizedState = { + isBackwards, + rendering: null, + renderingStartTime: 0, + last: lastContentRow, + tail, + tailMode + }; + } else { + renderState.isBackwards = isBackwards; + renderState.rendering = null; + renderState.renderingStartTime = 0; + renderState.last = lastContentRow; + renderState.tail = tail; + renderState.tailMode = tailMode; + } + } + function updateSuspenseListComponent(current2, workInProgress2, renderLanes2) { + var nextProps = workInProgress2.pendingProps; + var revealOrder = nextProps.revealOrder; + var tailMode = nextProps.tail; + var newChildren = nextProps.children; + validateRevealOrder(revealOrder); + validateTailOptions(tailMode, revealOrder); + validateSuspenseListChildren(newChildren, revealOrder); + reconcileChildren(current2, workInProgress2, newChildren, renderLanes2); + var suspenseContext = suspenseStackCursor.current; + var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback); + if (shouldForceFallback) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + workInProgress2.flags |= DidCapture; + } else { + var didSuspendBefore = current2 !== null && (current2.flags & DidCapture) !== NoFlags; + if (didSuspendBefore) { + propagateSuspenseContextChange(workInProgress2, workInProgress2.child, renderLanes2); + } + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress2, suspenseContext); + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + workInProgress2.memoizedState = null; + } else { + switch (revealOrder) { + case "forwards": { + var lastContentRow = findLastContentRow(workInProgress2.child); + var tail; + if (lastContentRow === null) { + tail = workInProgress2.child; + workInProgress2.child = null; + } else { + tail = lastContentRow.sibling; + lastContentRow.sibling = null; + } + initSuspenseListRenderState( + workInProgress2, + false, + // isBackwards + tail, + lastContentRow, + tailMode + ); + break; + } + case "backwards": { + var _tail = null; + var row = workInProgress2.child; + workInProgress2.child = null; + while (row !== null) { + var currentRow = row.alternate; + if (currentRow !== null && findFirstSuspended(currentRow) === null) { + workInProgress2.child = row; + break; + } + var nextRow = row.sibling; + row.sibling = _tail; + _tail = row; + row = nextRow; + } + initSuspenseListRenderState( + workInProgress2, + true, + // isBackwards + _tail, + null, + // last + tailMode + ); + break; + } + case "together": { + initSuspenseListRenderState( + workInProgress2, + false, + // isBackwards + null, + // tail + null, + // last + void 0 + ); + break; + } + default: { + workInProgress2.memoizedState = null; + } + } + } + return workInProgress2.child; + } + function updatePortalComponent(current2, workInProgress2, renderLanes2) { + pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo); + var nextChildren = workInProgress2.pendingProps; + if (current2 === null) { + workInProgress2.child = reconcileChildFibers(workInProgress2, null, nextChildren, renderLanes2); + } else { + reconcileChildren(current2, workInProgress2, nextChildren, renderLanes2); + } + return workInProgress2.child; + } + var hasWarnedAboutUsingNoValuePropOnContextProvider = false; + function updateContextProvider(current2, workInProgress2, renderLanes2) { + var providerType = workInProgress2.type; + var context = providerType._context; + var newProps = workInProgress2.pendingProps; + var oldProps = workInProgress2.memoizedProps; + var newValue = newProps.value; + { + if (!("value" in newProps)) { + if (!hasWarnedAboutUsingNoValuePropOnContextProvider) { + hasWarnedAboutUsingNoValuePropOnContextProvider = true; + error("The `value` prop is required for the ``. Did you misspell it or forget to pass it?"); + } + } + var providerPropTypes = workInProgress2.type.propTypes; + if (providerPropTypes) { + checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider"); + } + } + pushProvider(workInProgress2, context, newValue); + { + if (oldProps !== null) { + var oldValue = oldProps.value; + if (objectIs(oldValue, newValue)) { + if (oldProps.children === newProps.children && !hasContextChanged()) { + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + } else { + propagateContextChange(workInProgress2, context, renderLanes2); + } + } + } + var newChildren = newProps.children; + reconcileChildren(current2, workInProgress2, newChildren, renderLanes2); + return workInProgress2.child; + } + var hasWarnedAboutUsingContextAsConsumer = false; + function updateContextConsumer(current2, workInProgress2, renderLanes2) { + var context = workInProgress2.type; + { + if (context._context === void 0) { + if (context !== context.Consumer) { + if (!hasWarnedAboutUsingContextAsConsumer) { + hasWarnedAboutUsingContextAsConsumer = true; + error("Rendering directly is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + } + } else { + context = context._context; + } + } + var newProps = workInProgress2.pendingProps; + var render = newProps.children; + { + if (typeof render !== "function") { + error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."); + } + } + prepareToReadContext(workInProgress2, renderLanes2); + var newValue = readContext(context); + var newChildren; + { + ReactCurrentOwner$1.current = workInProgress2; + setIsRendering(true); + newChildren = render(newValue); + setIsRendering(false); + } + workInProgress2.flags |= PerformedWork; + reconcileChildren(current2, workInProgress2, newChildren, renderLanes2); + return workInProgress2.child; + } + function markWorkInProgressReceivedUpdate() { + didReceiveUpdate = true; + } + function resetSuspendedCurrentOnMountInLegacyMode(current2, workInProgress2) { + if ((workInProgress2.mode & ConcurrentMode) === NoMode) { + if (current2 !== null) { + current2.alternate = null; + workInProgress2.alternate = null; + workInProgress2.flags |= Placement; + } + } + } + function bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2) { + if (current2 !== null) { + workInProgress2.dependencies = current2.dependencies; + } + { + stopProfilerTimerIfRunning(); + } + markSkippedUpdateLanes(workInProgress2.lanes); + if (!includesSomeLane(renderLanes2, workInProgress2.childLanes)) { + { + return null; + } + } + cloneChildFibers(current2, workInProgress2); + return workInProgress2.child; + } + function remountFiber(current2, oldWorkInProgress, newWorkInProgress) { + { + var returnFiber = oldWorkInProgress.return; + if (returnFiber === null) { + throw new Error("Cannot swap the root fiber."); + } + current2.alternate = null; + oldWorkInProgress.alternate = null; + newWorkInProgress.index = oldWorkInProgress.index; + newWorkInProgress.sibling = oldWorkInProgress.sibling; + newWorkInProgress.return = oldWorkInProgress.return; + newWorkInProgress.ref = oldWorkInProgress.ref; + if (oldWorkInProgress === returnFiber.child) { + returnFiber.child = newWorkInProgress; + } else { + var prevSibling = returnFiber.child; + if (prevSibling === null) { + throw new Error("Expected parent to have a child."); + } + while (prevSibling.sibling !== oldWorkInProgress) { + prevSibling = prevSibling.sibling; + if (prevSibling === null) { + throw new Error("Expected to find the previous sibling."); + } + } + prevSibling.sibling = newWorkInProgress; + } + var deletions = returnFiber.deletions; + if (deletions === null) { + returnFiber.deletions = [current2]; + returnFiber.flags |= ChildDeletion; + } else { + deletions.push(current2); + } + newWorkInProgress.flags |= Placement; + return newWorkInProgress; + } + } + function checkScheduledUpdateOrContext(current2, renderLanes2) { + var updateLanes = current2.lanes; + if (includesSomeLane(updateLanes, renderLanes2)) { + return true; + } + return false; + } + function attemptEarlyBailoutIfNoScheduledUpdate(current2, workInProgress2, renderLanes2) { + switch (workInProgress2.tag) { + case HostRoot: + pushHostRootContext(workInProgress2); + var root = workInProgress2.stateNode; + break; + case HostComponent: + pushHostContext(workInProgress2); + break; + case ClassComponent: { + var Component = workInProgress2.type; + if (isContextProvider(Component)) { + pushContextProvider(workInProgress2); + } + break; + } + case HostPortal: + pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo); + break; + case ContextProvider: { + var newValue = workInProgress2.memoizedProps.value; + var context = workInProgress2.type._context; + pushProvider(workInProgress2, context, newValue); + break; + } + case Profiler: + { + var hasChildWork = includesSomeLane(renderLanes2, workInProgress2.childLanes); + if (hasChildWork) { + workInProgress2.flags |= Update; + } + { + var stateNode = workInProgress2.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + } + break; + case SuspenseComponent: { + var state = workInProgress2.memoizedState; + if (state !== null) { + if (state.dehydrated !== null) { + pushSuspenseContext(workInProgress2, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + workInProgress2.flags |= DidCapture; + return null; + } + var primaryChildFragment = workInProgress2.child; + var primaryChildLanes = primaryChildFragment.childLanes; + if (includesSomeLane(renderLanes2, primaryChildLanes)) { + return updateSuspenseComponent(current2, workInProgress2, renderLanes2); + } else { + pushSuspenseContext(workInProgress2, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + var child = bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + if (child !== null) { + return child.sibling; + } else { + return null; + } + } + } else { + pushSuspenseContext(workInProgress2, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); + } + break; + } + case SuspenseListComponent: { + var didSuspendBefore = (current2.flags & DidCapture) !== NoFlags; + var _hasChildWork = includesSomeLane(renderLanes2, workInProgress2.childLanes); + if (didSuspendBefore) { + if (_hasChildWork) { + return updateSuspenseListComponent(current2, workInProgress2, renderLanes2); + } + workInProgress2.flags |= DidCapture; + } + var renderState = workInProgress2.memoizedState; + if (renderState !== null) { + renderState.rendering = null; + renderState.tail = null; + renderState.lastEffect = null; + } + pushSuspenseContext(workInProgress2, suspenseStackCursor.current); + if (_hasChildWork) { + break; + } else { + return null; + } + } + case OffscreenComponent: + case LegacyHiddenComponent: { + workInProgress2.lanes = NoLanes; + return updateOffscreenComponent(current2, workInProgress2, renderLanes2); + } + } + return bailoutOnAlreadyFinishedWork(current2, workInProgress2, renderLanes2); + } + function beginWork(current2, workInProgress2, renderLanes2) { + { + if (workInProgress2._debugNeedsRemount && current2 !== null) { + return remountFiber(current2, workInProgress2, createFiberFromTypeAndProps(workInProgress2.type, workInProgress2.key, workInProgress2.pendingProps, workInProgress2._debugOwner || null, workInProgress2.mode, workInProgress2.lanes)); + } + } + if (current2 !== null) { + var oldProps = current2.memoizedProps; + var newProps = workInProgress2.pendingProps; + if (oldProps !== newProps || hasContextChanged() || // Force a re-render if the implementation changed due to hot reload: + workInProgress2.type !== current2.type) { + didReceiveUpdate = true; + } else { + var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current2, renderLanes2); + if (!hasScheduledUpdateOrContext && // If this is the second pass of an error or suspense boundary, there + // may not be work scheduled on `current`, so we check for this flag. + (workInProgress2.flags & DidCapture) === NoFlags) { + didReceiveUpdate = false; + return attemptEarlyBailoutIfNoScheduledUpdate(current2, workInProgress2, renderLanes2); + } + if ((current2.flags & ForceUpdateForLegacySuspense) !== NoFlags) { + didReceiveUpdate = true; + } else { + didReceiveUpdate = false; + } + } + } else { + didReceiveUpdate = false; + } + workInProgress2.lanes = NoLanes; + switch (workInProgress2.tag) { + case IndeterminateComponent: { + return mountIndeterminateComponent(current2, workInProgress2, workInProgress2.type, renderLanes2); + } + case LazyComponent: { + var elementType = workInProgress2.elementType; + return mountLazyComponent(current2, workInProgress2, elementType, renderLanes2); + } + case FunctionComponent: { + var Component = workInProgress2.type; + var unresolvedProps = workInProgress2.pendingProps; + var resolvedProps = workInProgress2.elementType === Component ? unresolvedProps : resolveDefaultProps(Component, unresolvedProps); + return updateFunctionComponent(current2, workInProgress2, Component, resolvedProps, renderLanes2); + } + case ClassComponent: { + var _Component = workInProgress2.type; + var _unresolvedProps = workInProgress2.pendingProps; + var _resolvedProps = workInProgress2.elementType === _Component ? _unresolvedProps : resolveDefaultProps(_Component, _unresolvedProps); + return updateClassComponent(current2, workInProgress2, _Component, _resolvedProps, renderLanes2); + } + case HostRoot: + return updateHostRoot(current2, workInProgress2, renderLanes2); + case HostComponent: + return updateHostComponent(current2, workInProgress2, renderLanes2); + case HostText: + return updateHostText(); + case SuspenseComponent: + return updateSuspenseComponent(current2, workInProgress2, renderLanes2); + case HostPortal: + return updatePortalComponent(current2, workInProgress2, renderLanes2); + case ForwardRef: { + var type = workInProgress2.type; + var _unresolvedProps2 = workInProgress2.pendingProps; + var _resolvedProps2 = workInProgress2.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2); + return updateForwardRef(current2, workInProgress2, type, _resolvedProps2, renderLanes2); + } + case Fragment: + return updateFragment(current2, workInProgress2, renderLanes2); + case Mode: + return updateMode(current2, workInProgress2, renderLanes2); + case Profiler: + return updateProfiler(current2, workInProgress2, renderLanes2); + case ContextProvider: + return updateContextProvider(current2, workInProgress2, renderLanes2); + case ContextConsumer: + return updateContextConsumer(current2, workInProgress2, renderLanes2); + case MemoComponent: { + var _type2 = workInProgress2.type; + var _unresolvedProps3 = workInProgress2.pendingProps; + var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3); + { + if (workInProgress2.type !== workInProgress2.elementType) { + var outerPropTypes = _type2.propTypes; + if (outerPropTypes) { + checkPropTypes( + outerPropTypes, + _resolvedProps3, + // Resolved for outer only + "prop", + getComponentNameFromType(_type2) + ); + } + } + } + _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3); + return updateMemoComponent(current2, workInProgress2, _type2, _resolvedProps3, renderLanes2); + } + case SimpleMemoComponent: { + return updateSimpleMemoComponent(current2, workInProgress2, workInProgress2.type, workInProgress2.pendingProps, renderLanes2); + } + case IncompleteClassComponent: { + var _Component2 = workInProgress2.type; + var _unresolvedProps4 = workInProgress2.pendingProps; + var _resolvedProps4 = workInProgress2.elementType === _Component2 ? _unresolvedProps4 : resolveDefaultProps(_Component2, _unresolvedProps4); + return mountIncompleteClassComponent(current2, workInProgress2, _Component2, _resolvedProps4, renderLanes2); + } + case SuspenseListComponent: { + return updateSuspenseListComponent(current2, workInProgress2, renderLanes2); + } + case ScopeComponent: { + break; + } + case OffscreenComponent: { + return updateOffscreenComponent(current2, workInProgress2, renderLanes2); + } + } + throw new Error("Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function markUpdate(workInProgress2) { + workInProgress2.flags |= Update; + } + function markRef$1(workInProgress2) { + workInProgress2.flags |= Ref; + } + var appendAllChildren; + var updateHostContainer; + var updateHostComponent$1; + var updateHostText$1; + { + appendAllChildren = function(parent, workInProgress2, needsVisibilityToggle, isHidden) { + var node = workInProgress2.child; + while (node !== null) { + if (node.tag === HostComponent || node.tag === HostText) { + appendInitialChild(parent, node.stateNode); + } else if (node.tag === HostPortal) + ; + else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === workInProgress2) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === workInProgress2) { + return; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + }; + updateHostContainer = function(current2, workInProgress2) { + }; + updateHostComponent$1 = function(current2, workInProgress2, type, newProps, rootContainerInstance) { + var oldProps = current2.memoizedProps; + if (oldProps === newProps) { + return; + } + var instance = workInProgress2.stateNode; + var currentHostContext = getHostContext(); + var updatePayload = prepareUpdate(); + workInProgress2.updateQueue = updatePayload; + if (updatePayload) { + markUpdate(workInProgress2); + } + }; + updateHostText$1 = function(current2, workInProgress2, oldText, newText) { + if (oldText !== newText) { + markUpdate(workInProgress2); + } + }; + } + function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { + switch (renderState.tailMode) { + case "hidden": { + var tailNode = renderState.tail; + var lastTailNode = null; + while (tailNode !== null) { + if (tailNode.alternate !== null) { + lastTailNode = tailNode; + } + tailNode = tailNode.sibling; + } + if (lastTailNode === null) { + renderState.tail = null; + } else { + lastTailNode.sibling = null; + } + break; + } + case "collapsed": { + var _tailNode = renderState.tail; + var _lastTailNode = null; + while (_tailNode !== null) { + if (_tailNode.alternate !== null) { + _lastTailNode = _tailNode; + } + _tailNode = _tailNode.sibling; + } + if (_lastTailNode === null) { + if (!hasRenderedATailFallback && renderState.tail !== null) { + renderState.tail.sibling = null; + } else { + renderState.tail = null; + } + } else { + _lastTailNode.sibling = null; + } + break; + } + } + } + function bubbleProperties(completedWork) { + var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child; + var newChildLanes = NoLanes; + var subtreeFlags = NoFlags; + if (!didBailout) { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var actualDuration = completedWork.actualDuration; + var treeBaseDuration = completedWork.selfBaseDuration; + var child = completedWork.child; + while (child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(child.lanes, child.childLanes)); + subtreeFlags |= child.subtreeFlags; + subtreeFlags |= child.flags; + actualDuration += child.actualDuration; + treeBaseDuration += child.treeBaseDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + completedWork.treeBaseDuration = treeBaseDuration; + } else { + var _child = completedWork.child; + while (_child !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child.lanes, _child.childLanes)); + subtreeFlags |= _child.subtreeFlags; + subtreeFlags |= _child.flags; + _child.return = completedWork; + _child = _child.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } else { + if ((completedWork.mode & ProfileMode) !== NoMode) { + var _treeBaseDuration = completedWork.selfBaseDuration; + var _child2 = completedWork.child; + while (_child2 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child2.lanes, _child2.childLanes)); + subtreeFlags |= _child2.subtreeFlags & StaticMask; + subtreeFlags |= _child2.flags & StaticMask; + _treeBaseDuration += _child2.treeBaseDuration; + _child2 = _child2.sibling; + } + completedWork.treeBaseDuration = _treeBaseDuration; + } else { + var _child3 = completedWork.child; + while (_child3 !== null) { + newChildLanes = mergeLanes(newChildLanes, mergeLanes(_child3.lanes, _child3.childLanes)); + subtreeFlags |= _child3.subtreeFlags & StaticMask; + subtreeFlags |= _child3.flags & StaticMask; + _child3.return = completedWork; + _child3 = _child3.sibling; + } + } + completedWork.subtreeFlags |= subtreeFlags; + } + completedWork.childLanes = newChildLanes; + return didBailout; + } + function completeDehydratedSuspenseBoundary(current2, workInProgress2, nextState) { + var wasHydrated = popHydrationState(); + if (nextState !== null && nextState.dehydrated !== null) { + if (current2 === null) { + if (!wasHydrated) { + throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React."); + } + prepareToHydrateHostSuspenseInstance(); + bubbleProperties(workInProgress2); + { + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + var isTimedOutSuspense = nextState !== null; + if (isTimedOutSuspense) { + var primaryChildFragment = workInProgress2.child; + if (primaryChildFragment !== null) { + workInProgress2.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } else { + if ((workInProgress2.flags & DidCapture) === NoFlags) { + workInProgress2.memoizedState = null; + } + workInProgress2.flags |= Update; + bubbleProperties(workInProgress2); + { + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + var _isTimedOutSuspense = nextState !== null; + if (_isTimedOutSuspense) { + var _primaryChildFragment = workInProgress2.child; + if (_primaryChildFragment !== null) { + workInProgress2.treeBaseDuration -= _primaryChildFragment.treeBaseDuration; + } + } + } + } + return false; + } + } else { + upgradeHydrationErrorsToRecoverable(); + return true; + } + } + function completeWork(current2, workInProgress2, renderLanes2) { + var newProps = workInProgress2.pendingProps; + popTreeContext(workInProgress2); + switch (workInProgress2.tag) { + case IndeterminateComponent: + case LazyComponent: + case SimpleMemoComponent: + case FunctionComponent: + case ForwardRef: + case Fragment: + case Mode: + case Profiler: + case ContextConsumer: + case MemoComponent: + bubbleProperties(workInProgress2); + return null; + case ClassComponent: { + var Component = workInProgress2.type; + if (isContextProvider(Component)) { + popContext(workInProgress2); + } + bubbleProperties(workInProgress2); + return null; + } + case HostRoot: { + var fiberRoot = workInProgress2.stateNode; + popHostContainer(workInProgress2); + popTopLevelContextObject(workInProgress2); + resetWorkInProgressVersions(); + if (fiberRoot.pendingContext) { + fiberRoot.context = fiberRoot.pendingContext; + fiberRoot.pendingContext = null; + } + if (current2 === null || current2.child === null) { + var wasHydrated = popHydrationState(); + if (wasHydrated) { + markUpdate(workInProgress2); + } else { + if (current2 !== null) { + var prevState = current2.memoizedState; + if ( + // Check if this is a client root + !prevState.isDehydrated || // Check if we reverted to client rendering (e.g. due to an error) + (workInProgress2.flags & ForceClientRender) !== NoFlags + ) { + workInProgress2.flags |= Snapshot; + upgradeHydrationErrorsToRecoverable(); + } + } + } + } + updateHostContainer(current2, workInProgress2); + bubbleProperties(workInProgress2); + return null; + } + case HostComponent: { + popHostContext(workInProgress2); + var rootContainerInstance = getRootHostContainer(); + var type = workInProgress2.type; + if (current2 !== null && workInProgress2.stateNode != null) { + updateHostComponent$1(current2, workInProgress2, type, newProps, rootContainerInstance); + if (current2.ref !== workInProgress2.ref) { + markRef$1(workInProgress2); + } + } else { + if (!newProps) { + if (workInProgress2.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + } + bubbleProperties(workInProgress2); + return null; + } + var currentHostContext = getHostContext(); + var _wasHydrated = popHydrationState(); + if (_wasHydrated) { + if (prepareToHydrateHostInstance()) { + markUpdate(workInProgress2); + } + } else { + var instance = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress2); + appendAllChildren(instance, workInProgress2, false, false); + workInProgress2.stateNode = instance; + } + if (workInProgress2.ref !== null) { + markRef$1(workInProgress2); + } + } + bubbleProperties(workInProgress2); + return null; + } + case HostText: { + var newText = newProps; + if (current2 && workInProgress2.stateNode != null) { + var oldText = current2.memoizedProps; + updateHostText$1(current2, workInProgress2, oldText, newText); + } else { + if (typeof newText !== "string") { + if (workInProgress2.stateNode === null) { + throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."); + } + } + var _rootContainerInstance = getRootHostContainer(); + var _currentHostContext = getHostContext(); + var _wasHydrated2 = popHydrationState(); + if (_wasHydrated2) { + if (prepareToHydrateHostTextInstance()) { + markUpdate(workInProgress2); + } + } else { + workInProgress2.stateNode = createTextInstance(newText); + } + } + bubbleProperties(workInProgress2); + return null; + } + case SuspenseComponent: { + popSuspenseContext(workInProgress2); + var nextState = workInProgress2.memoizedState; + if (current2 === null || current2.memoizedState !== null && current2.memoizedState.dehydrated !== null) { + var fallthroughToNormalSuspensePath = completeDehydratedSuspenseBoundary(current2, workInProgress2, nextState); + if (!fallthroughToNormalSuspensePath) { + if (workInProgress2.flags & ShouldCapture) { + return workInProgress2; + } else { + return null; + } + } + } + if ((workInProgress2.flags & DidCapture) !== NoFlags) { + workInProgress2.lanes = renderLanes2; + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress2); + } + return workInProgress2; + } + var nextDidTimeout = nextState !== null; + var prevDidTimeout = current2 !== null && current2.memoizedState !== null; + if (nextDidTimeout !== prevDidTimeout) { + if (nextDidTimeout) { + var _offscreenFiber2 = workInProgress2.child; + _offscreenFiber2.flags |= Visibility; + if ((workInProgress2.mode & ConcurrentMode) !== NoMode) { + var hasInvisibleChildContext = current2 === null && (workInProgress2.memoizedProps.unstable_avoidThisFallback !== true || !enableSuspenseAvoidThisFallback); + if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) { + renderDidSuspend(); + } else { + renderDidSuspendDelayIfPossible(); + } + } + } + } + var wakeables = workInProgress2.updateQueue; + if (wakeables !== null) { + workInProgress2.flags |= Update; + } + bubbleProperties(workInProgress2); + { + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + if (nextDidTimeout) { + var primaryChildFragment = workInProgress2.child; + if (primaryChildFragment !== null) { + workInProgress2.treeBaseDuration -= primaryChildFragment.treeBaseDuration; + } + } + } + } + return null; + } + case HostPortal: + popHostContainer(workInProgress2); + updateHostContainer(current2, workInProgress2); + if (current2 === null) { + preparePortalMount(workInProgress2.stateNode.containerInfo); + } + bubbleProperties(workInProgress2); + return null; + case ContextProvider: + var context = workInProgress2.type._context; + popProvider(context, workInProgress2); + bubbleProperties(workInProgress2); + return null; + case IncompleteClassComponent: { + var _Component = workInProgress2.type; + if (isContextProvider(_Component)) { + popContext(workInProgress2); + } + bubbleProperties(workInProgress2); + return null; + } + case SuspenseListComponent: { + popSuspenseContext(workInProgress2); + var renderState = workInProgress2.memoizedState; + if (renderState === null) { + bubbleProperties(workInProgress2); + return null; + } + var didSuspendAlready = (workInProgress2.flags & DidCapture) !== NoFlags; + var renderedTail = renderState.rendering; + if (renderedTail === null) { + if (!didSuspendAlready) { + var cannotBeSuspended = renderHasNotSuspendedYet() && (current2 === null || (current2.flags & DidCapture) === NoFlags); + if (!cannotBeSuspended) { + var row = workInProgress2.child; + while (row !== null) { + var suspended = findFirstSuspended(row); + if (suspended !== null) { + didSuspendAlready = true; + workInProgress2.flags |= DidCapture; + cutOffTailIfNeeded(renderState, false); + var newThenables = suspended.updateQueue; + if (newThenables !== null) { + workInProgress2.updateQueue = newThenables; + workInProgress2.flags |= Update; + } + workInProgress2.subtreeFlags = NoFlags; + resetChildFibers(workInProgress2, renderLanes2); + pushSuspenseContext(workInProgress2, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback)); + return workInProgress2.child; + } + row = row.sibling; + } + } + if (renderState.tail !== null && now() > getRenderTargetTime()) { + workInProgress2.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + workInProgress2.lanes = SomeRetryLane; + } + } else { + cutOffTailIfNeeded(renderState, false); + } + } else { + if (!didSuspendAlready) { + var _suspended = findFirstSuspended(renderedTail); + if (_suspended !== null) { + workInProgress2.flags |= DidCapture; + didSuspendAlready = true; + var _newThenables = _suspended.updateQueue; + if (_newThenables !== null) { + workInProgress2.updateQueue = _newThenables; + workInProgress2.flags |= Update; + } + cutOffTailIfNeeded(renderState, true); + if (renderState.tail === null && renderState.tailMode === "hidden" && !renderedTail.alternate && !getIsHydrating()) { + bubbleProperties(workInProgress2); + return null; + } + } else if ( + // The time it took to render last row is greater than the remaining + // time we have to render. So rendering one more row would likely + // exceed it. + now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane + ) { + workInProgress2.flags |= DidCapture; + didSuspendAlready = true; + cutOffTailIfNeeded(renderState, false); + workInProgress2.lanes = SomeRetryLane; + } + } + if (renderState.isBackwards) { + renderedTail.sibling = workInProgress2.child; + workInProgress2.child = renderedTail; + } else { + var previousSibling = renderState.last; + if (previousSibling !== null) { + previousSibling.sibling = renderedTail; + } else { + workInProgress2.child = renderedTail; + } + renderState.last = renderedTail; + } + } + if (renderState.tail !== null) { + var next = renderState.tail; + renderState.rendering = next; + renderState.tail = next.sibling; + renderState.renderingStartTime = now(); + next.sibling = null; + var suspenseContext = suspenseStackCursor.current; + if (didSuspendAlready) { + suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback); + } else { + suspenseContext = setDefaultShallowSuspenseContext(suspenseContext); + } + pushSuspenseContext(workInProgress2, suspenseContext); + return next; + } + bubbleProperties(workInProgress2); + return null; + } + case ScopeComponent: { + break; + } + case OffscreenComponent: + case LegacyHiddenComponent: { + popRenderLanes(workInProgress2); + var _nextState = workInProgress2.memoizedState; + var nextIsHidden = _nextState !== null; + if (current2 !== null) { + var _prevState = current2.memoizedState; + var prevIsHidden = _prevState !== null; + if (prevIsHidden !== nextIsHidden && // LegacyHidden doesn't do any hiding — it only pre-renders. + !enableLegacyHidden) { + workInProgress2.flags |= Visibility; + } + } + if (!nextIsHidden || (workInProgress2.mode & ConcurrentMode) === NoMode) { + bubbleProperties(workInProgress2); + } else { + if (includesSomeLane(subtreeRenderLanes, OffscreenLane)) { + bubbleProperties(workInProgress2); + { + if (workInProgress2.subtreeFlags & (Placement | Update)) { + workInProgress2.flags |= Visibility; + } + } + } + } + return null; + } + case CacheComponent: { + return null; + } + case TracingMarkerComponent: { + return null; + } + } + throw new Error("Unknown unit of work tag (" + workInProgress2.tag + "). This error is likely caused by a bug in React. Please file an issue."); + } + function unwindWork(current2, workInProgress2, renderLanes2) { + popTreeContext(workInProgress2); + switch (workInProgress2.tag) { + case ClassComponent: { + var Component = workInProgress2.type; + if (isContextProvider(Component)) { + popContext(workInProgress2); + } + var flags = workInProgress2.flags; + if (flags & ShouldCapture) { + workInProgress2.flags = flags & ~ShouldCapture | DidCapture; + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress2); + } + return workInProgress2; + } + return null; + } + case HostRoot: { + var root = workInProgress2.stateNode; + popHostContainer(workInProgress2); + popTopLevelContextObject(workInProgress2); + resetWorkInProgressVersions(); + var _flags = workInProgress2.flags; + if ((_flags & ShouldCapture) !== NoFlags && (_flags & DidCapture) === NoFlags) { + workInProgress2.flags = _flags & ~ShouldCapture | DidCapture; + return workInProgress2; + } + return null; + } + case HostComponent: { + popHostContext(workInProgress2); + return null; + } + case SuspenseComponent: { + popSuspenseContext(workInProgress2); + var suspenseState = workInProgress2.memoizedState; + if (suspenseState !== null && suspenseState.dehydrated !== null) { + if (workInProgress2.alternate === null) { + throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue."); + } + } + var _flags2 = workInProgress2.flags; + if (_flags2 & ShouldCapture) { + workInProgress2.flags = _flags2 & ~ShouldCapture | DidCapture; + if ((workInProgress2.mode & ProfileMode) !== NoMode) { + transferActualDuration(workInProgress2); + } + return workInProgress2; + } + return null; + } + case SuspenseListComponent: { + popSuspenseContext(workInProgress2); + return null; + } + case HostPortal: + popHostContainer(workInProgress2); + return null; + case ContextProvider: + var context = workInProgress2.type._context; + popProvider(context, workInProgress2); + return null; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(workInProgress2); + return null; + case CacheComponent: + return null; + default: + return null; + } + } + function unwindInterruptedWork(current2, interruptedWork, renderLanes2) { + popTreeContext(interruptedWork); + switch (interruptedWork.tag) { + case ClassComponent: { + var childContextTypes = interruptedWork.type.childContextTypes; + if (childContextTypes !== null && childContextTypes !== void 0) { + popContext(interruptedWork); + } + break; + } + case HostRoot: { + var root = interruptedWork.stateNode; + popHostContainer(interruptedWork); + popTopLevelContextObject(interruptedWork); + resetWorkInProgressVersions(); + break; + } + case HostComponent: { + popHostContext(interruptedWork); + break; + } + case HostPortal: + popHostContainer(interruptedWork); + break; + case SuspenseComponent: + popSuspenseContext(interruptedWork); + break; + case SuspenseListComponent: + popSuspenseContext(interruptedWork); + break; + case ContextProvider: + var context = interruptedWork.type._context; + popProvider(context, interruptedWork); + break; + case OffscreenComponent: + case LegacyHiddenComponent: + popRenderLanes(interruptedWork); + break; + } + } + function invokeGuardedCallbackProd(name, func, context, a, b, c, d, e, f) { + var funcArgs = Array.prototype.slice.call(arguments, 3); + try { + func.apply(context, funcArgs); + } catch (error2) { + this.onError(error2); + } + } + var invokeGuardedCallbackImpl = invokeGuardedCallbackProd; + { + if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { + var fakeNode = document.createElement("react"); + invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a, b, c, d, e, f) { + if (typeof document === "undefined" || document === null) { + throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous."); + } + var evt = document.createEvent("Event"); + var didCall = false; + var didError = true; + var windowEvent = window.event; + var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, "event"); + function restoreAfterDispatch() { + fakeNode.removeEventListener(evtType, callCallback2, false); + if (typeof window.event !== "undefined" && window.hasOwnProperty("event")) { + window.event = windowEvent; + } + } + var funcArgs = Array.prototype.slice.call(arguments, 3); + function callCallback2() { + didCall = true; + restoreAfterDispatch(); + func.apply(context, funcArgs); + didError = false; + } + var error2; + var didSetError = false; + var isCrossOriginError = false; + function handleWindowError(event) { + error2 = event.error; + didSetError = true; + if (error2 === null && event.colno === 0 && event.lineno === 0) { + isCrossOriginError = true; + } + if (event.defaultPrevented) { + if (error2 != null && typeof error2 === "object") { + try { + error2._suppressLogging = true; + } catch (inner) { + } + } + } + } + var evtType = "react-" + (name ? name : "invokeguardedcallback"); + window.addEventListener("error", handleWindowError); + fakeNode.addEventListener(evtType, callCallback2, false); + evt.initEvent(evtType, false, false); + fakeNode.dispatchEvent(evt); + if (windowEventDescriptor) { + Object.defineProperty(window, "event", windowEventDescriptor); + } + if (didCall && didError) { + if (!didSetError) { + error2 = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`); + } else if (isCrossOriginError) { + error2 = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information."); + } + this.onError(error2); + } + window.removeEventListener("error", handleWindowError); + if (!didCall) { + restoreAfterDispatch(); + return invokeGuardedCallbackProd.apply(this, arguments); + } + }; + } + } + var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl; + var hasError = false; + var caughtError = null; + var reporter = { + onError: function(error2) { + hasError = true; + caughtError = error2; + } + }; + function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) { + hasError = false; + caughtError = null; + invokeGuardedCallbackImpl$1.apply(reporter, arguments); + } + function clearCaughtError() { + if (hasError) { + var error2 = caughtError; + hasError = false; + caughtError = null; + return error2; + } else { + throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + } + } + var didWarnAboutUndefinedSnapshotBeforeUpdate = null; + { + didWarnAboutUndefinedSnapshotBeforeUpdate = /* @__PURE__ */ new Set(); + } + var PossiblyWeakSet = typeof WeakSet === "function" ? WeakSet : Set; + var nextEffect = null; + function reportUncaughtErrorInDEV(error2) { + { + invokeGuardedCallback(null, function() { + throw error2; + }); + clearCaughtError(); + } + } + var callComponentWillUnmountWithTimer = function(current2, instance) { + instance.props = current2.memoizedProps; + instance.state = current2.memoizedState; + if (current2.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentWillUnmount(); + } finally { + recordLayoutEffectDuration(current2); + } + } else { + instance.componentWillUnmount(); + } + }; + function safelyCallComponentWillUnmount(current2, nearestMountedAncestor, instance) { + try { + callComponentWillUnmountWithTimer(current2, instance); + } catch (error2) { + captureCommitPhaseError(current2, nearestMountedAncestor, error2); + } + } + function safelyDetachRef(current2, nearestMountedAncestor) { + var ref = current2.ref; + if (ref !== null) { + if (typeof ref === "function") { + var retVal; + try { + if (enableProfilerTimer && enableProfilerCommitHooks && current2.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(null); + } finally { + recordLayoutEffectDuration(current2); + } + } else { + retVal = ref(null); + } + } catch (error2) { + captureCommitPhaseError(current2, nearestMountedAncestor, error2); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", getComponentNameFromFiber(current2)); + } + } + } else { + ref.current = null; + } + } + } + function safelyCallDestroy(current2, nearestMountedAncestor, destroy) { + try { + destroy(); + } catch (error2) { + captureCommitPhaseError(current2, nearestMountedAncestor, error2); + } + } + var focusedInstanceHandle = null; + var shouldFireAfterActiveInstanceBlur = false; + function commitBeforeMutationEffects(root, firstChild) { + focusedInstanceHandle = prepareForCommit(root.containerInfo); + nextEffect = firstChild; + commitBeforeMutationEffects_begin(); + var shouldFire = shouldFireAfterActiveInstanceBlur; + shouldFireAfterActiveInstanceBlur = false; + focusedInstanceHandle = null; + return shouldFire; + } + function commitBeforeMutationEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + var child = fiber.child; + if ((fiber.subtreeFlags & BeforeMutationMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitBeforeMutationEffects_complete(); + } + } + } + function commitBeforeMutationEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + setCurrentFiber(fiber); + try { + commitBeforeMutationEffectsOnFiber(fiber); + } catch (error2) { + captureCommitPhaseError(fiber, fiber.return, error2); + } + resetCurrentFiber(); + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitBeforeMutationEffectsOnFiber(finishedWork) { + var current2 = finishedWork.alternate; + var flags = finishedWork.flags; + if ((flags & Snapshot) !== NoFlags) { + setCurrentFiber(finishedWork); + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + break; + } + case ClassComponent: { + if (current2 !== null) { + var prevProps = current2.memoizedProps; + var prevState = current2.memoizedState; + var instance = finishedWork.stateNode; + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState); + { + var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; + if (snapshot === void 0 && !didWarnSet.has(finishedWork.type)) { + didWarnSet.add(finishedWork.type); + error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentNameFromFiber(finishedWork)); + } + } + instance.__reactInternalSnapshotBeforeUpdate = snapshot; + } + break; + } + case HostRoot: { + { + var root = finishedWork.stateNode; + clearContainer(root.containerInfo); + } + break; + } + case HostComponent: + case HostText: + case HostPortal: + case IncompleteClassComponent: + break; + default: { + throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + resetCurrentFiber(); + } + } + function commitHookEffectListUnmount(flags, finishedWork, nearestMountedAncestor) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var destroy = effect.destroy; + effect.destroy = void 0; + if (destroy !== void 0) { + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + safelyCallDestroy(finishedWork, nearestMountedAncestor, destroy); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitHookEffectListMount(flags, finishedWork) { + var updateQueue = finishedWork.updateQueue; + var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + if ((effect.tag & flags) === flags) { + var create2 = effect.create; + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(true); + } + } + effect.destroy = create2(); + { + if ((flags & Insertion) !== NoFlags$1) { + setIsRunningInsertionEffect(false); + } + } + { + var destroy = effect.destroy; + if (destroy !== void 0 && typeof destroy !== "function") { + var hookName = void 0; + if ((effect.tag & Layout) !== NoFlags) { + hookName = "useLayoutEffect"; + } else if ((effect.tag & Insertion) !== NoFlags) { + hookName = "useInsertionEffect"; + } else { + hookName = "useEffect"; + } + var addendum = void 0; + if (destroy === null) { + addendum = " You returned null. If your effect does not require clean up, return undefined (or nothing)."; + } else if (typeof destroy.then === "function") { + addendum = "\n\nIt looks like you wrote " + hookName + "(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n" + hookName + "(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching"; + } else { + addendum = " You returned: " + destroy; + } + error("%s must not return anything besides a function, which is used for clean-up.%s", hookName, addendum); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + function commitPassiveEffectDurations(finishedRoot, finishedWork) { + { + if ((finishedWork.flags & Update) !== NoFlags) { + switch (finishedWork.tag) { + case Profiler: { + var passiveEffectDuration = finishedWork.stateNode.passiveEffectDuration; + var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id, onPostCommit = _finishedWork$memoize.onPostCommit; + var commitTime2 = getCommitTime(); + var phase = finishedWork.alternate === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onPostCommit === "function") { + onPostCommit(id, phase, passiveEffectDuration, commitTime2); + } + var parentFiber = finishedWork.return; + outer: + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.passiveEffectDuration += passiveEffectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.passiveEffectDuration += passiveEffectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + break; + } + } + } + } + } + function commitLayoutEffectOnFiber(finishedRoot, current2, finishedWork, committedLanes) { + if ((finishedWork.flags & LayoutMask) !== NoFlags) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + { + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Layout | HasEffect, finishedWork); + } + } + break; + } + case ClassComponent: { + var instance = finishedWork.stateNode; + if (finishedWork.flags & Update) { + { + if (current2 === null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidMount(); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidMount(); + } + } else { + var prevProps = finishedWork.elementType === finishedWork.type ? current2.memoizedProps : resolveDefaultProps(finishedWork.type, current2.memoizedProps); + var prevState = current2.memoizedState; + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate); + } + } + } + } + var updateQueue = finishedWork.updateQueue; + if (updateQueue !== null) { + { + if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) { + if (instance.props !== finishedWork.memoizedProps) { + error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + if (instance.state !== finishedWork.memoizedState) { + error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.", getComponentNameFromFiber(finishedWork) || "instance"); + } + } + } + commitUpdateQueue(finishedWork, updateQueue, instance); + } + break; + } + case HostRoot: { + var _updateQueue = finishedWork.updateQueue; + if (_updateQueue !== null) { + var _instance = null; + if (finishedWork.child !== null) { + switch (finishedWork.child.tag) { + case HostComponent: + _instance = getPublicInstance(finishedWork.child.stateNode); + break; + case ClassComponent: + _instance = finishedWork.child.stateNode; + break; + } + } + commitUpdateQueue(finishedWork, _updateQueue, _instance); + } + break; + } + case HostComponent: { + var _instance2 = finishedWork.stateNode; + if (current2 === null && finishedWork.flags & Update) { + var type = finishedWork.type; + var props = finishedWork.memoizedProps; + } + break; + } + case HostText: { + break; + } + case HostPortal: { + break; + } + case Profiler: { + { + var _finishedWork$memoize2 = finishedWork.memoizedProps, onCommit = _finishedWork$memoize2.onCommit, onRender = _finishedWork$memoize2.onRender; + var effectDuration = finishedWork.stateNode.effectDuration; + var commitTime2 = getCommitTime(); + var phase = current2 === null ? "mount" : "update"; + { + if (isCurrentUpdateNested()) { + phase = "nested-update"; + } + } + if (typeof onRender === "function") { + onRender(finishedWork.memoizedProps.id, phase, finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, commitTime2); + } + { + if (typeof onCommit === "function") { + onCommit(finishedWork.memoizedProps.id, phase, effectDuration, commitTime2); + } + enqueuePendingPassiveProfilerEffect(finishedWork); + var parentFiber = finishedWork.return; + outer: + while (parentFiber !== null) { + switch (parentFiber.tag) { + case HostRoot: + var root = parentFiber.stateNode; + root.effectDuration += effectDuration; + break outer; + case Profiler: + var parentStateNode = parentFiber.stateNode; + parentStateNode.effectDuration += effectDuration; + break outer; + } + parentFiber = parentFiber.return; + } + } + } + break; + } + case SuspenseComponent: { + break; + } + case SuspenseListComponent: + case IncompleteClassComponent: + case ScopeComponent: + case OffscreenComponent: + case LegacyHiddenComponent: + case TracingMarkerComponent: { + break; + } + default: + throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); + } + } + { + { + if (finishedWork.flags & Ref) { + commitAttachRef(finishedWork); + } + } + } + } + function hideOrUnhideAllChildren(finishedWork, isHidden) { + var hostSubtreeRoot = null; + { + var node = finishedWork; + while (true) { + if (node.tag === HostComponent) { + if (hostSubtreeRoot === null) { + hostSubtreeRoot = node; + try { + var instance = node.stateNode; + if (isHidden) { + hideInstance(instance); + } else { + unhideInstance(node.stateNode, node.memoizedProps); + } + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + } else if (node.tag === HostText) { + if (hostSubtreeRoot === null) { + try { + var _instance3 = node.stateNode; + if (isHidden) { + hideTextInstance(_instance3); + } else { + unhideTextInstance(_instance3, node.memoizedProps); + } + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + } else if ((node.tag === OffscreenComponent || node.tag === LegacyHiddenComponent) && node.memoizedState !== null && node !== finishedWork) + ; + else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === finishedWork) { + return; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node = node.return; + } + if (hostSubtreeRoot === node) { + hostSubtreeRoot = null; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + } + function commitAttachRef(finishedWork) { + var ref = finishedWork.ref; + if (ref !== null) { + var instance = finishedWork.stateNode; + var instanceToUse; + switch (finishedWork.tag) { + case HostComponent: + instanceToUse = getPublicInstance(instance); + break; + default: + instanceToUse = instance; + } + if (typeof ref === "function") { + var retVal; + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + retVal = ref(instanceToUse); + } finally { + recordLayoutEffectDuration(finishedWork); + } + } else { + retVal = ref(instanceToUse); + } + { + if (typeof retVal === "function") { + error("Unexpected return value from a callback ref in %s. A callback ref should not return a function.", getComponentNameFromFiber(finishedWork)); + } + } + } else { + { + if (!ref.hasOwnProperty("current")) { + error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().", getComponentNameFromFiber(finishedWork)); + } + } + ref.current = instanceToUse; + } + } + } + function detachFiberMutation(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + alternate.return = null; + } + fiber.return = null; + } + function detachFiberAfterEffects(fiber) { + var alternate = fiber.alternate; + if (alternate !== null) { + fiber.alternate = null; + detachFiberAfterEffects(alternate); + } + { + fiber.child = null; + fiber.deletions = null; + fiber.sibling = null; + if (fiber.tag === HostComponent) { + var hostInstance = fiber.stateNode; + } + fiber.stateNode = null; + { + fiber._debugOwner = null; + } + { + fiber.return = null; + fiber.dependencies = null; + fiber.memoizedProps = null; + fiber.memoizedState = null; + fiber.pendingProps = null; + fiber.stateNode = null; + fiber.updateQueue = null; + } + } + } + function getHostParentFiber(fiber) { + var parent = fiber.return; + while (parent !== null) { + if (isHostParent(parent)) { + return parent; + } + parent = parent.return; + } + throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + } + function isHostParent(fiber) { + return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; + } + function getHostSibling(fiber) { + var node = fiber; + siblings: + while (true) { + while (node.sibling === null) { + if (node.return === null || isHostParent(node.return)) { + return null; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedFragment) { + if (node.flags & Placement) { + continue siblings; + } + if (node.child === null || node.tag === HostPortal) { + continue siblings; + } else { + node.child.return = node; + node = node.child; + } + } + if (!(node.flags & Placement)) { + return node.stateNode; + } + } + } + function commitPlacement(finishedWork) { + var parentFiber = getHostParentFiber(finishedWork); + switch (parentFiber.tag) { + case HostComponent: { + var parent = parentFiber.stateNode; + if (parentFiber.flags & ContentReset) { + parentFiber.flags &= ~ContentReset; + } + var before = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before, parent); + break; + } + case HostRoot: + case HostPortal: { + var _parent = parentFiber.stateNode.containerInfo; + var _before = getHostSibling(finishedWork); + insertOrAppendPlacementNodeIntoContainer(finishedWork, _before, _parent); + break; + } + default: + throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); + } + } + function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertInContainerBefore(parent, stateNode, before); + } else { + appendChildToContainer(parent, stateNode); + } + } else if (tag === HostPortal) + ; + else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNodeIntoContainer(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNodeIntoContainer(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + function insertOrAppendPlacementNode(node, before, parent) { + var tag = node.tag; + var isHost = tag === HostComponent || tag === HostText; + if (isHost) { + var stateNode = node.stateNode; + if (before) { + insertBefore(parent, stateNode, before); + } else { + appendChild(parent, stateNode); + } + } else if (tag === HostPortal) + ; + else { + var child = node.child; + if (child !== null) { + insertOrAppendPlacementNode(child, before, parent); + var sibling = child.sibling; + while (sibling !== null) { + insertOrAppendPlacementNode(sibling, before, parent); + sibling = sibling.sibling; + } + } + } + } + var hostParent = null; + var hostParentIsContainer = false; + function commitDeletionEffects(root, returnFiber, deletedFiber) { + { + var parent = returnFiber; + findParent: + while (parent !== null) { + switch (parent.tag) { + case HostComponent: { + hostParent = parent.stateNode; + hostParentIsContainer = false; + break findParent; + } + case HostRoot: { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + case HostPortal: { + hostParent = parent.stateNode.containerInfo; + hostParentIsContainer = true; + break findParent; + } + } + parent = parent.return; + } + if (hostParent === null) { + throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); + } + commitDeletionEffectsOnFiber(root, returnFiber, deletedFiber); + hostParent = null; + hostParentIsContainer = false; + } + detachFiberMutation(deletedFiber); + } + function recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, parent) { + var child = parent.child; + while (child !== null) { + commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, child); + child = child.sibling; + } + } + function commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, deletedFiber) { + onCommitUnmount(deletedFiber); + switch (deletedFiber.tag) { + case HostComponent: { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + } + } + case HostText: { + { + var prevHostParent = hostParent; + var prevHostParentIsContainer = hostParentIsContainer; + hostParent = null; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = prevHostParent; + hostParentIsContainer = prevHostParentIsContainer; + if (hostParent !== null) { + if (hostParentIsContainer) { + removeChildFromContainer(hostParent, deletedFiber.stateNode); + } else { + removeChild(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case DehydratedFragment: { + { + if (hostParent !== null) { + if (hostParentIsContainer) { + clearSuspenseBoundaryFromContainer(hostParent, deletedFiber.stateNode); + } else { + clearSuspenseBoundary(hostParent, deletedFiber.stateNode); + } + } + } + return; + } + case HostPortal: { + { + var _prevHostParent = hostParent; + var _prevHostParentIsContainer = hostParentIsContainer; + hostParent = deletedFiber.stateNode.containerInfo; + hostParentIsContainer = true; + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + hostParent = _prevHostParent; + hostParentIsContainer = _prevHostParentIsContainer; + } + return; + } + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: { + { + var updateQueue = deletedFiber.updateQueue; + if (updateQueue !== null) { + var lastEffect = updateQueue.lastEffect; + if (lastEffect !== null) { + var firstEffect = lastEffect.next; + var effect = firstEffect; + do { + var _effect = effect, destroy = _effect.destroy, tag = _effect.tag; + if (destroy !== void 0) { + if ((tag & Insertion) !== NoFlags$1) { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } else if ((tag & Layout) !== NoFlags$1) { + if (deletedFiber.mode & ProfileMode) { + startLayoutEffectTimer(); + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + recordLayoutEffectDuration(deletedFiber); + } else { + safelyCallDestroy(deletedFiber, nearestMountedAncestor, destroy); + } + } + } + effect = effect.next; + } while (effect !== firstEffect); + } + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ClassComponent: { + { + safelyDetachRef(deletedFiber, nearestMountedAncestor); + var instance = deletedFiber.stateNode; + if (typeof instance.componentWillUnmount === "function") { + safelyCallComponentWillUnmount(deletedFiber, nearestMountedAncestor, instance); + } + } + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case ScopeComponent: { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + case OffscreenComponent: { + { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + } + break; + } + default: { + recursivelyTraverseDeletionEffects(finishedRoot, nearestMountedAncestor, deletedFiber); + return; + } + } + } + function commitSuspenseCallback(finishedWork) { + var newState = finishedWork.memoizedState; + } + function attachSuspenseRetryListeners(finishedWork) { + var wakeables = finishedWork.updateQueue; + if (wakeables !== null) { + finishedWork.updateQueue = null; + var retryCache = finishedWork.stateNode; + if (retryCache === null) { + retryCache = finishedWork.stateNode = new PossiblyWeakSet(); + } + wakeables.forEach(function(wakeable) { + var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable); + if (!retryCache.has(wakeable)) { + retryCache.add(wakeable); + wakeable.then(retry, retry); + } + }); + } + } + function commitMutationEffects(root, finishedWork, committedLanes) { + setCurrentFiber(finishedWork); + commitMutationEffectsOnFiber(finishedWork, root); + setCurrentFiber(finishedWork); + } + function recursivelyTraverseMutationEffects(root, parentFiber, lanes) { + var deletions = parentFiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; + try { + commitDeletionEffects(root, parentFiber, childToDelete); + } catch (error2) { + captureCommitPhaseError(childToDelete, parentFiber, error2); + } + } + } + var prevDebugFiber = getCurrentFiber(); + if (parentFiber.subtreeFlags & MutationMask) { + var child = parentFiber.child; + while (child !== null) { + setCurrentFiber(child); + commitMutationEffectsOnFiber(child, root); + child = child.sibling; + } + } + setCurrentFiber(prevDebugFiber); + } + function commitMutationEffectsOnFiber(finishedWork, root, lanes) { + var current2 = finishedWork.alternate; + var flags = finishedWork.flags; + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case MemoComponent: + case SimpleMemoComponent: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + try { + commitHookEffectListUnmount(Insertion | HasEffect, finishedWork, finishedWork.return); + commitHookEffectListMount(Insertion | HasEffect, finishedWork); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + if (finishedWork.mode & ProfileMode) { + try { + startLayoutEffectTimer(); + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + recordLayoutEffectDuration(finishedWork); + } else { + try { + commitHookEffectListUnmount(Layout | HasEffect, finishedWork, finishedWork.return); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + } + return; + } + case ClassComponent: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current2 !== null) { + safelyDetachRef(current2, current2.return); + } + } + return; + } + case HostComponent: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Ref) { + if (current2 !== null) { + safelyDetachRef(current2, current2.return); + } + } + { + if (finishedWork.flags & ContentReset) { + var instance = finishedWork.stateNode; + try { + resetTextContent(instance); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + if (flags & Update) { + var _instance4 = finishedWork.stateNode; + if (_instance4 != null) { + var newProps = finishedWork.memoizedProps; + var oldProps = current2 !== null ? current2.memoizedProps : newProps; + var type = finishedWork.type; + var updatePayload = finishedWork.updateQueue; + finishedWork.updateQueue = null; + if (updatePayload !== null) { + try { + commitUpdate(_instance4, updatePayload, type, oldProps, newProps, finishedWork); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + } + } + } + return; + } + case HostText: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + { + if (finishedWork.stateNode === null) { + throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); + } + var textInstance = finishedWork.stateNode; + var newText = finishedWork.memoizedProps; + var oldText = current2 !== null ? current2.memoizedProps : newText; + try { + commitTextUpdate(textInstance, oldText, newText); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + } + } + return; + } + case HostRoot: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case HostPortal: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + case SuspenseComponent: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + var offscreenFiber = finishedWork.child; + if (offscreenFiber.flags & Visibility) { + var offscreenInstance = offscreenFiber.stateNode; + var newState = offscreenFiber.memoizedState; + var isHidden = newState !== null; + offscreenInstance.isHidden = isHidden; + if (isHidden) { + var wasHidden = offscreenFiber.alternate !== null && offscreenFiber.alternate.memoizedState !== null; + if (!wasHidden) { + markCommitTimeOfFallback(); + } + } + } + if (flags & Update) { + try { + commitSuspenseCallback(finishedWork); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case OffscreenComponent: { + var _wasHidden = current2 !== null && current2.memoizedState !== null; + { + recursivelyTraverseMutationEffects(root, finishedWork); + } + commitReconciliationEffects(finishedWork); + if (flags & Visibility) { + var _offscreenInstance = finishedWork.stateNode; + var _newState = finishedWork.memoizedState; + var _isHidden = _newState !== null; + var offscreenBoundary = finishedWork; + _offscreenInstance.isHidden = _isHidden; + { + hideOrUnhideAllChildren(offscreenBoundary, _isHidden); + } + } + return; + } + case SuspenseListComponent: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + if (flags & Update) { + attachSuspenseRetryListeners(finishedWork); + } + return; + } + case ScopeComponent: { + return; + } + default: { + recursivelyTraverseMutationEffects(root, finishedWork); + commitReconciliationEffects(finishedWork); + return; + } + } + } + function commitReconciliationEffects(finishedWork) { + var flags = finishedWork.flags; + if (flags & Placement) { + try { + commitPlacement(finishedWork); + } catch (error2) { + captureCommitPhaseError(finishedWork, finishedWork.return, error2); + } + finishedWork.flags &= ~Placement; + } + if (flags & Hydrating) { + finishedWork.flags &= ~Hydrating; + } + } + function commitLayoutEffects(finishedWork, root, committedLanes) { + nextEffect = finishedWork; + commitLayoutEffects_begin(finishedWork, root, committedLanes); + } + function commitLayoutEffects_begin(subtreeRoot, root, committedLanes) { + var isModernRoot = (subtreeRoot.mode & ConcurrentMode) !== NoMode; + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & LayoutMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes); + } + } + } + function commitLayoutMountEffects_complete(subtreeRoot, root, committedLanes) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & LayoutMask) !== NoFlags) { + var current2 = fiber.alternate; + setCurrentFiber(fiber); + try { + commitLayoutEffectOnFiber(root, current2, fiber, committedLanes); + } catch (error2) { + captureCommitPhaseError(fiber, fiber.return, error2); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountEffects(root, finishedWork, committedLanes, committedTransitions) { + nextEffect = finishedWork; + commitPassiveMountEffects_begin(finishedWork, root, committedLanes, committedTransitions); + } + function commitPassiveMountEffects_begin(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + var firstChild = fiber.child; + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && firstChild !== null) { + firstChild.return = fiber; + nextEffect = firstChild; + } else { + commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions); + } + } + } + function commitPassiveMountEffects_complete(subtreeRoot, root, committedLanes, committedTransitions) { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + try { + commitPassiveMountOnFiber(root, fiber, committedLanes, committedTransitions); + } catch (error2) { + captureCommitPhaseError(fiber, fiber.return, error2); + } + resetCurrentFiber(); + } + if (fiber === subtreeRoot) { + nextEffect = null; + return; + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveMountOnFiber(finishedRoot, finishedWork, committedLanes, committedTransitions) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + try { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } finally { + recordPassiveEffectDuration(finishedWork); + } + } else { + commitHookEffectListMount(Passive$1 | HasEffect, finishedWork); + } + break; + } + } + } + function commitPassiveUnmountEffects(firstChild) { + nextEffect = firstChild; + commitPassiveUnmountEffects_begin(); + } + function commitPassiveUnmountEffects_begin() { + while (nextEffect !== null) { + var fiber = nextEffect; + var child = fiber.child; + if ((nextEffect.flags & ChildDeletion) !== NoFlags) { + var deletions = fiber.deletions; + if (deletions !== null) { + for (var i = 0; i < deletions.length; i++) { + var fiberToDelete = deletions[i]; + nextEffect = fiberToDelete; + commitPassiveUnmountEffectsInsideOfDeletedTree_begin(fiberToDelete, fiber); + } + { + var previousFiber = fiber.alternate; + if (previousFiber !== null) { + var detachedChild = previousFiber.child; + if (detachedChild !== null) { + previousFiber.child = null; + do { + var detachedSibling = detachedChild.sibling; + detachedChild.sibling = null; + detachedChild = detachedSibling; + } while (detachedChild !== null); + } + } + } + nextEffect = fiber; + } + } + if ((fiber.subtreeFlags & PassiveMask) !== NoFlags && child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffects_complete(); + } + } + } + function commitPassiveUnmountEffects_complete() { + while (nextEffect !== null) { + var fiber = nextEffect; + if ((fiber.flags & Passive) !== NoFlags) { + setCurrentFiber(fiber); + commitPassiveUnmountOnFiber(fiber); + resetCurrentFiber(); + } + var sibling = fiber.sibling; + if (sibling !== null) { + sibling.return = fiber.return; + nextEffect = sibling; + return; + } + nextEffect = fiber.return; + } + } + function commitPassiveUnmountOnFiber(finishedWork) { + switch (finishedWork.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + if (finishedWork.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + recordPassiveEffectDuration(finishedWork); + } else { + commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork, finishedWork.return); + } + break; + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(deletedSubtreeRoot, nearestMountedAncestor) { + while (nextEffect !== null) { + var fiber = nextEffect; + setCurrentFiber(fiber); + commitPassiveUnmountInsideDeletedTreeOnFiber(fiber, nearestMountedAncestor); + resetCurrentFiber(); + var child = fiber.child; + if (child !== null) { + child.return = fiber; + nextEffect = child; + } else { + commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot); + } + } + } + function commitPassiveUnmountEffectsInsideOfDeletedTree_complete(deletedSubtreeRoot) { + while (nextEffect !== null) { + var fiber = nextEffect; + var sibling = fiber.sibling; + var returnFiber = fiber.return; + { + detachFiberAfterEffects(fiber); + if (fiber === deletedSubtreeRoot) { + nextEffect = null; + return; + } + } + if (sibling !== null) { + sibling.return = returnFiber; + nextEffect = sibling; + return; + } + nextEffect = returnFiber; + } + } + function commitPassiveUnmountInsideDeletedTreeOnFiber(current2, nearestMountedAncestor) { + switch (current2.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + if (current2.mode & ProfileMode) { + startPassiveEffectTimer(); + commitHookEffectListUnmount(Passive$1, current2, nearestMountedAncestor); + recordPassiveEffectDuration(current2); + } else { + commitHookEffectListUnmount(Passive$1, current2, nearestMountedAncestor); + } + break; + } + } + } + var COMPONENT_TYPE = 0; + var HAS_PSEUDO_CLASS_TYPE = 1; + var ROLE_TYPE = 2; + var TEST_NAME_TYPE = 3; + var TEXT_TYPE = 4; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + COMPONENT_TYPE = symbolFor("selector.component"); + HAS_PSEUDO_CLASS_TYPE = symbolFor("selector.has_pseudo_class"); + ROLE_TYPE = symbolFor("selector.role"); + TEST_NAME_TYPE = symbolFor("selector.test_id"); + TEXT_TYPE = symbolFor("selector.text"); + } + var ReactCurrentActQueue = ReactSharedInternals.ReactCurrentActQueue; + function isLegacyActEnvironment(fiber) { + { + var isReactActEnvironmentGlobal = ( + // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : void 0 + ); + var jestIsDefined = typeof jest !== "undefined"; + return jestIsDefined && isReactActEnvironmentGlobal !== false; + } + } + function isConcurrentActEnvironment() { + { + var isReactActEnvironmentGlobal = ( + // $FlowExpectedError – Flow doesn't know about IS_REACT_ACT_ENVIRONMENT global + typeof IS_REACT_ACT_ENVIRONMENT !== "undefined" ? IS_REACT_ACT_ENVIRONMENT : void 0 + ); + if (!isReactActEnvironmentGlobal && ReactCurrentActQueue.current !== null) { + error("The current testing environment is not configured to support act(...)"); + } + return isReactActEnvironmentGlobal; + } + } + var ceil = Math.ceil; + var ReactCurrentDispatcher$2 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig, ReactCurrentActQueue$1 = ReactSharedInternals.ReactCurrentActQueue; + var NoContext = ( + /* */ + 0 + ); + var BatchedContext = ( + /* */ + 1 + ); + var RenderContext = ( + /* */ + 2 + ); + var CommitContext = ( + /* */ + 4 + ); + var RootInProgress = 0; + var RootFatalErrored = 1; + var RootErrored = 2; + var RootSuspended = 3; + var RootSuspendedWithDelay = 4; + var RootCompleted = 5; + var RootDidNotComplete = 6; + var executionContext = NoContext; + var workInProgressRoot = null; + var workInProgress = null; + var workInProgressRootRenderLanes = NoLanes; + var subtreeRenderLanes = NoLanes; + var subtreeRenderLanesCursor = createCursor(NoLanes); + var workInProgressRootExitStatus = RootInProgress; + var workInProgressRootFatalError = null; + var workInProgressRootIncludedLanes = NoLanes; + var workInProgressRootSkippedLanes = NoLanes; + var workInProgressRootInterleavedUpdatedLanes = NoLanes; + var workInProgressRootPingedLanes = NoLanes; + var workInProgressRootConcurrentErrors = null; + var workInProgressRootRecoverableErrors = null; + var globalMostRecentFallbackTime = 0; + var FALLBACK_THROTTLE_MS = 500; + var workInProgressRootRenderTargetTime = Infinity; + var RENDER_TIMEOUT_MS = 500; + var workInProgressTransitions = null; + function resetRenderTimer() { + workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + } + function getRenderTargetTime() { + return workInProgressRootRenderTargetTime; + } + var hasUncaughtError = false; + var firstUncaughtError = null; + var legacyErrorBoundariesThatAlreadyFailed = null; + var rootDoesHavePassiveEffects = false; + var rootWithPendingPassiveEffects = null; + var pendingPassiveEffectsLanes = NoLanes; + var pendingPassiveProfilerEffects = []; + var pendingPassiveTransitions = null; + var NESTED_UPDATE_LIMIT = 50; + var nestedUpdateCount = 0; + var rootWithNestedUpdates = null; + var isFlushingPassiveEffects = false; + var didScheduleUpdateDuringPassiveEffects = false; + var NESTED_PASSIVE_UPDATE_LIMIT = 50; + var nestedPassiveUpdateCount = 0; + var rootWithPassiveNestedUpdates = null; + var currentEventTime = NoTimestamp; + var currentEventTransitionLane = NoLanes; + var isRunningInsertionEffect = false; + function getWorkInProgressRoot() { + return workInProgressRoot; + } + function requestEventTime() { + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + return now(); + } + if (currentEventTime !== NoTimestamp) { + return currentEventTime; + } + currentEventTime = now(); + return currentEventTime; + } + function requestUpdateLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } else if ((executionContext & RenderContext) !== NoContext && workInProgressRootRenderLanes !== NoLanes) { + return pickArbitraryLane(workInProgressRootRenderLanes); + } + var isTransition = requestCurrentTransition() !== NoTransition; + if (isTransition) { + if (ReactCurrentBatchConfig$2.transition !== null) { + var transition = ReactCurrentBatchConfig$2.transition; + if (!transition._updatedFibers) { + transition._updatedFibers = /* @__PURE__ */ new Set(); + } + transition._updatedFibers.add(fiber); + } + if (currentEventTransitionLane === NoLane) { + currentEventTransitionLane = claimNextTransitionLane(); + } + return currentEventTransitionLane; + } + var updateLane = getCurrentUpdatePriority(); + if (updateLane !== NoLane) { + return updateLane; + } + var eventLane = getCurrentEventPriority(); + return eventLane; + } + function requestRetryLane(fiber) { + var mode = fiber.mode; + if ((mode & ConcurrentMode) === NoMode) { + return SyncLane; + } + return claimNextRetryLane(); + } + function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { + checkForNestedUpdates(); + { + if (isRunningInsertionEffect) { + error("useInsertionEffect must not schedule updates."); + } + } + { + if (isFlushingPassiveEffects) { + didScheduleUpdateDuringPassiveEffects = true; + } + } + markRootUpdated(root, lane, eventTime); + if ((executionContext & RenderContext) !== NoLanes && root === workInProgressRoot) { + warnAboutRenderPhaseUpdatesInDEV(fiber); + } else { + warnIfUpdatesNotWrappedWithActDEV(fiber); + if (root === workInProgressRoot) { + if ((executionContext & RenderContext) === NoContext) { + workInProgressRootInterleavedUpdatedLanes = mergeLanes(workInProgressRootInterleavedUpdatedLanes, lane); + } + if (workInProgressRootExitStatus === RootSuspendedWithDelay) { + markRootSuspended$1(root, workInProgressRootRenderLanes); + } + } + ensureRootIsScheduled(root, eventTime); + if (lane === SyncLane && executionContext === NoContext && (fiber.mode & ConcurrentMode) === NoMode && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + } + function isUnsafeClassRenderPhaseUpdate(fiber) { + return ( + // TODO: Remove outdated deferRenderPhaseUpdateToNextBatch experiment. We + // decided not to enable it. + (executionContext & RenderContext) !== NoContext + ); + } + function ensureRootIsScheduled(root, currentTime) { + var existingCallbackNode = root.callbackNode; + markStarvedLanesAsExpired(root, currentTime); + var nextLanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (nextLanes === NoLanes) { + if (existingCallbackNode !== null) { + cancelCallback$1(existingCallbackNode); + } + root.callbackNode = null; + root.callbackPriority = NoLane; + return; + } + var newCallbackPriority = getHighestPriorityLane(nextLanes); + var existingCallbackPriority = root.callbackPriority; + if (existingCallbackPriority === newCallbackPriority && // Special case related to `act`. If the currently scheduled task is a + // Scheduler task, rather than an `act` task, cancel it and re-scheduled + // on the `act` queue. + !(ReactCurrentActQueue$1.current !== null && existingCallbackNode !== fakeActCallbackNode)) { + { + if (existingCallbackNode == null && existingCallbackPriority !== SyncLane) { + error("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue."); + } + } + return; + } + if (existingCallbackNode != null) { + cancelCallback$1(existingCallbackNode); + } + var newCallbackNode; + if (newCallbackPriority === SyncLane) { + if (root.tag === LegacyRoot) { + if (ReactCurrentActQueue$1.isBatchingLegacy !== null) { + ReactCurrentActQueue$1.didScheduleLegacyUpdate = true; + } + scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)); + } else { + scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)); + } + { + scheduleCallback$1(ImmediatePriority, flushSyncCallbacks); + } + newCallbackNode = null; + } else { + var schedulerPriorityLevel; + switch (lanesToEventPriority(nextLanes)) { + case DiscreteEventPriority: + schedulerPriorityLevel = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriorityLevel = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriorityLevel = NormalPriority; + break; + case IdleEventPriority: + schedulerPriorityLevel = IdlePriority; + break; + default: + schedulerPriorityLevel = NormalPriority; + break; + } + newCallbackNode = scheduleCallback$1(schedulerPriorityLevel, performConcurrentWorkOnRoot.bind(null, root)); + } + root.callbackPriority = newCallbackPriority; + root.callbackNode = newCallbackNode; + } + function performConcurrentWorkOnRoot(root, didTimeout) { + { + resetNestedUpdateFlag(); + } + currentEventTime = NoTimestamp; + currentEventTransitionLane = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + var originalCallbackNode = root.callbackNode; + var didFlushPassiveEffects = flushPassiveEffects(); + if (didFlushPassiveEffects) { + if (root.callbackNode !== originalCallbackNode) { + return null; + } + } + var lanes = getNextLanes(root, root === workInProgressRoot ? workInProgressRootRenderLanes : NoLanes); + if (lanes === NoLanes) { + return null; + } + var shouldTimeSlice = !includesBlockingLane(root, lanes) && !includesExpiredLane(root, lanes) && !didTimeout; + var exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes); + if (exitStatus !== RootInProgress) { + if (exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + markRootSuspended$1(root, lanes); + } else { + var renderWasConcurrent = !includesBlockingLane(root, lanes); + var finishedWork = root.current.alternate; + if (renderWasConcurrent && !isRenderConsistentWithExternalStores(finishedWork)) { + exitStatus = renderRootSync(root, lanes); + if (exitStatus === RootErrored) { + var _errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (_errorRetryLanes !== NoLanes) { + lanes = _errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, _errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var _fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw _fatalError; + } + } + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + finishConcurrentRender(root, exitStatus, lanes); + } + } + ensureRootIsScheduled(root, now()); + if (root.callbackNode === originalCallbackNode) { + return performConcurrentWorkOnRoot.bind(null, root); + } + return null; + } + function recoverFromConcurrentError(root, errorRetryLanes) { + var errorsFromFirstAttempt = workInProgressRootConcurrentErrors; + if (isRootDehydrated(root)) { + var rootWorkInProgress = prepareFreshStack(root, errorRetryLanes); + rootWorkInProgress.flags |= ForceClientRender; + { + errorHydratingContainer(root.containerInfo); + } + } + var exitStatus = renderRootSync(root, errorRetryLanes); + if (exitStatus !== RootErrored) { + var errorsFromSecondAttempt = workInProgressRootRecoverableErrors; + workInProgressRootRecoverableErrors = errorsFromFirstAttempt; + if (errorsFromSecondAttempt !== null) { + queueRecoverableErrors(errorsFromSecondAttempt); + } + } + return exitStatus; + } + function queueRecoverableErrors(errors) { + if (workInProgressRootRecoverableErrors === null) { + workInProgressRootRecoverableErrors = errors; + } else { + workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors, errors); + } + } + function finishConcurrentRender(root, exitStatus, lanes) { + switch (exitStatus) { + case RootInProgress: + case RootFatalErrored: { + throw new Error("Root did not complete. This is a bug in React."); + } + case RootErrored: { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspended: { + markRootSuspended$1(root, lanes); + if (includesOnlyRetries(lanes) && // do not delay if we're inside an act() scope + !shouldForceFlushFallbacksInDEV()) { + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); + if (msUntilTimeout > 10) { + var nextLanes = getNextLanes(root, NoLanes); + if (nextLanes !== NoLanes) { + break; + } + var suspendedLanes = root.suspendedLanes; + if (!isSubsetOfLanes(suspendedLanes, lanes)) { + var eventTime = requestEventTime(); + markRootPinged(root, suspendedLanes); + break; + } + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), msUntilTimeout); + break; + } + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootSuspendedWithDelay: { + markRootSuspended$1(root, lanes); + if (includesOnlyTransitions(lanes)) { + break; + } + if (!shouldForceFlushFallbacksInDEV()) { + var mostRecentEventTime = getMostRecentEventTime(root, lanes); + var eventTimeMs = mostRecentEventTime; + var timeElapsedMs = now() - eventTimeMs; + var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; + if (_msUntilTimeout > 10) { + root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root, workInProgressRootRecoverableErrors, workInProgressTransitions), _msUntilTimeout); + break; + } + } + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + case RootCompleted: { + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + break; + } + default: { + throw new Error("Unknown root exit status."); + } + } + } + function isRenderConsistentWithExternalStores(finishedWork) { + var node = finishedWork; + while (true) { + if (node.flags & StoreConsistency) { + var updateQueue = node.updateQueue; + if (updateQueue !== null) { + var checks = updateQueue.stores; + if (checks !== null) { + for (var i = 0; i < checks.length; i++) { + var check = checks[i]; + var getSnapshot = check.getSnapshot; + var renderedValue = check.value; + try { + if (!objectIs(getSnapshot(), renderedValue)) { + return false; + } + } catch (error2) { + return false; + } + } + } + } + } + var child = node.child; + if (node.subtreeFlags & StoreConsistency && child !== null) { + child.return = node; + node = child; + continue; + } + if (node === finishedWork) { + return true; + } + while (node.sibling === null) { + if (node.return === null || node.return === finishedWork) { + return true; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return true; + } + function markRootSuspended$1(root, suspendedLanes) { + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); + suspendedLanes = removeLanes(suspendedLanes, workInProgressRootInterleavedUpdatedLanes); + markRootSuspended(root, suspendedLanes); + } + function performSyncWorkOnRoot(root) { + { + syncNestedUpdateFlag(); + } + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + flushPassiveEffects(); + var lanes = getNextLanes(root, NoLanes); + if (!includesSomeLane(lanes, SyncLane)) { + ensureRootIsScheduled(root, now()); + return null; + } + var exitStatus = renderRootSync(root, lanes); + if (root.tag !== LegacyRoot && exitStatus === RootErrored) { + var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root); + if (errorRetryLanes !== NoLanes) { + lanes = errorRetryLanes; + exitStatus = recoverFromConcurrentError(root, errorRetryLanes); + } + } + if (exitStatus === RootFatalErrored) { + var fatalError = workInProgressRootFatalError; + prepareFreshStack(root, NoLanes); + markRootSuspended$1(root, lanes); + ensureRootIsScheduled(root, now()); + throw fatalError; + } + if (exitStatus === RootDidNotComplete) { + throw new Error("Root did not complete. This is a bug in React."); + } + var finishedWork = root.current.alternate; + root.finishedWork = finishedWork; + root.finishedLanes = lanes; + commitRoot(root, workInProgressRootRecoverableErrors, workInProgressTransitions); + ensureRootIsScheduled(root, now()); + return null; + } + function batchedUpdates(fn, a) { + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + try { + return fn(a); + } finally { + executionContext = prevExecutionContext; + if (executionContext === NoContext && // Treat `act` as if it's inside `batchedUpdates`, even in legacy mode. + !ReactCurrentActQueue$1.isBatchingLegacy) { + resetRenderTimer(); + flushSyncCallbacksOnlyInLegacyMode(); + } + } + } + function flushSync(fn) { + if (rootWithPendingPassiveEffects !== null && rootWithPendingPassiveEffects.tag === LegacyRoot && (executionContext & (RenderContext | CommitContext)) === NoContext) { + flushPassiveEffects(); + } + var prevExecutionContext = executionContext; + executionContext |= BatchedContext; + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + if (fn) { + return fn(); + } else { + return void 0; + } + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + executionContext = prevExecutionContext; + if ((executionContext & (RenderContext | CommitContext)) === NoContext) { + flushSyncCallbacks(); + } + } + } + function pushRenderLanes(fiber, lanes) { + push(subtreeRenderLanesCursor, subtreeRenderLanes, fiber); + subtreeRenderLanes = mergeLanes(subtreeRenderLanes, lanes); + workInProgressRootIncludedLanes = mergeLanes(workInProgressRootIncludedLanes, lanes); + } + function popRenderLanes(fiber) { + subtreeRenderLanes = subtreeRenderLanesCursor.current; + pop(subtreeRenderLanesCursor, fiber); + } + function prepareFreshStack(root, lanes) { + root.finishedWork = null; + root.finishedLanes = NoLanes; + var timeoutHandle = root.timeoutHandle; + if (timeoutHandle !== noTimeout) { + root.timeoutHandle = noTimeout; + cancelTimeout(timeoutHandle); + } + if (workInProgress !== null) { + var interruptedWork = workInProgress.return; + while (interruptedWork !== null) { + var current2 = interruptedWork.alternate; + unwindInterruptedWork(current2, interruptedWork); + interruptedWork = interruptedWork.return; + } + } + workInProgressRoot = root; + var rootWorkInProgress = createWorkInProgress(root.current, null); + workInProgress = rootWorkInProgress; + workInProgressRootRenderLanes = subtreeRenderLanes = workInProgressRootIncludedLanes = lanes; + workInProgressRootExitStatus = RootInProgress; + workInProgressRootFatalError = null; + workInProgressRootSkippedLanes = NoLanes; + workInProgressRootInterleavedUpdatedLanes = NoLanes; + workInProgressRootPingedLanes = NoLanes; + workInProgressRootConcurrentErrors = null; + workInProgressRootRecoverableErrors = null; + finishQueueingConcurrentUpdates(); + { + ReactStrictModeWarnings.discardPendingWarnings(); + } + return rootWorkInProgress; + } + function handleError(root, thrownValue) { + do { + var erroredWork = workInProgress; + try { + resetContextDependencies(); + resetHooksAfterThrow(); + resetCurrentFiber(); + ReactCurrentOwner$2.current = null; + if (erroredWork === null || erroredWork.return === null) { + workInProgressRootExitStatus = RootFatalErrored; + workInProgressRootFatalError = thrownValue; + workInProgress = null; + return; + } + if (enableProfilerTimer && erroredWork.mode & ProfileMode) { + stopProfilerTimerIfRunningAndRecordDelta(erroredWork, true); + } + if (enableSchedulingProfiler) { + markComponentRenderStopped(); + if (thrownValue !== null && typeof thrownValue === "object" && typeof thrownValue.then === "function") { + var wakeable = thrownValue; + markComponentSuspended(erroredWork, wakeable, workInProgressRootRenderLanes); + } else { + markComponentErrored(erroredWork, thrownValue, workInProgressRootRenderLanes); + } + } + throwException(root, erroredWork.return, erroredWork, thrownValue, workInProgressRootRenderLanes); + completeUnitOfWork(erroredWork); + } catch (yetAnotherThrownValue) { + thrownValue = yetAnotherThrownValue; + if (workInProgress === erroredWork && erroredWork !== null) { + erroredWork = erroredWork.return; + workInProgress = erroredWork; + } else { + erroredWork = workInProgress; + } + continue; + } + return; + } while (true); + } + function pushDispatcher() { + var prevDispatcher = ReactCurrentDispatcher$2.current; + ReactCurrentDispatcher$2.current = ContextOnlyDispatcher; + if (prevDispatcher === null) { + return ContextOnlyDispatcher; + } else { + return prevDispatcher; + } + } + function popDispatcher(prevDispatcher) { + ReactCurrentDispatcher$2.current = prevDispatcher; + } + function markCommitTimeOfFallback() { + globalMostRecentFallbackTime = now(); + } + function markSkippedUpdateLanes(lane) { + workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); + } + function renderDidSuspend() { + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootSuspended; + } + } + function renderDidSuspendDelayIfPossible() { + if (workInProgressRootExitStatus === RootInProgress || workInProgressRootExitStatus === RootSuspended || workInProgressRootExitStatus === RootErrored) { + workInProgressRootExitStatus = RootSuspendedWithDelay; + } + if (workInProgressRoot !== null && (includesNonIdleWork(workInProgressRootSkippedLanes) || includesNonIdleWork(workInProgressRootInterleavedUpdatedLanes))) { + markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes); + } + } + function renderDidError(error2) { + if (workInProgressRootExitStatus !== RootSuspendedWithDelay) { + workInProgressRootExitStatus = RootErrored; + } + if (workInProgressRootConcurrentErrors === null) { + workInProgressRootConcurrentErrors = [error2]; + } else { + workInProgressRootConcurrentErrors.push(error2); + } + } + function renderHasNotSuspendedYet() { + return workInProgressRootExitStatus === RootInProgress; + } + function renderRootSync(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + workInProgressTransitions = getTransitionsForLanes(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopSync(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + executionContext = prevExecutionContext; + popDispatcher(prevDispatcher); + if (workInProgress !== null) { + throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."); + } + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + return workInProgressRootExitStatus; + } + function workLoopSync() { + while (workInProgress !== null) { + performUnitOfWork(workInProgress); + } + } + function renderRootConcurrent(root, lanes) { + var prevExecutionContext = executionContext; + executionContext |= RenderContext; + var prevDispatcher = pushDispatcher(); + if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) { + workInProgressTransitions = getTransitionsForLanes(); + resetRenderTimer(); + prepareFreshStack(root, lanes); + } + do { + try { + workLoopConcurrent(); + break; + } catch (thrownValue) { + handleError(root, thrownValue); + } + } while (true); + resetContextDependencies(); + popDispatcher(prevDispatcher); + executionContext = prevExecutionContext; + if (workInProgress !== null) { + return RootInProgress; + } else { + workInProgressRoot = null; + workInProgressRootRenderLanes = NoLanes; + return workInProgressRootExitStatus; + } + } + function workLoopConcurrent() { + while (workInProgress !== null && !shouldYield()) { + performUnitOfWork(workInProgress); + } + } + function performUnitOfWork(unitOfWork) { + var current2 = unitOfWork.alternate; + setCurrentFiber(unitOfWork); + var next; + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + startProfilerTimer(unitOfWork); + next = beginWork$1(current2, unitOfWork, subtreeRenderLanes); + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true); + } else { + next = beginWork$1(current2, unitOfWork, subtreeRenderLanes); + } + resetCurrentFiber(); + unitOfWork.memoizedProps = unitOfWork.pendingProps; + if (next === null) { + completeUnitOfWork(unitOfWork); + } else { + workInProgress = next; + } + ReactCurrentOwner$2.current = null; + } + function completeUnitOfWork(unitOfWork) { + var completedWork = unitOfWork; + do { + var current2 = completedWork.alternate; + var returnFiber = completedWork.return; + if ((completedWork.flags & Incomplete) === NoFlags) { + setCurrentFiber(completedWork); + var next = void 0; + if ((completedWork.mode & ProfileMode) === NoMode) { + next = completeWork(current2, completedWork, subtreeRenderLanes); + } else { + startProfilerTimer(completedWork); + next = completeWork(current2, completedWork, subtreeRenderLanes); + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + } + resetCurrentFiber(); + if (next !== null) { + workInProgress = next; + return; + } + } else { + var _next = unwindWork(current2, completedWork); + if (_next !== null) { + _next.flags &= HostEffectMask; + workInProgress = _next; + return; + } + if ((completedWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(completedWork, false); + var actualDuration = completedWork.actualDuration; + var child = completedWork.child; + while (child !== null) { + actualDuration += child.actualDuration; + child = child.sibling; + } + completedWork.actualDuration = actualDuration; + } + if (returnFiber !== null) { + returnFiber.flags |= Incomplete; + returnFiber.subtreeFlags = NoFlags; + returnFiber.deletions = null; + } else { + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + return; + } + } + var siblingFiber = completedWork.sibling; + if (siblingFiber !== null) { + workInProgress = siblingFiber; + return; + } + completedWork = returnFiber; + workInProgress = completedWork; + } while (completedWork !== null); + if (workInProgressRootExitStatus === RootInProgress) { + workInProgressRootExitStatus = RootCompleted; + } + } + function commitRoot(root, recoverableErrors, transitions) { + var previousUpdateLanePriority = getCurrentUpdatePriority(); + var prevTransition = ReactCurrentBatchConfig$2.transition; + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(DiscreteEventPriority); + commitRootImpl(root, recoverableErrors, transitions, previousUpdateLanePriority); + } finally { + ReactCurrentBatchConfig$2.transition = prevTransition; + setCurrentUpdatePriority(previousUpdateLanePriority); + } + return null; + } + function commitRootImpl(root, recoverableErrors, transitions, renderPriorityLevel) { + do { + flushPassiveEffects(); + } while (rootWithPendingPassiveEffects !== null); + flushRenderPhaseStrictModeWarningsInDEV(); + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Should not already be working."); + } + var finishedWork = root.finishedWork; + var lanes = root.finishedLanes; + if (finishedWork === null) { + return null; + } else { + { + if (lanes === NoLanes) { + error("root.finishedLanes should not be empty during a commit. This is a bug in React."); + } + } + } + root.finishedWork = null; + root.finishedLanes = NoLanes; + if (finishedWork === root.current) { + throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."); + } + root.callbackNode = null; + root.callbackPriority = NoLane; + var remainingLanes = mergeLanes(finishedWork.lanes, finishedWork.childLanes); + markRootFinished(root, remainingLanes); + if (root === workInProgressRoot) { + workInProgressRoot = null; + workInProgress = null; + workInProgressRootRenderLanes = NoLanes; + } + if ((finishedWork.subtreeFlags & PassiveMask) !== NoFlags || (finishedWork.flags & PassiveMask) !== NoFlags) { + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + pendingPassiveTransitions = transitions; + scheduleCallback$1(NormalPriority, function() { + flushPassiveEffects(); + return null; + }); + } + } + var subtreeHasEffects = (finishedWork.subtreeFlags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + var rootHasEffect = (finishedWork.flags & (BeforeMutationMask | MutationMask | LayoutMask | PassiveMask)) !== NoFlags; + if (subtreeHasEffects || rootHasEffect) { + var prevTransition = ReactCurrentBatchConfig$2.transition; + ReactCurrentBatchConfig$2.transition = null; + var previousPriority = getCurrentUpdatePriority(); + setCurrentUpdatePriority(DiscreteEventPriority); + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + ReactCurrentOwner$2.current = null; + var shouldFireAfterActiveInstanceBlur2 = commitBeforeMutationEffects(root, finishedWork); + { + recordCommitTime(); + } + commitMutationEffects(root, finishedWork); + resetAfterCommit(root.containerInfo); + root.current = finishedWork; + commitLayoutEffects(finishedWork, root, lanes); + requestPaint(); + executionContext = prevExecutionContext; + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } else { + root.current = finishedWork; + { + recordCommitTime(); + } + } + if (rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = false; + rootWithPendingPassiveEffects = root; + pendingPassiveEffectsLanes = lanes; + } else { + { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + } + } + remainingLanes = root.pendingLanes; + if (remainingLanes === NoLanes) { + legacyErrorBoundariesThatAlreadyFailed = null; + } + onCommitRoot(finishedWork.stateNode, renderPriorityLevel); + ensureRootIsScheduled(root, now()); + if (recoverableErrors !== null) { + var onRecoverableError2 = root.onRecoverableError; + for (var i = 0; i < recoverableErrors.length; i++) { + var recoverableError = recoverableErrors[i]; + var componentStack = recoverableError.stack; + var digest = recoverableError.digest; + onRecoverableError2(recoverableError.value, { + componentStack, + digest + }); + } + } + if (hasUncaughtError) { + hasUncaughtError = false; + var error$1 = firstUncaughtError; + firstUncaughtError = null; + throw error$1; + } + if (includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && root.tag !== LegacyRoot) { + flushPassiveEffects(); + } + remainingLanes = root.pendingLanes; + if (includesSomeLane(remainingLanes, SyncLane)) { + { + markNestedUpdateScheduled(); + } + if (root === rootWithNestedUpdates) { + nestedUpdateCount++; + } else { + nestedUpdateCount = 0; + rootWithNestedUpdates = root; + } + } else { + nestedUpdateCount = 0; + } + flushSyncCallbacks(); + return null; + } + function flushPassiveEffects() { + if (rootWithPendingPassiveEffects !== null) { + var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); + var priority = lowerEventPriority(DefaultEventPriority, renderPriority); + var prevTransition = ReactCurrentBatchConfig$2.transition; + var previousPriority = getCurrentUpdatePriority(); + try { + ReactCurrentBatchConfig$2.transition = null; + setCurrentUpdatePriority(priority); + return flushPassiveEffectsImpl(); + } finally { + setCurrentUpdatePriority(previousPriority); + ReactCurrentBatchConfig$2.transition = prevTransition; + } + } + return false; + } + function enqueuePendingPassiveProfilerEffect(fiber) { + { + pendingPassiveProfilerEffects.push(fiber); + if (!rootDoesHavePassiveEffects) { + rootDoesHavePassiveEffects = true; + scheduleCallback$1(NormalPriority, function() { + flushPassiveEffects(); + return null; + }); + } + } + } + function flushPassiveEffectsImpl() { + if (rootWithPendingPassiveEffects === null) { + return false; + } + var transitions = pendingPassiveTransitions; + pendingPassiveTransitions = null; + var root = rootWithPendingPassiveEffects; + var lanes = pendingPassiveEffectsLanes; + rootWithPendingPassiveEffects = null; + pendingPassiveEffectsLanes = NoLanes; + if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { + throw new Error("Cannot flush passive effects while already rendering."); + } + { + isFlushingPassiveEffects = true; + didScheduleUpdateDuringPassiveEffects = false; + } + var prevExecutionContext = executionContext; + executionContext |= CommitContext; + commitPassiveUnmountEffects(root.current); + commitPassiveMountEffects(root, root.current, lanes, transitions); + { + var profilerEffects = pendingPassiveProfilerEffects; + pendingPassiveProfilerEffects = []; + for (var i = 0; i < profilerEffects.length; i++) { + var _fiber = profilerEffects[i]; + commitPassiveEffectDurations(root, _fiber); + } + } + executionContext = prevExecutionContext; + flushSyncCallbacks(); + { + if (didScheduleUpdateDuringPassiveEffects) { + if (root === rootWithPassiveNestedUpdates) { + nestedPassiveUpdateCount++; + } else { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = root; + } + } else { + nestedPassiveUpdateCount = 0; + } + isFlushingPassiveEffects = false; + didScheduleUpdateDuringPassiveEffects = false; + } + onPostCommitRoot(root); + { + var stateNode = root.current.stateNode; + stateNode.effectDuration = 0; + stateNode.passiveEffectDuration = 0; + } + return true; + } + function isAlreadyFailedLegacyErrorBoundary(instance) { + return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance); + } + function markLegacyErrorBoundaryAsFailed(instance) { + if (legacyErrorBoundariesThatAlreadyFailed === null) { + legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([instance]); + } else { + legacyErrorBoundariesThatAlreadyFailed.add(instance); + } + } + function prepareToThrowUncaughtError(error2) { + if (!hasUncaughtError) { + hasUncaughtError = true; + firstUncaughtError = error2; + } + } + var onUncaughtError = prepareToThrowUncaughtError; + function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error2) { + var errorInfo = createCapturedValueAtFiber(error2, sourceFiber); + var update = createRootErrorUpdate(rootFiber, errorInfo, SyncLane); + var root = enqueueUpdate(rootFiber, update, SyncLane); + var eventTime = requestEventTime(); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error$1) { + { + reportUncaughtErrorInDEV(error$1); + setIsRunningInsertionEffect(false); + } + if (sourceFiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error$1); + return; + } + var fiber = null; + { + fiber = sourceFiber.return; + } + while (fiber !== null) { + if (fiber.tag === HostRoot) { + captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error$1); + return; + } else if (fiber.tag === ClassComponent) { + var ctor = fiber.type; + var instance = fiber.stateNode; + if (typeof ctor.getDerivedStateFromError === "function" || typeof instance.componentDidCatch === "function" && !isAlreadyFailedLegacyErrorBoundary(instance)) { + var errorInfo = createCapturedValueAtFiber(error$1, sourceFiber); + var update = createClassErrorUpdate(fiber, errorInfo, SyncLane); + var root = enqueueUpdate(fiber, update, SyncLane); + var eventTime = requestEventTime(); + if (root !== null) { + markRootUpdated(root, SyncLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + return; + } + } + fiber = fiber.return; + } + { + error("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", error$1); + } + } + function pingSuspendedRoot(root, wakeable, pingedLanes) { + var pingCache = root.pingCache; + if (pingCache !== null) { + pingCache.delete(wakeable); + } + var eventTime = requestEventTime(); + markRootPinged(root, pingedLanes); + warnIfSuspenseResolutionNotWrappedWithActDEV(root); + if (workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + prepareFreshStack(root, NoLanes); + } else { + workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); + } + } + ensureRootIsScheduled(root, eventTime); + } + function retryTimedOutBoundary(boundaryFiber, retryLane) { + if (retryLane === NoLane) { + retryLane = requestRetryLane(boundaryFiber); + } + var eventTime = requestEventTime(); + var root = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); + if (root !== null) { + markRootUpdated(root, retryLane, eventTime); + ensureRootIsScheduled(root, eventTime); + } + } + function retryDehydratedSuspenseBoundary(boundaryFiber) { + var suspenseState = boundaryFiber.memoizedState; + var retryLane = NoLane; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function resolveRetryWakeable(boundaryFiber, wakeable) { + var retryLane = NoLane; + var retryCache; + switch (boundaryFiber.tag) { + case SuspenseComponent: + retryCache = boundaryFiber.stateNode; + var suspenseState = boundaryFiber.memoizedState; + if (suspenseState !== null) { + retryLane = suspenseState.retryLane; + } + break; + case SuspenseListComponent: + retryCache = boundaryFiber.stateNode; + break; + default: + throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React."); + } + if (retryCache !== null) { + retryCache.delete(wakeable); + } + retryTimedOutBoundary(boundaryFiber, retryLane); + } + function jnd(timeElapsed) { + return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3e3 ? 3e3 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960; + } + function checkForNestedUpdates() { + if (nestedUpdateCount > NESTED_UPDATE_LIMIT) { + nestedUpdateCount = 0; + rootWithNestedUpdates = null; + throw new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); + } + { + if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) { + nestedPassiveUpdateCount = 0; + rootWithPassiveNestedUpdates = null; + error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."); + } + } + } + function flushRenderPhaseStrictModeWarningsInDEV() { + { + ReactStrictModeWarnings.flushLegacyContextWarning(); + { + ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); + } + } + } + var didWarnStateUpdateForNotYetMountedComponent = null; + function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { + { + if ((executionContext & RenderContext) !== NoContext) { + return; + } + if (!(fiber.mode & ConcurrentMode)) { + return; + } + var tag = fiber.tag; + if (tag !== IndeterminateComponent && tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) { + return; + } + var componentName = getComponentNameFromFiber(fiber) || "ReactComponent"; + if (didWarnStateUpdateForNotYetMountedComponent !== null) { + if (didWarnStateUpdateForNotYetMountedComponent.has(componentName)) { + return; + } + didWarnStateUpdateForNotYetMountedComponent.add(componentName); + } else { + didWarnStateUpdateForNotYetMountedComponent = /* @__PURE__ */ new Set([componentName]); + } + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead."); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + var beginWork$1; + { + beginWork$1 = beginWork; + } + var didWarnAboutUpdateInRender = false; + var didWarnAboutUpdateInRenderForAnotherComponent; + { + didWarnAboutUpdateInRenderForAnotherComponent = /* @__PURE__ */ new Set(); + } + function warnAboutRenderPhaseUpdatesInDEV(fiber) { + { + if (isRendering && !getIsUpdatingOpaqueValueInRenderPhaseInDEV()) { + switch (fiber.tag) { + case FunctionComponent: + case ForwardRef: + case SimpleMemoComponent: { + var renderingComponentName = workInProgress && getComponentNameFromFiber(workInProgress) || "Unknown"; + var dedupeKey = renderingComponentName; + if (!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)) { + didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey); + var setStateComponentName = getComponentNameFromFiber(fiber) || "Unknown"; + error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render", setStateComponentName, renderingComponentName, renderingComponentName); + } + break; + } + case ClassComponent: { + if (!didWarnAboutUpdateInRender) { + error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."); + didWarnAboutUpdateInRender = true; + } + break; + } + } + } + } + } + var fakeActCallbackNode = {}; + function scheduleCallback$1(priorityLevel, callback) { + { + var actQueue = ReactCurrentActQueue$1.current; + if (actQueue !== null) { + actQueue.push(callback); + return fakeActCallbackNode; + } else { + return scheduleCallback(priorityLevel, callback); + } + } + } + function cancelCallback$1(callbackNode) { + if (callbackNode === fakeActCallbackNode) { + return; + } + return cancelCallback(callbackNode); + } + function shouldForceFlushFallbacksInDEV() { + return ReactCurrentActQueue$1.current !== null; + } + function warnIfUpdatesNotWrappedWithActDEV(fiber) { + { + if (fiber.mode & ConcurrentMode) { + if (!isConcurrentActEnvironment()) { + return; + } + } else { + if (!isLegacyActEnvironment()) { + return; + } + if (executionContext !== NoContext) { + return; + } + if (fiber.tag !== FunctionComponent && fiber.tag !== ForwardRef && fiber.tag !== SimpleMemoComponent) { + return; + } + } + if (ReactCurrentActQueue$1.current === null) { + var previousFiber = current; + try { + setCurrentFiber(fiber); + error("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act", getComponentNameFromFiber(fiber)); + } finally { + if (previousFiber) { + setCurrentFiber(fiber); + } else { + resetCurrentFiber(); + } + } + } + } + } + function warnIfSuspenseResolutionNotWrappedWithActDEV(root) { + { + if (root.tag !== LegacyRoot && isConcurrentActEnvironment() && ReactCurrentActQueue$1.current === null) { + error("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act"); + } + } + } + function setIsRunningInsertionEffect(isRunning) { + { + isRunningInsertionEffect = isRunning; + } + } + var resolveFamily = null; + var failedBoundaries = null; + var setRefreshHandler = function(handler) { + { + resolveFamily = handler; + } + }; + function resolveFunctionForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === void 0) { + return type; + } + return family.current; + } + } + function resolveClassForHotReloading(type) { + return resolveFunctionForHotReloading(type); + } + function resolveForwardRefForHotReloading(type) { + { + if (resolveFamily === null) { + return type; + } + var family = resolveFamily(type); + if (family === void 0) { + if (type !== null && type !== void 0 && typeof type.render === "function") { + var currentRender = resolveFunctionForHotReloading(type.render); + if (type.render !== currentRender) { + var syntheticType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render: currentRender + }; + if (type.displayName !== void 0) { + syntheticType.displayName = type.displayName; + } + return syntheticType; + } + } + return type; + } + return family.current; + } + } + function isCompatibleFamilyForHotReloading(fiber, element) { + { + if (resolveFamily === null) { + return false; + } + var prevType = fiber.elementType; + var nextType = element.type; + var needsCompareFamilies = false; + var $$typeofNextType = typeof nextType === "object" && nextType !== null ? nextType.$$typeof : null; + switch (fiber.tag) { + case ClassComponent: { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } + break; + } + case FunctionComponent: { + if (typeof nextType === "function") { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case ForwardRef: { + if ($$typeofNextType === REACT_FORWARD_REF_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + case MemoComponent: + case SimpleMemoComponent: { + if ($$typeofNextType === REACT_MEMO_TYPE) { + needsCompareFamilies = true; + } else if ($$typeofNextType === REACT_LAZY_TYPE) { + needsCompareFamilies = true; + } + break; + } + default: + return false; + } + if (needsCompareFamilies) { + var prevFamily = resolveFamily(prevType); + if (prevFamily !== void 0 && prevFamily === resolveFamily(nextType)) { + return true; + } + } + return false; + } + } + function markFailedErrorBoundaryForHotReloading(fiber) { + { + if (resolveFamily === null) { + return; + } + if (typeof WeakSet !== "function") { + return; + } + if (failedBoundaries === null) { + failedBoundaries = /* @__PURE__ */ new WeakSet(); + } + failedBoundaries.add(fiber); + } + } + var scheduleRefresh = function(root, update) { + { + if (resolveFamily === null) { + return; + } + var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; + flushPassiveEffects(); + flushSync(function() { + scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies); + }); + } + }; + var scheduleRoot = function(root, element) { + { + if (root.context !== emptyContextObject) { + return; + } + flushPassiveEffects(); + flushSync(function() { + updateContainer(element, root, null, null); + }); + } + }; + function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { + { + var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + if (resolveFamily === null) { + throw new Error("Expected resolveFamily to be set during hot reload."); + } + var needsRender = false; + var needsRemount = false; + if (candidateType !== null) { + var family = resolveFamily(candidateType); + if (family !== void 0) { + if (staleFamilies.has(family)) { + needsRemount = true; + } else if (updatedFamilies.has(family)) { + if (tag === ClassComponent) { + needsRemount = true; + } else { + needsRender = true; + } + } + } + } + if (failedBoundaries !== null) { + if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) { + needsRemount = true; + } + } + if (needsRemount) { + fiber._debugNeedsRemount = true; + } + if (needsRemount || needsRender) { + var _root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (_root !== null) { + scheduleUpdateOnFiber(_root, fiber, SyncLane, NoTimestamp); + } + } + if (child !== null && !needsRemount) { + scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies); + } + if (sibling !== null) { + scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies); + } + } + } + var findHostInstancesForRefresh = function(root, families) { + { + var hostInstances = /* @__PURE__ */ new Set(); + var types = new Set(families.map(function(family) { + return family.current; + })); + findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances); + return hostInstances; + } + }; + function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) { + { + var child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type; + var candidateType = null; + switch (tag) { + case FunctionComponent: + case SimpleMemoComponent: + case ClassComponent: + candidateType = type; + break; + case ForwardRef: + candidateType = type.render; + break; + } + var didMatch = false; + if (candidateType !== null) { + if (types.has(candidateType)) { + didMatch = true; + } + } + if (didMatch) { + findHostInstancesForFiberShallowly(fiber, hostInstances); + } else { + if (child !== null) { + findHostInstancesForMatchingFibersRecursively(child, types, hostInstances); + } + } + if (sibling !== null) { + findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances); + } + } + } + function findHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances); + if (foundHostInstances) { + return; + } + var node = fiber; + while (true) { + switch (node.tag) { + case HostComponent: + hostInstances.add(node.stateNode); + return; + case HostPortal: + hostInstances.add(node.stateNode.containerInfo); + return; + case HostRoot: + hostInstances.add(node.stateNode.containerInfo); + return; + } + if (node.return === null) { + throw new Error("Expected to reach root first."); + } + node = node.return; + } + } + } + function findChildHostInstancesForFiberShallowly(fiber, hostInstances) { + { + var node = fiber; + var foundHostInstances = false; + while (true) { + if (node.tag === HostComponent) { + foundHostInstances = true; + hostInstances.add(node.stateNode); + } else if (node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + if (node === fiber) { + return foundHostInstances; + } + while (node.sibling === null) { + if (node.return === null || node.return === fiber) { + return foundHostInstances; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + } + return false; + } + var hasBadMapPolyfill; + { + hasBadMapPolyfill = false; + try { + var nonExtensibleObject = Object.preventExtensions({}); + /* @__PURE__ */ new Map([[nonExtensibleObject, null]]); + /* @__PURE__ */ new Set([nonExtensibleObject]); + } catch (e) { + hasBadMapPolyfill = true; + } + } + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; + this.key = key; + this.elementType = null; + this.type = null; + this.stateNode = null; + this.return = null; + this.child = null; + this.sibling = null; + this.index = 0; + this.ref = null; + this.pendingProps = pendingProps; + this.memoizedProps = null; + this.updateQueue = null; + this.memoizedState = null; + this.dependencies = null; + this.mode = mode; + this.flags = NoFlags; + this.subtreeFlags = NoFlags; + this.deletions = null; + this.lanes = NoLanes; + this.childLanes = NoLanes; + this.alternate = null; + { + this.actualDuration = Number.NaN; + this.actualStartTime = Number.NaN; + this.selfBaseDuration = Number.NaN; + this.treeBaseDuration = Number.NaN; + this.actualDuration = 0; + this.actualStartTime = -1; + this.selfBaseDuration = 0; + this.treeBaseDuration = 0; + } + { + this._debugSource = null; + this._debugOwner = null; + this._debugNeedsRemount = false; + this._debugHookTypes = null; + if (!hasBadMapPolyfill && typeof Object.preventExtensions === "function") { + Object.preventExtensions(this); + } + } + } + var createFiber = function(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); + }; + function shouldConstruct$1(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function isSimpleFunctionComponent(type) { + return typeof type === "function" && !shouldConstruct$1(type) && type.defaultProps === void 0; + } + function resolveLazyComponentTag(Component) { + if (typeof Component === "function") { + return shouldConstruct$1(Component) ? ClassComponent : FunctionComponent; + } else if (Component !== void 0 && Component !== null) { + var $$typeof = Component.$$typeof; + if ($$typeof === REACT_FORWARD_REF_TYPE) { + return ForwardRef; + } + if ($$typeof === REACT_MEMO_TYPE) { + return MemoComponent; + } + } + return IndeterminateComponent; + } + function createWorkInProgress(current2, pendingProps) { + var workInProgress2 = current2.alternate; + if (workInProgress2 === null) { + workInProgress2 = createFiber(current2.tag, pendingProps, current2.key, current2.mode); + workInProgress2.elementType = current2.elementType; + workInProgress2.type = current2.type; + workInProgress2.stateNode = current2.stateNode; + { + workInProgress2._debugSource = current2._debugSource; + workInProgress2._debugOwner = current2._debugOwner; + workInProgress2._debugHookTypes = current2._debugHookTypes; + } + workInProgress2.alternate = current2; + current2.alternate = workInProgress2; + } else { + workInProgress2.pendingProps = pendingProps; + workInProgress2.type = current2.type; + workInProgress2.flags = NoFlags; + workInProgress2.subtreeFlags = NoFlags; + workInProgress2.deletions = null; + { + workInProgress2.actualDuration = 0; + workInProgress2.actualStartTime = -1; + } + } + workInProgress2.flags = current2.flags & StaticMask; + workInProgress2.childLanes = current2.childLanes; + workInProgress2.lanes = current2.lanes; + workInProgress2.child = current2.child; + workInProgress2.memoizedProps = current2.memoizedProps; + workInProgress2.memoizedState = current2.memoizedState; + workInProgress2.updateQueue = current2.updateQueue; + var currentDependencies = current2.dependencies; + workInProgress2.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + workInProgress2.sibling = current2.sibling; + workInProgress2.index = current2.index; + workInProgress2.ref = current2.ref; + { + workInProgress2.selfBaseDuration = current2.selfBaseDuration; + workInProgress2.treeBaseDuration = current2.treeBaseDuration; + } + { + workInProgress2._debugNeedsRemount = current2._debugNeedsRemount; + switch (workInProgress2.tag) { + case IndeterminateComponent: + case FunctionComponent: + case SimpleMemoComponent: + workInProgress2.type = resolveFunctionForHotReloading(current2.type); + break; + case ClassComponent: + workInProgress2.type = resolveClassForHotReloading(current2.type); + break; + case ForwardRef: + workInProgress2.type = resolveForwardRefForHotReloading(current2.type); + break; + } + } + return workInProgress2; + } + function resetWorkInProgress(workInProgress2, renderLanes2) { + workInProgress2.flags &= StaticMask | Placement; + var current2 = workInProgress2.alternate; + if (current2 === null) { + workInProgress2.childLanes = NoLanes; + workInProgress2.lanes = renderLanes2; + workInProgress2.child = null; + workInProgress2.subtreeFlags = NoFlags; + workInProgress2.memoizedProps = null; + workInProgress2.memoizedState = null; + workInProgress2.updateQueue = null; + workInProgress2.dependencies = null; + workInProgress2.stateNode = null; + { + workInProgress2.selfBaseDuration = 0; + workInProgress2.treeBaseDuration = 0; + } + } else { + workInProgress2.childLanes = current2.childLanes; + workInProgress2.lanes = current2.lanes; + workInProgress2.child = current2.child; + workInProgress2.subtreeFlags = NoFlags; + workInProgress2.deletions = null; + workInProgress2.memoizedProps = current2.memoizedProps; + workInProgress2.memoizedState = current2.memoizedState; + workInProgress2.updateQueue = current2.updateQueue; + workInProgress2.type = current2.type; + var currentDependencies = current2.dependencies; + workInProgress2.dependencies = currentDependencies === null ? null : { + lanes: currentDependencies.lanes, + firstContext: currentDependencies.firstContext + }; + { + workInProgress2.selfBaseDuration = current2.selfBaseDuration; + workInProgress2.treeBaseDuration = current2.treeBaseDuration; + } + } + return workInProgress2; + } + function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) { + var mode; + if (tag === ConcurrentRoot) { + mode = ConcurrentMode; + if (isStrictMode === true) { + mode |= StrictLegacyMode; + } + } else { + mode = NoMode; + } + if (isDevToolsPresent) { + mode |= ProfileMode; + } + return createFiber(HostRoot, null, null, mode); + } + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { + var fiberTag = IndeterminateComponent; + var resolvedType = type; + if (typeof type === "function") { + if (shouldConstruct$1(type)) { + fiberTag = ClassComponent; + { + resolvedType = resolveClassForHotReloading(resolvedType); + } + } else { + { + resolvedType = resolveFunctionForHotReloading(resolvedType); + } + } + } else if (typeof type === "string") { + fiberTag = HostComponent; + } else { + getTag: + switch (type) { + case REACT_FRAGMENT_TYPE: + return createFiberFromFragment(pendingProps.children, mode, lanes, key); + case REACT_STRICT_MODE_TYPE: + fiberTag = Mode; + mode |= StrictLegacyMode; + break; + case REACT_PROFILER_TYPE: + return createFiberFromProfiler(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_TYPE: + return createFiberFromSuspense(pendingProps, mode, lanes, key); + case REACT_SUSPENSE_LIST_TYPE: + return createFiberFromSuspenseList(pendingProps, mode, lanes, key); + case REACT_OFFSCREEN_TYPE: + return createFiberFromOffscreen(pendingProps, mode, lanes, key); + case REACT_LEGACY_HIDDEN_TYPE: + case REACT_SCOPE_TYPE: + case REACT_CACHE_TYPE: + case REACT_TRACING_MARKER_TYPE: + case REACT_DEBUG_TRACING_MODE_TYPE: + default: { + if (typeof type === "object" && type !== null) { + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + fiberTag = ContextProvider; + break getTag; + case REACT_CONTEXT_TYPE: + fiberTag = ContextConsumer; + break getTag; + case REACT_FORWARD_REF_TYPE: + fiberTag = ForwardRef; + { + resolvedType = resolveForwardRefForHotReloading(resolvedType); + } + break getTag; + case REACT_MEMO_TYPE: + fiberTag = MemoComponent; + break getTag; + case REACT_LAZY_TYPE: + fiberTag = LazyComponent; + resolvedType = null; + break getTag; + } + } + var info = ""; + { + if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + } + var ownerName = owner ? getComponentNameFromFiber(owner) : null; + if (ownerName) { + info += "\n\nCheck the render method of `" + ownerName + "`."; + } + } + throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (type == null ? type : typeof type) + "." + info)); + } + } + } + var fiber = createFiber(fiberTag, pendingProps, key, mode); + fiber.elementType = type; + fiber.type = resolvedType; + fiber.lanes = lanes; + { + fiber._debugOwner = owner; + } + return fiber; + } + function createFiberFromElement(element, mode, lanes) { + var owner = null; + { + owner = element._owner; + } + var type = element.type; + var key = element.key; + var pendingProps = element.props; + var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes); + { + fiber._debugSource = element._source; + fiber._debugOwner = element._owner; + } + return fiber; + } + function createFiberFromFragment(elements, mode, lanes, key) { + var fiber = createFiber(Fragment, elements, key, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromProfiler(pendingProps, mode, lanes, key) { + { + if (typeof pendingProps.id !== "string") { + error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof pendingProps.id); + } + } + var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); + fiber.elementType = REACT_PROFILER_TYPE; + fiber.lanes = lanes; + { + fiber.stateNode = { + effectDuration: 0, + passiveEffectDuration: 0 + }; + } + return fiber; + } + function createFiberFromSuspense(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromSuspenseList(pendingProps, mode, lanes, key) { + var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode); + fiber.elementType = REACT_SUSPENSE_LIST_TYPE; + fiber.lanes = lanes; + return fiber; + } + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + var fiber = createFiber(OffscreenComponent, pendingProps, key, mode); + fiber.elementType = REACT_OFFSCREEN_TYPE; + fiber.lanes = lanes; + var primaryChildInstance = { + isHidden: false + }; + fiber.stateNode = primaryChildInstance; + return fiber; + } + function createFiberFromText(content, mode, lanes) { + var fiber = createFiber(HostText, content, null, mode); + fiber.lanes = lanes; + return fiber; + } + function createFiberFromPortal(portal, mode, lanes) { + var pendingProps = portal.children !== null ? portal.children : []; + var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); + fiber.lanes = lanes; + fiber.stateNode = { + containerInfo: portal.containerInfo, + pendingChildren: null, + // Used by persistent updates + implementation: portal.implementation + }; + return fiber; + } + function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError2) { + this.tag = tag; + this.containerInfo = containerInfo; + this.pendingChildren = null; + this.current = null; + this.pingCache = null; + this.finishedWork = null; + this.timeoutHandle = noTimeout; + this.context = null; + this.pendingContext = null; + this.callbackNode = null; + this.callbackPriority = NoLane; + this.eventTimes = createLaneMap(NoLanes); + this.expirationTimes = createLaneMap(NoTimestamp); + this.pendingLanes = NoLanes; + this.suspendedLanes = NoLanes; + this.pingedLanes = NoLanes; + this.expiredLanes = NoLanes; + this.mutableReadLanes = NoLanes; + this.finishedLanes = NoLanes; + this.entangledLanes = NoLanes; + this.entanglements = createLaneMap(NoLanes); + this.identifierPrefix = identifierPrefix; + this.onRecoverableError = onRecoverableError2; + { + this.effectDuration = 0; + this.passiveEffectDuration = 0; + } + { + switch (tag) { + case ConcurrentRoot: + this._debugRootType = hydrate ? "hydrateRoot()" : "createRoot()"; + break; + case LegacyRoot: + this._debugRootType = hydrate ? "hydrate()" : "render()"; + break; + } + } + } + function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError2, transitionCallbacks) { + var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError2); + var uninitializedFiber = createHostRootFiber(tag, isStrictMode); + root.current = uninitializedFiber; + uninitializedFiber.stateNode = root; + { + var _initialState = { + element: initialChildren, + isDehydrated: hydrate, + cache: null, + // not enabled yet + transitions: null, + pendingSuspenseBoundaries: null + }; + uninitializedFiber.memoizedState = _initialState; + } + initializeUpdateQueue(uninitializedFiber); + return root; + } + var ReactVersion = "18.2.0"; + var didWarnAboutNestedUpdates; + { + didWarnAboutNestedUpdates = false; + } + function getContextForSubtree(parentComponent) { + if (!parentComponent) { + return emptyContextObject; + } + var fiber = get(parentComponent); + var parentContext = findCurrentUnmaskedContext(fiber); + if (fiber.tag === ClassComponent) { + var Component = fiber.type; + if (isContextProvider(Component)) { + return processChildContext(fiber, Component, parentContext); + } + } + return parentContext; + } + function createContainer(containerInfo, tag, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError2, transitionCallbacks) { + var hydrate = false; + var initialChildren = null; + return createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, identifierPrefix, onRecoverableError2); + } + function updateContainer(element, container, parentComponent, callback) { + { + onScheduleRoot(container, element); + } + var current$1 = container.current; + var eventTime = requestEventTime(); + var lane = requestUpdateLane(current$1); + var context = getContextForSubtree(parentComponent); + if (container.context === null) { + container.context = context; + } else { + container.pendingContext = context; + } + { + if (isRendering && current !== null && !didWarnAboutNestedUpdates) { + didWarnAboutNestedUpdates = true; + error("Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", getComponentNameFromFiber(current) || "Unknown"); + } + } + var update = createUpdate(eventTime, lane); + update.payload = { + element + }; + callback = callback === void 0 ? null : callback; + if (callback !== null) { + { + if (typeof callback !== "function") { + error("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.", callback); + } + } + update.callback = callback; + } + var root = enqueueUpdate(current$1, update, lane); + if (root !== null) { + scheduleUpdateOnFiber(root, current$1, lane, eventTime); + entangleTransitions(root, current$1, lane); + } + return lane; + } + function getPublicRootInstance(container) { + var containerFiber = container.current; + if (!containerFiber.child) { + return null; + } + switch (containerFiber.child.tag) { + case HostComponent: + return getPublicInstance(containerFiber.child.stateNode); + default: + return containerFiber.child.stateNode; + } + } + var shouldErrorImpl = function(fiber) { + return null; + }; + function shouldError(fiber) { + return shouldErrorImpl(fiber); + } + var shouldSuspendImpl = function(fiber) { + return false; + }; + function shouldSuspend(fiber) { + return shouldSuspendImpl(fiber); + } + var overrideHookState = null; + var overrideHookStateDeletePath = null; + var overrideHookStateRenamePath = null; + var overrideProps = null; + var overridePropsDeletePath = null; + var overridePropsRenamePath = null; + var scheduleUpdate = null; + var setErrorHandler = null; + var setSuspenseHandler = null; + { + var copyWithDeleteImpl = function(obj, path, index2) { + var key = path[index2]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index2 + 1 === path.length) { + if (isArray(updated)) { + updated.splice(key, 1); + } else { + delete updated[key]; + } + return updated; + } + updated[key] = copyWithDeleteImpl(obj[key], path, index2 + 1); + return updated; + }; + var copyWithDelete = function(obj, path) { + return copyWithDeleteImpl(obj, path, 0); + }; + var copyWithRenameImpl = function(obj, oldPath, newPath, index2) { + var oldKey = oldPath[index2]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + if (index2 + 1 === oldPath.length) { + var newKey = newPath[index2]; + updated[newKey] = updated[oldKey]; + if (isArray(updated)) { + updated.splice(oldKey, 1); + } else { + delete updated[oldKey]; + } + } else { + updated[oldKey] = copyWithRenameImpl( + // $FlowFixMe number or string is fine here + obj[oldKey], + oldPath, + newPath, + index2 + 1 + ); + } + return updated; + }; + var copyWithRename = function(obj, oldPath, newPath) { + if (oldPath.length !== newPath.length) { + warn("copyWithRename() expects paths of the same length"); + return; + } else { + for (var i = 0; i < newPath.length - 1; i++) { + if (oldPath[i] !== newPath[i]) { + warn("copyWithRename() expects paths to be the same except for the deepest key"); + return; + } + } + } + return copyWithRenameImpl(obj, oldPath, newPath, 0); + }; + var copyWithSetImpl = function(obj, path, index2, value) { + if (index2 >= path.length) { + return value; + } + var key = path[index2]; + var updated = isArray(obj) ? obj.slice() : assign({}, obj); + updated[key] = copyWithSetImpl(obj[key], path, index2 + 1, value); + return updated; + }; + var copyWithSet = function(obj, path, value) { + return copyWithSetImpl(obj, path, 0, value); + }; + var findHook = function(fiber, id) { + var currentHook2 = fiber.memoizedState; + while (currentHook2 !== null && id > 0) { + currentHook2 = currentHook2.next; + id--; + } + return currentHook2; + }; + overrideHookState = function(fiber, id, path, value) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithSet(hook.memoizedState, path, value); + hook.memoizedState = newState; + hook.baseState = newState; + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; + overrideHookStateDeletePath = function(fiber, id, path) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithDelete(hook.memoizedState, path); + hook.memoizedState = newState; + hook.baseState = newState; + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; + overrideHookStateRenamePath = function(fiber, id, oldPath, newPath) { + var hook = findHook(fiber, id); + if (hook !== null) { + var newState = copyWithRename(hook.memoizedState, oldPath, newPath); + hook.memoizedState = newState; + hook.baseState = newState; + fiber.memoizedProps = assign({}, fiber.memoizedProps); + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + } + }; + overrideProps = function(fiber, path, value) { + fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + overridePropsDeletePath = function(fiber, path) { + fiber.pendingProps = copyWithDelete(fiber.memoizedProps, path); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + overridePropsRenamePath = function(fiber, oldPath, newPath) { + fiber.pendingProps = copyWithRename(fiber.memoizedProps, oldPath, newPath); + if (fiber.alternate) { + fiber.alternate.pendingProps = fiber.pendingProps; + } + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + scheduleUpdate = function(fiber) { + var root = enqueueConcurrentRenderForLane(fiber, SyncLane); + if (root !== null) { + scheduleUpdateOnFiber(root, fiber, SyncLane, NoTimestamp); + } + }; + setErrorHandler = function(newShouldErrorImpl) { + shouldErrorImpl = newShouldErrorImpl; + }; + setSuspenseHandler = function(newShouldSuspendImpl) { + shouldSuspendImpl = newShouldSuspendImpl; + }; + } + function findHostInstanceByFiber(fiber) { + var hostFiber = findCurrentHostFiber(fiber); + if (hostFiber === null) { + return null; + } + return hostFiber.stateNode; + } + function emptyFindFiberByHostInstance(instance) { + return null; + } + function getCurrentFiberForDevTools() { + return current; + } + function injectIntoDevTools(devToolsConfig) { + var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; + var ReactCurrentDispatcher2 = ReactSharedInternals.ReactCurrentDispatcher; + return injectInternals({ + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState, + overrideHookStateDeletePath, + overrideHookStateRenamePath, + overrideProps, + overridePropsDeletePath, + overridePropsRenamePath, + setErrorHandler, + setSuspenseHandler, + scheduleUpdate, + currentDispatcherRef: ReactCurrentDispatcher2, + findHostInstanceByFiber, + findFiberByHostInstance: findFiberByHostInstance || emptyFindFiberByHostInstance, + // React Refresh + findHostInstancesForRefresh, + scheduleRefresh, + scheduleRoot, + setRefreshHandler, + // Enables DevTools to append owner stacks to error messages in DEV mode. + getCurrentFiber: getCurrentFiberForDevTools, + // Enables DevTools to detect reconciler version rather than renderer version + // which may not match for third party renderers. + reconcilerVersion: ReactVersion + }); + } + var act2 = React2.unstable_act; + var defaultTestOptions = { + createNodeMock: function() { + return null; + } + }; + function toJSON(inst) { + if (inst.isHidden) { + return null; + } + switch (inst.tag) { + case "TEXT": + return inst.text; + case "INSTANCE": { + var _inst$props = inst.props, children = _inst$props.children, props = _objectWithoutPropertiesLoose(_inst$props, ["children"]); + var renderedChildren = null; + if (inst.children && inst.children.length) { + for (var i = 0; i < inst.children.length; i++) { + var renderedChild = toJSON(inst.children[i]); + if (renderedChild !== null) { + if (renderedChildren === null) { + renderedChildren = [renderedChild]; + } else { + renderedChildren.push(renderedChild); + } + } + } + } + var json = { + type: inst.type, + props, + children: renderedChildren + }; + Object.defineProperty(json, "$$typeof", { + value: Symbol.for("react.test.json") + }); + return json; + } + default: + throw new Error("Unexpected node type in toJSON: " + inst.tag); + } + } + function childrenToTree(node) { + if (!node) { + return null; + } + var children = nodeAndSiblingsArray(node); + if (children.length === 0) { + return null; + } else if (children.length === 1) { + return toTree(children[0]); + } + return flatten(children.map(toTree)); + } + function nodeAndSiblingsArray(nodeWithSibling) { + var array = []; + var node = nodeWithSibling; + while (node != null) { + array.push(node); + node = node.sibling; + } + return array; + } + function flatten(arr) { + var result = []; + var stack = [{ + i: 0, + array: arr + }]; + while (stack.length) { + var n = stack.pop(); + while (n.i < n.array.length) { + var el = n.array[n.i]; + n.i += 1; + if (isArray(el)) { + stack.push(n); + stack.push({ + i: 0, + array: el + }); + break; + } + result.push(el); + } + } + return result; + } + function toTree(node) { + if (node == null) { + return null; + } + switch (node.tag) { + case HostRoot: + return childrenToTree(node.child); + case HostPortal: + return childrenToTree(node.child); + case ClassComponent: + return { + nodeType: "component", + type: node.type, + props: assign({}, node.memoizedProps), + instance: node.stateNode, + rendered: childrenToTree(node.child) + }; + case FunctionComponent: + case SimpleMemoComponent: + return { + nodeType: "component", + type: node.type, + props: assign({}, node.memoizedProps), + instance: null, + rendered: childrenToTree(node.child) + }; + case HostComponent: { + return { + nodeType: "host", + type: node.type, + props: assign({}, node.memoizedProps), + instance: null, + // TODO: use createNodeMock here somehow? + rendered: flatten(nodeAndSiblingsArray(node.child).map(toTree)) + }; + } + case HostText: + return node.stateNode.text; + case Fragment: + case ContextProvider: + case ContextConsumer: + case Mode: + case Profiler: + case ForwardRef: + case MemoComponent: + case IncompleteClassComponent: + case ScopeComponent: + return childrenToTree(node.child); + default: + throw new Error("toTree() does not yet know how to handle nodes with tag=" + node.tag); + } + } + var validWrapperTypes = /* @__PURE__ */ new Set([ + FunctionComponent, + ClassComponent, + HostComponent, + ForwardRef, + MemoComponent, + SimpleMemoComponent, + // Normally skipped, but used when there's more than one root child. + HostRoot + ]); + function getChildren(parent) { + var children = []; + var startingNode = parent; + var node = startingNode; + if (node.child === null) { + return children; + } + node.child.return = node; + node = node.child; + outer: + while (true) { + var descend = false; + if (validWrapperTypes.has(node.tag)) { + children.push(wrapFiber(node)); + } else if (node.tag === HostText) { + { + checkPropStringCoercion(node.memoizedProps, "memoizedProps"); + } + children.push("" + node.memoizedProps); + } else { + descend = true; + } + if (descend && node.child !== null) { + node.child.return = node; + node = node.child; + continue; + } + while (node.sibling === null) { + if (node.return === startingNode) { + break outer; + } + node = node.return; + } + node.sibling.return = node.return; + node = node.sibling; + } + return children; + } + var ReactTestInstance = /* @__PURE__ */ function() { + var _proto = ReactTestInstance2.prototype; + _proto._currentFiber = function _currentFiber() { + var fiber = findCurrentFiberUsingSlowPath(this._fiber); + if (fiber === null) { + throw new Error("Can't read from currently-mounting component. This error is likely caused by a bug in React. Please file an issue."); + } + return fiber; + }; + function ReactTestInstance2(fiber) { + if (!validWrapperTypes.has(fiber.tag)) { + throw new Error("Unexpected object passed to ReactTestInstance constructor (tag: " + fiber.tag + "). This is probably a bug in React."); + } + this._fiber = fiber; + } + _proto.find = function find(predicate) { + return expectOne(this.findAll(predicate, { + deep: false + }), "matching custom predicate: " + predicate.toString()); + }; + _proto.findByType = function findByType(type) { + return expectOne(this.findAllByType(type, { + deep: false + }), 'with node type: "' + (getComponentNameFromType(type) || "Unknown") + '"'); + }; + _proto.findByProps = function findByProps(props) { + return expectOne(this.findAllByProps(props, { + deep: false + }), "with props: " + JSON.stringify(props)); + }; + _proto.findAll = function findAll(predicate) { + var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; + return _findAll(this, predicate, options); + }; + _proto.findAllByType = function findAllByType(type) { + var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; + return _findAll(this, function(node) { + return node.type === type; + }, options); + }; + _proto.findAllByProps = function findAllByProps(props) { + var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; + return _findAll(this, function(node) { + return node.props && propsMatch(node.props, props); + }, options); + }; + _createClass(ReactTestInstance2, [{ + key: "instance", + get: function() { + if (this._fiber.tag === HostComponent) { + return getPublicInstance(this._fiber.stateNode); + } else { + return this._fiber.stateNode; + } + } + }, { + key: "type", + get: function() { + return this._fiber.type; + } + }, { + key: "props", + get: function() { + return this._currentFiber().memoizedProps; + } + }, { + key: "parent", + get: function() { + var parent = this._fiber.return; + while (parent !== null) { + if (validWrapperTypes.has(parent.tag)) { + if (parent.tag === HostRoot) { + if (getChildren(parent).length < 2) { + return null; + } + } + return wrapFiber(parent); + } + parent = parent.return; + } + return null; + } + }, { + key: "children", + get: function() { + return getChildren(this._currentFiber()); + } + }]); + return ReactTestInstance2; + }(); + function _findAll(root, predicate, options) { + var deep = options ? options.deep : true; + var results = []; + if (predicate(root)) { + results.push(root); + if (!deep) { + return results; + } + } + root.children.forEach(function(child) { + if (typeof child === "string") { + return; + } + results.push.apply(results, _findAll(child, predicate, options)); + }); + return results; + } + function expectOne(all, message) { + if (all.length === 1) { + return all[0]; + } + var prefix2 = all.length === 0 ? "No instances found " : "Expected 1 but found " + all.length + " instances "; + throw new Error(prefix2 + message); + } + function propsMatch(props, filter) { + for (var key in filter) { + if (props[key] !== filter[key]) { + return false; + } + } + return true; + } + function onRecoverableError(error$1) { + error(error$1); + } + function create(element, options) { + var createNodeMock = defaultTestOptions.createNodeMock; + var isConcurrent = false; + var isStrictMode = false; + var concurrentUpdatesByDefault = null; + if (typeof options === "object" && options !== null) { + if (typeof options.createNodeMock === "function") { + createNodeMock = options.createNodeMock; + } + if (options.unstable_isConcurrent === true) { + isConcurrent = true; + } + if (options.unstable_strictMode === true) { + isStrictMode = true; + } + } + var container = { + children: [], + createNodeMock, + tag: "CONTAINER" + }; + var root = createContainer(container, isConcurrent ? ConcurrentRoot : LegacyRoot, null, isStrictMode, concurrentUpdatesByDefault, "", onRecoverableError); + if (root == null) { + throw new Error("something went wrong"); + } + updateContainer(element, root, null, null); + var entry = { + _Scheduler: Scheduler, + root: void 0, + // makes flow happy + // we define a 'getter' for 'root' below using 'Object.defineProperty' + toJSON: function() { + if (root == null || root.current == null || container == null) { + return null; + } + if (container.children.length === 0) { + return null; + } + if (container.children.length === 1) { + return toJSON(container.children[0]); + } + if (container.children.length === 2 && container.children[0].isHidden === true && container.children[1].isHidden === false) { + return toJSON(container.children[1]); + } + var renderedChildren = null; + if (container.children && container.children.length) { + for (var i = 0; i < container.children.length; i++) { + var renderedChild = toJSON(container.children[i]); + if (renderedChild !== null) { + if (renderedChildren === null) { + renderedChildren = [renderedChild]; + } else { + renderedChildren.push(renderedChild); + } + } + } + } + return renderedChildren; + }, + toTree: function() { + if (root == null || root.current == null) { + return null; + } + return toTree(root.current); + }, + update: function(newElement) { + if (root == null || root.current == null) { + return; + } + updateContainer(newElement, root, null, null); + }, + unmount: function() { + if (root == null || root.current == null) { + return; + } + updateContainer(null, root, null, null); + container = null; + root = null; + }, + getInstance: function() { + if (root == null || root.current == null) { + return null; + } + return getPublicRootInstance(root); + }, + unstable_flushSync: flushSync + }; + Object.defineProperty(entry, "root", { + configurable: true, + enumerable: true, + get: function() { + if (root === null) { + throw new Error("Can't access .root on unmounted test renderer"); + } + var children = getChildren(root.current); + if (children.length === 0) { + throw new Error("Can't access .root on unmounted test renderer"); + } else if (children.length === 1) { + return children[0]; + } else { + return wrapFiber(root.current); + } + } + }); + return entry; + } + var fiberToWrapper = /* @__PURE__ */ new WeakMap(); + function wrapFiber(fiber) { + var wrapper = fiberToWrapper.get(fiber); + if (wrapper === void 0 && fiber.alternate !== null) { + wrapper = fiberToWrapper.get(fiber.alternate); + } + if (wrapper === void 0) { + wrapper = new ReactTestInstance(fiber); + fiberToWrapper.set(fiber, wrapper); + } + return wrapper; + } + injectIntoDevTools({ + findFiberByHostInstance: function() { + throw new Error("TestRenderer does not support findFiberByHostInstance()"); + }, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-test-renderer" + }); + exports._Scheduler = Scheduler; + exports.act = act2; + exports.create = create; + exports.unstable_batchedUpdates = batchedUpdates; + })(); + } + } +}); + +// node_modules/react-test-renderer/index.js +var require_react_test_renderer = __commonJS({ + "node_modules/react-test-renderer/index.js"(exports, module) { + "use strict"; + init_cjs_shim(); + if (process.env.NODE_ENV === "production") { + module.exports = require_react_test_renderer_production_min(); + } else { + module.exports = require_react_test_renderer_development(); + } + } +}); + +// src/LoginPage/react-test-renderer/node.test.tsx +init_cjs_shim(); + +// src/LoginPage/test.ts +init_cjs_shim(); +var LoginPageSpecs = (Suite, Given, When, Then, Check) => { + return [ + Suite.Default( + "Testing the LoginPage as react", + { + test0: Given.default( + [], + [When.TheEmailIsSetTo("adam@email.com")], + [Then.TheEmailIs("adam@email.com")] + ), + test1: Given.default( + [], + [ + When.TheEmailIsSetTo("adam@email.com"), + When.ThePasswordIsSetTo("secret") + ], + [ + Then.TheEmailIsNot("wade@rpc"), + Then.TheEmailIs("adam@email.com"), + Then.ThePasswordIs("secret"), + Then.ThePasswordIsNot("idk") + ] + ), + test2: Given.default( + [], + [When.TheEmailIsSetTo("adam@email.com")], + [Then.ThereIsNotAnEmailError()] + ), + test3: Given.default( + [], + [When.TheEmailIsSetTo("bob"), When.TheLoginIsSubmitted()], + [Then.ThereIsAnEmailError()] + ), + test4: Given.default( + [], + [ + When.TheEmailIsSetTo("adam@mail.com"), + When.ThePasswordIsSetTo("foso") + ], + [Then.ThereIsNotAnEmailError()] + ), + test5: Given.default( + [], + [ + When.TheEmailIsSetTo("adam@mail.com"), + When.ThePasswordIsSetTo("foso") + ], + [Then.ThereIsNotAnEmailError()] + ) + }, + [] + ) + ]; +}; + +// src/LoginPage/index.tsx +init_cjs_shim(); +var import_react = __toESM(require_react(), 1); +var import_react_redux = __toESM(require_lib(), 1); +var core = app_default(); +var selector = core.select.loginPageSelection; +var actions = core.app.actions; +var store = core.store; +var emailwarning = "Something isn\u2019t right. Please double check your email"; +function LoginPage() { + const selection = (0, import_react_redux.useSelector)(selector); + return /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h2", null, "Welcome back!"), /* @__PURE__ */ import_react.default.createElement("form", null, /* @__PURE__ */ import_react.default.createElement("input", { type: "email", value: selection.email, onChange: (e) => store.dispatch(actions.setEmail(e.target.value)) }), /* @__PURE__ */ import_react.default.createElement("p", { id: "invalid-email-warning", className: "warnin" }, selection.error === "invalidEmail" && emailwarning), /* @__PURE__ */ import_react.default.createElement("br", null), /* @__PURE__ */ import_react.default.createElement("input", { type: "password", value: selection.password, onChange: (e) => store.dispatch(actions.setPassword(e.target.value)) }), /* @__PURE__ */ import_react.default.createElement("p", { id: "error" }, selection.error === "credentialFail" && "You entered an incorrect email, password, or both."), /* @__PURE__ */ import_react.default.createElement("br", null), /* @__PURE__ */ import_react.default.createElement("button", { disabled: selection.disableSubmit, onClick: (event) => { + store.dispatch(actions.signIn()); + } }, "Sign In")), /* @__PURE__ */ import_react.default.createElement("pre", null, JSON.stringify(selection, null, 2))); +} +function LoginPage_default() { + return /* @__PURE__ */ import_react.default.createElement(import_react_redux.Provider, { store }, /* @__PURE__ */ import_react.default.createElement(LoginPage, null)); +} + +// src/LoginPage/react-test-renderer/test.tsx +init_cjs_shim(); +var import_react_test_renderer = __toESM(require_react_test_renderer(), 1); +var LoginPageReactTestRendererTestInterface = { + butThen: async function(s, thenCB, tr) { + return thenCB(s); + }, + beforeEach: async function(CComponent, props) { + let component; + let elem; + await (0, import_react_test_renderer.act)(async () => { + elem = CComponent(); + component = import_react_test_renderer.default.create(elem); + }); + await component.root.props.store.dispatch(actions.reset()); + return component; + }, + andWhen: async function(renderer2, whenCB) { + await (0, import_react_test_renderer.act)(() => whenCB(renderer2)); + return renderer2; + } +}; +var loginPageImpl = { + suites: { + Default: "a default suite" + }, + givens: { + default: () => (i) => { + return i; + } + }, + whens: { + TheLoginIsSubmitted: () => (component) => component.root.findByType("button").props.onClick(), + TheEmailIsSetTo: (email) => (component) => { + component.root.findByProps({ type: "email" }).props.onChange({ target: { value: email } }); + }, + ThePasswordIsSetTo: (password) => (component) => component.root.findByProps({ type: "password" }).props.onChange({ target: { value: password } }) + }, + thens: { + TheEmailIs: (email) => (component) => { + assert.equal( + component.root.findByProps({ type: "email" }).props.value, + email + ); + }, + TheEmailIsNot: (email) => (component) => assert.notEqual( + component.root.findByProps({ type: "email" }).props.value, + email + ), + ThePasswordIs: (password) => (component) => assert.equal( + component.root.findByProps({ type: "password" }).props.value, + password + ), + ThePasswordIsNot: (password) => (component) => assert.notEqual( + component.root.findByProps({ type: "password" }).props.value, + password + ), + ThereIsAnEmailError: () => (component) => { + assert.equal( + component.root.findByProps({ id: "invalid-email-warning" }).children[0], + emailwarning + ); + }, + ThereIsNotAnEmailError: () => (component) => { + const errorField = component.root.findByProps({ id: "invalid-email-warning" }); + console.log(errorField.children); + assert.isEmpty(errorField.children); + } + }, + checks: { + default: () => () => { + return {}; + } + } +}; + +// src/LoginPage/react-test-renderer/node.test.tsx var node_test_default = node_default( loginPageImpl, LoginPageSpecs, @@ -31034,6 +50264,28 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.developme * LICENSE file in the root directory of this source tree. *) +scheduler/cjs/scheduler.production.min.js: + (** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +scheduler/cjs/scheduler.development.js: + (** + * @license React + * scheduler.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + react-dom/cjs/react-dom.production.min.js: (** * @license React @@ -31110,4 +50362,48 @@ react-is/cjs/react-is.development.js: * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) + +scheduler/cjs/scheduler-unstable_mock.production.min.js: + (** + * @license React + * scheduler-unstable_mock.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +scheduler/cjs/scheduler-unstable_mock.development.js: + (** + * @license React + * scheduler-unstable_mock.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react-test-renderer/cjs/react-test-renderer.production.min.js: + (** + * @license React + * react-test-renderer.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) + +react-test-renderer/cjs/react-test-renderer.development.js: + (** + * @license React + * react-test-renderer.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) */ diff --git a/docs/node/src/LoginPage/react-test-renderer/node.test/log.txt b/docs/node/src/LoginPage/react-test-renderer/node.test/log.txt index de751a9e..d3ce9fd6 100644 --- a/docs/node/src/LoginPage/react-test-renderer/node.test/log.txt +++ b/docs/node/src/LoginPage/react-test-renderer/node.test/log.txt @@ -1,4 +1,4 @@ -test resources: ,{"scheduled":true,"name":"./src/LoginPage/react-test-renderer/node.test.tsx","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/LoginPage/react-test-renderer/node.test.tsx","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing the LoginPage as react diff --git a/docs/node/src/MyFirstContract.basic.test.mjs b/docs/node/src/MyFirstContract.basic.test.mjs index 3e43d705..aaa17aa0 100644 --- a/docs/node/src/MyFirstContract.basic.test.mjs +++ b/docs/node/src/MyFirstContract.basic.test.mjs @@ -1,22 +1,16 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { Node_default -} from "../chunk-O3OSUFIX.mjs"; +} from "../chunk-47FK6YVH.mjs"; import { assert -} from "../chunk-7DTFZFDN.mjs"; -import { - require_get_stream, - require_graceful_fs, - require_once -} from "../chunk-CDRQ6FZS.mjs"; -import "../chunk-6SZJES2S.mjs"; -import { - require_node_gyp_build -} from "../chunk-BRBW5YJH.mjs"; -import "../chunk-S5L4ZC6L.mjs"; -import "../chunk-LE3VN4X4.mjs"; -import "../chunk-GF7QN4NN.mjs"; +} from "../chunk-MSVTAS6Q.mjs"; +import "../chunk-3P3QDLUF.mjs"; +import "../chunk-RBWPBMY4.mjs"; +import "../chunk-PJC2V65J.mjs"; +import "../chunk-VDOS7AVZ.mjs"; +import "../chunk-FLSG3ZVV.mjs"; +import "../chunk-CTKBT5JH.mjs"; import { __commonJS, __esm, @@ -25,11 +19,11 @@ import { __toCommonJS, __toESM, init_cjs_shim -} from "../chunk-4IESOCHA.mjs"; +} from "../chunk-THMF2HPO.mjs"; -// node_modules/graphology/dist/graphology.umd.js +// ../testeranto/node_modules/graphology/dist/graphology.umd.js var require_graphology_umd = __commonJS({ - "node_modules/graphology/dist/graphology.umd.js"(exports2, module2) { + "../testeranto/node_modules/graphology/dist/graphology.umd.js"(exports2, module2) { init_cjs_shim(); (function(global2, factory) { typeof exports2 === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, global2.graphology = factory()); @@ -20498,6 +20492,211 @@ var require_utils7 = __commonJS({ } }); +// node_modules/node-gyp-build/node-gyp-build.js +var require_node_gyp_build = __commonJS({ + "node_modules/node-gyp-build/node-gyp-build.js"(exports2, module2) { + init_cjs_shim(); + var fs = __require("fs"); + var path = __require("path"); + var os = __require("os"); + var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; + var vars = process.config && process.config.variables || {}; + var prebuildsOnly = !!process.env.PREBUILDS_ONLY; + var abi = process.versions.modules; + var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node"; + var arch = process.env.npm_config_arch || os.arch(); + var platform = process.env.npm_config_platform || os.platform(); + var libc = process.env.LIBC || (isAlpine(platform) ? "musl" : "glibc"); + var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || ""; + var uv = (process.versions.uv || "").split(".")[0]; + module2.exports = load; + function load(dir) { + return runtimeRequire(load.resolve(dir)); + } + load.resolve = load.path = function(dir) { + dir = path.resolve(dir || "."); + try { + var name2 = runtimeRequire(path.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_"); + if (process.env[name2 + "_PREBUILD"]) + dir = process.env[name2 + "_PREBUILD"]; + } catch (err) { + } + if (!prebuildsOnly) { + var release = getFirst(path.join(dir, "build/Release"), matchBuild); + if (release) + return release; + var debug = getFirst(path.join(dir, "build/Debug"), matchBuild); + if (debug) + return debug; + } + var prebuild = resolve(dir); + if (prebuild) + return prebuild; + var nearby = resolve(path.dirname(process.execPath)); + if (nearby) + return nearby; + var target = [ + "platform=" + platform, + "arch=" + arch, + "runtime=" + runtime, + "abi=" + abi, + "uv=" + uv, + armv ? "armv=" + armv : "", + "libc=" + libc, + "node=" + process.versions.node, + process.versions.electron ? "electron=" + process.versions.electron : "", + typeof __webpack_require__ === "function" ? "webpack=true" : "" + // eslint-disable-line + ].filter(Boolean).join(" "); + throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n"); + function resolve(dir2) { + var tuples = readdirSync(path.join(dir2, "prebuilds")).map(parseTuple); + var tuple = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0]; + if (!tuple) + return; + var prebuilds = path.join(dir2, "prebuilds", tuple.name); + var parsed = readdirSync(prebuilds).map(parseTags); + var candidates = parsed.filter(matchTags(runtime, abi)); + var winner = candidates.sort(compareTags(runtime))[0]; + if (winner) + return path.join(prebuilds, winner.file); + } + }; + function readdirSync(dir) { + try { + return fs.readdirSync(dir); + } catch (err) { + return []; + } + } + function getFirst(dir, filter) { + var files = readdirSync(dir).filter(filter); + return files[0] && path.join(dir, files[0]); + } + function matchBuild(name2) { + return /\.node$/.test(name2); + } + function parseTuple(name2) { + var arr = name2.split("-"); + if (arr.length !== 2) + return; + var platform2 = arr[0]; + var architectures = arr[1].split("+"); + if (!platform2) + return; + if (!architectures.length) + return; + if (!architectures.every(Boolean)) + return; + return { name: name2, platform: platform2, architectures }; + } + function matchTuple(platform2, arch2) { + return function(tuple) { + if (tuple == null) + return false; + if (tuple.platform !== platform2) + return false; + return tuple.architectures.includes(arch2); + }; + } + function compareTuples(a, b) { + return a.architectures.length - b.architectures.length; + } + function parseTags(file) { + var arr = file.split("."); + var extension = arr.pop(); + var tags = { file, specificity: 0 }; + if (extension !== "node") + return; + for (var i = 0; i < arr.length; i++) { + var tag = arr[i]; + if (tag === "node" || tag === "electron" || tag === "node-webkit") { + tags.runtime = tag; + } else if (tag === "napi") { + tags.napi = true; + } else if (tag.slice(0, 3) === "abi") { + tags.abi = tag.slice(3); + } else if (tag.slice(0, 2) === "uv") { + tags.uv = tag.slice(2); + } else if (tag.slice(0, 4) === "armv") { + tags.armv = tag.slice(4); + } else if (tag === "glibc" || tag === "musl") { + tags.libc = tag; + } else { + continue; + } + tags.specificity++; + } + return tags; + } + function matchTags(runtime2, abi2) { + return function(tags) { + if (tags == null) + return false; + if (tags.runtime && tags.runtime !== runtime2 && !runtimeAgnostic(tags)) + return false; + if (tags.abi && tags.abi !== abi2 && !tags.napi) + return false; + if (tags.uv && tags.uv !== uv) + return false; + if (tags.armv && tags.armv !== armv) + return false; + if (tags.libc && tags.libc !== libc) + return false; + return true; + }; + } + function runtimeAgnostic(tags) { + return tags.runtime === "node" && tags.napi; + } + function compareTags(runtime2) { + return function(a, b) { + if (a.runtime !== b.runtime) { + return a.runtime === runtime2 ? -1 : 1; + } else if (a.abi !== b.abi) { + return a.abi ? -1 : 1; + } else if (a.specificity !== b.specificity) { + return a.specificity > b.specificity ? -1 : 1; + } else { + return 0; + } + }; + } + function isNwjs() { + return !!(process.versions && process.versions.nw); + } + function isElectron() { + if (process.versions && process.versions.electron) + return true; + if (process.env.ELECTRON_RUN_AS_NODE) + return true; + return typeof window !== "undefined" && window.process && window.process.type === "renderer"; + } + function isAlpine(platform2) { + return platform2 === "linux" && fs.existsSync("/etc/alpine-release"); + } + load.parseTags = parseTags; + load.matchTags = matchTags; + load.compareTags = compareTags; + load.parseTuple = parseTuple; + load.matchTuple = matchTuple; + load.compareTuples = compareTuples; + } +}); + +// node_modules/node-gyp-build/index.js +var require_node_gyp_build2 = __commonJS({ + "node_modules/node-gyp-build/index.js"(exports2, module2) { + init_cjs_shim(); + var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require; + if (typeof runtimeRequire.addon === "function") { + module2.exports = runtimeRequire.addon.bind(runtimeRequire); + } else { + module2.exports = require_node_gyp_build(); + } + } +}); + // node_modules/websocket/node_modules/bufferutil/fallback.js var require_fallback = __commonJS({ "node_modules/websocket/node_modules/bufferutil/fallback.js"(exports2, module2) { @@ -20524,7 +20723,7 @@ var require_bufferutil = __commonJS({ "use strict"; init_cjs_shim(); try { - module2.exports = require_node_gyp_build()(__dirname); + module2.exports = require_node_gyp_build2()(__dirname); } catch (e) { module2.exports = require_fallback(); } @@ -20947,7 +21146,7 @@ var require_utf_8_validate = __commonJS({ "use strict"; init_cjs_shim(); try { - module2.exports = require_node_gyp_build()(__dirname); + module2.exports = require_node_gyp_build2()(__dirname); } catch (e) { module2.exports = require_fallback2(); } @@ -27737,7 +27936,7 @@ var require_oboe_node = __commonJS({ /******/ function(modules) { var installedModules = {}; - function __webpack_require__(moduleId) { + function __webpack_require__2(moduleId) { if (installedModules[moduleId]) { return installedModules[moduleId].exports; } @@ -27750,14 +27949,14 @@ var require_oboe_node = __commonJS({ exports: {} /******/ }; - modules[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__); + modules[moduleId].call(module3.exports, module3, module3.exports, __webpack_require__2); module3.l = true; return module3.exports; } - __webpack_require__.m = modules; - __webpack_require__.c = installedModules; - __webpack_require__.d = function(exports3, name2, getter) { - if (!__webpack_require__.o(exports3, name2)) { + __webpack_require__2.m = modules; + __webpack_require__2.c = installedModules; + __webpack_require__2.d = function(exports3, name2, getter) { + if (!__webpack_require__2.o(exports3, name2)) { Object.defineProperty(exports3, name2, { /******/ configurable: false, @@ -27769,7 +27968,7 @@ var require_oboe_node = __commonJS({ }); } }; - __webpack_require__.n = function(module3) { + __webpack_require__2.n = function(module3) { var getter = module3 && module3.__esModule ? ( /******/ function getDefault() { @@ -27781,53 +27980,53 @@ var require_oboe_node = __commonJS({ return module3; } ); - __webpack_require__.d(getter, "a", getter); + __webpack_require__2.d(getter, "a", getter); return getter; }; - __webpack_require__.o = function(object, property) { + __webpack_require__2.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; - __webpack_require__.p = ""; - return __webpack_require__(__webpack_require__.s = 8); + __webpack_require__2.p = ""; + return __webpack_require__2(__webpack_require__2.s = 8); }([ /* 0 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "j", function() { + __webpack_require__2.d(__webpack_exports__, "j", function() { return partialComplete; }); - __webpack_require__.d(__webpack_exports__, "d", function() { + __webpack_require__2.d(__webpack_exports__, "d", function() { return compose2; }); - __webpack_require__.d(__webpack_exports__, "c", function() { + __webpack_require__2.d(__webpack_exports__, "c", function() { return attr; }); - __webpack_require__.d(__webpack_exports__, "h", function() { + __webpack_require__2.d(__webpack_exports__, "h", function() { return lazyUnion; }); - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return apply; }); - __webpack_require__.d(__webpack_exports__, "k", function() { + __webpack_require__2.d(__webpack_exports__, "k", function() { return varArgs; }); - __webpack_require__.d(__webpack_exports__, "e", function() { + __webpack_require__2.d(__webpack_exports__, "e", function() { return flip; }); - __webpack_require__.d(__webpack_exports__, "g", function() { + __webpack_require__2.d(__webpack_exports__, "g", function() { return lazyIntersection; }); - __webpack_require__.d(__webpack_exports__, "i", function() { + __webpack_require__2.d(__webpack_exports__, "i", function() { return noop; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return always; }); - __webpack_require__.d(__webpack_exports__, "f", function() { + __webpack_require__2.d(__webpack_exports__, "f", function() { return functor; }); - var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__(1); + var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__2(1); var partialComplete = varArgs(function(fn, args) { var numBoundArgs = args.length; return varArgs(function(callArgs) { @@ -27921,48 +28120,48 @@ var require_oboe_node = __commonJS({ }, /* 1 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "d", function() { + __webpack_require__2.d(__webpack_exports__, "d", function() { return cons; }); - __webpack_require__.d(__webpack_exports__, "g", function() { + __webpack_require__2.d(__webpack_exports__, "g", function() { return head; }); - __webpack_require__.d(__webpack_exports__, "l", function() { + __webpack_require__2.d(__webpack_exports__, "l", function() { return tail; }); - __webpack_require__.d(__webpack_exports__, "c", function() { + __webpack_require__2.d(__webpack_exports__, "c", function() { return arrayAsList; }); - __webpack_require__.d(__webpack_exports__, "h", function() { + __webpack_require__2.d(__webpack_exports__, "h", function() { return list; }); - __webpack_require__.d(__webpack_exports__, "i", function() { + __webpack_require__2.d(__webpack_exports__, "i", function() { return listAsArray; }); - __webpack_require__.d(__webpack_exports__, "j", function() { + __webpack_require__2.d(__webpack_exports__, "j", function() { return map; }); - __webpack_require__.d(__webpack_exports__, "f", function() { + __webpack_require__2.d(__webpack_exports__, "f", function() { return foldR; }); - __webpack_require__.d(__webpack_exports__, "m", function() { + __webpack_require__2.d(__webpack_exports__, "m", function() { return without; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return all; }); - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return applyEach; }); - __webpack_require__.d(__webpack_exports__, "k", function() { + __webpack_require__2.d(__webpack_exports__, "k", function() { return reverseList; }); - __webpack_require__.d(__webpack_exports__, "e", function() { + __webpack_require__2.d(__webpack_exports__, "e", function() { return first; }); - var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__2(0); function cons(x, xs) { return [x, xs]; } @@ -28038,25 +28237,25 @@ var require_oboe_node = __commonJS({ }, /* 2 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "c", function() { + __webpack_require__2.d(__webpack_exports__, "c", function() { return isOfType; }); - __webpack_require__.d(__webpack_exports__, "e", function() { + __webpack_require__2.d(__webpack_exports__, "e", function() { return len; }); - __webpack_require__.d(__webpack_exports__, "d", function() { + __webpack_require__2.d(__webpack_exports__, "d", function() { return isString; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return defined; }); - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return hasAllProperties; }); - var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__(1); - var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__2(1); + var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__2(0); function isOfType(T, maybeSomething) { return maybeSomething && maybeSomething.constructor === T; } @@ -28082,51 +28281,51 @@ var require_oboe_node = __commonJS({ }, /* 3 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "f", function() { + __webpack_require__2.d(__webpack_exports__, "f", function() { return NODE_OPENED; }); - __webpack_require__.d(__webpack_exports__, "d", function() { + __webpack_require__2.d(__webpack_exports__, "d", function() { return NODE_CLOSED; }); - __webpack_require__.d(__webpack_exports__, "g", function() { + __webpack_require__2.d(__webpack_exports__, "g", function() { return NODE_SWAP; }); - __webpack_require__.d(__webpack_exports__, "e", function() { + __webpack_require__2.d(__webpack_exports__, "e", function() { return NODE_DROP; }); - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return FAIL_EVENT; }); - __webpack_require__.d(__webpack_exports__, "h", function() { + __webpack_require__2.d(__webpack_exports__, "h", function() { return ROOT_NODE_FOUND; }); - __webpack_require__.d(__webpack_exports__, "i", function() { + __webpack_require__2.d(__webpack_exports__, "i", function() { return ROOT_PATH_FOUND; }); - __webpack_require__.d(__webpack_exports__, "c", function() { + __webpack_require__2.d(__webpack_exports__, "c", function() { return HTTP_START; }); - __webpack_require__.d(__webpack_exports__, "m", function() { + __webpack_require__2.d(__webpack_exports__, "m", function() { return STREAM_DATA; }); - __webpack_require__.d(__webpack_exports__, "n", function() { + __webpack_require__2.d(__webpack_exports__, "n", function() { return STREAM_END; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return ABORTING; }); - __webpack_require__.d(__webpack_exports__, "j", function() { + __webpack_require__2.d(__webpack_exports__, "j", function() { return SAX_KEY; }); - __webpack_require__.d(__webpack_exports__, "l", function() { + __webpack_require__2.d(__webpack_exports__, "l", function() { return SAX_VALUE_OPEN; }); - __webpack_require__.d(__webpack_exports__, "k", function() { + __webpack_require__2.d(__webpack_exports__, "k", function() { return SAX_VALUE_CLOSE; }); - __webpack_require__.d(__webpack_exports__, "o", function() { + __webpack_require__2.d(__webpack_exports__, "o", function() { return errorReport; }); var _S = 1; @@ -28159,18 +28358,18 @@ var require_oboe_node = __commonJS({ }, /* 4 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return namedNode; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return keyOf; }); - __webpack_require__.d(__webpack_exports__, "c", function() { + __webpack_require__2.d(__webpack_exports__, "c", function() { return nodeOf; }); - var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__2(0); function namedNode(key, node) { return { key, node }; } @@ -28185,16 +28384,16 @@ var require_oboe_node = __commonJS({ }, /* 5 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return oboe; }); - var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__(1); - var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__(0); - var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(2); - var __WEBPACK_IMPORTED_MODULE_3__defaults__ = __webpack_require__(9); - var __WEBPACK_IMPORTED_MODULE_4__wire__ = __webpack_require__(10); + var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__2(1); + var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__2(0); + var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__2(2); + var __WEBPACK_IMPORTED_MODULE_3__defaults__ = __webpack_require__2(9); + var __WEBPACK_IMPORTED_MODULE_4__wire__ = __webpack_require__2(10); function oboe(arg1) { var nodeStreamMethodNames = Object(__WEBPACK_IMPORTED_MODULE_0__lists__[ "h" @@ -28256,18 +28455,18 @@ var require_oboe_node = __commonJS({ }, /* 6 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return incrementalContentBuilder; }); - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return ROOT_PATH; }); - var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__(3); - var __WEBPACK_IMPORTED_MODULE_1__ascent__ = __webpack_require__(4); - var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(2); - var __WEBPACK_IMPORTED_MODULE_3__lists__ = __webpack_require__(1); + var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__2(3); + var __WEBPACK_IMPORTED_MODULE_1__ascent__ = __webpack_require__2(4); + var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__2(2); + var __WEBPACK_IMPORTED_MODULE_3__lists__ = __webpack_require__2(1); var ROOT_PATH = {}; function incrementalContentBuilder(oboeBus) { var emitNodeOpened = oboeBus(__WEBPACK_IMPORTED_MODULE_0__events__[ @@ -28406,10 +28605,10 @@ var require_oboe_node = __commonJS({ }, /* 8 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); - var __WEBPACK_IMPORTED_MODULE_0__publicApi__ = __webpack_require__(5); + var __WEBPACK_IMPORTED_MODULE_0__publicApi__ = __webpack_require__2(5); __webpack_exports__["default"] = __WEBPACK_IMPORTED_MODULE_0__publicApi__[ "a" /* oboe */ @@ -28417,12 +28616,12 @@ var require_oboe_node = __commonJS({ }, /* 9 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return applyDefaults; }); - var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__(2); + var __WEBPACK_IMPORTED_MODULE_0__util__ = __webpack_require__2(2); function applyDefaults(passthrough, url, httpMethodName, body, headers, withCredentials, cached) { headers = headers ? JSON.parse(JSON.stringify(headers)) : {}; if (body) { @@ -28453,19 +28652,19 @@ var require_oboe_node = __commonJS({ }, /* 10 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return wire; }); - var __WEBPACK_IMPORTED_MODULE_0__pubSub__ = __webpack_require__(11); - var __WEBPACK_IMPORTED_MODULE_1__ascentManager__ = __webpack_require__(13); - var __WEBPACK_IMPORTED_MODULE_2__incrementalContentBuilder__ = __webpack_require__(6); - var __WEBPACK_IMPORTED_MODULE_3__patternAdapter__ = __webpack_require__(14); - var __WEBPACK_IMPORTED_MODULE_4__jsonPath__ = __webpack_require__(15); - var __WEBPACK_IMPORTED_MODULE_5__instanceApi__ = __webpack_require__(17); - var __WEBPACK_IMPORTED_MODULE_6__libs_clarinet__ = __webpack_require__(18); - var __WEBPACK_IMPORTED_MODULE_7__streamingHttp_node__ = __webpack_require__(19); + var __WEBPACK_IMPORTED_MODULE_0__pubSub__ = __webpack_require__2(11); + var __WEBPACK_IMPORTED_MODULE_1__ascentManager__ = __webpack_require__2(13); + var __WEBPACK_IMPORTED_MODULE_2__incrementalContentBuilder__ = __webpack_require__2(6); + var __WEBPACK_IMPORTED_MODULE_3__patternAdapter__ = __webpack_require__2(14); + var __WEBPACK_IMPORTED_MODULE_4__jsonPath__ = __webpack_require__2(15); + var __WEBPACK_IMPORTED_MODULE_5__instanceApi__ = __webpack_require__2(17); + var __WEBPACK_IMPORTED_MODULE_6__libs_clarinet__ = __webpack_require__2(18); + var __WEBPACK_IMPORTED_MODULE_7__streamingHttp_node__ = __webpack_require__2(19); function wire(httpMethodName, contentSource, body, headers, withCredentials) { var oboeBus = Object(__WEBPACK_IMPORTED_MODULE_0__pubSub__[ "a" @@ -28514,13 +28713,13 @@ var require_oboe_node = __commonJS({ }, /* 11 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return pubSub; }); - var __WEBPACK_IMPORTED_MODULE_0__singleEventPubSub__ = __webpack_require__(12); - var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__singleEventPubSub__ = __webpack_require__2(12); + var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__2(0); function pubSub() { var singles = {}; var newListener = newSingle("newListener"); @@ -28555,14 +28754,14 @@ var require_oboe_node = __commonJS({ }, /* 12 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return singleEventPubSub; }); - var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__(1); - var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(2); - var __WEBPACK_IMPORTED_MODULE_2__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__lists__ = __webpack_require__2(1); + var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__2(2); + var __WEBPACK_IMPORTED_MODULE_2__functional__ = __webpack_require__2(0); function singleEventPubSub(eventType, newListener, removeListener) { var listenerTupleList, listenerList; function hasId(id) { @@ -28648,14 +28847,14 @@ var require_oboe_node = __commonJS({ }, /* 13 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return ascentManager; }); - var __WEBPACK_IMPORTED_MODULE_0__ascent__ = __webpack_require__(4); - var __WEBPACK_IMPORTED_MODULE_1__events__ = __webpack_require__(3); - var __WEBPACK_IMPORTED_MODULE_2__lists__ = __webpack_require__(1); + var __WEBPACK_IMPORTED_MODULE_0__ascent__ = __webpack_require__2(4); + var __WEBPACK_IMPORTED_MODULE_1__events__ = __webpack_require__2(3); + var __WEBPACK_IMPORTED_MODULE_2__lists__ = __webpack_require__2(1); function ascentManager(oboeBus, handlers) { "use strict"; var listenerId = {}; @@ -28736,14 +28935,14 @@ var require_oboe_node = __commonJS({ }, /* 14 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return patternAdapter; }); - var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__(3); - var __WEBPACK_IMPORTED_MODULE_1__lists__ = __webpack_require__(1); - var __WEBPACK_IMPORTED_MODULE_2__ascent__ = __webpack_require__(4); + var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__2(3); + var __WEBPACK_IMPORTED_MODULE_1__lists__ = __webpack_require__2(1); + var __WEBPACK_IMPORTED_MODULE_2__ascent__ = __webpack_require__2(4); function patternAdapter(oboeBus, jsonPathCompiler) { var predicateEventMap = { node: oboeBus(__WEBPACK_IMPORTED_MODULE_0__events__[ @@ -28831,17 +29030,17 @@ var require_oboe_node = __commonJS({ }, /* 15 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return jsonPathCompiler; }); - var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__(0); - var __WEBPACK_IMPORTED_MODULE_1__lists__ = __webpack_require__(1); - var __WEBPACK_IMPORTED_MODULE_2__ascent__ = __webpack_require__(4); - var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(2); - var __WEBPACK_IMPORTED_MODULE_4__incrementalContentBuilder__ = __webpack_require__(6); - var __WEBPACK_IMPORTED_MODULE_5__jsonPathSyntax__ = __webpack_require__(16); + var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__2(0); + var __WEBPACK_IMPORTED_MODULE_1__lists__ = __webpack_require__2(1); + var __WEBPACK_IMPORTED_MODULE_2__ascent__ = __webpack_require__2(4); + var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__2(2); + var __WEBPACK_IMPORTED_MODULE_4__incrementalContentBuilder__ = __webpack_require__2(6); + var __WEBPACK_IMPORTED_MODULE_5__jsonPathSyntax__ = __webpack_require__2(16); var jsonPathCompiler = Object(__WEBPACK_IMPORTED_MODULE_5__jsonPathSyntax__[ "a" /* jsonPathSyntax */ @@ -29107,12 +29306,12 @@ var require_oboe_node = __commonJS({ }, /* 16 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return jsonPathSyntax; }); - var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__(0); + var __WEBPACK_IMPORTED_MODULE_0__functional__ = __webpack_require__2(0); var jsonPathSyntax = function() { var regexDescriptor = function regexDescriptor2(regex) { return regex.exec.bind(regex); @@ -29186,15 +29385,15 @@ var require_oboe_node = __commonJS({ }, /* 17 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return instanceApi; }); - var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__(3); - var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__(0); - var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(2); - var __WEBPACK_IMPORTED_MODULE_3__publicApi__ = __webpack_require__(5); + var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__2(3); + var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__2(0); + var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__2(2); + var __WEBPACK_IMPORTED_MODULE_3__publicApi__ = __webpack_require__2(5); function instanceApi(oboeBus, contentSource) { var oboeApi; var fullyQualifiedNamePattern = /^(node|path):./; @@ -29393,12 +29592,12 @@ var require_oboe_node = __commonJS({ }, /* 18 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return clarinet; }); - var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__(3); + var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__2(3); function clarinet(eventBus) { "use strict"; var emitSaxKey = eventBus(__WEBPACK_IMPORTED_MODULE_0__events__[ @@ -29886,21 +30085,21 @@ var require_oboe_node = __commonJS({ }, /* 19 */ /***/ - function(module3, __webpack_exports__, __webpack_require__) { + function(module3, __webpack_exports__, __webpack_require__2) { "use strict"; - __webpack_require__.d(__webpack_exports__, "a", function() { + __webpack_require__2.d(__webpack_exports__, "a", function() { return httpTransport; }); - __webpack_require__.d(__webpack_exports__, "b", function() { + __webpack_require__2.d(__webpack_exports__, "b", function() { return streamingHttp; }); - var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__(3); - var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__(0); - var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__(2); + var __WEBPACK_IMPORTED_MODULE_0__events__ = __webpack_require__2(3); + var __WEBPACK_IMPORTED_MODULE_1__functional__ = __webpack_require__2(0); + var __WEBPACK_IMPORTED_MODULE_2__util__ = __webpack_require__2(2); var httpTransport = Object(__WEBPACK_IMPORTED_MODULE_1__functional__[ "f" /* functor */ - ])(__webpack_require__(20)); + ])(__webpack_require__2(20)); function streamingHttp(oboeBus, transport, method, contentSource, data, headers) { "use strict"; var aborted = false; @@ -29932,7 +30131,7 @@ var require_oboe_node = __commonJS({ }); } function openUrlAsStream(url) { - var parsedUrl = __webpack_require__(7).parse(url); + var parsedUrl = __webpack_require__2(7).parse(url); return transport.request({ hostname: parsedUrl.hostname, port: parsedUrl.port, @@ -30007,10 +30206,10 @@ var require_oboe_node = __commonJS({ }, /* 20 */ /***/ - function(module3, exports3, __webpack_require__) { - var http = exports3.http = __webpack_require__(21); - var https = exports3.https = __webpack_require__(22); - var url = __webpack_require__(7); + function(module3, exports3, __webpack_require__2) { + var http = exports3.http = __webpack_require__2(21); + var https = exports3.https = __webpack_require__2(22); + var url = __webpack_require__2(7); exports3.get = function(opt, cb) { return getMod(opt).get(opt, cb); }; @@ -71457,7 +71656,7 @@ var require_lib51 = __commonJS({ var require_bindings = __commonJS({ "node_modules/ethereumjs-util/node_modules/secp256k1/bindings.js"(exports2, module2) { init_cjs_shim(); - var addon = require_node_gyp_build()(__dirname); + var addon = require_node_gyp_build2()(__dirname); module2.exports = require_lib51()(new addon.Secp256k1()); } }); @@ -75377,7 +75576,7 @@ var require_api = __commonJS({ var require_bindings2 = __commonJS({ "node_modules/ethereumjs-util/node_modules/keccak/bindings.js"(exports2, module2) { init_cjs_shim(); - var nativeAddon = require_node_gyp_build()(__dirname); + var nativeAddon = require_node_gyp_build2()(__dirname); if (typeof nativeAddon !== "function") { throw new Error("Native add-on failed to load"); } @@ -97532,6 +97731,818 @@ var require_universalify = __commonJS({ } }); +// node_modules/graceful-fs/polyfills.js +var require_polyfills = __commonJS({ + "node_modules/graceful-fs/polyfills.js"(exports2, module2) { + init_cjs_shim(); + var constants = __require("constants"); + var origCwd = process.cwd; + var cwd = null; + var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform; + process.cwd = function() { + if (!cwd) + cwd = origCwd.call(process); + return cwd; + }; + try { + process.cwd(); + } catch (er) { + } + if (typeof process.chdir === "function") { + chdir = process.chdir; + process.chdir = function(d) { + cwd = null; + chdir.call(process, d); + }; + if (Object.setPrototypeOf) + Object.setPrototypeOf(process.chdir, chdir); + } + var chdir; + module2.exports = patch; + function patch(fs) { + if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { + patchLchmod(fs); + } + if (!fs.lutimes) { + patchLutimes(fs); + } + fs.chown = chownFix(fs.chown); + fs.fchown = chownFix(fs.fchown); + fs.lchown = chownFix(fs.lchown); + fs.chmod = chmodFix(fs.chmod); + fs.fchmod = chmodFix(fs.fchmod); + fs.lchmod = chmodFix(fs.lchmod); + fs.chownSync = chownFixSync(fs.chownSync); + fs.fchownSync = chownFixSync(fs.fchownSync); + fs.lchownSync = chownFixSync(fs.lchownSync); + fs.chmodSync = chmodFixSync(fs.chmodSync); + fs.fchmodSync = chmodFixSync(fs.fchmodSync); + fs.lchmodSync = chmodFixSync(fs.lchmodSync); + fs.stat = statFix(fs.stat); + fs.fstat = statFix(fs.fstat); + fs.lstat = statFix(fs.lstat); + fs.statSync = statFixSync(fs.statSync); + fs.fstatSync = statFixSync(fs.fstatSync); + fs.lstatSync = statFixSync(fs.lstatSync); + if (fs.chmod && !fs.lchmod) { + fs.lchmod = function(path, mode, cb) { + if (cb) + process.nextTick(cb); + }; + fs.lchmodSync = function() { + }; + } + if (fs.chown && !fs.lchown) { + fs.lchown = function(path, uid, gid, cb) { + if (cb) + process.nextTick(cb); + }; + fs.lchownSync = function() { + }; + } + if (platform === "win32") { + fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) { + function rename(from, to, cb) { + var start = Date.now(); + var backoff = 0; + fs$rename(from, to, function CB(er) { + if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) { + setTimeout(function() { + fs.stat(to, function(stater, st) { + if (stater && stater.code === "ENOENT") + fs$rename(from, to, CB); + else + cb(er); + }); + }, backoff); + if (backoff < 100) + backoff += 10; + return; + } + if (cb) + cb(er); + }); + } + if (Object.setPrototypeOf) + Object.setPrototypeOf(rename, fs$rename); + return rename; + }(fs.rename); + } + fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) { + function read(fd, buffer, offset, length, position, callback_) { + var callback; + if (callback_ && typeof callback_ === "function") { + var eagCounter = 0; + callback = function(er, _, __) { + if (er && er.code === "EAGAIN" && eagCounter < 10) { + eagCounter++; + return fs$read.call(fs, fd, buffer, offset, length, position, callback); + } + callback_.apply(this, arguments); + }; + } + return fs$read.call(fs, fd, buffer, offset, length, position, callback); + } + if (Object.setPrototypeOf) + Object.setPrototypeOf(read, fs$read); + return read; + }(fs.read); + fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) { + return function(fd, buffer, offset, length, position) { + var eagCounter = 0; + while (true) { + try { + return fs$readSync.call(fs, fd, buffer, offset, length, position); + } catch (er) { + if (er.code === "EAGAIN" && eagCounter < 10) { + eagCounter++; + continue; + } + throw er; + } + } + }; + }(fs.readSync); + function patchLchmod(fs2) { + fs2.lchmod = function(path, mode, callback) { + fs2.open( + path, + constants.O_WRONLY | constants.O_SYMLINK, + mode, + function(err, fd) { + if (err) { + if (callback) + callback(err); + return; + } + fs2.fchmod(fd, mode, function(err2) { + fs2.close(fd, function(err22) { + if (callback) + callback(err2 || err22); + }); + }); + } + ); + }; + fs2.lchmodSync = function(path, mode) { + var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode); + var threw = true; + var ret2; + try { + ret2 = fs2.fchmodSync(fd, mode); + threw = false; + } finally { + if (threw) { + try { + fs2.closeSync(fd); + } catch (er) { + } + } else { + fs2.closeSync(fd); + } + } + return ret2; + }; + } + function patchLutimes(fs2) { + if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) { + fs2.lutimes = function(path, at, mt, cb) { + fs2.open(path, constants.O_SYMLINK, function(er, fd) { + if (er) { + if (cb) + cb(er); + return; + } + fs2.futimes(fd, at, mt, function(er2) { + fs2.close(fd, function(er22) { + if (cb) + cb(er2 || er22); + }); + }); + }); + }; + fs2.lutimesSync = function(path, at, mt) { + var fd = fs2.openSync(path, constants.O_SYMLINK); + var ret2; + var threw = true; + try { + ret2 = fs2.futimesSync(fd, at, mt); + threw = false; + } finally { + if (threw) { + try { + fs2.closeSync(fd); + } catch (er) { + } + } else { + fs2.closeSync(fd); + } + } + return ret2; + }; + } else if (fs2.futimes) { + fs2.lutimes = function(_a, _b, _c, cb) { + if (cb) + process.nextTick(cb); + }; + fs2.lutimesSync = function() { + }; + } + } + function chmodFix(orig) { + if (!orig) + return orig; + return function(target, mode, cb) { + return orig.call(fs, target, mode, function(er) { + if (chownErOk(er)) + er = null; + if (cb) + cb.apply(this, arguments); + }); + }; + } + function chmodFixSync(orig) { + if (!orig) + return orig; + return function(target, mode) { + try { + return orig.call(fs, target, mode); + } catch (er) { + if (!chownErOk(er)) + throw er; + } + }; + } + function chownFix(orig) { + if (!orig) + return orig; + return function(target, uid, gid, cb) { + return orig.call(fs, target, uid, gid, function(er) { + if (chownErOk(er)) + er = null; + if (cb) + cb.apply(this, arguments); + }); + }; + } + function chownFixSync(orig) { + if (!orig) + return orig; + return function(target, uid, gid) { + try { + return orig.call(fs, target, uid, gid); + } catch (er) { + if (!chownErOk(er)) + throw er; + } + }; + } + function statFix(orig) { + if (!orig) + return orig; + return function(target, options, cb) { + if (typeof options === "function") { + cb = options; + options = null; + } + function callback(er, stats) { + if (stats) { + if (stats.uid < 0) + stats.uid += 4294967296; + if (stats.gid < 0) + stats.gid += 4294967296; + } + if (cb) + cb.apply(this, arguments); + } + return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback); + }; + } + function statFixSync(orig) { + if (!orig) + return orig; + return function(target, options) { + var stats = options ? orig.call(fs, target, options) : orig.call(fs, target); + if (stats) { + if (stats.uid < 0) + stats.uid += 4294967296; + if (stats.gid < 0) + stats.gid += 4294967296; + } + return stats; + }; + } + function chownErOk(er) { + if (!er) + return true; + if (er.code === "ENOSYS") + return true; + var nonroot = !process.getuid || process.getuid() !== 0; + if (nonroot) { + if (er.code === "EINVAL" || er.code === "EPERM") + return true; + } + return false; + } + } + } +}); + +// node_modules/graceful-fs/legacy-streams.js +var require_legacy_streams = __commonJS({ + "node_modules/graceful-fs/legacy-streams.js"(exports2, module2) { + init_cjs_shim(); + var Stream = __require("stream").Stream; + module2.exports = legacy; + function legacy(fs) { + return { + ReadStream, + WriteStream + }; + function ReadStream(path, options) { + if (!(this instanceof ReadStream)) + return new ReadStream(path, options); + Stream.call(this); + var self2 = this; + this.path = path; + this.fd = null; + this.readable = true; + this.paused = false; + this.flags = "r"; + this.mode = 438; + this.bufferSize = 64 * 1024; + options = options || {}; + var keys = Object.keys(options); + for (var index = 0, length = keys.length; index < length; index++) { + var key = keys[index]; + this[key] = options[key]; + } + if (this.encoding) + this.setEncoding(this.encoding); + if (this.start !== void 0) { + if ("number" !== typeof this.start) { + throw TypeError("start must be a Number"); + } + if (this.end === void 0) { + this.end = Infinity; + } else if ("number" !== typeof this.end) { + throw TypeError("end must be a Number"); + } + if (this.start > this.end) { + throw new Error("start must be <= end"); + } + this.pos = this.start; + } + if (this.fd !== null) { + process.nextTick(function() { + self2._read(); + }); + return; + } + fs.open(this.path, this.flags, this.mode, function(err, fd) { + if (err) { + self2.emit("error", err); + self2.readable = false; + return; + } + self2.fd = fd; + self2.emit("open", fd); + self2._read(); + }); + } + function WriteStream(path, options) { + if (!(this instanceof WriteStream)) + return new WriteStream(path, options); + Stream.call(this); + this.path = path; + this.fd = null; + this.writable = true; + this.flags = "w"; + this.encoding = "binary"; + this.mode = 438; + this.bytesWritten = 0; + options = options || {}; + var keys = Object.keys(options); + for (var index = 0, length = keys.length; index < length; index++) { + var key = keys[index]; + this[key] = options[key]; + } + if (this.start !== void 0) { + if ("number" !== typeof this.start) { + throw TypeError("start must be a Number"); + } + if (this.start < 0) { + throw new Error("start must be >= zero"); + } + this.pos = this.start; + } + this.busy = false; + this._queue = []; + if (this.fd === null) { + this._open = fs.open; + this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); + this.flush(); + } + } + } + } +}); + +// node_modules/graceful-fs/clone.js +var require_clone = __commonJS({ + "node_modules/graceful-fs/clone.js"(exports2, module2) { + "use strict"; + init_cjs_shim(); + module2.exports = clone; + var getPrototypeOf = Object.getPrototypeOf || function(obj2) { + return obj2.__proto__; + }; + function clone(obj2) { + if (obj2 === null || typeof obj2 !== "object") + return obj2; + if (obj2 instanceof Object) + var copy = { __proto__: getPrototypeOf(obj2) }; + else + var copy = /* @__PURE__ */ Object.create(null); + Object.getOwnPropertyNames(obj2).forEach(function(key) { + Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj2, key)); + }); + return copy; + } + } +}); + +// node_modules/graceful-fs/graceful-fs.js +var require_graceful_fs = __commonJS({ + "node_modules/graceful-fs/graceful-fs.js"(exports2, module2) { + init_cjs_shim(); + var fs = __require("fs"); + var polyfills = require_polyfills(); + var legacy = require_legacy_streams(); + var clone = require_clone(); + var util = __require("util"); + var gracefulQueue; + var previousSymbol; + if (typeof Symbol === "function" && typeof Symbol.for === "function") { + gracefulQueue = Symbol.for("graceful-fs.queue"); + previousSymbol = Symbol.for("graceful-fs.previous"); + } else { + gracefulQueue = "___graceful-fs.queue"; + previousSymbol = "___graceful-fs.previous"; + } + function noop() { + } + function publishQueue(context, queue2) { + Object.defineProperty(context, gracefulQueue, { + get: function() { + return queue2; + } + }); + } + var debug = noop; + if (util.debuglog) + debug = util.debuglog("gfs4"); + else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) + debug = function() { + var m = util.format.apply(util, arguments); + m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); + console.error(m); + }; + if (!fs[gracefulQueue]) { + queue = global[gracefulQueue] || []; + publishQueue(fs, queue); + fs.close = function(fs$close) { + function close(fd, cb) { + return fs$close.call(fs, fd, function(err) { + if (!err) { + resetQueue(); + } + if (typeof cb === "function") + cb.apply(this, arguments); + }); + } + Object.defineProperty(close, previousSymbol, { + value: fs$close + }); + return close; + }(fs.close); + fs.closeSync = function(fs$closeSync) { + function closeSync(fd) { + fs$closeSync.apply(fs, arguments); + resetQueue(); + } + Object.defineProperty(closeSync, previousSymbol, { + value: fs$closeSync + }); + return closeSync; + }(fs.closeSync); + if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { + process.on("exit", function() { + debug(fs[gracefulQueue]); + __require("assert").equal(fs[gracefulQueue].length, 0); + }); + } + } + var queue; + if (!global[gracefulQueue]) { + publishQueue(global, fs[gracefulQueue]); + } + module2.exports = patch(clone(fs)); + if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { + module2.exports = patch(fs); + fs.__patched = true; + } + function patch(fs2) { + polyfills(fs2); + fs2.gracefulify = patch; + fs2.createReadStream = createReadStream; + fs2.createWriteStream = createWriteStream; + var fs$readFile = fs2.readFile; + fs2.readFile = readFile; + function readFile(path, options, cb) { + if (typeof options === "function") + cb = options, options = null; + return go$readFile(path, options, cb); + function go$readFile(path2, options2, cb2, startTime) { + return fs$readFile(path2, options2, function(err) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]); + else { + if (typeof cb2 === "function") + cb2.apply(this, arguments); + } + }); + } + } + var fs$writeFile = fs2.writeFile; + fs2.writeFile = writeFile; + function writeFile(path, data, options, cb) { + if (typeof options === "function") + cb = options, options = null; + return go$writeFile(path, data, options, cb); + function go$writeFile(path2, data2, options2, cb2, startTime) { + return fs$writeFile(path2, data2, options2, function(err) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); + else { + if (typeof cb2 === "function") + cb2.apply(this, arguments); + } + }); + } + } + var fs$appendFile = fs2.appendFile; + if (fs$appendFile) + fs2.appendFile = appendFile; + function appendFile(path, data, options, cb) { + if (typeof options === "function") + cb = options, options = null; + return go$appendFile(path, data, options, cb); + function go$appendFile(path2, data2, options2, cb2, startTime) { + return fs$appendFile(path2, data2, options2, function(err) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); + else { + if (typeof cb2 === "function") + cb2.apply(this, arguments); + } + }); + } + } + var fs$copyFile = fs2.copyFile; + if (fs$copyFile) + fs2.copyFile = copyFile; + function copyFile(src, dest, flags, cb) { + if (typeof flags === "function") { + cb = flags; + flags = 0; + } + return go$copyFile(src, dest, flags, cb); + function go$copyFile(src2, dest2, flags2, cb2, startTime) { + return fs$copyFile(src2, dest2, flags2, function(err) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]); + else { + if (typeof cb2 === "function") + cb2.apply(this, arguments); + } + }); + } + } + var fs$readdir = fs2.readdir; + fs2.readdir = readdir; + var noReaddirOptionVersions = /^v[0-5]\./; + function readdir(path, options, cb) { + if (typeof options === "function") + cb = options, options = null; + var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) { + return fs$readdir(path2, fs$readdirCallback( + path2, + options2, + cb2, + startTime + )); + } : function go$readdir2(path2, options2, cb2, startTime) { + return fs$readdir(path2, options2, fs$readdirCallback( + path2, + options2, + cb2, + startTime + )); + }; + return go$readdir(path, options, cb); + function fs$readdirCallback(path2, options2, cb2, startTime) { + return function(err, files) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([ + go$readdir, + [path2, options2, cb2], + err, + startTime || Date.now(), + Date.now() + ]); + else { + if (files && files.sort) + files.sort(); + if (typeof cb2 === "function") + cb2.call(this, err, files); + } + }; + } + } + if (process.version.substr(0, 4) === "v0.8") { + var legStreams = legacy(fs2); + ReadStream = legStreams.ReadStream; + WriteStream = legStreams.WriteStream; + } + var fs$ReadStream = fs2.ReadStream; + if (fs$ReadStream) { + ReadStream.prototype = Object.create(fs$ReadStream.prototype); + ReadStream.prototype.open = ReadStream$open; + } + var fs$WriteStream = fs2.WriteStream; + if (fs$WriteStream) { + WriteStream.prototype = Object.create(fs$WriteStream.prototype); + WriteStream.prototype.open = WriteStream$open; + } + Object.defineProperty(fs2, "ReadStream", { + get: function() { + return ReadStream; + }, + set: function(val) { + ReadStream = val; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(fs2, "WriteStream", { + get: function() { + return WriteStream; + }, + set: function(val) { + WriteStream = val; + }, + enumerable: true, + configurable: true + }); + var FileReadStream = ReadStream; + Object.defineProperty(fs2, "FileReadStream", { + get: function() { + return FileReadStream; + }, + set: function(val) { + FileReadStream = val; + }, + enumerable: true, + configurable: true + }); + var FileWriteStream = WriteStream; + Object.defineProperty(fs2, "FileWriteStream", { + get: function() { + return FileWriteStream; + }, + set: function(val) { + FileWriteStream = val; + }, + enumerable: true, + configurable: true + }); + function ReadStream(path, options) { + if (this instanceof ReadStream) + return fs$ReadStream.apply(this, arguments), this; + else + return ReadStream.apply(Object.create(ReadStream.prototype), arguments); + } + function ReadStream$open() { + var that = this; + open(that.path, that.flags, that.mode, function(err, fd) { + if (err) { + if (that.autoClose) + that.destroy(); + that.emit("error", err); + } else { + that.fd = fd; + that.emit("open", fd); + that.read(); + } + }); + } + function WriteStream(path, options) { + if (this instanceof WriteStream) + return fs$WriteStream.apply(this, arguments), this; + else + return WriteStream.apply(Object.create(WriteStream.prototype), arguments); + } + function WriteStream$open() { + var that = this; + open(that.path, that.flags, that.mode, function(err, fd) { + if (err) { + that.destroy(); + that.emit("error", err); + } else { + that.fd = fd; + that.emit("open", fd); + } + }); + } + function createReadStream(path, options) { + return new fs2.ReadStream(path, options); + } + function createWriteStream(path, options) { + return new fs2.WriteStream(path, options); + } + var fs$open = fs2.open; + fs2.open = open; + function open(path, flags, mode, cb) { + if (typeof mode === "function") + cb = mode, mode = null; + return go$open(path, flags, mode, cb); + function go$open(path2, flags2, mode2, cb2, startTime) { + return fs$open(path2, flags2, mode2, function(err, fd) { + if (err && (err.code === "EMFILE" || err.code === "ENFILE")) + enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); + else { + if (typeof cb2 === "function") + cb2.apply(this, arguments); + } + }); + } + } + return fs2; + } + function enqueue(elem) { + debug("ENQUEUE", elem[0].name, elem[1]); + fs[gracefulQueue].push(elem); + retry(); + } + var retryTimer; + function resetQueue() { + var now = Date.now(); + for (var i = 0; i < fs[gracefulQueue].length; ++i) { + if (fs[gracefulQueue][i].length > 2) { + fs[gracefulQueue][i][3] = now; + fs[gracefulQueue][i][4] = now; + } + } + retry(); + } + function retry() { + clearTimeout(retryTimer); + retryTimer = void 0; + if (fs[gracefulQueue].length === 0) + return; + var elem = fs[gracefulQueue].shift(); + var fn = elem[0]; + var args = elem[1]; + var err = elem[2]; + var startTime = elem[3]; + var lastTime = elem[4]; + if (startTime === void 0) { + debug("RETRY", fn.name, args); + fn.apply(null, args); + } else if (Date.now() - startTime >= 6e4) { + debug("TIMEOUT", fn.name, args); + var cb = args.pop(); + if (typeof cb === "function") + cb.call(null, err); + } else { + var sinceAttempt = Date.now() - lastTime; + var sinceStart = Math.max(lastTime - startTime, 1); + var desiredDelay = Math.min(sinceStart * 1.2, 100); + if (sinceAttempt >= desiredDelay) { + debug("RETRY", fn.name, args); + fn.apply(null, args.concat([startTime])); + } else { + fs[gracefulQueue].push(elem); + } + } + if (retryTimer === void 0) { + retryTimer = setTimeout(retry, 0); + } + } + } +}); + // node_modules/swarm-js/node_modules/fs-extra/lib/fs/index.js var require_fs = __commonJS({ "node_modules/swarm-js/node_modules/fs-extra/lib/fs/index.js"(exports2) { @@ -106099,6 +107110,369 @@ var require_normalize_url = __commonJS({ } }); +// node_modules/wrappy/wrappy.js +var require_wrappy = __commonJS({ + "node_modules/wrappy/wrappy.js"(exports2, module2) { + init_cjs_shim(); + module2.exports = wrappy; + function wrappy(fn, cb) { + if (fn && cb) + return wrappy(fn)(cb); + if (typeof fn !== "function") + throw new TypeError("need wrapper function"); + Object.keys(fn).forEach(function(k) { + wrapper[k] = fn[k]; + }); + return wrapper; + function wrapper() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; + } + var ret2 = fn.apply(this, args); + var cb2 = args[args.length - 1]; + if (typeof ret2 === "function" && ret2 !== cb2) { + Object.keys(cb2).forEach(function(k) { + ret2[k] = cb2[k]; + }); + } + return ret2; + } + } + } +}); + +// node_modules/once/once.js +var require_once = __commonJS({ + "node_modules/once/once.js"(exports2, module2) { + init_cjs_shim(); + var wrappy = require_wrappy(); + module2.exports = wrappy(once); + module2.exports.strict = wrappy(onceStrict); + once.proto = once(function() { + Object.defineProperty(Function.prototype, "once", { + value: function() { + return once(this); + }, + configurable: true + }); + Object.defineProperty(Function.prototype, "onceStrict", { + value: function() { + return onceStrict(this); + }, + configurable: true + }); + }); + function once(fn) { + var f = function() { + if (f.called) + return f.value; + f.called = true; + return f.value = fn.apply(this, arguments); + }; + f.called = false; + return f; + } + function onceStrict(fn) { + var f = function() { + if (f.called) + throw new Error(f.onceError); + f.called = true; + return f.value = fn.apply(this, arguments); + }; + var name2 = fn.name || "Function wrapped with `once`"; + f.onceError = name2 + " shouldn't be called more than once"; + f.called = false; + return f; + } + } +}); + +// node_modules/end-of-stream/index.js +var require_end_of_stream2 = __commonJS({ + "node_modules/end-of-stream/index.js"(exports2, module2) { + init_cjs_shim(); + var once = require_once(); + var noop = function() { + }; + var isRequest = function(stream) { + return stream.setHeader && typeof stream.abort === "function"; + }; + var isChildProcess = function(stream) { + return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3; + }; + var eos = function(stream, opts, callback) { + if (typeof opts === "function") + return eos(stream, null, opts); + if (!opts) + opts = {}; + callback = once(callback || noop); + var ws = stream._writableState; + var rs = stream._readableState; + var readable = opts.readable || opts.readable !== false && stream.readable; + var writable = opts.writable || opts.writable !== false && stream.writable; + var cancelled = false; + var onlegacyfinish = function() { + if (!stream.writable) + onfinish(); + }; + var onfinish = function() { + writable = false; + if (!readable) + callback.call(stream); + }; + var onend = function() { + readable = false; + if (!writable) + callback.call(stream); + }; + var onexit = function(exitCode) { + callback.call(stream, exitCode ? new Error("exited with error code: " + exitCode) : null); + }; + var onerror = function(err) { + callback.call(stream, err); + }; + var onclose = function() { + process.nextTick(onclosenexttick); + }; + var onclosenexttick = function() { + if (cancelled) + return; + if (readable && !(rs && (rs.ended && !rs.destroyed))) + return callback.call(stream, new Error("premature close")); + if (writable && !(ws && (ws.ended && !ws.destroyed))) + return callback.call(stream, new Error("premature close")); + }; + var onrequest = function() { + stream.req.on("finish", onfinish); + }; + if (isRequest(stream)) { + stream.on("complete", onfinish); + stream.on("abort", onclose); + if (stream.req) + onrequest(); + else + stream.on("request", onrequest); + } else if (writable && !ws) { + stream.on("end", onlegacyfinish); + stream.on("close", onlegacyfinish); + } + if (isChildProcess(stream)) + stream.on("exit", onexit); + stream.on("end", onend); + stream.on("finish", onfinish); + if (opts.error !== false) + stream.on("error", onerror); + stream.on("close", onclose); + return function() { + cancelled = true; + stream.removeListener("complete", onfinish); + stream.removeListener("abort", onclose); + stream.removeListener("request", onrequest); + if (stream.req) + stream.req.removeListener("finish", onfinish); + stream.removeListener("end", onlegacyfinish); + stream.removeListener("close", onlegacyfinish); + stream.removeListener("finish", onfinish); + stream.removeListener("exit", onexit); + stream.removeListener("end", onend); + stream.removeListener("error", onerror); + stream.removeListener("close", onclose); + }; + }; + module2.exports = eos; + } +}); + +// node_modules/pump/index.js +var require_pump = __commonJS({ + "node_modules/pump/index.js"(exports2, module2) { + init_cjs_shim(); + var once = require_once(); + var eos = require_end_of_stream2(); + var fs; + try { + fs = __require("fs"); + } catch (e) { + } + var noop = function() { + }; + var ancient = /^v?\.0/.test(process.version); + var isFn = function(fn) { + return typeof fn === "function"; + }; + var isFS = function(stream) { + if (!ancient) + return false; + if (!fs) + return false; + return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close); + }; + var isRequest = function(stream) { + return stream.setHeader && isFn(stream.abort); + }; + var destroyer = function(stream, reading, writing, callback) { + callback = once(callback); + var closed = false; + stream.on("close", function() { + closed = true; + }); + eos(stream, { readable: reading, writable: writing }, function(err) { + if (err) + return callback(err); + closed = true; + callback(); + }); + var destroyed = false; + return function(err) { + if (closed) + return; + if (destroyed) + return; + destroyed = true; + if (isFS(stream)) + return stream.close(noop); + if (isRequest(stream)) + return stream.abort(); + if (isFn(stream.destroy)) + return stream.destroy(); + callback(err || new Error("stream was destroyed")); + }; + }; + var call = function(fn) { + fn(); + }; + var pipe = function(from, to) { + return from.pipe(to); + }; + var pump = function() { + var streams = Array.prototype.slice.call(arguments); + var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop; + if (Array.isArray(streams[0])) + streams = streams[0]; + if (streams.length < 2) + throw new Error("pump requires two streams per minimum"); + var error; + var destroys = streams.map(function(stream, i) { + var reading = i < streams.length - 1; + var writing = i > 0; + return destroyer(stream, reading, writing, function(err) { + if (!error) + error = err; + if (err) + destroys.forEach(call); + if (reading) + return; + destroys.forEach(call); + callback(error); + }); + }); + return streams.reduce(pipe); + }; + module2.exports = pump; + } +}); + +// node_modules/get-stream/buffer-stream.js +var require_buffer_stream = __commonJS({ + "node_modules/get-stream/buffer-stream.js"(exports2, module2) { + "use strict"; + init_cjs_shim(); + var { PassThrough: PassThroughStream } = __require("stream"); + module2.exports = (options) => { + options = { ...options }; + const { array } = options; + let { encoding } = options; + const isBuffer = encoding === "buffer"; + let objectMode = false; + if (array) { + objectMode = !(encoding || isBuffer); + } else { + encoding = encoding || "utf8"; + } + if (isBuffer) { + encoding = null; + } + const stream = new PassThroughStream({ objectMode }); + if (encoding) { + stream.setEncoding(encoding); + } + let length = 0; + const chunks = []; + stream.on("data", (chunk) => { + chunks.push(chunk); + if (objectMode) { + length = chunks.length; + } else { + length += chunk.length; + } + }); + stream.getBufferedValue = () => { + if (array) { + return chunks; + } + return isBuffer ? Buffer.concat(chunks, length) : chunks.join(""); + }; + stream.getBufferedLength = () => length; + return stream; + }; + } +}); + +// node_modules/get-stream/index.js +var require_get_stream = __commonJS({ + "node_modules/get-stream/index.js"(exports2, module2) { + "use strict"; + init_cjs_shim(); + var { constants: BufferConstants } = __require("buffer"); + var pump = require_pump(); + var bufferStream = require_buffer_stream(); + var MaxBufferError = class extends Error { + constructor() { + super("maxBuffer exceeded"); + this.name = "MaxBufferError"; + } + }; + async function getStream(inputStream, options) { + if (!inputStream) { + return Promise.reject(new Error("Expected a stream")); + } + options = { + maxBuffer: Infinity, + ...options + }; + const { maxBuffer } = options; + let stream; + await new Promise((resolve, reject) => { + const rejectPromise = (error) => { + if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) { + error.bufferedData = stream.getBufferedValue(); + } + reject(error); + }; + stream = pump(inputStream, bufferStream(options), (error) => { + if (error) { + rejectPromise(error); + return; + } + resolve(); + }); + stream.on("data", () => { + if (stream.getBufferedLength() > maxBuffer) { + rejectPromise(new MaxBufferError()); + } + }); + }); + return stream.getBufferedValue(); + } + module2.exports = getStream; + module2.exports.default = getStream; + module2.exports.buffer = (stream, options) => getStream(stream, { ...options, encoding: "buffer" }); + module2.exports.array = (stream, options) => getStream(stream, { ...options, array: true }); + module2.exports.MaxBufferError = MaxBufferError; + } +}); + // node_modules/http-cache-semantics/index.js var require_http_cache_semantics = __commonJS({ "node_modules/http-cache-semantics/index.js"(exports2, module2) { @@ -129185,7 +130559,7 @@ init_cjs_shim(); // features.test.mts init_cjs_shim(); -// node_modules/testeranto/dist/module/Features.js +// ../testeranto/dist/module/Features.js init_cjs_shim(); var import_graphology_umd = __toESM(require_graphology_umd(), 1); var { DirectedGraph, UndirectedGraph } = import_graphology_umd.default; diff --git a/docs/node/src/MyFirstContract.basic.test/log.txt b/docs/node/src/MyFirstContract.basic.test/log.txt index 17e66632..92be1fb2 100644 --- a/docs/node/src/MyFirstContract.basic.test/log.txt +++ b/docs/node/src/MyFirstContract.basic.test/log.txt @@ -1,4 +1,4 @@ -test resources: ,{"scheduled":true,"name":"./src/MyFirstContract.basic.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/MyFirstContract.basic.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/MyFirstContract.basic.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/MyFirstContract.basic.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing a very simple smart contract ephemerally diff --git a/docs/node/src/ReactStateAndHook.test.mjs b/docs/node/src/ReactStateAndHook.test.mjs index 214d31ab..a2daf21d 100644 --- a/docs/node/src/ReactStateAndHook.test.mjs +++ b/docs/node/src/ReactStateAndHook.test.mjs @@ -2,17 +2,17 @@ import { createRequire } from 'module';const require = createRequire(import.meta import { node_default, require_react -} from "../chunk-IAOYGSRV.mjs"; -import "../chunk-CDRQ6FZS.mjs"; -import "../chunk-6SZJES2S.mjs"; -import "../chunk-BRBW5YJH.mjs"; -import "../chunk-S5L4ZC6L.mjs"; -import "../chunk-LE3VN4X4.mjs"; -import "../chunk-GF7QN4NN.mjs"; +} from "../chunk-LNUIT2ZO.mjs"; +import "../chunk-3P3QDLUF.mjs"; +import "../chunk-RBWPBMY4.mjs"; +import "../chunk-PJC2V65J.mjs"; +import "../chunk-VDOS7AVZ.mjs"; +import "../chunk-FLSG3ZVV.mjs"; +import "../chunk-CTKBT5JH.mjs"; import { __toESM, init_cjs_shim -} from "../chunk-4IESOCHA.mjs"; +} from "../chunk-THMF2HPO.mjs"; // src/ReactStateAndHook.test.tsx init_cjs_shim(); diff --git a/docs/node/src/ReactStateAndHook.test/exitcode b/docs/node/src/ReactStateAndHook.test/exitcode index c2270834..bf0d87ab 100644 --- a/docs/node/src/ReactStateAndHook.test/exitcode +++ b/docs/node/src/ReactStateAndHook.test/exitcode @@ -1 +1 @@ -0 \ No newline at end of file +4 \ No newline at end of file diff --git a/docs/node/src/ReactStateAndHook.test/log.txt b/docs/node/src/ReactStateAndHook.test/log.txt index 26468a0b..93372be7 100644 --- a/docs/node/src/ReactStateAndHook.test/log.txt +++ b/docs/node/src/ReactStateAndHook.test/log.txt @@ -1,20 +1,35 @@ -test resources: ,{"scheduled":true,"name":"./src/ReactStateAndHook.test.tsx","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/ReactStateAndHook.test.tsx","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing the ReactStateAndHook element Given: Default - Then:,TheCounterIs: 0 +Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. + Given: Default - When:,IClick: undefined - Then:,TheCounterIs: 1 +Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. + Given: Default - When:,IClick: undefined - When:,IClick: undefined - When:,IClick: undefined - Then:,TheCounterIs: 3 +Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. + Given: Default - When:,IClick: undefined - Then:,TheCounterIs: 1 +Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. + diff --git a/docs/node/src/ReactStateAndHook.test/tests.json b/docs/node/src/ReactStateAndHook.test/tests.json index 4bb4713e..b92156a9 100644 --- a/docs/node/src/ReactStateAndHook.test/tests.json +++ b/docs/node/src/ReactStateAndHook.test/tests.json @@ -10,7 +10,10 @@ "error": false } ], - "error": null, + "error": [ + {}, + "Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\n at Object.throwInvalidHookError (file:///Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test.mjs?cacheBust=1733289697773:41571:17)\n at useState (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:22788:29)\n at ReactStateAndHook (file:///Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test.mjs?cacheBust=1733289697773:26:56)\n at renderWithHooks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:12990:26)\n at mountIndeterminateComponent (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:15555:21)\n at beginWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:16504:22)\n at performUnitOfWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19396:20)\n at workLoopSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19351:13)\n at renderRootSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19333:15)\n at performSyncWorkOnRoot (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19132:28)\n at flushSyncCallbacks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:10367:30)\n at flushActQueue (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2117:32)\n at act2 (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2006:19)\n at Object.beforeEach (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24215:40)\n at Given.givenThat (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24065:36)\n at Given.give (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:23766:31)" + ], "features": [ "hello" ] @@ -28,7 +31,10 @@ "error": false } ], - "error": null, + "error": [ + {}, + "Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\n at Object.throwInvalidHookError (file:///Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test.mjs?cacheBust=1733289697773:41571:17)\n at useState (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:22788:29)\n at ReactStateAndHook (file:///Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test.mjs?cacheBust=1733289697773:26:56)\n at renderWithHooks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:12990:26)\n at mountIndeterminateComponent (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:15555:21)\n at beginWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:16504:22)\n at performUnitOfWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19396:20)\n at workLoopSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19351:13)\n at renderRootSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19333:15)\n at performSyncWorkOnRoot (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19132:28)\n at flushSyncCallbacks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:10367:30)\n at flushActQueue (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2117:32)\n at act2 (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2006:19)\n at Object.beforeEach (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24215:40)\n at Given.givenThat (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24065:36)\n at Given.give (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:23766:31)" + ], "features": [ "hello" ] @@ -52,7 +58,10 @@ "error": false } ], - "error": null, + "error": [ + {}, + "Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\n at Object.throwInvalidHookError (file:///Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test.mjs?cacheBust=1733289697773:41571:17)\n at useState (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:22788:29)\n at ReactStateAndHook (file:///Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test.mjs?cacheBust=1733289697773:26:56)\n at renderWithHooks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:12990:26)\n at mountIndeterminateComponent (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:15555:21)\n at beginWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:16504:22)\n at performUnitOfWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19396:20)\n at workLoopSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19351:13)\n at renderRootSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19333:15)\n at performSyncWorkOnRoot (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19132:28)\n at flushSyncCallbacks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:10367:30)\n at flushActQueue (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2117:32)\n at act2 (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2006:19)\n at Object.beforeEach (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24215:40)\n at Given.givenThat (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24065:36)\n at Given.give (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:23766:31)" + ], "features": [ "hello" ] @@ -70,7 +79,10 @@ "error": false } ], - "error": null, + "error": [ + {}, + "Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.\n at Object.throwInvalidHookError (file:///Users/adam/Code/kokomoBay/docs/node/src/LoginPage/react-test-renderer/node.test.mjs?cacheBust=1733289697773:41571:17)\n at useState (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:22788:29)\n at ReactStateAndHook (file:///Users/adam/Code/kokomoBay/docs/node/src/ReactStateAndHook.test.mjs?cacheBust=1733289697773:26:56)\n at renderWithHooks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:12990:26)\n at mountIndeterminateComponent (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:15555:21)\n at beginWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:16504:22)\n at performUnitOfWork (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19396:20)\n at workLoopSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19351:13)\n at renderRootSync (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19333:15)\n at performSyncWorkOnRoot (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:19132:28)\n at flushSyncCallbacks (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:10367:30)\n at flushActQueue (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2117:32)\n at act2 (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:2006:19)\n at Object.beforeEach (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24215:40)\n at Given.givenThat (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:24065:36)\n at Given.give (file:///Users/adam/Code/kokomoBay/docs/node/chunk-LNUIT2ZO.mjs:23766:31)" + ], "features": [ "hello" ] diff --git a/docs/node/src/Rectangle/Rectangle.test.node.mjs b/docs/node/src/Rectangle/Rectangle.test.node.mjs index 2dc40a98..16be54d8 100644 --- a/docs/node/src/Rectangle/Rectangle.test.node.mjs +++ b/docs/node/src/Rectangle/Rectangle.test.node.mjs @@ -1,19 +1,19 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { Node_default -} from "../../chunk-O3OSUFIX.mjs"; +} from "../../chunk-47FK6YVH.mjs"; import { assert -} from "../../chunk-7DTFZFDN.mjs"; -import "../../chunk-CDRQ6FZS.mjs"; -import "../../chunk-6SZJES2S.mjs"; -import "../../chunk-BRBW5YJH.mjs"; -import "../../chunk-S5L4ZC6L.mjs"; -import "../../chunk-LE3VN4X4.mjs"; -import "../../chunk-GF7QN4NN.mjs"; +} from "../../chunk-MSVTAS6Q.mjs"; +import "../../chunk-3P3QDLUF.mjs"; +import "../../chunk-RBWPBMY4.mjs"; +import "../../chunk-PJC2V65J.mjs"; +import "../../chunk-VDOS7AVZ.mjs"; +import "../../chunk-FLSG3ZVV.mjs"; +import "../../chunk-CTKBT5JH.mjs"; import { init_cjs_shim -} from "../../chunk-4IESOCHA.mjs"; +} from "../../chunk-THMF2HPO.mjs"; // src/Rectangle/Rectangle.test.node.ts init_cjs_shim(); diff --git a/docs/node/src/Rectangle/Rectangle.test.node/log.txt b/docs/node/src/Rectangle/Rectangle.test.node/log.txt index e5275eb7..05183cf7 100644 --- a/docs/node/src/Rectangle/Rectangle.test.node/log.txt +++ b/docs/node/src/Rectangle/Rectangle.test.node/log.txt @@ -1,4 +1,4 @@ -test resources: ,{"scheduled":true,"name":"./src/Rectangle/Rectangle.test.node.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/Rectangle/Rectangle.test.node","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/Rectangle/Rectangle.test.node.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/Rectangle/Rectangle.test.node","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing the Rectangle class diff --git a/docs/node/src/app.redux.test.mjs b/docs/node/src/app.redux.test.mjs index 244b6bc3..1ccbff6f 100644 --- a/docs/node/src/app.redux.test.mjs +++ b/docs/node/src/app.redux.test.mjs @@ -1,27 +1,27 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { AppSpecification -} from "../chunk-EYV3TTNW.mjs"; +} from "../chunk-5K2J4QBY.mjs"; import { loginApp, require_redux -} from "../chunk-FWCV2CYO.mjs"; +} from "../chunk-EP6GCRJ6.mjs"; import { Node_default -} from "../chunk-O3OSUFIX.mjs"; +} from "../chunk-47FK6YVH.mjs"; import { assert -} from "../chunk-7DTFZFDN.mjs"; -import "../chunk-CDRQ6FZS.mjs"; -import "../chunk-6SZJES2S.mjs"; -import "../chunk-BRBW5YJH.mjs"; -import "../chunk-S5L4ZC6L.mjs"; -import "../chunk-LE3VN4X4.mjs"; -import "../chunk-GF7QN4NN.mjs"; +} from "../chunk-MSVTAS6Q.mjs"; +import "../chunk-3P3QDLUF.mjs"; +import "../chunk-RBWPBMY4.mjs"; +import "../chunk-PJC2V65J.mjs"; +import "../chunk-VDOS7AVZ.mjs"; +import "../chunk-FLSG3ZVV.mjs"; +import "../chunk-CTKBT5JH.mjs"; import { __toESM, init_cjs_shim -} from "../chunk-4IESOCHA.mjs"; +} from "../chunk-THMF2HPO.mjs"; // src/app.redux.test.ts init_cjs_shim(); diff --git a/docs/node/src/app.redux.test/log.txt b/docs/node/src/app.redux.test/log.txt index c3b2193a..aec6e7cb 100644 --- a/docs/node/src/app.redux.test/log.txt +++ b/docs/node/src/app.redux.test/log.txt @@ -1,4 +1,4 @@ -test resources: ,{"scheduled":true,"name":"./src/app.redux.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/app.redux.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/app.redux.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/app.redux.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing the Redux store diff --git a/docs/node/src/app.reduxToolkit.test.mjs b/docs/node/src/app.reduxToolkit.test.mjs index 648d10c0..28d8f021 100644 --- a/docs/node/src/app.reduxToolkit.test.mjs +++ b/docs/node/src/app.reduxToolkit.test.mjs @@ -1,28 +1,28 @@ import { createRequire } from 'module';const require = createRequire(import.meta.url); import { AppSpecification -} from "../chunk-EYV3TTNW.mjs"; +} from "../chunk-5K2J4QBY.mjs"; import { app_default, loginApp, require_redux -} from "../chunk-FWCV2CYO.mjs"; +} from "../chunk-EP6GCRJ6.mjs"; import { Node_default -} from "../chunk-O3OSUFIX.mjs"; +} from "../chunk-47FK6YVH.mjs"; import { assert -} from "../chunk-7DTFZFDN.mjs"; -import "../chunk-CDRQ6FZS.mjs"; -import "../chunk-6SZJES2S.mjs"; -import "../chunk-BRBW5YJH.mjs"; -import "../chunk-S5L4ZC6L.mjs"; -import "../chunk-LE3VN4X4.mjs"; -import "../chunk-GF7QN4NN.mjs"; +} from "../chunk-MSVTAS6Q.mjs"; +import "../chunk-3P3QDLUF.mjs"; +import "../chunk-RBWPBMY4.mjs"; +import "../chunk-PJC2V65J.mjs"; +import "../chunk-VDOS7AVZ.mjs"; +import "../chunk-FLSG3ZVV.mjs"; +import "../chunk-CTKBT5JH.mjs"; import { __toESM, init_cjs_shim -} from "../chunk-4IESOCHA.mjs"; +} from "../chunk-THMF2HPO.mjs"; // src/app.reduxToolkit.test.ts init_cjs_shim(); diff --git a/docs/node/src/app.reduxToolkit.test/log.txt b/docs/node/src/app.reduxToolkit.test/log.txt index 3f5f4b3b..706b4180 100644 --- a/docs/node/src/app.reduxToolkit.test/log.txt +++ b/docs/node/src/app.reduxToolkit.test/log.txt @@ -1,4 +1,4 @@ -test resources: ,{"scheduled":true,"name":"./src/app.reduxToolkit.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/app.reduxToolkit.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/9445b2dc-0e0a-4006-8af6-915c8c915da3"} +test resources: ,{"scheduled":true,"name":"./src/app.reduxToolkit.test.ts","ports":[],"fs":"/Users/adam/Code/kokomoBay/docs/node/src/app.reduxToolkit.test","browserWSEndpoint":"ws://127.0.0.1:3234/devtools/browser/ff64baf2-fc38-44c9-9f8a-43cd457ca913"} Suite:,0,Testing the Redux store diff --git a/docs/web/BrowserWebSocketTransport-AJ3WEQWR.mjs b/docs/web/BrowserWebSocketTransport-GCNNQW5A.mjs similarity index 77% rename from docs/web/BrowserWebSocketTransport-AJ3WEQWR.mjs rename to docs/web/BrowserWebSocketTransport-GCNNQW5A.mjs index a7d5a55f..fe626d6e 100644 --- a/docs/web/BrowserWebSocketTransport-AJ3WEQWR.mjs +++ b/docs/web/BrowserWebSocketTransport-GCNNQW5A.mjs @@ -1,6 +1,6 @@ import { BrowserWebSocketTransport -} from "./chunk-2MX732QA.mjs"; +} from "./chunk-43DSNPFJ.mjs"; import "./chunk-3KGMXYRN.mjs"; export { BrowserWebSocketTransport diff --git a/docs/web/NodeWebSocketTransport-KIPN7CTU.mjs b/docs/web/NodeWebSocketTransport-L3CCN7TK.mjs similarity index 88% rename from docs/web/NodeWebSocketTransport-KIPN7CTU.mjs rename to docs/web/NodeWebSocketTransport-L3CCN7TK.mjs index e1355a76..75b31ebf 100644 --- a/docs/web/NodeWebSocketTransport-KIPN7CTU.mjs +++ b/docs/web/NodeWebSocketTransport-L3CCN7TK.mjs @@ -1,14 +1,14 @@ import { packageVersion -} from "./chunk-EXETZ625.mjs"; +} from "./chunk-2CNFTRH6.mjs"; import { __commonJS, __toESM } from "./chunk-3KGMXYRN.mjs"; -// node_modules/ws/browser.js +// ../testeranto/node_modules/ws/browser.js var require_browser = __commonJS({ - "node_modules/ws/browser.js"(exports, module) { + "../testeranto/node_modules/ws/browser.js"(exports, module) { "use strict"; module.exports = function() { throw new Error( @@ -18,7 +18,7 @@ var require_browser = __commonJS({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js var import_ws = __toESM(require_browser(), 1); var NodeWebSocketTransport = class { static create(url, headers) { diff --git a/docs/web/bidi-LSXYACZ6.mjs b/docs/web/bidi-PSJAFB3R.mjs similarity index 97% rename from docs/web/bidi-LSXYACZ6.mjs rename to docs/web/bidi-PSJAFB3R.mjs index 832a4aea..1b8e7e41 100644 --- a/docs/web/bidi-LSXYACZ6.mjs +++ b/docs/web/bidi-PSJAFB3R.mjs @@ -79,8 +79,8 @@ import { throwIfDetached, throwIfDisposed, timeout -} from "./chunk-KKQOQNY2.mjs"; -import "./chunk-EXETZ625.mjs"; +} from "./chunk-WZWH5UFM.mjs"; +import "./chunk-2CNFTRH6.mjs"; import { __commonJS, __esm, @@ -96,7 +96,7 @@ import { __toESM } from "./chunk-3KGMXYRN.mjs"; -// node_modules/mitt/dist/mitt.mjs +// ../testeranto/node_modules/mitt/dist/mitt.mjs var mitt_exports = {}; __export(mitt_exports, { default: () => mitt_default @@ -118,13 +118,13 @@ function mitt_default(n) { } }; } var init_mitt = __esm({ - "node_modules/mitt/dist/mitt.mjs"() { + "../testeranto/node_modules/mitt/dist/mitt.mjs"() { } }); -// node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js var require_EventEmitter = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/EventEmitter.js"(exports) { "use strict"; var __importDefault = exports && exports.__importDefault || function(mod) { return mod && mod.__esModule ? mod : { "default": mod }; @@ -184,9 +184,9 @@ var require_EventEmitter = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/log.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/log.js var require_log = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/log.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/log.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogType = void 0; @@ -201,9 +201,9 @@ var require_log = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js var require_ProcessingQueue = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/ProcessingQueue.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -264,17 +264,17 @@ var require_ProcessingQueue = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/cdp.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js var require_cdp = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/cdp.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/cdp.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js var require_chromium_bidi = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/chromium-bidi.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EVENT_NAMES = exports.Bluetooth = exports.Network = exports.BrowsingContext = exports.Log = exports.Script = exports.BiDiModule = void 0; @@ -353,17 +353,17 @@ var require_chromium_bidi = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js var require_webdriver_bidi = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js var require_ErrorResponse = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/ErrorResponse.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnderspecifiedStoragePartitionException = exports.UnableToSetFileInputException = exports.UnableToSetCookieException = exports.NoSuchStoragePartitionException = exports.UnsupportedOperationException = exports.UnableToCloseBrowserException = exports.UnableToCaptureScreenException = exports.UnknownErrorException = exports.UnknownCommandException = exports.SessionNotCreatedException = exports.NoSuchUserContextException = exports.NoSuchScriptException = exports.NoSuchRequestException = exports.NoSuchNodeException = exports.NoSuchInterceptException = exports.NoSuchHistoryEntryException = exports.NoSuchHandleException = exports.NoSuchFrameException = exports.NoSuchElementException = exports.NoSuchAlertException = exports.MoveTargetOutOfBoundsException = exports.InvalidSessionIdException = exports.InvalidSelectorException = exports.InvalidArgumentException = exports.Exception = void 0; @@ -535,25 +535,25 @@ var require_ErrorResponse = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js var require_webdriver_bidi_permissions = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-permissions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js var require_webdriver_bidi_bluetooth = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/generated/webdriver-bidi-bluetooth.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); } }); -// node_modules/chromium-bidi/lib/cjs/protocol/protocol.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js var require_protocol = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/protocol/protocol.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/protocol/protocol.js"(exports) { "use strict"; var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === void 0) @@ -603,9 +603,9 @@ var require_protocol = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js var require_BidiNoOpParser = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiNoOpParser.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BidiNoOpParser = void 0; @@ -761,9 +761,9 @@ var require_BidiNoOpParser = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js var require_BrowserProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/browser/BrowserProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowserProcessor = void 0; @@ -827,9 +827,9 @@ var require_BrowserProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js var require_CdpProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CdpProcessor = void 0; @@ -874,9 +874,9 @@ var require_CdpProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js var require_BrowsingContextProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowsingContextProcessor = void 0; @@ -1063,9 +1063,9 @@ var require_BrowsingContextProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/assert.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/assert.js var require_assert = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/assert.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/assert.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assert = assert2; @@ -1077,9 +1077,9 @@ var require_assert = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js var require_GraphemeTools = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/GraphemeTools.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isSingleComplexGrapheme = isSingleComplexGrapheme; @@ -1094,9 +1094,9 @@ var require_GraphemeTools = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js var require_InputSource = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputSource.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1235,9 +1235,9 @@ var require_InputSource = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js var require_keyUtils = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/keyUtils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNormalizedKey = getNormalizedKey; @@ -1705,9 +1705,9 @@ var require_keyUtils = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js var require_USKeyboardLayout = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/USKeyboardLayout.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KeyToKeyCode = void 0; @@ -1966,9 +1966,9 @@ var require_USKeyboardLayout = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js var require_ActionDispatcher = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/ActionDispatcher.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionDispatcher = void 0; @@ -2629,9 +2629,9 @@ var require_ActionDispatcher = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Mutex.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js var require_Mutex = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Mutex.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Mutex.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Mutex = void 0; @@ -2675,9 +2675,9 @@ var require_Mutex = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js var require_InputState = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputState.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputState = void 0; @@ -2757,9 +2757,9 @@ var require_InputState = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js var require_InputStateManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputStateManager.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputStateManager = void 0; @@ -2778,9 +2778,9 @@ var require_InputStateManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js var require_InputProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/input/InputProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputProcessor = void 0; @@ -2952,9 +2952,9 @@ var require_InputProcessor = __commonJS({ } }); -// node_modules/urlpattern-polyfill/dist/urlpattern.cjs +// ../testeranto/node_modules/urlpattern-polyfill/dist/urlpattern.cjs var require_urlpattern = __commonJS({ - "node_modules/urlpattern-polyfill/dist/urlpattern.cjs"(exports, module) { + "../testeranto/node_modules/urlpattern-polyfill/dist/urlpattern.cjs"(exports, module) { "use strict"; var M = Object.defineProperty; var Pe = Object.getOwnPropertyDescriptor; @@ -3759,9 +3759,9 @@ var require_urlpattern = __commonJS({ } }); -// node_modules/urlpattern-polyfill/index.cjs +// ../testeranto/node_modules/urlpattern-polyfill/index.cjs var require_urlpattern_polyfill = __commonJS({ - "node_modules/urlpattern-polyfill/index.cjs"(exports, module) { + "../testeranto/node_modules/urlpattern-polyfill/index.cjs"(exports, module) { var { URLPattern } = require_urlpattern(); module.exports = { URLPattern }; if (!globalThis.URLPattern) { @@ -3770,9 +3770,9 @@ var require_urlpattern_polyfill = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js var require_UrlPattern = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/UrlPattern.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.URLPattern = void 0; @@ -3785,9 +3785,9 @@ var require_UrlPattern = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js var require_NetworkProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkProcessor = void 0; @@ -4056,9 +4056,9 @@ var require_NetworkProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js var require_PermissionsProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/permissions/PermissionsProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PermissionsProcessor = void 0; @@ -4092,9 +4092,9 @@ var require_PermissionsProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/uuid.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/uuid.js var require_uuid = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/uuid.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/uuid.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.uuidv4 = uuidv4; @@ -4124,9 +4124,9 @@ var require_uuid = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js var require_ChannelProxy = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ChannelProxy.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChannelProxy = void 0; @@ -4346,9 +4346,9 @@ var require_ChannelProxy = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js var require_PreloadScript = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScript.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreloadScript = void 0; @@ -4447,9 +4447,9 @@ var require_PreloadScript = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js var require_ScriptProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/ScriptProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ScriptProcessor = void 0; @@ -4550,9 +4550,9 @@ var require_ScriptProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js var require_SessionProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SessionProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SessionProcessor = void 0; @@ -4655,9 +4655,9 @@ var require_SessionProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Base64.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Base64.js var require_Base64 = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Base64.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Base64.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.base64ToString = base64ToString; @@ -4670,9 +4670,9 @@ var require_Base64 = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js var require_NetworkUtils = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkUtils.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.computeHeadersSize = computeHeadersSize; @@ -4917,9 +4917,9 @@ var require_NetworkUtils = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js var require_StorageProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/storage/StorageProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StorageProcessor = void 0; @@ -5074,9 +5074,9 @@ var require_StorageProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js var require_OutgoingMessage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/OutgoingMessage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutgoingMessage = void 0; @@ -5115,9 +5115,9 @@ var require_OutgoingMessage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js var require_CommandProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/CommandProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandProcessor = void 0; @@ -5307,9 +5307,9 @@ var require_CommandProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js var require_BluetoothProcessor = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BluetoothProcessor = void 0; @@ -5352,9 +5352,9 @@ var require_BluetoothProcessor = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Deferred.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js var require_Deferred = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Deferred.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Deferred.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Deferred = void 0; @@ -5409,9 +5409,9 @@ var require_Deferred = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js var require_unitConversions = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/unitConversions.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inchesFromCm = inchesFromCm; @@ -5421,9 +5421,9 @@ var require_unitConversions = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js var require_Realm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/Realm.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Realm = void 0; @@ -5884,9 +5884,9 @@ var require_Realm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js var require_SharedId = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/SharedId.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSharedId = getSharedId; @@ -5942,9 +5942,9 @@ var require_SharedId = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js var require_WindowRealm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WindowRealm.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WindowRealm = void 0; @@ -6053,9 +6053,9 @@ var require_WindowRealm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js var require_BrowsingContextImpl = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -7307,9 +7307,9 @@ var require_BrowsingContextImpl = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js var require_WorkerRealm = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/WorkerRealm.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WorkerRealm = void 0; @@ -7366,9 +7366,9 @@ var require_WorkerRealm = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js var require_logHelper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/logHelper.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logMessageFormatter = logMessageFormatter; @@ -7480,9 +7480,9 @@ var require_logHelper = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js var require_LogManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/log/LogManager.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -7675,9 +7675,9 @@ var require_LogManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js var require_CdpTarget = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CdpTarget = void 0; @@ -7941,9 +7941,9 @@ var require_CdpTarget = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js var require_CdpTargetManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/cdp/CdpTargetManager.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CdpTargetManager = void 0; @@ -8155,9 +8155,9 @@ var require_CdpTargetManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js var require_BrowsingContextStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/context/BrowsingContextStorage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowsingContextStorage = void 0; @@ -8241,9 +8241,9 @@ var require_BrowsingContextStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js var require_NetworkRequest = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkRequest.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -8929,9 +8929,9 @@ var require_NetworkRequest = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js var require_NetworkStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/network/NetworkStorage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkStorage = void 0; @@ -9155,9 +9155,9 @@ var require_NetworkStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js var require_PreloadScriptStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/PreloadScriptStorage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreloadScriptStorage = void 0; @@ -9200,9 +9200,9 @@ var require_PreloadScriptStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js var require_RealmStorage = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/script/RealmStorage.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RealmStorage = void 0; @@ -9274,9 +9274,9 @@ var require_RealmStorage = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/Buffer.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js var require_Buffer = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/Buffer.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/Buffer.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Buffer = void 0; @@ -9309,9 +9309,9 @@ var require_Buffer = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js var require_DefaultMap = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DefaultMap.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultMap = void 0; @@ -9333,9 +9333,9 @@ var require_DefaultMap = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js var require_DistinctValues = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/DistinctValues.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.distinctValues = distinctValues; @@ -9364,9 +9364,9 @@ var require_DistinctValues = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js var require_IdWrapper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/utils/IdWrapper.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IdWrapper = void 0; @@ -9388,9 +9388,9 @@ var require_IdWrapper = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js var require_events = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/events.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCdpEvent = isCdpEvent2; @@ -9407,9 +9407,9 @@ var require_events = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js var require_SubscriptionManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SubscriptionManager = void 0; @@ -9607,9 +9607,9 @@ var require_SubscriptionManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js var require_EventManager = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/modules/session/EventManager.js"(exports) { "use strict"; var _a3; Object.defineProperty(exports, "__esModule", { value: true }); @@ -9818,9 +9818,9 @@ var require_EventManager = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js var require_BidiServer = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiServer.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BidiServer = void 0; @@ -9923,9 +9923,9 @@ var require_BidiServer = __commonJS({ } }); -// node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js +// ../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js var require_BidiMapper = __commonJS({ - "node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js"(exports) { + "../testeranto/node_modules/chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutgoingMessage = exports.EventEmitter = exports.BidiServer = void 0; @@ -9944,10 +9944,10 @@ var require_BidiMapper = __commonJS({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js var BidiMapper = __toESM(require_BidiMapper(), 1); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/CDPSession.js var _detached, _connection, _sessionId; var _BidiCdpSession = class extends CDPSession { constructor(frame, sessionId) { @@ -10028,7 +10028,7 @@ _connection = new WeakMap(); _sessionId = new WeakMap(); __publicField(BidiCdpSession, "sessions", /* @__PURE__ */ new Map()); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js var debugProtocolSend = debug("puppeteer:webDriverBiDi:SEND \u25BA"); var debugProtocolReceive = debug("puppeteer:webDriverBiDi:RECV \u25C0"); var BidiConnection = class extends EventEmitter { @@ -10149,7 +10149,7 @@ function isCdpEvent(event) { return event.method.startsWith("cdp."); } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BidiOverCdp.js var bidiServerLogger = (prefix, ...args) => { debug(`bidi:${prefix}`)(args); }; @@ -10272,7 +10272,7 @@ var NoOpTransport = class extends BidiMapper.EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Navigation.js var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -10441,7 +10441,7 @@ var Navigation = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Realm.js var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -10715,7 +10715,7 @@ var SharedWorkerRealm = class extends Realm2 { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Request.js var __runInitializers3 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -10945,7 +10945,7 @@ var Request = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserPrompt.js var __runInitializers4 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11080,7 +11080,7 @@ var UserPrompt = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js var __runInitializers5 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11548,7 +11548,7 @@ var BrowsingContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/UserContext.js var __runInitializers6 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11751,7 +11751,7 @@ var UserContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Deserializer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Deserializer.js var _deserializeNumber, deserializeNumber_fn, _deserializeTuple, deserializeTuple_fn; var BidiDeserializer = class { static deserialize(result) { @@ -11826,7 +11826,7 @@ deserializeTuple_fn = function([serializedKey, serializedValue]) { __privateAdd(BidiDeserializer, _deserializeNumber); __privateAdd(BidiDeserializer, _deserializeTuple); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Dialog.js var BidiDialog = class extends Dialog { static from(prompt) { return new BidiDialog(prompt); @@ -11845,10 +11845,10 @@ var BidiDialog = class extends Dialog { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js var Bidi = __toESM(require_protocol(), 1); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/JSHandle.js var BidiJSHandle = class extends JSHandle { static from(value, realm) { return new BidiJSHandle(value, realm); @@ -11909,7 +11909,7 @@ var BidiJSHandle = class extends JSHandle { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ElementHandle.js var __runInitializers7 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -12125,7 +12125,7 @@ var BidiElementHandle = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/ExposedFunction.js var __addDisposableResource2 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -12366,7 +12366,7 @@ var ExposeableFunction = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPResponse.js var __runInitializers8 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -12530,7 +12530,7 @@ var BidiHTTPResponse = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/HTTPRequest.js var _a2; var requests = /* @__PURE__ */ new WeakMap(); var BidiHTTPRequest = class extends HTTPRequest { @@ -12766,7 +12766,7 @@ function getBidiHeaders(rawHeaders) { return headers; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Serializer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Serializer.js var UnserializableError = class extends Error { }; var _serializeNumber, serializeNumber_fn, _serializeObject, serializeObject_fn; @@ -12871,7 +12871,7 @@ serializeObject_fn = function(arg) { __privateAdd(BidiSerializer, _serializeNumber); __privateAdd(BidiSerializer, _serializeObject); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/util.js function createEvaluationError(details) { if (details.exception.type !== "error") { return BidiDeserializer.deserialize(details.exception); @@ -12908,7 +12908,7 @@ function rewriteNavigationError(message, ms) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Realm.js var __addDisposableResource3 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -13206,7 +13206,7 @@ var BidiWorkerRealm = class extends BidiRealm { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/WebWorker.js var BidiWebWorker = class extends WebWorker { static from(frame, realm) { const worker = new BidiWebWorker(frame, realm); @@ -13230,7 +13230,7 @@ var BidiWebWorker = class extends WebWorker { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Frame.js var __runInitializers9 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -13700,7 +13700,7 @@ function getStackTraceLocations(stackTrace) { return stackTraceLocations; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Input.js var SourceActionsType; (function(SourceActionsType2) { SourceActionsType2["None"] = "none"; @@ -14306,7 +14306,7 @@ var BidiTouchscreen = class extends Touchscreen { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Page.js var __esDecorate10 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") @@ -15087,7 +15087,7 @@ function convertCookiesSameSiteCdpToBiDi(sameSite) { return sameSite === "Strict" ? "strict" : sameSite === "Lax" ? "lax" : "none"; } -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Target.js var BidiBrowserTarget = class extends Target { #browser; constructor(browser) { @@ -15214,7 +15214,7 @@ var BidiWorkerTarget = class extends Target { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserContext.js var __esDecorate11 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") @@ -15545,7 +15545,7 @@ var BidiBrowserContext = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Browser.js var __runInitializers12 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -15833,7 +15833,7 @@ var Browser2 = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js var __runInitializers13 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -16013,7 +16013,7 @@ var Session = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Browser.js var __esDecorate14 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") diff --git a/docs/web/browser-Q3NOC5XS.mjs b/docs/web/browser-AMP7N3DU.mjs similarity index 97% rename from docs/web/browser-Q3NOC5XS.mjs rename to docs/web/browser-AMP7N3DU.mjs index dc5b64cc..65e681ba 100644 --- a/docs/web/browser-Q3NOC5XS.mjs +++ b/docs/web/browser-AMP7N3DU.mjs @@ -2,9 +2,9 @@ import { __commonJS } from "./chunk-3KGMXYRN.mjs"; -// node_modules/ms/index.js +// ../testeranto/node_modules/ms/index.js var require_ms = __commonJS({ - "node_modules/ms/index.js"(exports, module) { + "../testeranto/node_modules/ms/index.js"(exports, module) { var s = 1e3; var m = s * 60; var h = m * 60; @@ -118,9 +118,9 @@ var require_ms = __commonJS({ } }); -// node_modules/debug/src/common.js +// ../testeranto/node_modules/debug/src/common.js var require_common = __commonJS({ - "node_modules/debug/src/common.js"(exports, module) { + "../testeranto/node_modules/debug/src/common.js"(exports, module) { function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; @@ -281,9 +281,9 @@ var require_common = __commonJS({ } }); -// node_modules/debug/src/browser.js +// ../testeranto/node_modules/debug/src/browser.js var require_browser = __commonJS({ - "node_modules/debug/src/browser.js"(exports, module) { + "../testeranto/node_modules/debug/src/browser.js"(exports, module) { exports.formatArgs = formatArgs; exports.save = save; exports.load = load; diff --git a/docs/web/chunk-2CNFTRH6.mjs b/docs/web/chunk-2CNFTRH6.mjs new file mode 100644 index 00000000..fe954180 --- /dev/null +++ b/docs/web/chunk-2CNFTRH6.mjs @@ -0,0 +1,6 @@ +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js +var packageVersion = "23.9.0"; + +export { + packageVersion +}; diff --git a/docs/web/chunk-2FNPKSAA.mjs b/docs/web/chunk-2FNPKSAA.mjs deleted file mode 100644 index cc5fb83b..00000000 --- a/docs/web/chunk-2FNPKSAA.mjs +++ /dev/null @@ -1,60 +0,0 @@ -import { - require_react, - require_react_dom -} from "./chunk-JE6WFJZI.mjs"; -import { - __commonJS, - __toESM -} from "./chunk-3KGMXYRN.mjs"; - -// node_modules/react-dom/client.js -var require_client = __commonJS({ - "node_modules/react-dom/client.js"(exports) { - "use strict"; - var m = require_react_dom(); - if (false) { - exports.createRoot = m.createRoot; - exports.hydrateRoot = m.hydrateRoot; - } else { - i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - exports.createRoot = function(c, o) { - i.usingClientEntryPoint = true; - try { - return m.createRoot(c, o); - } finally { - i.usingClientEntryPoint = false; - } - }; - exports.hydrateRoot = function(c, h, o) { - i.usingClientEntryPoint = true; - try { - return m.hydrateRoot(c, h, o); - } finally { - i.usingClientEntryPoint = false; - } - }; - } - var i; - } -}); - -// src/ClassicalComponent/index.tsx -var import_react = __toESM(require_react(), 1); -var ClassicalComponent = class extends import_react.default.Component { - constructor(props) { - super(props); - this.state = { - count: 0 - }; - } - render() { - return /* @__PURE__ */ import_react.default.createElement("div", { style: { border: "3px solid red" } }, /* @__PURE__ */ import_react.default.createElement("h1", { id: "theHeader" }, "Hello Marcus"), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theProps" }, JSON.stringify(this.props)), /* @__PURE__ */ import_react.default.createElement("p", null, "foo: ", this.props.foo), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theStat" }, JSON.stringify(this.state)), /* @__PURE__ */ import_react.default.createElement("p", null, "count: ", this.state.count, " times"), /* @__PURE__ */ import_react.default.createElement("button", { id: "theButton", onClick: async () => { - this.setState({ count: this.state.count + 1 }); - } }, "Click")); - } -}; - -export { - require_client, - ClassicalComponent -}; diff --git a/docs/web/chunk-2MX732QA.mjs b/docs/web/chunk-43DSNPFJ.mjs similarity index 89% rename from docs/web/chunk-2MX732QA.mjs rename to docs/web/chunk-43DSNPFJ.mjs index 60086418..9671b03b 100644 --- a/docs/web/chunk-2MX732QA.mjs +++ b/docs/web/chunk-43DSNPFJ.mjs @@ -1,4 +1,4 @@ -// node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js var BrowserWebSocketTransport = class { static create(url) { return new Promise((resolve, reject) => { diff --git a/docs/web/chunk-JE6WFJZI.mjs b/docs/web/chunk-D54U7RBP.mjs similarity index 92% rename from docs/web/chunk-JE6WFJZI.mjs rename to docs/web/chunk-D54U7RBP.mjs index 7f8bac36..67c31bcc 100644 --- a/docs/web/chunk-JE6WFJZI.mjs +++ b/docs/web/chunk-D54U7RBP.mjs @@ -1,1891 +1,9 @@ import { - __commonJS -} from "./chunk-3KGMXYRN.mjs"; - -// node_modules/react/cjs/react.development.js -var require_react_development = __commonJS({ - "node_modules/react/cjs/react.development.js"(exports, module) { - "use strict"; - if (true) { - (function() { - "use strict"; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); - } - var ReactVersion = "18.2.0"; - var REACT_ELEMENT_TYPE = Symbol.for("react.element"); - var REACT_PORTAL_TYPE = Symbol.for("react.portal"); - var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); - var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); - var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); - var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); - var REACT_CONTEXT_TYPE = Symbol.for("react.context"); - var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); - var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); - var REACT_MEMO_TYPE = Symbol.for("react.memo"); - var REACT_LAZY_TYPE = Symbol.for("react.lazy"); - var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); - var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== "object") { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === "function") { - return maybeIterator; - } - return null; - } - var ReactCurrentDispatcher = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }; - var ReactCurrentBatchConfig = { - transition: null - }; - var ReactCurrentActQueue = { - current: null, - // Used to reproduce behavior of `batchedUpdates` in legacy mode. - isBatchingLegacy: false, - didScheduleLegacyUpdate: false - }; - var ReactCurrentOwner = { - /** - * @internal - * @type {ReactComponent} - */ - current: null - }; - var ReactDebugCurrentFrame = {}; - var currentExtraStackFrame = null; - function setExtraStackFrame(stack) { - { - currentExtraStackFrame = stack; - } - } - { - ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { - { - currentExtraStackFrame = stack; - } - }; - ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function() { - var stack = ""; - if (currentExtraStackFrame) { - stack += currentExtraStackFrame; - } - var impl = ReactDebugCurrentFrame.getCurrentStack; - if (impl) { - stack += impl() || ""; - } - return stack; - }; - } - var enableScopeAPI = false; - var enableCacheElement = false; - var enableTransitionTracing = false; - var enableLegacyHidden = false; - var enableDebugTracing = false; - var ReactSharedInternals = { - ReactCurrentDispatcher, - ReactCurrentBatchConfig, - ReactCurrentOwner - }; - { - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; - ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; - } - function warn(format) { - { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - printWarning("warn", format, args); - } - } - } - function error(format) { - { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - printWarning("error", format, args); - } - } - } - function printWarning(level, format, args) { - { - var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame2.getStackAddendum(); - if (stack !== "") { - format += "%s"; - args = args.concat([stack]); - } - var argsWithFormat = args.map(function(item) { - return String(item); - }); - argsWithFormat.unshift("Warning: " + format); - Function.prototype.apply.call(console[level], console, argsWithFormat); - } - } - var didWarnStateUpdateForUnmountedComponent = {}; - function warnNoop(publicInstance, callerName) { - { - var _constructor = publicInstance.constructor; - var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; - var warningKey = componentName + "." + callerName; - if (didWarnStateUpdateForUnmountedComponent[warningKey]) { - return; - } - error("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.", callerName, componentName); - didWarnStateUpdateForUnmountedComponent[warningKey] = true; - } - } - var ReactNoopUpdateQueue = { - /** - * Checks whether or not this composite component is mounted. - * @param {ReactClass} publicInstance The instance we want to test. - * @return {boolean} True if mounted, false otherwise. - * @protected - * @final - */ - isMounted: function(publicInstance) { - return false; - }, - /** - * Forces an update. This should only be invoked when it is known with - * certainty that we are **not** in a DOM transaction. - * - * You may want to call this when you know that some deeper aspect of the - * component's state has changed but `setState` was not called. - * - * This will not invoke `shouldComponentUpdate`, but it will invoke - * `componentWillUpdate` and `componentDidUpdate`. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueForceUpdate: function(publicInstance, callback, callerName) { - warnNoop(publicInstance, "forceUpdate"); - }, - /** - * Replaces all of the state. Always use this or `setState` to mutate state. - * You should treat `this.state` as immutable. - * - * There is no guarantee that `this.state` will be immediately updated, so - * accessing `this.state` after calling this method may return the old value. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} completeState Next state. - * @param {?function} callback Called after component is updated. - * @param {?string} callerName name of the calling function in the public API. - * @internal - */ - enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { - warnNoop(publicInstance, "replaceState"); - }, - /** - * Sets a subset of the state. This only exists because _pendingState is - * internal. This provides a merging strategy that is not available to deep - * properties which is confusing. TODO: Expose pendingState or don't use it - * during the merge. - * - * @param {ReactClass} publicInstance The instance that should rerender. - * @param {object} partialState Next partial state to be merged with state. - * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. - * @internal - */ - enqueueSetState: function(publicInstance, partialState, callback, callerName) { - warnNoop(publicInstance, "setState"); - } - }; - var assign = Object.assign; - var emptyObject = {}; - { - Object.freeze(emptyObject); - } - function Component(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - Component.prototype.isReactComponent = {}; - Component.prototype.setState = function(partialState, callback) { - if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { - throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - } - this.updater.enqueueSetState(this, partialState, callback, "setState"); - }; - Component.prototype.forceUpdate = function(callback) { - this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); - }; - { - var deprecatedAPIs = { - isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], - replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] - }; - var defineDeprecationWarning = function(methodName, info) { - Object.defineProperty(Component.prototype, methodName, { - get: function() { - warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); - return void 0; - } - }); - }; - for (var fnName in deprecatedAPIs) { - if (deprecatedAPIs.hasOwnProperty(fnName)) { - defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); - } - } - } - function ComponentDummy() { - } - ComponentDummy.prototype = Component.prototype; - function PureComponent(props, context, updater) { - this.props = props; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); - pureComponentPrototype.constructor = PureComponent; - assign(pureComponentPrototype, Component.prototype); - pureComponentPrototype.isPureReactComponent = true; - function createRef() { - var refObject = { - current: null - }; - { - Object.seal(refObject); - } - return refObject; - } - var isArrayImpl = Array.isArray; - function isArray(a) { - return isArrayImpl(a); - } - function typeName(value) { - { - var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; - var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; - return type; - } - } - function willCoercionThrow(value) { - { - try { - testStringCoercion(value); - return false; - } catch (e) { - return true; - } - } - } - function testStringCoercion(value) { - return "" + value; - } - function checkKeyStringCoercion(value) { - { - if (willCoercionThrow(value)) { - error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); - return testStringCoercion(value); - } - } - } - function getWrappedName(outerType, innerType, wrapperName) { - var displayName = outerType.displayName; - if (displayName) { - return displayName; - } - var functionName = innerType.displayName || innerType.name || ""; - return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; - } - function getContextName(type) { - return type.displayName || "Context"; - } - function getComponentNameFromType(type) { - if (type == null) { - return null; - } - { - if (typeof type.tag === "number") { - error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); - } - } - if (typeof type === "function") { - return type.displayName || type.name || null; - } - if (typeof type === "string") { - return type; - } - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, "ForwardRef"); - case REACT_MEMO_TYPE: - var outerName = type.displayName || null; - if (outerName !== null) { - return outerName; - } - return getComponentNameFromType(type.type) || "Memo"; - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return getComponentNameFromType(init(payload)); - } catch (x) { - return null; - } - } - } - } - return null; - } - var hasOwnProperty = Object.prototype.hasOwnProperty; - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true - }; - var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; - { - didWarnAboutStringRefs = {}; - } - function hasValidRef(config) { - { - if (hasOwnProperty.call(config, "ref")) { - var getter = Object.getOwnPropertyDescriptor(config, "ref").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.ref !== void 0; - } - function hasValidKey(config) { - { - if (hasOwnProperty.call(config, "key")) { - var getter = Object.getOwnPropertyDescriptor(config, "key").get; - if (getter && getter.isReactWarning) { - return false; - } - } - } - return config.key !== void 0; - } - function defineKeyPropWarningGetter(props, displayName) { - var warnAboutAccessingKey = function() { - { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - error("%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://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingKey.isReactWarning = true; - Object.defineProperty(props, "key", { - get: warnAboutAccessingKey, - configurable: true - }); - } - function defineRefPropWarningGetter(props, displayName) { - var warnAboutAccessingRef = function() { - { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - error("%s: `ref` 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://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingRef.isReactWarning = true; - Object.defineProperty(props, "ref", { - get: warnAboutAccessingRef, - configurable: true - }); - } - function warnIfStringRefCannotBeAutoConverted(config) { - { - if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { - var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); - if (!didWarnAboutStringRefs[componentName]) { - error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); - didWarnAboutStringRefs[componentName] = true; - } - } - } - } - var ReactElement = function(type, key, ref, self, source, owner, props) { - var element = { - // This tag allows us to uniquely identify this as a React Element - $$typeof: REACT_ELEMENT_TYPE, - // Built-in properties that belong on the element - type, - key, - ref, - props, - // Record the component responsible for creating this element. - _owner: owner - }; - { - element._store = {}; - Object.defineProperty(element._store, "validated", { - configurable: false, - enumerable: false, - writable: true, - value: false - }); - Object.defineProperty(element, "_self", { - configurable: false, - enumerable: false, - writable: false, - value: self - }); - Object.defineProperty(element, "_source", { - configurable: false, - enumerable: false, - writable: false, - value: source - }); - if (Object.freeze) { - Object.freeze(element.props); - Object.freeze(element); - } - } - return element; - }; - function createElement(type, config, children) { - var propName; - var props = {}; - var key = null; - var ref = null; - var self = null; - var source = null; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - { - warnIfStringRefCannotBeAutoConverted(config); - } - } - if (hasValidKey(config)) { - { - checkKeyStringCoercion(config.key); - } - key = "" + config.key; - } - self = config.__self === void 0 ? null : config.__self; - source = config.__source === void 0 ? null : config.__source; - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props[propName] = config[propName]; - } - } - } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - { - if (Object.freeze) { - Object.freeze(childArray); - } - } - props.children = childArray; - } - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - for (propName in defaultProps) { - if (props[propName] === void 0) { - props[propName] = defaultProps[propName]; - } - } - } - { - if (key || ref) { - var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; - if (key) { - defineKeyPropWarningGetter(props, displayName); - } - if (ref) { - defineRefPropWarningGetter(props, displayName); - } - } - } - return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); - } - function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); - return newElement; - } - function cloneElement(element, config, children) { - if (element === null || element === void 0) { - throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); - } - var propName; - var props = assign({}, element.props); - var key = element.key; - var ref = element.ref; - var self = element._self; - var source = element._source; - var owner = element._owner; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - owner = ReactCurrentOwner.current; - } - if (hasValidKey(config)) { - { - checkKeyStringCoercion(config.key); - } - key = "" + config.key; - } - var defaultProps; - if (element.type && element.type.defaultProps) { - defaultProps = element.type.defaultProps; - } - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - if (config[propName] === void 0 && defaultProps !== void 0) { - props[propName] = defaultProps[propName]; - } else { - props[propName] = config[propName]; - } - } - } - } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props.children = children; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - props.children = childArray; - } - return ReactElement(element.type, key, ref, self, source, owner, props); - } - function isValidElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - var SEPARATOR = "."; - var SUBSEPARATOR = ":"; - function escape(key) { - var escapeRegex = /[=:]/g; - var escaperLookup = { - "=": "=0", - ":": "=2" - }; - var escapedString = key.replace(escapeRegex, function(match) { - return escaperLookup[match]; - }); - return "$" + escapedString; - } - var didWarnAboutMaps = false; - var userProvidedKeyEscapeRegex = /\/+/g; - function escapeUserProvidedKey(text) { - return text.replace(userProvidedKeyEscapeRegex, "$&/"); - } - function getElementKey(element, index) { - if (typeof element === "object" && element !== null && element.key != null) { - { - checkKeyStringCoercion(element.key); - } - return escape("" + element.key); - } - return index.toString(36); - } - function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { - var type = typeof children; - if (type === "undefined" || type === "boolean") { - children = null; - } - var invokeCallback = false; - if (children === null) { - invokeCallback = true; - } else { - switch (type) { - case "string": - case "number": - invokeCallback = true; - break; - case "object": - switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - invokeCallback = true; - } - } - } - if (invokeCallback) { - var _child = children; - var mappedChild = callback(_child); - var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; - if (isArray(mappedChild)) { - var escapedChildKey = ""; - if (childKey != null) { - escapedChildKey = escapeUserProvidedKey(childKey) + "/"; - } - mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { - return c; - }); - } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { - { - if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { - checkKeyStringCoercion(mappedChild.key); - } - } - mappedChild = cloneAndReplaceKey( - mappedChild, - // Keep both the (mapped) and old keys if they differ, just as - // traverseAllChildren used to do for objects as children - escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key - (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? ( - // $FlowFixMe Flow incorrectly thinks existing element's key can be a number - // eslint-disable-next-line react-internal/safe-string-coercion - escapeUserProvidedKey("" + mappedChild.key) + "/" - ) : "") + childKey - ); - } - array.push(mappedChild); - } - return 1; - } - var child; - var nextName; - var subtreeCount = 0; - var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (isArray(children)) { - for (var i = 0; i < children.length; i++) { - child = children[i]; - nextName = nextNamePrefix + getElementKey(child, i); - subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); - } - } else { - var iteratorFn = getIteratorFn(children); - if (typeof iteratorFn === "function") { - var iterableChildren = children; - { - if (iteratorFn === iterableChildren.entries) { - if (!didWarnAboutMaps) { - warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); - } - didWarnAboutMaps = true; - } - } - var iterator = iteratorFn.call(iterableChildren); - var step; - var ii = 0; - while (!(step = iterator.next()).done) { - child = step.value; - nextName = nextNamePrefix + getElementKey(child, ii++); - subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); - } - } else if (type === "object") { - var childrenString = String(children); - throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); - } - } - return subtreeCount; - } - function mapChildren(children, func, context) { - if (children == null) { - return children; - } - var result = []; - var count = 0; - mapIntoArray(children, result, "", "", function(child) { - return func.call(context, child, count++); - }); - return result; - } - function countChildren(children) { - var n = 0; - mapChildren(children, function() { - n++; - }); - return n; - } - function forEachChildren(children, forEachFunc, forEachContext) { - mapChildren(children, function() { - forEachFunc.apply(this, arguments); - }, forEachContext); - } - function toArray(children) { - return mapChildren(children, function(child) { - return child; - }) || []; - } - function onlyChild(children) { - if (!isValidElement(children)) { - throw new Error("React.Children.only expected to receive a single React element child."); - } - return children; - } - function createContext(defaultValue) { - var context = { - $$typeof: REACT_CONTEXT_TYPE, - // As a workaround to support multiple concurrent renderers, we categorize - // some renderers as primary and others as secondary. We only expect - // there to be two concurrent renderers at most: React Native (primary) and - // Fabric (secondary); React DOM (primary) and React ART (secondary). - // Secondary renderers store their context values on separate fields. - _currentValue: defaultValue, - _currentValue2: defaultValue, - // Used to track how many concurrent renderers this context currently - // supports within in a single renderer. Such as parallel server rendering. - _threadCount: 0, - // These are circular - Provider: null, - Consumer: null, - // Add these to use same hidden class in VM as ServerContext - _defaultValue: null, - _globalName: null - }; - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - var hasWarnedAboutUsingNestedContextConsumers = false; - var hasWarnedAboutUsingConsumerProvider = false; - var hasWarnedAboutDisplayNameOnConsumer = false; - { - var Consumer = { - $$typeof: REACT_CONTEXT_TYPE, - _context: context - }; - Object.defineProperties(Consumer, { - Provider: { - get: function() { - if (!hasWarnedAboutUsingConsumerProvider) { - hasWarnedAboutUsingConsumerProvider = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Provider; - }, - set: function(_Provider) { - context.Provider = _Provider; - } - }, - _currentValue: { - get: function() { - return context._currentValue; - }, - set: function(_currentValue) { - context._currentValue = _currentValue; - } - }, - _currentValue2: { - get: function() { - return context._currentValue2; - }, - set: function(_currentValue2) { - context._currentValue2 = _currentValue2; - } - }, - _threadCount: { - get: function() { - return context._threadCount; - }, - set: function(_threadCount) { - context._threadCount = _threadCount; - } - }, - Consumer: { - get: function() { - if (!hasWarnedAboutUsingNestedContextConsumers) { - hasWarnedAboutUsingNestedContextConsumers = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Consumer; - } - }, - displayName: { - get: function() { - return context.displayName; - }, - set: function(displayName) { - if (!hasWarnedAboutDisplayNameOnConsumer) { - warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); - hasWarnedAboutDisplayNameOnConsumer = true; - } - } - } - }); - context.Consumer = Consumer; - } - { - context._currentRenderer = null; - context._currentRenderer2 = null; - } - return context; - } - var Uninitialized = -1; - var Pending = 0; - var Resolved = 1; - var Rejected = 2; - function lazyInitializer(payload) { - if (payload._status === Uninitialized) { - var ctor = payload._result; - var thenable = ctor(); - thenable.then(function(moduleObject2) { - if (payload._status === Pending || payload._status === Uninitialized) { - var resolved = payload; - resolved._status = Resolved; - resolved._result = moduleObject2; - } - }, function(error2) { - if (payload._status === Pending || payload._status === Uninitialized) { - var rejected = payload; - rejected._status = Rejected; - rejected._result = error2; - } - }); - if (payload._status === Uninitialized) { - var pending = payload; - pending._status = Pending; - pending._result = thenable; - } - } - if (payload._status === Resolved) { - var moduleObject = payload._result; - { - if (moduleObject === void 0) { - error("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?", moduleObject); - } - } - { - if (!("default" in moduleObject)) { - error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); - } - } - return moduleObject.default; - } else { - throw payload._result; - } - } - function lazy(ctor) { - var payload = { - // We use these fields to store the result. - _status: Uninitialized, - _result: ctor - }; - var lazyType = { - $$typeof: REACT_LAZY_TYPE, - _payload: payload, - _init: lazyInitializer - }; - { - var defaultProps; - var propTypes; - Object.defineProperties(lazyType, { - defaultProps: { - configurable: true, - get: function() { - return defaultProps; - }, - set: function(newDefaultProps) { - error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - defaultProps = newDefaultProps; - Object.defineProperty(lazyType, "defaultProps", { - enumerable: true - }); - } - }, - propTypes: { - configurable: true, - get: function() { - return propTypes; - }, - set: function(newPropTypes) { - error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - propTypes = newPropTypes; - Object.defineProperty(lazyType, "propTypes", { - enumerable: true - }); - } - } - }); - } - return lazyType; - } - function forwardRef(render) { - { - if (render != null && render.$$typeof === REACT_MEMO_TYPE) { - error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); - } else if (typeof render !== "function") { - error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); - } else { - if (render.length !== 0 && render.length !== 2) { - error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); - } - } - if (render != null) { - if (render.defaultProps != null || render.propTypes != null) { - error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); - } - } - } - var elementType = { - $$typeof: REACT_FORWARD_REF_TYPE, - render - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (!render.name && !render.displayName) { - render.displayName = name; - } - } - }); - } - return elementType; - } - var REACT_MODULE_REFERENCE; - { - REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); - } - function isValidElementType(type) { - if (typeof type === "string" || typeof type === "function") { - return true; - } - if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { - return true; - } - if (typeof type === "object" && type !== null) { - if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object - // types supported by any Flight configuration anywhere since - // we don't know which Flight build this will end up being used - // with. - type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { - return true; - } - } - return false; - } - function memo(type, compare) { - { - if (!isValidElementType(type)) { - error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); - } - } - var elementType = { - $$typeof: REACT_MEMO_TYPE, - type, - compare: compare === void 0 ? null : compare - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (!type.name && !type.displayName) { - type.displayName = name; - } - } - }); - } - return elementType; - } - function resolveDispatcher() { - var dispatcher = ReactCurrentDispatcher.current; - { - if (dispatcher === null) { - error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); - } - } - return dispatcher; - } - function useContext(Context) { - var dispatcher = resolveDispatcher(); - { - if (Context._context !== void 0) { - var realContext = Context._context; - if (realContext.Consumer === Context) { - error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); - } else if (realContext.Provider === Context) { - error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); - } - } - } - return dispatcher.useContext(Context); - } - function useState(initialState) { - var dispatcher = resolveDispatcher(); - return dispatcher.useState(initialState); - } - function useReducer(reducer, initialArg, init) { - var dispatcher = resolveDispatcher(); - return dispatcher.useReducer(reducer, initialArg, init); - } - function useRef(initialValue) { - var dispatcher = resolveDispatcher(); - return dispatcher.useRef(initialValue); - } - function useEffect(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useEffect(create, deps); - } - function useInsertionEffect(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useInsertionEffect(create, deps); - } - function useLayoutEffect(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useLayoutEffect(create, deps); - } - function useCallback(callback, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useCallback(callback, deps); - } - function useMemo(create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useMemo(create, deps); - } - function useImperativeHandle(ref, create, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeHandle(ref, create, deps); - } - function useDebugValue(value, formatterFn) { - { - var dispatcher = resolveDispatcher(); - return dispatcher.useDebugValue(value, formatterFn); - } - } - function useTransition() { - var dispatcher = resolveDispatcher(); - return dispatcher.useTransition(); - } - function useDeferredValue(value) { - var dispatcher = resolveDispatcher(); - return dispatcher.useDeferredValue(value); - } - function useId() { - var dispatcher = resolveDispatcher(); - return dispatcher.useId(); - } - function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { - var dispatcher = resolveDispatcher(); - return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); - } - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() { - } - disabledLog.__reactDisabledLog = true; - function disableLogs() { - { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - } - function reenableLogs() { - { - disabledDepth--; - if (disabledDepth === 0) { - var props = { - configurable: true, - enumerable: true, - writable: true - }; - Object.defineProperties(console, { - log: assign({}, props, { - value: prevLog - }), - info: assign({}, props, { - value: prevInfo - }), - warn: assign({}, props, { - value: prevWarn - }), - error: assign({}, props, { - value: prevError - }), - group: assign({}, props, { - value: prevGroup - }), - groupCollapsed: assign({}, props, { - value: prevGroupCollapsed - }), - groupEnd: assign({}, props, { - value: prevGroupEnd - }) - }); - } - if (disabledDepth < 0) { - error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } - } - } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; - var prefix; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - if (prefix === void 0) { - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; - } - } - return "\n" + prefix + name; - } - } - var reentry = false; - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) { - return ""; - } - { - var frame = componentFrameCache.get(fn); - if (frame !== void 0) { - return frame; - } - } - var control; - reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher; - { - previousDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = null; - disableLogs(); - } - try { - if (construct) { - var Fake = function() { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function() { - throw Error(); - } - }); - if (typeof Reflect === "object" && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x) { - control = x; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x) { - control = x; - } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === "string") { - var sampleLines = sample.stack.split("\n"); - var controlLines = control.stack.split("\n"); - var s = sampleLines.length - 1; - var c = controlLines.length - 1; - while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { - c--; - } - for (; s >= 1 && c >= 0; s--, c--) { - if (sampleLines[s] !== controlLines[c]) { - if (s !== 1 || c !== 1) { - do { - s--; - c--; - if (c < 0 || sampleLines[s] !== controlLines[c]) { - var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); - if (fn.displayName && _frame.includes("")) { - _frame = _frame.replace("", fn.displayName); - } - { - if (typeof fn === "function") { - componentFrameCache.set(fn, _frame); - } - } - return _frame; - } - } while (s >= 1 && c >= 0); - } - break; - } - } - } - } finally { - reentry = false; - { - ReactCurrentDispatcher$1.current = previousDispatcher; - reenableLogs(); - } - Error.prepareStackTrace = previousPrepareStackTrace; - } - var name = fn ? fn.displayName || fn.name : ""; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; - { - if (typeof fn === "function") { - componentFrameCache.set(fn, syntheticFrame); - } - } - return syntheticFrame; - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - return describeNativeComponentFrame(fn, false); - } - } - function shouldConstruct(Component2) { - var prototype = Component2.prototype; - return !!(prototype && prototype.isReactComponent); - } - function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { - if (type == null) { - return ""; - } - if (typeof type === "function") { - { - return describeNativeComponentFrame(type, shouldConstruct(type)); - } - } - if (typeof type === "string") { - return describeBuiltInComponentFrame(type); - } - switch (type) { - case REACT_SUSPENSE_TYPE: - return describeBuiltInComponentFrame("Suspense"); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList"); - } - if (typeof type === "object") { - switch (type.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type.render); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); - case REACT_LAZY_TYPE: { - var lazyComponent = type; - var payload = lazyComponent._payload; - var init = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x) { - } - } - } - } - return ""; - } - var loggedTypeFailures = {}; - var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); - } - } - } - function checkPropTypes(typeSpecs, values, location, componentName, element) { - { - var has = Function.call.bind(hasOwnProperty); - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex) { - error$1 = ex; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { - loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } - } - } - function setCurrentlyValidatingElement$1(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - setExtraStackFrame(stack); - } else { - setExtraStackFrame(null); - } - } - } - var propTypesMisspellWarningShown; - { - propTypesMisspellWarningShown = false; - } - function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentNameFromType(ReactCurrentOwner.current.type); - if (name) { - return "\n\nCheck the render method of `" + name + "`."; - } - } - return ""; - } - function getSourceInfoErrorAddendum(source) { - if (source !== void 0) { - var fileName = source.fileName.replace(/^.*[\\\/]/, ""); - var lineNumber = source.lineNumber; - return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; - } - return ""; - } - function getSourceInfoErrorAddendumForProps(elementProps) { - if (elementProps !== null && elementProps !== void 0) { - return getSourceInfoErrorAddendum(elementProps.__source); - } - return ""; - } - var ownerHasKeyUseWarning = {}; - function getCurrentComponentErrorInfo(parentType) { - var info = getDeclarationErrorAddendum(); - if (!info) { - var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; - if (parentName) { - info = "\n\nCheck the top-level render call using <" + parentName + ">."; - } - } - return info; - } - function validateExplicitKey(element, parentType) { - if (!element._store || element._store.validated || element.key != null) { - return; - } - element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { - return; - } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - var childOwner = ""; - if (element && element._owner && element._owner !== ReactCurrentOwner.current) { - childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; - } - { - setCurrentlyValidatingElement$1(element); - error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); - setCurrentlyValidatingElement$1(null); - } - } - function validateChildKeys(node, parentType) { - if (typeof node !== "object") { - return; - } - if (isArray(node)) { - for (var i = 0; i < node.length; i++) { - var child = node[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); - } - } - } else if (isValidElement(node)) { - if (node._store) { - node._store.validated = true; - } - } else if (node) { - var iteratorFn = getIteratorFn(node); - if (typeof iteratorFn === "function") { - if (iteratorFn !== node.entries) { - var iterator = iteratorFn.call(node); - var step; - while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); - } - } - } - } - } - } - function validatePropTypes(element) { - { - var type = element.type; - if (type === null || type === void 0 || typeof type === "string") { - return; - } - var propTypes; - if (typeof type === "function") { - propTypes = type.propTypes; - } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - type.$$typeof === REACT_MEMO_TYPE)) { - propTypes = type.propTypes; - } else { - return; - } - if (propTypes) { - var name = getComponentNameFromType(type); - checkPropTypes(propTypes, element.props, "prop", name, element); - } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - var _name = getComponentNameFromType(type); - error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); - } - if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { - error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } - } - } - function validateFragmentProps(fragment) { - { - var keys = Object.keys(fragment.props); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); - error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); - setCurrentlyValidatingElement$1(null); - break; - } - } - if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); - error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); - } - } - } - function createElementWithValidation(type, props, children) { - var validType = isValidElementType(type); - if (!validType) { - var info = ""; - if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { - info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; - } - var sourceInfo = getSourceInfoErrorAddendumForProps(props); - if (sourceInfo) { - info += sourceInfo; - } else { - info += getDeclarationErrorAddendum(); - } - var typeString; - if (type === null) { - typeString = "null"; - } else if (isArray(type)) { - typeString = "array"; - } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { - typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; - info = " Did you accidentally export a JSX literal instead of a component?"; - } else { - typeString = typeof type; - } - { - error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); - } - } - var element = createElement.apply(this, arguments); - if (element == null) { - return element; - } - if (validType) { - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type); - } - } - if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); - } else { - validatePropTypes(element); - } - return element; - } - var didWarnAboutDeprecatedCreateFactory = false; - function createFactoryWithValidation(type) { - var validatedFactory = createElementWithValidation.bind(null, type); - validatedFactory.type = type; - { - if (!didWarnAboutDeprecatedCreateFactory) { - didWarnAboutDeprecatedCreateFactory = true; - warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); - } - Object.defineProperty(validatedFactory, "type", { - enumerable: false, - get: function() { - warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); - Object.defineProperty(this, "type", { - value: type - }); - return type; - } - }); - } - return validatedFactory; - } - function cloneElementWithValidation(element, props, children) { - var newElement = cloneElement.apply(this, arguments); - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); - } - validatePropTypes(newElement); - return newElement; - } - function startTransition(scope, options) { - var prevTransition = ReactCurrentBatchConfig.transition; - ReactCurrentBatchConfig.transition = {}; - var currentTransition = ReactCurrentBatchConfig.transition; - { - ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); - } - try { - scope(); - } finally { - ReactCurrentBatchConfig.transition = prevTransition; - { - if (prevTransition === null && currentTransition._updatedFibers) { - var updatedFibersCount = currentTransition._updatedFibers.size; - if (updatedFibersCount > 10) { - warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); - } - currentTransition._updatedFibers.clear(); - } - } - } - } - var didWarnAboutMessageChannel = false; - var enqueueTaskImpl = null; - function enqueueTask(task) { - if (enqueueTaskImpl === null) { - try { - var requireString = ("require" + Math.random()).slice(0, 7); - var nodeRequire = module && module[requireString]; - enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate; - } catch (_err) { - enqueueTaskImpl = function(callback) { - { - if (didWarnAboutMessageChannel === false) { - didWarnAboutMessageChannel = true; - if (typeof MessageChannel === "undefined") { - error("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."); - } - } - } - var channel = new MessageChannel(); - channel.port1.onmessage = callback; - channel.port2.postMessage(void 0); - }; - } - } - return enqueueTaskImpl(task); - } - var actScopeDepth = 0; - var didWarnNoAwaitAct = false; - function act(callback) { - { - var prevActScopeDepth = actScopeDepth; - actScopeDepth++; - if (ReactCurrentActQueue.current === null) { - ReactCurrentActQueue.current = []; - } - var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; - var result; - try { - ReactCurrentActQueue.isBatchingLegacy = true; - result = callback(); - if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { - var queue = ReactCurrentActQueue.current; - if (queue !== null) { - ReactCurrentActQueue.didScheduleLegacyUpdate = false; - flushActQueue(queue); - } - } - } catch (error2) { - popActScope(prevActScopeDepth); - throw error2; - } finally { - ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; - } - if (result !== null && typeof result === "object" && typeof result.then === "function") { - var thenableResult = result; - var wasAwaited = false; - var thenable = { - then: function(resolve, reject) { - wasAwaited = true; - thenableResult.then(function(returnValue2) { - popActScope(prevActScopeDepth); - if (actScopeDepth === 0) { - recursivelyFlushAsyncActWork(returnValue2, resolve, reject); - } else { - resolve(returnValue2); - } - }, function(error2) { - popActScope(prevActScopeDepth); - reject(error2); - }); - } - }; - { - if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { - Promise.resolve().then(function() { - }).then(function() { - if (!wasAwaited) { - didWarnNoAwaitAct = true; - error("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 () => ...);"); - } - }); - } - } - return thenable; - } else { - var returnValue = result; - popActScope(prevActScopeDepth); - if (actScopeDepth === 0) { - var _queue = ReactCurrentActQueue.current; - if (_queue !== null) { - flushActQueue(_queue); - ReactCurrentActQueue.current = null; - } - var _thenable = { - then: function(resolve, reject) { - if (ReactCurrentActQueue.current === null) { - ReactCurrentActQueue.current = []; - recursivelyFlushAsyncActWork(returnValue, resolve, reject); - } else { - resolve(returnValue); - } - } - }; - return _thenable; - } else { - var _thenable2 = { - then: function(resolve, reject) { - resolve(returnValue); - } - }; - return _thenable2; - } - } - } - } - function popActScope(prevActScopeDepth) { - { - if (prevActScopeDepth !== actScopeDepth - 1) { - error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); - } - actScopeDepth = prevActScopeDepth; - } - } - function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { - { - var queue = ReactCurrentActQueue.current; - if (queue !== null) { - try { - flushActQueue(queue); - enqueueTask(function() { - if (queue.length === 0) { - ReactCurrentActQueue.current = null; - resolve(returnValue); - } else { - recursivelyFlushAsyncActWork(returnValue, resolve, reject); - } - }); - } catch (error2) { - reject(error2); - } - } else { - resolve(returnValue); - } - } - } - var isFlushing = false; - function flushActQueue(queue) { - { - if (!isFlushing) { - isFlushing = true; - var i = 0; - try { - for (; i < queue.length; i++) { - var callback = queue[i]; - do { - callback = callback(true); - } while (callback !== null); - } - queue.length = 0; - } catch (error2) { - queue = queue.slice(i + 1); - throw error2; - } finally { - isFlushing = false; - } - } - } - } - var createElement$1 = createElementWithValidation; - var cloneElement$1 = cloneElementWithValidation; - var createFactory = createFactoryWithValidation; - var Children = { - map: mapChildren, - forEach: forEachChildren, - count: countChildren, - toArray, - only: onlyChild - }; - exports.Children = Children; - exports.Component = Component; - exports.Fragment = REACT_FRAGMENT_TYPE; - exports.Profiler = REACT_PROFILER_TYPE; - exports.PureComponent = PureComponent; - exports.StrictMode = REACT_STRICT_MODE_TYPE; - exports.Suspense = REACT_SUSPENSE_TYPE; - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; - exports.cloneElement = cloneElement$1; - exports.createContext = createContext; - exports.createElement = createElement$1; - exports.createFactory = createFactory; - exports.createRef = createRef; - exports.forwardRef = forwardRef; - exports.isValidElement = isValidElement; - exports.lazy = lazy; - exports.memo = memo; - exports.startTransition = startTransition; - exports.unstable_act = act; - exports.useCallback = useCallback; - exports.useContext = useContext; - exports.useDebugValue = useDebugValue; - exports.useDeferredValue = useDeferredValue; - exports.useEffect = useEffect; - exports.useId = useId; - exports.useImperativeHandle = useImperativeHandle; - exports.useInsertionEffect = useInsertionEffect; - exports.useLayoutEffect = useLayoutEffect; - exports.useMemo = useMemo; - exports.useReducer = useReducer; - exports.useRef = useRef; - exports.useState = useState; - exports.useSyncExternalStore = useSyncExternalStore; - exports.useTransition = useTransition; - exports.version = ReactVersion; - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); - } - })(); - } - } -}); - -// node_modules/react/index.js -var require_react = __commonJS({ - "node_modules/react/index.js"(exports, module) { - "use strict"; - if (false) { - module.exports = null; - } else { - module.exports = require_react_development(); - } - } -}); + require_react +} from "./chunk-T4W5FV25.mjs"; +import { + __commonJS +} from "./chunk-3KGMXYRN.mjs"; // node_modules/scheduler/cjs/scheduler.development.js var require_scheduler_development = __commonJS({ @@ -23454,23 +21572,11 @@ var require_react_dom = __commonJS({ }); export { - require_react, require_scheduler, require_react_dom }; /*! Bundled license information: -react/cjs/react.development.js: - (** - * @license React - * react.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) - scheduler/cjs/scheduler.development.js: (** * @license React diff --git a/docs/web/chunk-YCRVKDXD.mjs b/docs/web/chunk-DNWTG4XM.mjs similarity index 52% rename from docs/web/chunk-YCRVKDXD.mjs rename to docs/web/chunk-DNWTG4XM.mjs index 30c1e192..2b7fbfa5 100644 --- a/docs/web/chunk-YCRVKDXD.mjs +++ b/docs/web/chunk-DNWTG4XM.mjs @@ -1,12 +1,477 @@ import { puppeteer_core_browser_default -} from "./chunk-GEWWKFQY.mjs"; +} from "./chunk-T3XNPSCC.mjs"; +import { + __commonJS +} from "./chunk-3KGMXYRN.mjs"; -// node_modules/testeranto/dist/module/PM/index.js +// ../testeranto/node_modules/scheduler/cjs/scheduler.development.js +var require_scheduler_development = __commonJS({ + "../testeranto/node_modules/scheduler/cjs/scheduler.development.js"(exports) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var enableSchedulerDebugging = false; + var enableProfiling = false; + var frameYieldMs = 5; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; + } + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + return first; + } + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + return; + } + } + } + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right = heap[rightIndex]; + if (compare(left, node) < 0) { + if (rightIndex < length && compare(right, left) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right, node) < 0) { + heap[index] = right; + heap[rightIndex] = node; + index = rightIndex; + } else { + return; + } + } + } + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) { + } + var hasPerformanceNow = typeof performance === "object" && typeof performance.now === "function"; + if (hasPerformanceNow) { + var localPerformance = performance; + exports.unstable_now = function() { + return localPerformance.now(); + }; + } else { + var localDate = Date; + var initialTime = localDate.now(); + exports.unstable_now = function() { + return localDate.now() - initialTime; + }; + } + var maxSigned31BitInt = 1073741823; + var IMMEDIATE_PRIORITY_TIMEOUT = -1; + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5e3; + var LOW_PRIORITY_TIMEOUT = 1e4; + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + var taskQueue = []; + var timerQueue = []; + var taskIdCounter = 1; + var currentTask = null; + var currentPriorityLevel = NormalPriority; + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + var localSetTimeout = typeof setTimeout === "function" ? setTimeout : null; + var localClearTimeout = typeof clearTimeout === "function" ? clearTimeout : null; + var localSetImmediate = typeof setImmediate !== "undefined" ? setImmediate : null; + var isInputPending = typeof navigator !== "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function advanceTimers(currentTime) { + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + return; + } + timer = peek(timerQueue); + } + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + function flushWork(hasTimeRemaining, initialTime2) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime2); + } catch (error) { + if (currentTask !== null) { + var currentTime = exports.unstable_now(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + throw error; + } + } else { + return workLoop(hasTimeRemaining, initialTime2); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + } + } + function workLoop(hasTimeRemaining, initialTime2) { + var currentTime = initialTime2; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + break; + } + var callback = currentTask.callback; + if (typeof callback === "function") { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = exports.unstable_now(); + if (typeof continuationCallback === "function") { + currentTask.callback = continuationCallback; + } else { + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + currentTask = peek(taskQueue); + } + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + return false; + } + } + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + default: + priorityLevel = NormalPriority; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_next(eventHandler) { + var priorityLevel; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + priorityLevel = NormalPriority; + break; + default: + priorityLevel = currentPriorityLevel; + break; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function() { + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = exports.unstable_now(); + var startTime2; + if (typeof options === "object" && options !== null) { + var delay = options.delay; + if (typeof delay === "number" && delay > 0) { + startTime2 = currentTime + delay; + } else { + startTime2 = currentTime; + } + } else { + startTime2 = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime2 + timeout; + var newTask = { + id: taskIdCounter++, + callback, + priorityLevel, + startTime: startTime2, + expirationTime, + sortIndex: -1 + }; + if (startTime2 > currentTime) { + newTask.sortIndex = startTime2; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + if (isHostTimeoutScheduled) { + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } + requestHostTimeout(handleTimeout, startTime2 - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; + } + function unstable_pauseExecution() { + } + function unstable_continueExecution() { + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + function unstable_cancelCallback(task) { + task.callback = null; + } + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; + var frameInterval = frameYieldMs; + var startTime = -1; + function shouldYieldToHost() { + var timeElapsed = exports.unstable_now() - startTime; + if (timeElapsed < frameInterval) { + return false; + } + return true; + } + function requestPaint() { + } + function forceFrameRate(fps) { + if (fps < 0 || fps > 125) { + console["error"]("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); + return; + } + if (fps > 0) { + frameInterval = Math.floor(1e3 / fps); + } else { + frameInterval = frameYieldMs; + } + } + var performWorkUntilDeadline = function() { + if (scheduledHostCallback !== null) { + var currentTime = exports.unstable_now(); + startTime = currentTime; + var hasTimeRemaining = true; + var hasMoreWork = true; + try { + hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + } finally { + if (hasMoreWork) { + schedulePerformWorkUntilDeadline(); + } else { + isMessageLoopRunning = false; + scheduledHostCallback = null; + } + } + } else { + isMessageLoopRunning = false; + } + }; + var schedulePerformWorkUntilDeadline; + if (typeof localSetImmediate === "function") { + schedulePerformWorkUntilDeadline = function() { + localSetImmediate(performWorkUntilDeadline); + }; + } else if (typeof MessageChannel !== "undefined") { + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + schedulePerformWorkUntilDeadline = function() { + port.postMessage(null); + }; + } else { + schedulePerformWorkUntilDeadline = function() { + localSetTimeout(performWorkUntilDeadline, 0); + }; + } + function requestHostCallback(callback) { + scheduledHostCallback = callback; + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + schedulePerformWorkUntilDeadline(); + } + } + function requestHostTimeout(callback, ms) { + taskTimeoutID = localSetTimeout(function() { + callback(exports.unstable_now()); + }, ms); + } + function cancelHostTimeout() { + localClearTimeout(taskTimeoutID); + taskTimeoutID = -1; + } + var unstable_requestPaint = requestPaint; + var unstable_Profiling = null; + exports.unstable_IdlePriority = IdlePriority; + exports.unstable_ImmediatePriority = ImmediatePriority; + exports.unstable_LowPriority = LowPriority; + exports.unstable_NormalPriority = NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = UserBlockingPriority; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_forceFrameRate = forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = unstable_requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_shouldYield = shouldYieldToHost; + exports.unstable_wrapCallback = unstable_wrapCallback; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// ../testeranto/node_modules/scheduler/index.js +var require_scheduler = __commonJS({ + "../testeranto/node_modules/scheduler/index.js"(exports, module) { + "use strict"; + if (false) { + module.exports = null; + } else { + module.exports = require_scheduler_development(); + } + } +}); + +// ../testeranto/dist/module/PM/index.js var PM = class { }; -// node_modules/testeranto/dist/module/PM/web.js +// ../testeranto/dist/module/PM/web.js var PM_Web = class extends PM { constructor(t) { super(); @@ -87,7 +552,7 @@ var PM_Web = class extends PM { } }; -// node_modules/testeranto/dist/module/lib/index.js +// ../testeranto/dist/module/lib/index.js var BaseTestInterface = { beforeAll: async (s) => s, beforeEach: async function(subject, initialValues, x, testResource, pm) { @@ -106,7 +571,7 @@ var defaultTestResourceRequirement = { ports: 0 }; -// node_modules/testeranto/dist/module/lib/abstractBase.js +// ../testeranto/dist/module/lib/abstractBase.js var BaseSuite = class { constructor(name, index, givens = {}, checks = []) { this.name = name; @@ -375,7 +840,7 @@ var BaseCheck = class { } }; -// node_modules/testeranto/dist/module/lib/basebuilder.js +// ../testeranto/dist/module/lib/basebuilder.js var BaseBuilder = class { constructor(input, suitesOverrides, givenOverides, whenOverides, thenOverides, checkOverides, testResourceRequirement, testSpecification) { this.input = input; @@ -454,7 +919,7 @@ var BaseBuilder = class { } }; -// node_modules/testeranto/dist/module/lib/classBuilder.js +// ../testeranto/dist/module/lib/classBuilder.js var ClassBuilder = class extends BaseBuilder { constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, checkKlasser, testResourceRequirement) { const classySuites = Object.entries(testImplementation.suites).reduce((a, [key], index) => { @@ -501,7 +966,7 @@ var ClassBuilder = class extends BaseBuilder { } }; -// node_modules/testeranto/dist/module/lib/core.js +// ../testeranto/dist/module/lib/core.js var Testeranto = class extends ClassBuilder { constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testInterface) { const fullTestInterface = DefaultTestInterface(testInterface); @@ -564,7 +1029,7 @@ var Testeranto = class extends ClassBuilder { } }; -// node_modules/testeranto/dist/module/Web.js +// ../testeranto/dist/module/Web.js var WebTesteranto = class extends Testeranto { constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) { super(input, testSpecification, testImplementation, testResourceRequirement, testInterface); @@ -581,5 +1046,19 @@ var Web_default = async (input, testSpecification, testImplementation, testInter }; export { - Web_default + Web_default, + require_scheduler }; +/*! Bundled license information: + +scheduler/cjs/scheduler.development.js: + (** + * @license React + * scheduler.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/docs/web/chunk-EXETZ625.mjs b/docs/web/chunk-EXETZ625.mjs deleted file mode 100644 index d3160c50..00000000 --- a/docs/web/chunk-EXETZ625.mjs +++ /dev/null @@ -1,6 +0,0 @@ -// node_modules/puppeteer-core/lib/esm/puppeteer/generated/version.js -var packageVersion = "23.9.0"; - -export { - packageVersion -}; diff --git a/docs/web/chunk-GEWWKFQY.mjs b/docs/web/chunk-T3XNPSCC.mjs similarity index 99% rename from docs/web/chunk-GEWWKFQY.mjs rename to docs/web/chunk-T3XNPSCC.mjs index 08aab23d..11271188 100644 --- a/docs/web/chunk-GEWWKFQY.mjs +++ b/docs/web/chunk-T3XNPSCC.mjs @@ -78,7 +78,7 @@ import { timeout, validateDialogType, withSourcePuppeteerURLIfNone -} from "./chunk-KKQOQNY2.mjs"; +} from "./chunk-WZWH5UFM.mjs"; import { __commonJS, __publicField, @@ -4172,7 +4172,7 @@ var should = import_index.default.should; var assert2 = import_index.default.assert; var core = import_index.default.core; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js var __addDisposableResource = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -4324,7 +4324,7 @@ var Binding = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js var __addDisposableResource2 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -4469,7 +4469,7 @@ var CdpBrowserContext = class extends BrowserContext { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js var CdpCDPSession = class extends CDPSession { #sessionId; #targetType; @@ -4569,7 +4569,7 @@ var CdpCDPSession = class extends CDPSession { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js var FileChooser = class { #element; #multiple; @@ -4615,7 +4615,7 @@ var FileChooser = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js var NetworkManagerEvent; (function(NetworkManagerEvent2) { NetworkManagerEvent2.Request = Symbol("NetworkManager.Request"); @@ -4625,7 +4625,7 @@ var NetworkManagerEvent; NetworkManagerEvent2.RequestFinished = Symbol("NetworkManager.RequestFinished"); })(NetworkManagerEvent || (NetworkManagerEvent = {})); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js var debugProtocolSend = debug("puppeteer:protocol:SEND \u25BA"); var debugProtocolReceive = debug("puppeteer:protocol:RECV \u25C0"); var Connection = class extends EventEmitter { @@ -4819,7 +4819,7 @@ function isTargetClosedError(error) { return error instanceof TargetCloseError; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js var CdpDialog = class extends Dialog { #client; constructor(client, type, message, defaultValue = "") { @@ -4834,7 +4834,7 @@ var CdpDialog = class extends Dialog { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FirefoxTargetManager.js var FirefoxTargetManager = class extends EventEmitter { #connection; /** @@ -4962,7 +4962,7 @@ var FirefoxTargetManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js var CdpPreloadScript = class { /** * This is the ID of the preload script returned by @@ -4994,7 +4994,7 @@ var CdpPreloadScript = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js var DeviceRequestPromptDevice = class { /** * Device id during a prompt. @@ -5172,7 +5172,7 @@ var DeviceRequestPromptManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js function createEvaluationError(details) { let name; let message; @@ -5314,7 +5314,7 @@ function pageBindingInitString(type, name) { return evaluationString(addPageBinding, type, name, CDP_BINDING_PREFIX); } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js var CdpJSHandle = class extends JSHandle { #disposed = false; #remoteObject; @@ -5396,7 +5396,7 @@ async function releaseObject(client, remoteObject) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -5578,7 +5578,7 @@ var CdpElementHandle = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js var __addDisposableResource3 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -5998,7 +5998,7 @@ var rewriteError = (error) => { throw error; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js var FrameManagerEvent; (function(FrameManagerEvent2) { FrameManagerEvent2.FrameAttached = Symbol("FrameManager.FrameAttached"); @@ -6011,7 +6011,7 @@ var FrameManagerEvent; FrameManagerEvent2.BindingCalled = Symbol("FrameManager.BindingCalled"); })(FrameManagerEvent || (FrameManagerEvent = {})); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js var IsolatedWorld = class extends Realm { #context; #emitter = new EventEmitter(); @@ -6141,11 +6141,11 @@ var IsolatedWorld = class extends Realm { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js var MAIN_WORLD = Symbol("mainWorld"); var PUPPETEER_WORLD = Symbol("puppeteerWorld"); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js var puppeteerToProtocolLifecycle = /* @__PURE__ */ new Map([ ["load", "load"], ["domcontentloaded", "DOMContentLoaded"], @@ -6292,7 +6292,7 @@ var LifecycleWatcher = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -6621,7 +6621,7 @@ var CdpFrame = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js var FrameTree = class { #frames = /* @__PURE__ */ new Map(); // frameID -> parentFrameID @@ -6696,7 +6696,7 @@ var FrameTree = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js var CdpHTTPRequest = class extends HTTPRequest { id; #client; @@ -6855,7 +6855,7 @@ var CdpHTTPRequest = class extends HTTPRequest { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js var CdpHTTPResponse = class extends HTTPResponse { #request; #contentPromise = null; @@ -6965,7 +6965,7 @@ var CdpHTTPResponse = class extends HTTPResponse { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js var NetworkEventManager = class { /** * There are four possible orders of events: @@ -7109,7 +7109,7 @@ var NetworkEventManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js var NetworkManager = class extends EventEmitter { #frameManager; #networkEventManager = new NetworkEventManager(); @@ -7532,7 +7532,7 @@ var NetworkManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js var TIME_FOR_WAITING_FOR_SWAP = 100; var FrameManager = class extends EventEmitter { #page; @@ -7918,7 +7918,7 @@ var FrameManager = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js var _keyDefinitions = { "0": { keyCode: 48, key: "0", code: "Digit0" }, "1": { keyCode: 49, key: "1", code: "Digit1" }, @@ -8305,7 +8305,7 @@ var _keyDefinitions = { VolumeUp: { keyCode: 183, key: "VolumeUp", code: "VolumeUp", location: 4 } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js var CdpKeyboard = class extends Keyboard { #client; #pressedKeys = /* @__PURE__ */ new Set(); @@ -8773,7 +8773,7 @@ var CdpTouchscreen = class extends Touchscreen { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js var CdpWebWorker = class extends WebWorker { #world; #client; @@ -8829,7 +8829,7 @@ var CdpWebWorker = class extends WebWorker { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js var __addDisposableResource4 = function(env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -9694,7 +9694,7 @@ function getIntersectionRect(clip, viewport) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js var InitializationStatus; (function(InitializationStatus2) { InitializationStatus2["SUCCESS"] = "success"; @@ -9919,7 +9919,7 @@ var WorkerTarget = class extends CdpTarget { var OtherTarget = class extends CdpTarget { }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js function isPageTargetBecomingPrimary(target, newTargetInfo) { return Boolean(target._subtype()) && !newTargetInfo.subtype; } @@ -10178,7 +10178,7 @@ var ChromeTargetManager = class extends EventEmitter { }; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js var CdpBrowser = class extends Browser { protocol = "cdp"; static async _create(product, connection, contextIds, acceptInsecureCerts, defaultViewport, downloadBehavior, process2, closeCallback, targetFilterCallback, isPageTargetCallback, waitForInitiallyDiscoveredTargets = true) { @@ -10399,7 +10399,7 @@ var CdpBrowser = class extends Browser { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js async function _connectToCdpBrowser(connectionTransport, url, options) { const { acceptInsecureCerts = false, defaultViewport = DEFAULT_VIEWPORT, downloadBehavior, targetFilter, _isPageTarget: isPageTarget, slowMo = 0, protocolTimeout } = options; const connection = new Connection(url, connectionTransport, slowMo, protocolTimeout); @@ -10412,7 +10412,7 @@ async function _connectToCdpBrowser(connectionTransport, url, options) { return browser; } -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js var PredefinedNetworkConditions = Object.freeze({ // Generally aligned with DevTools // https://source.chromium.org/chromium/chromium/src/+/main:third_party/devtools-frontend/src/front_end/core/sdk/NetworkManager.ts;l=398;drc=225e1240f522ca684473f541ae6dae6cd766dd33. @@ -10452,7 +10452,7 @@ var PredefinedNetworkConditions = Object.freeze({ } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js var knownDevices = [ { name: "Blackberry PlayBook", @@ -12033,13 +12033,13 @@ for (const device of knownDevices) { } var KnownDevices = Object.freeze(knownDevicesByName); -// node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js async function _connectToBiDiBrowser(connectionTransport, url, options) { const { acceptInsecureCerts = false, defaultViewport = DEFAULT_VIEWPORT } = options; const { bidiConnection, cdpConnection, closeCallback } = await getBiDiConnection(connectionTransport, url, options); const BiDi = await import( /* webpackIgnore: true */ - "./bidi-LSXYACZ6.mjs" + "./bidi-PSJAFB3R.mjs" ); const bidiBrowser = await BiDi.BidiBrowser.create({ connection: bidiConnection, @@ -12055,7 +12055,7 @@ async function _connectToBiDiBrowser(connectionTransport, url, options) { async function getBiDiConnection(connectionTransport, url, options) { const BiDi = await import( /* webpackIgnore: true */ - "./bidi-LSXYACZ6.mjs" + "./bidi-PSJAFB3R.mjs" ); const { slowMo = 0, protocolTimeout } = options; const pureBidiConnection = new BiDi.BidiConnection(url, connectionTransport, slowMo, protocolTimeout); @@ -12090,9 +12090,9 @@ async function getBiDiConnection(connectionTransport, url, options) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js var getWebSocketTransportClass = async () => { - return isNode ? (await import("./NodeWebSocketTransport-KIPN7CTU.mjs")).NodeWebSocketTransport : (await import("./BrowserWebSocketTransport-AJ3WEQWR.mjs")).BrowserWebSocketTransport; + return isNode ? (await import("./NodeWebSocketTransport-L3CCN7TK.mjs")).NodeWebSocketTransport : (await import("./BrowserWebSocketTransport-GCNNQW5A.mjs")).BrowserWebSocketTransport; }; async function _connectToBrowser(options) { const { connectionTransport, endpointUrl } = await getConnectionTransport(options); @@ -12146,7 +12146,7 @@ async function getWSEndpoint(browserURL) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js var Puppeteer = class { /** * Registers a {@link CustomQueryHandler | custom query handler}. @@ -12228,14 +12228,14 @@ var Puppeteer = class { */ __publicField(Puppeteer, "customQueryHandlers", customQueryHandlers); -// node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js var PUPPETEER_REVISIONS = Object.freeze({ chrome: "131.0.6778.85", "chrome-headless-shell": "131.0.6778.85", firefox: "stable_132.0.2" }); -// node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser.js var puppeteer = new Puppeteer({ isPuppeteerCore: true }); diff --git a/docs/web/chunk-T4W5FV25.mjs b/docs/web/chunk-T4W5FV25.mjs new file mode 100644 index 00000000..604150ac --- /dev/null +++ b/docs/web/chunk-T4W5FV25.mjs @@ -0,0 +1,1905 @@ +import { + __commonJS +} from "./chunk-3KGMXYRN.mjs"; + +// node_modules/react/cjs/react.development.js +var require_react_development = __commonJS({ + "node_modules/react/cjs/react.development.js"(exports, module) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var ReactVersion = "18.2.0"; + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + var ReactCurrentDispatcher = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + var ReactCurrentBatchConfig = { + transition: null + }; + var ReactCurrentActQueue = { + current: null, + // Used to reproduce behavior of `batchedUpdates` in legacy mode. + isBatchingLegacy: false, + didScheduleLegacyUpdate: false + }; + var ReactCurrentOwner = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }; + var ReactDebugCurrentFrame = {}; + var currentExtraStackFrame = null; + function setExtraStackFrame(stack) { + { + currentExtraStackFrame = stack; + } + } + { + ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { + { + currentExtraStackFrame = stack; + } + }; + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame.getStackAddendum = function() { + var stack = ""; + if (currentExtraStackFrame) { + stack += currentExtraStackFrame; + } + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ""; + } + return stack; + }; + } + var enableScopeAPI = false; + var enableCacheElement = false; + var enableTransitionTracing = false; + var enableLegacyHidden = false; + var enableDebugTracing = false; + var ReactSharedInternals = { + ReactCurrentDispatcher, + ReactCurrentBatchConfig, + ReactCurrentOwner + }; + { + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; + } + function warn(format) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var didWarnStateUpdateForUnmountedComponent = {}; + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + error("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.", callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + var ReactNoopUpdateQueue = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function(publicInstance) { + return false; + }, + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: function(publicInstance, callback, callerName) { + warnNoop(publicInstance, "forceUpdate"); + }, + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, "replaceState"); + }, + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: function(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, "setState"); + } + }; + var assign = Object.assign; + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + function Component(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + Component.prototype.isReactComponent = {}; + Component.prototype.setState = function(partialState, callback) { + if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { + throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + } + this.updater.enqueueSetState(this, partialState, callback, "setState"); + }; + Component.prototype.forceUpdate = function(callback) { + this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); + }; + { + var deprecatedAPIs = { + isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], + replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] + }; + var defineDeprecationWarning = function(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function() { + warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); + return void 0; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + function ComponentDummy() { + } + ComponentDummy.prototype = Component.prototype; + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + assign(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; + } + var isArrayImpl = Array.isArray; + function isArray(a) { + return isArrayImpl(a); + } + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, "ref")) { + var getter = Object.getOwnPropertyDescriptor(config, "ref").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== void 0; + } + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== void 0; + } + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function() { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error("%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://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, "key", { + get: warnAboutAccessingKey, + configurable: true + }); + } + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function() { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error("%s: `ref` 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://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, "ref", { + get: warnAboutAccessingRef, + configurable: true + }); + } + function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + var ReactElement = function(type, key, ref, self, source, owner, props) { + var element = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: REACT_ELEMENT_TYPE, + // Built-in properties that belong on the element + type, + key, + ref, + props, + // Record the component responsible for creating this element. + _owner: owner + }; + { + element._store = {}; + Object.defineProperty(element._store, "validated", { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + Object.defineProperty(element, "_self", { + configurable: false, + enumerable: false, + writable: false, + value: self + }); + Object.defineProperty(element, "_source", { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } + } + return element; + }; + function createElement(type, config, children) { + var propName; + var props = {}; + var key = null; + var ref = null; + var self = null; + var source = null; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + self = config.__self === void 0 ? null : config.__self; + source = config.__source === void 0 ? null : config.__source; + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === void 0) { + props[propName] = defaultProps[propName]; + } + } + } + { + if (key || ref) { + var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); + } + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + function cloneElement(element, config, children) { + if (element === null || element === void 0) { + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); + } + var propName; + var props = assign({}, element.props); + var key = element.key; + var ref = element.ref; + var self = element._self; + var source = element._source; + var owner = element._owner; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + var defaultProps; + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === void 0 && defaultProps !== void 0) { + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + props.children = childArray; + } + return ReactElement(element.type, key, ref, self, source, owner, props); + } + function isValidElement(object) { + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + var SEPARATOR = "."; + var SUBSEPARATOR = ":"; + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + "=": "=0", + ":": "=2" + }; + var escapedString = key.replace(escapeRegex, function(match) { + return escaperLookup[match]; + }); + return "$" + escapedString; + } + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text) { + return text.replace(userProvidedKeyEscapeRegex, "$&/"); + } + function getElementKey(element, index) { + if (typeof element === "object" && element !== null && element.key != null) { + { + checkKeyStringCoercion(element.key); + } + return escape("" + element.key); + } + return index.toString(36); + } + function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { + var type = typeof children; + if (type === "undefined" || type === "boolean") { + children = null; + } + var invokeCallback = false; + if (children === null) { + invokeCallback = true; + } else { + switch (type) { + case "string": + case "number": + invokeCallback = true; + break; + case "object": + switch (children.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + } + } + if (invokeCallback) { + var _child = children; + var mappedChild = callback(_child); + var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; + if (isArray(mappedChild)) { + var escapedChildKey = ""; + if (childKey != null) { + escapedChildKey = escapeUserProvidedKey(childKey) + "/"; + } + mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + { + if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { + checkKeyStringCoercion(mappedChild.key); + } + } + mappedChild = cloneAndReplaceKey( + mappedChild, + // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? ( + // $FlowFixMe Flow incorrectly thinks existing element's key can be a number + // eslint-disable-next-line react-internal/safe-string-coercion + escapeUserProvidedKey("" + mappedChild.key) + "/" + ) : "") + childKey + ); + } + array.push(mappedChild); + } + return 1; + } + var child; + var nextName; + var subtreeCount = 0; + var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; + if (isArray(children)) { + for (var i = 0; i < children.length; i++) { + child = children[i]; + nextName = nextNamePrefix + getElementKey(child, i); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else { + var iteratorFn = getIteratorFn(children); + if (typeof iteratorFn === "function") { + var iterableChildren = children; + { + if (iteratorFn === iterableChildren.entries) { + if (!didWarnAboutMaps) { + warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(iterableChildren); + var step; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getElementKey(child, ii++); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else if (type === "object") { + var childrenString = String(children); + throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); + } + } + return subtreeCount; + } + function mapChildren(children, func, context) { + if (children == null) { + return children; + } + var result = []; + var count = 0; + mapIntoArray(children, result, "", "", function(child) { + return func.call(context, child, count++); + }); + return result; + } + function countChildren(children) { + var n = 0; + mapChildren(children, function() { + n++; + }); + return n; + } + function forEachChildren(children, forEachFunc, forEachContext) { + mapChildren(children, function() { + forEachFunc.apply(this, arguments); + }, forEachContext); + } + function toArray(children) { + return mapChildren(children, function(child) { + return child; + }) || []; + } + function onlyChild(children) { + if (!isValidElement(children)) { + throw new Error("React.Children.only expected to receive a single React element child."); + } + return children; + } + function createContext(defaultValue) { + var context = { + $$typeof: REACT_CONTEXT_TYPE, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: defaultValue, + _currentValue2: defaultValue, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null, + // Add these to use same hidden class in VM as ServerContext + _defaultValue: null, + _globalName: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + var hasWarnedAboutDisplayNameOnConsumer = false; + { + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context + }; + Object.defineProperties(Consumer, { + Provider: { + get: function() { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Provider; + }, + set: function(_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function() { + return context._currentValue; + }, + set: function(_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function() { + return context._currentValue2; + }, + set: function(_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function() { + return context._threadCount; + }, + set: function(_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function() { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Consumer; + } + }, + displayName: { + get: function() { + return context.displayName; + }, + set: function(displayName) { + if (!hasWarnedAboutDisplayNameOnConsumer) { + warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); + hasWarnedAboutDisplayNameOnConsumer = true; + } + } + } + }); + context.Consumer = Consumer; + } + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + return context; + } + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function lazyInitializer(payload) { + if (payload._status === Uninitialized) { + var ctor = payload._result; + var thenable = ctor(); + thenable.then(function(moduleObject2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var resolved = payload; + resolved._status = Resolved; + resolved._result = moduleObject2; + } + }, function(error2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var rejected = payload; + rejected._status = Rejected; + rejected._result = error2; + } + }); + if (payload._status === Uninitialized) { + var pending = payload; + pending._status = Pending; + pending._result = thenable; + } + } + if (payload._status === Resolved) { + var moduleObject = payload._result; + { + if (moduleObject === void 0) { + error("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?", moduleObject); + } + } + { + if (!("default" in moduleObject)) { + error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); + } + } + return moduleObject.default; + } else { + throw payload._result; + } + } + function lazy(ctor) { + var payload = { + // We use these fields to store the result. + _status: Uninitialized, + _result: ctor + }; + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: payload, + _init: lazyInitializer + }; + { + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function() { + return defaultProps; + }, + set: function(newDefaultProps) { + error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + defaultProps = newDefaultProps; + Object.defineProperty(lazyType, "defaultProps", { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function() { + return propTypes; + }, + set: function(newPropTypes) { + error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + propTypes = newPropTypes; + Object.defineProperty(lazyType, "propTypes", { + enumerable: true + }); + } + } + }); + } + return lazyType; + } + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); + } else if (typeof render !== "function") { + error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); + } + } + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); + } + } + } + var elementType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!render.name && !render.displayName) { + render.displayName = name; + } + } + }); + } + return elementType; + } + var REACT_MODULE_REFERENCE; + { + REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); + } + function isValidElementType(type) { + if (typeof type === "string" || typeof type === "function") { + return true; + } + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { + return true; + } + if (typeof type === "object" && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { + return true; + } + } + return false; + } + function memo(type, compare) { + { + if (!isValidElementType(type)) { + error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); + } + } + var elementType = { + $$typeof: REACT_MEMO_TYPE, + type, + compare: compare === void 0 ? null : compare + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!type.name && !type.displayName) { + type.displayName = name; + } + } + }); + } + return elementType; + } + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + { + if (dispatcher === null) { + error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + } + return dispatcher; + } + function useContext(Context) { + var dispatcher = resolveDispatcher(); + { + if (Context._context !== void 0) { + var realContext = Context._context; + if (realContext.Consumer === Context) { + error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); + } else if (realContext.Provider === Context) { + error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); + } + } + } + return dispatcher.useContext(Context); + } + function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init); + } + function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); + } + function useInsertionEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useInsertionEffect(create, deps); + } + function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); + } + function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + function useTransition() { + var dispatcher = resolveDispatcher(); + return dispatcher.useTransition(); + } + function useDeferredValue(value) { + var dispatcher = resolveDispatcher(); + return dispatcher.useDeferredValue(value); + } + function useId() { + var dispatcher = resolveDispatcher(); + return dispatcher.useId(); + } + function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var dispatcher = resolveDispatcher(); + return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); + } + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn.displayName); + } + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher$1.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component2) { + var prototype = Component2.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + function setCurrentlyValidatingElement$1(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + setExtraStackFrame(stack); + } else { + setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); + if (name) { + return "\n\nCheck the render method of `" + name + "`."; + } + } + return ""; + } + function getSourceInfoErrorAddendum(source) { + if (source !== void 0) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ""); + var lineNumber = source.lineNumber; + return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; + } + return ""; + } + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== void 0) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + return ""; + } + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + if (!info) { + var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info; + } + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + var childOwner = ""; + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; + } + { + setCurrentlyValidatingElement$1(element); + error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + function validateChildKeys(node, parentType) { + if (typeof node !== "object") { + return; + } + if (isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === "function") { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + function validatePropTypes(element) { + { + var type = element.type; + if (type === null || type === void 0 || typeof type === "string") { + return; + } + var propTypes; + if (typeof type === "function") { + propTypes = type.propTypes; + } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentNameFromType(type); + checkPropTypes(propTypes, element.props, "prop", name, element); + } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + var _name = getComponentNameFromType(type); + error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); + } + if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { + error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + } + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== "children" && key !== "key") { + setCurrentlyValidatingElement$1(fragment); + error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error("Invalid attribute `ref` supplied to `React.Fragment`."); + setCurrentlyValidatingElement$1(null); + } + } + } + function createElementWithValidation(type, props, children) { + var validType = isValidElementType(type); + if (!validType) { + var info = ""; + if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + var typeString; + if (type === null) { + typeString = "null"; + } else if (isArray(type)) { + typeString = "array"; + } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; + info = " Did you accidentally export a JSX literal instead of a component?"; + } else { + typeString = typeof type; + } + { + error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); + } + } + var element = createElement.apply(this, arguments); + if (element == null) { + return element; + } + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + return element; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); + } + Object.defineProperty(validatedFactory, "type", { + enumerable: false, + get: function() { + warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); + Object.defineProperty(this, "type", { + value: type + }); + return type; + } + }); + } + return validatedFactory; + } + function cloneElementWithValidation(element, props, children) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + function startTransition(scope, options) { + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = {}; + var currentTransition = ReactCurrentBatchConfig.transition; + { + ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); + } + try { + scope(); + } finally { + ReactCurrentBatchConfig.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + var didWarnAboutMessageChannel = false; + var enqueueTaskImpl = null; + function enqueueTask(task) { + if (enqueueTaskImpl === null) { + try { + var requireString = ("require" + Math.random()).slice(0, 7); + var nodeRequire = module && module[requireString]; + enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate; + } catch (_err) { + enqueueTaskImpl = function(callback) { + { + if (didWarnAboutMessageChannel === false) { + didWarnAboutMessageChannel = true; + if (typeof MessageChannel === "undefined") { + error("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."); + } + } + } + var channel = new MessageChannel(); + channel.port1.onmessage = callback; + channel.port2.postMessage(void 0); + }; + } + } + return enqueueTaskImpl(task); + } + var actScopeDepth = 0; + var didWarnNoAwaitAct = false; + function act(callback) { + { + var prevActScopeDepth = actScopeDepth; + actScopeDepth++; + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + } + var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; + var result; + try { + ReactCurrentActQueue.isBatchingLegacy = true; + result = callback(); + if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = false; + flushActQueue(queue); + } + } + } catch (error2) { + popActScope(prevActScopeDepth); + throw error2; + } finally { + ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; + } + if (result !== null && typeof result === "object" && typeof result.then === "function") { + var thenableResult = result; + var wasAwaited = false; + var thenable = { + then: function(resolve, reject) { + wasAwaited = true; + thenableResult.then(function(returnValue2) { + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + recursivelyFlushAsyncActWork(returnValue2, resolve, reject); + } else { + resolve(returnValue2); + } + }, function(error2) { + popActScope(prevActScopeDepth); + reject(error2); + }); + } + }; + { + if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { + Promise.resolve().then(function() { + }).then(function() { + if (!wasAwaited) { + didWarnNoAwaitAct = true; + error("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 () => ...);"); + } + }); + } + } + return thenable; + } else { + var returnValue = result; + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + var _queue = ReactCurrentActQueue.current; + if (_queue !== null) { + flushActQueue(_queue); + ReactCurrentActQueue.current = null; + } + var _thenable = { + then: function(resolve, reject) { + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } else { + resolve(returnValue); + } + } + }; + return _thenable; + } else { + var _thenable2 = { + then: function(resolve, reject) { + resolve(returnValue); + } + }; + return _thenable2; + } + } + } + } + function popActScope(prevActScopeDepth) { + { + if (prevActScopeDepth !== actScopeDepth - 1) { + error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); + } + actScopeDepth = prevActScopeDepth; + } + } + function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { + { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + try { + flushActQueue(queue); + enqueueTask(function() { + if (queue.length === 0) { + ReactCurrentActQueue.current = null; + resolve(returnValue); + } else { + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } + }); + } catch (error2) { + reject(error2); + } + } else { + resolve(returnValue); + } + } + } + var isFlushing = false; + function flushActQueue(queue) { + { + if (!isFlushing) { + isFlushing = true; + var i = 0; + try { + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(true); + } while (callback !== null); + } + queue.length = 0; + } catch (error2) { + queue = queue.slice(i + 1); + throw error2; + } finally { + isFlushing = false; + } + } + } + } + var createElement$1 = createElementWithValidation; + var cloneElement$1 = cloneElementWithValidation; + var createFactory = createFactoryWithValidation; + var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray, + only: onlyChild + }; + exports.Children = Children; + exports.Component = Component; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.Profiler = REACT_PROFILER_TYPE; + exports.PureComponent = PureComponent; + exports.StrictMode = REACT_STRICT_MODE_TYPE; + exports.Suspense = REACT_SUSPENSE_TYPE; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; + exports.cloneElement = cloneElement$1; + exports.createContext = createContext; + exports.createElement = createElement$1; + exports.createFactory = createFactory; + exports.createRef = createRef; + exports.forwardRef = forwardRef; + exports.isValidElement = isValidElement; + exports.lazy = lazy; + exports.memo = memo; + exports.startTransition = startTransition; + exports.unstable_act = act; + exports.useCallback = useCallback; + exports.useContext = useContext; + exports.useDebugValue = useDebugValue; + exports.useDeferredValue = useDeferredValue; + exports.useEffect = useEffect; + exports.useId = useId; + exports.useImperativeHandle = useImperativeHandle; + exports.useInsertionEffect = useInsertionEffect; + exports.useLayoutEffect = useLayoutEffect; + exports.useMemo = useMemo; + exports.useReducer = useReducer; + exports.useRef = useRef; + exports.useState = useState; + exports.useSyncExternalStore = useSyncExternalStore; + exports.useTransition = useTransition; + exports.version = ReactVersion; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// node_modules/react/index.js +var require_react = __commonJS({ + "node_modules/react/index.js"(exports, module) { + "use strict"; + if (false) { + module.exports = null; + } else { + module.exports = require_react_development(); + } + } +}); + +export { + require_react +}; +/*! Bundled license information: + +react/cjs/react.development.js: + (** + * @license React + * react.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + *) +*/ diff --git a/docs/web/chunk-KKQOQNY2.mjs b/docs/web/chunk-WZWH5UFM.mjs similarity index 98% rename from docs/web/chunk-KKQOQNY2.mjs rename to docs/web/chunk-WZWH5UFM.mjs index 9097d0f9..15b91def 100644 --- a/docs/web/chunk-KKQOQNY2.mjs +++ b/docs/web/chunk-WZWH5UFM.mjs @@ -1,6 +1,6 @@ import { packageVersion -} from "./chunk-EXETZ625.mjs"; +} from "./chunk-2CNFTRH6.mjs"; import { __privateAdd, __privateGet, @@ -8,7 +8,7 @@ import { __publicField } from "./chunk-3KGMXYRN.mjs"; -// node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { d2.__proto__ = b2; @@ -2226,7 +2226,7 @@ function tap(observerOrNext, error, complete) { }) : identity; } -// node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js function mitt_default(n) { return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) { var i = n.get(t); @@ -2244,7 +2244,7 @@ function mitt_default(n) { } }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js Symbol.dispose ??= Symbol("dispose"); Symbol.asyncDispose ??= Symbol("asyncDispose"); var disposeSymbol = Symbol.dispose; @@ -2458,7 +2458,7 @@ var AsyncDisposableStack = class { [Symbol.toStringTag] = "AsyncDisposableStack"; }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js var EventEmitter = class { #emitter; #handlers = /* @__PURE__ */ new Map(); @@ -2567,7 +2567,7 @@ var EventEmitter = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js var isNode = !!(typeof process !== "undefined" && process.version); var environment = { value: { @@ -2580,14 +2580,14 @@ var environment = { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js var assert = (value, message) => { if (!value) { throw new Error(message); } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js function stringToTypedArray(string, base64Encoded = false) { if (base64Encoded) { const binaryString = atob(string); @@ -2624,11 +2624,11 @@ function mergeUint8Arrays(items) { return result; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js var debugModule = null; async function importDebug() { if (!debugModule) { - debugModule = (await import("./browser-Q3NOC5XS.mjs")).default; + debugModule = (await import("./browser-AMP7N3DU.mjs")).default; } return debugModule; } @@ -2662,7 +2662,7 @@ var debug = (prefix) => { var capturedLogs = []; var captureLogs = false; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js var PuppeteerError = class extends Error { /** * @internal @@ -2711,7 +2711,7 @@ var UnsupportedOperation = class extends PuppeteerError { var TargetCloseError = class extends ProtocolError { }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js var paperFormats = { letter: { width: 8.5, height: 11 }, legal: { width: 8.5, height: 14 }, @@ -2726,7 +2726,7 @@ var paperFormats = { a6: { width: 4.1339, height: 5.8268 } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js var debugError = debug("puppeteer:error"); var DEFAULT_VIEWPORT = Object.freeze({ width: 800, height: 600 }); var SOURCE_URL = Symbol("Source URL for Puppeteer evaluation scripts"); @@ -3007,7 +3007,7 @@ function filterAsync(predicate) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js var WEB_PERMISSION_TO_PROTOCOL_PERMISSION = /* @__PURE__ */ new Map([ ["geolocation", "geolocation"], ["midi", "midi"], @@ -3107,7 +3107,7 @@ var Browser = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js var Deferred = class { static create(opts) { return new Deferred(opts); @@ -3193,7 +3193,7 @@ var Deferred = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js var _locked, _acquirers; var _Mutex = class { constructor() { @@ -3236,7 +3236,7 @@ __publicField(Mutex, "Guard", class Guard { } }); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js var BrowserContext = class extends EventEmitter { /** * @internal @@ -3318,7 +3318,7 @@ var BrowserContext = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js function isErrorLike(obj) { return typeof obj === "object" && obj !== null && "name" in obj && "message" in obj; } @@ -3335,7 +3335,7 @@ function createProtocolErrorMessage(object) { return message; } -// node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js var createdFunctions = /* @__PURE__ */ new Map(); var createFunction = (functionValue) => { let fn = createdFunctions.get(functionValue); @@ -3382,7 +3382,7 @@ var interpolateFunction = (fn, replacements) => { return createFunction(value); }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js var _get; var _LazyArg = class { constructor(get) { @@ -3399,7 +3399,7 @@ __publicField(LazyArg, "create", (get) => { return new _LazyArg(get); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js var AsyncIterableUtil = class { static async *map(iterable, map2) { for await (const value of iterable) { @@ -3426,10 +3426,10 @@ var AsyncIterableUtil = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js var _isElementHandle = Symbol("_isElementHandle"); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js var __addDisposableResource = function(env, value, async2) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -3563,7 +3563,7 @@ async function* transposeIterableHandle(handle) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js var __addDisposableResource2 = function(env, value, async2) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -3782,7 +3782,7 @@ var QueryHandler = class { __publicField(QueryHandler, "querySelectorAll"); __publicField(QueryHandler, "querySelector"); -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/AriaQueryHandler.js var isKnownAttribute = (attribute) => { return ["name", "role"].includes(attribute); }; @@ -3816,10 +3816,10 @@ __publicField(ARIAQueryHandler, "queryOne", async (element, selector) => { return await AsyncIterableUtil.first(_ARIAQueryHandler.queryAll(element, selector)) ?? null; }); -// node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js var source = '"use strict";var g=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)g(t,r,{get:e[r],enumerable:!0})},J=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of B(e))!Y.call(t,n)&&n!==r&&g(t,n,{get:()=>e[n],enumerable:!(o=X(e,n))||o.enumerable});return t};var z=t=>J(g({},"__esModule",{value:!0}),t);var pe={};l(pe,{default:()=>he});module.exports=z(pe);var N=class extends Error{constructor(e,r){super(e,r),this.name=this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}},p=class extends N{};var c=class t{static create(e){return new t(e)}static async race(e){let r=new Set;try{let o=e.map(n=>n instanceof t?(n.#n&&r.add(n),n.valueOrThrow()):n);return await Promise.race(o)}finally{for(let o of r)o.reject(new Error("Timeout cleared"))}}#e=!1;#r=!1;#o;#t;#a=new Promise(e=>{this.#t=e});#n;#i;constructor(e){e&&e.timeout>0&&(this.#i=new p(e.message),this.#n=setTimeout(()=>{this.reject(this.#i)},e.timeout))}#l(e){clearTimeout(this.#n),this.#o=e,this.#t()}resolve(e){this.#r||this.#e||(this.#e=!0,this.#l(e))}reject(e){this.#r||this.#e||(this.#r=!0,this.#l(e))}resolved(){return this.#e}finished(){return this.#e||this.#r}value(){return this.#o}#s;valueOrThrow(){return this.#s||(this.#s=(async()=>{if(await this.#a,this.#r)throw this.#o;return this.#o})()),this.#s}};var L=new Map,F=t=>{let e=L.get(t);return e||(e=new Function(`return ${t}`)(),L.set(t,e),e)};var x={};l(x,{ariaQuerySelector:()=>G,ariaQuerySelectorAll:()=>b});var G=(t,e)=>globalThis.__ariaQuerySelector(t,e),b=async function*(t,e){yield*await globalThis.__ariaQuerySelectorAll(t,e)};var E={};l(E,{cssQuerySelector:()=>K,cssQuerySelectorAll:()=>Z});var K=(t,e)=>t.querySelector(e),Z=function(t,e){return t.querySelectorAll(e)};var A={};l(A,{customQuerySelectors:()=>P});var v=class{#e=new Map;register(e,r){if(!r.queryOne&&r.queryAll){let o=r.queryAll;r.queryOne=(n,i)=>{for(let s of o(n,i))return s;return null}}else if(r.queryOne&&!r.queryAll){let o=r.queryOne;r.queryAll=(n,i)=>{let s=o(n,i);return s?[s]:[]}}else if(!r.queryOne||!r.queryAll)throw new Error("At least one query method must be defined.");this.#e.set(e,{querySelector:r.queryOne,querySelectorAll:r.queryAll})}unregister(e){this.#e.delete(e)}get(e){return this.#e.get(e)}clear(){this.#e.clear()}},P=new v;var R={};l(R,{pierceQuerySelector:()=>ee,pierceQuerySelectorAll:()=>te});var ee=(t,e)=>{let r=null,o=n=>{let i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&o(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==n&&!r&&s.matches(e)&&(r=s)}while(!r&&i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r},te=(t,e)=>{let r=[],o=n=>{let i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);do{let s=i.currentNode;s.shadowRoot&&o(s.shadowRoot),!(s instanceof ShadowRoot)&&s!==n&&s.matches(e)&&r.push(s)}while(i.nextNode())};return t instanceof Document&&(t=t.documentElement),o(t),r};var u=(t,e)=>{if(!t)throw new Error(e)};var y=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=new MutationObserver(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())}),this.#o.observe(this.#r,{childList:!0,subtree:!0,attributes:!0})}async stop(){u(this.#t,"Polling never started."),this.#t.finished()||this.#t.reject(new Error("Polling stopped")),this.#o&&(this.#o.disconnect(),this.#o=void 0)}result(){return u(this.#t,"Polling never started."),this.#t.valueOrThrow()}},w=class{#e;#r;constructor(e){this.#e=e}async start(){let e=this.#r=c.create(),r=await this.#e();if(r){e.resolve(r);return}let o=async()=>{if(e.finished())return;let n=await this.#e();if(!n){window.requestAnimationFrame(o);return}e.resolve(n),await this.stop()};window.requestAnimationFrame(o)}async stop(){u(this.#r,"Polling never started."),this.#r.finished()||this.#r.reject(new Error("Polling stopped"))}result(){return u(this.#r,"Polling never started."),this.#r.valueOrThrow()}},S=class{#e;#r;#o;#t;constructor(e,r){this.#e=e,this.#r=r}async start(){let e=this.#t=c.create(),r=await this.#e();if(r){e.resolve(r);return}this.#o=setInterval(async()=>{let o=await this.#e();o&&(e.resolve(o),await this.stop())},this.#r)}async stop(){u(this.#t,"Polling never started."),this.#t.finished()||this.#t.reject(new Error("Polling stopped")),this.#o&&(clearInterval(this.#o),this.#o=void 0)}result(){return u(this.#t,"Polling never started."),this.#t.valueOrThrow()}};var _={};l(_,{PCombinator:()=>H,pQuerySelector:()=>fe,pQuerySelectorAll:()=>$});var a=class{static async*map(e,r){for await(let o of e)yield await r(o)}static async*flatMap(e,r){for await(let o of e)yield*r(o)}static async collect(e){let r=[];for await(let o of e)r.push(o);return r}static async first(e){for await(let r of e)return r}};var C={};l(C,{textQuerySelectorAll:()=>m});var re=new Set(["checkbox","image","radio"]),oe=t=>t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLInputElement&&!re.has(t.type),ne=new Set(["SCRIPT","STYLE"]),f=t=>!ne.has(t.nodeName)&&!document.head?.contains(t),I=new WeakMap,j=t=>{for(;t;)I.delete(t),t instanceof ShadowRoot?t=t.host:t=t.parentNode},W=new WeakSet,se=new MutationObserver(t=>{for(let e of t)j(e.target)}),d=t=>{let e=I.get(t);if(e||(e={full:"",immediate:[]},!f(t)))return e;let r="";if(oe(t))e.full=t.value,e.immediate.push(t.value),t.addEventListener("input",o=>{j(o.target)},{once:!0,capture:!0});else{for(let o=t.firstChild;o;o=o.nextSibling){if(o.nodeType===Node.TEXT_NODE){e.full+=o.nodeValue??"",r+=o.nodeValue??"";continue}r&&e.immediate.push(r),r="",o.nodeType===Node.ELEMENT_NODE&&(e.full+=d(o).full)}r&&e.immediate.push(r),t instanceof Element&&t.shadowRoot&&(e.full+=d(t.shadowRoot).full),W.has(t)||(se.observe(t,{childList:!0,characterData:!0,subtree:!0}),W.add(t))}return I.set(t,e),e};var m=function*(t,e){let r=!1;for(let o of t.childNodes)if(o instanceof Element&&f(o)){let n;o.shadowRoot?n=m(o.shadowRoot,e):n=m(o,e);for(let i of n)yield i,r=!0}r||t instanceof Element&&f(t)&&d(t).full.includes(e)&&(yield t)};var k={};l(k,{checkVisibility:()=>le,pierce:()=>T,pierceAll:()=>O});var ie=["hidden","collapse"],le=(t,e)=>{if(!t)return e===!1;if(e===void 0)return t;let r=t.nodeType===Node.TEXT_NODE?t.parentElement:t,o=window.getComputedStyle(r),n=o&&!ie.includes(o.visibility)&&!ae(r);return e===n?t:!1};function ae(t){let e=t.getBoundingClientRect();return e.width===0||e.height===0}var ce=t=>"shadowRoot"in t&&t.shadowRoot instanceof ShadowRoot;function*T(t){ce(t)?yield t.shadowRoot:yield t}function*O(t){t=T(t).next().value,yield t;let e=[document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT)];for(let r of e){let o;for(;o=r.nextNode();)o.shadowRoot&&(yield o.shadowRoot,e.push(document.createTreeWalker(o.shadowRoot,NodeFilter.SHOW_ELEMENT)))}}var Q={};l(Q,{xpathQuerySelectorAll:()=>q});var q=function*(t,e,r=-1){let n=(t.ownerDocument||document).evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE),i=[],s;for(;(s=n.iterateNext())&&(i.push(s),!(r&&i.length===r)););for(let h=0;h(r.Descendent=">>>",r.Child=">>>>",r))(H||{}),V=t=>"querySelectorAll"in t,M=class{#e;#r=[];#o=void 0;elements;constructor(e,r){this.elements=[e],this.#e=r,this.#t()}async run(){if(typeof this.#o=="string")switch(this.#o.trimStart()){case":scope":this.#t();break}for(;this.#o!==void 0;this.#t()){let e=this.#o;typeof e=="string"?e[0]&&ue.test(e[0])?this.elements=a.flatMap(this.elements,async function*(r){V(r)&&(yield*r.querySelectorAll(e))}):this.elements=a.flatMap(this.elements,async function*(r){if(!r.parentElement){if(!V(r))return;yield*r.querySelectorAll(e);return}let o=0;for(let n of r.parentElement.children)if(++o,n===r)break;yield*r.parentElement.querySelectorAll(`:scope>:nth-child(${o})${e}`)}):this.elements=a.flatMap(this.elements,async function*(r){switch(e.name){case"text":yield*m(r,e.value);break;case"xpath":yield*q(r,e.value);break;case"aria":yield*b(r,e.value);break;default:let o=P.get(e.name);if(!o)throw new Error(`Unknown selector type: ${e.name}`);yield*o.querySelectorAll(r,e.value)}})}}#t(){if(this.#r.length!==0){this.#o=this.#r.shift();return}if(this.#e.length===0){this.#o=void 0;return}let e=this.#e.shift();switch(e){case">>>>":{this.elements=a.flatMap(this.elements,T),this.#t();break}case">>>":{this.elements=a.flatMap(this.elements,O),this.#t();break}default:this.#r=e,this.#t();break}}},D=class{#e=new WeakMap;calculate(e,r=[]){if(e===null)return r;e instanceof ShadowRoot&&(e=e.host);let o=this.#e.get(e);if(o)return[...o,...r];let n=0;for(let s=e.previousSibling;s;s=s.previousSibling)++n;let i=this.calculate(e.parentNode,[n]);return this.#e.set(e,i),[...i,...r]}},U=(t,e)=>{if(t.length+e.length===0)return 0;let[r=-1,...o]=t,[n=-1,...i]=e;return r===n?U(o,i):r[o,r.calculate(o)]).sort(([,o],[,n])=>U(o,n)).map(([o])=>o)},$=function(t,e){let r=JSON.parse(e);if(r.some(o=>{let n=0;return o.some(i=>(typeof i=="string"?++n:n=0,n>1))}))throw new Error("Multiple deep combinators found in sequence.");return de(a.flatMap(r,o=>{let n=new M(t,o);return n.run(),n.elements}))},fe=async function(t,e){for await(let r of $(t,e))return r;return null};var me=Object.freeze({...x,...A,...R,..._,...C,...k,...Q,...E,Deferred:c,createFunction:F,createTextContent:d,IntervalPoller:S,isSuitableNodeForTextMatching:f,MutationPoller:y,RAFPoller:w}),he=me;\n'; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js var ScriptInjector = class { #updated = false; #amendments = /* @__PURE__ */ new Set(); @@ -3857,7 +3857,7 @@ var ScriptInjector = class { }; var scriptInjector = new ScriptInjector(); -// node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js var __addDisposableResource3 = function(env, value, async2) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -4081,7 +4081,7 @@ function bubble(events) { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js var __runInitializers = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -4314,7 +4314,7 @@ var JSHandle = (() => { return JSHandle2 = _classThis; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js var CSSQueryHandler = class extends QueryHandler { }; __publicField(CSSQueryHandler, "querySelector", (element, selector, { cssQuerySelector }) => { @@ -4324,7 +4324,7 @@ __publicField(CSSQueryHandler, "querySelectorAll", (element, selector, { cssQuer return cssQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js var CustomQueryHandlerRegistry = class { #handlers = /* @__PURE__ */ new Map(); get(name) { @@ -4407,7 +4407,7 @@ var CustomQueryHandlerRegistry = class { }; var customQueryHandlers = new CustomQueryHandlerRegistry(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js var PierceQueryHandler = class extends QueryHandler { }; __publicField(PierceQueryHandler, "querySelector", (element, selector, { pierceQuerySelector }) => { @@ -4417,7 +4417,7 @@ __publicField(PierceQueryHandler, "querySelectorAll", (element, selector, { pier return pierceQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js var PQueryHandler = class extends QueryHandler { }; __publicField(PQueryHandler, "querySelectorAll", (element, selector, { pQuerySelectorAll }) => { @@ -4427,7 +4427,7 @@ __publicField(PQueryHandler, "querySelector", (element, selector, { pQuerySelect return pQuerySelector(element, selector); }); -// node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js var TOKENS = { attribute: /\[\s*(?:(?\*|[-\w\P{ASCII}]*)\|)?(?[-\w\P{ASCII}]+)\s*(?:(?\W?=)\s*(?.+?)\s*(\s(?[iIsS]))?\s*)?\]/gu, id: /#(?[-\w\P{ASCII}]+)/gu, @@ -4605,7 +4605,7 @@ function stringify(listOrNode) { return tokens.map((token) => token.content).join(""); } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js TOKENS["nesting"] = /&/g; TOKENS["combinator"] = /\s*(>>>>?|[\s>+~])\s*/g; var ESCAPE_REGEXP = /\\[\s\S]/g; @@ -4703,14 +4703,14 @@ function parsePSelectors(selector) { return [selectors, isPureCSS, hasPseudoClasses, hasAria]; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js var TextQueryHandler = class extends QueryHandler { }; __publicField(TextQueryHandler, "querySelectorAll", (element, selector, { textQuerySelectorAll }) => { return textQuerySelectorAll(element, selector); }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js var XPathQueryHandler = class extends QueryHandler { }; __publicField(XPathQueryHandler, "querySelectorAll", (element, selector, { xpathQuerySelectorAll }) => { @@ -4723,7 +4723,7 @@ __publicField(XPathQueryHandler, "querySelector", (element, selector, { xpathQue return null; }); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js var BUILTIN_QUERY_HANDLERS = { aria: ARIAQueryHandler, pierce: PierceQueryHandler, @@ -4775,7 +4775,7 @@ function getQueryHandlerAndSelector(selector) { } } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js var __runInitializers2 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -6066,7 +6066,7 @@ function intersectBoundingBox(box, width, height) { box.height = Math.max(box.y >= 0 ? Math.min(height - box.y, box.height) : Math.min(height, box.height + box.y), 0); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js var __addDisposableResource6 = function(env, value, async2) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") @@ -6747,7 +6747,7 @@ var RaceLocator = class extends Locator { }; var RETRY_DELAY = 100; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js var __runInitializers3 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -7573,7 +7573,7 @@ var Frame = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js var HTTPRequest = class { /** * @internal @@ -7964,7 +7964,7 @@ function handleError(error) { debugError(error); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js var HTTPResponse = class { /** * @internal @@ -8006,7 +8006,7 @@ var HTTPResponse = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js function createIncrementalIdGenerator() { let id = 0; return () => { @@ -8014,7 +8014,7 @@ function createIncrementalIdGenerator() { }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js var Keyboard = class { /** * @internal @@ -8100,7 +8100,7 @@ var Touchscreen = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js var DEFAULT_TIMEOUT = 3e4; var TimeoutSettings = class { #defaultTimeout; @@ -8132,7 +8132,7 @@ var TimeoutSettings = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js var __runInitializers4 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -9596,7 +9596,7 @@ function roundRectangle(clip) { return { ...clip, x, y, width, height }; } -// node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js var WaitTask = class { #world; #polling; @@ -9764,7 +9764,7 @@ var TaskManager = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js var Realm = class { timeoutSettings; taskManager = new TaskManager(); @@ -9799,7 +9799,7 @@ var Realm = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js var Accessibility = class { #realm; /** @@ -10172,7 +10172,7 @@ var AXNode = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js var CallbackRegistry = class { #callbacks = /* @__PURE__ */ new Map(); #idGenerator = createIncrementalIdGenerator(); @@ -10273,7 +10273,7 @@ var Callback = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js var ConsoleMessage = class { #type; #text; @@ -10322,7 +10322,7 @@ var ConsoleMessage = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js var Coverage = class { #jsCoverage; #cssCoverage; @@ -10623,7 +10623,7 @@ function convertToDisjointRanges(nestedRanges) { }); } -// node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js var CDPSessionEvent; (function(CDPSessionEvent2) { CDPSessionEvent2.Disconnected = Symbol("CDPSession.Disconnected"); @@ -10649,7 +10649,7 @@ var CDPSession = class extends EventEmitter { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js var __runInitializers5 = function(thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { @@ -11098,7 +11098,7 @@ var EmulationManager = (() => { }; })(); -// node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js var SecurityDetails = class { #subjectName; #issuer; @@ -11157,7 +11157,7 @@ var SecurityDetails = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js var Tracing = class { #client; #recording = false; @@ -11244,7 +11244,7 @@ var Tracing = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js var Dialog = class { #type; #message; @@ -11307,7 +11307,7 @@ var Dialog = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js var TargetType; (function(TargetType2) { TargetType2["PAGE"] = "page"; @@ -11340,7 +11340,7 @@ var Target = class { } }; -// node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +// ../testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js var WebWorker = class extends EventEmitter { /** * @internal diff --git a/docs/web/chunk-ZAFYTSTM.mjs b/docs/web/chunk-ZAFYTSTM.mjs new file mode 100644 index 00000000..af05fc96 --- /dev/null +++ b/docs/web/chunk-ZAFYTSTM.mjs @@ -0,0 +1,26 @@ +import { + require_react +} from "./chunk-T4W5FV25.mjs"; +import { + __toESM +} from "./chunk-3KGMXYRN.mjs"; + +// src/ClassicalComponent/index.tsx +var import_react = __toESM(require_react(), 1); +var ClassicalComponent = class extends import_react.default.Component { + constructor(props) { + super(props); + this.state = { + count: 0 + }; + } + render() { + return /* @__PURE__ */ import_react.default.createElement("div", { style: { border: "3px solid black" } }, /* @__PURE__ */ import_react.default.createElement("h1", { id: "theHeader" }, "Hello Marcus"), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theProps" }, JSON.stringify(this.props)), /* @__PURE__ */ import_react.default.createElement("p", null, "foo: ", this.props.foo), /* @__PURE__ */ import_react.default.createElement("pre", { id: "theStat" }, JSON.stringify(this.state)), /* @__PURE__ */ import_react.default.createElement("p", null, "count: ", this.state.count, " times"), /* @__PURE__ */ import_react.default.createElement("button", { id: "theButton", onClick: async () => { + this.setState({ count: this.state.count + 1 }); + } }, "Click")); + } +}; + +export { + ClassicalComponent +}; diff --git a/docs/web/src/ClassicalComponent/react-dom/client.web.test.mjs b/docs/web/src/ClassicalComponent/react-dom/client.web.test.mjs index 2f3ce320..f62788de 100644 --- a/docs/web/src/ClassicalComponent/react-dom/client.web.test.mjs +++ b/docs/web/src/ClassicalComponent/react-dom/client.web.test.mjs @@ -1,27 +1,21207 @@ import { - Web_default -} from "../../../chunk-YCRVKDXD.mjs"; + Web_default, + require_scheduler +} from "../../../chunk-DNWTG4XM.mjs"; import { assert -} from "../../../chunk-GEWWKFQY.mjs"; +} from "../../../chunk-T3XNPSCC.mjs"; import { - ClassicalComponent, - require_client -} from "../../../chunk-2FNPKSAA.mjs"; + ClassicalComponent +} from "../../../chunk-ZAFYTSTM.mjs"; import { require_react -} from "../../../chunk-JE6WFJZI.mjs"; -import "../../../chunk-2MX732QA.mjs"; -import "../../../chunk-KKQOQNY2.mjs"; -import "../../../chunk-EXETZ625.mjs"; +} from "../../../chunk-T4W5FV25.mjs"; +import "../../../chunk-43DSNPFJ.mjs"; +import "../../../chunk-WZWH5UFM.mjs"; +import "../../../chunk-2CNFTRH6.mjs"; import { + __commonJS, __toESM } from "../../../chunk-3KGMXYRN.mjs"; -// node_modules/testeranto/dist/module/SubPackages/react-dom/component/web.js +// ../testeranto/node_modules/react-dom/cjs/react-dom.development.js +var require_react_dom_development = __commonJS({ + "../testeranto/node_modules/react-dom/cjs/react-dom.development.js"(exports) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var React = require_react(); + var Scheduler = require_scheduler(); + var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var suppressWarning = false; + function setSuppressWarning(newSuppressWarning) { + { + suppressWarning = newSuppressWarning; + } + } + function warn(format) { + { + if (!suppressWarning) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format, args); + } + } + } + function error(format) { + { + if (!suppressWarning) { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format, args); + } + } + } + function printWarning(level, format, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; + var HostRoot = 3; + var HostPortal = 4; + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + var enableClientRenderFallbackOnTextMismatch = true; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + var enableSuspenseAvoidThisFallback = false; + var disableCommentsAsDOMContainers = true; + var enableCustomElementPropertySupport = false; + var warnAboutStringRefs = true; + var enableSchedulingProfiler = true; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var allNativeEvents = /* @__PURE__ */ new Set(); + var registrationNameDependencies = {}; + var possibleRegistrationNames = {}; + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + { + if (registrationNameDependencies[registrationName]) { + error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); + } + } + registrationNameDependencies[registrationName] = dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + if (registrationName === "onDoubleClick") { + possibleRegistrationNames.ondblclick = registrationName; + } + } + for (var i = 0; i < dependencies.length; i++) { + allNativeEvents.add(dependencies[i]); + } + } + var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined"); + var hasOwnProperty = Object.prototype.hasOwnProperty; + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkAttributeStringCoercion(value, attributeName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", attributeName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkCSSPropertyStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkHtmlStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function checkFormFieldValueStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + var RESERVED = 0; + var STRING = 1; + var BOOLEANISH_STRING = 2; + var BOOLEAN = 3; + var OVERLOADED_BOOLEAN = 4; + var NUMERIC = 5; + var POSITIVE_NUMERIC = 6; + var ATTRIBUTE_NAME_START_CHAR = ":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"; + var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var illegalAttributeNameCache = {}; + var validatedAttributeNameCache = {}; + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { + return true; + } + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { + return false; + } + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { + validatedAttributeNameCache[attributeName] = true; + return true; + } + illegalAttributeNameCache[attributeName] = true; + { + error("Invalid attribute name: `%s`", attributeName); + } + return false; + } + function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null) { + return propertyInfo.type === RESERVED; + } + if (isCustomComponentTag) { + return false; + } + if (name.length > 2 && (name[0] === "o" || name[0] === "O") && (name[1] === "n" || name[1] === "N")) { + return true; + } + return false; + } + function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null && propertyInfo.type === RESERVED) { + return false; + } + switch (typeof value) { + case "function": + case "symbol": + return true; + case "boolean": { + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + return !propertyInfo.acceptsBooleans; + } else { + var prefix2 = name.toLowerCase().slice(0, 5); + return prefix2 !== "data-" && prefix2 !== "aria-"; + } + } + default: + return false; + } + } + function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { + if (value === null || typeof value === "undefined") { + return true; + } + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { + return true; + } + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + switch (propertyInfo.type) { + case BOOLEAN: + return !value; + case OVERLOADED_BOOLEAN: + return value === false; + case NUMERIC: + return isNaN(value); + case POSITIVE_NUMERIC: + return isNaN(value) || value < 1; + } + } + return false; + } + function getPropertyInfo(name) { + return properties.hasOwnProperty(name) ? properties[name] : null; + } + function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL2, removeEmptyString) { + this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; + this.attributeName = attributeName; + this.attributeNamespace = attributeNamespace; + this.mustUseProperty = mustUseProperty; + this.propertyName = name; + this.type = type; + this.sanitizeURL = sanitizeURL2; + this.removeEmptyString = removeEmptyString; + } + var properties = {}; + var reservedProps = [ + "children", + "dangerouslySetInnerHTML", + // TODO: This prevents the assignment of defaultValue to regular + // elements (not just inputs). Now that ReactDOMInput assigns to the + // defaultValue property -- do we need this? + "defaultValue", + "defaultChecked", + "innerHTML", + "suppressContentEditableWarning", + "suppressHydrationWarning", + "style" + ]; + reservedProps.forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + RESERVED, + false, + // mustUseProperty + name, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { + var name = _ref[0], attributeName = _ref[1]; + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + // mustUseProperty + attributeName, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEANISH_STRING, + false, + // mustUseProperty + name.toLowerCase(), + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEANISH_STRING, + false, + // mustUseProperty + name, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [ + "allowFullScreen", + "async", + // Note: there is a special case that prevents it from being written to the DOM + // on the client side because the browsers are inconsistent. Instead we call focus(). + "autoFocus", + "autoPlay", + "controls", + "default", + "defer", + "disabled", + "disablePictureInPicture", + "disableRemotePlayback", + "formNoValidate", + "hidden", + "loop", + "noModule", + "noValidate", + "open", + "playsInline", + "readOnly", + "required", + "reversed", + "scoped", + "seamless", + // Microdata + "itemScope" + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEAN, + false, + // mustUseProperty + name.toLowerCase(), + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [ + "checked", + // Note: `option.selected` is not updated if `select.multiple` is + // disabled with `removeAttribute`. We have special logic for handling this. + "multiple", + "muted", + "selected" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEAN, + true, + // mustUseProperty + name, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [ + "capture", + "download" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + OVERLOADED_BOOLEAN, + false, + // mustUseProperty + name, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [ + "cols", + "rows", + "size", + "span" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + POSITIVE_NUMERIC, + false, + // mustUseProperty + name, + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + ["rowSpan", "start"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + NUMERIC, + false, + // mustUseProperty + name.toLowerCase(), + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + var CAMELIZE = /[\-\:]([a-z])/g; + var capitalize = function(token) { + return token[1].toUpperCase(); + }; + [ + "accent-height", + "alignment-baseline", + "arabic-form", + "baseline-shift", + "cap-height", + "clip-path", + "clip-rule", + "color-interpolation", + "color-interpolation-filters", + "color-profile", + "color-rendering", + "dominant-baseline", + "enable-background", + "fill-opacity", + "fill-rule", + "flood-color", + "flood-opacity", + "font-family", + "font-size", + "font-size-adjust", + "font-stretch", + "font-style", + "font-variant", + "font-weight", + "glyph-name", + "glyph-orientation-horizontal", + "glyph-orientation-vertical", + "horiz-adv-x", + "horiz-origin-x", + "image-rendering", + "letter-spacing", + "lighting-color", + "marker-end", + "marker-mid", + "marker-start", + "overline-position", + "overline-thickness", + "paint-order", + "panose-1", + "pointer-events", + "rendering-intent", + "shape-rendering", + "stop-color", + "stop-opacity", + "strikethrough-position", + "strikethrough-thickness", + "stroke-dasharray", + "stroke-dashoffset", + "stroke-linecap", + "stroke-linejoin", + "stroke-miterlimit", + "stroke-opacity", + "stroke-width", + "text-anchor", + "text-decoration", + "text-rendering", + "underline-position", + "underline-thickness", + "unicode-bidi", + "unicode-range", + "units-per-em", + "v-alphabetic", + "v-hanging", + "v-ideographic", + "v-mathematical", + "vector-effect", + "vert-adv-y", + "vert-origin-x", + "vert-origin-y", + "word-spacing", + "writing-mode", + "xmlns:xlink", + "x-height" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + // mustUseProperty + attributeName, + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + [ + "xlink:actuate", + "xlink:arcrole", + "xlink:role", + "xlink:show", + "xlink:title", + "xlink:type" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + // mustUseProperty + attributeName, + "http://www.w3.org/1999/xlink", + false, + // sanitizeURL + false + ); + }); + [ + "xml:base", + "xml:lang", + "xml:space" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + // mustUseProperty + attributeName, + "http://www.w3.org/XML/1998/namespace", + false, + // sanitizeURL + false + ); + }); + ["tabIndex", "crossOrigin"].forEach(function(attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + STRING, + false, + // mustUseProperty + attributeName.toLowerCase(), + // attributeName + null, + // attributeNamespace + false, + // sanitizeURL + false + ); + }); + var xlinkHref = "xlinkHref"; + properties[xlinkHref] = new PropertyInfoRecord( + "xlinkHref", + STRING, + false, + // mustUseProperty + "xlink:href", + "http://www.w3.org/1999/xlink", + true, + // sanitizeURL + false + ); + ["src", "href", "action", "formAction"].forEach(function(attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + STRING, + false, + // mustUseProperty + attributeName.toLowerCase(), + // attributeName + null, + // attributeNamespace + true, + // sanitizeURL + true + ); + }); + var 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; + var didWarn = false; + function sanitizeURL(url) { + { + if (!didWarn && isJavaScriptProtocol.test(url)) { + didWarn = true; + error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(url)); + } + } + } + function getValueForProperty(node, name, expected, propertyInfo) { + { + if (propertyInfo.mustUseProperty) { + var propertyName = propertyInfo.propertyName; + return node[propertyName]; + } else { + { + checkAttributeStringCoercion(expected, name); + } + if (propertyInfo.sanitizeURL) { + sanitizeURL("" + expected); + } + var attributeName = propertyInfo.attributeName; + var stringValue = null; + if (propertyInfo.type === OVERLOADED_BOOLEAN) { + if (node.hasAttribute(attributeName)) { + var value = node.getAttribute(attributeName); + if (value === "") { + return true; + } + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return value; + } + if (value === "" + expected) { + return expected; + } + return value; + } + } else if (node.hasAttribute(attributeName)) { + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return node.getAttribute(attributeName); + } + if (propertyInfo.type === BOOLEAN) { + return expected; + } + stringValue = node.getAttribute(attributeName); + } + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return stringValue === null ? expected : stringValue; + } else if (stringValue === "" + expected) { + return expected; + } else { + return stringValue; + } + } + } + } + function getValueForAttribute(node, name, expected, isCustomComponentTag) { + { + if (!isAttributeNameSafe(name)) { + return; + } + if (!node.hasAttribute(name)) { + return expected === void 0 ? void 0 : null; + } + var value = node.getAttribute(name); + { + checkAttributeStringCoercion(expected, name); + } + if (value === "" + expected) { + return expected; + } + return value; + } + } + function setValueForProperty(node, name, value, isCustomComponentTag) { + var propertyInfo = getPropertyInfo(name); + if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { + return; + } + if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { + value = null; + } + if (isCustomComponentTag || propertyInfo === null) { + if (isAttributeNameSafe(name)) { + var _attributeName = name; + if (value === null) { + node.removeAttribute(_attributeName); + } else { + { + checkAttributeStringCoercion(value, name); + } + node.setAttribute(_attributeName, "" + value); + } + } + return; + } + var mustUseProperty = propertyInfo.mustUseProperty; + if (mustUseProperty) { + var propertyName = propertyInfo.propertyName; + if (value === null) { + var type = propertyInfo.type; + node[propertyName] = type === BOOLEAN ? false : ""; + } else { + node[propertyName] = value; + } + return; + } + var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; + if (value === null) { + node.removeAttribute(attributeName); + } else { + var _type = propertyInfo.type; + var attributeValue; + if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { + attributeValue = ""; + } else { + { + { + checkAttributeStringCoercion(value, attributeName); + } + attributeValue = "" + value; + } + if (propertyInfo.sanitizeURL) { + sanitizeURL(attributeValue.toString()); + } + } + if (attributeNamespace) { + node.setAttributeNS(attributeNamespace, attributeName, attributeValue); + } else { + node.setAttribute(attributeName, attributeValue); + } + } + } + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + var assign = Object.assign; + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign({}, props, { + value: prevLog + }), + info: assign({}, props, { + value: prevInfo + }), + warn: assign({}, props, { + value: prevWarn + }), + error: assign({}, props, { + value: prevError + }), + group: assign({}, props, { + value: prevGroup + }), + groupCollapsed: assign({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn.displayName); + } + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeNativeComponentFrame(ctor, true); + } + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy"); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense"); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList"); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render); + case ClassComponent: + return describeClassComponentFrame(fiber.type); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress2) { + try { + var info = ""; + var node = workInProgress2; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init = lazyComponent._init; + try { + return getComponentNameFromType(init(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + return "StrictMode"; + } + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; + } + return null; + } + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } + } + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function getCurrentFiber() { + { + return current; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + function toString(value) { + return "" + value; + } + function getToStringValue(value) { + switch (typeof value) { + case "boolean": + case "number": + case "string": + case "undefined": + return value; + case "object": + { + checkFormFieldValueStringCoercion(value); + } + return value; + default: + return ""; + } + } + var hasReadOnlyValue = { + button: true, + checkbox: true, + image: true, + hidden: true, + radio: true, + reset: true, + submit: true + }; + function checkControlledValueProps(tagName, props) { + { + if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) { + error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."); + } + if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) { + error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); + } + } + } + function isCheckable(elem) { + var type = elem.type; + var nodeName = elem.nodeName; + return nodeName && nodeName.toLowerCase() === "input" && (type === "checkbox" || type === "radio"); + } + function getTracker(node) { + return node._valueTracker; + } + function detachTracker(node) { + node._valueTracker = null; + } + function getValueFromNode(node) { + var value = ""; + if (!node) { + return value; + } + if (isCheckable(node)) { + value = node.checked ? "true" : "false"; + } else { + value = node.value; + } + return value; + } + function trackValueOnNode(node) { + var valueField = isCheckable(node) ? "checked" : "value"; + var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); + { + checkFormFieldValueStringCoercion(node[valueField]); + } + var currentValue = "" + node[valueField]; + if (node.hasOwnProperty(valueField) || typeof descriptor === "undefined" || typeof descriptor.get !== "function" || typeof descriptor.set !== "function") { + return; + } + var get2 = descriptor.get, set2 = descriptor.set; + Object.defineProperty(node, valueField, { + configurable: true, + get: function() { + return get2.call(this); + }, + set: function(value) { + { + checkFormFieldValueStringCoercion(value); + } + currentValue = "" + value; + set2.call(this, value); + } + }); + Object.defineProperty(node, valueField, { + enumerable: descriptor.enumerable + }); + var tracker = { + getValue: function() { + return currentValue; + }, + setValue: function(value) { + { + checkFormFieldValueStringCoercion(value); + } + currentValue = "" + value; + }, + stopTracking: function() { + detachTracker(node); + delete node[valueField]; + } + }; + return tracker; + } + function track(node) { + if (getTracker(node)) { + return; + } + node._valueTracker = trackValueOnNode(node); + } + function updateValueIfChanged(node) { + if (!node) { + return false; + } + var tracker = getTracker(node); + if (!tracker) { + return true; + } + var lastValue = tracker.getValue(); + var nextValue = getValueFromNode(node); + if (nextValue !== lastValue) { + tracker.setValue(nextValue); + return true; + } + return false; + } + function getActiveElement(doc) { + doc = doc || (typeof document !== "undefined" ? document : void 0); + if (typeof doc === "undefined") { + return null; + } + try { + return doc.activeElement || doc.body; + } catch (e) { + return doc.body; + } + } + var didWarnValueDefaultValue = false; + var didWarnCheckedDefaultChecked = false; + var didWarnControlledToUncontrolled = false; + var didWarnUncontrolledToControlled = false; + function isControlled(props) { + var usesChecked = props.type === "checkbox" || props.type === "radio"; + return usesChecked ? props.checked != null : props.value != null; + } + function getHostProps(element, props) { + var node = element; + var checked = props.checked; + var hostProps = assign({}, props, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: checked != null ? checked : node._wrapperState.initialChecked + }); + return hostProps; + } + function initWrapperState(element, props) { + { + checkControlledValueProps("input", props); + if (props.checked !== void 0 && props.defaultChecked !== void 0 && !didWarnCheckedDefaultChecked) { + error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type); + didWarnCheckedDefaultChecked = true; + } + if (props.value !== void 0 && props.defaultValue !== void 0 && !didWarnValueDefaultValue) { + error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type); + didWarnValueDefaultValue = true; + } + } + var node = element; + var defaultValue = props.defaultValue == null ? "" : props.defaultValue; + node._wrapperState = { + initialChecked: props.checked != null ? props.checked : props.defaultChecked, + initialValue: getToStringValue(props.value != null ? props.value : defaultValue), + controlled: isControlled(props) + }; + } + function updateChecked(element, props) { + var node = element; + var checked = props.checked; + if (checked != null) { + setValueForProperty(node, "checked", checked, false); + } + } + function updateWrapper(element, props) { + var node = element; + { + var controlled = isControlled(props); + if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { + error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"); + didWarnUncontrolledToControlled = true; + } + if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { + error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"); + didWarnControlledToUncontrolled = true; + } + } + updateChecked(element, props); + var value = getToStringValue(props.value); + var type = props.type; + if (value != null) { + if (type === "number") { + if (value === 0 && node.value === "" || // We explicitly want to coerce to number here if possible. + // eslint-disable-next-line + node.value != value) { + node.value = toString(value); + } + } else if (node.value !== toString(value)) { + node.value = toString(value); + } + } else if (type === "submit" || type === "reset") { + node.removeAttribute("value"); + return; + } + { + if (props.hasOwnProperty("value")) { + setDefaultValue(node, props.type, value); + } else if (props.hasOwnProperty("defaultValue")) { + setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); + } + } + { + if (props.checked == null && props.defaultChecked != null) { + node.defaultChecked = !!props.defaultChecked; + } + } + } + function postMountWrapper(element, props, isHydrating2) { + var node = element; + if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { + var type = props.type; + var isButton = type === "submit" || type === "reset"; + if (isButton && (props.value === void 0 || props.value === null)) { + return; + } + var initialValue = toString(node._wrapperState.initialValue); + if (!isHydrating2) { + { + if (initialValue !== node.value) { + node.value = initialValue; + } + } + } + { + node.defaultValue = initialValue; + } + } + var name = node.name; + if (name !== "") { + node.name = ""; + } + { + node.defaultChecked = !node.defaultChecked; + node.defaultChecked = !!node._wrapperState.initialChecked; + } + if (name !== "") { + node.name = name; + } + } + function restoreControlledState(element, props) { + var node = element; + updateWrapper(node, props); + updateNamedCousins(node, props); + } + function updateNamedCousins(rootNode, props) { + var name = props.name; + if (props.type === "radio" && name != null) { + var queryRoot = rootNode; + while (queryRoot.parentNode) { + queryRoot = queryRoot.parentNode; + } + { + checkAttributeStringCoercion(name, "name"); + } + var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + '][type="radio"]'); + for (var i = 0; i < group.length; i++) { + var otherNode = group[i]; + if (otherNode === rootNode || otherNode.form !== rootNode.form) { + continue; + } + var otherProps = getFiberCurrentPropsFromNode(otherNode); + if (!otherProps) { + throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); + } + updateValueIfChanged(otherNode); + updateWrapper(otherNode, otherProps); + } + } + } + function setDefaultValue(node, type, value) { + if ( + // Focused number inputs synchronize on blur. See ChangeEventPlugin.js + type !== "number" || getActiveElement(node.ownerDocument) !== node + ) { + if (value == null) { + node.defaultValue = toString(node._wrapperState.initialValue); + } else if (node.defaultValue !== toString(value)) { + node.defaultValue = toString(value); + } + } + } + var didWarnSelectedSetOnOption = false; + var didWarnInvalidChild = false; + var didWarnInvalidInnerHTML = false; + function validateProps(element, props) { + { + if (props.value == null) { + if (typeof props.children === "object" && props.children !== null) { + React.Children.forEach(props.children, function(child) { + if (child == null) { + return; + } + if (typeof child === "string" || typeof child === "number") { + return; + } + if (!didWarnInvalidChild) { + didWarnInvalidChild = true; + error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to