playwright-codegen-pro-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +3 -0
- package/ThirdPartyNotices.txt +3552 -0
- package/bin/install_media_pack.ps1 +5 -0
- package/bin/install_webkit_wsl.ps1 +33 -0
- package/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/browsers.json +81 -0
- package/bundles/mcp/package-lock.json +1135 -0
- package/bundles/mcp/package.json +10 -0
- package/bundles/mcp/raw-body.ts +43 -0
- package/bundles/utils/package-lock.json +466 -0
- package/bundles/utils/package.json +40 -0
- package/bundles/zip/package-lock.json +257 -0
- package/bundles/zip/package.json +16 -0
- package/cli.js +18 -0
- package/index.d.ts +17 -0
- package/index.js +32 -0
- package/index.mjs +28 -0
- package/lib/androidServerImpl.js +65 -0
- package/lib/browserServerImpl.js +120 -0
- package/lib/cli/driver.js +98 -0
- package/lib/cli/program.js +599 -0
- package/lib/cli/programWithTestStub.js +74 -0
- package/lib/client/android.js +361 -0
- package/lib/client/api.js +137 -0
- package/lib/client/artifact.js +79 -0
- package/lib/client/browser.js +169 -0
- package/lib/client/browserContext.js +563 -0
- package/lib/client/browserType.js +153 -0
- package/lib/client/cdpSession.js +55 -0
- package/lib/client/channelOwner.js +194 -0
- package/lib/client/clientHelper.js +64 -0
- package/lib/client/clientInstrumentation.js +55 -0
- package/lib/client/clientStackTrace.js +69 -0
- package/lib/client/clock.js +68 -0
- package/lib/client/connect.js +143 -0
- package/lib/client/connection.js +322 -0
- package/lib/client/consoleMessage.js +61 -0
- package/lib/client/coverage.js +44 -0
- package/lib/client/debugger.js +57 -0
- package/lib/client/dialog.js +56 -0
- package/lib/client/disposable.js +76 -0
- package/lib/client/download.js +62 -0
- package/lib/client/electron.js +138 -0
- package/lib/client/elementHandle.js +281 -0
- package/lib/client/errors.js +77 -0
- package/lib/client/eventEmitter.js +314 -0
- package/lib/client/events.js +103 -0
- package/lib/client/fetch.js +367 -0
- package/lib/client/fileChooser.js +46 -0
- package/lib/client/fileUtils.js +34 -0
- package/lib/client/frame.js +404 -0
- package/lib/client/harRouter.js +99 -0
- package/lib/client/input.js +84 -0
- package/lib/client/jsHandle.js +105 -0
- package/lib/client/jsonPipe.js +39 -0
- package/lib/client/localUtils.js +60 -0
- package/lib/client/locator.js +367 -0
- package/lib/client/network.js +750 -0
- package/lib/client/page.js +729 -0
- package/lib/client/platform.js +77 -0
- package/lib/client/playwright.js +71 -0
- package/lib/client/screencast.js +48 -0
- package/lib/client/selectors.js +57 -0
- package/lib/client/stream.js +39 -0
- package/lib/client/timeoutSettings.js +79 -0
- package/lib/client/tracing.js +126 -0
- package/lib/client/types.js +28 -0
- package/lib/client/video.js +68 -0
- package/lib/client/waiter.js +142 -0
- package/lib/client/webError.js +39 -0
- package/lib/client/worker.js +85 -0
- package/lib/client/writableStream.js +39 -0
- package/lib/generated/bindingsControllerSource.js +28 -0
- package/lib/generated/clockSource.js +28 -0
- package/lib/generated/injectedScriptSource.js +28 -0
- package/lib/generated/pollingRecorderSource.js +28 -0
- package/lib/generated/storageScriptSource.js +28 -0
- package/lib/generated/utilityScriptSource.js +28 -0
- package/lib/generated/webSocketMockSource.js +336 -0
- package/lib/inProcessFactory.js +60 -0
- package/lib/inprocess.js +3 -0
- package/lib/mcpBundle.js +81 -0
- package/lib/mcpBundleImpl/index.js +91 -0
- package/lib/outofprocess.js +76 -0
- package/lib/protocol/serializers.js +197 -0
- package/lib/protocol/validator.js +3035 -0
- package/lib/protocol/validatorPrimitives.js +193 -0
- package/lib/remote/playwrightConnection.js +131 -0
- package/lib/remote/playwrightPipeServer.js +100 -0
- package/lib/remote/playwrightServer.js +339 -0
- package/lib/remote/playwrightWebSocketServer.js +73 -0
- package/lib/remote/serverTransport.js +96 -0
- package/lib/server/android/android.js +465 -0
- package/lib/server/android/backendAdb.js +177 -0
- package/lib/server/artifact.js +127 -0
- package/lib/server/bidi/bidiBrowser.js +571 -0
- package/lib/server/bidi/bidiChromium.js +162 -0
- package/lib/server/bidi/bidiConnection.js +213 -0
- package/lib/server/bidi/bidiDeserializer.js +116 -0
- package/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/lib/server/bidi/bidiFirefox.js +128 -0
- package/lib/server/bidi/bidiInput.js +146 -0
- package/lib/server/bidi/bidiNetworkManager.js +411 -0
- package/lib/server/bidi/bidiOverCdp.js +102 -0
- package/lib/server/bidi/bidiPage.js +599 -0
- package/lib/server/bidi/bidiPdf.js +106 -0
- package/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/lib/server/bidi/third_party/firefoxPrefs.js +261 -0
- package/lib/server/browser.js +223 -0
- package/lib/server/browserContext.js +703 -0
- package/lib/server/browserType.js +338 -0
- package/lib/server/callLog.js +82 -0
- package/lib/server/chromium/appIcon.png +0 -0
- package/lib/server/chromium/chromium.js +399 -0
- package/lib/server/chromium/chromiumSwitches.js +104 -0
- package/lib/server/chromium/crBrowser.js +532 -0
- package/lib/server/chromium/crConnection.js +197 -0
- package/lib/server/chromium/crCoverage.js +235 -0
- package/lib/server/chromium/crDevTools.js +111 -0
- package/lib/server/chromium/crDragDrop.js +131 -0
- package/lib/server/chromium/crExecutionContext.js +146 -0
- package/lib/server/chromium/crInput.js +187 -0
- package/lib/server/chromium/crNetworkManager.js +711 -0
- package/lib/server/chromium/crPage.js +1004 -0
- package/lib/server/chromium/crPdf.js +121 -0
- package/lib/server/chromium/crProtocolHelper.js +145 -0
- package/lib/server/chromium/crServiceWorker.js +137 -0
- package/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/lib/server/chromium/protocol.d.js +16 -0
- package/lib/server/clock.js +149 -0
- package/lib/server/codegen/csharp.js +327 -0
- package/lib/server/codegen/java.js +274 -0
- package/lib/server/codegen/javascript.js +247 -0
- package/lib/server/codegen/jsonl.js +52 -0
- package/lib/server/codegen/language.js +132 -0
- package/lib/server/codegen/languages.js +68 -0
- package/lib/server/codegen/python.js +279 -0
- package/lib/server/codegen/types.js +16 -0
- package/lib/server/console.js +61 -0
- package/lib/server/cookieStore.js +206 -0
- package/lib/server/debugController.js +197 -0
- package/lib/server/debugger.js +117 -0
- package/lib/server/deviceDescriptors.js +39 -0
- package/lib/server/deviceDescriptorsSource.json +1779 -0
- package/lib/server/dialog.js +116 -0
- package/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/lib/server/dispatchers/browserContextDispatcher.js +381 -0
- package/lib/server/dispatchers/browserDispatcher.js +124 -0
- package/lib/server/dispatchers/browserTypeDispatcher.js +71 -0
- package/lib/server/dispatchers/cdpSessionDispatcher.js +47 -0
- package/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/lib/server/dispatchers/debuggerDispatcher.js +80 -0
- package/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/lib/server/dispatchers/dispatcher.js +364 -0
- package/lib/server/dispatchers/disposableDispatcher.js +39 -0
- package/lib/server/dispatchers/electronDispatcher.js +90 -0
- package/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/lib/server/dispatchers/localUtilsDispatcher.js +185 -0
- package/lib/server/dispatchers/networkDispatchers.js +214 -0
- package/lib/server/dispatchers/pageDispatcher.js +430 -0
- package/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/lib/server/dispatchers/webSocketRouteDispatcher.js +164 -0
- package/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/lib/server/disposable.js +41 -0
- package/lib/server/dom.js +833 -0
- package/lib/server/download.js +71 -0
- package/lib/server/electron/electron.js +272 -0
- package/lib/server/electron/loader.js +29 -0
- package/lib/server/errors.js +69 -0
- package/lib/server/fetch.js +621 -0
- package/lib/server/fileChooser.js +43 -0
- package/lib/server/fileUploadUtils.js +84 -0
- package/lib/server/firefox/ffBrowser.js +415 -0
- package/lib/server/firefox/ffConnection.js +142 -0
- package/lib/server/firefox/ffExecutionContext.js +150 -0
- package/lib/server/firefox/ffInput.js +175 -0
- package/lib/server/firefox/ffNetworkManager.js +256 -0
- package/lib/server/firefox/ffPage.js +495 -0
- package/lib/server/firefox/firefox.js +114 -0
- package/lib/server/firefox/protocol.d.js +16 -0
- package/lib/server/formData.js +147 -0
- package/lib/server/frameSelectors.js +160 -0
- package/lib/server/frames.js +1495 -0
- package/lib/server/har/harRecorder.js +147 -0
- package/lib/server/har/harTracer.js +608 -0
- package/lib/server/harBackend.js +157 -0
- package/lib/server/helper.js +96 -0
- package/lib/server/index.js +58 -0
- package/lib/server/input.js +322 -0
- package/lib/server/instrumentation.js +72 -0
- package/lib/server/javascript.js +291 -0
- package/lib/server/launchApp.js +127 -0
- package/lib/server/localUtils.js +214 -0
- package/lib/server/macEditingCommands.js +143 -0
- package/lib/server/network.js +668 -0
- package/lib/server/page.js +884 -0
- package/lib/server/pipeTransport.js +89 -0
- package/lib/server/playwright.js +69 -0
- package/lib/server/progress.js +136 -0
- package/lib/server/protocolError.js +52 -0
- package/lib/server/recorder/chat.js +161 -0
- package/lib/server/recorder/networkCapture.js +282 -0
- package/lib/server/recorder/recorderApp.js +581 -0
- package/lib/server/recorder/recorderRunner.js +138 -0
- package/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/lib/server/recorder/recorderUtils.js +157 -0
- package/lib/server/recorder/sessionExporter.js +40 -0
- package/lib/server/recorder/sessionPromptBuilder.js +128 -0
- package/lib/server/recorder/sessionRedactor.js +74 -0
- package/lib/server/recorder/throttledFile.js +57 -0
- package/lib/server/recorder.js +538 -0
- package/lib/server/registry/browserFetcher.js +177 -0
- package/lib/server/registry/dependencies.js +371 -0
- package/lib/server/registry/index.js +1395 -0
- package/lib/server/registry/nativeDeps.js +1281 -0
- package/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/lib/server/screencast.js +238 -0
- package/lib/server/screenshotter.js +333 -0
- package/lib/server/selectors.js +112 -0
- package/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/lib/server/socksInterceptor.js +95 -0
- package/lib/server/trace/recorder/snapshotter.js +147 -0
- package/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/lib/server/trace/recorder/tracing.js +615 -0
- package/lib/server/trace/viewer/traceViewer.js +244 -0
- package/lib/server/transport.js +181 -0
- package/lib/server/types.js +28 -0
- package/lib/server/usKeyboardLayout.js +152 -0
- package/lib/server/utils/ascii.js +44 -0
- package/lib/server/utils/comparators.js +139 -0
- package/lib/server/utils/crypto.js +216 -0
- package/lib/server/utils/debug.js +42 -0
- package/lib/server/utils/debugLogger.js +122 -0
- package/lib/server/utils/disposable.js +32 -0
- package/lib/server/utils/env.js +73 -0
- package/lib/server/utils/eventsHelper.js +41 -0
- package/lib/server/utils/expectUtils.js +123 -0
- package/lib/server/utils/fileUtils.js +191 -0
- package/lib/server/utils/happyEyeballs.js +207 -0
- package/lib/server/utils/hostPlatform.js +123 -0
- package/lib/server/utils/httpServer.js +205 -0
- package/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/lib/server/utils/image_tools/compare.js +109 -0
- package/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/lib/server/utils/image_tools/stats.js +102 -0
- package/lib/server/utils/linuxUtils.js +71 -0
- package/lib/server/utils/network.js +243 -0
- package/lib/server/utils/nodePlatform.js +154 -0
- package/lib/server/utils/pipeTransport.js +84 -0
- package/lib/server/utils/processLauncher.js +243 -0
- package/lib/server/utils/profiler.js +65 -0
- package/lib/server/utils/socksProxy.js +511 -0
- package/lib/server/utils/spawnAsync.js +41 -0
- package/lib/server/utils/task.js +51 -0
- package/lib/server/utils/userAgent.js +98 -0
- package/lib/server/utils/wsServer.js +121 -0
- package/lib/server/utils/zipFile.js +74 -0
- package/lib/server/utils/zones.js +57 -0
- package/lib/server/videoRecorder.js +133 -0
- package/lib/server/webkit/protocol.d.js +16 -0
- package/lib/server/webkit/webkit.js +108 -0
- package/lib/server/webkit/wkBrowser.js +331 -0
- package/lib/server/webkit/wkConnection.js +144 -0
- package/lib/server/webkit/wkExecutionContext.js +154 -0
- package/lib/server/webkit/wkInput.js +181 -0
- package/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/lib/server/webkit/wkPage.js +1164 -0
- package/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/lib/server/webkit/wkWorkers.js +106 -0
- package/lib/serverRegistry.js +147 -0
- package/lib/third_party/pixelmatch.js +255 -0
- package/lib/tools/backend/browserBackend.js +79 -0
- package/lib/tools/backend/common.js +63 -0
- package/lib/tools/backend/config.js +41 -0
- package/lib/tools/backend/console.js +66 -0
- package/lib/tools/backend/context.js +290 -0
- package/lib/tools/backend/cookies.js +152 -0
- package/lib/tools/backend/devtools.js +69 -0
- package/lib/tools/backend/dialogs.js +59 -0
- package/lib/tools/backend/evaluate.js +64 -0
- package/lib/tools/backend/files.js +60 -0
- package/lib/tools/backend/form.js +64 -0
- package/lib/tools/backend/keyboard.js +155 -0
- package/lib/tools/backend/logFile.js +95 -0
- package/lib/tools/backend/mouse.js +168 -0
- package/lib/tools/backend/navigate.js +106 -0
- package/lib/tools/backend/network.js +135 -0
- package/lib/tools/backend/pdf.js +48 -0
- package/lib/tools/backend/recorder.js +74 -0
- package/lib/tools/backend/response.js +302 -0
- package/lib/tools/backend/route.js +140 -0
- package/lib/tools/backend/runCode.js +76 -0
- package/lib/tools/backend/screenshot.js +88 -0
- package/lib/tools/backend/sessionLog.js +74 -0
- package/lib/tools/backend/snapshot.js +208 -0
- package/lib/tools/backend/storage.js +67 -0
- package/lib/tools/backend/tab.js +445 -0
- package/lib/tools/backend/tabs.js +67 -0
- package/lib/tools/backend/tool.js +47 -0
- package/lib/tools/backend/tools.js +104 -0
- package/lib/tools/backend/tracing.js +75 -0
- package/lib/tools/backend/utils.js +83 -0
- package/lib/tools/backend/verify.js +151 -0
- package/lib/tools/backend/video.js +89 -0
- package/lib/tools/backend/wait.js +63 -0
- package/lib/tools/backend/webstorage.js +223 -0
- package/lib/tools/cli-client/cli.js +6 -0
- package/lib/tools/cli-client/help.json +101 -0
- package/lib/tools/cli-client/minimist.js +128 -0
- package/lib/tools/cli-client/program.js +382 -0
- package/lib/tools/cli-client/registry.js +176 -0
- package/lib/tools/cli-client/session.js +289 -0
- package/lib/tools/cli-client/skill/SKILL.md +326 -0
- package/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
- package/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
- package/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
- package/lib/tools/cli-client/skill/references/running-code.md +231 -0
- package/lib/tools/cli-client/skill/references/session-management.md +169 -0
- package/lib/tools/cli-client/skill/references/storage-state.md +275 -0
- package/lib/tools/cli-client/skill/references/test-generation.md +88 -0
- package/lib/tools/cli-client/skill/references/tracing.md +139 -0
- package/lib/tools/cli-client/skill/references/video-recording.md +46 -0
- package/lib/tools/cli-daemon/command.js +73 -0
- package/lib/tools/cli-daemon/commands.js +933 -0
- package/lib/tools/cli-daemon/daemon.js +178 -0
- package/lib/tools/cli-daemon/helpGenerator.js +173 -0
- package/lib/tools/cli-daemon/program.js +118 -0
- package/lib/tools/dashboard/appIcon.png +0 -0
- package/lib/tools/dashboard/dashboardApp.js +286 -0
- package/lib/tools/dashboard/dashboardController.js +296 -0
- package/lib/tools/exports.js +60 -0
- package/lib/tools/mcp/browserFactory.js +233 -0
- package/lib/tools/mcp/cdpRelay.js +353 -0
- package/lib/tools/mcp/cli-stub.js +7 -0
- package/lib/tools/mcp/config.d.js +16 -0
- package/lib/tools/mcp/config.js +401 -0
- package/lib/tools/mcp/configIni.js +189 -0
- package/lib/tools/mcp/extensionContextFactory.js +59 -0
- package/lib/tools/mcp/index.js +62 -0
- package/lib/tools/mcp/log.js +35 -0
- package/lib/tools/mcp/program.js +107 -0
- package/lib/tools/mcp/protocol.js +28 -0
- package/lib/tools/mcp/watchdog.js +44 -0
- package/lib/tools/trace/SKILL.md +163 -0
- package/lib/tools/trace/installSkill.js +48 -0
- package/lib/tools/trace/traceActions.js +142 -0
- package/lib/tools/trace/traceAttachments.js +69 -0
- package/lib/tools/trace/traceCli.js +80 -0
- package/lib/tools/trace/traceConsole.js +97 -0
- package/lib/tools/trace/traceErrors.js +55 -0
- package/lib/tools/trace/traceOpen.js +69 -0
- package/lib/tools/trace/traceParser.js +96 -0
- package/lib/tools/trace/traceRequests.js +158 -0
- package/lib/tools/trace/traceScreenshot.js +68 -0
- package/lib/tools/trace/traceSnapshot.js +149 -0
- package/lib/tools/trace/traceUtils.js +135 -0
- package/lib/tools/utils/connect.js +32 -0
- package/lib/tools/utils/mcp/http.js +152 -0
- package/lib/tools/utils/mcp/server.js +230 -0
- package/lib/tools/utils/mcp/tool.js +47 -0
- package/lib/tools/utils/socketConnection.js +108 -0
- package/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/lib/utils/isomorphic/assert.js +31 -0
- package/lib/utils/isomorphic/colors.js +72 -0
- package/lib/utils/isomorphic/cssParser.js +245 -0
- package/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/lib/utils/isomorphic/formatUtils.js +64 -0
- package/lib/utils/isomorphic/headers.js +53 -0
- package/lib/utils/isomorphic/imageUtils.js +141 -0
- package/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/lib/utils/isomorphic/locatorParser.js +176 -0
- package/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/lib/utils/isomorphic/lruCache.js +51 -0
- package/lib/utils/isomorphic/manualPromise.js +114 -0
- package/lib/utils/isomorphic/mimeType.js +464 -0
- package/lib/utils/isomorphic/multimap.js +80 -0
- package/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/lib/utils/isomorphic/protocolMetainfo.js +347 -0
- package/lib/utils/isomorphic/rtti.js +43 -0
- package/lib/utils/isomorphic/selectorParser.js +386 -0
- package/lib/utils/isomorphic/semaphore.js +54 -0
- package/lib/utils/isomorphic/stackTrace.js +158 -0
- package/lib/utils/isomorphic/stringUtils.js +204 -0
- package/lib/utils/isomorphic/time.js +49 -0
- package/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/lib/utils/isomorphic/trace/entries.js +16 -0
- package/lib/utils/isomorphic/trace/snapshotRenderer.js +492 -0
- package/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/lib/utils/isomorphic/trace/traceModel.js +366 -0
- package/lib/utils/isomorphic/trace/traceModernizer.js +401 -0
- package/lib/utils/isomorphic/trace/traceUtils.js +58 -0
- package/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/lib/utils/isomorphic/types.js +16 -0
- package/lib/utils/isomorphic/urlMatch.js +243 -0
- package/lib/utils/isomorphic/utilityScriptSerializers.js +262 -0
- package/lib/utils/isomorphic/yaml.js +84 -0
- package/lib/utils.js +113 -0
- package/lib/utilsBundle.js +91 -0
- package/lib/utilsBundleImpl/index.js +218 -0
- package/lib/utilsBundleImpl/xdg-open +1066 -0
- package/lib/vite/dashboard/assets/index-Bn2lDGZX.js +50 -0
- package/lib/vite/dashboard/assets/index-DDWrEWMc.css +1 -0
- package/lib/vite/dashboard/index.html +28 -0
- package/lib/vite/htmlReport/index.html +89 -0
- package/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/lib/vite/recorder/assets/codeMirrorModule-RoSmqW0t.js +32 -0
- package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/lib/vite/recorder/assets/index-CLrDthbi.js +193 -0
- package/lib/vite/recorder/assets/index-OFPIkgDs.css +1 -0
- package/lib/vite/recorder/index.html +29 -0
- package/lib/vite/recorder/playwright-logo.svg +9 -0
- package/lib/vite/traceViewer/assets/codeMirrorModule-Cigrr2OM.js +32 -0
- package/lib/vite/traceViewer/assets/defaultSettingsView-ConrJv9G.js +262 -0
- package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/lib/vite/traceViewer/defaultSettingsView.B4dS75f0.css +1 -0
- package/lib/vite/traceViewer/index.CzXZzn5A.css +1 -0
- package/lib/vite/traceViewer/index.EVGp-u_4.js +2 -0
- package/lib/vite/traceViewer/index.html +43 -0
- package/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/lib/vite/traceViewer/snapshot.html +21 -0
- package/lib/vite/traceViewer/sw.bundle.js +5 -0
- package/lib/vite/traceViewer/uiMode.Bewj7-uD.js +6 -0
- package/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- package/lib/vite/traceViewer/uiMode.html +17 -0
- package/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/lib/zipBundle.js +34 -0
- package/lib/zipBundleImpl.js +5 -0
- package/package.json +46 -0
- package/types/protocol.d.ts +24365 -0
- package/types/structs.d.ts +45 -0
- package/types/types.d.ts +23498 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-RoSmqW0t.js","assets/codeMirrorModule-DYBRYzYX.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const o of c)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function i(c){const o={};return c.integrity&&(o.integrity=c.integrity),c.referrerPolicy&&(o.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?o.credentials="include":c.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(c){if(c.ep)return;c.ep=!0;const o=i(c);fetch(c.href,o)}})();function vv(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var sf={exports:{}},xi={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Pm;function bv(){if(Pm)return xi;Pm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(s,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var m in c)m!=="key"&&(o[m]=c[m])}else o=c;return c=o.ref,{$$typeof:u,type:s,key:h,ref:c!==void 0?c:null,props:o}}return xi.Fragment=l,xi.jsx=i,xi.jsxs=i,xi}var eg;function Sv(){return eg||(eg=1,sf.exports=bv()),sf.exports}var q=Sv(),uf={exports:{}},ue={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var tg;function Tv(){if(tg)return ue;tg=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),O=Symbol.iterator;function A(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function z(E,$,J){this.props=E,this.context=$,this.refs=T,this.updater=J||C}z.prototype.isReactComponent={},z.prototype.setState=function(E,$){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,$,"setState")},z.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function U(){}U.prototype=z.prototype;function K(E,$,J){this.props=E,this.context=$,this.refs=T,this.updater=J||C}var X=K.prototype=new U;X.constructor=K,S(X,z.prototype),X.isPureReactComponent=!0;var W=Array.isArray;function V(){}var G={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function k(E,$,J){var F=J.ref;return{$$typeof:u,type:E,key:$,ref:F!==void 0?F:null,props:J}}function de(E,$){return k(E.type,$,E.props)}function fe(E){return typeof E=="object"&&E!==null&&E.$$typeof===u}function j(E){var $={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(J){return $[J]})}var le=/\/+/g;function ze(E,$){return typeof E=="object"&&E!==null&&E.key!=null?j(""+E.key):$.toString(36)}function $e(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(V,V):(E.status="pending",E.then(function($){E.status==="pending"&&(E.status="fulfilled",E.value=$)},function($){E.status==="pending"&&(E.status="rejected",E.reason=$)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function R(E,$,J,F,se){var me=typeof E;(me==="undefined"||me==="boolean")&&(E=null);var Se=!1;if(E===null)Se=!0;else switch(me){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(E.$$typeof){case u:case l:Se=!0;break;case w:return Se=E._init,R(Se(E._payload),$,J,F,se)}}if(Se)return se=se(E),Se=F===""?"."+ze(E,0):F,W(se)?(J="",Se!=null&&(J=Se.replace(le,"$&/")+"/"),R(se,$,J,"",function(dt){return dt})):se!=null&&(fe(se)&&(se=de(se,J+(se.key==null||E&&E.key===se.key?"":(""+se.key).replace(le,"$&/")+"/")+Se)),$.push(se)),1;Se=0;var ne=F===""?".":F+":";if(W(E))for(var ee=0;ee<E.length;ee++)F=E[ee],me=ne+ze(F,ee),Se+=R(F,$,J,me,se);else if(ee=A(E),typeof ee=="function")for(E=ee.call(E),ee=0;!(F=E.next()).done;)F=F.value,me=ne+ze(F,ee++),Se+=R(F,$,J,me,se);else if(me==="object"){if(typeof E.then=="function")return R($e(E),$,J,F,se);throw $=String(E),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return Se}function Z(E,$,J){if(E==null)return E;var F=[],se=0;return R(E,F,"","",function(me){return $.call(J,me,se++)}),F}function te(E){if(E._status===-1){var $=E._result;$=$(),$.then(function(J){(E._status===0||E._status===-1)&&(E._status=1,E._result=J)},function(J){(E._status===0||E._status===-1)&&(E._status=2,E._result=J)}),E._status===-1&&(E._status=0,E._result=$)}if(E._status===1)return E._result.default;throw E._result}var Ae=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Ne={map:Z,forEach:function(E,$,J){Z(E,function(){$.apply(this,arguments)},J)},count:function(E){var $=0;return Z(E,function(){$++}),$},toArray:function(E){return Z(E,function($){return $})||[]},only:function(E){if(!fe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ue.Activity=v,ue.Children=Ne,ue.Component=z,ue.Fragment=i,ue.Profiler=c,ue.PureComponent=K,ue.StrictMode=s,ue.Suspense=g,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,ue.__COMPILER_RUNTIME={__proto__:null,c:function(E){return G.H.useMemoCache(E)}},ue.cache=function(E){return function(){return E.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(E,$,J){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var F=S({},E.props),se=E.key;if($!=null)for(me in $.key!==void 0&&(se=""+$.key),$)!Q.call($,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&$.ref===void 0||(F[me]=$[me]);var me=arguments.length-2;if(me===1)F.children=J;else if(1<me){for(var Se=Array(me),ne=0;ne<me;ne++)Se[ne]=arguments[ne+2];F.children=Se}return k(E.type,se,F)},ue.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:o,_context:E},E},ue.createElement=function(E,$,J){var F,se={},me=null;if($!=null)for(F in $.key!==void 0&&(me=""+$.key),$)Q.call($,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(se[F]=$[F]);var Se=arguments.length-2;if(Se===1)se.children=J;else if(1<Se){for(var ne=Array(Se),ee=0;ee<Se;ee++)ne[ee]=arguments[ee+2];se.children=ne}if(E&&E.defaultProps)for(F in Se=E.defaultProps,Se)se[F]===void 0&&(se[F]=Se[F]);return k(E,me,se)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(E){return{$$typeof:m,render:E}},ue.isValidElement=fe,ue.lazy=function(E){return{$$typeof:w,_payload:{_status:-1,_result:E},_init:te}},ue.memo=function(E,$){return{$$typeof:p,type:E,compare:$===void 0?null:$}},ue.startTransition=function(E){var $=G.T,J={};G.T=J;try{var F=E(),se=G.S;se!==null&&se(J,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(V,Ae)}catch(me){Ae(me)}finally{$!==null&&J.types!==null&&($.types=J.types),G.T=$}},ue.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},ue.use=function(E){return G.H.use(E)},ue.useActionState=function(E,$,J){return G.H.useActionState(E,$,J)},ue.useCallback=function(E,$){return G.H.useCallback(E,$)},ue.useContext=function(E){return G.H.useContext(E)},ue.useDebugValue=function(){},ue.useDeferredValue=function(E,$){return G.H.useDeferredValue(E,$)},ue.useEffect=function(E,$){return G.H.useEffect(E,$)},ue.useEffectEvent=function(E){return G.H.useEffectEvent(E)},ue.useId=function(){return G.H.useId()},ue.useImperativeHandle=function(E,$,J){return G.H.useImperativeHandle(E,$,J)},ue.useInsertionEffect=function(E,$){return G.H.useInsertionEffect(E,$)},ue.useLayoutEffect=function(E,$){return G.H.useLayoutEffect(E,$)},ue.useMemo=function(E,$){return G.H.useMemo(E,$)},ue.useOptimistic=function(E,$){return G.H.useOptimistic(E,$)},ue.useReducer=function(E,$,J){return G.H.useReducer(E,$,J)},ue.useRef=function(E){return G.H.useRef(E)},ue.useState=function(E){return G.H.useState(E)},ue.useSyncExternalStore=function(E,$,J){return G.H.useSyncExternalStore(E,$,J)},ue.useTransition=function(){return G.H.useTransition()},ue.version="19.2.1",ue}var ng;function Uf(){return ng||(ng=1,uf.exports=Tv()),uf.exports}var ce=Uf();const _n=vv(ce);function Mg(){const u=_n.useRef(null),[l]=wf(u);return[l,u]}function wf(u){const[l,i]=_n.useState(new DOMRect(0,0,10,10)),s=_n.useCallback(()=>{const c=u==null?void 0:u.current;c&&i(c.getBoundingClientRect())},[u]);return _n.useLayoutEffect(()=>{const c=u==null?void 0:u.current;if(!c)return;s();const o=new ResizeObserver(s);return o.observe(c),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,u]),[l,s]}function ga(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function vu(u,l){u&&(l=El.getObject(u,l));const[i,s]=_n.useState(l),c=_n.useCallback(o=>{u?El.setObject(u,o):s(o)},[u,s]);return _n.useEffect(()=>{if(u){const o=()=>s(El.getObject(u,l));return El.onChangeEmitter.addEventListener(u,o),()=>El.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[i,c]}class Ev{constructor(){this.onChangeEmitter=new EventTarget}getString(l,i){return localStorage[l]||i}setString(l,i){var s;localStorage[l]=i,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,i){if(!localStorage[l])return i;try{return JSON.parse(localStorage[l])}catch{return i}}setObject(l,i){var s;localStorage[l]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const El=new Ev;function _l(...u){return u.filter(Boolean).join(" ")}const lg="\\u0000-\\u0020\\u007f-\\u009f",wv=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+lg+'"]{2,}[^\\s'+lg+`"')}\\],:;.!?]`,"ug"),Av="system",Cg="theme",Nv=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],zg=window.matchMedia("(prefers-color-scheme: dark)");function Ov(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",u=>{u.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",u=>{document.body.classList.add("inactive")},!1),Af(Nf()),zg.addEventListener("change",()=>{Af(Nf())}))}const _v=new Set;function Af(u){const l=xv(),i=u==="system"?zg.matches?"dark-mode":"light-mode":u;if(l!==i){l&&document.documentElement.classList.remove(l),document.documentElement.classList.add(i);for(const s of _v)s(i)}}function Nf(){return El.getString(Cg,Av)}function xv(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function Mv(){const[u,l]=_n.useState(Nf());return _n.useEffect(()=>{El.setString(Cg,u),Af(u)},[u]),[u,l]}var cf={exports:{}},Mi={},rf={exports:{}},ff={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var ag;function Cv(){return ag||(ag=1,(function(u){function l(R,Z){var te=R.length;R.push(Z);e:for(;0<te;){var Ae=te-1>>>1,Ne=R[Ae];if(0<c(Ne,Z))R[Ae]=Z,R[te]=Ne,te=Ae;else break e}}function i(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var Z=R[0],te=R.pop();if(te!==Z){R[0]=te;e:for(var Ae=0,Ne=R.length,E=Ne>>>1;Ae<E;){var $=2*(Ae+1)-1,J=R[$],F=$+1,se=R[F];if(0>c(J,te))F<Ne&&0>c(se,J)?(R[Ae]=se,R[F]=te,Ae=F):(R[Ae]=J,R[$]=te,Ae=$);else if(F<Ne&&0>c(se,te))R[Ae]=se,R[F]=te,Ae=F;else break e}}return Z}function c(R,Z){var te=R.sortIndex-Z.sortIndex;return te!==0?te:R.id-Z.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;u.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var g=[],p=[],w=1,v=null,O=3,A=!1,C=!1,S=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function X(R){for(var Z=i(p);Z!==null;){if(Z.callback===null)s(p);else if(Z.startTime<=R)s(p),Z.sortIndex=Z.expirationTime,l(g,Z);else break;Z=i(p)}}function W(R){if(S=!1,X(R),!C)if(i(g)!==null)C=!0,V||(V=!0,j());else{var Z=i(p);Z!==null&&$e(W,Z.startTime-R)}}var V=!1,G=-1,Q=5,k=-1;function de(){return T?!0:!(u.unstable_now()-k<Q)}function fe(){if(T=!1,V){var R=u.unstable_now();k=R;var Z=!0;try{e:{C=!1,S&&(S=!1,U(G),G=-1),A=!0;var te=O;try{t:{for(X(R),v=i(g);v!==null&&!(v.expirationTime>R&&de());){var Ae=v.callback;if(typeof Ae=="function"){v.callback=null,O=v.priorityLevel;var Ne=Ae(v.expirationTime<=R);if(R=u.unstable_now(),typeof Ne=="function"){v.callback=Ne,X(R),Z=!0;break t}v===i(g)&&s(g),X(R)}else s(g);v=i(g)}if(v!==null)Z=!0;else{var E=i(p);E!==null&&$e(W,E.startTime-R),Z=!1}}break e}finally{v=null,O=te,A=!1}Z=void 0}}finally{Z?j():V=!1}}}var j;if(typeof K=="function")j=function(){K(fe)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ze=le.port2;le.port1.onmessage=fe,j=function(){ze.postMessage(null)}}else j=function(){z(fe,0)};function $e(R,Z){G=z(function(){R(u.unstable_now())},Z)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(R){R.callback=null},u.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<R?Math.floor(1e3/R):5},u.unstable_getCurrentPriorityLevel=function(){return O},u.unstable_next=function(R){switch(O){case 1:case 2:case 3:var Z=3;break;default:Z=O}var te=O;O=Z;try{return R()}finally{O=te}},u.unstable_requestPaint=function(){T=!0},u.unstable_runWithPriority=function(R,Z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var te=O;O=R;try{return Z()}finally{O=te}},u.unstable_scheduleCallback=function(R,Z,te){var Ae=u.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Ae+te:Ae):te=Ae,R){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=te+Ne,R={id:w++,callback:Z,priorityLevel:R,startTime:te,expirationTime:Ne,sortIndex:-1},te>Ae?(R.sortIndex=te,l(p,R),i(g)===null&&R===i(p)&&(S?(U(G),G=-1):S=!0,$e(W,te-Ae))):(R.sortIndex=Ne,l(g,R),C||A||(C=!0,V||(V=!0,j()))),R},u.unstable_shouldYield=de,u.unstable_wrapCallback=function(R){var Z=O;return function(){var te=O;O=Z;try{return R.apply(this,arguments)}finally{O=te}}}})(ff)),ff}var ig;function zv(){return ig||(ig=1,rf.exports=Cv()),rf.exports}var of={exports:{}},ct={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var sg;function Dv(){if(sg)return ct;sg=1;var u=Uf();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function o(g,p,w){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:w}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ct.createPortal=function(g,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(g,p,null,w)},ct.flushSync=function(g){var p=h.T,w=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=w,s.d.f()}},ct.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},ct.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ct.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var w=p.as,v=m(w,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,A=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:O,fetchPriority:A}):w==="script"&&s.d.X(g,{crossOrigin:v,integrity:O,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ct.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},ct.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,v=m(w,p.crossOrigin);s.d.L(g,w,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ct.preloadModule=function(g,p){if(typeof g=="string")if(p){var w=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},ct.requestFormReset=function(g){s.d.r(g)},ct.unstable_batchedUpdates=function(g,p){return g(p)},ct.useFormState=function(g,p,w){return h.H.useFormState(g,p,w)},ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},ct.version="19.2.1",ct}var ug;function Lv(){if(ug)return of.exports;ug=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),of.exports=Dv(),of.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var cg;function jv(){if(cg)return Mi;cg=1;var u=zv(),l=Uf(),i=Lv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(o(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var f=r.alternate;if(f===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===f.child){for(f=r.child;f;){if(f===n)return g(r),e;if(f===a)return g(r),t;f=f.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=f;else{for(var d=!1,y=r.child;y;){if(y===n){d=!0,n=r,a=f;break}if(y===a){d=!0,a=r,n=f;break}y=y.sibling}if(!d){for(y=f.child;y;){if(y===n){d=!0,n=f,a=r;break}if(y===a){d=!0,a=f,n=r;break}y=y.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,O=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),K=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function j(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case z:return"Profiler";case T:return"StrictMode";case W:return"Suspense";case V:return"SuspenseList";case k:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case K:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var $e=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Ae=[],Ne=-1;function E(e){return{current:e}}function $(e){0>Ne||(e.current=Ae[Ne],Ae[Ne]=null,Ne--)}function J(e,t){Ne++,Ae[Ne]=e.current,e.current=t}var F=E(null),se=E(null),me=E(null),Se=E(null);function ne(e,t){switch(J(me,t),J(se,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Em(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Em(t),e=wm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(F),J(F,e)}function ee(){$(F),$(se),$(me)}function dt(e){e.memoizedState!==null&&J(Se,e);var t=F.current,n=wm(t,e.type);t!==n&&(J(se,e),J(F,n))}function mt(e){se.current===e&&($(F),$(se)),Se.current===e&&($(Se),Ai._currentValue=te)}var kt,Yu;function ll(e){if(kt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);kt=t&&t[1]||"",Yu=-1<n.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+kt+e+Yu}var $u=!1;function Gu(e,t){if(!e||$u)return"";$u=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(L){var D=L}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(L){D=L}e.call(Y.prototype)}}else{try{throw Error()}catch(L){D=L}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(L){if(L&&D&&typeof L.stack=="string")return[L.stack,D.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=a.DetermineComponentFrameRoot(),d=f[0],y=f[1];if(d&&y){var b=d.split(`
|
|
45
|
+
`),M=y.split(`
|
|
46
|
+
`);for(r=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;r<M.length&&!M[r].includes("DetermineComponentFrameRoot");)r++;if(a===b.length||r===M.length)for(a=b.length-1,r=M.length-1;1<=a&&0<=r&&b[a]!==M[r];)r--;for(;1<=a&&0<=r;a--,r--)if(b[a]!==M[r]){if(a!==1||r!==1)do if(a--,r--,0>r||b[a]!==M[r]){var B=`
|
|
47
|
+
`+b[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=r);break}}}finally{$u=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ll(n):""}function Jp(e,t){switch(e.tag){case 26:case 27:case 5:return ll(e.type);case 16:return ll("Lazy");case 13:return e.child!==t&&t!==null?ll("Suspense Fallback"):ll("Suspense");case 19:return ll("SuspenseList");case 0:case 15:return Gu(e.type,!1);case 11:return Gu(e.type.render,!1);case 1:return Gu(e.type,!0);case 31:return ll("Activity");default:return""}}function If(e){try{var t="",n=null;do t+=Jp(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
48
|
+
Error generating stack: `+a.message+`
|
|
49
|
+
`+a.stack}}var Ku=Object.prototype.hasOwnProperty,Vu=u.unstable_scheduleCallback,Qu=u.unstable_cancelCallback,Wp=u.unstable_shouldYield,Fp=u.unstable_requestPaint,Nt=u.unstable_now,Ip=u.unstable_getCurrentPriorityLevel,Pf=u.unstable_ImmediatePriority,eo=u.unstable_UserBlockingPriority,Yi=u.unstable_NormalPriority,Pp=u.unstable_LowPriority,to=u.unstable_IdlePriority,ey=u.log,ty=u.unstable_setDisableYieldValue,ka=null,Ot=null;function Mn(e){if(typeof ey=="function"&&ty(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(ka,e)}catch{}}var _t=Math.clz32?Math.clz32:ay,ny=Math.log,ly=Math.LN2;function ay(e){return e>>>=0,e===0?32:31-(ny(e)/ly|0)|0}var $i=256,Gi=262144,Ki=4194304;function al(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Vi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~f,a!==0?r=al(a):(d&=y,d!==0?r=al(d):n||(n=y&~e,n!==0&&(r=al(n))))):(y=a&~f,y!==0?r=al(y):d!==0?r=al(d):n||(n=a&~e,n!==0&&(r=al(n)))),r===0?0:t!==0&&t!==r&&(t&f)===0&&(f=r&-r,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:r}function Ra(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function no(){var e=Ki;return Ki<<=1,(Ki&62914560)===0&&(Ki=4194304),e}function Xu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ba(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sy(e,t,n,a,r,f){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-_t(n),Y=1<<B;y[B]=0,b[B]=-1;var D=M[B];if(D!==null)for(M[B]=null,B=0;B<D.length;B++){var L=D[B];L!==null&&(L.lane&=-536870913)}n&=~Y}a!==0&&lo(e,a,0),f!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=f&~(d&~t))}function lo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-_t(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ao(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-_t(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function io(e,t){var n=t&-t;return n=(n&42)!==0?1:Zu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Zu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ju(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function so(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Qm(e.type))}function uo(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Cn=Math.random().toString(36).slice(2),nt="__reactFiber$"+Cn,gt="__reactProps$"+Cn,zl="__reactContainer$"+Cn,Wu="__reactEvents$"+Cn,uy="__reactListeners$"+Cn,cy="__reactHandles$"+Cn,co="__reactResources$"+Cn,qa="__reactMarker$"+Cn;function Fu(e){delete e[nt],delete e[gt],delete e[Wu],delete e[uy],delete e[cy]}function Dl(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zl]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cm(e);e!==null;){if(n=e[nt])return n;e=Cm(e)}return t}e=n,n=e.parentNode}return null}function Ll(e){if(e=e[nt]||e[zl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ha(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function jl(e){var t=e[co];return t||(t=e[co]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[qa]=!0}var ro=new Set,fo={};function il(e,t){Ul(e,t),Ul(e+"Capture",t)}function Ul(e,t){for(fo[e]=t,e=0;e<t.length;e++)ro.add(t[e])}var ry=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oo={},ho={};function fy(e){return Ku.call(ho,e)?!0:Ku.call(oo,e)?!1:ry.test(e)?ho[e]=!0:(oo[e]=!0,!1)}function Qi(e,t,n){if(fy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Xi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function un(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var r=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,f.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Iu(e){if(!e._valueTracker){var t=mo(e)?"checked":"value";e._valueTracker=oy(e,t,""+e[t])}}function go(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=mo(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Zi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hy=/[\n"\\]/g;function Bt(e){return e.replace(hy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pu(e,t,n,a,r,f,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?ec(e,d,Rt(t)):n!=null?ec(e,d,Rt(n)):a!=null&&e.removeAttribute("value"),r==null&&f!=null&&(e.defaultChecked=!!f),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Rt(y):e.removeAttribute("name")}function po(e,t,n,a,r,f,d,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Iu(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Iu(e)}function ec(e,t,n){t==="number"&&Zi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kl(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function yo(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function vo(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if($e(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Iu(e)}function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bo(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||dy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function So(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&bo(e,r,a)}else for(var f in t)t.hasOwnProperty(f)&&bo(e,f,t[f])}function tc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var my=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gy=/^[\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;function Ji(e){return gy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function cn(){}var nc=null;function lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bl=null,ql=null;function To(e){var t=Ll(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[gt]||null;if(!r)throw Error(s(90));Pu(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&go(a)}break e;case"textarea":yo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&kl(e,!!n.multiple,t,!1)}}}var ac=!1;function Eo(e,t,n){if(ac)return e(t,n);ac=!0;try{var a=e(t);return a}finally{if(ac=!1,(Bl!==null||ql!==null)&&(ks(),Bl&&(t=Bl,e=ql,ql=Bl=null,To(t),e)))for(t=0;t<e.length;t++)To(e[t])}}function Ya(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ic=!1;if(rn)try{var $a={};Object.defineProperty($a,"passive",{get:function(){ic=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{ic=!1}var zn=null,sc=null,Wi=null;function wo(){if(Wi)return Wi;var e,t=sc,n=t.length,a,r="value"in zn?zn.value:zn.textContent,f=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===r[f-a];a++);return Wi=r.slice(e,1<a?1-a:void 0)}function Fi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function Ao(){return!1}function pt(e){function t(n,a,r,f,d){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Ii:Ao,this.isPropagationStopped=Ao,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pi=pt(sl),Ga=v({},sl,{view:0,detail:0}),py=pt(Ga),uc,cc,Ka,es=v({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ka&&(Ka&&e.type==="mousemove"?(uc=e.screenX-Ka.screenX,cc=e.screenY-Ka.screenY):cc=uc=0,Ka=e),uc)},movementY:function(e){return"movementY"in e?e.movementY:cc}}),No=pt(es),yy=v({},es,{dataTransfer:0}),vy=pt(yy),by=v({},Ga,{relatedTarget:0}),rc=pt(by),Sy=v({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ty=pt(Sy),Ey=v({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=pt(Ey),Ay=v({},sl,{data:0}),Oo=pt(Ay),Ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Oy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_y[e])?!!t[e]:!1}function fc(){return xy}var My=v({},Ga,{key:function(e){if(e.key){var t=Ny[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Oy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?Fi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cy=pt(My),zy=v({},es,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_o=pt(zy),Dy=v({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),Ly=pt(Dy),jy=v({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uy=pt(jy),ky=v({},es,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ry=pt(ky),By=v({},sl,{newState:0,oldState:0}),qy=pt(By),Hy=[9,13,27,32],oc=rn&&"CompositionEvent"in window,Va=null;rn&&"documentMode"in document&&(Va=document.documentMode);var Yy=rn&&"TextEvent"in window&&!Va,xo=rn&&(!oc||Va&&8<Va&&11>=Va),Mo=" ",Co=!1;function zo(e,t){switch(e){case"keyup":return Hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Do(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hl=!1;function $y(e,t){switch(e){case"compositionend":return Do(t);case"keypress":return t.which!==32?null:(Co=!0,Mo);case"textInput":return e=t.data,e===Mo&&Co?null:e;default:return null}}function Gy(e,t){if(Hl)return e==="compositionend"||!oc&&zo(e,t)?(e=wo(),Wi=sc=zn=null,Hl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return xo&&t.locale!=="ko"?null:t.data;default:return null}}var Ky={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ky[e.type]:t==="textarea"}function jo(e,t,n,a){Bl?ql?ql.push(a):ql=[a]:Bl=a,t=Gs(t,"onChange"),0<t.length&&(n=new Pi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Qa=null,Xa=null;function Vy(e){pm(e,0)}function ts(e){var t=Ha(e);if(go(t))return e}function Uo(e,t){if(e==="change")return t}var ko=!1;if(rn){var hc;if(rn){var dc="oninput"in document;if(!dc){var Ro=document.createElement("div");Ro.setAttribute("oninput","return;"),dc=typeof Ro.oninput=="function"}hc=dc}else hc=!1;ko=hc&&(!document.documentMode||9<document.documentMode)}function Bo(){Qa&&(Qa.detachEvent("onpropertychange",qo),Xa=Qa=null)}function qo(e){if(e.propertyName==="value"&&ts(Xa)){var t=[];jo(t,Xa,e,lc(e)),Eo(Vy,t)}}function Qy(e,t,n){e==="focusin"?(Bo(),Qa=t,Xa=n,Qa.attachEvent("onpropertychange",qo)):e==="focusout"&&Bo()}function Xy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ts(Xa)}function Zy(e,t){if(e==="click")return ts(t)}function Jy(e,t){if(e==="input"||e==="change")return ts(t)}function Wy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:Wy;function Za(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!Ku.call(t,r)||!xt(e[r],t[r]))return!1}return!0}function Ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yo(e,t){var n=Ho(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ho(n)}}function $o(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$o(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Go(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zi(e.document)}return t}function mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Fy=rn&&"documentMode"in document&&11>=document.documentMode,Yl=null,gc=null,Ja=null,pc=!1;function Ko(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pc||Yl==null||Yl!==Zi(a)||(a=Yl,"selectionStart"in a&&mc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ja&&Za(Ja,a)||(Ja=a,a=Gs(gc,"onSelect"),0<a.length&&(t=new Pi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Yl)))}function ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $l={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},yc={},Vo={};rn&&(Vo=document.createElement("div").style,"AnimationEvent"in window||(delete $l.animationend.animation,delete $l.animationiteration.animation,delete $l.animationstart.animation),"TransitionEvent"in window||delete $l.transitionend.transition);function cl(e){if(yc[e])return yc[e];if(!$l[e])return e;var t=$l[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vo)return yc[e]=t[n];return e}var Qo=cl("animationend"),Xo=cl("animationiteration"),Zo=cl("animationstart"),Iy=cl("transitionrun"),Py=cl("transitionstart"),e0=cl("transitioncancel"),Jo=cl("transitionend"),Wo=new Map,vc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vc.push("scrollEnd");function Jt(e,t){Wo.set(e,t),il(t,[e])}var ns=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qt=[],Gl=0,bc=0;function ls(){for(var e=Gl,t=bc=Gl=0;t<e;){var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var r=qt[t];qt[t++]=null;var f=qt[t];if(qt[t++]=null,a!==null&&r!==null){var d=a.pending;d===null?r.next=r:(r.next=d.next,d.next=r),a.pending=r}f!==0&&Fo(n,r,f)}}function as(e,t,n,a){qt[Gl++]=e,qt[Gl++]=t,qt[Gl++]=n,qt[Gl++]=a,bc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Sc(e,t,n,a){return as(e,t,n,a),is(e)}function rl(e,t){return as(e,null,null,t),is(e)}function Fo(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,f=e.return;f!==null;)f.childLanes|=n,a=f.alternate,a!==null&&(a.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(r=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,r&&t!==null&&(r=31-_t(n),e=f.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),f):null}function is(e){if(50<yi)throw yi=0,Mr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kl={};function t0(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,a){return new t0(e,t,n,a)}function Tc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Io(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ss(e,t,n,a,r,f){var d=0;if(a=e,typeof e=="function")Tc(e)&&(d=1);else if(typeof e=="string")d=sv(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case k:return e=Mt(31,n,t,r),e.elementType=k,e.lanes=f,e;case S:return fl(n.children,r,f,t);case T:d=8,r|=24;break;case z:return e=Mt(12,n,t,r|2),e.elementType=z,e.lanes=f,e;case W:return e=Mt(13,n,t,r),e.elementType=W,e.lanes=f,e;case V:return e=Mt(19,n,t,r),e.elementType=V,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case U:d=9;break e;case X:d=11;break e;case G:d=14;break e;case Q:d=16,a=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Mt(d,n,t,r),t.elementType=e,t.type=a,t.lanes=f,t}function fl(e,t,n,a){return e=Mt(7,e,a,t),e.lanes=n,e}function Ec(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Po(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function wc(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eh=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var n=eh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:If(t)},eh.set(e,t),t)}return{value:e,source:t,stack:If(t)}}var Vl=[],Ql=0,us=null,Wa=0,Yt=[],$t=0,Dn=null,en=1,tn="";function on(e,t){Vl[Ql++]=Wa,Vl[Ql++]=us,us=e,Wa=t}function th(e,t,n){Yt[$t++]=en,Yt[$t++]=tn,Yt[$t++]=Dn,Dn=e;var a=en;e=tn;var r=32-_t(a)-1;a&=~(1<<r),n+=1;var f=32-_t(t)+r;if(30<f){var d=r-r%5;f=(a&(1<<d)-1).toString(32),a>>=d,r-=d,en=1<<32-_t(t)+r|n<<r|a,tn=f+e}else en=1<<f|n<<r|a,tn=e}function Ac(e){e.return!==null&&(on(e,1),th(e,1,0))}function Nc(e){for(;e===us;)us=Vl[--Ql],Vl[Ql]=null,Wa=Vl[--Ql],Vl[Ql]=null;for(;e===Dn;)Dn=Yt[--$t],Yt[$t]=null,tn=Yt[--$t],Yt[$t]=null,en=Yt[--$t],Yt[$t]=null}function nh(e,t){Yt[$t++]=en,Yt[$t++]=tn,Yt[$t++]=Dn,en=t.id,tn=t.overflow,Dn=e}var lt=null,je=null,be=!1,Ln=null,Gt=!1,Oc=Error(s(519));function jn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fa(Ht(t,e)),Oc}function lh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[nt]=e,t[gt]=a,n){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(n=0;n<bi.length;n++)pe(bi[n],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),po(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),vo(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Sm(t.textContent,n)?(a.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),a.onScroll!=null&&pe("scroll",t),a.onScrollEnd!=null&&pe("scrollend",t),a.onClick!=null&&(t.onclick=cn),t=!0):t=!1,t||jn(e,!0)}function ah(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:lt=lt.return}}function Xl(e){if(e!==lt)return!1;if(!be)return ah(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Kr(e.type,e.memoizedProps)),n=!n),n&&je&&jn(e),ah(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));je=Mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));je=Mm(e)}else t===27?(t=je,Zn(e.type)?(e=Jr,Jr=null,je=e):je=t):je=lt?Vt(e.stateNode.nextSibling):null;return!0}function ol(){je=lt=null,be=!1}function _c(){var e=Ln;return e!==null&&(St===null?St=e:St.push.apply(St,e),Ln=null),e}function Fa(e){Ln===null?Ln=[e]:Ln.push(e)}var xc=E(null),hl=null,hn=null;function Un(e,t,n){J(xc,t._currentValue),t._currentValue=n}function dn(e){e._currentValue=xc.current,$(xc)}function Mc(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Cc(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var f=r.dependencies;if(f!==null){var d=r.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=r;for(var b=0;b<t.length;b++)if(y.context===t[b]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),Mc(f.return,n,e),a||(d=null);break e}f=y.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,f=d.alternate,f!==null&&(f.lanes|=n),Mc(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Zl(e,t,n,a){e=null;for(var r=t,f=!1;r!==null;){if(!f){if((r.flags&524288)!==0)f=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var y=r.type;xt(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(r===Se.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}r=r.return}e!==null&&Cc(t,e,n,a),t.flags|=262144}function cs(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dl(e){hl=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return ih(hl,e)}function rs(e,t){return hl===null&&dl(e),ih(e,t)}function ih(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(s(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var n0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},l0=u.unstable_scheduleCallback,a0=u.unstable_NormalPriority,Qe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zc(){return{controller:new n0,data:new Map,refCount:0}}function Ia(e){e.refCount--,e.refCount===0&&l0(a0,function(){e.controller.abort()})}var Pa=null,Dc=0,Jl=0,Wl=null;function i0(e,t){if(Pa===null){var n=Pa=[];Dc=0,Jl=Ur(),Wl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Dc++,t.then(sh,sh),t}function sh(){if(--Dc===0&&Pa!==null){Wl!==null&&(Wl.status="fulfilled");var e=Pa;Pa=null,Jl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function s0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var uh=R.S;R.S=function(e,t){Kd=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&i0(e,t),uh!==null&&uh(e,t)};var ml=E(null);function Lc(){var e=ml.current;return e!==null?e:De.pooledCache}function fs(e,t){t===null?J(ml,ml.current):J(ml,t.pool)}function ch(){var e=Lc();return e===null?null:{parent:Qe._currentValue,pool:e}}var Fl=Error(s(460)),jc=Error(s(474)),os=Error(s(542)),hs={then:function(){}};function rh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function fh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(cn,cn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hh(e),e;default:if(typeof t.status=="string")t.then(cn,cn);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hh(e),e}throw pl=t,Fl}}function gl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pl=n,Fl):n}}var pl=null;function oh(){if(pl===null)throw Error(s(459));var e=pl;return pl=null,e}function hh(e){if(e===Fl||e===os)throw Error(s(483))}var Il=null,ei=0;function ds(e){var t=ei;return ei+=1,Il===null&&(Il=[]),fh(Il,e,t)}function ti(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ms(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dh(e){function t(_,N){if(e){var x=_.deletions;x===null?(_.deletions=[N],_.flags|=16):x.push(N)}}function n(_,N){if(!e)return null;for(;N!==null;)t(_,N),N=N.sibling;return null}function a(_){for(var N=new Map;_!==null;)_.key!==null?N.set(_.key,_):N.set(_.index,_),_=_.sibling;return N}function r(_,N){return _=fn(_,N),_.index=0,_.sibling=null,_}function f(_,N,x){return _.index=x,e?(x=_.alternate,x!==null?(x=x.index,x<N?(_.flags|=67108866,N):x):(_.flags|=67108866,N)):(_.flags|=1048576,N)}function d(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function y(_,N,x,H){return N===null||N.tag!==6?(N=Ec(x,_.mode,H),N.return=_,N):(N=r(N,x),N.return=_,N)}function b(_,N,x,H){var ae=x.type;return ae===S?B(_,N,x.props.children,H,x.key):N!==null&&(N.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Q&&gl(ae)===N.type)?(N=r(N,x.props),ti(N,x),N.return=_,N):(N=ss(x.type,x.key,x.props,null,_.mode,H),ti(N,x),N.return=_,N)}function M(_,N,x,H){return N===null||N.tag!==4||N.stateNode.containerInfo!==x.containerInfo||N.stateNode.implementation!==x.implementation?(N=wc(x,_.mode,H),N.return=_,N):(N=r(N,x.children||[]),N.return=_,N)}function B(_,N,x,H,ae){return N===null||N.tag!==7?(N=fl(x,_.mode,H,ae),N.return=_,N):(N=r(N,x),N.return=_,N)}function Y(_,N,x){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ec(""+N,_.mode,x),N.return=_,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case A:return x=ss(N.type,N.key,N.props,null,_.mode,x),ti(x,N),x.return=_,x;case C:return N=wc(N,_.mode,x),N.return=_,N;case Q:return N=gl(N),Y(_,N,x)}if($e(N)||j(N))return N=fl(N,_.mode,x,null),N.return=_,N;if(typeof N.then=="function")return Y(_,ds(N),x);if(N.$$typeof===K)return Y(_,rs(_,N),x);ms(_,N)}return null}function D(_,N,x,H){var ae=N!==null?N.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return ae!==null?null:y(_,N,""+x,H);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case A:return x.key===ae?b(_,N,x,H):null;case C:return x.key===ae?M(_,N,x,H):null;case Q:return x=gl(x),D(_,N,x,H)}if($e(x)||j(x))return ae!==null?null:B(_,N,x,H,null);if(typeof x.then=="function")return D(_,N,ds(x),H);if(x.$$typeof===K)return D(_,N,rs(_,x),H);ms(_,x)}return null}function L(_,N,x,H,ae){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return _=_.get(x)||null,y(N,_,""+H,ae);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return _=_.get(H.key===null?x:H.key)||null,b(N,_,H,ae);case C:return _=_.get(H.key===null?x:H.key)||null,M(N,_,H,ae);case Q:return H=gl(H),L(_,N,x,H,ae)}if($e(H)||j(H))return _=_.get(x)||null,B(N,_,H,ae,null);if(typeof H.then=="function")return L(_,N,x,ds(H),ae);if(H.$$typeof===K)return L(_,N,x,rs(N,H),ae);ms(N,H)}return null}function I(_,N,x,H){for(var ae=null,Te=null,P=N,he=N=0,ve=null;P!==null&&he<x.length;he++){P.index>he?(ve=P,P=null):ve=P.sibling;var Ee=D(_,P,x[he],H);if(Ee===null){P===null&&(P=ve);break}e&&P&&Ee.alternate===null&&t(_,P),N=f(Ee,N,he),Te===null?ae=Ee:Te.sibling=Ee,Te=Ee,P=ve}if(he===x.length)return n(_,P),be&&on(_,he),ae;if(P===null){for(;he<x.length;he++)P=Y(_,x[he],H),P!==null&&(N=f(P,N,he),Te===null?ae=P:Te.sibling=P,Te=P);return be&&on(_,he),ae}for(P=a(P);he<x.length;he++)ve=L(P,_,he,x[he],H),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?he:ve.key),N=f(ve,N,he),Te===null?ae=ve:Te.sibling=ve,Te=ve);return e&&P.forEach(function(Pn){return t(_,Pn)}),be&&on(_,he),ae}function ie(_,N,x,H){if(x==null)throw Error(s(151));for(var ae=null,Te=null,P=N,he=N=0,ve=null,Ee=x.next();P!==null&&!Ee.done;he++,Ee=x.next()){P.index>he?(ve=P,P=null):ve=P.sibling;var Pn=D(_,P,Ee.value,H);if(Pn===null){P===null&&(P=ve);break}e&&P&&Pn.alternate===null&&t(_,P),N=f(Pn,N,he),Te===null?ae=Pn:Te.sibling=Pn,Te=Pn,P=ve}if(Ee.done)return n(_,P),be&&on(_,he),ae;if(P===null){for(;!Ee.done;he++,Ee=x.next())Ee=Y(_,Ee.value,H),Ee!==null&&(N=f(Ee,N,he),Te===null?ae=Ee:Te.sibling=Ee,Te=Ee);return be&&on(_,he),ae}for(P=a(P);!Ee.done;he++,Ee=x.next())Ee=L(P,_,he,Ee.value,H),Ee!==null&&(e&&Ee.alternate!==null&&P.delete(Ee.key===null?he:Ee.key),N=f(Ee,N,he),Te===null?ae=Ee:Te.sibling=Ee,Te=Ee);return e&&P.forEach(function(yv){return t(_,yv)}),be&&on(_,he),ae}function Ce(_,N,x,H){if(typeof x=="object"&&x!==null&&x.type===S&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case A:e:{for(var ae=x.key;N!==null;){if(N.key===ae){if(ae=x.type,ae===S){if(N.tag===7){n(_,N.sibling),H=r(N,x.props.children),H.return=_,_=H;break e}}else if(N.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Q&&gl(ae)===N.type){n(_,N.sibling),H=r(N,x.props),ti(H,x),H.return=_,_=H;break e}n(_,N);break}else t(_,N);N=N.sibling}x.type===S?(H=fl(x.props.children,_.mode,H,x.key),H.return=_,_=H):(H=ss(x.type,x.key,x.props,null,_.mode,H),ti(H,x),H.return=_,_=H)}return d(_);case C:e:{for(ae=x.key;N!==null;){if(N.key===ae)if(N.tag===4&&N.stateNode.containerInfo===x.containerInfo&&N.stateNode.implementation===x.implementation){n(_,N.sibling),H=r(N,x.children||[]),H.return=_,_=H;break e}else{n(_,N);break}else t(_,N);N=N.sibling}H=wc(x,_.mode,H),H.return=_,_=H}return d(_);case Q:return x=gl(x),Ce(_,N,x,H)}if($e(x))return I(_,N,x,H);if(j(x)){if(ae=j(x),typeof ae!="function")throw Error(s(150));return x=ae.call(x),ie(_,N,x,H)}if(typeof x.then=="function")return Ce(_,N,ds(x),H);if(x.$$typeof===K)return Ce(_,N,rs(_,x),H);ms(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,N!==null&&N.tag===6?(n(_,N.sibling),H=r(N,x),H.return=_,_=H):(n(_,N),H=Ec(x,_.mode,H),H.return=_,_=H),d(_)):n(_,N)}return function(_,N,x,H){try{ei=0;var ae=Ce(_,N,x,H);return Il=null,ae}catch(P){if(P===Fl||P===os)throw P;var Te=Mt(29,P,null,_.mode);return Te.lanes=H,Te.return=_,Te}finally{}}}var yl=dh(!0),mh=dh(!1),kn=!1;function Uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Bn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(we&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=is(e),Fo(e,null,n),t}return as(e,a,t,n),is(e)}function ni(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ao(e,n)}}function Rc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?r=f=d:f=f.next=d,n=n.next}while(n!==null);f===null?r=f=t:f=f.next=t}else r=f=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:f,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bc=!1;function li(){if(Bc){var e=Wl;if(e!==null)throw e}}function ai(e,t,n,a){Bc=!1;var r=e.updateQueue;kn=!1;var f=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var b=y,M=b.next;b.next=null,d===null?f=M:d.next=M,d=b;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==d&&(y===null?B.firstBaseUpdate=M:y.next=M,B.lastBaseUpdate=b))}if(f!==null){var Y=r.baseState;d=0,B=M=b=null,y=f;do{var D=y.lane&-536870913,L=D!==y.lane;if(L?(ye&D)===D:(a&D)===D){D!==0&&D===Jl&&(Bc=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var I=e,ie=y;D=t;var Ce=n;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){Y=I.call(Ce,Y,D);break e}Y=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,D=typeof I=="function"?I.call(Ce,Y,D):I,D==null)break e;Y=v({},Y,D);break e;case 2:kn=!0}}D=y.callback,D!==null&&(e.flags|=64,L&&(e.flags|=8192),L=r.callbacks,L===null?r.callbacks=[D]:L.push(D))}else L={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(M=B=L,b=Y):B=B.next=L,d|=D;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;L=y,y=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);B===null&&(b=Y),r.baseState=b,r.firstBaseUpdate=M,r.lastBaseUpdate=B,f===null&&(r.shared.lanes=0),Gn|=d,e.lanes=d,e.memoizedState=Y}}function gh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ph(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)gh(n[e],t)}var Pl=E(null),gs=E(0);function yh(e,t){e=En,J(gs,e),J(Pl,t),En=e|t.baseLanes}function qc(){J(gs,En),J(Pl,Pl.current)}function Hc(){En=gs.current,$(Pl),$(gs)}var Ct=E(null),Kt=null;function qn(e){var t=e.alternate;J(Ge,Ge.current&1),J(Ct,e),Kt===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(Kt=e)}function Yc(e){J(Ge,Ge.current),J(Ct,e),Kt===null&&(Kt=e)}function vh(e){e.tag===22?(J(Ge,Ge.current),J(Ct,e),Kt===null&&(Kt=e)):Hn()}function Hn(){J(Ge,Ge.current),J(Ct,Ct.current)}function zt(e){$(Ct),Kt===e&&(Kt=null),$(Ge)}var Ge=E(0);function ps(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Xr(n)||Zr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mn=0,oe=null,xe=null,Xe=null,ys=!1,ea=!1,vl=!1,vs=0,ii=0,ta=null,u0=0;function He(){throw Error(s(321))}function $c(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xt(e[n],t[n]))return!1;return!0}function Gc(e,t,n,a,r,f){return mn=f,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?td:ar,vl=!1,f=n(a,r),vl=!1,ea&&(f=Sh(t,n,a,r)),bh(e),f}function bh(e){R.H=ci;var t=xe!==null&&xe.next!==null;if(mn=0,Xe=xe=oe=null,ys=!1,ii=0,ta=null,t)throw Error(s(300));e===null||Ze||(e=e.dependencies,e!==null&&cs(e)&&(Ze=!0))}function Sh(e,t,n,a){oe=e;var r=0;do{if(ea&&(ta=null),ii=0,ea=!1,25<=r)throw Error(s(301));if(r+=1,Xe=xe=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}R.H=nd,f=t(n,a)}while(ea);return f}function c0(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(oe.flags|=1024),t}function Kc(){var e=vs!==0;return vs=0,e}function Vc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Qc(e){if(ys){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ys=!1}mn=0,Xe=xe=oe=null,ea=!1,ii=vs=0,ta=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?oe.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ke(){if(xe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Xe===null?oe.memoizedState:Xe.next;if(t!==null)Xe=t,xe=e;else{if(e===null)throw oe.alternate===null?Error(s(467)):Error(s(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Xe===null?oe.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ii;return ii+=1,ta===null&&(ta=[]),e=fh(ta,e,t),t=oe,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?td:ar),e}function Ss(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===K)return at(e)}throw Error(s(438,String(e)))}function Xc(e){var t=null,n=oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=oe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=bs(),oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=de;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function Ts(e){var t=Ke();return Zc(t,xe,e)}function Zc(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,f=a.pending;if(f!==null){if(r!==null){var d=r.next;r.next=f.next,f.next=d}t.baseQueue=r=f,a.pending=null}if(f=e.baseState,r===null)e.memoizedState=f;else{t=r.next;var y=d=null,b=null,M=t,B=!1;do{var Y=M.lane&-536870913;if(Y!==M.lane?(ye&Y)===Y:(mn&Y)===Y){var D=M.revertLane;if(D===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Y===Jl&&(B=!0);else if((mn&D)===D){M=M.next,D===Jl&&(B=!0);continue}else Y={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(y=b=Y,d=f):b=b.next=Y,oe.lanes|=D,Gn|=D;Y=M.action,vl&&n(f,Y),f=M.hasEagerState?M.eagerState:n(f,Y)}else D={lane:Y,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(y=b=D,d=f):b=b.next=D,oe.lanes|=Y,Gn|=Y;M=M.next}while(M!==null&&M!==t);if(b===null?d=f:b.next=y,!xt(f,e.memoizedState)&&(Ze=!0,B&&(n=Wl,n!==null)))throw n;e.memoizedState=f,e.baseState=d,e.baseQueue=b,a.lastRenderedState=f}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Jc(e){var t=Ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,f=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do f=e(f,d.action),d=d.next;while(d!==r);xt(f,t.memoizedState)||(Ze=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,a]}function Th(e,t,n){var a=oe,r=Ke(),f=be;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!xt((xe||r).memoizedState,n);if(d&&(r.memoizedState=n,Ze=!0),r=r.queue,Ic(Ah.bind(null,a,r,e),[e]),r.getSnapshot!==t||d||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,na(9,{destroy:void 0},wh.bind(null,a,r,n,t),null),De===null)throw Error(s(349));f||(mn&127)!==0||Eh(a,t,n)}return n}function Eh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t=bs(),oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wh(e,t,n,a){t.value=n,t.getSnapshot=a,Nh(t)&&Oh(e)}function Ah(e,t,n){return n(function(){Nh(t)&&Oh(e)})}function Nh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xt(e,n)}catch{return!0}}function Oh(e){var t=rl(e,2);t!==null&&Tt(t,e,2)}function Wc(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),vl){Mn(!0);try{n()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function _h(e,t,n,a){return e.baseState=n,Zc(e,xe,typeof a=="function"?a:gn)}function r0(e,t,n,a,r){if(As(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){f.listeners.push(d)}};R.T!==null?n(!0):f.isTransition=!1,a(f),n=t.pending,n===null?(f.next=t.pending=f,xh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function xh(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var f=R.T,d={};R.T=d;try{var y=n(r,a),b=R.S;b!==null&&b(d,y),Mh(e,t,y)}catch(M){Fc(e,t,M)}finally{f!==null&&d.types!==null&&(f.types=d.types),R.T=f}}else try{f=n(r,a),Mh(e,t,f)}catch(M){Fc(e,t,M)}}function Mh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Ch(e,t,a)},function(a){return Fc(e,t,a)}):Ch(e,t,n)}function Ch(e,t,n){t.status="fulfilled",t.value=n,zh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,xh(e,n)))}function Fc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,zh(t),t=t.next;while(t!==a)}e.action=null}function zh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Dh(e,t){return t}function Lh(e,t){if(be){var n=De.formState;if(n!==null){e:{var a=oe;if(be){if(je){t:{for(var r=je,f=Gt;r.nodeType!==8;){if(!f){r=null;break t}if(r=Vt(r.nextSibling),r===null){r=null;break t}}f=r.data,r=f==="F!"||f==="F"?r:null}if(r){je=Vt(r.nextSibling),a=r.data==="F!";break e}}jn(a)}a=!1}a&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dh,lastRenderedState:t},n.queue=a,n=Ih.bind(null,oe,a),a.dispatch=n,a=Wc(!1),f=lr.bind(null,oe,!1,a.queue),a=ot(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=r0.bind(null,oe,r,f,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function jh(e){var t=Ke();return Uh(t,xe,e)}function Uh(e,t,n){if(t=Zc(e,t,Dh)[0],e=Ts(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=si(t)}catch(d){throw d===Fl?os:d}else a=t;t=Ke();var r=t.queue,f=r.dispatch;return n!==t.memoizedState&&(oe.flags|=2048,na(9,{destroy:void 0},f0.bind(null,r,n),null)),[a,f,e]}function f0(e,t){e.action=t}function kh(e){var t=Ke(),n=xe;if(n!==null)return Uh(t,n,e);Ke(),t=t.memoizedState,n=Ke();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function na(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=oe.updateQueue,t===null&&(t=bs(),oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Rh(){return Ke().memoizedState}function Es(e,t,n,a){var r=ot();oe.flags|=e,r.memoizedState=na(1|t,{destroy:void 0},n,a===void 0?null:a)}function ws(e,t,n,a){var r=Ke();a=a===void 0?null:a;var f=r.memoizedState.inst;xe!==null&&a!==null&&$c(a,xe.memoizedState.deps)?r.memoizedState=na(t,f,n,a):(oe.flags|=e,r.memoizedState=na(1|t,f,n,a))}function Bh(e,t){Es(8390656,8,e,t)}function Ic(e,t){ws(2048,8,e,t)}function o0(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=bs(),oe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qh(e){var t=Ke().memoizedState;return o0({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Hh(e,t){return ws(4,2,e,t)}function Yh(e,t){return ws(4,4,e,t)}function $h(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gh(e,t,n){n=n!=null?n.concat([e]):null,ws(4,4,$h.bind(null,t,e),n)}function Pc(){}function Kh(e,t){var n=Ke();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&$c(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Vh(e,t){var n=Ke();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&$c(t,a[1]))return a[0];if(a=e(),vl){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[a,t],a}function er(e,t,n){return n===void 0||(mn&1073741824)!==0&&(ye&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Qd(),oe.lanes|=e,Gn|=e,n)}function Qh(e,t,n,a){return xt(n,t)?n:Pl.current!==null?(e=er(e,n,a),xt(e,t)||(Ze=!0),e):(mn&42)===0||(mn&1073741824)!==0&&(ye&261930)===0?(Ze=!0,e.memoizedState=n):(e=Qd(),oe.lanes|=e,Gn|=e,t)}function Xh(e,t,n,a,r){var f=Z.p;Z.p=f!==0&&8>f?f:8;var d=R.T,y={};R.T=y,lr(e,!1,t,n);try{var b=r(),M=R.S;if(M!==null&&M(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var B=s0(b,a);ui(e,t,B,jt(e))}else ui(e,t,a,jt(e))}catch(Y){ui(e,t,{then:function(){},status:"rejected",reason:Y},jt())}finally{Z.p=f,d!==null&&y.types!==null&&(d.types=y.types),R.T=d}}function h0(){}function tr(e,t,n,a){if(e.tag!==5)throw Error(s(476));var r=Zh(e).queue;Xh(e,r,t,te,n===null?h0:function(){return Jh(e),n(a)})}function Zh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jh(e){var t=Zh(e);t.next===null&&(t=e.alternate.memoizedState),ui(e,t.next.queue,{},jt())}function nr(){return at(Ai)}function Wh(){return Ke().memoizedState}function Fh(){return Ke().memoizedState}function d0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jt();e=Rn(n);var a=Bn(t,e,n);a!==null&&(Tt(a,t,n),ni(a,t,n)),t={cache:zc()},e.payload=t;return}t=t.return}}function m0(e,t,n){var a=jt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},As(e)?Ph(t,n):(n=Sc(e,t,n,a),n!==null&&(Tt(n,e,a),ed(n,t,a)))}function Ih(e,t,n){var a=jt();ui(e,t,n,a)}function ui(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(As(e))Ph(t,r);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var d=t.lastRenderedState,y=f(d,n);if(r.hasEagerState=!0,r.eagerState=y,xt(y,d))return as(e,t,r,0),De===null&&ls(),!1}catch{}finally{}if(n=Sc(e,t,r,a),n!==null)return Tt(n,e,a),ed(n,t,a),!0}return!1}function lr(e,t,n,a){if(a={lane:2,revertLane:Ur(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},As(e)){if(t)throw Error(s(479))}else t=Sc(e,n,a,2),t!==null&&Tt(t,e,2)}function As(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Ph(e,t){ea=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ed(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ao(e,n)}}var ci={readContext:at,use:Ss,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ci.useEffectEvent=He;var td={readContext:at,use:Ss,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Bh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Es(4194308,4,$h.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Es(4194308,4,e,t)},useInsertionEffect:function(e,t){Es(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var a=e();if(vl){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ot();if(n!==void 0){var r=n(t);if(vl){Mn(!0);try{n(t)}finally{Mn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=m0.bind(null,oe,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Wc(e);var t=e.queue,n=Ih.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Pc,useDeferredValue:function(e,t){var n=ot();return er(n,e,t)},useTransition:function(){var e=Wc(!1);return e=Xh.bind(null,oe,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=oe,r=ot();if(be){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),De===null)throw Error(s(349));(ye&127)!==0||Eh(a,t,n)}r.memoizedState=n;var f={value:n,getSnapshot:t};return r.queue=f,Bh(Ah.bind(null,a,f,e),[e]),a.flags|=2048,na(9,{destroy:void 0},wh.bind(null,a,f,n,t),null),n},useId:function(){var e=ot(),t=De.identifierPrefix;if(be){var n=tn,a=en;n=(a&~(1<<32-_t(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=vs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=u0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nr,useFormState:Lh,useActionState:Lh,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lr.bind(null,oe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Xc,useCacheRefresh:function(){return ot().memoizedState=d0.bind(null,oe)},useEffectEvent:function(e){var t=ot(),n={impl:e};return t.memoizedState=n,function(){if((we&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ar={readContext:at,use:Ss,useCallback:Kh,useContext:at,useEffect:Ic,useImperativeHandle:Gh,useInsertionEffect:Hh,useLayoutEffect:Yh,useMemo:Vh,useReducer:Ts,useRef:Rh,useState:function(){return Ts(gn)},useDebugValue:Pc,useDeferredValue:function(e,t){var n=Ke();return Qh(n,xe.memoizedState,e,t)},useTransition:function(){var e=Ts(gn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:Th,useId:Wh,useHostTransitionStatus:nr,useFormState:jh,useActionState:jh,useOptimistic:function(e,t){var n=Ke();return _h(n,xe,e,t)},useMemoCache:Xc,useCacheRefresh:Fh};ar.useEffectEvent=qh;var nd={readContext:at,use:Ss,useCallback:Kh,useContext:at,useEffect:Ic,useImperativeHandle:Gh,useInsertionEffect:Hh,useLayoutEffect:Yh,useMemo:Vh,useReducer:Jc,useRef:Rh,useState:function(){return Jc(gn)},useDebugValue:Pc,useDeferredValue:function(e,t){var n=Ke();return xe===null?er(n,e,t):Qh(n,xe.memoizedState,e,t)},useTransition:function(){var e=Jc(gn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:Th,useId:Wh,useHostTransitionStatus:nr,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=Ke();return xe!==null?_h(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Xc,useCacheRefresh:Fh};nd.useEffectEvent=qh;function ir(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=jt(),r=Rn(a);r.payload=t,n!=null&&(r.callback=n),t=Bn(e,r,a),t!==null&&(Tt(t,e,a),ni(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=jt(),r=Rn(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Bn(e,r,a),t!==null&&(Tt(t,e,a),ni(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jt(),a=Rn(n);a.tag=2,t!=null&&(a.callback=t),t=Bn(e,a,n),t!==null&&(Tt(t,e,n),ni(t,e,n))}};function ld(e,t,n,a,r,f,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,d):t.prototype&&t.prototype.isPureReactComponent?!Za(n,a)||!Za(r,f):!0}function ad(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&sr.enqueueReplaceState(t,t.state,null)}function bl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function id(e){ns(e)}function sd(e){console.error(e)}function ud(e){ns(e)}function Ns(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function cd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ur(e,t,n){return n=Rn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ns(e,t)},n}function rd(e){return e=Rn(e),e.tag=3,e}function fd(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var f=a.value;e.payload=function(){return r(f)},e.callback=function(){cd(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){cd(t,n,a),typeof r!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function g0(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,r,!0),n=Ct.current,n!==null){switch(n.tag){case 31:case 13:return Kt===null?Rs():n.alternate===null&&Ye===0&&(Ye=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===hs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Dr(e,a,r)),!1;case 22:return n.flags|=65536,a===hs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Dr(e,a,r)),!1}throw Error(s(435,n.tag))}return Dr(e,a,r),Rs(),!1}if(be)return t=Ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Oc&&(e=Error(s(422),{cause:a}),Fa(Ht(e,n)))):(a!==Oc&&(t=Error(s(423),{cause:a}),Fa(Ht(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Ht(a,n),r=ur(e.stateNode,a,r),Rc(e,r),Ye!==4&&(Ye=2)),!1;var f=Error(s(520),{cause:a});if(f=Ht(f,n),pi===null?pi=[f]:pi.push(f),Ye!==4&&(Ye=2),t===null)return!0;a=Ht(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=ur(n.stateNode,a,e),Rc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Kn===null||!Kn.has(f))))return n.flags|=65536,r&=-r,n.lanes|=r,r=rd(r),fd(r,e,n,a),Rc(n,r),!1}n=n.return}while(n!==null);return!1}var cr=Error(s(461)),Ze=!1;function it(e,t,n,a){t.child=e===null?mh(t,null,n,a):yl(t,e.child,n,a)}function od(e,t,n,a,r){n=n.render;var f=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return dl(t),a=Gc(e,t,n,d,f,r),y=Kc(),e!==null&&!Ze?(Vc(e,t,r),pn(e,t,r)):(be&&y&&Ac(t),t.flags|=1,it(e,t,a,r),t.child)}function hd(e,t,n,a,r){if(e===null){var f=n.type;return typeof f=="function"&&!Tc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,dd(e,t,f,a,r)):(e=ss(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!pr(e,r)){var d=f.memoizedProps;if(n=n.compare,n=n!==null?n:Za,n(d,a)&&e.ref===t.ref)return pn(e,t,r)}return t.flags|=1,e=fn(f,a),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,n,a,r){if(e!==null){var f=e.memoizedProps;if(Za(f,a)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=a=f,pr(e,r))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,pn(e,t,r)}return rr(e,t,n,a,r)}function md(e,t,n,a){var r=a.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~f}else a=0,t.child=null;return gd(e,t,f,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fs(t,f!==null?f.cachePool:null),f!==null?yh(t,f):qc(),vh(t);else return a=t.lanes=536870912,gd(e,t,f!==null?f.baseLanes|n:n,n,a)}else f!==null?(fs(t,f.cachePool),yh(t,f),Hn(),t.memoizedState=null):(e!==null&&fs(t,null),qc(),Hn());return it(e,t,r,n),t.child}function ri(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gd(e,t,n,a,r){var f=Lc();return f=f===null?null:{parent:Qe._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&fs(t,null),qc(),vh(t),e!==null&&Zl(e,t,a,!0),t.childLanes=r,null}function Os(e,t){return t=xs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pd(e,t,n){return yl(t,e.child,null,n),e=Os(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function p0(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(a.mode==="hidden")return e=Os(t,a),t.lanes=536870912,ri(null,e);if(Yc(t),(e=je)?(e=xm(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Po(e),n.return=t,t.child=n,lt=t,je=null)):e=null,e===null)throw jn(t);return t.lanes=536870912,null}return Os(t,a)}var f=e.memoizedState;if(f!==null){var d=f.dehydrated;if(Yc(t),r)if(t.flags&256)t.flags&=-257,t=pd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ze||Zl(e,t,n,!1),r=(n&e.childLanes)!==0,Ze||r){if(a=De,a!==null&&(d=io(a,n),d!==0&&d!==f.retryLane))throw f.retryLane=d,rl(e,d),Tt(a,e,d),cr;Rs(),t=pd(e,t,n)}else e=f.treeContext,je=Vt(d.nextSibling),lt=t,be=!0,Ln=null,Gt=!1,e!==null&&nh(t,e),t=Os(t,a),t.flags|=4096;return t}return e=fn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _s(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function rr(e,t,n,a,r){return dl(t),n=Gc(e,t,n,a,void 0,r),a=Kc(),e!==null&&!Ze?(Vc(e,t,r),pn(e,t,r)):(be&&a&&Ac(t),t.flags|=1,it(e,t,n,r),t.child)}function yd(e,t,n,a,r,f){return dl(t),t.updateQueue=null,n=Sh(t,a,n,r),bh(e),a=Kc(),e!==null&&!Ze?(Vc(e,t,f),pn(e,t,f)):(be&&a&&Ac(t),t.flags|=1,it(e,t,n,f),t.child)}function vd(e,t,n,a,r){if(dl(t),t.stateNode===null){var f=Kl,d=n.contextType;typeof d=="object"&&d!==null&&(f=at(d)),f=new n(a,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=sr,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=a,f.state=t.memoizedState,f.refs={},Uc(t),d=n.contextType,f.context=typeof d=="object"&&d!==null?at(d):Kl,f.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(ir(t,n,d,a),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(d=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),d!==f.state&&sr.enqueueReplaceState(f,f.state,null),ai(t,a,f,r),li(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,b=bl(n,y);f.props=b;var M=f.context,B=n.contextType;d=Kl,typeof B=="object"&&B!==null&&(d=at(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||M!==d)&&ad(t,f,a,d),kn=!1;var D=t.memoizedState;f.state=D,ai(t,a,f,r),li(),M=t.memoizedState,y||D!==M||kn?(typeof Y=="function"&&(ir(t,n,Y,a),M=t.memoizedState),(b=kn||ld(t,n,b,a,D,M,d))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),f.props=a,f.state=M,f.context=d,a=b):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{f=t.stateNode,kc(e,t),d=t.memoizedProps,B=bl(n,d),f.props=B,Y=t.pendingProps,D=f.context,M=n.contextType,b=Kl,typeof M=="object"&&M!==null&&(b=at(M)),y=n.getDerivedStateFromProps,(M=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(d!==Y||D!==b)&&ad(t,f,a,b),kn=!1,D=t.memoizedState,f.state=D,ai(t,a,f,r),li();var L=t.memoizedState;d!==Y||D!==L||kn||e!==null&&e.dependencies!==null&&cs(e.dependencies)?(typeof y=="function"&&(ir(t,n,y,a),L=t.memoizedState),(B=kn||ld(t,n,B,a,D,L,b)||e!==null&&e.dependencies!==null&&cs(e.dependencies))?(M||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(a,L,b),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(a,L,b)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=L),f.props=a,f.state=L,f.context=b,a=B):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),a=!1)}return f=a,_s(e,t),a=(t.flags&128)!==0,f||a?(f=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&a?(t.child=yl(t,e.child,null,r),t.child=yl(t,null,n,r)):it(e,t,n,r),t.memoizedState=f.state,e=t.child):e=pn(e,t,r),e}function bd(e,t,n,a){return ol(),t.flags|=256,it(e,t,n,a),t.child}var fr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function or(e){return{baseLanes:e,cachePool:ch()}}function hr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Lt),e}function Sd(e,t,n){var a=t.pendingProps,r=!1,f=(t.flags&128)!==0,d;if((d=f)||(d=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(r?qn(t):Hn(),(e=je)?(e=xm(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Dn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=Po(e),n.return=t,t.child=n,lt=t,je=null)):e=null,e===null)throw jn(t);return Zr(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,r?(Hn(),r=t.mode,y=xs({mode:"hidden",children:y},r),a=fl(a,r,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=or(n),a.childLanes=hr(e,d,n),t.memoizedState=fr,ri(null,a)):(qn(t),dr(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(f)t.flags&256?(qn(t),t.flags&=-257,t=mr(e,t,n)):t.memoizedState!==null?(Hn(),t.child=e.child,t.flags|=128,t=null):(Hn(),y=a.fallback,r=t.mode,a=xs({mode:"visible",children:a.children},r),y=fl(y,r,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,yl(t,e.child,null,n),a=t.child,a.memoizedState=or(n),a.childLanes=hr(e,d,n),t.memoizedState=fr,t=ri(null,a));else if(qn(t),Zr(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var M=d.dgst;d=M,a=Error(s(419)),a.stack="",a.digest=d,Fa({value:a,source:null,stack:null}),t=mr(e,t,n)}else if(Ze||Zl(e,t,n,!1),d=(n&e.childLanes)!==0,Ze||d){if(d=De,d!==null&&(a=io(d,n),a!==0&&a!==b.retryLane))throw b.retryLane=a,rl(e,a),Tt(d,e,a),cr;Xr(y)||Rs(),t=mr(e,t,n)}else Xr(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,je=Vt(y.nextSibling),lt=t,be=!0,Ln=null,Gt=!1,e!==null&&nh(t,e),t=dr(t,a.children),t.flags|=4096);return t}return r?(Hn(),y=a.fallback,r=t.mode,b=e.child,M=b.sibling,a=fn(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,M!==null?y=fn(M,y):(y=fl(y,r,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,ri(null,a),a=t.child,y=e.child.memoizedState,y===null?y=or(n):(r=y.cachePool,r!==null?(b=Qe._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=ch(),y={baseLanes:y.baseLanes|n,cachePool:r}),a.memoizedState=y,a.childLanes=hr(e,d,n),t.memoizedState=fr,ri(e.child,a)):(qn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function dr(e,t){return t=xs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xs(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function mr(e,t,n){return yl(t,e.child,null,n),e=dr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Td(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Mc(e.return,t,n)}function gr(e,t,n,a,r,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:f}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=r,d.treeForkCount=f)}function Ed(e,t,n){var a=t.pendingProps,r=a.revealOrder,f=a.tail;a=a.children;var d=Ge.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,J(Ge,d),it(e,t,a,n),a=be?Wa:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,n,t);else if(e.tag===19)Td(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ps(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),gr(t,!1,r,n,f,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ps(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}gr(t,!0,n,null,f,a);break;case"together":gr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cs(e)))}function y0(e,t,n){switch(t.tag){case 3:ne(t,t.stateNode.containerInfo),Un(t,Qe,e.memoizedState.cache),ol();break;case 27:case 5:dt(t);break;case 4:ne(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Sd(e,t,n):(qn(t),e=pn(e,t,n),e!==null?e.sibling:null);qn(t);break;case 19:var r=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Zl(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return Ed(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),J(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,md(e,t,n,t.pendingProps);case 24:Un(t,Qe,e.memoizedState.cache)}return pn(e,t,n)}function wd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!pr(e,n)&&(t.flags&128)===0)return Ze=!1,y0(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,be&&(t.flags&1048576)!==0&&th(t,Wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")Tc(e)?(a=bl(e,a),t.tag=1,t=vd(null,t,e,a,n)):(t.tag=0,t=rr(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===X){t.tag=11,t=od(null,t,e,a,n);break e}else if(r===G){t.tag=14,t=hd(null,t,e,a,n);break e}}throw t=ze(e)||e,Error(s(306,t,""))}}return t;case 0:return rr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=bl(a,t.pendingProps),vd(e,t,a,r,n);case 3:e:{if(ne(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var f=t.memoizedState;r=f.element,kc(e,t),ai(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Un(t,Qe,a),a!==f.cache&&Cc(t,[Qe],n,!0),li(),a=d.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=bd(e,t,a,n);break e}else if(a!==r){r=Ht(Error(s(424)),t),Fa(r),t=bd(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(je=Vt(e.firstChild),lt=t,be=!0,Ln=null,Gt=!0,n=mh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ol(),a===r){t=pn(e,t,n);break e}it(e,t,a,n)}t=t.child}return t;case 26:return _s(e,t),e===null?(n=jm(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,a=Ks(me.current).createElement(n),a[nt]=t,a[gt]=e,st(a,n,e),et(a),t.stateNode=a):t.memoizedState=jm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dt(t),e===null&&be&&(a=t.stateNode=zm(t.type,t.pendingProps,me.current),lt=t,Gt=!0,r=je,Zn(t.type)?(Jr=r,je=Vt(a.firstChild)):je=r),it(e,t,t.pendingProps.children,n),_s(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((r=a=je)&&(a=X0(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,lt=t,je=Vt(a.firstChild),Gt=!1,r=!0):r=!1),r||jn(t)),dt(t),r=t.type,f=t.pendingProps,d=e!==null?e.memoizedProps:null,a=f.children,Kr(r,f)?a=null:d!==null&&Kr(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Gc(e,t,c0,null,null,n),Ai._currentValue=r),_s(e,t),it(e,t,a,n),t.child;case 6:return e===null&&be&&((e=n=je)&&(n=Z0(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,lt=t,je=null,e=!0):e=!1),e||jn(t)),null;case 13:return Sd(e,t,n);case 4:return ne(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=yl(t,null,a,n):it(e,t,a,n),t.child;case 11:return od(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Un(t,t.type,a.value),it(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,dl(t),r=at(r),a=a(r),t.flags|=1,it(e,t,a,n),t.child;case 14:return hd(e,t,t.type,t.pendingProps,n);case 15:return dd(e,t,t.type,t.pendingProps,n);case 19:return Ed(e,t,n);case 31:return p0(e,t,n);case 22:return md(e,t,n,t.pendingProps);case 24:return dl(t),a=at(Qe),e===null?(r=Lc(),r===null&&(r=De,f=zc(),r.pooledCache=f,f.refCount++,f!==null&&(r.pooledCacheLanes|=n),r=f),t.memoizedState={parent:a,cache:r},Uc(t),Un(t,Qe,r)):((e.lanes&n)!==0&&(kc(e,t),ai(t,null,null,n),li()),r=e.memoizedState,f=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Un(t,Qe,a)):(a=f.cache,Un(t,Qe,a),a!==r.cache&&Cc(t,[Qe],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function yn(e){e.flags|=4}function yr(e,t,n,a,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw pl=hs,jc}else e.flags&=-16777217}function Ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qm(t))if(Wd())e.flags|=8192;else throw pl=hs,jc}function Ms(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?no():536870912,e.lanes|=t,sa|=t)}function fi(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function v0(e,t,n){var a=t.pendingProps;switch(Nc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dn(Qe),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?yn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_c())),Ue(t),null;case 26:var r=t.type,f=t.memoizedState;return e===null?(yn(t),f!==null?(Ue(t),Ad(t,f)):(Ue(t),yr(t,r,null,a,n))):f?f!==e.memoizedState?(yn(t),Ue(t),Ad(t,f)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&yn(t),Ue(t),yr(t,r,e,a,n)),null;case 27:if(mt(t),n=me.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}e=F.current,Xl(t)?lh(t):(e=zm(r,a,n),t.stateNode=e,yn(t))}return Ue(t),null;case 5:if(mt(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Ue(t),null}if(f=F.current,Xl(t))lh(t);else{var d=Ks(me.current);switch(f){case 1:f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":f=d.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?f.multiple=!0:a.size&&(f.size=a.size);break;default:f=typeof a.is=="string"?d.createElement(r,{is:a.is}):d.createElement(r)}}f[nt]=t,f[gt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)f.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=f;e:switch(st(f,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&yn(t)}}return Ue(t),yr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&yn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=me.current,Xl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=lt,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Sm(e.nodeValue,n)),e||jn(t,!0)}else e=Ks(e).createTextNode(a),e[nt]=t,t.stateNode=e}return Ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Xl(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[nt]=t}else ol(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else n=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Xl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[nt]=t}else ol(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),r=!1}else r=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ms(t,t.updateQueue),Ue(t),null);case 4:return ee(),e===null&&qr(t.stateNode.containerInfo),Ue(t),null;case 10:return dn(t.type),Ue(t),null;case 19:if($(Ge),a=t.memoizedState,a===null)return Ue(t),null;if(r=(t.flags&128)!==0,f=a.rendering,f===null)if(r)fi(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ps(e),f!==null){for(t.flags|=128,fi(a,!1),e=f.updateQueue,t.updateQueue=e,Ms(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Io(n,e),n=n.sibling;return J(Ge,Ge.current&1|2),be&&on(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>js&&(t.flags|=128,r=!0,fi(a,!1),t.lanes=4194304)}else{if(!r)if(e=ps(f),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ms(t,e),fi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!be)return Ue(t),null}else 2*Nt()-a.renderingStartTime>js&&n!==536870912&&(t.flags|=128,r=!0,fi(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(e=a.last,e!==null?e.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Nt(),e.sibling=null,n=Ge.current,J(Ge,r?n&1|2:n&1),be&&on(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return zt(t),Hc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),n=t.updateQueue,n!==null&&Ms(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&$(ml),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),dn(Qe),Ue(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b0(e,t){switch(Nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(Qe),ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mt(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(s(340));ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(Ge),null;case 4:return ee(),null;case 10:return dn(t.type),null;case 22:case 23:return zt(t),Hc(),e!==null&&$(ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dn(Qe),null;case 25:return null;default:return null}}function Nd(e,t){switch(Nc(t),t.tag){case 3:dn(Qe),ee();break;case 26:case 27:case 5:mt(t);break;case 4:ee();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:$(Ge);break;case 10:dn(t.type);break;case 22:case 23:zt(t),Hc(),e!==null&&$(ml);break;case 24:dn(Qe)}}function oi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var f=n.create,d=n.inst;a=f(),d.destroy=a}n=n.next}while(n!==r)}}catch(y){_e(t,t.return,y)}}function Yn(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var f=r.next;a=f;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var b=n,M=y;try{M()}catch(B){_e(r,b,B)}}}a=a.next}while(a!==f)}}catch(B){_e(t,t.return,B)}}function Od(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ph(t,n)}catch(a){_e(e,e.return,a)}}}function _d(e,t,n){n.props=bl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){_e(e,t,a)}}function hi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){_e(e,t,r)}}function nn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){_e(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function xd(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){_e(e,e.return,r)}}function vr(e,t,n){try{var a=e.stateNode;Y0(a,e.type,n,t),a[gt]=t}catch(r){_e(e,e.return,r)}}function Md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zn(e.type)||e.tag===4}function br(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Md(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(a!==4&&(a===27&&Zn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Sr(e,t,n),e=e.sibling;e!==null;)Sr(e,t,n),e=e.sibling}function Cs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Zn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Cs(e,t,n),e=e.sibling;e!==null;)Cs(e,t,n),e=e.sibling}function Cd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);st(t,a,n),t[nt]=e,t[gt]=n}catch(f){_e(e,e.return,f)}}var vn=!1,Je=!1,Tr=!1,zd=typeof WeakSet=="function"?WeakSet:Set,tt=null;function S0(e,t){if(e=e.containerInfo,$r=Fs,e=Go(e),mc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var d=0,y=-1,b=-1,M=0,B=0,Y=e,D=null;t:for(;;){for(var L;Y!==n||r!==0&&Y.nodeType!==3||(y=d+r),Y!==f||a!==0&&Y.nodeType!==3||(b=d+a),Y.nodeType===3&&(d+=Y.nodeValue.length),(L=Y.firstChild)!==null;)D=Y,Y=L;for(;;){if(Y===e)break t;if(D===n&&++M===r&&(y=d),D===f&&++B===a&&(b=d),(L=Y.nextSibling)!==null)break;Y=D,D=Y.parentNode}Y=L}n=y===-1||b===-1?null:{start:y,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gr={focusedElem:e,selectionRange:n},Fs=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,r=f.memoizedProps,f=f.memoizedState,a=n.stateNode;try{var I=bl(n.type,r);e=a.getSnapshotBeforeUpdate(I,f),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){_e(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Qr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Qr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Dd(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n),a&4&&oi(5,n);break;case 1:if(Sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){_e(n,n.return,d)}else{var r=bl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){_e(n,n.return,d)}}a&64&&Od(n),a&512&&hi(n,n.return);break;case 3:if(Sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ph(e,t)}catch(d){_e(n,n.return,d)}}break;case 27:t===null&&a&4&&Cd(n);case 26:case 5:Sn(e,n),t===null&&a&4&&xd(n),a&512&&hi(n,n.return);break;case 12:Sn(e,n);break;case 31:Sn(e,n),a&4&&Ud(e,n);break;case 13:Sn(e,n),a&4&&kd(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=M0.bind(null,n),J0(e,n))));break;case 22:if(a=n.memoizedState!==null||vn,!a){t=t!==null&&t.memoizedState!==null||Je,r=vn;var f=Je;vn=a,(Je=t)&&!f?Tn(e,n,(n.subtreeFlags&8772)!==0):Sn(e,n),vn=r,Je=f}break;case 30:break;default:Sn(e,n)}}function Ld(e){var t=e.alternate;t!==null&&(e.alternate=null,Ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,yt=!1;function bn(e,t,n){for(n=n.child;n!==null;)jd(e,t,n),n=n.sibling}function jd(e,t,n){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(ka,n)}catch{}switch(n.tag){case 26:Je||nn(n,t),bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||nn(n,t);var a=ke,r=yt;Zn(n.type)&&(ke=n.stateNode,yt=!1),bn(e,t,n),Ti(n.stateNode),ke=a,yt=r;break;case 5:Je||nn(n,t);case 6:if(a=ke,r=yt,ke=null,bn(e,t,n),ke=a,yt=r,ke!==null)if(yt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(n.stateNode)}catch(f){_e(n,t,f)}else try{ke.removeChild(n.stateNode)}catch(f){_e(n,t,f)}break;case 18:ke!==null&&(yt?(e=ke,Om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ma(e)):Om(ke,n.stateNode));break;case 4:a=ke,r=yt,ke=n.stateNode.containerInfo,yt=!0,bn(e,t,n),ke=a,yt=r;break;case 0:case 11:case 14:case 15:Yn(2,n,t),Je||Yn(4,n,t),bn(e,t,n);break;case 1:Je||(nn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&_d(n,t,a)),bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:Je=(a=Je)||n.memoizedState!==null,bn(e,t,n),Je=a;break;default:bn(e,t,n)}}function Ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ma(e)}catch(n){_e(t,t.return,n)}}}function kd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ma(e)}catch(n){_e(t,t.return,n)}}function T0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zd),t;default:throw Error(s(435,e.tag))}}function zs(e,t){var n=T0(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=C0.bind(null,e,a);a.then(r,r)}})}function vt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a],f=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Zn(y.type)){ke=y.stateNode,yt=!1;break e}break;case 5:ke=y.stateNode,yt=!1;break e;case 3:case 4:ke=y.stateNode.containerInfo,yt=!0;break e}y=y.return}if(ke===null)throw Error(s(160));jd(f,d,r),ke=null,yt=!1,f=r.alternate,f!==null&&(f.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}var Wt=null;function Rd(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),bt(e),a&4&&(Yn(3,e,e.return),oi(3,e),Yn(5,e,e.return));break;case 1:vt(t,e),bt(e),a&512&&(Je||n===null||nn(n,n.return)),a&64&&vn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var r=Wt;if(vt(t,e),bt(e),a&512&&(Je||n===null||nn(n,n.return)),a&4){var f=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":f=r.getElementsByTagName("title")[0],(!f||f[qa]||f[nt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=r.createElement(a),r.head.insertBefore(f,r.querySelector("head > title"))),st(f,a,n),f[nt]=e,et(f),a=f;break e;case"link":var d=Rm("link","href",r).get(a+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(f=d[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}f=r.createElement(a),st(f,a,n),r.head.appendChild(f);break;case"meta":if(d=Rm("meta","content",r).get(a+(n.content||""))){for(y=0;y<d.length;y++)if(f=d[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}f=r.createElement(a),st(f,a,n),r.head.appendChild(f);break;default:throw Error(s(468,a))}f[nt]=e,et(f),a=f}e.stateNode=a}else Bm(r,e.type,e.stateNode);else e.stateNode=km(r,a,e.memoizedProps);else f!==a?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,a===null?Bm(r,e.type,e.stateNode):km(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&vr(e,e.memoizedProps,n.memoizedProps)}break;case 27:vt(t,e),bt(e),a&512&&(Je||n===null||nn(n,n.return)),n!==null&&a&4&&vr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vt(t,e),bt(e),a&512&&(Je||n===null||nn(n,n.return)),e.flags&32){r=e.stateNode;try{Rl(r,"")}catch(I){_e(e,e.return,I)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,vr(e,r,n!==null?n.memoizedProps:r)),a&1024&&(Tr=!0);break;case 6:if(vt(t,e),bt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(I){_e(e,e.return,I)}}break;case 3:if(Xs=null,r=Wt,Wt=Vs(t.containerInfo),vt(t,e),Wt=r,bt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ma(t.containerInfo)}catch(I){_e(e,e.return,I)}Tr&&(Tr=!1,Bd(e));break;case 4:a=Wt,Wt=Vs(e.stateNode.containerInfo),vt(t,e),bt(e),Wt=a;break;case 12:vt(t,e),bt(e);break;case 31:vt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zs(e,a)));break;case 13:vt(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ls=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zs(e,a)));break;case 22:r=e.memoizedState!==null;var b=n!==null&&n.memoizedState!==null,M=vn,B=Je;if(vn=M||r,Je=B||b,vt(t,e),Je=B,vn=M,bt(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||b||vn||Je||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){b=n=t;try{if(f=b.stateNode,r)d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=b.stateNode;var Y=b.memoizedProps.style,D=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(I){_e(b,b.return,I)}}}else if(t.tag===6){if(n===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch(I){_e(b,b.return,I)}}}else if(t.tag===18){if(n===null){b=t;try{var L=b.stateNode;r?_m(L,!0):_m(b.stateNode,!1)}catch(I){_e(b,b.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,zs(e,n))));break;case 19:vt(t,e),bt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,zs(e,a)));break;case 30:break;case 21:break;default:vt(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Md(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,f=br(e);Cs(e,f,r);break;case 5:var d=n.stateNode;n.flags&32&&(Rl(d,""),n.flags&=-33);var y=br(e);Cs(e,y,d);break;case 3:case 4:var b=n.stateNode.containerInfo,M=br(e);Sr(e,M,b);break;default:throw Error(s(161))}}catch(B){_e(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dd(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yn(4,t,t.return),Sl(t);break;case 1:nn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&_d(t,t.return,n),Sl(t);break;case 27:Ti(t.stateNode);case 26:case 5:nn(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Tn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,f=t,d=f.flags;switch(f.tag){case 0:case 11:case 15:Tn(r,f,n),oi(4,f);break;case 1:if(Tn(r,f,n),a=f,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(M){_e(a,a.return,M)}if(a=f,r=a.updateQueue,r!==null){var y=a.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)gh(b[r],y)}catch(M){_e(a,a.return,M)}}n&&d&64&&Od(f),hi(f,f.return);break;case 27:Cd(f);case 26:case 5:Tn(r,f,n),n&&a===null&&d&4&&xd(f),hi(f,f.return);break;case 12:Tn(r,f,n);break;case 31:Tn(r,f,n),n&&d&4&&Ud(r,f);break;case 13:Tn(r,f,n),n&&d&4&&kd(r,f);break;case 22:f.memoizedState===null&&Tn(r,f,n),hi(f,f.return);break;case 30:break;default:Tn(r,f,n)}t=t.sibling}}function Er(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ia(n))}function wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e))}function Ft(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qd(e,t,n,a),t=t.sibling}function qd(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,n,a),r&2048&&oi(9,t);break;case 1:Ft(e,t,n,a);break;case 3:Ft(e,t,n,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ia(e)));break;case 12:if(r&2048){Ft(e,t,n,a),e=t.stateNode;try{var f=t.memoizedProps,d=f.id,y=f.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){_e(t,t.return,b)}}else Ft(e,t,n,a);break;case 31:Ft(e,t,n,a);break;case 13:Ft(e,t,n,a);break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState!==null?f._visibility&2?Ft(e,t,n,a):di(e,t):f._visibility&2?Ft(e,t,n,a):(f._visibility|=2,la(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Er(d,t);break;case 24:Ft(e,t,n,a),r&2048&&wr(t.alternate,t);break;default:Ft(e,t,n,a)}}function la(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,d=t,y=n,b=a,M=d.flags;switch(d.tag){case 0:case 11:case 15:la(f,d,y,b,r),oi(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?la(f,d,y,b,r):di(f,d):(B._visibility|=2,la(f,d,y,b,r)),r&&M&2048&&Er(d.alternate,d);break;case 24:la(f,d,y,b,r),r&&M&2048&&wr(d.alternate,d);break;default:la(f,d,y,b,r)}t=t.sibling}}function di(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:di(n,a),r&2048&&Er(a.alternate,a);break;case 24:di(n,a),r&2048&&wr(a.alternate,a);break;default:di(n,a)}t=t.sibling}}var mi=8192;function aa(e,t,n){if(e.subtreeFlags&mi)for(e=e.child;e!==null;)Hd(e,t,n),e=e.sibling}function Hd(e,t,n){switch(e.tag){case 26:aa(e,t,n),e.flags&mi&&e.memoizedState!==null&&uv(n,Wt,e.memoizedState,e.memoizedProps);break;case 5:aa(e,t,n);break;case 3:case 4:var a=Wt;Wt=Vs(e.stateNode.containerInfo),aa(e,t,n),Wt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=mi,mi=16777216,aa(e,t,n),mi=a):aa(e,t,n));break;default:aa(e,t,n)}}function Yd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Gd(a,e)}Yd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$d(e),e=e.sibling}function $d(e){switch(e.tag){case 0:case 11:case 15:gi(e),e.flags&2048&&Yn(9,e,e.return);break;case 3:gi(e);break;case 12:gi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ds(e)):gi(e);break;default:gi(e)}}function Ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Gd(a,e)}Yd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yn(8,t,t.return),Ds(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ds(t));break;default:Ds(t)}e=e.sibling}}function Gd(e,t){for(;tt!==null;){var n=tt;switch(n.tag){case 0:case 11:case 15:Yn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ia(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,tt=a;else e:for(n=e;tt!==null;){a=tt;var r=a.sibling,f=a.return;if(Ld(a),a===n){tt=null;break e}if(r!==null){r.return=f,tt=r;break e}tt=f}}}var E0={getCacheForType:function(e){var t=at(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return at(Qe).controller.signal}},w0=typeof WeakMap=="function"?WeakMap:Map,we=0,De=null,ge=null,ye=0,Oe=0,Dt=null,$n=!1,ia=!1,Ar=!1,En=0,Ye=0,Gn=0,Tl=0,Nr=0,Lt=0,sa=0,pi=null,St=null,Or=!1,Ls=0,Kd=0,js=1/0,Us=null,Kn=null,Ie=0,Vn=null,ua=null,wn=0,_r=0,xr=null,Vd=null,yi=0,Mr=null;function jt(){return(we&2)!==0&&ye!==0?ye&-ye:R.T!==null?Ur():so()}function Qd(){if(Lt===0)if((ye&536870912)===0||be){var e=Gi;Gi<<=1,(Gi&3932160)===0&&(Gi=262144),Lt=e}else Lt=536870912;return e=Ct.current,e!==null&&(e.flags|=32),Lt}function Tt(e,t,n){(e===De&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(ca(e,0),Qn(e,ye,Lt,!1)),Ba(e,n),((we&2)===0||e!==De)&&(e===De&&((we&2)===0&&(Tl|=n),Ye===4&&Qn(e,ye,Lt,!1)),ln(e))}function Xd(e,t,n){if((we&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ra(e,t),r=a?O0(e,t):zr(e,t,!0),f=a;do{if(r===0){ia&&!a&&Qn(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!A0(n)){r=zr(e,t,!1),f=!1;continue}if(r===2){if(f=t,e.errorRecoveryDisabledLanes&f)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;r=pi;var b=y.current.memoizedState.isDehydrated;if(b&&(ca(y,d).flags|=256),d=zr(y,d,!1),d!==2){if(Ar&&!b){y.errorRecoveryDisabledLanes|=f,Tl|=f,r=4;break e}f=St,St=r,f!==null&&(St===null?St=f:St.push.apply(St,f))}r=d}if(f=!1,r!==2)continue}}if(r===1){ca(e,0),Qn(e,t,0,!0);break}e:{switch(a=e,f=r,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qn(a,t,Lt,!$n);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=Ls+300-Nt(),10<r)){if(Qn(a,t,Lt,!$n),Vi(a,0,!0)!==0)break e;wn=t,a.timeoutHandle=Am(Zd.bind(null,a,n,St,Us,Or,t,Lt,Tl,sa,$n,f,"Throttled",-0,0),r);break e}Zd(a,n,St,Us,Or,t,Lt,Tl,sa,$n,f,null,-0,0)}}break}while(!0);ln(e)}function Zd(e,t,n,a,r,f,d,y,b,M,B,Y,D,L){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},Hd(t,f,Y);var I=(f&62914560)===f?Ls-Nt():(f&4194048)===f?Kd-Nt():0;if(I=cv(Y,I),I!==null){wn=f,e.cancelPendingCommit=I(nm.bind(null,e,t,f,n,a,r,d,y,b,B,Y,null,D,L)),Qn(e,f,d,!M);return}}nm(e,t,f,n,a,r,d,y,b)}function A0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var r=n[a],f=r.getSnapshot;r=r.value;try{if(!xt(f(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,n,a){t&=~Nr,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var f=31-_t(r),d=1<<f;a[f]=-1,r&=~d}n!==0&&lo(e,n,t)}function ks(){return(we&6)===0?(vi(0),!1):!0}function Cr(){if(ge!==null){if(Oe===0)var e=ge.return;else e=ge,hn=hl=null,Qc(e),Il=null,ei=0,e=ge;for(;e!==null;)Nd(e.alternate,e),e=e.return;ge=null}}function ca(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,K0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wn=0,Cr(),De=e,ge=n=fn(e.current,null),ye=t,Oe=0,Dt=null,$n=!1,ia=Ra(e,t),Ar=!1,sa=Lt=Nr=Tl=Gn=Ye=0,St=pi=null,Or=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-_t(a),f=1<<r;t|=e[r],a&=~f}return En=t,ls(),n}function Jd(e,t){oe=null,R.H=ci,t===Fl||t===os?(t=oh(),Oe=3):t===jc?(t=oh(),Oe=4):Oe=t===cr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,ge===null&&(Ye=1,Ns(e,Ht(t,e.current)))}function Wd(){var e=Ct.current;return e===null?!0:(ye&4194048)===ye?Kt===null:(ye&62914560)===ye||(ye&536870912)!==0?e===Kt:!1}function Fd(){var e=R.H;return R.H=ci,e===null?ci:e}function Id(){var e=R.A;return R.A=E0,e}function Rs(){Ye=4,$n||(ye&4194048)!==ye&&Ct.current!==null||(ia=!0),(Gn&134217727)===0&&(Tl&134217727)===0||De===null||Qn(De,ye,Lt,!1)}function zr(e,t,n){var a=we;we|=2;var r=Fd(),f=Id();(De!==e||ye!==t)&&(Us=null,ca(e,t)),t=!1;var d=Ye;e:do try{if(Oe!==0&&ge!==null){var y=ge,b=Dt;switch(Oe){case 8:Cr(),d=6;break e;case 3:case 2:case 9:case 6:Ct.current===null&&(t=!0);var M=Oe;if(Oe=0,Dt=null,ra(e,y,b,M),n&&ia){d=0;break e}break;default:M=Oe,Oe=0,Dt=null,ra(e,y,b,M)}}N0(),d=Ye;break}catch(B){Jd(e,B)}while(!0);return t&&e.shellSuspendCounter++,hn=hl=null,we=a,R.H=r,R.A=f,ge===null&&(De=null,ye=0,ls()),d}function N0(){for(;ge!==null;)Pd(ge)}function O0(e,t){var n=we;we|=2;var a=Fd(),r=Id();De!==e||ye!==t?(Us=null,js=Nt()+500,ca(e,t)):ia=Ra(e,t);e:do try{if(Oe!==0&&ge!==null){t=ge;var f=Dt;t:switch(Oe){case 1:Oe=0,Dt=null,ra(e,t,f,1);break;case 2:case 9:if(rh(f)){Oe=0,Dt=null,em(t);break}t=function(){Oe!==2&&Oe!==9||De!==e||(Oe=7),ln(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:rh(f)?(Oe=0,Dt=null,em(t)):(Oe=0,Dt=null,ra(e,t,f,7));break;case 5:var d=null;switch(ge.tag){case 26:d=ge.memoizedState;case 5:case 27:var y=ge;if(d?qm(d):y.stateNode.complete){Oe=0,Dt=null;var b=y.sibling;if(b!==null)ge=b;else{var M=y.return;M!==null?(ge=M,Bs(M)):ge=null}break t}}Oe=0,Dt=null,ra(e,t,f,5);break;case 6:Oe=0,Dt=null,ra(e,t,f,6);break;case 8:Cr(),Ye=6;break e;default:throw Error(s(462))}}_0();break}catch(B){Jd(e,B)}while(!0);return hn=hl=null,R.H=a,R.A=r,we=n,ge!==null?0:(De=null,ye=0,ls(),Ye)}function _0(){for(;ge!==null&&!Wp();)Pd(ge)}function Pd(e){var t=wd(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?Bs(e):ge=t}function em(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yd(n,t,t.pendingProps,t.type,void 0,ye);break;case 11:t=yd(n,t,t.pendingProps,t.type.render,t.ref,ye);break;case 5:Qc(t);default:Nd(n,t),t=ge=Io(t,En),t=wd(n,t,En)}e.memoizedProps=e.pendingProps,t===null?Bs(e):ge=t}function ra(e,t,n,a){hn=hl=null,Qc(t),Il=null,ei=0;var r=t.return;try{if(g0(e,r,t,n,ye)){Ye=1,Ns(e,Ht(n,e.current)),ge=null;return}}catch(f){if(r!==null)throw ge=r,f;Ye=1,Ns(e,Ht(n,e.current)),ge=null;return}t.flags&32768?(be||a===1?e=!0:ia||(ye&536870912)!==0?e=!1:($n=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ct.current,a!==null&&a.tag===13&&(a.flags|=16384))),tm(t,e)):Bs(t)}function Bs(e){var t=e;do{if((t.flags&32768)!==0){tm(t,$n);return}e=t.return;var n=v0(t.alternate,t,En);if(n!==null){ge=n;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ye===0&&(Ye=5)}function tm(e,t){do{var n=b0(e.alternate,e);if(n!==null){n.flags&=32767,ge=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=n}while(e!==null);Ye=6,ge=null}function nm(e,t,n,a,r,f,d,y,b){e.cancelPendingCommit=null;do qs();while(Ie!==0);if((we&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=bc,sy(e,n,f,d,y,b),e===De&&(ge=De=null,ye=0),ua=t,Vn=e,wn=n,_r=f,xr=r,Vd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,z0(Yi,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,r=Z.p,Z.p=2,d=we,we|=4;try{S0(e,t,n)}finally{we=d,Z.p=r,R.T=a}}Ie=1,lm(),am(),im()}}function lm(){if(Ie===1){Ie=0;var e=Vn,t=ua,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=Z.p;Z.p=2;var r=we;we|=4;try{Rd(t,e);var f=Gr,d=Go(e.containerInfo),y=f.focusedElem,b=f.selectionRange;if(d!==y&&y&&y.ownerDocument&&$o(y.ownerDocument.documentElement,y)){if(b!==null&&mc(y)){var M=b.start,B=b.end;if(B===void 0&&(B=M),"selectionStart"in y)y.selectionStart=M,y.selectionEnd=Math.min(B,y.value.length);else{var Y=y.ownerDocument||document,D=Y&&Y.defaultView||window;if(D.getSelection){var L=D.getSelection(),I=y.textContent.length,ie=Math.min(b.start,I),Ce=b.end===void 0?ie:Math.min(b.end,I);!L.extend&&ie>Ce&&(d=Ce,Ce=ie,ie=d);var _=Yo(y,ie),N=Yo(y,Ce);if(_&&N&&(L.rangeCount!==1||L.anchorNode!==_.node||L.anchorOffset!==_.offset||L.focusNode!==N.node||L.focusOffset!==N.offset)){var x=Y.createRange();x.setStart(_.node,_.offset),L.removeAllRanges(),ie>Ce?(L.addRange(x),L.extend(N.node,N.offset)):(x.setEnd(N.node,N.offset),L.addRange(x))}}}}for(Y=[],L=y;L=L.parentNode;)L.nodeType===1&&Y.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Y.length;y++){var H=Y[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Fs=!!$r,Gr=$r=null}finally{we=r,Z.p=a,R.T=n}}e.current=t,Ie=2}}function am(){if(Ie===2){Ie=0;var e=Vn,t=ua,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=Z.p;Z.p=2;var r=we;we|=4;try{Dd(e,t.alternate,t)}finally{we=r,Z.p=a,R.T=n}}Ie=3}}function im(){if(Ie===4||Ie===3){Ie=0,Fp();var e=Vn,t=ua,n=wn,a=Vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,ua=Vn=null,sm(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Kn=null),Ju(n),t=t.stateNode,Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=R.T,r=Z.p,Z.p=2,R.T=null;try{for(var f=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];f(y.value,{componentStack:y.stack})}}finally{R.T=t,Z.p=r}}(wn&3)!==0&&qs(),ln(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Mr?yi++:(yi=0,Mr=e):yi=0,vi(0)}}function sm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ia(t)))}function qs(){return lm(),am(),im(),um()}function um(){if(Ie!==5)return!1;var e=Vn,t=_r;_r=0;var n=Ju(wn),a=R.T,r=Z.p;try{Z.p=32>n?32:n,R.T=null,n=xr,xr=null;var f=Vn,d=wn;if(Ie=0,ua=Vn=null,wn=0,(we&6)!==0)throw Error(s(331));var y=we;if(we|=4,$d(f.current),qd(f,f.current,d,n),we=y,vi(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(ka,f)}catch{}return!0}finally{Z.p=r,R.T=a,sm(e,t)}}function cm(e,t,n){t=Ht(n,t),t=ur(e.stateNode,t,2),e=Bn(e,t,2),e!==null&&(Ba(e,2),ln(e))}function _e(e,t,n){if(e.tag===3)cm(e,e,n);else for(;t!==null;){if(t.tag===3){cm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kn===null||!Kn.has(a))){e=Ht(n,e),n=rd(2),a=Bn(t,n,2),a!==null&&(fd(n,a,t,e),Ba(a,2),ln(a));break}}t=t.return}}function Dr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new w0;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(Ar=!0,r.add(n),e=x0.bind(null,e,t,n),t.then(e,e))}function x0(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,De===e&&(ye&n)===n&&(Ye===4||Ye===3&&(ye&62914560)===ye&&300>Nt()-Ls?(we&2)===0&&ca(e,0):Nr|=n,sa===ye&&(sa=0)),ln(e)}function rm(e,t){t===0&&(t=no()),e=rl(e,t),e!==null&&(Ba(e,t),ln(e))}function M0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rm(e,n)}function C0(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),rm(e,n)}function z0(e,t){return Vu(e,t)}var Hs=null,fa=null,Lr=!1,Ys=!1,jr=!1,Xn=0;function ln(e){e!==fa&&e.next===null&&(fa===null?Hs=fa=e:fa=fa.next=e),Ys=!0,Lr||(Lr=!0,L0())}function vi(e,t){if(!jr&&Ys){jr=!0;do for(var n=!1,a=Hs;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var f=0;else{var d=a.suspendedLanes,y=a.pingedLanes;f=(1<<31-_t(42|e)+1)-1,f&=r&~(d&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,dm(a,f))}else f=ye,f=Vi(a,a===De?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(f&3)===0||Ra(a,f)||(n=!0,dm(a,f));a=a.next}while(n);jr=!1}}function D0(){fm()}function fm(){Ys=Lr=!1;var e=0;Xn!==0&&G0()&&(e=Xn);for(var t=Nt(),n=null,a=Hs;a!==null;){var r=a.next,f=om(a,t);f===0?(a.next=null,n===null?Hs=r:n.next=r,r===null&&(fa=n)):(n=a,(e!==0||(f&3)!==0)&&(Ys=!0)),a=r}Ie!==0&&Ie!==5||vi(e),Xn!==0&&(Xn=0)}function om(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var d=31-_t(f),y=1<<d,b=r[d];b===-1?((y&n)===0||(y&a)!==0)&&(r[d]=iy(y,t)):b<=t&&(e.expiredLanes|=y),f&=~y}if(t=De,n=ye,n=Vi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Qu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ra(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Qu(a),Ju(n)){case 2:case 8:n=eo;break;case 32:n=Yi;break;case 268435456:n=to;break;default:n=Yi}return a=hm.bind(null,e),n=Vu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Qu(a),e.callbackPriority=2,e.callbackNode=null,2}function hm(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qs()&&e.callbackNode!==n)return null;var a=ye;return a=Vi(e,e===De?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Xd(e,a,t),om(e,Nt()),e.callbackNode!=null&&e.callbackNode===n?hm.bind(null,e):null)}function dm(e,t){if(qs())return null;Xd(e,t,!0)}function L0(){V0(function(){(we&6)!==0?Vu(Pf,D0):fm()})}function Ur(){if(Xn===0){var e=Jl;e===0&&(e=$i,$i<<=1,($i&261888)===0&&($i=256)),Xn=e}return Xn}function mm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ji(""+e)}function gm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function j0(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var f=mm((r[gt]||null).action),d=a.submitter;d&&(t=(t=d[gt]||null)?mm(t.formAction):d.getAttribute("formAction"),t!==null&&(f=t,d=null));var y=new Pi("action","action",null,a,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Xn!==0){var b=d?gm(r,d):new FormData(r);tr(n,{pending:!0,data:b,method:r.method,action:f},null,b)}}else typeof f=="function"&&(y.preventDefault(),b=d?gm(r,d):new FormData(r),tr(n,{pending:!0,data:b,method:r.method,action:f},f,b))},currentTarget:r}]})}}for(var kr=0;kr<vc.length;kr++){var Rr=vc[kr],U0=Rr.toLowerCase(),k0=Rr[0].toUpperCase()+Rr.slice(1);Jt(U0,"on"+k0)}Jt(Qo,"onAnimationEnd"),Jt(Xo,"onAnimationIteration"),Jt(Zo,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(Iy,"onTransitionRun"),Jt(Py,"onTransitionStart"),Jt(e0,"onTransitionCancel"),Jt(Jo,"onTransitionEnd"),Ul("onMouseEnter",["mouseout","mouseover"]),Ul("onMouseLeave",["mouseout","mouseover"]),Ul("onPointerEnter",["pointerout","pointerover"]),Ul("onPointerLeave",["pointerout","pointerover"]),il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),il("onBeforeInput",["compositionend","keypress","textInput","paste"]),il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),R0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function pm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],b=y.instance,M=y.currentTarget;if(y=y.listener,b!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=M;try{f(r)}catch(B){ns(B)}r.currentTarget=null,f=b}else for(d=0;d<a.length;d++){if(y=a[d],b=y.instance,M=y.currentTarget,y=y.listener,b!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=M;try{f(r)}catch(B){ns(B)}r.currentTarget=null,f=b}}}}function pe(e,t){var n=t[Wu];n===void 0&&(n=t[Wu]=new Set);var a=e+"__bubble";n.has(a)||(ym(t,e,2,!1),n.add(a))}function Br(e,t,n){var a=0;t&&(a|=4),ym(n,e,a,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[$s]){e[$s]=!0,ro.forEach(function(n){n!=="selectionchange"&&(R0.has(n)||Br(n,!1,e),Br(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,Br("selectionchange",!1,t))}}function ym(e,t,n,a){switch(Qm(t)){case 2:var r=ov;break;case 8:r=hv;break;default:r=ef}n=r.bind(null,t,n,e),r=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hr(e,t,n,a,r){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var y=a.stateNode.containerInfo;if(y===r)break;if(d===4)for(d=a.return;d!==null;){var b=d.tag;if((b===3||b===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;y!==null;){if(d=Dl(y),d===null)return;if(b=d.tag,b===5||b===6||b===26||b===27){a=f=d;continue e}y=y.parentNode}}a=a.return}Eo(function(){var M=f,B=lc(n),Y=[];e:{var D=Wo.get(e);if(D!==void 0){var L=Pi,I=e;switch(e){case"keypress":if(Fi(n)===0)break e;case"keydown":case"keyup":L=Cy;break;case"focusin":I="focus",L=rc;break;case"focusout":I="blur",L=rc;break;case"beforeblur":case"afterblur":L=rc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=No;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=vy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Ly;break;case Qo:case Xo:case Zo:L=Ty;break;case Jo:L=Uy;break;case"scroll":case"scrollend":L=py;break;case"wheel":L=Ry;break;case"copy":case"cut":case"paste":L=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=_o;break;case"toggle":case"beforetoggle":L=qy}var ie=(t&4)!==0,Ce=!ie&&(e==="scroll"||e==="scrollend"),_=ie?D!==null?D+"Capture":null:D;ie=[];for(var N=M,x;N!==null;){var H=N;if(x=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||x===null||_===null||(H=Ya(N,_),H!=null&&ie.push(Si(N,H,x))),Ce)break;N=N.return}0<ie.length&&(D=new L(D,I,null,n,B),Y.push({event:D,listeners:ie}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",D&&n!==nc&&(I=n.relatedTarget||n.fromElement)&&(Dl(I)||I[zl]))break e;if((L||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,L?(I=n.relatedTarget||n.toElement,L=M,I=I?Dl(I):null,I!==null&&(Ce=o(I),ie=I.tag,I!==Ce||ie!==5&&ie!==27&&ie!==6)&&(I=null)):(L=null,I=M),L!==I)){if(ie=No,H="onMouseLeave",_="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ie=_o,H="onPointerLeave",_="onPointerEnter",N="pointer"),Ce=L==null?D:Ha(L),x=I==null?D:Ha(I),D=new ie(H,N+"leave",L,n,B),D.target=Ce,D.relatedTarget=x,H=null,Dl(B)===M&&(ie=new ie(_,N+"enter",I,n,B),ie.target=x,ie.relatedTarget=Ce,H=ie),Ce=H,L&&I)t:{for(ie=B0,_=L,N=I,x=0,H=_;H;H=ie(H))x++;H=0;for(var ae=N;ae;ae=ie(ae))H++;for(;0<x-H;)_=ie(_),x--;for(;0<H-x;)N=ie(N),H--;for(;x--;){if(_===N||N!==null&&_===N.alternate){ie=_;break t}_=ie(_),N=ie(N)}ie=null}else ie=null;L!==null&&vm(Y,D,L,ie,!1),I!==null&&Ce!==null&&vm(Y,Ce,I,ie,!0)}}e:{if(D=M?Ha(M):window,L=D.nodeName&&D.nodeName.toLowerCase(),L==="select"||L==="input"&&D.type==="file")var Te=Uo;else if(Lo(D))if(ko)Te=Jy;else{Te=Xy;var P=Qy}else L=D.nodeName,!L||L.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?M&&tc(M.elementType)&&(Te=Uo):Te=Zy;if(Te&&(Te=Te(e,M))){jo(Y,Te,n,B);break e}P&&P(e,D,M),e==="focusout"&&M&&D.type==="number"&&M.memoizedProps.value!=null&&ec(D,"number",D.value)}switch(P=M?Ha(M):window,e){case"focusin":(Lo(P)||P.contentEditable==="true")&&(Yl=P,gc=M,Ja=null);break;case"focusout":Ja=gc=Yl=null;break;case"mousedown":pc=!0;break;case"contextmenu":case"mouseup":case"dragend":pc=!1,Ko(Y,n,B);break;case"selectionchange":if(Fy)break;case"keydown":case"keyup":Ko(Y,n,B)}var he;if(oc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Hl?zo(e,n)&&(ve="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ve="onCompositionStart");ve&&(xo&&n.locale!=="ko"&&(Hl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Hl&&(he=wo()):(zn=B,sc="value"in zn?zn.value:zn.textContent,Hl=!0)),P=Gs(M,ve),0<P.length&&(ve=new Oo(ve,e,null,n,B),Y.push({event:ve,listeners:P}),he?ve.data=he:(he=Do(n),he!==null&&(ve.data=he)))),(he=Yy?$y(e,n):Gy(e,n))&&(ve=Gs(M,"onBeforeInput"),0<ve.length&&(P=new Oo("onBeforeInput","beforeinput",null,n,B),Y.push({event:P,listeners:ve}),P.data=he)),j0(Y,e,M,n,B)}pm(Y,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gs(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,f=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||f===null||(r=Ya(e,n),r!=null&&a.unshift(Si(e,r,f)),r=Ya(e,t),r!=null&&a.push(Si(e,r,f))),e.tag===3)return a;e=e.return}return[]}function B0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vm(e,t,n,a,r){for(var f=t._reactName,d=[];n!==null&&n!==a;){var y=n,b=y.alternate,M=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||M===null||(b=M,r?(M=Ya(n,f),M!=null&&d.unshift(Si(n,M,b))):r||(M=Ya(n,f),M!=null&&d.push(Si(n,M,b)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var q0=/\r\n?/g,H0=/\u0000|\uFFFD/g;function bm(e){return(typeof e=="string"?e:""+e).replace(q0,`
|
|
50
|
+
`).replace(H0,"")}function Sm(e,t){return t=bm(t),bm(e)===t}function Me(e,t,n,a,r,f){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Rl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Rl(e,""+a);break;case"className":Xi(e,"class",a);break;case"tabIndex":Xi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(e,n,a);break;case"style":So(e,a,f);break;case"data":if(t!=="object"){Xi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ji(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",r.name,r,null),Me(e,t,"formEncType",r.formEncType,r,null),Me(e,t,"formMethod",r.formMethod,r,null),Me(e,t,"formTarget",r.formTarget,r,null)):(Me(e,t,"encType",r.encType,r,null),Me(e,t,"method",r.method,r,null),Me(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ji(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=cn);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Ji(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Qi(e,"popover",a);break;case"xlinkActuate":un(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":un(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":un(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":un(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":un(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":un(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":un(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":un(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":un(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Qi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=my.get(n)||n,Qi(e,n,a))}}function Yr(e,t,n,a,r,f){switch(n){case"style":So(e,a,f);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Rl(e,a):(typeof a=="number"||typeof a=="bigint")&&Rl(e,""+a);break;case"onScroll":a!=null&&pe("scroll",e);break;case"onScrollEnd":a!=null&&pe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),f=e[gt]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,r),typeof a=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Qi(e,n,a)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var a=!1,r=!1,f;for(f in n)if(n.hasOwnProperty(f)){var d=n[f];if(d!=null)switch(f){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,f,d,n,null)}}r&&Me(e,t,"srcSet",n.srcSet,n,null),a&&Me(e,t,"src",n.src,n,null);return;case"input":pe("invalid",e);var y=f=d=r=null,b=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":r=B;break;case"type":d=B;break;case"checked":b=B;break;case"defaultChecked":M=B;break;case"value":f=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Me(e,t,a,B,n,null)}}po(e,f,y,b,M,d,r,!1);return;case"select":pe("invalid",e),a=d=f=null;for(r in n)if(n.hasOwnProperty(r)&&(y=n[r],y!=null))switch(r){case"value":f=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:Me(e,t,r,y,n,null)}t=f,n=d,e.multiple=!!a,t!=null?kl(e,!!a,t,!1):n!=null&&kl(e,!!a,n,!0);return;case"textarea":pe("invalid",e),f=r=a=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":a=y;break;case"defaultValue":r=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Me(e,t,d,y,n,null)}vo(e,a,r,f);return;case"option":for(b in n)if(n.hasOwnProperty(b)&&(a=n[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,b,a,n,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(a=0;a<bi.length;a++)pe(bi[a],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,M,a,n,null)}return;default:if(tc(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Yr(e,t,B,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Me(e,t,y,a,n,null))}function Y0(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,f=null,d=null,y=null,b=null,M=null,B=null;for(L in n){var Y=n[L];if(n.hasOwnProperty(L)&&Y!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":b=Y;default:a.hasOwnProperty(L)||Me(e,t,L,null,a,Y)}}for(var D in a){var L=a[D];if(Y=n[D],a.hasOwnProperty(D)&&(L!=null||Y!=null))switch(D){case"type":f=L;break;case"name":r=L;break;case"checked":M=L;break;case"defaultChecked":B=L;break;case"value":d=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==Y&&Me(e,t,D,L,a,Y)}}Pu(e,d,y,b,M,B,f,r);return;case"select":L=d=y=D=null;for(f in n)if(b=n[f],n.hasOwnProperty(f)&&b!=null)switch(f){case"value":break;case"multiple":L=b;default:a.hasOwnProperty(f)||Me(e,t,f,null,a,b)}for(r in a)if(f=a[r],b=n[r],a.hasOwnProperty(r)&&(f!=null||b!=null))switch(r){case"value":D=f;break;case"defaultValue":y=f;break;case"multiple":d=f;default:f!==b&&Me(e,t,r,f,a,b)}t=y,n=d,a=L,D!=null?kl(e,!!n,D,!1):!!a!=!!n&&(t!=null?kl(e,!!n,t,!0):kl(e,!!n,n?[]:"",!1));return;case"textarea":L=D=null;for(y in n)if(r=n[y],n.hasOwnProperty(y)&&r!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Me(e,t,y,null,a,r)}for(d in a)if(r=a[d],f=n[d],a.hasOwnProperty(d)&&(r!=null||f!=null))switch(d){case"value":D=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==f&&Me(e,t,d,r,a,f)}yo(e,D,L);return;case"option":for(var I in n)if(D=n[I],n.hasOwnProperty(I)&&D!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Me(e,t,I,null,a,D)}for(b in a)if(D=a[b],L=n[b],a.hasOwnProperty(b)&&D!==L&&(D!=null||L!=null))switch(b){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,b,D,a,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)D=n[ie],n.hasOwnProperty(ie)&&D!=null&&!a.hasOwnProperty(ie)&&Me(e,t,ie,null,a,D);for(M in a)if(D=a[M],L=n[M],a.hasOwnProperty(M)&&D!==L&&(D!=null||L!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Me(e,t,M,D,a,L)}return;default:if(tc(t)){for(var Ce in n)D=n[Ce],n.hasOwnProperty(Ce)&&D!==void 0&&!a.hasOwnProperty(Ce)&&Yr(e,t,Ce,void 0,a,D);for(B in a)D=a[B],L=n[B],!a.hasOwnProperty(B)||D===L||D===void 0&&L===void 0||Yr(e,t,B,D,a,L);return}}for(var _ in n)D=n[_],n.hasOwnProperty(_)&&D!=null&&!a.hasOwnProperty(_)&&Me(e,t,_,null,a,D);for(Y in a)D=a[Y],L=n[Y],!a.hasOwnProperty(Y)||D===L||D==null&&L==null||Me(e,t,Y,D,a,L)}function Tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],f=r.transferSize,d=r.initiatorType,y=r.duration;if(f&&y&&Tm(d)){for(d=0,y=r.responseEnd,a+=1;a<n.length;a++){var b=n[a],M=b.startTime;if(M>y)break;var B=b.transferSize,Y=b.initiatorType;B&&Tm(Y)&&(b=b.responseEnd,d+=B*(b<y?1:(y-M)/(b-M)))}if(--a,t+=8*(f+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var $r=null,Gr=null;function Ks(e){return e.nodeType===9?e:e.ownerDocument}function Em(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Kr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vr=null;function G0(){var e=window.event;return e&&e.type==="popstate"?e===Vr?!1:(Vr=e,!0):(Vr=null,!1)}var Am=typeof setTimeout=="function"?setTimeout:void 0,K0=typeof clearTimeout=="function"?clearTimeout:void 0,Nm=typeof Promise=="function"?Promise:void 0,V0=typeof queueMicrotask=="function"?queueMicrotask:typeof Nm<"u"?function(e){return Nm.resolve(null).then(e).catch(Q0)}:Am;function Q0(e){setTimeout(function(){throw e})}function Zn(e){return e==="head"}function Om(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),ma(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Ti(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ti(n);for(var f=n.firstChild;f;){var d=f.nextSibling,y=f.nodeName;f[qa]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=d}}else n==="body"&&Ti(e.ownerDocument.body);n=r}while(n);ma(t)}function _m(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Qr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qr(n),Fu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function X0(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function Z0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Vt(e.nextSibling),e===null))return null;return e}function xm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Xr(e){return e.data==="$?"||e.data==="$~"}function Zr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function J0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jr=null;function Mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Vt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Cm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function zm(e,t,n){switch(t=Ks(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ti(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fu(e)}var Qt=new Map,Dm=new Set;function Vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var An=Z.d;Z.d={f:W0,r:F0,D:I0,C:P0,L:ev,m:tv,X:lv,S:nv,M:av};function W0(){var e=An.f(),t=ks();return e||t}function F0(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?Jh(t):An.r(e)}var oa=typeof document>"u"?null:document;function Lm(e,t,n){var a=oa;if(a&&typeof t=="string"&&t){var r=Bt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Dm.has(r)||(Dm.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),st(t,"link",e),et(t),a.head.appendChild(t)))}}function I0(e){An.D(e),Lm("dns-prefetch",e,null)}function P0(e,t){An.C(e,t),Lm("preconnect",e,t)}function ev(e,t,n){An.L(e,t,n);var a=oa;if(a&&e&&t){var r='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Bt(n.imageSizes)+'"]')):r+='[href="'+Bt(e)+'"]';var f=r;switch(t){case"style":f=ha(e);break;case"script":f=da(e)}Qt.has(f)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qt.set(f,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ei(f))||t==="script"&&a.querySelector(wi(f))||(t=a.createElement("link"),st(t,"link",e),et(t),a.head.appendChild(t)))}}function tv(e,t){An.m(e,t);var n=oa;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Bt(a)+'"][href="'+Bt(e)+'"]',f=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=da(e)}if(!Qt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Qt.set(f,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wi(f)))return}a=n.createElement("link"),st(a,"link",e),et(a),n.head.appendChild(a)}}}function nv(e,t,n){An.S(e,t,n);var a=oa;if(a&&e){var r=jl(a).hoistableStyles,f=ha(e);t=t||"default";var d=r.get(f);if(!d){var y={loading:0,preload:null};if(d=a.querySelector(Ei(f)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qt.get(f))&&Wr(e,n);var b=d=a.createElement("link");et(b),st(b,"link",e),b._p=new Promise(function(M,B){b.onload=M,b.onerror=B}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Qs(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(f,d)}}}function lv(e,t){An.X(e,t);var n=oa;if(n&&e){var a=jl(n).hoistableScripts,r=da(e),f=a.get(r);f||(f=n.querySelector(wi(r)),f||(e=v({src:e,async:!0},t),(t=Qt.get(r))&&Fr(e,t),f=n.createElement("script"),et(f),st(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function av(e,t){An.M(e,t);var n=oa;if(n&&e){var a=jl(n).hoistableScripts,r=da(e),f=a.get(r);f||(f=n.querySelector(wi(r)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(r))&&Fr(e,t),f=n.createElement("script"),et(f),st(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(r,f))}}function jm(e,t,n,a){var r=(r=me.current)?Vs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ha(n.href),n=jl(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ha(n.href);var f=jl(r).hoistableStyles,d=f.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,d),(f=r.querySelector(Ei(e)))&&!f._p&&(d.instance=f,d.state.loading=5),Qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qt.set(e,n),f||iv(r,e,n,d.state))),t&&a===null)throw Error(s(528,""));return d}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=da(n),n=jl(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ha(e){return'href="'+Bt(e)+'"'}function Ei(e){return'link[rel="stylesheet"]['+e+"]"}function Um(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function iv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),st(t,"link",n),et(t),e.head.appendChild(t))}function da(e){return'[src="'+Bt(e)+'"]'}function wi(e){return"script[async]"+e}function km(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),st(a,"style",r),Qs(a,n.precedence,e),t.instance=a;case"stylesheet":r=ha(n.href);var f=e.querySelector(Ei(r));if(f)return t.state.loading|=4,t.instance=f,et(f),f;a=Um(n),(r=Qt.get(r))&&Wr(a,r),f=(e.ownerDocument||e).createElement("link"),et(f);var d=f;return d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),st(f,"link",a),t.state.loading|=4,Qs(f,n.precedence,e),t.instance=f;case"script":return f=da(n.src),(r=e.querySelector(wi(f)))?(t.instance=r,et(r),r):(a=n,(r=Qt.get(f))&&(a=v({},n),Fr(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),st(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Qs(a,n.precedence,e));return t.instance}function Qs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,f=r,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)f=y;else if(f!==r)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xs=null;function Rm(e,t,n){if(Xs===null){var a=new Map,r=Xs=new Map;r.set(n,a)}else r=Xs,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var f=n[r];if(!(f[qa]||f[nt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var d=f.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(f):a.set(d,[f])}}return a}function Bm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function sv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function qm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function uv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=ha(a.href),f=t.querySelector(Ei(r));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,et(f);return}f=t.ownerDocument||t,a=Um(a),(r=Qt.get(r))&&Wr(a,r),f=f.createElement("link"),et(f);var d=f;d._p=new Promise(function(y,b){d.onload=y,d.onerror=b}),st(f,"link",a),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Zs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ir=0;function cv(e,t){return e.stylesheets&&e.count===0&&Ws(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ws(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Ir===0&&(Ir=62500*$0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ws(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Ir?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Zs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ws(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Js=null;function Ws(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Js=new Map,t.forEach(rv,e),Js=null,Zs.call(e))}function rv(e,t){if(!(t.state.loading&4)){var n=Js.get(e);if(n)var a=n.get(null);else{n=new Map,Js.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<r.length;f++){var d=r[f];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}r=t.instance,d=r.getAttribute("data-precedence"),f=n.get(d)||a,f===a&&n.set(null,r),n.set(d,r),this.count++,a=Zs.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),f?f.parentNode.insertBefore(r,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:K,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function fv(e,t,n,a,r,f,d,y,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=f,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Hm(e,t,n,a,r,f,d,y,b,M,B,Y){return e=new fv(e,t,n,d,b,M,B,Y,y),t=1,f===!0&&(t|=24),f=Mt(3,null,null,t),e.current=f,f.stateNode=e,t=zc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:a,isDehydrated:n,cache:t},Uc(f),e}function Ym(e){return e?(e=Kl,e):Kl}function $m(e,t,n,a,r,f){r=Ym(r),a.context===null?a.context=r:a.pendingContext=r,a=Rn(t),a.payload={element:n},f=f===void 0?null:f,f!==null&&(a.callback=f),n=Bn(e,a,t),n!==null&&(Tt(n,e,t),ni(n,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pr(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Km(e){if(e.tag===13||e.tag===31){var t=rl(e,67108864);t!==null&&Tt(t,e,67108864),Pr(e,67108864)}}function Vm(e){if(e.tag===13||e.tag===31){var t=jt();t=Zu(t);var n=rl(e,t);n!==null&&Tt(n,e,t),Pr(e,t)}}var Fs=!0;function ov(e,t,n,a){var r=R.T;R.T=null;var f=Z.p;try{Z.p=2,ef(e,t,n,a)}finally{Z.p=f,R.T=r}}function hv(e,t,n,a){var r=R.T;R.T=null;var f=Z.p;try{Z.p=8,ef(e,t,n,a)}finally{Z.p=f,R.T=r}}function ef(e,t,n,a){if(Fs){var r=tf(a);if(r===null)Hr(e,t,a,Is,n),Xm(e,a);else if(mv(r,e,t,n,a))a.stopPropagation();else if(Xm(e,a),t&4&&-1<dv.indexOf(e)){for(;r!==null;){var f=Ll(r);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var d=al(f.pendingLanes);if(d!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var b=1<<31-_t(d);y.entanglements[1]|=b,d&=~b}ln(f),(we&6)===0&&(js=Nt()+500,vi(0))}}break;case 31:case 13:y=rl(f,2),y!==null&&Tt(y,f,2),ks(),Pr(f,2)}if(f=tf(a),f===null&&Hr(e,t,a,Is,n),f===r)break;r=f}r!==null&&a.stopPropagation()}else Hr(e,t,a,null,n)}}function tf(e){return e=lc(e),nf(e)}var Is=null;function nf(e){if(Is=null,e=Dl(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Is=e,null}function Qm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ip()){case Pf:return 2;case eo:return 8;case Yi:case Pp:return 32;case to:return 268435456;default:return 32}default:return 32}}var lf=!1,Jn=null,Wn=null,Fn=null,Ni=new Map,Oi=new Map,In=[],dv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Xm(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":Ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oi.delete(t.pointerId)}}function _i(e,t,n,a,r,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:f,targetContainers:[r]},t!==null&&(t=Ll(t),t!==null&&Km(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function mv(e,t,n,a,r){switch(t){case"focusin":return Jn=_i(Jn,e,t,n,a,r),!0;case"dragenter":return Wn=_i(Wn,e,t,n,a,r),!0;case"mouseover":return Fn=_i(Fn,e,t,n,a,r),!0;case"pointerover":var f=r.pointerId;return Ni.set(f,_i(Ni.get(f)||null,e,t,n,a,r)),!0;case"gotpointercapture":return f=r.pointerId,Oi.set(f,_i(Oi.get(f)||null,e,t,n,a,r)),!0}return!1}function Zm(e){var t=Dl(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,uo(e.priority,function(){Vm(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,uo(e.priority,function(){Vm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);nc=a,n.target.dispatchEvent(a),nc=null}else return t=Ll(n),t!==null&&Km(t),e.blockedOn=n,!1;t.shift()}return!0}function Jm(e,t,n){Ps(e)&&n.delete(t)}function gv(){lf=!1,Jn!==null&&Ps(Jn)&&(Jn=null),Wn!==null&&Ps(Wn)&&(Wn=null),Fn!==null&&Ps(Fn)&&(Fn=null),Ni.forEach(Jm),Oi.forEach(Jm)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,lf||(lf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,gv)))}var tu=null;function Wm(e){tu!==e&&(tu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){tu===e&&(tu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(nf(a||n)===null)continue;break}var f=Ll(n);f!==null&&(e.splice(t,3),t-=3,tr(f,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function ma(e){function t(b){return eu(b,e)}Jn!==null&&eu(Jn,e),Wn!==null&&eu(Wn,e),Fn!==null&&eu(Fn,e),Ni.forEach(t),Oi.forEach(t);for(var n=0;n<In.length;n++){var a=In[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<In.length&&(n=In[0],n.blockedOn===null);)Zm(n),n.blockedOn===null&&In.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],f=n[a+1],d=r[gt]||null;if(typeof f=="function")d||Wm(n);else if(d){var y=null;if(f&&f.hasAttribute("formAction")){if(r=f,d=f[gt]||null)y=d.formAction;else if(nf(r)!==null)continue}else y=d.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Wm(n)}}}function Fm(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function af(e){this._internalRoot=e}nu.prototype.render=af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=jt();$m(n,a,e,t,null,null)},nu.prototype.unmount=af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$m(e.current,2,null,e,null,null),ks(),t[zl]=null}};function nu(e){this._internalRoot=e}nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=so();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&Zm(e)}};var Im=l.version;if(Im!=="19.2.1")throw Error(s(527,Im,"19.2.1"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var pv={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{ka=lu.inject(pv),Ot=lu}catch{}}return Mi.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",r=id,f=sd,d=ud;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Hm(e,1,!1,null,null,n,a,null,r,f,d,Fm),e[zl]=t.current,qr(e),new af(t)},Mi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,r="",f=id,d=sd,y=ud,b=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(b=n.formState)),t=Hm(e,1,!0,t,n??null,a,r,b,f,d,y,Fm),t.context=Ym(null),n=t.current,a=jt(),a=Zu(a),r=Rn(a),r.callback=null,Bn(n,r,a),n=a,t.current.lanes=n,Ba(t,n),ln(t),e[zl]=t.current,qr(e),new nu(t)},Mi.version="19.2.1",Mi}var rg;function Uv(){if(rg)return cf.exports;rg=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),cf.exports=jv(),cf.exports}var kv=Uv();const Rv="modulepreload",Bv=function(u){return"/"+u},fg={},qv=function(l,i,s){let c=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(w=>Promise.resolve(w).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));c=h(i.map(p=>{if(p=Bv(p),p in fg)return;fg[p]=!0;const w=p.endsWith(".css"),v=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const O=document.createElement("link");if(O.rel=w?"stylesheet":Rv,w||(O.as="script"),O.crossOrigin="",O.href=p,g&&O.setAttribute("nonce",g),document.head.appendChild(O),w)return new Promise((A,C)=>{O.addEventListener("load",A),O.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return l().catch(o)})};function Hv(u,l){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let c,o={},h=!1,m=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(c=i.exec(u))!==null;){const[,,p,,w]=c;if(p){const v=+p;switch(v){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:m=og[v-30];break;case 39:m=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:g=og[v-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:m=hg[v-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:g=hg[v-100];break}}else if(w){const v={...o},O=h?g:m;O!==void 0&&(v.color=O);const A=h?m:g;A!==void 0&&(v["background-color"]=A),s.push(`<span style="${$v(v)}">${Yv(w)}</span>`)}}return s.join("")}const og={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},hg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function Yv(u){return u.replace(/[&"<>]/g,l=>({"&":"&",'"':""","<":"<",">":">"})[l])}function $v(u){return Object.entries(u).map(([l,i])=>`${l}: ${i}`).join("; ")}const hf=({text:u,highlighter:l,mimeType:i,linkify:s,readOnly:c,highlight:o,revealLine:h,lineNumbers:m,isFocused:g,focusOnChange:p,wrapLines:w,onChange:v,dataTestId:O,placeholder:A})=>{const[C,S]=Mg(),[T]=ce.useState(qv(()=>import("./codeMirrorModule-RoSmqW0t.js"),__vite__mapDeps([0,1])).then(X=>X.default)),z=ce.useRef(null),[U,K]=ce.useState();return ce.useEffect(()=>{(async()=>{var Q,k;const X=await T;Kv(X);const W=S.current;if(!W)return;const V=Qv(l)||Vv(i)||(s?"text/linkified":"");if(z.current&&V===z.current.cm.getOption("mode")&&!!c===z.current.cm.getOption("readOnly")&&m===z.current.cm.getOption("lineNumbers")&&w===z.current.cm.getOption("lineWrapping")&&A===z.current.cm.getOption("placeholder"))return;(k=(Q=z.current)==null?void 0:Q.cm)==null||k.getWrapperElement().remove();const G=X(W,{value:"",mode:V,readOnly:!!c,lineNumbers:m,lineWrapping:w,placeholder:A,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return z.current={cm:G},g&&G.focus(),K(G),G})()},[T,U,S,l,i,s,m,w,c,g,A]),ce.useEffect(()=>{z.current&&z.current.cm.setSize(C.width,C.height)},[C]),ce.useLayoutEffect(()=>{var V;if(!U)return;let X=!1;if(U.getValue()!==u&&(U.setValue(u),X=!0,p&&(U.execCommand("selectAll"),U.focus())),X||JSON.stringify(o)!==JSON.stringify(z.current.highlight)){for(const k of z.current.highlight||[])U.removeLineClass(k.line-1,"wrap");for(const k of o||[])U.addLineClass(k.line-1,"wrap",`source-line-${k.type}`);for(const k of z.current.widgets||[])U.removeLineWidget(k);for(const k of z.current.markers||[])k.clear();const G=[],Q=[];for(const k of o||[]){if(k.type!=="subtle-error"&&k.type!=="error")continue;const de=(V=z.current)==null?void 0:V.cm.getLine(k.line-1);if(de){const fe={};fe.title=k.message||"",Q.push(U.markText({line:k.line-1,ch:0},{line:k.line-1,ch:k.column||de.length},{className:"source-line-error-underline",attributes:fe}))}if(k.type==="error"){const fe=document.createElement("div");fe.innerHTML=Hv(k.message||""),fe.className="source-line-error-widget",G.push(U.addLineWidget(k.line,fe,{above:!0,coverGutter:!1}))}}z.current.highlight=o,z.current.widgets=G,z.current.markers=Q}typeof h=="number"&&z.current.cm.lineCount()>=h&&U.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let W;return v&&(W=()=>v(U.getValue()),U.on("change",W)),()=>{W&&U.off("change",W)}},[U,u,o,h,p,v]),q.jsx("div",{"data-testid":O,className:"cm-wrapper",ref:S,onClick:Gv})};function Gv(u){var i;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((i=u.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let dg=!1;function Kv(u){dg||(dg=!0,u.defineSimpleMode("text/linkified",{start:[{regex:wv,token:"linkified"}]}))}function Vv(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function Qv(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const Xv=50,Zv=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:i=!1,orientation:s="vertical",minSidebarSize:c=Xv,settingName:o,sidebar:h,main:m})=>{const g=Math.max(c,u)*window.devicePixelRatio,[p,w]=vu(o?o+"."+s+":size":void 0,g),[v,O]=vu(o?o+"."+s+":size":void 0,g),[A,C]=ce.useState(null),[S,T]=Mg();let z;s==="vertical"?(z=v/window.devicePixelRatio,S&&S.height<z&&(z=S.height-10)):(z=p/window.devicePixelRatio,S&&S.width<z&&(z=S.width-10)),document.body.style.userSelect=A?"none":"inherit";let U={};return s==="vertical"?i?U={top:A?0:z-4,bottom:A?0:void 0,height:A?"initial":8}:U={bottom:A?0:z-4,top:A?0:void 0,height:A?"initial":8}:i?U={left:A?0:z-4,right:A?0:void 0,width:A?"initial":8}:U={right:A?0:z-4,left:A?0:void 0,width:A?"initial":8},q.jsxs("div",{className:_l("split-view",s,i&&"sidebar-first"),ref:T,children:[q.jsx("div",{className:"split-view-main",children:m}),!l&&q.jsx("div",{style:{flexBasis:z},className:"split-view-sidebar",children:h}),!l&&q.jsx("div",{style:U,className:"split-view-resizer",onMouseDown:K=>C({offset:s==="vertical"?K.clientY:K.clientX,size:z}),onMouseUp:()=>C(null),onMouseMove:K=>{if(!K.buttons)C(null);else if(A){const W=(s==="vertical"?K.clientY:K.clientX)-A.offset,V=i?A.size+W:A.size-W,Q=K.target.parentElement.getBoundingClientRect(),k=Math.min(Math.max(c,V),(s==="vertical"?Q.height:Q.width)-c);s==="vertical"?O(k*window.devicePixelRatio):w(k*window.devicePixelRatio)}}})]})},Of=({noShadow:u,children:l,noMinHeight:i,className:s,sidebarBackground:c,onClick:o})=>q.jsx("div",{className:_l("toolbar",u&&"no-shadow",i&&"no-min-height",s,c&&"toolbar-sidebar-background"),onClick:o,children:l}),Jv=({tabs:u,selectedTab:l,setSelectedTab:i,leftToolbar:s,rightToolbar:c,dataTestId:o,mode:h})=>{const m=ce.useId();return l||(l=u[0].id),h||(h="default"),q.jsx("div",{className:"tabbed-pane","data-testid":o,children:q.jsxs("div",{className:"vbox",children:[q.jsxs(Of,{children:[s&&q.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&q.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(g=>q.jsx(Wv,{id:g.id,ariaControls:`${m}-${g.id}`,title:g.title,count:g.count,errorCount:g.errorCount,selected:l===g.id,onSelect:i},g.id))]}),h==="select"&&q.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:q.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:g=>{i==null||i(u[g.currentTarget.selectedIndex].id)},children:u.map(g=>{let p="";return g.count&&(p=` (${g.count})`),g.errorCount&&(p=` (${g.errorCount})`),q.jsxs("option",{value:g.id,role:"tab","aria-controls":`${m}-${g.id}`,children:[g.title,p]},g.id)})})}),c&&q.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...c]})]}),u.map(g=>{const p="tab-content tab-"+g.id;if(g.component)return q.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,style:{display:l===g.id?"inherit":"none"},children:g.component},g.id);if(l===g.id)return q.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},Wv=({id:u,title:l,count:i,errorCount:s,selected:c,onSelect:o,ariaControls:h})=>q.jsxs("div",{className:_l("tabbed-pane-tab",c&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,"aria-controls":h,"aria-selected":c,children:[q.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!i&&q.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!s&&q.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),Fv=({sources:u,fileId:l,setFileId:i})=>q.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{i(s.target.selectedOptions[0].value)},children:Iv(u)});function Iv(u){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),i=c=>q.jsx("option",{value:c.id,children:l(c.label)},c.id),s=new Map;for(const c of u){let o=s.get(c.group||"Debugger");o||(o=[],s.set(c.group||"Debugger",o)),o.push(c)}return[...s.entries()].map(([c,o])=>q.jsx("optgroup",{label:c,children:o.filter(h=>(h.group||"Debugger")===c).map(h=>i(h))},c))}function Pv(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const We=ce.forwardRef(function({children:l,title:i="",icon:s,disabled:c=!1,toggled:o=!1,onClick:h=()=>{},style:m,testId:g,className:p,ariaLabel:w},v){return q.jsxs("button",{ref:v,className:_l(p,"toolbar-button",s,o&&"toggled"),onMouseDown:mg,onClick:h,onDoubleClick:mg,title:i,disabled:!!c,style:m,"data-testid":g,"aria-label":w||i,children:[s&&q.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l]})}),df=({style:u})=>q.jsx("div",{className:"toolbar-separator",style:u}),mg=u=>{u.stopPropagation(),u.preventDefault()};function e1(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0ms";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const i=l/60;if(i<60)return i.toFixed(1)+"m";const s=i/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}const Fe=function(u,l,i){return u>=l&&u<=i};function Et(u){return Fe(u,48,57)}function gg(u){return Et(u)||Fe(u,65,70)||Fe(u,97,102)}function t1(u){return Fe(u,65,90)}function n1(u){return Fe(u,97,122)}function l1(u){return t1(u)||n1(u)}function a1(u){return u>=128}function ru(u){return l1(u)||a1(u)||u===95}function pg(u){return ru(u)||Et(u)||u===45}function i1(u){return Fe(u,0,8)||u===11||Fe(u,14,31)||u===127}function fu(u){return u===10}function Nn(u){return fu(u)||u===9||u===32}const s1=1114111;class kf extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function u1(u){const l=[];for(let i=0;i<u.length;i++){let s=u.charCodeAt(i);if(s===13&&u.charCodeAt(i+1)===10&&(s=10,i++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Fe(s,55296,56319)&&Fe(u.charCodeAt(i+1),56320,57343)){const c=s-55296,o=u.charCodeAt(i+1)-56320;s=Math.pow(2,16)+c*Math.pow(2,10)+o,i++}l.push(s)}return l}function Pe(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,i=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(i)}function c1(u){const l=u1(u);let i=-1;const s=[];let c;const o=function(j){return j>=l.length?-1:l[j]},h=function(j){if(j===void 0&&(j=1),j>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+j)},m=function(j){return j===void 0&&(j=1),i+=j,c=o(i),!0},g=function(){return i-=1,!0},p=function(j){return j===void 0&&(j=c),j===-1},w=function(){if(v(),m(),Nn(c)){for(;Nn(h());)m();return new _f}else{if(c===34)return C();if(c===35)if(pg(h())||z(h(1),h(2))){const j=new Qg("");return K(h(1),h(2),h(3))&&(j.type="id"),j.value=G(),j}else return new rt(c);else return c===36?h()===61?(m(),new h1):new rt(c):c===39?C():c===40?new Yg:c===41?new $g:c===42?h()===61?(m(),new d1):new rt(c):c===43?V()?(g(),O()):new rt(c):c===44?new Rg:c===45?V()?(g(),O()):h(1)===45&&h(2)===62?(m(2),new jg):X()?(g(),A()):new rt(c):c===46?V()?(g(),O()):new rt(c):c===58?new Ug:c===59?new kg:c===60?h(1)===33&&h(2)===45&&h(3)===45?(m(3),new Lg):new rt(c):c===64?K(h(1),h(2),h(3))?new Vg(G()):new rt(c):c===91?new Hg:c===92?U()?(g(),A()):new rt(c):c===93?new xf:c===94?h()===61?(m(),new o1):new rt(c):c===123?new Bg:c===124?h()===61?(m(),new f1):h()===124?(m(),new Gg):new rt(c):c===125?new qg:c===126?h()===61?(m(),new r1):new rt(c):Et(c)?(g(),O()):ru(c)?(g(),A()):p()?new hu:new rt(c)}},v=function(){for(;h(1)===47&&h(2)===42;)for(m(2);;)if(m(),c===42&&h()===47){m();break}else if(p())return},O=function(){const j=Q();if(K(h(1),h(2),h(3))){const le=new m1;return le.value=j.value,le.repr=j.repr,le.type=j.type,le.unit=G(),le}else if(h()===37){m();const le=new Wg;return le.value=j.value,le.repr=j.repr,le}else{const le=new Jg;return le.value=j.value,le.repr=j.repr,le.type=j.type,le}},A=function(){const j=G();if(j.toLowerCase()==="url"&&h()===40){for(m();Nn(h(1))&&Nn(h(2));)m();return h()===34||h()===39?new du(j):Nn(h())&&(h(2)===34||h(2)===39)?new du(j):S()}else return h()===40?(m(),new du(j)):new Kg(j)},C=function(j){j===void 0&&(j=c);let le="";for(;m();){if(c===j||p())return new Xg(le);if(fu(c))return g(),new Dg;c===92?p(h())||(fu(h())?m():le+=Pe(T())):le+=Pe(c)}throw new Error("Internal error")},S=function(){const j=new Zg("");for(;Nn(h());)m();if(p(h()))return j;for(;m();){if(c===41||p())return j;if(Nn(c)){for(;Nn(h());)m();return h()===41||p(h())?(m(),j):(de(),new ou)}else{if(c===34||c===39||c===40||i1(c))return de(),new ou;if(c===92)if(U())j.value+=Pe(T());else return de(),new ou;else j.value+=Pe(c)}}throw new Error("Internal error")},T=function(){if(m(),gg(c)){const j=[c];for(let ze=0;ze<5&&gg(h());ze++)m(),j.push(c);Nn(h())&&m();let le=parseInt(j.map(function(ze){return String.fromCharCode(ze)}).join(""),16);return le>s1&&(le=65533),le}else return p()?65533:c},z=function(j,le){return!(j!==92||fu(le))},U=function(){return z(c,h())},K=function(j,le,ze){return j===45?ru(le)||le===45||z(le,ze):ru(j)?!0:j===92?z(j,le):!1},X=function(){return K(c,h(1),h(2))},W=function(j,le,ze){return j===43||j===45?!!(Et(le)||le===46&&Et(ze)):j===46?!!Et(le):!!Et(j)},V=function(){return W(c,h(1),h(2))},G=function(){let j="";for(;m();)if(pg(c))j+=Pe(c);else if(U())j+=Pe(T());else return g(),j;throw new Error("Internal parse error")},Q=function(){let j="",le="integer";for((h()===43||h()===45)&&(m(),j+=Pe(c));Et(h());)m(),j+=Pe(c);if(h(1)===46&&Et(h(2)))for(m(),j+=Pe(c),m(),j+=Pe(c),le="number";Et(h());)m(),j+=Pe(c);const ze=h(1),$e=h(2),R=h(3);if((ze===69||ze===101)&&Et($e))for(m(),j+=Pe(c),m(),j+=Pe(c),le="number";Et(h());)m(),j+=Pe(c);else if((ze===69||ze===101)&&($e===43||$e===45)&&Et(R))for(m(),j+=Pe(c),m(),j+=Pe(c),m(),j+=Pe(c),le="number";Et(h());)m(),j+=Pe(c);const Z=k(j);return{type:le,value:Z,repr:j}},k=function(j){return+j},de=function(){for(;m();){if(c===41||p())return;U()&&T()}};let fe=0;for(;!p(h());)if(s.push(w()),fe++,fe>l.length*2)throw new Error("I'm infinite-looping!");return s}class Ve{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dg extends Ve{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class ou extends Ve{constructor(){super(...arguments),this.tokenType="BADURL"}}class _f extends Ve{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Lg extends Ve{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class jg extends Ve{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class Ug extends Ve{constructor(){super(...arguments),this.tokenType=":"}}class kg extends Ve{constructor(){super(...arguments),this.tokenType=";"}}class Rg extends Ve{constructor(){super(...arguments),this.tokenType=","}}class xa extends Ve{constructor(){super(...arguments),this.value="",this.mirror=""}}class Bg extends xa{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class qg extends xa{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Hg extends xa{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class xf extends xa{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Yg extends xa{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class $g extends xa{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class r1 extends Ve{constructor(){super(...arguments),this.tokenType="~="}}class f1 extends Ve{constructor(){super(...arguments),this.tokenType="|="}}class o1 extends Ve{constructor(){super(...arguments),this.tokenType="^="}}class h1 extends Ve{constructor(){super(...arguments),this.tokenType="$="}}class d1 extends Ve{constructor(){super(...arguments),this.tokenType="*="}}class Gg extends Ve{constructor(){super(...arguments),this.tokenType="||"}}class hu extends Ve{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class rt extends Ve{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Pe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
|
|
51
|
+
`:this.value}}class Ma extends Ve{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Kg extends Ma{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ri(this.value)}}class du extends Ma{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ri(this.value)+"("}}class Vg extends Ma{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ri(this.value)}}class Qg extends Ma{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ri(this.value):"#"+g1(this.value)}}class Xg extends Ma{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Fg(this.value)+'"'}}class Zg extends Ma{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Fg(this.value)+'")'}}class Jg extends Ve{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class Wg extends Ve{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class m1 extends Ve{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let i=Ri(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||Fe(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),l+i}}function Ri(u){u=""+u;let l="";const i=u.charCodeAt(0);for(let s=0;s<u.length;s++){const c=u.charCodeAt(s);if(c===0)throw new kf("Invalid character: the input contains U+0000.");Fe(c,1,31)||c===127||s===0&&Fe(c,48,57)||s===1&&Fe(c,48,57)&&i===45?l+="\\"+c.toString(16)+" ":c>=128||c===45||c===95||Fe(c,48,57)||Fe(c,65,90)||Fe(c,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function g1(u){u=""+u;let l="";for(let i=0;i<u.length;i++){const s=u.charCodeAt(i);if(s===0)throw new kf("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Fe(s,48,57)||Fe(s,65,90)||Fe(s,97,122)?l+=u[i]:l+="\\"+s.toString(16)+" "}return l}function Fg(u){u=""+u;let l="";for(let i=0;i<u.length;i++){const s=u.charCodeAt(i);if(s===0)throw new kf("Invalid character: the input contains U+0000.");Fe(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[i]:l+=u[i]}return l}class wt extends Error{}function p1(u,l){let i;try{i=c1(u),i[i.length-1]instanceof hu||i.push(new hu)}catch(k){const de=k.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,fe=(k.stack||"").indexOf(k.message);throw fe!==-1&&(k.stack=k.stack.substring(0,fe)+de+k.stack.substring(fe+k.message.length)),k.message=de,k}const s=i.find(k=>k instanceof Vg||k instanceof Dg||k instanceof ou||k instanceof Gg||k instanceof Lg||k instanceof jg||k instanceof kg||k instanceof Bg||k instanceof qg||k instanceof Zg||k instanceof Wg);if(s)throw new wt(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let c=0;const o=new Set;function h(){return new wt(`Unexpected token "${i[c].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function m(){for(;i[c]instanceof _f;)c++}function g(k=c){return i[k]instanceof Kg}function p(k=c){return i[k]instanceof Xg}function w(k=c){return i[k]instanceof Jg}function v(k=c){return i[k]instanceof Rg}function O(k=c){return i[k]instanceof Yg}function A(k=c){return i[k]instanceof $g}function C(k=c){return i[k]instanceof du}function S(k=c){return i[k]instanceof rt&&i[k].value==="*"}function T(k=c){return i[k]instanceof hu}function z(k=c){return i[k]instanceof rt&&[">","+","~"].includes(i[k].value)}function U(k=c){return v(k)||A(k)||T(k)||z(k)||i[k]instanceof _f}function K(){const k=[X()];for(;m(),!!v();)c++,k.push(X());return k}function X(){return m(),w()||p()?i[c++].value:W()}function W(){const k={simples:[]};for(m(),z()?k.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):k.simples.push({selector:V(),combinator:""});;){if(m(),z())k.simples[k.simples.length-1].combinator=i[c++].value,m();else if(U())break;k.simples.push({combinator:"",selector:V()})}return k}function V(){let k="";const de=[];for(;!U();)if(g()||S())k+=i[c++].toSource();else if(i[c]instanceof Qg)k+=i[c++].toSource();else if(i[c]instanceof rt&&i[c].value===".")if(c++,g())k+="."+i[c++].toSource();else throw h();else if(i[c]instanceof Ug)if(c++,g())if(!l.has(i[c].value.toLowerCase()))k+=":"+i[c++].toSource();else{const fe=i[c++].value.toLowerCase();de.push({name:fe,args:[]}),o.add(fe)}else if(C()){const fe=i[c++].value.toLowerCase();if(l.has(fe)?(de.push({name:fe,args:K()}),o.add(fe)):k+=`:${fe}(${G()})`,m(),!A())throw h();c++}else throw h();else if(i[c]instanceof Hg){for(k+="[",c++;!(i[c]instanceof xf)&&!T();)k+=i[c++].toSource();if(!(i[c]instanceof xf))throw h();k+="]",c++}else throw h();if(!k&&!de.length)throw h();return{css:k||void 0,functions:de}}function G(){let k="",de=1;for(;!T()&&((O()||C())&&de++,A()&&de--,!!de);)k+=i[c++].toSource();return k}const Q=K();if(!T())throw h();if(Q.some(k=>typeof k!="object"||!("simples"in k)))throw new wt(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:Q,names:Array.from(o)}}const yg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),y1=new Set(["left-of","right-of","above","below","near"]),v1=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Ig(u){const l=S1(u),i=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const c=p1(s.body,v1);i.push({name:"css",body:c.selector,source:s.body});continue}if(yg.has(s.name)){let c,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new wt(`Malformed selector: ${s.name}=`+s.body);if(c=p[0],p.length===2){if(typeof p[1]!="number"||!y1.has(s.name))throw new wt(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new wt(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Ig(c),distance:o}},m=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),g=m?h.body.parsed.parts.indexOf(m):-1;g!==-1&&b1(h.body.parsed.parts.slice(0,g+1),i.slice(0,g+1))&&h.body.parsed.parts.splice(0,g+1),i.push(h);continue}i.push({...s,source:s.body})}if(yg.has(i[0].name))throw new wt(`"${i[0].name}" selector cannot be first`);return{capture:l.capture,parts:i}}function b1(u,l){return ba({parts:u})===ba({parts:l})}function ba(u,l){return typeof u=="string"?u:u.parts.map((i,s)=>{let c=!0;!l&&s!==u.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(c=!1);const o=c?i.name+"=":"";return`${s===u.capture?"*":""}${o}${i.source}`}).join(" >> ")}function S1(u){let l=0,i,s=0;const c={parts:[]},o=()=>{const m=u.substring(s,l).trim(),g=m.indexOf("=");let p,w;g!==-1&&m.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=m.substring(0,g).trim(),w=m.substring(g+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(p="text",w=m):/^\(*\/\//.test(m)||m.startsWith("..")?(p="xpath",w=m):(p="css",w=m);let v=!1;if(p[0]==="*"&&(v=!0,p=p.substring(1)),c.parts.push({name:p,body:w}),v){if(c.capture!==void 0)throw new wt("Only one of the selectors can capture using * modifier");c.capture=c.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),c;const h=()=>{const g=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!g&&!!g[1]};for(;l<u.length;){const m=u[l];m==="\\"&&l+1<u.length?l+=2:m===i?(i=void 0,l++):!i&&(m==='"'||m==="'"||m==="`")&&!h()?(i=m,l++):!i&&m===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),c}function mf(u,l){let i=0,s=u.length===0;const c=()=>u[i]||"",o=()=>{const T=c();return++i,s=i>=u.length,T},h=T=>{throw s?new wt(`Unexpected end of selector while parsing selector \`${u}\``):new wt(`Error while parsing selector \`${u}\` - unexpected symbol "${c()}" at position ${i}`+(T?" during "+T:""))};function m(){for(;!s&&/\s/.test(c());)o()}function g(T){return T>=""||T>="0"&&T<="9"||T>="A"&&T<="Z"||T>="a"&&T<="z"||T>="0"&&T<="9"||T==="_"||T==="-"}function p(){let T="";for(m();!s&&g(c());)T+=o();return T}function w(T){let z=o();for(z!==T&&h("parsing quoted string");!s&&c()!==T;)c()==="\\"&&o(),z+=o();return c()!==T&&h("parsing quoted string"),z+=o(),z}function v(){o()!=="/"&&h("parsing regular expression");let T="",z=!1;for(;!s;){if(c()==="\\")T+=o(),s&&h("parsing regular expression");else if(z&&c()==="]")z=!1;else if(!z&&c()==="[")z=!0;else if(!z&&c()==="/")break;T+=o()}o()!=="/"&&h("parsing regular expression");let U="";for(;!s&&c().match(/[dgimsuy]/);)U+=o();try{return new RegExp(T,U)}catch(K){throw new wt(`Error while parsing selector \`${u}\`: ${K.message}`)}}function O(){let T="";return m(),c()==="'"||c()==='"'?T=w(c()).slice(1,-1):T=p(),T||h("parsing property path"),T}function A(){m();let T="";return s||(T+=o()),!s&&T!=="="&&(T+=o()),["=","*=","^=","$=","|=","~="].includes(T)||h("parsing operator"),T}function C(){o();const T=[];for(T.push(O()),m();c()===".";)o(),T.push(O()),m();if(c()==="]")return o(),{name:T.join("."),jsonPath:T,op:"<truthy>",value:null,caseSensitive:!1};const z=A();let U,K=!0;if(m(),c()==="/"){if(z!=="=")throw new wt(`Error while parsing selector \`${u}\` - cannot use ${z} in attribute with regular expression`);U=v()}else if(c()==="'"||c()==='"')U=w(c()).slice(1,-1),m(),c()==="i"||c()==="I"?(K=!1,o()):(c()==="s"||c()==="S")&&(K=!0,o());else{for(U="";!s&&(g(c())||c()==="+"||c()===".");)U+=o();U==="true"?U=!0:U==="false"&&(U=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),o(),z!=="="&&typeof U!="string")throw new wt(`Error while parsing selector \`${u}\` - cannot use ${z} in attribute with non-string matching value - ${U}`);return{name:T.join("."),jsonPath:T,op:z,value:U,caseSensitive:K}}const S={name:"",attributes:[]};for(S.name=p(),m();c()==="[";)S.attributes.push(C()),m();if(s||h(void 0),!S.name&&!S.attributes.length)throw new wt(`Error while parsing selector \`${u}\` - selector cannot be empty`);return S}function Nu(u,l="'"){const i=JSON.stringify(u),s=i.substring(1,i.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function bu(u){return u.charAt(0).toUpperCase()+u.substring(1)}function Pg(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Ou(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function ep(u,l,i=!1){return T1(u,l,i,1)[0]}function T1(u,l,i=!1,s=20,c){try{return va(new x1[u](c),Ig(l),i,s)}catch{return[l]}}function va(u,l,i=!1,s=20){const c=[...l.parts],o=[];let h=i?"frame-locator":"page";for(let m=0;m<c.length;m++){const g=c[m],p=h;if(h="locator",g.name==="internal:describe")continue;if(g.name==="nth"){g.body==="0"?o.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):g.body==="-1"?o.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):o.push([u.generateLocator(p,"nth",g.body)]);continue}if(g.name==="visible"){o.push([u.generateLocator(p,"visible",g.body),u.generateLocator(p,"default",`visible=${g.body}`)]);continue}if(g.name==="internal:text"){const{exact:C,text:S}=Ci(g.body);o.push([u.generateLocator(p,"text",S,{exact:C})]);continue}if(g.name==="internal:has-text"){const{exact:C,text:S}=Ci(g.body);if(!C){o.push([u.generateLocator(p,"has-text",S,{exact:C})]);continue}}if(g.name==="internal:has-not-text"){const{exact:C,text:S}=Ci(g.body);if(!C){o.push([u.generateLocator(p,"has-not-text",S,{exact:C})]);continue}}if(g.name==="internal:has"){const C=va(u,g.body.parsed,!1,s);o.push(C.map(S=>u.generateLocator(p,"has",S)));continue}if(g.name==="internal:has-not"){const C=va(u,g.body.parsed,!1,s);o.push(C.map(S=>u.generateLocator(p,"hasNot",S)));continue}if(g.name==="internal:and"){const C=va(u,g.body.parsed,!1,s);o.push(C.map(S=>u.generateLocator(p,"and",S)));continue}if(g.name==="internal:or"){const C=va(u,g.body.parsed,!1,s);o.push(C.map(S=>u.generateLocator(p,"or",S)));continue}if(g.name==="internal:chain"){const C=va(u,g.body.parsed,!1,s);o.push(C.map(S=>u.generateLocator(p,"chain",S)));continue}if(g.name==="internal:label"){const{exact:C,text:S}=Ci(g.body);o.push([u.generateLocator(p,"label",S,{exact:C})]);continue}if(g.name==="internal:role"){const C=mf(g.body),S={attrs:[]};for(const T of C.attributes)T.name==="name"?(S.exact=T.caseSensitive,S.name=T.value):(T.name==="level"&&typeof T.value=="string"&&(T.value=+T.value),S.attrs.push({name:T.name==="include-hidden"?"includeHidden":T.name,value:T.value}));o.push([u.generateLocator(p,"role",C.name,S)]);continue}if(g.name==="internal:testid"){const C=mf(g.body),{value:S}=C.attributes[0];o.push([u.generateLocator(p,"test-id",S)]);continue}if(g.name==="internal:attr"){const C=mf(g.body),{name:S,value:T,caseSensitive:z}=C.attributes[0],U=T,K=!!z;if(S==="placeholder"){o.push([u.generateLocator(p,"placeholder",U,{exact:K})]);continue}if(S==="alt"){o.push([u.generateLocator(p,"alt",U,{exact:K})]);continue}if(S==="title"){o.push([u.generateLocator(p,"title",U,{exact:K})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const C=o[o.length-1],S=c[m-1],T=C.map(z=>u.chainLocators([z,u.generateLocator(p,"frame","")]));["xpath","css"].includes(S.name)&&T.push(u.generateLocator(p,"frame-locator",ba({parts:[S]})),u.generateLocator(p,"frame-locator",ba({parts:[S]},!0))),C.splice(0,C.length,...T),h="frame-locator";continue}const w=c[m+1],v=ba({parts:[g]}),O=u.generateLocator(p,"default",v);if(w&&["internal:has-text","internal:has-not-text"].includes(w.name)){const{exact:C,text:S}=Ci(w.body);if(!C){const T=u.generateLocator("locator",w.name==="internal:has-text"?"has-text":"has-not-text",S,{exact:C}),z={};w.name==="internal:has-text"?z.hasText=S:z.hasNotText=S;const U=u.generateLocator(p,"default",v,z);o.push([u.chainLocators([O,T]),U]),m++;continue}}let A;if(["xpath","css"].includes(g.name)){const C=ba({parts:[g]},!0);A=u.generateLocator(p,"default",C)}o.push([O,A].filter(Boolean))}return E1(u,o,s)}function E1(u,l,i){const s=l.map(()=>""),c=[],o=h=>{if(h===l.length)return c.push(u.chainLocators(s)),c.length<i;for(const m of l[h])if(s[h]=m,!o(h+1))return!1;return!0};return o(0),c}function Ci(u){let l=!1;const i=u.match(/^\/(.*)\/([igm]*)$/);return i?{text:new RegExp(i[1],i[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class w1{constructor(l){this.preferredQuote=l}generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(c.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];ut(c.name)?o.push(`name: ${this.regexToSourceString(c.name)}`):typeof c.name=="string"&&(o.push(`name: ${this.quote(c.name)}`),c.exact&&o.push("exact: true"));for(const{name:m,value:g}of c.attrs)o.push(`${m}: ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!c.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("getByLabel",s,!!c.exact);case"title":return this.toCallWithExact("getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return Ou(String(l))}toCallWithExact(l,i,s){return ut(i)?`${l}(${this.regexToSourceString(i)})`:s?`${l}(${this.quote(i)}, { exact: true })`:`${l}(${this.quote(i)})`}toHasText(l){return ut(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return ut(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return Nu(l,this.preferredQuote??"'")}}class A1{generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(c.hasText)})`:c.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(c.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];ut(c.name)?o.push(`name=${this.regexToString(c.name)}`):typeof c.name=="string"&&(o.push(`name=${this.quote(c.name)}`),c.exact&&o.push("exact=True"));for(const{name:m,value:g}of c.attrs){let p=typeof g=="string"?this.quote(g):g;typeof g=="boolean"&&(p=g?"True":"False"),o.push(`${Pg(m)}=${p}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!c.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!c.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!c.exact);case"label":return this.toCallWithExact("get_by_label",s,!!c.exact);case"title":return this.toCallWithExact("get_by_title",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${Ou(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${i})`}toCallWithExact(l,i,s){return ut(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, exact=True)`:`${l}(${this.quote(i)})`}toHasText(l){return ut(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return ut(l)?this.regexToString(l):this.quote(l)}quote(l){return Nu(l,'"')}}class N1{generateLocator(l,i,s,c={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(i){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(c.hasText)}))`:c.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(c.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];ut(c.name)?h.push(`.setName(${this.regexToString(c.name)})`):typeof c.name=="string"&&(h.push(`.setName(${this.quote(c.name)})`),c.exact&&h.push(".setExact(true)"));for(const{name:g,value:p}of c.attrs)h.push(`.set${bu(g)}(${typeof p=="string"?this.quote(p):p})`);const m=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${Pg(s).toUpperCase()}${m})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!c.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!c.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(Ou(l.source))}${i})`}toCallWithExact(l,i,s,c){return ut(s)?`${i}(${this.regexToString(s)})`:c?`${i}(${this.quote(s)}, new ${l}.${bu(i)}Options().setExact(true))`:`${i}(${this.quote(s)})`}toHasText(l){return ut(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return ut(l)?this.regexToString(l):this.quote(l)}quote(l){return Nu(l,'"')}}class O1{generateLocator(l,i,s,c={}){switch(i){case"default":return c.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(c.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];ut(c.name)?o.push(`NameRegex = ${this.regexToString(c.name)}`):typeof c.name=="string"&&(o.push(`Name = ${this.quote(c.name)}`),c.exact&&o.push("Exact = true"));for(const{name:m,value:g}of c.attrs)o.push(`${bu(m)} = ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${bu(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!c.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!c.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(l){return l.join(".")}regexToString(l){const i=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(Ou(l.source))}${i})`}toCallWithExact(l,i,s){return ut(i)?`${l}(${this.regexToString(i)})`:s?`${l}(${this.quote(i)}, new() { Exact = true })`:`${l}(${this.quote(i)})`}toHasText(l){return ut(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return ut(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return ut(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return Nu(l,'"')}}class _1{generateLocator(l,i,s,c={}){return JSON.stringify({kind:i,body:s,options:c})}chainLocators(l){const i=l.map(s=>JSON.parse(s));for(let s=0;s<i.length-1;++s)i[s].next=i[s+1];return JSON.stringify(i[0])}}const x1={javascript:w1,python:A1,java:N1,csharp:O1,jsonl:_1};function ut(u){return u instanceof RegExp}const M1=({language:u,log:l})=>{const i=ce.useRef(null),[s,c]=ce.useState(new Map);return ce.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=i.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[i,l]),q.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),m=typeof h=="boolean"?h:o.status!=="done",g=o.params.selector?ep(u,o.params.selector):null;let p=o.title,w="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",w=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",w=`.${o.title.substring(8)}()`):(g||o.params.url)&&(p=o.title+"(",w=")"),q.jsxs("div",{className:_l("call-log-call",o.status),children:[q.jsxs("div",{className:"call-log-call-header",children:[q.jsx("span",{className:_l("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(s);v.set(o.id,!m),c(v)}}),p,o.params.url?q.jsx("span",{className:"call-log-details",children:q.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,g?q.jsx("span",{className:"call-log-details",children:q.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,w,q.jsx("span",{className:_l("codicon",C1(o))}),typeof o.duration=="number"?q.jsxs("span",{className:"call-log-time",children:["— ",e1(o.duration)]}):void 0]}),(m?o.messages:[]).map((v,O)=>q.jsx("div",{className:"call-log-message",children:v.trim()},O)),!!o.error&&q.jsx("div",{className:"call-log-message error",hidden:!m,children:o.error})]},o.id)}),q.jsx("div",{ref:i})]})};function C1(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Rf=Symbol.for("yaml.alias"),Mf=Symbol.for("yaml.document"),el=Symbol.for("yaml.map"),tp=Symbol.for("yaml.pair"),sn=Symbol.for("yaml.scalar"),Ca=Symbol.for("yaml.seq"),Zt=Symbol.for("yaml.node.type"),Ml=u=>!!u&&typeof u=="object"&&u[Zt]===Rf,Cl=u=>!!u&&typeof u=="object"&&u[Zt]===Mf,za=u=>!!u&&typeof u=="object"&&u[Zt]===el,Re=u=>!!u&&typeof u=="object"&&u[Zt]===tp,Le=u=>!!u&&typeof u=="object"&&u[Zt]===sn,Da=u=>!!u&&typeof u=="object"&&u[Zt]===Ca;function Be(u){if(u&&typeof u=="object")switch(u[Zt]){case el:case Ca:return!0}return!1}function qe(u){if(u&&typeof u=="object")switch(u[Zt]){case Rf:case el:case sn:case Ca:return!0}return!1}const z1=u=>(Le(u)||Be(u))&&!!u.anchor,At=Symbol("break visit"),np=Symbol("skip children"),an=Symbol("remove node");function tl(u,l){const i=lp(l);Cl(u)?Sa(null,u.contents,i,Object.freeze([u]))===an&&(u.contents=null):Sa(null,u,i,Object.freeze([]))}tl.BREAK=At;tl.SKIP=np;tl.REMOVE=an;function Sa(u,l,i,s){const c=ap(u,l,i,s);if(qe(c)||Re(c))return ip(u,s,c),Sa(u,c,i,s);if(typeof c!="symbol"){if(Be(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=Sa(o,l.items[o],i,s);if(typeof h=="number")o=h-1;else{if(h===At)return At;h===an&&(l.items.splice(o,1),o-=1)}}}else if(Re(l)){s=Object.freeze(s.concat(l));const o=Sa("key",l.key,i,s);if(o===At)return At;o===an&&(l.key=null);const h=Sa("value",l.value,i,s);if(h===At)return At;h===an&&(l.value=null)}}return c}async function _u(u,l){const i=lp(l);Cl(u)?await Ta(null,u.contents,i,Object.freeze([u]))===an&&(u.contents=null):await Ta(null,u,i,Object.freeze([]))}_u.BREAK=At;_u.SKIP=np;_u.REMOVE=an;async function Ta(u,l,i,s){const c=await ap(u,l,i,s);if(qe(c)||Re(c))return ip(u,s,c),Ta(u,c,i,s);if(typeof c!="symbol"){if(Be(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await Ta(o,l.items[o],i,s);if(typeof h=="number")o=h-1;else{if(h===At)return At;h===an&&(l.items.splice(o,1),o-=1)}}}else if(Re(l)){s=Object.freeze(s.concat(l));const o=await Ta("key",l.key,i,s);if(o===At)return At;o===an&&(l.key=null);const h=await Ta("value",l.value,i,s);if(h===At)return At;h===an&&(l.value=null)}}return c}function lp(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function ap(u,l,i,s){var c,o,h,m,g;if(typeof i=="function")return i(u,l,s);if(za(l))return(c=i.Map)==null?void 0:c.call(i,u,l,s);if(Da(l))return(o=i.Seq)==null?void 0:o.call(i,u,l,s);if(Re(l))return(h=i.Pair)==null?void 0:h.call(i,u,l,s);if(Le(l))return(m=i.Scalar)==null?void 0:m.call(i,u,l,s);if(Ml(l))return(g=i.Alias)==null?void 0:g.call(i,u,l,s)}function ip(u,l,i){const s=l[l.length-1];if(Be(s))s.items[u]=i;else if(Re(s))u==="key"?s.key=i:s.value=i;else if(Cl(s))s.contents=i;else{const c=Ml(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const D1={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},L1=u=>u.replace(/[!,[\]{}]/g,l=>D1[l]);class ht{constructor(l,i){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ht.defaultYaml,l),this.tags=Object.assign({},ht.defaultTags,i)}clone(){const l=new ht(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ht(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ht.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ht.defaultTags);break}return l}add(l,i){this.atNextDocument&&(this.yaml={explicit:ht.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ht.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),c=s.shift();switch(c){case"%TAG":{if(s.length!==2&&(i(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return i(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return i(6,`Unsupported YAML version ${o}`,h),!1}}default:return i(0,`Unknown directive ${c}`,!0),!1}}tagName(l,i){if(l==="!")return"!";if(l[0]!=="!")return i(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(i(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&i("Verbatim tags must end with a >"),h)}const[,s,c]=l.match(/^(.*!)([^!]*)$/s);c||i(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(c)}catch(h){return i(String(h)),null}return s==="!"?l:(i(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[i,s]of Object.entries(this.tags))if(l.startsWith(s))return i+L1(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const i=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let c;if(l&&s.length>0&&qe(l.contents)){const o={};tl(l.contents,(h,m)=>{qe(m)&&m.tag&&(o[m.tag]=!0)}),c=Object.keys(o)}else c=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&i.push(`%TAG ${o} ${h}`);return i.join(`
|
|
52
|
+
`)}}ht.defaultYaml={explicit:!1,version:"1.2"};ht.defaultTags={"!!":"tag:yaml.org,2002:"};function sp(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const i=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(i)}return!0}function up(u){const l=new Set;return tl(u,{Value(i,s){s.anchor&&l.add(s.anchor)}}),l}function cp(u,l){for(let i=1;;++i){const s=`${u}${i}`;if(!l.has(s))return s}}function j1(u,l){const i=[],s=new Map;let c=null;return{onAnchor:o=>{i.push(o),c||(c=up(u));const h=cp(l,c);return c.add(h),h},setAnchors:()=>{for(const o of i){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(Le(h.node)||Be(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=o,m}}},sourceObjects:s}}function Ea(u,l,i,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let c=0,o=s.length;c<o;++c){const h=s[c],m=Ea(u,s,String(c),h);m===void 0?delete s[c]:m!==h&&(s[c]=m)}else if(s instanceof Map)for(const c of Array.from(s.keys())){const o=s.get(c),h=Ea(u,s,c,o);h===void 0?s.delete(c):h!==o&&s.set(c,h)}else if(s instanceof Set)for(const c of Array.from(s)){const o=Ea(u,s,c,c);o===void 0?s.delete(c):o!==c&&(s.delete(c),s.add(o))}else for(const[c,o]of Object.entries(s)){const h=Ea(u,s,c,o);h===void 0?delete s[c]:h!==o&&(s[c]=h)}return u.call(l,i,s)}function Xt(u,l,i){if(Array.isArray(u))return u.map((s,c)=>Xt(s,String(c),i));if(u&&typeof u.toJSON=="function"){if(!i||!z1(u))return u.toJSON(l,i);const s={aliasCount:0,count:1,res:void 0};i.anchors.set(u,s),i.onCreate=o=>{s.res=o,delete i.onCreate};const c=u.toJSON(l,i);return i.onCreate&&i.onCreate(c),c}return typeof u=="bigint"&&!(i!=null&&i.keep)?Number(u):u}class Bf{constructor(l){Object.defineProperty(this,Zt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:i,maxAliasCount:s,onAnchor:c,reviver:o}={}){if(!Cl(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},m=Xt(this,"",h);if(typeof c=="function")for(const{count:g,res:p}of h.anchors.values())c(p,g);return typeof o=="function"?Ea(o,{"":m},"",m):m}}class xu extends Bf{constructor(l){super(Rf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l){let i;return tl(l,{Node:(s,c)=>{if(c===this)return tl.BREAK;c.anchor===this.source&&(i=c)}}),i}toJSON(l,i){if(!i)return{source:this.source};const{anchors:s,doc:c,maxAliasCount:o}=i,h=this.resolve(c);if(!h){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let m=s.get(h);if(m||(Xt(h,null,i),m=s.get(h)),!m||m.res===void 0){const g="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(g)}if(o>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=mu(c,h,s)),m.count*m.aliasCount>o)){const g="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(g)}return m.res}toString(l,i,s){const c=`*${this.source}`;if(l){if(sp(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${c} `}return c}}function mu(u,l,i){if(Ml(l)){const s=l.resolve(u),c=i&&s&&i.get(s);return c?c.count*c.aliasCount:0}else if(Be(l)){let s=0;for(const c of l.items){const o=mu(u,c,i);o>s&&(s=o)}return s}else if(Re(l)){const s=mu(u,l.key,i),c=mu(u,l.value,i);return Math.max(s,c)}return 1}const rp=u=>!u||typeof u!="function"&&typeof u!="object";class re extends Bf{constructor(l){super(sn),this.value=l}toJSON(l,i){return i!=null&&i.keep?this.value:Xt(this.value,l,i)}toString(){return String(this.value)}}re.BLOCK_FOLDED="BLOCK_FOLDED";re.BLOCK_LITERAL="BLOCK_LITERAL";re.PLAIN="PLAIN";re.QUOTE_DOUBLE="QUOTE_DOUBLE";re.QUOTE_SINGLE="QUOTE_SINGLE";const U1="tag:yaml.org,2002:";function k1(u,l,i){if(l){const s=i.filter(o=>o.tag===l),c=s.find(o=>!o.format)??s[0];if(!c)throw new Error(`Tag ${l} not found`);return c}return i.find(s=>{var c;return((c=s.identify)==null?void 0:c.call(s,u))&&!s.format})}function ji(u,l,i){var v,O,A;if(Cl(u)&&(u=u.contents),qe(u))return u;if(Re(u)){const C=(O=(v=i.schema[el]).createNode)==null?void 0:O.call(v,i.schema,null,i);return C.items.push(u),C}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:c,onTagObj:o,schema:h,sourceObjects:m}=i;let g;if(s&&u&&typeof u=="object"){if(g=m.get(u),g)return g.anchor||(g.anchor=c(u)),new xu(g.anchor);g={anchor:null,node:null},m.set(u,g)}l!=null&&l.startsWith("!!")&&(l=U1+l.slice(2));let p=k1(u,l,h.tags);if(!p){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const C=new re(u);return g&&(g.node=C),C}p=u instanceof Map?h[el]:Symbol.iterator in Object(u)?h[Ca]:h[el]}o&&(o(p),delete i.onTagObj);const w=p!=null&&p.createNode?p.createNode(i.schema,u,i):typeof((A=p==null?void 0:p.nodeClass)==null?void 0:A.from)=="function"?p.nodeClass.from(i.schema,u,i):new re(u);return l?w.tag=l:p.default||(w.tag=p.tag),g&&(g.node=w),w}function Su(u,l,i){let s=i;for(let c=l.length-1;c>=0;--c){const o=l[c];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=s,s=h}else s=new Map([[o,s]])}return ji(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:u,sourceObjects:new Map})}const Di=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class fp extends Bf{constructor(l,i){super(l),Object.defineProperty(this,"schema",{value:i,configurable:!0,enumerable:!1,writable:!0})}clone(l){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(i.schema=l),i.items=i.items.map(s=>qe(s)||Re(s)?s.clone(l):s),this.range&&(i.range=this.range.slice()),i}addIn(l,i){if(Di(l))this.add(i);else{const[s,...c]=l,o=this.get(s,!0);if(Be(o))o.addIn(c,i);else if(o===void 0&&this.schema)this.set(s,Su(this.schema,c,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}deleteIn(l){const[i,...s]=l;if(s.length===0)return this.delete(i);const c=this.get(i,!0);if(Be(c))return c.deleteIn(s);throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`)}getIn(l,i){const[s,...c]=l,o=this.get(s,!0);return c.length===0?!i&&Le(o)?o.value:o:Be(o)?o.getIn(c,i):void 0}hasAllNullValues(l){return this.items.every(i=>{if(!Re(i))return!1;const s=i.value;return s==null||l&&Le(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(l){const[i,...s]=l;if(s.length===0)return this.has(i);const c=this.get(i,!0);return Be(c)?c.hasIn(s):!1}setIn(l,i){const[s,...c]=l;if(c.length===0)this.set(s,i);else{const o=this.get(s,!0);if(Be(o))o.setIn(c,i);else if(o===void 0&&this.schema)this.set(s,Su(this.schema,c,i));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}}const R1=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function On(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const Al=(u,l,i)=>u.endsWith(`
|
|
53
|
+
`)?On(i,l):i.includes(`
|
|
54
|
+
`)?`
|
|
55
|
+
`+On(i,l):(u.endsWith(" ")?"":" ")+i,op="flow",Cf="block",gu="quoted";function Mu(u,l,i="flow",{indentAtStart:s,lineWidth:c=80,minContentWidth:o=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return u;c<o&&(o=0);const g=Math.max(1+o,1+c-l.length);if(u.length<=g)return u;const p=[],w={};let v=c-l.length;typeof s=="number"&&(s>c-Math.max(2,o)?p.push(0):v=c-s);let O,A,C=!1,S=-1,T=-1,z=-1;i===Cf&&(S=vg(u,S,l.length),S!==-1&&(v=S+g));for(let K;K=u[S+=1];){if(i===gu&&K==="\\"){switch(T=S,u[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}z=S}if(K===`
|
|
56
|
+
`)i===Cf&&(S=vg(u,S,l.length)),v=S+l.length+g,O=void 0;else{if(K===" "&&A&&A!==" "&&A!==`
|
|
57
|
+
`&&A!==" "){const X=u[S+1];X&&X!==" "&&X!==`
|
|
58
|
+
`&&X!==" "&&(O=S)}if(S>=v)if(O)p.push(O),v=O+g,O=void 0;else if(i===gu){for(;A===" "||A===" ";)A=K,K=u[S+=1],C=!0;const X=S>z+1?S-2:T-1;if(w[X])return u;p.push(X),w[X]=!0,v=X+g,O=void 0}else C=!0}A=K}if(C&&m&&m(),p.length===0)return u;h&&h();let U=u.slice(0,p[0]);for(let K=0;K<p.length;++K){const X=p[K],W=p[K+1]||u.length;X===0?U=`
|
|
59
|
+
${l}${u.slice(0,W)}`:(i===gu&&w[X]&&(U+=`${u[X]}\\`),U+=`
|
|
60
|
+
${l}${u.slice(X+1,W)}`)}return U}function vg(u,l,i){let s=l,c=l+1,o=u[c];for(;o===" "||o===" ";)if(l<c+i)o=u[++l];else{do o=u[++l];while(o&&o!==`
|
|
61
|
+
`);s=l,c=l+1,o=u[c]}return s}const Cu=(u,l)=>({indentAtStart:l?u.indent.length:u.indentAtStart,lineWidth:u.options.lineWidth,minContentWidth:u.options.minContentWidth}),zu=u=>/^(%|---|\.\.\.)/m.test(u);function B1(u,l,i){if(!l||l<0)return!1;const s=l-i,c=u.length;if(c<=s)return!1;for(let o=0,h=0;o<c;++o)if(u[o]===`
|
|
62
|
+
`){if(o-h>s)return!0;if(h=o+1,c-h<=s)return!1}return!0}function Li(u,l){const i=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return i;const{implicitKey:s}=l,c=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(zu(u)?" ":"");let h="",m=0;for(let g=0,p=i[g];p;p=i[++g])if(p===" "&&i[g+1]==="\\"&&i[g+2]==="n"&&(h+=i.slice(m,g)+"\\ ",g+=1,m=g,p="\\"),p==="\\")switch(i[g+1]){case"u":{h+=i.slice(m,g);const w=i.substr(g+2,4);switch(w){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:w.substr(0,2)==="00"?h+="\\x"+w.substr(2):h+=i.substr(g,6)}g+=5,m=g+1}break;case"n":if(s||i[g+2]==='"'||i.length<c)g+=1;else{for(h+=i.slice(m,g)+`
|
|
63
|
+
|
|
64
|
+
`;i[g+2]==="\\"&&i[g+3]==="n"&&i[g+4]!=='"';)h+=`
|
|
65
|
+
`,g+=2;h+=o,i[g+2]===" "&&(h+="\\"),g+=1,m=g+1}break;default:g+=1}return h=m?h+i.slice(m):i,s?h:Mu(h,o,gu,Cu(l,!1))}function zf(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
|
|
66
|
+
`)||/[ \t]\n|\n[ \t]/.test(u))return Li(u,l);const i=l.indent||(zu(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
67
|
+
${i}`)+"'";return l.implicitKey?s:Mu(s,i,op,Cu(l,!1))}function wa(u,l){const{singleQuote:i}=l.options;let s;if(i===!1)s=Li;else{const c=u.includes('"'),o=u.includes("'");c&&!o?s=zf:o&&!c?s=Li:s=i?zf:Li}return s(u,l)}let Df;try{Df=new RegExp(`(^|(?<!
|
|
68
|
+
))
|
|
69
|
+
+(?!
|
|
70
|
+
|$)`,"g")}catch{Df=/\n+(?!\n|$)/g}function pu({comment:u,type:l,value:i},s,c,o){const{blockQuote:h,commentString:m,lineWidth:g}=s.options;if(!h||/\n[\t ]+$/.test(i)||/^\s*$/.test(i))return wa(i,s);const p=s.indent||(s.forceBlockIndent||zu(i)?" ":""),w=h==="literal"?!0:h==="folded"||l===re.BLOCK_FOLDED?!1:l===re.BLOCK_LITERAL?!0:!B1(i,g,p.length);if(!i)return w?`|
|
|
71
|
+
`:`>
|
|
72
|
+
`;let v,O;for(O=i.length;O>0;--O){const V=i[O-1];if(V!==`
|
|
73
|
+
`&&V!==" "&&V!==" ")break}let A=i.substring(O);const C=A.indexOf(`
|
|
74
|
+
`);C===-1?v="-":i===A||C!==A.length-1?(v="+",o&&o()):v="",A&&(i=i.slice(0,-A.length),A[A.length-1]===`
|
|
75
|
+
`&&(A=A.slice(0,-1)),A=A.replace(Df,`$&${p}`));let S=!1,T,z=-1;for(T=0;T<i.length;++T){const V=i[T];if(V===" ")S=!0;else if(V===`
|
|
76
|
+
`)z=T;else break}let U=i.substring(0,z<T?z+1:T);U&&(i=i.substring(U.length),U=U.replace(/\n+/g,`$&${p}`));let X=(w?"|":">")+(S?p?"2":"1":"")+v;if(u&&(X+=" "+m(u.replace(/ ?[\r\n]+/g," ")),c&&c()),w)return i=i.replace(/\n+/g,`$&${p}`),`${X}
|
|
77
|
+
${p}${U}${i}${A}`;i=i.replace(/\n+/g,`
|
|
78
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);const W=Mu(`${U}${i}${A}`,p,Cf,Cu(s,!0));return`${X}
|
|
79
|
+
${p}${W}`}function q1(u,l,i,s){const{type:c,value:o}=u,{actualString:h,implicitKey:m,indent:g,indentStep:p,inFlow:w}=l;if(m&&o.includes(`
|
|
80
|
+
`)||w&&/[[\]{},]/.test(o))return wa(o,l);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return m||w||!o.includes(`
|
|
81
|
+
`)?wa(o,l):pu(u,l,i,s);if(!m&&!w&&c!==re.PLAIN&&o.includes(`
|
|
82
|
+
`))return pu(u,l,i,s);if(zu(o)){if(g==="")return l.forceBlockIndent=!0,pu(u,l,i,s);if(m&&g===p)return wa(o,l)}const v=o.replace(/\n+/g,`$&
|
|
83
|
+
${g}`);if(h){const O=S=>{var T;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((T=S.test)==null?void 0:T.test(v))},{compat:A,tags:C}=l.doc.schema;if(C.some(O)||A!=null&&A.some(O))return wa(o,l)}return m?v:Mu(v,g,op,Cu(l,!1))}function Bi(u,l,i,s){const{implicitKey:c,inFlow:o}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:m}=u;m!==re.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=re.QUOTE_DOUBLE);const g=w=>{switch(w){case re.BLOCK_FOLDED:case re.BLOCK_LITERAL:return c||o?wa(h.value,l):pu(h,l,i,s);case re.QUOTE_DOUBLE:return Li(h.value,l);case re.QUOTE_SINGLE:return zf(h.value,l);case re.PLAIN:return q1(h,l,i,s);default:return null}};let p=g(m);if(p===null){const{defaultKeyType:w,defaultStringType:v}=l.options,O=c&&w||v;if(p=g(O),p===null)throw new Error(`Unsupported default string type ${O}`)}return p}function hp(u,l){const i=Object.assign({blockQuote:!0,commentString:R1,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},u.schema.toStringOptions,l);let s;switch(i.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:u,flowCollectionPadding:i.flowCollectionPadding?" ":"",indent:"",indentStep:typeof i.indent=="number"?" ".repeat(i.indent):" ",inFlow:s,options:i}}function H1(u,l){var c;if(l.tag){const o=u.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let i,s;if(Le(l)){s=l.value;let o=u.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,s)});if(o.length>1){const h=o.filter(m=>m.test);h.length>0&&(o=h)}i=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else s=l,i=u.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!i){const o=((c=s==null?void 0:s.constructor)==null?void 0:c.name)??typeof s;throw new Error(`Tag not resolved for ${o} value`)}return i}function Y1(u,l,{anchors:i,doc:s}){if(!s.directives)return"";const c=[],o=(Le(u)||Be(u))&&u.anchor;o&&sp(o)&&(i.add(o),c.push(`&${o}`));const h=u.tag?u.tag:l.default?null:l.tag;return h&&c.push(s.directives.tagString(h)),c.join(" ")}function Oa(u,l,i,s){var g;if(Re(u))return u.toString(l,i,s);if(Ml(u)){if(l.doc.directives)return u.toString(l);if((g=l.resolvedAliases)!=null&&g.has(u))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(u):l.resolvedAliases=new Set([u]),u=u.resolve(l.doc)}let c;const o=qe(u)?u:l.doc.createNode(u,{onTagObj:p=>c=p});c||(c=H1(l.doc.schema.tags,o));const h=Y1(o,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(o,l,i,s):Le(o)?Bi(o,l,i,s):o.toString(l,i,s);return h?Le(o)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
|
|
84
|
+
${l.indent}${m}`:m}function $1({key:u,value:l},i,s,c){const{allNullValues:o,doc:h,indent:m,indentStep:g,options:{commentString:p,indentSeq:w,simpleKeys:v}}=i;let O=qe(u)&&u.comment||null;if(v){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(Be(u)||!qe(u)&&typeof u=="object"){const G="With simple keys, collection cannot be used as a key value";throw new Error(G)}}let A=!v&&(!u||O&&l==null&&!i.inFlow||Be(u)||(Le(u)?u.type===re.BLOCK_FOLDED||u.type===re.BLOCK_LITERAL:typeof u=="object"));i=Object.assign({},i,{allNullValues:!1,implicitKey:!A&&(v||!o),indent:m+g});let C=!1,S=!1,T=Oa(u,i,()=>C=!0,()=>S=!0);if(!A&&!i.inFlow&&T.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");A=!0}if(i.inFlow){if(o||l==null)return C&&s&&s(),T===""?"?":A?`? ${T}`:T}else if(o&&!v||l==null&&A)return T=`? ${T}`,O&&!C?T+=Al(T,i.indent,p(O)):S&&c&&c(),T;C&&(O=null),A?(O&&(T+=Al(T,i.indent,p(O))),T=`? ${T}
|
|
85
|
+
${m}:`):(T=`${T}:`,O&&(T+=Al(T,i.indent,p(O))));let z,U,K;qe(l)?(z=!!l.spaceBefore,U=l.commentBefore,K=l.comment):(z=!1,U=null,K=null,l&&typeof l=="object"&&(l=h.createNode(l))),i.implicitKey=!1,!A&&!O&&Le(l)&&(i.indentAtStart=T.length+1),S=!1,!w&&g.length>=2&&!i.inFlow&&!A&&Da(l)&&!l.flow&&!l.tag&&!l.anchor&&(i.indent=i.indent.substring(2));let X=!1;const W=Oa(l,i,()=>X=!0,()=>S=!0);let V=" ";if(O||z||U){if(V=z?`
|
|
86
|
+
`:"",U){const G=p(U);V+=`
|
|
87
|
+
${On(G,i.indent)}`}W===""&&!i.inFlow?V===`
|
|
88
|
+
`&&(V=`
|
|
89
|
+
|
|
90
|
+
`):V+=`
|
|
91
|
+
${i.indent}`}else if(!A&&Be(l)){const G=W[0],Q=W.indexOf(`
|
|
92
|
+
`),k=Q!==-1,de=i.inFlow??l.flow??l.items.length===0;if(k||!de){let fe=!1;if(k&&(G==="&"||G==="!")){let j=W.indexOf(" ");G==="&"&&j!==-1&&j<Q&&W[j+1]==="!"&&(j=W.indexOf(" ",j+1)),(j===-1||Q<j)&&(fe=!0)}fe||(V=`
|
|
93
|
+
${i.indent}`)}}else(W===""||W[0]===`
|
|
94
|
+
`)&&(V="");return T+=V+W,i.inFlow?X&&s&&s():K&&!X?T+=Al(T,i.indent,p(K)):S&&c&&c(),T}function dp(u,l){(u==="debug"||u==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(l):console.warn(l))}const au="<<",xn={identify:u=>u===au||typeof u=="symbol"&&u.description===au,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new re(Symbol(au)),{addToJSMap:mp}),stringify:()=>au},G1=(u,l)=>(xn.identify(l)||Le(l)&&(!l.type||l.type===re.PLAIN)&&xn.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(i=>i.tag===xn.tag&&i.default));function mp(u,l,i){if(i=u&&Ml(i)?i.resolve(u.doc):i,Da(i))for(const s of i.items)gf(u,l,s);else if(Array.isArray(i))for(const s of i)gf(u,l,s);else gf(u,l,i)}function gf(u,l,i){const s=u&&Ml(i)?i.resolve(u.doc):i;if(!za(s))throw new Error("Merge sources must be maps or map aliases");const c=s.toJSON(null,u,Map);for(const[o,h]of c)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function gp(u,l,{key:i,value:s}){if(qe(i)&&i.addToJSMap)i.addToJSMap(u,l,s);else if(G1(u,i))mp(u,l,s);else{const c=Xt(i,"",u);if(l instanceof Map)l.set(c,Xt(s,c,u));else if(l instanceof Set)l.add(c);else{const o=K1(i,c,u),h=Xt(s,o,u);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function K1(u,l,i){if(l===null)return"";if(typeof l!="object")return String(l);if(qe(u)&&(i!=null&&i.doc)){const s=hp(i.doc,{});s.anchors=new Set;for(const o of i.anchors.keys())s.anchors.add(o.anchor);s.inFlow=!0,s.inStringifyKey=!0;const c=u.toString(s);if(!i.mapKeyWarned){let o=JSON.stringify(c);o.length>40&&(o=o.substring(0,36)+'..."'),dp(i.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),i.mapKeyWarned=!0}return c}return JSON.stringify(l)}function qf(u,l,i){const s=ji(u,void 0,i),c=ji(l,void 0,i);return new ft(s,c)}class ft{constructor(l,i=null){Object.defineProperty(this,Zt,{value:tp}),this.key=l,this.value=i}clone(l){let{key:i,value:s}=this;return qe(i)&&(i=i.clone(l)),qe(s)&&(s=s.clone(l)),new ft(i,s)}toJSON(l,i){const s=i!=null&&i.mapAsMap?new Map:{};return gp(i,s,this)}toString(l,i,s){return l!=null&&l.doc?$1(this,l,i,s):JSON.stringify(this)}}function pp(u,l,i){return(l.inFlow??u.flow?Q1:V1)(u,l,i)}function V1({comment:u,items:l},i,{blockItemPrefix:s,flowChars:c,itemIndent:o,onChompKeep:h,onComment:m}){const{indent:g,options:{commentString:p}}=i,w=Object.assign({},i,{indent:o,type:null});let v=!1;const O=[];for(let C=0;C<l.length;++C){const S=l[C];let T=null;if(qe(S))!v&&S.spaceBefore&&O.push(""),Tu(i,O,S.commentBefore,v),S.comment&&(T=S.comment);else if(Re(S)){const U=qe(S.key)?S.key:null;U&&(!v&&U.spaceBefore&&O.push(""),Tu(i,O,U.commentBefore,v))}v=!1;let z=Oa(S,w,()=>T=null,()=>v=!0);T&&(z+=Al(z,o,p(T))),v&&T&&(v=!1),O.push(s+z)}let A;if(O.length===0)A=c.start+c.end;else{A=O[0];for(let C=1;C<O.length;++C){const S=O[C];A+=S?`
|
|
95
|
+
${g}${S}`:`
|
|
96
|
+
`}}return u?(A+=`
|
|
97
|
+
`+On(p(u),g),m&&m()):v&&h&&h(),A}function Q1({items:u},l,{flowChars:i,itemIndent:s}){const{indent:c,indentStep:o,flowCollectionPadding:h,options:{commentString:m}}=l;s+=o;const g=Object.assign({},l,{indent:s,inFlow:!0,type:null});let p=!1,w=0;const v=[];for(let C=0;C<u.length;++C){const S=u[C];let T=null;if(qe(S))S.spaceBefore&&v.push(""),Tu(l,v,S.commentBefore,!1),S.comment&&(T=S.comment);else if(Re(S)){const U=qe(S.key)?S.key:null;U&&(U.spaceBefore&&v.push(""),Tu(l,v,U.commentBefore,!1),U.comment&&(p=!0));const K=qe(S.value)?S.value:null;K?(K.comment&&(T=K.comment),K.commentBefore&&(p=!0)):S.value==null&&(U!=null&&U.comment)&&(T=U.comment)}T&&(p=!0);let z=Oa(S,g,()=>T=null);C<u.length-1&&(z+=","),T&&(z+=Al(z,s,m(T))),!p&&(v.length>w||z.includes(`
|
|
98
|
+
`))&&(p=!0),v.push(z),w=v.length}const{start:O,end:A}=i;if(v.length===0)return O+A;if(!p){const C=v.reduce((S,T)=>S+T.length+2,2);p=l.options.lineWidth>0&&C>l.options.lineWidth}if(p){let C=O;for(const S of v)C+=S?`
|
|
99
|
+
${o}${c}${S}`:`
|
|
100
|
+
`;return`${C}
|
|
101
|
+
${c}${A}`}else return`${O}${h}${v.join(" ")}${h}${A}`}function Tu({indent:u,options:{commentString:l}},i,s,c){if(s&&c&&(s=s.replace(/^\n+/,"")),s){const o=On(l(s),u);i.push(o.trimStart())}}function Nl(u,l){const i=Le(l)?l.value:l;for(const s of u)if(Re(s)&&(s.key===l||s.key===i||Le(s.key)&&s.key.value===i))return s}class Ut extends fp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(el,l),this.items=[]}static from(l,i,s){const{keepUndefined:c,replacer:o}=s,h=new this(l),m=(g,p)=>{if(typeof o=="function")p=o.call(i,g,p);else if(Array.isArray(o)&&!o.includes(g))return;(p!==void 0||c)&&h.items.push(qf(g,p,s))};if(i instanceof Map)for(const[g,p]of i)m(g,p);else if(i&&typeof i=="object")for(const g of Object.keys(i))m(g,i[g]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,i){var h;let s;Re(l)?s=l:!l||typeof l!="object"||!("key"in l)?s=new ft(l,l==null?void 0:l.value):s=new ft(l.key,l.value);const c=Nl(this.items,s.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!i)throw new Error(`Key ${s.key} already set`);Le(c.value)&&rp(s.value)?c.value.value=s.value:c.value=s.value}else if(o){const m=this.items.findIndex(g=>o(s,g)<0);m===-1?this.items.push(s):this.items.splice(m,0,s)}else this.items.push(s)}delete(l){const i=Nl(this.items,l);return i?this.items.splice(this.items.indexOf(i),1).length>0:!1}get(l,i){const s=Nl(this.items,l),c=s==null?void 0:s.value;return(!i&&Le(c)?c.value:c)??void 0}has(l){return!!Nl(this.items,l)}set(l,i){this.add(new ft(l,i),!0)}toJSON(l,i,s){const c=s?new s:i!=null&&i.mapAsMap?new Map:{};i!=null&&i.onCreate&&i.onCreate(c);for(const o of this.items)gp(i,c,o);return c}toString(l,i,s){if(!l)return JSON.stringify(this);for(const c of this.items)if(!Re(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),pp(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:s,onComment:i})}}const La={collection:"map",default:!0,nodeClass:Ut,tag:"tag:yaml.org,2002:map",resolve(u,l){return za(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,i)=>Ut.from(u,l,i)};class nl extends fp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(Ca,l),this.items=[]}add(l){this.items.push(l)}delete(l){const i=iu(l);return typeof i!="number"?!1:this.items.splice(i,1).length>0}get(l,i){const s=iu(l);if(typeof s!="number")return;const c=this.items[s];return!i&&Le(c)?c.value:c}has(l){const i=iu(l);return typeof i=="number"&&i<this.items.length}set(l,i){const s=iu(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const c=this.items[s];Le(c)&&rp(i)?c.value=i:this.items[s]=i}toJSON(l,i){const s=[];i!=null&&i.onCreate&&i.onCreate(s);let c=0;for(const o of this.items)s.push(Xt(o,String(c++),i));return s}toString(l,i,s){return l?pp(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:s,onComment:i}):JSON.stringify(this)}static from(l,i,s){const{replacer:c}=s,o=new this(l);if(i&&Symbol.iterator in Object(i)){let h=0;for(let m of i){if(typeof c=="function"){const g=i instanceof Set?m:String(h++);m=c.call(i,g,m)}o.items.push(ji(m,void 0,s))}}return o}}function iu(u){let l=Le(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const ja={collection:"seq",default:!0,nodeClass:nl,tag:"tag:yaml.org,2002:seq",resolve(u,l){return Da(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,i)=>nl.from(u,l,i)},Du={identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify(u,l,i,s){return l=Object.assign({actualString:!0},l),Bi(u,l,i,s)}},Lu={identify:u=>u==null,createNode:()=>new re(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new re(null),stringify:({source:u},l)=>typeof u=="string"&&Lu.test.test(u)?u:l.options.nullStr},Hf={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new re(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},i){if(u&&Hf.test.test(u)){const s=u[0]==="t"||u[0]==="T";if(l===s)return u}return l?i.options.trueStr:i.options.falseStr}};function Pt({format:u,minFractionDigits:l,tag:i,value:s}){if(typeof s=="bigint")return String(s);const c=typeof s=="number"?s:Number(s);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let o=JSON.stringify(s);if(!u&&l&&(!i||i==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let m=l-(o.length-h-1);for(;m-- >0;)o+="0"}return o}const yp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Pt},vp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Pt(u)}},bp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(u){const l=new re(parseFloat(u)),i=u.indexOf(".");return i!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-i-1),l},stringify:Pt},ju=u=>typeof u=="bigint"||Number.isInteger(u),Yf=(u,l,i,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),i);function Sp(u,l,i){const{value:s}=u;return ju(s)&&s>=0?i+s.toString(l):Pt(u)}const Tp={identify:u=>ju(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,i)=>Yf(u,2,8,i),stringify:u=>Sp(u,8,"0o")},Ep={identify:ju,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,i)=>Yf(u,0,10,i),stringify:Pt},wp={identify:u=>ju(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,i)=>Yf(u,2,16,i),stringify:u=>Sp(u,16,"0x")},X1=[La,ja,Du,Lu,Hf,Tp,Ep,wp,yp,vp,bp];function bg(u){return typeof u=="bigint"||Number.isInteger(u)}const su=({value:u})=>JSON.stringify(u),Z1=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:su},{identify:u=>u==null,createNode:()=>new re(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:su},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:u=>u==="true",stringify:su},{identify:bg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(u,l,{intAsBigInt:i})=>i?BigInt(u):parseInt(u,10),stringify:({value:u})=>bg(u)?u.toString():JSON.stringify(u)},{identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:u=>parseFloat(u),stringify:su}],J1={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},W1=[La,ja].concat(Z1,J1),$f={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,l){if(typeof Buffer=="function")return Buffer.from(u,"base64");if(typeof atob=="function"){const i=atob(u.replace(/[\n\r]/g,"")),s=new Uint8Array(i.length);for(let c=0;c<i.length;++c)s[c]=i.charCodeAt(c);return s}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:l,value:i},s,c,o){const h=i;let m;if(typeof Buffer=="function")m=h instanceof Buffer?h.toString("base64"):Buffer.from(h.buffer).toString("base64");else if(typeof btoa=="function"){let g="";for(let p=0;p<h.length;++p)g+=String.fromCharCode(h[p]);m=btoa(g)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l||(l=re.BLOCK_LITERAL),l!==re.QUOTE_DOUBLE){const g=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(m.length/g),w=new Array(p);for(let v=0,O=0;v<p;++v,O+=g)w[v]=m.substr(O,g);m=w.join(l===re.BLOCK_LITERAL?`
|
|
102
|
+
`:" ")}return Bi({comment:u,type:l,value:m},s,c,o)}};function Ap(u,l){if(Da(u))for(let i=0;i<u.items.length;++i){let s=u.items[i];if(!Re(s)){if(za(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const c=s.items[0]||new ft(new re(null));if(s.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${s.commentBefore}
|
|
103
|
+
${c.key.commentBefore}`:s.commentBefore),s.comment){const o=c.value??c.key;o.comment=o.comment?`${s.comment}
|
|
104
|
+
${o.comment}`:s.comment}s=c}u.items[i]=Re(s)?s:new ft(s)}}else l("Expected a sequence for this tag");return u}function Np(u,l,i){const{replacer:s}=i,c=new nl(u);c.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(o++),h));let m,g;if(Array.isArray(h))if(h.length===2)m=h[0],g=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const p=Object.keys(h);if(p.length===1)m=p[0],g=h[m];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else m=h;c.items.push(qf(m,g,i))}return c}const Gf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ap,createNode:Np};class Aa extends nl{constructor(){super(),this.add=Ut.prototype.add.bind(this),this.delete=Ut.prototype.delete.bind(this),this.get=Ut.prototype.get.bind(this),this.has=Ut.prototype.has.bind(this),this.set=Ut.prototype.set.bind(this),this.tag=Aa.tag}toJSON(l,i){if(!i)return super.toJSON(l);const s=new Map;i!=null&&i.onCreate&&i.onCreate(s);for(const c of this.items){let o,h;if(Re(c)?(o=Xt(c.key,"",i),h=Xt(c.value,o,i)):o=Xt(c,"",i),s.has(o))throw new Error("Ordered maps must not include duplicate keys");s.set(o,h)}return s}static from(l,i,s){const c=Np(l,i,s),o=new this;return o.items=c.items,o}}Aa.tag="tag:yaml.org,2002:omap";const Kf={collection:"seq",identify:u=>u instanceof Map,nodeClass:Aa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const i=Ap(u,l),s=[];for(const{key:c}of i.items)Le(c)&&(s.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):s.push(c.value));return Object.assign(new Aa,i)},createNode:(u,l,i)=>Aa.from(u,l,i)};function Op({value:u,source:l},i){return l&&(u?_p:xp).test.test(l)?l:u?i.options.trueStr:i.options.falseStr}const _p={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new re(!0),stringify:Op},xp={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new re(!1),stringify:Op},F1={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Pt},I1={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u.replace(/_/g,"")),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Pt(u)}},P1={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(u){const l=new re(parseFloat(u.replace(/_/g,""))),i=u.indexOf(".");if(i!==-1){const s=u.substring(i+1).replace(/_/g,"");s[s.length-1]==="0"&&(l.minFractionDigits=s.length)}return l},stringify:Pt},qi=u=>typeof u=="bigint"||Number.isInteger(u);function Uu(u,l,i,{intAsBigInt:s}){const c=u[0];if((c==="-"||c==="+")&&(l+=1),u=u.substring(l).replace(/_/g,""),s){switch(i){case 2:u=`0b${u}`;break;case 8:u=`0o${u}`;break;case 16:u=`0x${u}`;break}const h=BigInt(u);return c==="-"?BigInt(-1)*h:h}const o=parseInt(u,i);return c==="-"?-1*o:o}function Vf(u,l,i){const{value:s}=u;if(qi(s)){const c=s.toString(l);return s<0?"-"+i+c.substr(1):i+c}return Pt(u)}const eb={identify:qi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,i)=>Uu(u,2,2,i),stringify:u=>Vf(u,2,"0b")},tb={identify:qi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,i)=>Uu(u,1,8,i),stringify:u=>Vf(u,8,"0")},nb={identify:qi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,i)=>Uu(u,0,10,i),stringify:Pt},lb={identify:qi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,i)=>Uu(u,2,16,i),stringify:u=>Vf(u,16,"0x")};class Na extends Ut{constructor(l){super(l),this.tag=Na.tag}add(l){let i;Re(l)?i=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?i=new ft(l.key,null):i=new ft(l,null),Nl(this.items,i.key)||this.items.push(i)}get(l,i){const s=Nl(this.items,l);return!i&&Re(s)?Le(s.key)?s.key.value:s.key:s}set(l,i){if(typeof i!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);const s=Nl(this.items,l);s&&!i?this.items.splice(this.items.indexOf(s),1):!s&&i&&this.items.push(new ft(l))}toJSON(l,i){return super.toJSON(l,i,Set)}toString(l,i,s){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),i,s);throw new Error("Set items must all have null values")}static from(l,i,s){const{replacer:c}=s,o=new this(l);if(i&&Symbol.iterator in Object(i))for(let h of i)typeof c=="function"&&(h=c.call(i,h,h)),o.items.push(qf(h,null,s));return o}}Na.tag="tag:yaml.org,2002:set";const Qf={collection:"map",identify:u=>u instanceof Set,nodeClass:Na,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,i)=>Na.from(u,l,i),resolve(u,l){if(za(u)){if(u.hasAllNullValues(!0))return Object.assign(new Na,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Xf(u,l){const i=u[0],s=i==="-"||i==="+"?u.substring(1):u,c=h=>l?BigInt(h):Number(h),o=s.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return i==="-"?c(-1)*o:o}function Mp(u){let{value:l}=u,i=h=>h;if(typeof l=="bigint")i=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Pt(u);let s="";l<0&&(s="-",l*=i(-1));const c=i(60),o=[l%c];return l<60?o.unshift(0):(l=(l-o[0])/c,o.unshift(l%c),l>=60&&(l=(l-o[0])/c,o.unshift(l))),s+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Cp={identify:u=>typeof u=="bigint"||Number.isInteger(u),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(u,l,{intAsBigInt:i})=>Xf(u,i),stringify:Mp},zp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:u=>Xf(u,!1),stringify:Mp},ku={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(u){const l=u.match(ku.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,i,s,c,o,h,m]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(i,s-1,c,o||0,h||0,m||0,g);const w=l[8];if(w&&w!=="Z"){let v=Xf(w,!1);Math.abs(v)<30&&(v*=60),p-=6e4*v}return new Date(p)},stringify:({value:u})=>u.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Sg=[La,ja,Du,Lu,_p,xp,eb,tb,nb,lb,F1,I1,P1,$f,xn,Kf,Gf,Qf,Cp,zp,ku],Tg=new Map([["core",X1],["failsafe",[La,ja,Du]],["json",W1],["yaml11",Sg],["yaml-1.1",Sg]]),Eg={binary:$f,bool:Hf,float:bp,floatExp:vp,floatNaN:yp,floatTime:zp,int:Ep,intHex:wp,intOct:Tp,intTime:Cp,map:La,merge:xn,null:Lu,omap:Kf,pairs:Gf,seq:ja,set:Qf,timestamp:ku},ab={"tag:yaml.org,2002:binary":$f,"tag:yaml.org,2002:merge":xn,"tag:yaml.org,2002:omap":Kf,"tag:yaml.org,2002:pairs":Gf,"tag:yaml.org,2002:set":Qf,"tag:yaml.org,2002:timestamp":ku};function pf(u,l,i){const s=Tg.get(l);if(s&&!u)return i&&!s.includes(xn)?s.concat(xn):s.slice();let c=s;if(!c)if(Array.isArray(u))c=[];else{const o=Array.from(Tg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(u))for(const o of u)c=c.concat(o);else typeof u=="function"&&(c=u(c.slice()));return i&&(c=c.concat(xn)),c.reduce((o,h)=>{const m=typeof h=="string"?Eg[h]:h;if(!m){const g=JSON.stringify(h),p=Object.keys(Eg).map(w=>JSON.stringify(w)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return o.includes(m)||o.push(m),o},[])}const ib=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class Ru{constructor({compat:l,customTags:i,merge:s,resolveKnownTags:c,schema:o,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?pf(l,"compat"):l?pf(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=c?ab:{},this.tags=pf(i,this.name,s),this.toStringOptions=m??null,Object.defineProperty(this,el,{value:La}),Object.defineProperty(this,sn,{value:Du}),Object.defineProperty(this,Ca,{value:ja}),this.sortMapEntries=typeof h=="function"?h:h===!0?ib:null}clone(){const l=Object.create(Ru.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function sb(u,l){var g;const i=[];let s=l.directives===!0;if(l.directives!==!1&&u.directives){const p=u.directives.toString(u);p?(i.push(p),s=!0):u.directives.docStart&&(s=!0)}s&&i.push("---");const c=hp(u,l),{commentString:o}=c.options;if(u.commentBefore){i.length!==1&&i.unshift("");const p=o(u.commentBefore);i.unshift(On(p,""))}let h=!1,m=null;if(u.contents){if(qe(u.contents)){if(u.contents.spaceBefore&&s&&i.push(""),u.contents.commentBefore){const v=o(u.contents.commentBefore);i.push(On(v,""))}c.forceBlockIndent=!!u.comment,m=u.contents.comment}const p=m?void 0:()=>h=!0;let w=Oa(u.contents,c,()=>m=null,p);m&&(w+=Al(w,"",o(m))),(w[0]==="|"||w[0]===">")&&i[i.length-1]==="---"?i[i.length-1]=`--- ${w}`:i.push(w)}else i.push(Oa(u.contents,c));if((g=u.directives)!=null&&g.docEnd)if(u.comment){const p=o(u.comment);p.includes(`
|
|
105
|
+
`)?(i.push("..."),i.push(On(p,""))):i.push(`... ${p}`)}else i.push("...");else{let p=u.comment;p&&h&&(p=p.replace(/^\n+/,"")),p&&((!h||m)&&i[i.length-1]!==""&&i.push(""),i.push(On(o(p),"")))}return i.join(`
|
|
106
|
+
`)+`
|
|
107
|
+
`}class Ua{constructor(l,i,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Zt,{value:Mf});let c=null;typeof i=="function"||Array.isArray(i)?c=i:s===void 0&&i&&(s=i,i=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ht({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,c,s)}clone(){const l=Object.create(Ua.prototype,{[Zt]:{value:Mf}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=qe(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){pa(this.contents)&&this.contents.add(l)}addIn(l,i){pa(this.contents)&&this.contents.addIn(l,i)}createAlias(l,i){if(!l.anchor){const s=up(this);l.anchor=!i||s.has(i)?cp(i||"a",s):i}return new xu(l.anchor)}createNode(l,i,s){let c;if(typeof i=="function")l=i.call({"":l},"",l),c=i;else if(Array.isArray(i)){const T=U=>typeof U=="number"||U instanceof String||U instanceof Number,z=i.filter(T).map(String);z.length>0&&(i=i.concat(z)),c=i}else s===void 0&&i&&(s=i,i=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:m,keepUndefined:g,onTagObj:p,tag:w}=s??{},{onAnchor:v,setAnchors:O,sourceObjects:A}=j1(this,h||"a"),C={aliasDuplicateObjects:o??!0,keepUndefined:g??!1,onAnchor:v,onTagObj:p,replacer:c,schema:this.schema,sourceObjects:A},S=ji(l,w,C);return m&&Be(S)&&(S.flow=!0),O(),S}createPair(l,i,s={}){const c=this.createNode(l,null,s),o=this.createNode(i,null,s);return new ft(c,o)}delete(l){return pa(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Di(l)?this.contents==null?!1:(this.contents=null,!0):pa(this.contents)?this.contents.deleteIn(l):!1}get(l,i){return Be(this.contents)?this.contents.get(l,i):void 0}getIn(l,i){return Di(l)?!i&&Le(this.contents)?this.contents.value:this.contents:Be(this.contents)?this.contents.getIn(l,i):void 0}has(l){return Be(this.contents)?this.contents.has(l):!1}hasIn(l){return Di(l)?this.contents!==void 0:Be(this.contents)?this.contents.hasIn(l):!1}set(l,i){this.contents==null?this.contents=Su(this.schema,[l],i):pa(this.contents)&&this.contents.set(l,i)}setIn(l,i){Di(l)?this.contents=i:this.contents==null?this.contents=Su(this.schema,Array.from(l),i):pa(this.contents)&&this.contents.setIn(l,i)}setSchema(l,i={}){typeof l=="number"&&(l=String(l));let s;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ht({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ht({version:l}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const c=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(i.schema instanceof Object)this.schema=i.schema;else if(s)this.schema=new Ru(Object.assign(s,i));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:i,mapAsMap:s,maxAliasCount:c,onAnchor:o,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},g=Xt(this.contents,i??"",m);if(typeof o=="function")for(const{count:p,res:w}of m.anchors.values())o(w,p);return typeof h=="function"?Ea(h,{"":g},"",g):g}toJSON(l,i){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:i})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const i=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${i}`)}return sb(this,l)}}function pa(u){if(Be(u))return!0;throw new Error("Expected a YAML collection as document contents")}class Zf extends Error{constructor(l,i,s,c){super(),this.name=l,this.code=s,this.message=c,this.pos=i}}class Ol extends Zf{constructor(l,i,s){super("YAMLParseError",l,i,s)}}class Dp extends Zf{constructor(l,i,s){super("YAMLWarning",l,i,s)}}const Eu=(u,l)=>i=>{if(i.pos[0]===-1)return;i.linePos=i.pos.map(m=>l.linePos(m));const{line:s,col:c}=i.linePos[0];i.message+=` at line ${s}, column ${c}`;let o=c-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const m=Math.min(o-39,h.length-79);h="…"+h.substring(m),o-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,o))){let m=u.substring(l.lineStarts[s-2],l.lineStarts[s-1]);m.length>80&&(m=m.substring(0,79)+`…
|
|
108
|
+
`),h=m+h}if(/[^ ]/.test(h)){let m=1;const g=i.linePos[1];g&&g.line===s&&g.col>c&&(m=Math.max(1,Math.min(g.col-c,80-o)));const p=" ".repeat(o)+"^".repeat(m);i.message+=`:
|
|
109
|
+
|
|
110
|
+
${h}
|
|
111
|
+
${p}
|
|
112
|
+
`}};function _a(u,{flow:l,indicator:i,next:s,offset:c,onError:o,parentIndent:h,startOnNewline:m}){let g=!1,p=m,w=m,v="",O="",A=!1,C=!1,S=null,T=null,z=null,U=null,K=null,X=null,W=null;for(const Q of u)switch(C&&(Q.type!=="space"&&Q.type!=="newline"&&Q.type!=="comma"&&o(Q.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),C=!1),S&&(p&&Q.type!=="comment"&&Q.type!=="newline"&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),Q.type){case"space":!l&&(i!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&Q.source.includes(" ")&&(S=Q),w=!0;break;case"comment":{w||o(Q,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const k=Q.source.substring(1)||" ";v?v+=O+k:v=k,O="",p=!1;break}case"newline":p?v?v+=Q.source:g=!0:O+=Q.source,p=!0,A=!0,(T||z)&&(U=Q),w=!0;break;case"anchor":T&&o(Q,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Q.source.endsWith(":")&&o(Q.offset+Q.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),T=Q,W===null&&(W=Q.offset),p=!1,w=!1,C=!0;break;case"tag":{z&&o(Q,"MULTIPLE_TAGS","A node can have at most one tag"),z=Q,W===null&&(W=Q.offset),p=!1,w=!1,C=!0;break}case i:(T||z)&&o(Q,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Q.source} indicator`),X&&o(Q,"UNEXPECTED_TOKEN",`Unexpected ${Q.source} in ${l??"collection"}`),X=Q,p=i==="seq-item-ind"||i==="explicit-key-ind",w=!1;break;case"comma":if(l){K&&o(Q,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),K=Q,p=!1,w=!1;break}default:o(Q,"UNEXPECTED_TOKEN",`Unexpected ${Q.type} token`),p=!1,w=!1}const V=u[u.length-1],G=V?V.offset+V.source.length:c;return C&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&o(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:K,found:X,spaceBefore:g,comment:v,hasNewline:A,anchor:T,tag:z,newlineAfterProp:U,end:G,start:W??G}}function Ui(u){if(!u)return null;switch(u.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(u.source.includes(`
|
|
113
|
+
`))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const i of l.start)if(i.type==="newline")return!0;if(l.sep){for(const i of l.sep)if(i.type==="newline")return!0}if(Ui(l.key)||Ui(l.value))return!0}return!1;default:return!0}}function Lf(u,l,i){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&Ui(l)&&i(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Lp(u,l,i){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const c=typeof s=="function"?s:(o,h)=>o===h||Le(o)&&Le(h)&&o.value===h.value;return l.some(o=>c(o.key,i))}const wg="All mapping items must start at the same column";function ub({composeNode:u,composeEmptyNode:l},i,s,c,o){var w;const h=(o==null?void 0:o.nodeClass)??Ut,m=new h(i.schema);i.atRoot&&(i.atRoot=!1);let g=s.offset,p=null;for(const v of s.items){const{start:O,key:A,sep:C,value:S}=v,T=_a(O,{indicator:"explicit-key-ind",next:A??(C==null?void 0:C[0]),offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0}),z=!T.found;if(z){if(A&&(A.type==="block-seq"?c(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in A&&A.indent!==s.indent&&c(g,"BAD_INDENT",wg)),!T.anchor&&!T.tag&&!C){p=T.end,T.comment&&(m.comment?m.comment+=`
|
|
114
|
+
`+T.comment:m.comment=T.comment);continue}(T.newlineAfterProp||Ui(A))&&c(A??O[O.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((w=T.found)==null?void 0:w.indent)!==s.indent&&c(g,"BAD_INDENT",wg);i.atKey=!0;const U=T.end,K=A?u(i,A,T,c):l(i,U,O,null,T,c);i.schema.compat&&Lf(s.indent,A,c),i.atKey=!1,Lp(i,m.items,K)&&c(U,"DUPLICATE_KEY","Map keys must be unique");const X=_a(C??[],{indicator:"map-value-ind",next:S,offset:K.range[2],onError:c,parentIndent:s.indent,startOnNewline:!A||A.type==="block-scalar"});if(g=X.end,X.found){z&&((S==null?void 0:S.type)==="block-map"&&!X.hasNewline&&c(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),i.options.strict&&T.start<X.found.offset-1024&&c(K.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const W=S?u(i,S,X,c):l(i,g,C,null,X,c);i.schema.compat&&Lf(s.indent,S,c),g=W.range[2];const V=new ft(K,W);i.options.keepSourceTokens&&(V.srcToken=v),m.items.push(V)}else{z&&c(K.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),X.comment&&(K.comment?K.comment+=`
|
|
115
|
+
`+X.comment:K.comment=X.comment);const W=new ft(K);i.options.keepSourceTokens&&(W.srcToken=v),m.items.push(W)}}return p&&p<g&&c(p,"IMPOSSIBLE","Map comment with trailing content"),m.range=[s.offset,g,p??g],m}function cb({composeNode:u,composeEmptyNode:l},i,s,c,o){const h=(o==null?void 0:o.nodeClass)??nl,m=new h(i.schema);i.atRoot&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let g=s.offset,p=null;for(const{start:w,value:v}of s.items){const O=_a(w,{indicator:"seq-item-ind",next:v,offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||v)v&&v.type==="block-seq"?c(O.end,"BAD_INDENT","All sequence items must start at the same column"):c(g,"MISSING_CHAR","Sequence item without - indicator");else{p=O.end,O.comment&&(m.comment=O.comment);continue}const A=v?u(i,v,O,c):l(i,O.end,w,null,O,c);i.schema.compat&&Lf(s.indent,v,c),g=A.range[2],m.items.push(A)}return m.range=[s.offset,g,p??g],m}function Hi(u,l,i,s){let c="";if(u){let o=!1,h="";for(const m of u){const{source:g,type:p}=m;switch(p){case"space":o=!0;break;case"comment":{i&&!o&&s(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const w=g.substring(1)||" ";c?c+=h+w:c=w,h="";break}case"newline":c&&(h+=g),o=!0;break;default:s(m,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=g.length}}return{comment:c,offset:l}}const yf="Block collections are not allowed within flow collections",vf=u=>u&&(u.type==="block-map"||u.type==="block-seq");function rb({composeNode:u,composeEmptyNode:l},i,s,c,o){const h=s.start.source==="{",m=h?"flow map":"flow sequence",g=(o==null?void 0:o.nodeClass)??(h?Ut:nl),p=new g(i.schema);p.flow=!0;const w=i.atRoot;w&&(i.atRoot=!1),i.atKey&&(i.atKey=!1);let v=s.offset+s.start.source.length;for(let T=0;T<s.items.length;++T){const z=s.items[T],{start:U,key:K,sep:X,value:W}=z,V=_a(U,{flow:m,indicator:"explicit-key-ind",next:K??(X==null?void 0:X[0]),offset:v,onError:c,parentIndent:s.indent,startOnNewline:!1});if(!V.found){if(!V.anchor&&!V.tag&&!X&&!W){T===0&&V.comma?c(V.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):T<s.items.length-1&&c(V.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),V.comment&&(p.comment?p.comment+=`
|
|
116
|
+
`+V.comment:p.comment=V.comment),v=V.end;continue}!h&&i.options.strict&&Ui(K)&&c(K,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(T===0)V.comma&&c(V.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(V.comma||c(V.start,"MISSING_CHAR",`Missing , between ${m} items`),V.comment){let G="";e:for(const Q of U)switch(Q.type){case"comma":case"space":break;case"comment":G=Q.source.substring(1);break e;default:break e}if(G){let Q=p.items[p.items.length-1];Re(Q)&&(Q=Q.value??Q.key),Q.comment?Q.comment+=`
|
|
117
|
+
`+G:Q.comment=G,V.comment=V.comment.substring(G.length+1)}}if(!h&&!X&&!V.found){const G=W?u(i,W,V,c):l(i,V.end,X,null,V,c);p.items.push(G),v=G.range[2],vf(W)&&c(G.range,"BLOCK_IN_FLOW",yf)}else{i.atKey=!0;const G=V.end,Q=K?u(i,K,V,c):l(i,G,U,null,V,c);vf(K)&&c(Q.range,"BLOCK_IN_FLOW",yf),i.atKey=!1;const k=_a(X??[],{flow:m,indicator:"map-value-ind",next:W,offset:Q.range[2],onError:c,parentIndent:s.indent,startOnNewline:!1});if(k.found){if(!h&&!V.found&&i.options.strict){if(X)for(const j of X){if(j===k.found)break;if(j.type==="newline"){c(j,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}V.start<k.found.offset-1024&&c(k.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else W&&("source"in W&&W.source&&W.source[0]===":"?c(W,"MISSING_CHAR",`Missing space after : in ${m}`):c(k.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const de=W?u(i,W,k,c):k.found?l(i,k.end,X,null,k,c):null;de?vf(W)&&c(de.range,"BLOCK_IN_FLOW",yf):k.comment&&(Q.comment?Q.comment+=`
|
|
118
|
+
`+k.comment:Q.comment=k.comment);const fe=new ft(Q,de);if(i.options.keepSourceTokens&&(fe.srcToken=z),h){const j=p;Lp(i,j.items,Q)&&c(G,"DUPLICATE_KEY","Map keys must be unique"),j.items.push(fe)}else{const j=new Ut(i.schema);j.flow=!0,j.items.push(fe);const le=(de??Q).range;j.range=[Q.range[0],le[1],le[2]],p.items.push(j)}v=de?de.range[2]:k.end}}const O=h?"}":"]",[A,...C]=s.end;let S=v;if(A&&A.source===O)S=A.offset+A.source.length;else{const T=m[0].toUpperCase()+m.substring(1),z=w?`${T} must end with a ${O}`:`${T} in block collection must be sufficiently indented and end with a ${O}`;c(v,w?"MISSING_CHAR":"BAD_INDENT",z),A&&A.source.length!==1&&C.unshift(A)}if(C.length>0){const T=Hi(C,S,i.options.strict,c);T.comment&&(p.comment?p.comment+=`
|
|
119
|
+
`+T.comment:p.comment=T.comment),p.range=[s.offset,S,T.offset]}else p.range=[s.offset,S,S];return p}function bf(u,l,i,s,c,o){const h=i.type==="block-map"?ub(u,l,i,s,o):i.type==="block-seq"?cb(u,l,i,s,o):rb(u,l,i,s,o),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function fb(u,l,i,s,c){var O;const o=s.tag,h=o?l.directives.tagName(o.source,A=>c(o,"TAG_RESOLVE_FAILED",A)):null;if(i.type==="block-seq"){const{anchor:A,newlineAfterProp:C}=s,S=A&&o?A.offset>o.offset?A:o:A??o;S&&(!C||C.offset<S.offset)&&c(S,"MISSING_CHAR","Missing newline after block sequence props")}const m=i.type==="block-map"?"map":i.type==="block-seq"?"seq":i.start.source==="{"?"map":"seq";if(!o||!h||h==="!"||h===Ut.tagName&&m==="map"||h===nl.tagName&&m==="seq")return bf(u,l,i,c,h);let g=l.schema.tags.find(A=>A.tag===h&&A.collection===m);if(!g){const A=l.schema.knownTags[h];if(A&&A.collection===m)l.schema.tags.push(Object.assign({},A,{default:!1})),g=A;else return A!=null&&A.collection?c(o,"BAD_COLLECTION_TYPE",`${A.tag} used for ${m} collection, but expects ${A.collection}`,!0):c(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),bf(u,l,i,c,h)}const p=bf(u,l,i,c,h,g),w=((O=g.resolve)==null?void 0:O.call(g,p,A=>c(o,"TAG_RESOLVE_FAILED",A),l.options))??p,v=qe(w)?w:new re(w);return v.range=p.range,v.tag=h,g!=null&&g.format&&(v.format=g.format),v}function jp(u,l,i){const s=l.offset,c=ob(l,u.options.strict,i);if(!c)return{value:"",type:null,comment:"",range:[s,s,s]};const o=c.mode===">"?re.BLOCK_FOLDED:re.BLOCK_LITERAL,h=l.source?hb(l.source):[];let m=h.length;for(let S=h.length-1;S>=0;--S){const T=h[S][1];if(T===""||T==="\r")m=S;else break}if(m===0){const S=c.chomp==="+"&&h.length>0?`
|
|
120
|
+
`.repeat(Math.max(1,h.length-1)):"";let T=s+c.length;return l.source&&(T+=l.source.length),{value:S,type:o,comment:c.comment,range:[s,T,T]}}let g=l.indent+c.indent,p=l.offset+c.length,w=0;for(let S=0;S<m;++S){const[T,z]=h[S];if(z===""||z==="\r")c.indent===0&&T.length>g&&(g=T.length);else{T.length<g&&i(p+T.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(g=T.length),w=S,g===0&&!u.atRoot&&i(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=T.length+z.length+1}for(let S=h.length-1;S>=m;--S)h[S][0].length>g&&(m=S+1);let v="",O="",A=!1;for(let S=0;S<w;++S)v+=h[S][0].slice(g)+`
|
|
121
|
+
`;for(let S=w;S<m;++S){let[T,z]=h[S];p+=T.length+z.length+1;const U=z[z.length-1]==="\r";if(U&&(z=z.slice(0,-1)),z&&T.length<g){const X=`Block scalar lines must not be less indented than their ${c.indent?"explicit indentation indicator":"first line"}`;i(p-z.length-(U?2:1),"BAD_INDENT",X),T=""}o===re.BLOCK_LITERAL?(v+=O+T.slice(g)+z,O=`
|
|
122
|
+
`):T.length>g||z[0]===" "?(O===" "?O=`
|
|
123
|
+
`:!A&&O===`
|
|
124
|
+
`&&(O=`
|
|
125
|
+
|
|
126
|
+
`),v+=O+T.slice(g)+z,O=`
|
|
127
|
+
`,A=!0):z===""?O===`
|
|
128
|
+
`?v+=`
|
|
129
|
+
`:O=`
|
|
130
|
+
`:(v+=O+z,O=" ",A=!1)}switch(c.chomp){case"-":break;case"+":for(let S=m;S<h.length;++S)v+=`
|
|
131
|
+
`+h[S][0].slice(g);v[v.length-1]!==`
|
|
132
|
+
`&&(v+=`
|
|
133
|
+
`);break;default:v+=`
|
|
134
|
+
`}const C=s+c.length+l.source.length;return{value:v,type:o,comment:c.comment,range:[s,C,C]}}function ob({offset:u,props:l},i,s){if(l[0].type!=="block-scalar-header")return s(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:c}=l[0],o=c[0];let h=0,m="",g=-1;for(let O=1;O<c.length;++O){const A=c[O];if(!m&&(A==="-"||A==="+"))m=A;else{const C=Number(A);!h&&C?h=C:g===-1&&(g=u+O)}}g!==-1&&s(g,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let p=!1,w="",v=c.length;for(let O=1;O<l.length;++O){const A=l[O];switch(A.type){case"space":p=!0;case"newline":v+=A.source.length;break;case"comment":i&&!p&&s(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),v+=A.source.length,w=A.source.substring(1);break;case"error":s(A,"UNEXPECTED_TOKEN",A.message),v+=A.source.length;break;default:{const C=`Unexpected token in block scalar header: ${A.type}`;s(A,"UNEXPECTED_TOKEN",C);const S=A.source;S&&typeof S=="string"&&(v+=S.length)}}}return{mode:o,indent:h,chomp:m,comment:w,length:v}}function hb(u){const l=u.split(/\n( *)/),i=l[0],s=i.match(/^( *)/),o=[s!=null&&s[1]?[s[1],i.slice(s[1].length)]:["",i]];for(let h=1;h<l.length;h+=2)o.push([l[h],l[h+1]]);return o}function Up(u,l,i){const{offset:s,type:c,source:o,end:h}=u;let m,g;const p=(O,A,C)=>i(s+O,A,C);switch(c){case"scalar":m=re.PLAIN,g=db(o,p);break;case"single-quoted-scalar":m=re.QUOTE_SINGLE,g=mb(o,p);break;case"double-quoted-scalar":m=re.QUOTE_DOUBLE,g=gb(o,p);break;default:return i(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const w=s+o.length,v=Hi(h,w,l,i);return{value:g,type:m,comment:v.comment,range:[s,w,v.offset]}}function db(u,l){let i="";switch(u[0]){case" ":i="a tab character";break;case",":i="flow indicator character ,";break;case"%":i="directive indicator character %";break;case"|":case">":{i=`block scalar indicator ${u[0]}`;break}case"@":case"`":{i=`reserved character ${u[0]}`;break}}return i&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${i}`),kp(u)}function mb(u,l){return(u[u.length-1]!=="'"||u.length===1)&&l(u.length,"MISSING_CHAR","Missing closing 'quote"),kp(u.slice(1,-1)).replace(/''/g,"'")}function kp(u){let l,i;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
135
|
+
`,"sy"),i=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
136
|
+
`,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,i=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=l.exec(u);if(!s)return u;let c=s[1],o=" ",h=l.lastIndex;for(i.lastIndex=h;s=i.exec(u);)s[1]===""?o===`
|
|
137
|
+
`?c+=o:o=`
|
|
138
|
+
`:(c+=o+s[1],o=" "),h=i.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,s=m.exec(u),c+o+((s==null?void 0:s[1])??"")}function gb(u,l){let i="";for(let s=1;s<u.length-1;++s){const c=u[s];if(!(c==="\r"&&u[s+1]===`
|
|
139
|
+
`))if(c===`
|
|
140
|
+
`){const{fold:o,offset:h}=pb(u,s);i+=o,s=h}else if(c==="\\"){let o=u[++s];const h=yb[o];if(h)i+=h;else if(o===`
|
|
141
|
+
`)for(o=u[s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="\r"&&u[s+1]===`
|
|
142
|
+
`)for(o=u[++s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="x"||o==="u"||o==="U"){const m={x:2,u:4,U:8}[o];i+=vb(u,s+1,m,l),s+=m}else{const m=u.substr(s-1,2);l(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),i+=m}}else if(c===" "||c===" "){const o=s;let h=u[s+1];for(;h===" "||h===" ";)h=u[++s+1];h!==`
|
|
143
|
+
`&&!(h==="\r"&&u[s+2]===`
|
|
144
|
+
`)&&(i+=s>o?u.slice(o,s+1):c)}else i+=c}return(u[u.length-1]!=='"'||u.length===1)&&l(u.length,"MISSING_CHAR",'Missing closing "quote'),i}function pb(u,l){let i="",s=u[l+1];for(;(s===" "||s===" "||s===`
|
|
145
|
+
`||s==="\r")&&!(s==="\r"&&u[l+2]!==`
|
|
146
|
+
`);)s===`
|
|
147
|
+
`&&(i+=`
|
|
148
|
+
`),l+=1,s=u[l+1];return i||(i=" "),{fold:i,offset:l}}const yb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
149
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vb(u,l,i,s){const c=u.substr(l,i),h=c.length===i&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=u.substr(l-2,i+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function Rp(u,l,i,s){const{value:c,type:o,comment:h,range:m}=l.type==="block-scalar"?jp(u,l,s):Up(l,u.options.strict,s),g=i?u.directives.tagName(i.source,v=>s(i,"TAG_RESOLVE_FAILED",v)):null;let p;u.options.stringKeys&&u.atKey?p=u.schema[sn]:g?p=bb(u.schema,c,g,i,s):l.type==="scalar"?p=Sb(u,c,l,s):p=u.schema[sn];let w;try{const v=p.resolve(c,O=>s(i??l,"TAG_RESOLVE_FAILED",O),u.options);w=Le(v)?v:new re(v)}catch(v){const O=v instanceof Error?v.message:String(v);s(i??l,"TAG_RESOLVE_FAILED",O),w=new re(c)}return w.range=m,w.source=c,o&&(w.type=o),g&&(w.tag=g),p.format&&(w.format=p.format),h&&(w.comment=h),w}function bb(u,l,i,s,c){var m;if(i==="!")return u[sn];const o=[];for(const g of u.tags)if(!g.collection&&g.tag===i)if(g.default&&g.test)o.push(g);else return g;for(const g of o)if((m=g.test)!=null&&m.test(l))return g;const h=u.knownTags[i];return h&&!h.collection?(u.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,i!=="tag:yaml.org,2002:str"),u[sn])}function Sb({atKey:u,directives:l,schema:i},s,c,o){const h=i.tags.find(m=>{var g;return(m.default===!0||u&&m.default==="key")&&((g=m.test)==null?void 0:g.test(s))})||i[sn];if(i.compat){const m=i.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(s))})??i[sn];if(h.tag!==m.tag){const g=l.tagString(h.tag),p=l.tagString(m.tag),w=`Value may be parsed as either ${g} or ${p}`;o(c,"TAG_RESOLVE_FAILED",w,!0)}}return h}function Tb(u,l,i){if(l){i===null&&(i=l.length);for(let s=i-1;s>=0;--s){let c=l[s];switch(c.type){case"space":case"comment":case"newline":u-=c.source.length;continue}for(c=l[++s];(c==null?void 0:c.type)==="space";)u+=c.source.length,c=l[++s];break}}return u}const Eb={composeNode:Bp,composeEmptyNode:Jf};function Bp(u,l,i,s){const c=u.atKey,{spaceBefore:o,comment:h,anchor:m,tag:g}=i;let p,w=!0;switch(l.type){case"alias":p=wb(u,l,s),(m||g)&&s(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=Rp(u,l,g,s),m&&(p.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":p=fb(Eb,u,l,i,s),m&&(p.anchor=m.source.substring(1));break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",v),p=Jf(u,l.offset,void 0,null,i,s),w=!1}}return m&&p.anchor===""&&s(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&u.options.stringKeys&&(!Le(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&s(g??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),u.options.keepSourceTokens&&w&&(p.srcToken=l),p}function Jf(u,l,i,s,{spaceBefore:c,comment:o,anchor:h,tag:m,end:g},p){const w={type:"scalar",offset:Tb(l,i,s),indent:-1,source:""},v=Rp(u,w,m,p);return h&&(v.anchor=h.source.substring(1),v.anchor===""&&p(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(v.spaceBefore=!0),o&&(v.comment=o,v.range[2]=g),v}function wb({options:u},{offset:l,source:i,end:s},c){const o=new xu(i.substring(1));o.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&c(l+i.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+i.length,m=Hi(s,h,u.strict,c);return o.range=[l,h,m.offset],m.comment&&(o.comment=m.comment),o}function Ab(u,l,{offset:i,start:s,value:c,end:o},h){const m=Object.assign({_directives:l},u),g=new Ua(void 0,m),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},w=_a(s,{indicator:"doc-start",next:c??(o==null?void 0:o[0]),offset:i,onError:h,parentIndent:0,startOnNewline:!0});w.found&&(g.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!w.hasNewline&&h(w.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=c?Bp(p,c,w,h):Jf(p,w.end,s,null,w,h);const v=g.contents.range[2],O=Hi(o,v,!1,h);return O.comment&&(g.comment=O.comment),g.range=[i,v,O.offset],g}function zi(u){if(typeof u=="number")return[u,u+1];if(Array.isArray(u))return u.length===2?u:[u[0],u[1]];const{offset:l,source:i}=u;return[l,l+(typeof i=="string"?i.length:1)]}function Ag(u){var c;let l="",i=!1,s=!1;for(let o=0;o<u.length;++o){const h=u[o];switch(h[0]){case"#":l+=(l===""?"":s?`
|
|
150
|
+
|
|
151
|
+
`:`
|
|
152
|
+
`)+(h.substring(1)||" "),i=!0,s=!1;break;case"%":((c=u[o+1])==null?void 0:c[0])!=="#"&&(o+=1),i=!1;break;default:i||(s=!0),i=!1}}return{comment:l,afterEmptyLine:s}}class Wf{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(i,s,c,o)=>{const h=zi(i);o?this.warnings.push(new Dp(h,s,c)):this.errors.push(new Ol(h,s,c))},this.directives=new ht({version:l.version||"1.2"}),this.options=l}decorate(l,i){const{comment:s,afterEmptyLine:c}=Ag(this.prelude);if(s){const o=l.contents;if(i)l.comment=l.comment?`${l.comment}
|
|
153
|
+
${s}`:s;else if(c||l.directives.docStart||!o)l.commentBefore=s;else if(Be(o)&&!o.flow&&o.items.length>0){let h=o.items[0];Re(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${s}
|
|
154
|
+
${m}`:s}else{const h=o.commentBefore;o.commentBefore=h?`${s}
|
|
155
|
+
${h}`:s}}i?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ag(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,i=!1,s=-1){for(const c of l)yield*this.next(c);yield*this.end(i,s)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(i,s,c)=>{const o=zi(l);o[0]+=i,this.onError(o,"BAD_DIRECTIVE",s,c)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const i=Ab(this.options,this.directives,l,this.onError);this.atDirectives&&!i.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(i,!1),this.doc&&(yield this.doc),this.doc=i,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const i=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,s=new Ol(zi(l),"UNEXPECTED_TOKEN",i);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Ol(zi(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const i=Hi(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),i.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
|
|
156
|
+
${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.push(new Ol(zi(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,i=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),c=new Ua(void 0,s);this.atDirectives&&this.onError(i,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,i,i],this.decorate(c,!1),yield c}}}function Nb(u,l=!0,i){if(u){const s=(c,o,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(i)i(m,o,h);else throw new Ol([m,m+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Up(u,l,s);case"block-scalar":return jp({options:{strict:l}},u,s)}}return null}function Ob(u,l){const{implicitKey:i=!1,indent:s,inFlow:c=!1,offset:o=-1,type:h="PLAIN"}=l,m=Bi({type:h,value:u},{implicitKey:i,indent:s>0?" ".repeat(s):"",inFlow:c,options:{blockQuote:!0,lineWidth:-1}}),g=l.end??[{type:"newline",offset:-1,indent:s,source:`
|
|
157
|
+
`}];switch(m[0]){case"|":case">":{const p=m.indexOf(`
|
|
158
|
+
`),w=m.substring(0,p),v=m.substring(p+1)+`
|
|
159
|
+
`,O=[{type:"block-scalar-header",offset:o,indent:s,source:w}];return qp(O,g)||O.push({type:"newline",offset:-1,indent:s,source:`
|
|
160
|
+
`}),{type:"block-scalar",offset:o,indent:s,props:O,source:v}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:m,end:g};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:m,end:g};default:return{type:"scalar",offset:o,indent:s,source:m,end:g}}}function _b(u,l,i={}){let{afterKey:s=!1,implicitKey:c=!1,inFlow:o=!1,type:h}=i,m="indent"in u?u.indent:null;if(s&&typeof m=="number"&&(m+=2),!h)switch(u.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const p=u.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const g=Bi({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":xb(u,g);break;case'"':Sf(u,g,"double-quoted-scalar");break;case"'":Sf(u,g,"single-quoted-scalar");break;default:Sf(u,g,"scalar")}}function xb(u,l){const i=l.indexOf(`
|
|
161
|
+
`),s=l.substring(0,i),c=l.substring(i+1)+`
|
|
162
|
+
`;if(u.type==="block-scalar"){const o=u.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=s,u.source=c}else{const{offset:o}=u,h="indent"in u?u.indent:-1,m=[{type:"block-scalar-header",offset:o,indent:h,source:s}];qp(m,"end"in u?u.end:void 0)||m.push({type:"newline",offset:-1,indent:h,source:`
|
|
163
|
+
`});for(const g of Object.keys(u))g!=="type"&&g!=="offset"&&delete u[g];Object.assign(u,{type:"block-scalar",indent:h,props:m,source:c})}}function qp(u,l){if(l)for(const i of l)switch(i.type){case"space":case"comment":u.push(i);break;case"newline":return u.push(i),!0}return!1}function Sf(u,l,i){switch(u.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":u.type=i,u.source=l;break;case"block-scalar":{const s=u.props.slice(1);let c=l.length;u.props[0].type==="block-scalar-header"&&(c-=u.props[0].source.length);for(const o of s)o.offset+=c;delete u.props,Object.assign(u,{type:i,source:l,end:s});break}case"block-map":case"block-seq":{const c={type:"newline",offset:u.offset+l.length,indent:u.indent,source:`
|
|
164
|
+
`};delete u.items,Object.assign(u,{type:i,source:l,end:[c]});break}default:{const s="indent"in u?u.indent:-1,c="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:i,indent:s,source:l,end:c})}}}const Mb=u=>"type"in u?wu(u):yu(u);function wu(u){switch(u.type){case"block-scalar":{let l="";for(const i of u.props)l+=wu(i);return l+u.source}case"block-map":case"block-seq":{let l="";for(const i of u.items)l+=yu(i);return l}case"flow-collection":{let l=u.start.source;for(const i of u.items)l+=yu(i);for(const i of u.end)l+=i.source;return l}case"document":{let l=yu(u);if(u.end)for(const i of u.end)l+=i.source;return l}default:{let l=u.source;if("end"in u&&u.end)for(const i of u.end)l+=i.source;return l}}}function yu({start:u,key:l,sep:i,value:s}){let c="";for(const o of u)c+=o.source;if(l&&(c+=wu(l)),i)for(const o of i)c+=o.source;return s&&(c+=wu(s)),c}const jf=Symbol("break visit"),Cb=Symbol("skip children"),Hp=Symbol("remove item");function xl(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),Yp(Object.freeze([]),u,l)}xl.BREAK=jf;xl.SKIP=Cb;xl.REMOVE=Hp;xl.itemAtPath=(u,l)=>{let i=u;for(const[s,c]of l){const o=i==null?void 0:i[s];if(o&&"items"in o)i=o.items[c];else return}return i};xl.parentCollection=(u,l)=>{const i=xl.itemAtPath(u,l.slice(0,-1)),s=l[l.length-1][0],c=i==null?void 0:i[s];if(c&&"items"in c)return c;throw new Error("Parent collection not found")};function Yp(u,l,i){let s=i(l,u);if(typeof s=="symbol")return s;for(const c of["key","value"]){const o=l[c];if(o&&"items"in o){for(let h=0;h<o.items.length;++h){const m=Yp(Object.freeze(u.concat([[c,h]])),o.items[h],i);if(typeof m=="number")h=m-1;else{if(m===jf)return jf;m===Hp&&(o.items.splice(h,1),h-=1)}}typeof s=="function"&&c==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const Bu="\uFEFF",qu="",Hu="",ki="",zb=u=>!!u&&"items"in u,Db=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function Lb(u){switch(u){case Bu:return"<BOM>";case qu:return"<DOC>";case Hu:return"<FLOW_END>";case ki:return"<SCALAR>";default:return JSON.stringify(u)}}function $p(u){switch(u){case Bu:return"byte-order-mark";case qu:return"doc-mode";case Hu:return"flow-error-end";case ki:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
165
|
+
`:case`\r
|
|
166
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const jb=Object.freeze(Object.defineProperty({__proto__:null,BOM:Bu,DOCUMENT:qu,FLOW_END:Hu,SCALAR:ki,createScalarToken:Ob,isCollection:zb,isScalar:Db,prettyToken:Lb,resolveAsScalar:Nb,setScalarValue:_b,stringify:Mb,tokenType:$p,visit:xl},Symbol.toStringTag,{value:"Module"}));function It(u){switch(u){case void 0:case" ":case`
|
|
167
|
+
`:case"\r":case" ":return!0;default:return!1}}const Ng=new Set("0123456789ABCDEFabcdef"),Ub=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),uu=new Set(",[]{}"),kb=new Set(` ,[]{}
|
|
168
|
+
\r `),Tf=u=>!u||kb.has(u);class Gp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,i=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!i;let s=this.next??"stream";for(;s&&(i||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let l=this.pos,i=this.buffer[l];for(;i===" "||i===" ";)i=this.buffer[++l];return!i||i==="#"||i===`
|
|
169
|
+
`?!0:i==="\r"?this.buffer[l+1]===`
|
|
170
|
+
`:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let i=this.buffer[l];if(this.indentNext>0){let s=0;for(;i===" ";)i=this.buffer[++s+l];if(i==="\r"){const c=this.buffer[s+l+1];if(c===`
|
|
171
|
+
`||!c&&!this.atEnd)return l+s+1}return i===`
|
|
172
|
+
`||s>=this.indentNext||!i&&!this.atEnd?l+s:-1}if(i==="-"||i==="."){const s=this.buffer.substr(l,3);if((s==="---"||s==="...")&&It(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
|
|
173
|
+
`,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===Bu&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let i=l.length,s=l.indexOf("#");for(;s!==-1;){const o=l[s-1];if(o===" "||o===" "){i=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const o=l[i-1];if(o===" "||o===" ")i-=1;else break}const c=(yield*this.pushCount(i))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-c),this.pushNewline(),"stream"}if(this.atLineEnd()){const i=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-i),yield*this.pushNewline(),"stream"}return yield qu,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const i=this.peek(3);if((i==="---"||i==="...")&&It(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,i==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!It(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,i]=this.peek(2);if(!i&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&It(i)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let i=yield*this.pushIndicators();switch(l[i]){case"#":yield*this.pushCount(l.length-i);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Tf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return i+=yield*this.parseBlockScalarHeader(),i+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-i),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,i,s=-1;do l=yield*this.pushNewline(),l>0?(i=yield*this.pushSpaces(!1),this.indentValue=s=i):i=0,i+=yield*this.pushSpaces(!0);while(l+i>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&c[0]!=="#"||s===0&&(c.startsWith("---")||c.startsWith("..."))&&It(c[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield Hu,yield*this.parseLineStart();let o=0;for(;c[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),c[o]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Tf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||It(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let i=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;i!==-1&&this.buffer[i+1]==="'";)i=this.buffer.indexOf("'",i+2);else for(;i!==-1;){let o=0;for(;this.buffer[i-1-o]==="\\";)o+=1;if(o%2===0)break;i=this.buffer.indexOf('"',i+1)}const s=this.buffer.substring(0,i);let c=s.indexOf(`
|
|
174
|
+
`,this.pos);if(c!==-1){for(;c!==-1;){const o=this.continueScalar(c+1);if(o===-1)break;c=s.indexOf(`
|
|
175
|
+
`,o)}c!==-1&&(i=c-(s[c-1]==="\r"?2:1))}if(i===-1){if(!this.atEnd)return this.setNext("quoted-scalar");i=this.buffer.length}return yield*this.pushToIndex(i+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const i=this.buffer[++l];if(i==="+")this.blockScalarKeep=!0;else if(i>"0"&&i<="9")this.blockScalarIndent=Number(i)-1;else if(i!=="-")break}return yield*this.pushUntil(i=>It(i)||i==="#")}*parseBlockScalar(){let l=this.pos-1,i=0,s;e:for(let o=this.pos;s=this.buffer[o];++o)switch(s){case" ":i+=1;break;case`
|
|
176
|
+
`:l=o,i=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
|
|
177
|
+
`)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(i>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=i:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(`
|
|
178
|
+
`,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let c=l+1;for(s=this.buffer[c];s===" ";)s=this.buffer[++c];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
|
|
179
|
+
`;)s=this.buffer[++c];l=c-1}else if(!this.blockScalarKeep)do{let o=l-1,h=this.buffer[o];h==="\r"&&(h=this.buffer[--o]);const m=o;for(;h===" ";)h=this.buffer[--o];if(h===`
|
|
180
|
+
`&&o>=this.pos&&o+1+i>m)l=o;else break}while(!0);return yield ki,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let i=this.pos-1,s=this.pos-1,c;for(;c=this.buffer[++s];)if(c===":"){const o=this.buffer[s+1];if(It(o)||l&&uu.has(o))break;i=s}else if(It(c)){let o=this.buffer[s+1];if(c==="\r"&&(o===`
|
|
181
|
+
`?(s+=1,c=`
|
|
182
|
+
`,o=this.buffer[s+1]):i=s),o==="#"||l&&uu.has(o))break;if(c===`
|
|
183
|
+
`){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&uu.has(c))break;i=s}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield ki,yield*this.pushToIndex(i+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,i){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(i&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Tf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,i=this.charAt(1);if(It(i)||l&&uu.has(i))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,i=this.buffer[l];for(;!It(i)&&i!==">";)i=this.buffer[++l];return yield*this.pushToIndex(i===">"?l+1:l,!1)}else{let l=this.pos+1,i=this.buffer[l];for(;i;)if(Ub.has(i))i=this.buffer[++l];else if(i==="%"&&Ng.has(this.buffer[l+1])&&Ng.has(this.buffer[l+2]))i=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
|
|
184
|
+
`?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
|
|
185
|
+
`?yield*this.pushCount(2):0}*pushSpaces(l){let i=this.pos-1,s;do s=this.buffer[++i];while(s===" "||l&&s===" ");const c=i-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=i),c}*pushUntil(l){let i=this.pos,s=this.buffer[i];for(;!l(s);)s=this.buffer[++i];return yield*this.pushToIndex(i,!1)}}class Kp{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let i=0,s=this.lineStarts.length;for(;i<s;){const o=i+s>>1;this.lineStarts[o]<l?i=o+1:s=o}if(this.lineStarts[i]===l)return{line:i+1,col:1};if(i===0)return{line:0,col:l};const c=this.lineStarts[i-1];return{line:i,col:l-c+1}}}}function wl(u,l){for(let i=0;i<u.length;++i)if(u[i].type===l)return!0;return!1}function Og(u){for(let l=0;l<u.length;++l)switch(u[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function Vp(u){switch(u==null?void 0:u.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function cu(u){switch(u.type){case"document":return u.start;case"block-map":{const l=u.items[u.items.length-1];return l.sep??l.start}case"block-seq":return u.items[u.items.length-1].start;default:return[]}}function ya(u){var i;if(u.length===0)return[];let l=u.length;e:for(;--l>=0;)switch(u[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((i=u[++l])==null?void 0:i.type)==="space";);return u.splice(l,u.length)}function _g(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!wl(l.start,"explicit-key-ind")&&!wl(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Vp(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Ff{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Gp,this.onNewLine=l}*parse(l,i=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(l,i))yield*this.next(s);i||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const i=$p(l);if(i)if(i==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=i,yield*this.step(),i){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const s=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(!l||l.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const i=l??this.stack.pop();if(!i)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield i;else{const s=this.peek(1);switch(i.type==="block-scalar"?i.indent="indent"in s?s.indent:0:i.type==="flow-collection"&&s.type==="document"&&(i.indent=0),i.type==="flow-collection"&&_g(i),s.type){case"document":s.value=i;break;case"block-scalar":s.props.push(i);break;case"block-map":{const c=s.items[s.items.length-1];if(c.value){s.items.push({start:[],key:i,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=i;else{Object.assign(c,{key:i,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=s.items[s.items.length-1];c.value?s.items.push({start:[],value:i}):c.value=i;break}case"flow-collection":{const c=s.items[s.items.length-1];!c||c.value?s.items.push({start:[],key:i,sep:[]}):c.sep?c.value=i:Object.assign(c,{key:i,sep:[]});return}default:yield*this.pop(),yield*this.pop(i)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(i.type==="block-map"||i.type==="block-seq")){const c=i.items[i.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&Og(c.start)===-1&&(i.indent===0||c.start.every(o=>o.type!=="comment"||o.indent<i.indent))&&(s.type==="document"?s.end=c.start:s.items.push({start:c.start}),i.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{Og(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const i=this.startBlockValue(l);i?this.stack.push(i):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const i=cu(this.peek(2)),s=ya(i);let c;l.end?(c=l.end,c.push(this.sourceToken),delete l.end):c=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:s,key:l,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let i=this.source.indexOf(`
|
|
186
|
+
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
187
|
+
`,i)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,i.value){const c="end"in i.value?i.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else if(i.sep)i.sep.push(this.sourceToken);else{if(this.atIndentedComment(i.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const c=!this.onKeyLine&&this.indent===l.indent,o=c&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&i.sep&&!i.value){const m=[];for(let g=0;g<i.sep.length;++g){const p=i.sep[g];switch(p.type){case"newline":m.push(g);break;case"space":break;case"comment":p.indent>l.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(h=i.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(wl(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Vp(i.key)&&!wl(i.sep,"newline")){const m=ya(i.start),g=i.key,p=i.sep;p.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:g,sep:p}]})}else h.length>0?i.sep=i.sep.concat(h,this.sourceToken):i.sep.push(this.sourceToken);else if(wl(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const m=ya(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):wl(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);o||i.value?(l.items.push({start:h,key:m,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(m):(Object.assign(i,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(l);if(m){c&&m.type!=="block-seq"&&l.items.push({start:h}),this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var s;const i=l.items[l.items.length-1];switch(this.type){case"newline":if(i.value){const c="end"in i.value?i.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),l.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=l.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;i.value||wl(i.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>l.indent){const c=this.startBlockValue(l);if(c){this.stack.push(c);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const i=l.items[l.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?l.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?l.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!i||i.value?l.items.push({start:[],key:c,sep:[]}):i.sep?this.stack.push(c):Object.assign(i,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const s=this.startBlockValue(l);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===l.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const c=cu(s),o=ya(c);_g(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let i=this.source.indexOf(`
|
|
188
|
+
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
189
|
+
`,i)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=cu(l),s=ya(i);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=cu(l),s=ya(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,i){return this.type!=="comment"||this.indent<=i?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Qp(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Kp||null,prettyErrors:l}}function Rb(u,l={}){const{lineCounter:i,prettyErrors:s}=Qp(l),c=new Ff(i==null?void 0:i.addNewLine),o=new Wf(l),h=Array.from(o.compose(c.parse(u)));if(s&&i)for(const m of h)m.errors.forEach(Eu(u,i)),m.warnings.forEach(Eu(u,i));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Xp(u,l={}){const{lineCounter:i,prettyErrors:s}=Qp(l),c=new Ff(i==null?void 0:i.addNewLine),o=new Wf(l);let h=null;for(const m of o.compose(c.parse(u),!0,u.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new Ol(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&i&&(h.errors.forEach(Eu(u,i)),h.warnings.forEach(Eu(u,i))),h}function Bb(u,l,i){let s;typeof l=="function"?s=l:i===void 0&&l&&typeof l=="object"&&(i=l);const c=Xp(u,i);if(!c)return null;if(c.warnings.forEach(o=>dp(c.options.logLevel,o)),c.errors.length>0){if(c.options.logLevel!=="silent")throw c.errors[0];c.errors=[]}return c.toJS(Object.assign({reviver:s},i))}function qb(u,l,i){let s=null;if(typeof l=="function"||Array.isArray(l)?s=l:i===void 0&&l&&(i=l),typeof i=="string"&&(i=i.length),typeof i=="number"){const c=Math.round(i);i=c<1?void 0:c>8?{indent:8}:{indent:c}}if(u===void 0){const{keepUndefined:c}=i??l??{};if(!c)return}return Cl(u)&&!s?u.toString(i):new Ua(u,s,i).toString(i)}const Hb=Object.freeze(Object.defineProperty({__proto__:null,Alias:xu,CST:jb,Composer:Wf,Document:Ua,Lexer:Gp,LineCounter:Kp,Pair:ft,Parser:Ff,Scalar:re,Schema:Ru,YAMLError:Zf,YAMLMap:Ut,YAMLParseError:Ol,YAMLSeq:nl,YAMLWarning:Dp,isAlias:Ml,isCollection:Be,isDocument:Cl,isMap:za,isNode:qe,isPair:Re,isScalar:Le,isSeq:Da,parse:Bb,parseAllDocuments:Rb,parseDocument:Xp,stringify:qb,visit:tl,visitAsync:_u},Symbol.toStringTag,{value:"Module"}));function Yb(u,l,i={}){var O;const s=new u.LineCounter,c={keepSourceTokens:!0,lineCounter:s,...i},o=u.parseDocument(l,c),h=[],m=A=>[s.linePos(A[0]),s.linePos(A[1])],g=A=>{h.push({message:A.message,range:[s.linePos(A.pos[0]),s.linePos(A.pos[1])]})},p=(A,C)=>{for(const S of C.items){if(S instanceof u.Scalar&&typeof S.value=="string"){const U=Au.parse(S,c,h);U&&(A.children=A.children||[],A.children.push(U));continue}if(S instanceof u.YAMLMap){w(A,S);continue}h.push({message:"Sequence items should be strings or maps",range:m(S.range||C.range)})}},w=(A,C)=>{for(const S of C.items){if(A.children=A.children||[],!(S.key instanceof u.Scalar&&typeof S.key.value=="string")){h.push({message:"Only string keys are supported",range:m(S.key.range||C.range)});continue}const z=S.key,U=S.value;if(z.value==="text"){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Text value should be a string",range:m(S.value.range||C.range)});continue}A.children.push({kind:"text",text:Ef(U.value)});continue}if(z.value==="/children"){if(!(U instanceof u.Scalar&&typeof U.value=="string")||U.value!=="contain"&&U.value!=="equal"&&U.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(S.value.range||C.range)});continue}A.containerMode=U.value;continue}if(z.value.startsWith("/")){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Property value should be a string",range:m(S.value.range||C.range)});continue}A.props=A.props??{},A.props[z.value.slice(1)]=Ef(U.value);continue}const K=Au.parse(z,c,h);if(!K)continue;if(U instanceof u.Scalar){const V=typeof U.value;if(V!=="string"&&V!=="number"&&V!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(S.value.range||C.range)});continue}A.children.push({...K,children:[{kind:"text",text:Ef(String(U.value))}]});continue}if(U instanceof u.YAMLSeq){A.children.push(K),p(K,U);continue}h.push({message:"Map values should be strings or sequences",range:m(S.value.range||C.range)})}},v={kind:"role",role:"fragment"};return o.errors.forEach(g),h.length?{errors:h,fragment:v}:(o.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?m(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(p(v,o.contents),h.length?{errors:h,fragment:$b}:((O=v.children)==null?void 0:O.length)===1&&(!v.containerMode||v.containerMode==="contain")?{fragment:v.children[0],errors:[]}:{fragment:v,errors:[]}))}const $b={kind:"role",role:"fragment"};function Zp(u){return u.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function Ef(u){return{raw:u,normalized:Zp(u)}}class Au{static parse(l,i,s){try{return new Au(l.value)._parse()}catch(c){if(c instanceof xg){const o=i.prettyErrors===!1?c.message:c.message+`:
|
|
190
|
+
|
|
191
|
+
`+l.value+`
|
|
192
|
+
`+" ".repeat(c.pos)+`^
|
|
193
|
+
`;return s.push({message:o,range:[i.lineCounter.linePos(l.range[0]),i.lineCounter.linePos(l.range[0]+c.pos)]}),null}throw c}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const i=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(i,this._pos)}_readString(){let l="",i=!1;for(;!this._eof();){const s=this._next();if(i)l+=s,i=!1;else if(s==="\\")i=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,i=0){throw new xg(l,i||this._pos)}_readRegex(){let l="",i=!1,s=!1;for(;!this._eof();){const c=this._next();if(i)l+=c,i=!1;else if(c==="\\")i=!0,l+=c;else{if(c==="/"&&!s)return{pattern:l};c==="["?(s=!0,l+=c):c==="]"&&s?(l+=c,s=!1):l+=c}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),Zp(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let i=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),i=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let c="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),i=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)c+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,c||"true",i)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const i=this._readStringOrRegex()||"",s={kind:"role",role:l,name:i};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,i,s,c){if(i==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',c),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(i==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',c),l.disabled=s==="true";return}if(i==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',c),l.expanded=s==="true";return}if(i==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',c),l.active=s==="true";return}if(i==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',c),l.level=Number(s);return}if(i==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',c),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(i==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',c),l.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${i}]`,c)}_assert(l,i,s){l||this._throwError(i||"Assertion error",s)}}class xg extends Error{constructor(l,i){super(l),this.pos=i}}const Gb=({className:u,style:l,open:i,isModal:s,minWidth:c,verticalOffset:o,requestClose:h,anchor:m,dataTestId:g,children:p})=>{const w=ce.useRef(null),[v,O]=ce.useState(0),[A]=wf(w),[C,S]=wf(m),T=m?Kb(A,C,o):void 0;return ce.useEffect(()=>{const z=K=>{!w.current||!(K.target instanceof Node)||w.current.contains(K.target)||h==null||h()},U=K=>{K.key==="Escape"&&(h==null||h())};return i?(document.addEventListener("mousedown",z),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("keydown",U)}):()=>{}},[i,h]),ce.useLayoutEffect(()=>S(),[i,S]),ce.useEffect(()=>{const z=()=>O(U=>U+1);return window.addEventListener("resize",z),()=>{window.removeEventListener("resize",z)}},[]),ce.useLayoutEffect(()=>{w.current&&(i?s?w.current.showModal():w.current.show():w.current.close())},[i,s]),q.jsx("dialog",{ref:w,style:{position:"fixed",margin:T?0:void 0,zIndex:110,top:T==null?void 0:T.top,left:T==null?void 0:T.left,minWidth:c||0,...l},className:u,"data-testid":g,children:p})};function Kb(u,l,i=4,s=4){let c=Math.max(s,l.left);c+u.width>window.innerWidth-s&&(c=window.innerWidth-u.width-s);let o=Math.max(0,l.bottom)+i;return o+u.height>window.innerHeight-i&&(Math.max(0,l.top)>u.height+i?o=Math.max(0,l.top)-u.height-i:o=window.innerHeight-i-u.height),{left:c,top:o}}const Vb=({})=>{const[u,l]=ce.useState([]),[i,s]=ce.useState(!1),[c,o]=ce.useState(new Map),[h,m]=ce.useState("none"),[g,p]=ce.useState(),[w,v]=vu("recorderPropertiesTab","log"),[O,A]=ce.useState(),[C,S]=ce.useState(),[T,z]=ce.useState(!1),[U,K]=Mv(),[X,W]=vu("autoExpect",!1),V=ce.useRef(null),G=ce.useMemo(Zb,[]),[Q,k]=ce.useState(""),[de,fe]=ce.useState("my scenario"),[j,le]=ce.useState(null),[ze,$e]=ce.useState([]),[R,Z]=ce.useState(null),[te,Ae]=ce.useState(!1),Ne=ce.useRef(null),E=ce.useMemo(()=>u.find(ee=>ee.id===g)??Pv(),[u,g]);ce.useLayoutEffect(()=>{const ne={modeChanged:({mode:ee})=>m(ee),sourcesUpdated:({sources:ee})=>{l(ee),window.playwrightSourcesEchoForTest=ee},pageNavigated:({url:ee})=>{document.title=ee?`Playwright Inspector - ${ee}`:"Playwright Inspector"},pauseStateChanged:({paused:ee})=>s(ee),callLogsUpdated:({callLogs:ee})=>{o(dt=>{const mt=new Map(dt);for(const kt of ee)kt.reveal=!dt.has(kt.id),mt.set(kt.id,kt);return mt})},sourceRevealRequested:({sourceId:ee})=>p(ee),elementPicked:({elementInfo:ee,userGesture:dt})=>{const mt=E.language;k(ep(mt,ee.selector)),A(ee.ariaSnapshot),S([]),dt&&w!=="locator"&&w!=="aria"&&v("locator"),h==="inspecting"&&w==="aria"||G.setMode({mode:h==="inspecting"?"standby":"recording"}).catch(()=>{})},generationStatusChanged:ee=>le(ee),networkEntriesUpdated:({entries:ee})=>$e(ee),promptReady:({prompt:ee,filePath:dt})=>{var mt;Z(ee),(mt=navigator.clipboard)!=null&&mt.writeText?navigator.clipboard.writeText(ee).catch(()=>ga(ee)):ga(ee)},configUpdated:({aiCodegen:ee})=>Ae(ee)};window.dispatch=ee=>{ne[ee.method].call(ne,ee.params)}},[G,h,w,v,E]),ce.useEffect(()=>{G.setAutoExpect({autoExpect:X})},[X,G]),ce.useLayoutEffect(()=>{var ne;(ne=Ne.current)==null||ne.scrollIntoView({block:"center",inline:"nearest"})},[Ne]),ce.useLayoutEffect(()=>{const ne=ee=>{switch(ee.key){case"F8":ee.preventDefault(),i?G.resume():G.pause();break;case"F10":ee.preventDefault(),i&&G.step();break}};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[i,G]);const $=ce.useCallback(ne=>{(h==="none"||h==="inspecting")&&G.setMode({mode:"standby"}),k(ne),G.highlightRequested({selector:ne})},[h,G]),J=ce.useCallback(ne=>{(h==="none"||h==="inspecting")&&G.setMode({mode:"standby"});const{fragment:ee,errors:dt}=Yb(Hb,ne,{prettyErrors:!1}),mt=dt.map(kt=>({message:kt.message,line:kt.range[1].line,column:kt.range[1].col,type:"subtle-error"}));S(mt),A(ne),dt.length||G.highlightRequested({ariaTemplate:ee})},[h,G]),F=h==="recording"||h==="recording-inspecting"||h==="assertingText"||h==="assertingVisibility",se=j!==null&&j.status!=="done"&&j.status!=="error"&&j.status!=="idle"&&j.status!=="exported",me=q.jsxs(Of,{children:[q.jsx(We,{icon:F?"stop-circle":"circle-large-filled",title:F?"Stop Recording":"Start Recording",toggled:F,onClick:()=>{G.setMode({mode:h==="none"||h==="standby"||h==="inspecting"?"recording":"standby"})},children:"Record"}),q.jsx(df,{}),q.jsx(We,{icon:"inspect",title:"Pick locator",toggled:h==="inspecting"||h==="recording-inspecting",onClick:()=>{const ne={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting",generating:"standby"}[h];G.setMode({mode:ne}).catch(()=>{})}}),q.jsx(We,{icon:"eye",title:"Assert visibility",toggled:h==="assertingVisibility",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingVisibility"?"recording":"assertingVisibility"})}}),q.jsx(We,{icon:"whole-word",title:"Assert text",toggled:h==="assertingText",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingText"?"recording":"assertingText"})}}),q.jsx(We,{icon:"symbol-constant",title:"Assert value",toggled:h==="assertingValue",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingValue"?"recording":"assertingValue"})}}),q.jsx(We,{icon:"gist",title:"Assert snapshot",toggled:h==="assertingSnapshot",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{G.setMode({mode:h==="assertingSnapshot"?"recording":"assertingSnapshot"})}}),q.jsx(df,{}),q.jsx(We,{icon:"files",title:"Copy",disabled:!E||!E.text,onClick:()=>{ga(E.text)}}),q.jsx(We,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!i,onClick:()=>{G.resume()}}),q.jsx(We,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:i,onClick:()=>{G.pause()}}),q.jsx(We,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!i,onClick:()=>{G.step()}}),q.jsx("div",{style:{flex:"auto"}}),q.jsx("div",{children:"Target:"}),q.jsx(Fv,{fileId:E.id,sources:u,setFileId:ne=>{p(ne),G.fileChanged({fileId:ne})}}),q.jsx(We,{icon:"clear-all",title:"Clear",disabled:!E||!E.text,onClick:()=>{G.clear()}}),te&&q.jsx(df,{}),te&&q.jsx(We,{icon:"add",title:"New scenario",onClick:()=>{G.clear();const ne="scenario-"+Date.now();fe(ne),le(null),$e([])},children:"New"}),te&&q.jsx(We,{icon:"sparkle",title:"Generate Test",disabled:!E||!E.text,onClick:()=>{const ne="tests/"+de.replace(/\s+/g,"-")+".spec.ts";G.generateTest({scenarioName:de,outputFile:ne}).catch(()=>{})},children:"Generate"}),q.jsx(We,{ref:V,icon:"settings-gear",title:"Settings",onClick:()=>z(ne=>!ne)}),q.jsxs(Gb,{style:{padding:"4px 8px"},open:T,verticalOffset:8,requestClose:()=>z(!1),anchor:V,dataTestId:"settings-dialog",children:[q.jsxs("div",{className:"setting setting-theme",children:[q.jsx("label",{htmlFor:"dark-mode-setting",children:"Theme:"}),q.jsx("select",{id:"dark-mode-setting",value:U,onChange:ne=>K(ne.target.value),children:Nv.map(ne=>q.jsx("option",{value:ne.value,children:ne.label},ne.value))})]},"dark-mode-setting"),q.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[q.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:X,onChange:()=>{G.setAutoExpect({autoExpect:!X}),W(!X)}}),q.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),Se=j&&q.jsxs(Of,{children:[se&&q.jsxs("div",{className:"generation-bar",children:[q.jsx("div",{className:`generation-dot status-${j.status}`}),q.jsx("span",{className:"generation-message",children:j.message}),q.jsx("progress",{className:"generation-progress",value:j.progress,max:100})]}),j.status==="done"&&q.jsxs("div",{className:"generation-bar",children:[q.jsx("div",{className:"generation-dot status-done"}),q.jsxs("span",{className:"generation-message",children:["✓ Test passed — ",j.outputFile]}),q.jsx("div",{className:"generation-actions",children:q.jsx(We,{icon:"discard",title:"Record another",onClick:()=>{G.clear(),le(null),$e([])},children:"Record another"})})]}),j.status==="error"&&q.jsxs("div",{className:"generation-bar",children:[q.jsx("div",{className:"generation-dot status-error"}),q.jsxs("span",{className:"generation-message",children:["✗ ",j.message.slice(0,120)]}),q.jsxs("div",{className:"generation-actions",children:[q.jsx(We,{icon:"refresh",title:"Try again",onClick:()=>{const ne="tests/"+de.replace(/\s+/g,"-")+".spec.ts";G.generateTest({scenarioName:de,outputFile:ne}).catch(()=>{})},children:"Try again"}),q.jsx(We,{icon:"discard",title:"Record another",onClick:()=>{G.clear(),le(null),$e([])},children:"New"})]})]}),j.status==="exported"&&q.jsxs("div",{className:"generation-bar",children:[q.jsx("div",{className:"generation-dot status-exported"}),q.jsx("span",{className:"generation-message",children:"Prompt copied to clipboard and saved to .playwright-prompt.md"}),q.jsxs("div",{className:"generation-actions",children:[q.jsx(We,{icon:"files",title:"Copy again",onClick:()=>{var ne;R&&((ne=navigator.clipboard)!=null&&ne.writeText?navigator.clipboard.writeText(R).catch(()=>ga(R)):ga(R))},children:"Copy again"}),q.jsx(We,{icon:"discard",title:"New scenario",onClick:()=>{G.clear(),le(null),$e([]),Z(null)},children:"New"})]})]})]});return q.jsxs("div",{className:"recorder",children:[te&&se||te&&((j==null?void 0:j.status)==="done"||(j==null?void 0:j.status)==="error"||(j==null?void 0:j.status)==="exported")?Se:me,q.jsxs("div",{className:"recorder-body",children:[te&&q.jsxs("div",{className:"steps-panel-col",children:[q.jsx(Qb,{source:E,networkEntries:ze}),q.jsxs("div",{className:"scenario-name-area",children:[q.jsx("label",{htmlFor:"scenario-name-input",children:"Scenario name"}),q.jsx("input",{id:"scenario-name-input",type:"text",value:de,onChange:ne=>{fe(ne.target.value),G.setScenarioName({name:ne.target.value}).catch(()=>{})},placeholder:"my scenario"})]})]}),q.jsx(Zv,{sidebarSize:200,main:q.jsx(hf,{text:E.text,highlighter:E.language,highlight:E.highlight,revealLine:E.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:q.jsx(Jv,{rightToolbar:w==="locator"||w==="aria"?[q.jsx(We,{icon:"files",title:"Copy",onClick:()=>ga((w==="locator"?Q:O)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>q.jsx(hf,{text:Q,placeholder:"Type locator to inspect",highlighter:E.language,focusOnChange:!0,onChange:$,wrapLines:!0})},{id:"log",title:"Log",render:()=>q.jsx(M1,{language:E.language,log:Array.from(c.values())})},{id:"aria",title:"Aria",render:()=>q.jsx(hf,{text:O||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:J,highlight:C,wrapLines:!0})}],selectedTab:w,setSelectedTab:v})})]}),te&&ze.length>0&&q.jsx(Xb,{entries:ze})]})},Qb=({source:u,networkEntries:l})=>{const i=u.actions??[];return q.jsxs("div",{className:"steps-panel-inner",children:[i.map((s,c)=>{const o=l.filter(h=>h.linkedStepIndex===c&&h.bucket==="direct");return q.jsxs("div",{className:"step-item",children:[q.jsx("span",{className:"step-text",children:s}),o.length>0&&q.jsx("div",{className:"step-network-badges",children:o.map((h,m)=>{let g=h.url;try{g=new URL(h.url).pathname}catch{}const p=h.status?`net-status-${Math.floor(h.status/100)}xx`:"";return q.jsxs(ce.Fragment,{children:[q.jsx("span",{className:`net-badge net-method-${h.method.toLowerCase()}`,children:h.method}),h.status&&q.jsx("span",{className:`net-badge net-status ${p}`,children:h.status}),q.jsx("span",{className:"net-url-hint",children:h.operationName??g})]},m)})})]},c)}),i.length===0&&q.jsx("div",{className:"steps-empty",children:"No steps recorded yet."})]})},Xb=({entries:u})=>{const l=u.filter(s=>s.bucket!=="noise"),i=u.filter(s=>s.bucket==="direct");return q.jsxs("div",{className:"network-panel",children:[q.jsxs("div",{className:"network-panel-header",children:["Network · ",l.length," requests · ",i.length," linked"]}),u.map((s,c)=>{let o=s.url;try{o=new URL(s.url).pathname}catch{}const h=s.operationName?`${o} (${s.operationName})`:o,m=`network-row ${s.bucket==="noise"?"noise-row":""} ${s.bucket==="direct"?"direct-row":""}`,g=s.status?`net-status-${Math.floor(s.status/100)}xx`:"";let p="";return s.bucket==="direct"&&s.linkedStepIndex!==void 0?p=`→ step ${s.linkedStepIndex+1} ✦`:s.bucket==="pageLoad"&&s.linkedStepIndex!==void 0?p=`→ step ${s.linkedStepIndex+1}`:s.bucket==="noise"&&(p="noise — ignored"),q.jsxs("div",{className:m,children:[q.jsx("span",{className:`net-badge net-method-${s.method.toLowerCase()}`,children:s.method}),q.jsx("span",{className:"network-url",title:s.url,children:h}),s.status&&q.jsx("span",{className:`net-badge net-status ${g}`,children:s.status}),q.jsx("span",{className:"network-link",children:p})]},c)})]})};function Zb(){return new Proxy({},{get:(u,l)=>{if(typeof l=="string")return i=>window.sendCommand({method:l,params:i})}})}(async()=>(Ov(),kv.createRoot(document.querySelector("#root")).render(q.jsx(Vb,{}))))();export{vv as g};
|