@moreai/code 0.0.0-stage → 0.1.0-beta.2
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 +28 -0
- package/README.md +251 -2
- package/dist/THIRD_PARTY_LICENSES.txt +7412 -0
- package/dist/daemon.mjs +3796 -0
- package/dist/locales/am.json +1185 -0
- package/dist/locales/bho.json +1185 -0
- package/dist/locales/bn.json +1185 -0
- package/dist/locales/da.json +1185 -0
- package/dist/locales/de.json +1185 -0
- package/dist/locales/es-419.json +1187 -0
- package/dist/locales/es.json +1187 -0
- package/dist/locales/fi.json +1185 -0
- package/dist/locales/fil.json +1185 -0
- package/dist/locales/fr.json +1187 -0
- package/dist/locales/gu.json +1185 -0
- package/dist/locales/ha.json +1185 -0
- package/dist/locales/hi.json +1185 -0
- package/dist/locales/id.json +1149 -0
- package/dist/locales/it.json +1187 -0
- package/dist/locales/ja.json +1149 -0
- package/dist/locales/kn.json +1185 -0
- package/dist/locales/ko.json +1149 -0
- package/dist/locales/ml.json +1185 -0
- package/dist/locales/mr.json +1185 -0
- package/dist/locales/nb.json +1185 -0
- package/dist/locales/nl.json +1185 -0
- package/dist/locales/pt-BR.json +1187 -0
- package/dist/locales/ru.json +1261 -0
- package/dist/locales/sv.json +1185 -0
- package/dist/locales/sw.json +1185 -0
- package/dist/locales/ta.json +1185 -0
- package/dist/locales/te.json +1185 -0
- package/dist/locales/th.json +1149 -0
- package/dist/locales/tr.json +1185 -0
- package/dist/locales/uk.json +1261 -0
- package/dist/locales/vi.json +1149 -0
- package/dist/locales/zh-TW.json +1148 -0
- package/dist/locales/zh.json +1148 -0
- package/dist/moreai.mjs +504 -0
- package/dist/resources/file-acl/macos/moreai-file-acl +0 -0
- package/media/helpers.webp +0 -0
- package/media/session.webp +0 -0
- package/package.json +69 -4
package/dist/moreai.mjs
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __cr } from 'node:module'; const require = __cr(import.meta.url);
|
|
3
|
+
var F4=Object.create;var dB=Object.defineProperty;var z4=Object.getOwnPropertyDescriptor;var K4=Object.getOwnPropertyNames;var Y4=Object.getPrototypeOf,q4=Object.prototype.hasOwnProperty;var i=(e,o)=>dB(e,"name",{value:o,configurable:!0}),Fo=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,r)=>(typeof require<"u"?require:o)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var L=(e,o,r)=>()=>{if(r)throw r[0];try{return e&&(o=e(e=0)),o}catch(c){throw r=[c],c}};var Yn=(e,o)=>()=>{try{return o||e((o={exports:{}}).exports,o),o.exports}catch(r){throw o=0,r}},gi=(e,o)=>{for(var r in o)dB(e,r,{get:o[r],enumerable:!0})},P4=(e,o,r,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let u of K4(o))!q4.call(e,u)&&u!==r&&dB(e,u,{get:()=>o[u],enumerable:!(c=z4(o,u))||c.enumerable});return e};var He=(e,o,r)=>(r=e!=null?F4(Y4(e)):{},P4(o||!e||!e.__esModule?dB(r,"default",{value:e,enumerable:!0}):r,e));var fB=L(()=>{"use strict"});function X4(e){return[e,`${e}/`,`${e}/*`]}function KE(e,o,r){let c={};for(let u of o)for(let f of r){let m=`${e} ${u} ${f}`;c[m]=m.split(" ").length+1}return c}var J4,j4,Fr,CP,yP,IP,V4,BP,Z4,W4,$4,SP,e3,t3,n3,o3,vP,yD=L(()=>{"use strict";fB();J4=new Set(["status","log","diff","show","ls-files","ls-tree","rev-parse","blame","shortlog","cat-file","describe","symbolic-ref","rev-list","name-rev","reflog","grep","whatchanged"]),j4=new Set(["timeout","time","nice","nohup","stdbuf","command","builtin","exec"]),Fr=i(e=>new Set(e.split(/\s+/).filter(Boolean)),"flagSet"),CP={long:Fr("--auto-hybrid-regex --binary --block-buffered --byte-offset --case-sensitive --column --count --count-matches --crlf --debug --files --files-with-matches --files-without-match --fixed-strings --follow --glob-case-insensitive --heading --help --hidden --ignore-case --ignore-file-case-insensitive --include-zero --invert-match --json --line-buffered --line-number --line-regexp --max-columns-preview --mmap --multiline --multiline-dotall --no-config --no-filename --no-ignore --no-ignore-dot --no-ignore-exclude --no-ignore-files --no-ignore-global --no-ignore-messages --no-ignore-parent --no-ignore-vcs --no-line-number --no-messages --no-pcre2-unicode --no-require-git --no-unicode --null --null-data --one-file-system --only-matching --passthru --pcre2 --pcre2-version --pretty --quiet --smart-case --sort-files --stats --stop-on-nonmatch --text --trace --trim --type-list --unrestricted --version --vimgrep --with-filename --word-regexp"),longValue:Fr("--after-context --before-context --color --colors --context --context-separator --dfa-size-limit --encoding --engine --field-context-separator --field-match-separator --file --generate --glob --hyperlink-format --iglob --ignore-file --max-columns --max-count --max-depth --max-filesize --path-separator --pre-glob --regex-size-limit --regexp --replace --sort --sortr --threads --type --type-add --type-clear --type-not"),deniedLong:Fr("--pre --hostname-bin --search-zip"),short:Fr("0 . a b c F H I L N P S U V h i l n o p q s u v w x"),shortValue:Fr("A B C E M T d e f g j m r t"),deniedShort:Fr("z")},yP={long:Fr("--absolute-path --case-sensitive --fixed-strings --follow --full-path --glob --help --hidden --ignore-case --list-details --no-ignore --no-ignore-parent --no-ignore-vcs --no-require-git --one-file-system --print0 --prune --quiet --show-errors --strip-cwd-prefix --unrestricted --version"),longValue:Fr("--and --base-directory --changed-before --changed-within --color --exact-depth --exclude --extension --format --ignore-file --max-depth --max-results --min-depth --owner --path-separator --search-path --size --threads --type"),longOptionalValue:Fr("--hyperlink"),deniedLong:Fr("--exec --exec-batch"),short:Fr("0 1 F H I L a g i l p q s u"),shortValue:Fr("E S c d e j o t"),deniedShort:Fr("x X")},IP={long:Fr("--debug --dictionary-order --general-numeric-sort --help --human-numeric-sort --ignore-case --ignore-leading-blanks --ignore-nonprinting --merge --month-sort --numeric-sort --random-sort --reverse --stable --unique --version --version-sort --zero-terminated"),longValue:Fr("--batch-size --buffer-size --field-separator --files0-from --key --parallel --random-source"),longOptionalValue:Fr("--check"),deniedLong:Fr("--compress-program --output --temporary-directory"),short:Fr("C M R V b c d f g h i m n r s u z"),shortValue:Fr("S k t"),deniedShort:Fr("T o")},V4=["/bin","/sbin","/lib","/lib64","/usr","/etc","/var","/opt","/boot","/dev","/proc","/sys","/root","/home","/System","/Library","/Applications","/Users","/private"];i(X4,"rmTargetVariants");BP=new Set(["/","/*","~","~/","~/*","$HOME","${HOME}","$HOME/","$HOME/*",...V4.flatMap(X4)]),Z4=new Set(["sh","bash","zsh","dash","ksh","fish"]),W4=new Set(["fetch","pull","push","clone","ls-remote"]),$4=new Set(["switch","checkout","branch","remote","init","clone","pull","push","worktree"]),SP=new Set([...J4,...W4,...$4,"add","am","apply","archive","bisect","bundle","check-ignore","cherry","cherry-pick","clean","commit","config","count-objects","diff-tree","difftool","fsck","gc","help","merge","merge-base","mergetool","mv","notes","prune","range-diff","rebase","reset","restore","revert","rm","show-branch","show-ref","sparse-checkout","stash","submodule","switch","tag","update-index","update-ref","verify-commit","verify-tag","version"]);i(KE,"nestedGroupArity");e3={cat:1,cd:1,chmod:1,chown:1,cp:1,echo:1,grep:1,kill:1,killall:1,ln:1,ls:1,mkdir:1,mv:1,ps:1,pwd:1,rm:1,rmdir:1,sleep:1,tail:1,touch:1,unset:1,which:1,export:0,...Object.fromEntries([...Z4].map(e=>[e,2])),".":2,"deno eval":0,"deno run":3,node:2,perl:2,php:2,powershell:2,pwsh:2,py:2,python3:2,ruby:2,source:2,"ts-node":2,tsx:2,doas:0,pkexec:0,run0:0,ssh:0,su:0,sudo:0,"docker exec":0,"docker run":0,"docker compose exec":0,"docker compose run":0,"kubectl exec":0,"kubectl run":0,"podman exec":0,"podman run":0,aws:3,az:3,bazel:2,brew:2,bun:2,"bun run":3,bundle:2,cargo:2,"cargo add":3,"cargo run":3,cdk:2,cf:2,cmake:2,composer:2,consul:2,"consul kv":3,crictl:2,deno:2,"deno task":3,doctl:3,docker:2,"docker builder":3,"docker compose":3,"docker container":3,"docker image":3,"docker network":3,"docker volume":3,eksctl:2,"eksctl create":3,firebase:2,fj:3,"fj actions secrets":4,"fj actions variables":4,"fj org label":4,"fj org repo":4,"fj org team":4,"fj release asset":4,"fj repo labels":4,"fj repo units":4,"fj user edit":4,"fj user gpg":4,"fj user key":4,flyctl:2,gcloud:3,gh:3,"gh api":0,git:2,"git config":3,"git remote":3,"git stash":3,glab:3,"glab api":0,"glab ci cancel":4,"glab cluster agent":4,"glab cluster agent token":5,"glab container-registry repository":4,"glab container-registry tag":4,"glab issue board":4,"glab opentofu state":4,...KE("glab",["repo","project"],["members"]),"glab runner-controller scope":4,"glab runner-controller token":4,"glab security config":4,go:2,gradle:2,helm:2,heroku:2,hugo:2,ip:2,"ip addr":3,"ip link":3,"ip netns":3,"ip route":3,kind:2,"kind create":3,kubectl:2,"kubectl kustomize":3,"kubectl rollout":3,kustomize:2,make:2,mc:2,"mc admin":3,minikube:2,mongosh:2,mysql:2,mvn:2,ng:2,npm:2,"npm init":3,"npm run":3,"npm view":3,nvm:2,nx:2,openssl:2,"openssl req":3,"openssl x509":3,pip:2,pip3:2,pipenv:2,pipx:2,pnpm:2,"pnpm run":3,poetry:2,podman:2,"podman container":3,"podman image":3,psql:2,pulumi:2,"pulumi stack":3,pyenv:2,python:2,rake:2,rbenv:2,"redis-cli":2,rustup:2,serverless:2,sfdx:3,skaffold:2,sls:2,sst:2,swift:2,systemctl:2,tea:3,...KE("tea",["actions"],["secrets","variables","vars","var","runs","run","workflows","workflow"]),...KE("tea",["admin","a"],["users","u"]),...KE("tea",["milestones","milestone","ms"],["issues","i"]),...KE("tea",["releases","release","r"],["assets","asset","a"]),terraform:2,"terraform workspace":3,tmux:2,turbo:2,ufw:2,uv:2,"uv pip":3,"uv tool":3,vault:2,"vault auth":3,"vault kv":3,vercel:2,volta:2,wp:2,yarn:2,"yarn run":3},t3={...Object.fromEntries([...j4].map(e=>[e,1])),timeout:2,"cross-env":1,env:1,xargs:1,bunx:1,"bun x":2,"npm exec":2,npx:1,"pnpm dlx":2,"pnpm exec":2,"yarn dlx":2,"yarn exec":2,"pipx run":2,"uv run":2,"uv tool run":3,uvx:1,"bundle exec":2,"pipenv run":2,"poetry run":2,"pyenv exec":2,"rbenv exec":2,"volta run":2,"py -m":2,"python -m":2,"python3 -m":2},n3={"docker compose --file":4,"docker compose -f":4,"git -C":3,"helm --namespace":3,"helm -n":3,"kubectl --context":3,"kubectl --namespace":3,"kubectl -n":3,"make -C":3,"npm --prefix":3,"npm --workspace":3,"npm -w":3,"pnpm --dir":3,"pnpm --filter":3,"pnpm --recursive":2,"pnpm -C":3,"pnpm -F":3,"pnpm -r":2,"yarn --cwd":3,"yarn workspace":3},o3=[["arity",e3],["runner",t3],["target",n3]],vP=Math.max(...o3.flatMap(([,e])=>Object.keys(e).map(o=>o.split(" ").length)))});var Ll,gB=L(()=>{"use strict";fB();yD();fB();Ll=["plan","read-only","accept-edits","auto","full"]});var ID,BD=L(()=>{"use strict";ID={"app.welcome.workspace":"Workspace","app.welcome.runtime":"Runtime","app.welcome.start":"Start","app.welcome.runtimeDesktop":"desktop app \u2014 sessions sync live","app.welcome.runtimeBackground":"background engine \u2014 no desktop app needed","app.welcome.startShort":"Enter a task \xB7 /model \xB7 /help","app.welcome.startLong":"Enter a task \xB7 /model switch model \xB7 /help commands \xB7 /login sync","app.firstRun.title":"Connect an AI provider","app.firstRun.choose":"Choose an API key, subscription sign-in, or local model below.","app.firstRun.account":"Optional: /login adds web and phone sync, dictation and Google services.","app.firstRun.envFound":"{{names}} found in your environment \u2014 pick it at the top of the list.","app.firstRun.noProvider":"no provider connected \u2014 /auth to set one up, then resend your task","app.engine.connecting":"connecting","app.engine.reconnecting":"reconnecting","app.engine.failed":"failed","app.engine.background":"background engine","app.engine.desktop":"desktop app","app.engine.shared":"shared engine","app.engine.connectingLine":"connecting to the More AI engine\u2026","app.engine.reconnectingLine":"engine connection lost \u2014 reconnecting\u2026","app.engine.unreachable":"could not reach the engine","app.engine.retryHint":"send a message to retry \xB7 `moreai doctor` diagnoses \xB7 /quit exits","app.engine.lost":"lost the engine \u2014 send a message to retry, or run `moreai doctor`","app.engine.reconnected":"reconnected to the engine","app.toast.browserOpened":"opened your browser to continue signing in","app.toast.connectionLost":"engine connection lost \u2014 restoring the run\u2026","app.toast.runRestored":"run restored","app.toast.notConnected":"engine is not connected yet","app.toast.claudeAgentKey":"Claude Agent needs a selected Anthropic API key or Z.ai Coding Plan key \u2014 connect one with /auth","app.toast.sessionGone":"session disappeared before the run started","app.toast.accessMode":"access mode: {{mode}}","app.toast.analyticsUsage":"usage: /analytics [on|usage|off]","app.toast.engineDisconnected":"engine disconnected \u2014 wait for the run to reconnect","app.toast.providerConnected":"provider connected","app.ctrlCAgain":"press ctrl+c again to exit","app.exit.resume":"resume \u201C{{title}}\u201D: {{command}}","app.account.signedIn":"Signed in as {{email}}","app.account.next":"Your sessions now sync to the web and phone apps. /connectors adds Gmail, GitHub and other services.","app.run.working":"working\u2026","app.run.escToInterrupt":"esc to interrupt","app.run.tokens":"{{tokens}} tokens","app.run.helperTokens":"{{tokens}} by helpers","app.run.done":"done in {{elapsed}}","app.run.interrupted":"interrupted","app.run.error":"error ({{code}})","app.run.thoughtFor":"Thought for {{elapsed}}","app.run.buildPlan":"Implement the approved plan.","app.held.title":"held: {{command}}","app.held.hint":"ask for it explicitly in your next message to approve it","app.sharedTree.title":"shared working tree","app.sharedTree.body_one":"{{count}} other run is active in this folder \u2014 edits stay narrow","app.sharedTree.body_other":"{{count}} other runs are active in this folder \u2014 edits stay narrow","app.connectorFailed":"connector failed: {{name}}","app.stepBudget.outputLength":"output length limit reached","app.stepBudget.steps":"step budget reached","app.stepBudget.hint":'send "continue" to keep going',"app.decision.allowed":"allowed","app.decision.denied":"denied","app.decision.awaiting":"awaiting approval","app.question.awaiting":"awaiting answer","app.question.label":"question","app.question.answered":"answered","app.question.dismissed":"dismissed","app.session.resumed":"resumed \u201C{{title}}\u201D","app.session.messages_one":"{{count}} message","app.session.messages_other":"{{count}} messages","app.session.fromOtherSurface":"from another surface","app.session.otherSurfaceRunning":"another surface is running this session\u2026","app.session.worksIn":"works in {{path}}","app.session.openWith":"open it with","app.session.switchedTo":"Switched to {{model}}","app.analytics.state":"analytics: {{state}}","app.analytics.stateChange":"analytics: {{state}} \xB7 /analytics to change","app.status.contextLeft":"{{percent}}% context left","app.status.defaultModel":"default model","app.status.aiSetupNeeded":"AI setup needed","app.status.aiReady":"AI ready","app.status.aiChecking":"AI checking","app.status.syncChecking":"sync checking","app.status.syncOn":"sync on","app.status.syncOff":"sync off"}});var SD,vD=L(()=>{"use strict";SD={"auth.title":"AI provider","auth.subtitle":"Choose how More AI Code reaches a model.","auth.stage.choose":"CHOOSE","auth.stage.method":"METHOD","auth.stage.connect":"CONNECT","auth.stage.disconnect":"DISCONNECT","auth.keychainNote":"Keys stay on this machine. CLI, desktop and VS Code share this profile.","auth.loading":"Finding available providers\u2026","auth.failedFooter":"Enter or Esc close \xB7 moreai doctor checks the engine","auth.section.found":"Found in your environment","auth.section.connected":"Connected","auth.section.popular":"Popular","auth.section.all":"All providers","auth.searchHint_one":"{{count}} provider \u2014 type a name","auth.searchHint_other":"{{count}} providers \u2014 type a name","auth.noMatch":"No provider matches \u201C{{query}}\u201D.","auth.tag.default":"default","auth.tag.custom":"custom","auth.tag.envFound":"{{name}} found","auth.way.signIn":"sign-in","auth.way.local":"local","auth.way.key":"key","auth.pickFooter.clear":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc clear","auth.pickFooter.close":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc close","auth.pickFooter.later":"type to search \xB7 \u2191\u2193 choose \xB7 Enter open \xB7 Esc later","auth.managedByAccount":"managed by your More AI account \u2014 use /login or `moreai login`","auth.method.env":"Use {{name}} from your environment","auth.method.oauth":"Sign in with your subscription (browser)","auth.method.keyless":"Connect to the local server","auth.method.key":"Paste an API key","auth.method.keyWithHint":"Paste an API key ({{hint}})","auth.method.disconnect":"Disconnect","auth.methodFooter":"\u2191\u2193 choose \xB7 Enter continue \xB7 Esc back","auth.status.signedIn":"signed in","auth.status.signedInAs":"signed in ({{account}})","auth.status.account":"account","auth.status.accountAs":"account ({{account}})","auth.status.local":"local","auth.status.apiKey":"api key","auth.statusLine":"{{provider}} \u2014 {{status}}","auth.statusLineDefault":"{{provider}} (default) \u2014 {{status}}","auth.connectedModels_one":"{{provider}} connected \u2014 {{count}} model","auth.connectedModels_other":"{{provider}} connected \u2014 {{count}} models","auth.connectedUnverified":"{{provider}} connected (key saved \u2014 endpoint has no /models to verify)","auth.signedIn":"{{provider}} signed in","auth.signedInAs":"{{provider}} signed in as {{account}}","auth.disconnected":"{{provider}} disconnected","auth.error.signInFailed":"sign-in failed","auth.error.olderHost":"this engine host has no provider setup (older build) \u2014 update the More AI desktop app / daemon","auth.key.title":"{{provider}} API key","auth.key.getOne":"get one: {{url}}","auth.key.label":"Key","auth.key.checking":"Checking the connection\u2026","auth.key.footer":"The key is hidden \xB7 Enter save \xB7 Esc back","auth.pasteHere":"paste here","auth.characters_one":"{{count}} character","auth.characters_other":"{{count}} characters","auth.oauth.title":"Sign in to {{provider}}","auth.oauth.open":"Open {{url}}","auth.oauth.codeLabel":"Code","auth.oauth.completing":"Completing sign-in\u2026","auth.oauth.codeFooter":"The code is hidden \xB7 Enter submit \xB7 Esc cancel","auth.oauth.enterCodeInBrowser":"Enter code in browser:","auth.oauth.waiting":"Waiting for browser approval\u2026 Esc cancel","auth.oauth.remoteHint":"Over SSH? The browser returns to localhost:{{port}} on this machine \u2014 forward it first from your computer: ssh -L {{port}}:localhost:{{port}} <this host>","auth.signIn.default":"Authorize in the browser, then paste the code it shows here.","auth.signIn.authorizeAnthropic":"Authorize in the browser, then copy the code Anthropic shows and paste it here.","auth.disconnect.confirm":"Disconnect {{provider}}?","auth.disconnect.footer":"Y or Enter confirm \xB7 N or Esc back","auth.cmd.hubOff":"the desktop app is running with its local hub OFF","auth.cmd.hubOffFix":"enable desktop app \u2192 Settings \u2192 Agent tools \u2192 External clients, then retry","auth.cmd.noEngine":"no engine is running \u2014 `moreai auth` starts one and connects a provider","auth.cmd.noneConnected":"no providers connected on this engine \u2014 run `moreai auth`","auth.cmd.connectedTitle":"Connected providers","auth.cmd.olderHost":"this engine host has no provider setup (older build) \u2014 update the More AI app","auth.cmd.statusFailed":"could not read provider status: {{error}}","auth.cmd.unknownAction":'moreai auth: unknown action "{{action}}" (try `moreai auth`, `moreai auth status` or `moreai auth env`)',"auth.cmd.envNone":"no provider API key in this environment (looked for {{names}}, \u2026)","auth.cmd.envNothingNew":"nothing to connect \u2014 every provider with a key in this environment is already connected","auth.cmd.envConnected_one":"{{provider}} connected with {{name}} \u2014 {{count}} model","auth.cmd.envConnected_other":"{{provider}} connected with {{name}} \u2014 {{count}} models","auth.cmd.envUnverified":"{{provider}} connected with {{name}} (not verified)","auth.cmd.envFailed":"{{provider}} ({{name}}): {{error}}","auth.cmd.needsTerminal":"moreai auth needs a terminal \u2014 use `moreai auth status` when piping","auth.cmd.doneConnected":"{{provider}} connected \u2014 run {{moreai}} in a repo, then {{model}} to choose a model","auth.cmd.doneReady":"ready \u2014 run {{moreai}} in a repo, then {{model}} to choose a model","auth.cmd.noProvider":"no provider connected","auth.account.title":"More AI account","auth.account.optional":"optional","auth.account.syncLine":"Your sessions on the web and phone, voice dictation, Gmail, Calendar and Drive.","auth.account.checking":"Checking sign-in\u2026","auth.account.step.email":"YOUR EMAIL","auth.account.step.approve":"APPROVE SIGN-IN","auth.account.step.verify":"VERIFY EMAIL","auth.account.emailLabel":"Email","auth.account.codeLabel":"Code","auth.account.sending":"Sending sign-in request\u2026","auth.account.emailFooter":"Enter continue \xB7 Esc close \xB7 own API keys work without an account","auth.account.emailFooterPurpose":"Enter continue \xB7 Esc back","auth.account.approveHint":"Open More AI on a signed-in device and match this code:","auth.account.sendingCode":"Sending an email code\u2026","auth.account.approveFooter":"Waiting for approval \xB7 Enter use email instead \xB7 Esc close","auth.account.codeSentTo":"Six-digit code sent to {{email}}","auth.account.checkingCode":"Checking code\u2026","auth.account.codeFooter":"Enter sign in \xB7 R resend code \xB7 Esc close","auth.account.connected":"Connected","auth.account.signedInFooter":"Sync starts automatically \xB7 Enter or Esc to close","auth.account.invalidEmail":"Enter a valid email address.","auth.account.invalidCode":"Enter the six-digit code from the latest email.","auth.account.approvalClaimed":"Approval was already claimed. Start sign-in again.","auth.account.approvalDenied":"Approval denied. Start sign-in again.","auth.account.approvalExpired":"Approval expired. Start sign-in again.","auth.account.error.notConfigured":"Account sign-in is unavailable on this engine. Update More AI Code or the running app.","auth.account.error.network":"Could not reach More AI. Check your connection and try again.","auth.account.error.keychain":"The system keyring is unavailable. Unlock it, then try again.","auth.account.error.rateLimited":"Too many attempts. Wait a little before trying again.","auth.account.error.emailSendFailed":"The email could not be sent. Try again shortly.","auth.account.error.invalidCode":"That code did not match. Check the latest email and try again.","auth.account.error.staleCode":"A newer code was sent. Check the latest email.","auth.account.error.expiredCode":"That code expired. Press R to request a new one.","auth.account.error.tooOld":"This engine is too old for account sign-in. Update it or restart the bundled engine.","auth.login.error.notConfigured":"account sign-in is unavailable on this engine; update More AI Code or the running desktop app","auth.login.error.network":"could not reach More AI \u2014 check your connection and try again","auth.login.error.rateLimited":"too many attempts \u2014 wait a little before trying again","auth.login.error.emailSendFailed":"the sign-in email could not be sent \u2014 try again shortly","auth.login.error.invalidCode":"incorrect code \u2014 check the latest email and try again","auth.login.error.staleCode":"this code was replaced by a newer one \u2014 use the latest email","auth.login.error.expiredCode":"the code expired \u2014 run `moreai login` to request a new one","auth.login.error.tooOld":"this engine is too old for account sign-in; update the desktop app, or close it so the CLI starts its bundled engine","auth.login.noSession":"approval was received, but this engine has no account session; run `moreai login` again","auth.login.signedInAs":"signed in as {{email}}","auth.login.alreadySignedIn":"already signed in as {{email}}","auth.login.syncNote":"account data and sessions will sync while the engine is running","auth.login.invalidCode":"enter the six-digit code from the latest More AI email","auth.login.invalidEmail":"enter a valid email address","auth.login.signInFailed":"sign-in failed: {{error}}","auth.login.startFailed":"could not start sign-in: {{error}}","auth.login.fallbackFailed":"could not send an email code: {{error}}","auth.login.emailCodeSent":"email code sent","auth.login.codeSent":"six-digit sign-in code sent to {{email}}","auth.login.approveOnDevice":"Approve this sign-in on a device already signed in to More AI:","auth.login.confirmationCode":"confirmation code {{code}}","auth.login.challengeId":"challenge id: {{id}}","auth.login.toWait":"To wait for approval:","auth.login.toFallback":"To get an email code instead:","auth.login.thenPipe":"then pipe the six-digit code into: {{command}}","auth.login.pipeCodeInto":"Pipe the code into: {{command}}","auth.login.pipeCodeHint":"Pipe the code into `{{command}}`.","auth.login.pressEnterForEmail":"Press Enter to get an email code instead:","auth.login.emailCodePrompt":"Six-digit email code:","auth.login.emailPrompt":"Email:","auth.login.codePrompt":"Code:","auth.login.approvalCheckFailed":"approval check failed: {{error}}","auth.login.approvalDenied":"sign-in approval denied","auth.login.approvalExpired":"sign-in approval expired","auth.login.approvalDeniedRetry":"sign-in approval denied; run `moreai login` to try again","auth.login.approvalExpiredRetry":"sign-in approval expired; run `moreai login` to try again","auth.login.approvalTimeout":"approval has not arrived; switching to an email code","auth.login.waiting":"Waiting for approval on your signed-in device\u2026","auth.login.stillPending":"approval still pending \u2014 retry with --wait, or use --fallback","auth.login.needsEmail":"moreai login: supply an email when not in a terminal, e.g. `moreai login you@example.com`","auth.login.codeStdinNeedsPipe":"moreai login: --code-stdin requires a code piped on stdin","auth.login.unfinished":"Sign-in unfinished. Run `moreai login` to try again.","auth.login.notSaved":"Sign-in approval was not saved by this engine. Run `moreai login` again.","auth.login.switchHint":"To switch accounts, run `moreai logout` first.","auth.login.nextConnectors":"Next, choose a service with `moreai connectors` in a terminal.","auth.login.chooseService":"Connect a service for your agent (optional \u2014 Esc skips):","auth.login.servicesLater":"No service connected \u2014 add Gmail, GitHub and others any time with `moreai connectors`.","auth.accountCmd.unknownAction":'moreai account: unknown action "{{action}}" (try `moreai account`)',"auth.accountCmd.signedOut":"signed out","auth.accountCmd.signedOutHint":"Run `moreai login` for account and session sync. You can still use `moreai auth` with your own keys.","auth.accountCmd.plan":"plan: {{plan}}","auth.accountCmd.planWithSync":"plan: {{plan}} \xB7 {{app}} sync","auth.accountCmd.planOffline":"current plan unavailable while offline","auth.accountCmd.syncNote":"sync starts automatically when this engine is running","auth.logout.noArgs":"moreai logout: no arguments expected","auth.logout.alreadySignedOut":"already signed out","auth.logout.done":"signed out of More AI on this engine","auth.logout.keysRemain":"Your own provider keys remain connected."}});var QD,bD=L(()=>{"use strict";QD={"cards.moreLines_one":"\u2026 +{{count}} line","cards.moreLines_other":"\u2026 +{{count}} lines","cards.diff.write":"Write({{path}})","cards.diff.edit":"Edit({{path}})","cards.diff.moreLines_one":"\u2026 +{{count}} more line","cards.diff.moreLines_other":"\u2026 +{{count}} more lines","cards.diff.truncated":"\u2026 diff truncated","cards.plan.heading":"Plan","cards.explore.live":"Exploring","cards.explore.done":"Explored","cards.explore.steps_one":"{{count}} step","cards.explore.steps_other":"{{count}} steps","cards.helpers.toolUses_one":"{{count}} tool use","cards.helpers.toolUses_other":"{{count}} tool uses","cards.helpers.tokens":"{{tokens}} tokens","cards.helpers.done":"Done","cards.helpers.failed":"Failed: {{error}}","cards.helpers.stopped":"Stopped","cards.helpers.progress":"{{done}}/{{total}} done","cards.helpers.background_one":"{{count}} helper working in the background","cards.helpers.background_other":"{{count}} helpers working in the background","cards.helpers.finished":"Helper finished","cards.elapsed.minutes":"{{minutes}}m{{seconds}}s","cards.elapsed.seconds":"{{seconds}}s","cards.permission.title":"Permission","cards.permission.allowOnce":"Allow once","cards.permission.allowSession":"Allow for this session","cards.permission.allowAlways":"Always allow","cards.permission.deny":"Deny","cards.permission.footer":"enter confirm \xB7 1\u2013{{max}} choose \xB7 esc deny","cards.permission.waiting":"read the request\u2026","cards.question.other":"Other\u2026","cards.question.otherHint":"type your own answer","cards.question.footerMulti":"space select \xB7 enter confirm \xB7 esc skip","cards.question.footerSingle":"enter select \xB7 esc skip","cards.planCard.title":"Plan ready","cards.planCard.hint":"approve to implement it (runs at auto access)","cards.planCard.build":"Build it now","cards.planCard.keepPlanning":"Keep planning","cards.analytics.title":"Help improve More AI","cards.analytics.explainer":`More AI collects usage analytics to find bugs and see which features work:
|
|
4
|
+
commands you use, errors, and how agent runs go. With AI traces on, run
|
|
5
|
+
content is included too, so failed runs can be debugged. API keys are never
|
|
6
|
+
sent. Change this any time: /analytics in a session, or \`moreai analytics off\`.`,"cards.analytics.all":"Share usage analytics and AI traces","cards.analytics.allDetail":"recommended \xB7 includes the content of your runs","cards.analytics.usage":"Share usage analytics only","cards.analytics.usageDetail":"events and error reports, no conversation content","cards.analytics.off":"Don\u2019t share anything","cards.analytics.offDetail":"turn analytics off","cards.analytics.footer":"\u2191\u2193 choose \xB7 Enter confirm","cards.analytics.footerCancel":"\u2191\u2193 choose \xB7 Enter confirm \xB7 Esc cancel","cards.analytics.state.envOff":"off \u2014 DO_NOT_TRACK / MOREAI_TELEMETRY=0 is set for the engine","cards.analytics.state.off":"off","cards.analytics.state.all":"on, with AI traces","cards.analytics.state.usage":"on, usage only (no conversation content)","cards.analytics.notice":"usage analytics are on. Turn them off with `moreai analytics off` or DO_NOT_TRACK=1.","cards.analytics.label":"analytics","cards.analytics.usageLine":"usage: moreai analytics [status|on|usage|off]","cards.analytics.unreachable":"could not reach the More AI engine: {{error}}","cards.analytics.verbs":"`moreai analytics on` \xB7 `usage` (no conversation content) \xB7 `off`"}});var RD,wD=L(()=>{"use strict";RD={"cli.help.title":"More AI Code \u2014 the terminal coding agent on your own keys.","cli.help.usage":"Usage","cli.help.run":"interactive session in the current repo","cli.help.runTask":"interactive, runs the task immediately","cli.help.print":"non-interactive: run once, print, exit","cli.help.sessions":"list this repo's sessions","cli.help.setup":"first-run account/provider setup","cli.help.cloud":"list your account's cloud sessions","cli.help.cloudRun":"move this folder to the cloud and run the task there","cli.help.cloudOpen":"show a cloud session and its link","cli.help.login":"sign in to More AI: sync, dictation, services","cli.help.account":"show account and sync status","cli.help.logout":"sign out of the More AI account","cli.help.auth":"connect an AI provider (API key or sign-in)","cli.help.authStatus":"list connected providers on the engine","cli.help.authEnv":"connect keys from ANTHROPIC_API_KEY, OPENAI_API_KEY\u2026","cli.help.connectors":"choose an external service from the catalog","cli.help.connectorsList":"list configured services","cli.help.connectorsCatalog":"list available services and their IDs","cli.help.connectorsAdd":"connect a catalog service or custom MCP URL","cli.help.connectorsAddToken":"read its token from stdin","cli.help.connectorsToggle":"turn a connected service on or off","cli.help.connectorsRemove":"disconnect a service and clear its credentials","cli.help.browserPair":"pair the Chrome extension with this engine","cli.help.browserStatus":"is a browser paired / connected right now?","cli.help.browserUnpair":"forget the paired browser","cli.help.doctor":"diagnose the engine connection","cli.help.update":"check this release channel for a new version","cli.help.updateInstall":"install that version with npm","cli.help.analytics":"show the usage-analytics setting","cli.help.analyticsSet":"change it (usage = no conversation content)","cli.help.headless":"Headless sign-in","cli.help.loginEmail":"send an email code or push request","cli.help.loginCode":"verify a code piped on stdin","cli.help.loginWait":"wait for push approval","cli.help.loginFallback":"email a code instead","cli.help.options":"Options","cli.help.optPrint":"non-interactive mode (stdout only, exit at settle)","cli.help.optJson":"with -p: one JSON event per line","cli.help.optContinue":"continue the most recent session for this repo","cli.help.optSession":"resume a specific session","cli.help.optModel":"model for this run (default: engine's default)","cli.help.optProvider":"provider serving --model (default: resolved from it)","cli.help.optMode":"{{modes}} (default: auto)","cli.help.optCwd":"working directory (default: current)","cli.help.optCloud":"run the task in a cloud session instead of here","cli.help.optFinish":"cloud: bring work back as pr | push | branch | folder","cli.help.optDetach":"cloud: start the task and return without following it","cli.help.optHelper":"hand the research to parallel helpers (@explore, @scout, @general)","cli.help.optLang":"interface language (ru, de, ja\u2026; default: as the app/system)","cli.help.optVersion":"print version","cli.help.optHelp":"this help","cli.help.inside":"Inside the session","cli.help.insideKeys":"Enter send \xB7 Ctrl+J newline \xB7 Esc interrupt \xB7 Shift+Tab cycle access mode","cli.help.insideCommands":"/ commands ({{commands}}) \xB7 \u2191\u2193 history","cli.help.insideSteer":"Type while the agent works to steer it mid-run.","cli.help.engine":`The CLI attaches to the shared More AI engine \u2014 the desktop app when it is
|
|
7
|
+
running (sessions live-sync both ways), or a bundled headless daemon otherwise.`,"cli.help.analyticsNote":"Usage analytics are on by default; the first session asks. DO_NOT_TRACK=1 or\nMOREAI_TELEMETRY=0 turns them off for a process, `moreai analytics off` for good.","cli.args.challengeNeedsId":"--challenge requires an id","cli.args.sessionNeedsId":"--session requires a session id","cli.args.modelNeedsId":"--model requires a model id","cli.args.providerNeedsId":"--provider requires a provider id","cli.args.modeInvalid":"--mode must be one of: {{modes}}","cli.args.cwdNeedsDir":"--cwd requires a directory","cli.args.unknownOption":"unknown option: {{option}}","cli.args.jsonNeedsPrint":"--json requires --print (-p)","cli.args.sessionAndContinue":"--session and --continue are mutually exclusive","cli.args.loginOnly":"--code-stdin, --challenge, --fallback and --wait are for `moreai login` only","cli.args.tokenStdinNeedsAdd":"--token-stdin requires `moreai connectors add <id-or-url>`","cli.args.installUpdateOnly":"--install is for `moreai update` only","cli.args.updateNoArgs":"`moreai update` takes no arguments","cli.args.codeStdinWithChallenge":"--code-stdin cannot be combined with a push challenge option","cli.args.fallbackNeedsChallenge":"--fallback requires --challenge <id>","cli.args.waitNeedsChallenge":"--wait requires --challenge <id>","cli.args.fallbackAndWait":"--fallback and --wait are mutually exclusive","cli.args.challengeWithEmail":"give an email only when starting or verifying login, not with --challenge","cli.args.finishInvalid":"--finish must be one of: {{finishes}}","cli.args.cloudOnlyRun":'--cloud, --finish and --detach are for running a task in the cloud (`moreai cloud run "task"`)',"cli.main.tryHelp":"try: moreai --help","cli.main.printNeedsTask":"--print needs a task (argument or piped stdin)","cli.main.needsTerminal":"interactive mode needs a terminal \u2014 use -p/--print when piping","cli.engineUnreachable":"could not reach the More AI engine: {{message}}","cli.doctor.label.backend":"backend","cli.doctor.label.dataDir":"data dir","cli.doctor.label.daemon":"daemon","cli.doctor.label.engine":"engine","cli.doctor.label.lookedIn":"looked in","cli.doctor.label.discovery":"discovery","cli.doctor.label.health":"health","cli.doctor.label.endpoint":"endpoint","cli.doctor.label.account":"account","cli.doctor.label.providers":"providers","cli.doctor.label.services":"services","cli.doctor.label.details":"details","cli.doctor.daemonReady":"bundled and ready","cli.doctor.daemonMissing":"missing from this install","cli.doctor.noneDiscovered":"none discovered","cli.doctor.engineNone":"{{status}} \u2014 no desktop app or daemon has published a hub","cli.doctor.launchHint":"Launching `moreai` will start its bundled headless engine automatically.","cli.doctor.setupHint":"Run `moreai setup` to sign in and connect an AI provider without the desktop app.","cli.doctor.alive":"alive","cli.doctor.dead":"dead","cli.doctor.discovery":"pid {{pid}} ({{state}}) \xB7 port {{port}} \xB7 started {{started}}","cli.doctor.hubOff":"desktop app is running with its local hub OFF","cli.doctor.hubOffTitle":"The CLI cannot attach until the hub is enabled:","cli.doctor.hubOffSteps":"desktop app \u2192 Settings \u2192 Agent tools \u2192 External clients \u2014 turn it on.","cli.doctor.hubOffClose":"Or close the desktop app to let the CLI run its bundled headless engine.","cli.doctor.healthOk":"ok \u2014 hub is reachable","cli.doctor.healthIncompatible":"engine is running with an incompatible protocol","cli.doctor.healthStale":"unreachable (stale discovery record)","cli.doctor.signedIn":"signed in","cli.doctor.signedOut":"signed out \u2014 `moreai login`","cli.doctor.unavailable":"unavailable on this engine","cli.doctor.providersConnected_one":"{{count}} connected","cli.doctor.providersConnected_other":"{{count}} connected","cli.doctor.servicesReady_one":"{{count}} ready","cli.doctor.servicesReady_other":"{{count}} ready","cli.doctor.detailsFailed":"could not inspect account/provider setup","cli.doctor.readyWord":"Ready.","cli.doctor.ready":"{{ready}} `moreai` will attach to this engine.","cli.doctor.updateBoth":"Update the CLI and desktop app, or close the older engine before starting the bundled one.","cli.doctor.staleRecord":"The record looks stale \u2014 `moreai` will spawn a fresh headless engine.","cli.print.openedBrowser":"opened browser: {{url}}","cli.print.doctorHint":"run `moreai doctor` for diagnostics","cli.print.sessionGone":"session disappeared before the run started","cli.print.outputDiverged":"saved output diverged from streamed output; resume the session to read the complete answer","cli.print.replayNoSession":"run replay unavailable: session id is missing","cli.print.replayUnavailable":"run replay unavailable; reopen session {{id}} to inspect its result","cli.print.planTitle":"Plan presented","cli.print.planDetail":"run interactively (or in the desktop app) to approve and build it","cli.print.held":"held: {{command}}","cli.print.connectorFailed":"connector failed: {{name}}","cli.print.sharedTree":"shared working tree","cli.print.othersActive_one":"{{count}} other run is active in this folder \u2014 edits stay narrow","cli.print.othersActive_other":"{{count}} other runs are active in this folder \u2014 edits stay narrow","cli.print.declined":"declined: {{title}}","cli.print.declinedDetail":"non-interactive run \u2014 approvals need the TUI or the desktop app","cli.print.outputLimit":"output length limit reached","cli.print.stepBudget":"step budget reached","cli.print.continueHint":"run again with -c to continue this session","cli.print.runError":"error ({{code}}): {{message}}","cli.print.reconnectFailed":"connection could not be restored","cli.print.reconnectFailedSession":"connection could not be restored; reopen session {{id}} to inspect the result","cli.print.startFailed":"failed to start: {{message}}","cli.setup.needsTerminal":"moreai setup needs a terminal. For scripts, run `moreai login <email>` and `moreai auth` separately.","cli.setup.tagline":"Your coding workspace, wherever you open a terminal.","cli.setup.fullTitle":"Account + service + model","cli.setup.fullDetail":"Sync your work, connect a service, and start coding","cli.setup.modelTitle":"Model only","cli.setup.modelDetail":"Use your own API key or provider sign-in","cli.setup.accountTitle":"Account + service","cli.setup.accountDetail":"Sync now; connect a model later","cli.setup.select":"Select","cli.setup.invalidChoice":"Choose 1, 2 or 3 (01, 02 and 03 also work).","cli.setup.stepAccount":"{{step}} / Account","cli.setup.stepModel":"{{step}} / Model","cli.setup.accountUnfinished":"Account or service setup is unfinished. Run `moreai login` when ready.","cli.setup.modelUnfinished":"Model setup is unfinished. Run `moreai auth` when ready.","cli.setup.analytics":"Analytics","cli.setup.analyticsSet":"Analytics {{state}} \xB7 change with {{command}}","cli.setup.accountReady":"Account ready \xB7 sync starts while the engine runs","cli.setup.modelReady":"Model ready \xB7 open a project and run {{command}}","cli.setup.modelLater":"Connect a model later with `moreai auth`.","cli.update.failed":"moreai update: {{message}}","cli.update.registryReplied":"npm registry replied {{status}}","cli.update.notPublished":"No {{channel}} version of {{package}} is published yet. Current: {{version}}.","cli.update.current":"More AI Code {{version}} is current on {{channel}}.","cli.update.runInstall":"Run {{install}} or {{npm}}.","cli.update.notice":"More AI Code {{version}} is available \xB7 moreai update --install","cli.browser.notRunning":"the browser bridge is not running on this engine","cli.browser.enableHint":"enable it in the desktop app (Settings \u2192 Browser \u2192 Personal browser)","cli.browser.connected":"a browser is connected","cli.browser.pairedIdle":"paired, but no browser is connected","cli.browser.notPaired":"no browser paired yet \u2014 run {{command}}","cli.browser.unknownCommand":"unknown browser command: {{command}} \u2014 try pair, status or unpair","cli.browser.forgotten":"the paired browser has been forgotten","cli.browser.noBridge":"this engine is not running a browser bridge \u2014 nothing to pair with","cli.browser.pairingCode":"pairing code {{code}}","cli.browser.pairingHint_one":"open the More AI side panel in Chrome and type it \u2014 expires in {{count}} min","cli.browser.pairingHint_other":"open the More AI side panel in Chrome and type it \u2014 expires in {{count}} min","cli.sessions.justNow":"just now","cli.sessions.minutesAgo_one":"{{count}}m ago","cli.sessions.minutesAgo_other":"{{count}}m ago","cli.sessions.hoursAgo_one":"{{count}}h ago","cli.sessions.hoursAgo_other":"{{count}}h ago","cli.sessions.daysAgo_one":"{{count}}d ago","cli.sessions.daysAgo_other":"{{count}}d ago","cli.sessions.none":"no sessions for {{path}} yet \u2014 run `moreai` to start one","cli.sessions.count_one":"{{count}} session \xB7 {{path}}","cli.sessions.count_other":"{{count}} sessions \xB7 {{path}}","cli.errorHint.noProvider":"No AI provider is connected yet. Run /auth here (or `moreai auth`) to paste an API key,\nsign in with a subscription or use a local model. A key already in ANTHROPIC_API_KEY,\nOPENAI_API_KEY\u2026 connects with `moreai auth env`.","cli.errorHint.noModel":"The provider has no usable model \u2014 pass one with --model <id> or pick one in the desktop app.","cli.errorHint.disconnected":"The engine went away mid-run (desktop app quit or daemon stopped). Run `moreai doctor` to check, then retry \u2014 the session is persisted.","cli.errorHint.harnessProvider":"The session\u2019s coding agent cannot drive this model\u2019s provider. Pick a compatible model (`/model`), or switch the agent with `/harness native`.","cli.errorHint.unsupported":"This engine host does not support the operation (an older desktop build?). Update the More AI desktop app.","cli.model.ambiguous":`several connected providers offer "{{model}}" ({{providers}}) \u2014 add --provider <id> to choose; running on the engine's default for now`,"cli.model.severalForAgent":"Several providers offer {{model}}; select one with --provider.","cli.model.cannotVerify":"Could not verify providers for this coding agent. Reconnect the engine and try again.","cli.model.notOffered":"The model {{model}} is not offered by a connected provider. Select a compatible provider first.","cli.model.claudeNeedsSelectedKey":"Claude Agent requires a selected Anthropic API key or Z.ai Coding Plan key.","cli.model.needsApiKey":"{{provider}} needs a connected API key for this coding agent.","cli.model.notOfferedBy":"{{model}} is not offered by {{provider}}. Choose a compatible model before running.","cli.model.claudeNeedsKey":"Claude Agent requires an Anthropic API key or Z.ai Coding Plan key.","cli.model.codexNeedsKey":"Codex needs an OpenAI, OpenRouter or Z.ai Coding Plan API key.","cli.model.opencodeProtocol":"{{provider}} has no verified local OpenCode protocol.","cli.session.notFound":"session not found: {{id}}","cli.session.defaultTitle":"{{name}} session","cli.session.fallbackName":"session"}});var xD,DD=L(()=>{"use strict";xD={"cloud.list.title":"Cloud sessions","cloud.list.empty":'No cloud sessions yet \u2014 `moreai cloud run "task"` moves this folder into one.',"cloud.list.hint":"Open one: moreai cloud open <id> \xB7 in a browser: {{url}}","cloud.status.queued":"queued","cloud.status.scheduled":"scheduled","cloud.status.running":"working","cloud.status.awaiting_user":"needs you","cloud.status.done":"done","cloud.status.error":"failed","cloud.status.cancelled":"stopped","cloud.status.idle":"idle","cloud.signedOut":"Cloud runs use your More AI account \u2014 sign in first: `moreai login` (or /login in a session).","cloud.olderEngine":"This engine cannot run cloud sessions yet \u2014 update the More AI app (or close it so the CLI starts its own engine).","cloud.noModel":"No model is available for cloud runs on this account. Upload a provider key in the More AI app (Settings \u2192 Privacy) or check your plan.","cloud.blocked":"This folder cannot move to the cloud: {{reason}}","cloud.run.moving":"Moving {{name}} to the cloud","cloud.run.repository":"branch {{branch}} \xB7 {{changes}} \xB7 {{history}}","cloud.run.changes_one":"{{count}} changed file","cloud.run.changes_other":"{{count}} changed files","cloud.run.folder_one":"folder \xB7 {{count}} file","cloud.run.folder_other":"folder \xB7 {{count}} files","cloud.run.historyFull":"full history","cloud.run.historySnapshot":"latest commit only (history too large)","cloud.run.skippedSecrets":"left behind (look like secrets): {{files}}","cloud.run.model":"model {{model}}","cloud.run.modelPlan":"{{model}} \xB7 your More AI plan","cloud.run.modelKey":"{{model}} \xB7 your {{provider}} key in the cloud","cloud.stage.packaging":"packaging","cloud.stage.uploading":"uploading {{loaded}} / {{total}}","cloud.stage.summarizing":"summarizing this session for the cloud agent","cloud.stage.creating":"starting the cloud session","cloud.run.started":"Cloud session started \u2014 watch or continue in the browser:","cloud.run.workBack":"The work comes back on branch {{branch}} when the task finishes.","cloud.run.detached":"Following stopped \u2014 the task keeps running in the cloud. Open it again with: moreai cloud open {{id}}","cloud.follow.working":"working in the cloud","cloud.follow.step":"step {{step}}","cloud.follow.needsYou":"The task needs you \u2014 answer in the browser: {{url}}","cloud.follow.done":"done in the cloud \xB7 {{elapsed}}","cloud.follow.failed":"the cloud task failed: {{error}}","cloud.follow.stopped":"the cloud task was stopped","cloud.finish.working":"Bringing the work back\u2026","cloud.finish.branch":"Work is on local branch {{branch}} ({{commits}} commits) \u2014 your branch was not touched.","cloud.finish.pushed":"Branch {{branch}} pushed to {{remote}}.","cloud.finish.pullRequest":"Pull request: {{url}}","cloud.finish.openForm":"Open the pull request: {{url}}","cloud.finish.folder_one":"{{count}} file updated in this folder.","cloud.finish.folder_other":"{{count}} files updated in this folder.","cloud.finish.conflicts":"Kept your edits in: {{files}}","cloud.finish.unchanged":"The task changed nothing \u2014 there is nothing to bring back.","cloud.finish.fromCloud":"The pull request is opened from the cloud \u2014 see the session page.","cloud.finish.failed":"Could not bring the work back ({{step}}): {{error}}","cloud.finish.retry":"Try again: moreai cloud finish {{id}}","cloud.finish.none":"Nothing to bring back from this computer for that session.","cloud.open.notFound":"No cloud session {{id}} on this account.","cloud.open.prompt":"You","cloud.open.answer":"Agent","cloud.models.title":"Models for cloud runs","cloud.models.plan":"your More AI plan","cloud.models.key":"your {{provider}} key","cloud.models.recommended":"recommended","cloud.models.hint":'Pick one with: moreai cloud run -m <model> "task"',"cloud.usage":'usage: moreai cloud [list | open <id> | run "task" | finish <id> | cancel <id> | models]',"cloud.needsTask":'moreai cloud run needs a task: moreai cloud run "fix the failing tests"',"cloud.needsId":"moreai cloud {{action}} needs a session id (see `moreai cloud`)","cloud.cancelled":"Asked the cloud to stop the task.","cloud.cancelFailed":"Could not stop the task."}});var TD,_D=L(()=>{"use strict";TD={"common.language.title":"Language","common.language.current":"now {{name}}","common.language.search":"languages\u2026","common.language.auto":"Automatic","common.language.autoDetail":"as the desktop app and your system \u2014 {{name}}","common.language.footer":"\u2191\u2193 move \xB7 Enter choose \xB7 Esc close","common.language.note":"Slash commands, flags and keys stay in English.","common.language.switched":"Language: {{name}}","common.language.switchedAuto":"Language follows the desktop app and your system \u2014 {{name}}","common.language.unknown":"Unknown language \u201C{{tag}}\u201D. /language lists the {{count}} available.","common.search":"Search","common.noMatch":"Nothing matches \u201C{{query}}\u201D."}});var ND,MD=L(()=>{"use strict";ND={"composer.placeholder.idle":"Ask about this repository or describe a task\u2026","composer.placeholder.running":"Add direction while the agent works\u2026","composer.hint.idle":"Enter send \xB7 / commands \xB7 Shift+Tab access \xB7 Ctrl+J newline \xB7 Ctrl+T voice","composer.hint.running":"Enter steer \xB7 Esc interrupt","composer.hint.paste":"Enter send \xB7 Ctrl+O expand paste \xB7 Backspace removes it","composer.hint.escAgain":"Esc again to clear the draft","composer.moreLines_one":"{{count}} more line","composer.moreLines_other":"{{count}} more lines","composer.menu.more_one":"{{count}} more","composer.menu.more_other":"{{count}} more","composer.menu.footer":"\u2191\u2193 select \xB7 Tab complete \xB7 Enter run \xB7 Esc close","composer.pasted.label":"Pasted text #{{n}}","composer.pasted.short":"Pasted text","composer.pasted.lines_one":"{{n}} line","composer.pasted.lines_other":"{{n}} lines","composer.pasted.chars_one":"{{n}} char","composer.pasted.chars_other":"{{n}} chars"}});var OD,HD=L(()=>{"use strict";OD={"connectors.title":"Connectors","connectors.subtitle":"services your agent can use","connectors.loading":"Loading your services\u2026","connectors.closeHint":"Enter or Esc close","connectors.searchPlaceholder":"services, categories\u2026","connectors.found_one":"{{count}} found","connectors.found_other":"{{count}} found","connectors.onCount_one":"{{count}} on","connectors.onCount_other":"{{count}} on","connectors.inCatalog_one":"{{count}} in catalog","connectors.inCatalog_other":"{{count}} in catalog","connectors.noMatch":"Nothing matches \u201C{{query}}\u201D. Try a service name or a category.","connectors.footer":"type to search \xB7 \u2191\u2193 move \xB7 Enter connect \xB7 Space on/off \xB7 ^D disconnect \xB7 Esc close","connectors.footerShort":"type \xB7 \u2191\u2193 \xB7 Enter connect \xB7 Space on/off \xB7 ^D remove \xB7 Esc","connectors.confirmDisconnect":"Ctrl+D again to disconnect","connectors.section.connected":"Connected","connectors.state.on":"on","connectors.state.off":"off","connectors.state.needsAuth":"sign in needed","connectors.state.needsAccount":"More AI account","connectors.state.needsAddress":"needs your address","connectors.state.apiKey":"API key","connectors.state.open":"no sign-in","connectors.state.signIn":"sign in","connectors.connected":"{{name}} connected","connectors.connectedTools_one":"{{name}} connected \u2014 {{count}} tool","connectors.connectedTools_other":"{{name}} connected \u2014 {{count}} tools","connectors.turnedOn":"{{name}} turned on","connectors.turnedOff":"{{name}} turned off","connectors.disconnected":"{{name}} disconnected","connectors.isConnected":"{{name}} is connected \u2014 Space turns it off, Ctrl+D disconnects","connectors.isConnectedAs":"{{name}} is connected as {{account}} \u2014 Space turns it off, Ctrl+D disconnects","connectors.error.engineTooOld":"This engine is too old for this. Update More AI Code or the desktop app.","connectors.error.signInUnfinished":"Sign-in did not finish.","connectors.error.addedInDesktop":"{{name}} was added in the desktop app \u2014 reconnect it there.","connectors.error.addedInDesktopUnnamed":"This service was added in the desktop app \u2014 reconnect it there.","connectors.tenant.footer":"Enter continue \xB7 Esc back","connectors.token.label":"API key or token","connectors.token.placeholder":"paste token here","connectors.token.testing":"Testing connection\u2026","connectors.token.footer":"Enter connect \xB7 Esc back \xB7 the key stays in this machine\u2019s keychain","connectors.wait.signIn":"Sign in to {{name}} in your browser\u2026","connectors.wait.url":"If no browser opened: {{url}}","connectors.wait.google":"Google services connect to your More AI account \u2014 they work on every device.","connectors.wait.waiting":"Waiting for authorization\u2026","connectors.wait.footer":"Esc back to the list (the sign-in keeps waiting)","connectors.account.title":"{{name}} needs a More AI account","connectors.account.required":"{{name}} connects through your More AI account. Sign in once \u2014 it then works here, in the desktop app, on the web, on your phone and in cloud runs.","connectors.account.preferred":"{{name}} keeps its sign-in with your More AI account, so it works on every device and in cloud runs. Sign in to continue.","connectors.account.signIn":"Sign in to More AI and connect","connectors.account.signInDetail":"recommended \u2014 free, takes a minute with an email code","connectors.account.deviceOnly":"Connect on this computer only","connectors.account.deviceOnlyDetail":"no account \u2014 it will not reach your other devices or cloud runs","connectors.account.connecting":"Connecting\u2026","connectors.account.footer":"Enter choose \xB7 {{keys}} pick \xB7 Esc back","connectors.cmd.usage":"use `list`, `catalog`, `add <id-or-url>`, `on <id>`, `off <id>` or `remove <id>`","connectors.cmd.addNeedsId":"provide an id from `moreai connectors catalog` or a URL","connectors.cmd.needsId":"provide an id from `moreai connectors list`","connectors.cmd.unexpectedArgument":"unexpected argument: {{arg}}","connectors.cmd.urlTakesNoTenant":"custom URLs take no tenant argument","connectors.cmd.needsTerminal":"moreai connectors needs a terminal; use `moreai connectors list` to inspect connections","connectors.cmd.catalogTitle":"Available services","connectors.cmd.connected":"connected","connectors.cmd.noneConfigured":"no services configured \u2014 run `moreai connectors` to choose one","connectors.cmd.listTitle":"External services","connectors.cmd.ready":"ready","connectors.cmd.disabled":"disabled","connectors.cmd.needsSignIn":"needs sign-in","connectors.cmd.notFound":"connector not found: {{id}}","connectors.cmd.disconnected":"disconnected {{name}}","connectors.cmd.tokenNeedsPipe":"--token-stdin needs piped input","connectors.cmd.tokenEmpty":"stdin did not contain a token","connectors.cmd.signInFirst":"Sign in with `moreai login`, then run this again \u2014 or open `moreai connectors` to connect it on this computer only.","connectors.cmd.signInPage":"Sign-in page: {{url}}","connectors.cmd.pendingElsewhere":"Browser sign-in is pending. Finish it on an interactive client, then run `moreai connectors list`.","connectors.cmd.waiting":"Finish sign-in in your browser. Waiting for the connection\u2026","connectors.cmd.connectedId":"connected {{id}}","connectors.cmd.toolsAvailable_one":"{{count}} tool available","connectors.cmd.toolsAvailable_other":"{{count}} tools available","connectors.cmd.signInUnfinished":"sign-in did not finish","connectors.cmd.timedOut":"sign-in timed out; run `moreai connectors` to try again","connectors.cmd.serviceReady":"service ready \u2014 use its tools from {{command}}","connectors.cmd.noneChosen":"No service chosen. Run `moreai connectors` when ready.","connectors.cmd.engineTooOld":"this engine is too old for connectors; update the desktop app or restart the bundled daemon"}});var kD,UD=L(()=>{"use strict";kD={"connectors.category.automation":"Automation","connectors.category.cms":"CMS & web","connectors.category.crm":"CRM","connectors.category.data":"Data & analytics","connectors.category.database":"Database","connectors.category.design":"Design","connectors.category.dev":"Software development","connectors.category.docs":"Documentation","connectors.category.lifestyle":"Travel & lifestyle","connectors.category.marketing":"Marketing","connectors.category.meetings":"Meetings & notes","connectors.category.other":"Other","connectors.category.payments":"Payments","connectors.category.pm":"Project management","connectors.category.productivity":"Productivity","connectors.category.research":"Research & science","connectors.category.search":"Search & research","connectors.category.storage":"Storage & assets","connectors.category.support":"Customer support","subagents.backgrounded":"Continued in the background \u2014 its report arrives in a later turn.","subagents.clear":"Clear subagent","subagents.done":"{{total}} done","subagents.menuTitle":"Subagents","subagents.none":"No subagents \u2014 manage them in Settings","subagents.nowLabel":"Now:","subagents.running":"{{running}} running \xB7 {{total}}","subagents.thinking":"Thinking\u2026","subagents.title":"Sub-agents","subagents.tokens":"{{value}} tokens","subagents.tools_one":"{{count}} tool","subagents.tools_other":"{{count}} tools","toolSteps.actionFailed":"Failed: {{action}}","toolSteps.actions.browser.done":"Browser used","toolSteps.actions.browser.group":"Browser actions","toolSteps.actions.browser.running":"Using browser","toolSteps.actions.command.done":"Command executed","toolSteps.actions.command.group":"Commands executed","toolSteps.actions.command.running":"Running command","toolSteps.actions.connector.done":"Connected app used","toolSteps.actions.connector.group":"Connected app actions","toolSteps.actions.connector.running":"Using connected app","toolSteps.actions.context.done":"Context action completed","toolSteps.actions.context.group":"Context actions","toolSteps.actions.context.running":"Managing context","toolSteps.actions.create.done":"File created","toolSteps.actions.create.group":"Files created","toolSteps.actions.create.running":"Creating file","toolSteps.actions.delete.done":"File deleted","toolSteps.actions.delete.group":"Files deleted","toolSteps.actions.delete.running":"Deleting file","toolSteps.actions.document.done":"Document processed","toolSteps.actions.document.group":"Documents processed","toolSteps.actions.document.running":"Working with document","toolSteps.actions.edit.done":"File edited","toolSteps.actions.edit.group":"Files edited","toolSteps.actions.edit.running":"Editing file","toolSteps.actions.history.done":"Conversation history searched","toolSteps.actions.history.group":"History searches","toolSteps.actions.history.running":"Searching conversation history","toolSteps.actions.image.done":"Image generated","toolSteps.actions.image.group":"Images generated","toolSteps.actions.image.running":"Generating image","toolSteps.actions.list.done":"Folder listed","toolSteps.actions.list.group":"Folders listed","toolSteps.actions.list.running":"Listing folder","toolSteps.actions.memory.done":"Memory action completed","toolSteps.actions.memory.group":"Memory actions","toolSteps.actions.memory.running":"Working with memory","toolSteps.actions.permission.done":"Access requested","toolSteps.actions.permission.group":"Access requests","toolSteps.actions.permission.running":"Requesting access","toolSteps.actions.process.done":"Process action completed","toolSteps.actions.process.group":"Process actions","toolSteps.actions.process.running":"Managing process","toolSteps.actions.read.done":"File read","toolSteps.actions.read.group":"Files read","toolSteps.actions.read.running":"Reading file","toolSteps.actions.readMany.done":"Files read","toolSteps.actions.readMany.group":"Files read","toolSteps.actions.readMany.running":"Reading files","toolSteps.actions.search.done":"Search completed","toolSteps.actions.search.group":"Searches completed","toolSteps.actions.search.running":"Searching","toolSteps.actions.skill.done":"Skill used","toolSteps.actions.skill.group":"Skills used","toolSteps.actions.skill.running":"Loading skill","toolSteps.actions.tool.done":"Action completed","toolSteps.actions.tool.group":"Actions","toolSteps.actions.tool.running":"Performing action","toolSteps.actions.write.done":"File saved","toolSteps.actions.write.group":"Files saved","toolSteps.actions.write.running":"Saving file","toolSteps.addSheet.done":"Added sheet {{name}}","toolSteps.addSheet.running":"Adding sheet {{name}}","toolSteps.addSlide.done":"Added a slide from {{name}}","toolSteps.addSlide.running":"Adding a slide from {{name}}","toolSteps.aggregateRange.done":"Aggregated a range in {{path}}","toolSteps.aggregateRange.running":"Aggregating a range in {{path}}","toolSteps.applyPatch.done":"Edited {{path}}","toolSteps.applyPatch.running":"Editing {{path}}","toolSteps.browserBatch.done":"Browser steps done ({{query}})","toolSteps.browserBatch.running":"Browser steps ({{query}})","toolSteps.browserClick.done":"Clicked {{name}}","toolSteps.browserClick.running":"Clicking {{name}}","toolSteps.browserDevtools.done":"Browser log read","toolSteps.browserDevtools.running":"Reading the browser log","toolSteps.browserDownload.done":"Downloaded file","toolSteps.browserDownload.running":"Getting the downloaded file","toolSteps.browserDrag.done":"Dragged {{name}}","toolSteps.browserDrag.running":"Dragging {{name}}","toolSteps.browserEval.done":"JavaScript ran","toolSteps.browserEval.running":"Running JavaScript in the page","toolSteps.browserFind.done":"Found on the page: {{query}}","toolSteps.browserFind.running":"Finding on the page: {{query}}","toolSteps.browserGeneratePassword.done":"Password created","toolSteps.browserGeneratePassword.running":"Creating a password for the new account","toolSteps.browserHandoff.done":"You finished the step in Chrome","toolSteps.browserHandoff.running":"Waiting for you in Chrome","toolSteps.browserHover.done":"Hovered over {{name}}","toolSteps.browserHover.running":"Hovering over {{name}}","toolSteps.browserNavigate.done":"Browsed {{query}}","toolSteps.browserNavigate.running":"Browsing {{query}}","toolSteps.browserObservePage.done":"Read cloud browser page","toolSteps.browserObservePage.running":"Reading cloud browser page","toolSteps.browserOpenLink.done":"Followed link on {{query}}","toolSteps.browserOpenLink.running":"Following link on {{query}}","toolSteps.browserOpenResult.done":"Opened search result from {{query}}","toolSteps.browserOpenResult.running":"Opening search result from {{query}}","toolSteps.browserPress.done":"Pressed {{name}}","toolSteps.browserPress.running":"Pressing {{name}}","toolSteps.browserReadPage.done":"Read the page","toolSteps.browserReadPage.running":"Reading the page","toolSteps.browserRequestTakeover.done":"Asked you to take control of cloud browser","toolSteps.browserRequestTakeover.running":"Asking you to take control of cloud browser","toolSteps.browserResize.done":"Device viewport applied","toolSteps.browserResize.running":"Switching the page to another device","toolSteps.browserScreenshot.done":"Screenshot taken","toolSteps.browserScreenshot.running":"Screenshotting the page","toolSteps.browserScroll.done":"Scrolled the page","toolSteps.browserScroll.running":"Scrolling the page","toolSteps.browserScrollPage.done":"Scrolled cloud browser page","toolSteps.browserScrollPage.running":"Scrolling cloud browser page","toolSteps.browserSearch.done":"Searched in cloud browser: {{query}}","toolSteps.browserSearch.running":"Searching in cloud browser: {{query}}","toolSteps.browserTabs.done":"Browser tabs updated","toolSteps.browserTabs.running":"Managing browser tabs","toolSteps.browserType.done":"Typed in the browser","toolSteps.browserType.running":"Typing in the browser","toolSteps.browserUpload.done":"File attached","toolSteps.browserUpload.running":"Attaching the file","toolSteps.browserVisit.done":"Opened {{query}} in cloud browser","toolSteps.browserVisit.running":"Opening {{query}} in cloud browser","toolSteps.cached":"cached","toolSteps.cancelCheck.done":"Cancelled scheduled check","toolSteps.cancelCheck.running":"Cancelling scheduled check","toolSteps.capturePage.done":"Captured {{query}}","toolSteps.capturePage.running":"Capturing {{query}}","toolSteps.charm.0":"Still working \u2014 this one is taking a moment\u2026","toolSteps.charm.1":"Still on it \u2014 large task in progress\u2026","toolSteps.charm.2":"Not stuck, just thorough\u2026","toolSteps.checkContext.done":"Checked remaining context","toolSteps.checkContext.running":"Checking remaining context","toolSteps.cleanup.done":"Cleaned up temporary files ({{count}})","toolSteps.cleanup.running":"Cleaning up temporary files ({{count}})","toolSteps.codeMode.done":"Ran a program ({{count}} lines)","toolSteps.codeMode.running":"Running a program ({{count}} lines)","toolSteps.computerAccess.done":"Asked to use {{name}}","toolSteps.computerAccess.running":"Asking to use {{name}}","toolSteps.computerApps.done":"Checked your apps","toolSteps.computerApps.running":"Checking your apps","toolSteps.computerHandoff.done":"Handed you a step in {{name}}","toolSteps.computerHandoff.running":"Waiting for you in {{name}}","toolSteps.computerUse.done":"Used {{name}}","toolSteps.computerUse.running":"Using {{name}}","toolSteps.connectorCall.done":"Connector tool: {{name}}","toolSteps.connectorCall.running":"Starting connector tool: {{name}}","toolSteps.connectorFetch.done":"Fetched: {{url}}","toolSteps.connectorFetch.running":"Fetching: {{url}}","toolSteps.connectorFind.done":"Found connector tools: {{query}}","toolSteps.connectorFind.running":"Finding connector tools: {{query}}","toolSteps.connectorInspect.done":"Tool details: {{name}}","toolSteps.connectorInspect.running":"Reading tool details: {{name}}","toolSteps.connectorSearch.done":"Searched: {{query}}","toolSteps.connectorSearch.running":"Searching: {{query}}","toolSteps.connectorTools.done":"Connector tools found","toolSteps.connectorTools.running":"Choosing a connector tool","toolSteps.convertMedia.done":"Converted {{path}}","toolSteps.convertMedia.running":"Converting {{path}}","toolSteps.createPr.done":"Opened pull request: {{name}}","toolSteps.createPr.running":"Opening pull request: {{name}}","toolSteps.delegate.done":"Finished sub-tasks ({{count}})","toolSteps.delegate.running":"Running sub-tasks ({{count}})","toolSteps.deleteFile.done":"Deleted {{path}}","toolSteps.deleteFile.running":"Deleting {{path}}","toolSteps.details":"Details","toolSteps.diskCleanup.done":"Disk cleanup","toolSteps.diskCleanup.running":"Disk cleanup","toolSteps.documentInventory.done":"Mapped {{path}}","toolSteps.documentInventory.running":"Mapping {{path}}","toolSteps.editCells.done":"Edited cells in {{path}}","toolSteps.editCells.running":"Editing cells in {{path}}","toolSteps.editDocument.done":"Edited document {{path}}","toolSteps.editDocument.running":"Editing document {{path}}","toolSteps.editFile.done":"Edited {{path}}","toolSteps.editFile.running":"Editing {{path}}","toolSteps.editPdf.done":"Edited PDF {{path}}","toolSteps.editPdf.running":"Editing PDF {{path}}","toolSteps.editSlide.done":"Edited slide in {{path}}","toolSteps.editSlide.running":"Editing slide in {{path}}","toolSteps.extraToolCall.done":"Extra tool: {{name}}","toolSteps.extraToolCall.running":"Running extra tool: {{name}}","toolSteps.extraToolInspect.done":"Tool details: {{name}}","toolSteps.extraToolInspect.running":"Reading tool details: {{name}}","toolSteps.fetchUrl.done":"Fetched {{query}}","toolSteps.fetchUrl.running":"Fetching {{query}}","toolSteps.file":"File","toolSteps.fileVersions.done":"Listed versions of {{path}}","toolSteps.fileVersions.running":"Listing versions of {{path}}","toolSteps.findCells.done":"Searched cells: {{query}}","toolSteps.findCells.running":"Searching cells: {{query}}","toolSteps.findFiles.done":"Found files: {{query}}","toolSteps.findFiles.running":"Finding files: {{query}}","toolSteps.generateImage.done":"Drew: {{query}}","toolSteps.generateImage.running":"Drawing: {{query}}","toolSteps.generic.done":"Finished {{name}}","toolSteps.generic.running":"Running {{name}}","toolSteps.gitPush.done":"Pushed to remote","toolSteps.gitPush.running":"Pushing to remote","toolSteps.github.done":"GitHub: {{command}}","toolSteps.github.running":"GitHub: {{command}}","toolSteps.gitlab.done":"GitLab: {{command}}","toolSteps.gitlab.running":"GitLab: {{command}}","toolSteps.imageAlt":"What the agent saw","toolSteps.imageGone":"This picture is no longer stored","toolSteps.killProcess.done":"Stopped process {{name}}","toolSteps.killProcess.running":"Stopping process {{name}}","toolSteps.library.done":"Library: {{query}}","toolSteps.library.running":"Library: {{query}}","toolSteps.libraryUpload.done":"Saved to Library: {{path}}","toolSteps.libraryUpload.running":"Saving to Library: {{path}}","toolSteps.listChecks.done":"Listed scheduled checks","toolSteps.listChecks.running":"Listing scheduled checks","toolSteps.listDir.done":"Listed {{path}}","toolSteps.listDir.running":"Browsing {{path}}","toolSteps.loadSkill.done":"Used skill: {{name}}","toolSteps.loadSkill.running":"Loading skill: {{name}}","toolSteps.manageRoutines.done":"Routines: {{name}}","toolSteps.manageRoutines.running":"Routines: {{name}}","toolSteps.memory.done":"Memory updated","toolSteps.memory.running":"Updating memory","toolSteps.mergePdfs.done":"Merged PDFs into {{path}}","toolSteps.mergePdfs.running":"Merging PDFs into {{path}}","toolSteps.monitorProcess.done":"Monitoring set: {{name}}","toolSteps.monitorProcess.running":"Monitoring: {{name}}","toolSteps.newContext.done":"Asked for a fresh context","toolSteps.newContext.running":"Asking for a fresh context","toolSteps.noDetails":"No additional details were saved.","toolSteps.packDocument.done":"Packed {{path}}","toolSteps.packDocument.running":"Packing {{path}}","toolSteps.pollProcess.done":"Checked process {{name}}","toolSteps.pollProcess.running":"Checking process {{name}}","toolSteps.process":"Worked","toolSteps.publishFile.done":"Published {{path}}","toolSteps.publishFile.running":"Publishing {{path}}","toolSteps.readArtifact.done":"Read artifact {{name}}","toolSteps.readArtifact.running":"Reading artifact {{name}}","toolSteps.readDocument.done":"Read document {{path}}","toolSteps.readDocument.running":"Reading document {{path}}","toolSteps.readFile.done":"Read {{path}}","toolSteps.readFile.running":"Reading {{path}}","toolSteps.readHistory.done":"Searched earlier in this conversation: {{name}}","toolSteps.readHistory.running":"Searching earlier in this conversation: {{name}}","toolSteps.readPdf.done":"Read PDF {{path}}","toolSteps.readPdf.running":"Reading PDF {{path}}","toolSteps.readResult.done":"Read saved result {{name}}","toolSteps.readResult.running":"Reading saved result {{name}}","toolSteps.readSheet.done":"Read sheet {{path}}","toolSteps.readSheet.running":"Reading sheet {{path}}","toolSteps.readSkillFile.done":"Read skill file {{path}}","toolSteps.readSkillFile.running":"Reading skill file {{path}}","toolSteps.readSlide.done":"Read slide in {{path}}","toolSteps.readSlide.running":"Reading slide in {{path}}","toolSteps.recalcSheet.done":"Recalculated {{path}}","toolSteps.recalcSheet.running":"Recalculating {{path}}","toolSteps.renderDocument.done":"Rendered {{path}}","toolSteps.renderDocument.running":"Rendering {{path}}","toolSteps.requestPermissions.done":"Asked for access: {{name}}","toolSteps.requestPermissions.running":"Asking for access: {{name}}","toolSteps.rerunScript.done":"Re-ran {{path}}","toolSteps.rerunScript.running":"Re-running {{path}}","toolSteps.restoreFileVersion.done":"Restored a version of {{path}}","toolSteps.restoreFileVersion.running":"Restoring a version of {{path}}","toolSteps.runAppleScript.done":"Ran AppleScript: {{name}}","toolSteps.runAppleScript.running":"Running AppleScript: {{name}}","toolSteps.runCommand.done":"Ran: {{command}}","toolSteps.runCommand.running":"Running: {{command}}","toolSteps.runScript.done":"Generated with {{name}}","toolSteps.runScript.running":"Generating with {{name}}","toolSteps.scheduleCheck.done":"Scheduled: {{name}}","toolSteps.scheduleCheck.running":"Scheduling: {{name}}","toolSteps.searchResults_one":"{{count}} result","toolSteps.searchResults_other":"{{count}} results","toolSteps.searchText.done":"Searched for \u201C{{query}}\u201D","toolSteps.searchText.running":"Searching for \u201C{{query}}\u201D","toolSteps.sendToAgent.done":"Continued agent {{name}}","toolSteps.sendToAgent.running":"Continuing agent {{name}}","toolSteps.shell.backgroundBadge":"in background","toolSteps.shell.didNotComplete":"Did not complete","toolSteps.shell.exited":"Exited with code {{code}}","toolSteps.shell.movedToBackground":"Still running \u2014 moved to background ({{id}}); stops when the task settles","toolSteps.shell.sandboxed":"sandboxed","toolSteps.shell.timedOut":"Timed out","toolSteps.simulatorBuild":"Building for the simulator","toolSteps.simulatorControl":"iOS Simulator","toolSteps.splitPdf.done":"Split PDF {{path}}","toolSteps.splitPdf.running":"Splitting PDF {{path}}","toolSteps.startProcess.done":"Started: {{command}}","toolSteps.startProcess.running":"Starting: {{command}}","toolSteps.tellUser.done":"Messaged you","toolSteps.tellUser.running":"Messaging you","toolSteps.traceFormula.done":"Traced a formula in {{path}}","toolSteps.traceFormula.running":"Tracing a formula in {{path}}","toolSteps.unpackDocument.done":"Unpacked {{path}}","toolSteps.unpackDocument.running":"Unpacking {{path}}","toolSteps.usedConnector":"Used {{connector}}: {{tool}}","toolSteps.videoFrames.done":"Watched video {{path}}","toolSteps.videoFrames.running":"Watching video {{path}}","toolSteps.waitFor.done":"Waited for: {{command}}","toolSteps.waitFor.running":"Waiting for: {{command}}","toolSteps.waitingAnswer":"Waiting for your answer","toolSteps.waitingConfirmation":"Waiting for your confirmation","toolSteps.webSearch.done":"Searched the web: {{query}}","toolSteps.webSearch.running":"Searching the web: {{query}}","toolSteps.writeFile.done":"Wrote {{path}}","toolSteps.writeFile.running":"Writing {{path}}","toolSteps.writeStdin.done":"Answered process {{name}}","toolSteps.writeStdin.running":"Answering process {{name}}"}});var LD,GD=L(()=>{"use strict";LD={"pickers.list.more_one":"{{count}} more","pickers.list.more_other":"{{count}} more","pickers.list.empty":"Nothing here yet.","pickers.model.title":"Select model","pickers.model.current":"current {{model}}","pickers.model.noCurrent":"current none yet","pickers.model.searchHint":"models, providers, vendors\u2026","pickers.model.matchCount":"{{shown}} of {{total}}","pickers.model.count_one":"{{count}} model","pickers.model.count_other":"{{count}} models","pickers.model.scopeAll":"All","pickers.model.section.current":"Current model","pickers.model.section.pinned":"Pinned","pickers.model.section.recent":"Recent","pickers.model.section.vendor":"{{provider}} \u203A {{vendor}}","pickers.model.planRequired":"{{plan}} plan","pickers.model.notInPlan":"not in plan","pickers.model.free":"free","pickers.model.pinned":"pinned {{model}} \u2014 it shows under Pinned here and in the desktop app","pickers.model.unpinned":"unpinned {{model}}","pickers.model.pinNeedsNewerEngine":"Pinning needs a newer engine \u2014 update the desktop app.","pickers.model.loading":"Loading models\u2026","pickers.model.noProviders":"No connected provider has models yet.","pickers.model.noProvidersHint":"Ctrl+A connects one.","pickers.model.noMatch":"No models match \u201C{{query}}\u201D. Esc clears the search.","pickers.model.footerWide":"\u2191\u2193 move \xB7 \u2190\u2192 provider \xB7 Enter use \xB7 ^F pin \xB7 ^A add provider \xB7 Esc close","pickers.model.footerMedium":"\u2191\u2193 move \xB7 \u2190\u2192 provider \xB7 Enter use \xB7 ^F pin \xB7 Esc","pickers.model.footerNarrow":"\u2191\u2193 \xB7 Enter use \xB7 Esc","pickers.sessions.title":"Sessions","pickers.sessions.scopeHere":"This folder {{n}}","pickers.sessions.scopeAll":"All folders {{n}}","pickers.sessions.searchHint":"titles and folders\u2026","pickers.sessions.today":"Today","pickers.sessions.yesterday":"Yesterday","pickers.sessions.thisWeek":"This week","pickers.sessions.older":"Older","pickers.sessions.justNow":"just now","pickers.sessions.minutesAgo_one":"{{count}}m ago","pickers.sessions.minutesAgo_other":"{{count}}m ago","pickers.sessions.hoursAgo_one":"{{count}}h ago","pickers.sessions.hoursAgo_other":"{{count}}h ago","pickers.sessions.daysAgo_one":"{{count}}d ago","pickers.sessions.daysAgo_other":"{{count}}d ago","pickers.sessions.current":"current","pickers.sessions.untitled":"Untitled session","pickers.sessions.noFolder":"no folder","pickers.sessions.noMatch":"No session matches \u201C{{query}}\u201D.","pickers.sessions.noneHere":"No sessions in this folder yet \u2014 \u2190\u2192 shows all folders.","pickers.sessions.none":"No sessions yet. Send a task to create one.","pickers.sessions.footer":"type to search \xB7 \u2191\u2193 move \xB7 \u2190\u2192 this folder / all \xB7 Enter resume \xB7 Esc close","pickers.cloud.footer":"type to search \xB7 \u2191\u2193 move \xB7 Enter show and follow \xB7 Esc close"}});var FD,zD=L(()=>{"use strict";FD={"slash.desc.new":"start a fresh session","slash.desc.sessions":"search sessions \u2014 this folder or all","slash.desc.cloud":"cloud sessions, or run a task in the cloud","slash.cloudBusy":"a cloud task is already being followed \u2014 wait for it, or follow the new one later with /cloud","slash.desc.auth":"connect an AI provider (key or sign-in)","slash.desc.connectors":"your services (Gmail, MCP\u2026) and the catalog","slash.desc.login":"sign in to More AI: sync, dictation, Google services","slash.desc.mode":"set the access mode","slash.desc.model":"search and switch models","slash.desc.models":"same picker as /model","slash.desc.language":"interface language","slash.desc.harness":"list or switch coding agents","slash.desc.status":"engine \xB7 session \xB7 mode \xB7 model","slash.desc.analytics":"usage analytics and AI traces","slash.desc.help":"keys and commands","slash.desc.quit":"exit","slash.desc.voice":"speak into the input box (Ctrl+T)","slash.desc.helperExplore":"helper that maps the code and reports back","slash.desc.helperScout":"helper that researches libraries, APIs and docs","slash.desc.helperGeneral":"general-purpose helper for a focused question","slash.finishRunFirst":"finish or interrupt the run first","slash.engineNotConnected":"engine is not connected yet","slash.noSessions":"no sessions yet \u2014 send a task to start one","slash.modeMustBe":"mode must be one of: {{modes}}","slash.newSession":"new session","slash.harness.title":"coding agents","slash.harness.useHint":"Use /harness <id> to install and switch.","slash.harness.finishRunFirst":"finish or interrupt the run before switching coding agents","slash.harness.unknown":"unknown coding agent: {{name}}","slash.harness.notLocal":"{{name}} is unavailable for local sessions","slash.harness.claudeNeedsKey":"Claude Agent needs a selected Anthropic API key or Z.ai Coding Plan key \u2014 connect one with /auth","slash.harness.notReady":"{{name}} is not ready ({{state}})","slash.harness.switched":"coding agent: {{name}}","slash.harness.unavailable":"unavailable","slash.harness.state.builtIn":"built-in","slash.harness.state.missing":"missing","slash.harness.state.installing":"installing","slash.harness.state.ready":"ready","slash.harness.state.updating":"updating","slash.harness.state.error":"error","slash.harness.state.unsupported":"unsupported","slash.status.title":"status","slash.status.version":"version","slash.status.backend":"backend","slash.status.engine":"engine","slash.status.repo":"repo","slash.status.session":"session","slash.status.mode":"mode","slash.status.model":"model","slash.status.harness":"harness","slash.status.noSession":"none yet","slash.status.engineDefault":"engine default","slash.status.via":"via {{provider}}","slash.help.title":"help","slash.help.editing":"{{enter}} send \xB7 {{ctrlJ}} or trailing {{backslash}} newline \xB7 {{arrows}} lines, then history","slash.help.cursor":"{{altArrows}} words \xB7 {{ctrlAE}} line start/end \xB7 {{ctrlUKW}} delete","slash.help.paste":"a big paste becomes one {{pasted}} line \xB7 {{ctrlO}} expands it","slash.help.interrupt":"{{esc}} interrupt the run (twice clears a draft) \xB7 {{shiftTab}} cycle access mode","slash.help.clear":"{{ctrlC}} clear input (kept in history) / press twice to exit","slash.help.voice":"{{ctrlT}} voice: speak, then {{enter}} puts the text in the input \xB7 {{esc}} discards","slash.help.steer":"type while the agent works to **steer** it mid-run","slash.help.helpers":"{{at}} (or @scout, @general) at the start of a task sends parallel helper agents to research first","slash.help.commands":"{{model}} search and switch models \xB7 {{sessions}} every session \xB7 {{connectors}} services"}});var KD,YD=L(()=>{"use strict";KD={"voice.starting":"turning on the microphone\u2026","voice.transcribing":"transcribing\u2026","voice.noSoundYet":"no sound from the microphone yet","voice.left":"{{seconds}} s left","voice.hint.recording":"Enter or Ctrl+T puts the text in the input \xB7 Esc discards","voice.hint.waiting":"Esc stops waiting","voice.hint.failedRetry":"Ctrl+T tries again \xB7 any other key closes this","voice.hint.failed":"Ctrl+T records again \xB7 any other key closes this","voice.noEngine":"not connected to the More AI engine","voice.engineTooOld":"this More AI engine has no voice input yet \u2014 update the More AI app","voice.notSetUp":"dictation is not set up: /login turns on More AI dictation, or add a transcription service in the More AI app (Settings \u2192 Dictation)","voice.signIn":"sign in with /login to use More AI dictation","voice.outOfMinutes":"this month\u2019s dictation minutes are used up","voice.localNotReady":"the on-device speech model is not ready \u2014 finish setting it up in the More AI app (Settings \u2192 Dictation)","voice.failed":"could not transcribe: {{message}}","voice.retryHint":"The recording is kept.","voice.noRecorder":"no program to record from the microphone was found.","voice.hint.installMac":"Install the More AI app, or run: brew install ffmpeg","voice.hint.installWindows":"Install the More AI app, or run: winget install Gyan.FFmpeg","voice.hint.installLinux":"Install pulseaudio-utils (parecord), alsa-utils (arecord), ffmpeg or sox.","voice.micFailed":"the microphone could not be opened ({{reason}}).","voice.noSound":"no sound came from the microphone.","voice.nothingHeard":"no words were recognised in the recording.","voice.hint.macPermission":"Allow {{app}} in System Settings \u2192 Privacy & Security \u2192 Microphone, then restart it.","voice.hint.windowsPermission":"Allow microphone access for desktop apps in Settings \u2192 Privacy & security \u2192 Microphone ({{app}}).","voice.hint.linuxPermission":"Check that a microphone is connected and not muted.","voice.yourTerminal":"your terminal app"}});var yu,oQ=L(()=>{"use strict";BD();vD();bD();wD();DD();_D();MD();HD();UD();GD();zD();YD();yu={...kD,...TD,...ID,...ND,...KD,...FD,...LD,...OD,...SD,...QD,...RD,...xD}});var PD,qD=L(()=>{PD=[{id:"am",label:"\u12A0\u121B\u122D\u129B",englishName:"Amharic"},{id:"bn",label:"\u09AC\u09BE\u0982\u09B2\u09BE",englishName:"Bangla"},{id:"bho",label:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",englishName:"Bhojpuri"},{id:"zh",label:"\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09",englishName:"Chinese (Simplified)"},{id:"zh-TW",label:"\u4E2D\u6587\uFF08\u7E41\u9AD4\uFF09",englishName:"Chinese (Traditional)"},{id:"da",label:"Dansk",englishName:"Danish"},{id:"nl",label:"Nederlands",englishName:"Dutch"},{id:"en",label:"English (United States)",englishName:"English (United States)"},{id:"fil",label:"Filipino",englishName:"Filipino"},{id:"fi",label:"Suomi",englishName:"Finnish"},{id:"fr",label:"Fran\xE7ais (France)",englishName:"French (France)"},{id:"de",label:"Deutsch (Deutschland)",englishName:"German (Germany)"},{id:"gu",label:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",englishName:"Gujarati"},{id:"ha",label:"Hausa",englishName:"Hausa"},{id:"hi",label:"\u0939\u093F\u0928\u094D\u0926\u0940 (\u092D\u093E\u0930\u0924)",englishName:"Hindi (India)"},{id:"id",label:"Indonesia (Indonesia)",englishName:"Indonesian (Indonesia)"},{id:"it",label:"Italiano (Italia)",englishName:"Italian (Italy)"},{id:"ja",label:"\u65E5\u672C\u8A9E (\u65E5\u672C)",englishName:"Japanese (Japan)"},{id:"kn",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",englishName:"Kannada"},{id:"ko",label:"\uD55C\uAD6D\uC5B4(\uB300\uD55C\uBBFC\uAD6D)",englishName:"Korean (South Korea)"},{id:"ml",label:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",englishName:"Malayalam"},{id:"mr",label:"\u092E\u0930\u093E\u0920\u0940",englishName:"Marathi"},{id:"nb",label:"Norsk bokm\xE5l",englishName:"Norwegian Bokm\xE5l"},{id:"pt-BR",label:"Portugu\xEAs (Brasil)",englishName:"Portuguese (Brazil)"},{id:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",englishName:"Russian"},{id:"es-419",label:"Espa\xF1ol (Latinoam\xE9rica)",englishName:"Spanish (Latin America)"},{id:"es",label:"Espa\xF1ol (Espa\xF1a)",englishName:"Spanish (Spain)"},{id:"sw",label:"Kiswahili",englishName:"Swahili"},{id:"sv",label:"Svenska",englishName:"Swedish"},{id:"ta",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",englishName:"Tamil"},{id:"te",label:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",englishName:"Telugu"},{id:"th",label:"\u0E44\u0E17\u0E22",englishName:"Thai"},{id:"tr",label:"T\xFCrk\xE7e",englishName:"Turkish"},{id:"uk",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",englishName:"Ukrainian"},{id:"vi",label:"Ti\u1EBFng Vi\u1EC7t",englishName:"Vietnamese"}]});function JD(e,o){let r=e.replaceAll("_","-").toLowerCase(),c=o.find(E=>E.toLowerCase()===r);if(c)return c;let u=r.split("-"),f=u[0],m=f;return f==="zh"&&(m=u.includes("hans")?"zh":u.some(E=>["hant","tw","hk","mo"].includes(E))?"zh-TW":"zh"),f==="es"&&(m=u.some(E=>/^(419|ar|bo|br|bz|cl|co|cr|cu|do|ec|gt|hn|mx|ni|pa|pe|pr|py|sv|us|uy|ve)$/.test(E))?"es-419":"es"),f==="pt"&&(m="pt-BR"),(f==="no"||f==="nb")&&(m="nb"),f==="tl"&&(m="fil"),o.find(E=>E===m)}var jD=L(()=>{"use strict";i(JD,"resolveLanguageTag")});function _f(e){if(!e)return;let o=e.split(".")[0]?.split("@")[0]?.trim();if(!(!o||o==="C"||o==="POSIX"))return JD(o,VD)}var FA,VD,pB=L(()=>{"use strict";qD();jD();FA=PD,VD=FA.map(e=>e.id);i(_f,"supportedLanguage")});function aQ(e){let{runtime:o,processEnv:r,build:c}=e;return rQ(o)?o:rQ(r)?r:rQ(c)?c:"production"}var iQ,rQ,sQ=L(()=>{"use strict";iQ={production:{authBaseUrl:"https://auth.more-ai.net",apiBaseUrl:"https://api.more-ai.net"},dev:{authBaseUrl:"https://auth-dev.more-ai.net",apiBaseUrl:"https://api-dev.more-ai.net"}},rQ=i(e=>e==="production"||e==="dev","isAppEnvId");i(aQ,"resolveAppEnvId")});function l3(){try{return"production"}catch{return}}function c3(){return globalThis.__MOREAI_ENV__}function u3(){return globalThis.process?.env?.MOREAI_ENV}function im(e,o){return o==="production"?e?"More AI":"More AI Dev (production)":e?"More AI (dev backend)":"More AI Dev"}var i3,a3,s3,mB,Vi,rm,Nf=L(()=>{"use strict";sQ();sQ();i3={id:"production",label:"Production",...iQ.production,webAppUrl:"https://app.more-ai.net",connectorsBaseUrl:"https://connectors.more-ai.net",reportsUrl:"https://reports.more-ai.net",reportsToken:"b0184659a6710dba1b1f31b7a61168114249dda3619fbee99802e7d1ad971baa",posthogKey:"phc_nmEEq86Losaq7aWVMF8hXdVAtPKiZpy2JpknJypWSd7W"},a3={id:"dev",label:"Dev",...iQ.dev,webAppUrl:"https://dev.more-ai-app.pages.dev",connectorsBaseUrl:"https://connectors-dev.more-ai.net",reportsUrl:"https://reports-dev.more-ai.net",reportsToken:"",posthogKey:"phc_nmEEq86Losaq7aWVMF8hXdVAtPKiZpy2JpknJypWSd7W"},s3={production:i3,dev:a3};i(l3,"buildStamp");i(c3,"runtimeStamp");i(u3,"processStamp");mB=aQ({runtime:c3(),processEnv:u3(),build:l3()}),Vi=s3[mB],rm=i(e=>e.replace(/^https?:\/\//,"").replace(/\/$/,""),"hostOf");i(im,"appProfileName")});import A3 from"node:os";import YE from"node:path";function XD(){let e=A3.homedir();switch(process.platform){case"darwin":return YE.join(e,"Library","Application Support");case"win32":return process.env.APPDATA||YE.join(e,"AppData","Roaming");default:return process.env.XDG_CONFIG_HOME||YE.join(e,".config")}}function f3(e=d3){return YE.join(XD(),e)}function qE(e=mB){let o=e==="production"?[im(!0,e),im(!1,e)]:[im(!1,e),im(!0,e)];return[...new Set(o)].map(r=>YE.join(XD(),r))}async function zA(e,o=mB){let r=qE(o);for(let c of r)if(await e(c))return c;return r[0]??f3()}var d3,am=L(()=>{"use strict";Nf();d3=im(!0,"production");i(XD,"appDataDir");i(f3,"resolveUserDataDir");i(qE,"userDataDirCandidates");i(zA,"resolveClientDataDir")});import{execFileSync as g3}from"node:child_process";import lQ from"node:fs";import uQ from"node:path";function Mf(e){let o=i(c=>c&&c!=="auto"?_f(c):void 0,"pick"),r=[["flag",[e.flag]],["env",[e.env]],["cli",[e.cliPref]],["desktop",[e.desktop]],["locale",e.localeEnv??[]],["system",e.system??[]]];for(let[c,u]of r)for(let f of u){let m=o(f);if(m)return{id:m,source:c}}return{id:"en",source:"default"}}function cQ(e){try{let o=JSON.parse(lQ.readFileSync(e,"utf8"));return o&&typeof o=="object"?o:void 0}catch{return}}function p3(){if(process.platform!=="darwin")return[];try{return[...g3("defaults",["read","-g","AppleLanguages"],{encoding:"utf8",timeout:800,stdio:["ignore","pipe","ignore"]}).matchAll(/"?([A-Za-z]{2,3}(?:[-_][A-Za-z0-9]+)*)"?/g)].map(o=>o[1])}catch{return[]}}function Iu(e={}){let o=e.dirs??qE(),r=e.dataDir?[e.dataDir,...o.filter(S=>S!==e.dataDir)]:o,c,u;for(let S of r){let v=cQ(ZD(S))?.language;!c&&typeof v=="string"&&(c=v);let R=cQ(uQ.join(S,"settings.json"));!u&&R?.onboardingCompleted===!0&&typeof R.language=="string"&&(u=R.language)}let f=process.env,m=[f.LC_ALL,f.LC_MESSAGES,f.LANG,f.LANGUAGE?.split(":")[0]],E={...e.flag?{flag:e.flag}:{},...f.MOREAI_LANG?{env:f.MOREAI_LANG}:{},...c?{cliPref:c}:{},...u?{desktop:u}:{},localeEnv:m};return Mf({...u?{desktop:u}:{},localeEnv:m}).source==="default"&&(E.system=[...p3(),Intl.DateTimeFormat().resolvedOptions().locale]),E}function AQ(e,o){let r=ZD(e);try{lQ.mkdirSync(uQ.dirname(r),{recursive:!0}),lQ.writeFileSync(r,JSON.stringify({...cQ(r),language:o},null,2))}catch{}}function dQ(e){let o=[],r;for(let c=0;c<e.length;c++){let u=e[c];if(u==="--"){o.push(...e.slice(c));break}if(u==="--lang"&&e[c+1]&&!e[c+1].startsWith("-")){r=e[++c];continue}if(u.startsWith("--lang=")){r=u.slice(7);continue}o.push(u)}return{argv:o,...r?{lang:r}:{}}}function hB(e){return Mf({...e,flag:void 0,env:void 0,cliPref:void 0}).id}var ZD,WD=L(()=>{"use strict";am();pB();i(Mf,"detectLanguage");ZD=i(e=>uQ.join(e,"cli","prefs.json"),"prefsFile");i(cQ,"readJson");i(p3,"appleLanguages");i(Iu,"readLanguageSignals");i(AQ,"saveLanguagePreference");i(dQ,"splitLanguageFlag");i(hB,"automaticLanguage")});import m3 from"node:fs";import EB from"node:path";import{fileURLToPath as h3}from"node:url";function za(){return CB}function E3(){let e=EB.dirname(h3(import.meta.url));return[EB.join(e,"locales"),EB.join(e,"..","..","locales")]}function C3(e){if(e==="en")return yu;for(let o of E3())try{let r=JSON.parse(m3.readFileSync(EB.join(o,`${e}.json`),"utf8"));if(r&&typeof r=="object")return r}catch{}}function KA(e){let o=_f(e)??"en",r=C3(o);CB=r?o:"en",yB=r??yu;try{fQ=new Intl.PluralRules(CB)}catch{fQ=$D}return CB}function y3(e,o){let r=o?.count;if(typeof r=="number"){let c=yB[`${e}_${fQ.select(r)}`]??yB[`${e}_other`];if(c!==void 0)return c;let u=yu[`${e}_${$D.select(r)}`]??yu[`${e}_other`];if(u!==void 0)return u}return yB[e]??yu[e]??e}function C(e,o){let r=y3(e,o);return o?r.replace(/\{\{\s*(\w+)\s*\}\}/g,(c,u)=>{let f=o[u];return f===void 0?c:String(f)}):r}function sm(e){return FA.find(o=>o.id===e)?.label??e}var CB,yB,fQ,$D,Xt=L(()=>{"use strict";oQ();pB();pB();WD();CB="en",yB=yu,fQ=new Intl.PluralRules("en"),$D=new Intl.PluralRules("en");i(za,"currentLanguage");i(E3,"localeDirs");i(C3,"loadMessages");i(KA,"setLanguage");i(y3,"lookup");i(C,"t");i(sm,"languageLabel")});function PE(e){let o={command:"run",print:!1,json:!1,continueSession:!1,codeStdin:!1,tokenStdin:!1,updateInstall:!1,fallback:!1,wait:!1,cloud:!1,detach:!1},r=[];for(let c=0;c<e.length;c++){let u=e[c],f=i(()=>{let m=e[c+1];if(!(m===void 0||m.startsWith("-")&&m!=="-"))return c++,m},"next");switch(u){case"-h":case"--help":return{args:{...o,command:"help"}};case"-v":case"--version":return{args:{...o,command:"version"}};case"-p":case"--print":o.print=!0;break;case"--json":o.json=!0;break;case"--code-stdin":o.codeStdin=!0;break;case"--token-stdin":o.tokenStdin=!0;break;case"--install":o.updateInstall=!0;break;case"--challenge":{let m=f();if(!m)return{error:C("cli.args.challengeNeedsId")};o.challenge=m;break}case"--fallback":o.fallback=!0;break;case"--cloud":o.cloud=!0;break;case"--detach":o.detach=!0;break;case"--finish":{let m=f(),E=m==="pr"?"pull-request":m;if(!E||!I3.includes(E))return{error:C("cli.args.finishInvalid",{finishes:"pr, push, branch, folder"})};o.finish=E;break}case"--wait":o.wait=!0;break;case"-c":case"--continue":o.continueSession=!0;break;case"--session":{let m=f();if(!m)return{error:C("cli.args.sessionNeedsId")};o.session=m;break}case"-m":case"--model":{let m=f();if(!m)return{error:C("cli.args.modelNeedsId")};o.model=m;break}case"--provider":{let m=f();if(!m)return{error:C("cli.args.providerNeedsId")};o.provider=m;break}case"--mode":{let m=f();if(!m||!Ll.includes(m))return{error:C("cli.args.modeInvalid",{modes:Ll.join(", ")})};o.mode=m;break}case"-C":case"--cwd":{let m=f();if(!m)return{error:C("cli.args.cwdNeedsDir")};o.cwd=m;break}default:if(u.startsWith("-")&&u!=="-")return{error:C("cli.args.unknownOption",{option:u})};r.push(u)}}if(r[0]==="sessions"||r[0]==="doctor"||r[0]==="auth"||r[0]==="connectors"||r[0]==="browser"||r[0]==="login"||r[0]==="logout"||r[0]==="account"||r[0]==="setup"||r[0]==="update"||r[0]==="analytics"||r[0]==="cloud"?(o.command=r[0],r.shift()):r[0]==="help"&&(o.command="help",r.shift()),r.length&&(o.task=r.join(" ")),o.cloud){if(o.command!=="run"&&o.command!=="cloud")return{error:C("cli.args.cloudOnlyRun")};o.command==="run"&&(o.command="cloud",o.task=o.task?`run ${o.task}`:"run")}return(o.finish||o.detach)&&o.command!=="cloud"?{error:C("cli.args.cloudOnlyRun")}:o.json&&!o.print?{error:C("cli.args.jsonNeedsPrint")}:o.session&&o.continueSession?{error:C("cli.args.sessionAndContinue")}:(o.codeStdin||o.challenge||o.fallback||o.wait)&&o.command!=="login"?{error:C("cli.args.loginOnly")}:o.tokenStdin&&(o.command!=="connectors"||!o.task?.startsWith("add "))?{error:C("cli.args.tokenStdinNeedsAdd")}:o.updateInstall&&o.command!=="update"?{error:C("cli.args.installUpdateOnly")}:o.command==="update"&&o.task?{error:C("cli.args.updateNoArgs")}:o.codeStdin&&(o.challenge||o.fallback||o.wait)?{error:C("cli.args.codeStdinWithChallenge")}:o.fallback&&!o.challenge?{error:C("cli.args.fallbackNeedsChallenge")}:o.wait&&!o.challenge?{error:C("cli.args.waitNeedsChallenge")}:o.fallback&&o.wait?{error:C("cli.args.fallbackAndWait")}:o.command==="login"&&o.challenge&&o.task?{error:C("cli.args.challengeWithEmail")}:{args:o}}function IB([e,o,r],c=B3){return e+" ".repeat(Math.max(2,c-e.length))+C(o,r)}function tT(){return[C("cli.help.title"),"",C("cli.help.usage"),...S3.map(e=>IB(e)),"",C("cli.help.headless"),IB([" moreai login you@example.com","cli.help.loginEmail"],eT-1),...v3.map(e=>IB(e,eT)),"",C("cli.help.options"),...Q3.map(e=>IB(e)),"",C("cli.help.inside"),` ${C("cli.help.insideKeys")}`,` ${C("cli.help.insideCommands",{commands:b3})}`,` ${C("cli.help.insideSteer")}`,"",C("cli.help.engine"),"",C("cli.help.analyticsNote"),""].join(`
|
|
8
|
+
`)}var I3,B3,eT,S3,v3,Q3,b3,gQ=L(()=>{"use strict";gB();Xt();I3=["pull-request","push","branch","folder"];i(PE,"parseArgs");B3=31,eT=45,S3=[[" moreai","cli.help.run"],[' moreai "task"',"cli.help.runTask"],[' moreai -p "task"',"cli.help.print"],[' moreai "@explore task"',"cli.help.optHelper"],[" moreai sessions","cli.help.sessions"],[" moreai cloud","cli.help.cloud"],[' moreai cloud run "task"',"cli.help.cloudRun"],[" moreai cloud open ID","cli.help.cloudOpen"],[" moreai setup","cli.help.setup"],[" moreai login","cli.help.login"],[" moreai account","cli.help.account"],[" moreai logout","cli.help.logout"],[" moreai auth","cli.help.auth"],[" moreai auth status","cli.help.authStatus"],[" moreai auth env","cli.help.authEnv"],[" moreai connectors","cli.help.connectors"],[" moreai connectors list","cli.help.connectorsList"],[" moreai connectors catalog","cli.help.connectorsCatalog"],[" moreai connectors add ID","cli.help.connectorsAdd"],[" moreai connectors add ID --token-stdin","cli.help.connectorsAddToken"],[" moreai connectors on|off ID","cli.help.connectorsToggle"],[" moreai connectors remove ID","cli.help.connectorsRemove"],[" moreai browser pair","cli.help.browserPair"],[" moreai browser status","cli.help.browserStatus"],[" moreai browser unpair","cli.help.browserUnpair"],[" moreai doctor","cli.help.doctor"],[" moreai update","cli.help.update"],[" moreai update --install","cli.help.updateInstall"],[" moreai analytics","cli.help.analytics"],[" moreai analytics on|usage|off","cli.help.analyticsSet"]],v3=[[" moreai login you@example.com --code-stdin","cli.help.loginCode"],[" moreai login --challenge <id> --wait","cli.help.loginWait"],[" moreai login --challenge <id> --fallback","cli.help.loginFallback"]],Q3=[[" -p, --print","cli.help.optPrint"],[" --json","cli.help.optJson"],[" -c, --continue","cli.help.optContinue"],[" --session <id>","cli.help.optSession"],[" -m, --model <id>","cli.help.optModel"],[" --provider <id>","cli.help.optProvider"],[" --mode <mode>","cli.help.optMode",{modes:Ll.join(" | ")}],[" -C, --cwd <dir>","cli.help.optCwd"],[" --cloud","cli.help.optCloud"],[" --finish <kind>","cli.help.optFinish"],[" --detach","cli.help.optDetach"],[" --lang <id>","cli.help.optLang"],[" -v, --version","cli.help.optVersion"],[" -h, --help","cli.help.optHelp"]],b3="/new /sessions /cloud /login /auth /connectors /mode /model /language /status /analytics /help /quit";i(IB,"helpRow");i(tT,"helpText")});var Rr,YA=L(()=>{"use strict";Rr="0.1.0-beta.2"});import R3 from"node:fs/promises";import w3 from"node:path";function pQ(e){return w3.join(e,"hub","owner.json")}async function Ps(e){try{let o=await R3.readFile(pQ(e),"utf8"),r=JSON.parse(o);if(r?.version===x3&&typeof r.url=="string")return r}catch{}}var x3,Of=L(()=>{"use strict";x3="v1";i(pQ,"hubDiscoveryPath");i(Ps,"readHubDiscovery")});import Hf from"node:fs/promises";import mQ from"node:path";function M3(e){return`${pQ(e)}.lock`}function O3(e){if(!Number.isInteger(e)||e<=0)return!1;try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}async function nT(e){try{let o=await Hf.readFile(mQ.join(e,"owner.json"),"utf8"),r=JSON.parse(o);return typeof r?.pid=="number"&&typeof r?.at=="number"?r:null}catch{return null}}async function oT(e){await Hf.rm(e,{recursive:!0,force:!0}).catch(()=>{})}async function H3(e){try{return await Hf.mkdir(e,{recursive:!1}),!0}catch(o){let r=o.code;if(r==="EEXIST")return!1;if(r==="ENOENT"){await Hf.mkdir(mQ.dirname(e),{recursive:!0});try{return await Hf.mkdir(e,{recursive:!1}),!0}catch(c){if(c.code==="EEXIST")return!1;throw c}}throw o}}async function k3(e,o){if(o)return Date.now()-o.at;try{let r=await Hf.stat(e);return Date.now()-r.mtimeMs}catch{return Number.POSITIVE_INFINITY}}async function rT(e,o){let r=M3(e),c=Date.now()+D3;for(;;){let u;try{u=await H3(r)}catch(E){return console.warn("[hub] startup lock unavailable \u2014 proceeding without it:",E.message),o()}if(u){await Hf.writeFile(mQ.join(r,"owner.json"),JSON.stringify({pid:process.pid,at:Date.now()})).catch(()=>{});try{return await o()}finally{let E=await nT(r);(!E||E.pid===process.pid)&&await oT(r)}}let f=await nT(r);if(f&&!O3(f.pid)||await k3(r,f)>_3){await oT(r);continue}if(Date.now()>=c)return console.warn("[hub] startup lock wait timed out \u2014 proceeding without it"),o();await N3(T3)}}var D3,T3,_3,N3,iT=L(()=>{"use strict";Of();D3=15e3,T3=100,_3=3e4,N3=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(M3,"lockDir");i(O3,"pidAlive");i(nT,"readOwner");i(oT,"removeLock");i(H3,"tryAcquire");i(k3,"lockAgeMs");i(rT,"withHubStartupLock")});var aT=L(()=>{"use strict"});function lT(e,o,r,c){return{kind:"command",version:hQ,requestId:o,clientId:e,command:r,params:c}}var hQ,sT,BB=L(()=>{"use strict";aT();hQ="v2",sT="google:";i(lT,"commandFrame")});function cT(e){if(!Number.isInteger(e)||e<=0)return!1;try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}async function uT(e,o=1e3){let r=new AbortController,c=setTimeout(()=>r.abort(),o);try{let u=await fetch(`http://${e.host}:${e.port}/health`,{signal:r.signal});if(!u.ok)return;let f=await u.json();return f?.ok===!0&&f.pid===e.pid&&typeof f.protocol=="string"?f:void 0}catch{return}finally{clearTimeout(c)}}async function EQ(e,o=1e3){return(await uT(e,o))?.protocol===hQ}async function Js(e){let o=await Ps(e);if(o&&o.port!==0&&cT(o.pid)&&await EQ(o))return{url:o.url,authToken:o.authToken}}async function CQ(e){let o=await Ps(e);return!o||o.pid===process.pid||!cT(o.pid)?!1:o.port===0?!0:!!await uT(o)}async function AT(e,o){let r=await Js(e);return r?{endpoint:r,spawned:!1}:rT(e,async()=>{let c=await Js(e);if(c)return{endpoint:c,spawned:!1};if(await CQ(e))throw new Error("A More AI engine already owns this profile but its local hub is unavailable or uses an incompatible protocol. Update the CLI and desktop app, or enable External clients in the desktop settings.");return{endpoint:await o(),spawned:!0}})}var JE=L(()=>{"use strict";Of();iT();BB();i(cT,"pidAlive");i(uT,"probeHubOwner");i(EQ,"probeHubHealth");i(Js,"resolveLiveHub");i(CQ,"machineHasLiveOwner");i(AT,"ensureHub")});function SQ(e){IQ=e}function dT(e=process.stdout,o=process.stderr){e.on("error",()=>{yQ||(yQ=!0,IQ?IQ():process.exit(141))}),o.on("error",()=>{})}var yQ,IQ,BQ,vQ=L(()=>{"use strict";yQ=!1,IQ=null,BQ=i(()=>yQ,"stdoutClosed");i(SQ,"onStdoutClosed");i(dT,"guardStdout")});var U3,L3,G3,qA,SB=L(()=>{"use strict";BB();U3="moreai-hub",L3="tok.",G3={"harness.ensureInstalled":15*6e4,"stt.transcribe":5*6e4,"stt.retranscribe":5*6e4},qA=class{static{i(this,"HubClient")}clientId;url;authToken;requestTimeoutMs;webSocketImpl;socket=null;pending=new Map;listeners=new Set;closeListeners=new Set;seq=0;constructor(o){this.clientId=o.clientId,this.url=o.url,this.authToken=o.authToken,this.requestTimeoutMs=o.requestTimeoutMs??6e4,this.webSocketImpl=o.webSocketImpl}connect(){return new Promise((o,r)=>{let c=this.webSocketImpl??globalThis.WebSocket;if(!c){r({code:"connect-failed",message:"No WebSocket implementation \u2014 pass webSocketImpl on hosts without a global"});return}let u=new c(this.url,[U3,`${L3}${this.authToken}`]);this.socket=u,u.addEventListener("open",()=>o()),u.addEventListener("error",()=>r({code:"connect-failed",message:"Hub connection failed"})),u.addEventListener("close",()=>this.onClose(u)),u.addEventListener("message",f=>{this.socket===u&&this.onMessage(String(f.data))})})}onMessage(o){let r;try{r=JSON.parse(o)}catch{return}if(r.kind==="reply"){let c=this.pending.get(r.requestId);if(!c)return;this.pending.delete(r.requestId),clearTimeout(c.timer),r.ok?c.resolve(r.result):c.reject(r.error??{code:"unknown",message:"Hub error"})}else if(r.kind==="event")for(let c of this.listeners)c(r.payload)}onClose(o){if(this.socket===o){this.socket=null;for(let[,r]of this.pending)clearTimeout(r.timer),r.reject({code:"disconnected",message:"Hub connection closed"});this.pending.clear();for(let r of this.closeListeners)r()}}onDisconnect(o){return this.closeListeners.add(o),()=>this.closeListeners.delete(o)}command(o,r){let c=this.socket;if(!c||c.readyState!==c.OPEN)return Promise.reject({code:"disconnected",message:"Hub not connected"});let u=`${this.clientId}-${++this.seq}`;return new Promise((f,m)=>{let E=setTimeout(()=>{this.pending.delete(u),m({code:"timeout",message:`Command ${o} timed out`})},Math.max(this.requestTimeoutMs,G3[o]??0));E.unref?.(),this.pending.set(u,{resolve:f,reject:m,timer:E}),c.send(JSON.stringify(lT(this.clientId,u,o,r)))})}on(o){return this.listeners.add(o),()=>this.listeners.delete(o)}isConnected(){return this.socket!==null&&this.socket.readyState===this.socket.OPEN}close(){let o=this.socket;o&&(o.close(),this.onClose(o))}}});var fT,gT=L(()=>{"use strict";fT=3e3});import{fork as F3}from"node:child_process";import pT from"node:path";async function Y3(e,o,r){let c=F3(o,["--user-data-dir",e],{detached:!0,stdio:"ignore",env:{...process.env,MOREAI_DAEMON_CLIENT:r}}),u=null;c.on("error",m=>{u=m}),c.unref(),c.connected&&c.disconnect();let f=Date.now()+z3;for(;Date.now()<f;){let m=await Js(e);if(m)return m;if(u)throw new Error(`daemon failed to spawn: ${u.message}`);if(c.exitCode!==null)throw new Error(`daemon exited early (code ${c.exitCode}) before becoming ready`);await ET(hT)}throw new Error("daemon did not become ready in time")}function mT(e){try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}async function q3(e,o,r,c=K3){if(!r)return"none";let u=await Ps(e);if(!u||u.owner!=="daemon"||!u.build||u.build===r||!u.script||pT.resolve(u.script)!==pT.resolve(o))return"none";let f=Date.now()+c;for(;Date.now()<f;){if(!mT(u.pid))return"retired";await ET(hT)}return mT(u.pid)?"busy":"retired"}async function CT(e,o,r){let c=await zA(async S=>!!await Js(S));r.build&&await q3(c,e,r.build);let{endpoint:u,spawned:f}=await AT(c,()=>Y3(c,e,r.clientId)),m=new qA({...u,clientId:r.clientId,webSocketImpl:r.webSocketImpl});await m.connect();let E=m.on(o);return{client:m,spawned:f,dataDir:c,onDisconnect:i(S=>m.onDisconnect(S),"onDisconnect"),dispose:i(()=>{E(),m.close()},"dispose")}}var z3,hT,K3,ET,yT=L(()=>{"use strict";SB();JE();Of();gT();am();z3=15e3,hT=150,K3=fT+3e3,ET=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(Y3,"spawnDaemon");i(mT,"pidAlive");i(q3,"awaitRetiringEngine");i(CT,"connectEngine")});import{spawn as P3}from"node:child_process";function IT(e){if(!/^https?:\/\//i.test(e))return;let[o,r]=process.platform==="darwin"?["open",[e]]:process.platform==="win32"?["cmd",["/c","start","",e]]:["xdg-open",[e]];try{let c=P3(o,r,{detached:!0,stdio:"ignore"});c.on("error",()=>{}),c.unref()}catch{}}var BT=L(()=>{"use strict";i(IT,"openUrl")});var Bu=Yn((xj,QT)=>{"use strict";var ST=["nodebuffer","arraybuffer","fragments"],vT=typeof Blob<"u";vT&&ST.push("blob");QT.exports={BINARY_TYPES:ST,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:vT,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:i(()=>{},"NOOP")}});var jE=Yn((Tj,vB)=>{"use strict";var{EMPTY_BUFFER:J3}=Bu(),QQ=Buffer[Symbol.species];function j3(e,o){if(e.length===0)return J3;if(e.length===1)return e[0];let r=Buffer.allocUnsafe(o),c=0;for(let u=0;u<e.length;u++){let f=e[u];r.set(f,c),c+=f.length}return c<o?new QQ(r.buffer,r.byteOffset,c):r}i(j3,"concat");function bT(e,o,r,c,u){for(let f=0;f<u;f++)r[c+f]=e[f]^o[f&3]}i(bT,"_mask");function RT(e,o){for(let r=0;r<e.length;r++)e[r]^=o[r&3]}i(RT,"_unmask");function V3(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}i(V3,"toArrayBuffer");function bQ(e){if(bQ.readOnly=!0,Buffer.isBuffer(e))return e;let o;return e instanceof ArrayBuffer?o=new QQ(e):ArrayBuffer.isView(e)?o=new QQ(e.buffer,e.byteOffset,e.byteLength):(o=Buffer.from(e),bQ.readOnly=!1),o}i(bQ,"toBuffer");vB.exports={concat:j3,mask:bT,toArrayBuffer:V3,toBuffer:bQ,unmask:RT};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=Fo("bufferutil");vB.exports.mask=function(o,r,c,u,f){f<48?bT(o,r,c,u,f):e.mask(o,r,c,u,f)},vB.exports.unmask=function(o,r){o.length<32?RT(o,r):e.unmask(o,r)}}catch{}});var DT=Yn((Nj,xT)=>{"use strict";var wT=Symbol("kDone"),RQ=Symbol("kRun"),wQ=class{static{i(this,"Limiter")}constructor(o){this[wT]=()=>{this.pending--,this[RQ]()},this.concurrency=o||1/0,this.jobs=[],this.pending=0}add(o){this.jobs.push(o),this[RQ]()}[RQ](){if(this.pending!==this.concurrency&&this.jobs.length){let o=this.jobs.shift();this.pending++,o(this[wT])}}};xT.exports=wQ});var um=Yn((Oj,MT)=>{"use strict";var VE=Fo("zlib"),TT=jE(),X3=DT(),{kStatusCode:_T}=Bu(),Z3=Buffer[Symbol.species],W3=Buffer.from([0,0,255,255]),bB=Symbol("permessage-deflate"),Su=Symbol("total-length"),lm=Symbol("callback"),PA=Symbol("buffers"),cm=Symbol("error"),QB,xQ=class{static{i(this,"PerMessageDeflate")}constructor(o){if(this._options=o||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!QB){let r=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;QB=new X3(r)}}static get extensionName(){return"permessage-deflate"}offer(){let o={};return this._options.serverNoContextTakeover&&(o.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(o.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(o.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?o.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(o.client_max_window_bits=!0),o}accept(o){return o=this.normalizeParams(o),this.params=this._isServer?this.acceptAsServer(o):this.acceptAsClient(o),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let o=this._deflate[lm];this._deflate.close(),this._deflate=null,o&&o(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(o){let r=this._options,c=o.find(u=>!(r.serverNoContextTakeover===!1&&u.server_no_context_takeover||u.server_max_window_bits&&(r.serverMaxWindowBits===!1||typeof r.serverMaxWindowBits=="number"&&r.serverMaxWindowBits>u.server_max_window_bits)||typeof r.clientMaxWindowBits=="number"&&(typeof u.client_max_window_bits=="number"?r.clientMaxWindowBits>u.client_max_window_bits:!u.client_max_window_bits)));if(!c)throw new Error("None of the extension offers can be accepted");return r.serverNoContextTakeover&&(c.server_no_context_takeover=!0),r.clientNoContextTakeover&&(c.client_no_context_takeover=!0),typeof r.serverMaxWindowBits=="number"&&(c.server_max_window_bits=r.serverMaxWindowBits),typeof r.clientMaxWindowBits=="number"?c.client_max_window_bits=r.clientMaxWindowBits:(c.client_max_window_bits===!0||r.clientMaxWindowBits===!1)&&delete c.client_max_window_bits,c}acceptAsClient(o){let r=o[0];if(this._options.clientNoContextTakeover===!1&&r.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!r.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(r.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&r.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return r}normalizeParams(o){return o.forEach(r=>{Object.keys(r).forEach(c=>{let u=r[c];if(u.length>1)throw new Error(`Parameter "${c}" must have only a single value`);if(u=u[0],c==="client_max_window_bits"){if(u!==!0){let f=+u;if(!Number.isInteger(f)||f<8||f>15)throw new TypeError(`Invalid value for parameter "${c}": ${u}`);u=f}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${c}": ${u}`)}else if(c==="server_max_window_bits"){let f=+u;if(!Number.isInteger(f)||f<8||f>15)throw new TypeError(`Invalid value for parameter "${c}": ${u}`);u=f}else if(c==="client_no_context_takeover"||c==="server_no_context_takeover"){if(u!==!0)throw new TypeError(`Invalid value for parameter "${c}": ${u}`)}else throw new Error(`Unknown parameter "${c}"`);r[c]=u})}),o}decompress(o,r,c){QB.add(u=>{this._decompress(o,r,(f,m)=>{u(),c(f,m)})})}compress(o,r,c){QB.add(u=>{this._compress(o,r,(f,m)=>{u(),c(f,m)})})}_decompress(o,r,c){let u=this._isServer?"client":"server";if(!this._inflate){let f=`${u}_max_window_bits`,m=typeof this.params[f]!="number"?VE.Z_DEFAULT_WINDOWBITS:this.params[f];this._inflate=VE.createInflateRaw({...this._options.zlibInflateOptions,windowBits:m}),this._inflate[bB]=this,this._inflate[Su]=0,this._inflate[PA]=[],this._inflate.on("error",e8),this._inflate.on("data",NT)}this._inflate[lm]=c,this._inflate.write(o),r&&this._inflate.write(W3),this._inflate.flush(()=>{let f=this._inflate[cm];if(f){this._inflate.close(),this._inflate=null,c(f);return}let m=TT.concat(this._inflate[PA],this._inflate[Su]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Su]=0,this._inflate[PA]=[],r&&this.params[`${u}_no_context_takeover`]&&this._inflate.reset()),c(null,m)})}_compress(o,r,c){let u=this._isServer?"server":"client";if(!this._deflate){let f=`${u}_max_window_bits`,m=typeof this.params[f]!="number"?VE.Z_DEFAULT_WINDOWBITS:this.params[f];this._deflate=VE.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:m}),this._deflate[Su]=0,this._deflate[PA]=[],this._deflate.on("data",$3)}this._deflate[lm]=c,this._deflate.write(o),this._deflate.flush(VE.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let f=TT.concat(this._deflate[PA],this._deflate[Su]);r&&(f=new Z3(f.buffer,f.byteOffset,f.length-4)),this._deflate[lm]=null,this._deflate[Su]=0,this._deflate[PA]=[],r&&this.params[`${u}_no_context_takeover`]&&this._deflate.reset(),c(null,f)})}};MT.exports=xQ;function $3(e){this[PA].push(e),this[Su]+=e.length}i($3,"deflateOnData");function NT(e){if(this[Su]+=e.length,this[bB]._maxPayload<1||this[Su]<=this[bB]._maxPayload){this[PA].push(e);return}this[cm]=new RangeError("Max payload size exceeded"),this[cm].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[cm][_T]=1009,this.removeListener("data",NT),this.reset()}i(NT,"inflateOnData");function e8(e){if(this[bB]._inflate=null,this[cm]){this[lm](this[cm]);return}e[_T]=1007,this[lm](e)}i(e8,"inflateOnError")});var Am=Yn((kj,RB)=>{"use strict";var{isUtf8:OT}=Fo("buffer"),{hasBlob:t8}=Bu(),n8=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function o8(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}i(o8,"isValidStatusCode");function DQ(e){let o=e.length,r=0;for(;r<o;)if((e[r]&128)===0)r++;else if((e[r]&224)===192){if(r+1===o||(e[r+1]&192)!==128||(e[r]&254)===192)return!1;r+=2}else if((e[r]&240)===224){if(r+2>=o||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160)return!1;r+=3}else if((e[r]&248)===240){if(r+3>=o||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244)return!1;r+=4}else return!1;return!0}i(DQ,"_isValidUTF8");function r8(e){return t8&&typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}i(r8,"isBlob");RB.exports={isBlob:r8,isValidStatusCode:o8,isValidUTF8:DQ,tokenChars:n8};if(OT)RB.exports.isValidUTF8=function(e){return e.length<24?DQ(e):OT(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=Fo("utf-8-validate");RB.exports.isValidUTF8=function(o){return o.length<32?DQ(o):e(o)}}catch{}});var OQ=Yn((Lj,zT)=>{"use strict";var{Writable:i8}=Fo("stream"),HT=um(),{BINARY_TYPES:a8,EMPTY_BUFFER:kT,kStatusCode:s8,kWebSocket:l8}=Bu(),{concat:TQ,toArrayBuffer:c8,unmask:u8}=jE(),{isValidStatusCode:A8,isValidUTF8:UT}=Am(),wB=Buffer[Symbol.species],js=0,LT=1,GT=2,FT=3,_Q=4,NQ=5,xB=6,MQ=class extends i8{static{i(this,"Receiver")}constructor(o={}){super(),this._allowSynchronousEvents=o.allowSynchronousEvents!==void 0?o.allowSynchronousEvents:!0,this._binaryType=o.binaryType||a8[0],this._extensions=o.extensions||{},this._isServer=!!o.isServer,this._maxBufferedChunks=o.maxBufferedChunks|0,this._maxFragments=o.maxFragments|0,this._maxPayload=o.maxPayload|0,this._skipUTF8Validation=!!o.skipUTF8Validation,this[l8]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=js}_write(o,r,c){if(this._opcode===8&&this._state==js)return c();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){c(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=o.length,this._buffers.push(o),this.startLoop(c)}consume(o){if(this._bufferedBytes-=o,o===this._buffers[0].length)return this._buffers.shift();if(o<this._buffers[0].length){let c=this._buffers[0];return this._buffers[0]=new wB(c.buffer,c.byteOffset+o,c.length-o),new wB(c.buffer,c.byteOffset,o)}let r=Buffer.allocUnsafe(o);do{let c=this._buffers[0],u=r.length-o;o>=c.length?r.set(this._buffers.shift(),u):(r.set(new Uint8Array(c.buffer,c.byteOffset,o),u),this._buffers[0]=new wB(c.buffer,c.byteOffset+o,c.length-o)),o-=c.length}while(o>0);return r}startLoop(o){this._loop=!0;do switch(this._state){case js:this.getInfo(o);break;case LT:this.getPayloadLength16(o);break;case GT:this.getPayloadLength64(o);break;case FT:this.getMask();break;case _Q:this.getData(o);break;case NQ:case xB:this._loop=!1;return}while(this._loop);this._errored||o()}getInfo(o){if(this._bufferedBytes<2){this._loop=!1;return}let r=this.consume(2);if((r[0]&48)!==0){let u=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");o(u);return}let c=(r[0]&64)===64;if(c&&!this._extensions[HT.extensionName]){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(this._fin=(r[0]&128)===128,this._opcode=r[0]&15,this._payloadLength=r[1]&127,this._opcode===0){if(c){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(!this._fragmented){let u=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let u=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}this._compressed=c}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let u=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");o(u);return}if(c){let u=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");o(u);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let u=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");o(u);return}}else{let u=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");o(u);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(r[1]&128)===128,this._isServer){if(!this._masked){let u=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");o(u);return}}else if(this._masked){let u=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");o(u);return}this._payloadLength===126?this._state=LT:this._payloadLength===127?this._state=GT:this.haveLength(o)}getPayloadLength16(o){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(o)}getPayloadLength64(o){if(this._bufferedBytes<8){this._loop=!1;return}let r=this.consume(8),c=r.readUInt32BE(0);if(c>Math.pow(2,21)-1){let u=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");o(u);return}this._payloadLength=c*Math.pow(2,32)+r.readUInt32BE(4),this.haveLength(o)}haveLength(o){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let r=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");o(r);return}this._masked?this._state=FT:this._state=_Q}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=_Q}getData(o){let r=kT;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}r=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u8(r,this._mask)}if(this._opcode>7){this.controlMessage(r,o);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let c=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");o(c);return}if(this._compressed){this._state=NQ,this.decompress(r,o);return}r.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(r)),this.dataMessage(o)}decompress(o,r){this._extensions[HT.extensionName].decompress(o,this._fin,(u,f)=>{if(u)return r(u);if(f.length){if(this._messageLength+=f.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let m=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");r(m);return}this._fragments.push(f)}this.dataMessage(r),this._state===js&&this.startLoop(r)})}dataMessage(o){if(!this._fin){this._state=js;return}let r=this._messageLength,c=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let u;this._binaryType==="nodebuffer"?u=TQ(c,r):this._binaryType==="arraybuffer"?u=c8(TQ(c,r)):this._binaryType==="blob"?u=new Blob(c):u=c,this._allowSynchronousEvents?(this.emit("message",u,!0),this._state=js):(this._state=xB,setImmediate(()=>{this.emit("message",u,!0),this._state=js,this.startLoop(o)}))}else{let u=TQ(c,r);if(!this._skipUTF8Validation&&!UT(u)){let f=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");o(f);return}this._state===NQ||this._allowSynchronousEvents?(this.emit("message",u,!1),this._state=js):(this._state=xB,setImmediate(()=>{this.emit("message",u,!1),this._state=js,this.startLoop(o)}))}}controlMessage(o,r){if(this._opcode===8){if(o.length===0)this._loop=!1,this.emit("conclude",1005,kT),this.end();else{let c=o.readUInt16BE(0);if(!A8(c)){let f=this.createError(RangeError,`invalid status code ${c}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");r(f);return}let u=new wB(o.buffer,o.byteOffset+2,o.length-2);if(!this._skipUTF8Validation&&!UT(u)){let f=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");r(f);return}this._loop=!1,this.emit("conclude",c,u),this.end()}this._state=js;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",o),this._state=js):(this._state=xB,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",o),this._state=js,this.startLoop(r)}))}createError(o,r,c,u,f){this._loop=!1,this._errored=!0;let m=new o(c?`Invalid WebSocket frame: ${r}`:r);return Error.captureStackTrace(m,this.createError),m.code=f,m[s8]=u,m}};zT.exports=MQ});var UQ=Yn((zj,qT)=>{"use strict";var{Duplex:Fj}=Fo("stream"),{randomFillSync:d8}=Fo("crypto"),{types:{isUint8Array:f8}}=Fo("util"),KT=um(),{EMPTY_BUFFER:g8,kWebSocket:p8,NOOP:m8}=Bu(),{isBlob:dm,isValidStatusCode:h8}=Am(),{mask:YT,toBuffer:kf}=jE(),Vs=Symbol("kByteLength"),E8=Buffer.alloc(4),DB=8*1024,Uf,fm=DB,Gl=0,C8=1,y8=2,HQ=class e{static{i(this,"Sender")}constructor(o,r,c){this._extensions=r||{},c&&(this._generateMask=c,this._maskBuffer=Buffer.alloc(4)),this._socket=o,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=Gl,this.onerror=m8,this[p8]=void 0}static frame(o,r){let c,u=!1,f=2,m=!1;r.mask&&(c=r.maskBuffer||E8,r.generateMask?r.generateMask(c):(fm===DB&&(Uf===void 0&&(Uf=Buffer.alloc(DB)),d8(Uf,0,DB),fm=0),c[0]=Uf[fm++],c[1]=Uf[fm++],c[2]=Uf[fm++],c[3]=Uf[fm++]),m=(c[0]|c[1]|c[2]|c[3])===0,f=6);let E;typeof o=="string"?(!r.mask||m)&&r[Vs]!==void 0?E=r[Vs]:(o=Buffer.from(o),E=o.length):(E=o.length,u=r.mask&&r.readOnly&&!m);let S=E;E>=65536?(f+=8,S=127):E>125&&(f+=2,S=126);let v=Buffer.allocUnsafe(u?E+f:f);return v[0]=r.fin?r.opcode|128:r.opcode,r.rsv1&&(v[0]|=64),v[1]=S,S===126?v.writeUInt16BE(E,2):S===127&&(v[2]=v[3]=0,v.writeUIntBE(E,4,6)),r.mask?(v[1]|=128,v[f-4]=c[0],v[f-3]=c[1],v[f-2]=c[2],v[f-1]=c[3],m?[v,o]:u?(YT(o,c,v,f,E),[v]):(YT(o,c,o,0,E),[v,o])):[v,o]}close(o,r,c,u){let f;if(o===void 0)f=g8;else{if(typeof o!="number"||!h8(o))throw new TypeError("First argument must be a valid error code number");if(r===void 0||!r.length)f=Buffer.allocUnsafe(2),f.writeUInt16BE(o,0);else{let E=Buffer.byteLength(r);if(E>123)throw new RangeError("The message must not be greater than 123 bytes");if(f=Buffer.allocUnsafe(2+E),f.writeUInt16BE(o,0),typeof r=="string")f.write(r,2);else if(f8(r))f.set(r,2);else throw new TypeError("Second argument must be a string or a Uint8Array")}}let m={[Vs]:f.length,fin:!0,generateMask:this._generateMask,mask:c,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==Gl?this.enqueue([this.dispatch,f,!1,m,u]):this.sendFrame(e.frame(f,m),u)}ping(o,r,c){let u,f;if(typeof o=="string"?(u=Buffer.byteLength(o),f=!1):dm(o)?(u=o.size,f=!1):(o=kf(o),u=o.length,f=kf.readOnly),u>125)throw new RangeError("The data size must not be greater than 125 bytes");let m={[Vs]:u,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:9,readOnly:f,rsv1:!1};dm(o)?this._state!==Gl?this.enqueue([this.getBlobData,o,!1,m,c]):this.getBlobData(o,!1,m,c):this._state!==Gl?this.enqueue([this.dispatch,o,!1,m,c]):this.sendFrame(e.frame(o,m),c)}pong(o,r,c){let u,f;if(typeof o=="string"?(u=Buffer.byteLength(o),f=!1):dm(o)?(u=o.size,f=!1):(o=kf(o),u=o.length,f=kf.readOnly),u>125)throw new RangeError("The data size must not be greater than 125 bytes");let m={[Vs]:u,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:10,readOnly:f,rsv1:!1};dm(o)?this._state!==Gl?this.enqueue([this.getBlobData,o,!1,m,c]):this.getBlobData(o,!1,m,c):this._state!==Gl?this.enqueue([this.dispatch,o,!1,m,c]):this.sendFrame(e.frame(o,m),c)}send(o,r,c){let u=this._extensions[KT.extensionName],f=r.binary?2:1,m=r.compress,E,S;typeof o=="string"?(E=Buffer.byteLength(o),S=!1):dm(o)?(E=o.size,S=!1):(o=kf(o),E=o.length,S=kf.readOnly),this._firstFragment?(this._firstFragment=!1,m&&u&&u.params[u._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(m=E>=u._threshold),this._compress=m):(m=!1,f=0),r.fin&&(this._firstFragment=!0);let v={[Vs]:E,fin:r.fin,generateMask:this._generateMask,mask:r.mask,maskBuffer:this._maskBuffer,opcode:f,readOnly:S,rsv1:m};dm(o)?this._state!==Gl?this.enqueue([this.getBlobData,o,this._compress,v,c]):this.getBlobData(o,this._compress,v,c):this._state!==Gl?this.enqueue([this.dispatch,o,this._compress,v,c]):this.dispatch(o,this._compress,v,c)}getBlobData(o,r,c,u){this._bufferedBytes+=c[Vs],this._state=y8,o.arrayBuffer().then(f=>{if(this._socket.destroyed){let E=new Error("The socket was closed while the blob was being read");process.nextTick(kQ,this,E,u);return}this._bufferedBytes-=c[Vs];let m=kf(f);r?this.dispatch(m,r,c,u):(this._state=Gl,this.sendFrame(e.frame(m,c),u),this.dequeue())}).catch(f=>{process.nextTick(I8,this,f,u)})}dispatch(o,r,c,u){if(!r){this.sendFrame(e.frame(o,c),u);return}let f=this._extensions[KT.extensionName];this._bufferedBytes+=c[Vs],this._state=C8,f.compress(o,c.fin,(m,E)=>{if(this._socket.destroyed){let S=new Error("The socket was closed while data was being compressed");kQ(this,S,u);return}this._bufferedBytes-=c[Vs],this._state=Gl,c.readOnly=!1,this.sendFrame(e.frame(E,c),u),this.dequeue()})}dequeue(){for(;this._state===Gl&&this._queue.length;){let o=this._queue.shift();this._bufferedBytes-=o[3][Vs],Reflect.apply(o[0],this,o.slice(1))}}enqueue(o){this._bufferedBytes+=o[3][Vs],this._queue.push(o)}sendFrame(o,r){o.length===2?(this._socket.cork(),this._socket.write(o[0]),this._socket.write(o[1],r),this._socket.uncork()):this._socket.write(o[0],r)}};qT.exports=HQ;function kQ(e,o,r){typeof r=="function"&&r(o);for(let c=0;c<e._queue.length;c++){let u=e._queue[c],f=u[u.length-1];typeof f=="function"&&f(o)}}i(kQ,"callCallbacks");function I8(e,o,r){kQ(e,o,r),e.onerror(o)}i(I8,"onError")});var e_=Yn((Yj,$T)=>{"use strict";var{kForOnEventAttribute:XE,kListener:LQ}=Bu(),PT=Symbol("kCode"),JT=Symbol("kData"),jT=Symbol("kError"),VT=Symbol("kMessage"),XT=Symbol("kReason"),gm=Symbol("kTarget"),ZT=Symbol("kType"),WT=Symbol("kWasClean"),vu=class{static{i(this,"Event")}constructor(o){this[gm]=null,this[ZT]=o}get target(){return this[gm]}get type(){return this[ZT]}};Object.defineProperty(vu.prototype,"target",{enumerable:!0});Object.defineProperty(vu.prototype,"type",{enumerable:!0});var Lf=class extends vu{static{i(this,"CloseEvent")}constructor(o,r={}){super(o),this[PT]=r.code===void 0?0:r.code,this[XT]=r.reason===void 0?"":r.reason,this[WT]=r.wasClean===void 0?!1:r.wasClean}get code(){return this[PT]}get reason(){return this[XT]}get wasClean(){return this[WT]}};Object.defineProperty(Lf.prototype,"code",{enumerable:!0});Object.defineProperty(Lf.prototype,"reason",{enumerable:!0});Object.defineProperty(Lf.prototype,"wasClean",{enumerable:!0});var pm=class extends vu{static{i(this,"ErrorEvent")}constructor(o,r={}){super(o),this[jT]=r.error===void 0?null:r.error,this[VT]=r.message===void 0?"":r.message}get error(){return this[jT]}get message(){return this[VT]}};Object.defineProperty(pm.prototype,"error",{enumerable:!0});Object.defineProperty(pm.prototype,"message",{enumerable:!0});var ZE=class extends vu{static{i(this,"MessageEvent")}constructor(o,r={}){super(o),this[JT]=r.data===void 0?null:r.data}get data(){return this[JT]}};Object.defineProperty(ZE.prototype,"data",{enumerable:!0});var B8={addEventListener(e,o,r={}){for(let u of this.listeners(e))if(!r[XE]&&u[LQ]===o&&!u[XE])return;let c;if(e==="message")c=i(function(f,m){let E=new ZE("message",{data:m?f:f.toString()});E[gm]=this,TB(o,this,E)},"onMessage");else if(e==="close")c=i(function(f,m){let E=new Lf("close",{code:f,reason:m.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});E[gm]=this,TB(o,this,E)},"onClose");else if(e==="error")c=i(function(f){let m=new pm("error",{error:f,message:f.message});m[gm]=this,TB(o,this,m)},"onError");else if(e==="open")c=i(function(){let f=new vu("open");f[gm]=this,TB(o,this,f)},"onOpen");else return;c[XE]=!!r[XE],c[LQ]=o,r.once?this.once(e,c):this.on(e,c)},removeEventListener(e,o){for(let r of this.listeners(e))if(r[LQ]===o&&!r[XE]){this.removeListener(e,r);break}}};$T.exports={CloseEvent:Lf,ErrorEvent:pm,Event:vu,EventTarget:B8,MessageEvent:ZE};function TB(e,o,r){typeof e=="object"&&e.handleEvent?e.handleEvent.call(e,r):e.call(o,r)}i(TB,"callListener")});var _B=Yn((Pj,t_)=>{"use strict";var{tokenChars:WE}=Am();function Ic(e,o,r){e[o]===void 0?e[o]=[r]:e[o].push(r)}i(Ic,"push");function S8(e){let o=Object.create(null),r=Object.create(null),c=!1,u=!1,f=!1,m,E,S=-1,v=-1,R=-1,N=0;for(;N<e.length;N++)if(v=e.charCodeAt(N),m===void 0)if(R===-1&&WE[v]===1)S===-1&&(S=N);else if(N!==0&&(v===32||v===9))R===-1&&S!==-1&&(R=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);R===-1&&(R=N);let M=e.slice(S,R);v===44?(Ic(o,M,r),r=Object.create(null)):m=M,S=R=-1}else throw new SyntaxError(`Unexpected character at index ${N}`);else if(E===void 0)if(R===-1&&WE[v]===1)S===-1&&(S=N);else if(v===32||v===9)R===-1&&S!==-1&&(R=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);R===-1&&(R=N),Ic(r,e.slice(S,R),!0),v===44&&(Ic(o,m,r),r=Object.create(null),m=void 0),S=R=-1}else if(v===61&&S!==-1&&R===-1)E=e.slice(S,N),S=R=-1;else throw new SyntaxError(`Unexpected character at index ${N}`);else if(u){if(WE[v]!==1)throw new SyntaxError(`Unexpected character at index ${N}`);S===-1?S=N:c||(c=!0),u=!1}else if(f)if(WE[v]===1)S===-1&&(S=N);else if(v===34&&S!==-1)f=!1,R=N;else if(v===92)u=!0;else throw new SyntaxError(`Unexpected character at index ${N}`);else if(v===34&&e.charCodeAt(N-1)===61)f=!0;else if(R===-1&&WE[v]===1)S===-1&&(S=N);else if(S!==-1&&(v===32||v===9))R===-1&&(R=N);else if(v===59||v===44){if(S===-1)throw new SyntaxError(`Unexpected character at index ${N}`);R===-1&&(R=N);let M=e.slice(S,R);c&&(M=M.replace(/\\/g,""),c=!1),Ic(r,E,M),v===44&&(Ic(o,m,r),r=Object.create(null),m=void 0),E=void 0,S=R=-1}else throw new SyntaxError(`Unexpected character at index ${N}`);if(S===-1||f||v===32||v===9)throw new SyntaxError("Unexpected end of input");R===-1&&(R=N);let b=e.slice(S,R);return m===void 0?Ic(o,b,r):(E===void 0?Ic(r,b,!0):c?Ic(r,E,b.replace(/\\/g,"")):Ic(r,E,b),Ic(o,m,r)),o}i(S8,"parse");function v8(e){return Object.keys(e).map(o=>{let r=e[o];return Array.isArray(r)||(r=[r]),r.map(c=>[o].concat(Object.keys(c).map(u=>{let f=c[u];return Array.isArray(f)||(f=[f]),f.map(m=>m===!0?u:`${u}=${m}`).join("; ")})).join("; ")).join(", ")}).join(", ")}i(v8,"format");t_.exports={format:v8,parse:S8}});var HB=Yn((Xj,f_)=>{"use strict";var Q8=Fo("events"),b8=Fo("https"),R8=Fo("http"),r_=Fo("net"),w8=Fo("tls"),{randomBytes:x8,createHash:D8}=Fo("crypto"),{Duplex:jj,Readable:Vj}=Fo("stream"),{URL:GQ}=Fo("url"),JA=um(),T8=OQ(),_8=UQ(),{isBlob:N8}=Am(),{BINARY_TYPES:n_,CLOSE_TIMEOUT:M8,EMPTY_BUFFER:NB,GUID:O8,kForOnEventAttribute:FQ,kListener:H8,kStatusCode:k8,kWebSocket:pi,NOOP:i_}=Bu(),{EventTarget:{addEventListener:U8,removeEventListener:L8}}=e_(),{format:G8,parse:F8}=_B(),{toBuffer:z8}=jE(),a_=Symbol("kAborted"),zQ=[8,13],Qu=["CONNECTING","OPEN","CLOSING","CLOSED"],K8=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,zo=class e extends Q8{static{i(this,"WebSocket")}constructor(o,r,c){super(),this._binaryType=n_[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=NB,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,o!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,r===void 0?r=[]:Array.isArray(r)||(typeof r=="object"&&r!==null?(c=r,r=[]):r=[r]),s_(this,o,r,c)):(this._autoPong=c.autoPong,this._closeTimeout=c.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(o){n_.includes(o)&&(this._binaryType=o,this._receiver&&(this._receiver._binaryType=o))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(o,r,c){let u=new T8({allowSynchronousEvents:c.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:c.maxBufferedChunks,maxFragments:c.maxFragments,maxPayload:c.maxPayload,skipUTF8Validation:c.skipUTF8Validation}),f=new _8(o,this._extensions,c.generateMask);this._receiver=u,this._sender=f,this._socket=o,u[pi]=this,f[pi]=this,o[pi]=this,u.on("conclude",P8),u.on("drain",J8),u.on("error",j8),u.on("message",V8),u.on("ping",X8),u.on("pong",Z8),f.onerror=W8,o.setTimeout&&o.setTimeout(0),o.setNoDelay&&o.setNoDelay(),r.length>0&&o.unshift(r),o.on("close",u_),o.on("data",OB),o.on("end",A_),o.on("error",d_),this._readyState=e.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[JA.extensionName]&&this._extensions[JA.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(o,r){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ds(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(o,r,!this._isServer,c=>{c||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),c_(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof o=="function"?(c=o,o=r=void 0):typeof r=="function"&&(c=r,r=void 0),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){KQ(this,o,c);return}r===void 0&&(r=!this._isServer),this._sender.ping(o||NB,r,c)}pong(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof o=="function"?(c=o,o=r=void 0):typeof r=="function"&&(c=r,r=void 0),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){KQ(this,o,c);return}r===void 0&&(r=!this._isServer),this._sender.pong(o||NB,r,c)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(o,r,c){if(this.readyState===e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof r=="function"&&(c=r,r={}),typeof o=="number"&&(o=o.toString()),this.readyState!==e.OPEN){KQ(this,o,c);return}let u={binary:typeof o!="string",mask:!this._isServer,compress:!0,fin:!0,...r};this._extensions[JA.extensionName]||(u.compress=!1),this._sender.send(o||NB,u,c)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){ds(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(zo,"CONNECTING",{enumerable:!0,value:Qu.indexOf("CONNECTING")});Object.defineProperty(zo.prototype,"CONNECTING",{enumerable:!0,value:Qu.indexOf("CONNECTING")});Object.defineProperty(zo,"OPEN",{enumerable:!0,value:Qu.indexOf("OPEN")});Object.defineProperty(zo.prototype,"OPEN",{enumerable:!0,value:Qu.indexOf("OPEN")});Object.defineProperty(zo,"CLOSING",{enumerable:!0,value:Qu.indexOf("CLOSING")});Object.defineProperty(zo.prototype,"CLOSING",{enumerable:!0,value:Qu.indexOf("CLOSING")});Object.defineProperty(zo,"CLOSED",{enumerable:!0,value:Qu.indexOf("CLOSED")});Object.defineProperty(zo.prototype,"CLOSED",{enumerable:!0,value:Qu.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(zo.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach(e=>{Object.defineProperty(zo.prototype,`on${e}`,{enumerable:!0,get(){for(let o of this.listeners(e))if(o[FQ])return o[H8];return null},set(o){for(let r of this.listeners(e))if(r[FQ]){this.removeListener(e,r);break}typeof o=="function"&&this.addEventListener(e,o,{[FQ]:!0})}})});zo.prototype.addEventListener=U8;zo.prototype.removeEventListener=L8;f_.exports=zo;function s_(e,o,r,c){let u={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:M8,protocolVersion:zQ[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...c,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=u.autoPong,e._closeTimeout=u.closeTimeout,!zQ.includes(u.protocolVersion))throw new RangeError(`Unsupported protocol version: ${u.protocolVersion} (supported versions: ${zQ.join(", ")})`);let f;if(o instanceof GQ)f=o;else try{f=new GQ(o)}catch{throw new SyntaxError(`Invalid URL: ${o}`)}f.protocol==="http:"?f.protocol="ws:":f.protocol==="https:"&&(f.protocol="wss:"),e._url=f.href;let m=f.protocol==="wss:",E=f.protocol==="ws+unix:",S;if(f.protocol!=="ws:"&&!m&&!E?S=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:E&&!f.pathname?S="The URL's pathname is empty":f.hash&&(S="The URL contains a fragment identifier"),S){let k=new SyntaxError(S);if(e._redirects===0)throw k;MB(e,k);return}let v=m?443:80,R=x8(16).toString("base64"),N=m?b8.request:R8.request,b=new Set,M;if(u.createConnection=u.createConnection||(m?q8:Y8),u.defaultPort=u.defaultPort||v,u.port=f.port||v,u.host=f.hostname.startsWith("[")?f.hostname.slice(1,-1):f.hostname,u.headers={...u.headers,"Sec-WebSocket-Version":u.protocolVersion,"Sec-WebSocket-Key":R,Connection:"Upgrade",Upgrade:"websocket"},u.path=f.pathname+f.search,u.timeout=u.handshakeTimeout,u.perMessageDeflate&&(M=new JA({...u.perMessageDeflate,isServer:!1,maxPayload:u.maxPayload}),u.headers["Sec-WebSocket-Extensions"]=G8({[JA.extensionName]:M.offer()})),r.length){for(let k of r){if(typeof k!="string"||!K8.test(k)||b.has(k))throw new SyntaxError("An invalid or duplicated subprotocol was specified");b.add(k)}u.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(u.origin&&(u.protocolVersion<13?u.headers["Sec-WebSocket-Origin"]=u.origin:u.headers.Origin=u.origin),(f.username||f.password)&&(u.auth=`${f.username}:${f.password}`),E){let k=u.path.split(":");u.socketPath=k[0],u.path=k[1]}let _;if(u.followRedirects){if(e._redirects===0){e._originalIpc=E,e._originalSecure=m,e._originalHostOrSocketPath=E?u.socketPath:f.host;let k=c&&c.headers;if(c={...c,headers:{}},k)for(let[H,$]of Object.entries(k))c.headers[H.toLowerCase()]=$}else if(e.listenerCount("redirect")===0){let k=E?e._originalIpc?u.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:f.host===e._originalHostOrSocketPath;(!k||e._originalSecure&&!m)&&(delete u.headers.authorization,delete u.headers.cookie,k||delete u.headers.host,u.auth=void 0)}u.auth&&!c.headers.authorization&&(c.headers.authorization="Basic "+Buffer.from(u.auth).toString("base64")),_=e._req=N(u),e._redirects&&e.emit("redirect",e.url,_)}else _=e._req=N(u);u.timeout&&_.on("timeout",()=>{ds(e,_,"Opening handshake has timed out")}),_.on("error",k=>{_===null||_[a_]||(_=e._req=null,MB(e,k))}),_.on("response",k=>{let H=k.headers.location,$=k.statusCode;if(H&&u.followRedirects&&$>=300&&$<400){if(++e._redirects>u.maxRedirects){ds(e,_,"Maximum redirects exceeded");return}_.abort();let we;try{we=new GQ(H,o)}catch{let re=new SyntaxError(`Invalid URL: ${H}`);MB(e,re);return}s_(e,we,r,c)}else e.emit("unexpected-response",_,k)||ds(e,_,`Unexpected server response: ${k.statusCode}`)}),_.on("upgrade",(k,H,$)=>{if(e.emit("upgrade",k),e.readyState!==zo.CONNECTING)return;_=e._req=null;let we=k.headers.upgrade;if(we===void 0||we.toLowerCase()!=="websocket"){ds(e,H,"Invalid Upgrade header");return}let Qe=D8("sha1").update(R+O8).digest("base64");if(k.headers["sec-websocket-accept"]!==Qe){ds(e,H,"Invalid Sec-WebSocket-Accept header");return}let re=k.headers["sec-websocket-protocol"],Me;if(re!==void 0?b.size?b.has(re)||(Me="Server sent an invalid subprotocol"):Me="Server sent a subprotocol but none was requested":b.size&&(Me="Server sent no subprotocol"),Me){ds(e,H,Me);return}re&&(e._protocol=re);let Ee=k.headers["sec-websocket-extensions"];if(Ee!==void 0){if(!M){ds(e,H,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let ze;try{ze=F8(Ee)}catch{ds(e,H,"Invalid Sec-WebSocket-Extensions header");return}let ce=Object.keys(ze);if(ce.length!==1||ce[0]!==JA.extensionName){ds(e,H,"Server indicated an extension that was not requested");return}try{M.accept(ze[JA.extensionName])}catch{ds(e,H,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[JA.extensionName]=M}e.setSocket(H,$,{allowSynchronousEvents:u.allowSynchronousEvents,generateMask:u.generateMask,maxBufferedChunks:u.maxBufferedChunks,maxFragments:u.maxFragments,maxPayload:u.maxPayload,skipUTF8Validation:u.skipUTF8Validation})}),u.finishRequest?u.finishRequest(_,e):_.end()}i(s_,"initAsClient");function MB(e,o){e._readyState=zo.CLOSING,e._errorEmitted=!0,e.emit("error",o),e.emitClose()}i(MB,"emitErrorAndClose");function Y8(e){return e.path=e.socketPath,r_.connect(e)}i(Y8,"netConnect");function q8(e){return e.path=void 0,!e.servername&&e.servername!==""&&(e.servername=r_.isIP(e.host)?"":e.host),w8.connect(e)}i(q8,"tlsConnect");function ds(e,o,r){e._readyState=zo.CLOSING;let c=new Error(r);Error.captureStackTrace(c,ds),o.setHeader?(o[a_]=!0,o.abort(),o.socket&&!o.socket.destroyed&&o.socket.destroy(),process.nextTick(MB,e,c)):(o.destroy(c),o.once("error",e.emit.bind(e,"error")),o.once("close",e.emitClose.bind(e)))}i(ds,"abortHandshake");function KQ(e,o,r){if(o){let c=N8(o)?o.size:z8(o).length;e._socket?e._sender._bufferedBytes+=c:e._bufferedAmount+=c}if(r){let c=new Error(`WebSocket is not open: readyState ${e.readyState} (${Qu[e.readyState]})`);process.nextTick(r,c)}}i(KQ,"sendAfterClose");function P8(e,o){let r=this[pi];r._closeFrameReceived=!0,r._closeMessage=o,r._closeCode=e,r._socket[pi]!==void 0&&(r._socket.removeListener("data",OB),process.nextTick(l_,r._socket),e===1005?r.close():r.close(e,o))}i(P8,"receiverOnConclude");function J8(){let e=this[pi];e.isPaused||e._socket.resume()}i(J8,"receiverOnDrain");function j8(e){let o=this[pi];o._socket[pi]!==void 0&&(o._socket.removeListener("data",OB),process.nextTick(l_,o._socket),o.close(e[k8])),o._errorEmitted||(o._errorEmitted=!0,o.emit("error",e))}i(j8,"receiverOnError");function o_(){this[pi].emitClose()}i(o_,"receiverOnFinish");function V8(e,o){this[pi].emit("message",e,o)}i(V8,"receiverOnMessage");function X8(e){let o=this[pi];o._autoPong&&o.pong(e,!this._isServer,i_),o.emit("ping",e)}i(X8,"receiverOnPing");function Z8(e){this[pi].emit("pong",e)}i(Z8,"receiverOnPong");function l_(e){e.resume()}i(l_,"resume");function W8(e){let o=this[pi];o.readyState!==zo.CLOSED&&(o.readyState===zo.OPEN&&(o._readyState=zo.CLOSING,c_(o)),this._socket.end(),o._errorEmitted||(o._errorEmitted=!0,o.emit("error",e)))}i(W8,"senderOnError");function c_(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}i(c_,"setCloseTimer");function u_(){let e=this[pi];if(this.removeListener("close",u_),this.removeListener("data",OB),this.removeListener("end",A_),e._readyState=zo.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let o=this.read(this._readableState.length);e._receiver.write(o)}e._receiver.end(),this[pi]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",o_),e._receiver.on("finish",o_))}i(u_,"socketOnClose");function OB(e){this[pi]._receiver.write(e)||this.pause()}i(OB,"socketOnData");function A_(){let e=this[pi];e._readyState=zo.CLOSING,e._receiver.end(),this.end()}i(A_,"socketOnEnd");function d_(){let e=this[pi];this.removeListener("error",d_),this.on("error",i_),e&&(e._readyState=zo.CLOSING,this.destroy())}i(d_,"socketOnError")});var h_=Yn(($j,m_)=>{"use strict";var Wj=HB(),{Duplex:$8}=Fo("stream");function g_(e){e.emit("close")}i(g_,"emitClose");function e6(){!this.destroyed&&this._writableState.finished&&this.destroy()}i(e6,"duplexOnEnd");function p_(e){this.removeListener("error",p_),this.destroy(),this.listenerCount("error")===0&&this.emit("error",e)}i(p_,"duplexOnError");function t6(e,o){let r=!0,c=new $8({...o,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",i(function(f,m){let E=!m&&c._readableState.objectMode?f.toString():f;c.push(E)||e.pause()},"message")),e.once("error",i(function(f){c.destroyed||(r=!1,c.destroy(f))},"error")),e.once("close",i(function(){c.destroyed||c.push(null)},"close")),c._destroy=function(u,f){if(e.readyState===e.CLOSED){f(u),process.nextTick(g_,c);return}let m=!1;e.once("error",i(function(S){m=!0,f(S)},"error")),e.once("close",i(function(){m||f(u),process.nextTick(g_,c)},"close")),r&&e.terminate()},c._final=function(u){if(e.readyState===e.CONNECTING){e.once("open",i(function(){c._final(u)},"open"));return}e._socket!==null&&(e._socket._writableState.finished?(u(),c._readableState.endEmitted&&c.destroy()):(e._socket.once("finish",i(function(){u()},"finish")),e.close()))},c._read=function(){e.isPaused&&e.resume()},c._write=function(u,f,m){if(e.readyState===e.CONNECTING){e.once("open",i(function(){c._write(u,f,m)},"open"));return}e.send(u,m)},c.on("end",e6),c.on("error",p_),c}i(t6,"createWebSocketStream");m_.exports=t6});var YQ=Yn((tV,E_)=>{"use strict";var{tokenChars:n6}=Am();function o6(e){let o=new Set,r=-1,c=-1,u=0;for(u;u<e.length;u++){let m=e.charCodeAt(u);if(c===-1&&n6[m]===1)r===-1&&(r=u);else if(u!==0&&(m===32||m===9))c===-1&&r!==-1&&(c=u);else if(m===44){if(r===-1)throw new SyntaxError(`Unexpected character at index ${u}`);c===-1&&(c=u);let E=e.slice(r,c);if(o.has(E))throw new SyntaxError(`The "${E}" subprotocol is duplicated`);o.add(E),r=c=-1}else throw new SyntaxError(`Unexpected character at index ${u}`)}if(r===-1||c!==-1)throw new SyntaxError("Unexpected end of input");let f=e.slice(r,u);if(o.has(f))throw new SyntaxError(`The "${f}" subprotocol is duplicated`);return o.add(f),o}i(o6,"parse");E_.exports={parse:o6}});var Q_=Yn((rV,v_)=>{"use strict";var r6=Fo("events"),kB=Fo("http"),{Duplex:oV}=Fo("stream"),{createHash:i6}=Fo("crypto"),C_=_B(),Gf=um(),a6=YQ(),s6=HB(),{CLOSE_TIMEOUT:l6,GUID:c6,kWebSocket:u6}=Bu(),A6=/^[+/0-9A-Za-z]{22}==$/,y_=0,I_=1,S_=2,qQ=class extends r6{static{i(this,"WebSocketServer")}constructor(o,r){if(super(),o={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:256*1024,maxFragments:16*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:l6,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:s6,...o},o.port==null&&!o.server&&!o.noServer||o.port!=null&&(o.server||o.noServer)||o.server&&o.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(o.port!=null?(this._server=kB.createServer((c,u)=>{let f=kB.STATUS_CODES[426];u.writeHead(426,{"Content-Length":f.length,"Content-Type":"text/plain"}),u.end(f)}),this._server.listen(o.port,o.host,o.backlog,r)):o.server&&(this._server=o.server),this._server){let c=this.emit.bind(this,"connection");this._removeListeners=d6(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:i((u,f,m)=>{this.handleUpgrade(u,f,m,c)},"upgrade")})}o.perMessageDeflate===!0&&(o.perMessageDeflate={}),o.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=o,this._state=y_}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(o){if(this._state===S_){o&&this.once("close",()=>{o(new Error("The server is not running"))}),process.nextTick($E,this);return}if(o&&this.once("close",o),this._state!==I_)if(this._state=I_,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick($E,this):process.nextTick($E,this);else{let r=this._server;this._removeListeners(),this._removeListeners=this._server=null,r.close(()=>{$E(this)})}}shouldHandle(o){if(this.options.path){let r=o.url.indexOf("?");if((r!==-1?o.url.slice(0,r):o.url)!==this.options.path)return!1}return!0}handleUpgrade(o,r,c,u){r.on("error",B_);let f=o.headers["sec-websocket-key"],m=o.headers.upgrade,E=+o.headers["sec-websocket-version"];if(o.method!=="GET"){Ff(this,o,r,405,"Invalid HTTP method");return}if(m===void 0||m.toLowerCase()!=="websocket"){Ff(this,o,r,400,"Invalid Upgrade header");return}if(f===void 0||!A6.test(f)){Ff(this,o,r,400,"Missing or invalid Sec-WebSocket-Key header");return}if(E!==13&&E!==8){Ff(this,o,r,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(o)){eC(r,400);return}let S=o.headers["sec-websocket-protocol"],v=new Set;if(S!==void 0)try{v=a6.parse(S)}catch{Ff(this,o,r,400,"Invalid Sec-WebSocket-Protocol header");return}let R=o.headers["sec-websocket-extensions"],N={};if(this.options.perMessageDeflate&&R!==void 0){let b=new Gf({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let M=C_.parse(R);M[Gf.extensionName]&&(b.accept(M[Gf.extensionName]),N[Gf.extensionName]=b)}catch{Ff(this,o,r,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let b={origin:o.headers[`${E===8?"sec-websocket-origin":"origin"}`],secure:!!(o.socket.authorized||o.socket.encrypted),req:o};if(this.options.verifyClient.length===2){this.options.verifyClient(b,(M,_,k,H)=>{if(!M)return eC(r,_||401,k,H);this.completeUpgrade(N,f,v,o,r,c,u)});return}if(!this.options.verifyClient(b))return eC(r,401)}this.completeUpgrade(N,f,v,o,r,c,u)}completeUpgrade(o,r,c,u,f,m,E){if(!f.readable||!f.writable)return f.destroy();if(f[u6])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>y_)return eC(f,503);let v=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${i6("sha1").update(r+c6).digest("base64")}`],R=new this.options.WebSocket(null,void 0,this.options);if(c.size){let N=this.options.handleProtocols?this.options.handleProtocols(c,u):c.values().next().value;N&&(v.push(`Sec-WebSocket-Protocol: ${N}`),R._protocol=N)}if(o[Gf.extensionName]){let N=o[Gf.extensionName].params,b=C_.format({[Gf.extensionName]:[N]});v.push(`Sec-WebSocket-Extensions: ${b}`),R._extensions=o}this.emit("headers",v,u),f.write(v.concat(`\r
|
|
9
|
+
`).join(`\r
|
|
10
|
+
`)),f.removeListener("error",B_),R.setSocket(f,m,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(R),R.on("close",()=>{this.clients.delete(R),this._shouldEmitClose&&!this.clients.size&&process.nextTick($E,this)})),E(R,u)}};v_.exports=qQ;function d6(e,o){for(let r of Object.keys(o))e.on(r,o[r]);return i(function(){for(let c of Object.keys(o))e.removeListener(c,o[c])},"removeListeners")}i(d6,"addListeners");function $E(e){e._state=S_,e.emit("close")}i($E,"emitClose");function B_(){this.destroy()}i(B_,"socketOnError");function eC(e,o,r,c){r=r||kB.STATUS_CODES[o],c={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...c},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${o} ${kB.STATUS_CODES[o]}\r
|
|
11
|
+
`+Object.keys(c).map(u=>`${u}: ${c[u]}`).join(`\r
|
|
12
|
+
`)+`\r
|
|
13
|
+
\r
|
|
14
|
+
`+r)}i(eC,"abortHandshake");function Ff(e,o,r,c,u,f){if(e.listenerCount("wsClientError")){let m=new Error(u);Error.captureStackTrace(m,Ff),e.emit("wsClientError",m,r,o)}else eC(r,c,u,f)}i(Ff,"abortHandshakeOrEmitwsClientError")});var N_={};gi(N_,{PerMessageDeflate:()=>w_.default,Receiver:()=>x_.default,Sender:()=>D_.default,WebSocket:()=>PQ.default,WebSocketServer:()=>__.default,createWebSocketStream:()=>b_.default,default:()=>tC,extension:()=>R_.default,subprotocol:()=>T_.default});var b_,R_,w_,x_,D_,T_,PQ,__,tC,UB=L(()=>{b_=He(h_(),1),R_=He(_B(),1),w_=He(um(),1),x_=He(OQ(),1),D_=He(UQ(),1),T_=He(YQ(),1),PQ=He(HB(),1),__=He(Q_(),1),tC=PQ.default});import M_ from"node:path";import{fileURLToPath as f6}from"node:url";function JQ(){return M_.join(M_.dirname(f6(import.meta.url)),"daemon.mjs")}async function nC(){return globalThis.WebSocket?void 0:(await Promise.resolve().then(()=>(UB(),N_))).default}async function mr(e,o){let r=await nC();return CT(JQ(),c=>{if(c.event==="capability.openExternal"){IT(c.url),o?.(c.url);return}e(c)},{clientId:"cli",webSocketImpl:r,build:Rr})}var Xs=L(()=>{"use strict";yT();BT();YA();i(JQ,"daemonBundlePath");i(nC,"webSocketImpl");i(mr,"connectCliEngine")});function H_(e){O_=e}function jQ(e){return e.replace(/\x1b\[[0-9;]*m/g,"")}function Ru(e,o){let r=jQ(e);return r.length<=o?e:`${r.slice(0,Math.max(0,o-1))}\u2026`}var O_,mm,bu,ht,le,k_,fV,U_,qt,Bt,St,Cn,Ln,gV,Zs,Tn,pV,vo=L(()=>{"use strict";O_=!process.env.NO_COLOR&&process.env.FORCE_COLOR!=="0"&&(!!process.stdout.isTTY||!!process.env.FORCE_COLOR);i(H_,"setColorEnabled");mm=i((e,o)=>r=>O_?`${e}${r}${o}`:r,"wrap"),bu=i(e=>mm(`\x1B[38;5;${e}m`,"\x1B[39m"),"fg"),ht=mm("\x1B[1m","\x1B[22m"),le=mm("\x1B[2m","\x1B[22m"),k_=mm("\x1B[3m","\x1B[23m"),fV=mm("\x1B[7m","\x1B[27m"),U_=mm("\x1B[9m","\x1B[29m"),qt=bu(209),Bt=bu(114),St=bu(203),Cn=bu(179),Ln=bu(80),gV=bu(75),Zs=bu(245),Tn=bu(240),pV=bu(255);i(jQ,"stripAnsi");i(Ru,"truncate")});function VQ({onlyFirst:e=!1}={}){let u="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(u,e?void 0:"g")}var L_=L(()=>{i(VQ,"ansiRegex")});function XQ(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(g6,"")}var g6,G_=L(()=>{L_();g6=VQ();i(XQ,"stripAnsi")});var F_,z_,K_,Y_,q_,P_,ZQ,J_=L(()=>{F_=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],z_=12288,K_=65510,Y_=[12288,12288,65281,65376,65504,65510],q_=4352,P_=262141,ZQ=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var LB,j_=L(()=>{LB=i((e,o)=>{let r=0,c=Math.floor(e.length/2)-1;for(;r<=c;){let u=Math.floor((r+c)/2),f=u*2;if(o<e[f])c=u-1;else if(o>e[f+1])r=u+1;else return!0}return!1},"isInRange")});function C6(e){let o=e[0],r=e[1];for(let c=0;c<e.length;c+=2){let u=e[c],f=e[c+1];if(V_>=u&&V_<=f)return[u,f];f-u>r-o&&(o=u,r=f)}return[o,r]}var V_,h6,E6,X_,oC,rC,WQ=L(()=>{J_();j_();V_=19968,[h6,E6]=C6(ZQ);i(C6,"findWideFastPathRange");X_=i(e=>e<161||e>1114109?!1:LB(F_,e),"isAmbiguous"),oC=i(e=>e<z_||e>K_?!1:LB(Y_,e),"isFullWidth"),rC=i(e=>e>=h6&&e<=E6?!0:e<q_||e>P_?!1:LB(ZQ,e),"isWide")});function y6(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function iC(e,{ambiguousAsWide:o=!1}={}){return y6(e),oC(e)||rC(e)||o&&X_(e)?2:1}var $Q=L(()=>{WQ();WQ();i(y6,"validate");i(iC,"eastAsianWidth")});function b6(e){if(e.length>50)return!1;if(v6.test(e))return!0;if(e.includes("\u200D")){let o=e.match(Q6);return o!==null&&o.length>=2}return!1}function R6(e){let o=e.search(Z_);return o===-1?void 0:e.slice(o)}function W_(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function $_(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}function e2(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function w6(e){return W_(e)||$_(e)||e2(e)}function x6(e,o){let r=[];for(let u of e)Z_.test(u)&&r.push(u.codePointAt(0));if(r.length===0)return;let c=0;for(let u=0;u<r.length;u++){let f=r[u];if(!w6(f)){if(c===0)return;for(let m=u;m<r.length;m++)c+=iC(r[m],o);return c}if(W_(f)&&$_(r[u+1])){c+=2,u+=e2(r[u+2])?2:1;continue}c+=iC(f,o)}return c}function D6(e,o){let r=0,c=!0;for(let u of e){if(c){c=!1;continue}(B6.test(u)||u>="\uFF00"&&u<="\uFFEF")&&(r+=iC(u.codePointAt(0),o))}return r}function Ot(e,o={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:c=!1}=o,u=e;if(!c&&(u.includes("\x1B")||u.includes("\x9B"))&&(u=XQ(u)),u.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(u))return u.length;let f=0,m={ambiguousAsWide:!r};for(let{segment:E}of I6.segment(u)){let S=R6(E);if(S===void 0)continue;if(S6.test(E)||b6(E)){f+=2;continue}let v=x6(S,m);if(v!==void 0){f+=v;continue}let R=S.codePointAt(0);f+=iC(R,m),f+=D6(S,m)}return f}var I6,Z_,B6,S6,v6,Q6,Ca=L(()=>{G_();$Q();I6=new Intl.Segmenter,Z_=new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]","v"),B6=new RegExp("\\p{Spacing_Mark}","v"),S6=new RegExp("^\\p{RGI_Emoji}$","v"),v6=/^[\d#*]\u20E3$/,Q6=new RegExp("\\p{Extended_Pictographic}","gu");i(b6,"isDoubleWidthNonRgiEmojiSequence");i(R6,"baseVisible");i(W_,"isHangulLeadingJamo");i($_,"isHangulVowelJamo");i(e2,"isHangulTrailingJamo");i(w6,"isHangulJamo");i(x6,"hangulClusterWidth");i(D6,"trailingWidth");i(Ot,"stringWidth")});var o2={};gi(o2,{runDoctor:()=>M6});import{existsSync as T6}from"node:fs";function _6(e){try{return process.kill(e,0),!0}catch(o){return o.code==="EPERM"}}function n2(){return Math.max(N6,...Object.values(t2).map(e=>Ot(C(e))+2))}function fs(e,o){let r=C(t2[e]);return`${le(r)}${" ".repeat(n2()-Ot(r))}${o}`}async function M6(){let e=qE(),o=await zA(async v=>!!await Ps(v)),r=[];r.push(`${ht("More AI Code")} v${Rr} \xB7 node ${process.version} \xB7 ${process.platform}/${process.arch}`),r.push(fs("backend",`${Vi.id==="production"?Bt("production"):Cn(Vi.label.toLowerCase())} \xB7 ${rm(Vi.apiBaseUrl)}`)),r.push(fs("dataDir",o));let c=T6(JQ());r.push(fs("daemon",c?Bt(C("cli.doctor.daemonReady")):St(C("cli.doctor.daemonMissing"))));let u=await Ps(o);if(!u)return r.push(fs("engine",C("cli.doctor.engineNone",{status:Cn(C("cli.doctor.noneDiscovered"))}))),e.length>1&&r.push(fs("lookedIn",e.join(`
|
|
15
|
+
${" ".repeat(n2()+1)}`))),r.push(""),r.push(C("cli.doctor.launchHint")),r.push(C("cli.doctor.setupHint")),console.log(r.join(`
|
|
16
|
+
`)),c?0:1;let f=_6(u.pid),m=new Date(u.startedAt).toLocaleString(za()==="en"?void 0:za());if(r.push(fs("discovery",C("cli.doctor.discovery",{pid:u.pid,state:f?Bt(C("cli.doctor.alive")):St(C("cli.doctor.dead")),port:u.port,started:m}))),u.port===0)return r.push(fs("engine",Cn(C("cli.doctor.hubOff")))),r.push(""),r.push(C("cli.doctor.hubOffTitle")),r.push(` ${C("cli.doctor.hubOffSteps")}`),r.push(C("cli.doctor.hubOffClose")),console.log(r.join(`
|
|
17
|
+
`)),1;let E=f&&await EQ(u),S=!E&&f&&await CQ(o);if(r.push(fs("health",E?Bt(C("cli.doctor.healthOk")):S?Cn(C("cli.doctor.healthIncompatible")):St(C("cli.doctor.healthStale")))),r.push(fs("endpoint",u.url)),E){let v=await Js(o);if(v){let R=new qA({...v,clientId:"cli-doctor",webSocketImpl:await nC()});try{await R.connect();let N=await Promise.allSettled([R.command("account.state",void 0),R.command("provider.list",void 0),R.command("connector.list",void 0)]),b=N[0],M=N[1],_=N[2],k=C("cli.doctor.unavailable");r.push(fs("account",b.status==="fulfilled"?b.value.signedIn?Bt(b.value.user?.email??C("cli.doctor.signedIn")):Cn(C("cli.doctor.signedOut")):Cn(k))),r.push(fs("providers",M.status==="fulfilled"?C("cli.doctor.providersConnected",{count:M.value.providers.filter(H=>H.connected).length}):k)),r.push(fs("services",_.status==="fulfilled"?C("cli.doctor.servicesReady",{count:_.value.filter(H=>H.status==="ready").length}):k))}catch{r.push(fs("details",Cn(C("cli.doctor.detailsFailed"))))}finally{R.close()}}r.push(""),r.push(C("cli.doctor.ready",{ready:Bt(C("cli.doctor.readyWord"))}))}else r.push(""),r.push(S?C("cli.doctor.updateBoth"):C("cli.doctor.staleRecord"));return console.log(r.join(`
|
|
18
|
+
`)),S?1:E||c?0:1}var t2,N6,r2=L(()=>{"use strict";Of();JE();SB();am();YA();Nf();Xs();vo();Ca();Xt();i(_6,"pidAlive");t2={backend:"cli.doctor.label.backend",dataDir:"cli.doctor.label.dataDir",daemon:"cli.doctor.label.daemon",engine:"cli.doctor.label.engine",lookedIn:"cli.doctor.label.lookedIn",discovery:"cli.doctor.label.discovery",health:"cli.doctor.label.health",endpoint:"cli.doctor.label.endpoint",account:"cli.doctor.label.account",providers:"cli.doctor.label.providers",services:"cli.doctor.label.services",details:"cli.doctor.label.details"},N6=11;i(n2,"valueColumn");i(fs,"row");i(M6,"runDoctor")});var s2={};gi(s2,{PACKAGE:()=>aC,PACKAGE_URL:()=>i2,newerVersion:()=>tb,runUpdate:()=>G6,updateChannel:()=>eb,updateNotice:()=>nb});import{spawn as O6}from"node:child_process";import{readFile as H6,writeFile as k6}from"node:fs/promises";import U6 from"node:path";function eb(e){return/^\d+\.\d+\.\d+-/.test(e)?"beta":"latest"}function tb(e,o){let r=i(f=>{let m=/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/.exec(f);return m?{parts:m.slice(1,4).map(Number),prerelease:m[4]?.split(".")}:null},"parse"),c=r(e),u=r(o);if(!c||!u)return!1;for(let f=0;f<3;f++)if(c.parts[f]!==u.parts[f])return u.parts[f]>c.parts[f];if(!c.prerelease)return!1;if(!u.prerelease)return!0;for(let f=0;f<Math.max(c.prerelease.length,u.prerelease.length);f++){let m=c.prerelease[f],E=u.prerelease[f];if(m===void 0)return!0;if(E===void 0)return!1;if(m===E)continue;let S=/^\d+$/.test(m),v=/^\d+$/.test(E);return S&&v?Number(E)>Number(m):S!==v?!v:E>m}return!1}async function a2(e){let o=await fetch(i2,{signal:AbortSignal.timeout(3e3),headers:{Accept:"application/vnd.npm.install-v1+json"}});if(o.status===404)return null;if(!o.ok)throw new Error(C("cli.update.registryReplied",{status:o.status}));let c=(await o.json())["dist-tags"]??{};return typeof c[e]=="string"?c[e]:null}async function G6(e){let o=eb(Rr),r;try{r=await a2(o)}catch(f){return console.error(St(C("cli.update.failed",{message:f instanceof Error?f.message:String(f)}))),1}if(!r)return console.log(Cn(C("cli.update.notPublished",{channel:o,package:aC,version:Rr}))),0;if(!tb(Rr,r))return console.log(`${Bt("\u2713")} ${C("cli.update.current",{version:Rr,channel:o})}`),0;if(console.log(`${ht("More AI Code")} ${Rr} \u2192 ${r} (${o})`),!e)return console.log(C("cli.update.runInstall",{install:ht("moreai update --install"),npm:ht(`npm install -g ${aC}@${o}`)})),0;let c=process.platform==="win32"?"npm.cmd":"npm",u=O6(c,["install","-g",`${aC}@${o}`],{stdio:"inherit"});return new Promise(f=>{u.once("error",m=>{console.error(St(`npm: ${m.message}`)),f(1)}),u.once("close",m=>f(m??1))})}async function nb(e){let o=U6.join(e,"cli-update.json"),r={checkedAt:0};try{r=JSON.parse(await H6(o,"utf8"))}catch{}let c=eb(Rr);if(Date.now()-r.checkedAt>=L6)try{r.latest=await a2(c)??void 0,r.checkedAt=Date.now()}catch{return null}let u=r.latest,f=!!u&&tb(Rr,u)&&r.notified!==u;f&&(r.notified=u);try{await k6(o,JSON.stringify(r),{mode:384})}catch{}return f?le(C("cli.update.notice",{version:u})):null}var aC,i2,L6,ob=L(()=>{"use strict";YA();vo();Xt();aC="@moreai/code",i2=`https://registry.npmjs.org/${encodeURIComponent(aC)}`,L6=1440*60*1e3;i(eb,"updateChannel");i(tb,"newerVersion");i(a2,"publishedVersion");i(G6,"runUpdate");i(nb,"updateNotice")});function l2(e){if(e.accountAuth)return[];let o=[];return e.oauth&&o.push({kind:"oauth",label:C("auth.method.oauth")}),e.keyless&&o.push({kind:"keyless",label:C("auth.method.keyless")}),e.keyConnectable&&o.push({kind:"key",label:e.keyHint?C("auth.method.keyWithHint",{hint:e.keyHint}):C("auth.method.key")}),o}function c2(e,o){let r=l2(e);return o&&!e.connected&&e.keyConnectable&&r.unshift({kind:"env",label:C("auth.method.env",{name:o.name})}),e.connected&&!e.accountAuth&&r.push({kind:"disconnect",label:C("auth.method.disconnect")}),r}function u2(e){let o=e.providers.filter(u=>u.connected||l2(u).length>0),r=o.filter(u=>u.connected),c=o.filter(u=>!u.connected);return[...r,...c.filter(u=>u.custom),...c.filter(u=>!u.custom&&u.popular),...c.filter(u=>!u.custom&&!u.popular)]}function A2(e){switch(e.connectedVia){case"oauth":return e.account?C("auth.status.signedInAs",{account:e.account}):C("auth.status.signedIn");case"account":return e.account?C("auth.status.accountAs",{account:e.account}):C("auth.status.account");case"keyless":return C("auth.status.local");default:return C("auth.status.apiKey")}}function d2(e){return e.connected?`\u2713 ${A2(e)}`:""}function f2(e){return e.providers.filter(o=>o.connected).map(o=>{let r={provider:o.label,status:A2(o)};return o.id===e.defaultProviderId?C("auth.statusLineDefault",r):C("auth.statusLine",r)})}function g2(e){return C("auth.keychainNote")}function p2(e){try{let o=new URL(e).searchParams.get("redirect_uri");if(!o)return;let r=new URL(o);if(!["localhost","127.0.0.1","[::1]"].includes(r.hostname))return;let c=Number(r.port);return Number.isInteger(c)&&c>0?c:void 0}catch{return}}function m2(e=process.env){return!!(e.SSH_CONNECTION||e.SSH_TTY||e.SSH_CLIENT)}var rb=L(()=>{"use strict";Xt();i(l2,"connectMethods");i(c2,"methodsFor");i(u2,"authRows");i(A2,"statusWords");i(d2,"statusTag");i(f2,"statusLines");i(g2,"keychainNote");i(p2,"loopbackPortOf");i(m2,"isRemoteTerminal")});var GB,ib=L(()=>{"use strict";GB=[{id:"anthropic",label:"Anthropic",openAICompatible:!1,defaultBaseUrl:"https://api.anthropic.com",models:["claude-opus-4-8","claude-sonnet-4-6","claude-haiku-4-5"],docsUrl:"https://console.anthropic.com/settings/keys",siteUrl:"https://www.anthropic.com",keyHint:"sk-ant-\u2026",popular:!0,oauth:{label:"auth.loginWithClaude",consent:!0},envKeys:["ANTHROPIC_API_KEY"]},{id:"openai",label:"OpenAI",openAICompatible:!0,defaultBaseUrl:"https://api.openai.com/v1",models:["gpt-4o","gpt-4o-mini","o3-mini"],docsUrl:"https://platform.openai.com/api-keys",siteUrl:"https://openai.com",keyHint:"sk-\u2026",popular:!0,envKeys:["OPENAI_API_KEY"]},{id:"openai-chatgpt",label:"ChatGPT (Pro/Plus)",openAICompatible:!1,models:["gpt-5-codex","gpt-5","codex-mini-latest"],docsUrl:"https://chatgpt.com",siteUrl:"https://chatgpt.com",popular:!0,oauth:{label:"auth.loginWithChatgpt",experimental:!0,consent:!0}},{id:"gemini",label:"Google Gemini",openAICompatible:!0,protocol:"google",defaultBaseUrl:"https://generativelanguage.googleapis.com/v1beta/openai",models:["gemini-2.5-pro","gemini-2.5-flash","gemini-2.5-flash-lite"],docsUrl:"https://aistudio.google.com/apikey",siteUrl:"https://gemini.google.com",keyHint:"AIza\u2026",popular:!0,freeStart:2,envKeys:["GEMINI_API_KEY","GOOGLE_GENERATIVE_AI_API_KEY","GOOGLE_API_KEY"]},{id:"github-copilot",label:"GitHub Copilot",openAICompatible:!0,models:["gpt-4.1","gpt-4o","o4-mini","claude-sonnet-4","gemini-2.5-pro"],docsUrl:"https://github.com/settings/copilot",siteUrl:"https://github.com",popular:!0,oauth:{label:"auth.loginWithGithub",consent:!0}},{id:"openrouter",label:"OpenRouter",openAICompatible:!0,defaultBaseUrl:"https://openrouter.ai/api/v1",models:["anthropic/claude-sonnet-4.6","openai/gpt-4o","deepseek/deepseek-chat"],docsUrl:"https://openrouter.ai/keys",siteUrl:"https://openrouter.ai",keyHint:"sk-or-\u2026",popular:!0,freeStart:4,envKeys:["OPENROUTER_API_KEY"]},{id:"timeweb",label:"Timeweb Cloud AI Gateway",openAICompatible:!0,defaultBaseUrl:"https://api.timeweb.ai/v1",models:[],docsUrl:"https://timeweb.cloud/docs/ai-agents/api-usage/ai-gateway",siteUrl:"https://timeweb.cloud",popular:!0,languages:["ru"],priceCurrency:"RUB"},{id:"routerai",label:"RouterAI",openAICompatible:!0,defaultBaseUrl:"https://routerai.ru/api/v1",models:["anthropic/claude-sonnet-5","openai/gpt-5.6-sol","deepseek/deepseek-v4-pro"],docsUrl:"https://routerai.ru/docs/guides",siteUrl:"https://routerai.ru",popular:!0,languages:["ru"]},{id:"aitunnel",label:"AITunnel",openAICompatible:!0,defaultBaseUrl:"https://api.aitunnel.ru/v1",models:["deepseek-v4-pro","gemini-3-7-flash"],docsUrl:"https://aitunnel.ru/docs",siteUrl:"https://aitunnel.ru",keyHint:"sk-aitunnel-\u2026",popular:!0,languages:["ru"]},{id:"proxyapi",label:"ProxyAPI",openAICompatible:!0,defaultBaseUrl:"https://api.proxyapi.ru/openai/v1",models:["gpt-4o","gpt-4o-mini"],docsUrl:"https://proxyapi.ru/docs",siteUrl:"https://proxyapi.ru",popular:!0,languages:["ru"]},{id:"vsegpt",label:"VseGPT",openAICompatible:!0,defaultBaseUrl:"https://api.vsegpt.ru/v1",models:["openai/gpt-4o-mini"],docsUrl:"https://vsegpt.ru/Docs/API",siteUrl:"https://vsegpt.ru",popular:!0,languages:["ru"]},{id:"polza",label:"Polza.ai",openAICompatible:!0,defaultBaseUrl:"https://polza.ai/api/v1",models:["anthropic/claude-opus-5","z-ai/glm-5.3"],docsUrl:"https://polza.ai/docs",siteUrl:"https://polza.ai",popular:!0,languages:["ru"]},{id:"deepseek",label:"DeepSeek",openAICompatible:!0,defaultBaseUrl:"https://api.deepseek.com/v1",models:["deepseek-chat","deepseek-reasoner"],docsUrl:"https://platform.deepseek.com/api_keys",siteUrl:"https://www.deepseek.com",popular:!0,envKeys:["DEEPSEEK_API_KEY"]},{id:"zai",label:"Z.ai (GLM)",openAICompatible:!0,defaultBaseUrl:"https://api.z.ai/api/paas/v4",plans:[{id:"standard",label:"providers.zaiPlanStandard",baseUrl:"https://api.z.ai/api/paas/v4"},{id:"coding",label:"providers.zaiPlanCoding",baseUrl:"https://api.z.ai/api/coding/paas/v4",note:"providers.zaiCodingNote"}],models:["glm-5.3","glm-5.3-flash","glm-5.2","glm-4.6","glm-4.6v","glm-4.5-air"],docsUrl:"https://z.ai/manage-apikey/apikey-list",siteUrl:"https://z.ai",popular:!0,envKeys:["ZAI_API_KEY","ZHIPUAI_API_KEY"]},{id:"groq",label:"Groq",openAICompatible:!0,defaultBaseUrl:"https://api.groq.com/openai/v1",models:["llama-3.3-70b-versatile","llama-3.1-8b-instant"],docsUrl:"https://console.groq.com/keys",siteUrl:"https://groq.com",popular:!0,freeStart:3,envKeys:["GROQ_API_KEY"]},{id:"ollama-cloud",label:"Ollama Cloud",openAICompatible:!0,defaultBaseUrl:"https://ollama.com/v1",models:["gpt-oss:120b","qwen3-coder:480b","deepseek-v3.1:671b","glm-4.6"],docsUrl:"https://ollama.com/settings/keys",siteUrl:"https://ollama.com",popular:!0,envKeys:["OLLAMA_API_KEY"]},{id:"xai",label:"xAI (Grok)",openAICompatible:!0,defaultBaseUrl:"https://api.x.ai/v1",models:["grok-4","grok-3","grok-3-mini"],docsUrl:"https://console.x.ai/",siteUrl:"https://x.ai",keyHint:"xai-\u2026",envKeys:["XAI_API_KEY","GROK_API_KEY"]},{id:"mistral",label:"Mistral",openAICompatible:!0,defaultBaseUrl:"https://api.mistral.ai/v1",models:["mistral-large-latest","mistral-small-latest","codestral-latest"],docsUrl:"https://console.mistral.ai/api-keys",siteUrl:"https://mistral.ai",envKeys:["MISTRAL_API_KEY"]},{id:"qwen",label:"Qwen (DashScope)",openAICompatible:!0,defaultBaseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",models:["qwen-max","qwen-plus","qwen-turbo"],docsUrl:"https://bailian.console.alibabacloud.com/",siteUrl:"https://qwen.ai",envKeys:["DASHSCOPE_API_KEY"]},{id:"perplexity",label:"Perplexity",openAICompatible:!0,defaultBaseUrl:"https://api.perplexity.ai",models:["sonar-pro","sonar","sonar-reasoning"],docsUrl:"https://www.perplexity.ai/settings/api",siteUrl:"https://www.perplexity.ai",keyHint:"pplx-\u2026",envKeys:["PERPLEXITY_API_KEY"]},{id:"together",label:"Together AI",openAICompatible:!0,defaultBaseUrl:"https://api.together.xyz/v1",models:["meta-llama/Llama-3.3-70B-Instruct-Turbo","deepseek-ai/DeepSeek-V3"],docsUrl:"https://api.together.ai/settings/api-keys",siteUrl:"https://www.together.ai",envKeys:["TOGETHER_API_KEY"]},{id:"fireworks",label:"Fireworks AI",openAICompatible:!0,defaultBaseUrl:"https://api.fireworks.ai/inference/v1",models:["accounts/fireworks/models/llama-v3p3-70b-instruct"],docsUrl:"https://fireworks.ai/account/api-keys",siteUrl:"https://fireworks.ai",envKeys:["FIREWORKS_API_KEY"]},{id:"cerebras",label:"Cerebras",openAICompatible:!0,defaultBaseUrl:"https://api.cerebras.ai/v1",models:["llama-3.3-70b","llama3.1-8b"],docsUrl:"https://cloud.cerebras.ai/",siteUrl:"https://www.cerebras.ai",envKeys:["CEREBRAS_API_KEY"]},{id:"deepinfra",label:"DeepInfra",openAICompatible:!0,defaultBaseUrl:"https://api.deepinfra.com/v1/openai",models:["meta-llama/Llama-3.3-70B-Instruct","deepseek-ai/DeepSeek-V3"],docsUrl:"https://deepinfra.com/dash/api_keys",siteUrl:"https://deepinfra.com",envKeys:["DEEPINFRA_API_KEY"]},{id:"moonshot",label:"Moonshot (Kimi)",openAICompatible:!0,defaultBaseUrl:"https://api.moonshot.ai/v1",models:["kimi-k2-0905-preview","moonshot-v1-128k"],docsUrl:"https://platform.moonshot.ai/console/api-keys",siteUrl:"https://www.moonshot.ai",envKeys:["MOONSHOT_API_KEY"]},{id:"nebius",label:"Nebius AI Studio",openAICompatible:!0,defaultBaseUrl:"https://api.studio.nebius.com/v1",models:["meta-llama/Llama-3.3-70B-Instruct","deepseek-ai/DeepSeek-V3"],docsUrl:"https://studio.nebius.com/settings/api-keys",siteUrl:"https://nebius.com",envKeys:["NEBIUS_API_KEY"]},{id:"hyperbolic",label:"Hyperbolic",openAICompatible:!0,defaultBaseUrl:"https://api.hyperbolic.xyz/v1",models:["meta-llama/Llama-3.3-70B-Instruct"],docsUrl:"https://app.hyperbolic.xyz/settings",siteUrl:"https://hyperbolic.xyz",envKeys:["HYPERBOLIC_API_KEY"]},{id:"novita",label:"Novita AI",openAICompatible:!0,defaultBaseUrl:"https://api.novita.ai/v3/openai",models:["meta-llama/llama-3.3-70b-instruct","deepseek/deepseek-v3"],docsUrl:"https://novita.ai/settings/key-management",siteUrl:"https://novita.ai",envKeys:["NOVITA_API_KEY"]},{id:"minimax",label:"MiniMax",openAICompatible:!0,defaultBaseUrl:"https://api.minimax.io/v1",models:["MiniMax-M2","MiniMax-M1","MiniMax-Text-01"],docsUrl:"https://platform.minimax.io/user-center/basic-information/interface-key",siteUrl:"https://www.minimax.io",envKeys:["MINIMAX_API_KEY"]},{id:"huggingface",label:"Hugging Face",openAICompatible:!0,defaultBaseUrl:"https://router.huggingface.co/v1",models:["deepseek-ai/DeepSeek-V3.1","moonshotai/Kimi-K2-Instruct","Qwen/Qwen3-235B-A22B"],docsUrl:"https://huggingface.co/settings/tokens",siteUrl:"https://huggingface.co",keyHint:"hf_\u2026",envKeys:["HF_TOKEN","HUGGING_FACE_HUB_TOKEN"]},{id:"github-models",label:"GitHub Models",openAICompatible:!0,defaultBaseUrl:"https://models.github.ai/inference",modelsUrl:"https://models.github.ai/catalog/models",models:["openai/gpt-4.1","openai/gpt-4o","meta/Llama-3.3-70B-Instruct"],docsUrl:"https://github.com/settings/personal-access-tokens",siteUrl:"https://github.com",keyHint:"github_pat_\u2026",envKeys:["GITHUB_TOKEN"]},{id:"nvidia",label:"NVIDIA NIM",openAICompatible:!0,defaultBaseUrl:"https://integrate.api.nvidia.com/v1",models:["deepseek-ai/deepseek-r1","meta/llama-3.3-70b-instruct","qwen/qwen3-235b-a22b"],docsUrl:"https://build.nvidia.com",siteUrl:"https://www.nvidia.com",keyHint:"nvapi-\u2026",envKeys:["NVIDIA_API_KEY"]},{id:"cohere",label:"Cohere",openAICompatible:!0,defaultBaseUrl:"https://api.cohere.ai/compatibility/v1",models:["command-a-03-2025","command-r-plus-08-2024","command-r7b-12-2024"],docsUrl:"https://dashboard.cohere.com/api-keys",siteUrl:"https://cohere.com",envKeys:["COHERE_API_KEY","CO_API_KEY"]},{id:"siliconflow",label:"SiliconFlow",openAICompatible:!0,defaultBaseUrl:"https://api.siliconflow.com/v1",models:["deepseek-ai/DeepSeek-V3.2","Qwen/Qwen3-235B-A22B","zai-org/GLM-4.6"],docsUrl:"https://cloud.siliconflow.com/account/ak",siteUrl:"https://siliconflow.com",envKeys:["SILICONFLOW_API_KEY"]},{id:"vercel-gateway",label:"Vercel AI Gateway",openAICompatible:!0,defaultBaseUrl:"https://ai-gateway.vercel.sh/v1",models:["openai/gpt-5.4","anthropic/claude-sonnet-4.6","google/gemini-3-pro"],docsUrl:"https://vercel.com/docs/ai-gateway",siteUrl:"https://vercel.com",keyHint:"vck_\u2026",envKeys:["AI_GATEWAY_API_KEY"]},{id:"poe",label:"Poe",openAICompatible:!0,defaultBaseUrl:"https://api.poe.com/v1",models:["Claude-Sonnet-4.5","GPT-5","Gemini-2.5-Pro"],docsUrl:"https://poe.com/api_key",siteUrl:"https://poe.com",envKeys:["POE_API_KEY"]},{id:"ollama",label:"Ollama",openAICompatible:!0,defaultBaseUrl:"http://localhost:11434/v1",models:["llama3.3","qwen3","gpt-oss:20b"],docsUrl:"https://ollama.com/download",siteUrl:"https://ollama.com",keyless:!0,freeStart:1},{id:"lmstudio",label:"LM Studio",openAICompatible:!0,defaultBaseUrl:"http://localhost:1234/v1",models:["openai/gpt-oss-20b","qwen/qwen3-4b-2507"],docsUrl:"https://lmstudio.ai/docs/app/api",siteUrl:"https://lmstudio.ai",keyless:!0,envKeys:["LMSTUDIO_API_KEY"]}]});function ab(e,o=process.env){let r=GB.find(c=>c.id===e)?.envKeys??[];for(let c of r){let u=o[c]?.trim();if(u&&u.length>=8&&!/\s/.test(u))return{name:c,value:u}}}function hm(e,o=process.env){return e.flatMap(r=>{if(r.connected||!r.keyConnectable)return[];let c=ab(r.id,o);return c?[{provider:r,key:c}]:[]})}var FB=L(()=>{"use strict";ib();i(ab,"envKeyFor");i(hm,"envConnectable")});var E2=Yn(zB=>{"use strict";var F6=Symbol.for("react.transitional.element"),z6=Symbol.for("react.fragment");function h2(e,o,r){var c=null;if(r!==void 0&&(c=""+r),o.key!==void 0&&(c=""+o.key),"key"in o){r={};for(var u in o)u!=="key"&&(r[u]=o[u])}else r=o;return o=r.ref,{$$typeof:F6,type:e,key:c,ref:o!==void 0?o:null,props:r}}i(h2,"jsxProd");zB.Fragment=z6;zB.jsx=h2;zB.jsxs=h2});var T2=Yn(on=>{"use strict";var cb=Symbol.for("react.transitional.element"),K6=Symbol.for("react.portal"),Y6=Symbol.for("react.fragment"),q6=Symbol.for("react.strict_mode"),P6=Symbol.for("react.profiler"),J6=Symbol.for("react.consumer"),j6=Symbol.for("react.context"),V6=Symbol.for("react.forward_ref"),X6=Symbol.for("react.suspense"),Z6=Symbol.for("react.memo"),S2=Symbol.for("react.lazy"),W6=Symbol.for("react.activity"),$6=Symbol.for("react.view_transition"),C2=Symbol.iterator;function eF(e){return e===null||typeof e!="object"?null:(e=C2&&e[C2]||e["@@iterator"],typeof e=="function"?e:null)}i(eF,"getIteratorFn");var v2={isMounted:i(function(){return!1},"isMounted"),enqueueForceUpdate:i(function(){},"enqueueForceUpdate"),enqueueReplaceState:i(function(){},"enqueueReplaceState"),enqueueSetState:i(function(){},"enqueueSetState")},Q2=Object.assign,b2={};function Cm(e,o,r){this.props=e,this.context=o,this.refs=b2,this.updater=r||v2}i(Cm,"Component");Cm.prototype.isReactComponent={};Cm.prototype.setState=function(e,o){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,o,"setState")};Cm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function R2(){}i(R2,"ComponentDummy");R2.prototype=Cm.prototype;function ub(e,o,r){this.props=e,this.context=o,this.refs=b2,this.updater=r||v2}i(ub,"PureComponent");var Ab=ub.prototype=new R2;Ab.constructor=ub;Q2(Ab,Cm.prototype);Ab.isPureReactComponent=!0;var y2=Array.isArray;function lb(){}i(lb,"noop");var Qo={H:null,A:null,T:null,S:null},w2=Object.prototype.hasOwnProperty;function db(e,o,r){var c=r.ref;return{$$typeof:cb,type:e,key:o,ref:c!==void 0?c:null,props:r}}i(db,"ReactElement");function tF(e,o){return db(e.type,o,e.props)}i(tF,"cloneAndReplaceKey");function fb(e){return typeof e=="object"&&e!==null&&e.$$typeof===cb}i(fb,"isValidElement");function nF(e){var o={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return o[r]})}i(nF,"escape");var I2=/\/+/g;function sb(e,o){return typeof e=="object"&&e!==null&&e.key!=null?nF(""+e.key):o.toString(36)}i(sb,"getElementKey");function oF(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(lb,lb):(e.status="pending",e.then(function(o){e.status==="pending"&&(e.status="fulfilled",e.value=o)},function(o){e.status==="pending"&&(e.status="rejected",e.reason=o)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}i(oF,"resolveThenable");function Em(e,o,r,c,u){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var m=!1;if(e===null)m=!0;else switch(f){case"bigint":case"string":case"number":m=!0;break;case"object":switch(e.$$typeof){case cb:case K6:m=!0;break;case S2:return m=e._init,Em(m(e._payload),o,r,c,u)}}if(m)return u=u(e),m=c===""?"."+sb(e,0):c,y2(u)?(r="",m!=null&&(r=m.replace(I2,"$&/")+"/"),Em(u,o,r,"",function(v){return v})):u!=null&&(fb(u)&&(u=tF(u,r+(u.key==null||e&&e.key===u.key?"":(""+u.key).replace(I2,"$&/")+"/")+m)),o.push(u)),1;m=0;var E=c===""?".":c+":";if(y2(e))for(var S=0;S<e.length;S++)c=e[S],f=E+sb(c,S),m+=Em(c,o,r,f,u);else if(S=eF(e),typeof S=="function")for(e=S.call(e),S=0;!(c=e.next()).done;)c=c.value,f=E+sb(c,S++),m+=Em(c,o,r,f,u);else if(f==="object"){if(typeof e.then=="function")return Em(oF(e),o,r,c,u);throw o=String(e),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.")}return m}i(Em,"mapIntoArray");function KB(e,o,r){if(e==null)return e;var c=[],u=0;return Em(e,c,"","",function(f){return o.call(r,f,u++)}),c}i(KB,"mapChildren");function rF(e){if(e._status===-1){var o=e._result,r=o();r.then(function(c){(e._status===0||e._status===-1)&&(e._status=1,e._result=c,r.status===void 0&&(r.status="fulfilled",r.value=c))},function(c){(e._status===0||e._status===-1)&&(e._status=2,e._result=c,r.status===void 0&&(r.status="rejected",r.reason=c))}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}i(rF,"lazyInitializer");var B2=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function x2(e){var o=Qo.T,r={};r.types=o!==null?o.types:null,Qo.T=r;try{var c=e(),u=Qo.S;u!==null&&u(r,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(lb,B2)}catch(f){B2(f)}finally{o!==null&&r.types!==null&&(o.types=r.types),Qo.T=o}}i(x2,"startTransition");function D2(e){var o=Qo.T;if(o!==null){var r=o.types;r===null?o.types=[e]:r.indexOf(e)===-1&&r.push(e)}else x2(D2.bind(null,e))}i(D2,"addTransitionType");var iF={map:KB,forEach:i(function(e,o,r){KB(e,function(){o.apply(this,arguments)},r)},"forEach"),count:i(function(e){var o=0;return KB(e,function(){o++}),o},"count"),toArray:i(function(e){return KB(e,function(o){return o})||[]},"toArray"),only:i(function(e){if(!fb(e))throw Error("React.Children.only expected to receive a single React element child.");return e},"only")};on.Activity=W6;on.Children=iF;on.Component=Cm;on.Fragment=Y6;on.Profiler=P6;on.PureComponent=ub;on.StrictMode=q6;on.Suspense=X6;on.ViewTransition=$6;on.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Qo;on.__COMPILER_RUNTIME={__proto__:null,c:i(function(e){return Qo.H.useMemoCache(e)},"c")};on.addTransitionType=D2;on.cache=function(e){return function(){return e.apply(null,arguments)}};on.cacheSignal=function(){return null};on.cloneElement=function(e,o,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var c=Q2({},e.props),u=e.key;if(o!=null)for(f in o.key!==void 0&&(u=""+o.key),o)!w2.call(o,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&o.ref===void 0||(c[f]=o[f]);var f=arguments.length-2;if(f===1)c.children=r;else if(1<f){for(var m=Array(f),E=0;E<f;E++)m[E]=arguments[E+2];c.children=m}return db(e.type,u,c)};on.createContext=function(e){return e={$$typeof:j6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:J6,_context:e},e};on.createElement=function(e,o,r){var c,u={},f=null;if(o!=null)for(c in o.key!==void 0&&(f=""+o.key),o)w2.call(o,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(u[c]=o[c]);var m=arguments.length-2;if(m===1)u.children=r;else if(1<m){for(var E=Array(m),S=0;S<m;S++)E[S]=arguments[S+2];u.children=E}if(e&&e.defaultProps)for(c in m=e.defaultProps,m)u[c]===void 0&&(u[c]=m[c]);return db(e,f,u)};on.createRef=function(){return{current:null}};on.forwardRef=function(e){return{$$typeof:V6,render:e}};on.isValidElement=fb;on.lazy=function(e){return{$$typeof:S2,_payload:{_status:-1,_result:e},_init:rF}};on.memo=function(e,o){return{$$typeof:Z6,type:e,compare:o===void 0?null:o}};on.startTransition=x2;on.unstable_useCacheRefresh=function(){return Qo.H.useCacheRefresh()};on.use=function(e){return Qo.H.use(e)};on.useActionState=function(e,o,r){return Qo.H.useActionState(e,o,r)};on.useCallback=function(e,o){return Qo.H.useCallback(e,o)};on.useContext=function(e){return Qo.H.useContext(e)};on.useDebugValue=function(){};on.useDeferredValue=function(e,o){return Qo.H.useDeferredValue(e,o)};on.useEffect=function(e,o){return Qo.H.useEffect(e,o)};on.useEffectEvent=function(e){return Qo.H.useEffectEvent(e)};on.useId=function(){return Qo.H.useId()};on.useImperativeHandle=function(e,o,r){return Qo.H.useImperativeHandle(e,o,r)};on.useInsertionEffect=function(e,o){return Qo.H.useInsertionEffect(e,o)};on.useLayoutEffect=function(e,o){return Qo.H.useLayoutEffect(e,o)};on.useMemo=function(e,o){return Qo.H.useMemo(e,o)};on.useOptimistic=function(e,o){return Qo.H.useOptimistic(e,o)};on.useReducer=function(e,o,r){return Qo.H.useReducer(e,o,r)};on.useRef=function(e){return Qo.H.useRef(e)};on.useState=function(e){return Qo.H.useState(e)};on.useSyncExternalStore=function(e,o,r){return Qo.H.useSyncExternalStore(e,o,r)};on.useTransition=function(){return Qo.H.useTransition()};on.version="19.3.0"});var _2=Yn((en,YB)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(w,j){Object.defineProperty(c.prototype,w,{get:i(function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])},"get")})}i(e,"defineDeprecationWarning");function o(w){return w===null||typeof w!="object"?null:(w=Gt&&w[Gt]||w["@@iterator"],typeof w=="function"?w:null)}i(o,"getIteratorFn");function r(w,j){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var Ge=w+"."+j;gt[Ge]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",j,w),gt[Ge]=!0)}i(r,"warnNoop");function c(w,j,Ge){this.props=w,this.context=j,this.refs=at,this.updater=Ge||Ie}i(c,"Component");function u(){}i(u,"ComponentDummy");function f(w,j,Ge){this.props=w,this.context=j,this.refs=at,this.updater=Ge||Ie}i(f,"PureComponent");function m(){}i(m,"noop");function E(w){return""+w}i(E,"testStringCoercion");function S(w){try{E(w);var j=!1}catch{j=!0}if(j){j=console;var Ge=j.error,Ue=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return Ge.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ue),E(w)}}i(S,"checkKeyStringCoercion");function v(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===Te?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case yt:return"Fragment";case Ce:return"Profiler";case P:return"StrictMode";case Et:return"Suspense";case te:return"SuspenseList";case ut:return"Activity";case wt:return"ViewTransition"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case it:return"Portal";case oe:return w.displayName||"Context";case Ve:return(w._context.displayName||"Context")+".Consumer";case et:var j=w.render;return w=w.displayName,w||(w=j.displayName||j.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case se:return j=w.displayName||null,j!==null?j:v(w.type)||"Memo";case De:j=w._payload,w=w._init;try{return v(w(j))}catch{}}return null}i(v,"getComponentNameFromType");function R(w){if(w===yt)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===De)return"<...>";try{var j=v(w);return j?"<"+j+">":"<...>"}catch{return"<...>"}}i(R,"getTaskName");function N(){var w=fe.A;return w===null?null:w.getOwner()}i(N,"getOwner");function b(){return Error("react-stack-top-frame")}i(b,"UnknownOwner");function M(w){if(tt.call(w,"key")){var j=Object.getOwnPropertyDescriptor(w,"key").get;if(j&&j.isReactWarning)return!1}return w.key!==void 0}i(M,"hasValidKey");function _(w,j){function Ge(){Gn||(Gn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",j))}i(Ge,"warnAboutAccessingKey"),Ge.isReactWarning=!0,Object.defineProperty(w,"key",{get:Ge,configurable:!0})}i(_,"defineKeyPropWarningGetter");function k(){var w=v(this.type);return No[w]||(No[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}i(k,"elementRefGetterWithDeprecationWarning");function H(w,j,Ge,Ue,nt,dn){var pt=Ge.ref;return w={$$typeof:W,type:w,key:j,props:Ge,_owner:Ue},(pt!==void 0?pt:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:k}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:nt}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:dn}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}i(H,"ReactElement");function $(w,j){return j=H(w.type,j,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(j._store.validated=w._store.validated),j}i($,"cloneAndReplaceKey");function we(w){Qe(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===De&&(w._payload.status==="fulfilled"?Qe(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}i(we,"validateChildKeys");function Qe(w){return typeof w=="object"&&w!==null&&w.$$typeof===W}i(Qe,"isValidElement");function re(w){var j={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Ge){return j[Ge]})}i(re,"escape");function Me(w,j){return typeof w=="object"&&w!==null&&w.key!=null?(S(w.key),re(""+w.key)):j.toString(36)}i(Me,"getElementKey");function Ee(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(m,m):(w.status="pending",w.then(function(j){w.status==="pending"&&(w.status="fulfilled",w.value=j)},function(j){w.status==="pending"&&(w.status="rejected",w.reason=j)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}i(Ee,"resolveThenable");function ze(w,j,Ge,Ue,nt){var dn=typeof w;(dn==="undefined"||dn==="boolean")&&(w=null);var pt=!1;if(w===null)pt=!0;else switch(dn){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(w.$$typeof){case W:case it:pt=!0;break;case De:return pt=w._init,ze(pt(w._payload),j,Ge,Ue,nt)}}if(pt){pt=w,nt=nt(pt);var xt=Ue===""?"."+Me(pt,0):Ue;return be(nt)?(Ge="",xt!=null&&(Ge=xt.replace(qr,"$&/")+"/"),ze(nt,j,Ge,"",function(sr){return sr})):nt!=null&&(Qe(nt)&&(nt.key!=null&&(pt&&pt.key===nt.key||S(nt.key)),Ge=$(nt,Ge+(nt.key==null||pt&&pt.key===nt.key?"":(""+nt.key).replace(qr,"$&/")+"/")+xt),Ue!==""&&pt!=null&&Qe(pt)&&pt.key==null&&pt._store&&!pt._store.validated&&(Ge._store.validated=2),nt=Ge),j.push(nt)),1}if(pt=0,xt=Ue===""?".":Ue+":",be(w))for(var rn=0;rn<w.length;rn++)Ue=w[rn],dn=xt+Me(Ue,rn),pt+=ze(Ue,j,Ge,dn,nt);else if(rn=o(w),typeof rn=="function")for(rn===w.entries&&(Mo||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mo=!0),w=rn.call(w),rn=0;!(Ue=w.next()).done;)Ue=Ue.value,dn=xt+Me(Ue,rn++),pt+=ze(Ue,j,Ge,dn,nt);else if(dn==="object"){if(typeof w.then=="function")return ze(Ee(w),j,Ge,Ue,nt);throw j=String(w),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return pt}i(ze,"mapIntoArray");function ce(w,j,Ge){if(w==null)return w;var Ue=[],nt=0;return ze(w,Ue,"","",function(dn){return j.call(Ge,dn,nt++)}),Ue}i(ce,"mapChildren");function ae(w){if(w._status===-1){var j=null,Ge=null,Ue=w._ioInfo;Ue!=null&&(Ue.start=Ue.end=performance.now(),Ue.value=new Promise(function(pt,xt){j=pt,Ge=xt})),Ue=w._result;var nt=Ue();if(nt.then(function(pt){if(w._status===0||w._status===-1){w._status=1,w._result=pt;var xt=w._ioInfo;if(xt!=null){xt.end=performance.now();var rn=pt?.default;j(rn),xt.value.status="fulfilled",xt.value.value=rn}nt.status===void 0&&(nt.status="fulfilled",nt.value=pt)}},function(pt){if(w._status===0||w._status===-1){w._status=2,w._result=pt;var xt=w._ioInfo;xt!=null&&(xt.end=performance.now(),xt.value.then(m,m),Ge(pt),xt.value.status="rejected",xt.value.reason=pt),nt.status===void 0&&(nt.status="rejected",nt.reason=pt)}}),Ue=w._ioInfo,Ue!=null){var dn=nt.displayName;typeof dn=="string"&&(Ue.name=dn)}w._status===-1&&(w._status=0,w._result=nt)}if(w._status===1)return Ue=w._result,Ue===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
19
|
+
|
|
20
|
+
Your code should look like:
|
|
21
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
22
|
+
|
|
23
|
+
Did you accidentally put curly braces around the import?`,Ue),"default"in Ue||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
24
|
+
|
|
25
|
+
Your code should look like:
|
|
26
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Ue),Ue.default;throw w._result}i(ae,"lazyInitializer");function ie(){var w=fe.H;return w===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
27
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
28
|
+
2. You might be breaking the Rules of Hooks
|
|
29
|
+
3. You might have more than one copy of React in the same app
|
|
30
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),w}i(ie,"resolveDispatcher");function ne(){fe.asyncTransitions--}i(ne,"releaseAsyncTransition");function ee(w){var j=fe.T,Ge={};Ge.types=j!==null?j.types:null,Ge._updatedFibers=new Set,fe.T=Ge;try{var Ue=w(),nt=fe.S;nt!==null&&nt(Ge,Ue),typeof Ue=="object"&&Ue!==null&&typeof Ue.then=="function"&&(fe.asyncTransitions++,Ue.then(ne,ne),Ue.then(m,ot))}catch(dn){ot(dn)}finally{j===null&&Ge._updatedFibers&&(w=Ge._updatedFibers.size,Ge._updatedFibers.clear(),10<w&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),j!==null&&Ge.types!==null&&(j.types!==null&&j.types!==Ge.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),j.types=Ge.types),fe.T=j}}i(ee,"startTransition");function Se(w){var j=fe.T;if(j!==null){var Ge=j.types;Ge===null?j.types=[w]:Ge.indexOf(w)===-1&&Ge.push(w)}else fe.asyncTransitions===0&&console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."),ee(Se.bind(null,w))}i(Se,"addTransitionType");function Je(w){if(mt===null)try{var j=("require"+Math.random()).slice(0,7);mt=(YB&&YB[j]).call(YB,"timers").setImmediate}catch{mt=i(function(Ue){Dt===!1&&(Dt=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var nt=new MessageChannel;nt.port1.onmessage=Ue,nt.port2.postMessage(void 0)},"enqueueTaskImpl")}return mt(w)}i(Je,"enqueueTask");function ye(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}i(ye,"aggregateErrors");function qe(w,j){j!==tn-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),tn=j}i(qe,"popActScope");function ct(w,j,Ge){var Ue=fe.actQueue;if(Ue!==null)if(Ue.length!==0)try{je(Ue),Je(function(){return ct(w,j,Ge)});return}catch(nt){fe.thrownErrors.push(nt)}else fe.actQueue=null;0<fe.thrownErrors.length?(Ue=ye(fe.thrownErrors),fe.thrownErrors.length=0,Ge(Ue)):j(w)}i(ct,"recursivelyFlushAsyncActWork");function je(w){if(!yr){yr=!0;var j=0;try{for(;j<w.length;j++){var Ge=w[j];do{fe.didUsePromise=!1;var Ue=Ge(!1);if(Ue!==null){if(fe.didUsePromise){w[j]=Ge,w.splice(0,j);return}Ge=Ue}else break}while(!0)}w.length=0}catch(nt){w.splice(0,j+1),fe.thrownErrors.push(nt)}finally{yr=!1}}}i(je,"flushActQueue"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var W=Symbol.for("react.transitional.element"),it=Symbol.for("react.portal"),yt=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),Ce=Symbol.for("react.profiler"),Ve=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),et=Symbol.for("react.forward_ref"),Et=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),ut=Symbol.for("react.activity"),wt=Symbol.for("react.view_transition"),Gt=Symbol.iterator,gt={},Ie={isMounted:i(function(){return!1},"isMounted"),enqueueForceUpdate:i(function(w){r(w,"forceUpdate")},"enqueueForceUpdate"),enqueueReplaceState:i(function(w){r(w,"replaceState")},"enqueueReplaceState"),enqueueSetState:i(function(w){r(w,"setState")},"enqueueSetState")},Ne=Object.assign,at={};Object.freeze(at),c.prototype.isReactComponent={},c.prototype.setState=function(w,j){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,j,"setState")},c.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var kt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Jn in kt)kt.hasOwnProperty(Jn)&&e(Jn,kt[Jn]);u.prototype=c.prototype,kt=f.prototype=new u,kt.constructor=f,Ne(kt,c.prototype),kt.isPureReactComponent=!0;var be=Array.isArray,Te=Symbol.for("react.client.reference"),fe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},tt=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};kt={react_stack_bottom_frame:i(function(w){return w()},"react_stack_bottom_frame")};var Gn,In,No={},xr=kt.react_stack_bottom_frame.bind(kt,b)(),Vo=_t(R(b)),Mo=!1,qr=/\/+/g,ot=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Dt=!1,mt=null,tn=0,to=!1,yr=!1,ta=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:Je;kt=Object.freeze({__proto__:null,c:i(function(w){return ie().useMemoCache(w)},"c")});var Jn={map:ce,forEach:i(function(w,j,Ge){ce(w,function(){j.apply(this,arguments)},Ge)},"forEach"),count:i(function(w){var j=0;return ce(w,function(){j++}),j},"count"),toArray:i(function(w){return ce(w,function(j){return j})||[]},"toArray"),only:i(function(w){if(!Qe(w))throw Error("React.Children.only expected to receive a single React element child.");return w},"only")};en.Activity=ut,en.Children=Jn,en.Component=c,en.Fragment=yt,en.Profiler=Ce,en.PureComponent=f,en.StrictMode=P,en.Suspense=Et,en.ViewTransition=wt,en.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=fe,en.__COMPILER_RUNTIME=kt,en.act=function(w){var j=fe.actQueue,Ge=tn;tn++;var Ue=fe.actQueue=j!==null?j:[],nt=!1;try{var dn=w()}catch(rn){fe.thrownErrors.push(rn)}if(0<fe.thrownErrors.length)throw qe(j,Ge),w=ye(fe.thrownErrors),fe.thrownErrors.length=0,w;if(dn!==null&&typeof dn=="object"&&typeof dn.then=="function"){var pt=dn;return ta(function(){nt||to||(to=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:i(function(rn,sr){nt=!0,pt.then(function(mo){if(qe(j,Ge),Ge===0){try{je(Ue),Je(function(){return ct(mo,rn,sr)})}catch(na){fe.thrownErrors.push(na)}if(0<fe.thrownErrors.length){var Xo=ye(fe.thrownErrors);fe.thrownErrors.length=0,sr(Xo)}}else rn(mo)},function(mo){qe(j,Ge),0<fe.thrownErrors.length&&(mo=ye(fe.thrownErrors),fe.thrownErrors.length=0),sr(mo)})},"then")}}var xt=dn;if(qe(j,Ge),Ge===0&&(je(Ue),Ue.length!==0&&ta(function(){nt||to||(to=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),fe.actQueue=null),0<fe.thrownErrors.length)throw w=ye(fe.thrownErrors),fe.thrownErrors.length=0,w;return{then:i(function(rn,sr){nt=!0,Ge===0?(fe.actQueue=Ue,Je(function(){return ct(xt,rn,sr)})):rn(xt)},"then")}},en.addTransitionType=Se,en.cache=function(w){return function(){return w.apply(null,arguments)}},en.cacheSignal=function(){return null},en.captureOwnerStack=function(){var w=fe.getCurrentStack;return w===null?null:w()},en.cloneElement=function(w,j,Ge){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var Ue=Ne({},w.props),nt=w.key,dn=w._owner;if(j!=null){var pt;e:{if(tt.call(j,"ref")&&(pt=Object.getOwnPropertyDescriptor(j,"ref").get)&&pt.isReactWarning){pt=!1;break e}pt=j.ref!==void 0}pt&&(dn=N()),M(j)&&(S(j.key),nt=""+j.key);for(xt in j)!tt.call(j,xt)||xt==="key"||xt==="__self"||xt==="__source"||xt==="ref"&&j.ref===void 0||(Ue[xt]=j[xt])}var xt=arguments.length-2;if(xt===1)Ue.children=Ge;else if(1<xt){pt=Array(xt);for(var rn=0;rn<xt;rn++)pt[rn]=arguments[rn+2];Ue.children=pt}for(Ue=H(w.type,nt,Ue,dn,w._debugStack,w._debugTask),nt=2;nt<arguments.length;nt++)we(arguments[nt]);return Ue},en.createContext=function(w){return w={$$typeof:oe,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:Ve,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},en.createElement=function(w,j,Ge){for(var Ue=2;Ue<arguments.length;Ue++)we(arguments[Ue]);var nt;Ue={};var dn=null;if(j!=null)for(nt in In||!("__self"in j)||"key"in j||(In=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),M(j)&&(S(j.key),dn=""+j.key),j)tt.call(j,nt)&&nt!=="key"&&nt!=="__self"&&nt!=="__source"&&(Ue[nt]=j[nt]);var pt=arguments.length-2;if(pt===1)Ue.children=Ge;else if(1<pt){for(var xt=Array(pt),rn=0;rn<pt;rn++)xt[rn]=arguments[rn+2];Object.freeze&&Object.freeze(xt),Ue.children=xt}if(w&&w.defaultProps)for(nt in pt=w.defaultProps,pt)Ue[nt]===void 0&&(Ue[nt]=pt[nt]);return dn&&_(Ue,typeof w=="function"?w.displayName||w.name||"Unknown":w),(nt=1e4>fe.recentlyCreatedOwnerStacks++)?(xt=Error.stackTraceLimit,Error.stackTraceLimit=10,pt=Error("react-stack-top-frame"),Error.stackTraceLimit=xt):pt=xr,H(w,dn,Ue,N(),pt,nt?_t(R(w)):Vo)},en.createRef=function(){var w={current:null};return Object.seal(w),w},en.forwardRef=function(w){w!=null&&w.$$typeof===se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var j={$$typeof:et,render:w},Ge;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:i(function(){return Ge},"get"),set:i(function(Ue){Ge=Ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:Ue}),w.displayName=Ue)},"set")}),j},en.isValidElement=Qe,en.lazy=function(w){w={_status:-1,_result:w};var j={$$typeof:De,_payload:w,_init:ae},Ge={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=Ge,j._debugInfo=[{awaited:Ge}],j},en.memo=function(w,j){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),j={$$typeof:se,type:w,compare:j===void 0?null:j};var Ge;return Object.defineProperty(j,"displayName",{enumerable:!1,configurable:!0,get:i(function(){return Ge},"get"),set:i(function(Ue){Ge=Ue,w.name||w.displayName||(Object.defineProperty(w,"name",{value:Ue}),w.displayName=Ue)},"set")}),j},en.startTransition=ee,en.unstable_useCacheRefresh=function(){return ie().useCacheRefresh()},en.use=function(w){return ie().use(w)},en.useActionState=function(w,j,Ge){return ie().useActionState(w,j,Ge)},en.useCallback=function(w,j){return ie().useCallback(w,j)},en.useContext=function(w){var j=ie();return w.$$typeof===Ve&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),j.useContext(w)},en.useDebugValue=function(w,j){return ie().useDebugValue(w,j)},en.useDeferredValue=function(w,j){return ie().useDeferredValue(w,j)},en.useEffect=function(w,j){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useEffect(w,j)},en.useEffectEvent=function(w){return ie().useEffectEvent(w)},en.useId=function(){return ie().useId()},en.useImperativeHandle=function(w,j,Ge){return ie().useImperativeHandle(w,j,Ge)},en.useInsertionEffect=function(w,j){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useInsertionEffect(w,j)},en.useLayoutEffect=function(w,j){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ie().useLayoutEffect(w,j)},en.useMemo=function(w,j){return ie().useMemo(w,j)},en.useOptimistic=function(w,j){return ie().useOptimistic(w,j)},en.useReducer=function(w,j,Ge){return ie().useReducer(w,j,Ge)},en.useRef=function(w){return ie().useRef(w)},en.useState=function(w){return ie().useState(w)},en.useSyncExternalStore=function(w,j,Ge){return ie().useSyncExternalStore(w,j,Ge)},en.useTransition=function(){return ie().useTransition()},en.version="19.3.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Mt=Yn((SX,gb)=>{"use strict";process.env.NODE_ENV==="production"?gb.exports=T2():gb.exports=_2()});var N2=Yn(qB=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===ee?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case H:return"Fragment";case we:return"Profiler";case $:return"StrictMode";case Ee:return"Suspense";case ze:return"SuspenseList";case ie:return"Activity";case ne:return"ViewTransition"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case k:return"Portal";case re:return P.displayName||"Context";case Qe:return(P._context.displayName||"Context")+".Consumer";case Me:var Ce=P.render;return P=P.displayName,P||(P=Ce.displayName||Ce.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ce:return Ce=P.displayName||null,Ce!==null?Ce:e(P.type)||"Memo";case ae:Ce=P._payload,P=P._init;try{return e(P(Ce))}catch{}}return null}i(e,"getComponentNameFromType");function o(P){return""+P}i(o,"testStringCoercion");function r(P){try{o(P);var Ce=!1}catch{Ce=!0}if(Ce){Ce=console;var Ve=Ce.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return Ve.call(Ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),o(P)}}i(r,"checkKeyStringCoercion");function c(P){if(P===H)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===ae)return"<...>";try{var Ce=e(P);return Ce?"<"+Ce+">":"<...>"}catch{return"<...>"}}i(c,"getTaskName");function u(){var P=Se.A;return P===null?null:P.getOwner()}i(u,"getOwner");function f(){return Error("react-stack-top-frame")}i(f,"UnknownOwner");function m(P){if(Je.call(P,"key")){var Ce=Object.getOwnPropertyDescriptor(P,"key").get;if(Ce&&Ce.isReactWarning)return!1}return P.key!==void 0}i(m,"hasValidKey");function E(P,Ce){function Ve(){ct||(ct=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ce))}i(Ve,"warnAboutAccessingKey"),Ve.isReactWarning=!0,Object.defineProperty(P,"key",{get:Ve,configurable:!0})}i(E,"defineKeyPropWarningGetter");function S(){var P=e(this.type);return je[P]||(je[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}i(S,"elementRefGetterWithDeprecationWarning");function v(P,Ce,Ve,oe,et,Et){var te=Ve.ref;return P={$$typeof:_,type:P,key:Ce,props:Ve,_owner:oe},(te!==void 0?te:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:et}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Et}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}i(v,"ReactElement");function R(P,Ce,Ve,oe,et,Et){var te=Ce.children;if(te!==void 0)if(oe)if(ye(te)){for(oe=0;oe<te.length;oe++)N(te[oe]);Object.freeze&&Object.freeze(te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else N(te);if(Je.call(Ce,"key")){te=e(P);var se=Object.keys(Ce).filter(function(ut){return ut!=="key"});oe=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",yt[te+oe]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
31
|
+
let props = %s;
|
|
32
|
+
<%s {...props} />
|
|
33
|
+
React keys must be passed directly to JSX without using spread:
|
|
34
|
+
let props = %s;
|
|
35
|
+
<%s key={someKey} {...props} />`,oe,te,se,te),yt[te+oe]=!0)}if(te=null,Ve!==void 0&&(r(Ve),te=""+Ve),m(Ce)&&(r(Ce.key),te=""+Ce.key),"key"in Ce){Ve={};for(var De in Ce)De!=="key"&&(Ve[De]=Ce[De])}else Ve=Ce;return te&&E(Ve,typeof P=="function"?P.displayName||P.name||"Unknown":P),v(P,te,Ve,u(),et,Et)}i(R,"jsxDEVImpl");function N(P){b(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===ae&&(P._payload.status==="fulfilled"?b(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}i(N,"validateChildKeys");function b(P){return typeof P=="object"&&P!==null&&P.$$typeof===_}i(b,"isValidElement");var M=Mt(),_=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),Qe=Symbol.for("react.consumer"),re=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),ne=Symbol.for("react.view_transition"),ee=Symbol.for("react.client.reference"),Se=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Je=Object.prototype.hasOwnProperty,ye=Array.isArray,qe=console.createTask?console.createTask:function(){return null};M={react_stack_bottom_frame:i(function(P){return P()},"react_stack_bottom_frame")};var ct,je={},W=M.react_stack_bottom_frame.bind(M,f)(),it=qe(c(f)),yt={};qB.Fragment=H,qB.jsx=function(P,Ce,Ve){var oe=1e4>Se.recentlyCreatedOwnerStacks++;if(oe){var et=Error.stackTraceLimit;Error.stackTraceLimit=10;var Et=Error("react-stack-top-frame");Error.stackTraceLimit=et}else Et=W;return R(P,Ce,Ve,!1,Et,oe?qe(c(P)):it)},qB.jsxs=function(P,Ce,Ve){var oe=1e4>Se.recentlyCreatedOwnerStacks++;if(oe){var et=Error.stackTraceLimit;Error.stackTraceLimit=10;var Et=Error("react-stack-top-frame");Error.stackTraceLimit=et}else Et=W;return R(P,Ce,Ve,!0,Et,oe?qe(c(P)):it)}})()});var Qn=Yn((bX,pb)=>{"use strict";process.env.NODE_ENV==="production"?pb.exports=E2():pb.exports=N2()});function M2(e,o,{signal:r,edges:c}={}){let u,f=null,m=c!=null&&c.includes("leading"),E=c==null||c.includes("trailing"),S=i(()=>{f!==null&&(e.apply(u,f),u=void 0,f=null)},"invoke"),v=i(()=>{E&&S(),M()},"onTimerEnd"),R=null,N=i(()=>{R!=null&&clearTimeout(R),R=setTimeout(()=>{R=null,v()},o)},"schedule"),b=i(()=>{R!==null&&(clearTimeout(R),R=null)},"cancelTimer"),M=i(()=>{b(),u=void 0,f=null},"cancel"),_=i(()=>{S()},"flush"),k=i(function(...H){if(r?.aborted)return;u=this,f=H;let $=R==null;N(),m&&$&&S()},"debounced");return k.schedule=N,k.cancel=M,k.flush=_,r?.addEventListener("abort",M,{once:!0}),k}var O2=L(()=>{i(M2,"debounce")});function H2(e,o=0,r={}){typeof r!="object"&&(r={});let{leading:c=!1,trailing:u=!0,maxWait:f}=r,m=Array(2);c&&(m[0]="leading"),u&&(m[1]="trailing");let E,S=null,v=M2(function(...b){E=e.apply(this,b),S=null},o,{edges:m}),R=i(function(...b){return f!=null&&(S===null&&(S=Date.now()),Date.now()-S>=f)?(E=e.apply(this,b),S=Date.now(),v.cancel(),v.schedule(),E):(v.apply(this,b),E)},"debounced"),N=i(()=>(v.flush(),E),"flush");return R.cancel=v.cancel,R.flush=N,R}var k2=L(()=>{O2();i(H2,"debounce")});function PB(e,o=0,r={}){let{leading:c=!0,trailing:u=!0}=r;return H2(e,o,{leading:c,maxWait:o,trailing:u})}var U2=L(()=>{k2();i(PB,"throttle")});var L2=L(()=>{U2()});var ym,kX,UX,LX,GX,FX,zX,KX,YX,qX,sC,PX,JX,jX,VX,XX,G2=L(()=>{ym=globalThis.window?.document!==void 0,kX=globalThis.process?.versions?.node!==void 0,UX=globalThis.process?.versions?.bun!==void 0,LX=globalThis.Deno?.version?.deno!==void 0,GX=globalThis.process?.versions?.electron!==void 0,FX=globalThis.navigator?.userAgent?.includes("jsdom")===!0,zX=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,KX=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,YX=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,qX=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,sC=globalThis.navigator?.userAgentData?.platform,PX=sC==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",JX=sC==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",jX=sC==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",VX=sC==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),XX=sC==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android"});var bo={};gi(bo,{ConEmu:()=>j2,beep:()=>OF,beginSynchronizedOutput:()=>q2,clearScreen:()=>wF,clearTerminal:()=>TF,clearViewport:()=>xF,cursorBackward:()=>fF,cursorDown:()=>AF,cursorForward:()=>dF,cursorGetPosition:()=>mF,cursorHide:()=>CF,cursorLeft:()=>K2,cursorMove:()=>uF,cursorNextLine:()=>hF,cursorPrevLine:()=>EF,cursorRestorePosition:()=>pF,cursorSavePosition:()=>gF,cursorShow:()=>yF,cursorTo:()=>cF,cursorUp:()=>z2,endSynchronizedOutput:()=>P2,enterAlternativeScreen:()=>_F,eraseDown:()=>vF,eraseEndLine:()=>BF,eraseLine:()=>Y2,eraseLines:()=>IF,eraseScreen:()=>JB,eraseStartLine:()=>SF,eraseUp:()=>QF,exitAlternativeScreen:()=>NF,iTerm:()=>J2,image:()=>kF,link:()=>HF,scrollDown:()=>RF,scrollUp:()=>bF,setCwd:()=>UF,synchronizedOutput:()=>MF});import Im from"node:process";import aF from"node:os";var qn,Bm,zf,lC,F2,sF,lF,mb,Sm,cF,uF,z2,AF,dF,fF,K2,gF,pF,mF,hF,EF,CF,yF,IF,BF,SF,Y2,vF,QF,JB,bF,RF,wF,xF,DF,TF,_F,NF,q2,P2,MF,OF,HF,kF,J2,j2,UF,hb=L(()=>{G2();qn="\x1B[",Bm="\x1B]",zf="\x07",lC=";",F2=!ym&&Im.env.TERM_PROGRAM==="Apple_Terminal",sF=!ym&&Im.platform==="win32",lF=!ym&&(Im.env.TERM?.startsWith("screen")||Im.env.TERM?.startsWith("tmux")||Im.env.TMUX!==void 0),mb=ym?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Im.cwd,Sm=i(e=>lF?"\x1BPtmux;"+e.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":e,"wrapOsc"),cF=i((e,o)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof o!="number"?qn+(e+1)+"G":qn+(o+1)+lC+(e+1)+"H"},"cursorTo"),uF=i((e,o)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=qn+-e+"D":e>0&&(r+=qn+e+"C"),o<0?r+=qn+-o+"A":o>0&&(r+=qn+o+"B"),r},"cursorMove"),z2=i((e=1)=>qn+e+"A","cursorUp"),AF=i((e=1)=>qn+e+"B","cursorDown"),dF=i((e=1)=>qn+e+"C","cursorForward"),fF=i((e=1)=>qn+e+"D","cursorBackward"),K2=qn+"G",gF=F2?"\x1B7":qn+"s",pF=F2?"\x1B8":qn+"u",mF=qn+"6n",hF=qn+"E",EF=qn+"F",CF=qn+"?25l",yF=qn+"?25h",IF=i(e=>{let o="";for(let r=0;r<e;r++)o+=Y2+(r<e-1?z2():"");return e&&(o+=K2),o},"eraseLines"),BF=qn+"K",SF=qn+"1K",Y2=qn+"2K",vF=qn+"J",QF=qn+"1J",JB=qn+"2J",bF=qn+"S",RF=qn+"T",wF="\x1Bc",xF=`${JB}${qn}H`,DF=i(()=>{if(ym||!sF)return!1;let e=aF.release().split("."),o=Number(e[0]),r=Number(e[2]??0);return o<10||o===10&&r<10586},"isOldWindows"),TF=DF()?`${JB}${qn}0f`:`${JB}${qn}3J${qn}H`,_F=qn+"?1049h",NF=qn+"?1049l",q2=qn+"?2026h",P2=qn+"?2026l",MF=i(e=>q2+e+P2,"synchronizedOutput"),OF=zf,HF=i((e,o)=>{let r=Sm(`${Bm}8${lC}${lC}${o}${zf}`),c=Sm(`${Bm}8${lC}${lC}${zf}`);return r+e+c},"link"),kF=i((e,o={})=>{let r=`${Bm}1337;File=inline=1`;o.width&&(r+=`;width=${o.width}`),o.height&&(r+=`;height=${o.height}`),o.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0");let c=Buffer.from(e);return Sm(r+`;size=${c.byteLength}:`+c.toString("base64")+zf)},"image"),J2={setCwd:i((e=mb())=>Sm(`${Bm}50;CurrentDir=${e}${zf}`),"setCwd"),annotation(e,o={}){let r=`${Bm}1337;`,c=o.x!==void 0,u=o.y!==void 0;if((c||u)&&!(c&&u&&o.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),r+=o.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",o.length>0?r+=(c?[e,o.length,o.x,o.y]:[o.length,e]).join("|"):r+=e,Sm(r+zf)}},j2={setCwd:i((e=mb())=>Sm(`${Bm}9;9;${e}${zf}`),"setCwd")},UF=i((e=mb())=>J2.setCwd(e)+j2.setCwd(e),"setCwd")});var jB=L(()=>{hb();hb()});import{env as Eb}from"node:process";var V2,LF,VB,Cb=L(()=>{V2=i(e=>e in Eb&&Eb[e]!=="0"&&Eb[e]!=="false","check"),LF=V2("CI")||V2("CONTINUOUS_INTEGRATION"),VB=LF});function yb(e,{include:o,exclude:r}={}){let c=i(u=>{let f=i(m=>typeof m=="string"?u===m:m.test(u),"match");return o?o.some(f):r?!r.some(f):!0},"filter");for(let[u,f]of GF(e.constructor.prototype)){if(f==="constructor"||!c(f))continue;let m=Reflect.getOwnPropertyDescriptor(u,f);m&&typeof m.value=="function"&&(e[f]=e[f].bind(e))}return e}var GF,X2=L(()=>{GF=i(e=>{let o=new Set;do for(let r of Reflect.ownKeys(e))o.add([e,r]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return o},"getAllProperties");i(yb,"autoBind")});var Z2=Yn((cZ,XB)=>{XB.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&XB.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&XB.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Sb=Yn((uZ,bm)=>{var Ko=global.process,Kf=i(function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"},"processOk");Kf(Ko)?(W2=Fo("assert"),vm=Z2(),$2=/^win/i.test(Ko.platform),cC=Fo("events"),typeof cC!="function"&&(cC=cC.EventEmitter),Ko.__signal_exit_emitter__?mi=Ko.__signal_exit_emitter__:(mi=Ko.__signal_exit_emitter__=new cC,mi.count=0,mi.emitted={}),mi.infinite||(mi.setMaxListeners(1/0),mi.infinite=!0),bm.exports=function(e,o){if(!Kf(global.process))return function(){};W2.equal(typeof e,"function","a callback must be provided for exit handler"),Qm===!1&&Ib();var r="exit";o&&o.alwaysLast&&(r="afterexit");var c=i(function(){mi.removeListener(r,e),mi.listeners("exit").length===0&&mi.listeners("afterexit").length===0&&ZB()},"remove");return mi.on(r,e),c},ZB=i(function(){!Qm||!Kf(global.process)||(Qm=!1,vm.forEach(function(o){try{Ko.removeListener(o,WB[o])}catch{}}),Ko.emit=$B,Ko.reallyExit=Bb,mi.count-=1)},"unload"),bm.exports.unload=ZB,Yf=i(function(o,r,c){mi.emitted[o]||(mi.emitted[o]=!0,mi.emit(o,r,c))},"emit"),WB={},vm.forEach(function(e){WB[e]=i(function(){if(Kf(global.process)){var r=Ko.listeners(e);r.length===mi.count&&(ZB(),Yf("exit",null,e),Yf("afterexit",null,e),$2&&e==="SIGHUP"&&(e="SIGINT"),Ko.kill(Ko.pid,e))}},"listener")}),bm.exports.signals=function(){return vm},Qm=!1,Ib=i(function(){Qm||!Kf(global.process)||(Qm=!0,mi.count+=1,vm=vm.filter(function(o){try{return Ko.on(o,WB[o]),!0}catch{return!1}}),Ko.emit=tN,Ko.reallyExit=eN)},"load"),bm.exports.load=Ib,Bb=Ko.reallyExit,eN=i(function(o){Kf(global.process)&&(Ko.exitCode=o||0,Yf("exit",Ko.exitCode,null),Yf("afterexit",Ko.exitCode,null),Bb.call(Ko,Ko.exitCode))},"processReallyExit"),$B=Ko.emit,tN=i(function(o,r){if(o==="exit"&&Kf(global.process)){r!==void 0&&(Ko.exitCode=r);var c=$B.apply(this,arguments);return Yf("exit",Ko.exitCode,null),Yf("afterexit",Ko.exitCode,null),c}else return $B.apply(this,arguments)},"processEmit")):bm.exports=function(){return function(){}};var W2,vm,$2,cC,mi,ZB,Yf,WB,Qm,Ib,Bb,eN,$B,tN});import{PassThrough as nN}from"node:stream";var oN,vb,FF,rN,iN=L(()=>{oN=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],vb={},FF=i(e=>{let o=new nN,r=new nN;o.write=u=>{e("stdout",u)},r.write=u=>{e("stderr",u)};let c=new console.Console(o,r);for(let u of oN)vb[u]=console[u],console[u]=c[u];return()=>{for(let u of oN)console[u]=vb[u];vb={}}},"patchConsole"),rN=FF});var aN=Yn(jA=>{"use strict";jA.ConcurrentRoot=1;jA.ContinuousEventPriority=8;jA.DefaultEventPriority=32;jA.DiscreteEventPriority=2;jA.IdleEventPriority=268435456;jA.LegacyRoot=0;jA.NoEventPriority=0});var sN=Yn(VA=>{"use strict";process.env.NODE_ENV!=="production"&&(VA.ConcurrentRoot=1,VA.ContinuousEventPriority=8,VA.DefaultEventPriority=32,VA.DiscreteEventPriority=2,VA.IdleEventPriority=268435456,VA.LegacyRoot=0,VA.NoEventPriority=0)});var e0=Yn((hZ,Qb)=>{"use strict";process.env.NODE_ENV==="production"?Qb.exports=aN():Qb.exports=sN()});var zF,lN,cN=L(()=>{zF=(()=>{var e=import.meta.url;return(function(o){o=o||{};var r;r||(r=typeof o<"u"?o:{});var c,u;r.ready=new Promise(function(x,D){c=x,u=D});var f=Object.assign({},r),m="";typeof document<"u"&&document.currentScript&&(m=document.currentScript.src),e&&(m=e),m.indexOf("blob:")!==0?m=m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):m="";var E=r.print||console.log.bind(console),S=r.printErr||console.warn.bind(console);Object.assign(r,f),f=null;var v;r.wasmBinary&&(v=r.wasmBinary);var R=r.noExitRuntime||!0;typeof WebAssembly!="object"&&qe("no native wasm support detected");var N,b=!1;function M(x,D,G){G=D+G;for(var Y="";!(D>=G);){var J=x[D++];if(!J)break;if(J&128){var Be=x[D++]&63;if((J&224)==192)Y+=String.fromCharCode((J&31)<<6|Be);else{var Oe=x[D++]&63;J=(J&240)==224?(J&15)<<12|Be<<6|Oe:(J&7)<<18|Be<<12|Oe<<6|x[D++]&63,65536>J?Y+=String.fromCharCode(J):(J-=65536,Y+=String.fromCharCode(55296|J>>10,56320|J&1023))}}else Y+=String.fromCharCode(J)}return Y}i(M,"z");var _,k,H,$,we,Qe,re,Me,Ee;function ze(){var x=N.buffer;_=x,r.HEAP8=k=new Int8Array(x),r.HEAP16=$=new Int16Array(x),r.HEAP32=Qe=new Int32Array(x),r.HEAPU8=H=new Uint8Array(x),r.HEAPU16=we=new Uint16Array(x),r.HEAPU32=re=new Uint32Array(x),r.HEAPF32=Me=new Float32Array(x),r.HEAPF64=Ee=new Float64Array(x)}i(ze,"na");var ce,ae=[],ie=[],ne=[];function ee(){var x=r.preRun.shift();ae.unshift(x)}i(ee,"sa");var Se=0,Je=null,ye=null;function qe(x){throw r.onAbort&&r.onAbort(x),x="Aborted("+x+")",S(x),b=!0,x=new WebAssembly.RuntimeError(x+". Build with -sASSERTIONS for more info."),u(x),x}i(qe,"x");function ct(x){return x.startsWith("data:application/octet-stream;base64,")}i(ct,"ua");var je;if(je="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAA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BgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBGsiBEEASA0FIAEgBBAeIgM2AuwDIAEgAzYC6AMgASADIARqNgLwAyACKALoAyIEIAIoAuwDIghHBEADQCADIAQoAgA2AgAgA0EEaiEDIARBBGoiBCAIRw0ACwsgASADNgLsAwsgASACKQL0AzcC9AMgASACKAKEBDYChAQgASACKQL8AzcC/AMgAUEANgLkAwsgBSABNgIAIAEgADYC5AMLIAZBAWohBiAFQQRqIgUgB0cNAAsLDwsQAgALUAACQAJAAkACQAJAIAIOBAQAAQIDCyAAIAEgAUEwahBDDwsgACABIAFBMGogAxBEDwsgACABIAFBMGoQQg8LECQACyAAIAEgAUEwaiADEEULcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QdwlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwt5AgF/AX0jAEEQayIDJAAgA0EIaiAAIAFBAnRB7CVqKAIAIAIQU0MAAMB/IQQCQAJAAkAgAy0ADEE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KckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2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EwEB4gAkEwECshACACQTBqJAAgAAs7AQF/IAEgACgCBCIFQQF1aiEBIAAoAgAhACABIAIgAyAEIAVBAXEEfyABKAIAIABqKAIABSAACxEdAAs3AQF/IAEgACgCBCIDQQF1aiEBIAAoAgAhACABIAIgA0EBcQR/IAEoAgAgAGooAgAFIAALERIACzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRDAALNQEBfyABIAAoAgQiAkEBdWohASAAKAIAIQAgASACQQFxBH8gASgCACAAaigCAAUgAAsRCwALYQECfyMAQRBrIgIkACABIAAoAgQiA0EBdWohASAAKAIAIQAgAiABIANBAXEEfyABKAIAIABqKAIABSAACxEBAEEQEB4iACACKQMINwMIIAAgAikDADcDACACQRBqJAAgAAtjAQJ/IwBBEGsiAyQAIAEgACgCBCIEQQF1aiEBIAAoAgAhACADIAEgAiAEQQFxBH8gASgCACAAaigCAAUgAAsRAwBBEBAeIgAgAykDCDcDCCAAIAMpAwA3AwAgA0EQaiQAIAALNwEBfyABIAAoAgQiA0EBdWohASAAKAIAIQAgASACIANBAXEEfyABKAIAIABqKAIABSAACxEEAAs5AQF/IAEgACgCBCIEQQF1aiEBIAAoAgAhACABIAIgAyAEQQFxBH8gASgCACAAaigCAAUgAAsRCAALCQAgASAAEQIACwUAQcM7Cw8AIAEgACgCAGogAjYCAAsNACABIAAoAgBqKAIACxgBAX9BEBAeIgBCADcDCCAAQQA2AgAgAAsYAQF/QRAQHiIAQgA3AwAgAEIANwMIIAALDABBMBAeQQBBMBAqCzcBAX8gASAAKAIEIgNBAXVqIQEgACgCACEAIAEgAiADQQFxBH8gASgCACAAaigCAAUgAAsRHgALBQBBvjsLIQAgACABKAIAIAEgASwAC0EASBtBuzsgAigCABAQNgIACyoBAX9BDBAeIgFBADoABCABIAAoAgA2AgggAEEANgIAIAFB2Cc2AgAgAQsFAEG7OwsFAEG4OwshACAAIAEoAgAgASABLAALQQBIG0GkOyACKAIAEBA2Ag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UEQCAAIAJBBHI6AAAgACgCECICBEAgACACEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQELCyABQRBqJAAPCyABQYAINgIAIABBBUHYJSABECwQJAALLgEBfyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgBBADYCEAsXACAAKAIEKAIIIgAgACgCACgCCBEAAAsuAQF/IAAoAgghAiAAIAE2AgggAgRAIAIgAigCACgCBBEAAAsgACgCAEEFNgIQCz4BAX8gACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIAIgBBADYCCCAAIAAtAABB7wFxOgAAC0kBAX8jAEEQayIGJAAgBiABKAIEKAIEIgEgAiADIAQgBSABKAIAKAIIERAAIAAgBisDALY4AgAgACAGKwMItjgCBCAGQRBqJAALcwECfyMAQRBrIgIkACAAKAIEIQMgACABNgIEIAMEQCADIAMoAgAoAgQRAAALIAAoAgAiACgC6AMgACgC7ANHBEAgAkH5IzYCACAAQQVB2CUgAhAsECQACyAAQQQ2AgggACAALQAAQRByOgAAIAJBEGokAAs8AQF/AkAgACgCACIAKALsAyAAKALoAyIAa0ECdSABTQ0AIAAgAUECdGooAgAiAEUNACAAKAIEIQILIAILGQAgACgCACgC5AMiAEUEQEEADwsgACgCBAsXACAAKAIAIgAoAuwDIAAoAugDa0ECdQuOAwEDfyMAQdACayICJAACQCAAKAIAIgAoAuwDIAAoAugDRg0AIAEoAgAiAygC5AMhASAAIAMQb0UNACAAIAFGBEAgAkEIakEAQcQCECoaIAJBADoAGCACQgA3AxAgAkGAgID+BzYCDCACQRxqQQBBxAEQKhogAkHgAWohBCACQSBqIQEDQCABQoCAgPyLgIDAv383AhAgAUKBgICAEDcCCCABQoCAgPyLgIDAv383AgAgAUEYaiIBIARHDQALIAJCgICA/IuAgMC/fzcD8AEgAkKBgICAEDcD6AEgAkKAgID8i4CAwL9/NwPgASACQoCAgP6HgIDg/wA3AoQCIAJCgICA/oeAgOD/ADcC/AEgAiACLQD4AUH4AXE6AP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AADFHQAA2x0AAMIdAADFHQAA4h0AAMUdAADiHQAAxR0AANsdAABkaWlpAAAAAOEdAADEHQAA2x0AAGZpaWkAAAAA1B0AAMQdAADEHQAA3B0AANQdAADEHQAAxB0AANwdAADFHQAAxB0AAMQdAADEHQAAxB0AANwdAADUHQAAxB0AANUdAADVHQAAxB0AANQdAADEHQAAoR0AANQdAADEHQAAuR0AANUdAADFHQAAAAAAANQdAADEHQAA4h0AAOIdAADbHQAAdmlpZGRpAADBHQAAxR0AQcArC0EZAAoAGRkZAAAAAAUAAAAAAAAJAAAAAAsAAAAAAAAAABkAEQoZGRkDCgcAAQAJCxgAAAkGCwAACwAGGQAAABkZGQBBkSwLIQ4AAAAAAAAAABkACg0ZGRkADQAAAgAJDgAAAAkADgAADgBByywLAQwAQdcsCxUTAAAAABMAAAAACQwAAAAAAAwAAAwAQYUtCwEQAEGRLQsVDwAAAAQPAAAAAAkQAAAAAAAQAAAQAEG/LQsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!ct(je)){var W=je;je=r.locateFile?r.locateFile(W,m):m+W}function it(){var x=je;try{if(x==je&&v)return new Uint8Array(v);if(ct(x))try{var D=yi(x.slice(37)),G=new Uint8Array(D.length);for(x=0;x<D.length;++x)G[x]=D.charCodeAt(x);var Y=G}catch{throw Error("Converting base64 string to bytes failed.")}else Y=void 0;var J=Y;if(J)return J;throw"both async and sync fetching of the wasm failed"}catch(Be){qe(Be)}}i(it,"wa");function yt(){return v||typeof fetch!="function"?Promise.resolve().then(function(){return it()}):fetch(je,{credentials:"same-origin"}).then(function(x){if(!x.ok)throw"failed to load wasm binary file at '"+je+"'";return x.arrayBuffer()}).catch(function(){return it()})}i(yt,"ya");function P(x){for(;0<x.length;)x.shift()(r)}i(P,"za");function Ce(x){if(x===void 0)return"_unknown";x=x.replace(/[^a-zA-Z0-9_]/g,"$");var D=x.charCodeAt(0);return 48<=D&&57>=D?"_"+x:x}i(Ce,"Aa");function Ve(x,D){return x=Ce(x),function(){return D.apply(this,arguments)}}i(Ve,"Ba");var oe=[{},{value:void 0},{value:null},{value:!0},{value:!1}],et=[];function Et(x){var D=Error,G=Ve(x,function(Y){this.name=x,this.message=Y,Y=Error(Y).stack,Y!==void 0&&(this.stack=this.toString()+`
|
|
36
|
+
`+Y.replace(/^Error(:[^\n]*)?\n/,""))});return G.prototype=Object.create(D.prototype),G.prototype.constructor=G,G.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},G}i(Et,"Da");var te=void 0;function se(x){throw new te(x)}i(se,"L");var De=i(x=>(x||se("Cannot use deleted val. handle = "+x),oe[x].value),"M"),ut=i(x=>{switch(x){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var D=et.length?et.pop():oe.length;return oe[D]={ga:1,value:x},D}},"Ea"),wt=void 0,Gt=void 0;function gt(x){for(var D="";H[x];)D+=Gt[H[x++]];return D}i(gt,"N");var Ie=[];function Ne(){for(;Ie.length;){var x=Ie.pop();x.M.$=!1,x.delete()}}i(Ne,"Ha");var at=void 0,kt={};function be(x,D){for(D===void 0&&se("ptr should not be undefined");x.R;)D=x.ba(D),x=x.R;return D}i(be,"Ia");var Te={};function fe(x){x=Ii(x);var D=gt(x);return Ir(x),D}i(fe,"Ja");function tt(x,D){var G=Te[x];return G===void 0&&se(D+" has unknown type "+fe(x)),G}i(tt,"La");function _t(){}i(_t,"Ma");var Gn=!1;function In(x){--x.count.value,x.count.value===0&&(x.T?x.U.W(x.T):x.P.N.W(x.O))}i(In,"Oa");function No(x,D,G){return D===G?x:G.R===void 0?null:(x=No(x,D,G.R),x===null?null:G.na(x))}i(No,"Pa");var xr={};function Vo(x,D){return D=be(x,D),kt[D]}i(Vo,"Ra");var Mo=void 0;function qr(x){throw new Mo(x)}i(qr,"Ta");function ot(x,D){return D.P&&D.O||qr("makeClassHandle requires ptr and ptrType"),!!D.U!=!!D.T&&qr("Both smartPtrType and smartPtr must be specified"),D.count={value:1},Dt(Object.create(x,{M:{value:D}}))}i(ot,"Ua");function Dt(x){return typeof FinalizationRegistry>"u"?(Dt=i(D=>D,"T"),x):(Gn=new FinalizationRegistry(D=>{In(D.M)}),Dt=i(D=>{var G=D.M;return G.T&&Gn.register(D,{M:G},D),D},"T"),_t=i(D=>{Gn.unregister(D)},"Ma"),Dt(x))}i(Dt,"T");var mt={};function tn(x){for(;x.length;){var D=x.pop();x.pop()(D)}}i(tn,"Wa");function to(x){return this.fromWireType(Qe[x>>2])}i(to,"Xa");var yr={},ta={};function Jn(x,D,G){function Y(ve){ve=G(ve),ve.length!==x.length&&qr("Mismatched type converter count");for(var $e=0;$e<x.length;++$e)j(x[$e],ve[$e])}i(Y,"d"),x.forEach(function(ve){ta[ve]=D});var J=Array(D.length),Be=[],Oe=0;D.forEach((ve,$e)=>{Te.hasOwnProperty(ve)?J[$e]=Te[ve]:(Be.push(ve),yr.hasOwnProperty(ve)||(yr[ve]=[]),yr[ve].push(()=>{J[$e]=Te[ve],++Oe,Oe===Be.length&&Y(J)}))}),Be.length===0&&Y(J)}i(Jn,"V");function w(x){switch(x){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+x)}}i(w,"Za");function j(x,D,G={}){if(!("argPackAdvance"in D))throw new TypeError("registerType registeredInstance requires argPackAdvance");var Y=D.name;if(x||se('type "'+Y+'" must have a positive integer typeid pointer'),Te.hasOwnProperty(x)){if(G.ua)return;se("Cannot register type '"+Y+"' twice")}Te[x]=D,delete ta[x],yr.hasOwnProperty(x)&&(D=yr[x],delete yr[x],D.forEach(J=>J()))}i(j,"W");function Ge(x){se(x.M.P.N.name+" instance already deleted")}i(Ge,"$a");function Ue(){}i(Ue,"X");function nt(x,D,G){if(x[D].S===void 0){var Y=x[D];x[D]=function(){return x[D].S.hasOwnProperty(arguments.length)||se("Function '"+G+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+x[D].S+")!"),x[D].S[arguments.length].apply(this,arguments)},x[D].S=[],x[D].S[Y.Z]=Y}}i(nt,"ab");function dn(x,D){r.hasOwnProperty(x)?(se("Cannot register public name '"+x+"' twice"),nt(r,x,x),r.hasOwnProperty(void 0)&&se("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),r[x].S[void 0]=D):r[x]=D}i(dn,"bb");function pt(x,D,G,Y,J,Be,Oe,ve){this.name=x,this.constructor=D,this.X=G,this.W=Y,this.R=J,this.pa=Be,this.ba=Oe,this.na=ve,this.ja=[]}i(pt,"cb");function xt(x,D,G){for(;D!==G;)D.ba||se("Expected null or instance of "+G.name+", got an instance of "+D.name),x=D.ba(x),D=D.R;return x}i(xt,"db");function rn(x,D){return D===null?(this.ea&&se("null is not a valid "+this.name),0):(D.M||se('Cannot pass "'+Ja(D)+'" as a '+this.name),D.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),xt(D.M.O,D.M.P.N,this.N))}i(rn,"eb");function sr(x,D){if(D===null){if(this.ea&&se("null is not a valid "+this.name),this.da){var G=this.fa();return x!==null&&x.push(this.W,G),G}return 0}if(D.M||se('Cannot pass "'+Ja(D)+'" as a '+this.name),D.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&D.M.P.ca&&se("Cannot convert argument of type "+(D.M.U?D.M.U.name:D.M.P.name)+" to parameter type "+this.name),G=xt(D.M.O,D.M.P.N,this.N),this.da)switch(D.M.T===void 0&&se("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:D.M.U===this?G=D.M.T:se("Cannot convert argument of type "+(D.M.U?D.M.U.name:D.M.P.name)+" to parameter type "+this.name);break;case 1:G=D.M.T;break;case 2:if(D.M.U===this)G=D.M.T;else{var Y=D.clone();G=this.xa(G,ut(function(){Y.delete()})),x!==null&&x.push(this.W,G)}break;default:se("Unsupporting sharing policy")}return G}i(sr,"gb");function mo(x,D){return D===null?(this.ea&&se("null is not a valid "+this.name),0):(D.M||se('Cannot pass "'+Ja(D)+'" as a '+this.name),D.M.O||se("Cannot pass deleted object as a pointer of type "+this.name),D.M.P.ca&&se("Cannot convert argument of type "+D.M.P.name+" to parameter type "+this.name),xt(D.M.O,D.M.P.N,this.N))}i(mo,"hb");function Xo(x,D,G,Y){this.name=x,this.N=D,this.ea=G,this.ca=Y,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,D.R!==void 0?this.toWireType=sr:(this.toWireType=Y?rn:mo,this.V=null)}i(Xo,"Y");function na(x,D){r.hasOwnProperty(x)||qr("Replacing nonexistant public symbol"),r[x]=D,r[x].Z=void 0}i(na,"ib");function oa(x,D){var G=[];return function(){if(G.length=0,Object.assign(G,arguments),x.includes("j")){var Y=r["dynCall_"+x];Y=G&&G.length?Y.apply(null,[D].concat(G)):Y.call(null,D)}else Y=ce.get(D).apply(null,G);return Y}}i(oa,"jb");function lt(x,D){x=gt(x);var G=x.includes("j")?oa(x,D):ce.get(D);return typeof G!="function"&&se("unknown function pointer with signature "+x+": "+D),G}i(lt,"Z");var Dr=void 0;function zt(x,D){function G(Be){J[Be]||Te[Be]||(ta[Be]?ta[Be].forEach(G):(Y.push(Be),J[Be]=!0))}i(G,"c");var Y=[],J={};throw D.forEach(G),new Dr(x+": "+Y.map(fe).join([", "]))}i(zt,"nb");function ti(x,D,G,Y,J){var Be=D.length;2>Be&&se("argTypes array size mismatch! Must at least get return value and 'this' types!");var Oe=D[1]!==null&&G!==null,ve=!1;for(G=1;G<D.length;++G)if(D[G]!==null&&D[G].V===void 0){ve=!0;break}var $e=D[0].name!=="void",Ke=Be-2,At=Array(Ke),bt=[],nn=[];return function(){if(arguments.length!==Ke&&se("function "+x+" called with "+arguments.length+" arguments, expected "+Ke+" args!"),nn.length=0,bt.length=Oe?2:1,bt[0]=J,Oe){var Nn=D[1].toWireType(nn,this);bt[1]=Nn}for(var _n=0;_n<Ke;++_n)At[_n]=D[_n+2].toWireType(nn,arguments[_n]),bt.push(At[_n]);if(_n=Y.apply(null,bt),ve)tn(nn);else for(var uo=Oe?1:2;uo<D.length;uo++){var Wo=uo===1?Nn:At[uo-2];D[uo].V!==null&&D[uo].V(Wo)}return Nn=$e?D[0].fromWireType(_n):void 0,Nn}}i(ti,"ob");function Ti(x,D){for(var G=[],Y=0;Y<x;Y++)G.push(re[D+4*Y>>2]);return G}i(Ti,"pb");function _i(x){4<x&&--oe[x].ga===0&&(oe[x]=void 0,et.push(x))}i(_i,"qb");function Ja(x){if(x===null)return"null";var D=typeof x;return D==="object"||D==="array"||D==="function"?x.toString():""+x}i(Ja,"fb");function Ba(x,D){switch(D){case 2:return function(G){return this.fromWireType(Me[G>>2])};case 3:return function(G){return this.fromWireType(Ee[G>>3])};default:throw new TypeError("Unknown float type: "+x)}}i(Ba,"rb");function Tr(x,D,G){switch(D){case 0:return G?function(Y){return k[Y]}:function(Y){return H[Y]};case 1:return G?function(Y){return $[Y>>1]}:function(Y){return we[Y>>1]};case 2:return G?function(Y){return Qe[Y>>2]}:function(Y){return re[Y>>2]};default:throw new TypeError("Unknown integer type: "+x)}}i(Tr,"sb");function Ni(x,D){for(var G="",Y=0;!(Y>=D/2);++Y){var J=$[x+2*Y>>1];if(J==0)break;G+=String.fromCharCode(J)}return G}i(Ni,"tb");function ja(x,D,G){if(G===void 0&&(G=2147483647),2>G)return 0;G-=2;var Y=D;G=G<2*x.length?G/2:x.length;for(var J=0;J<G;++J)$[D>>1]=x.charCodeAt(J),D+=2;return $[D>>1]=0,D-Y}i(ja,"ub");function Pl(x){return 2*x.length}i(Pl,"vb");function hs(x,D){for(var G=0,Y="";!(G>=D/4);){var J=Qe[x+4*G>>2];if(J==0)break;++G,65536<=J?(J-=65536,Y+=String.fromCharCode(55296|J>>10,56320|J&1023)):Y+=String.fromCharCode(J)}return Y}i(hs,"wb");function Sa(x,D,G){if(G===void 0&&(G=2147483647),4>G)return 0;var Y=D;G=Y+G-4;for(var J=0;J<x.length;++J){var Be=x.charCodeAt(J);if(55296<=Be&&57343>=Be){var Oe=x.charCodeAt(++J);Be=65536+((Be&1023)<<10)|Oe&1023}if(Qe[D>>2]=Be,D+=4,D+4>G)break}return Qe[D>>2]=0,D-Y}i(Sa,"xb");function Mc(x){for(var D=0,G=0;G<x.length;++G){var Y=x.charCodeAt(G);55296<=Y&&57343>=Y&&++G,D+=4}return D}i(Mc,"yb");var Ku={};function ft(x){var D=Ku[x];return D===void 0?gt(x):D}i(ft,"Ab");var Ft=[];function Fn(x){var D=Ft.length;return Ft.push(x),D}i(Fn,"Cb");function ao(x,D){for(var G=Array(x),Y=0;Y<x;++Y)G[Y]=tt(re[D+4*Y>>2],"parameter "+Y);return G}i(ao,"Db");var ra=[],ni=[null,[],[]];te=r.BindingError=Et("BindingError"),r.count_emval_handles=function(){for(var x=0,D=5;D<oe.length;++D)oe[D]!==void 0&&++x;return x},r.get_first_emval=function(){for(var x=5;x<oe.length;++x)if(oe[x]!==void 0)return oe[x];return null},wt=r.PureVirtualError=Et("PureVirtualError");for(var Mi=Array(256),Zo=0;256>Zo;++Zo)Mi[Zo]=String.fromCharCode(Zo);Gt=Mi,r.getInheritedInstanceCount=function(){return Object.keys(kt).length},r.getLiveInheritedInstances=function(){var x=[],D;for(D in kt)kt.hasOwnProperty(D)&&x.push(kt[D]);return x},r.flushPendingDeletes=Ne,r.setDelayFunction=function(x){at=x,Ie.length&&at&&at(Ne)},Mo=r.InternalError=Et("InternalError"),Ue.prototype.isAliasOf=function(x){if(!(this instanceof Ue&&x instanceof Ue))return!1;var D=this.M.P.N,G=this.M.O,Y=x.M.P.N;for(x=x.M.O;D.R;)G=D.ba(G),D=D.R;for(;Y.R;)x=Y.ba(x),Y=Y.R;return D===Y&&G===x},Ue.prototype.clone=function(){if(this.M.O||Ge(this),this.M.aa)return this.M.count.value+=1,this;var x=Dt,D=Object,G=D.create,Y=Object.getPrototypeOf(this),J=this.M;return x=x(G.call(D,Y,{M:{value:{count:J.count,$:J.$,aa:J.aa,O:J.O,P:J.P,T:J.T,U:J.U}}})),x.M.count.value+=1,x.M.$=!1,x},Ue.prototype.delete=function(){this.M.O||Ge(this),this.M.$&&!this.M.aa&&se("Object already scheduled for deletion"),_t(this),In(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},Ue.prototype.isDeleted=function(){return!this.M.O},Ue.prototype.deleteLater=function(){return this.M.O||Ge(this),this.M.$&&!this.M.aa&&se("Object already scheduled for deletion"),Ie.push(this),Ie.length===1&&at&&at(Ne),this.M.$=!0,this},Xo.prototype.qa=function(x){return this.ka&&(x=this.ka(x)),x},Xo.prototype.ha=function(x){this.W&&this.W(x)},Xo.prototype.argPackAdvance=8,Xo.prototype.readValueFromPointer=to,Xo.prototype.deleteObject=function(x){x!==null&&x.delete()},Xo.prototype.fromWireType=function(x){function D(){return this.da?ot(this.N.X,{P:this.wa,O:G,U:this,T:x}):ot(this.N.X,{P:this,O:x})}i(D,"b");var G=this.qa(x);if(!G)return this.ha(x),null;var Y=Vo(this.N,G);if(Y!==void 0)return Y.M.count.value===0?(Y.M.O=G,Y.M.T=x,Y.clone()):(Y=Y.clone(),this.ha(x),Y);if(Y=this.N.pa(G),Y=xr[Y],!Y)return D.call(this);Y=this.ca?Y.la:Y.pointerType;var J=No(G,this.N,Y.N);return J===null?D.call(this):this.da?ot(Y.N.X,{P:Y,O:J,U:this,T:x}):ot(Y.N.X,{P:Y,O:J})},Dr=r.UnboundTypeError=Et("UnboundTypeError");var yi=typeof atob=="function"?atob:function(x){var D="",G=0;x=x.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++)),Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(x.charAt(G++));Y=Y<<2|J>>4,J=(J&15)<<4|Be>>2;var ve=(Be&3)<<6|Oe;D+=String.fromCharCode(Y),Be!==64&&(D+=String.fromCharCode(J)),Oe!==64&&(D+=String.fromCharCode(ve))}while(G<x.length);return D},no={l:i(function(x,D,G,Y){qe("Assertion failed: "+(x?M(H,x):"")+", at: "+[D?D?M(H,D):"":"unknown filename",G,Y?Y?M(H,Y):"":"unknown function"])},"l"),q:i(function(x,D,G){x=gt(x),D=tt(D,"wrapper"),G=De(G);var Y=[].slice,J=D.N,Be=J.X,Oe=J.R.X,ve=J.R.constructor;x=Ve(x,function(){J.R.ja.forEach(function(Ke){if(this[Ke]===Oe[Ke])throw new wt("Pure virtual function "+Ke+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:Be}),this.__construct.apply(this,Y.call(arguments))}),Be.__construct=function(){this===Be&&se("Pass correct 'this' to __construct");var Ke=ve.implement.apply(void 0,[this].concat(Y.call(arguments)));_t(Ke);var At=Ke.M;Ke.notifyOnDestruction(),At.aa=!0,Object.defineProperties(this,{M:{value:At}}),Dt(this),Ke=At.O,Ke=be(J,Ke),kt.hasOwnProperty(Ke)?se("Tried to register registered instance: "+Ke):kt[Ke]=this},Be.__destruct=function(){this===Be&&se("Pass correct 'this' to __destruct"),_t(this);var Ke=this.M.O;Ke=be(J,Ke),kt.hasOwnProperty(Ke)?delete kt[Ke]:se("Tried to unregister unregistered instance: "+Ke)},x.prototype=Object.create(Be);for(var $e in G)x.prototype[$e]=G[$e];return ut(x)},"q"),j:i(function(x){var D=mt[x];delete mt[x];var G=D.fa,Y=D.W,J=D.ia,Be=J.map(Oe=>Oe.ta).concat(J.map(Oe=>Oe.za));Jn([x],Be,Oe=>{var ve={};return J.forEach(($e,Ke)=>{var At=Oe[Ke],bt=$e.ra,nn=$e.sa,Nn=Oe[Ke+J.length],_n=$e.ya,uo=$e.Aa;ve[$e.oa]={read:i(Wo=>At.fromWireType(bt(nn,Wo)),"read"),write:i((Wo,Bi)=>{var Pr=[];_n(uo,Wo,Nn.toWireType(Pr,Bi)),tn(Pr)},"write")}}),[{name:D.name,fromWireType:i(function($e){var Ke={},At;for(At in ve)Ke[At]=ve[At].read($e);return Y($e),Ke},"fromWireType"),toWireType:i(function($e,Ke){for(var At in ve)if(!(At in Ke))throw new TypeError('Missing field: "'+At+'"');var bt=G();for(At in ve)ve[At].write(bt,Ke[At]);return $e!==null&&$e.push(Y,bt),bt},"toWireType"),argPackAdvance:8,readValueFromPointer:to,V:Y}]})},"j"),v:i(function(){},"v"),B:i(function(x,D,G,Y,J){var Be=w(G);D=gt(D),j(x,{name:D,fromWireType:i(function(Oe){return!!Oe},"fromWireType"),toWireType:i(function(Oe,ve){return ve?Y:J},"toWireType"),argPackAdvance:8,readValueFromPointer:i(function(Oe){if(G===1)var ve=k;else if(G===2)ve=$;else if(G===4)ve=Qe;else throw new TypeError("Unknown boolean type size: "+D);return this.fromWireType(ve[Oe>>Be])},"readValueFromPointer"),V:null})},"B"),f:i(function(x,D,G,Y,J,Be,Oe,ve,$e,Ke,At,bt,nn){At=gt(At),Be=lt(J,Be),ve&&(ve=lt(Oe,ve)),Ke&&(Ke=lt($e,Ke)),nn=lt(bt,nn);var Nn=Ce(At);dn(Nn,function(){zt("Cannot construct "+At+" due to unbound types",[Y])}),Jn([x,D,G],Y?[Y]:[],function(_n){if(_n=_n[0],Y)var uo=_n.N,Wo=uo.X;else Wo=Ue.prototype;_n=Ve(Nn,function(){if(Object.getPrototypeOf(this)!==Bi)throw new te("Use 'new' to construct "+At);if(Pr.Y===void 0)throw new te(At+" has no accessible constructor");var lr=Pr.Y[arguments.length];if(lr===void 0)throw new te("Tried to invoke ctor of "+At+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Pr.Y).toString()+") parameters instead!");return lr.apply(this,arguments)});var Bi=Object.create(Wo,{constructor:{value:_n}});_n.prototype=Bi;var Pr=new pt(At,_n,Bi,nn,uo,Be,ve,Ke);uo=new Xo(At,Pr,!0,!1),Wo=new Xo(At+"*",Pr,!1,!1);var go=new Xo(At+" const*",Pr,!1,!0);return xr[x]={pointerType:Wo,la:go},na(Nn,_n),[uo,Wo,go]})},"f"),d:i(function(x,D,G,Y,J,Be,Oe){var ve=Ti(G,Y);D=gt(D),Be=lt(J,Be),Jn([],[x],function($e){function Ke(){zt("Cannot call "+At+" due to unbound types",ve)}i(Ke,"l"),$e=$e[0];var At=$e.name+"."+D;D.startsWith("@@")&&(D=Symbol[D.substring(2)]);var bt=$e.N.constructor;return bt[D]===void 0?(Ke.Z=G-1,bt[D]=Ke):(nt(bt,D,At),bt[D].S[G-1]=Ke),Jn([],ve,function(nn){return nn=ti(At,[nn[0],null].concat(nn.slice(1)),null,Be,Oe),bt[D].S===void 0?(nn.Z=G-1,bt[D]=nn):bt[D].S[G-1]=nn,[]}),[]})},"d"),p:i(function(x,D,G,Y,J,Be){0<D||qe();var Oe=Ti(D,G);J=lt(Y,J),Jn([],[x],function(ve){ve=ve[0];var $e="constructor "+ve.name;if(ve.N.Y===void 0&&(ve.N.Y=[]),ve.N.Y[D-1]!==void 0)throw new te("Cannot register multiple constructors with identical number of parameters ("+(D-1)+") for class '"+ve.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return ve.N.Y[D-1]=()=>{zt("Cannot construct "+ve.name+" due to unbound types",Oe)},Jn([],Oe,function(Ke){return Ke.splice(1,0,null),ve.N.Y[D-1]=ti($e,Ke,null,J,Be),[]}),[]})},"p"),a:i(function(x,D,G,Y,J,Be,Oe,ve){var $e=Ti(G,Y);D=gt(D),Be=lt(J,Be),Jn([],[x],function(Ke){function At(){zt("Cannot call "+bt+" due to unbound types",$e)}i(At,"n"),Ke=Ke[0];var bt=Ke.name+"."+D;D.startsWith("@@")&&(D=Symbol[D.substring(2)]),ve&&Ke.N.ja.push(D);var nn=Ke.N.X,Nn=nn[D];return Nn===void 0||Nn.S===void 0&&Nn.className!==Ke.name&&Nn.Z===G-2?(At.Z=G-2,At.className=Ke.name,nn[D]=At):(nt(nn,D,bt),nn[D].S[G-2]=At),Jn([],$e,function(_n){return _n=ti(bt,_n,Ke,Be,Oe),nn[D].S===void 0?(_n.Z=G-2,nn[D]=_n):nn[D].S[G-2]=_n,[]}),[]})},"a"),A:i(function(x,D){D=gt(D),j(x,{name:D,fromWireType:i(function(G){var Y=De(G);return _i(G),Y},"fromWireType"),toWireType:i(function(G,Y){return ut(Y)},"toWireType"),argPackAdvance:8,readValueFromPointer:to,V:null})},"A"),n:i(function(x,D,G){G=w(G),D=gt(D),j(x,{name:D,fromWireType:i(function(Y){return Y},"fromWireType"),toWireType:i(function(Y,J){return J},"toWireType"),argPackAdvance:8,readValueFromPointer:Ba(D,G),V:null})},"n"),e:i(function(x,D,G,Y,J){D=gt(D),J===-1&&(J=4294967295),J=w(G);var Be=i(ve=>ve,"f");if(Y===0){var Oe=32-8*G;Be=i(ve=>ve<<Oe>>>Oe,"f")}G=D.includes("unsigned")?function(ve,$e){return $e>>>0}:function(ve,$e){return $e},j(x,{name:D,fromWireType:Be,toWireType:G,argPackAdvance:8,readValueFromPointer:Tr(D,J,Y!==0),V:null})},"e"),b:i(function(x,D,G){function Y(Be){Be>>=2;var Oe=re;return new J(_,Oe[Be+1],Oe[Be])}i(Y,"d");var J=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][D];G=gt(G),j(x,{name:G,fromWireType:Y,argPackAdvance:8,readValueFromPointer:Y},{ua:!0})},"b"),o:i(function(x,D){D=gt(D);var G=D==="std::string";j(x,{name:D,fromWireType:i(function(Y){var J=re[Y>>2],Be=Y+4;if(G)for(var Oe=Be,ve=0;ve<=J;++ve){var $e=Be+ve;if(ve==J||H[$e]==0){if(Oe=Oe?M(H,Oe,$e-Oe):"",Ke===void 0)var Ke=Oe;else Ke+="\0",Ke+=Oe;Oe=$e+1}}else{for(Ke=Array(J),ve=0;ve<J;++ve)Ke[ve]=String.fromCharCode(H[Be+ve]);Ke=Ke.join("")}return Ir(Y),Ke},"fromWireType"),toWireType:i(function(Y,J){J instanceof ArrayBuffer&&(J=new Uint8Array(J));var Be,Oe=typeof J=="string";if(Oe||J instanceof Uint8Array||J instanceof Uint8ClampedArray||J instanceof Int8Array||se("Cannot pass non-string to std::string"),G&&Oe){var ve=0;for(Be=0;Be<J.length;++Be){var $e=J.charCodeAt(Be);127>=$e?ve++:2047>=$e?ve+=2:55296<=$e&&57343>=$e?(ve+=4,++Be):ve+=3}Be=ve}else Be=J.length;if(ve=oi(4+Be+1),$e=ve+4,re[ve>>2]=Be,G&&Oe){if(Oe=$e,$e=Be+1,Be=H,0<$e){$e=Oe+$e-1;for(var Ke=0;Ke<J.length;++Ke){var At=J.charCodeAt(Ke);if(55296<=At&&57343>=At){var bt=J.charCodeAt(++Ke);At=65536+((At&1023)<<10)|bt&1023}if(127>=At){if(Oe>=$e)break;Be[Oe++]=At}else{if(2047>=At){if(Oe+1>=$e)break;Be[Oe++]=192|At>>6}else{if(65535>=At){if(Oe+2>=$e)break;Be[Oe++]=224|At>>12}else{if(Oe+3>=$e)break;Be[Oe++]=240|At>>18,Be[Oe++]=128|At>>12&63}Be[Oe++]=128|At>>6&63}Be[Oe++]=128|At&63}}Be[Oe]=0}}else if(Oe)for(Oe=0;Oe<Be;++Oe)Ke=J.charCodeAt(Oe),255<Ke&&(Ir($e),se("String has UTF-16 code units that do not fit in 8 bits")),H[$e+Oe]=Ke;else for(Oe=0;Oe<Be;++Oe)H[$e+Oe]=J[Oe];return Y!==null&&Y.push(Ir,ve),ve},"toWireType"),argPackAdvance:8,readValueFromPointer:to,V:i(function(Y){Ir(Y)},"V")})},"o"),i:i(function(x,D,G){if(G=gt(G),D===2)var Y=Ni,J=ja,Be=Pl,Oe=i(()=>we,"g"),ve=1;else D===4&&(Y=hs,J=Sa,Be=Mc,Oe=i(()=>re,"g"),ve=2);j(x,{name:G,fromWireType:i(function($e){for(var Ke=re[$e>>2],At=Oe(),bt,nn=$e+4,Nn=0;Nn<=Ke;++Nn){var _n=$e+4+Nn*D;(Nn==Ke||At[_n>>ve]==0)&&(nn=Y(nn,_n-nn),bt===void 0?bt=nn:(bt+="\0",bt+=nn),nn=_n+D)}return Ir($e),bt},"fromWireType"),toWireType:i(function($e,Ke){typeof Ke!="string"&&se("Cannot pass non-string to C++ string type "+G);var At=Be(Ke),bt=oi(4+At+D);return re[bt>>2]=At>>ve,J(Ke,bt+4,At+D),$e!==null&&$e.push(Ir,bt),bt},"toWireType"),argPackAdvance:8,readValueFromPointer:to,V:i(function($e){Ir($e)},"V")})},"i"),k:i(function(x,D,G,Y,J,Be){mt[x]={name:gt(D),fa:lt(G,Y),W:lt(J,Be),ia:[]}},"k"),h:i(function(x,D,G,Y,J,Be,Oe,ve,$e,Ke){mt[x].ia.push({oa:gt(D),ta:G,ra:lt(Y,J),sa:Be,za:Oe,ya:lt(ve,$e),Aa:Ke})},"h"),C:i(function(x,D){D=gt(D),j(x,{va:!0,name:D,argPackAdvance:0,fromWireType:i(function(){},"fromWireType"),toWireType:i(function(){},"toWireType")})},"C"),s:i(function(x,D,G,Y,J){x=Ft[x],D=De(D),G=ft(G);var Be=[];return re[Y>>2]=ut(Be),x(D,G,Be,J)},"s"),t:i(function(x,D,G,Y){x=Ft[x],D=De(D),G=ft(G),x(D,G,null,Y)},"t"),g:_i,m:i(function(x,D){var G=ao(x,D),Y=G[0];D=Y.name+"_$"+G.slice(1).map(function(Oe){return Oe.name}).join("_")+"$";var J=ra[D];if(J!==void 0)return J;var Be=Array(x-1);return J=Fn((Oe,ve,$e,Ke)=>{for(var At=0,bt=0;bt<x-1;++bt)Be[bt]=G[bt+1].readValueFromPointer(Ke+At),At+=G[bt+1].argPackAdvance;for(Oe=Oe[ve].apply(Oe,Be),bt=0;bt<x-1;++bt)G[bt+1].ma&&G[bt+1].ma(Be[bt]);if(!Y.va)return Y.toWireType($e,Oe)}),ra[D]=J},"m"),D:i(function(x){4<x&&(oe[x].ga+=1)},"D"),r:i(function(x){var D=De(x);tn(D),_i(x)},"r"),c:i(function(){qe("")},"c"),x:i(function(x,D,G){H.copyWithin(x,D,D+G)},"x"),w:i(function(x){var D=H.length;if(x>>>=0,2147483648<x)return!1;for(var G=1;4>=G;G*=2){var Y=D*(1+.2/G);Y=Math.min(Y,x+100663296);var J=Math;Y=Math.max(x,Y),J=J.min.call(J,2147483648,Y+(65536-Y%65536)%65536);e:{try{N.grow(J-_.byteLength+65535>>>16),ze();var Be=1;break e}catch{}Be=void 0}if(Be)return!0}return!1},"w"),z:i(function(){return 52},"z"),u:i(function(){return 70},"u"),y:i(function(x,D,G,Y){for(var J=0,Be=0;Be<G;Be++){var Oe=re[D>>2],ve=re[D+4>>2];D+=8;for(var $e=0;$e<ve;$e++){var Ke=H[Oe+$e],At=ni[x];Ke===0||Ke===10?((x===1?E:S)(M(At,0)),At.length=0):At.push(Ke)}J+=ve}return re[Y>>2]=J,0},"y")};(function(){function x(J){r.asm=J.exports,N=r.asm.E,ze(),ce=r.asm.J,ie.unshift(r.asm.F),Se--,r.monitorRunDependencies&&r.monitorRunDependencies(Se),Se==0&&(Je!==null&&(clearInterval(Je),Je=null),ye&&(J=ye,ye=null,J()))}i(x,"a");function D(J){x(J.instance)}i(D,"b");function G(J){return yt().then(function(Be){return WebAssembly.instantiate(Be,Y)}).then(function(Be){return Be}).then(J,function(Be){S("failed to asynchronously prepare wasm: "+Be),qe(Be)})}i(G,"c");var Y={a:no};if(Se++,r.monitorRunDependencies&&r.monitorRunDependencies(Se),r.instantiateWasm)try{return r.instantiateWasm(Y,x)}catch(J){S("Module.instantiateWasm callback failed with error: "+J),u(J)}return(function(){return v||typeof WebAssembly.instantiateStreaming!="function"||ct(je)||typeof fetch!="function"?G(D):fetch(je,{credentials:"same-origin"}).then(function(J){return WebAssembly.instantiateStreaming(J,Y).then(D,function(Be){return S("wasm streaming compile failed: "+Be),S("falling back to ArrayBuffer instantiation"),G(D)})})})().catch(u),{}})(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.F).apply(null,arguments)};var Ii=r.___getTypeName=function(){return(Ii=r.___getTypeName=r.asm.G).apply(null,arguments)};r.__embind_initialize_bindings=function(){return(r.__embind_initialize_bindings=r.asm.H).apply(null,arguments)};var oi=r._malloc=function(){return(oi=r._malloc=r.asm.I).apply(null,arguments)},Ir=r._free=function(){return(Ir=r._free=r.asm.K).apply(null,arguments)};r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.L).apply(null,arguments)};var va;ye=i(function x(){va||ia(),va||(ye=x)},"Lb");function ia(){function x(){if(!va&&(va=!0,r.calledRun=!0,!b)){if(P(ie),c(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;){var D=r.postRun.shift();ne.unshift(D)}P(ne)}}if(i(x,"a"),!(0<Se)){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)ee();P(ae),0<Se||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),x()},1)):x())}}if(i(ia,"Mb"),r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);0<r.preInit.length;)r.preInit.pop()();return ia(),o.ready})})(),lN=zF});var wu,uN,AN,uC,bb,xu,Rm,KF,t0,Rb,wm,xm,wb,dN,xb,Db,Fl,Tb,YF,fN,n0=L(()=>{wu=(function(e){return e[e.Auto=0]="Auto",e[e.FlexStart=1]="FlexStart",e[e.Center=2]="Center",e[e.FlexEnd=3]="FlexEnd",e[e.Stretch=4]="Stretch",e[e.Baseline=5]="Baseline",e[e.SpaceBetween=6]="SpaceBetween",e[e.SpaceAround=7]="SpaceAround",e[e.SpaceEvenly=8]="SpaceEvenly",e})({}),uN=(function(e){return e[e.BorderBox=0]="BorderBox",e[e.ContentBox=1]="ContentBox",e})({}),AN=(function(e){return e[e.Width=0]="Width",e[e.Height=1]="Height",e})({}),uC=(function(e){return e[e.Inherit=0]="Inherit",e[e.LTR=1]="LTR",e[e.RTL=2]="RTL",e})({}),bb=(function(e){return e[e.Flex=0]="Flex",e[e.None=1]="None",e[e.Contents=2]="Contents",e})({}),xu=(function(e){return e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom",e[e.Start=4]="Start",e[e.End=5]="End",e[e.Horizontal=6]="Horizontal",e[e.Vertical=7]="Vertical",e[e.All=8]="All",e})({}),Rm=(function(e){return e[e.None=0]="None",e[e.StretchFlexBasis=1]="StretchFlexBasis",e[e.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",e[e.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",e[e.All=2147483647]="All",e[e.Classic=2147483646]="Classic",e})({}),KF=(function(e){return e[e.WebFlexBasis=0]="WebFlexBasis",e})({}),t0=(function(e){return e[e.Column=0]="Column",e[e.ColumnReverse=1]="ColumnReverse",e[e.Row=2]="Row",e[e.RowReverse=3]="RowReverse",e})({}),Rb=(function(e){return e[e.Column=0]="Column",e[e.Row=1]="Row",e[e.All=2]="All",e})({}),wm=(function(e){return e[e.FlexStart=0]="FlexStart",e[e.Center=1]="Center",e[e.FlexEnd=2]="FlexEnd",e[e.SpaceBetween=3]="SpaceBetween",e[e.SpaceAround=4]="SpaceAround",e[e.SpaceEvenly=5]="SpaceEvenly",e})({}),xm=(function(e){return e[e.Error=0]="Error",e[e.Warn=1]="Warn",e[e.Info=2]="Info",e[e.Debug=3]="Debug",e[e.Verbose=4]="Verbose",e[e.Fatal=5]="Fatal",e})({}),wb=(function(e){return e[e.Undefined=0]="Undefined",e[e.Exactly=1]="Exactly",e[e.AtMost=2]="AtMost",e})({}),dN=(function(e){return e[e.Default=0]="Default",e[e.Text=1]="Text",e})({}),xb=(function(e){return e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Scroll=2]="Scroll",e})({}),Db=(function(e){return e[e.Static=0]="Static",e[e.Relative=1]="Relative",e[e.Absolute=2]="Absolute",e})({}),Fl=(function(e){return e[e.Undefined=0]="Undefined",e[e.Point=1]="Point",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto",e})({}),Tb=(function(e){return e[e.NoWrap=0]="NoWrap",e[e.Wrap=1]="Wrap",e[e.WrapReverse=2]="WrapReverse",e})({}),YF={ALIGN_AUTO:wu.Auto,ALIGN_FLEX_START:wu.FlexStart,ALIGN_CENTER:wu.Center,ALIGN_FLEX_END:wu.FlexEnd,ALIGN_STRETCH:wu.Stretch,ALIGN_BASELINE:wu.Baseline,ALIGN_SPACE_BETWEEN:wu.SpaceBetween,ALIGN_SPACE_AROUND:wu.SpaceAround,ALIGN_SPACE_EVENLY:wu.SpaceEvenly,BOX_SIZING_BORDER_BOX:uN.BorderBox,BOX_SIZING_CONTENT_BOX:uN.ContentBox,DIMENSION_WIDTH:AN.Width,DIMENSION_HEIGHT:AN.Height,DIRECTION_INHERIT:uC.Inherit,DIRECTION_LTR:uC.LTR,DIRECTION_RTL:uC.RTL,DISPLAY_FLEX:bb.Flex,DISPLAY_NONE:bb.None,DISPLAY_CONTENTS:bb.Contents,EDGE_LEFT:xu.Left,EDGE_TOP:xu.Top,EDGE_RIGHT:xu.Right,EDGE_BOTTOM:xu.Bottom,EDGE_START:xu.Start,EDGE_END:xu.End,EDGE_HORIZONTAL:xu.Horizontal,EDGE_VERTICAL:xu.Vertical,EDGE_ALL:xu.All,ERRATA_NONE:Rm.None,ERRATA_STRETCH_FLEX_BASIS:Rm.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:Rm.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:Rm.AbsolutePercentAgainstInnerSize,ERRATA_ALL:Rm.All,ERRATA_CLASSIC:Rm.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:KF.WebFlexBasis,FLEX_DIRECTION_COLUMN:t0.Column,FLEX_DIRECTION_COLUMN_REVERSE:t0.ColumnReverse,FLEX_DIRECTION_ROW:t0.Row,FLEX_DIRECTION_ROW_REVERSE:t0.RowReverse,GUTTER_COLUMN:Rb.Column,GUTTER_ROW:Rb.Row,GUTTER_ALL:Rb.All,JUSTIFY_FLEX_START:wm.FlexStart,JUSTIFY_CENTER:wm.Center,JUSTIFY_FLEX_END:wm.FlexEnd,JUSTIFY_SPACE_BETWEEN:wm.SpaceBetween,JUSTIFY_SPACE_AROUND:wm.SpaceAround,JUSTIFY_SPACE_EVENLY:wm.SpaceEvenly,LOG_LEVEL_ERROR:xm.Error,LOG_LEVEL_WARN:xm.Warn,LOG_LEVEL_INFO:xm.Info,LOG_LEVEL_DEBUG:xm.Debug,LOG_LEVEL_VERBOSE:xm.Verbose,LOG_LEVEL_FATAL:xm.Fatal,MEASURE_MODE_UNDEFINED:wb.Undefined,MEASURE_MODE_EXACTLY:wb.Exactly,MEASURE_MODE_AT_MOST:wb.AtMost,NODE_TYPE_DEFAULT:dN.Default,NODE_TYPE_TEXT:dN.Text,OVERFLOW_VISIBLE:xb.Visible,OVERFLOW_HIDDEN:xb.Hidden,OVERFLOW_SCROLL:xb.Scroll,POSITION_TYPE_STATIC:Db.Static,POSITION_TYPE_RELATIVE:Db.Relative,POSITION_TYPE_ABSOLUTE:Db.Absolute,UNIT_UNDEFINED:Fl.Undefined,UNIT_POINT:Fl.Point,UNIT_PERCENT:Fl.Percent,UNIT_AUTO:Fl.Auto,WRAP_NO_WRAP:Tb.NoWrap,WRAP_WRAP:Tb.Wrap,WRAP_WRAP_REVERSE:Tb.WrapReverse},fN=YF});function _b(e){function o(u,f,m){let E=u[f];u[f]=function(){for(var S=arguments.length,v=new Array(S),R=0;R<S;R++)v[R]=arguments[R];return m.call(this,E,...v)}}i(o,"patch");for(let u of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let f={[Fl.Point]:e.Node.prototype[u],[Fl.Percent]:e.Node.prototype[`${u}Percent`],[Fl.Auto]:e.Node.prototype[`${u}Auto`]};o(e.Node.prototype,u,function(m){for(var E=arguments.length,S=new Array(E>1?E-1:0),v=1;v<E;v++)S[v-1]=arguments[v];let R=S.pop(),N,b;if(R==="auto")N=Fl.Auto,b=void 0;else if(typeof R=="object")N=R.unit,b=R.valueOf();else if(N=typeof R=="string"&&R.endsWith("%")?Fl.Percent:Fl.Point,b=parseFloat(R),R!==void 0&&!Number.isNaN(R)&&Number.isNaN(b))throw new Error(`Invalid value ${R} for ${u}`);if(!f[N])throw new Error(`Failed to execute "${u}": Unsupported unit '${R}'`);return b!==void 0?f[N].call(this,...S,b):f[N].call(this,...S)})}function r(u){return e.MeasureCallback.implement({measure:i(function(){let{width:f,height:m}=u(...arguments);return{width:f??NaN,height:m??NaN}},"measure")})}i(r,"wrapMeasureFunction"),o(e.Node.prototype,"setMeasureFunc",function(u,f){return f?u.call(this,r(f)):this.unsetMeasureFunc()});function c(u){return e.DirtiedCallback.implement({dirtied:u})}return i(c,"wrapDirtiedFunc"),o(e.Node.prototype,"setDirtiedFunc",function(u,f){u.call(this,c(f))}),o(e.Config.prototype,"free",function(){e.Config.destroy(this)}),o(e.Node,"create",(u,f)=>f?e.Node.createWithConfig(f):e.Node.createDefault()),o(e.Node.prototype,"free",function(){e.Node.destroy(this)}),o(e.Node.prototype,"freeRecursive",function(){for(let u=0,f=this.getChildCount();u<f;++u)this.getChild(0).freeRecursive();this.free()}),o(e.Node.prototype,"calculateLayout",function(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:uC.LTR;return u.call(this,f,m,E)}),{Config:e.Config,Node:e.Node,...fN}}var gN=L(()=>{n0();n0();i(_b,"wrapAssembly")});var qF,st,XA=L(async()=>{cN();gN();n0();qF=_b(await lN()),st=qF});function jF(){let e=new Map;for(let[o,r]of Object.entries(Yo)){for(let[c,u]of Object.entries(r))Yo[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},r[c]=Yo[c],e.set(u[0],u[1]);Object.defineProperty(Yo,o,{value:r,enumerable:!1})}return Object.defineProperty(Yo,"codes",{value:e,enumerable:!1}),Yo.color.close="\x1B[39m",Yo.bgColor.close="\x1B[49m",Yo.color.ansi=pN(),Yo.color.ansi256=mN(),Yo.color.ansi16m=hN(),Yo.bgColor.ansi=pN(10),Yo.bgColor.ansi256=mN(10),Yo.bgColor.ansi16m=hN(10),Object.defineProperties(Yo,{rgbToAnsi256:{value(o,r,c){return o===r&&r===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(r/255*5)+Math.round(c/255*5)},enumerable:!1},hexToRgb:{value(o){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!r)return[0,0,0];let[c]=r;c.length===3&&(c=[...c].map(f=>f+f).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i(o=>Yo.rgbToAnsi256(...Yo.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let r,c,u;if(o>=232)r=((o-232)*10+8)/255,c=r,u=r;else{o-=16;let E=o%36;r=Math.floor(o/36)/5,c=Math.floor(E/6)/5,u=E%6/5}let f=Math.max(r,c,u)*2;if(f===0)return 30;let m=30+(Math.round(u)<<2|Math.round(c)<<1|Math.round(r));return f===2&&(m+=60),m},enumerable:!1},rgbToAnsi:{value:i((o,r,c)=>Yo.ansi256ToAnsi(Yo.rgbToAnsi256(o,r,c)),"value"),enumerable:!1},hexToAnsi:{value:i(o=>Yo.ansi256ToAnsi(Yo.hexToAnsi256(o)),"value"),enumerable:!1}}),Yo}var pN,mN,hN,Yo,xZ,PF,JF,DZ,VF,Ro,AC=L(()=>{pN=i((e=0)=>o=>`\x1B[${o+e}m`,"wrapAnsi16"),mN=i((e=0)=>o=>`\x1B[${38+e};5;${o}m`,"wrapAnsi256"),hN=i((e=0)=>(o,r,c)=>`\x1B[${38+e};2;${o};${r};${c}m`,"wrapAnsi16m"),Yo={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},xZ=Object.keys(Yo.modifier),PF=Object.keys(Yo.color),JF=Object.keys(Yo.bgColor),DZ=[...PF,...JF];i(jF,"assembleStyles");VF=jF(),Ro=VF});function Ws(e,o,r){return C5(String(e)).replaceAll(`\r
|
|
37
|
+
`,`
|
|
38
|
+
`).split(`
|
|
39
|
+
`).map(c=>E5(m5(c),o,r)).join(`
|
|
40
|
+
`)}var Dm,vN,QN,bN,RN,wN,r0,xN,DN,TN,Mb,Ob,Hb,_N,NN,XF,MN,ON,ZF,WF,$F,HN,kN,e5,t5,EN,UN,n5,dC,CN,yN,IN,o5,LN,BN,kb,Tm,GN,r5,i5,a5,FN,o0,SN,s5,l5,zN,c5,u5,A5,d5,f5,g5,Nb,p5,m5,h5,E5,C5,fC=L(()=>{Ca();AC();Dm="\x1B",vN="\x07",QN="\x9B",bN="[",RN="]",wN="m",r0=0,xN=39,DN=49,TN=59,Mb=38,Ob=48,Hb=58,_N=2,NN=5,XF=`${RN}8;`,MN=new Set([Dm,QN]),ON=[...MN].join(""),ZF=`(?:${Dm}\\${bN}|${QN})`,WF="[0-?]*[ -/]*[@-~]",$F=`(?<sgr>[0-9;:]*)${wN}`,HN=`(?:${vN}|${Dm}\\\\)`,kN=String.raw`[^\u0000-\u001F\u007F-\u009F]*`,e5=String.raw`8;(?<parameters>[^;\u0000-\u001F\u007F-\u009F]*);(?<uri>${kN})${HN}`,t5=`${kN}${HN}`,EN=new RegExp(`${ZF}(?:${$F}|${WF})|${Dm}\\${RN}(?:${e5}|${t5})`,"y"),UN=new Set(Ro.codes.values());UN.delete(r0);n5=new Intl.Segmenter,dC=i(e=>Ot(e,{countAnsiEscapeCodes:!0}),"getStringWidth"),CN=8,yN=new RegExp(`[${ON}]`,"g"),IN=new RegExp(`[\\n${ON}]`,"g"),o5=/^[ -~]*$/,LN=i(e=>`${Dm}${bN}${e}${wN}`,"wrapAnsiCode"),BN=i((e,o="")=>`${Dm}${XF}${o};${e}${vN}`,"wrapAnsiHyperlink"),kb=i((e,o)=>{if(MN.has(e[o]))return EN.lastIndex=o,EN.exec(e)??void 0},"matchAnsiEscape"),Tm=i((e,o,r=()=>{})=>{let c=0,u=0;for(;u<e.length;){yN.lastIndex=u;let f=yN.exec(e);if(!f)break;let m=kb(e,f.index);if(!m){u=f.index+1;continue}f.index>c&&o(e.slice(c,f.index)),r(m[0]),u=f.index+m[0].length,c=u}c<e.length&&o(e.slice(c))},"forEachSegment"),GN=i(e=>{let o="";return Tm(e,r=>{o+=r}),dC(o)},"getWidth"),r5=i(e=>{let o=[];return Tm(e,r=>{if(o5.test(r)){for(let c of r)o.push({value:c,width:1});return}for(let{segment:c}of n5.segment(r))o.push({value:c,width:dC(c)})},r=>{o.push({value:r,width:0})}),o},"getTokens"),i5=i(e=>{let o={value:"",plainText:""},r=[o];Tm(e,c=>{let u=c.split(" ");o.value+=u[0],o.plainText+=u[0];for(let f=1;f<u.length;f++)o={value:u[f],plainText:u[f]},r.push(o)},c=>{o.value+=c});for(let c of r)c.width=dC(c.plainText);return r},"splitWords"),a5=i(e=>{let o=e.split(":"),r=Number.parseInt(o[0],10),c=Number.parseInt(o[1],10);if(![Mb,Ob,Hb].includes(r))return;if(c===NN&&o.length===3&&/^\d+$/.test(o[2]))return{code:r,open:e,hasArguments:!0};if(c!==_N)return;let u=o.length===6?o.slice(3):o.slice(2),f=o.length===6?o[2]:void 0;if(u.length===3&&u.every(m=>/^\d+$/.test(m))&&(f===void 0||/^\d*$/.test(f)))return{code:r,open:e,hasArguments:!0}},"getColonColorToken"),FN=i(e=>{let o=e.split(";"),r=[];for(let c=0;c<o.length;c++){let u=o[c];if(u.includes(":")){let m=a5(u);m&&r.push(m);continue}let f=u===""?r0:Number.parseInt(u,10);if(Number.isFinite(f)){if(f===Mb||f===Ob||f===Hb){if(c+1>=o.length)break;let m=Number.parseInt(o[c+1],10),E=Number.parseInt(o[c+2],10);if(m===NN&&Number.isFinite(E)){r.push({code:f,open:[f,m,E].join(";"),hasArguments:!0}),c+=2;continue}let S=Number.parseInt(o[c+2],10),v=Number.parseInt(o[c+3],10),R=Number.parseInt(o[c+4],10);if(m===_N&&Number.isFinite(S)&&Number.isFinite(v)&&Number.isFinite(R)){r.push({code:f,open:[f,m,S,v,R].join(";"),hasArguments:!0}),c+=4;continue}break}r.push({code:f,open:String(f),hasArguments:!1})}}return r},"getSgrTokens"),o0=i((e,o)=>{let r=e.findIndex(c=>c.family===o);r!==-1&&e.splice(r,1)},"removeActiveStyle"),SN=i((e,o)=>{o0(e,o.family),e.push(o)},"upsertActiveStyle"),s5=i((e,o)=>{for(let r=e.length-1;r>=0;r--){let c=e[r];c.family.startsWith("modifier-")&&c.close===o&&e.splice(r,1)}},"removeModifierStylesByClose"),l5=i(e=>{let{code:o,open:r,hasArguments:c}=e;if(o>=30&&o<=37||o>=90&&o<=97||o===Mb&&c)return{family:"foreground",open:r,close:xN};if(o>=40&&o<=47||o>=100&&o<=107||o===Ob&&c)return{family:"background",open:r,close:DN};if(o===Hb&&c)return{family:"underlineColor",open:r,close:TN}},"getColorStyle"),zN=i((e,o)=>e===r0?(o.length=0,!0):e===xN?(o0(o,"foreground"),!0):e===DN?(o0(o,"background"),!0):e===TN?(o0(o,"underlineColor"),!0):UN.has(e)?(s5(o,e),!0):!1,"applySgrResetCode"),c5=i((e,o)=>{let{code:r}=e;if(zN(r,o))return;let c=l5(e);if(c){SN(o,c);return}let u=Ro.codes.get(r);u!==void 0&&u!==r0&&SN(o,{family:`modifier-${r}`,open:e.open,close:u})},"applySgrToken"),u5=i((e,o)=>{for(let r of FN(e))c5(r,o)},"applySgrParameters"),A5=i((e,o)=>{for(let{code:r}of FN(e))zN(r,o)},"applySgrResets"),d5=i((e,o,r)=>{let c=o;for(;c<e.length;){let u=kb(e,c);if(!u)break;u.groups.sgr!==void 0&&A5(u.groups.sgr,r),c+=u[0].length}},"applyLeadingSgrResets"),f5=i(e=>[...e].reverse().map(o=>LN(o.close)).join(""),"getClosingSgrSequence"),g5=i(e=>e.map(o=>LN(o.open)).join(""),"getOpeningSgrSequence"),Nb=i((e,o,r,c)=>{let u=r5(o),f=c;for(let m=0;m<u.length;m++){let E=u[m];E.width>0&&f>0&&f+E.width>r&&(e.push(""),f=0),e[e.length-1]+=E.value,f+=E.width,f===r&&m<u.length-1&&(e.push(""),f=0)}return!f&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop()),GN(e.at(-1))},"wrapWord"),p5=i(e=>{if(!e.includes(" "))return e;let o=[];Tm(e,r=>{o.push({value:r,isEscape:!1})},r=>{o.push({value:r,isEscape:!0})});for(let r=o.length-1;r>=0;r--){let c=o[r];if(c.isEscape)continue;let u=c.value.length;for(;u>0&&c.value[u-1]===" ";)u--;if(c.value=c.value.slice(0,u),dC(c.value)>0)break}return o.map(r=>r.value).join("")},"stringVisibleTrimSpacesRight"),m5=i(e=>{if(!e.includes(" "))return e;let o=0,r="",c="";return Tm(e,i(f=>{let m=f.split(" ");for(let[E,S]of m.entries())if(r+=S,c+=S,E<m.length-1){o+=dC(c),c="";let v=CN-o%CN;r+=" ".repeat(v),o+=v}},"expandPlainText"),f=>{r+=f}),r},"expandTabs"),h5=i(e=>{let o="",r,c=[],u=0,f=0;for(;u<e.length;){IN.lastIndex=u;let m=IN.exec(e);if(!m)break;if(u=m.index,m[0]!==`
|
|
41
|
+
`){let E=kb(e,u);if(!E){u++;continue}let{groups:S}=E;S.sgr!==void 0?u5(S.sgr,c):S.uri!==void 0&&(r=S.uri.length===0?void 0:{parameters:S.parameters,uri:S.uri}),u+=E[0].length;continue}if(o+=e.slice(f,u),u>f&&(r&&(o+=BN("")),o+=f5(c)),o+=`
|
|
42
|
+
`,u++,f=u,u<e.length&&e[u]!==`
|
|
43
|
+
`){let E=[...c];d5(e,u,E),o+=g5(E),r&&(o+=BN(r.uri,r.parameters))}}return o+e.slice(f)},"restoreStylesAcrossRows"),E5=i((e,o,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let c=i5(e),u=[""],f=0,m=-1,E=!0;for(let S of c){let v=u.length-1;if(r.trim!==!1&&m!==v){let R=u[v],N=R.trimStart();N.length!==R.length&&(u[v]=N,f=GN(N)),N.length>0&&(m=v)}if(E?E=!1:(f>=o&&(r.wordWrap===!1||r.trim===!1)&&(u.push(""),f=0),(f>0||r.trim===!1)&&(u[u.length-1]+=" ",f++)),r.hard&&r.wordWrap!==!1&&S.width>o){let R=o-f,N=1+Math.floor((S.width-R-1)/o);Math.floor((S.width-1)/o)<N&&(u.push(""),f=0),f=Nb(u,S.value,o,f);continue}if(f+S.width>o&&f>0&&S.width>0){if(r.wordWrap===!1&&f<o){f=Nb(u,S.value,o,f);continue}u.push(""),f=0}if(f+S.width>o&&r.wordWrap===!1){f=Nb(u,S.value,o,f);continue}u[u.length-1]+=S.value,f+=S.width}return r.trim!==!1&&(u=u.map(S=>p5(S))),h5(u.join(`
|
|
44
|
+
`))},"exec"),C5=i(e=>{let o="";return Tm(e,r=>{o+=r.normalize()},r=>{o+=r}),o},"normalizeText");i(Ws,"wrapAnsi")});import qf from"node:process";import{execFileSync as y5}from"node:child_process";import gC from"node:fs";import I5 from"node:tty";function Gb(){let{env:e,stdout:o,stderr:r}=qf;if(o?.columns&&o?.rows)return i0(o.columns,o.rows);if(r?.columns&&r?.rows)return i0(r.columns,r.rows);if(e.COLUMNS&&e.LINES)return i0(e.COLUMNS,e.LINES);let c={columns:YN,rows:qN};return qf.platform==="win32"?Ub()??c:qf.platform==="darwin"?KN()??Ub()??c:KN()??Ub()??S5()??c}var YN,qN,Lb,i0,PN,B5,KN,Ub,S5,JN=L(()=>{YN=80,qN=24,Lb=i((e,o,{shell:r,env:c}={})=>y5(e,o,{encoding:"utf8",stdio:["ignore","pipe","ignore"],timeout:500,shell:r,env:c}).trim(),"exec"),i0=i((e,o)=>({columns:Number.parseInt(e,10),rows:Number.parseInt(o,10)}),"create"),PN=i((e,o)=>{let{columns:r,rows:c}=i0(e,o);if(!(Number.isNaN(r)||Number.isNaN(c))&&!(r===YN&&c===qN))return{columns:r,rows:c}},"createIfNotDefault"),B5=i(()=>{if(qf.platform!=="linux")return!0;try{let e=gC.readFileSync("/proc/self/stat","utf8"),o=e.lastIndexOf(") ");if(o===-1)return!1;let r=e.slice(o+2).trim().split(/\s+/),c=Number.parseInt(r[2],10),u=Number.parseInt(r[5],10);return Number.isNaN(c)||Number.isNaN(u)||u<=0?!1:c===u}catch{return!1}},"isForegroundProcess");i(Gb,"terminalSize");KN=i(()=>{try{let e=qf.platform==="darwin"?gC.constants.O_EVTONLY|gC.constants.O_NONBLOCK:gC.constants.O_NONBLOCK,{columns:o,rows:r}=I5.WriteStream(gC.openSync("/dev/tty",e));return{columns:o,rows:r}}catch{}},"devTty"),Ub=i(()=>{try{let e=Lb("tput",["cols"],{env:{TERM:"dumb",...qf.env}}),o=Lb("tput",["lines"],{env:{TERM:"dumb",...qf.env}});if(e&&o)return PN(e,o)}catch{}},"tput"),S5=i(()=>{try{if(!B5())return;let e=Lb("resize",["-u"]).match(/\d+/g);if(e.length===2)return PN(e[0],e[1])}catch{}},"resize")});var Du,Fb=L(()=>{JN();Du=i(e=>{let{columns:o,rows:r}=e;if(o&&r)return{columns:o,rows:r};let c=Gb();return{columns:o||c.columns||80,rows:r||c.rows||24}},"getWindowSize")});var oM=Yn(qo=>{"use strict";function qb(e,o){var r=e.length;e.push(o);e:for(;0<r;){var c=r-1>>>1,u=e[c];if(0<a0(u,o))e[c]=o,e[r]=u,r=c;else break e}}i(qb,"push");function Bc(e){return e.length===0?null:e[0]}i(Bc,"peek");function l0(e){if(e.length===0)return null;var o=e[0],r=e.pop();if(r!==o){e[0]=r;e:for(var c=0,u=e.length,f=u>>>1;c<f;){var m=2*(c+1)-1,E=e[m],S=m+1,v=e[S];if(0>a0(E,r))S<u&&0>a0(v,E)?(e[c]=v,e[S]=r,c=S):(e[c]=E,e[m]=r,c=m);else if(S<u&&0>a0(v,r))e[c]=v,e[S]=r,c=S;else break e}}return o}i(l0,"pop");function a0(e,o){var r=e.sortIndex-o.sortIndex;return r!==0?r:e.id-o.id}i(a0,"compare");qo.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(jN=performance,qo.unstable_now=function(){return jN.now()}):(zb=Date,VN=zb.now(),qo.unstable_now=function(){return zb.now()-VN});var jN,zb,VN,Tu=[],ZA=[],v5=1,$s=null,Xi=3,Pb=!1,pC=!1,mC=!1,Jb=!1,WN=typeof setTimeout=="function"?setTimeout:null,$N=typeof clearTimeout=="function"?clearTimeout:null,XN=typeof setImmediate<"u"?setImmediate:null;function s0(e){for(var o=Bc(ZA);o!==null;){if(o.callback===null)l0(ZA);else if(o.startTime<=e)l0(ZA),o.sortIndex=o.expirationTime,qb(Tu,o);else break;o=Bc(ZA)}}i(s0,"advanceTimers");function jb(e){if(mC=!1,s0(e),!pC)if(Bc(Tu)!==null)pC=!0,Nm||(Nm=!0,_m());else{var o=Bc(ZA);o!==null&&Vb(jb,o.startTime-e)}}i(jb,"handleTimeout");var Nm=!1,hC=-1,eM=5,tM=-1;function nM(){return Jb?!0:!(qo.unstable_now()-tM<eM)}i(nM,"shouldYieldToHost");function Kb(){if(Jb=!1,Nm){var e=qo.unstable_now();tM=e;var o=!0;try{e:{pC=!1,mC&&(mC=!1,$N(hC),hC=-1),Pb=!0;var r=Xi;try{t:{for(s0(e),$s=Bc(Tu);$s!==null&&!($s.expirationTime>e&&nM());){var c=$s.callback;if(typeof c=="function"){$s.callback=null,Xi=$s.priorityLevel;var u=c($s.expirationTime<=e);if(e=qo.unstable_now(),typeof u=="function"){$s.callback=u,s0(e),o=!0;break t}$s===Bc(Tu)&&l0(Tu),s0(e)}else l0(Tu);$s=Bc(Tu)}if($s!==null)o=!0;else{var f=Bc(ZA);f!==null&&Vb(jb,f.startTime-e),o=!1}}break e}finally{$s=null,Xi=r,Pb=!1}o=void 0}}finally{o?_m():Nm=!1}}}i(Kb,"performWorkUntilDeadline");var _m;typeof XN=="function"?_m=i(function(){XN(Kb)},"schedulePerformWorkUntilDeadline"):typeof MessageChannel<"u"?(Yb=new MessageChannel,ZN=Yb.port2,Yb.port1.onmessage=Kb,_m=i(function(){ZN.postMessage(null)},"schedulePerformWorkUntilDeadline")):_m=i(function(){WN(Kb,0)},"schedulePerformWorkUntilDeadline");var Yb,ZN;function Vb(e,o){hC=WN(function(){e(qo.unstable_now())},o)}i(Vb,"requestHostTimeout");qo.unstable_IdlePriority=5;qo.unstable_ImmediatePriority=1;qo.unstable_LowPriority=4;qo.unstable_NormalPriority=3;qo.unstable_Profiling=null;qo.unstable_UserBlockingPriority=2;qo.unstable_cancelCallback=function(e){e.callback=null};qo.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):eM=0<e?Math.floor(1e3/e):5};qo.unstable_getCurrentPriorityLevel=function(){return Xi};qo.unstable_next=function(e){switch(Xi){case 1:case 2:case 3:var o=3;break;default:o=Xi}var r=Xi;Xi=o;try{return e()}finally{Xi=r}};qo.unstable_requestPaint=function(){Jb=!0};qo.unstable_runWithPriority=function(e,o){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Xi;Xi=e;try{return o()}finally{Xi=r}};qo.unstable_scheduleCallback=function(e,o,r){var c=qo.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?c+r:c):r=c,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=r+u,e={id:v5++,callback:o,priorityLevel:e,startTime:r,expirationTime:u,sortIndex:-1},r>c?(e.sortIndex=r,qb(ZA,e),Bc(Tu)===null&&e===Bc(ZA)&&(mC?($N(hC),hC=-1):mC=!0,Vb(jb,r-c))):(e.sortIndex=u,qb(Tu,e),pC||Pb||(pC=!0,Nm||(Nm=!0,_m()))),e};qo.unstable_shouldYield=nM;qo.unstable_wrapCallback=function(e){var o=Xi;return function(){var r=Xi;Xi=o;try{return e.apply(this,arguments)}finally{Xi=r}}}});var rM=Yn(Po=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){if(re=!1,ce){var ye=Po.unstable_now();ne=ye;var qe=!0;try{e:{we=!1,Qe&&(Qe=!1,Ee(ae),ae=-1),$=!0;var ct=H;try{t:{for(f(ye),k=r(b);k!==null&&!(k.expirationTime>ye&&E());){var je=k.callback;if(typeof je=="function"){k.callback=null,H=k.priorityLevel;var W=je(k.expirationTime<=ye);if(ye=Po.unstable_now(),typeof W=="function"){k.callback=W,f(ye),qe=!0;break t}k===r(b)&&c(b),f(ye)}else c(b);k=r(b)}if(k!==null)qe=!0;else{var it=r(M);it!==null&&S(m,it.startTime-ye),qe=!1}}break e}finally{k=null,H=ct,$=!1}qe=void 0}}finally{qe?ee():ce=!1}}}i(e,"performWorkUntilDeadline");function o(ye,qe){var ct=ye.length;ye.push(qe);e:for(;0<ct;){var je=ct-1>>>1,W=ye[je];if(0<u(W,qe))ye[je]=qe,ye[ct]=W,ct=je;else break e}}i(o,"push");function r(ye){return ye.length===0?null:ye[0]}i(r,"peek");function c(ye){if(ye.length===0)return null;var qe=ye[0],ct=ye.pop();if(ct!==qe){ye[0]=ct;e:for(var je=0,W=ye.length,it=W>>>1;je<it;){var yt=2*(je+1)-1,P=ye[yt],Ce=yt+1,Ve=ye[Ce];if(0>u(P,ct))Ce<W&&0>u(Ve,P)?(ye[je]=Ve,ye[Ce]=ct,je=Ce):(ye[je]=P,ye[yt]=ct,je=yt);else if(Ce<W&&0>u(Ve,ct))ye[je]=Ve,ye[Ce]=ct,je=Ce;else break e}}return qe}i(c,"pop");function u(ye,qe){var ct=ye.sortIndex-qe.sortIndex;return ct!==0?ct:ye.id-qe.id}i(u,"compare");function f(ye){for(var qe=r(M);qe!==null;){if(qe.callback===null)c(M);else if(qe.startTime<=ye)c(M),qe.sortIndex=qe.expirationTime,o(b,qe);else break;qe=r(M)}}i(f,"advanceTimers");function m(ye){if(Qe=!1,f(ye),!we)if(r(b)!==null)we=!0,ce||(ce=!0,ee());else{var qe=r(M);qe!==null&&S(m,qe.startTime-ye)}}i(m,"handleTimeout");function E(){return re?!0:!(Po.unstable_now()-ne<ie)}i(E,"shouldYieldToHost");function S(ye,qe){ae=Me(function(){ye(Po.unstable_now())},qe)}if(i(S,"requestHostTimeout"),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Po.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;Po.unstable_now=function(){return v.now()}}else{var R=Date,N=R.now();Po.unstable_now=function(){return R.now()-N}}var b=[],M=[],_=1,k=null,H=3,$=!1,we=!1,Qe=!1,re=!1,Me=typeof setTimeout=="function"?setTimeout:null,Ee=typeof clearTimeout=="function"?clearTimeout:null,ze=typeof setImmediate<"u"?setImmediate:null,ce=!1,ae=-1,ie=5,ne=-1;if(typeof ze=="function")var ee=i(function(){ze(e)},"schedulePerformWorkUntilDeadline");else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Je=Se.port2;Se.port1.onmessage=e,ee=i(function(){Je.postMessage(null)},"schedulePerformWorkUntilDeadline")}else ee=i(function(){Me(e,0)},"schedulePerformWorkUntilDeadline");Po.unstable_IdlePriority=5,Po.unstable_ImmediatePriority=1,Po.unstable_LowPriority=4,Po.unstable_NormalPriority=3,Po.unstable_Profiling=null,Po.unstable_UserBlockingPriority=2,Po.unstable_cancelCallback=function(ye){ye.callback=null},Po.unstable_forceFrameRate=function(ye){0>ye||125<ye?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<ye?Math.floor(1e3/ye):5},Po.unstable_getCurrentPriorityLevel=function(){return H},Po.unstable_next=function(ye){switch(H){case 1:case 2:case 3:var qe=3;break;default:qe=H}var ct=H;H=qe;try{return ye()}finally{H=ct}},Po.unstable_requestPaint=function(){re=!0},Po.unstable_runWithPriority=function(ye,qe){switch(ye){case 1:case 2:case 3:case 4:case 5:break;default:ye=3}var ct=H;H=ye;try{return qe()}finally{H=ct}},Po.unstable_scheduleCallback=function(ye,qe,ct){var je=Po.unstable_now();switch(typeof ct=="object"&&ct!==null?(ct=ct.delay,ct=typeof ct=="number"&&0<ct?je+ct:je):ct=je,ye){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ct+W,ye={id:_++,callback:qe,priorityLevel:ye,startTime:ct,expirationTime:W,sortIndex:-1},ct>je?(ye.sortIndex=ct,o(M,ye),r(b)===null&&ye===r(M)&&(Qe?(Ee(ae),ae=-1):Qe=!0,S(m,ct-je))):(ye.sortIndex=W,o(b,ye),we||$||(we=!0,ce||(ce=!0,ee()))),ye},Po.unstable_shouldYield=E,Po.unstable_wrapCallback=function(ye){var qe=H;return function(){var ct=H;H=qe;try{return ye.apply(this,arguments)}finally{H=ct}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var c0=Yn((XZ,Xb)=>{"use strict";process.env.NODE_ENV==="production"?Xb.exports=oM():Xb.exports=rM()});var iM=Yn((ZZ,EC)=>{"use strict";EC.exports=function(e){function o(a,s,A,g){return new Lg(a,s,A,g)}i(o,"createFiber");function r(){}i(r,"noop");function c(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)s+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}i(c,"formatProdErrorMessage");function u(a){var s=a,A=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(A=s.return),a=s.return;while(a)}return s.tag===3?A:null}i(u,"getNearestMountedFiber");function f(a){if(u(a)!==a)throw Error(c(188))}i(f,"assertIsMounted");function m(a){var s=a.alternate;if(!s){if(s=u(a),s===null)throw Error(c(188));return s!==a?null:a}for(var A=a,g=s;;){var y=A.return;if(y===null)break;var I=y.alternate;if(I===null){if(g=y.return,g!==null){A=g;continue}break}if(y.child===I.child){for(I=y.child;I;){if(I===A)return f(y),a;if(I===g)return f(y),s;I=I.sibling}throw Error(c(188))}if(A.return!==g.return)A=y,g=I;else{for(var T=!1,F=y.child;F;){if(F===A){T=!0,A=y,g=I;break}if(F===g){T=!0,g=y,A=I;break}F=F.sibling}if(!T){for(F=I.child;F;){if(F===A){T=!0,A=I,g=y;break}if(F===g){T=!0,g=I,A=y;break}F=F.sibling}if(!T)throw Error(c(189))}}if(A.alternate!==g)throw Error(c(190))}if(A.tag!==3)throw Error(c(188));return A.stateNode.current===A?a:s}i(m,"findCurrentFiberUsingSlowPath");function E(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=E(a),s!==null)return s;a=a.sibling}return null}i(E,"findCurrentHostFiberImpl");function S(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(a.tag!==4&&(s=S(a),s!==null))return s;a=a.sibling}return null}i(S,"findCurrentHostFiberWithNoPortalsImpl");function v(a){return a===null||typeof a!="object"?null:(a=Lh&&a[Lh]||a["@@iterator"],typeof a=="function"?a:null)}i(v,"getIteratorFn");function R(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===Gh?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case zc:return"Fragment";case Pd:return"Profiler";case kh:return"StrictMode";case Kc:return"Suspense";case Zn:return"SuspenseList";case Pg:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case tc:return"Portal";case Il:return a.displayName||"Context";case qg:return(a._context.displayName||"Context")+".Consumer";case oA:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Uh:return s=a.displayName||null,s!==null?s:R(a.type)||"Memo";case nc:s=a._payload,a=a._init;try{return R(a(s))}catch{}}return null}i(R,"getComponentNameFromType");function N(a){return{current:a}}i(N,"createCursor");function b(a){0>cA||(a.current=tf[cA],tf[cA]=null,cA--)}i(b,"pop");function M(a,s){cA++,tf[cA]=a.current,a.current=s}i(M,"push");function _(a){return a>>>=0,a===0?32:31-(II(a)/BI|0)|0}i(_,"clz32Fallback");function k(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}i(k,"getHighestPriorityLanes");function H(a,s,A){var g=a.pendingLanes;if(g===0)return 0;var y=0,I=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var F=g&134217727;return F!==0?(g=F&~I,g!==0?y=k(g):(T&=F,T!==0?y=k(T):A||(A=F&~a,A!==0&&(y=k(A))))):(F=g&~I,F!==0?y=k(F):T!==0?y=k(T):A||(A=g&~a,A!==0&&(y=k(A)))),y===0?0:s!==0&&s!==y&&(s&I)===0&&(I=y&-y,A=s&-s,I>=A||I===32&&(A&4194048)!==0)?s:y}i(H,"getNextLanes");function $(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}i($,"checkIfRootIsPrerendering");function we(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+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 s+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}}i(we,"computeExpirationTime");function Qe(){var a=uA;return uA<<=1,(uA&62914560)===0&&(uA=4194304),a}i(Qe,"claimNextRetryLane");function re(a){for(var s=[],A=0;31>A;A++)s.push(a);return s}i(re,"createLaneMap");function Me(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}i(Me,"markRootUpdated$1");function Ee(a,s,A,g,y,I){var T=a.pendingLanes;a.pendingLanes=A,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=A,a.entangledLanes&=A,a.errorRecoveryDisabledLanes&=A,a.shellSuspendCounter=0;var F=a.entanglements,me=a.expirationTimes,Le=a.hiddenUpdates;for(A=T&~A;0<A;){var rt=31-Fi(A),Ze=1<<rt;F[rt]=0,me[rt]=-1;var Ct=Le[rt];if(Ct!==null)for(Le[rt]=null,rt=0;rt<Ct.length;rt++){var Yt=Ct[rt];Yt!==null&&(Yt.lane&=-536870913)}A&=~Ze}g!==0&&ze(a,g,0),I!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=I&~(T&~s))}i(Ee,"markRootFinished");function ze(a,s,A){a.pendingLanes|=s,a.suspendedLanes&=~s;var g=31-Fi(s);a.entangledLanes|=s,a.entanglements[g]=a.entanglements[g]|1073741824|A&261930}i(ze,"markSpawnedDeferredLane");function ce(a,s){var A=a.entangledLanes|=s;for(a=a.entanglements;A;){var g=31-Fi(A),y=1<<g;y&s|a[g]&s&&(a[g]|=s),A&=~y}}i(ce,"markRootEntangled");function ae(a,s){var A=s&-s;return A=(A&42)!==0?1:ie(A),(A&(a.suspendedLanes|s))!==0?0:A}i(ae,"getBumpedLaneForHydration");function ie(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}i(ie,"getBumpedLaneForHydrationByLane");function ne(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}i(ne,"lanesToEventPriority");function ee(a){if(typeof lp=="function"&&nE(a),tr&&typeof tr.setStrictMode=="function")try{tr.setStrictMode(Zc,a)}catch{}}i(ee,"setIsStrictModeForDevtools");function Se(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}i(Se,"is");function Je(a){if(dA===void 0)try{throw Error()}catch(A){var s=A.stack.trim().match(/\n( *(at )?)/);dA=s&&s[1]||"",Ki=-1<A.stack.indexOf(`
|
|
45
|
+
at`)?" (<anonymous>)":-1<A.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
46
|
+
`+dA+a+Ki}i(Je,"describeBuiltInComponentFrame");function ye(a,s){if(!a||rf)return"";rf=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:i(function(){try{if(s){var Ze=i(function(){throw Error()},"Fake");if(Object.defineProperty(Ze.prototype,"props",{set:i(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(Yt){var Ct=Yt}Reflect.construct(a,[],Ze)}else{try{Ze.call()}catch(Yt){Ct=Yt}a.call(Ze.prototype)}}else{try{throw Error()}catch(Yt){Ct=Yt}(Ze=a())&&typeof Ze.catch=="function"&&Ze.catch(function(){})}}catch(Yt){if(Yt&&Ct&&typeof Yt.stack=="string")return[Yt.stack,Ct.stack]}return[null,null]},"DetermineComponentFrameRoot")};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=g.DetermineComponentFrameRoot(),T=I[0],F=I[1];if(T&&F){var me=T.split(`
|
|
47
|
+
`),Le=F.split(`
|
|
48
|
+
`);for(y=g=0;g<me.length&&!me[g].includes("DetermineComponentFrameRoot");)g++;for(;y<Le.length&&!Le[y].includes("DetermineComponentFrameRoot");)y++;if(g===me.length||y===Le.length)for(g=me.length-1,y=Le.length-1;1<=g&&0<=y&&me[g]!==Le[y];)y--;for(;1<=g&&0<=y;g--,y--)if(me[g]!==Le[y]){if(g!==1||y!==1)do if(g--,y--,0>y||me[g]!==Le[y]){var rt=`
|
|
49
|
+
`+me[g].replace(" at new "," at ");return a.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",a.displayName)),rt}while(1<=g&&0<=y);break}}}finally{rf=!1,Error.prepareStackTrace=A}return(A=a?a.displayName||a.name:"")?Je(A):""}i(ye,"describeNativeComponentFrame");function qe(a,s){switch(a.tag){case 26:case 27:case 5:return Je(a.type);case 16:return Je("Lazy");case 13:return a.child!==s&&s!==null?Je("Suspense Fallback"):Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return ye(a.type,!1);case 11:return ye(a.type.render,!1);case 1:return ye(a.type,!0);case 31:return Je("Activity");default:return""}}i(qe,"describeFiber");function ct(a){try{var s="",A=null;do s+=qe(a,A),A=a,a=a.return;while(a);return s}catch(g){return`
|
|
50
|
+
Error generating stack: `+g.message+`
|
|
51
|
+
`+g.stack}}i(ct,"getStackByFiberInDevAndProd");function je(a,s){if(typeof a=="object"&&a!==null){var A=vI.get(a);return A!==void 0?A:(s={value:a,source:s,stack:ct(s)},vI.set(a,s),s)}return{value:a,source:s,stack:ct(s)}}i(je,"createCapturedValueAtFiber");function W(a,s){Wc[fA++]=Ae,Wc[fA++]=Ar,Ar=a,Ae=s}i(W,"pushTreeFork");function it(a,s,A){_a[Na++]=Ri,_a[Na++]=Ds,_a[Na++]=Rl,Rl=a;var g=Ri;a=Ds;var y=32-Fi(g)-1;g&=~(1<<y),A+=1;var I=32-Fi(s)+y;if(30<I){var T=y-y%5;I=(g&(1<<T)-1).toString(32),g>>=T,y-=T,Ri=1<<32-Fi(s)+y|A<<y|g,Ds=I+a}else Ri=1<<I|A<<y|g,Ds=a}i(it,"pushTreeId");function yt(a){a.return!==null&&(W(a,1),it(a,1,0))}i(yt,"pushMaterializedTreeId");function P(a){for(;a===Ar;)Ar=Wc[--fA],Wc[fA]=null,Ae=Wc[--fA],Wc[fA]=null;for(;a===Rl;)Rl=_a[--Na],_a[Na]=null,Ds=_a[--Na],_a[Na]=null,Ri=_a[--Na],_a[Na]=null}i(P,"popTreeContext");function Ce(a,s){_a[Na++]=Ri,_a[Na++]=Ds,_a[Na++]=Rl,Ri=s.id,Ds=s.overflow,Rl=a}i(Ce,"restoreSuspendedTreeContext");function Ve(a,s){M(ac,s),M(af,a),M(Zr,null),a=XS(s),b(Zr),M(Zr,a)}i(Ve,"pushHostContainer");function oe(){b(Zr),b(af),b(ac)}i(oe,"popHostContainer");function et(a){a.memoizedState!==null&&M(up,a);var s=Zr.current,A=Oy(s,a.type);s!==A&&(M(af,a),M(Zr,A))}i(et,"pushHostContext");function Et(a){af.current===a&&(b(Zr),b(af)),up.current===a&&(b(up),Da?rc._currentValue=bi:rc._currentValue2=bi)}i(Et,"popHostContext");function te(a){var s=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gt(je(s,a)),rE}i(te,"throwOnHydrationMismatch");function se(a,s){if(!jr)throw Error(c(175));aA(a.stateNode,a.type,a.memoizedProps,s,a)||te(a,!0)}i(se,"prepareToHydrateHostInstance");function De(a){for(Sr=a.return;Sr;)switch(Sr.tag){case 5:case 31:case 13:Ma=!1;return;case 27:case 3:Ma=!0;return;default:Sr=Sr.return}}i(De,"popToNextHostParent");function ut(a){if(!jr||a!==Sr)return!1;if(!En)return De(a),En=!0,!1;var s=a.tag;if(ur?s!==3&&s!==27&&(s!==5||mI(a.type)&&!Vd(a.type,a.memoizedProps))&&Co&&te(a):s!==3&&(s!==5||mI(a.type)&&!Vd(a.type,a.memoizedProps))&&Co&&te(a),De(a),s===13){if(!jr)throw Error(c(316));if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));Co=uI(a)}else if(s===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(317));Co=cI(a)}else Co=ur&&s===27?rI(a.type,Co):Sr?Vh(a.stateNode):null;return!0}i(ut,"popHydrationState");function wt(){jr&&(Co=Sr=null,En=!1)}i(wt,"resetHydrationState");function Gt(){var a=wl;return a!==null&&(Pi===null?Pi=a:Pi.push.apply(Pi,a),wl=null),a}i(Gt,"upgradeHydrationErrorsToRecoverable");function gt(a){wl===null?wl=[a]:wl.push(a)}i(gt,"queueHydrationError");function Ie(a,s,A){Da?(M(Ts,s._currentValue),s._currentValue=A):(M(Ts,s._currentValue2),s._currentValue2=A)}i(Ie,"pushProvider");function Ne(a){var s=Ts.current;Da?a._currentValue=s:a._currentValue2=s,b(Ts)}i(Ne,"popProvider");function at(a,s,A){for(;a!==null;){var g=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,g!==null&&(g.childLanes|=s)):g!==null&&(g.childLanes&s)!==s&&(g.childLanes|=s),a===A)break;a=a.return}}i(at,"scheduleContextWorkOnParentPath");function kt(a,s,A,g){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var I=y.dependencies;if(I!==null){var T=y.child;I=I.firstContext;e:for(;I!==null;){var F=I;I=y;for(var me=0;me<s.length;me++)if(F.context===s[me]){I.lanes|=A,F=I.alternate,F!==null&&(F.lanes|=A),at(I.return,A,a),g||(T=null);break e}I=F.next}}else if(y.tag===18){if(T=y.return,T===null)throw Error(c(341));T.lanes|=A,I=T.alternate,I!==null&&(I.lanes|=A),at(T,A,a),T=null}else T=y.child;if(T!==null)T.return=y;else for(T=y;T!==null;){if(T===a){T=null;break}if(y=T.sibling,y!==null){y.return=T.return,T=y;break}T=T.return}y=T}}i(kt,"propagateContextChanges");function be(a,s,A,g){a=null;for(var y=s,I=!1;y!==null;){if(!I){if((y.flags&524288)!==0)I=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var T=y.alternate;if(T===null)throw Error(c(387));if(T=T.memoizedProps,T!==null){var F=y.type;Xr(y.pendingProps.value,T.value)||(a!==null?a.push(F):a=[F])}}else if(y===up.current){if(T=y.alternate,T===null)throw Error(c(387));T.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(rc):a=[rc])}y=y.return}a!==null&&kt(s,a,A,g),s.flags|=262144}i(be,"propagateParentContextChanges");function Te(a){for(a=a.firstContext;a!==null;){var s=a.context;if(!Xr(Da?s._currentValue:s._currentValue2,a.memoizedValue))return!0;a=a.next}return!1}i(Te,"checkIfContextChanged");function fe(a){wi=a,yo=null,a=a.dependencies,a!==null&&(a.firstContext=null)}i(fe,"prepareToReadContext");function tt(a){return Gn(wi,a)}i(tt,"readContext");function _t(a,s){return wi===null&&fe(a),Gn(a,s)}i(_t,"readContextDuringReconciliation");function Gn(a,s){var A=Da?s._currentValue:s._currentValue2;if(s={context:s,memoizedValue:A,next:null},yo===null){if(a===null)throw Error(c(308));yo=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else yo=yo.next=s;return A}i(Gn,"readContextForConsumer");function In(){return{controller:new _s,data:new Map,refCount:0}}i(In,"createCache");function No(a){a.refCount--,a.refCount===0&&ui(cv,function(){a.controller.abort()})}i(No,"releaseCache");function xr(){}i(xr,"noop$1");function Vo(a){a!==Yi&&a.next===null&&(Yi===null?nr=Yi=a:Yi=Yi.next=a),gA=!0,iE||(iE=!0,to())}i(Vo,"ensureRootIsScheduled");function Mo(a,s){if(!$c&&gA){$c=!0;do for(var A=!1,g=nr;g!==null;){if(!s)if(a!==0){var y=g.pendingLanes;if(y===0)var I=0;else{var T=g.suspendedLanes,F=g.pingedLanes;I=(1<<31-Fi(42|a)+1)-1,I&=y&~(T&~F),I=I&201326741?I&201326741|1:I?I|2:0}I!==0&&(A=!0,tn(g,I))}else I=Rn,I=H(g,g===so?I:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Bl),(I&3)===0||$(g,I)||(A=!0,tn(g,I));g=g.next}while(A);$c=!1}}i(Mo,"flushSyncWorkAcrossRoots_impl");function qr(){ot()}i(qr,"processRootScheduleInImmediateTask");function ot(){gA=iE=!1;var a=0;is!==0&&Yh()&&(a=is);for(var s=Vn(),A=null,g=nr;g!==null;){var y=g.next,I=Dt(g,s);I===0?(g.next=null,A===null?nr=y:A.next=y,y===null&&(Yi=A)):(A=g,(a!==0||(I&3)!==0)&&(gA=!0)),g=y}$n!==0&&$n!==5||Mo(a,!1),is!==0&&(is=0)}i(ot,"processRootScheduleInMicrotask");function Dt(a,s){for(var A=a.suspendedLanes,g=a.pingedLanes,y=a.expirationTimes,I=a.pendingLanes&-62914561;0<I;){var T=31-Fi(I),F=1<<T,me=y[T];me===-1?((F&A)===0||(F&g)!==0)&&(y[T]=we(F,s)):me<=s&&(a.expiredLanes|=F),I&=~F}if(s=so,A=Rn,A=H(a,a===s?A:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Bl),g=a.callbackNode,A===0||a===s&&(Wn===2||Wn===9)||a.cancelPendingCommit!==null)return g!==null&&g!==null&&pn(g),a.callbackNode=null,a.callbackPriority=0;if((A&3)===0||$(a,A)){if(s=A&-A,s===a.callbackPriority)return s;switch(g!==null&&pn(g),ne(A)){case 2:case 8:A=Ql;break;case 32:A=bl;break;case 268435456:A=AA;break;default:A=bl}return g=mt.bind(null,a),A=sp(A,g),a.callbackPriority=s,a.callbackNode=A,s}return g!==null&&g!==null&&pn(g),a.callbackPriority=2,a.callbackNode=null,2}i(Dt,"scheduleTaskForRootDuringMicrotask");function mt(a,s){if($n!==0&&$n!==5)return a.callbackNode=null,a.callbackPriority=0,null;var A=a.callbackNode;if(er()&&a.callbackNode!==A)return null;var g=Rn;return g=H(a,a===so?g:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Bl),g===0?null:(Qh(a,g,s),Dt(a,Vn()),a.callbackNode!=null&&a.callbackNode===A?mt.bind(null,a):null)}i(mt,"performWorkOnRootViaSchedulerTask");function tn(a,s){if(er())return null;Qh(a,s,!0)}i(tn,"performSyncWorkOnRoot");function to(){Ky?ws(function(){(Bn&6)!==0?sp(SI,qr):ot()}):sp(SI,qr)}i(to,"scheduleImmediateRootScheduleTask");function yr(){if(is===0){var a=pA;a===0&&(a=nf,nf<<=1,(nf&261888)===0&&(nf=256)),is=a}return is}i(yr,"requestTransitionLane");function ta(a,s){if(sf===null){var A=sf=[];aE=0,pA=yr(),mA={status:"pending",value:void 0,then:i(function(g){A.push(g)},"then")}}return aE++,s.then(Jn,Jn),s}i(ta,"entangleAsyncAction");function Jn(){if(--aE===0&&sf!==null){mA!==null&&(mA.status="fulfilled");var a=sf;sf=null,pA=0,mA=null;for(var s=0;s<a.length;s++)(0,a[s])()}}i(Jn,"pingEngtangledActionScope");function w(a,s){var A=[],g={status:"pending",value:null,reason:null,then:i(function(y){A.push(y)},"then")};return a.then(function(){g.status="fulfilled",g.value=s;for(var y=0;y<A.length;y++)(0,A[y])(s)},function(y){for(g.status="rejected",g.reason=y,y=0;y<A.length;y++)(0,A[y])(void 0)}),g}i(w,"chainThenableValue");function j(){var a=sc.current;return a!==null?a:so.pooledCache}i(j,"peekCacheFromPool");function Ge(a,s){s===null?M(sc,sc.current):M(sc,s.pool)}i(Ge,"pushTransition");function Ue(){var a=j();return a===null?null:{parent:Da?xo._currentValue:xo._currentValue2,pool:a}}i(Ue,"getSuspendedCache");function nt(a,s){if(Xr(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var A=Object.keys(a),g=Object.keys(s);if(A.length!==g.length)return!1;for(g=0;g<A.length;g++){var y=A[g];if(!oE.call(s,y)||!Xr(a[y],s[y]))return!1}return!0}i(nt,"shallowEqual");function dn(a){return a=a.status,a==="fulfilled"||a==="rejected"}i(dn,"isThenableResolved");function pt(a,s,A){switch(A=a[A],A===void 0?a.push(s):A!==s&&(s.then(xr,xr),s=A),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,sr(a),a;default:if(typeof s.status=="string")s.then(xr,xr);else{if(a=so,a!==null&&100<a.shellSuspendCounter)throw Error(c(482));a=s,a.status="pending",a.then(function(g){if(s.status==="pending"){var y=s;y.status="fulfilled",y.value=g}},function(g){if(s.status==="pending"){var y=s;y.status="rejected",y.reason=g}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,sr(a),a}throw Oa=s,hA}}i(pt,"trackUsedThenable");function xt(a){try{var s=a._init;return s(a._payload)}catch(A){throw A!==null&&typeof A=="object"&&typeof A.then=="function"?(Oa=A,hA):A}}i(xt,"resolveLazy");function rn(){if(Oa===null)throw Error(c(459));var a=Oa;return Oa=null,a}i(rn,"getSuspendedThenable");function sr(a){if(a===hA||a===fp)throw Error(c(483))}i(sr,"checkIfUseWrappedInAsyncCatch");function mo(a){var s=lf;return lf+=1,Ha===null&&(Ha=[]),pt(Ha,a,s)}i(mo,"unwrapThenable");function Xo(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}i(Xo,"coerceRef");function na(a,s){throw s.$$typeof===Yg?Error(c(525)):(a=Object.prototype.toString.call(s),Error(c(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}i(na,"throwOnInvalidObjectTypeImpl");function oa(a){function s(ue,Z){if(a){var ge=ue.deletions;ge===null?(ue.deletions=[Z],ue.flags|=16):ge.push(Z)}}i(s,"deleteChild");function A(ue,Z){if(!a)return null;for(;Z!==null;)s(ue,Z),Z=Z.sibling;return null}i(A,"deleteRemainingChildren");function g(ue){for(var Z=new Map;ue!==null;)ue.key!==null?Z.set(ue.key,ue):Z.set(ue.index,ue),ue=ue.sibling;return Z}i(g,"mapRemainingChildren");function y(ue,Z){return ue=vs(ue,Z),ue.index=0,ue.sibling=null,ue}i(y,"useFiber");function I(ue,Z,ge){return ue.index=ge,a?(ge=ue.alternate,ge!==null?(ge=ge.index,ge<Z?(ue.flags|=67108866,Z):ge):(ue.flags|=67108866,Z)):(ue.flags|=1048576,Z)}i(I,"placeChild");function T(ue){return a&&ue.alternate===null&&(ue.flags|=67108866),ue}i(T,"placeSingleChild");function F(ue,Z,ge,Xe){return Z===null||Z.tag!==6?(Z=Kd(ge,ue.mode,Xe),Z.return=ue,Z):(Z=y(Z,ge),Z.return=ue,Z)}i(F,"updateTextNode");function me(ue,Z,ge,Xe){var Ut=ge.type;return Ut===zc?rt(ue,Z,ge.props.children,Xe,ge.key):Z!==null&&(Z.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===nc&&xt(Ut)===Z.type)?(Z=y(Z,ge.props),Xo(Z,ge),Z.return=ue,Z):(Z=zd(ge.type,ge.key,ge.props,null,ue.mode,Xe),Xo(Z,ge),Z.return=ue,Z)}i(me,"updateElement");function Le(ue,Z,ge,Xe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==ge.containerInfo||Z.stateNode.implementation!==ge.implementation?(Z=Fg(ge,ue.mode,Xe),Z.return=ue,Z):(Z=y(Z,ge.children||[]),Z.return=ue,Z)}i(Le,"updatePortal");function rt(ue,Z,ge,Xe,Ut){return Z===null||Z.tag!==7?(Z=yl(ge,ue.mode,Xe,Ut),Z.return=ue,Z):(Z=y(Z,ge),Z.return=ue,Z)}i(rt,"updateFragment");function Ze(ue,Z,ge){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=Kd(""+Z,ue.mode,ge),Z.return=ue,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case qd:return ge=zd(Z.type,Z.key,Z.props,null,ue.mode,ge),Xo(ge,Z),ge.return=ue,ge;case tc:return Z=Fg(Z,ue.mode,ge),Z.return=ue,Z;case nc:return Z=xt(Z),Ze(ue,Z,ge)}if(oc(Z)||v(Z))return Z=yl(Z,ue.mode,ge,null),Z.return=ue,Z;if(typeof Z.then=="function")return Ze(ue,mo(Z),ge);if(Z.$$typeof===Il)return Ze(ue,_t(ue,Z),ge);na(ue,Z)}return null}i(Ze,"createChild");function Ct(ue,Z,ge,Xe){var Ut=Z!==null?Z.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return Ut!==null?null:F(ue,Z,""+ge,Xe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case qd:return ge.key===Ut?me(ue,Z,ge,Xe):null;case tc:return ge.key===Ut?Le(ue,Z,ge,Xe):null;case nc:return ge=xt(ge),Ct(ue,Z,ge,Xe)}if(oc(ge)||v(ge))return Ut!==null?null:rt(ue,Z,ge,Xe,null);if(typeof ge.then=="function")return Ct(ue,Z,mo(ge),Xe);if(ge.$$typeof===Il)return Ct(ue,Z,_t(ue,ge),Xe);na(ue,ge)}return null}i(Ct,"updateSlot");function Yt(ue,Z,ge,Xe,Ut){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number"||typeof Xe=="bigint")return ue=ue.get(ge)||null,F(Z,ue,""+Xe,Ut);if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case qd:return ue=ue.get(Xe.key===null?ge:Xe.key)||null,me(Z,ue,Xe,Ut);case tc:return ue=ue.get(Xe.key===null?ge:Xe.key)||null,Le(Z,ue,Xe,Ut);case nc:return Xe=xt(Xe),Yt(ue,Z,ge,Xe,Ut)}if(oc(Xe)||v(Xe))return ue=ue.get(ge)||null,rt(Z,ue,Xe,Ut,null);if(typeof Xe.then=="function")return Yt(ue,Z,ge,mo(Xe),Ut);if(Xe.$$typeof===Il)return Yt(ue,Z,ge,_t(Z,Xe),Ut);na(Z,Xe)}return null}i(Yt,"updateFromMap");function Io(ue,Z,ge,Xe){for(var Ut=null,Do=null,Jt=Z,Kn=Z=0,wn=null;Jt!==null&&Kn<ge.length;Kn++){Jt.index>Kn?(wn=Jt,Jt=null):wn=Jt.sibling;var Mn=Ct(ue,Jt,ge[Kn],Xe);if(Mn===null){Jt===null&&(Jt=wn);break}a&&Jt&&Mn.alternate===null&&s(ue,Jt),Z=I(Mn,Z,Kn),Do===null?Ut=Mn:Do.sibling=Mn,Do=Mn,Jt=wn}if(Kn===ge.length)return A(ue,Jt),En&&W(ue,Kn),Ut;if(Jt===null){for(;Kn<ge.length;Kn++)Jt=Ze(ue,ge[Kn],Xe),Jt!==null&&(Z=I(Jt,Z,Kn),Do===null?Ut=Jt:Do.sibling=Jt,Do=Jt);return En&&W(ue,Kn),Ut}for(Jt=g(Jt);Kn<ge.length;Kn++)wn=Yt(Jt,ue,Kn,ge[Kn],Xe),wn!==null&&(a&&wn.alternate!==null&&Jt.delete(wn.key===null?Kn:wn.key),Z=I(wn,Z,Kn),Do===null?Ut=wn:Do.sibling=wn,Do=wn);return a&&Jt.forEach(function(_l){return s(ue,_l)}),En&&W(ue,Kn),Ut}i(Io,"reconcileChildrenArray");function vr(ue,Z,ge,Xe){if(ge==null)throw Error(c(151));for(var Ut=null,Do=null,Jt=Z,Kn=Z=0,wn=null,Mn=ge.next();Jt!==null&&!Mn.done;Kn++,Mn=ge.next()){Jt.index>Kn?(wn=Jt,Jt=null):wn=Jt.sibling;var _l=Ct(ue,Jt,Mn.value,Xe);if(_l===null){Jt===null&&(Jt=wn);break}a&&Jt&&_l.alternate===null&&s(ue,Jt),Z=I(_l,Z,Kn),Do===null?Ut=_l:Do.sibling=_l,Do=_l,Jt=wn}if(Mn.done)return A(ue,Jt),En&&W(ue,Kn),Ut;if(Jt===null){for(;!Mn.done;Kn++,Mn=ge.next())Mn=Ze(ue,Mn.value,Xe),Mn!==null&&(Z=I(Mn,Z,Kn),Do===null?Ut=Mn:Do.sibling=Mn,Do=Mn);return En&&W(ue,Kn),Ut}for(Jt=g(Jt);!Mn.done;Kn++,Mn=ge.next())Mn=Yt(Jt,ue,Kn,Mn.value,Xe),Mn!==null&&(a&&Mn.alternate!==null&&Jt.delete(Mn.key===null?Kn:Mn.key),Z=I(Mn,Z,Kn),Do===null?Ut=Mn:Do.sibling=Mn,Do=Mn);return a&&Jt.forEach(function(gf){return s(ue,gf)}),En&&W(ue,Kn),Ut}i(vr,"reconcileChildrenIterator");function ru(ue,Z,ge,Xe){if(typeof ge=="object"&&ge!==null&&ge.type===zc&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case qd:e:{for(var Ut=ge.key;Z!==null;){if(Z.key===Ut){if(Ut=ge.type,Ut===zc){if(Z.tag===7){A(ue,Z.sibling),Xe=y(Z,ge.props.children),Xe.return=ue,ue=Xe;break e}}else if(Z.elementType===Ut||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===nc&&xt(Ut)===Z.type){A(ue,Z.sibling),Xe=y(Z,ge.props),Xo(Xe,ge),Xe.return=ue,ue=Xe;break e}A(ue,Z);break}else s(ue,Z);Z=Z.sibling}ge.type===zc?(Xe=yl(ge.props.children,ue.mode,Xe,ge.key),Xe.return=ue,ue=Xe):(Xe=zd(ge.type,ge.key,ge.props,null,ue.mode,Xe),Xo(Xe,ge),Xe.return=ue,ue=Xe)}return T(ue);case tc:e:{for(Ut=ge.key;Z!==null;){if(Z.key===Ut)if(Z.tag===4&&Z.stateNode.containerInfo===ge.containerInfo&&Z.stateNode.implementation===ge.implementation){A(ue,Z.sibling),Xe=y(Z,ge.children||[]),Xe.return=ue,ue=Xe;break e}else{A(ue,Z);break}else s(ue,Z);Z=Z.sibling}Xe=Fg(ge,ue.mode,Xe),Xe.return=ue,ue=Xe}return T(ue);case nc:return ge=xt(ge),ru(ue,Z,ge,Xe)}if(oc(ge))return Io(ue,Z,ge,Xe);if(v(ge)){if(Ut=v(ge),typeof Ut!="function")throw Error(c(150));return ge=Ut.call(ge),vr(ue,Z,ge,Xe)}if(typeof ge.then=="function")return ru(ue,Z,mo(ge),Xe);if(ge.$$typeof===Il)return ru(ue,Z,_t(ue,ge),Xe);na(ue,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,Z!==null&&Z.tag===6?(A(ue,Z.sibling),Xe=y(Z,ge),Xe.return=ue,ue=Xe):(A(ue,Z),Xe=Kd(ge,ue.mode,Xe),Xe.return=ue,ue=Xe),T(ue)):A(ue,Z)}return i(ru,"reconcileChildFibersImpl"),function(ue,Z,ge,Xe){try{lf=0;var Ut=ru(ue,Z,ge,Xe);return Ha=null,Ut}catch(Jt){if(Jt===hA||Jt===fp)throw Jt;var Do=o(29,Jt,null,ue.mode);return Do.lanes=Xe,Do.return=ue,Do}}}i(oa,"createChildReconciler");function lt(){for(var a=as,s=sE=as=0;s<a;){var A=ka[s];ka[s++]=null;var g=ka[s];ka[s++]=null;var y=ka[s];ka[s++]=null;var I=ka[s];if(ka[s++]=null,g!==null&&y!==null){var T=g.pending;T===null?y.next=y:(y.next=T.next,T.next=y),g.pending=y}I!==0&&Ti(A,y,I)}}i(lt,"finishQueueingConcurrentUpdates");function Dr(a,s,A,g){ka[as++]=a,ka[as++]=s,ka[as++]=A,ka[as++]=g,sE|=g,a.lanes|=g,a=a.alternate,a!==null&&(a.lanes|=g)}i(Dr,"enqueueUpdate$1");function zt(a,s,A,g){return Dr(a,s,A,g),_i(a)}i(zt,"enqueueConcurrentHookUpdate");function ti(a,s){return Dr(a,null,null,s),_i(a)}i(ti,"enqueueConcurrentRenderForLane");function Ti(a,s,A){a.lanes|=A;var g=a.alternate;g!==null&&(g.lanes|=A);for(var y=!1,I=a.return;I!==null;)I.childLanes|=A,g=I.alternate,g!==null&&(g.childLanes|=A),I.tag===22&&(a=I.stateNode,a===null||a._visibility&1||(y=!0)),a=I,I=I.return;return a.tag===3?(I=a.stateNode,y&&s!==null&&(y=31-Fi(A),a=I.hiddenUpdates,g=a[y],g===null?a[y]=[s]:g.push(s),s.lane=A|536870912),I):null}i(Ti,"markUpdateLaneFromFiberToRoot");function _i(a){if(50<SA)throw SA=0,Tp=null,Error(c(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}i(_i,"getRootForUpdatedFiber");function Ja(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}i(Ja,"initializeUpdateQueue");function Ba(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}i(Ba,"cloneUpdateQueue");function Tr(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}i(Tr,"createUpdate");function Ni(a,s,A){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(Bn&2)!==0){var y=g.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),g.pending=s,s=_i(a),Ti(a,null,A),s}return Dr(a,g,s,A),_i(a)}i(Ni,"enqueueUpdate");function ja(a,s,A){if(s=s.updateQueue,s!==null&&(s=s.shared,(A&4194048)!==0)){var g=s.lanes;g&=a.pendingLanes,A|=g,s.lanes=A,ce(a,A)}}i(ja,"entangleTransitions");function Pl(a,s){var A=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,A===g)){var y=null,I=null;if(A=A.firstBaseUpdate,A!==null){do{var T={lane:A.lane,tag:A.tag,payload:A.payload,callback:null,next:null};I===null?y=I=T:I=I.next=T,A=A.next}while(A!==null);I===null?y=I=s:I=I.next=s}else y=I=s;A={baseState:g.baseState,firstBaseUpdate:y,lastBaseUpdate:I,shared:g.shared,callbacks:g.callbacks},a.updateQueue=A;return}a=A.lastBaseUpdate,a===null?A.firstBaseUpdate=s:a.next=s,A.lastBaseUpdate=s}i(Pl,"enqueueCapturedUpdate");function hs(){if(lE){var a=mA;if(a!==null)throw a}}i(hs,"suspendIfUpdateReadFromEntangledAsyncAction");function Sa(a,s,A,g){lE=!1;var y=a.updateQueue;lc=!1;var I=y.firstBaseUpdate,T=y.lastBaseUpdate,F=y.shared.pending;if(F!==null){y.shared.pending=null;var me=F,Le=me.next;me.next=null,T===null?I=Le:T.next=Le,T=me;var rt=a.alternate;rt!==null&&(rt=rt.updateQueue,F=rt.lastBaseUpdate,F!==T&&(F===null?rt.firstBaseUpdate=Le:F.next=Le,rt.lastBaseUpdate=me))}if(I!==null){var Ze=y.baseState;T=0,rt=Le=me=null,F=I;do{var Ct=F.lane&-536870913,Yt=Ct!==F.lane;if(Yt?(Rn&Ct)===Ct:(g&Ct)===Ct){Ct!==0&&Ct===pA&&(lE=!0),rt!==null&&(rt=rt.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Io=a,vr=F;Ct=s;var ru=A;switch(vr.tag){case 1:if(Io=vr.payload,typeof Io=="function"){Ze=Io.call(ru,Ze,Ct);break e}Ze=Io;break e;case 3:Io.flags=Io.flags&-65537|128;case 0:if(Io=vr.payload,Ct=typeof Io=="function"?Io.call(ru,Ze,Ct):Io,Ct==null)break e;Ze=ca({},Ze,Ct);break e;case 2:lc=!0}}Ct=F.callback,Ct!==null&&(a.flags|=64,Yt&&(a.flags|=8192),Yt=y.callbacks,Yt===null?y.callbacks=[Ct]:Yt.push(Ct))}else Yt={lane:Ct,tag:F.tag,payload:F.payload,callback:F.callback,next:null},rt===null?(Le=rt=Yt,me=Ze):rt=rt.next=Yt,T|=Ct;if(F=F.next,F===null){if(F=y.shared.pending,F===null)break;Yt=F,F=Yt.next,Yt.next=null,y.lastBaseUpdate=Yt,y.shared.pending=null}}while(!0);rt===null&&(me=Ze),y.baseState=me,y.firstBaseUpdate=Le,y.lastBaseUpdate=rt,I===null&&(y.shared.lanes=0),Ac|=T,a.lanes=T,a.memoizedState=Ze}}i(Sa,"processUpdateQueue");function Mc(a,s){if(typeof a!="function")throw Error(c(191,a));a.call(s)}i(Mc,"callCallback");function Ku(a,s){var A=a.callbacks;if(A!==null)for(a.callbacks=null,a=0;a<A.length;a++)Mc(A[a],s)}i(Ku,"commitCallbacks");function ft(a,s){a=Dl,M(pp,a),M(Ns,s),Dl=a|s.baseLanes}i(ft,"pushHiddenContext");function Ft(){M(pp,Dl),M(Ns,Ns.current)}i(Ft,"reuseHiddenContextOnStack");function Fn(){Dl=pp.current,b(Ns),b(pp)}i(Fn,"popHiddenContext");function ao(a){var s=a.alternate;M(or,or.current&1),M(Aa,a),Ua===null&&(s===null||Ns.current!==null||s.memoizedState!==null)&&(Ua=a)}i(ao,"pushPrimaryTreeSuspenseHandler");function ra(a){M(or,or.current),M(Aa,a),Ua===null&&(Ua=a)}i(ra,"pushDehydratedActivitySuspenseHandler");function ni(a){a.tag===22?(M(or,or.current),M(Aa,a),Ua===null&&(Ua=a)):Mi(a)}i(ni,"pushOffscreenSuspenseHandler");function Mi(){M(or,or.current),M(Aa,Aa.current)}i(Mi,"reuseSuspenseHandlerOnStack");function Zo(a){b(Aa),Ua===a&&(Ua=null),b(or)}i(Zo,"popSuspenseHandler");function yi(a){for(var s=a;s!==null;){if(s.tag===13){var A=s.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||$d(A)||ef(A)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}i(yi,"findFirstSuspended");function no(){throw Error(c(321))}i(no,"throwInvalidHookError");function Ii(a,s){if(s===null)return!1;for(var A=0;A<s.length&&A<a.length;A++)if(!Xr(a[A],s[A]))return!1;return!0}i(Ii,"areHookInputsEqual");function oi(a,s,A,g,y,I){return xl=I,sn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Nt.H=a===null||a.memoizedState===null?bI:cE,tu=!1,I=A(g,y),tu=!1,EA&&(I=va(s,A,g,y)),Ir(a),I}i(oi,"renderWithHooks");function Ir(a){Nt.H=cf;var s=oo!==null&&oo.next!==null;if(xl=0,dr=oo=sn=null,mp=!1,CA=0,yA=null,s)throw Error(c(300));a===null||fr||(a=a.dependencies,a!==null&&Te(a)&&(fr=!0))}i(Ir,"finishRenderingHooks");function va(a,s,A,g){sn=a;var y=0;do{if(EA&&(yA=null),CA=0,EA=!1,25<=y)throw Error(c(301));if(y+=1,dr=oo=null,a.updateQueue!=null){var I=a.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}Nt.H=RI,I=s(A,g)}while(EA);return I}i(va,"renderWithHooksAgain");function ia(){var a=Nt.H,s=a.useState()[0];return s=typeof s.then=="function"?Oe(s):s,a=a.useState()[0],(oo!==null?oo.memoizedState:null)!==a&&(sn.flags|=1024),s}i(ia,"TransitionAwareHostComponent");function x(){var a=hp!==0;return hp=0,a}i(x,"checkDidRenderIdHook");function D(a,s,A){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~A}i(D,"bailoutHooks");function G(a){if(mp){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}mp=!1}xl=0,dr=oo=sn=null,EA=!1,CA=hp=0,yA=null}i(G,"resetHooksOnUnwind");function Y(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dr===null?sn.memoizedState=dr=a:dr=dr.next=a,dr}i(Y,"mountWorkInProgressHook");function J(){if(oo===null){var a=sn.alternate;a=a!==null?a.memoizedState:null}else a=oo.next;var s=dr===null?sn.memoizedState:dr.next;if(s!==null)dr=s,oo=a;else{if(a===null)throw sn.alternate===null?Error(c(467)):Error(c(310));oo=a,a={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},dr===null?sn.memoizedState=dr=a:dr=dr.next=a}return dr}i(J,"updateWorkInProgressHook");function Be(){return{lastEffect:null,events:null,stores:null,memoCache:null}}i(Be,"createFunctionComponentUpdateQueue");function Oe(a){var s=CA;return CA+=1,yA===null&&(yA=[]),a=pt(yA,a,s),s=sn,(dr===null?s.memoizedState:dr.next)===null&&(s=s.alternate,Nt.H=s===null||s.memoizedState===null?bI:cE),a}i(Oe,"useThenable");function ve(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Oe(a);if(a.$$typeof===Il)return tt(a)}throw Error(c(438,String(a)))}i(ve,"use");function $e(a){var s=null,A=sn.updateQueue;if(A!==null&&(s=A.memoCache),s==null){var g=sn.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(s={data:g.data.map(function(y){return y.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),A===null&&(A=Be(),sn.updateQueue=A),A.memoCache=s,A=s.data[s.index],A===void 0)for(A=s.data[s.index]=Array(a),g=0;g<a;g++)A[g]=Qs;return s.index++,A}i($e,"useMemoCache");function Ke(a,s){return typeof s=="function"?s(a):s}i(Ke,"basicStateReducer");function At(a){var s=J();return bt(s,oo,a)}i(At,"updateReducer");function bt(a,s,A){var g=a.queue;if(g===null)throw Error(c(311));g.lastRenderedReducer=A;var y=a.baseQueue,I=g.pending;if(I!==null){if(y!==null){var T=y.next;y.next=I.next,I.next=T}s.baseQueue=y=I,g.pending=null}if(I=a.baseState,y===null)a.memoizedState=I;else{s=y.next;var F=T=null,me=null,Le=s,rt=!1;do{var Ze=Le.lane&-536870913;if(Ze!==Le.lane?(Rn&Ze)===Ze:(xl&Ze)===Ze){var Ct=Le.revertLane;if(Ct===0)me!==null&&(me=me.next={lane:0,revertLane:0,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null}),Ze===pA&&(rt=!0);else if((xl&Ct)===Ct){Le=Le.next,Ct===pA&&(rt=!0);continue}else Ze={lane:0,revertLane:Le.revertLane,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},me===null?(F=me=Ze,T=I):me=me.next=Ze,sn.lanes|=Ct,Ac|=Ct;Ze=Le.action,tu&&A(I,Ze),I=Le.hasEagerState?Le.eagerState:A(I,Ze)}else Ct={lane:Ze,revertLane:Le.revertLane,gesture:Le.gesture,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},me===null?(F=me=Ct,T=I):me=me.next=Ct,sn.lanes|=Ze,Ac|=Ze;Le=Le.next}while(Le!==null&&Le!==s);if(me===null?T=I:me.next=F,!Xr(I,a.memoizedState)&&(fr=!0,rt&&(A=mA,A!==null)))throw A;a.memoizedState=I,a.baseState=T,a.baseQueue=me,g.lastRenderedState=I}return y===null&&(g.lanes=0),[a.memoizedState,g.dispatch]}i(bt,"updateReducerImpl");function nn(a){var s=J(),A=s.queue;if(A===null)throw Error(c(311));A.lastRenderedReducer=a;var g=A.dispatch,y=A.pending,I=s.memoizedState;if(y!==null){A.pending=null;var T=y=y.next;do I=a(I,T.action),T=T.next;while(T!==y);Xr(I,s.memoizedState)||(fr=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),A.lastRenderedState=I}return[I,g]}i(nn,"rerenderReducer");function Nn(a,s,A){var g=sn,y=J(),I=En;if(I){if(A===void 0)throw Error(c(407));A=A()}else A=s();var T=!Xr((oo||y).memoizedState,A);if(T&&(y.memoizedState=A,fr=!0),y=y.queue,Yu(Wo.bind(null,g,y,a),[a]),y.getSnapshot!==s||T||dr!==null&&dr.memoizedState.tag&1){if(g.flags|=2048,_r(9,{destroy:void 0},uo.bind(null,g,y,A,s),null),so===null)throw Error(c(349));I||(xl&127)!==0||_n(g,s,A)}return A}i(Nn,"updateSyncExternalStore");function _n(a,s,A){a.flags|=16384,a={getSnapshot:s,value:A},s=sn.updateQueue,s===null?(s=Be(),sn.updateQueue=s,s.stores=[a]):(A=s.stores,A===null?s.stores=[a]:A.push(a))}i(_n,"pushStoreConsistencyCheck");function uo(a,s,A,g){s.value=A,s.getSnapshot=g,Bi(s)&&Pr(a)}i(uo,"updateStoreInstance");function Wo(a,s,A){return A(function(){Bi(s)&&Pr(a)})}i(Wo,"subscribeToStore");function Bi(a){var s=a.getSnapshot;a=a.value;try{var A=s();return!Xr(a,A)}catch{return!0}}i(Bi,"checkIfSnapshotChanged");function Pr(a){var s=ti(a,2);s!==null&&vi(s,a,2)}i(Pr,"forceStoreRerender");function go(a){var s=Y();if(typeof a=="function"){var A=a;if(a=A(),tu){ee(!0);try{A()}finally{ee(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:a},s}i(go,"mountStateImpl");function lr(a,s,A,g){return a.baseState=A,bt(a,oo,typeof g=="function"?g:Ke)}i(lr,"updateOptimisticImpl");function aa(a,s,A,g,y){if(jl(a))throw Error(c(485));if(a=s.action,a!==null){var I={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:i(function(T){I.listeners.push(T)},"then")};Nt.T!==null?A(!0):I.isTransition=!1,g(I),A=s.pending,A===null?(I.next=s.pending=I,Oi(s,I)):(I.next=A.next,s.pending=A.next=I)}}i(aa,"dispatchActionState");function Oi(a,s){var A=s.action,g=s.payload,y=a.state;if(s.isTransition){var I=Nt.T,T={};Nt.T=T;try{var F=A(y,g),me=Nt.S;me!==null&&me(T,F),Hi(a,s,F)}catch(Le){Oc(a,s,Le)}finally{I!==null&&T.types!==null&&(I.types=T.types),Nt.T=I}}else try{I=A(y,g),Hi(a,s,I)}catch(Le){Oc(a,s,Le)}}i(Oi,"runActionStateAction");function Hi(a,s,A){A!==null&&typeof A=="object"&&typeof A.then=="function"?A.then(function(g){On(a,s,g)},function(g){return Oc(a,s,g)}):On(a,s,A)}i(Hi,"handleActionReturnValue");function On(a,s,A){s.status="fulfilled",s.value=A,Hc(s),a.state=A,s=a.pending,s!==null&&(A=s.next,A===s?a.pending=null:(A=A.next,s.next=A,Oi(a,A)))}i(On,"onActionSuccess");function Oc(a,s,A){var g=a.pending;if(a.pending=null,g!==null){g=g.next;do s.status="rejected",s.reason=A,Hc(s),s=s.next;while(s!==g)}a.action=null}i(Oc,"onActionError");function Hc(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}i(Hc,"notifyActionListeners");function Ed(a,s){return s}i(Ed,"actionStateReducer");function sa(a,s){if(En){var A=so.formState;if(A!==null){e:{var g=sn;if(En){if(Co){var y=nI(Co,Ma);if(y){Co=Vh(y),g=oI(y);break e}}te(g)}g=!1}g&&(s=A[0])}}A=Y(),A.memoizedState=A.baseState=s,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ed,lastRenderedState:s},A.queue=g,A=cg.bind(null,sn,g),g.dispatch=A,g=go(!1);var I=Pu.bind(null,sn,!1,g.queue);return g=Y(),y={state:s,dispatch:null,action:a,pending:null},g.queue=y,A=aa.bind(null,sn,y,I,A),y.dispatch=A,g.memoizedState=a,[s,A,!1]}i(sa,"mountActionState");function Cd(a){var s=J();return ki(s,oo,a)}i(Cd,"updateActionState");function ki(a,s,A){if(s=bt(a,s,Ed)[0],a=At(Ke)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var g=Oe(s)}catch(T){throw T===hA?fp:T}else g=s;s=J();var y=s.queue,I=y.dispatch;return A!==s.memoizedState&&(sn.flags|=2048,_r(9,{destroy:void 0},Al.bind(null,y,A),null)),[g,I,a]}i(ki,"updateActionStateImpl");function Al(a,s){a.action=s}i(Al,"actionStateActionEffect");function Es(a){var s=J(),A=oo;if(A!==null)return ki(s,A,a);J(),s=s.memoizedState,A=J();var g=A.queue.dispatch;return A.memoizedState=a,[s,g,!1]}i(Es,"rerenderActionState");function _r(a,s,A,g){return a={tag:a,create:A,deps:g,inst:s,next:null},s=sn.updateQueue,s===null&&(s=Be(),sn.updateQueue=s),A=s.lastEffect,A===null?s.lastEffect=a.next=a:(g=A.next,A.next=a,a.next=g,s.lastEffect=a),a}i(_r,"pushSimpleEffect");function Va(){return J().memoizedState}i(Va,"updateRef");function dl(a,s,A,g){var y=Y();sn.flags|=a,y.memoizedState=_r(1|s,{destroy:void 0},A,g===void 0?null:g)}i(dl,"mountEffectImpl");function fl(a,s,A,g){var y=J();g=g===void 0?null:g;var I=y.memoizedState.inst;oo!==null&&g!==null&&Ii(g,oo.memoizedState.deps)?y.memoizedState=_r(s,I,A,g):(sn.flags|=a,y.memoizedState=_r(1|s,I,A,g))}i(fl,"updateEffectImpl");function yd(a,s){dl(8390656,8,a,s)}i(yd,"mountEffect");function Yu(a,s){fl(2048,8,a,s)}i(Yu,"updateEffect");function lg(a){sn.flags|=4;var s=sn.updateQueue;if(s===null)s=Be(),sn.updateQueue=s,s.events=[a];else{var A=s.events;A===null?s.events=[a]:A.push(a)}}i(lg,"useEffectEventImpl");function qu(a){var s=J().memoizedState;return lg({ref:s,nextImpl:a}),function(){if((Bn&2)!==0)throw Error(c(440));return s.impl.apply(void 0,arguments)}}i(qu,"updateEvent");function V(a,s){return fl(4,2,a,s)}i(V,"updateInsertionEffect");function _e(a,s){return fl(4,4,a,s)}i(_e,"updateLayoutEffect");function Pe(a,s){if(typeof s=="function"){a=a();var A=s(a);return function(){typeof A=="function"?A():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}i(Pe,"imperativeHandleEffect");function Fe(a,s,A){A=A!=null?A.concat([a]):null,fl(4,4,Pe.bind(null,s,a),A)}i(Fe,"updateImperativeHandle");function vt(){}i(vt,"mountDebugValue");function dt(a,s){var A=J();s=s===void 0?null:s;var g=A.memoizedState;return s!==null&&Ii(s,g[1])?g[0]:(A.memoizedState=[a,s],a)}i(dt,"updateCallback");function fn(a,s){var A=J();s=s===void 0?null:s;var g=A.memoizedState;if(s!==null&&Ii(s,g[1]))return g[0];if(g=a(),tu){ee(!0);try{a()}finally{ee(!1)}}return A.memoizedState=[g,s],g}i(fn,"updateMemo");function cr(a,s,A){return A===void 0||(xl&1073741824)!==0&&(Rn&261930)===0?a.memoizedState=s:(a.memoizedState=A,a=kd(),sn.lanes|=a,Ac|=a,A)}i(cr,"mountDeferredValueImpl");function gl(a,s,A,g){return Xr(A,s)?A:Ns.current!==null?(a=cr(a,A,g),Xr(a,s)||(fr=!0),a):(xl&42)===0||(xl&1073741824)!==0&&(Rn&261930)===0?(fr=!0,a.memoizedState=A):(a=kd(),sn.lanes|=a,Ac|=a,s)}i(gl,"updateDeferredValueImpl");function ho(a,s,A,g,y){var I=Rs();Br(I!==0&&8>I?I:8);var T=Nt.T,F={};Nt.T=F,Pu(a,!1,s,A);try{var me=y(),Le=Nt.S;if(Le!==null&&Le(F,me),me!==null&&typeof me=="object"&&typeof me.then=="function"){var rt=w(me,g);Jl(a,s,rt,Gi(a))}else Jl(a,s,g,Gi(a))}catch(Ze){Jl(a,s,{then:i(function(){},"then"),status:"rejected",reason:Ze},Gi())}finally{Br(I),T!==null&&F.types!==null&&(T.types=F.types),Nt.T=T}}i(ho,"startTransition");function ri(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:bi,baseState:bi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:bi},next:null};var A={};return s.next={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ke,lastRenderedState:A},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}i(ri,"ensureFormComponentIsStateful");function Kt(){return tt(rc)}i(Kt,"useHostTransitionStatus");function po(){return J().memoizedState}i(po,"updateId");function Qa(){return J().memoizedState}i(Qa,"updateRefresh");function Xa(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var A=Gi();a=Tr(A);var g=Ni(s,a,A);g!==null&&(vi(g,s,A),ja(g,s,A)),s={cache:In()},a.payload=s;return}s=s.return}}i(Xa,"refreshCache");function Oo(a,s,A){var g=Gi();A={lane:g,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null},jl(a)?Ah(s,A):(A=zt(a,s,A,g),A!==null&&(vi(A,a,g),Id(A,s,g)))}i(Oo,"dispatchReducerAction");function cg(a,s,A){var g=Gi();Jl(a,s,A,g)}i(cg,"dispatchSetState");function Jl(a,s,A,g){var y={lane:g,revertLane:0,gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null};if(jl(a))Ah(s,y);else{var I=a.alternate;if(a.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var T=s.lastRenderedState,F=I(T,A);if(y.hasEagerState=!0,y.eagerState=F,Xr(F,T))return Dr(a,s,y,0),so===null&<(),!1}catch{}if(A=zt(a,s,y,g),A!==null)return vi(A,a,g),Id(A,s,g),!0}return!1}i(Jl,"dispatchSetStateInternal");function Pu(a,s,A,g){if(g={lane:2,revertLane:yr(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},jl(a)){if(s)throw Error(c(479))}else s=zt(a,A,g,2),s!==null&&vi(s,a,2)}i(Pu,"dispatchOptimisticSetState");function jl(a){var s=a.alternate;return a===sn||s!==null&&s===sn}i(jl,"isRenderPhaseUpdate");function Ah(a,s){EA=mp=!0;var A=a.pending;A===null?s.next=s:(s.next=A.next,A.next=s),a.pending=s}i(Ah,"enqueueRenderPhaseUpdate");function Id(a,s,A){if((A&4194048)!==0){var g=s.lanes;g&=a.pendingLanes,A|=g,s.lanes=A,ce(a,A)}}i(Id,"entangleTransitionUpdate");function ug(a,s,A,g){s=a.memoizedState,A=A(g,s),A=A==null?s:ca({},s,A),a.memoizedState=A,a.lanes===0&&(a.updateQueue.baseState=A)}i(ug,"applyDerivedStateFromProps");function Bd(a,s,A,g,y,I,T){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,I,T):s.prototype&&s.prototype.isPureReactComponent?!nt(A,g)||!nt(y,I):!0}i(Bd,"checkShouldComponentUpdate");function dh(a,s,A,g){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(A,g),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(A,g),s.state!==a&&Ep.enqueueReplaceState(s,s.state,null)}i(dh,"callComponentWillReceiveProps");function Cs(a,s){var A=s;if("ref"in s){A={};for(var g in s)g!=="ref"&&(A[g]=s[g])}if(a=a.defaultProps){A===s&&(A=ca({},A));for(var y in a)A[y]===void 0&&(A[y]=a[y])}return A}i(Cs,"resolveClassComponentProps");function Sd(a,s){try{var A=a.onUncaughtError;A(s.value,{componentStack:s.stack})}catch(g){setTimeout(function(){throw g})}}i(Sd,"logUncaughtError");function fh(a,s,A){try{var g=a.onCaughtError;g(A.value,{componentStack:A.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(y){setTimeout(function(){throw y})}}i(fh,"logCaughtError");function Ju(a,s,A){return A=Tr(A),A.tag=3,A.payload={element:null},A.callback=function(){Sd(a,s)},A}i(Ju,"createRootErrorUpdate");function vd(a){return a=Tr(a),a.tag=3,a}i(vd,"createClassErrorUpdate");function Ag(a,s,A,g){var y=A.type.getDerivedStateFromError;if(typeof y=="function"){var I=g.value;a.payload=function(){return y(I)},a.callback=function(){fh(s,A,g)}}var T=A.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){fh(s,A,g),typeof y!="function"&&(dc===null?dc=new Set([this]):dc.add(this));var F=g.stack;this.componentDidCatch(g.value,{componentStack:F!==null?F:""})})}i(Ag,"initializeClassErrorUpdate");function ii(a,s,A,g,y){if(A.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(s=A.alternate,s!==null&&be(s,A,y,!0),A=Aa.current,A!==null){switch(A.tag){case 31:case 13:return Ua===null?tA():A.alternate===null&&ko===0&&(ko=3),A.flags&=-257,A.flags|=65536,A.lanes=y,g===gp?A.flags|=16384:(s=A.updateQueue,s===null?A.updateQueue=new Set([g]):s.add(g),kg(a,g,y)),!1;case 22:return A.flags|=65536,g===gp?A.flags|=16384:(s=A.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([g])},A.updateQueue=s):(A=s.retryQueue,A===null?s.retryQueue=new Set([g]):A.add(g)),kg(a,g,y)),!1}throw Error(c(435,A.tag))}return kg(a,g,y),tA(),!1}if(En)return s=Aa.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=y,g!==rE&&(a=Error(c(422),{cause:g}),gt(je(a,A)))):(g!==rE&&(s=Error(c(423),{cause:g}),gt(je(s,A))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,g=je(g,A),y=Ju(a.stateNode,g,y),Pl(a,y),ko!==4&&(ko=2)),!1;var I=Error(c(520),{cause:g});if(I=je(I,A),df===null?df=[I]:df.push(I),ko!==4&&(ko=2),s===null)return!0;g=je(g,A),A=s;do{switch(A.tag){case 3:return A.flags|=65536,a=y&-y,A.lanes|=a,a=Ju(A.stateNode,g,a),Pl(A,a),!1;case 1:if(s=A.type,I=A.stateNode,(A.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(dc===null||!dc.has(I))))return A.flags|=65536,y&=-y,A.lanes|=y,y=vd(y),Ag(y,a,A,g),Pl(A,y),!1}A=A.return}while(A!==null);return!1}i(ii,"throwException");function Nr(a,s,A,g){s.child=a===null?QI(s,null,A,g):eu(s,a.child,A,g)}i(Nr,"reconcileChildren");function Qd(a,s,A,g,y){A=A.render;var I=s.ref;if("ref"in g){var T={};for(var F in g)F!=="ref"&&(T[F]=g[F])}else T=g;return fe(s),g=oi(a,s,A,T,I,y),F=x(),a!==null&&!fr?(D(a,s,y),Ui(a,s,y)):(En&&F&&yt(s),s.flags|=1,Nr(a,s,g,y),s.child)}i(Qd,"updateForwardRef");function dg(a,s,A,g,y){if(a===null){var I=A.type;return typeof I=="function"&&!Fd(I)&&I.defaultProps===void 0&&A.compare===null?(s.tag=15,s.type=I,fg(a,s,I,g,y)):(a=zd(A.type,null,g,s,s.mode,y),a.ref=s.ref,a.return=s,s.child=a)}if(I=a.child,!Xu(a,y)){var T=I.memoizedProps;if(A=A.compare,A=A!==null?A:nt,A(T,g)&&a.ref===s.ref)return Ui(a,s,y)}return s.flags|=1,a=vs(I,g),a.ref=s.ref,a.return=s,s.child=a}i(dg,"updateMemoComponent");function fg(a,s,A,g,y){if(a!==null){var I=a.memoizedProps;if(nt(I,g)&&a.ref===s.ref)if(fr=!1,s.pendingProps=g=I,Xu(a,y))(a.flags&131072)!==0&&(fr=!0);else return s.lanes=a.lanes,Ui(a,s,y)}return gh(a,s,A,g,y)}i(fg,"updateSimpleMemoComponent");function pl(a,s,A,g){var y=g.children,I=a!==null?a.memoizedState:null;if(a===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((s.flags&128)!==0){if(I=I!==null?I.baseLanes|A:A,a!==null){for(g=s.child=a.child,y=0;g!==null;)y=y|g.lanes|g.childLanes,g=g.sibling;g=y&~I}else g=0,s.child=null;return ju(a,s,I,A,g)}if((A&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ge(s,I!==null?I.cachePool:null),I!==null?ft(s,I):Ft(),ni(s);else return g=s.lanes=536870912,ju(a,s,I!==null?I.baseLanes|A:A,A,g)}else I!==null?(Ge(s,I.cachePool),ft(s,I),Mi(s),s.memoizedState=null):(a!==null&&Ge(s,null),Ft(),Mi(s));return Nr(a,s,y,A),s.child}i(pl,"updateOffscreenComponent");function ba(a,s){return a!==null&&a.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}i(ba,"bailoutOffscreenComponent");function ju(a,s,A,g,y){var I=j();return I=I===null?null:{parent:Da?xo._currentValue:xo._currentValue2,pool:I},s.memoizedState={baseLanes:A,cachePool:I},a!==null&&Ge(s,null),Ft(),ni(s),a!==null&&be(a,s,g,!0),s.childLanes=y,null}i(ju,"deferHiddenOffscreenComponent");function kc(a,s){return s=Za({mode:s.mode,children:s.children},a.mode),s.ref=a.ref,a.child=s,s.return=a,s}i(kc,"mountActivityChildren");function Vu(a,s,A){return eu(s,a.child,null,A),a=kc(s,s.pendingProps),a.flags|=2,Zo(s),s.memoizedState=null,a}i(Vu,"retryActivityComponentWithoutHydrating");function bd(a,s,A){var g=s.pendingProps,y=(s.flags&128)!==0;if(s.flags&=-129,a===null){if(En){if(g.mode==="hidden")return a=kc(s,g),s.lanes=536870912,ba(null,a);if(ra(s),(a=Co)?(a=sI(a,Ma),a!==null&&(s.memoizedState={dehydrated:a,treeContext:Rl!==null?{id:Ri,overflow:Ds}:null,retryLane:536870912,hydrationErrors:null},A=Gg(a),A.return=s,s.child=A,Sr=s,Co=null)):a=null,a===null)throw te(s);return s.lanes=536870912,null}return kc(s,g)}var I=a.memoizedState;if(I!==null){var T=I.dehydrated;if(ra(s),y)if(s.flags&256)s.flags&=-257,s=Vu(a,s,A);else if(s.memoizedState!==null)s.child=a.child,s.flags|=128,s=null;else throw Error(c(558));else if(fr||be(a,s,A,!1),y=(A&a.childLanes)!==0,fr||y){if(g=so,g!==null&&(T=ae(g,A),T!==0&&T!==I.retryLane))throw I.retryLane=T,ti(a,T),vi(g,a,T),Cp;tA(),s=Vu(a,s,A)}else a=I.treeContext,jr&&(Co=Xh(T),Sr=s,En=!0,wl=null,Ma=!1,a!==null&&Ce(s,a)),s=kc(s,g),s.flags|=4096;return s}return a=vs(a.child,{mode:g.mode,children:g.children}),a.ref=s.ref,s.child=a,a.return=s,a}i(bd,"updateActivityComponent");function Rd(a,s){var A=s.ref;if(A===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof A!="function"&&typeof A!="object")throw Error(c(284));(a===null||a.ref!==A)&&(s.flags|=4194816)}}i(Rd,"markRef");function gh(a,s,A,g,y){return fe(s),A=oi(a,s,A,g,void 0,y),g=x(),a!==null&&!fr?(D(a,s,y),Ui(a,s,y)):(En&&g&&yt(s),s.flags|=1,Nr(a,s,A,y),s.child)}i(gh,"updateFunctionComponent");function ph(a,s,A,g,y,I){return fe(s),s.updateQueue=null,A=va(s,g,A,y),Ir(a),g=x(),a!==null&&!fr?(D(a,s,I),Ui(a,s,I)):(En&&g&&yt(s),s.flags|=1,Nr(a,s,A,I),s.child)}i(ph,"replayFunctionComponent");function mh(a,s,A,g,y){if(fe(s),s.stateNode===null){var I=Xc,T=A.contextType;typeof T=="object"&&T!==null&&(I=tt(T)),I=new A(g,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=Ep,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=g,I.state=s.memoizedState,I.refs={},Ja(s),T=A.contextType,I.context=typeof T=="object"&&T!==null?tt(T):Xc,I.state=s.memoizedState,T=A.getDerivedStateFromProps,typeof T=="function"&&(ug(s,A,T,g),I.state=s.memoizedState),typeof A.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(T=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),T!==I.state&&Ep.enqueueReplaceState(I,I.state,null),Sa(s,g,I,y),hs(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),g=!0}else if(a===null){I=s.stateNode;var F=s.memoizedProps,me=Cs(A,F);I.props=me;var Le=I.context,rt=A.contextType;T=Xc,typeof rt=="object"&&rt!==null&&(T=tt(rt));var Ze=A.getDerivedStateFromProps;rt=typeof Ze=="function"||typeof I.getSnapshotBeforeUpdate=="function",F=s.pendingProps!==F,rt||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(F||Le!==T)&&dh(s,I,g,T),lc=!1;var Ct=s.memoizedState;I.state=Ct,Sa(s,g,I,y),hs(),Le=s.memoizedState,F||Ct!==Le||lc?(typeof Ze=="function"&&(ug(s,A,Ze,g),Le=s.memoizedState),(me=lc||Bd(s,A,me,g,Ct,Le,T))?(rt||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(s.flags|=4194308)):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=g,s.memoizedState=Le),I.props=g,I.state=Le,I.context=T,g=me):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),g=!1)}else{I=s.stateNode,Ba(a,s),T=s.memoizedProps,rt=Cs(A,T),I.props=rt,Ze=s.pendingProps,Ct=I.context,Le=A.contextType,me=Xc,typeof Le=="object"&&Le!==null&&(me=tt(Le)),F=A.getDerivedStateFromProps,(Le=typeof F=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(T!==Ze||Ct!==me)&&dh(s,I,g,me),lc=!1,Ct=s.memoizedState,I.state=Ct,Sa(s,g,I,y),hs();var Yt=s.memoizedState;T!==Ze||Ct!==Yt||lc||a!==null&&a.dependencies!==null&&Te(a.dependencies)?(typeof F=="function"&&(ug(s,A,F,g),Yt=s.memoizedState),(rt=lc||Bd(s,A,rt,g,Ct,Yt,me)||a!==null&&a.dependencies!==null&&Te(a.dependencies))?(Le||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(g,Yt,me),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(g,Yt,me)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||T===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=1024),s.memoizedProps=g,s.memoizedState=Yt),I.props=g,I.state=Yt,I.context=me,g=rt):(typeof I.componentDidUpdate!="function"||T===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&Ct===a.memoizedState||(s.flags|=1024),g=!1)}return I=g,Rd(a,s),g=(s.flags&128)!==0,I||g?(I=s.stateNode,A=g&&typeof A.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,a!==null&&g?(s.child=eu(s,a.child,null,y),s.child=eu(s,null,A,y)):Nr(a,s,A,y),s.memoizedState=I.state,a=s.child):a=Ui(a,s,y),a}i(mh,"updateClassComponent");function gg(a,s,A,g){return wt(),s.flags|=256,Nr(a,s,A,g),s.child}i(gg,"mountHostRootWithoutHydrating");function wd(a){return{baseLanes:a,cachePool:Ue()}}i(wd,"mountSuspenseOffscreenState");function ys(a,s,A){return a=a!==null?a.childLanes&~A:0,s&&(a|=fa),a}i(ys,"getRemainingWorkInPrimaryTree");function pg(a,s,A){var g=s.pendingProps,y=!1,I=(s.flags&128)!==0,T;if((T=I)||(T=a!==null&&a.memoizedState===null?!1:(or.current&2)!==0),T&&(y=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,a===null){if(En){if(y?ao(s):Mi(s),(a=Co)?(a=ov(a,Ma),a!==null&&(s.memoizedState={dehydrated:a,treeContext:Rl!==null?{id:Ri,overflow:Ds}:null,retryLane:536870912,hydrationErrors:null},A=Gg(a),A.return=s,s.child=A,Sr=s,Co=null)):a=null,a===null)throw te(s);return ef(a)?s.lanes=32:s.lanes=536870912,null}var F=g.children;return g=g.fallback,y?(Mi(s),y=s.mode,F=Za({mode:"hidden",children:F},y),g=yl(g,y,A,null),F.return=s,g.return=s,F.sibling=g,s.child=F,g=s.child,g.memoizedState=wd(A),g.childLanes=ys(a,T,A),s.memoizedState=yp,ba(null,g)):(ao(s),mg(s,F))}var me=a.memoizedState;if(me!==null&&(F=me.dehydrated,F!==null)){if(I)s.flags&256?(ao(s),s.flags&=-257,s=Si(a,s,A)):s.memoizedState!==null?(Mi(s),s.child=a.child,s.flags|=128,s=null):(Mi(s),F=g.fallback,y=s.mode,g=Za({mode:"visible",children:g.children},y),F=yl(F,y,A,null),F.flags|=2,g.return=s,F.return=s,g.sibling=F,s.child=g,eu(s,a.child,null,A),g=s.child,g.memoizedState=wd(A),g.childLanes=ys(a,T,A),s.memoizedState=yp,s=ba(null,g));else if(ao(s),ef(F))T=Jc(F).digest,g=Error(c(419)),g.stack="",g.digest=T,gt({value:g,source:null,stack:null}),s=Si(a,s,A);else if(fr||be(a,s,A,!1),T=(A&a.childLanes)!==0,fr||T){if(T=so,T!==null&&(g=ae(T,A),g!==0&&g!==me.retryLane))throw me.retryLane=g,ti(a,g),vi(T,a,g),Cp;$d(F)||tA(),s=Si(a,s,A)}else $d(F)?(s.flags|=192,s.child=a.child,s=null):(a=me.treeContext,jr&&(Co=iI(F),Sr=s,En=!0,wl=null,Ma=!1,a!==null&&Ce(s,a)),s=mg(s,g.children),s.flags|=4096);return s}return y?(Mi(s),F=g.fallback,y=s.mode,me=a.child,I=me.sibling,g=vs(me,{mode:"hidden",children:g.children}),g.subtreeFlags=me.subtreeFlags&65011712,I!==null?F=vs(I,F):(F=yl(F,y,A,null),F.flags|=2),F.return=s,g.return=s,g.sibling=F,s.child=g,ba(null,g),g=s.child,F=a.child.memoizedState,F===null?F=wd(A):(y=F.cachePool,y!==null?(me=Da?xo._currentValue:xo._currentValue2,y=y.parent!==me?{parent:me,pool:me}:y):y=Ue(),F={baseLanes:F.baseLanes|A,cachePool:y}),g.memoizedState=F,g.childLanes=ys(a,T,A),s.memoizedState=yp,ba(a.child,g)):(ao(s),A=a.child,a=A.sibling,A=vs(A,{mode:"visible",children:g.children}),A.return=s,A.sibling=null,a!==null&&(T=s.deletions,T===null?(s.deletions=[a],s.flags|=16):T.push(a)),s.child=A,s.memoizedState=null,A)}i(pg,"updateSuspenseComponent");function mg(a,s){return s=Za({mode:"visible",children:s},a.mode),s.return=a,a.child=s}i(mg,"mountSuspensePrimaryChildren");function Za(a,s){return a=o(22,a,null,s),a.lanes=0,a}i(Za,"mountWorkInProgressOffscreenFiber");function Si(a,s,A){return eu(s,a.child,null,A),a=mg(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}i(Si,"retrySuspenseComponentWithoutHydrating");function xd(a,s,A){a.lanes|=s;var g=a.alternate;g!==null&&(g.lanes|=s),at(a.return,s,A)}i(xd,"scheduleSuspenseWorkOnFiber");function an(a,s,A,g,y,I){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:g,tail:A,tailMode:y,treeForkCount:I}:(T.isBackwards=s,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=A,T.tailMode=y,T.treeForkCount=I)}i(an,"initSuspenseListRenderState");function Ye(a,s,A){var g=s.pendingProps,y=g.revealOrder,I=g.tail;g=g.children;var T=or.current,F=(T&2)!==0;if(F?(T=T&1|2,s.flags|=128):T&=1,M(or,T),Nr(a,s,g,A),g=En?Ae:0,!F&&a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&xd(a,A,s);else if(a.tag===19)xd(a,A,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(A=s.child,y=null;A!==null;)a=A.alternate,a!==null&&yi(a)===null&&(y=A),A=A.sibling;A=y,A===null?(y=s.child,s.child=null):(y=A.sibling,A.sibling=null),an(s,!1,y,A,I,g);break;case"backwards":case"unstable_legacy-backwards":for(A=null,y=s.child,s.child=null;y!==null;){if(a=y.alternate,a!==null&&yi(a)===null){s.child=y;break}a=y.sibling,y.sibling=A,A=y,y=a}an(s,!0,A,null,I,g);break;case"together":an(s,!1,null,null,void 0,g);break;default:s.memoizedState=null}return s.child}i(Ye,"updateSuspenseListComponent");function Ui(a,s,A){if(a!==null&&(s.dependencies=a.dependencies),Ac|=s.lanes,(A&s.childLanes)===0)if(a!==null){if(be(a,s,A,!1),(A&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(c(153));if(s.child!==null){for(a=s.child,A=vs(a,a.pendingProps),s.child=A,A.return=s;a.sibling!==null;)a=a.sibling,A=A.sibling=vs(a,a.pendingProps),A.return=s;A.sibling=null}return s.child}i(Ui,"bailoutOnAlreadyFinishedWork");function Xu(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Te(a)))}i(Xu,"checkScheduledUpdateOrContext");function Ho(a,s,A){switch(s.tag){case 3:Ve(s,s.stateNode.containerInfo),Ie(s,xo,a.memoizedState.cache),wt();break;case 27:case 5:et(s);break;case 4:Ve(s,s.stateNode.containerInfo);break;case 10:Ie(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,ra(s),null;break;case 13:var g=s.memoizedState;if(g!==null)return g.dehydrated!==null?(ao(s),s.flags|=128,null):(A&s.child.childLanes)!==0?pg(a,s,A):(ao(s),a=Ui(a,s,A),a!==null?a.sibling:null);ao(s);break;case 19:var y=(a.flags&128)!==0;if(g=(A&s.childLanes)!==0,g||(be(a,s,A,!1),g=(A&s.childLanes)!==0),y){if(g)return Ye(a,s,A);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),M(or,or.current),g)break;return null;case 22:return s.lanes=0,pl(a,s,A,s.pendingProps);case 24:Ie(s,xo,a.memoizedState.cache)}return Ui(a,s,A)}i(Ho,"attemptEarlyBailoutIfNoScheduledUpdate");function hg(a,s,A){if(a!==null)if(a.memoizedProps!==s.pendingProps)fr=!0;else{if(!Xu(a,A)&&(s.flags&128)===0)return fr=!1,Ho(a,s,A);fr=(a.flags&131072)!==0}else fr=!1,En&&(s.flags&1048576)!==0&&it(s,Ae,s.index);switch(s.lanes=0,s.tag){case 16:e:{var g=s.pendingProps;if(a=xt(s.elementType),s.type=a,typeof a=="function")Fd(a)?(g=Cs(a,g),s.tag=1,s=mh(null,s,a,g,A)):(s.tag=0,s=gh(null,s,a,g,A));else{if(a!=null){var y=a.$$typeof;if(y===oA){s.tag=11,s=Qd(null,s,a,g,A);break e}else if(y===Uh){s.tag=14,s=dg(null,s,a,g,A);break e}}throw s=R(a)||a,Error(c(306,s,""))}}return s;case 0:return gh(a,s,s.type,s.pendingProps,A);case 1:return g=s.type,y=Cs(g,s.pendingProps),mh(a,s,g,y,A);case 3:e:{if(Ve(s,s.stateNode.containerInfo),a===null)throw Error(c(387));var I=s.pendingProps;y=s.memoizedState,g=y.element,Ba(a,s),Sa(s,I,null,A);var T=s.memoizedState;if(I=T.cache,Ie(s,xo,I),I!==y.cache&&kt(s,[xo],A,!0),hs(),I=T.element,jr&&y.isDehydrated)if(y={element:I,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){s=gg(a,s,I,A);break e}else if(I!==g){g=je(Error(c(424)),s),gt(g),s=gg(a,s,I,A);break e}else for(jr&&(Co=$g(s.stateNode.containerInfo),Sr=s,En=!0,wl=null,Ma=!0),A=QI(s,null,I,A),s.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(wt(),I===g){s=Ui(a,s,A);break e}Nr(a,s,I,A)}s=s.child}return s;case 26:if(Ta)return Rd(a,s),a===null?(A=lA(s.type,null,s.pendingProps,null))?s.memoizedState=A:En||(s.stateNode=CI(s.type,s.pendingProps,ac.current,s)):s.memoizedState=lA(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:if(ur)return et(s),a===null&&ur&&En&&(g=s.stateNode=rp(s.type,s.pendingProps,ac.current,Zr.current,!1),Sr=s,Ma=!0,Co=tv(s.type,g,Co)),Nr(a,s,s.pendingProps.children,A),Rd(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&En&&(av(s.type,s.pendingProps,Zr.current),(y=g=Co)&&(g=nv(g,s.type,s.pendingProps,Ma),g!==null?(s.stateNode=g,Sr=s,Co=Wg(g),Ma=!1,y=!0):y=!1),y||te(s)),et(s),y=s.type,I=s.pendingProps,T=a!==null?a.memoizedProps:null,g=I.children,Vd(y,I)?g=null:T!==null&&Vd(y,T)&&(s.flags|=32),s.memoizedState!==null&&(y=oi(a,s,ia,null,null,A),Da?rc._currentValue=y:rc._currentValue2=y),Rd(a,s),Nr(a,s,g,A),s.child;case 6:return a===null&&En&&($h(s.pendingProps,Zr.current),(a=A=Co)&&(A=aI(A,s.pendingProps,Ma),A!==null?(s.stateNode=A,Sr=s,Co=null,a=!0):a=!1),a||te(s)),null;case 13:return pg(a,s,A);case 4:return Ve(s,s.stateNode.containerInfo),g=s.pendingProps,a===null?s.child=eu(s,null,g,A):Nr(a,s,g,A),s.child;case 11:return Qd(a,s,s.type,s.pendingProps,A);case 7:return Nr(a,s,s.pendingProps,A),s.child;case 8:return Nr(a,s,s.pendingProps.children,A),s.child;case 12:return Nr(a,s,s.pendingProps.children,A),s.child;case 10:return g=s.pendingProps,Ie(s,s.type,g.value),Nr(a,s,g.children,A),s.child;case 9:return y=s.type._context,g=s.pendingProps.children,fe(s),y=tt(y),g=g(y),s.flags|=1,Nr(a,s,g,A),s.child;case 14:return dg(a,s,s.type,s.pendingProps,A);case 15:return fg(a,s,s.type,s.pendingProps,A);case 19:return Ye(a,s,A);case 31:return bd(a,s,A);case 22:return pl(a,s,A,s.pendingProps);case 24:return fe(s),g=tt(xo),a===null?(y=j(),y===null&&(y=so,I=In(),y.pooledCache=I,I.refCount++,I!==null&&(y.pooledCacheLanes|=A),y=I),s.memoizedState={parent:g,cache:y},Ja(s),Ie(s,xo,y)):((a.lanes&A)!==0&&(Ba(a,s),Sa(s,null,null,A),hs()),y=a.memoizedState,I=s.memoizedState,y.parent!==g?(y={parent:g,cache:g},s.memoizedState=y,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=y),Ie(s,xo,g)):(g=I.cache,Ie(s,xo,g),g!==y.cache&&kt(s,[xo],A,!0))),Nr(a,s,s.pendingProps.children,A),s.child;case 29:throw s.pendingProps}throw Error(c(156,s.tag))}i(hg,"beginWork");function la(a){a.flags|=4}i(la,"markUpdate");function Dd(a){ns&&(a.flags|=8)}i(Dd,"markCloned");function Eg(a,s){if(a!==null&&a.child===s.child)return!1;if((s.flags&16)!==0)return!0;for(a=s.child;a!==null;){if((a.flags&8218)!==0||(a.subtreeFlags&8218)!==0)return!0;a=a.sibling}return!1}i(Eg,"doesRequireClone");function hh(a,s,A,g){if(li)for(A=s.child;A!==null;){if(A.tag===5||A.tag===6)Jg(a,A.stateNode);else if(!(A.tag===4||ur&&A.tag===27)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===s)break;for(;A.sibling===null;){if(A.return===null||A.return===s)return;A=A.return}A.sibling.return=A.return,A=A.sibling}else if(ns)for(var y=s.child;y!==null;){if(y.tag===5){var I=y.stateNode;A&&g&&(I=Sl(I,y.type,y.memoizedProps)),Jg(a,I)}else if(y.tag===6)I=y.stateNode,A&&g&&(I=Wd(I,y.memoizedProps)),Jg(a,I);else if(y.tag!==4){if(y.tag===22&&y.memoizedState!==null)I=y.child,I!==null&&(I.return=y),hh(a,y,!0,!0);else if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===s)break;for(;y.sibling===null;){if(y.return===null||y.return===s)return;y=y.return}y.sibling.return=y.return,y=y.sibling}}i(hh,"appendAllChildren");function Cg(a,s,A,g){var y=!1;if(ns)for(var I=s.child;I!==null;){if(I.tag===5){var T=I.stateNode;A&&g&&(T=Sl(T,I.type,I.memoizedProps)),jh(a,T)}else if(I.tag===6)T=I.stateNode,A&&g&&(T=Wd(T,I.memoizedProps)),jh(a,T);else if(I.tag!==4){if(I.tag===22&&I.memoizedState!==null)y=I.child,y!==null&&(y.return=I),Cg(a,I,!0,!0),y=!0;else if(I.child!==null){I.child.return=I,I=I.child;continue}}if(I===s)break;for(;I.sibling===null;){if(I.return===null||I.return===s)return y;I=I.return}I.sibling.return=I.return,I=I.sibling}return y}i(Cg,"appendAllChildrenToContainer");function yg(a,s){if(ns&&Eg(a,s)){a=s.stateNode;var A=a.containerInfo,g=Eo();Cg(g,s,!1,!1),a.pendingChildren=g,la(s),eI(A,g)}}i(yg,"updateHostContainer");function Td(a,s,A,g){if(li)a.memoizedProps!==g&&la(s);else if(ns){var y=a.stateNode,I=a.memoizedProps;if((a=Eg(a,s))||I!==g){var T=Zr.current;I=$y(y,A,I,g,!a,null),I===y?s.stateNode=y:(Dd(s),Hy(I,A,g,T)&&la(s),s.stateNode=I,a&&hh(I,s,!1,!1))}else s.stateNode=y}}i(Td,"updateHostComponent");function Jr(a,s,A,g,y){if((a.mode&32)!==0&&(A===null?Gy(s,g):$S(s,A,g))){if(a.flags|=16777216,(y&335544128)===y||rA(s,g))if(Vr(a.stateNode,s,g))a.flags|=8192;else if(xy())a.flags|=8192;else throw Oa=gp,dp}else a.flags&=-16777217}i(Jr,"preloadInstanceAndSuspendIfNeeded");function jn(a,s){if(sv(s)){if(a.flags|=16777216,!op(s))if(xy())a.flags|=8192;else throw Oa=gp,dp}else a.flags&=-16777217}i(jn,"preloadResourceAndSuspendIfNeeded");function Uc(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Qe():536870912,a.lanes|=s,IA|=s)}i(Uc,"scheduleRetryEffect");function ml(a,s){if(!En)switch(a.tailMode){case"hidden":s=a.tail;for(var A=null;s!==null;)s.alternate!==null&&(A=s),s=s.sibling;A===null?a.tail=null:A.sibling=null;break;case"collapsed":A=a.tail;for(var g=null;A!==null;)A.alternate!==null&&(g=A),A=A.sibling;g===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}i(ml,"cutOffTailIfNeeded");function zn(a){var s=a.alternate!==null&&a.alternate.child===a.child,A=0,g=0;if(s)for(var y=a.child;y!==null;)A|=y.lanes|y.childLanes,g|=y.subtreeFlags&65011712,g|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)A|=y.lanes|y.childLanes,g|=y.subtreeFlags,g|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=g,a.childLanes=A,s}i(zn,"bubbleProperties");function Lc(a,s,A){var g=s.pendingProps;switch(P(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zn(s),null;case 1:return zn(s),null;case 3:return A=s.stateNode,g=null,a!==null&&(g=a.memoizedState.cache),s.memoizedState.cache!==g&&(s.flags|=2048),Ne(xo),oe(),A.pendingContext&&(A.context=A.pendingContext,A.pendingContext=null),(a===null||a.child===null)&&(ut(s)?la(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Gt())),yg(a,s),zn(s),null;case 26:if(Ta){var y=s.type,I=s.memoizedState;return a===null?(la(s),I!==null?(zn(s),jn(s,I)):(zn(s),Jr(s,y,null,g,A))):I?I!==a.memoizedState?(la(s),zn(s),jn(s,I)):(zn(s),s.flags&=-16777217):(I=a.memoizedProps,li?I!==g&&la(s):Td(a,s,y,g),zn(s),Jr(s,y,I,g,A)),null}case 27:if(ur){if(Et(s),A=ac.current,y=s.type,a!==null&&s.stateNode!=null)li?a.memoizedProps!==g&&la(s):Td(a,s,y,g);else{if(!g){if(s.stateNode===null)throw Error(c(166));return zn(s),null}a=Zr.current,ut(s)?se(s,a):(a=rp(y,g,A,a,!0),s.stateNode=a,la(s))}return zn(s),null}case 5:if(Et(s),y=s.type,a!==null&&s.stateNode!=null)Td(a,s,y,g);else{if(!g){if(s.stateNode===null)throw Error(c(166));return zn(s),null}if(I=Zr.current,ut(s))se(s,I),fI(s.stateNode,y,g,I)&&(s.flags|=64);else{var T=bs(y,g,ac.current,I,s);Dd(s),hh(T,s,!1,!1),s.stateNode=T,Hy(T,y,g,I)&&la(s)}}return zn(s),Jr(s,s.type,a===null?null:a.memoizedProps,s.pendingProps,A),null;case 6:if(a&&s.stateNode!=null)A=a.memoizedProps,li?A!==g&&la(s):ns&&(A!==g?(a=ac.current,A=Zr.current,Dd(s),s.stateNode=jg(g,a,A,s)):s.stateNode=a.stateNode);else{if(typeof g!="string"&&s.stateNode===null)throw Error(c(166));if(a=ac.current,A=Zr.current,ut(s)){if(!jr)throw Error(c(176));if(a=s.stateNode,A=s.memoizedProps,g=null,y=Sr,y!==null)switch(y.tag){case 27:case 5:g=y.memoizedProps}ep(a,A,s,g)||te(s,!0)}else Dd(s),s.stateNode=jg(g,a,A,s)}return zn(s),null;case 31:if(A=s.memoizedState,a===null||a.memoizedState!==null){if(g=ut(s),A!==null){if(a===null){if(!g)throw Error(c(318));if(!jr)throw Error(c(556));if(a=s.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(c(557));lI(a,s)}else wt(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zn(s),a=!1}else A=Gt(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=A),a=!0;if(!a)return s.flags&256?(Zo(s),s):(Zo(s),null);if((s.flags&128)!==0)throw Error(c(558))}return zn(s),null;case 13:if(g=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=ut(s),g!==null&&g.dehydrated!==null){if(a===null){if(!y)throw Error(c(318));if(!jr)throw Error(c(344));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(c(317));Zh(y,s)}else wt(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;zn(s),y=!1}else y=Gt(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return s.flags&256?(Zo(s),s):(Zo(s),null)}return Zo(s),(s.flags&128)!==0?(s.lanes=A,s):(A=g!==null,a=a!==null&&a.memoizedState!==null,A&&(g=s.child,y=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(y=g.alternate.memoizedState.cachePool.pool),I=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(I=g.memoizedState.cachePool.pool),I!==y&&(g.flags|=2048)),A!==a&&A&&(s.child.flags|=8192),Uc(s,s.updateQueue),zn(s),null);case 4:return oe(),yg(a,s),a===null&&WS(s.stateNode.containerInfo),zn(s),null;case 10:return Ne(s.type),zn(s),null;case 19:if(b(or),g=s.memoizedState,g===null)return zn(s),null;if(y=(s.flags&128)!==0,I=g.rendering,I===null)if(y)ml(g,!1);else{if(ko!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(I=yi(a),I!==null){for(s.flags|=128,ml(g,!1),a=I.updateQueue,s.updateQueue=a,Uc(s,a),s.subtreeFlags=0,a=A,A=s.child;A!==null;)Nh(A,a),A=A.sibling;return M(or,or.current&1|2),En&&W(s,g.treeForkCount),s.child}a=a.sibling}g.tail!==null&&Vn()>BA&&(s.flags|=128,y=!0,ml(g,!1),s.lanes=4194304)}else{if(!y)if(a=yi(I),a!==null){if(s.flags|=128,y=!0,a=a.updateQueue,s.updateQueue=a,Uc(s,a),ml(g,!0),g.tail===null&&g.tailMode==="hidden"&&!I.alternate&&!En)return zn(s),null}else 2*Vn()-g.renderingStartTime>BA&&A!==536870912&&(s.flags|=128,y=!0,ml(g,!1),s.lanes=4194304);g.isBackwards?(I.sibling=s.child,s.child=I):(a=g.last,a!==null?a.sibling=I:s.child=I,g.last=I)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=Vn(),a.sibling=null,A=or.current,M(or,y?A&1|2:A&1),En&&W(s,g.treeForkCount),a):(zn(s),null);case 22:case 23:return Zo(s),Fn(),g=s.memoizedState!==null,a!==null?a.memoizedState!==null!==g&&(s.flags|=8192):g&&(s.flags|=8192),g?(A&536870912)!==0&&(s.flags&128)===0&&(zn(s),s.subtreeFlags&6&&(s.flags|=8192)):zn(s),A=s.updateQueue,A!==null&&Uc(s,A.retryQueue),A=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(A=a.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==A&&(s.flags|=2048),a!==null&&b(sc),null;case 24:return A=null,a!==null&&(A=a.memoizedState.cache),s.memoizedState.cache!==A&&(s.flags|=2048),Ne(xo),zn(s),null;case 25:return null;case 30:return null}throw Error(c(156,s.tag))}i(Lc,"completeWork");function Wa(a,s){switch(P(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Ne(xo),oe(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return Et(s),null;case 31:if(s.memoizedState!==null){if(Zo(s),s.alternate===null)throw Error(c(340));wt()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 13:if(Zo(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(c(340));wt()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return b(or),null;case 4:return oe(),null;case 10:return Ne(s.type),null;case 22:case 23:return Zo(s),Fn(),a!==null&&b(sc),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Ne(xo),null;case 25:return null;default:return null}}i(Wa,"unwindWork");function Ig(a,s){switch(P(s),s.tag){case 3:Ne(xo),oe();break;case 26:case 27:case 5:Et(s);break;case 4:oe();break;case 31:s.memoizedState!==null&&Zo(s);break;case 13:Zo(s);break;case 19:b(or);break;case 10:Ne(s.type);break;case 22:case 23:Zo(s),Fn(),a!==null&&b(sc);break;case 24:Ne(xo)}}i(Ig,"unwindInterruptedWork");function Is(a,s){try{var A=s.updateQueue,g=A!==null?A.lastEffect:null;if(g!==null){var y=g.next;A=y;do{if((A.tag&a)===a){g=void 0;var I=A.create,T=A.inst;g=I(),T.destroy=g}A=A.next}while(A!==y)}}catch(F){Hn(s,s.return,F)}}i(Is,"commitHookEffectListMount");function Bs(a,s,A){try{var g=s.updateQueue,y=g!==null?g.lastEffect:null;if(y!==null){var I=y.next;g=I;do{if((g.tag&a)===a){var T=g.inst,F=T.destroy;if(F!==void 0){T.destroy=void 0,y=s;var me=A,Le=F;try{Le()}catch(rt){Hn(y,me,rt)}}}g=g.next}while(g!==I)}}catch(rt){Hn(s,s.return,rt)}}i(Bs,"commitHookEffectListUnmount");function Zu(a){var s=a.updateQueue;if(s!==null){var A=a.stateNode;try{Ku(s,A)}catch(g){Hn(a,a.return,g)}}}i(Zu,"commitClassCallbacks");function Bg(a,s,A){A.props=Cs(a.type,a.memoizedProps),A.state=a.memoizedState;try{A.componentWillUnmount()}catch(g){Hn(a,s,g)}}i(Bg,"safelyCallComponentWillUnmount");function Vl(a,s){try{var A=a.ref;if(A!==null){switch(a.tag){case 26:case 27:case 5:var g=Jd(a.stateNode);break;case 30:g=a.stateNode;break;default:g=a.stateNode}typeof A=="function"?a.refCleanup=A(g):A.current=g}}catch(y){Hn(a,s,y)}}i(Vl,"safelyAttachRef");function $a(a,s){var A=a.ref,g=a.refCleanup;if(A!==null)if(typeof g=="function")try{g()}catch(y){Hn(a,s,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof A=="function")try{A(null)}catch(y){Hn(a,s,y)}else A.current=null}i($a,"safelyDetachRef");function Eh(a){var s=a.type,A=a.memoizedProps,g=a.stateNode;try{jy(g,s,A,a)}catch(y){Hn(a,a.return,y)}}i(Eh,"commitHostMount");function Sg(a,s,A){try{Vg(a.stateNode,a.type,A,s,a)}catch(g){Hn(a,a.return,g)}}i(Sg,"commitHostUpdate");function Ch(a){return a.tag===5||a.tag===3||(Ta?a.tag===26:!1)||(ur?a.tag===27&&Vc(a.type):!1)||a.tag===4}i(Ch,"isHostParent");function vg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Ch(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(ur&&a.tag===27&&Vc(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}i(vg,"getHostSibling");function _d(a,s,A){var g=a.tag;if(g===5||g===6)a=a.stateNode,s?Xy(A,a,s):Jy(A,a);else if(g!==4&&(ur&&g===27&&Vc(a.type)&&(A=a.stateNode,s=null),a=a.child,a!==null))for(_d(a,s,A),a=a.sibling;a!==null;)_d(a,s,A),a=a.sibling}i(_d,"insertOrAppendPlacementNodeIntoContainer");function Wu(a,s,A){var g=a.tag;if(g===5||g===6)a=a.stateNode,s?Vy(A,a,s):Py(A,a);else if(g!==4&&(ur&&g===27&&Vc(a.type)&&(A=a.stateNode),a=a.child,a!==null))for(Wu(a,s,A),a=a.sibling;a!==null;)Wu(a,s,A),a=a.sibling}i(Wu,"insertOrAppendPlacementNode");function Qg(a,s,A){a=a.containerInfo;try{tI(a,A)}catch(g){Hn(s,s.return,g)}}i(Qg,"commitHostPortalContainerChildren");function yh(a){var s=a.stateNode,A=a.memoizedProps;try{ip(a.type,A,s,a)}catch(g){Hn(a,a.return,g)}}i(yh,"commitHostSingletonAcquisition");function By(a,s){for(ZS(a.containerInfo),Mr=s;Mr!==null;)if(a=Mr,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,Mr=s;else for(;Mr!==null;){a=Mr;var A=a.alternate;switch(s=a.flags,a.tag){case 0:if((s&4)!==0&&(s=a.updateQueue,s=s!==null?s.events:null,s!==null))for(var g=0;g<s.length;g++){var y=s[g];y.ref.impl=y.nextImpl}break;case 11:case 15:break;case 1:if((s&1024)!==0&&A!==null){s=void 0,g=a,y=A.memoizedProps,A=A.memoizedState;var I=g.stateNode;try{var T=Cs(g.type,y);s=I.getSnapshotBeforeUpdate(T,A),I.__reactInternalSnapshotBeforeUpdate=s}catch(F){Hn(g,g.return,F)}}break;case 3:(s&1024)!==0&&li&&ua(a.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(c(163))}if(s=a.sibling,s!==null){s.return=a.return,Mr=s;break}Mr=a.return}}i(By,"commitBeforeMutationEffects");function Ih(a,s,A){var g=A.flags;switch(A.tag){case 0:case 11:case 15:wa(a,A),g&4&&Is(5,A);break;case 1:if(wa(a,A),g&4)if(a=A.stateNode,s===null)try{a.componentDidMount()}catch(T){Hn(A,A.return,T)}else{var y=Cs(A.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(y,s,a.__reactInternalSnapshotBeforeUpdate)}catch(T){Hn(A,A.return,T)}}g&64&&Zu(A),g&512&&Vl(A,A.return);break;case 3:if(wa(a,A),g&64&&(g=A.updateQueue,g!==null)){if(a=null,A.child!==null)switch(A.child.tag){case 27:case 5:a=Jd(A.child.stateNode);break;case 1:a=A.child.stateNode}try{Ku(g,a)}catch(T){Hn(A,A.return,T)}}break;case 27:ur&&s===null&&g&4&&yh(A);case 26:case 5:if(wa(a,A),s===null){if(g&4)Eh(A);else if(g&64){a=A.type,s=A.memoizedProps,y=A.stateNode;try{AI(y,a,s,A)}catch(T){Hn(A,A.return,T)}}}g&512&&Vl(A,A.return);break;case 12:wa(a,A);break;case 31:wa(a,A),g&4&&Bh(a,A);break;case 13:wa(a,A),g&4&&Rg(a,A),g&64&&(g=A.memoizedState,g!==null&&(g=g.dehydrated,g!==null&&(A=Ug.bind(null,A),iA(g,A))));break;case 22:if(g=A.memoizedState!==null||Ms,!g){s=s!==null&&s.memoizedState!==null||rr,y=Ms;var I=rr;Ms=g,(rr=s)&&!I?es(a,A,(A.subtreeFlags&8772)!==0):wa(a,A),Ms=y,rr=I}break;case 30:break;default:wa(a,A)}}i(Ih,"commitLayoutEffectOnFiber");function Sy(a){var s=a.alternate;s!==null&&(a.alternate=null,Sy(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&Ly(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}i(Sy,"detachFiberAfterEffects");function Ra(a,s,A){for(A=A.child;A!==null;)bg(a,s,A),A=A.sibling}i(Ra,"recursivelyTraverseDeletionEffects");function bg(a,s,A){if(tr&&typeof tr.onCommitFiberUnmount=="function")try{tr.onCommitFiberUnmount(Zc,A)}catch{}switch(A.tag){case 26:if(Ta){rr||$a(A,s),Ra(a,s,A),A.memoizedState?EI(A.memoizedState):A.stateNode&&tE(A.stateNode);break}case 27:if(ur){rr||$a(A,s);var g=gr,y=qi;Vc(A.type)&&(gr=A.stateNode,qi=!1),Ra(a,s,A),ic(A.stateNode),gr=g,qi=y;break}case 5:rr||$a(A,s);case 6:if(li){if(g=gr,y=qi,gr=null,Ra(a,s,A),gr=g,qi=y,gr!==null)if(qi)try{Jh(gr,A.stateNode)}catch(I){Hn(A,s,I)}else try{Ph(gr,A.stateNode)}catch(I){Hn(A,s,I)}}else Ra(a,s,A);break;case 18:li&&gr!==null&&(qi?Wh(gr,A.stateNode):kn(gr,A.stateNode));break;case 4:li?(g=gr,y=qi,gr=A.stateNode.containerInfo,qi=!0,Ra(a,s,A),gr=g,qi=y):(ns&&Qg(A.stateNode,A,Eo()),Ra(a,s,A));break;case 0:case 11:case 14:case 15:Bs(2,A,s),rr||Bs(4,A,s),Ra(a,s,A);break;case 1:rr||($a(A,s),g=A.stateNode,typeof g.componentWillUnmount=="function"&&Bg(A,s,g)),Ra(a,s,A);break;case 21:Ra(a,s,A);break;case 22:rr=(g=rr)||A.memoizedState!==null,Ra(a,s,A),rr=g;break;default:Ra(a,s,A)}}i(bg,"commitDeletionEffectsOnFiber");function Bh(a,s){if(jr&&s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{dI(a)}catch(A){Hn(s,s.return,A)}}}i(Bh,"commitActivityHydrationCallbacks");function Rg(a,s){if(jr&&s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{sA(a)}catch(A){Hn(s,s.return,A)}}i(Rg,"commitSuspenseHydrationCallbacks");function vy(a){switch(a.tag){case 31:case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new Ip),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new Ip),s;default:throw Error(c(435,a.tag))}}i(vy,"getRetryCache");function Nd(a,s){var A=vy(a);s.forEach(function(g){if(!A.has(g)){A.add(g);var y=Ny.bind(null,a,g);g.then(y,y)}})}i(Nd,"attachSuspenseRetryListeners");function $o(a,s){var A=s.deletions;if(A!==null)for(var g=0;g<A.length;g++){var y=A[g],I=a,T=s;if(li){var F=T;e:for(;F!==null;){switch(F.tag){case 27:if(ur){if(Vc(F.type)){gr=F.stateNode,qi=!1;break e}break}case 5:gr=F.stateNode,qi=!1;break e;case 3:case 4:gr=F.stateNode.containerInfo,qi=!0;break e}F=F.return}if(gr===null)throw Error(c(160));bg(I,T,y),gr=null,qi=!1}else bg(I,T,y);I=y.alternate,I!==null&&(I.return=null),y.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Md(s,a),s=s.sibling}i($o,"recursivelyTraverseMutationEffects");function Md(a,s){var A=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:$o(s,a),ai(a),g&4&&(Bs(3,a,a.return),Is(3,a),Bs(5,a,a.return));break;case 1:$o(s,a),ai(a),g&512&&(rr||A===null||$a(A,A.return)),g&64&&Ms&&(a=a.updateQueue,a!==null&&(g=a.callbacks,g!==null&&(A=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=A===null?g:A.concat(g))));break;case 26:if(Ta){var y=ss;if($o(s,a),ai(a),g&512&&(rr||A===null||$a(A,A.return)),g&4){g=A!==null?A.memoizedState:null;var I=a.memoizedState;A===null?I===null?a.stateNode===null?a.stateNode=jc(y,a.type,a.memoizedProps,a):np(y,a.type,a.stateNode):a.stateNode=hI(y,I,a.memoizedProps):g!==I?(g===null?A.stateNode!==null&&tE(A.stateNode):EI(g),I===null?np(y,a.type,a.stateNode):hI(y,I,a.memoizedProps)):I===null&&a.stateNode!==null&&Sg(a,a.memoizedProps,A.memoizedProps)}break}case 27:if(ur){$o(s,a),ai(a),g&512&&(rr||A===null||$a(A,A.return)),A!==null&&g&4&&Sg(a,a.memoizedProps,A.memoizedProps);break}case 5:if($o(s,a),ai(a),g&512&&(rr||A===null||$a(A,A.return)),li){if(a.flags&32){y=a.stateNode;try{Xg(y)}catch(Ze){Hn(a,a.return,Ze)}}g&4&&a.stateNode!=null&&(y=a.memoizedProps,Sg(a,y,A!==null?A.memoizedProps:y)),g&1024&&(uf=!0)}else ns&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if($o(s,a),ai(a),g&4&&li){if(a.stateNode===null)throw Error(c(162));g=a.memoizedProps,A=A!==null?A.memoizedProps:g,y=a.stateNode;try{Zd(y,A,g)}catch(Ze){Hn(a,a.return,Ze)}}break;case 3:if(Ta?(yI(),y=ss,ss=tp(s.containerInfo),$o(s,a),ss=y):$o(s,a),ai(a),g&4){if(li&&jr&&A!==null&&A.memoizedState.isDehydrated)try{rv(s.containerInfo)}catch(Ze){Hn(a,a.return,Ze)}if(ns){g=s.containerInfo,A=s.pendingChildren;try{tI(g,A)}catch(Ze){Hn(a,a.return,Ze)}}}uf&&(uf=!1,Qy(a));break;case 4:Ta?(A=ss,ss=tp(a.stateNode.containerInfo),$o(s,a),ai(a),ss=A):($o(s,a),ai(a)),g&4&&ns&&Qg(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:$o(s,a),ai(a);break;case 31:$o(s,a),ai(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,Nd(a,g)));break;case 13:$o(s,a),ai(a),a.child.flags&8192&&a.memoizedState!==null!=(A!==null&&A.memoizedState!==null)&&(ff=Vn()),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,Nd(a,g)));break;case 22:y=a.memoizedState!==null;var T=A!==null&&A.memoizedState!==null,F=Ms,me=rr;if(Ms=F||y,rr=me||T,$o(s,a),rr=me,Ms=F,ai(a),g&8192&&(s=a.stateNode,s._visibility=y?s._visibility&-2:s._visibility|1,y&&(A===null||T||Ms||rr||xa(a)),li)){e:if(A=null,li)for(s=a;;){if(s.tag===5||Ta&&s.tag===26){if(A===null){T=A=s;try{I=T.stateNode,y?Zy(I):ev(T.stateNode,T.memoizedProps)}catch(Ze){Hn(T,T.return,Ze)}}}else if(s.tag===6){if(A===null){T=s;try{var Le=T.stateNode;y?Zg(Le):Wy(Le,T.memoizedProps)}catch(Ze){Hn(T,T.return,Ze)}}}else if(s.tag===18){if(A===null){T=s;try{var rt=T.stateNode;y?iv(rt):pI(T.stateNode)}catch(Ze){Hn(T,T.return,Ze)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;A===s&&(A=null),s=s.return}A===s&&(A=null),s.sibling.return=s.return,s=s.sibling}}g&4&&(g=a.updateQueue,g!==null&&(A=g.retryQueue,A!==null&&(g.retryQueue=null,Nd(a,A))));break;case 19:$o(s,a),ai(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,Nd(a,g)));break;case 30:break;case 21:break;default:$o(s,a),ai(a)}}i(Md,"commitMutationEffectsOnFiber");function ai(a){var s=a.flags;if(s&2){try{for(var A,g=a.return;g!==null;){if(Ch(g)){A=g;break}g=g.return}if(li){if(A==null)throw Error(c(160));switch(A.tag){case 27:if(ur){var y=A.stateNode,I=vg(a);Wu(a,I,y);break}case 5:var T=A.stateNode;A.flags&32&&(Xg(T),A.flags&=-33);var F=vg(a);Wu(a,F,T);break;case 3:case 4:var me=A.stateNode.containerInfo,Le=vg(a);_d(a,Le,me);break;default:throw Error(c(161))}}}catch(rt){Hn(a,a.return,rt)}a.flags&=-3}s&4096&&(a.flags&=-4097)}i(ai,"commitReconciliationEffects");function Qy(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;Qy(s),s.tag===5&&s.flags&1024&&Yc(s.stateNode),a=a.sibling}}i(Qy,"recursivelyResetForms");function wa(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Ih(a,s.alternate,s),s=s.sibling}i(wa,"recursivelyTraverseLayoutEffects");function xa(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Bs(4,s,s.return),xa(s);break;case 1:$a(s,s.return);var A=s.stateNode;typeof A.componentWillUnmount=="function"&&Bg(s,s.return,A),xa(s);break;case 27:ur&&ic(s.stateNode);case 26:case 5:$a(s,s.return),xa(s);break;case 22:s.memoizedState===null&&xa(s);break;case 30:xa(s);break;default:xa(s)}a=a.sibling}}i(xa,"recursivelyTraverseDisappearLayoutEffects");function es(a,s,A){for(A=A&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var g=s.alternate,y=a,I=s,T=I.flags;switch(I.tag){case 0:case 11:case 15:es(y,I,A),Is(4,I);break;case 1:if(es(y,I,A),g=I,y=g.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(Le){Hn(g,g.return,Le)}if(g=I,y=g.updateQueue,y!==null){var F=g.stateNode;try{var me=y.shared.hiddenCallbacks;if(me!==null)for(y.shared.hiddenCallbacks=null,y=0;y<me.length;y++)Mc(me[y],F)}catch(Le){Hn(g,g.return,Le)}}A&&T&64&&Zu(I),Vl(I,I.return);break;case 27:ur&&yh(I);case 26:case 5:es(y,I,A),A&&g===null&&T&4&&Eh(I),Vl(I,I.return);break;case 12:es(y,I,A);break;case 31:es(y,I,A),A&&T&4&&Bh(y,I);break;case 13:es(y,I,A),A&&T&4&&Rg(y,I);break;case 22:I.memoizedState===null&&es(y,I,A),Vl(I,I.return);break;case 30:break;default:es(y,I,A)}s=s.sibling}}i(es,"recursivelyTraverseReappearLayoutEffects");function hl(a,s){var A=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(A=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==A&&(a!=null&&a.refCount++,A!=null&&No(A))}i(hl,"commitOffscreenPassiveMountEffects");function si(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&No(a))}i(si,"commitCachePassiveMountEffect");function Li(a,s,A,g){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)by(a,s,A,g),s=s.sibling}i(Li,"recursivelyTraversePassiveMountEffects");function by(a,s,A,g){var y=s.flags;switch(s.tag){case 0:case 11:case 15:Li(a,s,A,g),y&2048&&Is(9,s);break;case 1:Li(a,s,A,g);break;case 3:Li(a,s,A,g),y&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&No(a)));break;case 12:if(y&2048){Li(a,s,A,g),a=s.stateNode;try{var I=s.memoizedProps,T=I.id,F=I.onPostCommit;typeof F=="function"&&F(T,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(me){Hn(s,s.return,me)}}else Li(a,s,A,g);break;case 31:Li(a,s,A,g);break;case 13:Li(a,s,A,g);break;case 23:break;case 22:I=s.stateNode,T=s.alternate,s.memoizedState!==null?I._visibility&2?Li(a,s,A,g):Zl(a,s):I._visibility&2?Li(a,s,A,g):(I._visibility|=2,Xl(a,s,A,g,(s.subtreeFlags&10256)!==0||!1)),y&2048&&hl(T,s);break;case 24:Li(a,s,A,g),y&2048&&si(s.alternate,s);break;default:Li(a,s,A,g)}}i(by,"commitPassiveMountOnFiber");function Xl(a,s,A,g,y){for(y=y&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var I=a,T=s,F=A,me=g,Le=T.flags;switch(T.tag){case 0:case 11:case 15:Xl(I,T,F,me,y),Is(8,T);break;case 23:break;case 22:var rt=T.stateNode;T.memoizedState!==null?rt._visibility&2?Xl(I,T,F,me,y):Zl(I,T):(rt._visibility|=2,Xl(I,T,F,me,y)),y&&Le&2048&&hl(T.alternate,T);break;case 24:Xl(I,T,F,me,y),y&&Le&2048&&si(T.alternate,T);break;default:Xl(I,T,F,me,y)}s=s.sibling}}i(Xl,"recursivelyTraverseReconnectPassiveEffects");function Zl(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var A=a,g=s,y=g.flags;switch(g.tag){case 22:Zl(A,g),y&2048&&hl(g.alternate,g);break;case 24:Zl(A,g),y&2048&&si(g.alternate,g);break;default:Zl(A,g)}s=s.sibling}}i(Zl,"recursivelyTraverseAtomicPassiveEffects");function El(a,s,A){if(a.subtreeFlags&cc)for(a=a.child;a!==null;)Sh(a,s,A),a=a.sibling}i(El,"recursivelyAccumulateSuspenseyCommit");function Sh(a,s,A){switch(a.tag){case 26:if(El(a,s,A),a.flags&cc)if(a.memoizedState!==null)vl(A,ss,a.memoizedState,a.memoizedProps);else{var g=a.stateNode,y=a.type;a=a.memoizedProps,((s&335544128)===s||rA(y,a))&&ci(A,g,y,a)}break;case 5:El(a,s,A),a.flags&cc&&(g=a.stateNode,y=a.type,a=a.memoizedProps,((s&335544128)===s||rA(y,a))&&ci(A,g,y,a));break;case 3:case 4:Ta?(g=ss,ss=tp(a.stateNode.containerInfo),El(a,s,A),ss=g):El(a,s,A);break;case 22:a.memoizedState===null&&(g=a.alternate,g!==null&&g.memoizedState!==null?(g=cc,cc=16777216,El(a,s,A),cc=g):El(a,s,A));break;default:El(a,s,A)}}i(Sh,"accumulateSuspenseyCommitOnFiber");function wg(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}i(wg,"detachAlternateSiblings");function Wl(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var A=0;A<s.length;A++){var g=s[A];Mr=g,Dg(g,a)}wg(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)xg(a),a=a.sibling}i(Wl,"recursivelyTraversePassiveUnmountEffects");function xg(a){switch(a.tag){case 0:case 11:case 15:Wl(a),a.flags&2048&&Bs(9,a,a.return);break;case 3:Wl(a);break;case 12:Wl(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,Gc(a)):Wl(a);break;default:Wl(a)}}i(xg,"commitPassiveUnmountOnFiber");function Gc(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var A=0;A<s.length;A++){var g=s[A];Mr=g,Dg(g,a)}wg(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Bs(8,s,s.return),Gc(s);break;case 22:A=s.stateNode,A._visibility&2&&(A._visibility&=-3,Gc(s));break;default:Gc(s)}a=a.sibling}}i(Gc,"recursivelyTraverseDisconnectPassiveEffects");function Dg(a,s){for(;Mr!==null;){var A=Mr;switch(A.tag){case 0:case 11:case 15:Bs(8,A,s);break;case 23:case 22:if(A.memoizedState!==null&&A.memoizedState.cachePool!==null){var g=A.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:No(A.memoizedState.cache)}if(g=A.child,g!==null)g.return=A,Mr=g;else e:for(A=a;Mr!==null;){g=Mr;var y=g.sibling,I=g.return;if(Sy(g),g===A){Mr=null;break e}if(y!==null){y.return=I,Mr=y;break e}Mr=I}}}i(Dg,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");function $u(a){var s=Uy(a);if(s!=null){if(typeof s.memoizedProps["data-testname"]!="string")throw Error(c(364));return s}if(a=qh(a),a===null)throw Error(c(362));return a.stateNode.current}i($u,"findFiberRootForHostRoot");function Od(a,s){var A=a.tag;switch(s.$$typeof){case Bp:if(a.type===s.value)return!0;break;case Sp:e:{for(s=s.value,a=[a,0],A=0;A<a.length;){var g=a[A++],y=g.tag,I=a[A++],T=s[I];if(y!==5&&y!==26&&y!==27||!xs(g)){for(;T!=null&&Od(g,T);)I++,T=s[I];if(I===s.length){s=!0;break e}else for(g=g.child;g!==null;)a.push(g,I),g=g.sibling}}s=!1}return s;case vp:if((A===5||A===26||A===27)&&qy(a.stateNode,s.value))return!0;break;case bp:if((A===5||A===6||A===26||A===27)&&(a=Yy(a),a!==null&&0<=a.indexOf(s.value)))return!0;break;case Qp:if((A===5||A===26||A===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===s.value.toLowerCase()))return!0;break;default:throw Error(c(365))}return!1}i(Od,"matchSelector");function Tg(a){switch(a.$$typeof){case Bp:return"<"+(R(a.value)||"Unknown")+">";case Sp:return":has("+(Tg(a)||"")+")";case vp:return'[role="'+a.value+'"]';case bp:return'"'+a.value+'"';case Qp:return'[data-testname="'+a.value+'"]';default:throw Error(c(365))}}i(Tg,"selectorToString");function vh(a,s){var A=[];a=[a,0];for(var g=0;g<a.length;){var y=a[g++],I=y.tag,T=a[g++],F=s[T];if(I!==5&&I!==26&&I!==27||!xs(y)){for(;F!=null&&Od(y,F);)T++,F=s[T];if(T===s.length)A.push(y);else for(y=y.child;y!==null;)a.push(y,T),y=y.sibling}}return A}i(vh,"findPaths");function Hd(a,s){if(!qc)throw Error(c(363));a=$u(a),a=vh(a,s),s=[],a=Array.from(a);for(var A=0;A<a.length;){var g=a[A++],y=g.tag;if(y===5||y===26||y===27)xs(g)||s.push(g.stateNode);else for(g=g.child;g!==null;)a.push(g),g=g.sibling}return s}i(Hd,"findAllNodes");function Gi(){return(Bn&2)!==0&&Rn!==0?Rn&-Rn:Nt.T!==null?yr():os()}i(Gi,"requestUpdateLane");function kd(){if(fa===0)if((Rn&536870912)===0||En){var a=of;of<<=1,(of&3932160)===0&&(of=262144),fa=a}else fa=536870912;return a=Aa.current,a!==null&&(a.flags|=32),fa}i(kd,"requestDeferredLane");function vi(a,s,A){(a===so&&(Wn===2||Wn===9)||a.cancelPendingCommit!==null)&&(ec(a,0),Cl(a,Rn,fa,!1)),Me(a,A),((Bn&2)===0||a!==so)&&(a===so&&((Bn&2)===0&&(ou|=A),ko===4&&Cl(a,Rn,fa,!1)),Vo(a))}i(vi,"scheduleUpdateOnFiber");function Qh(a,s,A){if((Bn&6)!==0)throw Error(c(327));var g=!A&&(s&127)===0&&(s&a.expiredLanes)===0||$(a,s),y=g?Ty(a,s):nA(a,s,!0),I=g;do{if(y===0){nu&&!g&&Cl(a,s,0,!1);break}else{if(A=a.current.alternate,I&&!Ry(A)){y=nA(a,s,!1),I=!1;continue}if(y===2){if(I=s,a.errorRecoveryDisabledLanes&I)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var F=a;y=df;var me=jr&&F.current.memoizedState.isDehydrated;if(me&&(ec(F,T).flags|=256),T=nA(F,T,!1),T!==2){if(uE&&!me){F.errorRecoveryDisabledLanes|=I,ou|=I,y=4;break e}I=Pi,Pi=y,I!==null&&(Pi===null?Pi=I:Pi.push.apply(Pi,I))}y=T}if(I=!1,y!==2)continue}}if(y===1){ec(a,0),Cl(a,s,0,!0);break}e:{switch(g=a,I=y,I){case 0:case 1:throw Error(c(345));case 4:if((s&4194048)!==s)break;case 6:Cl(g,s,fa,!uc);break e;case 2:Pi=null;break;case 3:case 5:break;default:throw Error(c(329))}if((s&62914560)===s&&(y=ff+300-Vn(),10<y)){if(Cl(g,s,fa,!uc),H(g,0,!0)!==0)break e;Os=s,g.timeoutHandle=ky(_g.bind(null,g,A,Pi,wp,Rp,s,fa,ou,IA,uc,I,"Throttled",-0,0),y);break e}_g(g,A,Pi,wp,Rp,s,fa,ou,IA,uc,I,null,-0,0)}}break}while(!0);Vo(a)}i(Qh,"performWorkOnRoot");function _g(a,s,A,g,y,I,T,F,me,Le,rt,Ze,Ct,Yt){if(a.timeoutHandle=Bl,Ze=s.subtreeFlags,Ze&8192||(Ze&16785408)===16785408){Ze=Fy(),Sh(s,I,Ze);var Io=(I&62914560)===I?ff-Vn():(I&4194048)===I?dE-Vn():0;if(Io=zy(Ze,Io),Io!==null){Os=I,a.cancelPendingCommit=Io(xh.bind(null,a,s,I,A,g,y,T,F,me,rt,Ze,null,Ct,Yt)),Cl(a,I,T,!Le);return}}xh(a,s,I,A,g,y,T,F,me)}i(_g,"commitRootWhenReady");function Ry(a){for(var s=a;;){var A=s.tag;if((A===0||A===11||A===15)&&s.flags&16384&&(A=s.updateQueue,A!==null&&(A=A.stores,A!==null)))for(var g=0;g<A.length;g++){var y=A[g],I=y.getSnapshot;y=y.value;try{if(!Xr(I(),y))return!1}catch{return!1}}if(A=s.child,s.subtreeFlags&16384&&A!==null)A.return=s,s=A;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}i(Ry,"isRenderConsistentWithExternalStores");function Cl(a,s,A,g){s&=~AE,s&=~ou,a.suspendedLanes|=s,a.pingedLanes&=~s,g&&(a.warmLanes|=s),g=a.expirationTimes;for(var y=s;0<y;){var I=31-Fi(y),T=1<<I;g[I]=-1,y&=~T}A!==0&&ze(a,A,s)}i(Cl,"markRootSuspended");function $l(){return(Bn&6)===0?(Mo(0,!1),!1):!0}i($l,"flushSyncWork");function Ud(){if(Sn!==null){if(Wn===0)var a=Sn.return;else a=Sn,yo=wi=null,G(a),Ha=null,lf=0,a=Sn;for(;a!==null;)Ig(a.alternate,a),a=a.return;Sn=null}}i(Ud,"resetWorkInProgressStack");function ec(a,s){var A=a.timeoutHandle;A!==Bl&&(a.timeoutHandle=Bl,Kh(A)),A=a.cancelPendingCommit,A!==null&&(a.cancelPendingCommit=null,A()),Os=0,Ud(),so=a,Sn=A=vs(a.current,null),Rn=s,Wn=0,da=null,uc=!1,nu=$(a,s),uE=!1,IA=fa=AE=ou=Ac=ko=0,Pi=df=null,Rp=!1,(s&8)!==0&&(s|=s&32);var g=a.entangledLanes;if(g!==0)for(a=a.entanglements,g&=s;0<g;){var y=31-Fi(g),I=1<<y;s|=a[y],g&=~I}return Dl=s,lt(),A}i(ec,"prepareFreshStack");function wy(a,s){sn=null,Nt.H=cf,s===hA||s===fp?(s=rn(),Wn=3):s===dp?(s=rn(),Wn=4):Wn=s===Cp?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,da=s,Sn===null&&(ko=1,Sd(a,je(s,a.current)))}i(wy,"handleThrow");function xy(){var a=Aa.current;return a===null?!0:(Rn&4194048)===Rn?Ua===null:(Rn&62914560)===Rn||(Rn&536870912)!==0?a===Ua:!1}i(xy,"shouldRemainOnPreviousScreen");function bh(){var a=Nt.H;return Nt.H=cf,a===null?cf:a}i(bh,"pushDispatcher");function eA(){var a=Nt.A;return Nt.A=Av,a}i(eA,"pushAsyncDispatcher");function tA(){ko=4,uc||(Rn&4194048)!==Rn&&Aa.current!==null||(nu=!0),(Ac&134217727)===0&&(ou&134217727)===0||so===null||Cl(so,Rn,fa,!1)}i(tA,"renderDidSuspendDelayIfPossible");function nA(a,s,A){var g=Bn;Bn|=2;var y=bh(),I=eA();(so!==a||Rn!==s)&&(wp=null,ec(a,s)),s=!1;var T=ko;e:do try{if(Wn!==0&&Sn!==null){var F=Sn,me=da;switch(Wn){case 8:Ud(),T=6;break e;case 3:case 2:case 9:case 6:Aa.current===null&&(s=!0);var Le=Wn;if(Wn=0,da=null,Fc(a,F,me,Le),A&&nu){T=0;break e}break;default:Le=Wn,Wn=0,da=null,Fc(a,F,me,Le)}}Dy(),T=ko;break}catch(rt){wy(a,rt)}while(!0);return s&&a.shellSuspendCounter++,yo=wi=null,Bn=g,Nt.H=y,Nt.A=I,Sn===null&&(so=null,Rn=0,lt()),T}i(nA,"renderRootSync");function Dy(){for(;Sn!==null;)Ng(Sn)}i(Dy,"workLoopSync");function Ty(a,s){var A=Bn;Bn|=2;var g=bh(),y=eA();so!==a||Rn!==s?(wp=null,BA=Vn()+500,ec(a,s)):nu=$(a,s);e:do try{if(Wn!==0&&Sn!==null){s=Sn;var I=da;t:switch(Wn){case 1:Wn=0,da=null,Fc(a,s,I,1);break;case 2:case 9:if(dn(I)){Wn=0,da=null,wh(s);break}s=i(function(){Wn!==2&&Wn!==9||so!==a||(Wn=7),Vo(a)},"lanes"),I.then(s,s);break e;case 3:Wn=7;break e;case 4:Wn=5;break e;case 7:dn(I)?(Wn=0,da=null,wh(s)):(Wn=0,da=null,Fc(a,s,I,7));break;case 5:var T=null;switch(Sn.tag){case 26:T=Sn.memoizedState;case 5:case 27:var F=Sn,me=F.type,Le=F.pendingProps;if(T?op(T):Vr(F.stateNode,me,Le)){Wn=0,da=null;var rt=F.sibling;if(rt!==null)Sn=rt;else{var Ze=F.return;Ze!==null?(Sn=Ze,Ss(Ze)):Sn=null}break t}}Wn=0,da=null,Fc(a,s,I,5);break;case 6:Wn=0,da=null,Fc(a,s,I,6);break;case 8:Ud(),ko=6;break e;default:throw Error(c(462))}}Rh();break}catch(Ct){wy(a,Ct)}while(!0);return yo=wi=null,Nt.H=g,Nt.A=y,Bn=A,Sn!==null?0:(so=null,Rn=0,lt(),ko)}i(Ty,"renderRootConcurrent");function Rh(){for(;Sn!==null&&!lv();)Ng(Sn)}i(Rh,"workLoopConcurrentByScheduler");function Ng(a){var s=hg(a.alternate,a,Dl);a.memoizedProps=a.pendingProps,s===null?Ss(a):Sn=s}i(Ng,"performUnitOfWork");function wh(a){var s=a,A=s.alternate;switch(s.tag){case 15:case 0:s=ph(A,s,s.pendingProps,s.type,void 0,Rn);break;case 11:s=ph(A,s,s.pendingProps,s.type.render,s.ref,Rn);break;case 5:G(s);default:Ig(A,s),s=Sn=Nh(s,Dl),s=hg(A,s,Dl)}a.memoizedProps=a.pendingProps,s===null?Ss(a):Sn=s}i(wh,"replaySuspendedUnitOfWork");function Fc(a,s,A,g){yo=wi=null,G(s),Ha=null,lf=0;var y=s.return;try{if(ii(a,y,s,A,Rn)){ko=1,Sd(a,je(A,a.current)),Sn=null;return}}catch(I){if(y!==null)throw Sn=y,I;ko=1,Sd(a,je(A,a.current)),Sn=null;return}s.flags&32768?(En||g===1?a=!0:nu||(Rn&536870912)!==0?a=!1:(uc=a=!0,(g===2||g===9||g===3||g===6)&&(g=Aa.current,g!==null&&g.tag===13&&(g.flags|=16384))),Ld(s,a)):Ss(s)}i(Fc,"throwAndUnwindWorkLoop");function Ss(a){var s=a;do{if((s.flags&32768)!==0){Ld(s,uc);return}a=s.return;var A=Lc(s.alternate,s,Dl);if(A!==null){Sn=A;return}if(s=s.sibling,s!==null){Sn=s;return}Sn=s=a}while(s!==null);ko===0&&(ko=5)}i(Ss,"completeUnitOfWork");function Ld(a,s){do{var A=Wa(a.alternate,a);if(A!==null){A.flags&=32767,Sn=A;return}if(A=a.return,A!==null&&(A.flags|=32768,A.subtreeFlags=0,A.deletions=null),!s&&(a=a.sibling,a!==null)){Sn=a;return}Sn=a=A}while(a!==null);ko=6,Sn=null}i(Ld,"unwindUnitOfWork");function xh(a,s,A,g,y,I,T,F,me){a.cancelPendingCommit=null;do er();while($n!==0);if((Bn&6)!==0)throw Error(c(327));if(s!==null){if(s===a.current)throw Error(c(177));if(I=s.lanes|s.childLanes,I|=sE,Ee(a,A,I,T,F,me),a===so&&(Sn=so=null,Rn=0),fc=s,Tl=a,Os=A,xp=I,Dp=y,wI=g,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,jS(bl,function(){return Dh(),null})):(a.callbackNode=null,a.callbackPriority=0),g=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||g){g=Nt.T,Nt.T=null,y=Rs(),Br(2),T=Bn,Bn|=4;try{By(a,s,A)}finally{Bn=T,Br(y),Nt.T=g}}$n=1,Mg(),Og(),Hg()}}i(xh,"commitRoot");function Mg(){if($n===1){$n=0;var a=Tl,s=fc,A=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||A){A=Nt.T,Nt.T=null;var g=Rs();Br(2);var y=Bn;Bn|=4;try{Md(s,a),jd(a.containerInfo)}finally{Bn=y,Br(g),Nt.T=A}}a.current=s,$n=2}}i(Mg,"flushMutationEffects");function Og(){if($n===2){$n=0;var a=Tl,s=fc,A=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||A){A=Nt.T,Nt.T=null;var g=Rs();Br(2);var y=Bn;Bn|=4;try{Ih(a,s.alternate,s)}finally{Bn=y,Br(g),Nt.T=A}}$n=3}}i(Og,"flushLayoutEffects");function Hg(){if($n===4||$n===3){$n=0,zi();var a=Tl,s=fc,A=Os,g=wI;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?$n=5:($n=0,fc=Tl=null,_y(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(dc=null),ne(A),s=s.stateNode,tr&&typeof tr.onCommitFiberRoot=="function")try{tr.onCommitFiberRoot(Zc,s,void 0,(s.current.flags&128)===128)}catch{}if(g!==null){s=Nt.T,y=Rs(),Br(2),Nt.T=null;try{for(var I=a.onRecoverableError,T=0;T<g.length;T++){var F=g[T];I(F.value,{componentStack:F.stack})}}finally{Nt.T=s,Br(y)}}(Os&3)!==0&&er(),Vo(a),y=a.pendingLanes,(A&261930)!==0&&(y&42)!==0?a===Tp?SA++:(SA=0,Tp=a):SA=0,jr&&gI(),Mo(0,!1)}}i(Hg,"flushSpawnedWork");function _y(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,No(s)))}i(_y,"releaseRootPooledCache");function er(){return Mg(),Og(),Hg(),Dh()}i(er,"flushPendingEffects");function Dh(){if($n!==5)return!1;var a=Tl,s=xp;xp=0;var A=ne(Os),g=32>A?32:A;A=Nt.T;var y=Rs();try{Br(g),Nt.T=null,g=Dp,Dp=null;var I=Tl,T=Os;if($n=0,fc=Tl=null,Os=0,(Bn&6)!==0)throw Error(c(331));var F=Bn;if(Bn|=4,xg(I.current),by(I,I.current,T,g),Bn=F,Mo(0,!1),tr&&typeof tr.onPostCommitFiberRoot=="function")try{tr.onPostCommitFiberRoot(Zc,I)}catch{}return!0}finally{Br(y),Nt.T=A,_y(a,s)}}i(Dh,"flushPassiveEffects");function Th(a,s,A){s=je(A,s),s=Ju(a.stateNode,s,2),a=Ni(a,s,2),a!==null&&(Me(a,2),Vo(a))}i(Th,"captureCommitPhaseErrorOnRoot");function Hn(a,s,A){if(a.tag===3)Th(a,a,A);else for(;s!==null;){if(s.tag===3){Th(s,a,A);break}else if(s.tag===1){var g=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(dc===null||!dc.has(g))){a=je(A,a),A=vd(2),g=Ni(s,A,2),g!==null&&(Ag(A,g,s,a),Me(g,2),Vo(g));break}}s=s.return}}i(Hn,"captureCommitPhaseError");function kg(a,s,A){var g=a.pingCache;if(g===null){g=a.pingCache=new dv;var y=new Set;g.set(s,y)}else y=g.get(s),y===void 0&&(y=new Set,g.set(s,y));y.has(A)||(uE=!0,y.add(A),a=Gd.bind(null,a,s,A),s.then(a,a))}i(kg,"attachPingListener");function Gd(a,s,A){var g=a.pingCache;g!==null&&g.delete(s),a.pingedLanes|=a.suspendedLanes&A,a.warmLanes&=~A,so===a&&(Rn&A)===A&&(ko===4||ko===3&&(Rn&62914560)===Rn&&300>Vn()-ff?(Bn&2)===0&&ec(a,0):AE|=A,IA===Rn&&(IA=0)),Vo(a)}i(Gd,"pingSuspendedRoot");function _h(a,s){s===0&&(s=Qe()),a=ti(a,s),a!==null&&(Me(a,s),Vo(a))}i(_h,"retryTimedOutBoundary");function Ug(a){var s=a.memoizedState,A=0;s!==null&&(A=s.retryLane),_h(a,A)}i(Ug,"retryDehydratedSuspenseBoundary");function Ny(a,s){var A=0;switch(a.tag){case 31:case 13:var g=a.stateNode,y=a.memoizedState;y!==null&&(A=y.retryLane);break;case 19:g=a.stateNode;break;case 22:g=a.stateNode._retryCache;break;default:throw Error(c(314))}g!==null&&g.delete(s),_h(a,A)}i(Ny,"resolveRetryWakeable");function jS(a,s){return sp(a,s)}i(jS,"scheduleCallback");function Lg(a,s,A,g){this.tag=a,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}i(Lg,"FiberNode");function Fd(a){return a=a.prototype,!(!a||!a.isReactComponent)}i(Fd,"shouldConstruct");function vs(a,s){var A=a.alternate;return A===null?(A=o(a.tag,s,a.key,a.mode),A.elementType=a.elementType,A.type=a.type,A.stateNode=a.stateNode,A.alternate=a,a.alternate=A):(A.pendingProps=s,A.type=a.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=a.flags&65011712,A.childLanes=a.childLanes,A.lanes=a.lanes,A.child=a.child,A.memoizedProps=a.memoizedProps,A.memoizedState=a.memoizedState,A.updateQueue=a.updateQueue,s=a.dependencies,A.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},A.sibling=a.sibling,A.index=a.index,A.ref=a.ref,A.refCleanup=a.refCleanup,A}i(vs,"createWorkInProgress");function Nh(a,s){a.flags&=65011714;var A=a.alternate;return A===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=A.childLanes,a.lanes=A.lanes,a.child=A.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=A.memoizedProps,a.memoizedState=A.memoizedState,a.updateQueue=A.updateQueue,a.type=A.type,s=A.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}i(Nh,"resetWorkInProgress");function zd(a,s,A,g,y,I){var T=0;if(g=a,typeof a=="function")Fd(a)&&(T=1);else if(typeof a=="string")T=Ta&&ur?eE(a,A,Zr.current)?26:ap(a)?27:5:Ta?eE(a,A,Zr.current)?26:5:ur&&ap(a)?27:5;else e:switch(a){case Pg:return a=o(31,A,s,y),a.elementType=Pg,a.lanes=I,a;case zc:return yl(A.children,y,I,s);case kh:T=8,y|=24;break;case Pd:return a=o(12,A,s,y|2),a.elementType=Pd,a.lanes=I,a;case Kc:return a=o(13,A,s,y),a.elementType=Kc,a.lanes=I,a;case Zn:return a=o(19,A,s,y),a.elementType=Zn,a.lanes=I,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Il:T=10;break e;case qg:T=9;break e;case oA:T=11;break e;case Uh:T=14;break e;case nc:T=16,g=null;break e}T=29,A=Error(c(130,a===null?"null":typeof a,"")),g=null}return s=o(T,A,s,y),s.elementType=a,s.type=g,s.lanes=I,s}i(zd,"createFiberFromTypeAndProps");function yl(a,s,A,g){return a=o(7,a,g,s),a.lanes=A,a}i(yl,"createFiberFromFragment");function Kd(a,s,A){return a=o(6,a,null,s),a.lanes=A,a}i(Kd,"createFiberFromText");function Gg(a){var s=o(18,null,null,0);return s.stateNode=a,s}i(Gg,"createFiberFromDehydratedFragment");function Fg(a,s,A){return s=o(4,a.children!==null?a.children:[],a.key,s),s.lanes=A,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}i(Fg,"createFiberFromPortal");function Mh(a,s,A,g,y,I,T,F,me){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Bl,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=re(0),this.hiddenUpdates=re(null),this.identifierPrefix=g,this.onUncaughtError=y,this.onCaughtError=I,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=me,this.incompleteTransitions=new Map}i(Mh,"FiberRootNode");function Yd(a,s,A,g,y,I,T,F,me,Le,rt,Ze){return a=new Mh(a,s,A,T,me,Le,rt,Ze,F),s=1,I===!0&&(s|=24),I=o(3,null,null,s),a.current=I,I.stateNode=a,s=In(),s.refCount++,a.pooledCache=s,s.refCount++,I.memoizedState={element:g,isDehydrated:A,cache:s},Ja(I),a}i(Yd,"createFiberRoot");function zg(a){return a?(a=Xc,a):Xc}i(zg,"getContextForSubtree");function Oh(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(c(188)):(a=Object.keys(a).join(","),Error(c(268,a)));return a=m(s),a=a!==null?E(a):null,a===null?null:Jd(a.stateNode)}i(Oh,"findHostInstance");function Kg(a,s,A,g,y,I){y=zg(y),g.context===null?g.context=y:g.pendingContext=y,g=Tr(s),g.payload={element:A},I=I===void 0?null:I,I!==null&&(g.callback=I),A=Ni(a,g,s),A!==null&&(vi(A,a,s),ja(A,a,s))}i(Kg,"updateContainerImpl");function Hh(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var A=a.retryLane;a.retryLane=A!==0&&A<s?A:s}}i(Hh,"markRetryLaneImpl");function ts(a,s){Hh(a,s),(a=a.alternate)&&Hh(a,s)}i(ts,"markRetryLaneIfNotHydrated");var gn={},VS=Mt(),Qi=c0(),ca=Object.assign,Yg=Symbol.for("react.element"),qd=Symbol.for("react.transitional.element"),tc=Symbol.for("react.portal"),zc=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),qg=Symbol.for("react.consumer"),Il=Symbol.for("react.context"),oA=Symbol.for("react.forward_ref"),Kc=Symbol.for("react.suspense"),Zn=Symbol.for("react.suspense_list"),Uh=Symbol.for("react.memo"),nc=Symbol.for("react.lazy"),Pg=Symbol.for("react.activity"),Qs=Symbol.for("react.memo_cache_sentinel"),Lh=Symbol.iterator,Gh=Symbol.for("react.client.reference"),oc=Array.isArray,Nt=VS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,My=e.rendererVersion,Fh=e.rendererPackageName,zh=e.extraDevToolsConfig,Jd=e.getPublicInstance,XS=e.getRootHostContext,Oy=e.getChildHostContext,ZS=e.prepareForCommit,jd=e.resetAfterCommit,bs=e.createInstance;e.cloneMutableInstance;var Jg=e.appendInitialChild,Hy=e.finalizeInitialChildren,Vd=e.shouldSetTextContent,jg=e.createTextInstance;e.cloneMutableTextInstance;var ky=e.scheduleTimeout,Kh=e.cancelTimeout,Bl=e.noTimeout,Da=e.isPrimaryRenderer;e.warnsIfNotActing;var li=e.supportsMutation,ns=e.supportsPersistence,jr=e.supportsHydration,Uy=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var WS=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var Br=e.setCurrentUpdatePriority,Rs=e.getCurrentUpdatePriority,os=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var Yh=e.shouldAttemptEagerTransition,Ly=e.detachDeletedInstance;e.requestPostPaintCallback;var Gy=e.maySuspendCommit,$S=e.maySuspendCommitOnUpdate,rA=e.maySuspendCommitInSyncRender,Vr=e.preloadInstance,Fy=e.startSuspendingCommit,ci=e.suspendInstance;e.suspendOnActiveViewTransition;var zy=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var bi=e.NotPendingTransition,rc=e.HostTransitionContext,Yc=e.resetFormInstance;e.bindToConsole;var Ky=e.supportsMicrotasks,ws=e.scheduleMicrotask,qc=e.supportsTestSelectors,qh=e.findFiberRoot,rs=e.getBoundingRect,Yy=e.getTextContent,xs=e.isHiddenSubtree,qy=e.matchAccessibilityRole,Xd=e.setFocusIfFocusable,Pc=e.setupIntersectionObserver,Py=e.appendChild,Jy=e.appendChildToContainer,Zd=e.commitTextUpdate,jy=e.commitMount,Vg=e.commitUpdate,Vy=e.insertBefore,Xy=e.insertInContainerBefore,Ph=e.removeChild,Jh=e.removeChildFromContainer,Xg=e.resetTextContent,Zy=e.hideInstance,Zg=e.hideTextInstance,ev=e.unhideInstance,Wy=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var ua=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var $y=e.cloneInstance,Eo=e.createContainerChildSet,jh=e.appendChildToContainerChildSet,eI=e.finalizeContainerChildren,tI=e.replaceContainerChildren,Sl=e.cloneHiddenInstance,Wd=e.cloneHiddenTextInstance,$d=e.isSuspenseInstancePending,ef=e.isSuspenseInstanceFallback,Jc=e.getSuspenseInstanceFallbackErrorDetails,iA=e.registerSuspenseInstanceRetry,nI=e.canHydrateFormStateMarker,oI=e.isFormStateMarkerMatching,Vh=e.getNextHydratableSibling,rI=e.getNextHydratableSiblingAfterSingleton,Wg=e.getFirstHydratableChild,$g=e.getFirstHydratableChildWithinContainer,Xh=e.getFirstHydratableChildWithinActivityInstance,iI=e.getFirstHydratableChildWithinSuspenseInstance,tv=e.getFirstHydratableChildWithinSingleton,nv=e.canHydrateInstance,aI=e.canHydrateTextInstance,sI=e.canHydrateActivityInstance,ov=e.canHydrateSuspenseInstance,aA=e.hydrateInstance,ep=e.hydrateTextInstance,lI=e.hydrateActivityInstance,Zh=e.hydrateSuspenseInstance,cI=e.getNextHydratableInstanceAfterActivityInstance,uI=e.getNextHydratableInstanceAfterSuspenseInstance,AI=e.commitHydratedInstance,rv=e.commitHydratedContainer,dI=e.commitHydratedActivityInstance,sA=e.commitHydratedSuspenseInstance,fI=e.finalizeHydratedChildren,gI=e.flushHydrationEvents;e.clearActivityBoundary;var kn=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Wh=e.clearSuspenseBoundaryFromContainer,iv=e.hideDehydratedBoundary,pI=e.unhideDehydratedBoundary,mI=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var av=e.validateHydratableInstance,$h=e.validateHydratableTextInstance,Ta=e.supportsResources,eE=e.isHostHoistableType,tp=e.getHoistableRoot,lA=e.getResource,hI=e.acquireResource,EI=e.releaseResource,jc=e.hydrateHoistable,np=e.mountHoistable,tE=e.unmountHoistable,CI=e.createHoistableInstance,yI=e.prepareToCommitHoistables,sv=e.mayResourceSuspendCommit,op=e.preloadResource,vl=e.suspendResource,ur=e.supportsSingletons,rp=e.resolveSingletonInstance,ip=e.acquireSingletonInstance,ic=e.releaseSingletonInstance,ap=e.isHostSingletonType,Vc=e.isSingletonScope,tf=[],cA=-1,Xc={},Fi=Math.clz32?Math.clz32:_,II=Math.log,BI=Math.LN2,nf=256,of=262144,uA=4194304,sp=Qi.unstable_scheduleCallback,pn=Qi.unstable_cancelCallback,lv=Qi.unstable_shouldYield,zi=Qi.unstable_requestPaint,Vn=Qi.unstable_now,SI=Qi.unstable_ImmediatePriority,Ql=Qi.unstable_UserBlockingPriority,bl=Qi.unstable_NormalPriority,AA=Qi.unstable_IdlePriority,lp=Qi.log,nE=Qi.unstable_setDisableYieldValue,Zc=null,tr=null,Xr=typeof Object.is=="function"?Object.is:Se,cp=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},oE=Object.prototype.hasOwnProperty,dA,Ki,rf=!1,vI=new WeakMap,Wc=[],fA=0,Ar=null,Ae=0,_a=[],Na=0,Rl=null,Ri=1,Ds="",Zr=N(null),af=N(null),ac=N(null),up=N(null),Sr=null,Co=null,En=!1,wl=null,Ma=!1,rE=Error(c(519)),Ts=N(null),wi=null,yo=null,_s=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:i(function(A,g){a.push(g)},"addEventListener")};this.abort=function(){s.aborted=!0,a.forEach(function(A){return A()})}},ui=Qi.unstable_scheduleCallback,cv=Qi.unstable_NormalPriority,xo={$$typeof:Il,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},nr=null,Yi=null,iE=!1,gA=!1,$c=!1,is=0,sf=null,aE=0,pA=0,mA=null,Ap=Nt.S;Nt.S=function(a,s){dE=Vn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&ta(a,s),Ap!==null&&Ap(a,s)};var sc=N(null),hA=Error(c(460)),dp=Error(c(474)),fp=Error(c(542)),gp={then:i(function(){},"then")},Oa=null,Ha=null,lf=0,eu=oa(!0),QI=oa(!1),ka=[],as=0,sE=0,lc=!1,lE=!1,Ns=N(null),pp=N(0),Aa=N(null),Ua=null,or=N(0),xl=0,sn=null,oo=null,dr=null,mp=!1,EA=!1,tu=!1,hp=0,CA=0,yA=null,uv=0,cf={readContext:tt,use:ve,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useLayoutEffect:no,useInsertionEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useSyncExternalStore:no,useId:no,useHostTransitionStatus:no,useFormState:no,useActionState:no,useOptimistic:no,useMemoCache:no,useCacheRefresh:no};cf.useEffectEvent=no;var bI={readContext:tt,use:ve,useCallback:i(function(a,s){return Y().memoizedState=[a,s===void 0?null:s],a},"useCallback"),useContext:tt,useEffect:yd,useImperativeHandle:i(function(a,s,A){A=A!=null?A.concat([a]):null,dl(4194308,4,Pe.bind(null,s,a),A)},"useImperativeHandle"),useLayoutEffect:i(function(a,s){return dl(4194308,4,a,s)},"useLayoutEffect"),useInsertionEffect:i(function(a,s){dl(4,2,a,s)},"useInsertionEffect"),useMemo:i(function(a,s){var A=Y();s=s===void 0?null:s;var g=a();if(tu){ee(!0);try{a()}finally{ee(!1)}}return A.memoizedState=[g,s],g},"useMemo"),useReducer:i(function(a,s,A){var g=Y();if(A!==void 0){var y=A(s);if(tu){ee(!0);try{A(s)}finally{ee(!1)}}}else y=s;return g.memoizedState=g.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},g.queue=a,a=a.dispatch=Oo.bind(null,sn,a),[g.memoizedState,a]},"useReducer"),useRef:i(function(a){var s=Y();return a={current:a},s.memoizedState=a},"useRef"),useState:i(function(a){a=go(a);var s=a.queue,A=cg.bind(null,sn,s);return s.dispatch=A,[a.memoizedState,A]},"useState"),useDebugValue:vt,useDeferredValue:i(function(a,s){var A=Y();return cr(A,a,s)},"useDeferredValue"),useTransition:i(function(){var a=go(!1);return a=ho.bind(null,sn,a.queue,!0,!1),Y().memoizedState=a,[!1,a]},"useTransition"),useSyncExternalStore:i(function(a,s,A){var g=sn,y=Y();if(En){if(A===void 0)throw Error(c(407));A=A()}else{if(A=s(),so===null)throw Error(c(349));(Rn&127)!==0||_n(g,s,A)}y.memoizedState=A;var I={value:A,getSnapshot:s};return y.queue=I,yd(Wo.bind(null,g,I,a),[a]),g.flags|=2048,_r(9,{destroy:void 0},uo.bind(null,g,I,A,s),null),A},"useSyncExternalStore"),useId:i(function(){var a=Y(),s=so.identifierPrefix;if(En){var A=Ds,g=Ri;A=(g&~(1<<32-Fi(g)-1)).toString(32)+A,s="_"+s+"R_"+A,A=hp++,0<A&&(s+="H"+A.toString(32)),s+="_"}else A=uv++,s="_"+s+"r_"+A.toString(32)+"_";return a.memoizedState=s},"useId"),useHostTransitionStatus:Kt,useFormState:sa,useActionState:sa,useOptimistic:i(function(a){var s=Y();s.memoizedState=s.baseState=a;var A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=A,s=Pu.bind(null,sn,!0,A),A.dispatch=s,[a,s]},"useOptimistic"),useMemoCache:$e,useCacheRefresh:i(function(){return Y().memoizedState=Xa.bind(null,sn)},"useCacheRefresh"),useEffectEvent:i(function(a){var s=Y(),A={impl:a};return s.memoizedState=A,function(){if((Bn&2)!==0)throw Error(c(440));return A.impl.apply(void 0,arguments)}},"useEffectEvent")},cE={readContext:tt,use:ve,useCallback:dt,useContext:tt,useEffect:Yu,useImperativeHandle:Fe,useInsertionEffect:V,useLayoutEffect:_e,useMemo:fn,useReducer:At,useRef:Va,useState:i(function(){return At(Ke)},"useState"),useDebugValue:vt,useDeferredValue:i(function(a,s){var A=J();return gl(A,oo.memoizedState,a,s)},"useDeferredValue"),useTransition:i(function(){var a=At(Ke)[0],s=J().memoizedState;return[typeof a=="boolean"?a:Oe(a),s]},"useTransition"),useSyncExternalStore:Nn,useId:po,useHostTransitionStatus:Kt,useFormState:Cd,useActionState:Cd,useOptimistic:i(function(a,s){var A=J();return lr(A,oo,a,s)},"useOptimistic"),useMemoCache:$e,useCacheRefresh:Qa};cE.useEffectEvent=qu;var RI={readContext:tt,use:ve,useCallback:dt,useContext:tt,useEffect:Yu,useImperativeHandle:Fe,useInsertionEffect:V,useLayoutEffect:_e,useMemo:fn,useReducer:nn,useRef:Va,useState:i(function(){return nn(Ke)},"useState"),useDebugValue:vt,useDeferredValue:i(function(a,s){var A=J();return oo===null?cr(A,a,s):gl(A,oo.memoizedState,a,s)},"useDeferredValue"),useTransition:i(function(){var a=nn(Ke)[0],s=J().memoizedState;return[typeof a=="boolean"?a:Oe(a),s]},"useTransition"),useSyncExternalStore:Nn,useId:po,useHostTransitionStatus:Kt,useFormState:Es,useActionState:Es,useOptimistic:i(function(a,s){var A=J();return oo!==null?lr(A,oo,a,s):(A.baseState=a,[a,A.queue.dispatch])},"useOptimistic"),useMemoCache:$e,useCacheRefresh:Qa};RI.useEffectEvent=qu;var Ep={enqueueSetState:i(function(a,s,A){a=a._reactInternals;var g=Gi(),y=Tr(g);y.payload=s,A!=null&&(y.callback=A),s=Ni(a,y,g),s!==null&&(vi(s,a,g),ja(s,a,g))},"enqueueSetState"),enqueueReplaceState:i(function(a,s,A){a=a._reactInternals;var g=Gi(),y=Tr(g);y.tag=1,y.payload=s,A!=null&&(y.callback=A),s=Ni(a,y,g),s!==null&&(vi(s,a,g),ja(s,a,g))},"enqueueReplaceState"),enqueueForceUpdate:i(function(a,s){a=a._reactInternals;var A=Gi(),g=Tr(A);g.tag=2,s!=null&&(g.callback=s),s=Ni(a,g,A),s!==null&&(vi(s,a,A),ja(s,a,A))},"enqueueForceUpdate")},Cp=Error(c(461)),fr=!1,yp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ms=!1,rr=!1,uf=!1,Ip=typeof WeakSet=="function"?WeakSet:Set,Mr=null,gr=null,qi=!1,ss=null,cc=8192,Av={getCacheForType:i(function(a){var s=tt(xo),A=s.data.get(a);return A===void 0&&(A=a(),s.data.set(a,A)),A},"getCacheForType"),cacheSignal:i(function(){return tt(xo).controller.signal},"cacheSignal")},Bp=0,Sp=1,vp=2,Qp=3,bp=4;if(typeof Symbol=="function"&&Symbol.for){var Af=Symbol.for;Bp=Af("selector.component"),Sp=Af("selector.has_pseudo_class"),vp=Af("selector.role"),Qp=Af("selector.test_id"),bp=Af("selector.text")}var dv=typeof WeakMap=="function"?WeakMap:Map,Bn=0,so=null,Sn=null,Rn=0,Wn=0,da=null,uc=!1,nu=!1,uE=!1,Dl=0,ko=0,Ac=0,ou=0,AE=0,fa=0,IA=0,df=null,Pi=null,Rp=!1,ff=0,dE=0,BA=1/0,wp=null,dc=null,$n=0,Tl=null,fc=null,Os=0,xp=0,Dp=null,wI=null,SA=0,Tp=null;return gn.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var s=ti(a,67108864);s!==null&&vi(s,a,67108864),ts(a,67108864)}},gn.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var s=Gi();s=ie(s);var A=ti(a,s);A!==null&&vi(A,a,s),ts(a,s)}},gn.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=k(a.pendingLanes);if(s!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var A=1<<31-Fi(s);a.entanglements[1]|=A,s&=~A}Vo(a),(Bn&6)===0&&(BA=Vn()+500,Mo(0,!1))}}break;case 31:case 13:s=ti(a,2),s!==null&&vi(s,a,2),$l(),ts(a,2)}},gn.batchedUpdates=function(a,s){return a(s)},gn.createComponentSelector=function(a){return{$$typeof:Bp,value:a}},gn.createContainer=function(a,s,A,g,y,I,T,F,me,Le){return Yd(a,s,!1,null,A,g,I,null,T,F,me,Le)},gn.createHasPseudoClassSelector=function(a){return{$$typeof:Sp,value:a}},gn.createHydrationContainer=function(a,s,A,g,y,I,T,F,me,Le,rt,Ze,Ct,Yt){return a=Yd(A,g,!0,a,y,I,F,Yt,me,Le,rt,Ze),a.context=zg(null),A=a.current,g=Gi(),g=ie(g),y=Tr(g),y.callback=s??null,Ni(A,y,g),s=g,a.current.lanes=s,Me(a,s),Vo(a),a},gn.createPortal=function(a,s,A){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tc,key:g==null?null:""+g,children:a,containerInfo:s,implementation:A}},gn.createRoleSelector=function(a){return{$$typeof:vp,value:a}},gn.createTestNameSelector=function(a){return{$$typeof:Qp,value:a}},gn.createTextSelector=function(a){return{$$typeof:bp,value:a}},gn.defaultOnCaughtError=function(a){console.error(a)},gn.defaultOnRecoverableError=function(a){cp(a)},gn.defaultOnUncaughtError=function(a){cp(a)},gn.deferredUpdates=function(a){var s=Nt.T,A=Rs();try{return Br(32),Nt.T=null,a()}finally{Br(A),Nt.T=s}},gn.discreteUpdates=function(a,s,A,g,y){var I=Nt.T,T=Rs();try{return Br(2),Nt.T=null,a(s,A,g,y)}finally{Br(T),Nt.T=I,Bn===0&&(BA=Vn()+500)}},gn.findAllNodes=Hd,gn.findBoundingRects=function(a,s){if(!qc)throw Error(c(363));s=Hd(a,s),a=[];for(var A=0;A<s.length;A++)a.push(rs(s[A]));for(s=a.length-1;0<s;s--){A=a[s];for(var g=A.x,y=g+A.width,I=A.y,T=I+A.height,F=s-1;0<=F;F--)if(s!==F){var me=a[F],Le=me.x,rt=Le+me.width,Ze=me.y,Ct=Ze+me.height;if(g>=Le&&I>=Ze&&y<=rt&&T<=Ct){a.splice(s,1);break}else if(g!==Le||A.width!==me.width||Ct<I||Ze>T){if(!(I!==Ze||A.height!==me.height||rt<g||Le>y)){Le>g&&(me.width+=Le-g,me.x=g),rt<y&&(me.width=y-Le),a.splice(s,1);break}}else{Ze>I&&(me.height+=Ze-I,me.y=I),Ct<T&&(me.height=T-Ze),a.splice(s,1);break}}}return a},gn.findHostInstance=Oh,gn.findHostInstanceWithNoPortals=function(a){return a=m(a),a=a!==null?S(a):null,a===null?null:Jd(a.stateNode)},gn.findHostInstanceWithWarning=function(a){return Oh(a)},gn.flushPassiveEffects=er,gn.flushSyncFromReconciler=function(a){var s=Bn;Bn|=1;var A=Nt.T,g=Rs();try{if(Br(2),Nt.T=null,a)return a()}finally{Br(g),Nt.T=A,Bn=s,(Bn&6)===0&&Mo(0,!1)}},gn.flushSyncWork=$l,gn.focusWithin=function(a,s){if(!qc)throw Error(c(363));for(a=$u(a),s=vh(a,s),s=Array.from(s),a=0;a<s.length;){var A=s[a++],g=A.tag;if(!xs(A)){if((g===5||g===26||g===27)&&Xd(A.stateNode))return!0;for(A=A.child;A!==null;)s.push(A),A=A.sibling}}return!1},gn.getFindAllNodesFailureDescription=function(a,s){if(!qc)throw Error(c(363));var A=0,g=[];a=[$u(a),0];for(var y=0;y<a.length;){var I=a[y++],T=I.tag,F=a[y++],me=s[F];if((T!==5&&T!==26&&T!==27||!xs(I))&&(Od(I,me)&&(g.push(Tg(me)),F++,F>A&&(A=F)),F<s.length))for(I=I.child;I!==null;)a.push(I,F),I=I.sibling}if(A<s.length){for(a=[];A<s.length;A++)a.push(Tg(s[A]));return`findAllNodes was able to match part of the selector:
|
|
52
|
+
`+(g.join(" > ")+`
|
|
53
|
+
|
|
54
|
+
No matching component was found for:
|
|
55
|
+
`)+a.join(" > ")}return null},gn.getPublicRootInstance=function(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 27:case 5:return Jd(a.child.stateNode);default:return a.child.stateNode}},gn.injectIntoDevTools=function(){var a={bundleType:0,version:My,rendererPackageName:Fh,currentDispatcherRef:Nt,reconcilerVersion:"19.2.0"};if(zh!==null&&(a.rendererConfig=zh),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")a=!1;else{var s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(s.isDisabled||!s.supportsFiber)a=!0;else{try{Zc=s.inject(a),tr=s}catch{}a=!!s.checkDCE}}return a},gn.isAlreadyRendering=function(){return(Bn&6)!==0},gn.observeVisibleRects=function(a,s,A,g){if(!qc)throw Error(c(363));a=Hd(a,s);var y=Pc(a,A,g).disconnect;return{disconnect:i(function(){y()},"disconnect")}},gn.shouldError=function(){return null},gn.shouldSuspend=function(){return!1},gn.startHostTransition=function(a,s,A,g){if(a.tag!==5)throw Error(c(476));var y=ri(a).queue;ho(a,y,s,bi,A===null?r:function(){var I=ri(a);return I.next===null&&(I=a.alternate.memoizedState),Jl(a,I.next.queue,{},Gi()),A(g)})},gn.updateContainer=function(a,s,A,g){var y=s.current,I=Gi();return Kg(y,I,a,s,A,g),I},gn.updateContainerSync=function(a,s,A,g){return Kg(s.current,2,a,s,A,g),2},gn};EC.exports.default=EC.exports;Object.defineProperty(EC.exports,"__esModule",{value:!0})});var aM=Yn(($Z,CC)=>{"use strict";process.env.NODE_ENV!=="production"&&(CC.exports=function(e){function o(t,n){for(t=t.memoizedState;t!==null&&0<n;)t=t.next,n--;return t}i(o,"findHook");function r(t,n,l,d){if(l>=n.length)return d;var p=n[l],h=Ar(t)?t.slice():Vn({},t);return h[p]=r(t[p],n,l+1,d),h}i(r,"copyWithSetImpl");function c(t,n,l){if(n.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(n[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return u(t,n,l,0)}}i(c,"copyWithRename");function u(t,n,l,d){var p=n[d],h=Ar(t)?t.slice():Vn({},t);return d+1===n.length?(h[l[d]]=h[p],Ar(h)?h.splice(p,1):delete h[p]):h[p]=u(t[p],n,l,d+1),h}i(u,"copyWithRenameImpl");function f(t,n,l){var d=n[l],p=Ar(t)?t.slice():Vn({},t);return l+1===n.length?(Ar(p)?p.splice(d,1):delete p[d],p):(p[d]=f(t[d],n,l+1),p)}i(f,"copyWithDeleteImpl");function m(){return!1}i(m,"shouldSuspendImpl");function E(){return null}i(E,"shouldErrorImpl");function S(t,n,l,d){return new sv(t,n,l,d)}i(S,"createFiber");function v(t,n){t.context===Io&&(BI(n,t,null,null),Wd())}i(v,"scheduleRoot");function R(t,n){if(qs!==null){var l=n.staleFamilies;n=n.updatedFamilies,sA(),yI(t.current,n,l),Wd()}}i(R,"scheduleRefresh");function N(t){qs=t}i(N,"setRefreshHandler");function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}i(b,"warnInvalidHookAccess");function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}i(M,"warnInvalidContextAccess");function _(){}i(_,"noop");function k(){}i(k,"warnForMissingKey");function H(t){var n=[];return t.forEach(function(l){n.push(l)}),n.sort().join(", ")}i(H,"setToSortedString");function $(t){var n=t,l=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(l=n.return),t=n.return;while(t)}return n.tag===3?l:null}i($,"getNearestMountedFiber");function we(t){if($(t)!==t)throw Error("Unable to find node on an unmounted component.")}i(we,"assertIsMounted");function Qe(t){var n=t.alternate;if(!n){if(n=$(t),n===null)throw Error("Unable to find node on an unmounted component.");return n!==t?null:t}for(var l=t,d=n;;){var p=l.return;if(p===null)break;var h=p.alternate;if(h===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===h.child){for(h=p.child;h;){if(h===l)return we(p),t;if(h===d)return we(p),n;h=h.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=h;else{for(var B=!1,Q=p.child;Q;){if(Q===l){B=!0,l=p,d=h;break}if(Q===d){B=!0,d=p,l=h;break}Q=Q.sibling}if(!B){for(Q=h.child;Q;){if(Q===l){B=!0,l=h,d=p;break}if(Q===d){B=!0,d=h,l=p;break}Q=Q.sibling}if(!B)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?t:n}i(Qe,"findCurrentFiberUsingSlowPath");function re(t){return t=Qe(t),t!==null?Me(t):null}i(re,"findCurrentHostFiber");function Me(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=Me(t),n!==null)return n;t=t.sibling}return null}i(Me,"findCurrentHostFiberImpl");function Ee(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(t.tag!==4&&(n=Ee(t),n!==null))return n;t=t.sibling}return null}i(Ee,"findCurrentHostFiberWithNoPortalsImpl");function ze(t){return t===null||typeof t!="object"?null:(t=Wc&&t[Wc]||t["@@iterator"],typeof t=="function"?t:null)}i(ze,"getIteratorFn");function ce(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===fA?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case AA:return"Fragment";case nE:return"Profiler";case lp:return"StrictMode";case cp:return"Suspense";case oE:return"SuspenseList";case rf:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case bl:return"Portal";case tr:return t.displayName||"Context";case Zc:return(t._context.displayName||"Context")+".Consumer";case Xr:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case dA:return n=t.displayName||null,n!==null?n:ce(t.type)||"Memo";case Ki:n=t._payload,t=t._init;try{return ce(t(n))}catch{}}return null}i(ce,"getComponentNameFromType");function ae(t){var n=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(n);case 8:return n===lp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=t._debugInfo,n!=null){for(var l=n.length-1;0<=l;l--)if(typeof n[l].name=="string")return n[l].name}if(t.return!==null)return ae(t.return)}return null}i(ae,"getComponentNameFromFiber");function ie(t){return{current:t}}i(ie,"createCursor");function ne(t,n){0>Yt?console.error("Unexpected pop."):(n!==Ct[Yt]&&console.error("Unexpected Fiber popped."),t.current=Ze[Yt],Ze[Yt]=null,Ct[Yt]=null,Yt--)}i(ne,"pop");function ee(t,n,l){Yt++,Ze[Yt]=t.current,Ct[Yt]=l,t.current=n}i(ee,"push");function Se(t){return t>>>=0,t===0?32:31-(ru(t)/ue|0)|0}i(Se,"clz32Fallback");function Je(t){var n=t&42;if(n!==0)return n;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}i(Je,"getHighestPriorityLanes");function ye(t,n,l){var d=t.pendingLanes;if(d===0)return 0;var p=0,h=t.suspendedLanes,B=t.pingedLanes;t=t.warmLanes;var Q=d&134217727;return Q!==0?(d=Q&~h,d!==0?p=Je(d):(B&=Q,B!==0?p=Je(B):l||(l=Q&~t,l!==0&&(p=Je(l))))):(Q=d&~h,Q!==0?p=Je(Q):B!==0?p=Je(B):l||(l=d&~t,l!==0&&(p=Je(l)))),p===0?0:n!==0&&n!==p&&(n&h)===0&&(h=p&-p,l=n&-n,h>=l||h===32&&(l&4194048)!==0)?n:p}i(ye,"getNextLanes");function qe(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}i(qe,"checkIfRootIsPrerendering");function ct(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}i(ct,"computeExpirationTime");function je(){var t=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),t}i(je,"claimNextRetryLane");function W(t){for(var n=[],l=0;31>l;l++)n.push(t);return n}i(W,"createLaneMap");function it(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}i(it,"markRootUpdated$1");function yt(t,n,l,d,p,h){var B=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var Q=t.entanglements,U=t.expirationTimes,q=t.hiddenUpdates;for(l=B&~l;0<l;){var pe=31-vr(l),he=1<<pe;Q[pe]=0,U[pe]=-1;var xe=q[pe];if(xe!==null)for(q[pe]=null,pe=0;pe<xe.length;pe++){var Tt=xe[pe];Tt!==null&&(Tt.lane&=-536870913)}l&=~he}d!==0&&P(t,d,0),h!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=h&~(B&~n))}i(yt,"markRootFinished");function P(t,n,l){t.pendingLanes|=n,t.suspendedLanes&=~n;var d=31-vr(n);t.entangledLanes|=n,t.entanglements[d]=t.entanglements[d]|1073741824|l&261930}i(P,"markSpawnedDeferredLane");function Ce(t,n){var l=t.entangledLanes|=n;for(t=t.entanglements;l;){var d=31-vr(l),p=1<<d;p&n|t[d]&n&&(t[d]|=n),l&=~p}}i(Ce,"markRootEntangled");function Ve(t,n){var l=n&-n;return l=(l&42)!==0?1:oe(l),(l&(t.suspendedLanes|n))!==0?0:l}i(Ve,"getBumpedLaneForHydration");function oe(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}i(oe,"getBumpedLaneForHydrationByLane");function et(t,n,l){if(pc)for(t=t.pendingUpdatersLaneMap;0<l;){var d=31-vr(l),p=1<<d;t[d].add(n),l&=~p}}i(et,"addFiberToLanesMap");function Et(t,n){if(pc)for(var l=t.pendingUpdatersLaneMap,d=t.memoizedUpdaters;0<n;){var p=31-vr(n);t=1<<p,p=l[p],0<p.size&&(p.forEach(function(h){var B=h.alternate;B!==null&&d.has(B)||d.add(h)}),p.clear()),n&=~t}}i(Et,"movePendingFibersToMemoized");function te(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}i(te,"lanesToEventPriority");function se(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{_p=n.inject(t),Ji=n}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!n.checkDCE}i(se,"injectInternals");function De(t){if(typeof y4=="function"&&I4(t),Ji&&typeof Ji.setStrictMode=="function")try{Ji.setStrictMode(_p,t)}catch(n){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",n))}}i(De,"setIsStrictModeForDevtools");function ut(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}i(ut,"is");function wt(t){for(var n=0,l=0;l<t.length;l++){var d=t[l];if(typeof d=="object"&&d!==null)if(Ar(d)&&d.length===2&&typeof d[0]=="string"){if(n!==0&&n!==3)return 1;n=3}else return 1;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||n!==0&&n!==2)return 1;n=2}}return n}i(wt,"getArrayKind");function Gt(t,n,l,d){for(var p in t)fv.call(t,p)&&p[0]!=="_"&>(p,t[p],n,l,d)}i(Gt,"addObjectToProperties");function gt(t,n,l,d,p){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===Ql){var h=ce(n.type)||"\u2026",B=n.key;n=n.props;var Q=Object.keys(n),U=Q.length;if(B==null&&U===0){n="<"+h+" />";break}if(3>d||U===1&&Q[0]==="children"&&B==null){n="<"+h+" \u2026 />";break}l.push([p+"\xA0\xA0".repeat(d)+t,"<"+h]),B!==null&>("key",B,l,d+1,p),t=!1;for(var q in n)q==="children"?n.children!=null&&(!Ar(n.children)||0<n.children.length)&&(t=!0):fv.call(n,q)&&q[0]!=="_"&>(q,n[q],l,d+1,p);l.push(["",t?">\u2026</"+h+">":"/>"]);return}if(h=Object.prototype.toString.call(n),h=h.slice(8,h.length-1),h==="Array"){if(q=wt(n),q===2||q===0){n=JSON.stringify(n);break}else if(q===3){for(l.push([p+"\xA0\xA0".repeat(d)+t,""]),t=0;t<n.length;t++)h=n[t],gt(h[0],h[1],l,d+1,p);return}}if(h==="Promise"){if(n.status==="fulfilled"){if(h=l.length,gt(t,n.value,l,d,p),l.length>h){l=l[h],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(n.status==="rejected"&&(h=l.length,gt(t,n.reason,l,d,p),l.length>h)){l=l[h],l[1]="Rejected Promise<"+l[1]+">";return}l.push(["\xA0\xA0".repeat(d)+t,"Promise"]);return}h==="Object"&&(q=Object.getPrototypeOf(n))&&typeof q.constructor=="function"&&(h=q.constructor.name),l.push([p+"\xA0\xA0".repeat(d)+t,h==="Object"?3>d?"":"\u2026":h]),3>d&&Gt(n,l,d+1,p);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n==="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects."?"\u2026":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}l.push([p+"\xA0\xA0".repeat(d)+t,n])}i(gt,"addValueToProperties");function Ie(t,n,l,d){var p=!0;for(B in t)B in n||(l.push(["\u2013\xA0"+"\xA0\xA0".repeat(d)+B,"\u2026"]),p=!1);for(var h in n)if(h in t){var B=t[h],Q=n[h];if(B!==Q){if(d===0&&h==="children")p="\xA0\xA0".repeat(d)+h,l.push(["\u2013\xA0"+p,"\u2026"],["+\xA0"+p,"\u2026"]);else{if(!(3<=d)){if(typeof B=="object"&&typeof Q=="object"&&B!==null&&Q!==null&&B.$$typeof===Q.$$typeof)if(Q.$$typeof===Ql){if(B.type===Q.type&&B.key===Q.key){B=ce(Q.type)||"\u2026",p="\xA0\xA0".repeat(d)+h,B="<"+B+" \u2026 />",l.push(["\u2013\xA0"+p,B],["+\xA0"+p,B]),p=!1;continue}}else{var U=Object.prototype.toString.call(B),q=Object.prototype.toString.call(Q);if(U===q&&(q==="[object Object]"||q==="[object Array]")){U=["\u2007\xA0"+"\xA0\xA0".repeat(d)+h,q==="[object Array]"?"Array":""],l.push(U),q=l.length,Ie(B,Q,l,d+1)?q===l.length&&(U[1]="Referentially unequal but deeply equal objects. Consider memoization."):p=!1;continue}}else if(typeof B=="function"&&typeof Q=="function"&&B.name===Q.name&&B.length===Q.length&&(U=Function.prototype.toString.call(B),q=Function.prototype.toString.call(Q),U===q)){B=Q.name===""?"() => {}":Q.name+"() {}",l.push(["\u2007\xA0"+"\xA0\xA0".repeat(d)+h,B+" Referentially unequal function closure. Consider memoization."]);continue}}gt(h,B,l,d,"\u2013\xA0"),gt(h,Q,l,d,"+\xA0")}p=!1}}else l.push(["+\xA0"+"\xA0\xA0".repeat(d)+h,"\u2026"]),p=!1;return p}i(Ie,"addObjectDiffToProperties");function Ne(t){vn=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}i(Ne,"setCurrentTrackFromLanes");function at(t,n,l,d){Bo&&(QA.start=n,QA.end=l,iu.color="warning",iu.tooltipText=d,iu.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,d,QA)):performance.measure(d,QA))}i(at,"logComponentTrigger");function kt(t,n,l){at(t,n,l,"Reconnect")}i(kt,"logComponentReappeared");function be(t,n,l,d,p){var h=ae(t);if(h!==null&&Bo){var B=t.alternate,Q=t.actualDuration;if(B===null||B.child!==t.child)for(var U=t.child;U!==null;U=U.sibling)Q-=U.actualDuration;d=.5>Q?d?"tertiary-light":"primary-light":10>Q?d?"tertiary":"primary":100>Q?d?"tertiary-dark":"primary-dark":"error";var q=t.memoizedProps;Q=t._debugTask,q!==null&&B!==null&&B.memoizedProps!==q?(U=[v4],q=Ie(B.memoizedProps,q,U,0),1<U.length&&(q&&!vA&&(B.lanes&p)===0&&100<t.actualDuration?(vA=!0,U[0]=Q4,iu.color="warning",iu.tooltipText="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."):(iu.color=d,iu.tooltipText=h),iu.properties=U,QA.start=n,QA.end=l,Q!=null?Q.run(performance.measure.bind(performance,"\u200B"+h,QA)):performance.measure("\u200B"+h,QA))):Q!=null?Q.run(console.timeStamp.bind(console,h,n,l,"Components \u269B",void 0,d)):console.timeStamp(h,n,l,"Components \u269B",void 0,d)}}i(be,"logComponentRender");function Te(t,n,l,d){if(Bo){var p=ae(t);if(p!==null){for(var h=null,B=[],Q=0;Q<d.length;Q++){var U=d[Q];h==null&&U.source!==null&&(h=U.source._debugTask),U=U.value,B.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}t.key!==null&>("key",t.key,B,0,""),t.memoizedProps!==null&&Gt(t.memoizedProps,B,0,""),h==null&&(h=t._debugTask),t={start:n,end:l,detail:{devtools:{color:"error",track:"Components \u269B",tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:B}}},h?h.run(performance.measure.bind(performance,"\u200B"+p,t)):performance.measure("\u200B"+p,t)}}}i(Te,"logComponentErrored");function fe(t,n,l,d,p){if(p!==null){if(Bo){var h=ae(t);if(h!==null){d=[];for(var B=0;B<p.length;B++){var Q=p[B].value;d.push(["Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t.key!==null&>("key",t.key,d,0,""),t.memoizedProps!==null&&Gt(t.memoizedProps,d,0,""),n={start:n,end:l,detail:{devtools:{color:"error",track:"Components \u269B",tooltipText:"A lifecycle or effect errored",properties:d}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,"\u200B"+h,n)):performance.measure("\u200B"+h,n)}}}else h=ae(t),h!==null&&Bo&&(p=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,h,n,l,"Components \u269B",void 0,p)):console.timeStamp(h,n,l,"Components \u269B",void 0,p))}i(fe,"logComponentEffect");function tt(t,n,l,d){if(Bo&&!(n<=t)){var p=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",d?d.run(console.timeStamp.bind(console,l,t,n,vn,"Scheduler \u269B",p)):console.timeStamp(l,t,n,vn,"Scheduler \u269B",p)}}i(tt,"logRenderPhase");function _t(t,n,l,d){!Bo||n<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",t,n,vn,"Scheduler \u269B",l)):console.timeStamp("Prewarm",t,n,vn,"Scheduler \u269B",l))}i(_t,"logSuspendedRenderPhase");function Gn(t,n,l,d){!Bo||n<=t||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",t,n,vn,"Scheduler \u269B",l)):console.timeStamp("Suspended",t,n,vn,"Scheduler \u269B",l))}i(Gn,"logSuspendedWithDelayPhase");function In(t,n,l,d,p,h){if(Bo&&!(n<=t)){l=[];for(var B=0;B<d.length;B++){var Q=d[B].value;l.push(["Recoverable Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t={start:t,end:n,detail:{devtools:{color:"primary-dark",track:vn,trackGroup:"Scheduler \u269B",tooltipText:p?"Hydration Failed":"Recovered after Error",properties:l}}},h?h.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}i(In,"logRecoveredRenderPhase");function No(t,n,l,d){!Bo||n<=t||(d?d.run(console.timeStamp.bind(console,"Errored",t,n,vn,"Scheduler \u269B","error")):console.timeStamp("Errored",t,n,vn,"Scheduler \u269B","error"))}i(No,"logErroredRenderPhase");function xr(t,n,l,d){!Bo||n<=t||(d?d.run(console.timeStamp.bind(console,l,t,n,vn,"Scheduler \u269B","secondary-light")):console.timeStamp(l,t,n,vn,"Scheduler \u269B","secondary-light"))}i(xr,"logSuspendedCommitPhase");function Vo(t,n,l,d,p){if(Bo&&!(n<=t)){for(var h=[],B=0;B<l.length;B++){var Q=l[B].value;h.push(["Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}t={start:t,end:n,detail:{devtools:{color:"error",track:vn,trackGroup:"Scheduler \u269B",tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:h}}},p?p.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}i(Vo,"logCommitErrored");function Mo(){}i(Mo,"disabledLog");function qr(){if(fE===0){Gw=console.log,Fw=console.info,zw=console.warn,Kw=console.error,Yw=console.group,qw=console.groupCollapsed,Pw=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Mo,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}fE++}i(qr,"disableLogs");function ot(){if(fE--,fE===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Vn({},t,{value:Gw}),info:Vn({},t,{value:Fw}),warn:Vn({},t,{value:zw}),error:Vn({},t,{value:Kw}),group:Vn({},t,{value:Yw}),groupCollapsed:Vn({},t,{value:qw}),groupEnd:Vn({},t,{value:Pw})})}0>fE&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}i(ot,"reenableLogs");function Dt(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame
|
|
56
|
+
`)&&(t=t.slice(29)),n=t.indexOf(`
|
|
57
|
+
`),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react_stack_bottom_frame"),n!==-1&&(n=t.lastIndexOf(`
|
|
58
|
+
`,n)),n!==-1)t=t.slice(0,n);else return"";return t}i(Dt,"formatOwnerStack");function mt(t){if(gv===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);gv=n&&n[1]||"",Jw=-1<l.stack.indexOf(`
|
|
59
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
60
|
+
`+gv+t+Jw}i(mt,"describeBuiltInComponentFrame");function tn(t,n){if(!t||pv)return"";var l=mv.get(t);if(l!==void 0)return l;pv=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=Ae.H,Ae.H=null,qr();try{var p={DetermineComponentFrameRoot:i(function(){try{if(n){var xe=i(function(){throw Error()},"Fake");if(Object.defineProperty(xe.prototype,"props",{set:i(function(){throw Error()},"set")}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch($t){var Tt=$t}Reflect.construct(t,[],xe)}else{try{xe.call()}catch($t){Tt=$t}t.call(xe.prototype)}}else{try{throw Error()}catch($t){Tt=$t}(xe=t())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch($t){if($t&&Tt&&typeof $t.stack=="string")return[$t.stack,Tt.stack]}return[null,null]},"DetermineComponentFrameRoot")};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=p.DetermineComponentFrameRoot(),Q=B[0],U=B[1];if(Q&&U){var q=Q.split(`
|
|
61
|
+
`),pe=U.split(`
|
|
62
|
+
`);for(B=h=0;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;for(;B<pe.length&&!pe[B].includes("DetermineComponentFrameRoot");)B++;if(h===q.length||B===pe.length)for(h=q.length-1,B=pe.length-1;1<=h&&0<=B&&q[h]!==pe[B];)B--;for(;1<=h&&0<=B;h--,B--)if(q[h]!==pe[B]){if(h!==1||B!==1)do if(h--,B--,0>B||q[h]!==pe[B]){var he=`
|
|
63
|
+
`+q[h].replace(" at new "," at ");return t.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",t.displayName)),typeof t=="function"&&mv.set(t,he),he}while(1<=h&&0<=B);break}}}finally{pv=!1,Ae.H=d,ot(),Error.prepareStackTrace=l}return q=(q=t?t.displayName||t.name:"")?mt(q):"",typeof t=="function"&&mv.set(t,q),q}i(tn,"describeNativeComponentFrame");function to(t,n){switch(t.tag){case 26:case 27:case 5:return mt(t.type);case 16:return mt("Lazy");case 13:return t.child!==n&&n!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return tn(t.type,!1);case 11:return tn(t.type.render,!1);case 1:return tn(t.type,!0);case 31:return mt("Activity");default:return""}}i(to,"describeFiber");function yr(t){try{var n="",l=null;do{n+=to(t,l);var d=t._debugInfo;if(d)for(var p=d.length-1;0<=p;p--){var h=d[p];if(typeof h.name=="string"){var B=n;e:{var Q=h.name,U=h.env,q=h.debugLocation;if(q!=null){var pe=Dt(q),he=pe.lastIndexOf(`
|
|
64
|
+
`),xe=he===-1?pe:pe.slice(he+1);if(xe.indexOf(Q)!==-1){var Tt=`
|
|
65
|
+
`+xe;break e}}Tt=mt(Q+(U?" ["+U+"]":""))}n=B+Tt}}l=t,t=t.return}while(t);return n}catch($t){return`
|
|
66
|
+
Error generating stack: `+$t.message+`
|
|
67
|
+
`+$t.stack}}i(yr,"getStackByFiberInDevAndProd");function ta(t){return(t=t?t.displayName||t.name:"")?mt(t):""}i(ta,"describeFunctionComponentFrameWithoutLineNumber");function Jn(t,n){if(typeof t=="object"&&t!==null){var l=hv.get(t);return l!==void 0?l:(n={value:t,source:n,stack:yr(n)},hv.set(t,n),n)}return{value:t,source:n,stack:yr(n)}}i(Jn,"createCapturedValueAtFiber");function w(t,n){pt(),Np[Mp++]=gE,Np[Mp++]=xI,xI=t,gE=n}i(w,"pushTreeFork");function j(t,n,l){pt(),Hs[ks++]=au,Hs[ks++]=su,Hs[ks++]=pf,pf=t;var d=au;t=su;var p=32-vr(d)-1;d&=~(1<<p),l+=1;var h=32-vr(n)+p;if(30<h){var B=p-p%5;h=(d&(1<<B)-1).toString(32),d>>=B,p-=B,au=1<<32-vr(n)+p|l<<p|d,su=h+t}else au=1<<h|l<<p|d,su=t}i(j,"pushTreeId");function Ge(t){pt(),t.return!==null&&(w(t,1),j(t,1,0))}i(Ge,"pushMaterializedTreeId");function Ue(t){for(;t===xI;)xI=Np[--Mp],Np[Mp]=null,gE=Np[--Mp],Np[Mp]=null;for(;t===pf;)pf=Hs[--ks],Hs[ks]=null,su=Hs[--ks],Hs[ks]=null,au=Hs[--ks],Hs[ks]=null}i(Ue,"popTreeContext");function nt(){return pt(),pf!==null?{id:au,overflow:su}:null}i(nt,"getSuspendedTreeContext");function dn(t,n){pt(),Hs[ks++]=au,Hs[ks++]=su,Hs[ks++]=pf,au=n.id,su=n.overflow,pf=t}i(dn,"restoreSuspendedTreeContext");function pt(){xn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}i(pt,"warnIfNotHydrating");function xt(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}i(xt,"requiredContext");function rn(t,n){ee(RA,n,t),ee(pE,t,t),ee(bA,null,t),n=Ds(n),ne(bA,t),ee(bA,n,t)}i(rn,"pushHostContainer");function sr(t){ne(bA,t),ne(pE,t),ne(RA,t)}i(sr,"popHostContainer");function mo(){return xt(bA.current)}i(mo,"getHostContext");function Xo(t){t.memoizedState!==null&&ee(DI,t,t);var n=xt(bA.current),l=Zr(n,t.type);n!==l&&(ee(pE,t,t),ee(bA,l,t))}i(Xo,"pushHostContext");function na(t){pE.current===t&&(ne(bA,t),ne(pE,t)),DI.current===t&&(ne(DI,t),wi?Ha._currentValue=Oa:Ha._currentValue2=Oa)}i(na,"popHostContext");function oa(t,n){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-n?oa(t.children[0],n):t}i(oa,"findNotableNode");function lt(t){return" "+" ".repeat(t)}i(lt,"indentation");function Dr(t){return"+ "+" ".repeat(t)}i(Dr,"added");function zt(t){return"- "+" ".repeat(t)}i(zt,"removed");function ti(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}i(ti,"describeFiberType");function Ti(t,n){return jw.test(t)?(t=JSON.stringify(t),t.length>n-2?8>n?'{"..."}':"{"+t.slice(0,n-7)+'..."}':"{"+t+"}"):t.length>n?5>n?'{"..."}':t.slice(0,n-3)+"...":t}i(Ti,"describeTextNode");function _i(t,n,l){var d=120-2*l;if(n===null)return Dr(l)+Ti(t,d)+`
|
|
68
|
+
`;if(typeof n=="string"){for(var p=0;p<n.length&&p<t.length&&n.charCodeAt(p)===t.charCodeAt(p);p++);return p>d-8&&10<p&&(t="..."+t.slice(p-8),n="..."+n.slice(p-8)),Dr(l)+Ti(t,d)+`
|
|
69
|
+
`+zt(l)+Ti(n,d)+`
|
|
70
|
+
`}return lt(l)+Ti(t,d)+`
|
|
71
|
+
`}i(_i,"describeTextDiff");function Ja(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(n,l){return l})}i(Ja,"objectName");function Ba(t,n){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>n?5>n?'"..."':t.slice(0,n-4)+'..."':t;case"object":if(t===null)return"null";if(Ar(t))return"[...]";if(t.$$typeof===Ql)return(n=ce(t.type))?"<"+n+">":"<...>";var l=Ja(t);if(l==="Object"){l="",n-=2;for(var d in t)if(t.hasOwnProperty(d)){var p=JSON.stringify(d);if(p!=='"'+d+'"'&&(d=p),n-=d.length-2,p=Ba(t[d],15>n?n:15),n-=p.length,0>n){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+p}return"{"+l+"}"}return l;case"function":return(n=t.displayName||t.name)?"function "+n:"function";default:return String(t)}}i(Ba,"describeValue");function Tr(t,n){return typeof t!="string"||jw.test(t)?"{"+Ba(t,n-2)+"}":t.length>n-2?5>n?'"..."':'"'+t.slice(0,n-5)+'..."':'"'+t+'"'}i(Tr,"describePropValue");function Ni(t,n,l){var d=120-l.length-t.length,p=[],h;for(h in n)if(n.hasOwnProperty(h)&&h!=="children"){var B=Tr(n[h],120-l.length-h.length-1);d-=h.length+B.length+2,p.push(h+"="+B)}return p.length===0?l+"<"+t+`>
|
|
72
|
+
`:0<d?l+"<"+t+" "+p.join(" ")+`>
|
|
73
|
+
`:l+"<"+t+`
|
|
74
|
+
`+l+" "+p.join(`
|
|
75
|
+
`+l+" ")+`
|
|
76
|
+
`+l+`>
|
|
77
|
+
`}i(Ni,"describeExpandedElement");function ja(t,n,l){var d="",p=Vn({},n),h;for(h in t)if(t.hasOwnProperty(h)){delete p[h];var B=120-2*l-h.length-2,Q=Ba(t[h],B);n.hasOwnProperty(h)?(B=Ba(n[h],B),d+=Dr(l)+h+": "+Q+`
|
|
78
|
+
`,d+=zt(l)+h+": "+B+`
|
|
79
|
+
`):d+=Dr(l)+h+": "+Q+`
|
|
80
|
+
`}for(var U in p)p.hasOwnProperty(U)&&(t=Ba(p[U],120-2*l-U.length-2),d+=zt(l)+U+": "+t+`
|
|
81
|
+
`);return d}i(ja,"describePropertiesDiff");function Pl(t,n,l,d){var p="",h=new Map;for(q in l)l.hasOwnProperty(q)&&h.set(q.toLowerCase(),q);if(h.size===1&&h.has("children"))p+=Ni(t,n,lt(d));else{for(var B in n)if(n.hasOwnProperty(B)&&B!=="children"){var Q=120-2*(d+1)-B.length-1,U=h.get(B.toLowerCase());if(U!==void 0){h.delete(B.toLowerCase());var q=n[B];U=l[U];var pe=Tr(q,Q);Q=Tr(U,Q),typeof q=="object"&&q!==null&&typeof U=="object"&&U!==null&&Ja(q)==="Object"&&Ja(U)==="Object"&&(2<Object.keys(q).length||2<Object.keys(U).length||-1<pe.indexOf("...")||-1<Q.indexOf("..."))?p+=lt(d+1)+B+`={{
|
|
82
|
+
`+ja(q,U,d+2)+lt(d+1)+`}}
|
|
83
|
+
`:(p+=Dr(d+1)+B+"="+pe+`
|
|
84
|
+
`,p+=zt(d+1)+B+"="+Q+`
|
|
85
|
+
`)}else p+=lt(d+1)+B+"="+Tr(n[B],Q)+`
|
|
86
|
+
`}h.forEach(function(he){if(he!=="children"){var xe=120-2*(d+1)-he.length-1;p+=zt(d+1)+he+"="+Tr(l[he],xe)+`
|
|
87
|
+
`}}),p=p===""?lt(d)+"<"+t+`>
|
|
88
|
+
`:lt(d)+"<"+t+`
|
|
89
|
+
`+p+lt(d)+`>
|
|
90
|
+
`}return t=l.children,n=n.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(h="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(h=""+n),p+=_i(h,""+t,d+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(p=t==null?p+_i(""+n,null,d+1):p+_i(""+n,void 0,d+1)),p}i(Pl,"describeElementDiff");function hs(t,n){var l=ti(t);if(l===null){for(l="",t=t.child;t;)l+=hs(t,n),t=t.sibling;return l}return lt(n)+"<"+l+`>
|
|
91
|
+
`}i(hs,"describeSiblingFiber");function Sa(t,n){var l=oa(t,n);if(l!==t&&(t.children.length!==1||t.children[0]!==l))return lt(n)+`...
|
|
92
|
+
`+Sa(l,n+1);l="";var d=t.fiber._debugInfo;if(d)for(var p=0;p<d.length;p++){var h=d[p].name;typeof h=="string"&&(l+=lt(n)+"<"+h+`>
|
|
93
|
+
`,n++)}if(d="",p=t.fiber.pendingProps,t.fiber.tag===6)d=_i(p,t.serverProps,n),n++;else if(h=ti(t.fiber),h!==null)if(t.serverProps===void 0){d=n;var B=120-2*d-h.length-2,Q="";for(q in p)if(p.hasOwnProperty(q)&&q!=="children"){var U=Tr(p[q],15);if(B-=q.length+U.length+2,0>B){Q+=" ...";break}Q+=" "+q+"="+U}d=lt(d)+"<"+h+Q+`>
|
|
94
|
+
`,n++}else t.serverProps===null?(d=Ni(h,p,Dr(n)),n++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=Pl(h,p,t.serverProps,n),n++);var q="";for(p=t.fiber.child,h=0;p&&h<t.children.length;)B=t.children[h],B.fiber===p?(q+=Sa(B,n),h++):q+=hs(p,n),p=p.sibling;for(p&&0<t.children.length&&(q+=lt(n)+`...
|
|
95
|
+
`),p=t.serverTail,t.serverProps===null&&n--,t=0;t<p.length;t++)h=p[t],q=typeof h=="string"?q+(zt(n)+Ti(h,120-2*n)+`
|
|
96
|
+
`):q+Ni(h.type,h.props,zt(n));return l+d+q}i(Sa,"describeNode");function Mc(t){try{return`
|
|
97
|
+
|
|
98
|
+
`+Sa(t,0)}catch{return""}}i(Mc,"describeDiff");function Ku(){if(lu===null)return"";var t=lu;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=mt(t.type);break;case 13:n+=mt("Suspense");break;case 19:n+=mt("SuspenseList");break;case 31:n+=mt("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=ta(t.type));break;case 11:t._debugOwner||n!==""||(n+=ta(t.type.render))}for(;t;)if(typeof t.tag=="number"){var l=t;t=l._debugOwner;var d=l._debugStack;if(t&&d){var p=Dt(d);p!==""&&(n+=`
|
|
99
|
+
`+p)}}else if(t.debugStack!=null){var h=t.debugStack;(t=t.owner)&&h&&(n+=`
|
|
100
|
+
`+Dt(h))}else break;var B=n}catch(Q){B=`
|
|
101
|
+
Error generating stack: `+Q.message+`
|
|
102
|
+
`+Q.stack}return B}i(Ku,"getCurrentFiberStackInDev");function ft(t,n,l,d,p,h,B){var Q=lu;Ft(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,l,d,p,h,B)):n(l,d,p,h,B)}finally{Ft(Q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}i(ft,"runWithFiberInDEV");function Ft(t){Ae.getCurrentStack=t===null?null:Ku,mc=!1,lu=t}i(Ft,"setCurrentFiber");function Fn(t,n){if(t.return===null){if(ls===null)ls={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(ls.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ls.distanceFromLeaf>n&&(ls.distanceFromLeaf=n)}return ls}var l=Fn(t.return,n+1).children;return 0<l.length&&l[l.length-1].fiber===t?(l=l[l.length-1],l.distanceFromLeaf>n&&(l.distanceFromLeaf=n),l):(n={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},l.push(n),n)}i(Fn,"buildHydrationDiffNode");function ao(){xn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}i(ao,"warnIfHydrating");function ra(t,n){hc||(t=Fn(t,0),t.serverProps=null,n!==null&&(n=BA(n),t.serverTail.push(n)))}i(ra,"warnNonHydratedInstance");function ni(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=ls;throw d!==null&&(ls=null,l=Mc(d)),Ir(Jn(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
103
|
+
|
|
104
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
105
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
106
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
107
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
108
|
+
- Invalid HTML tag nesting.
|
|
109
|
+
|
|
110
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
111
|
+
|
|
112
|
+
https://react.dev/link/hydration-mismatch`+l),t)),Ev}i(ni,"throwOnHydrationMismatch");function Mi(t,n){if(!ui)throw Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");Sn(t.stateNode,t.type,t.memoizedProps,n,t)||ni(t,!0)}i(Mi,"prepareToHydrateHostInstance");function Zo(t){for(xi=t.return;xi;)switch(xi.tag){case 5:case 31:case 13:Us=!1;return;case 27:case 3:Us=!0;return;default:xi=xi.return}}i(Zo,"popToNextHostParent");function yi(t){if(!ui||t!==xi)return!1;if(!xn)return Zo(t),xn=!0,!1;var n=t.tag;if(I?n!==3&&n!==27&&(n!==5||Rp(t.type)&&!En(t.type,t.memoizedProps))&&Uo&&(no(t),ni(t)):n!==3&&(n!==5||Rp(t.type)&&!En(t.type,t.memoizedProps))&&Uo&&(no(t),ni(t)),Zo(t),n===13){if(!ui)throw Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Uo=nu(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Uo=uc(t)}else Uo=I&&n===27?Av(t.type,Uo):xi?cc(t.stateNode):null;return!0}i(yi,"popHydrationState");function no(t){for(var n=Uo;n;){var l=Fn(t,0),d=BA(n);l.serverTail.push(d),n=d.type==="Suspense"?nu(n):cc(n)}}i(no,"warnIfUnhydratedTailNodes");function Ii(){ui&&(Uo=xi=null,hc=xn=!1)}i(Ii,"resetHydrationState");function oi(){var t=wA;return t!==null&&(Ea===null?Ea=t:Ea.push.apply(Ea,t),wA=null),t}i(oi,"upgradeHydrationErrorsToRecoverable");function Ir(t){wA===null?wA=[t]:wA.push(t)}i(Ir,"queueHydrationError");function va(){var t=ls;if(t!==null){ls=null;for(var n=Mc(t);0<t.children.length;)t=t.children[0];ft(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
113
|
+
|
|
114
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
115
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
116
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
117
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
118
|
+
- Invalid HTML tag nesting.
|
|
119
|
+
|
|
120
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
121
|
+
|
|
122
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",n)})}}i(va,"emitPendingHydrationWarnings");function ia(){Op=NI=null,Hp=!1}i(ia,"resetContextDependencies");function x(t,n,l){wi?(ee(TI,n._currentValue,t),n._currentValue=l,ee(Cv,n._currentRenderer,t),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==_I&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=_I):(ee(TI,n._currentValue2,t),n._currentValue2=l,ee(yv,n._currentRenderer2,t),n._currentRenderer2!==void 0&&n._currentRenderer2!==null&&n._currentRenderer2!==_I&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer2=_I)}i(x,"pushProvider");function D(t,n){var l=TI.current;wi?(t._currentValue=l,l=Cv.current,ne(Cv,n),t._currentRenderer=l):(t._currentValue2=l,l=yv.current,ne(yv,n),t._currentRenderer2=l),ne(TI,n)}i(D,"popProvider");function G(t,n,l){for(;t!==null;){var d=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),t===l)break;t=t.return}t!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}i(G,"scheduleContextWorkOnParentPath");function Y(t,n,l,d){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var h=p.dependencies;if(h!==null){var B=p.child;h=h.firstContext;e:for(;h!==null;){var Q=h;h=p;for(var U=0;U<n.length;U++)if(Q.context===n[U]){h.lanes|=l,Q=h.alternate,Q!==null&&(Q.lanes|=l),G(h.return,l,t),d||(B=null);break e}h=Q.next}}else if(p.tag===18){if(B=p.return,B===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");B.lanes|=l,h=B.alternate,h!==null&&(h.lanes|=l),G(B,l,t),B=null}else B=p.child;if(B!==null)B.return=p;else for(B=p;B!==null;){if(B===t){B=null;break}if(p=B.sibling,p!==null){p.return=B.return,B=p;break}B=B.return}p=B}}i(Y,"propagateContextChanges");function J(t,n,l,d){t=null;for(var p=n,h=!1;p!==null;){if(!h){if((p.flags&524288)!==0)h=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var B=p.alternate;if(B===null)throw Error("Should have a current fiber. This is a bug in React.");if(B=B.memoizedProps,B!==null){var Q=p.type;ga(p.pendingProps.value,B.value)||(t!==null?t.push(Q):t=[Q])}}else if(p===DI.current){if(B=p.alternate,B===null)throw Error("Should have a current fiber. This is a bug in React.");B.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ha):t=[Ha])}p=p.return}t!==null&&Y(n,t,l,d),n.flags|=262144}i(J,"propagateParentContextChanges");function Be(t){for(t=t.firstContext;t!==null;){var n=t.context;if(!ga(wi?n._currentValue:n._currentValue2,t.memoizedValue))return!0;t=t.next}return!1}i(Be,"checkIfContextChanged");function Oe(t){NI=t,Op=null,t=t.dependencies,t!==null&&(t.firstContext=null)}i(Oe,"prepareToReadContext");function ve(t){return Hp&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Ke(NI,t)}i(ve,"readContext");function $e(t,n){return NI===null&&Oe(t),Ke(t,n)}i($e,"readContextDuringReconciliation");function Ke(t,n){var l=wi?n._currentValue:n._currentValue2;if(n={context:n,memoizedValue:l,next:null},Op===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Op=n,t.dependencies={lanes:0,firstContext:n,_debugThenableState:null},t.flags|=524288}else Op=Op.next=n;return l}i(Ke,"readContextForConsumer");function At(){return{controller:new b4,data:new Map,refCount:0}}i(At,"createCache");function bt(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}i(bt,"retainCache");function nn(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&R4(w4,function(){t.controller.abort()})}i(nn,"releaseCache");function Nn(t,n,l){(t&127)!==0?0>Ec&&(Ec=Or(),mE=MI(n),Iv=n,l!=null&&(Bv=ae(l)),$d()&&(ar=!0,DA=1),t=is(),n=$c(),t!==kp||n!==hE?kp=-1.1:n!==null&&(DA=1),Ef=t,hE=n):(t&4194048)!==0&&0>Ls&&(Ls=Or(),EE=MI(n),Vw=n,l!=null&&(Xw=ae(l)),0>du)&&(t=is(),n=$c(),(t!==_A||n!==Cf)&&(_A=-1.1),TA=t,Cf=n)}i(Nn,"startUpdateTimerByLane");function _n(t){if(0>Ec){Ec=Or(),mE=t._debugTask!=null?t._debugTask:null,$d()&&(DA=1);var n=is(),l=$c();n!==kp||l!==hE?kp=-1.1:l!==null&&(DA=1),Ef=n,hE=l}0>Ls&&(Ls=Or(),EE=t._debugTask!=null?t._debugTask:null,0>du)&&(t=is(),n=$c(),(t!==_A||n!==Cf)&&(_A=-1.1),TA=t,Cf=n)}i(_n,"startHostActionTimer");function uo(){var t=mf;return mf=0,t}i(uo,"pushNestedEffectDurations");function Wo(t){var n=mf;return mf=t,n}i(Wo,"popNestedEffectDurations");function Bi(t){var n=mf;return mf+=t,n}i(Bi,"bubbleNestedEffectDurations");function Pr(){Pt=Lt=-1.1}i(Pr,"resetComponentEffectTimers");function go(){var t=Lt;return Lt=-1.1,t}i(go,"pushComponentEffectStart");function lr(t){0<=t&&(Lt=t)}i(lr,"popComponentEffectStart");function aa(){var t=Lo;return Lo=-0,t}i(aa,"pushComponentEffectDuration");function Oi(t){0<=t&&(Lo=t)}i(Oi,"popComponentEffectDuration");function Hi(){var t=To;return To=null,t}i(Hi,"pushComponentEffectErrors");function On(){var t=ar;return ar=!1,t}i(On,"pushComponentEffectDidSpawnUpdate");function Oc(t){pa=Or(),0>t.actualStartTime&&(t.actualStartTime=pa)}i(Oc,"startProfilerTimer");function Hc(t){if(0<=pa){var n=Or()-pa;t.actualDuration+=n,t.selfBaseDuration=n,pa=-1}}i(Hc,"stopProfilerTimerIfRunningAndRecordDuration");function Ed(t){if(0<=pa){var n=Or()-pa;t.actualDuration+=n,pa=-1}}i(Ed,"stopProfilerTimerIfRunningAndRecordIncompleteDuration");function sa(){if(0<=pa){var t=Or(),n=t-pa;pa=-1,mf+=n,Lo+=n,Pt=t}}i(sa,"recordEffectDuration");function Cd(t){To===null&&(To=[]),To.push(t),uu===null&&(uu=[]),uu.push(t)}i(Cd,"recordEffectError");function ki(){pa=Or(),0>Lt&&(Lt=pa)}i(ki,"startEffectTimer");function Al(t){for(var n=t.child;n;)t.actualDuration+=n.actualDuration,n=n.sibling}i(Al,"transferActualDuration");function Es(){}i(Es,"noop$1");function _r(t){t!==Lp&&t.next===null&&(Lp===null?LI=Lp=t:Lp=Lp.next=t),GI=!0,Ae.actQueue!==null?Qv||(Qv=!0,V()):vv||(vv=!0,V())}i(_r,"ensureRootIsScheduled");function Va(t,n){if(!bv&&GI){bv=!0;do for(var l=!1,d=LI;d!==null;){if(!n)if(t!==0){var p=d.pendingLanes;if(p===0)var h=0;else{var B=d.suspendedLanes,Q=d.pingedLanes;h=(1<<31-vr(42|t)+1)-1,h&=p&~(B&~Q),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,lg(d,h))}else h=An,h=ye(d,d===fo?h:0,d.cancelPendingCommit!==null||d.timeoutHandle!==Ts),(h&3)===0||qe(d,h)||(l=!0,lg(d,h));d=d.next}while(l);bv=!1}}i(Va,"flushSyncWorkAcrossRoots_impl");function dl(){gA(),fl()}i(dl,"processRootScheduleInImmediateTask");function fl(){GI=Qv=vv=!1;var t=0;yf!==0&&sf()&&(t=yf);for(var n=wn(),l=null,d=LI;d!==null;){var p=d.next,h=yd(d,n);h===0?(d.next=null,l===null?LI=p:l.next=p,p===null&&(Lp=l)):(l=d,(t!==0||(h&3)!==0)&&(GI=!0)),d=p}Gr!==LA&&Gr!==cB||Va(t,!1),yf!==0&&(yf=0)}i(fl,"processRootScheduleInMicrotask");function yd(t,n){for(var l=t.suspendedLanes,d=t.pingedLanes,p=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var B=31-vr(h),Q=1<<B,U=p[B];U===-1?((Q&l)===0||(Q&d)!==0)&&(p[B]=ct(Q,n)):U<=n&&(t.expiredLanes|=Q),h&=~Q}if(n=fo,l=An,l=ye(t,t===n?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Ts),d=t.callbackNode,l===0||t===n&&(ro===wf||ro===xf)||t.cancelPendingCommit!==null)return d!==null&&qu(d),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||qe(t,l)){if(n=l&-l,n!==t.callbackPriority||Ae.actQueue!==null&&d!==Rv)qu(d);else return n;switch(te(l)){case 2:case 8:l=_l;break;case 32:l=gf;break;case 268435456:l=Hw;break;default:l=gf}return d=Yu.bind(null,t),Ae.actQueue!==null?(Ae.actQueue.push(d),l=Rv):l=Ut(l,d),t.callbackPriority=n,t.callbackNode=l,n}return d!==null&&qu(d),t.callbackPriority=2,t.callbackNode=null,2}i(yd,"scheduleTaskForRootDuringMicrotask");function Yu(t,n){if(UI=kI=!1,gA(),Gr!==LA&&Gr!==cB)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(kl===lB&&(kl=Zv),sA()&&t.callbackNode!==l)return null;var d=An;return d=ye(t,t===fo?d:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Ts),d===0?null:(jh(t,d,n),yd(t,wn()),t.callbackNode!=null&&t.callbackNode===l?Yu.bind(null,t):null)}i(Yu,"performWorkOnRootViaSchedulerTask");function lg(t,n){if(sA())return null;kI=UI,UI=!1,jh(t,n,!0)}i(lg,"performSyncWorkOnRoot");function qu(t){t!==Rv&&t!==null&&Do(t)}i(qu,"cancelCallback");function V(){Ae.actQueue!==null&&Ae.actQueue.push(function(){return fl(),null}),QI?ka(function(){(Dn&(fi|Ys))!==di?Ut(Mn,dl):fl()}):Ut(Mn,dl)}i(V,"scheduleImmediateRootScheduleTask");function _e(){if(yf===0){var t=If;t===0&&(t=Z,Z<<=1,(Z&261888)===0&&(Z=256)),yf=t}return yf}i(_e,"requestTransitionLane");function Pe(t,n){if(yE===null){var l=yE=[];wv=0,If=_e(),Gp={status:"pending",value:void 0,then:i(function(d){l.push(d)},"then")}}return wv++,n.then(Fe,Fe),n}i(Pe,"entangleAsyncAction");function Fe(){if(--wv===0&&(-1<Ls||(du=-1.1),yE!==null)){Gp!==null&&(Gp.status="fulfilled");var t=yE;yE=null,If=0,Gp=null;for(var n=0;n<t.length;n++)(0,t[n])()}}i(Fe,"pingEngtangledActionScope");function vt(t,n){var l=[],d={status:"pending",value:null,reason:null,then:i(function(p){l.push(p)},"then")};return t.then(function(){d.status="fulfilled",d.value=n;for(var p=0;p<l.length;p++)(0,l[p])(n)},function(p){for(d.status="rejected",d.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),d}i(vt,"chainThenableValue");function dt(){var t=Bf.current;return t!==null?t:fo.pooledCache}i(dt,"peekCacheFromPool");function fn(t,n){n===null?ee(Bf,Bf.current,t):ee(Bf,n.pool,t)}i(fn,"pushTransition");function cr(){var t=dt();return t===null?null:{parent:wi?ir._currentValue:ir._currentValue2,pool:t}}i(cr,"getSuspendedCache");function gl(t,n){if(ga(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var l=Object.keys(t),d=Object.keys(n);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!fv.call(n,p)||!ga(t[p],n[p]))return!1}return!0}i(gl,"shallowEqual");function ho(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}i(ho,"createThenableState");function ri(t){return t=t.status,t==="fulfilled"||t==="rejected"}i(ri,"isThenableResolved");function Kt(t,n,l){Ae.actQueue!==null&&(Ae.didUsePromise=!0);var d=t.thenables;if(l=d[l],l===void 0?d.push(n):l!==n&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(Es,Es),n=l),n._debugInfo===void 0){t=performance.now(),d=n.displayName;var p={name:typeof d=="string"?d:"Promise",start:t,end:t,value:n};n._debugInfo=[{awaited:p}],n.status!=="fulfilled"&&n.status!=="rejected"&&(t=i(function(){p.end=performance.now()},"thenableState"),n.then(t,t))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Xa(t),t;default:if(typeof n.status=="string")n.then(Es,Es);else{if(t=fo,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=n,t.status="pending",t.then(function(h){if(n.status==="pending"){var B=n;B.status="fulfilled",B.value=h}},function(h){if(n.status==="pending"){var B=n;B.status="rejected",B.reason=h}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Xa(t),t}throw vf=n,RE=!0,Fp}}i(Kt,"trackUsedThenable");function po(t){try{return _4(t)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vf=n,RE=!0,Fp):n}}i(po,"resolveLazy");function Qa(){if(vf===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=vf;return vf=null,RE=!1,t}i(Qa,"getSuspendedThenable");function Xa(t){if(t===Fp||t===zI)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}i(Xa,"checkIfUseWrappedInAsyncCatch");function Oo(t){var n=un;return t!=null&&(un=n===null?t:n.concat(t)),n}i(Oo,"pushDebugInfo");function cg(){var t=un;if(t!=null){for(var n=t.length-1;0<=n;n--)if(t[n].name!=null){var l=t[n].debugTask;if(l!=null)return l}}return null}i(cg,"getCurrentDebugTask");function Jl(t,n,l){for(var d=Object.keys(t.props),p=0;p<d.length;p++){var h=d[p];if(h!=="children"&&h!=="key"){n===null&&(n=ip(t,l.mode,0),n._debugInfo=un,n.return=l),ft(n,function(B){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B)},h);break}}}i(Jl,"validateFragmentProps");function Pu(t){var n=wE;return wE+=1,zp===null&&(zp=ho()),Kt(zp,t,n)}i(Pu,"unwrapThenable");function jl(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}i(jl,"coerceRef");function Ah(t,n){throw n.$$typeof===SI?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
123
|
+
- Multiple copies of the "react" package is used.
|
|
124
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
125
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}i(Ah,"throwOnInvalidObjectTypeImpl");function Id(t,n){var l=cg();l!==null?l.run(Ah.bind(null,t,n)):Ah(t,n)}i(Id,"throwOnInvalidObjectType");function ug(t,n){var l=ae(t)||"Component";gx[l]||(gx[l]=!0,n=n.displayName||n.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
126
|
+
root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
127
|
+
<%s>{%s}</%s>`,n,n,l,n,l))}i(ug,"warnOnFunctionTypeImpl");function Bd(t,n){var l=cg();l!==null?l.run(ug.bind(null,t,n)):ug(t,n)}i(Bd,"warnOnFunctionType");function dh(t,n){var l=ae(t)||"Component";px[l]||(px[l]=!0,n=String(n),t.tag===3?console.error(`Symbols are not valid as a React child.
|
|
128
|
+
root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
|
|
129
|
+
<%s>%s</%s>`,l,n,l))}i(dh,"warnOnSymbolTypeImpl");function Cs(t,n){var l=cg();l!==null?l.run(dh.bind(null,t,n)):dh(t,n)}i(Cs,"warnOnSymbolType");function Sd(t){function n(z,K){if(t){var X=z.deletions;X===null?(z.deletions=[K],z.flags|=16):X.push(K)}}i(n,"deleteChild");function l(z,K){if(!t)return null;for(;K!==null;)n(z,K),K=K.sibling;return null}i(l,"deleteRemainingChildren");function d(z){for(var K=new Map;z!==null;)z.key!==null?K.set(z.key,z):K.set(z.index,z),z=z.sibling;return K}i(d,"mapRemainingChildren");function p(z,K){return z=vl(z,K),z.index=0,z.sibling=null,z}i(p,"useFiber");function h(z,K,X){return z.index=X,t?(X=z.alternate,X!==null?(X=X.index,X<K?(z.flags|=67108866,K):X):(z.flags|=67108866,K)):(z.flags|=1048576,K)}i(h,"placeChild");function B(z){return t&&z.alternate===null&&(z.flags|=67108866),z}i(B,"placeSingleChild");function Q(z,K,X,Re){return K===null||K.tag!==6?(K=ap(X,z.mode,Re),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=un,K):(K=p(K,X),K.return=z,K._debugInfo=un,K)}i(Q,"updateTextNode");function U(z,K,X,Re){var It=X.type;return It===AA?(K=pe(z,K,X.props.children,Re,X.key),Jl(X,K,z),K):K!==null&&(K.elementType===It||tE(K,X)||typeof It=="object"&&It!==null&&It.$$typeof===Ki&&po(It)===K.type)?(K=p(K,X.props),jl(K,X),K.return=z,K._debugOwner=X._owner,K._debugInfo=un,K):(K=ip(X,z.mode,Re),jl(K,X),K.return=z,K._debugInfo=un,K)}i(U,"updateElement");function q(z,K,X,Re){return K===null||K.tag!==4||K.stateNode.containerInfo!==X.containerInfo||K.stateNode.implementation!==X.implementation?(K=tf(X,z.mode,Re),K.return=z,K._debugInfo=un,K):(K=p(K,X.children||[]),K.return=z,K._debugInfo=un,K)}i(q,"updatePortal");function pe(z,K,X,Re,It){return K===null||K.tag!==7?(K=ic(X,z.mode,Re,It),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=un,K):(K=p(K,X),K.return=z,K._debugInfo=un,K)}i(pe,"updateFragment");function he(z,K,X){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=ap(""+K,z.mode,X),K.return=z,K._debugOwner=z,K._debugTask=z._debugTask,K._debugInfo=un,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case Ql:return X=ip(K,z.mode,X),jl(X,K),X.return=z,z=Oo(K._debugInfo),X._debugInfo=un,un=z,X;case bl:return K=tf(K,z.mode,X),K.return=z,K._debugInfo=un,K;case Ki:var Re=Oo(K._debugInfo);return K=po(K),z=he(z,K,X),un=Re,z}if(Ar(K)||ze(K))return X=ic(K,z.mode,X,null),X.return=z,X._debugOwner=z,X._debugTask=z._debugTask,z=Oo(K._debugInfo),X._debugInfo=un,un=z,X;if(typeof K.then=="function")return Re=Oo(K._debugInfo),z=he(z,Pu(K),X),un=Re,z;if(K.$$typeof===tr)return he(z,$e(z,K),X);Id(z,K)}return typeof K=="function"&&Bd(z,K),typeof K=="symbol"&&Cs(z,K),null}i(he,"createChild");function xe(z,K,X,Re){var It=K!==null?K.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return It!==null?null:Q(z,K,""+X,Re);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Ql:return X.key===It?(It=Oo(X._debugInfo),z=U(z,K,X,Re),un=It,z):null;case bl:return X.key===It?q(z,K,X,Re):null;case Ki:return It=Oo(X._debugInfo),X=po(X),z=xe(z,K,X,Re),un=It,z}if(Ar(X)||ze(X))return It!==null?null:(It=Oo(X._debugInfo),z=pe(z,K,X,Re,null),un=It,z);if(typeof X.then=="function")return It=Oo(X._debugInfo),z=xe(z,K,Pu(X),Re),un=It,z;if(X.$$typeof===tr)return xe(z,K,$e(z,X),Re);Id(z,X)}return typeof X=="function"&&Bd(z,X),typeof X=="symbol"&&Cs(z,X),null}i(xe,"updateSlot");function Tt(z,K,X,Re,It){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return z=z.get(X)||null,Q(K,z,""+Re,It);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case Ql:return X=z.get(Re.key===null?X:Re.key)||null,z=Oo(Re._debugInfo),K=U(K,X,Re,It),un=z,K;case bl:return z=z.get(Re.key===null?X:Re.key)||null,q(K,z,Re,It);case Ki:var Un=Oo(Re._debugInfo);return Re=po(Re),K=Tt(z,K,X,Re,It),un=Un,K}if(Ar(Re)||ze(Re))return X=z.get(X)||null,z=Oo(Re._debugInfo),K=pe(K,X,Re,It,null),un=z,K;if(typeof Re.then=="function")return Un=Oo(Re._debugInfo),K=Tt(z,K,X,Pu(Re),It),un=Un,K;if(Re.$$typeof===tr)return Tt(z,K,X,$e(K,Re),It);Id(K,Re)}return typeof Re=="function"&&Bd(K,Re),typeof Re=="symbol"&&Cs(K,Re),null}i(Tt,"updateFromMap");function $t(z,K,X,Re){if(typeof X!="object"||X===null)return Re;switch(X.$$typeof){case Ql:case bl:k(z,K,X);var It=X.key;if(typeof It!="string")break;if(Re===null){Re=new Set,Re.add(It);break}if(!Re.has(It)){Re.add(It);break}ft(K,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",It)});break;case Ki:X=po(X),$t(z,K,X,Re)}return Re}i($t,"warnOnInvalidKey");function lo(z,K,X,Re){for(var It=null,Un=null,Wt=null,ln=K,cn=K=0,So=null;ln!==null&&cn<X.length;cn++){ln.index>cn?(So=ln,ln=null):So=ln.sibling;var br=xe(z,ln,X[cn],Re);if(br===null){ln===null&&(ln=So);break}It=$t(z,br,X[cn],It),t&&ln&&br.alternate===null&&n(z,ln),K=h(br,K,cn),Wt===null?Un=br:Wt.sibling=br,Wt=br,ln=So}if(cn===X.length)return l(z,ln),xn&&w(z,cn),Un;if(ln===null){for(;cn<X.length;cn++)ln=he(z,X[cn],Re),ln!==null&&(It=$t(z,ln,X[cn],It),K=h(ln,K,cn),Wt===null?Un=ln:Wt.sibling=ln,Wt=ln);return xn&&w(z,cn),Un}for(ln=d(ln);cn<X.length;cn++)So=Tt(ln,z,cn,X[cn],Re),So!==null&&(It=$t(z,So,X[cn],It),t&&So.alternate!==null&&ln.delete(So.key===null?cn:So.key),K=h(So,K,cn),Wt===null?Un=So:Wt.sibling=So,Wt=So);return t&&ln.forEach(function(Cu){return n(z,Cu)}),xn&&w(z,cn),Un}i(lo,"reconcileChildrenArray");function om(z,K,X,Re){if(X==null)throw Error("An iterable object provided no iterator.");for(var It=null,Un=null,Wt=K,ln=K=0,cn=null,So=null,br=X.next();Wt!==null&&!br.done;ln++,br=X.next()){Wt.index>ln?(cn=Wt,Wt=null):cn=Wt.sibling;var Cu=xe(z,Wt,br.value,Re);if(Cu===null){Wt===null&&(Wt=cn);break}So=$t(z,Cu,br.value,So),t&&Wt&&Cu.alternate===null&&n(z,Wt),K=h(Cu,K,ln),Un===null?It=Cu:Un.sibling=Cu,Un=Cu,Wt=cn}if(br.done)return l(z,Wt),xn&&w(z,ln),It;if(Wt===null){for(;!br.done;ln++,br=X.next())Wt=he(z,br.value,Re),Wt!==null&&(So=$t(z,Wt,br.value,So),K=h(Wt,K,ln),Un===null?It=Wt:Un.sibling=Wt,Un=Wt);return xn&&w(z,ln),It}for(Wt=d(Wt);!br.done;ln++,br=X.next())cn=Tt(Wt,z,ln,br.value,Re),cn!==null&&(So=$t(z,cn,br.value,So),t&&cn.alternate!==null&&Wt.delete(cn.key===null?ln:cn.key),K=h(cn,K,ln),Un===null?It=cn:Un.sibling=cn,Un=cn);return t&&Wt.forEach(function(G4){return n(z,G4)}),xn&&w(z,ln),It}i(om,"reconcileChildrenIterator");function Ul(z,K,X,Re){if(typeof X=="object"&&X!==null&&X.type===AA&&X.key===null&&(Jl(X,null,z),X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case Ql:var It=Oo(X._debugInfo);e:{for(var Un=X.key;K!==null;){if(K.key===Un){if(Un=X.type,Un===AA){if(K.tag===7){l(z,K.sibling),Re=p(K,X.props.children),Re.return=z,Re._debugOwner=X._owner,Re._debugInfo=un,Jl(X,Re,z),z=Re;break e}}else if(K.elementType===Un||tE(K,X)||typeof Un=="object"&&Un!==null&&Un.$$typeof===Ki&&po(Un)===K.type){l(z,K.sibling),Re=p(K,X.props),jl(Re,X),Re.return=z,Re._debugOwner=X._owner,Re._debugInfo=un,z=Re;break e}l(z,K);break}else n(z,K);K=K.sibling}X.type===AA?(Re=ic(X.props.children,z.mode,Re,X.key),Re.return=z,Re._debugOwner=z,Re._debugTask=z._debugTask,Re._debugInfo=un,Jl(X,Re,z),z=Re):(Re=ip(X,z.mode,Re),jl(Re,X),Re.return=z,Re._debugInfo=un,z=Re)}return z=B(z),un=It,z;case bl:e:{for(It=X,X=It.key;K!==null;){if(K.key===X)if(K.tag===4&&K.stateNode.containerInfo===It.containerInfo&&K.stateNode.implementation===It.implementation){l(z,K.sibling),Re=p(K,It.children||[]),Re.return=z,z=Re;break e}else{l(z,K);break}else n(z,K);K=K.sibling}Re=tf(It,z.mode,Re),Re.return=z,z=Re}return B(z);case Ki:return It=Oo(X._debugInfo),X=po(X),z=Ul(z,K,X,Re),un=It,z}if(Ar(X))return It=Oo(X._debugInfo),z=lo(z,K,X,Re),un=It,z;if(ze(X)){if(It=Oo(X._debugInfo),Un=ze(X),typeof Un!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Wt=Un.call(X);return Wt===X?(z.tag!==0||Object.prototype.toString.call(z.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Wt)!=="[object Generator]")&&(dx||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),dx=!0):X.entries!==Un||_v||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),_v=!0),z=om(z,K,Wt,Re),un=It,z}if(typeof X.then=="function")return It=Oo(X._debugInfo),z=Ul(z,K,Pu(X),Re),un=It,z;if(X.$$typeof===tr)return Ul(z,K,$e(z,X),Re);Id(z,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(It=""+X,K!==null&&K.tag===6?(l(z,K.sibling),Re=p(K,It),Re.return=z,z=Re):(l(z,K),Re=ap(It,z.mode,Re),Re.return=z,Re._debugOwner=z,Re._debugTask=z._debugTask,Re._debugInfo=un,z=Re),B(z)):(typeof X=="function"&&Bd(z,X),typeof X=="symbol"&&Cs(z,X),l(z,K))}return i(Ul,"reconcileChildFibersImpl"),function(z,K,X,Re){var It=un;un=null;try{wE=0;var Un=Ul(z,K,X,Re);return zp=null,Un}catch(So){if(So===Fp||So===zI)throw So;var Wt=S(29,So,null,z.mode);Wt.lanes=Re,Wt.return=z;var ln=Wt._debugInfo=un;if(Wt._debugOwner=z._debugOwner,Wt._debugTask=z._debugTask,ln!=null){for(var cn=ln.length-1;0<=cn;cn--)if(typeof ln[cn].stack=="string"){Wt._debugOwner=ln[cn],Wt._debugTask=ln[cn].debugTask;break}}return Wt}finally{un=It}}}i(Sd,"createChildReconciler");function fh(t,n){var l=Ar(t);return t=!l&&typeof ze(t)=="function",l||t?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,n,l),!1):!0}i(fh,"validateSuspenseListNestedChild");function Ju(){for(var t=Kp,n=Nv=Kp=0;n<t;){var l=Gs[n];Gs[n++]=null;var d=Gs[n];Gs[n++]=null;var p=Gs[n];Gs[n++]=null;var h=Gs[n];if(Gs[n++]=null,d!==null&&p!==null){var B=d.pending;B===null?p.next=p:(p.next=B.next,B.next=p),d.pending=p}h!==0&&Nr(l,p,h)}}i(Ju,"finishQueueingConcurrentUpdates");function vd(t,n,l,d){Gs[Kp++]=t,Gs[Kp++]=n,Gs[Kp++]=l,Gs[Kp++]=d,Nv|=d,t.lanes|=d,t=t.alternate,t!==null&&(t.lanes|=d)}i(vd,"enqueueUpdate$1");function Ag(t,n,l,d){return vd(t,n,l,d),Qd(t)}i(Ag,"enqueueConcurrentHookUpdate");function ii(t,n){return vd(t,null,null,n),Qd(t)}i(ii,"enqueueConcurrentRenderForLane");function Nr(t,n,l){t.lanes|=l;var d=t.alternate;d!==null&&(d.lanes|=l);for(var p=!1,h=t.return;h!==null;)h.childLanes|=l,d=h.alternate,d!==null&&(d.childLanes|=l),h.tag===22&&(t=h.stateNode,t===null||t._visibility&xE||(p=!0)),t=h,h=h.return;return t.tag===3?(h=t.stateNode,p&&n!==null&&(p=31-vr(l),t=h.hiddenUpdates,d=t[p],d===null?t[p]=[n]:d.push(n),n.lane=l|536870912),h):null}i(Nr,"markUpdateLaneFromFiberToRoot");function Qd(t){if(FE>k4)throw Tf=FE=0,zE=tQ=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Tf>U4&&(Tf=0,zE=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&tp(t);for(var n=t,l=n.return;l!==null;)n.alternate===null&&(n.flags&4098)!==0&&tp(t),n=l,l=n.return;return n.tag===3?n.stateNode:null}i(Qd,"getRootForUpdatedFiber");function dg(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}i(dg,"initializeUpdateQueue");function fg(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}i(fg,"cloneUpdateQueue");function pl(t){return{lane:t,tag:hx,payload:null,callback:null,next:null}}i(pl,"createUpdate");function ba(t,n,l){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,Ov===d&&!yx){var p=ae(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
130
|
+
|
|
131
|
+
Please update the following component: %s`,p),yx=!0}return(Dn&fi)!==di?(p=d.pending,p===null?n.next=n:(n.next=p.next,p.next=n),d.pending=n,n=Qd(t),Nr(t,null,l),n):(vd(t,d,n,l),Qd(t))}i(ba,"enqueueUpdate");function ju(t,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,Ce(t,l)}}i(ju,"entangleTransitions");function kc(t,n){var l=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var B={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?p=h=B:h=h.next=B,l=l.next}while(l!==null);h===null?p=h=n:h=h.next=n}else p=h=n;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:h,shared:d.shared,callbacks:d.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=n:t.next=n,l.lastBaseUpdate=n}i(kc,"enqueueCapturedUpdate");function Vu(){if(Hv){var t=Gp;if(t!==null)throw t}}i(Vu,"suspendIfUpdateReadFromEntangledAsyncAction");function bd(t,n,l,d){Hv=!1;var p=t.updateQueue;NA=!1,Ov=p.shared;var h=p.firstBaseUpdate,B=p.lastBaseUpdate,Q=p.shared.pending;if(Q!==null){p.shared.pending=null;var U=Q,q=U.next;U.next=null,B===null?h=q:B.next=q,B=U;var pe=t.alternate;pe!==null&&(pe=pe.updateQueue,Q=pe.lastBaseUpdate,Q!==B&&(Q===null?pe.firstBaseUpdate=q:Q.next=q,pe.lastBaseUpdate=U))}if(h!==null){var he=p.baseState;B=0,pe=q=U=null,Q=h;do{var xe=Q.lane&-536870913,Tt=xe!==Q.lane;if(Tt?(An&xe)===xe:(d&xe)===xe){xe!==0&&xe===If&&(Hv=!0),pe!==null&&(pe=pe.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});e:{xe=t;var $t=Q,lo=n,om=l;switch($t.tag){case Ex:if($t=$t.payload,typeof $t=="function"){Hp=!0;var Ul=$t.call(om,he,lo);if(xe.mode&8){De(!0);try{$t.call(om,he,lo)}finally{De(!1)}}Hp=!1,he=Ul;break e}he=$t;break e;case Mv:xe.flags=xe.flags&-65537|128;case hx:if(Ul=$t.payload,typeof Ul=="function"){if(Hp=!0,$t=Ul.call(om,he,lo),xe.mode&8){De(!0);try{Ul.call(om,he,lo)}finally{De(!1)}}Hp=!1}else $t=Ul;if($t==null)break e;he=Vn({},he,$t);break e;case Cx:NA=!0}}xe=Q.callback,xe!==null&&(t.flags|=64,Tt&&(t.flags|=8192),Tt=p.callbacks,Tt===null?p.callbacks=[xe]:Tt.push(xe))}else Tt={lane:xe,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},pe===null?(q=pe=Tt,U=he):pe=pe.next=Tt,B|=xe;if(Q=Q.next,Q===null){if(Q=p.shared.pending,Q===null)break;Tt=Q,Q=Tt.next,Tt.next=null,p.lastBaseUpdate=Tt,p.shared.pending=null}}while(!0);pe===null&&(U=he),p.baseState=U,p.firstBaseUpdate=q,p.lastBaseUpdate=pe,h===null&&(p.shared.lanes=0),HA|=B,t.lanes=B,t.memoizedState=he}Ov=null}i(bd,"processUpdateQueue");function Rd(t,n){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(n)}i(Rd,"callCallback");function gh(t,n){var l=t.shared.hiddenCallbacks;if(l!==null)for(t.shared.hiddenCallbacks=null,t=0;t<l.length;t++)Rd(l[t],n)}i(gh,"commitHiddenCallbacks");function ph(t,n){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Rd(l[t],n)}i(ph,"commitCallbacks");function mh(t,n){var l=yc;ee(YI,l,t),ee(Yp,n,t),yc=l|n.baseLanes}i(mh,"pushHiddenContext");function gg(t){ee(YI,yc,t),ee(Yp,Yp.current,t)}i(gg,"reuseHiddenContextOnStack");function wd(t){yc=YI.current,ne(Yp,t),ne(YI,t)}i(wd,"popHiddenContext");function ys(t){var n=t.alternate;ee(Qr,Qr.current&qp,t),ee(cs,t,t),Fs===null&&(n===null||Yp.current!==null||n.memoizedState!==null)&&(Fs=t)}i(ys,"pushPrimaryTreeSuspenseHandler");function pg(t){ee(Qr,Qr.current,t),ee(cs,t,t),Fs===null&&(Fs=t)}i(pg,"pushDehydratedActivitySuspenseHandler");function mg(t){t.tag===22?(ee(Qr,Qr.current,t),ee(cs,t,t),Fs===null&&(Fs=t)):Za(t)}i(mg,"pushOffscreenSuspenseHandler");function Za(t){ee(Qr,Qr.current,t),ee(cs,cs.current,t)}i(Za,"reuseSuspenseHandlerOnStack");function Si(t){ne(cs,t),Fs===t&&(Fs=null),ne(Qr,t)}i(Si,"popSuspenseHandler");function xd(t){for(var n=t;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||uf(l)||Ip(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}i(xd,"findFirstSuspended");function an(){var t=de;Ks===null?Ks=[t]:Ks.push(t)}i(an,"mountHookTypesDev");function Ye(){var t=de;if(Ks!==null&&(mu++,Ks[mu]!==t)){var n=ae(Zt);if(!Ix.has(n)&&(Ix.add(n),Ks!==null)){for(var l="",d=0;d<=mu;d++){var p=Ks[d],h=d===mu?t:p;for(p=d+1+". "+p;30>p.length;)p+=" ";p+=h+`
|
|
132
|
+
`,l+=p}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
133
|
+
|
|
134
|
+
Previous render Next render
|
|
135
|
+
------------------------------------------------------
|
|
136
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
137
|
+
`,n,l)}}}i(Ye,"updateHookTypesDev");function Ui(t){t==null||Ar(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",de,typeof t)}i(Ui,"checkDepsAreArrayDev");function Xu(){var t=ae(Zt);Sx.has(t)||(Sx.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}i(Xu,"warnOnUseFormStateInDev");function Ho(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
138
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
139
|
+
2. You might be breaking the Rules of Hooks
|
|
140
|
+
3. You might have more than one copy of React in the same app
|
|
141
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}i(Ho,"throwInvalidHookError");function hg(t,n){if(_E)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",de),!1;t.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
142
|
+
|
|
143
|
+
Previous: %s
|
|
144
|
+
Incoming: %s`,de,"["+n.join(", ")+"]","["+t.join(", ")+"]");for(var l=0;l<n.length&&l<t.length;l++)if(!ga(t[l],n[l]))return!1;return!0}i(hg,"areHookInputsEqual");function la(t,n,l,d,p,h){gu=h,Zt=n,Ks=t!==null?t._debugHookTypes:null,mu=-1,_E=t!==null&&t.type!==n.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(h=ae(Zt),kv.has(h)||(kv.add(h),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",h===null?"An unknown Component":"<"+h+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ae.H=t!==null&&t.memoizedState!==null?Lv:Ks!==null?vx:Uv,bf=h=(n.mode&8)!==jt;var B=xv(l,d,p);if(bf=!1,Jp&&(B=Eg(n,l,d,p)),h){De(!0);try{B=Eg(n,l,d,p)}finally{De(!1)}}return Dd(t,n),B}i(la,"renderWithHooks");function Dd(t,n){n._debugHookTypes=Ks,n.dependencies===null?pu!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:pu}):n.dependencies._debugThenableState=pu,Ae.H=NE;var l=Ao!==null&&Ao.next!==null;if(gu=0,Ks=de=Hr=Ao=Zt=null,mu=-1,t!==null&&(t.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),PI=!1,TE=0,pu=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||kr||(t=t.dependencies,t!==null&&Be(t)&&(kr=!0)),RE?(RE=!1,t=!0):t=!1,t&&(n=ae(n)||"Unknown",Bx.has(n)||kv.has(n)||(Bx.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}i(Dd,"finishRenderingHooks");function Eg(t,n,l,d){Zt=t;var p=0;do{if(Jp&&(pu=null),TE=0,Jp=!1,p>=M4)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,_E=!1,Hr=Ao=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}mu=-1,Ae.H=Qx,h=xv(n,l,d)}while(Jp);return h}i(Eg,"renderWithHooksAgain");function hh(){var t=Ae.H,n=t.useState()[0];return n=typeof n.then=="function"?ml(n):n,t=t.useState()[0],(Ao!==null?Ao.memoizedState:null)!==t&&(Zt.flags|=1024),n}i(hh,"TransitionAwareHostComponent");function Cg(){var t=JI!==0;return JI=0,t}i(Cg,"checkDidRenderIdHook");function yg(t,n,l){n.updateQueue=t.updateQueue,n.flags=(n.mode&16)!==jt?n.flags&-402655237:n.flags&-2053,t.lanes&=~l}i(yg,"bailoutHooks");function Td(t){if(PI){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}PI=!1}gu=0,Ks=Hr=Ao=Zt=null,mu=-1,de=null,Jp=!1,TE=JI=0,pu=null}i(Td,"resetHooksOnUnwind");function Jr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hr===null?Zt.memoizedState=Hr=t:Hr=Hr.next=t,Hr}i(Jr,"mountWorkInProgressHook");function jn(){if(Ao===null){var t=Zt.alternate;t=t!==null?t.memoizedState:null}else t=Ao.next;var n=Hr===null?Zt.memoizedState:Hr.next;if(n!==null)Hr=n,Ao=t;else{if(t===null)throw Zt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ao=t,t={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},Hr===null?Zt.memoizedState=Hr=t:Hr=Hr.next=t}return Hr}i(jn,"updateWorkInProgressHook");function Uc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}i(Uc,"createFunctionComponentUpdateQueue");function ml(t){var n=TE;return TE+=1,pu===null&&(pu=ho()),t=Kt(pu,t,n),n=Zt,(Hr===null?n.memoizedState:Hr.next)===null&&(n=n.alternate,Ae.H=n!==null&&n.memoizedState!==null?Lv:Uv),t}i(ml,"useThenable");function zn(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ml(t);if(t.$$typeof===tr)return ve(t)}throw Error("An unsupported type was passed to use(): "+String(t))}i(zn,"use");function Lc(t){var n=null,l=Zt.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var d=Zt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Uc(),Zt.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0||_E)for(l=n.data[n.index]=Array(t),d=0;d<t;d++)l[d]=vI;else l.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,t);return n.index++,l}i(Lc,"useMemoCache");function Wa(t,n){return typeof n=="function"?n(t):n}i(Wa,"basicStateReducer");function Ig(t,n,l){var d=Jr();if(l!==void 0){var p=l(n);if(bf){De(!0);try{l(n)}finally{De(!1)}}}else p=n;return d.memoizedState=d.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},d.queue=t,t=t.dispatch=xy.bind(null,Zt,t),[d.memoizedState,t]}i(Ig,"mountReducer");function Is(t){var n=jn();return Bs(n,Ao,t)}i(Is,"updateReducer");function Bs(t,n,l){var d=t.queue;if(d===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");d.lastRenderedReducer=l;var p=t.baseQueue,h=d.pending;if(h!==null){if(p!==null){var B=p.next;p.next=h.next,h.next=B}n.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=p=h,d.pending=null}if(h=t.baseState,p===null)t.memoizedState=h;else{n=p.next;var Q=B=null,U=null,q=n,pe=!1;do{var he=q.lane&-536870913;if(he!==q.lane?(An&he)===he:(gu&he)===he){var xe=q.revertLane;if(xe===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),he===If&&(pe=!0);else if((gu&xe)===xe){q=q.next,xe===If&&(pe=!0);continue}else he={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(Q=U=he,B=h):U=U.next=he,Zt.lanes|=xe,HA|=xe;he=q.action,bf&&l(h,he),h=q.hasEagerState?q.eagerState:l(h,he)}else xe={lane:he,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(Q=U=xe,B=h):U=U.next=xe,Zt.lanes|=he,HA|=he;q=q.next}while(q!==null&&q!==n);if(U===null?B=h:U.next=Q,!ga(h,t.memoizedState)&&(kr=!0,pe&&(l=Gp,l!==null)))throw l;t.memoizedState=h,t.baseState=B,t.baseQueue=U,d.lastRenderedState=h}return p===null&&(d.lanes=0),[t.memoizedState,d.dispatch]}i(Bs,"updateReducerImpl");function Zu(t){var n=jn(),l=n.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=t;var d=l.dispatch,p=l.pending,h=n.memoizedState;if(p!==null){l.pending=null;var B=p=p.next;do h=t(h,B.action),B=B.next;while(B!==p);ga(h,n.memoizedState)||(kr=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),l.lastRenderedState=h}return[h,d]}i(Zu,"rerenderReducer");function Bg(t,n,l){var d=Zt,p=Jr();if(xn){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var h=l();Pp||h===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Pp=!0)}else{if(h=n(),Pp||(l=n(),ga(h,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pp=!0)),fo===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(An&127)!==0||$a(d,n,h)}return p.memoizedState=h,l={value:h,getSnapshot:n},p.queue=l,Li(Sg.bind(null,d,l,t),[t]),d.flags|=2048,xa(zs|ha,{destroy:void 0},Eh.bind(null,d,l,h,n),null),h}i(Bg,"mountSyncExternalStore");function Vl(t,n,l){var d=Zt,p=jn(),h=xn;if(h){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=n(),!Pp){var B=n();ga(l,B)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Pp=!0)}(B=!ga((Ao||p).memoizedState,l))&&(p.memoizedState=l,kr=!0),p=p.queue;var Q=Sg.bind(null,d,p,t);if(si(2048,ha,Q,[t]),p.getSnapshot!==n||B||Hr!==null&&Hr.memoizedState.tag&zs){if(d.flags|=2048,xa(zs|ha,{destroy:void 0},Eh.bind(null,d,p,l,n),null),fo===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");h||(gu&127)!==0||$a(d,n,l)}return l}i(Vl,"updateSyncExternalStore");function $a(t,n,l){t.flags|=16384,t={getSnapshot:n,value:l},n=Zt.updateQueue,n===null?(n=Uc(),Zt.updateQueue=n,n.stores=[t]):(l=n.stores,l===null?n.stores=[t]:l.push(t))}i($a,"pushStoreConsistencyCheck");function Eh(t,n,l,d){n.value=l,n.getSnapshot=d,Ch(n)&&vg(t)}i(Eh,"updateStoreInstance");function Sg(t,n,l){return l(function(){Ch(n)&&(Nn(2,"updateSyncExternalStore()",t),vg(t))})}i(Sg,"subscribeToStore");function Ch(t){var n=t.getSnapshot;t=t.value;try{var l=n();return!ga(t,l)}catch{return!0}}i(Ch,"checkIfSnapshotChanged");function vg(t){var n=ii(t,2);n!==null&&Eo(n,t,2)}i(vg,"forceStoreRerender");function _d(t){var n=Jr();if(typeof t=="function"){var l=t;if(t=l(),bf){De(!0);try{l()}finally{De(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:t},n}i(_d,"mountStateImpl");function Wu(t){t=_d(t);var n=t.queue,l=bh.bind(null,Zt,n);return n.dispatch=l,[t.memoizedState,l]}i(Wu,"mountState");function Qg(t){var n=Jr();n.memoizedState=n.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=tA.bind(null,Zt,!0,l),l.dispatch=n,[t,n]}i(Qg,"mountOptimistic");function yh(t,n){var l=jn();return By(l,Ao,t,n)}i(yh,"updateOptimistic");function By(t,n,l,d){return t.baseState=l,Bs(t,Ao,typeof d=="function"?d:Wa)}i(By,"updateOptimisticImpl");function Ih(t,n){var l=jn();return Ao!==null?By(l,Ao,t,n):(l.baseState=t,[t,l.queue.dispatch])}i(Ih,"rerenderOptimistic");function Sy(t,n,l,d,p){if(nA(t))throw Error("Cannot update form state while rendering.");if(t=n.action,t!==null){var h={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:i(function(B){h.listeners.push(B)},"then")};Ae.T!==null?l(!0):h.isTransition=!1,d(h),l=n.pending,l===null?(h.next=n.pending=h,Ra(n,h)):(h.next=l.next,n.pending=l.next=h)}}i(Sy,"dispatchActionState");function Ra(t,n){var l=n.action,d=n.payload,p=t.state;if(n.isTransition){var h=Ae.T,B={};B._updatedFibers=new Set,Ae.T=B;try{var Q=l(p,d),U=Ae.S;U!==null&&U(B,Q),bg(t,n,Q)}catch(q){Rg(t,n,q)}finally{h!==null&&B.types!==null&&(h.types!==null&&h.types!==B.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),h.types=B.types),Ae.T=h,h===null&&B._updatedFibers&&(t=B._updatedFibers.size,B._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{B=l(p,d),bg(t,n,B)}catch(q){Rg(t,n,q)}}i(Ra,"runActionStateAction");function bg(t,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ae.asyncTransitions++,l.then(kd,kd),l.then(function(d){Bh(t,n,d)},function(d){return Rg(t,n,d)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Bh(t,n,l)}i(bg,"handleActionReturnValue");function Bh(t,n,l){n.status="fulfilled",n.value=l,vy(n),t.state=l,n=t.pending,n!==null&&(l=n.next,l===n?t.pending=null:(l=l.next,n.next=l,Ra(t,l)))}i(Bh,"onActionSuccess");function Rg(t,n,l){var d=t.pending;if(t.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=l,vy(n),n=n.next;while(n!==d)}t.action=null}i(Rg,"onActionError");function vy(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}i(vy,"notifyActionListeners");function Nd(t,n){return n}i(Nd,"actionStateReducer");function $o(t,n){if(xn){var l=fo.formState;if(l!==null){e:{var d=Zt;if(xn){if(Uo){var p=qi(Uo,Us);if(p){Uo=cc(p),d=ss(p);break e}}ni(d)}d=!1}d&&(n=l[0])}}l=Jr(),l.memoizedState=l.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:n},l.queue=d,l=bh.bind(null,Zt,d),d.dispatch=l,d=_d(!1);var h=tA.bind(null,Zt,!1,d.queue);return d=Jr(),p={state:n,dispatch:null,action:t,pending:null},d.queue=p,l=Sy.bind(null,Zt,p,h,l),p.dispatch=l,d.memoizedState=t,[n,l,!1]}i($o,"mountActionState");function Md(t){var n=jn();return ai(n,Ao,t)}i(Md,"updateActionState");function ai(t,n,l){if(n=Bs(t,n,Nd)[0],t=Is(Wa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var d=ml(n)}catch(B){throw B===Fp?zI:B}else d=n;n=jn();var p=n.queue,h=p.dispatch;return l!==n.memoizedState&&(Zt.flags|=2048,xa(zs|ha,{destroy:void 0},Qy.bind(null,p,l),null)),[d,h,t]}i(ai,"updateActionStateImpl");function Qy(t,n){t.action=n}i(Qy,"actionStateActionEffect");function wa(t){var n=jn(),l=Ao;if(l!==null)return ai(n,l,t);jn(),n=n.memoizedState,l=jn();var d=l.queue.dispatch;return l.memoizedState=t,[n,d,!1]}i(wa,"rerenderActionState");function xa(t,n,l,d){return t={tag:t,create:l,deps:d,inst:n,next:null},n=Zt.updateQueue,n===null&&(n=Uc(),Zt.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=t.next=t:(d=l.next,l.next=t,t.next=d,n.lastEffect=t),t}i(xa,"pushSimpleEffect");function es(t){var n=Jr();return t={current:t},n.memoizedState=t}i(es,"mountRef");function hl(t,n,l,d){var p=Jr();Zt.flags|=t,p.memoizedState=xa(zs|n,{destroy:void 0},l,d===void 0?null:d)}i(hl,"mountEffectImpl");function si(t,n,l,d){var p=jn();d=d===void 0?null:d;var h=p.memoizedState.inst;Ao!==null&&d!==null&&hg(d,Ao.memoizedState.deps)?p.memoizedState=xa(n,h,l,d):(Zt.flags|=t,p.memoizedState=xa(zs|n,h,l,d))}i(si,"updateEffectImpl");function Li(t,n){(Zt.mode&16)!==jt?hl(276826112,ha,t,n):hl(8390656,ha,t,n)}i(Li,"mountEffect");function by(t){Zt.flags|=4;var n=Zt.updateQueue;if(n===null)n=Uc(),Zt.updateQueue=n,n.events=[t];else{var l=n.events;l===null?n.events=[t]:l.push(t)}}i(by,"useEffectEventImpl");function Xl(t){var n=Jr(),l={impl:t};return n.memoizedState=l,function(){if((Dn&fi)!==di)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}i(Xl,"mountEvent");function Zl(t){var n=jn().memoizedState;return by({ref:n,nextImpl:t}),function(){if((Dn&fi)!==di)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}i(Zl,"updateEvent");function El(t,n){var l=4194308;return(Zt.mode&16)!==jt&&(l|=134217728),hl(l,us,t,n)}i(El,"mountLayoutEffect");function Sh(t,n){if(typeof n=="function"){t=t();var l=n(t);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),t=t(),n.current=t,function(){n.current=null}}i(Sh,"imperativeHandleEffect");function wg(t,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([t]):null;var d=4194308;(Zt.mode&16)!==jt&&(d|=134217728),hl(d,us,Sh.bind(null,n,t),l)}i(wg,"mountImperativeHandle");function Wl(t,n,l){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),l=l!=null?l.concat([t]):null,si(4,us,Sh.bind(null,n,t),l)}i(Wl,"updateImperativeHandle");function xg(t,n){return Jr().memoizedState=[t,n===void 0?null:n],t}i(xg,"mountCallback");function Gc(t,n){var l=jn();n=n===void 0?null:n;var d=l.memoizedState;return n!==null&&hg(n,d[1])?d[0]:(l.memoizedState=[t,n],t)}i(Gc,"updateCallback");function Dg(t,n){var l=Jr();n=n===void 0?null:n;var d=t();if(bf){De(!0);try{t()}finally{De(!1)}}return l.memoizedState=[d,n],d}i(Dg,"mountMemo");function $u(t,n){var l=jn();n=n===void 0?null:n;var d=l.memoizedState;if(n!==null&&hg(n,d[1]))return d[0];if(d=t(),bf){De(!0);try{t()}finally{De(!1)}}return l.memoizedState=[d,n],d}i($u,"updateMemo");function Od(t,n){var l=Jr();return Hd(l,t,n)}i(Od,"mountDeferredValue");function Tg(t,n){var l=jn();return Gi(l,Ao.memoizedState,t,n)}i(Tg,"updateDeferredValue");function vh(t,n){var l=jn();return Ao===null?Hd(l,t,n):Gi(l,Ao.memoizedState,t,n)}i(vh,"rerenderDeferredValue");function Hd(t,n,l){return l===void 0||(gu&1073741824)!==0&&(An&261930)===0?t.memoizedState=n:(t.memoizedState=l,t=$y(),Zt.lanes|=t,HA|=t,l)}i(Hd,"mountDeferredValueImpl");function Gi(t,n,l,d){return ga(l,n)?l:Yp.current!==null?(t=Hd(t,l,d),ga(t,n)||(kr=!0),t):(gu&42)===0||(gu&1073741824)!==0&&(An&261930)===0?(kr=!0,t.memoizedState=l):(t=$y(),Zt.lanes|=t,HA|=t,n)}i(Gi,"updateDeferredValueImpl");function kd(){Ae.asyncTransitions--}i(kd,"releaseAsyncTransition");function vi(t,n,l,d,p){var h=Yi();nr(h!==0&&8>h?h:8);var B=Ae.T,Q={};Q._updatedFibers=new Set,Ae.T=Q,tA(t,!1,n,l);try{var U=p(),q=Ae.S;if(q!==null&&q(Q,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){Ae.asyncTransitions++,U.then(kd,kd);var pe=vt(U,d);eA(t,n,pe,ua(t))}else eA(t,n,d,ua(t))}catch(he){eA(t,n,{then:i(function(){},"then"),status:"rejected",reason:he},ua(t))}finally{nr(h),B!==null&&Q.types!==null&&(B.types!==null&&B.types!==Q.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=Q.types),Ae.T=B,B===null&&Q._updatedFibers&&(t=Q._updatedFibers.size,Q._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}i(vi,"startTransition");function Qh(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:Oa,baseState:Oa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:Oa},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:l},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}i(Qh,"ensureFormComponentIsStateful");function _g(){var t=_d(!1);return t=vi.bind(null,Zt,t.queue,!0,!1),Jr().memoizedState=t,[!1,t]}i(_g,"mountTransition");function Ry(){var t=Is(Wa)[0],n=jn().memoizedState;return[typeof t=="boolean"?t:ml(t),n]}i(Ry,"updateTransition");function Cl(){var t=Zu(Wa)[0],n=jn().memoizedState;return[typeof t=="boolean"?t:ml(t),n]}i(Cl,"rerenderTransition");function $l(){return ve(Ha)}i($l,"useHostTransitionStatus");function Ud(){var t=Jr(),n=fo.identifierPrefix;if(xn){var l=su,d=au;l=(d&~(1<<32-vr(d)-1)).toString(32)+l,n="_"+n+"R_"+l,l=JI++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=N4++,n="_"+n+"r_"+l.toString(32)+"_";return t.memoizedState=n}i(Ud,"mountId");function ec(){return Jr().memoizedState=wy.bind(null,Zt)}i(ec,"mountRefresh");function wy(t,n){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var d=ua(l),p=pl(d),h=ba(l,p,d);h!==null&&(Nn(d,"refresh()",t),Eo(h,l,d),ju(h,l,d)),t=At(),n!=null&&h!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:t};return}l=l.return}}i(wy,"refreshCache");function xy(t,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ua(t);var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};nA(t)?Dy(n,p):(p=Ag(t,n,p,d),p!==null&&(Nn(d,"dispatch()",t),Eo(p,t,d),Ty(p,n,d)))}i(xy,"dispatchReducerAction");function bh(t,n,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ua(t),eA(t,n,l,d)&&Nn(d,"setState()",t)}i(bh,"dispatchSetState");function eA(t,n,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(nA(t))Dy(n,p);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null)){var B=Ae.H;Ae.H=Ml;try{var Q=n.lastRenderedState,U=h(Q,l);if(p.hasEagerState=!0,p.eagerState=U,ga(U,Q))return vd(t,n,p,0),fo===null&&Ju(),!1}catch{}finally{Ae.H=B}}if(l=Ag(t,n,p,d),l!==null)return Eo(l,t,d),Ty(l,n,d),!0}return!1}i(eA,"dispatchSetStateInternal");function tA(t,n,l,d){if(Ae.T===null&&If===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),d={lane:2,revertLane:_e(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},nA(t)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=Ag(t,l,d,2),n!==null&&(Nn(2,"setOptimistic()",t),Eo(n,t,2))}i(tA,"dispatchOptimisticSetState");function nA(t){var n=t.alternate;return t===Zt||n!==null&&n===Zt}i(nA,"isRenderPhaseUpdate");function Dy(t,n){Jp=PI=!0;var l=t.pending;l===null?n.next=n:(n.next=l.next,l.next=n),t.pending=n}i(Dy,"enqueueRenderPhaseUpdate");function Ty(t,n,l){if((l&4194048)!==0){var d=n.lanes;d&=t.pendingLanes,l|=d,n.lanes=l,Ce(t,l)}}i(Ty,"entangleTransitionUpdate");function Rh(t){if(t!==null&&typeof t!="function"){var n=String(t);Hx.has(n)||(Hx.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}i(Rh,"warnOnInvalidCallback");function Ng(t,n,l,d){var p=t.memoizedState,h=l(d,p);if(t.mode&8){De(!0);try{h=l(d,p)}finally{De(!1)}}h===void 0&&(n=ce(n)||"Component",_x.has(n)||(_x.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),p=h==null?p:Vn({},p,h),t.memoizedState=p,t.lanes===0&&(t.updateQueue.baseState=p)}i(Ng,"applyDerivedStateFromProps");function wh(t,n,l,d,p,h,B){var Q=t.stateNode;if(typeof Q.shouldComponentUpdate=="function"){if(l=Q.shouldComponentUpdate(d,h,B),t.mode&8){De(!0);try{l=Q.shouldComponentUpdate(d,h,B)}finally{De(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ce(n)||"Component"),l}return n.prototype&&n.prototype.isPureReactComponent?!gl(l,d)||!gl(p,h):!0}i(wh,"checkShouldComponentUpdate");function Fc(t,n,l,d){var p=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,d),n.state!==p&&(t=ae(t)||"Component",Rx.has(t)||(Rx.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Gv.enqueueReplaceState(n,n.state,null))}i(Fc,"callComponentWillReceiveProps");function Ss(t,n){var l=n;if("ref"in n){l={};for(var d in n)d!=="ref"&&(l[d]=n[d])}if(t=t.defaultProps){l===n&&(l=Vn({},l));for(var p in t)l[p]===void 0&&(l[p]=t[p])}return l}i(Ss,"resolveClassComponentProps");function Ld(t,n){try{jp=n.source?ae(n.source):null,Fv=null;var l=n.value;if(Ae.actQueue!==null)Ae.thrownErrors.push(l);else{var d=t.onUncaughtError;d(l,{componentStack:n.stack})}}catch(p){setTimeout(function(){throw p})}}i(Ld,"logUncaughtError");function xh(t,n,l){try{jp=l.source?ae(l.source):null,Fv=ae(n);var d=t.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}i(xh,"logCaughtError");function Mg(t,n,l){return l=pl(l),l.tag=Mv,l.payload={element:null},l.callback=function(){ft(n.source,Ld,t,n)},l}i(Mg,"createRootErrorUpdate");function Og(t){return t=pl(t),t.tag=Mv,t}i(Og,"createClassErrorUpdate");function Hg(t,n,l,d){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var h=d.value;t.payload=function(){return p(h)},t.callback=function(){CI(l),ft(d.source,xh,n,l,d)}}var B=l.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(t.callback=function(){CI(l),ft(d.source,xh,n,l,d),typeof p!="function"&&(UA===null?UA=new Set([this]):UA.add(this)),x4(this,d),typeof p=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ae(l)||"Unknown")})}i(Hg,"initializeClassErrorUpdate");function _y(t,n,l,d,p){if(l.flags|=32768,pc&&lA(t,p),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=l.alternate,n!==null&&J(n,l,p,!0),xn&&(hc=!0),l=cs.current,l!==null){switch(l.tag){case 31:case 13:return Fs===null?$g():l.alternate===null&&Go===Eu&&(Go=nB),l.flags&=-257,l.flags|=65536,l.lanes=p,d===KI?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([d]):n.add(d),Wh(t,d,p)),!1;case 22:return l.flags|=65536,d===KI?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([d]):l.add(d)),Wh(t,d,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return Wh(t,d,p),$g(),!1}if(xn)return hc=!0,n=cs.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,d!==Ev&&Ir(Jn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:d}),l))):(d!==Ev&&Ir(Jn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:d}),l)),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,d=Jn(d,l),p=Mg(t.stateNode,d,p),kc(t,p),Go!==MA&&(Go=Rf)),!1;var h=Jn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:d}),l);if(UE===null?UE=[h]:UE.push(h),Go!==MA&&(Go=Rf),n===null)return!0;d=Jn(d,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,t=p&-p,l.lanes|=t,t=Mg(l.stateNode,d,t),kc(l,t),!1;case 1:if(n=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(UA===null||!UA.has(h))))return l.flags|=65536,p&=-p,l.lanes|=p,p=Og(p),Hg(p,t,l,d),kc(l,p),!1}l=l.return}while(l!==null);return!1}i(_y,"throwException");function er(t,n,l,d){n.child=t===null?mx(n,null,l,d):Qf(n,t.child,l,d)}i(er,"reconcileChildren");function Dh(t,n,l,d,p){l=l.render;var h=n.ref;if("ref"in d){var B={};for(var Q in d)Q!=="ref"&&(B[Q]=d[Q])}else B=d;return Oe(n),d=la(t,n,l,B,h,p),Q=Cg(),t!==null&&!kr?(yg(t,n,p),ts(t,n,p)):(xn&&Q&&Ge(n),n.flags|=1,er(t,n,d,p),n.child)}i(Dh,"updateForwardRef");function Th(t,n,l,d,p){if(t===null){var h=l.type;return typeof h=="function"&&!op(h)&&h.defaultProps===void 0&&l.compare===null?(l=jc(h),n.tag=15,n.type=l,yl(n,h),Hn(t,n,l,d,p)):(t=rp(l.type,null,d,n,n.mode,p),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,!gn(t,p)){var B=h.memoizedProps;if(l=l.compare,l=l!==null?l:gl,l(B,d)&&t.ref===n.ref)return ts(t,n,p)}return n.flags|=1,t=vl(h,d),t.ref=n.ref,t.return=n,n.child=t}i(Th,"updateMemoComponent");function Hn(t,n,l,d,p){if(t!==null){var h=t.memoizedProps;if(gl(h,d)&&t.ref===n.ref&&n.type===t.type)if(kr=!1,n.pendingProps=d=h,gn(t,p))(t.flags&131072)!==0&&(kr=!0);else return n.lanes=t.lanes,ts(t,n,p)}return Fd(t,n,l,d,p)}i(Hn,"updateSimpleMemoComponent");function kg(t,n,l,d){var p=d.children,h=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:xE,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,t!==null){for(d=n.child=t.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~h}else d=0,n.child=null;return _h(t,n,h,l,d)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&fn(n,h!==null?h.cachePool:null),h!==null?mh(n,h):gg(n),mg(n);else return d=n.lanes=536870912,_h(t,n,h!==null?h.baseLanes|l:l,l,d)}else h!==null?(fn(n,h.cachePool),mh(n,h),Za(n),n.memoizedState=null):(t!==null&&fn(n,null),gg(n),Za(n));return er(t,n,p,l),n.child}i(kg,"updateOffscreenComponent");function Gd(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:xE,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}i(Gd,"bailoutOffscreenComponent");function _h(t,n,l,d,p){var h=dt();return h=h===null?null:{parent:wi?ir._currentValue:ir._currentValue2,pool:h},n.memoizedState={baseLanes:l,cachePool:h},t!==null&&fn(n,null),gg(n),mg(n),t!==null&&J(t,n,d,!0),n.childLanes=p,null}i(_h,"deferHiddenOffscreenComponent");function Ug(t,n){var l=n.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
145
|
+
- <Activity %s>
|
|
146
|
+
+ <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),n=Yd({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}i(Ug,"mountActivityChildren");function Ny(t,n,l){return Qf(n,t.child,null,l),t=Ug(n,n.pendingProps),t.flags|=2,Si(n),n.memoizedState=null,t}i(Ny,"retryActivityComponentWithoutHydrating");function jS(t,n,l){var d=n.pendingProps,p=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(xn){if(d.mode==="hidden")return t=Ug(n,d),n.lanes=536870912,Gd(null,t);if(pg(n),(t=Uo)?(l=Bn(t,Us),l!==null&&(d={dehydrated:l,treeContext:nt(),retryLane:536870912,hydrationErrors:null},n.memoizedState=d,d=Vc(l),d.return=n,n.child=d,xi=n,Uo=null)):l=null,l===null)throw ra(n,t),ni(n);return n.lanes=536870912,null}return Ug(n,d)}var h=t.memoizedState;if(h!==null){var B=h.dehydrated;if(pg(n),p)if(n.flags&256)n.flags&=-257,n=Ny(t,n,l);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(ao(),(l&536870912)!==0&&Wg(n),kr||J(t,n,l,!1),p=(l&t.childLanes)!==0,kr||p){if(d=fo,d!==null&&(B=Ve(d,l),B!==0&&B!==h.retryLane))throw h.retryLane=B,ii(t,B),Eo(d,t,B),zv;$g(),n=Ny(t,n,l)}else t=h.treeContext,ui&&(Uo=vp(B),xi=n,xn=!0,wA=null,hc=!1,ls=null,Us=!1,t!==null&&dn(n,t)),n=Ug(n,d),n.flags|=4096;return n}return h=t.child,d={mode:d.mode,children:d.children},(l&536870912)!==0&&(l&t.lanes)!==0&&Wg(n),t=vl(h,d),t.ref=n.ref,n.child=t,t.return=n,t}i(jS,"updateActivityComponent");function Lg(t,n){var l=n.ref;if(l===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==l)&&(n.flags|=4194816)}}i(Lg,"markRef");function Fd(t,n,l,d,p){if(l.prototype&&typeof l.prototype.render=="function"){var h=ce(l)||"Unknown";kx[h]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",h,h),kx[h]=!0)}return n.mode&8&&Nl.recordLegacyContextWarning(n,null),t===null&&(yl(n,n.type),l.contextTypes&&(h=ce(l)||"Unknown",Lx[h]||(Lx[h]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",h)))),Oe(n),l=la(t,n,l,d,void 0,p),d=Cg(),t!==null&&!kr?(yg(t,n,p),ts(t,n,p)):(xn&&d&&Ge(n),n.flags|=1,er(t,n,l,p),n.child)}i(Fd,"updateFunctionComponent");function vs(t,n,l,d,p,h){return Oe(n),mu=-1,_E=t!==null&&t.type!==n.type,n.updateQueue=null,l=Eg(n,d,l,p),Dd(t,n),d=Cg(),t!==null&&!kr?(yg(t,n,h),ts(t,n,h)):(xn&&d&&Ge(n),n.flags|=1,er(t,n,l,h),n.child)}i(vs,"replayFunctionComponent");function Nh(t,n,l,d,p){switch(E(n)){case!1:var h=n.stateNode,B=new n.type(n.memoizedProps,h.context).state;h.updater.enqueueSetState(h,B,null);break;case!0:n.flags|=128,n.flags|=65536,h=Error("Simulated error coming from DevTools");var Q=p&-p;if(n.lanes|=Q,B=fo,B===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Q=Og(Q),Hg(Q,B,n,Jn(h,n)),kc(n,Q)}if(Oe(n),n.stateNode===null){if(B=Io,h=l.contextType,"contextType"in l&&h!==null&&(h===void 0||h.$$typeof!==tr)&&!Ox.has(l)&&(Ox.add(l),Q=h===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof h!="object"?" However, it is set to a "+typeof h+".":h.$$typeof===Zc?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(h).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ce(l)||"Component",Q)),typeof h=="object"&&h!==null&&(B=ve(h)),h=new l(d,B),n.mode&8){De(!0);try{h=new l(d,B)}finally{De(!1)}}if(B=n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Gv,n.stateNode=h,h._reactInternals=n,h._reactInternalInstance=bx,typeof l.getDerivedStateFromProps=="function"&&B===null&&(B=ce(l)||"Component",wx.has(B)||(wx.add(B),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",B,h.state===null?"null":"undefined",B))),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"){var U=Q=B=null;if(typeof h.componentWillMount=="function"&&h.componentWillMount.__suppressDeprecationWarning!==!0?B="componentWillMount":typeof h.UNSAFE_componentWillMount=="function"&&(B="UNSAFE_componentWillMount"),typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Q="componentWillReceiveProps":typeof h.UNSAFE_componentWillReceiveProps=="function"&&(Q="UNSAFE_componentWillReceiveProps"),typeof h.componentWillUpdate=="function"&&h.componentWillUpdate.__suppressDeprecationWarning!==!0?U="componentWillUpdate":typeof h.UNSAFE_componentWillUpdate=="function"&&(U="UNSAFE_componentWillUpdate"),B!==null||Q!==null||U!==null){h=ce(l)||"Component";var q=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Dx.has(h)||(Dx.add(h),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
147
|
+
|
|
148
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
149
|
+
|
|
150
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
151
|
+
https://react.dev/link/unsafe-component-lifecycles`,h,q,B!==null?`
|
|
152
|
+
`+B:"",Q!==null?`
|
|
153
|
+
`+Q:"",U!==null?`
|
|
154
|
+
`+U:""))}}h=n.stateNode,B=ce(l)||"Component",h.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",B):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",B)),!h.getInitialState||h.getInitialState.isReactClassApproved||h.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",B),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",B),h.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",B),l.childContextTypes&&!Mx.has(l)&&(Mx.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",B)),l.contextTypes&&!Nx.has(l)&&(Nx.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",B)),typeof h.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",B),l.prototype&&l.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ce(l)||"A pure component"),typeof h.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",B),typeof h.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",B),typeof h.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",B),typeof h.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",B),Q=h.props!==d,h.props!==void 0&&Q&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",B),h.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",B,B),typeof h.getSnapshotBeforeUpdate!="function"||typeof h.componentDidUpdate=="function"||xx.has(l)||(xx.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ce(l))),typeof h.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof h.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",B),(Q=h.state)&&(typeof Q!="object"||Ar(Q))&&console.error("%s.state: must be set to an object or null",B),typeof h.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",B),h=n.stateNode,h.props=d,h.state=n.memoizedState,h.refs={},dg(n),B=l.contextType,h.context=typeof B=="object"&&B!==null?ve(B):Io,h.state===d&&(B=ce(l)||"Component",Tx.has(B)||(Tx.add(B),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",B))),n.mode&8&&Nl.recordLegacyContextWarning(n,h),Nl.recordUnsafeLifecycleWarnings(n,h),h.state=n.memoizedState,B=l.getDerivedStateFromProps,typeof B=="function"&&(Ng(n,l,B,d),h.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(B=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),B!==h.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ae(n)||"Component"),Gv.enqueueReplaceState(h,h.state,null)),bd(n,d,h,p),Vu(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==jt&&(n.flags|=134217728),h=!0}else if(t===null){h=n.stateNode;var pe=n.memoizedProps;Q=Ss(l,pe),h.props=Q;var he=h.context;U=l.contextType,B=Io,typeof U=="object"&&U!==null&&(B=ve(U)),q=l.getDerivedStateFromProps,U=typeof q=="function"||typeof h.getSnapshotBeforeUpdate=="function",pe=n.pendingProps!==pe,U||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(pe||he!==B)&&Fc(n,h,d,B),NA=!1;var xe=n.memoizedState;h.state=xe,bd(n,d,h,p),Vu(),he=n.memoizedState,pe||xe!==he||NA?(typeof q=="function"&&(Ng(n,l,q,d),he=n.memoizedState),(Q=NA||wh(n,l,Q,d,xe,he,B))?(U||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==jt&&(n.flags|=134217728)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==jt&&(n.flags|=134217728),n.memoizedProps=d,n.memoizedState=he),h.props=d,h.state=he,h.context=B,h=Q):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&16)!==jt&&(n.flags|=134217728),h=!1)}else{h=n.stateNode,fg(t,n),B=n.memoizedProps,U=Ss(l,B),h.props=U,q=n.pendingProps,xe=h.context,he=l.contextType,Q=Io,typeof he=="object"&&he!==null&&(Q=ve(he)),pe=l.getDerivedStateFromProps,(he=typeof pe=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(B!==q||xe!==Q)&&Fc(n,h,d,Q),NA=!1,xe=n.memoizedState,h.state=xe,bd(n,d,h,p),Vu();var Tt=n.memoizedState;B!==q||xe!==Tt||NA||t!==null&&t.dependencies!==null&&Be(t.dependencies)?(typeof pe=="function"&&(Ng(n,l,pe,d),Tt=n.memoizedState),(U=NA||wh(n,l,U,d,xe,Tt,Q)||t!==null&&t.dependencies!==null&&Be(t.dependencies))?(he||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(d,Tt,Q),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(d,Tt,Q)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||B===t.memoizedProps&&xe===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===t.memoizedProps&&xe===t.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=Tt),h.props=d,h.state=Tt,h.context=Q,h=U):(typeof h.componentDidUpdate!="function"||B===t.memoizedProps&&xe===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||B===t.memoizedProps&&xe===t.memoizedState||(n.flags|=1024),h=!1)}if(Q=h,Lg(t,n),B=(n.flags&128)!==0,Q||B){if(Q=n.stateNode,Ft(n),B&&typeof l.getDerivedStateFromError!="function")l=null,pa=-1;else if(l=nx(Q),n.mode&8){De(!0);try{nx(Q)}finally{De(!1)}}n.flags|=1,t!==null&&B?(n.child=Qf(n,t.child,null,p),n.child=Qf(n,null,l,p)):er(t,n,l,p),n.memoizedState=Q.state,t=n.child}else t=ts(t,n,p);return p=n.stateNode,h&&p.props!==d&&(Vp||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ae(n)||"a component"),Vp=!0),t}i(Nh,"updateClassComponent");function zd(t,n,l,d){return Ii(),n.flags|=256,er(t,n,l,d),n.child}i(zd,"mountHostRootWithoutHydrating");function yl(t,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
155
|
+
%s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(t=ce(n)||"Unknown",Gx[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),Gx[t]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=ce(n)||"Unknown",Ux[n]||(console.error("%s: Function components do not support contextType.",n),Ux[n]=!0))}i(yl,"validateFunctionComponentInDev");function Kd(t){return{baseLanes:t,cachePool:cr()}}i(Kd,"mountSuspenseOffscreenState");function Gg(t,n,l){return t=t!==null?t.childLanes&~l:0,n&&(t|=Fa),t}i(Gg,"getRemainingWorkInPrimaryTree");function Fg(t,n,l){var d=n.pendingProps;m(n)&&(n.flags|=128);var p=!1,h=(n.flags&128)!==0,B;if((B=h)||(B=t!==null&&t.memoizedState===null?!1:(Qr.current&DE)!==0),B&&(p=!0,n.flags&=-129),B=(n.flags&32)!==0,n.flags&=-33,t===null){if(xn){if(p?ys(n):Za(n),(t=Uo)?(l=so(t,Us),l!==null&&(B={dehydrated:l,treeContext:nt(),retryLane:536870912,hydrationErrors:null},n.memoizedState=B,B=Vc(l),B.return=n,n.child=B,xi=n,Uo=null)):l=null,l===null)throw ra(n,t),ni(n);return Ip(l)?n.lanes=32:n.lanes=536870912,null}var Q=d.children;return d=d.fallback,p?(Za(n),p=n.mode,Q=Yd({mode:"hidden",children:Q},p),d=ic(d,p,l,null),Q.return=n,d.return=n,Q.sibling=d,n.child=Q,d=n.child,d.memoizedState=Kd(l),d.childLanes=Gg(t,B,l),n.memoizedState=Kv,Gd(null,d)):(ys(n),Mh(n,Q))}var U=t.memoizedState;if(U!==null&&(Q=U.dehydrated,Q!==null)){if(h)n.flags&256?(ys(n),n.flags&=-257,n=zg(t,n,l)):n.memoizedState!==null?(Za(n),n.child=t.child,n.flags|=128,n=null):(Za(n),Q=d.fallback,p=n.mode,d=Yd({mode:"visible",children:d.children},p),Q=ic(Q,p,l,null),Q.flags|=2,d.return=n,Q.return=n,d.sibling=Q,n.child=d,Qf(n,t.child,null,l),d=n.child,d.memoizedState=Kd(l),d.childLanes=Gg(t,B,l),n.memoizedState=Kv,n=Gd(null,d));else if(ys(n),ao(),(l&536870912)!==0&&Wg(n),Ip(Q))p=Mr(Q),B=p.digest,Q=p.message,d=p.stack,p=p.componentStack,Q=Error(Q||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),Q.stack=d||"",Q.digest=B,B=p===void 0?null:p,d={value:Q,source:null,stack:B},typeof B=="string"&&hv.set(Q,d),Ir(d),n=zg(t,n,l);else if(kr||J(t,n,l,!1),B=(l&t.childLanes)!==0,kr||B){if(B=fo,B!==null&&(d=Ve(B,l),d!==0&&d!==U.retryLane))throw U.retryLane=d,ii(t,d),Eo(B,t,d),zv;uf(Q)||$g(),n=zg(t,n,l)}else uf(Q)?(n.flags|=192,n.child=t.child,n=null):(t=U.treeContext,ui&&(Uo=Qp(Q),xi=n,xn=!0,wA=null,hc=!1,ls=null,Us=!1,t!==null&&dn(n,t)),n=Mh(n,d.children),n.flags|=4096);return n}return p?(Za(n),Q=d.fallback,p=n.mode,U=t.child,h=U.sibling,d=vl(U,{mode:"hidden",children:d.children}),d.subtreeFlags=U.subtreeFlags&65011712,h!==null?Q=vl(h,Q):(Q=ic(Q,p,l,null),Q.flags|=2),Q.return=n,d.return=n,d.sibling=Q,n.child=d,Gd(null,d),d=n.child,Q=t.child.memoizedState,Q===null?Q=Kd(l):(p=Q.cachePool,p!==null?(U=wi?ir._currentValue:ir._currentValue2,p=p.parent!==U?{parent:U,pool:U}:p):p=cr(),Q={baseLanes:Q.baseLanes|l,cachePool:p}),d.memoizedState=Q,d.childLanes=Gg(t,B,l),n.memoizedState=Kv,Gd(t.child,d)):(U!==null&&(l&62914560)===l&&(l&t.lanes)!==0&&Wg(n),ys(n),l=t.child,t=l.sibling,l=vl(l,{mode:"visible",children:d.children}),l.return=n,l.sibling=null,t!==null&&(B=n.deletions,B===null?(n.deletions=[t],n.flags|=16):B.push(t)),n.child=l,n.memoizedState=null,l)}i(Fg,"updateSuspenseComponent");function Mh(t,n){return n=Yd({mode:"visible",children:n},t.mode),n.return=t,t.child=n}i(Mh,"mountSuspensePrimaryChildren");function Yd(t,n){return t=S(22,t,null,n),t.lanes=0,t}i(Yd,"mountWorkInProgressOffscreenFiber");function zg(t,n,l){return Qf(n,t.child,null,l),t=Mh(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}i(zg,"retrySuspenseComponentWithoutHydrating");function Oh(t,n,l){t.lanes|=n;var d=t.alternate;d!==null&&(d.lanes|=n),G(t.return,n,l)}i(Oh,"scheduleSuspenseWorkOnFiber");function Kg(t,n,l,d,p,h){var B=t.memoizedState;B===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p,treeForkCount:h}:(B.isBackwards=n,B.rendering=null,B.renderingStartTime=0,B.last=d,B.tail=l,B.tailMode=p,B.treeForkCount=h)}i(Kg,"initSuspenseListRenderState");function Hh(t,n,l){var d=n.pendingProps,p=d.revealOrder,h=d.tail,B=d.children,Q=Qr.current;if((d=(Q&DE)!==0)?(Q=Q&qp|DE,n.flags|=128):Q&=qp,ee(Qr,Q,n),Q=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!Fx[Q])if(Fx[Q]=!0,p==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(p==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof p=="string")switch(p.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',p,p.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',p,p.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p);Q=h??"null",VI[Q]||(h==null?(p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&(VI[Q]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):h!=="visible"&&h!=="collapsed"&&h!=="hidden"?(VI[Q]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',h)):p!=="forwards"&&p!=="backwards"&&p!=="unstable_legacy-backwards"&&(VI[Q]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',h)));e:if((p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&B!==void 0&&B!==null&&B!==!1)if(Ar(B)){for(Q=0;Q<B.length;Q++)if(!fh(B[Q],Q))break e}else if(Q=ze(B),typeof Q=="function"){if(Q=Q.call(B))for(var U=Q.next(),q=0;!U.done;U=Q.next()){if(!fh(U.value,q))break e;q++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',p);if(er(t,n,B,l),xn?(pt(),B=gE):B=0,!d&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Oh(t,l,n);else if(t.tag===19)Oh(t,l,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(l=n.child,p=null;l!==null;)t=l.alternate,t!==null&&xd(t)===null&&(p=l),l=l.sibling;l=p,l===null?(p=n.child,n.child=null):(p=l.sibling,l.sibling=null),Kg(n,!1,p,l,h,B);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=n.child,n.child=null;p!==null;){if(t=p.alternate,t!==null&&xd(t)===null){n.child=p;break}t=p.sibling,p.sibling=l,l=p,p=t}Kg(n,!0,l,null,h,B);break;case"together":Kg(n,!1,null,null,void 0,B);break;default:n.memoizedState=null}return n.child}i(Hh,"updateSuspenseListComponent");function ts(t,n,l){if(t!==null&&(n.dependencies=t.dependencies),pa=-1,HA|=n.lanes,(l&n.childLanes)===0)if(t!==null){if(J(t,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(t=n.child,l=vl(t,t.pendingProps),n.child=l,l.return=n;t.sibling!==null;)t=t.sibling,l=l.sibling=vl(t,t.pendingProps),l.return=n;l.sibling=null}return n.child}i(ts,"bailoutOnAlreadyFinishedWork");function gn(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Be(t)))}i(gn,"checkScheduledUpdateOrContext");function VS(t,n,l){switch(n.tag){case 3:rn(n,n.stateNode.containerInfo),x(n,ir,t.memoizedState.cache),Ii();break;case 27:case 5:Xo(n);break;case 4:rn(n,n.stateNode.containerInfo);break;case 10:x(n,n.type,n.memoizedProps.value);break;case 12:(l&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var d=n.stateNode;d.effectDuration=-0,d.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,pg(n),null;break;case 13:if(d=n.memoizedState,d!==null)return d.dehydrated!==null?(ys(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Fg(t,n,l):(ys(n),t=ts(t,n,l),t!==null?t.sibling:null);ys(n);break;case 19:var p=(t.flags&128)!==0;if(d=(l&n.childLanes)!==0,d||(J(t,n,l,!1),d=(l&n.childLanes)!==0),p){if(d)return Hh(t,n,l);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ee(Qr,Qr.current,n),d)break;return null;case 22:return n.lanes=0,kg(t,n,l,n.pendingProps);case 24:x(n,ir,t.memoizedState.cache)}return ts(t,n,l)}i(VS,"attemptEarlyBailoutIfNoScheduledUpdate");function Qi(t,n,l){if(n._debugNeedsRemount&&t!==null){l=rp(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),l._debugStack=n._debugStack,l._debugTask=n._debugTask;var d=n.return;if(d===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,n.alternate=null,l.index=n.index,l.sibling=n.sibling,l.return=n.return,l.ref=n.ref,l._debugInfo=n._debugInfo,n===d.child)d.child=l;else{var p=d.child;if(p===null)throw Error("Expected parent to have a child.");for(;p.sibling!==n;)if(p=p.sibling,p===null)throw Error("Expected to find the previous sibling.");p.sibling=l}return n=d.deletions,n===null?(d.deletions=[t],d.flags|=16):n.push(t),l.flags|=2,l}if(t!==null)if(t.memoizedProps!==n.pendingProps||n.type!==t.type)kr=!0;else{if(!gn(t,l)&&(n.flags&128)===0)return kr=!1,VS(t,n,l);kr=(t.flags&131072)!==0}else kr=!1,(d=xn)&&(pt(),d=(n.flags&1048576)!==0),d&&(d=n.index,pt(),j(n,gE,d));switch(n.lanes=0,n.tag){case 16:e:if(d=n.pendingProps,t=po(n.elementType),n.type=t,typeof t=="function")op(t)?(d=Ss(t,d),n.tag=1,n.type=t=jc(t),n=Nh(null,n,t,d,l)):(n.tag=0,yl(n,t),n.type=t=jc(t),n=Fd(null,n,t,d,l));else{if(t!=null){if(p=t.$$typeof,p===Xr){n.tag=11,n.type=t=np(t),n=Dh(null,n,t,d,l);break e}else if(p===dA){n.tag=14,n=Th(null,n,t,d,l);break e}}throw n="",t!==null&&typeof t=="object"&&t.$$typeof===Ki&&(n=" Did you wrap a component in React.lazy() more than once?"),t=ce(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+t+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return Fd(t,n,n.type,n.pendingProps,l);case 1:return d=n.type,p=Ss(d,n.pendingProps),Nh(t,n,d,p,l);case 3:e:{if(rn(n,n.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");var h=n.pendingProps;p=n.memoizedState,d=p.element,fg(t,n),bd(n,h,null,l);var B=n.memoizedState;if(h=B.cache,x(n,ir,h),h!==p.cache&&Y(n,[ir],l,!0),Vu(),h=B.element,ui&&p.isDehydrated)if(p={element:h,isDehydrated:!1,cache:B.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=zd(t,n,h,l);break e}else if(h!==d){d=Jn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),Ir(d),n=zd(t,n,h,l);break e}else for(ui&&(Uo=Sp(n.stateNode.containerInfo),xi=n,xn=!0,wA=null,hc=!1,ls=null,Us=!0),t=mx(n,null,h,l),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Ii(),h===d){n=ts(t,n,l);break e}er(t,n,h,l)}n=n.child}return n;case 26:if($n)return Lg(t,n),t===null?(t=Os(n.type,null,n.pendingProps,null))?n.memoizedState=t:xn||(n.stateNode=a(n.type,n.pendingProps,xt(RA.current),n)):n.memoizedState=Os(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:if(I)return Xo(n),t===null&&I&&xn&&(p=xt(RA.current),d=mo(),p=n.stateNode=T(n.type,n.pendingProps,p,d,!1),hc||(d=ff(p,n.type,n.pendingProps,d),d!==null&&(Fn(n,0).serverProps=d)),xi=n,Us=!0,Uo=bp(n.type,p,Uo)),er(t,n,n.pendingProps.children,l),Lg(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&xn&&(h=mo(),d=wp(n.type,n.pendingProps,h),p=Uo,(B=!p)||(B=Af(p,n.type,n.pendingProps,Us),B!==null?(n.stateNode=B,hc||(h=ff(B,n.type,n.pendingProps,h),h!==null&&(Fn(n,0).serverProps=h)),xi=n,Uo=Bp(B),Us=!1,h=!0):h=!1,B=!h),B&&(d&&ra(n,p),ni(n))),Xo(n),p=n.type,h=n.pendingProps,B=t!==null?t.memoizedProps:null,d=h.children,En(p,h)?d=null:B!==null&&En(p,B)&&(n.flags|=32),n.memoizedState!==null&&(p=la(t,n,hh,null,null,l),wi?Ha._currentValue=p:Ha._currentValue2=p),Lg(t,n),er(t,n,d,l),n.child;case 6:return t===null&&xn&&(t=n.pendingProps,l=mo(),t=dc(t,l),l=Uo,(d=!l)||(d=dv(l,n.pendingProps,Us),d!==null?(n.stateNode=d,xi=n,Uo=null,d=!0):d=!1,d=!d),d&&(t&&ra(n,l),ni(n))),null;case 13:return Fg(t,n,l);case 4:return rn(n,n.stateNode.containerInfo),d=n.pendingProps,t===null?n.child=Qf(n,null,d,l):er(t,n,d,l),n.child;case 11:return Dh(t,n,n.type,n.pendingProps,l);case 7:return er(t,n,n.pendingProps,l),n.child;case 8:return er(t,n,n.pendingProps.children,l),n.child;case 12:return n.flags|=4,n.flags|=2048,d=n.stateNode,d.effectDuration=-0,d.passiveEffectDuration=-0,er(t,n,n.pendingProps.children,l),n.child;case 10:return d=n.type,p=n.pendingProps,h=p.value,"value"in p||zx||(zx=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),x(n,d,h),er(t,n,p.children,l),n.child;case 9:return p=n.type._context,d=n.pendingProps.children,typeof d!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Oe(n),p=ve(p),d=xv(d,p,void 0),n.flags|=1,er(t,n,d,l),n.child;case 14:return Th(t,n,n.type,n.pendingProps,l);case 15:return Hn(t,n,n.type,n.pendingProps,l);case 19:return Hh(t,n,l);case 31:return jS(t,n,l);case 22:return kg(t,n,l,n.pendingProps);case 24:return Oe(n),d=ve(ir),t===null?(p=dt(),p===null&&(p=fo,h=At(),p.pooledCache=h,bt(h),h!==null&&(p.pooledCacheLanes|=l),p=h),n.memoizedState={parent:d,cache:p},dg(n),x(n,ir,p)):((t.lanes&l)!==0&&(fg(t,n),bd(n,null,null,l),Vu()),p=t.memoizedState,h=n.memoizedState,p.parent!==d?(p={parent:d,cache:d},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),x(n,ir,d)):(d=h.cache,x(n,ir,d),d!==p.cache&&Y(n,[ir],l,!0))),er(t,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}i(Qi,"beginWork");function ca(t){t.flags|=4}i(ca,"markUpdate");function Yg(t){_s&&(t.flags|=8)}i(Yg,"markCloned");function qd(t,n){if(t!==null&&t.child===n.child)return!1;if((n.flags&16)!==0)return!0;for(t=n.child;t!==null;){if((t.flags&8218)!==0||(t.subtreeFlags&8218)!==0)return!0;t=t.sibling}return!1}i(qd,"doesRequireClone");function tc(t,n,l,d){if(yo)for(l=n.child;l!==null;){if(l.tag===5||l.tag===6)Sr(t,l.stateNode);else if(!(l.tag===4||I&&l.tag===27)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}else if(_s)for(var p=n.child;p!==null;){if(p.tag===5){var h=p.stateNode;l&&d&&(h=Ms(h,p.type,p.memoizedProps)),Sr(t,h)}else if(p.tag===6)h=p.stateNode,l&&d&&(h=rr(h,p.memoizedProps)),Sr(t,h);else if(p.tag!==4){if(p.tag===22&&p.memoizedState!==null)h=p.child,h!==null&&(h.return=p),tc(t,p,!0,!0);else if(p.child!==null){p.child.return=p,p=p.child;continue}}if(p===n)break;for(;p.sibling===null;){if(p.return===null||p.return===n)return;p=p.return}p.sibling.return=p.return,p=p.sibling}}i(tc,"appendAllChildren");function zc(t,n,l,d){var p=!1;if(_s)for(var h=n.child;h!==null;){if(h.tag===5){var B=h.stateNode;l&&d&&(B=Ms(B,h.type,h.memoizedProps)),Cp(t,B)}else if(h.tag===6)B=h.stateNode,l&&d&&(B=rr(B,h.memoizedProps)),Cp(t,B);else if(h.tag!==4){if(h.tag===22&&h.memoizedState!==null)p=h.child,p!==null&&(p.return=h),zc(t,h,!0,!0),p=!0;else if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===n)break;for(;h.sibling===null;){if(h.return===null||h.return===n)return p;h=h.return}h.sibling.return=h.return,h=h.sibling}return p}i(zc,"appendAllChildrenToContainer");function kh(t,n){if(_s&&qd(t,n)){t=n.stateNode;var l=t.containerInfo,d=Ep();zc(d,n,!1,!1),t.pendingChildren=d,ca(n),fr(l,d)}}i(kh,"updateHostContainer");function Pd(t,n,l,d){if(yo)t.memoizedProps!==d&&ca(n);else if(_s){var p=t.stateNode,h=t.memoizedProps;if((t=qd(t,n))||h!==d){var B=mo();h=RI(p,l,h,d,!t,null),h===p?n.stateNode=p:(Yg(n),Co(h,l,d,B)&&ca(n),n.stateNode=h,t&&tc(h,n,!1,!1))}else n.stateNode=p}}i(Pd,"updateHostComponent");function qg(t,n,l,d,p){if((t.mode&32)!==jt&&(l===null?pA(n,d):mA(n,l,d))){if(t.flags|=16777216,(p&335544128)===p||Ap(n,d))if(sc(t.stateNode,n,d))t.flags|=8192;else if(oI())t.flags|=8192;else throw vf=KI,Tv}else t.flags&=-16777217}i(qg,"preloadInstanceAndSuspendIfNeeded");function Il(t,n){if(A(n)){if(t.flags|=16777216,!g(n))if(oI())t.flags|=8192;else throw vf=KI,Tv}else t.flags&=-16777217}i(Il,"preloadResourceAndSuspendIfNeeded");function oA(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?je():536870912,t.lanes|=n,Df|=n)}i(oA,"scheduleRetryEffect");function Kc(t,n){if(!xn)switch(t.tailMode){case"hidden":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}i(Kc,"cutOffTailIfNeeded");function Zn(t){var n=t.alternate!==null&&t.alternate.child===t.child,l=0,d=0;if(n)if((t.mode&2)!==jt){for(var p=t.selfBaseDuration,h=t.child;h!==null;)l|=h.lanes|h.childLanes,d|=h.subtreeFlags&65011712,d|=h.flags&65011712,p+=h.treeBaseDuration,h=h.sibling;t.treeBaseDuration=p}else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=t,p=p.sibling;else if((t.mode&2)!==jt){p=t.actualDuration,h=t.selfBaseDuration;for(var B=t.child;B!==null;)l|=B.lanes|B.childLanes,d|=B.subtreeFlags,d|=B.flags,p+=B.actualDuration,h+=B.treeBaseDuration,B=B.sibling;t.actualDuration=p,t.treeBaseDuration=h}else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=d,t.childLanes=l,n}i(Zn,"bubbleProperties");function Uh(t,n,l){var d=n.pendingProps;switch(Ue(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zn(n),null;case 1:return Zn(n),null;case 3:return l=n.stateNode,d=null,t!==null&&(d=t.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),D(ir,n),sr(n),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(yi(n)?(va(),ca(n)):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,oi())),kh(t,n),Zn(n),null;case 26:if($n){var p=n.type,h=n.memoizedState;return t===null?(ca(n),h!==null?(Zn(n),Il(n,h)):(Zn(n),qg(n,p,null,d,l))):h?h!==t.memoizedState?(ca(n),Zn(n),Il(n,h)):(Zn(n),n.flags&=-16777217):(h=t.memoizedProps,yo?h!==d&&ca(n):Pd(t,n,p,d),Zn(n),qg(n,p,h,d,l)),null}case 27:if(I){if(na(n),l=xt(RA.current),p=n.type,t!==null&&n.stateNode!=null)yo?t.memoizedProps!==d&&ca(n):Pd(t,n,p,d);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zn(n),null}t=mo(),yi(n)?Mi(n,t):(t=T(p,d,l,t,!0),n.stateNode=t,ca(n))}return Zn(n),null}case 5:if(na(n),p=n.type,t!==null&&n.stateNode!=null)Pd(t,n,p,d);else{if(!d){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zn(n),null}if(h=mo(),yi(n))Mi(n,h),ou(n.stateNode,p,d,h)&&(n.flags|=64);else{var B=xt(RA.current);B=up(p,d,B,h,n),Yg(n),tc(B,n,!1,!1),n.stateNode=B,Co(B,p,d,h)&&ca(n)}}return Zn(n),qg(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,l),null;case 6:if(t&&n.stateNode!=null)l=t.memoizedProps,yo?l!==d&&ca(n):_s&&(l!==d?(t=xt(RA.current),l=mo(),Yg(n),n.stateNode=wl(d,t,l,n)):n.stateNode=t.stateNode);else{if(typeof d!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=xt(RA.current),l=mo(),yi(n)){if(!ui)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=n.stateNode,l=n.memoizedProps,p=!hc,d=null,h=xi,h!==null)switch(h.tag){case 3:p&&(p=dE(t,l,d),p!==null&&(Fn(n,0).serverProps=p));break;case 27:case 5:d=h.memoizedProps,p&&(p=dE(t,l,d),p!==null&&(Fn(n,0).serverProps=p))}Rn(t,l,n,d)||ni(n,!0)}else Yg(n),n.stateNode=wl(d,t,l,n)}return Zn(n),null;case 31:if(l=n.memoizedState,t===null||t.memoizedState!==null){if(d=yi(n),l!==null){if(t===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ui)throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Wn(t,n),Zn(n),(n.mode&2)!==jt&&l!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration))}else va(),Ii(),(n.flags&128)===0&&(l=n.memoizedState=null),n.flags|=4,Zn(n),(n.mode&2)!==jt&&l!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration));t=!1}else l=oi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return n.flags&256?(Si(n),n):(Si(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Zn(n),null;case 13:if(d=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=d,h=yi(n),p!==null&&p.dehydrated!==null){if(t===null){if(!h)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ui)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");da(h,n),Zn(n),(n.mode&2)!==jt&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration))}else va(),Ii(),(n.flags&128)===0&&(p=n.memoizedState=null),n.flags|=4,Zn(n),(n.mode&2)!==jt&&p!==null&&(p=n.child,p!==null&&(n.treeBaseDuration-=p.treeBaseDuration));p=!1}else p=oi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(Si(n),n):(Si(n),null)}return Si(n),(n.flags&128)!==0?(n.lanes=l,(n.mode&2)!==jt&&Al(n),n):(l=d!==null,t=t!==null&&t.memoizedState!==null,l&&(d=n.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),h=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(h=d.memoizedState.cachePool.pool),h!==p&&(d.flags|=2048)),l!==t&&l&&(n.child.flags|=8192),oA(n,n.updateQueue),Zn(n),(n.mode&2)!==jt&&l&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return sr(n),kh(t,n),t===null&&xo(n.stateNode.containerInfo),Zn(n),null;case 10:return D(n.type,n),Zn(n),null;case 19:if(ne(Qr,n),d=n.memoizedState,d===null)return Zn(n),null;if(p=(n.flags&128)!==0,h=d.rendering,h===null)if(p)Kc(d,!1);else{if(Go!==Eu||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=xd(t),h!==null){for(n.flags|=128,Kc(d,!1),t=h.updateQueue,n.updateQueue=t,oA(n,t),n.subtreeFlags=0,t=l,l=n.child;l!==null;)ur(l,t),l=l.sibling;return ee(Qr,Qr.current&qp|DE,n),xn&&w(n,d.treeForkCount),n.child}t=t.sibling}d.tail!==null&&wn()>LE&&(n.flags|=128,p=!0,Kc(d,!1),n.lanes=4194304)}else{if(!p)if(t=xd(h),t!==null){if(n.flags|=128,p=!0,t=t.updateQueue,n.updateQueue=t,oA(n,t),Kc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!xn)return Zn(n),null}else 2*wn()-d.renderingStartTime>LE&&l!==536870912&&(n.flags|=128,p=!0,Kc(d,!1),n.lanes=4194304);d.isBackwards?(h.sibling=n.child,n.child=h):(t=d.last,t!==null?t.sibling=h:n.child=h,d.last=h)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=wn(),t.sibling=null,l=Qr.current,l=p?l&qp|DE:l&qp,ee(Qr,l,n),xn&&w(n,d.treeForkCount),t):(Zn(n),null);case 22:case 23:return Si(n),wd(n),d=n.memoizedState!==null,t!==null?t.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(l&536870912)!==0&&(n.flags&128)===0&&(Zn(n),n.subtreeFlags&6&&(n.flags|=8192)):Zn(n),l=n.updateQueue,l!==null&&oA(n,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==l&&(n.flags|=2048),t!==null&&ne(Bf,n),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),D(ir,n),Zn(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}i(Uh,"completeWork");function nc(t,n){switch(Ue(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==jt&&Al(n),n):null;case 3:return D(ir,n),sr(n),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return na(n),null;case 31:if(n.memoizedState!==null){if(Si(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ii()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==jt&&Al(n),n):null;case 13:if(Si(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ii()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==jt&&Al(n),n):null;case 19:return ne(Qr,n),null;case 4:return sr(n),null;case 10:return D(n.type,n),null;case 22:case 23:return Si(n),wd(n),t!==null&&ne(Bf,n),t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&2)!==jt&&Al(n),n):null;case 24:return D(ir,n),null;case 25:return null;default:return null}}i(nc,"unwindWork");function Pg(t,n){switch(Ue(n),n.tag){case 3:D(ir,n),sr(n);break;case 26:case 27:case 5:na(n);break;case 4:sr(n);break;case 31:n.memoizedState!==null&&Si(n);break;case 13:Si(n);break;case 19:ne(Qr,n);break;case 10:D(n.type,n);break;case 22:case 23:Si(n),wd(n),t!==null&&ne(Bf,n);break;case 24:D(ir,n)}}i(Pg,"unwindInterruptedWork");function Qs(t){return(t.mode&2)!==jt}i(Qs,"shouldProfile");function Lh(t,n){Qs(t)?(ki(),oc(n,t),sa()):oc(n,t)}i(Lh,"commitHookLayoutEffects");function Gh(t,n,l){Qs(t)?(ki(),Nt(l,t,n),sa()):Nt(l,t,n)}i(Gh,"commitHookLayoutUnmountEffects");function oc(t,n){try{var l=n.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&t)===t&&(d=void 0,(t&ma)!==qI&&(tm=!0),d=ft(n,D4,l),(t&ma)!==qI&&(tm=!1),d!==void 0&&typeof d!="function")){var h=void 0;h=(l.tag&us)!==0?"useLayoutEffect":(l.tag&ma)!==0?"useInsertionEffect":"useEffect";var B=void 0;B=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
|
|
156
|
+
|
|
157
|
+
It looks like you wrote `+h+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
158
|
+
|
|
159
|
+
`+h+`(() => {
|
|
160
|
+
async function fetchData() {
|
|
161
|
+
// You can await here
|
|
162
|
+
const response = await MyAPI.getData(someId);
|
|
163
|
+
// ...
|
|
164
|
+
}
|
|
165
|
+
fetchData();
|
|
166
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
167
|
+
|
|
168
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,ft(n,function(Q,U){console.error("%s must not return anything besides a function, which is used for clean-up.%s",Q,U)},h,B)}l=l.next}while(l!==p)}}catch(Q){kn(n,n.return,Q)}}i(oc,"commitHookEffectListMount");function Nt(t,n,l){try{var d=n.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var h=p.next;d=h;do{if((d.tag&t)===t){var B=d.inst,Q=B.destroy;Q!==void 0&&(B.destroy=void 0,(t&ma)!==qI&&(tm=!0),p=n,ft(p,T4,p,l,Q),(t&ma)!==qI&&(tm=!1))}d=d.next}while(d!==h)}}catch(U){kn(n,n.return,U)}}i(Nt,"commitHookEffectListUnmount");function My(t,n){Qs(t)?(ki(),oc(n,t),sa()):oc(n,t)}i(My,"commitHookPassiveMountEffects");function Fh(t,n,l){Qs(t)?(ki(),Nt(l,t,n),sa()):Nt(l,t,n)}i(Fh,"commitHookPassiveUnmountEffects");function zh(t){var n=t.updateQueue;if(n!==null){var l=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||Vp||(l.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ae(t)||"instance"),l.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ae(t)||"instance"));try{ft(t,ph,n,l)}catch(d){kn(t,t.return,d)}}}i(zh,"commitClassCallbacks");function Jd(t,n,l){return t.getSnapshotBeforeUpdate(n,l)}i(Jd,"callGetSnapshotBeforeUpdates");function XS(t,n){var l=n.memoizedProps,d=n.memoizedState;n=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||Vp||(n.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ae(t)||"instance"),n.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ae(t)||"instance"));try{var p=Ss(t.type,l),h=ft(t,Jd,n,p,d);l=Kx,h!==void 0||l.has(t.type)||(l.add(t.type),ft(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ae(t))})),n.__reactInternalSnapshotBeforeUpdate=h}catch(B){kn(t,t.return,B)}}i(XS,"commitClassSnapshot");function Oy(t,n,l){l.props=Ss(t.type,t.memoizedProps),l.state=t.memoizedState,Qs(t)?(ki(),ft(t,lx,t,n,l),sa()):ft(t,lx,t,n,l)}i(Oy,"safelyCallComponentWillUnmount");function ZS(t){var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=Ri(t.stateNode);break;case 30:l=t.stateNode;break;default:l=t.stateNode}if(typeof n=="function")if(Qs(t))try{ki(),t.refCleanup=n(l)}finally{sa()}else t.refCleanup=n(l);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ae(t)),n.current=l}}i(ZS,"commitAttachRef");function jd(t,n){try{ft(t,ZS,t)}catch(l){kn(t,n,l)}}i(jd,"safelyAttachRef");function bs(t,n){var l=t.ref,d=t.refCleanup;if(l!==null)if(typeof d=="function")try{if(Qs(t))try{ki(),ft(t,d)}finally{sa(t)}else ft(t,d)}catch(p){kn(t,n,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{if(Qs(t))try{ki(),ft(t,l,null)}finally{sa(t)}else ft(t,l,null)}catch(p){kn(t,n,p)}else l.current=null}i(bs,"safelyDetachRef");function Jg(t,n,l,d){var p=t.memoizedProps,h=p.id,B=p.onCommit;p=p.onRender,n=n===null?"mount":"update",kI&&(n="nested-update"),typeof p=="function"&&p(h,n,t.actualDuration,t.treeBaseDuration,t.actualStartTime,l),typeof B=="function"&&B(h,n,d,l)}i(Jg,"commitProfiler");function Hy(t,n,l,d){var p=t.memoizedProps;t=p.id,p=p.onPostCommit,n=n===null?"mount":"update",kI&&(n="nested-update"),typeof p=="function"&&p(t,n,d,l)}i(Hy,"commitProfilerPostCommitImpl");function Vd(t){var n=t.type,l=t.memoizedProps,d=t.stateNode;try{ft(t,oo,d,n,l,t)}catch(p){kn(t,t.return,p)}}i(Vd,"commitHostMount");function jg(t,n,l){try{ft(t,dr,t.stateNode,t.type,l,n,t)}catch(d){kn(t,t.return,d)}}i(jg,"commitHostUpdate");function ky(t){return t.tag===5||t.tag===3||($n?t.tag===26:!1)||(I?t.tag===27&&rt(t.type):!1)||t.tag===4}i(ky,"isHostParent");function Kh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ky(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(I&&t.tag===27&&rt(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}i(Kh,"getHostSibling");function Bl(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?EA(l,t,n):xl(l,t);else if(d!==4&&(I&&d===27&&rt(t.type)&&(l=t.stateNode,n=null),t=t.child,t!==null))for(Bl(t,n,l),t=t.sibling;t!==null;)Bl(t,n,l),t=t.sibling}i(Bl,"insertOrAppendPlacementNodeIntoContainer");function Da(t,n,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?mp(l,t,n):or(l,t);else if(d!==4&&(I&&d===27&&rt(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Da(t,n,l),t=t.sibling;t!==null;)Da(t,n,l),t=t.sibling}i(Da,"insertOrAppendPlacementNode");function li(t){for(var n,l=t.return;l!==null;){if(ky(l)){n=l;break}l=l.return}if(yo){if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:if(I){n=n.stateNode,l=Kh(t),Da(t,l,n);break}case 5:l=n.stateNode,n.flags&32&&(CA(l),n.flags&=-33),n=Kh(t),Da(t,n,l);break;case 3:case 4:n=n.stateNode.containerInfo,l=Kh(t),Bl(t,l,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}i(li,"commitPlacement");function ns(t,n,l){t=t.containerInfo;try{ft(n,yp,t,l)}catch(d){kn(n,n.return,d)}}i(ns,"commitHostPortalContainerChildren");function jr(t){var n=t.stateNode,l=t.memoizedProps;try{ft(t,F,t.type,l,n,t)}catch(d){kn(t,t.return,d)}}i(jr,"commitHostSingletonAcquisition");function Uy(t,n){return n.tag===31?(n=n.memoizedState,t.memoizedState!==null&&n===null):n.tag===13?(t=t.memoizedState,n=n.memoizedState,t!==null&&t.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?t.memoizedState.isDehydrated&&(n.flags&256)===0:!1}i(Uy,"isHydratingParent");function WS(t,n){for(af(t.containerInfo),Ai=n;Ai!==null;)if(t=Ai,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,Ai=n;else for(;Ai!==null;){n=t=Ai;var l=n.alternate,d=n.flags;switch(n.tag){case 0:if((d&4)!==0&&(n=n.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)d=n[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:(d&1024)!==0&&l!==null&&XS(n,l);break;case 3:(d&1024)!==0&&yo&&cE(n.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((d&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=t.sibling,n!==null){n.return=t.return,Ai=n;break}Ai=t.return}}i(WS,"commitBeforeMutationEffects");function Br(t,n,l){var d=go(),p=aa(),h=Hi(),B=On(),Q=l.flags;switch(l.tag){case 0:case 11:case 15:bi(t,l),Q&4&&Lh(l,us|zs);break;case 1:if(bi(t,l),Q&4)if(t=l.stateNode,n===null)l.type.defaultProps||"ref"in l.memoizedProps||Vp||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ae(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ae(l)||"instance")),Qs(l)?(ki(),ft(l,Dv,l,t),sa()):ft(l,Dv,l,t);else{var U=Ss(l.type,n.memoizedProps);n=n.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Vp||(t.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ae(l)||"instance"),t.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ae(l)||"instance")),Qs(l)?(ki(),ft(l,ix,l,t,U,n,t.__reactInternalSnapshotBeforeUpdate),sa()):ft(l,ix,l,t,U,n,t.__reactInternalSnapshotBeforeUpdate)}Q&64&&zh(l),Q&512&&jd(l,l.return);break;case 3:if(n=uo(),bi(t,l),Q&64&&(Q=l.updateQueue,Q!==null)){if(U=null,l.child!==null)switch(l.child.tag){case 27:case 5:U=Ri(l.child.stateNode);break;case 1:U=l.child.stateNode}try{ft(l,ph,Q,U)}catch(pe){kn(l,l.return,pe)}}t.effectDuration+=Wo(n);break;case 27:I&&n===null&&Q&4&&jr(l);case 26:case 5:if(bi(t,l),n===null){if(Q&4)Vd(l);else if(Q&64){t=l.type,n=l.memoizedProps,U=l.stateNode;try{ft(l,uE,U,t,n,l)}catch(pe){kn(l,l.return,pe)}}}Q&512&&jd(l,l.return);break;case 12:if(Q&4){Q=uo(),bi(t,l),t=l.stateNode,t.effectDuration+=Bi(Q);try{ft(l,Jg,l,n,xA,t.effectDuration)}catch(pe){kn(l,l.return,pe)}}else bi(t,l);break;case 31:bi(t,l),Q&4&&Ly(t,l);break;case 13:bi(t,l),Q&4&&Gy(t,l),Q&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(Q=mI.bind(null,l),gr(t,Q))));break;case 22:if(Q=l.memoizedState!==null||hu,!Q){n=n!==null&&n.memoizedState!==null||Ur,U=hu;var q=Ur;hu=Q,(Ur=n)&&!q?(ws(t,l,(l.subtreeFlags&8772)!==0),(l.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&kt(l,Lt,Pt)):bi(t,l),hu=U,Ur=q}break;case 30:break;default:bi(t,l)}(l.mode&2)!==jt&&0<=Lt&&0<=Pt&&((ar||.05<Lo)&&fe(l,Lt,Pt,Lo,To),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<Pt-Lt&&(Uy(l.return.alternate,l.return)||at(l,Lt,Pt,"Mount"))),lr(d),Oi(p),To=h,ar=B}i(Br,"commitLayoutEffectOnFiber");function Rs(t){var n=t.alternate;n!==null&&(t.alternate=null,Rs(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&aE(n)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}i(Rs,"detachFiberAfterEffects");function os(t,n,l){for(l=l.child;l!==null;)Yh(t,n,l),l=l.sibling}i(os,"recursivelyTraverseDeletionEffects");function Yh(t,n,l){if(Ji&&typeof Ji.onCommitFiberUnmount=="function")try{Ji.onCommitFiberUnmount(_p,l)}catch(q){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",q))}var d=go(),p=aa(),h=Hi(),B=On();switch(l.tag){case 26:if($n){Ur||bs(l,n),os(t,n,l),l.memoizedState?Dp(l.memoizedState):l.stateNode&&Tp(l.stateNode);break}case 27:if(I){Ur||bs(l,n);var Q=Lr,U=La;rt(l.type)&&(Lr=l.stateNode,La=!1),os(t,n,l),ft(l,me,l.stateNode),Lr=Q,La=U;break}case 5:Ur||bs(l,n);case 6:if(yo){if(Q=Lr,U=La,Lr=null,os(t,n,l),Lr=Q,La=U,Lr!==null)if(La)try{ft(l,hp,Lr,l.stateNode)}catch(q){kn(l,n,q)}else try{ft(l,tu,Lr,l.stateNode)}catch(q){kn(l,n,q)}}else os(t,n,l);break;case 18:yo&&Lr!==null&&(La?IA(Lr,l.stateNode):fa(Lr,l.stateNode));break;case 4:yo?(Q=Lr,U=La,Lr=l.stateNode.containerInfo,La=!0,os(t,n,l),Lr=Q,La=U):(_s&&ns(l.stateNode,l,Ep()),os(t,n,l));break;case 0:case 11:case 14:case 15:Nt(ma,l,n),Ur||Gh(l,n,us),os(t,n,l);break;case 1:Ur||(bs(l,n),Q=l.stateNode,typeof Q.componentWillUnmount=="function"&&Oy(l,n,Q)),os(t,n,l);break;case 21:os(t,n,l);break;case 22:Ur=(Q=Ur)||l.memoizedState!==null,os(t,n,l),Ur=Q;break;default:os(t,n,l)}(l.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(l,Lt,Pt,Lo,To),lr(d),Oi(p),To=h,ar=B}i(Yh,"commitDeletionEffectsOnFiber");function Ly(t,n){if(ui&&n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ft(n,ko,t)}catch(l){kn(n,n.return,l)}}}i(Ly,"commitActivityHydrationCallbacks");function Gy(t,n){if(ui&&n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ft(n,Ac,t)}catch(l){kn(n,n.return,l)}}i(Gy,"commitSuspenseHydrationCallbacks");function $S(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Yx),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Yx),n;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}i($S,"getRetryCache");function rA(t,n){var l=$S(t);n.forEach(function(d){if(!l.has(d)){if(l.add(d),pc)if(Xp!==null&&Zp!==null)lA(Zp,Xp);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=av.bind(null,t,d);d.then(p,p)}})}i(rA,"attachSuspenseRetryListeners");function Vr(t,n){var l=n.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=t,h=n,B=l[d],Q=go();if(yo){var U=h;e:for(;U!==null;){switch(U.tag){case 27:if(I){if(rt(U.type)){Lr=U.stateNode,La=!1;break e}break}case 5:Lr=U.stateNode,La=!1;break e;case 3:case 4:Lr=U.stateNode.containerInfo,La=!0;break e}U=U.return}if(Lr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Yh(p,h,B),Lr=null,La=!1}else Yh(p,h,B);(B.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&at(B,Lt,Pt,"Unmount"),lr(Q),p=B,h=p.alternate,h!==null&&(h.return=null),p.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Fy(n,t),n=n.sibling}i(Vr,"recursivelyTraverseMutationEffects");function Fy(t,n){var l=go(),d=aa(),p=Hi(),h=On(),B=t.alternate,Q=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Vr(n,t),ci(t),Q&4&&(Nt(ma|zs,t,t.return),oc(ma|zs,t),Gh(t,t.return,us|zs));break;case 1:Vr(n,t),ci(t),Q&512&&(Ur||B===null||bs(B,B.return)),Q&64&&hu&&(Q=t.updateQueue,Q!==null&&(B=Q.callbacks,B!==null&&(n=Q.shared.hiddenCallbacks,Q.shared.hiddenCallbacks=n===null?B:n.concat(B))));break;case 26:if($n){var U=Ol;Vr(n,t),ci(t),Q&512&&(Ur||B===null||bs(B,B.return)),Q&4&&(Q=B!==null?B.memoizedState:null,n=t.memoizedState,B===null?n===null?t.stateNode===null?t.stateNode=wI(U,t.type,t.memoizedProps,t):SA(U,t.type,t.stateNode):t.stateNode=xp(U,n,t.memoizedProps):Q!==n?(Q===null?B.stateNode!==null&&Tp(B.stateNode):Dp(Q),n===null?SA(U,t.type,t.stateNode):xp(U,n,t.memoizedProps)):n===null&&t.stateNode!==null&&jg(t,t.memoizedProps,B.memoizedProps));break}case 27:if(I){Vr(n,t),ci(t),Q&512&&(Ur||B===null||bs(B,B.return)),B!==null&&Q&4&&jg(t,t.memoizedProps,B.memoizedProps);break}case 5:if(Vr(n,t),ci(t),Q&512&&(Ur||B===null||bs(B,B.return)),yo){if(t.flags&32){n=t.stateNode;try{ft(t,CA,n)}catch(lo){kn(t,t.return,lo)}}Q&4&&t.stateNode!=null&&(n=t.memoizedProps,jg(t,n,B!==null?B.memoizedProps:n)),Q&1024&&(Yv=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."))}else _s&&t.alternate!==null&&(t.alternate.stateNode=t.stateNode);break;case 6:if(Vr(n,t),ci(t),Q&4&&yo){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");Q=t.memoizedProps,B=B!==null?B.memoizedProps:Q,n=t.stateNode;try{ft(t,sn,n,B,Q)}catch(lo){kn(t,t.return,lo)}}break;case 3:if(U=uo(),$n){s();var q=Ol;Ol=fc(n.containerInfo),Vr(n,t),Ol=q}else Vr(n,t);if(ci(t),Q&4){if(yo&&ui&&B!==null&&B.memoizedState.isDehydrated)try{ft(t,Dl,n.containerInfo)}catch(lo){kn(t,t.return,lo)}if(_s){Q=n.containerInfo,B=n.pendingChildren;try{ft(t,yp,Q,B)}catch(lo){kn(t,t.return,lo)}}}Yv&&(Yv=!1,zy(t)),n.effectDuration+=Wo(U);break;case 4:$n?(B=Ol,Ol=fc(t.stateNode.containerInfo),Vr(n,t),ci(t),Ol=B):(Vr(n,t),ci(t)),Q&4&&_s&&ns(t.stateNode,t,t.stateNode.pendingChildren);break;case 12:Q=uo(),Vr(n,t),ci(t),t.stateNode.effectDuration+=Bi(Q);break;case 31:Vr(n,t),ci(t),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,rA(t,Q)));break;case 13:Vr(n,t),ci(t),t.child.flags&8192&&t.memoizedState!==null!=(B!==null&&B.memoizedState!==null)&&(sB=wn()),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,rA(t,Q)));break;case 22:U=t.memoizedState!==null;var pe=B!==null&&B.memoizedState!==null,he=hu,xe=Ur;if(hu=he||U,Ur=xe||pe,Vr(n,t),Ur=xe,hu=he,pe&&!U&&!he&&!xe&&(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&kt(t,Lt,Pt),ci(t),Q&8192&&(n=t.stateNode,n._visibility=U?n._visibility&~xE:n._visibility|xE,!U||B===null||pe||hu||Ur||(Yc(t),(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&at(t,Lt,Pt,"Disconnect")),yo)){e:if(B=null,yo)for(n=t;;){if(n.tag===5||$n&&n.tag===26){if(B===null){pe=B=n;try{q=pe.stateNode,U?ft(pe,yA,q):ft(pe,cf,pe.stateNode,pe.memoizedProps)}catch(lo){kn(pe,pe.return,lo)}}}else if(n.tag===6){if(B===null){pe=n;try{var Tt=pe.stateNode;U?ft(pe,uv,Tt):ft(pe,bI,Tt,pe.memoizedProps)}catch(lo){kn(pe,pe.return,lo)}}}else if(n.tag===18){if(B===null){pe=n;try{var $t=pe.stateNode;U?ft(pe,df,$t):ft(pe,Pi,pe.stateNode)}catch(lo){kn(pe,pe.return,lo)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;B===n&&(B=null),n=n.return}B===n&&(B=null),n.sibling.return=n.return,n=n.sibling}}Q&4&&(Q=t.updateQueue,Q!==null&&(B=Q.retryQueue,B!==null&&(Q.retryQueue=null,rA(t,B))));break;case 19:Vr(n,t),ci(t),Q&4&&(Q=t.updateQueue,Q!==null&&(t.updateQueue=null,rA(t,Q)));break;case 30:break;case 21:break;default:Vr(n,t),ci(t)}(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&((ar||.05<Lo)&&fe(t,Lt,Pt,Lo,To),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<Pt-Lt&&(Uy(t.return.alternate,t.return)||at(t,Lt,Pt,"Mount"))),lr(l),Oi(d),To=p,ar=h}i(Fy,"commitMutationEffectsOnFiber");function ci(t){var n=t.flags;if(n&2){try{ft(t,li,t)}catch(l){kn(t,t.return,l)}t.flags&=-3}n&4096&&(t.flags&=-4097)}i(ci,"commitReconciliationEffects");function zy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;zy(n),n.tag===5&&n.flags&1024&&lf(n.stateNode),t=t.sibling}}i(zy,"recursivelyResetForms");function bi(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Br(t,n.alternate,n),n=n.sibling}i(bi,"recursivelyTraverseLayoutEffects");function rc(t){var n=go(),l=aa(),d=Hi(),p=On();switch(t.tag){case 0:case 11:case 14:case 15:Gh(t,t.return,us),Yc(t);break;case 1:bs(t,t.return);var h=t.stateNode;typeof h.componentWillUnmount=="function"&&Oy(t,t.return,h),Yc(t);break;case 27:I&&ft(t,me,t.stateNode);case 26:case 5:bs(t,t.return),Yc(t);break;case 22:t.memoizedState===null&&Yc(t);break;case 30:Yc(t);break;default:Yc(t)}(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(t,Lt,Pt,Lo,To),lr(n),Oi(l),To=d,ar=p}i(rc,"disappearLayoutEffects");function Yc(t){for(t=t.child;t!==null;)rc(t),t=t.sibling}i(Yc,"recursivelyTraverseDisappearLayoutEffects");function Ky(t,n,l,d){var p=go(),h=aa(),B=Hi(),Q=On(),U=l.flags;switch(l.tag){case 0:case 11:case 15:ws(t,l,d),Lh(l,us);break;case 1:if(ws(t,l,d),n=l.stateNode,typeof n.componentDidMount=="function"&&ft(l,Dv,l,n),n=l.updateQueue,n!==null){t=l.stateNode;try{ft(l,gh,n,t)}catch(q){kn(l,l.return,q)}}d&&U&64&&zh(l),jd(l,l.return);break;case 27:I&&jr(l);case 26:case 5:ws(t,l,d),d&&n===null&&U&4&&Vd(l),jd(l,l.return);break;case 12:if(d&&U&4){U=uo(),ws(t,l,d),d=l.stateNode,d.effectDuration+=Bi(U);try{ft(l,Jg,l,n,xA,d.effectDuration)}catch(q){kn(l,l.return,q)}}else ws(t,l,d);break;case 31:ws(t,l,d),d&&U&4&&Ly(t,l);break;case 13:ws(t,l,d),d&&U&4&&Gy(t,l);break;case 22:l.memoizedState===null&&ws(t,l,d),jd(l,l.return);break;case 30:break;default:ws(t,l,d)}(l.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(l,Lt,Pt,Lo,To),lr(p),Oi(h),To=B,ar=Q}i(Ky,"reappearLayoutEffects");function ws(t,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)Ky(t,n.alternate,n,l),n=n.sibling}i(ws,"recursivelyTraverseReappearLayoutEffects");function qc(t,n){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==l&&(t!=null&&bt(t),l!=null&&nn(l))}i(qc,"commitOffscreenPassiveMountEffects");function qh(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(bt(n),t!=null&&nn(t))}i(qh,"commitCachePassiveMountEffect");function rs(t,n,l,d,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var h=n.sibling;Yy(t,n,l,d,h!==null?h.actualStartTime:p),n=h}}i(rs,"recursivelyTraversePassiveMountEffects");function Yy(t,n,l,d,p){var h=go(),B=aa(),Q=Hi(),U=On(),q=vA,pe=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&2)!==jt&&0<n.actualStartTime&&(n.flags&1)!==0&&be(n,n.actualStartTime,p,Wr,l),rs(t,n,l,d,p),pe&2048&&My(n,ha|zs);break;case 1:(n.mode&2)!==jt&&0<n.actualStartTime&&((n.flags&128)!==0?Te(n,n.actualStartTime,p,[]):(n.flags&1)!==0&&be(n,n.actualStartTime,p,Wr,l)),rs(t,n,l,d,p);break;case 3:var he=uo(),xe=Wr;Wr=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,rs(t,n,l,d,p),Wr=xe,pe&2048&&(l=null,n.alternate!==null&&(l=n.alternate.memoizedState.cache),d=n.memoizedState.cache,d!==l&&(bt(d),l!=null&&nn(l))),t.passiveEffectDuration+=Wo(he);break;case 12:if(pe&2048){pe=uo(),rs(t,n,l,d,p),t=n.stateNode,t.passiveEffectDuration+=Bi(pe);try{ft(n,Hy,n,n.alternate,xA,t.passiveEffectDuration)}catch(Tt){kn(n,n.return,Tt)}}else rs(t,n,l,d,p);break;case 31:pe=Wr,he=n.alternate!==null?n.alternate.memoizedState:null,xe=n.memoizedState,he!==null&&xe===null?(xe=n.deletions,xe!==null&&0<xe.length&&xe[0].tag===18?(Wr=!1,he=he.hydrationErrors,he!==null&&Te(n,n.actualStartTime,p,he)):Wr=!0):Wr=!1,rs(t,n,l,d,p),Wr=pe;break;case 13:pe=Wr,he=n.alternate!==null?n.alternate.memoizedState:null,xe=n.memoizedState,he===null||he.dehydrated===null||xe!==null&&xe.dehydrated!==null?Wr=!1:(xe=n.deletions,xe!==null&&0<xe.length&&xe[0].tag===18?(Wr=!1,he=he.hydrationErrors,he!==null&&Te(n,n.actualStartTime,p,he)):Wr=!0),rs(t,n,l,d,p),Wr=pe;break;case 23:break;case 22:xe=n.stateNode,he=n.alternate,n.memoizedState!==null?xe._visibility&fu?rs(t,n,l,d,p):Xd(t,n,l,d,p):xe._visibility&fu?rs(t,n,l,d,p):(xe._visibility|=fu,xs(t,n,l,d,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),p),(n.mode&2)===jt||Wr||(t=n.actualStartTime,0<=t&&.05<p-t&&kt(n,t,p),0<=Lt&&0<=Pt&&.05<Pt-Lt&&kt(n,Lt,Pt))),pe&2048&&qc(he,n);break;case 24:rs(t,n,l,d,p),pe&2048&&qh(n.alternate,n);break;default:rs(t,n,l,d,p)}(n.mode&2)!==jt&&((t=!Wr&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(l=n.actualStartTime,0<=l&&.05<p-l&&at(n,l,p,"Mount")),0<=Lt&&0<=Pt&&((ar||.05<Lo)&&fe(n,Lt,Pt,Lo,To),t&&.05<Pt-Lt&&at(n,Lt,Pt,"Mount"))),lr(h),Oi(B),To=Q,ar=U,vA=q}i(Yy,"commitPassiveMountOnFiber");function xs(t,n,l,d,p,h){for(p=p&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var B=n.sibling;qy(t,n,l,d,p,B!==null?B.actualStartTime:h),n=B}}i(xs,"recursivelyTraverseReconnectPassiveEffects");function qy(t,n,l,d,p,h){var B=go(),Q=aa(),U=Hi(),q=On(),pe=vA;p&&(n.mode&2)!==jt&&0<n.actualStartTime&&(n.flags&1)!==0&&be(n,n.actualStartTime,h,Wr,l);var he=n.flags;switch(n.tag){case 0:case 11:case 15:xs(t,n,l,d,p,h),My(n,ha);break;case 23:break;case 22:var xe=n.stateNode;n.memoizedState!==null?xe._visibility&fu?xs(t,n,l,d,p,h):Xd(t,n,l,d,h):(xe._visibility|=fu,xs(t,n,l,d,p,h)),p&&he&2048&&qc(n.alternate,n);break;case 24:xs(t,n,l,d,p,h),p&&he&2048&&qh(n.alternate,n);break;default:xs(t,n,l,d,p,h)}(n.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(n,Lt,Pt,Lo,To),lr(B),Oi(Q),To=U,ar=q,vA=pe}i(qy,"reconnectPassiveEffects");function Xd(t,n,l,d,p){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var h=n.child;h!==null;){n=h.sibling;var B=t,Q=l,U=d,q=n!==null?n.actualStartTime:p,pe=vA;(h.mode&2)!==jt&&0<h.actualStartTime&&(h.flags&1)!==0&&be(h,h.actualStartTime,q,Wr,Q);var he=h.flags;switch(h.tag){case 22:Xd(B,h,Q,U,q),he&2048&&qc(h.alternate,h);break;case 24:Xd(B,h,Q,U,q),he&2048&&qh(h.alternate,h);break;default:Xd(B,h,Q,U,q)}vA=pe,h=n}}i(Xd,"recursivelyTraverseAtomicPassiveEffects");function Pc(t,n,l){if(t.subtreeFlags&Wp)for(t=t.child;t!==null;)Py(t,n,l),t=t.sibling}i(Pc,"recursivelyAccumulateSuspenseyCommit");function Py(t,n,l){switch(t.tag){case 26:if(Pc(t,n,l),t.flags&Wp)if(t.memoizedState!==null)y(l,Ol,t.memoizedState,t.memoizedProps);else{var d=t.stateNode,p=t.type;t=t.memoizedProps,((n&335544128)===n||Ap(p,t))&&dp(l,d,p,t)}break;case 5:Pc(t,n,l),t.flags&Wp&&(d=t.stateNode,p=t.type,t=t.memoizedProps,((n&335544128)===n||Ap(p,t))&&dp(l,d,p,t));break;case 3:case 4:$n?(d=Ol,Ol=fc(t.stateNode.containerInfo),Pc(t,n,l),Ol=d):Pc(t,n,l);break;case 22:t.memoizedState===null&&(d=t.alternate,d!==null&&d.memoizedState!==null?(d=Wp,Wp=16777216,Pc(t,n,l),Wp=d):Pc(t,n,l));break;default:Pc(t,n,l)}}i(Py,"accumulateSuspenseyCommitOnFiber");function Jy(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}i(Jy,"detachAlternateSiblings");function Zd(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l],p=go();Ai=d,Xy(d,t),(d.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&at(d,Lt,Pt,"Unmount"),lr(p)}Jy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jy(t),t=t.sibling}i(Zd,"recursivelyTraversePassiveUnmountEffects");function jy(t){var n=go(),l=aa(),d=Hi(),p=On();switch(t.tag){case 0:case 11:case 15:Zd(t),t.flags&2048&&Fh(t,t.return,ha|zs);break;case 3:var h=uo();Zd(t),t.stateNode.passiveEffectDuration+=Wo(h);break;case 12:h=uo(),Zd(t),t.stateNode.passiveEffectDuration+=Bi(h);break;case 22:h=t.stateNode,t.memoizedState!==null&&h._visibility&fu&&(t.return===null||t.return.tag!==13)?(h._visibility&=~fu,Vg(t),(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&at(t,Lt,Pt,"Disconnect")):Zd(t);break;default:Zd(t)}(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(t,Lt,Pt,Lo,To),lr(n),Oi(l),ar=p,To=d}i(jy,"commitPassiveUnmountOnFiber");function Vg(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var d=n[l],p=go();Ai=d,Xy(d,t),(d.mode&2)!==jt&&0<=Lt&&0<=Pt&&.05<Pt-Lt&&at(d,Lt,Pt,"Unmount"),lr(p)}Jy(t)}for(t=t.child;t!==null;)Vy(t),t=t.sibling}i(Vg,"recursivelyTraverseDisconnectPassiveEffects");function Vy(t){var n=go(),l=aa(),d=Hi(),p=On();switch(t.tag){case 0:case 11:case 15:Fh(t,t.return,ha),Vg(t);break;case 22:var h=t.stateNode;h._visibility&fu&&(h._visibility&=~fu,Vg(t));break;default:Vg(t)}(t.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(t,Lt,Pt,Lo,To),lr(n),Oi(l),ar=p,To=d}i(Vy,"disconnectPassiveEffect");function Xy(t,n){for(;Ai!==null;){var l=Ai,d=l,p=n,h=go(),B=aa(),Q=Hi(),U=On();switch(d.tag){case 0:case 11:case 15:Fh(d,p,ha);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool,p!=null&&bt(p));break;case 24:nn(d.memoizedState.cache)}if((d.mode&2)!==jt&&0<=Lt&&0<=Pt&&(ar||.05<Lo)&&fe(d,Lt,Pt,Lo,To),lr(h),Oi(B),ar=U,To=Q,d=l.child,d!==null)d.return=l,Ai=d;else e:for(l=t;Ai!==null;){if(d=Ai,h=d.sibling,B=d.return,Rs(d),d===l){Ai=null;break e}if(h!==null){h.return=B,Ai=h;break e}Ai=B}}}i(Xy,"commitPassiveUnmountEffectsInsideOfDeletedTree_begin");function Ph(t){var n=cv(t);if(n!=null){if(typeof n.memoizedProps["data-testname"]!="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return n}if(t=sE(t),t===null)throw Error("Could not find React container within specified host subtree.");return t.stateNode.current}i(Ph,"findFiberRootForHostRoot");function Jh(t,n){var l=t.tag;switch(n.$$typeof){case XI:if(t.type===n.value)return!0;break;case ZI:e:{for(n=n.value,t=[t,0],l=0;l<t.length;){var d=t[l++],p=d.tag,h=t[l++],B=n[h];if(p!==5&&p!==26&&p!==27||!Ns(d)){for(;B!=null&&Jh(d,B);)h++,B=n[h];if(h===n.length){n=!0;break e}else for(d=d.child;d!==null;)t.push(d,h),d=d.sibling}}n=!1}return n;case WI:if((l===5||l===26||l===27)&&pp(t.stateNode,n.value))return!0;break;case eB:if((l===5||l===6||l===26||l===27)&&(t=lE(t),t!==null&&0<=t.indexOf(n.value)))return!0;break;case $I:if((l===5||l===26||l===27)&&(t=t.memoizedProps["data-testname"],typeof t=="string"&&t.toLowerCase()===n.value.toLowerCase()))return!0;break;default:throw Error("Invalid selector type specified.")}return!1}i(Jh,"matchSelector");function Xg(t){switch(t.$$typeof){case XI:return"<"+(ce(t.value)||"Unknown")+">";case ZI:return":has("+(Xg(t)||"")+")";case WI:return'[role="'+t.value+'"]';case eB:return'"'+t.value+'"';case $I:return'[data-testname="'+t.value+'"]';default:throw Error("Invalid selector type specified.")}}i(Xg,"selectorToString");function Zy(t,n){var l=[];t=[t,0];for(var d=0;d<t.length;){var p=t[d++],h=p.tag,B=t[d++],Q=n[B];if(h!==5&&h!==26&&h!==27||!Ns(p)){for(;Q!=null&&Jh(p,Q);)B++,Q=n[B];if(B===n.length)l.push(p);else for(p=p.child;p!==null;)t.push(p,B),p=p.sibling}}return l}i(Zy,"findPaths");function Zg(t,n){if(!as)throw Error("Test selector API is not supported by this renderer.");t=Ph(t),t=Zy(t,n),n=[],t=Array.from(t);for(var l=0;l<t.length;){var d=t[l++],p=d.tag;if(p===5||p===26||p===27)Ns(d)||n.push(d.stateNode);else for(d=d.child;d!==null;)t.push(d),d=d.sibling}return n}i(Zg,"findAllNodes");function ev(){as&&tB.forEach(function(t){return t()})}i(ev,"onCommitRoot");function Wy(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||Ae.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}i(Wy,"isConcurrentActEnvironment");function ua(t){if((Dn&fi)!==di&&An!==0)return An&-An;var n=Ae.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(t),_e()):iE()}i(ua,"requestUpdateLane");function $y(){if(Fa===0)if((An&536870912)===0||xn){var t=ge;ge<<=1,(ge&3932160)===0&&(ge=262144),Fa=t}else Fa=536870912;return t=cs.current,t!==null&&(t.flags|=32),Fa}i($y,"requestDeferredLane");function Eo(t,n,l){if(tm&&console.error("useInsertionEffect must not schedule updates."),nQ&&(uB=!0),(t===fo&&(ro===wf||ro===xf)||t.cancelPendingCommit!==null)&&(iA(t,0),Sl(t,An,Fa,!1)),it(t,l),(Dn&fi)!==di&&t===fo){if(mc)switch(n.tag){case 0:case 11:case 15:t=mn&&ae(mn)||"Unknown",rD.has(t)||(rD.add(t),n=ae(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,t,t));break;case 1:oD||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),oD=!0)}}else pc&&et(t,n,l),EI(n),t===fo&&((Dn&fi)===di&&(kA|=l),Go===MA&&Sl(t,An,Fa,!1)),_r(t)}i(Eo,"scheduleUpdateOnFiber");function jh(t,n,l){if((Dn&(fi|Ys))!==di)throw Error("Should not already be working.");if(An!==0&&mn!==null){var d=mn,p=wn();switch(Zw){case HE:case wf:var h=CE;Bo&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Suspended",h,p,"Components \u269B",void 0,"primary-light")):console.timeStamp("Suspended",h,p,"Components \u269B",void 0,"primary-light"));break;case xf:h=CE,Bo&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Action",h,p,"Components \u269B",void 0,"primary-light")):console.timeStamp("Action",h,p,"Components \u269B",void 0,"primary-light"));break;default:Bo&&(d=p-CE,3>d||console.timeStamp("Blocked",CE,p,"Components \u269B",void 0,5>d?"primary-light":10>d?"primary":100>d?"primary-dark":"error"))}}h=(l=!l&&(n&127)===0&&(n&t.expiredLanes)===0||qe(t,n))?tv(t,n):Xh(t,n,!0);var B=l;do{if(h===Eu){$p&&!l&&Sl(t,n,0,!1),n=ro,CE=Or(),Zw=n;break}else{if(d=wn(),p=t.current.alternate,B&&!tI(p)){Ne(n),p=ji,h=d,!Bo||h<=p||(pr?pr.run(console.timeStamp.bind(console,"Teared Render",p,h,vn,"Scheduler \u269B","error")):console.timeStamp("Teared Render",p,h,vn,"Scheduler \u269B","error")),Jc(n,d),h=Xh(t,n,!1),B=!1;continue}if(h===Rf){if(B=n,t.errorRecoveryDisabledLanes&B)var Q=0;else Q=t.pendingLanes&-536870913,Q=Q!==0?Q:Q&536870912?536870912:0;if(Q!==0){Ne(n),No(ji,d,n,pr),Jc(n,d),n=Q;e:{d=t,h=B,B=UE;var U=ui&&d.current.memoizedState.isDehydrated;if(U&&(iA(d,Q).flags|=256),Q=Xh(d,Q,!1),Q!==Rf){if(Jv&&!U){d.errorRecoveryDisabledLanes|=h,kA|=h,h=MA;break e}d=Ea,Ea=B,d!==null&&(Ea===null?Ea=d:Ea.push.apply(Ea,d))}h=Q}if(B=!1,h!==Rf)continue;d=wn()}}if(h===OE){Ne(n),No(ji,d,n,pr),Jc(n,d),iA(t,0),Sl(t,n,0,!0);break}e:{switch(l=t,h){case Eu:case OE:throw Error("Root did not complete. This is a bug in React.");case MA:if((n&4194048)!==n)break;case oB:Ne(n),_t(ji,d,n,pr),Jc(n,d),p=n,(p&127)!==0?OI=d:(p&4194048)!==0&&(HI=d),Sl(l,n,Fa,!OA);break e;case Rf:Ea=null;break;case nB:case qx:break;default:throw Error("Unknown root exit status.")}if(Ae.actQueue!==null)Zh(l,p,n,Ea,GE,aB,Fa,kA,Df,h,null,null,ji,d);else{if((n&62914560)===n&&(B=sB+jx-wn(),10<B)){if(Sl(l,n,Fa,!OA),ye(l,0,!0)!==0)break e;Hl=n,l.timeoutHandle=Ma(eI.bind(null,l,p,Ea,GE,aB,n,Fa,kA,Df,OA,h,"Throttled",ji,d),B);break e}eI(l,p,Ea,GE,aB,n,Fa,kA,Df,OA,h,null,ji,d)}}}break}while(!0);_r(t)}i(jh,"performWorkOnRoot");function eI(t,n,l,d,p,h,B,Q,U,q,pe,he,xe,Tt){t.timeoutHandle=Ts;var $t=n.subtreeFlags,lo=null;if(($t&8192||($t&16785408)===16785408)&&(lo=hA(),Py(n,h,lo),$t=(h&62914560)===h?sB-wn():(h&4194048)===h?Jx-wn():0,$t=fp(lo,$t),$t!==null)){Hl=h,t.cancelPendingCommit=$t(Zh.bind(null,t,n,h,l,d,p,B,Q,U,pe,lo,gp(lo,t.containerInfo),xe,Tt)),Sl(t,h,B,!q);return}Zh(t,n,h,l,d,p,B,Q,U,pe,lo,he,xe,Tt)}i(eI,"commitRootWhenReady");function tI(t){for(var n=t;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var p=l[d],h=p.getSnapshot;p=p.value;try{if(!ga(h(),p))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}i(tI,"isRenderConsistentWithExternalStores");function Sl(t,n,l,d){n&=~jv,n&=~kA,t.suspendedLanes|=n,t.pingedLanes&=~n,d&&(t.warmLanes|=n),d=t.expirationTimes;for(var p=n;0<p;){var h=31-vr(p),B=1<<h;d[h]=-1,p&=~B}l!==0&&P(t,l,n)}i(Sl,"markRootSuspended");function Wd(){return(Dn&(fi|Ys))===di?(Va(0,!1),!1):!0}i(Wd,"flushSyncWork");function $d(){return(Dn&(fi|Ys))!==di}i($d,"isAlreadyRendering");function ef(){if(mn!==null){if(ro===Ga)var t=mn.return;else t=mn,ia(),Td(t),zp=null,wE=0,t=mn;for(;t!==null;)Pg(t.alternate,t),t=t.return;mn=null}}i(ef,"resetWorkInProgressStack");function Jc(t,n){(t&127)!==0&&(hf=n),(t&4194048)!==0&&(Au=n)}i(Jc,"finalizeRender");function iA(t,n){Bo&&(console.timeStamp("Blocking Track",.003,.003,"Blocking","Scheduler \u269B","primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition","Scheduler \u269B","primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense","Scheduler \u269B","primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle","Scheduler \u269B","primary-light"));var l=ji;if(ji=Or(),An!==0&&0<l){if(Ne(An),Go===nB||Go===MA)_t(l,ji,n,pr);else{var d=ji,p=pr;if(Bo&&!(d<=l)){var h=(n&738197653)===n?"tertiary-dark":"primary-dark",B=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";p?p.run(console.timeStamp.bind(console,B,l,d,vn,"Scheduler \u269B",h)):console.timeStamp(B,l,d,vn,"Scheduler \u269B",h)}}Jc(An,ji)}if(l=pr,pr=null,(n&127)!==0){pr=mE,p=0<=Ec&&Ec<hf?hf:Ec,d=0<=Ef&&Ef<hf?hf:Ef,h=0<=d?d:0<=p?p:ji,0<=OI&&(Ne(2),Gn(OI,h,n,l)),l=p;var Q=d,U=hE,q=0<kp,pe=DA===1,he=DA===2;if(p=ji,d=mE,h=Iv,B=Bv,Bo){if(vn="Blocking",0<l?l>p&&(l=p):l=p,0<Q?Q>l&&(Q=l):Q=l,U!==null&&l>Q){var xe=q?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+U,Q,l,vn,"Scheduler \u269B",xe)):console.timeStamp(q?"Consecutive":"Event: "+U,Q,l,vn,"Scheduler \u269B",xe)}p>l&&(Q=pe?"error":(n&738197653)===n?"tertiary-light":"primary-light",pe=he?"Promise Resolved":pe?"Cascading Update":5<p-l?"Update Blocked":"Update",he=[],B!=null&&he.push(["Component name",B]),h!=null&&he.push(["Method name",h]),l={start:l,end:p,detail:{devtools:{properties:he,track:vn,trackGroup:"Scheduler \u269B",color:Q}}},d?d.run(performance.measure.bind(performance,pe,l)):performance.measure(pe,l))}Ec=-1.1,DA=0,Bv=Iv=null,OI=-1.1,kp=Ef,Ef=-1.1,hf=Or()}if((n&4194048)!==0&&(pr=EE,p=0<=du&&du<Au?Au:du,l=0<=Ls&&Ls<Au?Au:Ls,d=0<=TA&&TA<Au?Au:TA,h=0<=d?d:0<=l?l:ji,0<=HI&&(Ne(256),Gn(HI,h,n,pr)),he=d,Q=Cf,U=0<_A,q=Sv===2,h=ji,d=EE,B=Vw,pe=Xw,Bo&&(vn="Transition",0<l?l>h&&(l=h):l=h,0<p?p>l&&(p=l):p=l,0<he?he>p&&(he=p):he=p,p>he&&Q!==null&&(xe=U?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,U?"Consecutive":"Event: "+Q,he,p,vn,"Scheduler \u269B",xe)):console.timeStamp(U?"Consecutive":"Event: "+Q,he,p,vn,"Scheduler \u269B",xe)),l>p&&(d?d.run(console.timeStamp.bind(console,"Action",p,l,vn,"Scheduler \u269B","primary-dark")):console.timeStamp("Action",p,l,vn,"Scheduler \u269B","primary-dark")),h>l&&(p=q?"Promise Resolved":5<h-l?"Update Blocked":"Update",he=[],pe!=null&&he.push(["Component name",pe]),B!=null&&he.push(["Method name",B]),l={start:l,end:h,detail:{devtools:{properties:he,track:vn,trackGroup:"Scheduler \u269B",color:"primary-light"}}},d?d.run(performance.measure.bind(performance,p,l)):performance.measure(p,l))),Ls=du=-1.1,Sv=0,HI=-1.1,_A=TA,TA=-1.1,Au=Or()),l=t.timeoutHandle,l!==Ts&&(t.timeoutHandle=Ts,rE(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Hl=0,ef(),fo=t,mn=l=vl(t.current,null),An=n,ro=Ga,As=null,OA=!1,$p=qe(t,n),Jv=!1,Go=Eu,Df=Fa=jv=kA=HA=0,Ea=UE=null,aB=!1,(n&8)!==0&&(n|=n&32),d=t.entangledLanes,d!==0)for(t=t.entanglements,d&=n;0<d;)p=31-vr(d),h=1<<p,n|=t[p],d&=~h;return yc=n,Ju(),t=Uw(),1e3<t-kw&&(Ae.recentlyCreatedOwnerStacks=0,kw=t),Nl.discardPendingWarnings(),l}i(iA,"prepareFreshStack");function nI(t,n){Zt=null,Ae.H=NE,Ae.getCurrentStack=null,mc=!1,lu=null,n===Fp||n===zI?(n=Qa(),ro=HE):n===Tv?(n=Qa(),ro=Px):ro=n===zv?Pv:n!==null&&typeof n=="object"&&typeof n.then=="function"?kE:rB,As=n;var l=mn;l===null?(Go=OE,Ld(t,Jn(n,t.current))):l.mode&2&&Hc(l)}i(nI,"handleThrow");function oI(){var t=cs.current;return t===null?!0:(An&4194048)===An?Fs===null:(An&62914560)===An||(An&536870912)!==0?t===Fs:!1}i(oI,"shouldRemainOnPreviousScreen");function Vh(){var t=Ae.H;return Ae.H=NE,t===null?NE:t}i(Vh,"pushDispatcher");function rI(){var t=Ae.A;return Ae.A=O4,t}i(rI,"pushAsyncDispatcher");function Wg(t){pr===null&&(pr=t._debugTask==null?null:t._debugTask)}i(Wg,"markRenderDerivedCause");function $g(){Go=MA,OA||(An&4194048)!==An&&cs.current!==null||($p=!0),(HA&134217727)===0&&(kA&134217727)===0||fo===null||Sl(fo,An,Fa,!1)}i($g,"renderDidSuspendDelayIfPossible");function Xh(t,n,l){var d=Dn;Dn|=fi;var p=Vh(),h=rI();if(fo!==t||An!==n){if(pc){var B=t.memoizedUpdaters;0<B.size&&(lA(t,An),B.clear()),Et(t,n)}GE=null,iA(t,n)}n=!1,B=Go;e:do try{if(ro!==Ga&&mn!==null){var Q=mn,U=As;switch(ro){case Pv:ef(),B=oB;break e;case HE:case wf:case xf:case kE:cs.current===null&&(n=!0);var q=ro;if(ro=Ga,As=null,aA(t,Q,U,q),l&&$p){B=Eu;break e}break;default:q=ro,ro=Ga,As=null,aA(t,Q,U,q)}}iI(),B=Go;break}catch(pe){nI(t,pe)}while(!0);return n&&t.shellSuspendCounter++,ia(),Dn=d,Ae.H=p,Ae.A=h,mn===null&&(fo=null,An=0,Ju()),B}i(Xh,"renderRootSync");function iI(){for(;mn!==null;)aI(mn)}i(iI,"workLoopSync");function tv(t,n){var l=Dn;Dn|=fi;var d=Vh(),p=rI();if(fo!==t||An!==n){if(pc){var h=t.memoizedUpdaters;0<h.size&&(lA(t,An),h.clear()),Et(t,n)}GE=null,LE=wn()+Vv,iA(t,n)}else $p=qe(t,n);e:do try{if(ro!==Ga&&mn!==null)t:switch(n=mn,h=As,ro){case rB:ro=Ga,As=null,aA(t,n,h,rB);break;case wf:case xf:if(ri(h)){ro=Ga,As=null,sI(n);break}n=i(function(){ro!==wf&&ro!==xf||fo!==t||(ro=iB),_r(t)},"lanes"),h.then(n,n);break e;case HE:ro=iB;break e;case Px:ro=qv;break e;case iB:ri(h)?(ro=Ga,As=null,sI(n)):(ro=Ga,As=null,aA(t,n,h,iB));break;case qv:var B=null;switch(mn.tag){case 26:B=mn.memoizedState;case 5:case 27:var Q=mn,U=Q.type,q=Q.pendingProps;if(B?g(B):sc(Q.stateNode,U,q)){ro=Ga,As=null;var pe=Q.sibling;if(pe!==null)mn=pe;else{var he=Q.return;he!==null?(mn=he,ep(he)):mn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ro=Ga,As=null,aA(t,n,h,qv);break;case kE:ro=Ga,As=null,aA(t,n,h,kE);break;case Pv:ef(),Go=oB;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ae.actQueue!==null?iI():nv();break}catch(xe){nI(t,xe)}while(!0);return ia(),Ae.H=d,Ae.A=p,Dn=l,mn!==null?Eu:(fo=null,An=0,Ju(),Go)}i(tv,"renderRootConcurrent");function nv(){for(;mn!==null&&!Jt();)aI(mn)}i(nv,"workLoopConcurrentByScheduler");function aI(t){var n=t.alternate;(t.mode&2)!==jt?(Oc(t),n=ft(t,Qi,n,t,yc),Hc(t)):n=ft(t,Qi,n,t,yc),t.memoizedProps=t.pendingProps,n===null?ep(t):mn=n}i(aI,"performUnitOfWork");function sI(t){var n=ft(t,ov,t);t.memoizedProps=t.pendingProps,n===null?ep(t):mn=n}i(sI,"replaySuspendedUnitOfWork");function ov(t){var n=t.alternate,l=(t.mode&2)!==jt;switch(l&&Oc(t),t.tag){case 15:case 0:n=vs(n,t,t.pendingProps,t.type,void 0,An);break;case 11:n=vs(n,t,t.pendingProps,t.type.render,t.ref,An);break;case 5:Td(t);default:Pg(n,t),t=mn=ur(t,yc),n=Qi(n,t,yc)}return l&&Hc(t),n}i(ov,"replayBeginWork");function aA(t,n,l,d){ia(),Td(n),zp=null,wE=0;var p=n.return;try{if(_y(t,p,n,l,An)){Go=OE,Ld(t,Jn(l,t.current)),mn=null;return}}catch(h){if(p!==null)throw mn=p,h;Go=OE,Ld(t,Jn(l,t.current)),mn=null;return}n.flags&32768?(xn||d===rB?t=!0:$p||(An&536870912)!==0?t=!1:(OA=t=!0,(d===wf||d===xf||d===HE||d===kE)&&(d=cs.current,d!==null&&d.tag===13&&(d.flags|=16384))),lI(n,t)):ep(n)}i(aA,"throwAndUnwindWorkLoop");function ep(t){var n=t;do{if((n.flags&32768)!==0){lI(n,OA);return}var l=n.alternate;if(t=n.return,Oc(n),l=ft(n,Uh,l,n,yc),(n.mode&2)!==jt&&Ed(n),l!==null){mn=l;return}if(n=n.sibling,n!==null){mn=n;return}mn=n=t}while(n!==null);Go===Eu&&(Go=qx)}i(ep,"completeUnitOfWork");function lI(t,n){do{var l=nc(t.alternate,t);if(l!==null){l.flags&=32767,mn=l;return}if((t.mode&2)!==jt){Ed(t),l=t.actualDuration;for(var d=t.child;d!==null;)l+=d.actualDuration,d=d.sibling;t.actualDuration=l}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(t=t.sibling,t!==null)){mn=t;return}mn=t=l}while(t!==null);Go=oB,mn=null}i(lI,"unwindUnitOfWork");function Zh(t,n,l,d,p,h,B,Q,U,q,pe,he,xe,Tt){t.cancelPendingCommit=null;do sA();while(Gr!==LA);if(Nl.flushLegacyContextWarning(),Nl.flushPendingUnsafeLifecycleWarnings(),(Dn&(fi|Ys))!==di)throw Error("Should not already be working.");if(Ne(l),q===Rf?No(xe,Tt,l,pr):d!==null?In(xe,Tt,l,d,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,pr):tt(xe,Tt,l,pr),n!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(h=n.lanes|n.childLanes,h|=Nv,yt(t,l,h,B,Q,U),t===fo&&(mn=fo=null,An=0),em=n,GA=t,Hl=l,Wv=h,eQ=p,eD=d,$v=Tt,tD=he,kl=lB,nD=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,hI(gf,function(){return gA(),kl===lB&&(kl=Zv),fI(),null})):(t.callbackNode=null,t.callbackPriority=0),uu=null,xA=Or(),he!==null&&xr(Tt,xA,he,pr),d=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||d){d=Ae.T,Ae.T=null,p=Yi(),nr(2),B=Dn,Dn|=Ys;try{WS(t,n,l)}finally{Dn=B,nr(p),Ae.T=d}}Gr=Xx,cI(),uI(),AI()}}i(Zh,"commitRoot");function cI(){if(Gr===Xx){Gr=LA;var t=GA,n=em,l=Hl,d=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||d){d=Ae.T,Ae.T=null;var p=Yi();nr(2);var h=Dn;Dn|=Ys;try{Xp=l,Zp=t,Pr(),Fy(n,t),Zp=Xp=null,ac(t.containerInfo)}finally{Dn=h,nr(p),Ae.T=d}}t.current=n,Gr=Zx}}i(cI,"flushMutationEffects");function uI(){if(Gr===Zx){Gr=LA;var t=nD;if(t!==null){xA=Or();var n=cu,l=xA;!Bo||l<=n||(Up?Up.run(console.timeStamp.bind(console,t,n,l,vn,"Scheduler \u269B","secondary-light")):console.timeStamp(t,n,l,vn,"Scheduler \u269B","secondary-light"))}t=GA,n=em,l=Hl;var d=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||d){d=Ae.T,Ae.T=null;var p=Yi();nr(2);var h=Dn;Dn|=Ys;try{Xp=l,Zp=t,Pr(),Br(t,n.alternate,n),Zp=Xp=null}finally{Dn=h,nr(p),Ae.T=d}}t=$v,n=tD,cu=Or(),t=n===null?t:xA,n=cu,l=kl===Xv,d=pr,uu!==null?Vo(t,n,uu,!1,d):!Bo||n<=t||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",t,n,vn,"Scheduler \u269B",l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",t,n,vn,"Scheduler \u269B",l?"error":"secondary-dark")),Gr=Wx}}i(uI,"flushLayoutEffects");function AI(){if(Gr===$x||Gr===Wx){if(Gr===$x){var t=cu;cu=Or();var n=cu,l=kl===Xv;!Bo||n<=t||(Up?Up.run(console.timeStamp.bind(console,l?"Interrupted View Transition":"Starting Animation",t,n,vn,"Scheduler \u269B",l?"error":"secondary-light")):console.timeStamp(l?"Interrupted View Transition":"Starting Animation",t,n,vn,"Scheduler \u269B",l?" error":"secondary-light")),kl!==Xv&&(kl=Vx)}Gr=LA,Kn(),t=GA;var d=em;n=Hl,l=eD;var p=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;p?Gr=cB:(Gr=LA,em=GA=null,dI(t,t.pendingLanes),Tf=0,zE=null);var h=t.pendingLanes;if(h===0&&(UA=null),p||eE(t),h=te(n),d=d.stateNode,Ji&&typeof Ji.onCommitFiberRoot=="function")try{var B=(d.current.flags&128)===128;switch(h){case 2:var Q=Mn;break;case 8:Q=_l;break;case 32:Q=gf;break;case 268435456:Q=Hw;break;default:Q=gf}Ji.onCommitFiberRoot(_p,d,Q,B)}catch(he){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",he))}if(pc&&t.memoizedUpdaters.clear(),ev(),l!==null){B=Ae.T,Q=Yi(),nr(2),Ae.T=null;try{var U=t.onRecoverableError;for(d=0;d<l.length;d++){var q=l[d],pe=rv(q.stack);ft(q.source,U,q.value,pe)}}finally{Ae.T=B,nr(Q)}}(Hl&3)!==0&&sA(),_r(t),h=t.pendingLanes,(n&261930)!==0&&(h&42)!==0?(UI=!0,t===tQ?FE++:(FE=0,tQ=t)):FE=0,p||Jc(n,cu),ui&&AE(),Va(0,!1)}}i(AI,"flushSpawnedWork");function rv(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:i(function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')},"get")}),t}i(rv,"makeErrorInfo");function dI(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,nn(n)))}i(dI,"releaseRootPooledCache");function sA(){return cI(),uI(),AI(),fI()}i(sA,"flushPendingEffects");function fI(){if(Gr!==cB)return!1;var t=GA,n=Wv;Wv=0;var l=te(Hl),d=32>l?32:l;l=Ae.T;var p=Yi();try{nr(d),Ae.T=null;var h=eQ;eQ=null,d=GA;var B=Hl;if(Gr=LA,em=GA=null,Hl=0,(Dn&(fi|Ys))!==di)throw Error("Cannot flush passive effects while already rendering.");Ne(B),nQ=!0,uB=!1;var Q=0;if(uu=null,Q=wn(),kl===Vx){var U=cu,q=Q;!Bo||q<=U||(Up?Up.run(console.timeStamp.bind(console,"Animating",U,q,vn,"Scheduler \u269B","secondary-dark")):console.timeStamp("Animating",U,q,vn,"Scheduler \u269B","secondary-dark"))}else{U=cu,q=Q;var pe=kl===Zv;!Bo||q<=U||(pr?pr.run(console.timeStamp.bind(console,pe?"Waiting for Paint":"Waiting",U,q,vn,"Scheduler \u269B","secondary-light")):console.timeStamp(pe?"Waiting for Paint":"Waiting",U,q,vn,"Scheduler \u269B","secondary-light"))}U=Dn,Dn|=Ys;var he=d.current;Pr(),jy(he);var xe=d.current;he=$v,Pr(),Yy(d,xe,B,h,he),eE(d),Dn=U;var Tt=wn();if(xe=Q,he=pr,uu!==null?Vo(xe,Tt,uu,!0,he):!Bo||Tt<=xe||(he?he.run(console.timeStamp.bind(console,"Remaining Effects",xe,Tt,vn,"Scheduler \u269B","secondary-dark")):console.timeStamp("Remaining Effects",xe,Tt,vn,"Scheduler \u269B","secondary-dark")),Jc(B,Tt),Va(0,!1),uB?d===zE?Tf++:(Tf=0,zE=d):Tf=0,uB=nQ=!1,Ji&&typeof Ji.onPostCommitFiberRoot=="function")try{Ji.onPostCommitFiberRoot(_p,d)}catch(lo){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",lo))}var $t=d.current.stateNode;return $t.effectDuration=0,$t.passiveEffectDuration=0,!0}finally{nr(p),Ae.T=l,dI(t,n)}}i(fI,"flushPassiveEffects");function gI(t,n,l){n=Jn(l,n),Cd(n),n=Mg(t.stateNode,n,2),t=ba(t,n,2),t!==null&&(it(t,2),_r(t))}i(gI,"captureCommitPhaseErrorOnRoot");function kn(t,n,l){if(tm=!1,t.tag===3)gI(t,t,l);else{for(;n!==null;){if(n.tag===3){gI(n,t,l);return}if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(UA===null||!UA.has(d))){t=Jn(l,t),Cd(t),l=Og(2),d=ba(n,l,2),d!==null&&(Hg(l,d,n,t),it(d,2),_r(d));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
169
|
+
|
|
170
|
+
Error message:
|
|
171
|
+
|
|
172
|
+
%s`,l)}}i(kn,"captureCommitPhaseError");function Wh(t,n,l){var d=t.pingCache;if(d===null){d=t.pingCache=new H4;var p=new Set;d.set(n,p)}else p=d.get(n),p===void 0&&(p=new Set,d.set(n,p));p.has(l)||(Jv=!0,p.add(l),d=iv.bind(null,t,n,l),pc&&lA(t,l),n.then(d,d))}i(Wh,"attachPingListener");function iv(t,n,l){var d=t.pingCache;d!==null&&d.delete(n),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,(l&127)!==0?0>Ec&&(hf=Ec=Or(),mE=MI("Promise Resolved"),DA=2):(l&4194048)!==0&&0>Ls&&(Au=Ls=Or(),EE=MI("Promise Resolved"),Sv=2),Wy()&&Ae.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
173
|
+
|
|
174
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
175
|
+
|
|
176
|
+
act(() => {
|
|
177
|
+
/* finish loading suspended data */
|
|
178
|
+
});
|
|
179
|
+
/* assert on the output */
|
|
180
|
+
|
|
181
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),fo===t&&(An&l)===l&&(Go===MA||Go===nB&&(An&62914560)===An&&wn()-sB<jx?(Dn&fi)===di&&iA(t,0):jv|=l,Df===An&&(Df=0)),_r(t)}i(iv,"pingSuspendedRoot");function pI(t,n){n===0&&(n=je()),t=ii(t,n),t!==null&&(it(t,n),_r(t))}i(pI,"retryTimedOutBoundary");function mI(t){var n=t.memoizedState,l=0;n!==null&&(l=n.retryLane),pI(t,l)}i(mI,"retryDehydratedSuspenseBoundary");function av(t,n){var l=0;switch(t.tag){case 31:case 13:var d=t.stateNode,p=t.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=t.stateNode;break;case 22:d=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(n),pI(t,l)}i(av,"resolveRetryWakeable");function $h(t,n,l){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var d=t,p=n,h=p.type===lp;h=l||h,p.tag!==22?p.flags&67108864?h&&ft(p,Ta,d,p):$h(d,p,h):p.memoizedState===null&&(h&&p.flags&8192?ft(p,Ta,d,p):p.subtreeFlags&67108864&&ft(p,$h,d,p,h)),n=n.sibling}}i($h,"recursivelyTraverseAndDoubleInvokeEffectsInDEV");function Ta(t,n){De(!0);try{rc(n),Vy(n),Ky(t,n.alternate,n,!1),qy(t,n,0,null,!1,0)}finally{De(!1)}}i(Ta,"doubleInvokeEffectsOnFiber");function eE(t){var n=!0;t.current.mode&24||(n=!1),$h(t,t.current,n)}i(eE,"commitDoubleInvokeEffectsInDEV");function tp(t){if((Dn&fi)===di){var n=t.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=ae(t)||"ReactComponent",AB!==null){if(AB.has(n))return;AB.add(n)}else AB=new Set([n]);ft(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}i(tp,"warnAboutUpdateOnNotYetMountedFiberInDEV");function lA(t,n){pc&&t.memoizedUpdaters.forEach(function(l){et(t,l,n)})}i(lA,"restorePendingUpdaters");function hI(t,n){var l=Ae.actQueue;return l!==null?(l.push(n),L4):Ut(t,n)}i(hI,"scheduleCallback");function EI(t){Wy()&&Ae.actQueue===null&&ft(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
182
|
+
|
|
183
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
184
|
+
|
|
185
|
+
act(() => {
|
|
186
|
+
/* fire events that update state */
|
|
187
|
+
});
|
|
188
|
+
/* assert on the output */
|
|
189
|
+
|
|
190
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ae(t))})}i(EI,"warnIfUpdatesNotWrappedWithActDEV");function jc(t){if(qs===null)return t;var n=qs(t);return n===void 0?t:n.current}i(jc,"resolveFunctionForHotReloading");function np(t){if(qs===null)return t;var n=qs(t);return n===void 0?t!=null&&typeof t.render=="function"&&(n=jc(t.render),t.render!==n)?(n={$$typeof:Xr,render:n},t.displayName!==void 0&&(n.displayName=t.displayName),n):t:n.current}i(np,"resolveForwardRefForHotReloading");function tE(t,n){if(qs===null)return!1;var l=t.elementType;n=n.type;var d=!1,p=typeof n=="object"&&n!==null?n.$$typeof:null;switch(t.tag){case 1:typeof n=="function"&&(d=!0);break;case 0:(typeof n=="function"||p===Ki)&&(d=!0);break;case 11:(p===Xr||p===Ki)&&(d=!0);break;case 14:case 15:(p===dA||p===Ki)&&(d=!0);break;default:return!1}return!!(d&&(t=qs(l),t!==void 0&&t===qs(n)))}i(tE,"isCompatibleFamilyForHotReloading");function CI(t){qs!==null&&typeof WeakSet=="function"&&(nm===null&&(nm=new WeakSet),nm.add(t))}i(CI,"markFailedErrorBoundaryForHotReloading");function yI(t,n,l){do{var d=t,p=d.alternate,h=d.child,B=d.sibling,Q=d.tag;d=d.type;var U=null;switch(Q){case 0:case 15:case 1:U=d;break;case 11:U=d.render}if(qs===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1;if(d=!1,U!==null&&(U=qs(U),U!==void 0&&(l.has(U)?d=!0:n.has(U)&&(Q===1?d=!0:q=!0))),nm!==null&&(nm.has(t)||p!==null&&nm.has(p))&&(d=!0),d&&(t._debugNeedsRemount=!0),(d||q)&&(p=ii(t,2),p!==null&&Eo(p,t,2)),h===null||d||yI(h,n,l),B===null)break;t=B}while(!0)}i(yI,"scheduleFibersWithFamiliesRecursively");function sv(t,n,l,d){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,iD||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}i(sv,"FiberNode");function op(t){return t=t.prototype,!(!t||!t.isReactComponent)}i(op,"shouldConstruct");function vl(t,n){var l=t.alternate;switch(l===null?(l=S(t.tag,n,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l._debugOwner=t._debugOwner,l._debugStack=t._debugStack,l._debugTask=t._debugTask,l._debugHookTypes=t._debugHookTypes,l.alternate=t,t.alternate=l):(l.pendingProps=n,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,n=t.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l.selfBaseDuration=t.selfBaseDuration,l.treeBaseDuration=t.treeBaseDuration,l._debugInfo=t._debugInfo,l._debugNeedsRemount=t._debugNeedsRemount,l.tag){case 0:case 15:l.type=jc(t.type);break;case 1:l.type=jc(t.type);break;case 11:l.type=np(t.type)}return l}i(vl,"createWorkInProgress");function ur(t,n){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,n=l.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},t.selfBaseDuration=l.selfBaseDuration,t.treeBaseDuration=l.treeBaseDuration),t}i(ur,"resetWorkInProgress");function rp(t,n,l,d,p,h){var B=0,Q=t;if(typeof t=="function")op(t)&&(B=1),Q=jc(Q);else if(typeof t=="string")$n&&I?(B=mo(),B=Tl(t,l,B)?26:Le(t)?27:5):$n?(B=mo(),B=Tl(t,l,B)?26:5):B=I&&Le(t)?27:5;else e:switch(t){case rf:return n=S(31,l,n,p),n.elementType=rf,n.lanes=h,n;case AA:return ic(l.children,p,h,n);case lp:B=8,p|=24;break;case nE:return t=l,d=p,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),n=S(12,t,n,d|2),n.elementType=nE,n.lanes=h,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case cp:return n=S(13,l,n,p),n.elementType=cp,n.lanes=h,n;case oE:return n=S(19,l,n,p),n.elementType=oE,n.lanes=h,n;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case tr:B=10;break e;case Zc:B=9;break e;case Xr:B=11,Q=np(Q);break e;case dA:B=14;break e;case Ki:B=16,Q=null;break e}Q="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?l="null":Ar(t)?l="array":t!==void 0&&t.$$typeof===Ql?(l="<"+(ce(t.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,B=d?typeof d.tag=="number"?ae(d):typeof d.name=="string"?d.name:null:null,B&&(Q+=`
|
|
191
|
+
|
|
192
|
+
Check the render method of \``+B+"`."),B=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+Q)),Q=null}return n=S(B,l,n,p),n.elementType=t,n.type=Q,n.lanes=h,n._debugOwner=d,n}i(rp,"createFiberFromTypeAndProps");function ip(t,n,l){return n=rp(t.type,t.key,t.props,t._owner,n,l),n._debugOwner=t._owner,n._debugStack=t._debugStack,n._debugTask=t._debugTask,n}i(ip,"createFiberFromElement");function ic(t,n,l,d){return t=S(7,t,d,n),t.lanes=l,t}i(ic,"createFiberFromFragment");function ap(t,n,l){return t=S(6,t,null,n),t.lanes=l,t}i(ap,"createFiberFromText");function Vc(t){var n=S(18,null,null,jt);return n.stateNode=t,n}i(Vc,"createFiberFromDehydratedFragment");function tf(t,n,l){return n=S(4,t.children!==null?t.children:[],t.key,n),n.lanes=l,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}i(tf,"createFiberFromPortal");function cA(t,n,l,d,p,h,B,Q,U){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ts,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=W(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=W(0),this.hiddenUpdates=W(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=h,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)t.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}i(cA,"FiberRootNode");function Xc(t,n,l,d,p,h,B,Q,U,q,pe,he){return t=new cA(t,n,l,B,U,q,pe,he,Q),n=1,h===!0&&(n|=24),h=S(3,null,null,n|2),t.current=h,h.stateNode=t,n=At(),bt(n),t.pooledCache=n,bt(n),h.memoizedState={element:d,isDehydrated:l,cache:n},dg(h),t}i(Xc,"createFiberRoot");function Fi(t){return""+t}i(Fi,"testStringCoercion");function II(t){return t?(t=Io,t):Io}i(II,"getContextForSubtree");function BI(t,n,l,d){return nf(n.current,2,t,n,l,d),2}i(BI,"updateContainerSync");function nf(t,n,l,d,p,h){if(Ji&&typeof Ji.onScheduleFiberRoot=="function")try{Ji.onScheduleFiberRoot(_p,d,l)}catch(B){gc||(gc=!0,console.error("React instrumentation encountered an error: %o",B))}p=II(p),d.context===null?d.context=p:d.pendingContext=p,mc&&lu!==null&&!sD&&(sD=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
193
|
+
|
|
194
|
+
Check the render method of %s.`,ae(lu)||"Unknown")),d=pl(n),d.payload={element:l},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",h),d.callback=h),l=ba(t,d,n),l!==null&&(Nn(n,"root.render()",null),Eo(l,t,n),ju(l,t,n))}i(nf,"updateContainerImpl");function of(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<n?l:n}}i(of,"markRetryLaneImpl");function uA(t,n){of(t,n),(t=t.alternate)&&of(t,n)}i(uA,"markRetryLaneIfNotHydrated");function sp(){return lu}i(sp,"getCurrentFiberForDevTools");var pn={},lv=Mt(),zi=c0(),Vn=Object.assign,SI=Symbol.for("react.element"),Ql=Symbol.for("react.transitional.element"),bl=Symbol.for("react.portal"),AA=Symbol.for("react.fragment"),lp=Symbol.for("react.strict_mode"),nE=Symbol.for("react.profiler"),Zc=Symbol.for("react.consumer"),tr=Symbol.for("react.context"),Xr=Symbol.for("react.forward_ref"),cp=Symbol.for("react.suspense"),oE=Symbol.for("react.suspense_list"),dA=Symbol.for("react.memo"),Ki=Symbol.for("react.lazy"),rf=Symbol.for("react.activity"),vI=Symbol.for("react.memo_cache_sentinel"),Wc=Symbol.iterator,fA=Symbol.for("react.client.reference"),Ar=Array.isArray,Ae=lv.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_a=e.rendererVersion,Na=e.rendererPackageName,Rl=e.extraDevToolsConfig,Ri=e.getPublicInstance,Ds=e.getRootHostContext,Zr=e.getChildHostContext,af=e.prepareForCommit,ac=e.resetAfterCommit,up=e.createInstance;e.cloneMutableInstance;var Sr=e.appendInitialChild,Co=e.finalizeInitialChildren,En=e.shouldSetTextContent,wl=e.createTextInstance;e.cloneMutableTextInstance;var Ma=e.scheduleTimeout,rE=e.cancelTimeout,Ts=e.noTimeout,wi=e.isPrimaryRenderer;e.warnsIfNotActing;var yo=e.supportsMutation,_s=e.supportsPersistence,ui=e.supportsHydration,cv=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var xo=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var nr=e.setCurrentUpdatePriority,Yi=e.getCurrentUpdatePriority,iE=e.resolveUpdatePriority,gA=e.trackSchedulerEvent,$c=e.resolveEventType,is=e.resolveEventTimeStamp,sf=e.shouldAttemptEagerTransition,aE=e.detachDeletedInstance;e.requestPostPaintCallback;var pA=e.maySuspendCommit,mA=e.maySuspendCommitOnUpdate,Ap=e.maySuspendCommitInSyncRender,sc=e.preloadInstance,hA=e.startSuspendingCommit,dp=e.suspendInstance;e.suspendOnActiveViewTransition;var fp=e.waitForCommitToBeReady,gp=e.getSuspendedCommitReason,Oa=e.NotPendingTransition,Ha=e.HostTransitionContext,lf=e.resetFormInstance,eu=e.bindToConsole,QI=e.supportsMicrotasks,ka=e.scheduleMicrotask,as=e.supportsTestSelectors,sE=e.findFiberRoot,lc=e.getBoundingRect,lE=e.getTextContent,Ns=e.isHiddenSubtree,pp=e.matchAccessibilityRole,Aa=e.setFocusIfFocusable,Ua=e.setupIntersectionObserver,or=e.appendChild,xl=e.appendChildToContainer,sn=e.commitTextUpdate,oo=e.commitMount,dr=e.commitUpdate,mp=e.insertBefore,EA=e.insertInContainerBefore,tu=e.removeChild,hp=e.removeChildFromContainer,CA=e.resetTextContent,yA=e.hideInstance,uv=e.hideTextInstance,cf=e.unhideInstance,bI=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var cE=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var RI=e.cloneInstance,Ep=e.createContainerChildSet,Cp=e.appendChildToContainerChildSet,fr=e.finalizeContainerChildren,yp=e.replaceContainerChildren,Ms=e.cloneHiddenInstance,rr=e.cloneHiddenTextInstance,uf=e.isSuspenseInstancePending,Ip=e.isSuspenseInstanceFallback,Mr=e.getSuspenseInstanceFallbackErrorDetails,gr=e.registerSuspenseInstanceRetry,qi=e.canHydrateFormStateMarker,ss=e.isFormStateMarkerMatching,cc=e.getNextHydratableSibling,Av=e.getNextHydratableSiblingAfterSingleton,Bp=e.getFirstHydratableChild,Sp=e.getFirstHydratableChildWithinContainer,vp=e.getFirstHydratableChildWithinActivityInstance,Qp=e.getFirstHydratableChildWithinSuspenseInstance,bp=e.getFirstHydratableChildWithinSingleton,Af=e.canHydrateInstance,dv=e.canHydrateTextInstance,Bn=e.canHydrateActivityInstance,so=e.canHydrateSuspenseInstance,Sn=e.hydrateInstance,Rn=e.hydrateTextInstance,Wn=e.hydrateActivityInstance,da=e.hydrateSuspenseInstance,uc=e.getNextHydratableInstanceAfterActivityInstance,nu=e.getNextHydratableInstanceAfterSuspenseInstance,uE=e.commitHydratedInstance,Dl=e.commitHydratedContainer,ko=e.commitHydratedActivityInstance,Ac=e.commitHydratedSuspenseInstance,ou=e.finalizeHydratedChildren,AE=e.flushHydrationEvents;e.clearActivityBoundary;var fa=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var IA=e.clearSuspenseBoundaryFromContainer,df=e.hideDehydratedBoundary,Pi=e.unhideDehydratedBoundary,Rp=e.shouldDeleteUnhydratedTailInstances,ff=e.diffHydratedPropsForDevWarnings,dE=e.diffHydratedTextForDevWarnings,BA=e.describeHydratableInstanceForDevWarnings,wp=e.validateHydratableInstance,dc=e.validateHydratableTextInstance,$n=e.supportsResources,Tl=e.isHostHoistableType,fc=e.getHoistableRoot,Os=e.getResource,xp=e.acquireResource,Dp=e.releaseResource,wI=e.hydrateHoistable,SA=e.mountHoistable,Tp=e.unmountHoistable,a=e.createHoistableInstance,s=e.prepareToCommitHoistables,A=e.mayResourceSuspendCommit,g=e.preloadResource,y=e.suspendResource,I=e.supportsSingletons,T=e.resolveSingletonInstance,F=e.acquireSingletonInstance,me=e.releaseSingletonInstance,Le=e.isHostSingletonType,rt=e.isSingletonScope,Ze=[],Ct=[],Yt=-1,Io={};Object.freeze(Io);var vr=Math.clz32?Math.clz32:Se,ru=Math.log,ue=Math.LN2,Z=256,ge=262144,Xe=4194304,Ut=zi.unstable_scheduleCallback,Do=zi.unstable_cancelCallback,Jt=zi.unstable_shouldYield,Kn=zi.unstable_requestPaint,wn=zi.unstable_now,Mn=zi.unstable_ImmediatePriority,_l=zi.unstable_UserBlockingPriority,gf=zi.unstable_NormalPriority,Hw=zi.unstable_IdlePriority,y4=zi.log,I4=zi.unstable_setDisableYieldValue,_p=null,Ji=null,gc=!1,pc=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",kw=0;if(typeof performance=="object"&&typeof performance.now=="function")var B4=performance,Uw=i(function(){return B4.now()},"getCurrentTime");else{var S4=Date;Uw=i(function(){return S4.now()},"getCurrentTime")}var ga=typeof Object.is=="function"?Object.is:ut,Lw=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fv=Object.prototype.hasOwnProperty,Bo=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",vn="Blocking",vA=!1,iu={color:"primary",properties:null,tooltipText:"",track:"Components \u269B"},QA={start:-0,end:-0,detail:{devtools:iu}},v4=["Changed Props",""],Q4=["Changed Props","This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."],fE=0,Gw,Fw,zw,Kw,Yw,qw,Pw;Mo.__reactDisabledLog=!0;var gv,Jw,pv=!1,mv=new(typeof WeakMap=="function"?WeakMap:Map),hv=new WeakMap,Np=[],Mp=0,xI=null,gE=0,Hs=[],ks=0,pf=null,au=1,su="",bA=ie(null),pE=ie(null),RA=ie(null),DI=ie(null),jw=/["'&<>\n\t]|^\s|\s$/,lu=null,mc=!1,xi=null,Uo=null,xn=!1,hc=!1,ls=null,wA=null,Us=!1,Ev=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),jt=0,TI=ie(null),Cv=ie(null),yv=ie(null),_I={},NI=null,Op=null,Hp=!1,b4=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:i(function(l,d){t.push(d)},"addEventListener")};this.abort=function(){n.aborted=!0,t.forEach(function(l){return l()})}},R4=zi.unstable_scheduleCallback,w4=zi.unstable_NormalPriority,ir={$$typeof:tr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Or=zi.unstable_now,MI=console.createTask?console.createTask:function(){return null},ji=-0,xA=-0,cu=-0,uu=null,pa=-1.1,mf=-0,Lo=-0,Lt=-1.1,Pt=-1.1,To=null,ar=!1,hf=-0,Ec=-1.1,mE=null,DA=0,Iv=null,Bv=null,Ef=-1.1,hE=null,kp=-1.1,OI=-1.1,Au=-0,du=-1.1,Ls=-1.1,Sv=0,EE=null,Vw=null,Xw=null,TA=-1.1,Cf=null,_A=-1.1,HI=-1.1,Up=null,Zw=0,CE=-1.1,kI=!1,UI=!1,LI=null,Lp=null,vv=!1,Qv=!1,GI=!1,bv=!1,yf=0,Rv={},yE=null,wv=0,If=0,Gp=null,Ww=Ae.S;Ae.S=function(t,n){if(Jx=wn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>du&&0>Ls){du=Or();var l=is(),d=$c();(l!==_A||d!==Cf)&&(_A=-1.1),TA=l,Cf=d}Pe(t,n)}Ww!==null&&Ww(t,n)};var Bf=ie(null),Nl={recordUnsafeLifecycleWarnings:i(function(){},"recordUnsafeLifecycleWarnings"),flushPendingUnsafeLifecycleWarnings:i(function(){},"flushPendingUnsafeLifecycleWarnings"),recordLegacyContextWarning:i(function(){},"recordLegacyContextWarning"),flushLegacyContextWarning:i(function(){},"flushLegacyContextWarning"),discardPendingWarnings:i(function(){},"discardPendingWarnings")},IE=[],BE=[],SE=[],vE=[],QE=[],bE=[],Sf=new Set;Nl.recordUnsafeLifecycleWarnings=function(t,n){Sf.has(t.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&IE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillMount=="function"&&BE.push(t),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&SE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&vE.push(t),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&QE.push(t),t.mode&8&&typeof n.UNSAFE_componentWillUpdate=="function"&&bE.push(t))},Nl.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<IE.length&&(IE.forEach(function(Q){t.add(ae(Q)||"Component"),Sf.add(Q.type)}),IE=[]);var n=new Set;0<BE.length&&(BE.forEach(function(Q){n.add(ae(Q)||"Component"),Sf.add(Q.type)}),BE=[]);var l=new Set;0<SE.length&&(SE.forEach(function(Q){l.add(ae(Q)||"Component"),Sf.add(Q.type)}),SE=[]);var d=new Set;0<vE.length&&(vE.forEach(function(Q){d.add(ae(Q)||"Component"),Sf.add(Q.type)}),vE=[]);var p=new Set;0<QE.length&&(QE.forEach(function(Q){p.add(ae(Q)||"Component"),Sf.add(Q.type)}),QE=[]);var h=new Set;if(0<bE.length&&(bE.forEach(function(Q){h.add(ae(Q)||"Component"),Sf.add(Q.type)}),bE=[]),0<n.size){var B=H(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
195
|
+
|
|
196
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
197
|
+
|
|
198
|
+
Please update the following components: %s`,B)}0<d.size&&(B=H(d),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
199
|
+
|
|
200
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
201
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
202
|
+
|
|
203
|
+
Please update the following components: %s`,B)),0<h.size&&(B=H(h),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
204
|
+
|
|
205
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
206
|
+
|
|
207
|
+
Please update the following components: %s`,B)),0<t.size&&(B=H(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
208
|
+
|
|
209
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
210
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
211
|
+
|
|
212
|
+
Please update the following components: %s`,B)),0<l.size&&(B=H(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
213
|
+
|
|
214
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
215
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
216
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
217
|
+
|
|
218
|
+
Please update the following components: %s`,B)),0<p.size&&(B=H(p),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
219
|
+
|
|
220
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
221
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
222
|
+
|
|
223
|
+
Please update the following components: %s`,B))};var FI=new Map,$w=new Set;Nl.recordLegacyContextWarning=function(t,n){for(var l=null,d=t;d!==null;)d.mode&8&&(l=d),d=d.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!$w.has(t.type)&&(d=FI.get(l),t.type.contextTypes!=null||t.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(d===void 0&&(d=[],FI.set(l,d)),d.push(t))},Nl.flushLegacyContextWarning=function(){FI.forEach(function(t){if(t.length!==0){var n=t[0],l=new Set;t.forEach(function(p){l.add(ae(p)||"Component"),$w.add(p.type)});var d=H(l);ft(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
224
|
+
|
|
225
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
226
|
+
|
|
227
|
+
Please update the following components: %s
|
|
228
|
+
|
|
229
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,d)})}})},Nl.discardPendingWarnings=function(){IE=[],BE=[],SE=[],vE=[],QE=[],bE=[],FI=new Map};var ex={react_stack_bottom_frame:i(function(t,n,l){var d=mc;mc=!0;try{return t(n,l)}finally{mc=d}},"react_stack_bottom_frame")},xv=ex.react_stack_bottom_frame.bind(ex),tx={react_stack_bottom_frame:i(function(t){var n=mc;mc=!0;try{return t.render()}finally{mc=n}},"react_stack_bottom_frame")},nx=tx.react_stack_bottom_frame.bind(tx),ox={react_stack_bottom_frame:i(function(t,n){try{n.componentDidMount()}catch(l){kn(t,t.return,l)}},"react_stack_bottom_frame")},Dv=ox.react_stack_bottom_frame.bind(ox),rx={react_stack_bottom_frame:i(function(t,n,l,d,p){try{n.componentDidUpdate(l,d,p)}catch(h){kn(t,t.return,h)}},"react_stack_bottom_frame")},ix=rx.react_stack_bottom_frame.bind(rx),ax={react_stack_bottom_frame:i(function(t,n){var l=n.stack;t.componentDidCatch(n.value,{componentStack:l!==null?l:""})},"react_stack_bottom_frame")},x4=ax.react_stack_bottom_frame.bind(ax),sx={react_stack_bottom_frame:i(function(t,n,l){try{l.componentWillUnmount()}catch(d){kn(t,n,d)}},"react_stack_bottom_frame")},lx=sx.react_stack_bottom_frame.bind(sx),cx={react_stack_bottom_frame:i(function(t){var n=t.create;return t=t.inst,n=n(),t.destroy=n},"react_stack_bottom_frame")},D4=cx.react_stack_bottom_frame.bind(cx),ux={react_stack_bottom_frame:i(function(t,n,l){try{l()}catch(d){kn(t,n,d)}},"react_stack_bottom_frame")},T4=ux.react_stack_bottom_frame.bind(ux),Ax={react_stack_bottom_frame:i(function(t){var n=t._init;return n(t._payload)},"react_stack_bottom_frame")},_4=Ax.react_stack_bottom_frame.bind(Ax),Fp=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Tv=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),zI=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),KI={then:i(function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')},"then")},vf=null,RE=!1,zp=null,wE=0,un=null,_v,dx=_v=!1,fx={},gx={},px={};k=i(function(t,n,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var d=ae(t),p=d||"null";if(!fx[p]){fx[p]=!0,l=l._owner,t=t._debugOwner;var h="";t&&typeof t.tag=="number"&&(p=ae(t))&&(h=`
|
|
230
|
+
|
|
231
|
+
Check the render method of \``+p+"`."),h||d&&(h=`
|
|
232
|
+
|
|
233
|
+
Check the top-level render call using <`+d+">.");var B="";l!=null&&t!==l&&(d=null,typeof l.tag=="number"?d=ae(l):typeof l.name=="string"&&(d=l.name),d&&(B=" It was passed a child from "+d+".")),ft(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',h,B)})}}},"warnForMissingKey");var Qf=Sd(!0),mx=Sd(!1),xE=1,fu=2,Gs=[],Kp=0,Nv=0,hx=0,Ex=1,Cx=2,Mv=3,NA=!1,yx=!1,Ov=null,Hv=!1,Yp=ie(null),YI=ie(0),cs=ie(null),Fs=null,qp=1,DE=2,Qr=ie(0),qI=0,zs=1,ma=2,us=4,ha=8,Pp,Ix=new Set,Bx=new Set,kv=new Set,Sx=new Set,gu=0,Zt=null,Ao=null,Hr=null,PI=!1,Jp=!1,bf=!1,JI=0,TE=0,pu=null,N4=0,M4=25,de=null,Ks=null,mu=-1,_E=!1,NE={readContext:ve,use:zn,useCallback:Ho,useContext:Ho,useEffect:Ho,useImperativeHandle:Ho,useLayoutEffect:Ho,useInsertionEffect:Ho,useMemo:Ho,useReducer:Ho,useRef:Ho,useState:Ho,useDebugValue:Ho,useDeferredValue:Ho,useTransition:Ho,useSyncExternalStore:Ho,useId:Ho,useHostTransitionStatus:Ho,useFormState:Ho,useActionState:Ho,useOptimistic:Ho,useMemoCache:Ho,useCacheRefresh:Ho};NE.useEffectEvent=Ho;var Uv=null,vx=null,Lv=null,Qx=null,Cc=null,Ml=null,jI=null;Uv={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return de="useCallback",an(),Ui(n),xg(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",an(),ve(t)},"useContext"),useEffect:i(function(t,n){return de="useEffect",an(),Ui(n),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",an(),Ui(l),wg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){de="useInsertionEffect",an(),Ui(n),hl(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",an(),Ui(n),El(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",an(),Ui(n);var l=Ae.H;Ae.H=Cc;try{return Dg(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",an();var d=Ae.H;Ae.H=Cc;try{return Ig(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(t){return de="useRef",an(),es(t)},"useRef"),useState:i(function(t){de="useState",an();var n=Ae.H;Ae.H=Cc;try{return Wu(t)}finally{Ae.H=n}},"useState"),useDebugValue:i(function(){de="useDebugValue",an()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",an(),Od(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",an(),_g()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",an(),Bg(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",an(),Ud()},"useId"),useFormState:i(function(t,n){return de="useFormState",an(),Xu(),$o(t,n)},"useFormState"),useActionState:i(function(t,n){return de="useActionState",an(),$o(t,n)},"useActionState"),useOptimistic:i(function(t){return de="useOptimistic",an(),Qg(t)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return de="useCacheRefresh",an(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",an(),Xl(t)},"useEffectEvent")},vx={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return de="useCallback",Ye(),xg(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){return de="useEffect",Ye(),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",Ye(),wg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){de="useInsertionEffect",Ye(),hl(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",Ye(),El(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",Ye();var l=Ae.H;Ae.H=Cc;try{return Dg(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",Ye();var d=Ae.H;Ae.H=Cc;try{return Ig(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(t){return de="useRef",Ye(),es(t)},"useRef"),useState:i(function(t){de="useState",Ye();var n=Ae.H;Ae.H=Cc;try{return Wu(t)}finally{Ae.H=n}},"useState"),useDebugValue:i(function(){de="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",Ye(),Od(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",Ye(),_g()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",Ye(),Bg(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",Ye(),Ud()},"useId"),useActionState:i(function(t,n){return de="useActionState",Ye(),$o(t,n)},"useActionState"),useFormState:i(function(t,n){return de="useFormState",Ye(),Xu(),$o(t,n)},"useFormState"),useOptimistic:i(function(t){return de="useOptimistic",Ye(),Qg(t)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return de="useCacheRefresh",Ye(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",Ye(),Xl(t)},"useEffectEvent")},Lv={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return de="useCallback",Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){de="useEffect",Ye(),si(2048,ha,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return de="useInsertionEffect",Ye(),si(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",Ye(),si(4,us,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",Ye();var l=Ae.H;Ae.H=Ml;try{return $u(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",Ye();var d=Ae.H;Ae.H=Ml;try{return Is(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(){return de="useRef",Ye(),jn().memoizedState},"useRef"),useState:i(function(){de="useState",Ye();var t=Ae.H;Ae.H=Ml;try{return Is(Wa)}finally{Ae.H=t}},"useState"),useDebugValue:i(function(){de="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",Ye(),Tg(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",Ye(),Ry()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return de="useFormState",Ye(),Xu(),Md(t)},"useFormState"),useActionState:i(function(t){return de="useActionState",Ye(),Md(t)},"useActionState"),useOptimistic:i(function(t,n){return de="useOptimistic",Ye(),yh(t,n)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return de="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",Ye(),Zl(t)},"useEffectEvent")},Qx={readContext:i(function(t){return ve(t)},"readContext"),use:zn,useCallback:i(function(t,n){return de="useCallback",Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){de="useEffect",Ye(),si(2048,ha,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return de="useInsertionEffect",Ye(),si(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",Ye(),si(4,us,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",Ye();var l=Ae.H;Ae.H=jI;try{return $u(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",Ye();var d=Ae.H;Ae.H=jI;try{return Zu(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(){return de="useRef",Ye(),jn().memoizedState},"useRef"),useState:i(function(){de="useState",Ye();var t=Ae.H;Ae.H=jI;try{return Zu(Wa)}finally{Ae.H=t}},"useState"),useDebugValue:i(function(){de="useDebugValue",Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",Ye(),vh(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",Ye(),Cl()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return de="useFormState",Ye(),Xu(),wa(t)},"useFormState"),useActionState:i(function(t){return de="useActionState",Ye(),wa(t)},"useActionState"),useOptimistic:i(function(t,n){return de="useOptimistic",Ye(),Ih(t,n)},"useOptimistic"),useHostTransitionStatus:$l,useMemoCache:Lc,useCacheRefresh:i(function(){return de="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",Ye(),Zl(t)},"useEffectEvent")},Cc={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return b(),zn(t)},"use"),useCallback:i(function(t,n){return de="useCallback",b(),an(),xg(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",b(),an(),ve(t)},"useContext"),useEffect:i(function(t,n){return de="useEffect",b(),an(),Li(t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",b(),an(),wg(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){de="useInsertionEffect",b(),an(),hl(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",b(),an(),El(t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",b(),an();var l=Ae.H;Ae.H=Cc;try{return Dg(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",b(),an();var d=Ae.H;Ae.H=Cc;try{return Ig(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(t){return de="useRef",b(),an(),es(t)},"useRef"),useState:i(function(t){de="useState",b(),an();var n=Ae.H;Ae.H=Cc;try{return Wu(t)}finally{Ae.H=n}},"useState"),useDebugValue:i(function(){de="useDebugValue",b(),an()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",b(),an(),Od(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",b(),an(),_g()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",b(),an(),Bg(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",b(),an(),Ud()},"useId"),useFormState:i(function(t,n){return de="useFormState",b(),an(),$o(t,n)},"useFormState"),useActionState:i(function(t,n){return de="useActionState",b(),an(),$o(t,n)},"useActionState"),useOptimistic:i(function(t){return de="useOptimistic",b(),an(),Qg(t)},"useOptimistic"),useMemoCache:i(function(t){return b(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return de="useCacheRefresh",an(),ec()},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",b(),an(),Xl(t)},"useEffectEvent")},Ml={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return b(),zn(t)},"use"),useCallback:i(function(t,n){return de="useCallback",b(),Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",b(),Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){de="useEffect",b(),Ye(),si(2048,ha,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",b(),Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return de="useInsertionEffect",b(),Ye(),si(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",b(),Ye(),si(4,us,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",b(),Ye();var l=Ae.H;Ae.H=Ml;try{return $u(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",b(),Ye();var d=Ae.H;Ae.H=Ml;try{return Is(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(){return de="useRef",b(),Ye(),jn().memoizedState},"useRef"),useState:i(function(){de="useState",b(),Ye();var t=Ae.H;Ae.H=Ml;try{return Is(Wa)}finally{Ae.H=t}},"useState"),useDebugValue:i(function(){de="useDebugValue",b(),Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",b(),Ye(),Tg(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",b(),Ye(),Ry()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",b(),Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",b(),Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return de="useFormState",b(),Ye(),Md(t)},"useFormState"),useActionState:i(function(t){return de="useActionState",b(),Ye(),Md(t)},"useActionState"),useOptimistic:i(function(t,n){return de="useOptimistic",b(),Ye(),yh(t,n)},"useOptimistic"),useMemoCache:i(function(t){return b(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return de="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",b(),Ye(),Zl(t)},"useEffectEvent")},jI={readContext:i(function(t){return M(),ve(t)},"readContext"),use:i(function(t){return b(),zn(t)},"use"),useCallback:i(function(t,n){return de="useCallback",b(),Ye(),Gc(t,n)},"useCallback"),useContext:i(function(t){return de="useContext",b(),Ye(),ve(t)},"useContext"),useEffect:i(function(t,n){de="useEffect",b(),Ye(),si(2048,ha,t,n)},"useEffect"),useImperativeHandle:i(function(t,n,l){return de="useImperativeHandle",b(),Ye(),Wl(t,n,l)},"useImperativeHandle"),useInsertionEffect:i(function(t,n){return de="useInsertionEffect",b(),Ye(),si(4,ma,t,n)},"useInsertionEffect"),useLayoutEffect:i(function(t,n){return de="useLayoutEffect",b(),Ye(),si(4,us,t,n)},"useLayoutEffect"),useMemo:i(function(t,n){de="useMemo",b(),Ye();var l=Ae.H;Ae.H=Ml;try{return $u(t,n)}finally{Ae.H=l}},"useMemo"),useReducer:i(function(t,n,l){de="useReducer",b(),Ye();var d=Ae.H;Ae.H=Ml;try{return Zu(t,n,l)}finally{Ae.H=d}},"useReducer"),useRef:i(function(){return de="useRef",b(),Ye(),jn().memoizedState},"useRef"),useState:i(function(){de="useState",b(),Ye();var t=Ae.H;Ae.H=Ml;try{return Zu(Wa)}finally{Ae.H=t}},"useState"),useDebugValue:i(function(){de="useDebugValue",b(),Ye()},"useDebugValue"),useDeferredValue:i(function(t,n){return de="useDeferredValue",b(),Ye(),vh(t,n)},"useDeferredValue"),useTransition:i(function(){return de="useTransition",b(),Ye(),Cl()},"useTransition"),useSyncExternalStore:i(function(t,n,l){return de="useSyncExternalStore",b(),Ye(),Vl(t,n,l)},"useSyncExternalStore"),useId:i(function(){return de="useId",b(),Ye(),jn().memoizedState},"useId"),useFormState:i(function(t){return de="useFormState",b(),Ye(),wa(t)},"useFormState"),useActionState:i(function(t){return de="useActionState",b(),Ye(),wa(t)},"useActionState"),useOptimistic:i(function(t,n){return de="useOptimistic",b(),Ye(),Ih(t,n)},"useOptimistic"),useMemoCache:i(function(t){return b(),Lc(t)},"useMemoCache"),useHostTransitionStatus:$l,useCacheRefresh:i(function(){return de="useCacheRefresh",Ye(),jn().memoizedState},"useCacheRefresh"),useEffectEvent:i(function(t){return de="useEffectEvent",b(),Ye(),Zl(t)},"useEffectEvent")};var bx={},Rx=new Set,wx=new Set,xx=new Set,Dx=new Set,Tx=new Set,_x=new Set,Nx=new Set,Mx=new Set,Ox=new Set,Hx=new Set;Object.freeze(bx);var Gv={enqueueSetState:i(function(t,n,l){t=t._reactInternals;var d=ua(t),p=pl(d);p.payload=n,l!=null&&(Rh(l),p.callback=l),n=ba(t,p,d),n!==null&&(Nn(d,"this.setState()",t),Eo(n,t,d),ju(n,t,d))},"enqueueSetState"),enqueueReplaceState:i(function(t,n,l){t=t._reactInternals;var d=ua(t),p=pl(d);p.tag=Ex,p.payload=n,l!=null&&(Rh(l),p.callback=l),n=ba(t,p,d),n!==null&&(Nn(d,"this.replaceState()",t),Eo(n,t,d),ju(n,t,d))},"enqueueReplaceState"),enqueueForceUpdate:i(function(t,n){t=t._reactInternals;var l=ua(t),d=pl(l);d.tag=Cx,n!=null&&(Rh(n),d.callback=n),n=ba(t,d,l),n!==null&&(Nn(l,"this.forceUpdate()",t),Eo(n,t,l),ju(n,t,l))},"enqueueForceUpdate")},jp=null,Fv=null,zv=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),kr=!1,kx={},Ux={},Lx={},Gx={},Vp=!1,Fx={},VI={},Kv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},zx=!1,Kx=null;Kx=new Set;var hu=!1,Ur=!1,Yv=!1,Yx=typeof WeakSet=="function"?WeakSet:Set,Ai=null,Xp=null,Zp=null,Lr=null,La=!1,Ol=null,Wr=!1,Wp=8192,O4={getCacheForType:i(function(t){var n=ve(ir),l=n.data.get(t);return l===void 0&&(l=t(),n.data.set(t,l)),l},"getCacheForType"),cacheSignal:i(function(){return ve(ir).controller.signal},"cacheSignal"),getOwner:i(function(){return lu},"getOwner")},XI=0,ZI=1,WI=2,$I=3,eB=4;if(typeof Symbol=="function"&&Symbol.for){var ME=Symbol.for;XI=ME("selector.component"),ZI=ME("selector.has_pseudo_class"),WI=ME("selector.role"),$I=ME("selector.test_id"),eB=ME("selector.text")}var tB=[],H4=typeof WeakMap=="function"?WeakMap:Map,di=0,fi=2,Ys=4,Eu=0,OE=1,Rf=2,nB=3,MA=4,oB=6,qx=5,Dn=di,fo=null,mn=null,An=0,Ga=0,rB=1,wf=2,HE=3,Px=4,qv=5,kE=6,iB=7,Pv=8,xf=9,ro=Ga,As=null,OA=!1,$p=!1,Jv=!1,yc=0,Go=Eu,HA=0,kA=0,jv=0,Fa=0,Df=0,UE=null,Ea=null,aB=!1,sB=0,Jx=0,jx=300,LE=1/0,Vv=500,GE=null,pr=null,UA=null,lB=0,Xv=1,Zv=2,Vx=3,LA=0,Xx=1,Zx=2,Wx=3,$x=4,cB=5,Gr=0,GA=null,em=null,Hl=0,Wv=0,$v=-0,eQ=null,eD=null,tD=null,kl=lB,nD=null,k4=50,FE=0,tQ=null,nQ=!1,uB=!1,U4=50,Tf=0,zE=null,tm=!1,AB=null,oD=!1,rD=new Set,L4={},qs=null,nm=null,iD=!1;try{var aD=Object.preventExtensions({})}catch{iD=!0}var sD=!1,lD={},cD=null,uD=null,AD=null,dD=null,fD=null,gD=null,pD=null,mD=null,hD=null,ED=null;return cD=i(function(t,n,l,d){n=o(t,n),n!==null&&(l=r(n.memoizedState,l,0,d),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=ii(t,2),l!==null&&Eo(l,t,2))},"overrideHookState"),uD=i(function(t,n,l){n=o(t,n),n!==null&&(l=f(n.memoizedState,l,0),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=ii(t,2),l!==null&&Eo(l,t,2))},"overrideHookStateDeletePath"),AD=i(function(t,n,l,d){n=o(t,n),n!==null&&(l=c(n.memoizedState,l,d),n.memoizedState=l,n.baseState=l,t.memoizedProps=Vn({},t.memoizedProps),l=ii(t,2),l!==null&&Eo(l,t,2))},"overrideHookStateRenamePath"),dD=i(function(t,n,l){t.pendingProps=r(t.memoizedProps,n,0,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=ii(t,2),n!==null&&Eo(n,t,2)},"overrideProps"),fD=i(function(t,n){t.pendingProps=f(t.memoizedProps,n,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=ii(t,2),n!==null&&Eo(n,t,2)},"overridePropsDeletePath"),gD=i(function(t,n,l){t.pendingProps=c(t.memoizedProps,n,l),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=ii(t,2),n!==null&&Eo(n,t,2)},"overridePropsRenamePath"),pD=i(function(t){var n=ii(t,2);n!==null&&Eo(n,t,2)},"scheduleUpdate"),mD=i(function(t){var n=je(),l=ii(t,n);l!==null&&Eo(l,t,n)},"scheduleRetry"),hD=i(function(t){E=t},"setErrorHandler"),ED=i(function(t){m=t},"setSuspenseHandler"),pn.attemptContinuousHydration=function(t){if(t.tag===13||t.tag===31){var n=ii(t,67108864);n!==null&&Eo(n,t,67108864),uA(t,67108864)}},pn.attemptHydrationAtCurrentPriority=function(t){if(t.tag===13||t.tag===31){var n=ua(t);n=oe(n);var l=ii(t,n);l!==null&&Eo(l,t,n),uA(t,n)}},pn.attemptSynchronousHydration=function(t){switch(t.tag){case 3:if(t=t.stateNode,t.current.memoizedState.isDehydrated){var n=Je(t.pendingLanes);if(n!==0){for(t.pendingLanes|=2,t.entangledLanes|=2;n;){var l=1<<31-vr(n);t.entanglements[1]|=l,n&=~l}_r(t),(Dn&(fi|Ys))===di&&(LE=wn()+Vv,Va(0,!1))}}break;case 31:case 13:n=ii(t,2),n!==null&&Eo(n,t,2),Wd(),uA(t,2)}},pn.batchedUpdates=function(t,n){return t(n)},pn.createComponentSelector=function(t){return{$$typeof:XI,value:t}},pn.createContainer=function(t,n,l,d,p,h,B,Q,U,q){return Xc(t,n,!1,null,l,d,h,null,B,Q,U,q)},pn.createHasPseudoClassSelector=function(t){return{$$typeof:ZI,value:t}},pn.createHydrationContainer=function(t,n,l,d,p,h,B,Q,U,q,pe,he,xe,Tt){return t=Xc(l,d,!0,t,p,h,Q,Tt,U,q,pe,he),t.context=II(null),l=t.current,d=ua(l),d=oe(d),p=pl(d),p.callback=n??null,ba(l,p,d),Nn(d,"hydrateRoot()",null),n=d,t.current.lanes=n,it(t,n),_r(t),t},pn.createPortal=function(t,n,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{Fi(d);var p=!1}catch{p=!0}return p&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object"),Fi(d)),{$$typeof:bl,key:d==null?null:""+d,children:t,containerInfo:n,implementation:l}},pn.createRoleSelector=function(t){return{$$typeof:WI,value:t}},pn.createTestNameSelector=function(t){return{$$typeof:$I,value:t}},pn.createTextSelector=function(t){return{$$typeof:eB,value:t}},pn.defaultOnCaughtError=function(t){var n=jp?"The above error occurred in the <"+jp+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Fv||"Anonymous")+".");typeof t=="object"&&t!==null&&typeof t.environmentName=="string"?eu("error",[`%o
|
|
234
|
+
|
|
235
|
+
%s
|
|
236
|
+
|
|
237
|
+
%s
|
|
238
|
+
`,t,n,l],t.environmentName)():console.error(`%o
|
|
239
|
+
|
|
240
|
+
%s
|
|
241
|
+
|
|
242
|
+
%s
|
|
243
|
+
`,t,n,l)},pn.defaultOnRecoverableError=function(t){Lw(t)},pn.defaultOnUncaughtError=function(t){Lw(t),console.warn(`%s
|
|
244
|
+
|
|
245
|
+
%s
|
|
246
|
+
`,jp?"An error occurred in the <"+jp+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
247
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},pn.deferredUpdates=function(t){var n=Ae.T,l=Yi();try{return nr(32),Ae.T=null,t()}finally{nr(l),Ae.T=n}},pn.discreteUpdates=function(t,n,l,d,p){var h=Ae.T,B=Yi();try{return nr(2),Ae.T=null,t(n,l,d,p)}finally{nr(B),Ae.T=h,Dn===di&&(LE=wn()+Vv)}},pn.findAllNodes=Zg,pn.findBoundingRects=function(t,n){if(!as)throw Error("Test selector API is not supported by this renderer.");n=Zg(t,n),t=[];for(var l=0;l<n.length;l++)t.push(lc(n[l]));for(n=t.length-1;0<n;n--){l=t[n];for(var d=l.x,p=d+l.width,h=l.y,B=h+l.height,Q=n-1;0<=Q;Q--)if(n!==Q){var U=t[Q],q=U.x,pe=q+U.width,he=U.y,xe=he+U.height;if(d>=q&&h>=he&&p<=pe&&B<=xe){t.splice(n,1);break}else if(d!==q||l.width!==U.width||xe<h||he>B){if(!(h!==he||l.height!==U.height||pe<d||q>p)){q>d&&(U.width+=q-d,U.x=d),pe<p&&(U.width=p-q),t.splice(n,1);break}}else{he>h&&(U.height+=he-h,U.y=h),xe<B&&(U.height=B-he),t.splice(n,1);break}}}return t},pn.findHostInstance=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=re(n),t===null?null:Ri(t.stateNode)},pn.findHostInstanceWithNoPortals=function(t){return t=Qe(t),t=t!==null?Ee(t):null,t===null?null:Ri(t.stateNode)},pn.findHostInstanceWithWarning=function(t,n){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));if(t=re(l),t===null)return null;if(t.mode&8){var d=ae(l)||"Component";lD[d]||(lD[d]=!0,ft(t,function(){l.mode&8?console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",n,n,d):console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",n,n,d)}))}return Ri(t.stateNode)},pn.flushPassiveEffects=sA,pn.flushSyncFromReconciler=function(t){var n=Dn;Dn|=1;var l=Ae.T,d=Yi();try{if(nr(2),Ae.T=null,t)return t()}finally{nr(d),Ae.T=l,Dn=n,(Dn&(fi|Ys))===di&&Va(0,!1)}},pn.flushSyncWork=Wd,pn.focusWithin=function(t,n){if(!as)throw Error("Test selector API is not supported by this renderer.");for(t=Ph(t),n=Zy(t,n),n=Array.from(n),t=0;t<n.length;){var l=n[t++],d=l.tag;if(!Ns(l)){if((d===5||d===26||d===27)&&Aa(l.stateNode))return!0;for(l=l.child;l!==null;)n.push(l),l=l.sibling}}return!1},pn.getFindAllNodesFailureDescription=function(t,n){if(!as)throw Error("Test selector API is not supported by this renderer.");var l=0,d=[];t=[Ph(t),0];for(var p=0;p<t.length;){var h=t[p++],B=h.tag,Q=t[p++],U=n[Q];if((B!==5&&B!==26&&B!==27||!Ns(h))&&(Jh(h,U)&&(d.push(Xg(U)),Q++,Q>l&&(l=Q)),Q<n.length))for(h=h.child;h!==null;)t.push(h,Q),h=h.sibling}if(l<n.length){for(t=[];l<n.length;l++)t.push(Xg(n[l]));return`findAllNodes was able to match part of the selector:
|
|
248
|
+
`+(d.join(" > ")+`
|
|
249
|
+
|
|
250
|
+
No matching component was found for:
|
|
251
|
+
`)+t.join(" > ")}return null},pn.getPublicRootInstance=function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 27:case 5:return Ri(t.child.stateNode);default:return t.child.stateNode}},pn.injectIntoDevTools=function(){var t={bundleType:1,version:_a,rendererPackageName:Na,currentDispatcherRef:Ae,reconcilerVersion:"19.2.0"};return Rl!==null&&(t.rendererConfig=Rl),t.overrideHookState=cD,t.overrideHookStateDeletePath=uD,t.overrideHookStateRenamePath=AD,t.overrideProps=dD,t.overridePropsDeletePath=fD,t.overridePropsRenamePath=gD,t.scheduleUpdate=pD,t.scheduleRetry=mD,t.setErrorHandler=hD,t.setSuspenseHandler=ED,t.scheduleRefresh=R,t.scheduleRoot=v,t.setRefreshHandler=N,t.getCurrentFiber=sp,se(t)},pn.isAlreadyRendering=$d,pn.observeVisibleRects=function(t,n,l,d){function p(){var q=Zg(t,n);h.forEach(function(pe){0>q.indexOf(pe)&&U(pe)}),q.forEach(function(pe){0>h.indexOf(pe)&&Q(pe)})}if(i(p,"commitHook"),!as)throw Error("Test selector API is not supported by this renderer.");var h=Zg(t,n);l=Ua(h,l,d);var B=l.disconnect,Q=l.observe,U=l.unobserve;return tB.push(p),{disconnect:i(function(){var q=tB.indexOf(p);0<=q&&tB.splice(q,1),B()},"disconnect")}},pn.shouldError=function(t){return E(t)},pn.shouldSuspend=function(t){return m(t)},pn.startHostTransition=function(t,n,l,d){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=Qh(t).queue;_n(t),vi(t,p,n,Oa,l===null?_:function(){Ae.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var h=Qh(t);return h.next===null&&(h=t.alternate.memoizedState),eA(t,h.next.queue,{},ua(t)),l(d)})},pn.updateContainer=function(t,n,l,d){var p=n.current,h=ua(p);return nf(p,h,t,n,l,d),h},pn.updateContainerSync=BI,pn},CC.exports.default=CC.exports,Object.defineProperty(CC.exports,"__esModule",{value:!0}))});var sM=Yn((tW,Zb)=>{"use strict";process.env.NODE_ENV==="production"?Zb.exports=iM():Zb.exports=aM()});function yC(e){let o=0;for(let r of e.split(`
|
|
252
|
+
`))o=Math.max(o,Ot(r));return o}var Wb=L(()=>{Ca();i(yC,"widestLine")});var lM,Q5,$b,cM=L(()=>{Wb();lM=new Map,Q5=i(e=>{if(e.length===0)return{width:0,height:0};let o=lM.get(e);if(o)return o;let r=yC(e),c=e.split(`
|
|
253
|
+
`).length,u={width:r,height:c};return lM.set(e,u),u},"measureText"),$b=Q5});function Mm(e){return Number.isInteger(e)?oC(e)||rC(e):!1}var e1=L(()=>{$Q();i(Mm,"isFullwidthCodePoint")});function $5(e){return e>=N5&&e<=M5||e===O5||e===H5}function ez(e){return e>=k5&&e<=U5}function tz(e){return e>=L5&&e<=G5}function nz(e){return e>=F5&&e<=z5}function oz(e){return e>=K5&&e<=Y5}function zl(e,o){return{token:{type:"control",code:e},endIndex:o}}function rz(e){if(W5.test(e))return!0;for(let o of e){let r=o.codePointAt(0);if(r===X5||r===Z5)return!0}return!1}function SM(e){let o=0;for(let r of e){let c=r.codePointAt(0);if(Mm(c))return 2;oz(c)&&o++}return o>=1||rz(e)?2:1}function iz(e){return e.startsWith("\x9B")?"\x9B":`${Om}${s1}`}function IC(e,o){return`${e}${o.join(";")}${yM}`}function az(e){let o=[],r=iz(e),c;if(e.startsWith(`${Om}${s1}`))c=e.slice(2,-1);else if(e.startsWith("\x9B"))c=e.slice(1,-1);else return o;let u=c.length===0?[String(uM)]:c.split(";"),f=0;for(;f<u.length;){let m=Number.parseInt(u[f],10);if(Number.isNaN(m)){f++;continue}if(m===uM){o.push({type:"reset"}),f++;continue}if(m===u0||m===q5){let v=Number.parseInt(u[f+1],10);if(v===P5&&f+j5<u.length){let N=IC(r,u.slice(f,f+AM));o.push({type:"start",code:N,endCode:Ro.color.ansi(m===u0?t1:n1)}),f+=AM;continue}if(v===J5&&f+V5<u.length){let N=IC(r,u.slice(f,f+dM));o.push({type:"start",code:N,endCode:Ro.color.ansi(m===u0?t1:n1)}),f+=dM;continue}let R=IC(r,[u[f]]);o.push({type:"start",code:R,endCode:Ro.color.ansi(m===u0?t1:n1)}),f++;continue}if(BM.has(m)){o.push({type:"end",endCode:Ro.color.ansi(m)}),f++;continue}let E=Ro.codes.get(m);if(E!==void 0){let v=IC(r,[u[f]]);o.push({type:"start",code:v,endCode:Ro.color.ansi(E)}),f++;continue}let S=IC(r,[u[f]]);o.push({type:"start",code:S,endCode:Ro.reset.open}),f++}return o.length===0&&o.push({type:"reset"}),o}function sz(e,o){let r=e.codePointAt(o),c;if(r===BC){if(e[o+1]!==s1)return;c=o+2}else if(r===pM)c=o+1;else return;let u=!0;for(let f=c;f<e.length;f++){let m=e.codePointAt(f);if(nz(m)){let S=e.slice(o,f+1);return e[f]!==yM||!u?zl(S,f+1):{token:{type:"sgr",code:S,fragments:az(S)},endIndex:f+1}}if(ez(m)){$5(m)||(u=!1);continue}if(tz(m)){u=!1;continue}let E=f;return zl(e.slice(o,E),E)}return zl(e.slice(o),e.length)}function lz(e,o){let r,c,u=e.codePointAt(o);if(u===BC&&e.startsWith(i1,o))r=i1,c=T5;else if(u===f0&&e.startsWith(a1,o))r=a1,c=_5;else return;let f=e.indexOf(";",o+r.length);if(f===-1)return zl(e.slice(o),e.length);for(let m=f+1;m<e.length;m++){let E=e[m];if(E===r1){let S=e.slice(o,m+1),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:r1},endIndex:m+1}}if(E===Om&&e[m+1]===A0){let S=e.slice(o,m+2),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:IM},endIndex:m+2}}if(E===d0){let S=e.slice(o,m+1),v=m===f+1?"close":"open";return{token:{type:"hyperlink",code:S,action:v,closePrefix:c,terminator:d0},endIndex:m+1}}}return zl(e.slice(o),e.length)}function cz(e,o){let r=e.codePointAt(o),c,u=!1;switch(r){case BC:{switch(e[o+1]){case CM:{c=o+2,u=!0;break}case b5:case R5:case w5:case x5:{c=o+2;break}case A0:return zl(IM,o+2);default:return}break}case f0:{c=o+1,u=!0;break}case fM:case gM:case hM:case EM:{c=o+1;break}case mM:return zl(d0,o+1);default:return}for(let f=c;f<e.length;f++){if(u&&e[f]===r1)return zl(e.slice(o,f+1),f+1);if(e[f]===Om&&e[f+1]===A0)return zl(e.slice(o,f+2),f+2);if(e[f]===d0)return zl(e.slice(o,f+1),f+1)}return zl(e.slice(o),e.length)}function vC(e,o){let r=e.codePointAt(o);if(r===BC||r===f0){let u=lz(e,o);if(u)return u}let c=cz(e,o);return c||sz(e,o)}function vM(e,o,r){for(;o<e.length;){let c=e.codePointAt(o);if(!SC.has(c))break;let u=vC(e,o);if(!u)break;r.push(u.token),o=u.endIndex}return o}function QM(e,o,r){let c=r.containing(o);if(!(!c||c.index!==o))return{token:{type:"character",value:c.segment,visibleWidth:SM(c.segment),isGraphemeContinuation:!1},endIndex:o+c.segment.length}}function uz(e){let o=[],r=0;for(;r<e.length;){let c=e.codePointAt(r);if(SC.has(c)){let f=vC(e,r);if(f){r=f.endIndex;continue}}let u=String.fromCodePoint(c);o.push({value:u,visibleWidth:1,isGraphemeContinuation:!1}),r+=u.length}return o}function Az(e){if(e.length===0)return;let o=e.map(({value:f})=>f).join(""),r=[],c=0;for(let f of e)r.push(c),c+=f.value.length;let u=0;for(let f of l1.segment(o)){for(;u<e.length&&r[u]<f.index;)u++;let m=u,E=!0;for(;m<e.length&&r[m]<f.index+f.segment.length;)e[m].visibleWidth=E?SM(f.segment):0,e[m].isGraphemeContinuation=!E,E=!1,m++;u=m}}function o1(e,{endCharacter:o=Number.POSITIVE_INFINITY}={}){let r=[],c=uz(e);Az(c);let u=0,f=0,m=0;for(;u<e.length;){let E=e.codePointAt(u);if(SC.has(E)){let b=vC(e,u);if(b){r.push(b.token),u=b.endIndex;continue}}let S=String.fromCodePoint(E),v=c[f],R=Mm(E)?2:S.length;v&&(R=v.visibleWidth);let N={type:"character",value:S,visibleWidth:R,isGraphemeContinuation:v?v.isGraphemeContinuation:!1};if(r.push(N),u+=S.length,f++,m+=N.visibleWidth,m>=o){let b=c[f];if(!b||!b.isGraphemeContinuation){u=vM(e,u,r);break}}}return r}function bM(e,o){let r=`${e}${o}`,c=e.length;for(let u of l1.segment(r)){if(u.index===c)return!1;if(u.index>c)return!0}return!0}function dz(e,o,r,c){if(!r)return!1;let u=o,f=!1;for(;u<e.length;){let m=e.codePointAt(u);if(SC.has(m)){let S=vC(e,u);if(S){f=!0,u=S.endIndex;continue}}if(!f)return!1;let E=QM(e,u,c);return E?bM(r,E.token.value):!0}return!1}function c1(e,{endCharacter:o=Number.POSITIVE_INFINITY}={}){let r=[],c=l1.segment(e),u=0,f=0,m,E=!1;for(;u<e.length;){let S=e.codePointAt(u);if(SC.has(S)){let R=vC(e,u);if(R){r.push(R.token),u=R.endIndex,E=!0;continue}}let v=QM(e,u,c);if(!v)return o1(e,{endCharacter:o});if(E&&m&&bM(m,v.token.value))return o1(e,{endCharacter:o});if(r.push(v.token),u=v.endIndex,f+=v.token.visibleWidth,E=!1,m=v.token.value,f>=o){if(dz(e,u,m,c))return o1(e,{endCharacter:o});u=vM(e,u,r);break}}return r}var BC,fM,gM,pM,mM,f0,hM,EM,SC,Om,r1,s1,CM,b5,R5,w5,x5,yM,A0,IM,D5,d0,i1,a1,T5,_5,N5,M5,O5,H5,k5,U5,L5,G5,F5,z5,K5,Y5,uM,u0,t1,q5,n1,P5,J5,AM,dM,j5,V5,X5,Z5,W5,l1,BM,RM=L(()=>{AC();e1();BC=27,fM=144,gM=152,pM=155,mM=156,f0=157,hM=158,EM=159,SC=new Set([BC,fM,gM,pM,mM,f0,hM,EM]),Om="\x1B",r1="\x07",s1="[",CM="]",b5="P",R5="X",w5="^",x5="_",yM="m",A0="\\",IM=`${Om}${A0}`,D5="\x9D",d0="\x9C",i1=`${Om}${CM}8;`,a1=`${D5}8;`,T5=`${i1};`,_5=`${a1};`,N5="0".codePointAt(0),M5="9".codePointAt(0),O5=";".codePointAt(0),H5=":".codePointAt(0),k5="0".codePointAt(0),U5="?".codePointAt(0),L5=" ".codePointAt(0),G5="/".codePointAt(0),F5="@".codePointAt(0),z5="~".codePointAt(0),K5=127462,Y5=127487,uM=0,u0=38,t1=39,q5=48,n1=49,P5=5,J5=2,AM=3,dM=5,j5=2,V5=4,X5=65039,Z5=8419,W5=new RegExp("\\p{Emoji_Presentation}","v"),l1=new Intl.Segmenter(void 0,{granularity:"grapheme"}),BM=new Set;for(let[,e]of Ro.codes)BM.add(e);i($5,"isSgrParameterCharacter");i(ez,"isCsiParameterCharacter");i(tz,"isCsiIntermediateCharacter");i(nz,"isCsiFinalCharacter");i(oz,"isRegionalIndicatorCodePoint");i(zl,"createControlParseResult");i(rz,"isEmojiStyleGrapheme");i(SM,"getGraphemeWidth");i(iz,"getSgrPrefix");i(IC,"createSgrCode");i(az,"getSgrFragments");i(sz,"parseCsiCode");i(lz,"parseHyperlinkCode");i(cz,"parseControlStringCode");i(vC,"parseAnsiCode");i(vM,"appendTrailingAnsiTokens");i(QM,"parseCharacterTokenWithRawSegmentation");i(uz,"collectVisibleCharacters");i(Az,"applyGraphemeMetadata");i(o1,"tokenizeAnsiWithVisibleSegmentation");i(bM,"areValuesInSameGrapheme");i(dz,"hasAnsiSplitContinuationAhead");i(c1,"tokenizeAnsi")});function fz(e,o){for(let r of o)switch(r.type){case"reset":{e.clear();break}case"end":{e.delete(r.endCode);break}case"start":{e.delete(r.endCode),e.set(r.endCode,r.code);break}default:break}return e}function gz(e){return[...e.keys()].toReversed().join("")}function pz(e){return`${e.closePrefix}${e.terminator}`}function mz(e,o){let r=!1,c=!1;for(let u of e.fragments){if(u.type==="start"){r=!0;continue}if(u.type==="reset"&&o.size>0){c=!0;continue}u.type==="end"&&o.has(u.endCode)&&(c=!0)}return c&&!r}function hz(e){return e.fragments.some(o=>o.type==="start")}function u1(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let o=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+o),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=o)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function wM(e){e.activeHyperlinkHasVisibleText?e.returnValue+=pz(e.activeHyperlink):u1(e)}function Ez(e){e.isPastEnd&&!mz(e.token,e.activeStyles)||(e.include&&hz(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=fz(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code))}function Cz(e){if(!(e.isPastEnd&&(e.token.action!=="close"||!e.activeHyperlink))){if(e.token.action==="open")e.activeHyperlink&&wM(e),e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action==="close"){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText){u1(e);return}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}e.include&&(e.returnValue+=e.token.code)}}function yz(e){!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code)}function Iz(e){!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(""),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth}function Sz(e){Bz[e.token.type]?.(e)}function vz(e){let o=Array.from({length:e.length},()=>!1),r=!1;for(let c=e.length-1;c>=0;c--){let u=e[c];o[c]=r,u.type==="character"&&(r=!!u.isGraphemeContinuation)}return o}function Qz(e,o,r){return r===void 0?!1:o>=r?!0:e.type==="character"&&!e.isGraphemeContinuation&&o+e.visibleWidth>r}function el(e,o,r){let c=c1(e,{endCharacter:r}),u=vz(c),f={start:o,token:void 0,isPastEnd:!1,activeStyles:new Map,activeHyperlink:void 0,activeHyperlinkHasVisibleText:!1,activeHyperlinkOutputIndex:void 0,pendingSgrOutputIndex:void 0,pendingSgrActiveStyles:void 0,position:0,returnValue:"",include:!1};for(let[m,E]of c.entries()){let S=Qz(E,f.position,r);if(S&&E.type!=="character"&&u[m]&&(S=!1),S&&E.type==="character"&&!E.isGraphemeContinuation){f.activeHyperlink&&!f.activeHyperlinkHasVisibleText&&u1(f),f.pendingSgrOutputIndex!==void 0&&(f.returnValue=f.returnValue.slice(0,f.pendingSgrOutputIndex),f.activeStyles=f.pendingSgrActiveStyles,f.pendingSgrOutputIndex=void 0,f.pendingSgrActiveStyles=void 0);break}f.token=E,f.isPastEnd=S,Sz(f)}return f.include?(f.activeHyperlink&&wM(f),f.returnValue+=gz(f.activeStyles),f.returnValue):""}var Bz,A1=L(()=>{RM();i(fz,"applySgrFragments");i(gz,"undoAnsiCodes");i(pz,"closeHyperlink");i(mz,"shouldIncludeSgrAfterEnd");i(hz,"hasSgrStartFragment");i(u1,"discardPendingHyperlink");i(wM,"settleActiveHyperlink");i(Ez,"applySgrToken");i(Cz,"applyHyperlinkToken");i(yz,"applyControlToken");i(Iz,"applyCharacterToken");Bz={sgr:Ez,hyperlink:Cz,control:yz,character:Iz};i(Sz,"applyToken");i(vz,"createHasContinuationAheadMap");i(Qz,"isPastEndBoundary");i(el,"sliceAnsi")});function g0(e,o,r){if(e.charAt(o)===" ")return o;let c=r?1:-1;for(let u=0;u<=3;u++){let f=o+u*c;if(e.charAt(f)===" ")return f}return o}function Rz(e,o,r,c){if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof o!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof o}`);if(!Number.isFinite(o))throw new TypeError(`Expected \`columns\` to be a finite number, got ${o}`);if(!bz.has(r))throw new TypeError(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`);if(typeof c!="string")throw new TypeError(`Expected \`options.truncationCharacter\` to be a string, got ${typeof c}`)}function d1(e,o,r={}){let{position:c="end",space:u=!1,preferTruncationOnSpace:f=!1}=r,{truncationCharacter:m="\u2026"}=r;if(Rz(e,o,c,m),o<1)return"";let E=Ot(e);if(E<=o)return e;if(o===1)return m;let S={ESC:27,LEFT_BRACKET:91,LETTER_M:109},v=i(_=>_>=48&&_<=57||_===59,"isSgrParameter");function R(_){let k=0;for(;k+2<_.length&&_.codePointAt(k)===S.ESC&&_.codePointAt(k+1)===S.LEFT_BRACKET;){let H=k+2;for(;H<_.length&&v(_.codePointAt(H));)H++;if(H<_.length&&_.codePointAt(H)===S.LETTER_M){k=H+1;continue}break}return k}i(R,"leadingSgrSpanEndIndex");function N(_){let k=_.length;for(;k>1&&_.codePointAt(k-1)===S.LETTER_M;){let H=k-2;for(;H>=0&&v(_.codePointAt(H));)H--;if(H>=1&&_.codePointAt(H-1)===S.ESC&&_.codePointAt(H)===S.LEFT_BRACKET){k=H-1;continue}break}return k}i(N,"trailingSgrSpanStartIndex");function b(_,k){let H=N(_);return H===_.length?_+k:_.slice(0,H)+k+_.slice(H)}i(b,"appendWithInheritedStyleFromEnd");function M(_,k){let H=R(k);return H===0?_+k:k.slice(0,H)+_+k.slice(H)}if(i(M,"prependWithInheritedStyleFromStart"),c==="start"){if(f){let k=g0(e,E-o+Ot(m),!0),H=el(e,k,E).trim();return M(m,H)}u&&(m+=" ");let _=el(e,E-o+Ot(m),E);return M(m,_)}if(c==="middle"){u&&(m=` ${m} `,Ot(m)>=o&&(m=m.trim()));let _=Ot(m),k=Math.min(Math.floor(o/2),Math.max(0,o-_));if(f){let H=g0(e,k),$=g0(e,E-(o-k)+_,!0);return el(e,0,H)+m+el(e,$,E).trim()}return el(e,0,k)+m+el(e,E-(o-k)+_,E)}if(c==="end"){if(f){let k=g0(e,o-Ot(m)),H=el(e,0,k);return b(H,m)}u&&(m=` ${m}`);let _=el(e,0,o-Ot(m));return b(_,m)}}var bz,xM=L(()=>{A1();Ca();bz=new Set(["start","middle","end"]);i(g0,"getIndexOfNearestSpace");i(Rz,"validateInput");i(d1,"cliTruncate")});var DM,wz,p0,f1=L(()=>{fC();xM();DM={},wz=i((e,o,r)=>{let c=e+String(o)+String(r),u=DM[c];if(u)return u;let f=e;if(r==="wrap"&&(f=Ws(e,o,{trim:!1,hard:!0})),r==="hard"&&(f=Ws(e,o,{trim:!1,hard:!0,wordWrap:!1})),r.startsWith("truncate")){let m="end";r==="truncate-middle"&&(m="middle"),r==="truncate-start"&&(m="start"),f=d1(e,o,{position:m})}return DM[c]=f,f},"wrapText"),p0=wz});var xz,Dz,Tz,NM,_z,MM,TM,_M,Nz,Mz,Oz,g1,Hm,OM,HM=L(()=>{xz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=48&&o<=63},"isCsiParameterCharacter"),Dz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=32&&o<=47},"isCsiIntermediateCharacter"),Tz=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=64&&o<=126},"isCsiFinalCharacter"),NM=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=32&&o<=47},"isEscapeIntermediateCharacter"),_z=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=48&&o<=126},"isEscapeFinalCharacter"),MM=i(e=>{let o=e.codePointAt(0);return o!==void 0&&o>=128&&o<=159},"isC1ControlCharacter"),TM=i((e,o)=>{let r=o;for(;r<e.length;){let E=e[r];if(!xz(E))break;r++}let c=e.slice(o,r),u=r;for(;r<e.length;){let E=e[r];if(!Dz(E))break;r++}let f=e.slice(u,r),m=e[r];if(!(m===void 0||!Tz(m)))return{endIndex:r+1,parameterString:c,intermediateString:f,finalCharacter:m}},"readCsiSequence"),_M=i((e,o,r)=>{for(let c=o;c<e.length;c++){let u=e[c];if(r&&u==="\x07"||u==="\x9C")return c+1;if(u==="\x1B"){let f=e[c+1];if(f==="\x1B"){c++;continue}if(f==="\\")return c+2}}},"findControlStringTerminatorIndex"),Nz=i((e,o)=>{let r=o;for(;r<e.length;){let f=e[r];if(!NM(f))break;r++}let c=e.slice(o,r),u=e[r];if(!(u===void 0||!_z(u)))return{endIndex:r+1,intermediateString:c,finalCharacter:u}},"readEscapeSequence"),Mz=i(e=>{switch(e){case"]":return{type:"osc",allowBellTerminator:!0};case"P":return{type:"dcs",allowBellTerminator:!1};case"^":return{type:"pm",allowBellTerminator:!1};case"_":return{type:"apc",allowBellTerminator:!1};case"X":return{type:"sos",allowBellTerminator:!1};default:return}},"getControlStringFromEscapeIntroducer"),Oz=i(e=>{switch(e){case"\x9D":return{type:"osc",allowBellTerminator:!0};case"\x90":return{type:"dcs",allowBellTerminator:!1};case"\x9E":return{type:"pm",allowBellTerminator:!1};case"\x9F":return{type:"apc",allowBellTerminator:!1};case"\x98":return{type:"sos",allowBellTerminator:!1};default:return}},"getControlStringFromC1Introducer"),g1=i(e=>{if(e.includes("\x1B"))return!0;for(let o of e)if(MM(o))return!0;return!1},"hasAnsiControlCharacters"),Hm=i((e,o,r,c)=>(c>r&&e.push({type:"text",value:o.slice(r,c)}),e.push({type:"invalid",value:o.slice(c)}),e),"malformedFromIndex"),OM=i(e=>{if(!g1(e))return[{type:"text",value:e}];let o=[],r=0;for(let c=0;c<e.length;){let u=e[c];if(u===void 0)break;if(u==="\x1B"){let m=e[c+1];if(m===void 0)return Hm(o,e,r,c);if(m==="["){let v=TM(e,c+2);if(v===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"csi",value:e.slice(c,v.endIndex),parameterString:v.parameterString,intermediateString:v.intermediateString,finalCharacter:v.finalCharacter}),c=v.endIndex,r=c;continue}let E=Mz(m);if(E!==void 0){let v=_M(e,c+2,E.allowBellTerminator);if(v===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:E.type,value:e.slice(c,v)}),c=v,r=c;continue}let S=Nz(e,c+1);if(S===void 0){if(NM(m))return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),c++,r=c;continue}c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"esc",value:e.slice(c,S.endIndex),intermediateString:S.intermediateString,finalCharacter:S.finalCharacter}),c=S.endIndex,r=c;continue}if(u==="\x9B"){let m=TM(e,c+1);if(m===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"csi",value:e.slice(c,m.endIndex),parameterString:m.parameterString,intermediateString:m.intermediateString,finalCharacter:m.finalCharacter}),c=m.endIndex,r=c;continue}let f=Oz(u);if(f!==void 0){let m=_M(e,c+1,f.allowBellTerminator);if(m===void 0)return Hm(o,e,r,c);c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:f.type,value:e.slice(c,m)}),c=m,r=c;continue}if(u==="\x9C"){c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"st",value:u}),c++,r=c;continue}if(MM(u)){c>r&&o.push({type:"text",value:e.slice(r,c)}),o.push({type:"c1",value:u}),c++,r=c;continue}c++}return r<e.length&&o.push({type:"text",value:e.slice(r)}),o},"tokenizeAnsi")});var Hz,kz,kM,UM=L(()=>{HM();Hz=/^[\d:;]*$/,kz=i(e=>{if(!g1(e))return e;let o="";for(let r of OM(e)){if(r.type==="text"||r.type==="osc"){o+=r.value;continue}r.type==="csi"&&r.finalCharacter==="m"&&r.intermediateString===""&&Hz.test(r.parameterString)&&(o+=r.value)}return o},"sanitizeAnsi"),kM=kz});var LM,QC,p1=L(()=>{UM();LM=i(e=>{let o="";for(let r=0;r<e.childNodes.length;r++){let c=e.childNodes[r];if(c===void 0)continue;let u="";c.nodeName==="#text"?u=c.nodeValue:((c.nodeName==="ink-text"||c.nodeName==="ink-virtual-text")&&(u=LM(c)),u.length>0&&typeof c.internal_transform=="function"&&(u=c.internal_transform(u,r))),o+=u}return kM(o)},"squashTextNodes"),QC=LM});var km,m0,m1,bC,h1,E1,GM,Uz,FM,h0,RC,zM,E0,wC=L(async()=>{await XA();cM();f1();p1();km=i(e=>{let o={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e==="ink-virtual-text"?void 0:st.Node.create(),internal_accessibility:{}};return e==="ink-text"&&o.yogaNode?.setMeasureFunc(Uz.bind(null,o)),o},"createNode"),m0=i((e,o)=>{o.parentNode&&bC(o.parentNode,o),o.parentNode=e,e.childNodes.push(o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,e.yogaNode.getChildCount()),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&h0(e)},"appendChildNode"),m1=i((e,o,r)=>{o.parentNode&&bC(o.parentNode,o),o.parentNode=e;let c=e.childNodes.indexOf(r);c>=0?(e.childNodes.splice(c,0,o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,c)):(e.childNodes.push(o),o.yogaNode&&e.yogaNode?.insertChild(o.yogaNode,e.yogaNode.getChildCount())),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&h0(e)},"insertBeforeNode"),bC=i((e,o)=>{o.yogaNode&&o.parentNode?.yogaNode?.removeChild(o.yogaNode),o.parentNode=void 0;let r=e.childNodes.indexOf(o);r>=0&&e.childNodes.splice(r,1),(e.nodeName==="ink-text"||e.nodeName==="ink-virtual-text")&&h0(e)},"removeChildNode"),h1=i((e,o,r)=>{if(o==="internal_accessibility"){e.internal_accessibility=r;return}e.attributes[o]=r},"setAttribute"),E1=i((e,o)=>{e.style=o??{}},"setStyle"),GM=i(e=>{let o={nodeName:"#text",nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return RC(o,e),o},"createTextNode"),Uz=i(function(e,o){let r=e.nodeName==="#text"?e.nodeValue:QC(e),c=$b(r);if(c.width<=o||c.width>=1&&o>0&&o<1)return c;let u=e.style?.textWrap??"wrap",f=p0(r,o,u);return $b(f)},"measureTextNode"),FM=i(e=>{if(e?.parentNode)return e.yogaNode??FM(e.parentNode)},"findClosestYogaNode"),h0=i(e=>{FM(e)?.markDirty()},"markNodeAsDirty"),RC=i((e,o)=>{typeof o!="string"&&(o=String(o)),e.nodeValue=o,h0(e)},"setTextNodeValue"),zM=i((e,o)=>e.nodeName!=="ink-root"?()=>{}:(e.internal_layoutListeners??=new Set,e.internal_layoutListeners.add(o),()=>{e.internal_layoutListeners?.delete(o)}),"addLayoutListener"),E0=i(e=>{if(!(e.nodeName!=="ink-root"||!e.internal_layoutListeners))for(let o of e.internal_layoutListeners)o()},"emitLayoutListeners")});var Gz,Fz,zz,Kz,Yz,qz,Pz,Jz,jz,Vz,C1,KM=L(async()=>{await XA();Gz=[["top",st.EDGE_TOP],["right",st.EDGE_RIGHT],["bottom",st.EDGE_BOTTOM],["left",st.EDGE_LEFT]],Fz=i((e,o)=>{if("position"in o){let r=st.POSITION_TYPE_RELATIVE;o.position==="absolute"?r=st.POSITION_TYPE_ABSOLUTE:o.position==="static"&&(r=st.POSITION_TYPE_STATIC),e.setPositionType(r)}for(let[r,c]of Gz){if(!(r in o))continue;let u=o[r];if(typeof u=="string"){e.setPositionPercent(c,Number.parseFloat(u));continue}e.setPosition(c,u)}},"applyPositionStyles"),zz=i((e,o)=>{"margin"in o&&e.setMargin(st.EDGE_ALL,o.margin??0),"marginX"in o&&e.setMargin(st.EDGE_HORIZONTAL,o.marginX??0),"marginY"in o&&e.setMargin(st.EDGE_VERTICAL,o.marginY??0),"marginLeft"in o&&e.setMargin(st.EDGE_START,o.marginLeft??0),"marginRight"in o&&e.setMargin(st.EDGE_END,o.marginRight??0),"marginTop"in o&&e.setMargin(st.EDGE_TOP,o.marginTop??0),"marginBottom"in o&&e.setMargin(st.EDGE_BOTTOM,o.marginBottom??0)},"applyMarginStyles"),Kz=i((e,o)=>{"padding"in o&&e.setPadding(st.EDGE_ALL,o.padding??0),"paddingX"in o&&e.setPadding(st.EDGE_HORIZONTAL,o.paddingX??0),"paddingY"in o&&e.setPadding(st.EDGE_VERTICAL,o.paddingY??0),"paddingLeft"in o&&e.setPadding(st.EDGE_LEFT,o.paddingLeft??0),"paddingRight"in o&&e.setPadding(st.EDGE_RIGHT,o.paddingRight??0),"paddingTop"in o&&e.setPadding(st.EDGE_TOP,o.paddingTop??0),"paddingBottom"in o&&e.setPadding(st.EDGE_BOTTOM,o.paddingBottom??0)},"applyPaddingStyles"),Yz=i((e,o)=>{"flexGrow"in o&&e.setFlexGrow(o.flexGrow??0),"flexShrink"in o&&e.setFlexShrink(typeof o.flexShrink=="number"?o.flexShrink:1),"flexWrap"in o&&(o.flexWrap==="nowrap"&&e.setFlexWrap(st.WRAP_NO_WRAP),o.flexWrap==="wrap"&&e.setFlexWrap(st.WRAP_WRAP),o.flexWrap==="wrap-reverse"&&e.setFlexWrap(st.WRAP_WRAP_REVERSE)),"flexDirection"in o&&(o.flexDirection==="row"&&e.setFlexDirection(st.FLEX_DIRECTION_ROW),o.flexDirection==="row-reverse"&&e.setFlexDirection(st.FLEX_DIRECTION_ROW_REVERSE),o.flexDirection==="column"&&e.setFlexDirection(st.FLEX_DIRECTION_COLUMN),o.flexDirection==="column-reverse"&&e.setFlexDirection(st.FLEX_DIRECTION_COLUMN_REVERSE)),"flexBasis"in o&&(typeof o.flexBasis=="number"?e.setFlexBasis(o.flexBasis):typeof o.flexBasis=="string"?e.setFlexBasisPercent(Number.parseInt(o.flexBasis,10)):e.setFlexBasisAuto()),"alignItems"in o&&((o.alignItems==="stretch"||!o.alignItems)&&e.setAlignItems(st.ALIGN_STRETCH),o.alignItems==="flex-start"&&e.setAlignItems(st.ALIGN_FLEX_START),o.alignItems==="center"&&e.setAlignItems(st.ALIGN_CENTER),o.alignItems==="flex-end"&&e.setAlignItems(st.ALIGN_FLEX_END),o.alignItems==="baseline"&&e.setAlignItems(st.ALIGN_BASELINE)),"alignSelf"in o&&((o.alignSelf==="auto"||!o.alignSelf)&&e.setAlignSelf(st.ALIGN_AUTO),o.alignSelf==="flex-start"&&e.setAlignSelf(st.ALIGN_FLEX_START),o.alignSelf==="center"&&e.setAlignSelf(st.ALIGN_CENTER),o.alignSelf==="flex-end"&&e.setAlignSelf(st.ALIGN_FLEX_END),o.alignSelf==="stretch"&&e.setAlignSelf(st.ALIGN_STRETCH),o.alignSelf==="baseline"&&e.setAlignSelf(st.ALIGN_BASELINE)),"alignContent"in o&&((o.alignContent==="flex-start"||!o.alignContent)&&e.setAlignContent(st.ALIGN_FLEX_START),o.alignContent==="center"&&e.setAlignContent(st.ALIGN_CENTER),o.alignContent==="flex-end"&&e.setAlignContent(st.ALIGN_FLEX_END),o.alignContent==="space-between"&&e.setAlignContent(st.ALIGN_SPACE_BETWEEN),o.alignContent==="space-around"&&e.setAlignContent(st.ALIGN_SPACE_AROUND),o.alignContent==="space-evenly"&&e.setAlignContent(st.ALIGN_SPACE_EVENLY),o.alignContent==="stretch"&&e.setAlignContent(st.ALIGN_STRETCH)),"justifyContent"in o&&((o.justifyContent==="flex-start"||!o.justifyContent)&&e.setJustifyContent(st.JUSTIFY_FLEX_START),o.justifyContent==="center"&&e.setJustifyContent(st.JUSTIFY_CENTER),o.justifyContent==="flex-end"&&e.setJustifyContent(st.JUSTIFY_FLEX_END),o.justifyContent==="space-between"&&e.setJustifyContent(st.JUSTIFY_SPACE_BETWEEN),o.justifyContent==="space-around"&&e.setJustifyContent(st.JUSTIFY_SPACE_AROUND),o.justifyContent==="space-evenly"&&e.setJustifyContent(st.JUSTIFY_SPACE_EVENLY))},"applyFlexStyles"),qz=i((e,o)=>{"width"in o&&(typeof o.width=="number"?e.setWidth(o.width):typeof o.width=="string"?e.setWidthPercent(Number.parseInt(o.width,10)):e.setWidthAuto()),"height"in o&&(typeof o.height=="number"?e.setHeight(o.height):typeof o.height=="string"?e.setHeightPercent(Number.parseInt(o.height,10)):e.setHeightAuto()),"minWidth"in o&&(typeof o.minWidth=="string"?e.setMinWidthPercent(Number.parseInt(o.minWidth,10)):e.setMinWidth(o.minWidth??0)),"minHeight"in o&&(typeof o.minHeight=="string"?e.setMinHeightPercent(Number.parseInt(o.minHeight,10)):e.setMinHeight(o.minHeight??0)),"maxWidth"in o&&(typeof o.maxWidth=="string"?e.setMaxWidthPercent(Number.parseInt(o.maxWidth,10)):e.setMaxWidth(o.maxWidth)),"maxHeight"in o&&(typeof o.maxHeight=="string"?e.setMaxHeightPercent(Number.parseInt(o.maxHeight,10)):e.setMaxHeight(o.maxHeight)),"aspectRatio"in o&&e.setAspectRatio(o.aspectRatio)},"applyDimensionStyles"),Pz=i((e,o)=>{"display"in o&&e.setDisplay(o.display==="flex"?st.DISPLAY_FLEX:st.DISPLAY_NONE)},"applyDisplayStyles"),Jz=i((e,o,r)=>{if(!("borderStyle"in o||"borderTop"in o||"borderBottom"in o||"borderLeft"in o||"borderRight"in o))return;let u=r.borderStyle?1:0;e.setBorder(st.EDGE_TOP,r.borderTop===!1?0:u),e.setBorder(st.EDGE_BOTTOM,r.borderBottom===!1?0:u),e.setBorder(st.EDGE_LEFT,r.borderLeft===!1?0:u),e.setBorder(st.EDGE_RIGHT,r.borderRight===!1?0:u)},"applyBorderStyles"),jz=i((e,o)=>{"gap"in o&&e.setGap(st.GUTTER_ALL,o.gap??0),"columnGap"in o&&e.setGap(st.GUTTER_COLUMN,o.columnGap??0),"rowGap"in o&&e.setGap(st.GUTTER_ROW,o.rowGap??0)},"applyGapStyles"),Vz=i((e,o={},r=o)=>{Fz(e,o),zz(e,o),Kz(e,o),Yz(e,o),qz(e,o),Pz(e,o),Jz(e,o,r),jz(e,o)},"styles"),C1=Vz});var C0,YM=L(()=>{UB();C0=globalThis;C0.WebSocket||=tC;C0.window||=globalThis;C0.self||=globalThis;C0.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}]});var y1,qM=L(()=>{"use strict";y1={initialize:i(()=>{},"initialize"),connectToDevTools:i(()=>{},"connectToDevTools")}});var Zz={};var Xz,PM=L(async()=>{YM();UB();qM();Xz=i(async()=>new Promise(e=>{let o=new tC("ws://localhost:8097"),r=setTimeout(()=>{o.terminate(),e(!1)},2e3);r.unref(),o.on("open",()=>{clearTimeout(r),o.terminate(),e(!0)}),o.on("error",()=>{clearTimeout(r),o.terminate(),e(!1)})}),"isDevToolsReachable");await Xz()?(y1.initialize(),y1.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
|
|
254
|
+
|
|
255
|
+
$ npx react-devtools
|
|
256
|
+
`)});import VM from"node:process";async function Wz(){let o=(await import("node:fs")).readFileSync(new URL("../package.json",import.meta.url),"utf8"),r=JSON.parse(o);return{name:r?.name,version:r?.version}}var XM,DC,WA,I0,JM,jM,y0,Pf,xC,hr,TC=L(async()=>{XM=He(sM(),1),DC=He(e0(),1),WA=He(c0(),1);await XA();I0=He(Mt(),1);await wC();await KM();if(VM.env.DEV==="true"){let e=!1;try{import.meta.resolve("react-devtools-core"),e=!0}catch{}e&&await PM().then(()=>Zz)}JM=i((e,o)=>{if(e===o)return;if(!e)return o;let r={},c=!1;for(let u of Object.keys(e))(!o||!Object.hasOwn(o,u))&&(r[u]=void 0,c=!0);if(o)for(let u of Object.keys(o))o[u]!==e[u]&&(r[u]=o[u],c=!0);return c?r:void 0},"diff"),jM=i(e=>{e?.unsetMeasureFunc(),e?.freeRecursive()},"cleanupYogaNode"),y0=DC.NoEventPriority;i(Wz,"loadPackageJson");xC={name:"ink",version:I0.version};if(VM.env.DEV==="true")try{let e=await Wz();xC={name:e.name||xC.name,version:e.version||xC.version}}catch(e){console.warn("Failed to load package.json in development mode. Falling back to default renderer metadata.",e)}hr=(0,XM.default)({getRootHostContext:i(()=>({isInsideText:!1}),"getRootHostContext"),prepareForCommit:i(()=>null,"prepareForCommit"),preparePortalMount:i(()=>null,"preparePortalMount"),clearContainer:i(()=>!1,"clearContainer"),resetAfterCommit(e){if(typeof e.onComputeLayout=="function"&&e.onComputeLayout(),E0(e),e.staticNode!==e.previousStaticNode&&(e.previousStaticNode=e.staticNode,typeof e.onStaticChange=="function"&&e.onStaticChange()),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender=="function"&&e.onImmediateRender();return}typeof e.onRender=="function"&&e.onRender()},getChildHostContext(e,o){let r=e.isInsideText,c=o==="ink-text"||o==="ink-virtual-text";return r===c?e:{isInsideText:c}},shouldSetTextContent:i(()=>!1,"shouldSetTextContent"),createInstance(e,o,r,c){if(c.isInsideText&&e==="ink-box")throw new Error("<Box> can\u2019t be nested inside <Text> component");let u=e==="ink-text"&&c.isInsideText?"ink-virtual-text":e,f=km(u);for(let[m,E]of Object.entries(o))if(m!=="children"){if(m==="style"){E1(f,E),f.yogaNode&&C1(f.yogaNode,E);continue}if(m==="internal_transform"){f.internal_transform=E;continue}if(m==="internal_static"){Pf=r,f.internal_static=!0,r.isStaticDirty=!0,r.staticNode=f;continue}h1(f,m,E)}return f},createTextInstance(e,o,r){if(!r.isInsideText)throw new Error(`Text string "${e}" must be rendered inside <Text> component`);return GM(e)},resetTextContent(){},hideTextInstance(e){RC(e,"")},unhideTextInstance(e,o){RC(e,o)},getPublicInstance:i(e=>e,"getPublicInstance"),hideInstance(e){e.yogaNode?.setDisplay(st.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(st.DISPLAY_FLEX)},appendInitialChild:m0,appendChild:m0,insertBefore:m1,finalizeInitialChildren(){return!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,scheduleCallback:WA.unstable_scheduleCallback,cancelCallback:WA.unstable_cancelCallback,shouldYield:WA.unstable_shouldYield,now:WA.unstable_now,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:i(()=>null,"getInstanceFromNode"),prepareScopeUpdate(){},getInstanceFromScope:i(()=>null,"getInstanceFromScope"),appendChildToContainer:m0,insertInContainerBefore:m1,removeChildFromContainer(e,o){bC(e,o),jM(o.yogaNode),o.internal_static&&Pf?.staticNode===o&&(Pf.staticNode=void 0)},commitUpdate(e,o,r,c){Pf&&e.internal_static&&(Pf.isStaticDirty=!0);let u=JM(r,c),f=JM(r.style,c.style);if(!(!u&&!f)){if(u)for(let[m,E]of Object.entries(u)){if(m==="style"){E1(e,E);continue}if(m==="internal_transform"){e.internal_transform=E;continue}if(m==="internal_static"){e.internal_static=!0;continue}h1(e,m,E)}f&&e.yogaNode&&C1(e.yogaNode,f,c.style??{})}},commitTextUpdate(e,o,r){RC(e,r)},removeChild(e,o){bC(e,o),jM(o.yogaNode),o.internal_static&&Pf?.staticNode===o&&(Pf.staticNode=void 0)},setCurrentUpdatePriority(e){y0=e},getCurrentUpdatePriority:i(()=>y0,"getCurrentUpdatePriority"),resolveUpdatePriority(){return y0!==DC.NoEventPriority?y0:DC.DefaultEventPriority},maySuspendCommit(){return!0},NotPendingTransition:void 0,HostTransitionContext:(0,I0.createContext)(null),resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},rendererPackageName:xC.name,rendererVersion:xC.version})});function I1(e,o=1,r={}){let{indent:c=" ",includeEmptyLines:u=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof o!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof o}\``);if(o<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${o}\``);if(typeof c!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof c}\``);if(o===0)return e;let f=u?/^/gm:/^(?!\s*$)/gm;return e.replace(f,c.repeat(o))}var ZM=L(()=>{i(I1,"indentString")});var $z,WM,$M=L(async()=>{await XA();$z=i(e=>e.getComputedWidth()-e.getComputedPadding(st.EDGE_LEFT)-e.getComputedPadding(st.EDGE_RIGHT)-e.getComputedBorder(st.EDGE_LEFT)-e.getComputedBorder(st.EDGE_RIGHT),"getMaxWidth"),WM=$z});var tO,eO=L(()=>{tO={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var nO,oO=L(()=>{eO();nO=tO});function o9(){let e=new Map;for(let[o,r]of Object.entries(Jo)){for(let[c,u]of Object.entries(r))Jo[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},r[c]=Jo[c],e.set(u[0],u[1]);Object.defineProperty(Jo,o,{value:r,enumerable:!1})}return Object.defineProperty(Jo,"codes",{value:e,enumerable:!1}),Jo.color.close="\x1B[39m",Jo.bgColor.close="\x1B[49m",Jo.color.ansi=rO(),Jo.color.ansi256=iO(),Jo.color.ansi16m=aO(),Jo.bgColor.ansi=rO(10),Jo.bgColor.ansi256=iO(10),Jo.bgColor.ansi16m=aO(10),Object.defineProperties(Jo,{rgbToAnsi256:{value(o,r,c){return o===r&&r===c?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(r/255*5)+Math.round(c/255*5)},enumerable:!1},hexToRgb:{value(o){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(o.toString(16));if(!r)return[0,0,0];let[c]=r;c.length===3&&(c=[...c].map(f=>f+f).join(""));let u=Number.parseInt(c,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i(o=>Jo.rgbToAnsi256(...Jo.hexToRgb(o)),"value"),enumerable:!1},ansi256ToAnsi:{value(o){if(o<8)return 30+o;if(o<16)return 90+(o-8);let r,c,u;if(o>=232)r=((o-232)*10+8)/255,c=r,u=r;else{o-=16;let E=o%36;r=Math.floor(o/36)/5,c=Math.floor(E/6)/5,u=E%6/5}let f=Math.max(r,c,u)*2;if(f===0)return 30;let m=30+(Math.round(u)<<2|Math.round(c)<<1|Math.round(r));return f===2&&(m+=60),m},enumerable:!1},rgbToAnsi:{value:i((o,r,c)=>Jo.ansi256ToAnsi(Jo.rgbToAnsi256(o,r,c)),"value"),enumerable:!1},hexToAnsi:{value:i(o=>Jo.ansi256ToAnsi(Jo.hexToAnsi256(o)),"value"),enumerable:!1}}),Jo}var rO,iO,aO,Jo,c$,t9,n9,u$,r9,Kl,sO=L(()=>{rO=i((e=0)=>o=>`\x1B[${o+e}m`,"wrapAnsi16"),iO=i((e=0)=>o=>`\x1B[${38+e};5;${o}m`,"wrapAnsi256"),aO=i((e=0)=>(o,r,c)=>`\x1B[${38+e};2;${o};${r};${c}m`,"wrapAnsi16m"),Jo={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},c$=Object.keys(Jo.modifier),t9=Object.keys(Jo.color),n9=Object.keys(Jo.bgColor),u$=[...t9,...n9];i(o9,"assembleStyles");r9=o9(),Kl=r9});import B1 from"node:process";import i9 from"node:os";import lO from"node:tty";function tl(e,o=globalThis.Deno?globalThis.Deno.args:B1.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",c=o.indexOf(r+e),u=o.indexOf("--");return c!==-1&&(u===-1||c<u)}function a9(){if("FORCE_COLOR"in jo)return jo.FORCE_COLOR==="true"?1:jo.FORCE_COLOR==="false"?0:jo.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(jo.FORCE_COLOR,10),3)}function s9(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l9(e,{streamIsTTY:o,sniffFlags:r=!0}={}){let c=a9();c!==void 0&&(B0=c);let u=r?B0:c;if(u===0)return 0;if(r){if(tl("color=16m")||tl("color=full")||tl("color=truecolor"))return 3;if(tl("color=256"))return 2}if("TF_BUILD"in jo&&"AGENT_NAME"in jo)return 1;if(e&&!o&&u===void 0)return 0;let f=u||0;if(jo.TERM==="dumb")return f;if(B1.platform==="win32"){let m=i9.release().split(".");return Number(m[0])>=10&&Number(m[2])>=10586?Number(m[2])>=14931?3:2:1}if("CI"in jo)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(m=>m in jo)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(m=>m in jo)||jo.CI_NAME==="codeship"?1:f;if("TEAMCITY_VERSION"in jo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jo.TEAMCITY_VERSION)?1:0;if(jo.COLORTERM==="truecolor"||jo.TERM==="xterm-kitty"||jo.TERM==="xterm-ghostty"||jo.TERM==="wezterm")return 3;if("TERM_PROGRAM"in jo){let m=Number.parseInt((jo.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(jo.TERM_PROGRAM){case"iTerm.app":return m>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(jo.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jo.TERM)||"COLORTERM"in jo?1:f}function cO(e,o={}){let r=l9(e,{streamIsTTY:e&&e.isTTY,...o});return s9(r)}var jo,B0,c9,uO,AO=L(()=>{i(tl,"hasFlag");({env:jo}=B1);tl("no-color")||tl("no-colors")||tl("color=false")||tl("color=never")?B0=0:(tl("color")||tl("colors")||tl("color=true")||tl("color=always"))&&(B0=1);i(a9,"envForceColor");i(s9,"translateLevel");i(l9,"_supportsColor");i(cO,"createSupportsColor");c9={stdout:cO({isTTY:lO.isatty(1)}),stderr:cO({isTTY:lO.isatty(2)})},uO=c9});function dO(e,o,r){let c=e.indexOf(o);if(c===-1)return e;let u=o.length,f=0,m="";do m+=e.slice(f,c)+o+r,f=c+u,c=e.indexOf(o,f);while(c!==-1);return m+=e.slice(f),m}function fO(e,o,r,c){let u=0,f="";do{let m=e[c-1]==="\r";f+=e.slice(u,m?c-1:c)+o+(m?`\r
|
|
257
|
+
`:`
|
|
258
|
+
`)+r,u=c+1,c=e.indexOf(`
|
|
259
|
+
`,u)}while(c!==-1);return f+=e.slice(u),f}var gO=L(()=>{i(dO,"stringReplaceAll");i(fO,"stringEncaseCRLFWithFirstIndex")});function NC(e){return A9(e)}var pO,mO,S1,Um,_C,hO,Lm,u9,A9,v1,d9,f9,Q1,S0,g9,p9,S$,$r,v0=L(()=>{sO();AO();gO();({stdout:pO,stderr:mO}=uO),S1=Symbol("GENERATOR"),Um=Symbol("STYLER"),_C=Symbol("IS_EMPTY"),hO=["ansi","ansi","ansi256","ansi16m"],Lm=Object.create(null),u9=i((e,o={})=>{if(o.level&&!(Number.isInteger(o.level)&&o.level>=0&&o.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=pO?pO.level:0;e.level=o.level===void 0?r:o.level},"applyOptions"),A9=i(e=>{let o=i((...r)=>r.join(" "),"chalk");return u9(o,e),Object.setPrototypeOf(o,NC.prototype),o},"chalkFactory");i(NC,"createChalk");Object.setPrototypeOf(NC.prototype,Function.prototype);for(let[e,o]of Object.entries(Kl))Lm[e]={get(){let r=S0(this,Q1(o.open,o.close,this[Um]),this[_C]);return Object.defineProperty(this,e,{value:r}),r}};Lm.visible={get(){let e=S0(this,this[Um],!0);return Object.defineProperty(this,"visible",{value:e}),e}};v1=i((e,o,r,...c)=>e==="rgb"?o==="ansi16m"?Kl[r].ansi16m(...c):o==="ansi256"?Kl[r].ansi256(Kl.rgbToAnsi256(...c)):Kl[r].ansi(Kl.rgbToAnsi(...c)):e==="hex"?v1("rgb",o,r,...Kl.hexToRgb(...c)):Kl[r][e](...c),"getModelAnsi"),d9=["rgb","hex","ansi256"];for(let e of d9){Lm[e]={get(){let{level:r}=this;return function(...c){let u=Q1(v1(e,hO[r],"color",...c),Kl.color.close,this[Um]);return S0(this,u,this[_C])}}};let o="bg"+e[0].toUpperCase()+e.slice(1);Lm[o]={get(){let{level:r}=this;return function(...c){let u=Q1(v1(e,hO[r],"bgColor",...c),Kl.bgColor.close,this[Um]);return S0(this,u,this[_C])}}}}f9=Object.defineProperties(()=>{},{...Lm,level:{enumerable:!0,get(){return this[S1].level},set(e){this[S1].level=e}}}),Q1=i((e,o,r)=>{let c,u;return r===void 0?(c=e,u=o):(c=r.openAll+e,u=o+r.closeAll),{open:e,close:o,openAll:c,closeAll:u,parent:r}},"createStyler"),S0=i((e,o,r)=>{let c=i((...u)=>g9(c,u.length===1?""+u[0]:u.join(" ")),"builder");return Object.setPrototypeOf(c,f9),c[S1]=e,c[Um]=o,c[_C]=r,c},"createBuilder"),g9=i((e,o)=>{if(e.level<=0||!o)return e[_C]?"":o;let r=e[Um];if(r===void 0)return o;let{openAll:c,closeAll:u}=r;if(o.includes("\x1B"))for(;r!==void 0;)o=dO(o,r.close,r.open),r=r.parent;let f=o.indexOf(`
|
|
260
|
+
`);return f!==-1&&(o=fO(o,u,c,f)),c+o+u},"applyStyle");Object.defineProperties(NC.prototype,Lm);p9=NC(),S$=NC({level:mO?mO.level:0}),$r=p9});var m9,h9,E9,C9,$A,Q0=L(()=>{v0();m9=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,h9=/^ansi256\(\s?(\d+)\s?\)$/,E9=i(e=>e in $r,"isNamedColor"),C9=i((e,o,r)=>{if(!o)return e;if(E9(o)){if(r==="foreground")return $r[o](e);let c=`bg${o[0].toUpperCase()+o.slice(1)}`;return $r[c](e)}if(o.startsWith("#"))return r==="foreground"?$r.hex(o)(e):$r.bgHex(o)(e);if(o.startsWith("ansi256")){let c=h9.exec(o);if(!c)return e;let u=Number(c[1]);return r==="foreground"?$r.ansi256(u)(e):$r.bgAnsi256(u)(e)}if(o.startsWith("rgb")){let c=m9.exec(o);if(!c)return e;let u=Number(c[1]),f=Number(c[2]),m=Number(c[3]);return r==="foreground"?$r.rgb(u,f,m)(e):$r.bgRgb(u,f,m)(e)}return e},"colorize"),$A=C9});var b0,y9,EO,CO=L(()=>{oO();v0();Q0();b0=i((e,o,r,c)=>{let u=$A(e,o,"foreground");return u=$A(u,r,"background"),c&&(u=$r.dim(u)),u},"stylePiece"),y9=i((e,o,r,c)=>{if(r.style.borderStyle){let u=r.yogaNode.getComputedWidth(),f=r.yogaNode.getComputedHeight(),m=typeof r.style.borderStyle=="string"?nO[r.style.borderStyle]:r.style.borderStyle,E=r.style.borderTopColor??r.style.borderColor,S=r.style.borderBottomColor??r.style.borderColor,v=r.style.borderLeftColor??r.style.borderColor,R=r.style.borderRightColor??r.style.borderColor,N=r.style.borderTopBackgroundColor??r.style.borderBackgroundColor,b=r.style.borderBottomBackgroundColor??r.style.borderBackgroundColor,M=r.style.borderLeftBackgroundColor??r.style.borderBackgroundColor,_=r.style.borderRightBackgroundColor??r.style.borderBackgroundColor,k=r.style.borderTopDimColor??r.style.borderDimColor,H=r.style.borderBottomDimColor??r.style.borderDimColor,$=r.style.borderLeftDimColor??r.style.borderDimColor,we=r.style.borderRightDimColor??r.style.borderDimColor,Qe=r.style.borderTop!==!1,re=r.style.borderBottom!==!1,Me=r.style.borderLeft!==!1,Ee=r.style.borderRight!==!1,ze=u-(Me?1:0)-(Ee?1:0),ce=Qe?(Me?m.topLeft:"")+m.top.repeat(ze)+(Ee?m.topRight:""):void 0;ce&&=b0(ce,E,N,k);let ae=f;Qe&&(ae-=1),re&&(ae-=1);let ie="";Me&&(ie=(b0(m.left,v,M,$)+`
|
|
261
|
+
`).repeat(ae));let ne="";Ee&&(ne=(b0(m.right,R,_,we)+`
|
|
262
|
+
`).repeat(ae));let ee=re?(Me?m.bottomLeft:"")+m.bottom.repeat(ze)+(Ee?m.bottomRight:""):void 0;ee&&=b0(ee,S,b,H);let Se=Qe?1:0;ce&&c.write(e,o,ce,{transformers:[]}),ie&&c.write(e,o+Se,ie,{transformers:[]}),ne&&c.write(e+u-1,o+Se,ne,{transformers:[]}),ee&&c.write(e,o+f-1,ee,{transformers:[]})}},"renderBorder"),EO=y9});var I9,yO,IO=L(()=>{Q0();I9=i((e,o,r,c)=>{if(!r.style.backgroundColor)return;let u=r.yogaNode.getComputedWidth(),f=r.yogaNode.getComputedHeight(),m=r.style.borderStyle&&r.style.borderLeft!==!1?1:0,E=r.style.borderStyle&&r.style.borderRight!==!1?1:0,S=r.style.borderStyle&&r.style.borderTop!==!1?1:0,v=r.style.borderStyle&&r.style.borderBottom!==!1?1:0,R=u-m-E,N=f-S-v;if(!(R>0&&N>0))return;let b=$A(" ".repeat(R),r.style.backgroundColor,"background");for(let M=0;M<N;M++)c.write(e+m,o+S+M,b,{transformers:[]})},"renderBackground"),yO=I9});var B9,R0,BO,b1,SO=L(async()=>{Wb();ZM();await XA();f1();await $M();p1();CO();IO();B9=i((e,o)=>{let r=e.childNodes[0]?.yogaNode;if(r){let c=r.getComputedLeft(),u=r.getComputedTop();o=`
|
|
263
|
+
`.repeat(u)+I1(o,c)}return o},"applyPaddingToText"),R0=i((e,o={})=>{if(o.skipStaticElements&&e.internal_static||e.yogaNode?.getDisplay()===st.DISPLAY_NONE)return"";let r="";if(e.nodeName==="ink-text")r=QC(e);else if(e.nodeName==="ink-box"||e.nodeName==="ink-root"){let c=e.style.flexDirection==="row"||e.style.flexDirection==="row-reverse"?" ":`
|
|
264
|
+
`;r=(e.style.flexDirection==="row-reverse"||e.style.flexDirection==="column-reverse"?[...e.childNodes].reverse():[...e.childNodes]).map(f=>R0(f,{parentRole:e.internal_accessibility?.role,skipStaticElements:o.skipStaticElements})).filter(Boolean).join(c)}if(e.internal_accessibility){let{role:c,state:u}=e.internal_accessibility;if(u){let m=Object.keys(u).filter(E=>u[E]).join(", ");m&&(r=`(${m}) ${r}`)}c&&c!==o.parentRole&&(r=`${c}: ${r}`)}return r},"renderNodeToScreenReaderOutput"),BO=i((e,o,r)=>{let{offsetX:c=0,offsetY:u=0,transformers:f=[],skipStaticElements:m}=r;if(m&&e.internal_static)return;let{yogaNode:E}=e;if(E){if(E.getDisplay()===st.DISPLAY_NONE)return;let S=c+E.getComputedLeft(),v=u+E.getComputedTop(),R=f;if(typeof e.internal_transform=="function"&&(R=[e.internal_transform,...f]),e.nodeName==="ink-text"){let b=QC(e);if(b.length>0){let M=yC(b),_=WM(E);if(M>_){let k=e.style.textWrap??"wrap";b=p0(b,_,k)}b=B9(e,b),o.write(S,v,b,{transformers:R})}return}let N=!1;if(e.nodeName==="ink-box"){yO(S,v,e,o),EO(S,v,e,o);let b=e.style.overflowX==="hidden"||e.style.overflow==="hidden",M=e.style.overflowY==="hidden"||e.style.overflow==="hidden";if(b||M){let _=b?S+E.getComputedBorder(st.EDGE_LEFT):void 0,k=b?S+E.getComputedWidth()-E.getComputedBorder(st.EDGE_RIGHT):void 0,H=M?v+E.getComputedBorder(st.EDGE_TOP):void 0,$=M?v+E.getComputedHeight()-E.getComputedBorder(st.EDGE_BOTTOM):void 0;o.clip({x1:_,x2:k,y1:H,y2:$}),N=!0}}if(e.nodeName==="ink-root"||e.nodeName==="ink-box"){for(let b of e.childNodes)BO(b,o,{offsetX:S,offsetY:v,transformers:R,skipStaticElements:m});N&&o.unclip()}}},"renderNodeToOutput"),b1=BO});var vO,MC,R1,w1,x1,D1,T1=L(()=>{vO=new Set([27,155]),MC="\x1B]8;",R1=MC.split("").map(e=>e.charCodeAt(0)),w1="\x1B]8;;\x07",x1="\x1B]8;;\x1B\\",D1="\x1B]8;;\x9C"});function N1(e){if(Jf.has(e))return e;if(_1.has(e))return _1.get(e);if(e.startsWith(MC))return e.endsWith("\x1B\\")?x1:e.endsWith("\x9C")?D1:w1;if(e=e.slice(2),e.startsWith("38"))return Ro.color.close;if(e.startsWith("48"))return Ro.bgColor.close;let o=Ro.codes.get(parseInt(e,10));return o?Ro.color.ansi(o):Ro.reset.open}function OC(e){return[...new Set(e.map(r=>r.code))].join("")}function w0(e){return e.code===Ro.bold.open||e.code===Ro.dim.open}var Jf,_1,Gm=L(()=>{AC();T1();Jf=new Set,_1=new Map;for(let[e,o]of Ro.codes)Jf.add(Ro.color.ansi(o)),_1.set(Ro.color.ansi(e),Ro.color.ansi(o));Jf.add(w1);Jf.add(x1);Jf.add(D1);i(N1,"getEndCode");i(OC,"ansiCodesToString");i(w0,"isIntensityCode")});function M1(e){return x0([],e)}function x0(e,o){let r=[...e];for(let c of o)c.code===Ro.reset.open?r=[]:Jf.has(c.code)?r=r.filter(u=>u.endCode!==c.code):w0(c)?r.find(u=>u.code===c.code&&u.endCode===c.endCode)||r.push(c):(r=r.filter(u=>u.endCode!==c.endCode),r.push(c));return r}var D0=L(()=>{AC();Gm();i(M1,"reduceAnsiCodes");i(x0,"reduceAnsiCodesIncremental")});function O1(e){return M1(e).reverse().map(o=>({...o,code:o.endCode}))}var H1=L(()=>{D0();i(O1,"undoAnsiCodes")});function T0(e,o){let r=new Set(o.map(f=>f.endCode)),c=new Set(o.map(f=>f.code)),u=new Set(e.map(f=>f.code));return[...O1(e.filter(f=>w0(f)?!c.has(f.code):!r.has(f.endCode))),...o.filter(f=>!u.has(f.code))]}var k1=L(()=>{Gm();H1();i(T0,"diffAnsiCodes")});function QO(e){let o=[],r=[];for(let c of e)c.type==="ansi"?o=x0(o,[c]):c.type==="char"&&r.push({...c,styles:[...o]});return r}function bO(e){let o="";for(let r=0;r<e.length;r++){let c=e[r];r===0?o+=OC(c.styles):o+=OC(T0(e[r-1].styles,c.styles)),o+=c.value,r===e.length-1&&(o+=OC(T0(c.styles,[])))}return o}var RO=L(()=>{Gm();k1();D0();i(QO,"styledCharsFromTokens");i(bO,"styledCharsToString")});function M9(e,o){return!!(Mm(o)||e.includes("\uFE0F")||o>=127462&&o<=127487)}function O9(e,o){e=e.slice(o);for(let u=1;u<R1.length;u++)if(e.charCodeAt(u)!==R1[u])return;let r=e.indexOf(";",MC.length);if(r===-1)return;let c=wO(e,r+1);if(c!==-1)return e.slice(0,c+1)}function H9(e,o){e=e.slice(o);let r=wO(e,2);if(r!==-1)return e.slice(0,r+1)}function wO(e,o){for(let r=o;r<e.length;r++){let c=e.charCodeAt(r);if(c===7||c===156)return r;if(c===27&&r+1<e.length&&e.charCodeAt(r+1)===92)return r+1}return-1}function k9(e){for(let o=2;o<e.length;o++){let r=e.charCodeAt(o);if(r===109)return o;if(r!==59&&!(r>=48&&r<=57))break}return-1}function U9(e,o){e=e.slice(o);let r=k9(e);if(r!==-1)return e.slice(0,r+1)}function L9(e){if(!e.includes(";"))return[e];let o=e.slice(2,-1).split(";"),r=[];for(let c=0;c<o.length;c++){let u=o[c];if(u==="38"||u==="48"){if(c+2<o.length&&o[c+1]==="5"){r.push(o.slice(c,c+3).join(";")),c+=2;continue}else if(c+4<o.length&&o[c+1]==="2"){r.push(o.slice(c,c+5).join(";")),c+=4;continue}}r.push(u)}return r.map(c=>`\x1B[${c}m`)}function xO(e,o=Number.POSITIVE_INFINITY){let r=[],c=0,u=0;for(let{segment:f,index:m}of N9.segment(e)){if(m<u)continue;let E=f.codePointAt(0);if(vO.has(E)){let v,R=e.codePointAt(m+1);if(R===93)v=O9(e,m),v?r.push({type:"ansi",code:v,endCode:N1(v)}):(v=H9(e,m),v&&r.push({type:"control",code:v}));else if(R===91&&(v=U9(e,m),v)){let N=L9(v);for(let b of N)r.push({type:"ansi",code:b,endCode:N1(b)})}if(v){u=m+v.length;continue}}let S=M9(f,E);if(r.push({type:"char",value:f,fullWidth:S}),c+=S?2:1,c>=o)break}return r}var N9,DO=L(()=>{e1();Gm();T1();N9=new Intl.Segmenter(void 0,{granularity:"grapheme"});i(M9,"isFullwidthGrapheme");i(O9,"parseLinkCode");i(H9,"parseOSCSequence");i(wO,"findOSCTerminatorIndex");i(k9,"findSGRSequenceEndIndex");i(U9,"parseSGRSequence");i(L9,"splitCompoundSGRSequences");i(xO,"tokenize")});var TO=L(()=>{Gm();k1();D0();RO();DO();H1()});var U1,Fm,_O=L(()=>{A1();Ca();TO();U1=class{static{i(this,"OutputCaches")}widths=new Map;blockWidths=new Map;styledChars=new Map;getStyledChars(o){let r=this.styledChars.get(o);return r===void 0&&(r=QO(xO(o)),this.styledChars.set(o,r)),r}getStringWidth(o){let r=this.widths.get(o);return r===void 0&&(r=Ot(o),this.widths.set(o,r)),r}getWidestLine(o){let r=this.blockWidths.get(o);if(r===void 0){let c=0;for(let u of o.split(`
|
|
265
|
+
`))c=Math.max(c,this.getStringWidth(u));r=c,this.blockWidths.set(o,r)}return r}},Fm=class{static{i(this,"Output")}width;height;operations=[];caches=new U1;constructor(o){let{width:r,height:c}=o;this.width=r,this.height=c}write(o,r,c,u){let{transformers:f}=u;c&&this.operations.push({type:"write",x:o,y:r,text:c,transformers:f})}clip(o){this.operations.push({type:"clip",clip:o})}unclip(){this.operations.push({type:"unclip"})}get(){let o=[];for(let u=0;u<this.height;u++){let f=[];for(let m=0;m<this.width;m++)f.push({type:"char",value:" ",fullWidth:!1,styles:[]});o.push(f)}let r=[];for(let u of this.operations)if(u.type==="clip"&&r.push(u.clip),u.type==="unclip"&&r.pop(),u.type==="write"){let{text:f,transformers:m}=u,{x:E,y:S}=u,v=f.split(`
|
|
266
|
+
`),R=r.at(-1);if(R){let b=typeof R?.x1=="number"&&typeof R?.x2=="number",M=typeof R?.y1=="number"&&typeof R?.y2=="number";if(b){let _=this.caches.getWidestLine(f);if(E+_<R.x1||E>R.x2)continue}if(M){let _=v.length;if(S+_<R.y1||S>R.y2)continue}if(b&&(v=v.map(_=>{let k=E<R.x1?R.x1-E:0,H=this.caches.getStringWidth(_),$=E+H>R.x2?R.x2-E:H;return el(_,k,$)}),E<R.x1&&(E=R.x1)),M){let _=S<R.y1?R.y1-S:0,k=v.length,H=S+k>R.y2?R.y2-S:k;v=v.slice(_,H),S<R.y1&&(S=R.y1)}}let N=0;for(let[b,M]of v.entries()){let _=o[S+N];if(!_)continue;for(let we of m)M=we(M,b);let k=this.caches.getStyledChars(M),H=E;if(k.length===0){N++;continue}let $={type:"char",value:" ",fullWidth:!1,styles:[]};_[H]?.value===""&&H>0&&this.caches.getStringWidth(_[H-1]?.value??"")>1&&(_[H-1]=$);for(let we of k){_[H]=we;let Qe=Math.max(1,this.caches.getStringWidth(we.value));if(Qe>1)for(let re=1;re<Qe;re++)_[H+re]={type:"char",value:"",fullWidth:!1,styles:we.styles};H+=Qe}_[H]?.value===""&&(_[H]=$),N++}}return{output:o.map(u=>{let f=u.filter(m=>m!==void 0);return bO(f).trimEnd()}).join(`
|
|
267
|
+
`),height:o.length}}}});var G9,HC,L1=L(async()=>{await SO();_O();G9=i((e,o)=>{if(e.yogaNode){if(o){let m=R0(e,{skipStaticElements:!0}),E=m===""?0:m.split(`
|
|
268
|
+
`).length,S="";return e.staticNode&&(S=R0(e.staticNode,{skipStaticElements:!1})),{output:m,outputHeight:E,staticOutput:S?`${S}
|
|
269
|
+
`:""}}let r=new Fm({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});b1(e,r,{skipStaticElements:!0});let c;e.staticNode?.yogaNode&&(c=new Fm({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),b1(e.staticNode,c,{skipStaticElements:!1}));let{output:u,height:f}=r.get();return{output:u,outputHeight:f,staticOutput:c?`${c.get().output}
|
|
270
|
+
`:""}}return{output:"",outputHeight:0,staticOutput:""}},"renderer"),HC=G9});var G1,jf,kC,Vf,NO,F1,UC,z1=L(()=>{jB();G1="\x1B[?25h",jf="\x1B[?25l",kC=i((e,o)=>e?.x!==o?.x||e?.y!==o?.y,"cursorPositionChanged"),Vf=i((e,o)=>{if(!o)return"";let r=e-o.y;return(r>0?bo.cursorUp(r):"")+bo.cursorTo(o.x)+G1},"buildCursorSuffix"),NO=i((e,o)=>{if(!o)return"";let r=e-1-o.y;return(r>0?bo.cursorDown(r):"")+bo.cursorTo(0)},"buildReturnToBottom"),F1=i(e=>{let o=e.cursorWasShown?jf:"",r=NO(e.previousLineCount,e.previousCursorPosition),c=Vf(e.visibleLineCount,e.cursorPosition);return o+r+c},"buildCursorOnlySequence"),UC=i((e,o,r)=>e?jf+NO(o,r):"","buildReturnToBottomPrefix")});var OO=Yn((Lee,K1)=>{"use strict";var MO=i((e,o)=>{for(let r of Reflect.ownKeys(o))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));return e},"mimicFn");K1.exports=MO;K1.exports.default=MO});var kO=Yn((Fee,N0)=>{"use strict";var F9=OO(),_0=new WeakMap,HO=i((e,o={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,c=0,u=e.displayName||e.name||"<anonymous>",f=i(function(...m){if(_0.set(f,++c),c===1)r=e.apply(this,m),e=null;else if(o.throw===!0)throw new Error(`Function \`${u}\` can only be called once`);return r},"onetime");return F9(f,e),_0.set(f,c),f},"onetime");N0.exports=HO;N0.exports.default=HO;N0.exports.callCount=e=>{if(!_0.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return _0.get(e)}});import z9 from"node:process";var UO,LO,K9,GO,FO=L(()=>{UO=He(kO(),1),LO=He(Sb(),1),K9=(0,UO.default)(()=>{(0,LO.default)(()=>{z9.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),GO=K9});import zO from"node:process";var M0,zm,Xf,Y1=L(()=>{FO();M0=!1,zm={};zm.show=(e=zO.stderr)=>{e.isTTY&&(M0=!1,e.write("\x1B[?25h"))};zm.hide=(e=zO.stderr)=>{e.isTTY&&(GO(),M0=!0,e.write("\x1B[?25l"))};zm.toggle=(e,o)=>{e!==void 0&&(M0=e),M0?zm.show(o):zm.hide(o)};Xf=zm});var LC,Y9,q9,P9,J9,KO,YO=L(()=>{jB();Y1();z1();LC=i((e,o)=>o.endsWith(`
|
|
271
|
+
`)?e.length-1:e.length,"visibleLineCount"),Y9=i((e,{showCursor:o=!1}={})=>{let r=0,c="",u=!1,f,m=!1,E,S=!1,v=i(()=>m?f:void 0,"getActiveCursor"),R=i((b,M)=>{let _=kC(M,E);return b!==c||_},"hasChanges"),N=i(b=>{!o&&!u&&(Xf.hide(e),u=!0);let M=v();m=!1;let _=kC(M,E);if(!R(b,M))return!1;let k=b.split(`
|
|
272
|
+
`),H=LC(k,b),$=Vf(H,M);if(b===c&&_)e.write(F1({cursorWasShown:S,previousLineCount:r,previousCursorPosition:E,visibleLineCount:H,cursorPosition:M}));else{c=b;let we=UC(S,r,E);e.write(we+bo.eraseLines(r)+b+$),r=k.length}return E=M?{...M}:void 0,S=M!==void 0,!0},"render");return N.clear=()=>{let b=UC(S,r,E);e.write(b+bo.eraseLines(r)),c="",r=0,E=void 0,S=!1},N.done=()=>{c="",r=0,E=void 0,S=!1,o||(Xf.show(e),u=!1)},N.reset=()=>{c="",r=0,E=void 0,S=!1},N.sync=b=>{let M=m?f:void 0;m=!1;let _=b.split(`
|
|
273
|
+
`);c=b,r=_.length,!M&&S&&e.write(jf),M&&e.write(Vf(LC(_,b),M)),E=M?{...M}:void 0,S=M!==void 0},N.setCursorPosition=b=>{f=b,m=!0},N.isCursorDirty=()=>m,N.willRender=b=>R(b,v()),N},"createStandard"),q9=i((e,{showCursor:o=!1}={})=>{let r=[],c="",u=!1,f,m=!1,E,S=!1,v=i(()=>m?f:void 0,"getActiveCursor"),R=i((b,M)=>{let _=kC(M,E);return b!==c||_},"hasChanges"),N=i(b=>{!o&&!u&&(Xf.hide(e),u=!0);let M=v();m=!1;let _=kC(M,E);if(!R(b,M))return!1;let k=b.split(`
|
|
274
|
+
`),H=LC(k,b),$=LC(r,c);if(b===c&&_)return e.write(F1({cursorWasShown:S,previousLineCount:r.length,previousCursorPosition:E,visibleLineCount:H,cursorPosition:M})),E=M?{...M}:void 0,S=M!==void 0,!0;let we=UC(S,r.length,E);if(b===`
|
|
275
|
+
`||c.length===0){let Ee=Vf(H,M);return e.write(we+bo.eraseLines(r.length)+b+Ee),S=M!==void 0,E=M?{...M}:void 0,c=b,r=k,!0}let Qe=b.endsWith(`
|
|
276
|
+
`),re=[];if(re.push(we),H<$){let ze=c.endsWith(`
|
|
277
|
+
`)?1:0;re.push(bo.eraseLines($-H+ze),bo.cursorUp(H))}else re.push(bo.cursorUp(r.length-1));for(let Ee=0;Ee<H;Ee++){let ze=Ee===H-1;if(k[Ee]===r[Ee]){(!ze||Qe)&&re.push(bo.cursorNextLine);continue}re.push(bo.cursorTo(0)+k[Ee]+bo.eraseEndLine+(ze&&!Qe?"":`
|
|
278
|
+
`))}let Me=Vf(H,M);return re.push(Me),e.write(re.join("")),S=M!==void 0,E=M?{...M}:void 0,c=b,r=k,!0},"render");return N.clear=()=>{let b=UC(S,r.length,E);e.write(b+bo.eraseLines(r.length)),c="",r=[],E=void 0,S=!1},N.done=()=>{c="",r=[],E=void 0,S=!1,o||(Xf.show(e),u=!1)},N.reset=()=>{c="",r=[],E=void 0,S=!1},N.sync=b=>{let M=m?f:void 0;m=!1;let _=b.split(`
|
|
279
|
+
`);c=b,r=_,!M&&S&&e.write(jf),M&&e.write(Vf(LC(_,b),M)),E=M?{...M}:void 0,S=M!==void 0},N.setCursorPosition=b=>{f=b,m=!0},N.isCursorDirty=()=>m,N.willRender=b=>R(b,v()),N},"createIncremental"),P9=i((e,{showCursor:o=!1,incremental:r=!1}={})=>r?q9(e,{showCursor:o}):Y9(e,{showCursor:o}),"create"),J9={create:P9},KO=J9});function qO(e,o){return"isTTY"in e&&e.isTTY&&(o??!VB)}var Zf,ed,PO=L(()=>{Cb();Zf="\x1B[?2026h",ed="\x1B[?2026l";i(qO,"shouldSynchronize")});var j9,GC,q1=L(()=>{j9=new WeakMap,GC=j9});var XO,JO,V9,X9,ZO,Z9,W9,jO,$9,eK,VO,tK,WO,$O=L(()=>{XO="\x1B[200~",JO="\x1B[201~",V9=i(e=>e>=48&&e<=63,"isCsiParameterByte"),X9=i(e=>e>=32&&e<=47,"isCsiIntermediateByte"),ZO=i(e=>e>=64&&e<=126,"isCsiFinalByte"),Z9=i((e,o,r)=>{let c=o+r+1,u=c;for(;u<e.length;u++){let f=e.codePointAt(u);if(f===void 0)return"pending";if(!(V9(f)||X9(f))&&!(f===91&&u===c))return ZO(f)?{sequence:e.slice(o,u+1),nextIndex:u+1}:void 0}return"pending"},"parseCsiSequence"),W9=i((e,o,r)=>{let c=o+r+2;if(c>e.length)return"pending";let u=e.codePointAt(c-1);if(!(u===void 0||!ZO(u)))return{sequence:e.slice(o,c),nextIndex:c}},"parseSs3Sequence"),jO=i((e,o,r)=>{let c=e[o+r];if(c===void 0)return"pending";if(c==="[")return Z9(e,o,r);if(c==="O")return W9(e,o,r)},"parseControlSequence"),$9=i((e,o)=>{let r=e.codePointAt(o+1),c=r!==void 0&&r>65535?2:1,u=o+1+c;return{sequence:e.slice(o,u),nextIndex:u}},"parseEscapedCodePoint"),eK=i((e,o)=>{if(o===e.length-1)return"pending";if(e[o+1]==="\x1B"){if(o+2>=e.length)return"pending";let u=jO(e,o,2);return u==="pending"?"pending":u||{sequence:e.slice(o,o+2),nextIndex:o+2}}let c=jO(e,o,1);return c==="pending"?"pending":c||$9(e,o)},"parseEscapeSequence"),VO=i((e,o)=>{let r=0;for(let c=0;c<e.length;c++){let u=e[c];(u==="\x7F"||u==="\b")&&(c>r&&o.push(e.slice(r,c)),o.push(u),r=c+1)}r<e.length&&o.push(e.slice(r))},"splitBackspaceBytes"),tK=i(e=>{let o=[],r=0,c=i(u=>({events:o,pending:e.slice(u)}),"pendingFrom");for(;r<e.length;){let u=e.indexOf("\x1B",r);if(u===-1)return VO(e.slice(r),o),{events:o,pending:""};u>r&&VO(e.slice(r,u),o);let f=eK(e,u);if(f==="pending")return c(u);if(f.sequence===XO){let m=f.nextIndex,E=e.indexOf(JO,m);if(E===-1)return c(u);o.push({paste:e.slice(m,E)}),r=E+JO.length;continue}o.push(f.sequence),r=f.nextIndex}return{events:o,pending:""}},"parseKeypresses"),WO=i(()=>{let e="";return{push(o){let r=tK(e+o);return e=r.pending,r.events},hasPendingEscape(){return e.startsWith("\x1B")&&!e.startsWith(XO)&&e!=="\x1B[200"},flushPendingEscape(){if(!e.startsWith("\x1B"))return;let o=e;return e="",o},reset(){e=""}}},"createInputParser")});var eH,nK,oK,tH,O0,P1=L(()=>{eH=He(Mt(),1),nK={async resume(){},async[Symbol.asyncDispose](){}},oK={exit(e){},async waitUntilRenderFlush(){},suspendTerminal:i((async e=>{if(e){await e();return}return nK}),"suspendTerminal")},tH=(0,eH.createContext)(oK);tH.displayName="InternalAppContext";O0=tH});import{EventEmitter as rK}from"node:events";import iK from"node:process";var nH,oH,FC,J1=L(()=>{nH=He(Mt(),1),oH=(0,nH.createContext)({stdin:iK.stdin,internal_eventEmitter:new rK,setRawMode(){},setBracketedPasteMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});oH.displayName="InternalStdinContext";FC=oH});import aK from"node:process";var rH,iH,H0,j1=L(()=>{rH=He(Mt(),1),iH=(0,rH.createContext)({stdout:aK.stdout,write(){}});iH.displayName="InternalStdoutContext";H0=iH});import sK from"node:process";var aH,sH,k0,V1=L(()=>{aH=He(Mt(),1),sH=(0,aH.createContext)({stderr:sK.stderr,write(){}});sH.displayName="InternalStderrContext";k0=sH});var lH,cH,Km,U0=L(()=>{lH=He(Mt(),1),cH=(0,lH.createContext)({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});cH.displayName="InternalFocusContext";Km=cH});var uH,AH,L0,X1=L(()=>{uH=He(Mt(),1),AH=(0,uH.createContext)({renderThrottleMs:0,subscribe(){return{startTime:0,unsubscribe(){}}}});AH.displayName="InternalAnimationContext";L0=AH});var dH,fH,G0,Z1=L(()=>{dH=He(Mt(),1),fH=(0,dH.createContext)({setCursorPosition(){}});fH.displayName="InternalCursorContext";G0=fH});var pH=Yn((hte,gH)=>{"use strict";var lK=/[|\\{}()[\]^$+*?.-]/g;gH.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(lK,"\\$&")}});var CH=Yn((Ete,EH)=>{"use strict";var cK=pH(),uK=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",hH=[].concat(Fo("module").builtinModules,"bootstrap_node","node").map(e=>new RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));hH.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var W1=class e{static{i(this,"StackUtils")}constructor(o){o={ignoredPackages:[],...o},"internals"in o||(o.internals=e.nodeInternals()),"cwd"in o||(o.cwd=uK),this._cwd=o.cwd.replace(/\\/g,"/"),this._internals=[].concat(o.internals,AK(o.ignoredPackages)),this._wrapCallSite=o.wrapCallSite||!1}static nodeInternals(){return[...hH]}clean(o,r=0){r=" ".repeat(r),Array.isArray(o)||(o=o.split(`
|
|
280
|
+
`)),!/^\s*at /.test(o[0])&&/^\s*at /.test(o[1])&&(o=o.slice(1));let c=!1,u=null,f=[];return o.forEach(m=>{if(m=m.replace(/\\/g,"/"),this._internals.some(S=>S.test(m)))return;let E=/^\s*at /.test(m);c?m=m.trimEnd().replace(/^(\s+)at /,"$1"):(m=m.trim(),E&&(m=m.slice(3))),m=m.replace(`${this._cwd}/`,""),m&&(E?(u&&(f.push(u),u=null),f.push(m)):(c=!0,u=m))}),f.map(m=>`${r}${m}
|
|
281
|
+
`).join("")}captureString(o,r=this.captureString){typeof o=="function"&&(r=o,o=1/0);let{stackTraceLimit:c}=Error;o&&(Error.stackTraceLimit=o);let u={};Error.captureStackTrace(u,r);let{stack:f}=u;return Error.stackTraceLimit=c,this.clean(f)}capture(o,r=this.capture){typeof o=="function"&&(r=o,o=1/0);let{prepareStackTrace:c,stackTraceLimit:u}=Error;Error.prepareStackTrace=(E,S)=>this._wrapCallSite?S.map(this._wrapCallSite):S,o&&(Error.stackTraceLimit=o);let f={};Error.captureStackTrace(f,r);let{stack:m}=f;return Object.assign(Error,{prepareStackTrace:c,stackTraceLimit:u}),m}at(o=this.at){let[r]=this.capture(1,o);if(!r)return{};let c={line:r.getLineNumber(),column:r.getColumnNumber()};mH(c,r.getFileName(),this._cwd),r.isConstructor()&&Object.defineProperty(c,"constructor",{value:!0,configurable:!0}),r.isEval()&&(c.evalOrigin=r.getEvalOrigin()),r.isNative()&&(c.native=!0);let u;try{u=r.getTypeName()}catch{}u&&u!=="Object"&&u!=="[object Object]"&&(c.type=u);let f=r.getFunctionName();f&&(c.function=f);let m=r.getMethodName();return m&&f!==m&&(c.method=m),c}parseLine(o){let r=o&&o.match(dK);if(!r)return null;let c=r[1]==="new",u=r[2],f=r[3],m=r[4],E=Number(r[5]),S=Number(r[6]),v=r[7],R=r[8],N=r[9],b=r[10]==="native",M=r[11]===")",_,k={};if(R&&(k.line=Number(R)),N&&(k.column=Number(N)),M&&v){let H=0;for(let $=v.length-1;$>0;$--)if(v.charAt($)===")")H++;else if(v.charAt($)==="("&&v.charAt($-1)===" "&&(H--,H===-1&&v.charAt($-1)===" ")){let we=v.slice(0,$-1);v=v.slice($+1),u+=` (${we}`;break}}if(u){let H=u.match(fK);H&&(u=H[1],_=H[2])}return mH(k,v,this._cwd),c&&Object.defineProperty(k,"constructor",{value:!0,configurable:!0}),f&&(k.evalOrigin=f,k.evalLine=E,k.evalColumn=S,k.evalFile=m&&m.replace(/\\/g,"/")),b&&(k.native=!0),u&&(k.function=u),_&&u!==_&&(k.method=_),k}};function mH(e,o,r){o&&(o=o.replace(/\\/g,"/"),o.startsWith(`${r}/`)&&(o=o.slice(r.length+1)),e.file=o)}i(mH,"setFile");function AK(e){if(e.length===0)return[];let o=e.map(r=>cK(r));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${o.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}i(AK,"ignoredPackagesRegExp");var dK=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),fK=/^(.*?) \[as (.*?)\]$/;EH.exports=W1});var gK,yH,IH=L(()=>{gK=i((e,o=2)=>e.replace(/^\t+/gm,r=>" ".repeat(r.length*o)),"convertToSpaces"),yH=gK});var pK,mK,BH,SH=L(()=>{IH();pK=i((e,o)=>{let r=[],c=e-o,u=e+o;for(let f=c;f<=u;f++)r.push(f);return r},"generateLineNumbers"),mK=i((e,o,r={})=>{var c;if(typeof e!="string")throw new TypeError("Source code is missing.");if(!o||o<1)throw new TypeError("Line number must start from `1`.");let u=yH(e).split(/\r?\n/);if(!(o>u.length))return pK(o,(c=r.around)!==null&&c!==void 0?c:3).filter(f=>u[f-1]!==void 0).map(f=>({line:f,value:u[f-1]}))},"codeExcerpt"),BH=mK});var vH,Sc,Ym=L(()=>{vH=He(Mt(),1),Sc=(0,vH.createContext)({isScreenReaderEnabled:!1})});var QH,F0,$1=L(()=>{QH=He(Mt(),1),F0=(0,QH.createContext)(void 0)});var td,bH,Rt,z0=L(()=>{td=He(Mt(),1);Ym();$1();bH=(0,td.forwardRef)(({children:e,backgroundColor:o,"aria-label":r,"aria-hidden":c,"aria-role":u,"aria-state":f,...m},E)=>{let{isScreenReaderEnabled:S}=(0,td.useContext)(Sc),v=r?td.default.createElement("ink-text",null,r):void 0;if(S&&c)return null;let R=td.default.createElement("ink-box",{ref:E,style:{flexWrap:"nowrap",flexDirection:"row",flexGrow:0,flexShrink:1,...m,backgroundColor:o,overflowX:m.overflowX??m.overflow??"visible",overflowY:m.overflowY??m.overflow??"visible"},internal_accessibility:{role:u,state:f}},S&&v?v:e);return o?td.default.createElement(F0.Provider,{value:o},R):R});bH.displayName="Box";Rt=bH});function O({color:e,backgroundColor:o,dimColor:r=!1,bold:c=!1,italic:u=!1,underline:f=!1,strikethrough:m=!1,inverse:E=!1,wrap:S="wrap",children:v,"aria-label":R,"aria-hidden":N=!1}){let{isScreenReaderEnabled:b}=(0,zC.useContext)(Sc),M=(0,zC.useContext)(F0),_=b&&R?R:v;if(_==null)return null;let k=i(H=>{r&&(H=$r.dim(H)),e&&(H=$A(H,e,"foreground"));let $=o??M;return $&&(H=$A(H,$,"background")),c&&(H=$r.bold(H)),u&&(H=$r.italic(H)),f&&(H=$r.underline(H)),m&&(H=$r.strikethrough(H)),E&&(H=$r.inverse(H)),H},"transform");return b&&N?null:zC.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:S},internal_transform:k},_)}var zC,eR=L(()=>{zC=He(Mt(),1);v0();Q0();Ym();$1();i(O,"Text")});import*as K0 from"node:fs";import{cwd as wH}from"node:process";function oR({error:e}){let o=e.stack?e.stack.split(`
|
|
282
|
+
`).slice(1):void 0,r=o?RH.parseLine(o[0]):void 0,c=tR(r?.file),u,f=0,m=new Map;if(c&&r?.line&&K0.existsSync(c)){let E=K0.readFileSync(c,"utf8");if(u=BH(E,r.line),u)for(let{line:S}of u)f=Math.max(f,String(S).length)}return zr.default.createElement(Rt,{flexDirection:"column",padding:1},zr.default.createElement(Rt,null,zr.default.createElement(O,{backgroundColor:"red",color:"white"}," ","ERROR"," "),zr.default.createElement(O,null," ",e.message)),r&&c?zr.default.createElement(Rt,{marginTop:1},zr.default.createElement(O,{dimColor:!0},c,":",r.line,":",r.column)):null,r&&u?zr.default.createElement(Rt,{marginTop:1,flexDirection:"column"},u.map(({line:E,value:S})=>zr.default.createElement(Rt,{key:E},zr.default.createElement(Rt,{width:f+1},zr.default.createElement(O,{dimColor:E!==r.line,backgroundColor:E===r.line?"red":void 0,color:E===r.line?"white":void 0,"aria-label":E===r.line?`Line ${E}, error`:`Line ${E}`},String(E).padStart(f," "),":")),zr.default.createElement(O,{key:E,backgroundColor:E===r.line?"red":void 0,color:E===r.line?"white":void 0}," "+S)))):null,e.stack?zr.default.createElement(Rt,{marginTop:1,flexDirection:"column"},e.stack.split(`
|
|
283
|
+
`).slice(1).map(E=>{let S=RH.parseLine(E),v=m.get(E)??0;m.set(E,v+1);let R=`${E}-${v}`;return!S?.file||!S.line||!S.column?zr.default.createElement(Rt,{key:R},zr.default.createElement(O,{dimColor:!0},"- "),zr.default.createElement(O,{dimColor:!0,bold:!0},E,"\\t"," ")):zr.default.createElement(Rt,{key:R},zr.default.createElement(O,{dimColor:!0},"- "),zr.default.createElement(O,{dimColor:!0,bold:!0},S.function),zr.default.createElement(O,{dimColor:!0,color:"gray","aria-label":`at ${tR(S.file)??""} line ${S.line} column ${S.column}`}," ","(",tR(S.file)??"",":",S.line,":",S.column,")"))})):null)}var zr,nR,tR,RH,xH=L(()=>{zr=He(Mt(),1),nR=He(CH(),1);SH();z0();eR();tR=i(e=>e?.replace(`file://${wH()}/`,""),"cleanupPath"),RH=new nR.default({cwd:wH(),internals:nR.default.nodeInternals()});i(oR,"ErrorOverview")});var Y0,KC,DH=L(()=>{Y0=He(Mt(),1);xH();KC=class extends Y0.PureComponent{static{i(this,"ErrorBoundary")}static displayName="InternalErrorBoundary";static getDerivedStateFromError(o){return{error:o}}state={error:void 0};componentDidCatch(o){this.props.onError(o)}render(){return this.state.error?Y0.default.createElement(oR,{error:this.state.error}):this.props.children}}});import{EventEmitter as hK}from"node:events";import EK from"node:process";function TH({children:e,stdin:o,stdout:r,stderr:c,writeToStdout:u,writeToStderr:f,exitOnCtrlC:m,onExit:E,onWaitUntilRenderFlush:S,onSuspendTerminal:v,onRegisterInputControl:R,setCursorPosition:N,interactive:b,renderThrottleMs:M}){let[_,k]=(0,Qt.useState)(!0),[H,$]=(0,Qt.useState)(void 0),[,we]=(0,Qt.useState)([]),Qe=(0,Qt.useRef)(0),re=(0,Qt.useRef)(new Map),Me=(0,Qt.useRef)(void 0),Ee=(0,Qt.useRef)(0),ze=(0,Qt.useRef)(!1),ce=(0,Qt.useRef)(0),ae=(0,Qt.useRef)(new hK);ae.current.setMaxListeners(1/0);let ie=(0,Qt.useRef)(void 0),ne=(0,Qt.useRef)(WO()),ee=(0,Qt.useRef)(void 0),Se=20,Je=(0,Qt.useCallback)(()=>{ee.current&&(clearTimeout(ee.current),ee.current=void 0)},[]),ye=(0,Qt.useCallback)(()=>{Me.current&&(clearTimeout(Me.current),Me.current=void 0)},[]),qe=(0,Qt.useCallback)(()=>{if(ye(),re.current.size===0)return;let ot=Number.POSITIVE_INFINITY;for(let mt of re.current.values())ot=Math.min(ot,mt.nextDueTime);let Dt=Math.max(0,ot-performance.now());Me.current=setTimeout(()=>{Me.current=void 0;let mt=performance.now();for(let tn of re.current.values()){if(mt<tn.nextDueTime)continue;tn.callback(mt);let to=mt-tn.startTime,yr=Math.floor(to/tn.interval)+1;tn.nextDueTime=tn.startTime+yr*tn.interval}qe()},Dt)},[ye]),ct=(0,Qt.useCallback)((ot,Dt)=>{let mt=performance.now();return re.current.set(ot,{callback:ot,interval:Dt,startTime:mt,nextDueTime:mt+Dt}),qe(),{startTime:mt,unsubscribe(){if(re.current.delete(ot),re.current.size===0){ye();return}qe()}}},[ye,qe]);(0,Qt.useEffect)(()=>()=>{ye()},[ye]);let je=o.isTTY,W=(0,Qt.useCallback)(()=>{ie.current&&(o.removeListener("readable",ie.current),ie.current=void 0)},[o]),it=(0,Qt.useCallback)(()=>{ne.current.reset(),Je(),W()},[Je,W]),yt=(0,Qt.useCallback)(()=>{ze.current=!1,o.setRawMode(!1),o.unref(),Ee.current=0,it()},[o,it]),P=(0,Qt.useCallback)(ot=>{je&&(Ee.current>0||ze.current)&&yt(),E(ot)},[je,yt,E]),Ce=(0,Qt.useCallback)(ot=>{if(ot===""&&m){P();return}ot===IK&&_&&$(void 0)},[m,P,_]),Ve=(0,Qt.useCallback)(ot=>{Ce(ot),ae.current.emit("input",ot)},[Ce]),oe=(0,Qt.useCallback)(()=>{Je(),ee.current=setTimeout(()=>{ee.current=void 0;let ot=ne.current.flushPendingEscape();ot&&Ve(ot)},Se)},[Je,Ve]),et=(0,Qt.useCallback)(()=>{Je();let ot;for(;(ot=o.read())!==null;){let Dt=ne.current.push(ot);for(let mt of Dt)if(typeof mt=="string")Ve(mt);else{if(ae.current.listenerCount("paste")===0){Ve(mt.paste);continue}ae.current.emit("paste",mt.paste)}}ne.current.hasPendingEscape()&&oe()},[o,Ve,Je,oe]),Et=(0,Qt.useCallback)(()=>{ie.current||(ie.current=et,o.addListener("readable",et))},[o,et]),te=(0,Qt.useCallback)(ot=>{if(!je)throw o===EK.stdin?new Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
284
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):new Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
285
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(o.setEncoding("utf8"),ot){if(Ee.current===0){let Dt=ze.current;ze.current=!1,Dt||(o.ref(),o.setRawMode(!0)),Et()}Ee.current++;return}Ee.current!==0&&--Ee.current===0&&(it(),ze.current=!0,queueMicrotask(()=>{ze.current&&yt()}))},[je,o,Et,it,yt]),se=(0,Qt.useCallback)(ot=>{if(r.isTTY){if(ot){ce.current===0&&r.write("\x1B[?2004h"),ce.current++;return}ce.current!==0&&--ce.current===0&&r.write("\x1B[?2004l")}},[r]),De=(0,Qt.useRef)({rawMode:!1,bracketedPaste:!1}),ut=(0,Qt.useCallback)(()=>{let ot=je&&Ee.current>0,Dt=ce.current>0;if(De.current={rawMode:ot,bracketedPaste:Dt},Dt&&r.isTTY)try{r.write("\x1B[?2004l")}catch{}ot&&(o.setRawMode(!1),o.unref(),it())},[je,o,r,it]),wt=(0,Qt.useCallback)(()=>{let{rawMode:ot,bracketedPaste:Dt}=De.current;if(ot&&(o.setEncoding("utf8"),o.ref(),o.setRawMode(!0),Et()),Dt&&r.isTTY)try{r.write("\x1B[?2004h")}catch{}},[o,r,Et]);(0,Qt.useInsertionEffect)(()=>{R(ut,wt)},[R,ut,wt]);let Gt=(0,Qt.useCallback)((ot,Dt)=>{let mt=ot.findIndex(tn=>tn.id===Dt);for(let tn=mt+1;tn<ot.length;tn++){let to=ot[tn];if(to?.isActive)return to.id}},[]),gt=(0,Qt.useCallback)((ot,Dt)=>{let mt=ot.findIndex(tn=>tn.id===Dt);for(let tn=mt-1;tn>=0;tn--){let to=ot[tn];if(to?.isActive)return to.id}},[]),Ie=(0,Qt.useCallback)(()=>{we(ot=>($(Dt=>{let mt=ot.find(to=>to.isActive)?.id;return Gt(ot,Dt)??mt}),ot))},[Gt]),Ne=(0,Qt.useCallback)(()=>{we(ot=>($(Dt=>{let mt=ot.findLast(to=>to.isActive)?.id;return gt(ot,Dt)??mt}),ot))},[gt]);(0,Qt.useEffect)(()=>{let ot=i(mt=>{!_||Qe.current===0||(mt===CK&&Ie(),mt===yK&&Ne())},"handleTabNavigation");ae.current.on("input",ot);let Dt=ae.current;return()=>{Dt.off("input",ot)}},[_,Ie,Ne]);let at=(0,Qt.useCallback)(()=>{k(!0)},[]),kt=(0,Qt.useCallback)(()=>{k(!1)},[]),be=(0,Qt.useCallback)(ot=>{we(Dt=>(Dt.some(tn=>tn?.id===ot)&&$(ot),Dt))},[]),Te=(0,Qt.useCallback)((ot,{autoFocus:Dt})=>{we(mt=>(Qe.current=mt.length+1,[...mt,{id:ot,isActive:!0}])),Dt&&$(mt=>mt||ot)},[]),fe=(0,Qt.useCallback)(ot=>{$(Dt=>{if(Dt!==ot)return Dt}),we(Dt=>{let mt=Dt.filter(tn=>tn.id!==ot);return Qe.current=mt.length,mt})},[]),tt=(0,Qt.useCallback)(ot=>{we(Dt=>Dt.map(mt=>mt.id!==ot?mt:{id:ot,isActive:!0}))},[]),_t=(0,Qt.useCallback)(ot=>{$(Dt=>{if(Dt!==ot)return Dt}),we(Dt=>Dt.map(mt=>mt.id!==ot?mt:{id:ot,isActive:!1}))},[]);(0,Qt.useEffect)(()=>()=>{let ot=!r.destroyed&&!r.writableEnded;b&&ot&&Xf.show(r),je&&(Ee.current>0||ze.current)&&yt(),ce.current>0&&(r.isTTY&&ot&&r.write("\x1B[?2004l"),ce.current=0)},[r,je,yt,b]);let Gn=(0,Qt.useMemo)(()=>({exit:P,waitUntilRenderFlush:S,suspendTerminal:v}),[P,S,v]),In=(0,Qt.useMemo)(()=>({stdin:o,setRawMode:te,setBracketedPasteMode:se,isRawModeSupported:je,internal_exitOnCtrlC:m,internal_eventEmitter:ae.current}),[o,te,se,je,m]),No=(0,Qt.useMemo)(()=>({stdout:r,write:u}),[r,u]),xr=(0,Qt.useMemo)(()=>({stderr:c,write:f}),[c,f]),Vo=(0,Qt.useMemo)(()=>({setCursorPosition:N}),[N]),Mo=(0,Qt.useMemo)(()=>({activeId:H,add:Te,remove:fe,activate:tt,deactivate:_t,enableFocus:at,disableFocus:kt,focusNext:Ie,focusPrevious:Ne,focus:be}),[H,Te,fe,tt,_t,at,kt,Ie,Ne,be]),qr=(0,Qt.useMemo)(()=>({renderThrottleMs:M,subscribe:ct}),[ct,M]);return Qt.default.createElement(O0.Provider,{value:Gn},Qt.default.createElement(FC.Provider,{value:In},Qt.default.createElement(H0.Provider,{value:No},Qt.default.createElement(k0.Provider,{value:xr},Qt.default.createElement(Km.Provider,{value:Mo},Qt.default.createElement(L0.Provider,{value:qr},Qt.default.createElement(G0.Provider,{value:Vo},Qt.default.createElement(KC,{onError:P},e))))))))}var Qt,CK,yK,IK,_H,NH=L(()=>{Qt=He(Mt(),1);Y1();$O();P1();J1();j1();V1();U0();X1();Z1();DH();CK=" ",yK="\x1B[Z",IK="\x1B";i(TH,"App");TH.displayName="InternalApp";_H=TH});function iR(e){let o=0;for(let r of e)o|=rR[r];return o}var rR,Yl,q0=L(()=>{rR={disambiguateEscapeCodes:1,reportEventTypes:2,reportAlternateKeys:4,reportAllKeysAsEscapeCodes:8,reportAssociatedText:16};i(iR,"resolveFlags");Yl={shift:1,alt:2,ctrl:4,super:8,hyper:16,meta:32,capsLock:64,numLock:128}});import qC from"node:process";var sR,OH,J0,YC,BK,MH,SK,vK,QK,bK,RK,wK,xK,HH,DK,TK,_K,NK,aR,P0,qm,PC,kH=L(async()=>{sR=He(Mt(),1);L2();jB();Cb();X2();OH=He(Sb(),1);iN();J0=He(e0(),1);await XA();fC();Fb();await TC();await L1();await wC();z1();YO();PO();q1();NH();Ym();q0();YC=i(()=>{},"noop"),BK=new TextEncoder,MH=i(async()=>new Promise(e=>{setImmediate(e)}),"yieldImmediate"),SK=27,vK=91,QK=63,bK=117,RK=48,wK=57,xK=i(e=>e>=RK&&e<=wK,"isDigitByte"),HH=i((e,o)=>{if(e[o]!==SK||e[o+1]!==vK||e[o+2]!==QK)return;let r=o+3,c=r;for(;r<e.length&&xK(e[r]);)r++;if(r!==c){if(r===e.length)return{state:"partial"};if(e[r]===bK)return{state:"complete",endIndex:r}}},"matchKittyQueryResponse"),DK=i(e=>{for(let o=0;o<e.length;o++)if(HH(e,o)?.state==="complete")return!0;return!1},"hasCompleteKittyQueryResponse"),TK=i(e=>{let o=[],r=0;for(;r<e.length;){let c=HH(e,r);if(c?.state==="complete"){r=c.endIndex+1;continue}if(c?.state==="partial")break;o.push(e[r]),r++}return o},"stripKittyQueryResponsesAndTrailingPartial"),_K=qC.platform==="win32",NK=i(({isTty:e,viewportRows:o,previousOutputHeight:r,nextOutputHeight:c,isUnmounting:u})=>{if(!e)return!1;let f=r>0,m=r>=o,E=r>o,S=c>o,v=c>=o,R=m&&c<o,N=u&&m;return _K&&(m||v)?!0:E||S&&f||R||N},"shouldClearTerminalForFrame"),aR=i(e=>e instanceof Error||Object.prototype.toString.call(e)==="[object Error]","isErrorInput"),P0=i(e=>{let o=!e.destroyed&&!e.writableEnded&&(e.writable??!0),r=e._writableState!==void 0||e.writableLength!==void 0;return{canWriteToStdout:o,hasWritableState:r}},"getWritableStreamState"),qm=i((e,o)=>{if(!e||typeof e.flush!="function")return;let r=e;o?r.flush():typeof r.cancel=="function"&&r.cancel()},"settleThrottle"),PC=class{static{i(this,"Ink")}isConcurrent;options;log;cursorPosition;throttledLog;isScreenReaderEnabled;interactive;renderThrottleMs;alternateScreen;isUnmounted;isUnmounting;lastOutput;lastOutputToRender;lastOutputHeight;lastTerminalWidth;container;rootNode;fullStaticOutput;exitPromise;exitResult;beforeExitHandler;restoreConsole;unsubscribeResize;throttledOnRender;hasPendingThrottledRender=!1;kittyProtocolEnabled=!1;kittyFlags;cancelKittyDetection;nextRenderCommit;isSuspended=!1;pauseInput;resumeInput;constructor(o){yb(this),this.options=o,this.rootNode=km("ink-root"),this.rootNode.onComputeLayout=this.calculateLayout,this.isScreenReaderEnabled=o.isScreenReaderEnabled??qC.env.INK_SCREEN_READER==="true",this.interactive=this.resolveInteractiveOption(o.interactive),this.alternateScreen=!1;let r=o.debug||this.isScreenReaderEnabled,c=o.maxFps??30,u=c>0?Math.max(1,Math.ceil(1e3/c)):0;if(this.renderThrottleMs=r?0:u,r)this.rootNode.onRender=this.onRender,this.throttledOnRender=void 0;else{let m=PB(this.onRender,u,{leading:!0,trailing:!0});this.rootNode.onRender=()=>{this.hasPendingThrottledRender=!0,m()},this.throttledOnRender=m}this.rootNode.onImmediateRender=this.onRender,this.rootNode.onStaticChange=this.handleStaticChange,this.log=KO.create(o.stdout,{incremental:o.incrementalRendering}),this.cursorPosition=void 0,this.throttledLog=r?this.log:PB(m=>{let E=this.log.willRender(m),S=this.shouldSync();S&&E&&this.options.stdout.write(Zf),this.log(m),S&&E&&this.options.stdout.write(ed)},void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.isUnmounting=!1,this.isConcurrent=o.concurrent??!1,this.lastOutput="",this.lastOutputToRender="",this.lastOutputHeight=0,this.lastTerminalWidth=Du(this.options.stdout).columns,this.fullStaticOutput="";let f=o.concurrent?J0.ConcurrentRoot:J0.LegacyRoot;this.container=hr.createContainer(this.rootNode,f,null,!1,null,"id",()=>{},()=>{},()=>{},()=>{}),this.unsubscribeExit=(0,OH.default)(this.unmount,{alwaysLast:!1}),this.setAlternateScreen(!!o.alternateScreen),qC.env.DEV==="true"&&hr.injectIntoDevTools(),o.patchConsole&&this.patchConsole(),this.interactive&&(o.stdout.on("resize",this.resized),this.unsubscribeResize=()=>{o.stdout.off("resize",this.resized)}),this.initKittyKeyboard(),this.exitPromise=new Promise((m,E)=>{this.resolveExitPromise=m,this.rejectExitPromise=E}),this.exitPromise.catch(YC)}resized=i(()=>{let o=Du(this.options.stdout).columns;o<this.lastTerminalWidth&&(this.log.clear(),this.lastOutput="",this.lastOutputToRender=""),this.calculateLayout(),E0(this.rootNode),this.onRender(),this.lastTerminalWidth=o},"resized");resolveExitPromise=i(()=>{},"resolveExitPromise");rejectExitPromise=i(()=>{},"rejectExitPromise");unsubscribeExit=i(()=>{},"unsubscribeExit");handleAppExit=i(o=>{if(!(this.isUnmounted||this.isUnmounting)){if(aR(o)){this.unmount(o);return}this.exitResult=o,this.unmount()}},"handleAppExit");setCursorPosition=i(o=>{this.cursorPosition=o,this.log.setCursorPosition(o)},"setCursorPosition");restoreLastOutput=i(()=>{this.interactive&&(this.log.setCursorPosition(this.cursorPosition),this.log(this.lastOutputToRender||this.lastOutput+`
|
|
286
|
+
`))},"restoreLastOutput");calculateLayout=i(()=>{let o=Du(this.options.stdout).columns;this.rootNode.yogaNode.setWidth(o),this.rootNode.yogaNode.calculateLayout(void 0,void 0,st.DIRECTION_LTR)},"calculateLayout");handleStaticChange=i(()=>{this.fullStaticOutput=""},"handleStaticChange");onRender=i(()=>{if(this.hasPendingThrottledRender=!1,this.isUnmounted)return;if(this.isSuspended){this.nextRenderCommit&&(this.nextRenderCommit.resolve(),this.nextRenderCommit=void 0);return}this.nextRenderCommit&&(this.nextRenderCommit.resolve(),this.nextRenderCommit=void 0);let o=performance.now(),{output:r,outputHeight:c,staticOutput:u}=HC(this.rootNode,this.isScreenReaderEnabled);this.options.onRender?.({renderTime:performance.now()-o});let f=u&&u!==`
|
|
287
|
+
`;if(this.options.debug){f&&(this.fullStaticOutput+=u),this.lastOutput=r,this.lastOutputToRender=r,this.lastOutputHeight=c,this.options.stdout.write(this.fullStaticOutput+r);return}if(!this.interactive){f&&this.options.stdout.write(u),this.lastOutput=r,this.lastOutputToRender=r+`
|
|
288
|
+
`,this.lastOutputHeight=c;return}if(this.isScreenReaderEnabled){let m=this.shouldSync();if(m&&this.options.stdout.write(Zf),f){let v=this.lastOutputHeight>0?bo.eraseLines(this.lastOutputHeight):"";this.options.stdout.write(v+u),this.lastOutputHeight=0}if(r===this.lastOutput&&!f){m&&this.options.stdout.write(ed);return}let E=Du(this.options.stdout).columns,S=Ws(r,E,{trim:!1,hard:!0});if(f)this.options.stdout.write(S);else{let v=this.lastOutputHeight>0?bo.eraseLines(this.lastOutputHeight):"";this.options.stdout.write(v+S)}this.lastOutput=r,this.lastOutputToRender=S,this.lastOutputHeight=S===""?0:S.split(`
|
|
289
|
+
`).length,m&&this.options.stdout.write(ed);return}f&&(this.fullStaticOutput+=u),this.renderInteractiveFrame(r,c,f?u:"")},"onRender");render(o){let r=sR.default.createElement(Sc.Provider,{value:{isScreenReaderEnabled:this.isScreenReaderEnabled}},sR.default.createElement(_H,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,interactive:this.interactive,renderThrottleMs:this.renderThrottleMs,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,setCursorPosition:this.setCursorPosition,onExit:this.handleAppExit,onWaitUntilRenderFlush:this.waitUntilRenderFlush,onSuspendTerminal:this.suspendTerminal,onRegisterInputControl:this.registerInputControl},o));this.options.concurrent?hr.updateContainer(r,this.container,null,YC):(hr.updateContainerSync(r,this.container,null,YC),hr.flushSyncWork())}writeToStdout(o){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stdout.write(o+this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stdout.write(o);return}let r=this.shouldSync();r&&this.options.stdout.write(Zf),this.log.clear(),this.options.stdout.write(o),this.restoreLastOutput(),r&&this.options.stdout.write(ed)}writeToStderr(o){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stderr.write(o),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stderr.write(o);return}let r=this.shouldSync();r&&this.options.stdout.write(Zf),this.log.clear(),this.options.stderr.write(o),this.restoreLastOutput(),r&&this.options.stdout.write(ed)}unmount(o){if(this.isUnmounted||this.isUnmounting)return;this.isUnmounting=!0,this.beforeExitHandler&&(qC.off("beforeExit",this.beforeExitHandler),this.beforeExitHandler=void 0);let r=this.options.stdout,{canWriteToStdout:c,hasWritableState:u}=P0(r);qm(this.throttledOnRender,c),c&&(!this.throttledOnRender||!this.hasPendingThrottledRender&&this.fullStaticOutput==="")&&(this.calculateLayout(),this.onRender()),this.isUnmounted=!0,this.unsubscribeExit(),qm(this.throttledLog,c),typeof this.restoreConsole=="function"&&this.restoreConsole();let f=i(()=>{typeof this.unsubscribeResize=="function"&&this.unsubscribeResize(),this.cancelKittyDetection&&this.cancelKittyDetection(),c&&(this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,"\x1B[<u"),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,bo.exitAlternativeScreen),this.writeBestEffort(this.options.stdout,G1),this.alternateScreen=!1),this.interactive?this.options.debug||this.log.done():this.options.stdout.write(this.options.debug?`
|
|
290
|
+
`:this.lastOutput+`
|
|
291
|
+
`)),this.kittyProtocolEnabled=!1,GC.delete(this.options.stdout);let{exitResult:E}=this,S=i(()=>{aR(o)?this.rejectExitPromise(o):this.resolveExitPromise(E)},"resolveOrReject");o!==void 0&&!aR(o)?S():c&&u?this.options.stdout.write("",S):setImmediate(S)},"finishUnmount"),m=hr;this.options.concurrent?(hr.updateContainerSync(null,this.container,null,YC),hr.flushSyncWork(),m.flushPassiveEffects?.(),f()):(hr.updateContainerSync(null,this.container,null,YC),hr.flushSyncWork(),f())}async waitUntilExit(){return this.beforeExitHandler||(this.beforeExitHandler=()=>{this.unmount()},qC.once("beforeExit",this.beforeExitHandler)),this.exitPromise}async waitUntilRenderFlush(){if(this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(await MH(),this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(this.isConcurrent&&this.hasPendingConcurrentWork()&&(await Promise.race([this.awaitNextRender(),this.awaitExit()]),this.isUnmounted||this.isUnmounting)){this.nextRenderCommit=void 0,await this.awaitExit();return}hr.flushSyncWork();let o=this.options.stdout,{canWriteToStdout:r,hasWritableState:c}=P0(o);if(qm(this.throttledOnRender,r),qm(this.throttledLog,r),r&&c){await new Promise(u=>{this.options.stdout.write("",()=>{u()})});return}await MH()}clear(){this.interactive&&!this.options.debug&&(this.log.clear(),this.log.sync(this.lastOutputToRender||this.lastOutput+`
|
|
292
|
+
`))}patchConsole(){this.options.debug||(this.restoreConsole=rN((o,r)=>{o==="stdout"&&this.writeToStdout(r),o==="stderr"&&(r.startsWith("The above error occurred")||this.writeToStderr(r))}))}registerInputControl(o,r){this.pauseInput=o,this.resumeInput=r}async suspendTerminal(o){if(this.beginSuspend(),o){try{await o()}finally{await this.endSuspend()}return}let r=i(async()=>{await this.endSuspend()},"resume");return{resume:r,[Symbol.asyncDispose]:r}}setAlternateScreen(o){this.alternateScreen=this.resolveAlternateScreenOption(o,this.interactive),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,bo.enterAlternativeScreen),this.writeBestEffort(this.options.stdout,jf))}resolveInteractiveOption(o){return o??(!VB&&!!this.options.stdout.isTTY)}resolveAlternateScreenOption(o,r){return!!o&&r&&!!this.options.stdout.isTTY}shouldSync(){return qO(this.options.stdout,this.interactive)}writeBestEffort(o,r){try{o.write(r)}catch{}}async awaitExit(){try{await this.exitPromise}catch{}}hasPendingConcurrentWork(){let o=this.container;return(o.pendingLanes??0)!==0&&o.callbackNode!==void 0&&o.callbackNode!==null}async awaitNextRender(){if(!this.nextRenderCommit){let o,r=new Promise(c=>{o=c});this.nextRenderCommit={promise:r,resolve:o}}return this.nextRenderCommit.promise}renderInteractiveFrame(o,r,c){let u=c!=="",f=this.options.stdout.isTTY,m=f?Du(this.options.stdout).rows:24,S=f&&r>=m?o:o+`
|
|
293
|
+
`;if(NK({isTty:f,viewportRows:m,previousOutputHeight:this.lastOutputHeight,nextOutputHeight:r,isUnmounting:this.isUnmounting})){let R=this.shouldSync();R&&this.options.stdout.write(Zf),this.options.stdout.write(bo.clearTerminal+this.fullStaticOutput+S),this.lastOutput=o,this.lastOutputToRender=S,this.lastOutputHeight=r,this.log.sync(S),R&&this.options.stdout.write(ed);return}if(u){let R=this.shouldSync();R&&this.options.stdout.write(Zf),this.log.clear(),this.options.stdout.write(c),this.log(S),R&&this.options.stdout.write(ed)}else(o!==this.lastOutput||this.log.isCursorDirty())&&this.throttledLog(S);this.lastOutput=o,this.lastOutputToRender=S,this.lastOutputHeight=r}initKittyKeyboard(){if(!this.options.kittyKeyboard)return;let o=this.options.kittyKeyboard,r=o.mode??"auto";if(r==="disabled")return;let c=o.flags??["disambiguateEscapeCodes"];if(r==="enabled"){this.options.stdin.isTTY&&this.options.stdout.isTTY&&this.enableKittyProtocol(c);return}!this.interactive||!this.options.stdin.isTTY||!this.options.stdout.isTTY||this.confirmKittySupport(c)}confirmKittySupport(o){let{stdin:r,stdout:c}=this.options,u=[],f=i(()=>{this.cancelKittyDetection=void 0,clearTimeout(E),r.removeListener("data",m);let S=TK(u);u=[],S.length>0&&r.unshift(Uint8Array.from(S))},"cleanup"),m=i(S=>{let v=typeof S=="string"?BK.encode(S):S;for(let R of v)u.push(R);DK(u)&&(f(),this.isUnmounted||this.enableKittyProtocol(o))},"onData");r.on("data",m);let E=setTimeout(f,200);this.cancelKittyDetection=f,c.write("\x1B[?u")}enableKittyProtocol(o){this.options.stdout.write(`\x1B[>${iR(o)}u`),this.kittyProtocolEnabled=!0,this.kittyFlags=o}beginSuspend(){if(this.isSuspended)throw new Error("The terminal is already suspended. Resume the current suspension before suspending again.");if(this.isSuspended=!0,!(!this.interactive||this.isUnmounted||this.isUnmounting))try{let o=this.options.stdout,{canWriteToStdout:r}=P0(o);qm(this.throttledOnRender,r),qm(this.throttledLog,r),r&&(this.log.clear(),this.log.done(),this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,"\x1B[<u"),this.alternateScreen&&this.writeBestEffort(this.options.stdout,bo.exitAlternativeScreen)),this.pauseInput?.()}catch(o){this.isSuspended=!1;try{this.resumeInput?.()}catch{}throw o}}async endSuspend(){if(!this.isSuspended||(this.isSuspended=!1,this.resumeInput?.(),!this.interactive||this.isUnmounted||this.isUnmounting))return;let o=this.options.stdout,{canWriteToStdout:r}=P0(o);r&&(this.alternateScreen&&this.writeBestEffort(this.options.stdout,bo.enterAlternativeScreen),this.kittyProtocolEnabled&&this.kittyFlags&&this.writeBestEffort(this.options.stdout,`\x1B[>${iR(this.kittyFlags)}u`)),this.lastOutput="",this.lastOutputToRender="",this.lastOutputHeight=0,this.log.reset();try{this.calculateLayout(),this.onRender(),await this.waitUntilRenderFlush()}catch{}}}});import{Stream as MK}from"node:stream";import JC from"node:process";var OK,j0,HK,kK,UH=L(async()=>{await kH();q1();OK=i((e,o)=>{let r={stdout:JC.stdout,stdin:JC.stdin,stderr:JC.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,maxFps:30,incrementalRendering:!1,concurrent:!1,alternateScreen:!1,...HK(o)},c=kK(r.stdout,()=>new PC(r));return c.render(e),{rerender:c.render,unmount(){c.unmount()},waitUntilExit:c.waitUntilExit,waitUntilRenderFlush:c.waitUntilRenderFlush,cleanup(){c.unmount()},clear:c.clear}},"render"),j0=OK,HK=i((e={})=>e instanceof MK?{stdout:e,stdin:JC.stdin}:e,"getOptions"),kK=i((e,o)=>{let r=GC.get(e);if(r===void 0){let c=o();return GC.set(e,c),c}return JC.stderr.write(`Warning: render() was called again for the same stdout before the previous Ink instance was unmounted. Reusing stdout across multiple render() calls is unsupported. Call unmount() first.
|
|
294
|
+
`),r},"getInstance")});var LH,UK,GH,FH=L(async()=>{await XA();LH=He(e0(),1);await TC();await L1();await wC();UK=i((e,o)=>{let r=o?.columns??80,c=km("ink-root"),u="";c.onComputeLayout=()=>{c.yogaNode.setWidth(r),c.yogaNode.calculateLayout(void 0,void 0,st.DIRECTION_LTR)},c.onImmediateRender=()=>{let{staticOutput:S}=HC(c,!1);S&&S!==`
|
|
295
|
+
`&&(u+=S)};let f,m=hr.createContainer(c,LH.LegacyRoot,null,!1,null,"render-to-string",S=>{f??=S},()=>{},()=>{},()=>{}),E=!1;try{hr.updateContainerSync(e,m,null,()=>{}),hr.flushSyncWork();let{output:S}=HC(c,!1);if(hr.updateContainerSync(null,m,null,()=>{}),hr.flushSyncWork(),E=!0,c.yogaNode.free(),f!==void 0)throw f instanceof Error?f:new Error(String(f));let v=u.endsWith(`
|
|
296
|
+
`)?u.slice(0,-1):u;return v&&S?v+`
|
|
297
|
+
`+S:v||S}finally{if(!E&&c.yogaNode)try{c.yogaNode.freeRecursive()}catch{}}},"renderToString"),GH=UK});function jC(e){let{items:o,children:r,style:c}=e,[u,f]=(0,_u.useState)(0),m=(0,_u.useMemo)(()=>o.slice(u),[o,u]);(0,_u.useLayoutEffect)(()=>{f(o.length)},[o.length]);let E=m.map((v,R)=>r(v,u+R)),S=(0,_u.useMemo)(()=>({position:"absolute",flexDirection:"column",...c}),[c]);return _u.default.createElement("ink-box",{internal_static:!0,style:S},E)}var _u,zH=L(()=>{_u=He(Mt(),1);i(jC,"Static")});function lR({children:e,transform:o,accessibilityLabel:r}){let{isScreenReaderEnabled:c}=(0,V0.useContext)(Sc);return e==null?null:V0.default.createElement("ink-text",{style:{flexGrow:0,flexShrink:1,flexDirection:"row"},internal_transform:o},c&&r?r:e)}var V0,KH=L(()=>{V0=He(Mt(),1);Ym();i(lR,"Transform")});function cR({count:e=1}){return YH.default.createElement("ink-text",null,`
|
|
298
|
+
`.repeat(e))}var YH,qH=L(()=>{YH=He(Mt(),1);i(cR,"Newline")});function uR(){return PH.default.createElement(Rt,{flexGrow:1})}var PH,JH=L(()=>{PH=He(Mt(),1);z0();i(uR,"Spacer")});function ek(e){return e===3?"release":e===2?"repeat":"press"}function tk(e){return{ctrl:!!(e&Yl.ctrl),shift:!!(e&Yl.shift),meta:!!(e&(Yl.meta|Yl.alt)),super:!!(e&Yl.super),hyper:!!(e&Yl.hyper),capsLock:!!(e&Yl.capsLock),numLock:!!(e&Yl.numLock)}}var jH,LK,GK,XH,ZH,FK,zK,WH,KK,YK,qK,VH,$H,AR,PK,JK,jK,nk,ok=L(()=>{q0();jH=new TextDecoder,LK=/^(?:\x1b)([a-zA-Z0-9])$/,GK=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,XH={OP:"f1",OQ:"f2",OR:"f3",OS:"f4","[P":"f1","[Q":"f2","[R":"f3","[S":"f4","[11~":"f1","[12~":"f2","[13~":"f3","[14~":"f4","[[A":"f1","[[B":"f2","[[C":"f3","[[D":"f4","[[E":"f5","[15~":"f5","[17~":"f6","[18~":"f7","[19~":"f8","[20~":"f9","[21~":"f10","[23~":"f11","[24~":"f12","[A":"up","[B":"down","[C":"right","[D":"left","[E":"clear","[F":"end","[H":"home",OA:"up",OB:"down",OC:"right",OD:"left",OE:"clear",OF:"end",OH:"home","[1~":"home","[2~":"insert","[3~":"delete","[4~":"end","[5~":"pageup","[6~":"pagedown","[[5~":"pageup","[[6~":"pagedown","[7~":"home","[8~":"end","[a":"up","[b":"down","[c":"right","[d":"left","[e":"clear","[2$":"insert","[3$":"delete","[5$":"pageup","[6$":"pagedown","[7$":"home","[8$":"end",Oa:"up",Ob:"down",Oc:"right",Od:"left",Oe:"clear","[2^":"insert","[3^":"delete","[5^":"pageup","[6^":"pagedown","[7^":"home","[8^":"end","[Z":"tab"},ZH=[...Object.values(XH),"backspace"],FK=i(e=>["[a","[b","[c","[d","[e","[2$","[3$","[5$","[6$","[7$","[8$","[Z"].includes(e),"isShiftKey"),zK=i(e=>["Oa","Ob","Oc","Od","Oe","[2^","[3^","[5^","[6^","[7^","[8^"].includes(e),"isCtrlKey"),WH=/^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/,KK=/^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/,YK={A:"up",B:"down",C:"right",D:"left",E:"clear",F:"end",H:"home",P:"f1",Q:"f2",R:"f3",S:"f4"},qK={2:"insert",3:"delete",5:"pageup",6:"pagedown",7:"home",8:"end",11:"f1",12:"f2",13:"f3",14:"f4",15:"f5",17:"f6",18:"f7",19:"f8",20:"f9",21:"f10",23:"f11",24:"f12"},VH={27:"escape",9:"tab",127:"backspace",8:"backspace",57358:"capslock",57359:"scrolllock",57360:"numlock",57361:"printscreen",57362:"pause",57363:"menu",57376:"f13",57377:"f14",57378:"f15",57379:"f16",57380:"f17",57381:"f18",57382:"f19",57383:"f20",57384:"f21",57385:"f22",57386:"f23",57387:"f24",57388:"f25",57389:"f26",57390:"f27",57391:"f28",57392:"f29",57393:"f30",57394:"f31",57395:"f32",57396:"f33",57397:"f34",57398:"f35",57399:"kp0",57400:"kp1",57401:"kp2",57402:"kp3",57403:"kp4",57404:"kp5",57405:"kp6",57406:"kp7",57407:"kp8",57408:"kp9",57409:"kpdecimal",57410:"kpdivide",57411:"kpmultiply",57412:"kpsubtract",57413:"kpadd",57414:"kpenter",57415:"kpequal",57416:"kpseparator",57417:"kpleft",57418:"kpright",57419:"kpup",57420:"kpdown",57421:"kppageup",57422:"kppagedown",57423:"kphome",57424:"kpend",57425:"kpinsert",57426:"kpdelete",57427:"kpbegin",57428:"mediaplay",57429:"mediapause",57430:"mediaplaypause",57431:"mediareverse",57432:"mediastop",57433:"mediafastforward",57434:"mediarewind",57435:"mediatracknext",57436:"mediatrackprevious",57437:"mediarecord",57438:"lowervolume",57439:"raisevolume",57440:"mutevolume",57441:"leftshift",57442:"leftcontrol",57443:"leftalt",57444:"leftsuper",57445:"lefthyper",57446:"leftmeta",57447:"rightshift",57448:"rightcontrol",57449:"rightalt",57450:"rightsuper",57451:"righthyper",57452:"rightmeta",57453:"isoLevel3Shift",57454:"isoLevel5Shift"},$H=i(e=>e>=0&&e<=1114111&&!(e>=55296&&e<=57343),"isValidCodepoint"),AR=i(e=>$H(e)?String.fromCodePoint(e):"?","safeFromCodePoint");i(ek,"resolveEventType");i(tk,"parseKittyModifiers");PK=i(e=>{let o=WH.exec(e);if(!o)return null;let r=parseInt(o[1],10),c=o[2]?Math.max(0,parseInt(o[2],10)-1):0,u=o[3]?parseInt(o[3],10):1,f=o[4];if(!$H(r))return null;let m;f&&(m=f.split(":").map(v=>AR(parseInt(v,10))).join(""));let E,S;return r===32?(E="space",S=!0):r===13?(E="return",S=!0):VH[r]?(E=VH[r],S=!1):r>=1&&r<=26?(E=String.fromCodePoint(r+96),S=!1):(E=AR(r).toLowerCase(),S=!0),S&&!m&&(m=AR(r)),{name:E,...tk(c),eventType:ek(u),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:S,text:m}},"parseKittyKeypress"),JK=i(e=>{let o=KK.exec(e);if(!o)return null;let r=parseInt(o[1],10),c=Math.max(0,parseInt(o[2],10)-1),u=parseInt(o[3],10),f=o[4],m=f==="~"?qK[r]:YK[f];return m?{name:m,...tk(c),eventType:ek(u),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1}:null},"parseKittySpecialKey"),jK=i((e="")=>{let o;e instanceof Uint8Array?e[0]>127&&e[1]===void 0?(e[0]-=128,e="\x1B"+jH.decode(e)):e=jH.decode(e):e!==void 0&&typeof e!="string"?e=String(e):e||(e="");let r=PK(e);if(r)return r;let c=JK(e);if(c)return c;if(WH.test(e))return{name:"",ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1};let u={name:"",ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e};if(u.sequence=u.sequence||e||u.name,e==="\r"||e==="\x1B\r")u.raw=void 0,u.name="return",u.meta=e.length===2;else if(e===`
|
|
299
|
+
`)u.name="enter";else if(e===" ")u.name="tab";else if(e==="\b"||e==="\x1B\b")u.name="backspace",u.meta=e.charAt(0)==="\x1B";else if(e==="\x7F"||e==="\x1B\x7F")u.name="backspace",u.meta=e.charAt(0)==="\x1B";else if(e==="\x1B"||e==="\x1B\x1B")u.name="escape",u.meta=e.length===2;else if(e===" "||e==="\x1B ")u.name="space",u.meta=e.length===2;else if(e.length===1&&e<="")u.name=String.fromCharCode(e.charCodeAt(0)+97-1),u.ctrl=!0;else if(e.length===1&&e>="0"&&e<="9")u.name="number";else if(e.length===1&&e>="a"&&e<="z")u.name=e;else if(e.length===1&&e>="A"&&e<="Z")u.name=e.toLowerCase(),u.shift=!0;else if(o=LK.exec(e))u.name=o[1].toLowerCase(),u.meta=!0,u.shift=/^[A-Z]$/.test(o[1]);else if(o=GK.exec(e)){let f=[...e];f[0]==="\x1B"&&f[1]==="\x1B"&&(u.meta=!0);let m=[o[1],o[2],o[4],o[6]].filter(Boolean).join(""),E=(o[3]||o[5]||1)-1;u.ctrl=!!(E&4),u.meta=u.meta||!!(E&10),u.shift=!!(E&1),u.code=m,u.name=XH[m]??"",u.shift=FK(m)||u.shift,u.ctrl=zK(m)||u.ctrl}return u},"parseKeypress"),nk=jK});var dR,VK,X0,Z0,VC=L(()=>{dR=He(Mt(),1);J1();VK=i(()=>(0,dR.useContext)(FC),"useStdin"),X0=i(()=>(0,dR.useContext)(FC),"useStdinContext"),Z0=VK});var XC,XK,wo,rk=L(async()=>{XC=He(Mt(),1);ok();await TC();VC();XK=i((e,o={})=>{let{setRawMode:r,internal_exitOnCtrlC:c,internal_eventEmitter:u}=X0();(0,XC.useEffect)(()=>{if(o.isActive!==!1)return r(!0),()=>{r(!1)}},[o.isActive,r]);let f=(0,XC.useEffectEvent)(m=>{let E=nk(m),S={upArrow:E.name==="up",downArrow:E.name==="down",leftArrow:E.name==="left",rightArrow:E.name==="right",pageDown:E.name==="pagedown",pageUp:E.name==="pageup",home:E.name==="home",end:E.name==="end",return:E.name==="return",escape:E.name==="escape",ctrl:E.ctrl,shift:E.shift,tab:E.name==="tab",backspace:E.name==="backspace",delete:E.name==="delete",meta:E.meta,super:E.super??!1,hyper:E.hyper??!1,capsLock:E.capsLock??!1,numLock:E.numLock??!1,eventType:E.eventType},v;E.isKittyProtocol?E.isPrintable?v=E.text??E.name:E.ctrl&&E.name.length===1?v=E.name:v="":E.ctrl?v=E.name??"":v=E.sequence,!E.isKittyProtocol&&ZH.includes(E.name)&&(v=""),v.startsWith("\x1B")&&(v=v.slice(1)),v.length===1&&/[A-Z]/.test(v)&&(S.shift=!0),!(v==="c"&&S.ctrl&&c)&&hr.discreteUpdates(()=>{e(v,S)})});(0,XC.useEffect)(()=>{if(o.isActive!==!1)return u.on("input",f),()=>{u.removeListener("input",f)}},[o.isActive,u])},"useInput"),wo=XK});var ZC,ZK,vc,ik=L(async()=>{ZC=He(Mt(),1);await TC();VC();ZK=i((e,o={})=>{let{setRawMode:r,setBracketedPasteMode:c,internal_eventEmitter:u}=X0();(0,ZC.useEffect)(()=>{if(o.isActive!==!1)return r(!0),c(!0),()=>{r(!1),c(!1)}},[o.isActive,r,c]);let f=(0,ZC.useEffectEvent)(m=>{hr.discreteUpdates(()=>{e(m)})});(0,ZC.useEffect)(()=>{if(o.isActive!==!1)return u.on("paste",f),()=>{u.removeListener("paste",f)}},[o.isActive,u])},"usePaste"),vc=ZK});var ak,WK,W0,sk=L(()=>{ak=He(Mt(),1);P1();WK=i(()=>(0,ak.useContext)(O0),"useApp"),W0=WK});var lk,$K,Pm,fR=L(()=>{lk=He(Mt(),1);j1();$K=i(()=>(0,lk.useContext)(H0),"useStdout"),Pm=$K});var ck,eY,uk,Ak=L(()=>{ck=He(Mt(),1);V1();eY=i(()=>(0,ck.useContext)(k0),"useStderr"),uk=eY});var nd,tY,dk,fk=L(()=>{nd=He(Mt(),1);U0();VC();tY=i(({isActive:e=!0,autoFocus:o=!1,id:r}={})=>{let{isRawModeSupported:c,setRawMode:u}=Z0(),{activeId:f,add:m,remove:E,activate:S,deactivate:v,focus:R}=(0,nd.useContext)(Km),N=(0,nd.useMemo)(()=>r??Math.random().toString().slice(2,7),[r]);return(0,nd.useEffect)(()=>(m(N,{autoFocus:o}),()=>{E(N)}),[N,o,m,E]),(0,nd.useEffect)(()=>{e?S(N):v(N)},[e,N,S,v]),(0,nd.useEffect)(()=>{if(!(!c||!e))return u(!0),()=>{u(!1)}},[e,c,u]),{isFocused:!!N&&f===N,focus:R}},"useFocus"),dk=tY});var gk,nY,pk,mk=L(()=>{gk=He(Mt(),1);U0();nY=i(()=>{let e=(0,gk.useContext)(Km);return{enableFocus:e.enableFocus,disableFocus:e.disableFocus,focusNext:e.focusNext,focusPrevious:e.focusPrevious,focus:e.focus,activeId:e.activeId}},"useFocusManager"),pk=nY});var hk,oY,Ek,Ck=L(()=>{hk=He(Mt(),1);Ym();oY=i(()=>{let{isScreenReaderEnabled:e}=(0,hk.useContext)(Sc);return e},"useIsScreenReaderEnabled"),Ek=oY});var od,rY,yk,Ik=L(()=>{od=He(Mt(),1);Z1();rY=i(()=>{let e=(0,od.useContext)(G0),o=(0,od.useRef)(void 0),r=(0,od.useCallback)(c=>{o.current=c},[]);return(0,od.useInsertionEffect)(()=>(e.setCursorPosition(o.current),()=>{e.setCursorPosition(void 0)})),{setCursorPosition:r}},"useCursor"),yk=rY});function pR(e){let{interval:o=Bk,isActive:r=!0}=e??{},c=aY(o),{subscribe:u,renderThrottleMs:f}=(0,Ka.useContext)(L0),[m,E]=(0,Ka.useState)(0),[S,v]=(0,Ka.useState)(gR),R=(0,Ka.useRef)(0),N=(0,Ka.useRef)(0),b=(0,Ka.useRef)({isActive:r,safeInterval:c,resetKey:m}),M=b.current,_=r&&(c!==M.safeInterval||!M.isActive||m!==M.resetKey),k=(0,Ka.useCallback)(()=>{E(H=>H+1)},[]);return(0,Ka.useLayoutEffect)(()=>{if(!r)return;v(gR);let H=0,{startTime:$,unsubscribe:we}=u(Qe=>{if(f>0&&Qe<R.current)return;let Me=Qe-H,Ee=Qe-N.current;N.current=Qe,R.current=Qe+f,v({frame:Math.floor(Me/c),time:Me,delta:Ee})},c);return H=$,N.current=$,R.current=H+f,we},[c,r,u,f,m]),(0,Ka.useLayoutEffect)(()=>{b.current={isActive:r,safeInterval:c,resetKey:m}},[r,c,m]),_?{...gR,reset:k}:{...S,reset:k}}function aY(e){return Number.isFinite(e)?Math.min(iY,Math.max(1,e)):Bk}var Ka,Bk,iY,gR,Sk=L(()=>{Ka=He(Mt(),1);X1();Bk=100,iY=2147483647,gR={frame:0,time:0,delta:0};i(pR,"useAnimation");i(aY,"normalizeAnimationInterval")});var $0,sY,vk,Qk=L(()=>{$0=He(Mt(),1);Fb();fR();sY=i(()=>{let{stdout:e}=Pm(),[o,r]=(0,$0.useState)(()=>Du(e));return(0,$0.useEffect)(()=>{let c=i(()=>{r(Du(e))},"onResize");return e.on("resize",c),()=>{e.off("resize",c)}},[e]),o},"useWindowSize"),vk=sY});var Qc,bk,Rk,lY,wk,xk=L(async()=>{Qc=He(Mt(),1);await wC();bk={width:0,height:0,left:0,top:0},Rk=i(e=>{if(e)return e.parentNode?Rk(e.parentNode):e.nodeName==="ink-root"?e:void 0},"findRootNode"),lY=i(e=>{let[o,r]=(0,Qc.useState)(bk),[c,u]=(0,Qc.useState)(!1),f=(0,Qc.useCallback)(()=>{let m=e.current?.yogaNode?.getComputedLayout()??bk;r(E=>E.width!==m.width||E.height!==m.height||E.left!==m.left||E.top!==m.top?m:E),u(!!e.current)},[e]);return(0,Qc.useEffect)(f),(0,Qc.useEffect)(()=>{let m=Rk(e.current);if(m)return zM(m,f)}),(0,Qc.useMemo)(()=>({...o,hasMeasured:c}),[o,c])},"useBoxMetrics"),wk=lY});var cY,Dk,Tk=L(()=>{cY=i(e=>{let{yogaNode:o}=e;if(!o)return{x:0,y:0,width:0,height:0};let r=o.getComputedLeft(),c=o.getComputedTop(),u=e.parentNode;for(;u;)u.yogaNode&&(r+=u.yogaNode.getComputedLeft(),c+=u.yogaNode.getComputedTop()),u=u.parentNode;return{x:r,y:c,width:o.getComputedWidth(),height:o.getComputedHeight()}},"measureElement"),Dk=cY});var eS={};gi(eS,{Box:()=>Rt,Newline:()=>cR,Spacer:()=>uR,Static:()=>jC,Text:()=>O,Transform:()=>lR,kittyFlags:()=>rR,kittyModifiers:()=>Yl,measureElement:()=>Dk,render:()=>j0,renderToString:()=>GH,useAnimation:()=>pR,useApp:()=>W0,useBoxMetrics:()=>wk,useCursor:()=>yk,useFocus:()=>dk,useFocusManager:()=>pk,useInput:()=>wo,useIsScreenReaderEnabled:()=>Ek,usePaste:()=>vc,useStderr:()=>uk,useStdin:()=>Z0,useStdout:()=>Pm,useWindowSize:()=>vk});var Er=L(async()=>{await UH();await FH();z0();eR();zH();KH();qH();JH();await rk();await ik();sk();VC();fR();Ak();fk();mk();Ck();Ik();Sk();Qk();await xk();Tk();q0()});function mR(e,o){if(o===0)return!0;let r=e[o-1];if(uY.has(r))return!0;let c=e[o];return r>="a"&&r<="z"&&c>="A"&&c<="Z"}function hR(e,o,r=!1){let c=e.toLowerCase(),u=o.toLowerCase();if(!c)return{score:0,positions:[]};if(c.length>u.length)return null;let f=null;for(let v=u.indexOf(c);v!==-1;v=u.indexOf(c,v+1)){let R=mR(o,v),N=1e3+c.length*16+(R?120:0)+(v===0?60:0)-v-u.length*.5;(!f||N>f.score)&&(f={score:N,positions:Array.from({length:c.length},(b,M)=>v+M)})}if(f)return f;if(r)return null;let m=[],E=0,S=0;for(let v=0;v<c.length;v++){let R=c[v],N=m[m.length-1],b=-1;if(N!==void 0&&u[N+1]===R)b=N+1;else for(let M=u.indexOf(R,S);M!==-1;M=u.indexOf(R,M+1))if(mR(o,M)){b=M;break}if(b===-1)return null;E+=16+(mR(o,b)?24:12),m.push(b),S=b+1}return E-=u.length*.5,{score:E,positions:m}}function AY(e,o,r=[],c=[]){let u=e.trim().split(/\s+/).filter(Boolean),f=o.map(()=>[]);if(!u.length)return{score:0,positions:f};let m=0;for(let E of u){let S=-1/0,v=-1,R=null;if(o.forEach((N,b)=>{let M=hR(E,N,c[b]??!1);if(!M)return;let _=M.score*(r[b]??1);_>S&&(S=_,v=b,R=M)}),!R||v<0)return null;m+=S,f[v].push(...R.positions)}for(let E of f)E.sort((S,v)=>S-v);return{score:m,positions:f}}function nl(e,o=[]){if(!o.length)return e?[{text:e,hit:!1}]:[];let r=new Set(o),c=[];for(let u=0;u<e.length;u++){let f=r.has(u),m=c[c.length-1];m&&m.hit===f?m.text+=e[u]:c.push({text:e[u],hit:f})}return c}function bc(e,o,r,c,u){let f=[];return e.forEach((m,E)=>{let S=AY(o,r(m),c,u);S&&f.push({item:m,match:S,index:E})}),o.trim()&&f.sort((m,E)=>E.match.score-m.match.score||m.index-E.index),f.map(({item:m,match:E})=>({item:m,match:E}))}var uY,rd=L(()=>{"use strict";uY=new Set([" ","/","-","_",".",":","@","~","(","["]);i(mR,"isBoundary");i(hR,"fuzzyMatch");i(AY,"matchFields");i(nl,"highlightSegments");i(bc,"rankBy")});function Nu(e){let o=[];return e.forEach((r,c)=>{r.kind==="item"&&o.push(c)}),o}function Kr(e,o,r){return r<=0?0:((e+o)%r+r)%r}function hi(e,o,r,c){return r<=0?0:Math.max(0,Math.min(r-1,e+o*Math.max(1,c)))}function _k(e,o,r,c){let u=e.length;if(u<=c||c<=0)return 0;let f=Math.max(0,Math.min(o,u-c)),m=e[r-1]?.kind==="header"?r-1:r;return m<f&&(f=m),r>=f+c&&(f=r-c+1),Math.max(0,Math.min(f,u-c))}function Nk(e,o){for(let r=o;r>=0;r--){let c=e[r];if(c?.kind==="header")return c.label}}function id(e,o){let r=[];for(let c of e)if(c.items.length){r.push({kind:"header",key:`h:${c.key}`,label:c.label,...c.detail?{detail:c.detail}:{}});for(let u of c.items)r.push({kind:"item",key:`${c.key}:${o(u)}`,item:u})}return r}function ol(e,o){return e.map(r=>({kind:"item",key:o(r),item:r}))}var Mu=L(()=>{"use strict";i(Nu,"itemRowIndices");i(Kr,"stepSelection");i(hi,"pageSelection");i(_k,"followSelection");i(Nk,"sectionOf");i(id,"sectioned");i(ol,"flatRows")});function rl(e){let o=(0,Mk.useRef)(0),{rows:r}=e;if(!r.length)return o.current=0,(0,ql.jsx)(O,{dimColor:!0,children:e.empty??C("pickers.list.empty")});let c=Nu(r),u=c[Math.max(0,Math.min(e.selected,c.length-1))]??0,f=Math.max(1,e.height),E=r.length>f&&f>2,S=E?f-2:Math.min(f,r.length),v=_k(r,o.current,u,S);o.current=v;let R=r.slice(v,v+S),N=r.length-v-R.length,b=Math.max(0,e.width-2),M=v>0&&r[v]?.kind!=="header"?Nk(r,v):void 0;return(0,ql.jsxs)(Rt,{flexDirection:"column",children:[E?(0,ql.jsx)(O,{dimColor:!0,wrap:"truncate",children:v>0?` \u2191 ${C("pickers.list.more",{count:v})}${M?` \xB7 ${M}`:""}`:" "}):null,R.map((_,k)=>{let H=v+k;if(_.kind==="header")return(0,ql.jsxs)(O,{wrap:"truncate",children:[(0,ql.jsx)(O,{bold:!0,color:"gray",children:` ${_.label}`}),_.detail?(0,ql.jsx)(O,{dimColor:!0,children:` ${_.detail}`}):null]},_.key);let $=H===u;return(0,ql.jsxs)(O,{wrap:"truncate",children:[$?(0,ql.jsx)(O,{color:Pn,children:"\u276F "}):" ",e.renderItem(_.item,{selected:$,width:b})]},_.key)}),E?(0,ql.jsx)(O,{dimColor:!0,wrap:"truncate",children:N>0?` \u2193 ${C("pickers.list.more",{count:N})}`:" "}):null]})}function ad(e,o){let r=[];for(let c of e){if(!c)continue;let u=[...r,c].join(" \xB7 ");Ot(u)<=o&&r.push(c)}return r.join(" \xB7 ")}function fY(e,o){if(o<=0)return"";if(Ot(e)<=o)return e;let r=0,c="";for(let{segment:u}of dY.segment(e)){let f=Ot(u);if(r+f>o)break;r+=f,c+=u}return c}function ld(e,o,r){let c=Ot(o),u=Math.max(0,r-c-(o?2:0)),f=Ot(e)>u?u?`${fY(e,u-1)}\u2026`:"":e;return{left:f,gap:o?" ".repeat(Math.max(0,r-Ot(f)-c)):""}}var Mk,ql,Pn,sd,dY,Wf=L(async()=>{"use strict";Mk=He(Mt(),1);await Er();Ca();Xt();Mu();ql=He(Qn(),1),Pn="#ff875f";i(rl,"SelectList");i(ad,"fitRight");sd=i(e=>Math.max(0,Math.floor(e*.45)),"rightBudget"),dY=new Intl.Segmenter(void 0,{granularity:"grapheme"});i(fY,"sliceToWidth");i(ld,"spread")});var Gk={};gi(Gk,{AuthWizard:()=>CR,providerPickerRows:()=>ER,signInInstructions:()=>Lk});function ER(e,o,r=new Set){if(o.trim())return ol(bc(e,o,E=>[E.label,E.id],[1,.6]).map(({item:E,match:S})=>({provider:E,positions:S.positions[0]})),E=>E.provider.id);let c=e.filter(E=>!E.connected&&r.has(E.id)),u=e.filter(E=>E.connected),f=e.filter(E=>!E.connected&&!r.has(E.id)&&(E.popular||E.custom)),m=e.filter(E=>!E.connected&&!r.has(E.id)&&!E.popular&&!E.custom);return id([{key:"env",label:C("auth.section.found"),items:c.map(E=>({provider:E}))},{key:"connected",label:C("auth.section.connected"),items:u.map(E=>({provider:E}))},{key:"popular",label:C("auth.section.popular"),items:f.map(E=>({provider:E}))},{key:"all",label:C("auth.section.all"),items:m.map(E=>({provider:E}))}],E=>E.provider.id)}function Jm(e){let o=e;return o?.code==="unknown-command"?C("auth.error.olderHost"):o?.message?`${o.code?`${o.code}: `:""}${o.message}`:String(e)}function Lk(e){return e&&Object.hasOwn(Hk,e)?C(Hk[e]):e&&!/^[A-Za-z][A-Za-z0-9_.]*$/.test(e)?e:C("auth.signIn.default")}function kk(e,o){return o?C("auth.signedInAs",{provider:e,account:o}):C("auth.signedIn",{provider:e})}function pY(e){let o=[];return e.oauth&&o.push(C("auth.way.signIn")),e.keyless&&o.push(C("auth.way.local")),e.keyConnectable&&o.push(C("auth.way.key")),o.join(" \xB7 ")}function Uk(e){let o=e?"\u2022".repeat(Math.min(e.length,18)):le(C("auth.pasteHere")),r=e.length>18?le(` ${C("auth.characters",{count:e.length})}`):"";return`${o}${r}${qt("\u258C")}`}function CR(e){let o=(0,hn.useRef)(!0),r=(0,hn.useRef)(!1),c=(0,hn.useRef)(null),u=i(()=>o.current&&!r.current,"isActive"),f=i(()=>{let Ie=c.current;c.current=null,Ie&&e.client.command("auth.cancel",{providerId:Ie}).catch(()=>{})},"cancelOAuth"),m=(0,hn.useRef)({step:"loading"}),[E,S]=(0,hn.useState)(m.current),v=(0,hn.useCallback)(Ie=>{m.current=Ie,S(Ie)},[]),R=(0,hn.useRef)([]),[N,b]=(0,hn.useState)([]),M=(0,hn.useRef)(null),[_,k]=(0,hn.useState)(null),H=(0,hn.useRef)(0),[$,we]=(0,hn.useState)(0),Qe=(0,hn.useCallback)(Ie=>{H.current=Ie,we(Ie)},[]),re=(0,hn.useRef)(""),[Me,Ee]=(0,hn.useState)(""),ze=(0,hn.useRef)(!1),[ce,ae]=(0,hn.useState)(!1),ie=(0,hn.useCallback)(Ie=>{ze.current=Ie,ae(Ie)},[]),[ne,ee]=(0,hn.useState)(null),[Se,Je]=(0,hn.useState)(null),ye=(0,hn.useRef)(""),[qe,ct]=(0,hn.useState)(""),je=(0,hn.useCallback)(Ie=>{ye.current=Ie,ct(Ie),H.current=0,we(0)},[]),W=(0,hn.useRef)(void 0),it=(0,hn.useRef)(new Map),yt=(0,hn.useRef)(new Set),P=i(()=>ER(R.current,ye.current,yt.current).flatMap(Ie=>Ie.kind==="item"?[Ie.item.provider]:[]),"pickItems"),Ce=(0,hn.useCallback)(()=>R.current.some(Ie=>Ie.connected),[]),Ve=i((Ie=Ce(),Ne=W.current)=>{u()&&(r.current=!0,re.current="",f(),e.onClose(Ie,Ne))},"close");(0,hn.useEffect)(()=>(o.current=!0,()=>{o.current=!1,f()}),[e.client]);let oe=(0,hn.useCallback)(async()=>{try{let Ie=await e.client.command("provider.list",void 0);return u()?(R.current=u2(Ie),it.current=new Map(hm(R.current,e.env??process.env).map(({provider:Ne,key:at})=>[Ne.id,at])),yt.current=new Set(it.current.keys()),M.current=Ie.defaultProviderId,b(R.current),k(Ie.defaultProviderId),!0):!1}catch(Ie){return u()&&v({step:"failed",message:Jm(Ie)}),!1}},[e.client,e.env,v]);(0,hn.useEffect)(()=>{(async()=>await oe()&&v({step:"pick"}))()},[]);let et=(0,hn.useCallback)(async Ie=>{let Ne=m.current;if(ee(null),!!await oe()&&m.current===Ne){if(W.current&&R.current.some(at=>at.id===W.current&&at.connected)){c.current=null,Ve(!0,W.current);return}Je(Ie),v({step:"pick"})}},[e,oe,v]),Et=(0,hn.useCallback)(async(Ie,Ne)=>{if(!ze.current){ie(!0),ee(null);try{let at=await e.client.command("provider.connect",{providerId:Ie.id,key:Ne});if(!u())return;at.ok?(W.current=Ie.id,await et(at.unverified?C("auth.connectedUnverified",{provider:Ie.label}):C("auth.connectedModels",{provider:Ie.label,count:at.models}))):ee(`${at.code}: ${at.message}`)}catch(at){u()&&ee(Jm(at))}finally{u()&&ie(!1)}}},[e.client,ie,et]),te=(0,hn.useCallback)(async Ie=>{if(!ze.current){ie(!0),ee(null),c.current=Ie.id;try{let Ne=await e.client.command("auth.start",{providerId:Ie.id});if(!u()){e.client.command("auth.cancel",{providerId:Ie.id}).catch(()=>{});return}re.current="",Ee(""),v(Ne.kind==="pkce-paste"?{step:"oauth-code",provider:Ie,start:Ne}:{step:"oauth-wait",provider:Ie,start:Ne})}catch(Ne){c.current=null,u()&&ee(Jm(Ne))}finally{u()&&ie(!1)}}},[e.client,ie,v]),se=(0,hn.useCallback)(async Ie=>{let Ne=re.current.trim();if(!(!Ne||ze.current)){ie(!0),ee(null);try{let at=await e.client.command("auth.submitCode",{providerId:Ie.id,code:Ne});if(!u())return;at.ok?(W.current=Ie.id,await et(kk(Ie.label,at.account))):ee(at.error??C("auth.error.signInFailed"))}catch(at){u()&&ee(Jm(at))}finally{u()&&ie(!1)}}},[e.client,ie,et]),De=(0,hn.useCallback)(async Ie=>{if(!ze.current){ie(!0),ee(null);try{if(await e.client.command("provider.disconnect",{providerId:Ie.id}),!u())return;W.current=void 0,await et(C("auth.disconnected",{provider:Ie.label}))}catch(Ne){if(!u())return;ee(Jm(Ne)),v({step:"pick"})}finally{u()&&ie(!1)}}},[e.client,ie,v,et]),ut=(0,hn.useCallback)((Ie,Ne)=>{switch(ee(null),Je(null),Ne.kind){case"env":{let at=it.current.get(Ie.id);at&&Et(Ie,at.value);return}case"key":re.current="",Ee(""),v({step:"key",provider:Ie});return;case"keyless":Et(Ie);return;case"oauth":te(Ie);return;case"disconnect":v({step:"disconnect",provider:Ie});return}},[Et,v,te]);(0,hn.useEffect)(()=>{if(E.step!=="oauth-wait")return;let Ie=E.provider,Ne=!0,at=!1,kt=i(()=>Ne&&u()&&m.current===E,"isCurrent"),be=i(async()=>{if(!(!kt()||at)){at=!0;try{let fe=await e.client.command("auth.result",{providerId:Ie.id});if(!kt()||!fe.finish)return;clearInterval(Te),c.current=null,fe.finish.ok?(W.current=Ie.id,await et(kk(Ie.label,fe.finish.account))):(ee(fe.finish.error??C("auth.error.signInFailed")),v({step:"pick"}))}catch(fe){kt()&&ee(Jm(fe))}finally{at=!1}}},"check"),Te=setInterval(()=>{be()},gY);return()=>{Ne=!1,clearInterval(Te)}},[E.step==="oauth-wait"?E.provider.id:""]),wo((Ie,Ne)=>{if(!u())return;let at=m.current;if(Ne.ctrl&&Ie==="c"){Ve();return}if(!(ze.current&&at.step!=="oauth-wait"))switch(at.step){case"loading":Ne.escape&&Ve();return;case"failed":(Ne.escape||Ne.return)&&Ve();return;case"pick":{let kt=P(),be=kt.length;if(Ne.escape){if(ye.current)return je("");Ve();return}if(Ne.upArrow||Ne.ctrl&&Ie==="p")return Qe(Kr(H.current,-1,be));if(Ne.downArrow||Ne.tab||Ne.ctrl&&Ie==="n")return Qe(Kr(H.current,1,be));if(Ne.pageUp)return Qe(hi(H.current,-1,be,Ok));if(Ne.pageDown)return Qe(hi(H.current,1,be,Ok));if(Ne.return){let Te=kt[H.current];if(!Te)return;let fe=c2(Te,it.current.get(Te.id));if(!fe.length){Je(C("auth.managedByAccount"));return}if(ee(null),fe.length===1)return ut(Te,fe[0]);H.current=0,we(0),v({step:"method",provider:Te,methods:fe});return}if(Ne.backspace||Ne.delete)return je(ye.current.slice(0,-1));if(Ne.ctrl&&Ie==="u")return je("");if(Ie&&!Ne.ctrl&&!Ne.meta&&!Ne.upArrow&&!Ne.downArrow){let Te=Ie.replace(/[\x00-\x1f\x7f]/g,"");Te&&je((ye.current+Te).slice(0,60))}return}case"method":{let kt=at.methods.length;if(Ne.upArrow)return Qe((H.current-1+kt)%kt);if(Ne.downArrow||Ne.tab)return Qe((H.current+1)%kt);if(Ne.return)return ut(at.provider,at.methods[H.current]);Ne.escape&&(Qe(0),v({step:"pick"}));return}case"key":case"oauth-code":{if(Ne.return){at.step==="key"?re.current.trim()&&Et(at.provider,re.current.trim()):se(at.provider);return}if(Ne.escape){at.step==="oauth-code"&&f(),v({step:"pick"});return}if(Ne.backspace||Ne.delete){re.current=re.current.slice(0,-1),Ee(re.current);return}Ie&&!Ne.ctrl&&!Ne.meta&&!Ne.tab&&!Ne.upArrow&&!Ne.downArrow&&(re.current+=Ie.replace(/[\x00-\x1f\x7f]/g,""),Ee(re.current));return}case"oauth-wait":{Ne.escape&&(f(),v({step:"pick"}));return}case"disconnect":{if(Ie==="y"||Ie==="Y"||Ne.return)return void De(at.provider);(Ie==="n"||Ie==="N"||Ne.escape)&&v({step:"pick"});return}}});let wt=E.step==="pick"||E.step==="loading"||E.step==="failed"?`01 / ${C("auth.stage.choose")}`:E.step==="method"?`02 / ${C("auth.stage.method")}`:E.step==="key"||E.step==="oauth-code"||E.step==="oauth-wait"?`03 / ${C("auth.stage.connect")}`:`03 / ${C("auth.stage.disconnect")}`,Gt=(0,Ht.jsxs)(Rt,{flexDirection:"column",marginBottom:1,children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,Ht.jsx)(O,{bold:!0,children:C("auth.title")}),(0,Ht.jsxs)(O,{dimColor:!0,children:[" \xB7 ",wt]})]}),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.subtitle")}),E.step==="pick"||E.step==="key"?(0,Ht.jsx)(O,{dimColor:!0,children:g2(e.spawned)}):null,Se?(0,Ht.jsx)(O,{children:Bt(`\u2713 ${Se}`)}):null,ne?(0,Ht.jsx)(O,{children:St(`\u2715 ${ne}`)}):null]}),gt=null;switch(E.step){case"loading":gt=(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.loading")});break;case"failed":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{children:St(`\u2715 ${E.message}`)}),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.failedFooter")})]});break;case"pick":{let Ie=ER(N,qe,yt.current),Ne=Math.max(5,Math.min(16,(e.terminalRows??30)-16));gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),qe,(0,Ht.jsx)(O,{color:Pn,children:"\u258C"}),qe?null:(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.searchHint",{count:N.length})})]}),(0,Ht.jsx)(rl,{rows:Ie,selected:$,height:Ne,width:60,empty:C("auth.noMatch",{query:qe}),renderItem:(at,{selected:kt})=>{let be=at.provider,Te=it.current.get(be.id),fe=be.connected?Bt(d2(be)):Te?Bt(C("auth.tag.envFound",{name:Te.name})):le(pY(be));return(0,Ht.jsxs)(O,{children:[nl(be.label,at.positions).map((tt,_t)=>(0,Ht.jsx)(O,{bold:kt||tt.hit,color:tt.hit?Pn:void 0,children:tt.text},_t)),be.id===_?le(` \xB7 ${C("auth.tag.default")}`):"",be.custom?le(` ${C("auth.tag.custom")}`):""," ",fe]})}}),(0,Ht.jsx)(O,{dimColor:!0,children:C(qe?"auth.pickFooter.clear":Ce()?"auth.pickFooter.close":"auth.pickFooter.later")})]});break}case"method":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:E.provider.label}),E.methods.map((Ie,Ne)=>(0,Ht.jsxs)(O,{children:[Ne===$?qt("\u276F "):" ",(0,Ht.jsx)(O,{bold:Ne===$,children:Ie.label})]},Ie.kind)),(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.methodFooter")})]});break;case"key":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(O,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.key.title",{provider:E.provider.label})}),E.provider.keyHint?le(` (${E.provider.keyHint})`):""]}),E.provider.docsUrl?(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.key.getOne",{url:E.provider.docsUrl})}):null,(0,Ht.jsxs)(O,{children:[` ${C("auth.key.label")} `,Uk(Me)]}),(0,Ht.jsx)(O,{dimColor:!0,children:ce?C("auth.key.checking"):C("auth.key.footer")})]});break;case"oauth-code":gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.oauth.title",{provider:E.provider.label})}),(0,Ht.jsx)(O,{wrap:"wrap",children:C("auth.oauth.open",{url:E.start.url})}),(0,Ht.jsx)(O,{dimColor:!0,children:Lk(E.start.instructions)}),(0,Ht.jsxs)(O,{children:[` ${C("auth.oauth.codeLabel")} `,Uk(Me)]}),(0,Ht.jsx)(O,{dimColor:!0,children:ce?C("auth.oauth.completing"):C("auth.oauth.codeFooter")})]});break;case"oauth-wait":{let Ie=m2(e.env??process.env)?p2(E.start.url):void 0;gt=(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(O,{bold:!0,children:C("auth.oauth.title",{provider:E.provider.label})}),(0,Ht.jsx)(O,{wrap:"wrap",children:C("auth.oauth.open",{url:E.start.url})}),Ie?(0,Ht.jsx)(O,{wrap:"wrap",color:"yellow",children:C("auth.oauth.remoteHint",{port:Ie})}):null,E.start.userCode?(0,Ht.jsxs)(O,{children:[` ${C("auth.oauth.enterCodeInBrowser")} `,(0,Ht.jsx)(O,{bold:!0,children:E.start.userCode})]}):null,(0,Ht.jsx)(O,{dimColor:!0,children:C("auth.oauth.waiting")})]});break}case"disconnect":gt=(0,Ht.jsxs)(O,{children:[`${C("auth.disconnect.confirm",{provider:E.provider.label})} `,le(C("auth.disconnect.footer"))]});break}return(0,Ht.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[Gt,gt]})}var hn,Ht,Ok,gY,Hk,yR=L(async()=>{"use strict";hn=He(Mt(),1);await Er();rb();FB();Xt();vo();rd();Mu();await Wf();Ht=He(Qn(),1),Ok=10;i(ER,"providerPickerRows");gY=1500;i(Jm,"errText");Hk={authorizeAnthropic:"auth.signIn.authorizeAnthropic"};i(Lk,"signInInstructions");i(kk,"signedInLine");i(pY,"connectTag");i(Uk,"maskedInput");i(CR,"AuthWizard")});var Fk={};gi(Fk,{runAuth:()=>IR});async function mY(){let e=await zA(async c=>!!await Js(c)),o=await Js(e);if(!o)return(await Ps(e))?.port===0?(console.log(Cn(C("auth.cmd.hubOff"))),console.log(C("auth.cmd.hubOffFix")),1):(console.log(le(C("auth.cmd.noEngine"))),1);let r=new qA({...o,clientId:"cli",webSocketImpl:await nC()});try{await r.connect();let c=await r.command("provider.list",void 0),u=f2(c);if(!u.length)return console.log(Cn(C("auth.cmd.noneConnected"))),1;console.log(ht(C("auth.cmd.connectedTitle")));for(let f of u)console.log(` ${Bt("\u2713")} ${f}`);return 0}catch(c){let u=c;return u?.code==="unknown-command"?console.error(St(C("auth.cmd.olderHost"))):console.error(St(C("auth.cmd.statusFailed",{error:u?.message??String(c)}))),1}finally{r.close()}}async function hY(){let e=await mr(()=>{});try{let o=await e.client.command("provider.list",void 0),r=hm(o.providers);if(!r.length)return o.providers.some(f=>f.connected&&ab(f.id))?(console.log(le(C("auth.cmd.envNothingNew"))),0):(console.log(Cn(C("auth.cmd.envNone",{names:"ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, OPENROUTER_API_KEY"}))),1);let c=0;for(let{provider:u,key:f}of r)try{let m=await e.client.command("provider.connect",{providerId:u.id,key:f.value});m.ok?console.log(`${Bt("\u2713")} ${m.unverified?C("auth.cmd.envUnverified",{provider:u.label,name:f.name}):C("auth.cmd.envConnected",{provider:u.label,name:f.name,count:m.models})}`):(c++,console.error(St(`\u2715 ${C("auth.cmd.envFailed",{provider:u.label,name:f.name,error:`${m.code}: ${m.message}`})}`)))}catch(m){c++;let E=m;console.error(St(`\u2715 ${C("auth.cmd.envFailed",{provider:u.label,name:f.name,error:E?.message??String(m)})}`))}return c===r.length?1:0}finally{e.dispose()}}async function IR(e){let o=e.task?.trim().toLowerCase();if(o==="status")return mY();if(o==="env")return hY();if(o)return console.error(C("auth.cmd.unknownAction",{action:o})),2;if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(C("auth.cmd.needsTerminal")),2;let r=await mr(()=>{});try{let{render:c}=await Er().then(()=>eS),{AuthWizard:u}=await yR().then(()=>Gk),f=!1,m,E=c((0,zk.jsx)(u,{client:r.client,spawned:r.spawned,terminalRows:process.stdout.rows||30,onClose:(v,R)=>{f=v,m=R,E.unmount()}}));await E.waitUntilExit();let S=m?(await r.client.command("provider.list",void 0).catch(()=>null))?.providers.find(v=>v.id===m)?.label:void 0;if(f){let v={moreai:ht("moreai"),model:ht("/model")},R=S?C("auth.cmd.doneConnected",{provider:S,...v}):C("auth.cmd.doneReady",v);return console.log(`${Bt("\u2713")} ${R}`),0}return console.log(le(C("auth.cmd.noProvider"))),1}finally{r.dispose()}}var zk,BR=L(()=>{"use strict";SB();JE();Of();am();Xs();rb();FB();Xt();vo();zk=He(Qn(),1);i(mY,"runAuthStatus");i(hY,"runAuthFromEnv");i(IR,"runAuth")});var EY,tS,SR=L(()=>{"use strict";EY=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,tS=i(e=>EY.test(e.trim()),"isValidEmail")});var Yk={};gi(Yk,{AccountWizard:()=>ey});function $C(e){switch(e){case"NOT_CONFIGURED":return C("auth.account.error.notConfigured");case"NETWORK":return C("auth.account.error.network");case"KEYCHAIN_UNAVAILABLE":return C("auth.account.error.keychain");case"RATE_LIMITED":return C("auth.account.error.rateLimited");case"EMAIL_SEND_FAILED":return C("auth.account.error.emailSendFailed");case"INVALID_CODE":return C("auth.account.error.invalidCode");case"STALE_CODE":return C("auth.account.error.staleCode");case"EXPIRED_CODE":return C("auth.account.error.expiredCode");default:return/^[A-Z_]+$/.test(e)?e.replaceAll("_"," ").toLowerCase():e}}function WC(e){let o=e;return o?.code==="unknown-command"?C("auth.account.error.tooOld"):o?.message?$C(o.message):String(e)}function Kk(e){let o=Math.max(Ot(C("auth.account.emailLabel")),Ot(C("auth.account.codeLabel")));return e+" ".repeat(o-Ot(e)+2)}function ey({client:e,onClose:o,purpose:r,continueOnSignIn:c}){let u=(0,Ya.useRef)({kind:"loading"}),[f,m]=(0,Ya.useState)(u.current),E=(0,Ya.useRef)(""),[S,v]=(0,Ya.useState)(""),R=(0,Ya.useRef)(!1),[N,b]=(0,Ya.useState)(!1),[M,_]=(0,Ya.useState)(null),k=(0,Ya.useRef)(!0),H=(0,Ya.useRef)(!1),$=i(()=>k.current&&!H.current,"isActive"),we=i(ne=>{$()&&(H.current=!0,E.current="",o(ne))},"close"),Qe=i(ne=>{u.current=ne,m(ne)},"setPhase"),re=i(ne=>{R.current=ne,b(ne)},"setBusyBoth"),Me=i(()=>{E.current="",v("")},"clearInput"),Ee=i(ne=>{$()&&(Qe({kind:"signed-in",email:ne}),c&&we(!0))},"signedIn");(0,Ya.useEffect)(()=>(k.current=!0,e.command("account.state",void 0).then(ne=>{$()&&(ne.signedIn&&ne.user?Ee(ne.user.email):Qe({kind:"email"}))}).catch(ne=>{$()&&(_(WC(ne)),Qe({kind:"email"}))}),()=>{k.current=!1}),[e]),(0,Ya.useEffect)(()=>{if(f.kind!=="challenge")return;let{id:ne}=f,ee=!0,Se=!1,Je=i(()=>ee&&$()&&u.current===f&&!R.current,"isCurrent"),ye=i(async()=>{if(!(!Je()||Se)){Se=!0;try{let ct=await e.command("account.challengeStatus",{id:ne});if(!Je())return;if(!ct.ok)_($C(ct.error));else if(ct.status==="approved"){let je=await e.command("account.state",void 0);if(!Je())return;je.signedIn&&je.user?Ee(je.user.email):(_(C("auth.account.approvalClaimed")),Qe({kind:"email"}))}else(ct.status==="denied"||ct.status==="expired")&&(_(C(ct.status==="denied"?"auth.account.approvalDenied":"auth.account.approvalExpired")),Qe({kind:"email"}))}catch(ct){Je()&&_(WC(ct))}finally{Se=!1}}},"check");ye();let qe=setInterval(()=>{ye()},2500);return()=>{ee=!1,clearInterval(qe)}},[e,f.kind==="challenge"?f.id:""]);let ze=i(async ne=>{re(!0),_(null);try{let ee=await e.command("account.requestCode",{email:ne});if(!$())return;if(!ee.ok){_($C(ee.error));return}Me(),Qe(ee.challenge?{kind:"challenge",email:ne,id:ee.challenge.id,displayCode:ee.challenge.displayCode}:{kind:"code",email:ne})}catch(ee){$()&&_(WC(ee))}finally{$()&&re(!1)}},"requestForEmail"),ce=i(async()=>{let ne=E.current.trim().toLowerCase();if(!tS(ne)){_(C("auth.account.invalidEmail"));return}await ze(ne)},"submitEmail"),ae=i(async ne=>{let ee=E.current.trim();if(!/^\d{6}$/.test(ee)){_(C("auth.account.invalidCode"));return}re(!0),_(null);try{let Se=await e.command("account.verifyCode",{email:ne,code:ee});if(!$())return;Se.ok?(Me(),Ee(Se.user.email)):_($C(Se.error))}catch(Se){$()&&_(WC(Se))}finally{$()&&re(!1)}},"submitCode"),ie=i(async(ne,ee)=>{re(!0),_(null);try{let Se=await e.command("account.state",void 0);if(!$())return;if(Se.signedIn&&Se.user){Ee(Se.user.email);return}let Je=await e.command("account.fallbackEmail",{id:ne});if(!$())return;Je.ok?(Me(),Qe({kind:"code",email:ee})):_($C(Je.error))}catch(Se){$()&&_(WC(Se))}finally{$()&&re(!1)}},"sendFallback");return wo((ne,ee)=>{if(!$())return;let Se=u.current;if(ee.escape||ee.ctrl&&ne==="c"){we(Se.kind==="signed-in");return}if(!(R.current||Se.kind==="loading")){if(Se.kind==="signed-in"){ee.return&&we(!0);return}if(Se.kind==="challenge"){ee.return&&ie(Se.id,Se.email);return}if(Se.kind==="code"&&!ee.ctrl&&!ee.meta&&(ne==="r"||ne==="R")){ze(Se.email);return}if(ee.return){Se.kind==="email"?ce():ae(Se.email);return}if(ee.backspace||ee.delete){E.current=E.current.slice(0,-1),v(E.current);return}if(ne&&!ee.ctrl&&!ee.meta&&!ee.tab&&!ee.upArrow&&!ee.downArrow){let Je=ne.replace(/[\x00-\x1f\x7f]/g,"");E.current+=Se.kind==="code"?Je.replace(/\D/g,"").slice(0,6-E.current.length):Je.slice(0,254-E.current.length),v(E.current)}}}),(0,co.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[(0,co.jsxs)(O,{children:[(0,co.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,co.jsx)(O,{bold:!0,children:C("auth.account.title")}),r?null:(0,co.jsx)(O,{dimColor:!0,children:` \xB7 ${C("auth.account.optional")}`})]}),(0,co.jsx)(O,{dimColor:!0,wrap:"wrap",children:r??C("auth.account.syncLine")}),f.kind==="loading"?(0,co.jsx)(O,{dimColor:!0,children:C("auth.account.checking")}):null,f.kind==="email"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`01 ${C("auth.account.step.email")}`}),(0,co.jsxs)(O,{children:[Kk(C("auth.account.emailLabel")),S,qt("\u258C")]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.sending"):r?C("auth.account.emailFooterPurpose"):C("auth.account.emailFooter")})]}):null,f.kind==="challenge"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`02 ${C("auth.account.step.approve")}`}),(0,co.jsx)(O,{children:C("auth.account.approveHint")}),(0,co.jsxs)(O,{bold:!0,children:[" ",qt(f.displayCode)]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.sendingCode"):C("auth.account.approveFooter")})]}):null,f.kind==="code"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsx)(O,{color:"#ff875f",bold:!0,children:`02 ${C("auth.account.step.verify")}`}),(0,co.jsx)(O,{children:C("auth.account.codeSentTo",{email:f.email})}),(0,co.jsxs)(O,{children:[Kk(C("auth.account.codeLabel")),"\u2022".repeat(S.length),qt("\u258C")]}),(0,co.jsx)(O,{dimColor:!0,children:N?C("auth.account.checkingCode"):C("auth.account.codeFooter")})]}):null,f.kind==="signed-in"?(0,co.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,co.jsxs)(O,{children:[Bt("\u2713")," ",(0,co.jsx)(O,{bold:!0,children:C("auth.account.connected")})," ",f.email]}),(0,co.jsx)(O,{children:le(C("auth.account.signedInFooter"))})]}):null,M?(0,co.jsx)(Rt,{marginTop:1,children:(0,co.jsx)(O,{children:St(`\u2715 ${M}`)})}):null]})}var Ya,co,nS=L(async()=>{"use strict";Ya=He(Mt(),1);await Er();Ca();SR();Xt();vo();co=He(Qn(),1);i($C,"accountError");i(WC,"hubError");i(Kk,"fieldLabel");i(ey,"AccountWizard")});var jk={};gi(jk,{ConnectorWizard:()=>wR,accountPurpose:()=>RR,categoryLabel:()=>QR,connectorRows:()=>Pk,connectorState:()=>Jk,isGoogle:()=>qk});function ty(e){let o=e;return o?.code==="unknown-command"?C("connectors.error.engineTooOld"):o?.message??String(e)}function QR(e){let o=`connectors.category.${e??"other"}`;return Object.hasOwn(yu,o)?C(o):e}function Pk(e,o,r){let c=new Map(e.map(S=>[S.id,S])),u=o.map(S=>({configured:S,...S.presetId&&c.get(S.presetId)?{preset:c.get(S.presetId)}:{}})),f=new Set(o.map(S=>S.presetId??S.id)),m=e.filter(S=>!f.has(S.id)).map(S=>({preset:S}));if(r.trim()){let S=bc([...u,...m],r,v=>[bR(v),QR(v.preset?.category),v.preset?.blurb??"",vR(v)],[1,.7,.4,.5],[!1,!1,!0,!0]);return ol(S.map(({item:v,match:R})=>({...v,positions:R.positions[0]})),vR)}let E=[];for(let S of m){let v=S.preset?.category??"other";E.includes(v)||E.push(v)}return id([{key:"connected",label:C("connectors.section.connected"),detail:`${u.length}`,items:u},...E.map(S=>({key:`c:${S}`,label:QR(S),items:m.filter(v=>(v.preset?.category??"other")===S)}))],vR)}function Jk(e,o=!1){let r=e.configured?.status;return r==="ready"?{text:C("connectors.state.on"),tone:"on"}:r==="disabled"?{text:C("connectors.state.off"),tone:"off"}:r==="needs-auth"?{text:C("connectors.state.needsAuth"),tone:"warn"}:o&&e.preset?.requiresAccount?{text:C("connectors.state.needsAccount"),tone:"none"}:e.preset?.tenant?{text:C("connectors.state.needsAddress"),tone:"none"}:e.preset?.authFlow==="token"?{text:C("connectors.state.apiKey"),tone:"none"}:e.preset?.authFlow==="open"?{text:C("connectors.state.open"),tone:"none"}:{text:C("connectors.state.signIn"),tone:"none"}}function RR(e){return C(e.requiresAccount?"connectors.account.required":"connectors.account.preferred",{name:e.name})}function IY({preset:e,deviceAllowed:o,selected:r,busy:c}){let u=[{title:C("connectors.account.signIn"),detail:C("connectors.account.signInDetail")},...o?[{title:C("connectors.account.deviceOnly"),detail:C("connectors.account.deviceOnlyDetail")}]:[]];return(0,Vt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,Vt.jsx)(O,{bold:!0,children:C("connectors.account.title",{name:e.name})}),(0,Vt.jsx)(O,{dimColor:!0,wrap:"wrap",children:RR(e)}),(0,Vt.jsx)(Rt,{flexDirection:"column",marginTop:1,children:u.map((f,m)=>(0,Vt.jsxs)(O,{wrap:"truncate",children:[(0,Vt.jsx)(O,{color:Pn,children:m===r?"\u276F ":" "}),(0,Vt.jsx)(O,{bold:m===r,children:`${m+1}. ${f.title}`}),(0,Vt.jsx)(O,{dimColor:!0,children:` ${f.detail}`})]},f.title))}),(0,Vt.jsx)(O,{dimColor:!0,children:c?C("connectors.account.connecting"):C("connectors.account.footer",{keys:u.length>1?"1\u20132":"1"})})]})}function wR({client:e,onClose:o,onSignedIn:r,width:c=90,terminalRows:u=30}){let f=(0,Xn.useRef)({step:"loading"}),[m,E]=(0,Xn.useState)(f.current),S=(0,Xn.useCallback)(be=>{f.current=be,E(be)},[]),[v,R]=(0,Xn.useState)([]),[N,b]=(0,Xn.useState)([]),M=(0,Xn.useRef)(""),[_,k]=(0,Xn.useState)(""),H=(0,Xn.useRef)(0),[$,we]=(0,Xn.useState)(0),Qe=(0,Xn.useRef)(""),[re,Me]=(0,Xn.useState)(""),Ee=(0,Xn.useRef)(!1),[ze,ce]=(0,Xn.useState)(!1),[ae,ie]=(0,Xn.useState)(null),[ne,ee]=(0,Xn.useState)(null),Se=(0,Xn.useRef)(null),[Je,ye]=(0,Xn.useState)(null),qe=(0,Xn.useRef)(!1),[ct,je]=(0,Xn.useState)(!1),W=(0,Xn.useRef)(!1),it=i(be=>{W.current=be,je(be)},"setSignedOut"),yt=(0,Xn.useMemo)(()=>Pk(v,N,_),[v,N,_]),P=(0,Xn.useRef)(yt);P.current=yt;let Ce=i(()=>P.current.flatMap(be=>be.kind==="item"?[be.item]:[]),"items"),Ve=i(be=>{M.current=be,k(be),oe(0)},"setSearch"),oe=i(be=>{H.current=be,we(be),Se.current=null,ye(null)},"setCursor"),et=i(be=>{Qe.current=be,Me(be)},"setEntry"),Et=i(be=>{Ee.current=be,ce(be)},"setWorking"),te=(0,Xn.useCallback)(async()=>{let[be,Te]=await Promise.all([e.command("connector.catalog",void 0),e.command("connector.list",void 0)]);R(be),b(Te),qe.current=Te.some(tt=>tt.status==="ready");let fe=await e.command("account.state",void 0).catch(()=>null);it(fe?!fe.signedIn:!1)},[e]);(0,Xn.useEffect)(()=>{let be=!0;te().then(()=>{be&&S({step:"pick"})}).catch(fe=>{be&&S({step:"failed",message:ty(fe)})});let Te=e.on(fe=>{fe.event==="connector.changed"&&be&&te().catch(()=>{})});return()=>{be=!1,Te()}},[e,te,S]);let se=(0,Xn.useCallback)(async(be,Te)=>{await te().catch(()=>{}),et(""),ee(Te?C("connectors.connectedTools",{name:be,count:Te}):C("connectors.connected",{name:be})),ie(null),S({step:"pick"})},[te,S]),De=(0,Xn.useCallback)(async(be,Te,fe,tt)=>{if(!Ee.current){Et(!0),ie(null),ee(null);try{let _t=await e.command("connector.connect",{presetId:be.id,...Te?{tenant:Te}:{},...fe?{token:fe}:{},...tt?{credentialScope:tt}:{}});et(""),_t.status==="connected"?await se(be.name,_t.tools):_t.status==="pending"?S({step:"wait",preset:be,id:_t.id,..._t.url?{url:_t.url}:{}}):_t.code==="no-account"?(H.current=0,we(0),S({step:"need-account",preset:be,...Te?{tenant:Te}:{},deviceAllowed:!be.requiresAccount})):(ie(_t.error),S({step:"pick"}))}catch(_t){ie(ty(_t)),S({step:"pick"})}finally{Et(!1)}}},[e,se,S]);(0,Xn.useEffect)(()=>{if(m.step!=="wait")return;let{id:be,preset:Te}=m,fe=!0,tt=!1,_t=i(async()=>{if(!(!fe||tt)){tt=!0;try{let In=await e.command("connector.result",{id:be});if(!fe||In.pending||!In.result)return;In.result.status==="connected"?await se(Te.name,In.result.tools):In.result.status==="failed"&&In.result.code==="no-account"?S({step:"need-account",preset:Te,deviceAllowed:!Te.requiresAccount}):(ie(In.result.status==="failed"?In.result.error:C("connectors.error.signInUnfinished")),S({step:"pick"}))}catch(In){fe&&ie(ty(In))}finally{tt=!1}}},"check");_t();let Gn=setInterval(()=>{_t()},CY);return()=>{fe=!1,clearInterval(Gn)}},[e,se,m.step==="wait"?m.id:"",S]);let ut=i(async(be,Te)=>{let fe=be.configured;if(!(!fe||Ee.current)){Et(!0),ie(null);try{await e.command("connector.setEnabled",{id:fe.id,enabled:Te}),await te(),ee(C(Te?"connectors.turnedOn":"connectors.turnedOff",{name:fe.name}))}catch(tt){ie(ty(tt))}finally{Et(!1)}}},"setEnabled"),wt=i(async be=>{let Te=be.configured;if(!(!Te||Ee.current)){Et(!0),ie(null);try{await e.command("connector.remove",{id:Te.id}),await te(),ee(C("connectors.disconnected",{name:Te.name}))}catch(fe){ie(ty(fe))}finally{Et(!1),Se.current=null,ye(null)}}},"disconnect"),Gt=i(be=>{let Te=be.preset,fe=be.configured;if(ie(null),ee(null),fe?.status==="disabled")return void ut(be,!0);if(fe?.status==="ready"){ee(fe.account?C("connectors.isConnectedAs",{name:fe.name,account:fe.account}):C("connectors.isConnected",{name:fe.name}));return}if(!Te){ie(fe?.name?C("connectors.error.addedInDesktop",{name:fe.name}):C("connectors.error.addedInDesktopUnnamed"));return}if(et(""),Te.requiresAccount&&W.current){H.current=0,we(0),S({step:"need-account",preset:Te,deviceAllowed:!1});return}Te.tenant&&!fe?S({step:"tenant",preset:Te}):Te.authFlow==="token"?S({step:"token",preset:Te}):De(Te)},"choose");wo((be,Te)=>{let fe=f.current;if(Te.ctrl&&be==="c"){o(qe.current);return}if(!Ee.current){if(fe.step==="loading"){Te.escape&&o(!1);return}if(fe.step==="failed"){(Te.escape||Te.return)&&o(!1);return}if(fe.step==="wait"){Te.escape&&S({step:"pick"});return}if(fe.step==="need-account"){let tt=fe.deviceAllowed?2:1;if(Te.escape){S({step:"pick"});return}if(Te.upArrow||Te.downArrow||Te.tab){oe(Kr(H.current,Te.upArrow?-1:1,tt));return}let _t=be==="1"?0:be==="2"&&fe.deviceAllowed?1:Te.return?H.current:-1;_t===0?S({step:"account",preset:fe.preset,...fe.tenant?{tenant:fe.tenant}:{}}):_t===1&&De(fe.preset,fe.tenant,void 0,"device");return}if(fe.step==="pick"){let tt=Ce(),_t=tt.length,Gn=tt[H.current];if(Te.escape){if(Se.current){Se.current=null,ye(null);return}if(M.current)return Ve("");o(qe.current);return}if(Te.upArrow||Te.ctrl&&be==="p")return oe(Kr(H.current,-1,_t));if(Te.downArrow||Te.tab||Te.ctrl&&be==="n")return oe(Kr(H.current,1,_t));if(Te.pageUp)return oe(hi(H.current,-1,_t,10));if(Te.pageDown)return oe(hi(H.current,1,_t,10));if(Te.home)return oe(0);if(Te.end)return oe(Math.max(0,_t-1));if(Te.return){Gn&&Gt(Gn);return}if(Te.ctrl&&be==="d"){if(!Gn?.configured)return;if(Se.current===Gn.configured.id)return void wt(Gn);Se.current=Gn.configured.id,ye(Gn.configured.id);return}if(be===" "&&!M.current&&Gn?.configured){let In=Gn.configured.status==="ready";return void ut(Gn,!In)}if(Te.backspace||Te.delete)return Ve(M.current.slice(0,-1));if(Te.ctrl&&be==="u")return Ve("");if(be&&!Te.ctrl&&!Te.meta){let In=be.replace(/[\x00-\x1f\x7f]/g,"");In&&(In.trim()||M.current)&&Ve((M.current+In).slice(0,80))}return}if(Te.escape){et(""),S({step:"pick"});return}if(Te.return){let tt=Qe.current.trim();if(!tt)return;fe.step==="tenant"?fe.preset.authFlow==="token"?(et(""),S({step:"token",preset:fe.preset,tenant:tt})):De(fe.preset,tt):fe.step==="token"&&De(fe.preset,fe.tenant,tt);return}if(Te.backspace||Te.delete){et(Qe.current.slice(0,-1));return}be&&!Te.ctrl&&!Te.meta&&et((Qe.current+be.replace(/[\x00-\x1f\x7f]/g,"")).slice(0,4096))}},{isActive:m.step!=="account"});let gt=Math.max(30,c-4),Ie=Math.max(5,Math.min(18,u-yY)),Ne=N.filter(be=>be.status==="ready").length,at=Nu(yt).length,kt=C(gt>=80?"connectors.footer":"connectors.footerShort");if(m.step==="account"){let{preset:be,tenant:Te}=m;return(0,Vt.jsx)(ey,{client:e,purpose:RR(be),continueOnSignIn:!0,onClose:fe=>{if(!fe){S({step:"need-account",preset:be,...Te?{tenant:Te}:{},deviceAllowed:!be.requiresAccount});return}it(!1),r?.(),S({step:"pick"}),te().catch(()=>{}).then(()=>De(be,Te))}})}return(0,Vt.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Vt.jsxs)(O,{wrap:"truncate",children:[(0,Vt.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Vt.jsx)(O,{bold:!0,children:C("connectors.title")}),(0,Vt.jsx)(O,{dimColor:!0,children:` \xB7 ${C("connectors.subtitle")}`})]}),ae?(0,Vt.jsx)(O,{wrap:"truncate",children:St(`\u2715 ${ae}`)}):null,ne&&!ae?(0,Vt.jsx)(O,{wrap:"truncate",children:Bt(`\u2713 ${ne}`)}):null,m.step==="loading"?(0,Vt.jsx)(O,{dimColor:!0,children:C("connectors.loading")}):null,m.step==="failed"?(0,Vt.jsxs)(O,{children:[St(m.message),le(` \xB7 ${C("connectors.closeHint")}`)]}):null,m.step==="pick"?(0,Vt.jsxs)(Rt,{flexDirection:"column",children:[(0,Vt.jsxs)(O,{wrap:"truncate",children:[(0,Vt.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),_,(0,Vt.jsx)(O,{color:Pn,children:"\u258C"}),_?null:(0,Vt.jsx)(O,{dimColor:!0,children:C("connectors.searchPlaceholder")}),(0,Vt.jsx)(O,{dimColor:!0,children:` ${_?C("connectors.found",{count:at}):`${C("connectors.onCount",{count:Ne})} \xB7 ${C("connectors.inCatalog",{count:v.length})}`}`})]}),(0,Vt.jsx)(rl,{rows:yt,selected:$,height:Ie,width:gt,empty:C("connectors.noMatch",{query:_}),renderItem:(be,{selected:Te,width:fe})=>{let tt=Jk(be,ct),_t=!!be.configured&&Je===be.configured.id,Gn=_t?C("connectors.confirmDisconnect"):ad([tt.text,be.configured?.account],sd(fe)),In=be.configured?tt.tone==="on"?"\u25CF ":"\u25CB ":" ",No=!be.configured&&be.preset?.blurb?` \u2014 ${be.preset.blurb}`:"",{left:xr,gap:Vo}=ld(`${bR(be)}${No}`,Gn,fe-In.length),Mo=Math.min(bR(be).length,xr.length),qr=_t?"red":tt.tone==="on"?"green":tt.tone==="warn"?"yellow":void 0;return(0,Vt.jsxs)(O,{children:[(0,Vt.jsx)(O,{color:tt.tone==="on"?"green":void 0,dimColor:tt.tone!=="on",children:In}),nl(xr.slice(0,Mo),be.positions).map((ot,Dt)=>(0,Vt.jsx)(O,{bold:Te||ot.hit,color:ot.hit?Pn:void 0,children:ot.text},Dt)),(0,Vt.jsx)(O,{dimColor:!0,children:xr.slice(Mo)}),(0,Vt.jsx)(O,{dimColor:!0,children:Vo}),(0,Vt.jsx)(O,{color:qr,dimColor:!qr,children:Gn})]})}}),(0,Vt.jsx)(O,{dimColor:!0,wrap:"truncate",children:kt})]}):null,m.step==="tenant"?(0,Vt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,Vt.jsxs)(O,{bold:!0,children:[m.preset.name," \xB7 ",m.preset.tenant?.label]}),(0,Vt.jsxs)(O,{children:[re,qt("\u258C")]}),(0,Vt.jsx)(O,{dimColor:!0,children:m.preset.tenant?.hint??m.preset.tenant?.placeholder}),(0,Vt.jsx)(O,{dimColor:!0,children:C("connectors.tenant.footer")})]}):null,m.step==="token"?(0,Vt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,Vt.jsxs)(O,{bold:!0,children:[m.preset.name," \xB7 ",C("connectors.token.label")]}),(0,Vt.jsxs)(O,{children:[re?"\u2022".repeat(Math.min(re.length,18)):le(C("connectors.token.placeholder")),qt("\u258C")]}),(0,Vt.jsx)(O,{dimColor:!0,children:ze?C("connectors.token.testing"):C("connectors.token.footer")})]}):null,m.step==="need-account"?(0,Vt.jsx)(IY,{preset:m.preset,deviceAllowed:m.deviceAllowed,selected:$,busy:ze}):null,m.step==="wait"?(0,Vt.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,Vt.jsxs)(O,{children:[qt("\u2733")," ",C("connectors.wait.signIn",{name:m.preset.name})]}),m.url?(0,Vt.jsx)(O,{dimColor:!0,wrap:"wrap",children:C("connectors.wait.url",{url:m.url})}):null,(0,Vt.jsx)(O,{dimColor:!0,children:C(qk(m.preset.id)?"connectors.wait.google":"connectors.wait.waiting")}),(0,Vt.jsx)(O,{dimColor:!0,children:C("connectors.wait.footer")})]}):null]})}var Xn,Vt,CY,yY,bR,vR,qk,xR=L(async()=>{"use strict";Xn=He(Mt(),1);await Er();BB();vo();rd();Mu();await Wf();await nS();Xt();oQ();Vt=He(Qn(),1),CY=1500,yY=12;i(ty,"messageOf");i(QR,"categoryLabel");bR=i(e=>e.configured?.name??e.preset?.name??"","nameOf"),vR=i(e=>e.configured?.id??e.preset?.id??"","rowKey"),qk=i(e=>!!e?.startsWith(sT),"isGoogle");i(Pk,"connectorRows");i(Jk,"connectorState");i(RR,"accountPurpose");i(IY,"NeedAccount");i(wR,"ConnectorWizard")});var Xk={};gi(Xk,{openConnectorWizard:()=>oS,runConnectors:()=>SY});async function oS(e){if(!process.stdin.isTTY||!process.stdout.isTTY)return!1;let{render:o}=await Er().then(()=>eS),{ConnectorWizard:r}=await xR().then(()=>jk),c=!1,u=o((0,Zk.jsx)(r,{client:e,width:Math.max(40,Math.min((process.stdout.columns||80)-2,100)),terminalRows:process.stdout.rows||30,onClose:f=>{c=f,u.unmount()}}));return await u.waitUntilExit(),c}async function BY(){if(process.stdin.isTTY)throw new Error(C("connectors.cmd.tokenNeedsPipe"));let e=[];for await(let r of process.stdin)e.push(Buffer.from(r));let o=Buffer.concat(e).toString("utf8").trim();if(!o)throw new Error(C("connectors.cmd.tokenEmpty"));return o}function Vk(e,o){return`${C("connectors.cmd.connectedId",{id:e})} \xB7 ${C("connectors.cmd.toolsAvailable",{count:o})}`}async function SY(e){let[o,r,...c]=(e.task??"").trim().split(/\s+/).filter(Boolean),u=o==="remove"||o==="add"||o==="on"||o==="off";if(c.length>(o==="add"?1:0)||o&&!["list","status","catalog","add","remove","on","off"].includes(o))return console.error(`moreai connectors: ${C("connectors.cmd.usage")}`),2;if(u&&!r)return console.error(`moreai connectors ${o}: ${C(o==="add"?"connectors.cmd.addNeedsId":"connectors.cmd.needsId")}`),2;if(!u&&r)return console.error(`moreai connectors: ${C("connectors.cmd.unexpectedArgument",{arg:r})}`),2;if(o==="add"&&r&&/^https?:\/\//i.test(r)&&c.length)return console.error(`moreai connectors add: ${C("connectors.cmd.urlTakesNoTenant")}`),2;if(!o&&(!process.stdin.isTTY||!process.stdout.isTTY))return console.error(C("connectors.cmd.needsTerminal")),2;let f=await mr(()=>{});try{if(o==="catalog"){let E=await f.client.command("connector.catalog",void 0);console.log(ht(C("connectors.cmd.catalogTitle")));for(let S of E)console.log(` ${S.name} ${le(`(${S.id})`)} \xB7 ${S.category}${S.configured?Bt(` \xB7 ${C("connectors.cmd.connected")}`):""}`);return 0}if(o==="list"||o==="status"){let E=await f.client.command("connector.list",void 0);if(!E.length)return console.log(Cn(C("connectors.cmd.noneConfigured"))),0;console.log(ht(C("connectors.cmd.listTitle")));for(let S of E){let v=S.status==="ready"?Bt(C("connectors.cmd.ready")):S.status==="disabled"?le(C("connectors.cmd.disabled")):Cn(C("connectors.cmd.needsSignIn"));console.log(` ${S.name} ${le(`(${S.id})`)} \xB7 ${v}`)}return 0}if(o==="on"||o==="off"){let S=(await f.client.command("connector.list",void 0)).find(v=>v.id===r);return S?(await f.client.command("connector.setEnabled",{id:r,enabled:o==="on"}),console.log(`${Bt("\u2713")} ${C(o==="on"?"connectors.turnedOn":"connectors.turnedOff",{name:S.name})}`),0):(console.error(St(C("connectors.cmd.notFound",{id:r}))),1)}if(o==="remove"){let S=(await f.client.command("connector.list",void 0)).find(v=>v.id===r);return S?(await f.client.command("connector.remove",{id:r}),console.log(`${Bt("\u2713")} ${C("connectors.cmd.disconnected",{name:S.name})}`),0):(console.error(St(C("connectors.cmd.notFound",{id:r}))),1)}if(o==="add"){let E=e.tokenStdin?await BY():void 0,S=/^https?:\/\//i.test(r),v=await f.client.command("connector.connect",{...S?{url:r}:{presetId:r},...c[0]&&!S?{tenant:c[0]}:{},...E?{token:E}:{}});if(v.status==="failed")return console.error(St(`moreai connectors: ${v.error}`)),v.code==="no-account"&&console.error(le(C("connectors.cmd.signInFirst"))),1;if(v.status==="pending"){if(v.url&&console.log(le(C("connectors.cmd.signInPage",{url:v.url}))),!process.stdin.isTTY||!process.stdout.isTTY)return console.log(Cn(C("connectors.cmd.pendingElsewhere"))),0;console.log(Cn(C("connectors.cmd.waiting")));let R=Date.now()+125e3;for(;Date.now()<R;){await new Promise(b=>setTimeout(b,1500));let N=await f.client.command("connector.result",{id:v.id});if(!N.pending)return N.result?.status==="connected"?(console.log(`${Bt("\u2713")} ${Vk(r,N.result.tools)}`),0):(console.error(St(`moreai connectors: ${N.result?.status==="failed"?N.result.error:C("connectors.cmd.signInUnfinished")}`)),1)}return console.error(St(`moreai connectors: ${C("connectors.cmd.timedOut")}`)),1}return console.log(`${Bt("\u2713")} ${Vk(r,v.tools)}`),0}return await oS(f.client)?(console.log(`${Bt("\u2713")} ${C("connectors.cmd.serviceReady",{command:ht("moreai")})}`),0):(console.log(le(C("connectors.cmd.noneChosen"))),1)}catch(m){let E=m,S=E?.code==="unknown-command"?C("connectors.cmd.engineTooOld"):E?.message??String(m);return console.error(St(`moreai connectors: ${S}`)),1}finally{f.dispose()}}var Zk,DR=L(()=>{"use strict";Xs();vo();Xt();Zk=He(Qn(),1);i(oS,"openConnectorWizard");i(BY,"readTokenStdin");i(Vk,"connectedLine");i(SY,"runConnectors")});var tU={};gi(tU,{runAccountCommand:()=>NR});import{createInterface as vY}from"node:readline/promises";import{setTimeout as QY}from"node:timers/promises";function ny(e){switch(e){case"NOT_CONFIGURED":return C("auth.login.error.notConfigured");case"NETWORK":return C("auth.login.error.network");case"RATE_LIMITED":return C("auth.login.error.rateLimited");case"EMAIL_SEND_FAILED":return C("auth.login.error.emailSendFailed");case"INVALID_CODE":return C("auth.login.error.invalidCode");case"STALE_CODE":return C("auth.login.error.staleCode");case"EXPIRED_CODE":return C("auth.login.error.expiredCode");default:return e.replaceAll("_"," ").toLowerCase()}}function bY(e){let o=e;return o?.code==="unknown-command"?C("auth.login.error.tooOld"):o?.message??String(e)}function RY(){let e=vY({input:process.stdin,output:process.stdout,terminal:!0}),o=null,r=!1;return e.on("SIGINT",()=>{r=!0,o?.abort(),e.close()}),{rl:e,interrupted:i(()=>r,"interrupted"),async ask(c,u){let f=new AbortController;o=f;let m=i(()=>f.abort(),"abort");u?.addEventListener("abort",m,{once:!0});try{return await e.question(c,{signal:f.signal})}catch{return null}finally{u?.removeEventListener("abort",m),o===f&&(o=null)}}}}async function wY(){let e=[];for await(let o of process.stdin)e.push(Buffer.from(o));return Buffer.concat(e).toString("utf8").trim()}async function $k(e,o,r,c){let u=Date.parse(r),f=Math.min(Number.isFinite(u)?u-2e3:1/0,Date.now()+9e4);for(;!c.aborted&&Date.now()<f;){let m=await e.command("account.challengeStatus",{id:o});if(!m.ok)return{kind:"error",error:m.error};if(m.status==="approved"||m.status==="denied"||m.status==="expired")return{kind:m.status};try{await QY(2500,void 0,{signal:c})}catch(E){if(!c.aborted)throw E}}return{kind:"timeout"}}function rS(e){return`${Bt("\u2713")} ${C("auth.login.signedInAs",{email:ht(e)})}`}async function TR(e){let o=await e.command("account.state",void 0);return!o.signedIn||!o.user?(console.error(St(C("auth.login.noSession"))),1):(console.log(rS(o.user.email)),console.log(le(C("auth.login.syncNote"))),0)}async function _R(e,o,r){if(!/^\d{6}$/.test(r))return console.error(St(C("auth.login.invalidCode"))),2;let c=await e.command("account.verifyCode",{email:o,code:r});return c.ok?(console.log(rS(c.user.email)),console.log(le(C("auth.login.syncNote"))),0):(console.error(St(C("auth.login.signInFailed",{error:ny(c.error)}))),1)}async function eU(e,o){let r=await e.command("account.fallbackEmail",{id:o});return r.ok?(console.log(`${Bt("\u2713")} ${C("auth.login.emailCodeSent")}`),!0):(console.error(St(C("auth.login.fallbackFailed",{error:ny(r.error)}))),!1)}async function xY(e,o,r,c){if(console.log(C("auth.login.approveOnDevice")),console.log(` ${C("auth.login.confirmationCode",{code:ht(o.displayCode)})}`),!c)return console.log(le(C("auth.login.challengeId",{id:o.id}))),console.log(C("auth.login.toWait")),console.log(` moreai login --challenge ${o.id} --wait`),console.log(C("auth.login.toFallback")),console.log(` moreai login --challenge ${o.id} --fallback`),console.log(` ${C("auth.login.thenPipe",{command:`moreai login ${r} --code-stdin`})}`),0;let u=new AbortController,f=new AbortController,m=c.ask(`${C("auth.login.pressEnterForEmail")} `,u.signal).then(R=>R===null?"cancelled":"fallback"),E;try{E=await Promise.race([$k(e,o.id,o.expiresAt,f.signal),m])}finally{u.abort(),f.abort(),await m}if(E==="cancelled"||c.interrupted())return 130;if(typeof E=="object"&&E.kind==="approved")return TR(e);if(typeof E=="object"&&E.kind==="error")return console.error(St(C("auth.login.approvalCheckFailed",{error:ny(E.error)}))),1;if(typeof E=="object"&&(E.kind==="denied"||E.kind==="expired"))return console.error(St(C(E.kind==="denied"?"auth.login.approvalDeniedRetry":"auth.login.approvalExpiredRetry"))),1;if(typeof E=="object"&&E.kind==="timeout"&&console.log(Cn(C("auth.login.approvalTimeout"))),(await e.command("account.state",void 0)).signedIn)return TR(e);if(!await eU(e,o.id))return 1;let v=await c.ask(`${C("auth.login.emailCodePrompt")} `);return v===null?130:_R(e,r,v.trim())}async function DY(e,o){if(o.challenge){if(o.fallback)return await eU(e,o.challenge)?(console.log(C("auth.login.pipeCodeHint",{command:"moreai login <email> --code-stdin"})),0):1;o.wait&&console.log(C("auth.login.waiting"));let f=new AbortController,m=o.wait?await $k(e,o.challenge,new Date(Date.now()+9e4).toISOString(),f.signal):await e.command("account.challengeStatus",{id:o.challenge}).then(E=>E.ok?{kind:E.status==="pending"?"timeout":E.status}:{kind:"error",error:E.error});return m.kind==="approved"?TR(e):(m.kind==="error"?console.error(St(ny(m.error))):m.kind==="timeout"?console.log(Cn(C("auth.login.stillPending"))):console.error(St(C(m.kind==="denied"?"auth.login.approvalDenied":"auth.login.approvalExpired"))),1)}let r=!!process.stdin.isTTY&&!!process.stdout.isTTY;if(!r&&!o.task)return console.error(C("auth.login.needsEmail")),2;if(o.codeStdin&&process.stdin.isTTY)return console.error(C("auth.login.codeStdinNeedsPipe")),2;if(r&&!o.task&&!o.codeStdin){let{render:f}=await Er().then(()=>eS),{AccountWizard:m}=await nS().then(()=>Yk),E=!1,S=f((0,Wk.createElement)(m,{client:e,continueOnSignIn:!0,onClose:i(R=>{E=R,S.unmount()},"onClose")}));if(await S.waitUntilExit(),!E)return console.log(le(C("auth.login.unfinished"))),1;let v=await e.command("account.state",void 0);return!v.signedIn||!v.user?(console.error(St(C("auth.login.notSaved"))),1):(console.log(rS(v.user.email)),0)}let c=await e.command("account.state",void 0);if(c.signedIn&&c.user)return console.log(`${Bt("\u2713")} ${C("auth.login.alreadySignedIn",{email:ht(c.user.email)})}`),console.log(le(C("auth.login.switchHint"))),0;let u=r?RY():null;try{let f=(o.task??await u?.ask(`${C("auth.login.emailPrompt")} `)??"").trim().toLowerCase();if(!tS(f))return console.error(St(C("auth.login.invalidEmail"))),2;if(o.codeStdin)return _R(e,f,await wY());let m=await e.command("account.requestCode",{email:f});if(!m.ok)return console.error(St(C("auth.login.startFailed",{error:ny(m.error)}))),1;if(m.challenge)return await xY(e,m.challenge,f,u);if(console.log(`${Bt("\u2713")} ${C("auth.login.codeSent",{email:ht(f)})}`),!u)return console.log(C("auth.login.pipeCodeInto",{command:`moreai login ${f} --code-stdin`})),0;let E=await u.ask(`${C("auth.login.codePrompt")} `);return E===null?130:_R(e,f,E.trim())}finally{u?.rl.close()}}async function TY(e,o){if(o&&o!=="status"&&o!=="profile")return console.error(C("auth.accountCmd.unknownAction",{action:o})),2;let r=await e.command("account.state",void 0);if(!r.signedIn||!r.user)return console.log(Cn(C("auth.accountCmd.signedOut"))),console.log(C("auth.accountCmd.signedOutHint")),0;console.log(rS(r.user.email)),r.user.name&&console.log(` ${r.user.name}`);try{let c=await e.command("account.profile",void 0);if(c?.plan){let u=c.plan.label??c.plan.plan,f=c.plan.app?.active?C("auth.accountCmd.planWithSync",{plan:u,app:c.plan.app.label??"Cloud"}):C("auth.accountCmd.plan",{plan:u});console.log(` ${f}`)}}catch{console.log(le(` ${C("auth.accountCmd.planOffline")}`))}return console.log(le(` ${C("auth.accountCmd.syncNote")}`)),0}async function NR(e){if(e.command==="logout"&&e.task)return console.error(C("auth.logout.noArgs")),2;let o=null;try{if(o=await mr(()=>{}),e.command==="login"){let c=await DY(o.client,e);return c!==0||!(await o.client.command("account.state",void 0)).signedIn?c:!process.stdin.isTTY||!process.stdout.isTTY?(console.log(le(C("auth.login.nextConnectors"))),0):(console.log(`
|
|
300
|
+
${C("auth.login.chooseService")}`),await oS(o.client)||console.log(le(C("auth.login.servicesLater"))),0)}return e.command==="account"?await TY(o.client,e.task?.trim().toLowerCase()):(await o.client.command("account.state",void 0)).signedIn?(await o.client.command("account.signOut",void 0),console.log(`${Bt("\u2713")} ${C("auth.logout.done")}`),console.log(le(C("auth.logout.keysRemain"))),0):(console.log(le(C("auth.logout.alreadySignedOut"))),0)}catch(r){return console.error(St(`moreai ${e.command}: ${bY(r)}`)),1}finally{o?.dispose()}}var Wk,MR=L(()=>{"use strict";Wk=He(Mt(),1);SR();Xs();DR();Xt();vo();i(ny,"accountError");i(bY,"hubError");i(RY,"prompt");i(wY,"readCodeFromStdin");i($k,"pollChallenge");i(rS,"signedInLine");i(TR,"showSignedIn");i(_R,"verifyEmailCode");i(eU,"fallbackToEmail");i(xY,"runChallenge");i(DY,"runLogin");i(TY,"runAccountStatus");i(NR,"runAccountCommand")});function oU(e){let o=e.DO_NOT_TRACK?.trim().toLowerCase();if(o&&!nU.has(o))return!0;let r=e.MOREAI_TELEMETRY?.trim().toLowerCase();return!!r&&nU.has(r)}var nU,rU=L(()=>{"use strict";nU=new Set(["0","false","off","no"]);i(oU,"telemetryOptedOutByEnv")});import HR from"node:fs";import iU from"node:path";function OR(e,o,r){return{id:e,get label(){return C(o)},get detail(){return C(r)}}}function jm(){return C("cards.analytics.explainer").split(`
|
|
301
|
+
`)}function _Y(e){return e==="off"?{enabled:!1}:{enabled:!0,content:e==="all"}}function oy(e){return e.enabled?e.content?"all":"usage":"off"}function cd(e){return e.envOptOut?C("cards.analytics.state.envOff"):e.enabled?e.content?C("cards.analytics.state.all"):C("cards.analytics.state.usage"):C("cards.analytics.state.off")}function kR(){return oU(process.env)}function UR(e){try{let o=JSON.parse(HR.readFileSync(aU(e),"utf8"));return o&&typeof o=="object"?o:{}}catch{return{}}}function sU(e,o){try{let r=aU(e);HR.mkdirSync(iU.dirname(r),{recursive:!0}),HR.writeFileSync(r,JSON.stringify({...UR(e),...o},null,2))}catch{}}function iS(e){return!kR()&&!UR(e).answeredAt}function NY(e){sU(e,{answeredAt:Date.now()})}function lU(e,o){if(kR()||!o?.enabled||o.envOptOut)return null;let r=UR(e);return r.answeredAt||r.noticedAt?null:(sU(e,{noticedAt:Date.now()}),`moreai: ${C("cards.analytics.notice")}`)}async function $f(e,o,r,c){let u=await e.command("telemetry.set",{..._Y(r),origin:c,clientVersion:Rr});return NY(o),u}function Zi(e,o,r={}){if(!e||kR())return Promise.resolve();let c=e.command("analytics.track",{event:o,props:r,clientVersion:Rr}).then(()=>{},()=>{}),u=new Promise(f=>setTimeout(f,MY).unref?.());return Promise.race([c,u])}var qa,aU,MY,Ou=L(()=>{"use strict";rU();YA();Xt();i(OR,"choiceOption");qa=[OR("all","cards.analytics.all","cards.analytics.allDetail"),OR("usage","cards.analytics.usage","cards.analytics.usageDetail"),OR("off","cards.analytics.off","cards.analytics.offDetail")];i(jm,"analyticsExplainer");i(_Y,"switchesOf");i(oy,"choiceOf");i(cd,"describeTelemetry");i(kR,"envOptedOut");aU=i(e=>iU.join(e,"cli","analytics.json"),"recordPath");i(UR,"readRecord");i(sU,"writeRecord");i(iS,"shouldAskConsent");i(NY,"markConsentAnswered");i(lU,"nonInteractiveNotice");i($f,"applyAnalyticsChoice");MY=1500;i(Zi,"trackCli")});var uU={};gi(uU,{runSetup:()=>kY});import{createInterface as cU}from"node:readline/promises";async function HY(e,o,r){let c;try{c=await mr(()=>{})}catch{return}try{let u=await c.client.command("telemetry.state",void 0).catch(()=>null);if(u&&!u.envOptOut&&iS(c.dataDir)){console.log(`
|
|
302
|
+
${le(C("cli.setup.analytics"))}`);for(let R of jm())console.log(le(` ${R}`));let f=qa.findIndex(R=>R.id===oy(u))+1;qa.forEach((R,N)=>console.log(` ${qt(String(N+1))} ${R.label} ${le(`\u2014 ${R.detail}`)}`));let m=cU({input:process.stdin,output:process.stdout,terminal:!0}),E="";try{E=(await m.question(`${qt(C("cli.setup.select"))} [${f}]: `)).trim()||String(f)}finally{m.close()}let S=qa[Number(E)-1]?.id??qa[f-1].id,v=await $f(c.client,c.dataDir,S,"cli_first_run");console.log(`${Bt("\u2713")} ${C("cli.setup.analyticsSet",{state:cd(v),command:ht("moreai analytics")})}`)}await Zi(c.client,"cli_setup_finished",{path:e,account_ready:o,model_ready:r})}catch{}finally{c.dispose()}}async function kY(){if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(C("cli.setup.needsTerminal")),2;console.log(""),console.log(`${qt("\u2733")} ${ht("MORE AI CODE")}`),console.log(le(` ${C("cli.setup.tagline")}`)),console.log(""),console.log(` ${qt("01")} ${ht(C("cli.setup.fullTitle"))}`),console.log(le(` ${C("cli.setup.fullDetail")}`)),console.log(` ${qt("02")} ${ht(C("cli.setup.modelTitle"))}`),console.log(le(` ${C("cli.setup.modelDetail")}`)),console.log(` ${qt("03")} ${ht(C("cli.setup.accountTitle"))}`),console.log(le(` ${C("cli.setup.accountDetail")}`)),console.log("");let e=cU({input:process.stdin,output:process.stdout,terminal:!0}),o;try{o=(await e.question(`${qt(C("cli.setup.select"))} [1]: `)).trim()||"1"}finally{e.close()}if(/^0[123]$/.test(o)&&(o=o.slice(1)),!["1","2","3"].includes(o))return console.error(C("cli.setup.invalidChoice")),2;let r=!1,c=!1,u=!1;if(o==="1"||o==="3"){console.log(`
|
|
303
|
+
${le(C("cli.setup.stepAccount",{step:"01"}))}`);let f=PE(["login"]),m=await NR(f.args);if(m===130||(r=m===0,!r&&(u=!0,console.log(Cn(C("cli.setup.accountUnfinished"))),o==="3")))return m}if(o==="1"||o==="2"){console.log(`
|
|
304
|
+
${le(C("cli.setup.stepModel",{step:o==="1"?"02":"01"}))}`);let f=PE(["auth"]);c=await IR(f.args)===0,c||(u=!0,console.log(Cn(C("cli.setup.modelUnfinished"))))}return await HY(OY[o],r,c),console.log(""),r&&console.log(`${Bt("\u2713")} ${C("cli.setup.accountReady")}`),c&&console.log(`${Bt("\u2713")} ${C("cli.setup.modelReady",{command:ht("moreai")})}`),c||console.log(le(C("cli.setup.modelLater"))),u?1:0}var OY,AU=L(()=>{"use strict";gQ();MR();BR();vo();Xs();Xt();Ou();OY={1:"full",2:"model",3:"account"};i(HY,"finishSetup");i(kY,"runSetup")});var dU={};gi(dU,{runAnalytics:()=>LY});async function LY(e){let o=UY[(e??"status").trim().toLowerCase()];if(!o)return console.error(C("cards.analytics.usageLine")),2;let r;try{r=await mr(()=>{})}catch(c){return console.error(C("cards.analytics.unreachable",{error:c instanceof Error?c.message:String(c)})),1}try{let c=o==="status"?await r.client.command("telemetry.state",void 0):await $f(r.client,r.dataDir,o,"cli_command");if(console.log(`${ht(C("cards.analytics.label"))} ${cd(c)}`),o==="status"){console.log("");for(let u of jm())console.log(le(u));console.log(le(C("cards.analytics.verbs")))}return 0}catch(c){return console.error(`moreai analytics: ${c instanceof Error?c.message:c}`),1}finally{r.dispose()}}var UY,fU=L(()=>{"use strict";Xs();Ou();Xt();vo();UY={status:"status",on:"all",usage:"usage",off:"off"};i(LY,"runAnalytics")});var pU={};gi(pU,{runBrowser:()=>FY});function GY(e){return`${e.slice(0,3)} ${e.slice(3)}`}function gU(e){if(!e.listening){console.log(le(C("cli.browser.notRunning"))),console.log(le(C("cli.browser.enableHint")));return}let o=e.port?le(` \xB7 127.0.0.1:${e.port}`):"";e.connected?console.log(`${qt("\u2022")} ${C("cli.browser.connected")}${o}`):e.paired?console.log(`${le("\u2022")} ${C("cli.browser.pairedIdle")}${o}`):console.log(`${le("\u2022")} ${C("cli.browser.notPaired",{command:ht("moreai browser pair")})}${o}`)}async function FY(e){let o=(e??"status").trim().toLowerCase();if(o!=="pair"&&o!=="status"&&o!=="unpair")return console.error(C("cli.browser.unknownCommand",{command:o})),2;let r;try{r=await mr(()=>{})}catch(c){return console.error(C("cli.engineUnreachable",{message:c instanceof Error?c.message:String(c)})),1}try{if(o==="status")return gU(await r.client.command("browser.status",void 0)),0;if(o==="unpair")return await r.client.command("browser.unpair",void 0),console.log(C("cli.browser.forgotten")),0;let c=await r.client.command("browser.pair",void 0);if(!c)return console.error(C("cli.browser.noBridge")),gU(await r.client.command("browser.status",void 0)),1;let u=Math.max(1,Math.round((c.expiresAt-Date.now())/6e4));return console.log(ht(C("cli.browser.pairingCode",{code:qt(GY(c.code))}))),console.log(le(C("cli.browser.pairingHint",{count:u}))),0}finally{r.dispose()}}var mU=L(()=>{"use strict";Xs();vo();Xt();i(GY,"grouped");i(gU,"reportStatus");i(FY,"runBrowser")});import zY from"node:os";function Rc(e,o,r){let c=e==="running"?qt(ya):e==="error"?St(ya):Bt(ya),u=ht(o),f=r&&!o.includes(r)?le(`(${Ru(r,80)})`):"";return[c,u,f].filter(Boolean).join(" ")}function Vm(e,o=3,r=!1){let c=e.replace(/\s+$/,"");if(!c)return"";let u=c.split(`
|
|
305
|
+
`),f=u.slice(0,o).map(v=>Ru(v,100)),m=u.length-f.length,E=r?St:le,S=f.map((v,R)=>` ${Tn(R===0?Hu:" ")} ${E(v)}`).join(`
|
|
306
|
+
`);return m>0?`${S}
|
|
307
|
+
${Tn(C("cards.moreLines",{count:m}))}`:S}function EU(e){let o=e.split(`
|
|
308
|
+
`).filter(c=>c.trim().length>0),r=o[o.length-1];return r?` ${Tn(Hu)} ${le(Ru(r,100))}`:""}function eg(e){let o=C(e.kind==="create"?"cards.diff.write":"cards.diff.edit",{path:e.path}),r=`${Bt(`+${e.additions}`)} ${St(`-${e.deletions}`)}`,c=`${Bt(ya)} ${ht(o)} ${r}`,u=Math.max(3,...e.hunks.map(E=>String(E.b??E.a??0).length)),f=e.hunks.slice(0,hU).map(E=>{let S=String(E.b??E.a??"").padStart(u);return E.t==="add"?Bt(` ${S} + ${E.text}`):E.t==="del"?St(` ${S} - ${E.text}`):le(` ${S} ${E.text}`)}),m=e.hunks.length-hU;return m>0&&f.push(` ${Tn(C("cards.diff.moreLines",{count:m}))}`),e.truncated&&f.push(` ${Tn(C("cards.diff.truncated"))}`),[c,...f].join(`
|
|
309
|
+
`)}function Xm(e){return e.length?e.map(r=>{switch(r.status){case"completed":return` ${Bt("\u2612")} ${le(r.content)}`;case"in_progress":return` ${qt("\u25D0")} ${ht(r.content)}`;case"cancelled":return` ${Tn("\u2715")} ${Tn(U_(r.content))}`;default:return` ${Zs("\u2610")} ${r.content}`}}).join(`
|
|
310
|
+
`):""}function aS(e){let o=[`${qt(ya)} ${ht(C("cards.plan.heading"))}`];return e.summary&&o.push(` ${e.summary}`),e.steps.forEach((r,c)=>{o.push(` ${le(`${c+1}.`)} ${r.title}`),r.detail&&o.push(` ${le(r.detail)}`),r.files?.length&&o.push(` ${Tn(r.files.join(", "))}`)}),o.join(`
|
|
311
|
+
`)}function wc(e,o=Date.now()){let r=Math.max(0,Math.round((o-e)/1e3));return r>=60?C("cards.elapsed.minutes",{minutes:Math.floor(r/60),seconds:String(r%60).padStart(2,"0")}):C("cards.elapsed.seconds",{seconds:r})}function Uu(e){return e>=1e3?`${(e/1e3).toFixed(e>=1e4?0:1)}k`:String(e)}function il(e,o){let r=`${Cn("\u26A0")} ${ht(e)}`;if(!o)return r;let c=o.split(`
|
|
312
|
+
`).map(u=>` ${le(u)}`);return[r,...c].join(`
|
|
313
|
+
`)}function Zm(e){return e.split(`
|
|
314
|
+
`).map(o=>`${Tn(LR)} ${Zs(o)}`).join(`
|
|
315
|
+
`)}function CU(e){return`${Ln("\u21B3")} ${Zs(e)}`}function sS(e,o,r=zY.homedir()){let c=r&&(e===r||e.startsWith(`${r}/`))?`~${e.slice(r.length)}`:e;if(c.length<=o||o<8)return c;let u=c.slice(c.length-(o-4)),f=u.indexOf("/"),m=f>=0&&f<u.length-1?u.slice(f):u;return`${c.startsWith("~")?"~":""}/\u2026${m.startsWith("/")?m:`/${m}`}`}var ya,Hu,LR,Pa,ku,hU,al=L(()=>{"use strict";vo();Xt();ya="\u23FA",Hu="\u23BF",LR="\u276F",Pa="\u2733",ku=["\u2733","\u2736","\u273B","\u273D","\u273B","\u2736"];i(Rc,"toolLine");i(Vm,"resultPreview");i(EU,"outputTail");hU=40;i(eg,"diffBlock");i(Xm,"todoBlock");i(aS,"planBlock");i(wc,"elapsed");i(Uu,"tokens");i(il,"noticeBlock");i(Zm,"userEcho");i(CU,"steerEcho");i(sS,"shortPath")});function GR(e){let o=[],r="",c=0;for(let u=0;u<e.length;u++){let f=e[u];if(f==="\\"&&e[u+1]==="|")r+="|",u++;else if(f==="`"){let m=/^`+/.exec(e.slice(u))[0];c?c===m.length&&(c=0):c=m.length,r+=m,u+=m.length-1}else f==="|"&&!c?(o.push(r.trim()),r=""):r+=f}return o.push(r.trim()),e.trimStart().startsWith("|")&&o.shift(),e.trimEnd().endsWith("|")&&o[o.length-1]===""&&o.pop(),o}function yU(e,o){if(!e[o].includes("|")||!e[o+1])return null;let r=GR(e[o]),c=GR(e[o+1]);if(r.length<2||c.length!==r.length||!c.every(E=>/^:?-+:?$/.test(E)))return null;let u=c.map(E=>E.endsWith(":")?E.startsWith(":")?"center":"right":"left"),f=[],m=o+2;for(;m<e.length&&e[m].trim()&&e[m].includes("|");){let E=GR(e[m]);if(E.length<2)break;f.push(r.map((S,v)=>E[v]??"")),m++}return{headers:r,rows:f,align:u,end:m}}function lS(e,o){return Ws(e,o,{hard:!0,trim:!0}).split(`
|
|
316
|
+
`)}function KY(e,o,r){let c=[],u=Tn("\u2500".repeat(r));return o.forEach((f,m)=>{m&&c.push(u),f.forEach((E,S)=>{c.push(...lS(ht(`${e[S]}:`),r)),c.push(...lS(E,r-2).map(v=>` ${v}`))})}),c.length?c:e.flatMap(f=>lS(ht(f),r))}function IU(e,o,r){let c=i(_=>r(_.replace(/<br\s*\/?\s*>/gi,`
|
|
317
|
+
`).replace(/\t/g," ")),"styled"),u=e.headers.map(c),f=e.rows.map(_=>_.map(c)),m=u.length,E=o-(m*3+1),S=u.map((_,k)=>Math.max(1,...[_,...f.map(H=>H[k])].flatMap(H=>H.split(`
|
|
318
|
+
`).map($=>Math.min(o,Ot($)))))),v=S.map(_=>Math.min(_,10));if(m>2&&o<60||E<v.reduce((_,k)=>_+k,0))return KY(u,f,o);let R=[...S];for(;R.reduce((_,k)=>_+k,0)>E;){let _=-1;if(R.forEach((k,H)=>{k>v[H]&&(_===-1||k>R[_])&&(_=H)}),_===-1)break;R[_]--}let N=i((_,k,H)=>Tn(_+R.map($=>"\u2500".repeat($+2)).join(k)+H),"border"),b=i((_,k=!1)=>{let H=_.map(($,we)=>lS(k?ht($):$,R[we]));return Array.from({length:Math.max(...H.map($=>$.length))},($,we)=>{let Qe=H.map((re,Me)=>{let Ee=re[we]??"",ze=Math.max(0,R[Me]-Ot(Ee)),ce=e.align[Me]==="right"?ze:e.align[Me]==="center"?Math.floor(ze/2):0;return` ${" ".repeat(ce)}${Ee}${" ".repeat(ze-ce)} `});return`${Tn("\u2502")}${Qe.join(Tn("\u2502"))}${Tn("\u2502")}`})},"paintRow"),M=[N("\u256D","\u252C","\u256E"),...b(u,!0),N("\u251C","\u253C","\u2524")];return f.forEach((_,k)=>{k&&M.push(N("\u251C","\u253C","\u2524")),M.push(...b(_))}),M.push(N("\u2570","\u2534","\u256F")),M}var BU=L(()=>{"use strict";Ca();fC();vo();i(GR,"cells");i(yU,"readTable");i(lS,"wrapCell");i(KY,"records");i(IU,"renderTable")});function Lu(e){let o="",r=0;for(;r<e.length;){if(e[r]==="`"){let m=e.indexOf("`",r+1);if(m>r){o+=Ln(e.slice(r+1,m)),r=m+1;continue}}let c=/^(\*\*|__)([^*_]+?)\1/.exec(e.slice(r));if(c){o+=ht(Lu(c[2])),r+=c[0].length;continue}let u=/^(\*|_)([^*_]+?)\1/.exec(e.slice(r));if(u){o+=k_(Lu(u[2])),r+=u[0].length;continue}let f=/^\[([^\]]+)\]\(([^)]+)\)/.exec(e.slice(r));if(f){o+=`${f[1]} ${le(`(${f[2]})`)}`,r+=f[0].length;continue}o+=e[r],r++}return o}function ry(e,o,r="",c=r){let u=Math.max(1,o-Math.max(Ot(r),Ot(c)));return Ws(e,u,{hard:!0,trim:!1}).split(`
|
|
319
|
+
`).map((f,m)=>`${m===0?r:c}${f}`)}function sl(e,o=80){let r=Math.max(4,Math.floor(o)),c=e.replace(/\r\n/g,`
|
|
320
|
+
`).split(`
|
|
321
|
+
`),u=[];for(let f=0;f<c.length;f++){let m=c[f],E=/^\s*(`{3,}|~{3,})(.*)$/.exec(m);if(E){let M=E[2].trim(),_=[];for(;++f<c.length;){let we=/^\s*(`{3,}|~{3,})\s*$/.exec(c[f]);if(we&&we[1][0]===E[1][0]&&we[1].length>=E[1].length)break;_.push(...Ws(c[f].replace(/\t/g," "),r-2,{hard:!0,wordWrap:!1,trim:!1}).split(`
|
|
322
|
+
`))}let k=M?` ${M} `:"",H=Math.min(r,Math.max(12,2+Ot(k),..._.map(we=>Ot(we)+2))),$=Ws(k,H-2,{hard:!0,trim:!1}).split(`
|
|
323
|
+
`)[0];u.push(`${Tn("\u256D\u2500")}${Ln($)}${Tn("\u2500".repeat(Math.max(0,H-2-Ot($))))}`),u.push(..._.map(we=>`${Tn("\u2502")} ${we}`)),u.push(Tn(`\u2570${"\u2500".repeat(H-1)}`));continue}let S=yU(c,f);if(S){u.push(...IU(S,r,Lu)),f=S.end-1;continue}let v=/^(#{1,6})\s+(.*)$/.exec(m);if(v){u.length&&u[u.length-1]!==""&&u.push(""),u.push(...ry(ht(Lu(v[2])),r)),v[1].length<=2&&u.push(Tn("\u2500".repeat(Math.min(r,Ot(Lu(v[2]))))));continue}if(/^\s*(---+|\*\*\*+|___+)\s*$/.test(m)){u.push(Tn("\u2500".repeat(Math.min(r,48))));continue}let R=/^\s*>\s?(.*)$/.exec(m);if(R){u.push(...ry(Lu(R[1]),r,`${Tn("\u258F")} `));continue}let N=/^(\s*)([-*+])\s+(.*)$/.exec(m);if(N){let M=/^\[([ xX])\]\s+(.*)$/.exec(N[3]),_=M?M[1]===" "?le("\u2610"):Bt("\u2611"):le("\u2022"),k=`${N[1]}${_} `;u.push(...ry(Lu(M?M[2]:N[3]),r,k," ".repeat(Ot(k))));continue}let b=/^(\s*)(\d+)[.)]\s+(.*)$/.exec(m);if(b){let M=`${b[1]}${le(`${b[2]}.`)} `;u.push(...ry(Lu(b[3]),r,M," ".repeat(Ot(M))));continue}u.push(...ry(Lu(m),r))}return u.join(`
|
|
324
|
+
`)}var Wm=L(()=>{"use strict";Ca();fC();vo();BU();i(Lu,"renderInline");i(ry,"blockLines");i(sl,"renderMarkdown")});import YY from"node:path";function iy(e,o=Date.now()){let r=Math.round((o-e)/1e3);return r<60?C("pickers.sessions.justNow"):r<3600?C("pickers.sessions.minutesAgo",{count:Math.floor(r/60)}):r<86400?C("pickers.sessions.hoursAgo",{count:Math.floor(r/3600)}):r<7*86400?C("pickers.sessions.daysAgo",{count:Math.floor(r/86400)}):qY(e)}function qY(e){let o=za(),r={month:"short",day:"numeric"};try{return new Date(e).toLocaleDateString(o==="en"?"en-US":o,r)}catch{return new Date(e).toLocaleDateString("en-US",r)}}function SU(e,o){let r=e.filter(v=>!v.archived).filter(v=>o.scope==="all"||v.repoPath===o.repoPath).sort((v,R)=>R.updatedAt-v.updatedAt);if(o.query.trim())return ol(bc(r,o.query,v=>[v.title,vU(v)],[1,.7]).map(({item:v,match:R})=>({session:v,positions:R.positions[0]})),v=>v.session.id);let c=o.now??Date.now(),u=i(v=>{let R=new Date(c);return R.setDate(R.getDate()-v),R.setHours(0,0,0,0)},"startOfDay"),f=u(0),m=u(1),E=u(6),S=i(v=>v>=f?"today":v>=m?"yesterday":v>=E?"week":"older","bucket");return id(PY.map(v=>({key:v.id,label:v.label(),items:r.filter(R=>S(R.updatedAt)===v.id).map(R=>({session:R}))})),v=>v.session.id)}function QU(e){let o=e.sessions.filter(Me=>!Me.archived&&Me.repoPath===e.repoPath).length,r=(0,ll.useRef)(o?"here":"all"),[c,u]=(0,ll.useState)(r.current),f=(0,ll.useRef)(""),[m,E]=(0,ll.useState)(""),S=(0,ll.useRef)(0),[v,R]=(0,ll.useState)(0),N=Math.max(1,Math.min(16,(e.terminalRows??30)-JY)),b=i((Me,Ee)=>SU(e.sessions,{scope:Me,query:Ee,repoPath:e.repoPath}),"rowsFor"),M=(0,ll.useMemo)(()=>SU(e.sessions,{scope:c,query:m,repoPath:e.repoPath}),[e.sessions,e.repoPath,c,m]),_=i(Me=>{S.current=Me,R(Me)},"select");(0,ll.useEffect)(()=>{let Me=Nu(M).length;S.current>=Me&&_(Math.max(0,Me-1))},[M]);let k=i(Me=>{f.current=Me,E(Me),_(0)},"setQuery"),H=i(Me=>{r.current=Me,u(Me),_(0)},"setScope");wo((Me,Ee)=>{let ze=b(r.current,f.current).flatMap(ie=>ie.kind==="item"?[ie.item]:[]),ce=ze.length;if(Ee.ctrl&&Me==="c")return e.onCancel();if(Ee.escape)return f.current?k(""):e.onCancel();if(Ee.upArrow||Ee.ctrl&&Me==="p")return _(Kr(S.current,-1,ce));if(Ee.downArrow||Ee.ctrl&&Me==="n")return _(Kr(S.current,1,ce));let ae=Math.max(1,Math.min(10,N>2?N-2:N));if(Ee.pageUp)return _(hi(S.current,-1,ce,ae));if(Ee.pageDown)return _(hi(S.current,1,ce,ae));if(Ee.home)return _(0);if(Ee.end)return _(Math.max(0,ce-1));if(Ee.leftArrow||Ee.rightArrow||Ee.tab)return H(r.current==="here"?"all":"here");if(Ee.return){let ie=ze[Math.min(S.current,ce-1)];ie&&e.onPick(ie.session);return}if(Ee.backspace||Ee.delete)return k(f.current.slice(0,-1));if(Ee.ctrl&&Me==="u")return k("");if(Me&&!Ee.ctrl&&!Ee.meta){let ie=Me.replace(/[\x00-\x1f\x7f]/g,"");ie&&(ie.trim()||f.current)&&k((f.current+ie).slice(0,80))}});let $=e.width??90,we=Math.max(1,$-4),Qe=Nu(M).length,re=e.sessions.filter(Me=>!Me.archived).length;return(0,Yr.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Yr.jsxs)(O,{wrap:"truncate",children:[(0,Yr.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Yr.jsx)(O,{bold:!0,children:C("pickers.sessions.title")}),(0,Yr.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,Yr.jsx)(O,{bold:c==="here",color:c==="here"?Pn:void 0,dimColor:c!=="here",children:C("pickers.sessions.scopeHere",{n:o})}),(0,Yr.jsx)(O,{dimColor:!0,children:" "}),(0,Yr.jsx)(O,{bold:c==="all",color:c==="all"?Pn:void 0,dimColor:c!=="all",children:C("pickers.sessions.scopeAll",{n:re})})]}),(0,Yr.jsxs)(O,{wrap:"truncate",children:[(0,Yr.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),m,(0,Yr.jsx)(O,{color:Pn,children:"\u258C"}),m?null:(0,Yr.jsx)(O,{dimColor:!0,children:C("pickers.sessions.searchHint")}),(0,Yr.jsx)(O,{dimColor:!0,children:Qe?` ${Math.min(v+1,Qe)} / ${Qe}`:""})]}),(0,Yr.jsx)(rl,{rows:M,selected:v,height:N,width:we,empty:m?C("pickers.sessions.noMatch",{query:m}):C(c==="here"?"pickers.sessions.noneHere":"pickers.sessions.none"),renderItem:(Me,{selected:Ee,width:ze})=>{let ce=Me.session,ae=ce.repoPath!==e.repoPath,ie=ad([ce.id===e.currentId?C("pickers.sessions.current"):"",iy(ce.updatedAt),ae||c==="all"?vU(ce):"",ce.model||""],sd(ze)),{left:ne,gap:ee}=ld(ce.title||C("pickers.sessions.untitled"),ie,ze);return(0,Yr.jsxs)(O,{children:[nl(ne,Me.positions).map((Se,Je)=>(0,Yr.jsx)(O,{bold:Ee||Se.hit,color:Se.hit?Pn:void 0,children:Se.text},Je)),(0,Yr.jsxs)(O,{dimColor:!0,children:[ee,ie]})]})}}),(0,Yr.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("pickers.sessions.footer")})]})}var ll,Yr,vU,PY,JY,cS=L(async()=>{"use strict";ll=He(Mt(),1);await Er();Xt();rd();Mu();await Wf();Yr=He(Qn(),1);i(iy,"relativeTime");i(qY,"shortDate");vU=i(e=>e.repoName||YY.basename(e.repoPath||"")||C("pickers.sessions.noFolder"),"folderOf"),PY=[{id:"today",label:i(()=>C("pickers.sessions.today"),"label")},{id:"yesterday",label:i(()=>C("pickers.sessions.yesterday"),"label")},{id:"week",label:i(()=>C("pickers.sessions.thisWeek"),"label")},{id:"older",label:i(()=>C("pickers.sessions.older"),"label")}];i(SU,"sessionRows");JY=12;i(QU,"SessionsPicker")});function bU(e,o){let r=e.replace(/\/+$/,""),c=encodeURIComponent(o.sessionId);return o.source==="cloud"?`${r}/code/cloud/${c}`:`${r}/code/s/${c}?device_id=${encodeURIComponent(o.deviceId)}`}var RU=L(()=>{"use strict";i(bU,"codeSessionUrl")});import{randomUUID as jY}from"node:crypto";function Ad(e){return bU(Vi.webAppUrl,{source:"cloud",sessionId:e})}function ZY(e,o){if(o.model){let c=o.model.toLowerCase();return e.find(u=>u.model.toLowerCase()===c&&(!o.provider||u.provider===o.provider))??(o.provider?{provider:o.provider,model:o.model,credential:"key"}:void 0)}let r=e.filter(c=>!o.provider||c.provider===o.provider);return r.find(c=>c.recommended)??r[0]}function wU(e){if(!e?.activity)return null;try{let o=JSON.parse(e.activity);if(!o||typeof o!="object")return null;let{step:r,name:c,path:u}=o;return{...typeof r=="number"?{step:r}:{},...typeof c=="string"?{name:c}:{},...typeof u=="string"?{path:u}:{}}}catch{return null}}async function uS(e,o,r={}){let c=await e.command("cloud.readiness",{repoPath:o.repoPath});if(r.onReadiness?.(c),!c.ok)throw new xc(c.blocker??"error",c.message??c.blocker??"error");let u=await e.command("cloud.models",void 0),f=u.ok?u.data.models:[],m=ZY(f,{model:o.model,provider:o.provider});if(!m)throw new xc(u.ok?"NO_CLOUD_MODEL":u.code,u.ok?"no model is available for cloud runs on this account":u.error);let E=jY().replace(/-/g,""),S=e.on(N=>{N.event==="cloud.progress"&&N.progress.requestId===E&&r.onProgress?.(N.progress)}),v;try{v=await e.command("cloud.start",{repoPath:o.repoPath,projectPath:o.repoPath,prompt:o.prompt,requestId:E,provider:m.provider,model:m.model,harness:"native",...o.accessMode?{accessMode:o.accessMode}:{},...o.finish?{finish:o.finish}:{},...o.localSessionId?{localSessionId:o.localSessionId}:{}})}finally{S()}if(!v.ok)throw new xc(v.code,v.error);let R=Ad(v.sessionId);return r.onStarted?.({sessionId:v.sessionId,url:R,model:m,branch:v.branch,bytes:v.bytes}),o.detach?{sessionId:v.sessionId,url:R,status:"detached",task:null,finish:null}:ay(e,v.sessionId,r,o.signal)}async function ay(e,o,r={},c){let u=Ad(o),f=new Set,m=!0,E="",S=0,v=null;for(;!c?.aborted;){let N=null,b=await e.command("cloud.get",{id:o}).catch(M=>{let _=M;return{ok:!1,code:_?.code??"NETWORK",error:_?.message??String(M)}});if(b.ok)S=0,N=b.data;else if(++S>=XY)throw new xc(b.code,b.error);if(N){v=N.task??N.session.task;let M=v?Date.parse(v.created_at):0;for(let _ of N.messages)f.has(_.id)||(f.add(_.id),!(m&&Date.parse(_.created_at)<M)&&_.role==="assistant"&&_.content.trim()&&r.onMessage?.(_));if(m=!1,v){let _=`${v.status}:${v.activity??""}`;if(_!==E&&(E=_,r.onStatus?.(v)),ud.has(v.status))break}}await WY(VY,c)}if(c?.aborted||!v||!ud.has(v.status))return{sessionId:o,url:u,status:"detached",task:v,finish:null};let R=null;return v.status==="done"&&(r.onFinishing?.(),R=await e.command("cloud.finish",{sessionId:o}).catch(()=>null),r.onFinished?.(R)),{sessionId:o,url:u,status:v.status,task:v,finish:R}}var ud,VY,XY,xc,WY,AS=L(()=>{"use strict";Nf();RU();ud=new Set(["done","error","cancelled"]),VY=2500,XY=8;i(Ad,"cloudSessionUrl");xc=class extends Error{constructor(r,c){super(c);this.code=r}code;static{i(this,"CloudError")}};i(ZY,"pickCloudModel");i(wU,"taskActivity");WY=i((e,o)=>new Promise(r=>{let c=setTimeout(r,e);o?.addEventListener("abort",()=>{clearTimeout(c),r()},{once:!0})}),"sleep");i(uS,"runInCloud");i(ay,"followCloudSession")});var xU=L(()=>{"use strict"});var $Y,FR,DU=L(()=>{"use strict";$Y=["gmail_","calendar_","meet_","tasks_","drive_"],FR=i(e=>$Y.some(o=>e.startsWith(o)),"isGoogleToolName")});function TU(e){if(typeof e=="string"){let o=e.trim();if(o.startsWith("["))try{let r=JSON.parse(o);if(Array.isArray(r))return r.filter(c=>typeof c=="string")}catch{}return[e]}return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}function e7(e){let o=e??{},r=[...TU(o.path),...TU(o.paths)].map(c=>c.trim()).filter(Boolean);return[...new Set(r)]}function _U(e){return e7(e).join(", ")}function NU(e){return e?e.split(",").map(o=>o.trim()).filter(Boolean):[]}var zR=L(()=>{"use strict";i(TU,"collectPaths");i(e7,"readPathsOf");i(_U,"readFileDetailOf");i(NU,"pathsFromReadDetail")});function OU(e){let o=e.indexOf("__");return o>0?e.slice(o+2):null}function r7(e){return MU.has(e)||!!OU(e)||FR(e)}function i7(e,o){if(e==="call_connector_tool"){let r=o?.tool;return typeof r=="string"&&r.trim()?r:null}return FR(e)?e:OU(e)}function KR(e,o){if(e)for(let r of o){let c=e[r];if(typeof c=="string"&&c.trim())return c;if(Array.isArray(c)&&typeof c[0]=="string"&&c[0].trim())return c[0]}}function kU(e,o){if(e==="call_connector_tool"){let r=o?.arguments;return r&&typeof r=="object"?r:void 0}return o&&typeof o=="object"?o:void 0}function a7(e){return e.name==="search_connector_tools"?e.args?.query:KR(kU(e.name,e.args),[...HU,...PR])}function l7(e){if(!e)return 0;for(let o of PR){let r=e[o];if(Array.isArray(r))return Math.max(0,r.filter(c=>typeof c=="string").length-1)}return 0}function dS(e,o=0){let r=e;if(YR(e))try{r=new URL(e).hostname.replace(/^www\./,"")}catch{r=e}return o>0?`${r} +${o}`:r}function fS(e){try{let o=new URL(e);return o.protocol==="https:"?o.hostname.replace(/^www\./,""):""}catch{return""}}function c7(e,o,r,c){if(e==="search_connector_tools"){let v=a7({name:e,args:o})??r;return v?{key:"connectorFind",params:{query:v}}:{key:"connectorTools",params:{}}}if(e==="get_connector_tool_schema"){let v=o?.tool??c??r;return{key:"connectorInspect",params:{name:typeof v=="string"&&v?qR(v):"connector"}}}let u=i7(e,o)??c??"",f=kU(e,o),m=KR(f,HU)??(r&&!YR(r)?r:void 0),E=KR(f,PR)??(r&&YR(r)?r:void 0),S=E?dS(E,l7(f)):void 0;return u&&/search/i.test(u)&&m?{key:"connectorSearch",params:{query:m}}:u&&/fetch|crawl|scrape|read|content|open/i.test(u)&&S?{key:"connectorFetch",params:{url:S}}:m?{key:"connectorSearch",params:{query:m}}:S?{key:"connectorFetch",params:{url:S}}:{key:"connectorCall",params:{name:u?qR(u):"connector"}}}function dd(e,o){let r=o.status==="running"?"running":"done";if(r7(o.name)){let{key:u,params:f}=c7(o.name,o.args,o.detail,o.tool);return e(`toolSteps.${u}.${r}`,f)}let c=UU[o.name];if(c){let u=o.args!==void 0?String(c.fromArgs(o.args&&typeof o.args=="object"?o.args:{})??""):n7.has(o.name)?fS(o.detail??""):o.detail;if(u!==void 0){let f=c.param==="count"?Number(u)||0:u;return e(`toolSteps.${c.key}.${r}`,{[c.param]:f})}}return o.label?o.label:e(`toolSteps.generic.${r}`,{name:qR(o.name)})}var t7,tg,n7,o7,sy,MU,HU,PR,ke,UU,YR,s7,qR,Uae,fd=L(()=>{"use strict";xU();DU();zR();t7=i(e=>e.match(/\*\*\* (?:Add|Update|Delete) File: (.+)/)?.[1].trim(),"firstPatchPath"),tg=new Set(["update_todos","ask_user","present_plan","show_map","show_recipe","show_images","convert_value","suggest_hint","resume_later","tell_user","create_artifact","update_artifact"]),n7=new Set(["browser_visit","browser_open_result","browser_open_link"]),o7=new Set(["memory","project_memory"]),sy=new Set(["read_file","list_directory","find_files","search_text","load_skill","read_skill_file"]),MU=new Set(["search_connector_tools","get_connector_tool_schema","call_connector_tool"]);i(OU,"connectorToolName");i(r7,"isConnectorStep");i(i7,"connectorInnerToolOf");HU=["query","q","search","text","prompt","question"],PR=["url","urls","link","links","id","ids"];i(KR,"pickString");i(kU,"connectorArgsOf");i(a7,"connectorQueryOf");ke=i(e=>typeof e=="string"?e:"","str"),UU={read_file:{key:"readFile",param:"path",fromArgs:i(e=>_U(e),"fromArgs")},list_directory:{key:"listDir",param:"path",fromArgs:i(e=>ke(e.path)||"/","fromArgs")},write_file:{key:"writeFile",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},publish_file:{key:"publishFile",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},edit_file:{key:"editFile",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},apply_patch:{key:"applyPatch",param:"path",fromArgs:i(e=>t7(ke(e.input))??"","fromArgs")},delete_file:{key:"deleteFile",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},cleanup_temp_files:{key:"cleanup",param:"count",fromArgs:i(e=>Array.isArray(e.paths)?e.paths.length:0,"fromArgs")},load_skill:{key:"loadSkill",param:"name",fromArgs:i(e=>ke(e.name),"fromArgs")},read_artifact:{key:"readArtifact",param:"name",fromArgs:i(e=>ke(e.id),"fromArgs")},read_skill_file:{key:"readSkillFile",param:"path",fromArgs:i(e=>[ke(e.skill),ke(e.path)].filter(Boolean).join("/"),"fromArgs")},run_node:{key:"runScript",param:"name",fromArgs:i(e=>ke(e.name)||"script","fromArgs")},rerun_script:{key:"rerunScript",param:"path",fromArgs:i(e=>ke(e.script_path),"fromArgs")},document_inventory:{key:"documentInventory",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},unpack_document:{key:"unpackDocument",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},pack_document:{key:"packDocument",param:"path",fromArgs:i(e=>ke(e.out_path)||ke(e.dir),"fromArgs")},add_slide:{key:"addSlide",param:"name",fromArgs:i(e=>ke(e.source),"fromArgs")},read_sheet:{key:"readSheet",param:"path",fromArgs:i(e=>[ke(e.path),ke(e.range)].filter(Boolean).join(" "),"fromArgs")},edit_cells:{key:"editCells",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},add_sheet:{key:"addSheet",param:"name",fromArgs:i(e=>[ke(e.name),ke(e.path)].filter(Boolean).join(" \u2192 "),"fromArgs")},render_document:{key:"renderDocument",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},recalc_sheet:{key:"recalcSheet",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},disk_cleanup:{key:"diskCleanup",param:"name",fromArgs:i(()=>"","fromArgs")},read_document:{key:"readDocument",param:"path",fromArgs:i(e=>[ke(e.path),ke(e.blocks)?`blocks ${ke(e.blocks)}`:ke(e.show)].filter(Boolean).join(" "),"fromArgs")},edit_document:{key:"editDocument",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},read_slide:{key:"readSlide",param:"path",fromArgs:i(e=>[ke(e.path),e.slide!==void 0?`#${ke(e.slide)}`:""].filter(Boolean).join(" "),"fromArgs")},edit_slide:{key:"editSlide",param:"path",fromArgs:i(e=>[ke(e.path),e.slide!==void 0?`#${ke(e.slide)}`:""].filter(Boolean).join(" "),"fromArgs")},find_cells:{key:"findCells",param:"query",fromArgs:i(e=>ke(e.query)||(e.errors_only?"errors":ke(e.path)),"fromArgs")},aggregate_range:{key:"aggregateRange",param:"path",fromArgs:i(e=>[ke(e.path),ke(e.range)].filter(Boolean).join(" "),"fromArgs")},trace_formula:{key:"traceFormula",param:"path",fromArgs:i(e=>[ke(e.path),ke(e.cell)].filter(Boolean).join(" "),"fromArgs")},read_pdf:{key:"readPdf",param:"path",fromArgs:i(e=>[ke(e.path),ke(e.search)?`"${ke(e.search)}"`:ke(e.pages)||ke(e.show)].filter(Boolean).join(" "),"fromArgs")},edit_pdf:{key:"editPdf",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},merge_pdfs:{key:"mergePdfs",param:"path",fromArgs:i(e=>ke(e.out_path),"fromArgs")},split_pdf:{key:"splitPdf",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},file_versions:{key:"fileVersions",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},restore_file_version:{key:"restoreFileVersion",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},web_search:{key:"webSearch",param:"query",fromArgs:i(e=>ke(e.query),"fromArgs")},browser_search:{key:"browserSearch",param:"query",fromArgs:i(e=>ke(e.query).slice(0,200),"fromArgs")},browser_visit:{key:"browserVisit",param:"query",fromArgs:i(e=>fS(ke(e.url)),"fromArgs")},browser_observe_page:{key:"browserObservePage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_open_result:{key:"browserOpenResult",param:"query",fromArgs:i(e=>fS(ke(e.url)),"fromArgs")},browser_open_link:{key:"browserOpenLink",param:"query",fromArgs:i(e=>fS(ke(e.url)),"fromArgs")},browser_scroll_page:{key:"browserScrollPage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_request_takeover:{key:"browserRequestTakeover",param:"name",fromArgs:i(()=>"","fromArgs")},read_tool_result:{key:"readResult",param:"name",fromArgs:i(e=>ke(e.id).slice(0,8),"fromArgs")},fetch_url:{key:"fetchUrl",param:"query",fromArgs:i(e=>dS(ke(e.url)),"fromArgs")},capture_page:{key:"capturePage",param:"query",fromArgs:i(e=>dS(ke(e.url)),"fromArgs")},browser_navigate:{key:"browserNavigate",param:"query",fromArgs:i(e=>dS(ke(e.url))||ke(e.direction),"fromArgs")},browser_read_page:{key:"browserReadPage",param:"name",fromArgs:i(()=>"","fromArgs")},browser_find:{key:"browserFind",param:"query",fromArgs:i(e=>ke(e.query).slice(0,60),"fromArgs")},browser_batch:{key:"browserBatch",param:"query",fromArgs:i(e=>Array.isArray(e.actions)?String(e.actions.length):"","fromArgs")},browser_click:{key:"browserClick",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_hover:{key:"browserHover",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_drag:{key:"browserDrag",param:"name",fromArgs:i(e=>typeof e.ref=="number"&&typeof e.to_ref=="number"?`[${e.ref}] \u2192 [${e.to_ref}]`:"","fromArgs")},browser_type:{key:"browserType",param:"name",fromArgs:i(e=>e.secret===!0?"\u2022\u2022\u2022\u2022\u2022\u2022":ke(e.text).slice(0,60),"fromArgs")},browser_generate_password:{key:"browserGeneratePassword",param:"name",fromArgs:i(()=>"","fromArgs")},browser_press:{key:"browserPress",param:"name",fromArgs:i(e=>ke(e.key),"fromArgs")},browser_scroll:{key:"browserScroll",param:"name",fromArgs:i(e=>ke(e.direction),"fromArgs")},browser_tabs:{key:"browserTabs",param:"name",fromArgs:i(e=>ke(e.action),"fromArgs")},browser_devtools:{key:"browserDevtools",param:"name",fromArgs:i(e=>ke(e.read)==="network"?"network":"console","fromArgs")},browser_eval:{key:"browserEval",param:"name",fromArgs:i(e=>ke(e.expression).slice(0,60),"fromArgs")},browser_resize:{key:"browserResize",param:"name",fromArgs:i(e=>ke(e.device)||"mobile","fromArgs")},browser_handoff:{key:"browserHandoff",param:"name",fromArgs:i(e=>ke(e.reason).slice(0,60),"fromArgs")},browser_screenshot:{key:"browserScreenshot",param:"name",fromArgs:i(()=>"","fromArgs")},browser_download:{key:"browserDownload",param:"name",fromArgs:i(e=>typeof e.ref=="number"?`[${e.ref}]`:"","fromArgs")},browser_upload:{key:"browserUpload",param:"path",fromArgs:i(e=>ke(e.path)||(Array.isArray(e.paths)?String(e.paths.length):""),"fromArgs")},video_frames:{key:"videoFrames",param:"path",fromArgs:i(e=>ke(e.path),"fromArgs")},simulator_control:{key:"simulatorControl",param:"query",fromArgs:i(e=>ke(e.action),"fromArgs")},computer:{key:"computerUse",param:"name",fromArgs:i(e=>ke(e.app),"fromArgs")},computer_apps:{key:"computerApps",param:"name",fromArgs:i(e=>ke(e.query),"fromArgs")},computer_request_access:{key:"computerAccess",param:"name",fromArgs:i(e=>Array.isArray(e.apps)?e.apps.map(String).join(", "):"","fromArgs")},computer_handoff:{key:"computerHandoff",param:"name",fromArgs:i(e=>ke(e.app),"fromArgs")},simulator_build:{key:"simulatorBuild",param:"query",fromArgs:i(e=>ke(e.scheme),"fromArgs")},convert_media:{key:"convertMedia",param:"path",fromArgs:i(e=>ke(e.output)||ke(e.input),"fromArgs")},find_files:{key:"findFiles",param:"query",fromArgs:i(e=>ke(e.query),"fromArgs")},search_text:{key:"searchText",param:"query",fromArgs:i(e=>ke(e.query),"fromArgs")},workspace_search:{key:"searchText",param:"query",fromArgs:i(e=>ke(e.query),"fromArgs")},run_command:{key:"runCommand",param:"command",fromArgs:i(e=>ke(e.command),"fromArgs")},wait_for:{key:"waitFor",param:"command",fromArgs:i(e=>ke(e.command),"fromArgs")},start_process:{key:"startProcess",param:"command",fromArgs:i(e=>ke(e.command),"fromArgs")},monitor_process:{key:"monitorProcess",param:"name",fromArgs:i(e=>ke(e.description),"fromArgs")},cron_create:{key:"scheduleCheck",param:"name",fromArgs:i(e=>ke(e.prompt),"fromArgs")},cron_list:{key:"listChecks",param:"name",fromArgs:i(()=>"","fromArgs")},cron_delete:{key:"cancelCheck",param:"name",fromArgs:i(e=>ke(e.id),"fromArgs")},write_stdin:{key:"writeStdin",param:"name",fromArgs:i(e=>ke(e.id),"fromArgs")},poll_process:{key:"pollProcess",param:"name",fromArgs:i(e=>ke(e.id),"fromArgs")},kill_process:{key:"killProcess",param:"name",fromArgs:i(e=>ke(e.id),"fromArgs")},github:{key:"github",param:"command",fromArgs:i(e=>Array.isArray(e.args)?e.args.map(o=>String(o)).join(" "):"","fromArgs")},gitlab:{key:"gitlab",param:"command",fromArgs:i(e=>Array.isArray(e.args)?e.args.map(o=>String(o)).join(" "):"","fromArgs")},library:{key:"library",param:"query",fromArgs:i(e=>ke(e.query)||ke(e.file_id)||ke(e.action),"fromArgs")},library_upload:{key:"libraryUpload",param:"path",fromArgs:i(e=>ke(e.name)||ke(e.path),"fromArgs")},manage_routines:{key:"manageRoutines",param:"name",fromArgs:i(e=>ke(e.name)||ke(e.action),"fromArgs")},read_history:{key:"readHistory",param:"name",fromArgs:i(e=>ke(e.query)||ke(e.id),"fromArgs")},check_context:{key:"checkContext",param:"name",fromArgs:i(()=>"","fromArgs")},new_context:{key:"newContext",param:"name",fromArgs:i(()=>"","fromArgs")},request_permissions:{key:"requestPermissions",param:"name",fromArgs:i(e=>{let o=Array.isArray(e.write)?e.write.filter(r=>typeof r=="string"):[];return o.length?o.join(", "):e.network===!0?"network":""},"fromArgs")},tell_user:{key:"tellUser",param:"name",fromArgs:i(e=>ke(e.message),"fromArgs")},git_push:{key:"gitPush",param:"name",fromArgs:i(()=>"","fromArgs")},create_pr:{key:"createPr",param:"name",fromArgs:i(e=>ke(e.title),"fromArgs")},run_applescript:{key:"runAppleScript",param:"name",fromArgs:i(e=>ke(e.summary),"fromArgs")},memory:{key:"memory",param:"name",fromArgs:i(e=>ke(e.action)||"update","fromArgs")},project_memory:{key:"memory",param:"name",fromArgs:i(e=>ke(e.action)||"update","fromArgs")},delegate_task:{key:"delegate",param:"count",fromArgs:i(e=>Array.isArray(e.tasks)?e.tasks.length:1,"fromArgs")},send_to_agent:{key:"sendToAgent",param:"name",fromArgs:i(e=>ke(e.agent_id),"fromArgs")},get_extra_tool_schema:{key:"extraToolInspect",param:"name",fromArgs:i(e=>ke(e.name)||"tool","fromArgs")},use_extra_tool:{key:"extraToolCall",param:"name",fromArgs:i(e=>ke(e.name)||"tool","fromArgs")},generate_image:{key:"generateImage",param:"query",fromArgs:i(e=>ke(e.prompt)||"image","fromArgs")},code_mode:{key:"codeMode",param:"count",fromArgs:i(e=>ke(e.js).split(`
|
|
325
|
+
`).filter(o=>o.trim()).length||1,"fromArgs")}},YR=i(e=>/^[a-z][a-z0-9+.-]*:\/\//i.test(e),"looksLikeUrl"),s7=i(e=>e.replace(/[-_]+/g," ").trim(),"prettyToolTitle"),qR=s7;i(l7,"extraUrlCount");i(dS,"displayUrl");i(fS,"browserSite");i(c7,"connectorStep");Uae=new Set([...Object.keys(UU),...tg,...o7,...sy,...MU,"app_browser","ask_user","check_context","code_mode","delegate_task","generate_image","get_extra_tool_schema","git_push","create_pr","new_context","read_history","request_permissions","run_applescript","send_to_agent","use_extra_tool"]);i(dd,"toolStepLabel")});function LU(e,o){let r=e??[];switch(o.kind){case"spawned":return r.some(c=>c.id===o.id)?r:[...r,{id:o.id,goal:o.goal,index:o.index,total:o.total,status:"running",toolCount:0,...o.model?{model:o.model}:{}}];case"tool":return r.map(c=>c.id===o.id?{...c,toolCount:c.toolCount+1,currentAction:{name:o.name,detail:o.detail}}:c);case"completed":return r.map(c=>c.id===o.id?{...c,status:o.status,toolCount:o.toolCount,currentAction:void 0,summary:o.summary,error:o.error,usage:o.usage}:c);default:return r}}var GU=L(()=>{"use strict";i(LU,"foldSubagentEvent")});function pS(e,o,r,c){let u=LU(e,o);return u===e?e:u.map(f=>f.id!==o.id?f:e.find(E=>E.id===f.id)?o.kind==="completed"?{...f,endedAt:f.endedAt??r}:f:{...f,startedAt:r,...c?{owner:c}:{awaitingOwner:!0}})}function zU(e,o){return e.some(r=>r.awaitingOwner)?e.map(r=>{if(!r.awaitingOwner)return r;let{awaitingOwner:c,...u}=r;return{...u,owner:o}}):e}function A7(e){let o=e.currentAction;return o?dd(u7,{name:o.name,detail:o.detail,status:"running"}):C("subagents.thinking")}function gs(e,o){if(o<=0)return"";if(Ot(e)<=o)return e;let r="";for(let c of e){if(Ot(r+c)>o-1)break;r+=c}return`${r}\u2026`}function gS(e){return(e??"").split(`
|
|
326
|
+
`).map(o=>o.trim()).find(Boolean)?.replace(/^#+\s*/,"")??""}function KU(e,o){if(e.backgrounded)return Ln("\u21BB");switch(e.status){case"running":return qt(o);case"completed":return Bt("\u2713");case"failed":return St("\u2715");default:return Zs("\u25A0")}}function FU(e,o){let r=[C("cards.helpers.toolUses",{count:e.toolCount})],c=e.usage?.total;return c&&r.push(C("cards.helpers.tokens",{tokens:Uu(c)})),e.startedAt!==void 0&&r.push(wc(e.startedAt,e.endedAt??o)),r.join(" \xB7 ")}function YU(e,o,r){let c=Math.max(8,o-6);if(e.backgrounded)return le(gs(C("subagents.backgrounded"),c));switch(e.status){case"running":return le(gs(`${A7(e)} \xB7 ${FU(e,r)}`,c));case"completed":{let u=`${C("cards.helpers.done")} \xB7 ${FU(e,r)}`,f=gS(e.summary),m=f?`${u} \u2014 ${f}`:u;return le(gs(m,c))}case"failed":return St(gs(C("cards.helpers.failed",{error:gS(e.error)||"\u2014"}),c));default:return le(gs(C("cards.helpers.stopped"),c))}}function d7(e,o){let r=o.now??Date.now(),c=o.frame??"\u273B",u=Math.max(8,o.width-4);return[...e].sort((f,m)=>(f.startedAt??0)-(m.startedAt??0)||f.index-m.index).flatMap(f=>{let m=f.model?` \xB7 ${f.model}`:"",E=gs(gS(f.goal)||f.goal,Math.max(8,u-Ot(m)));return[` ${KU(f,c)} ${f.status==="running"?ht(E):E}${m?Tn(m):""}`,` ${Tn(Hu)} ${YU(f,o.width,r)}`]}).join(`
|
|
327
|
+
`)}function f7(e){let o=e.filter(r=>r.status!=="running"||r.backgrounded).length;return o<e.length?C("cards.helpers.progress",{done:o,total:e.length}):""}function Tc(e,o){if(!e.length&&!o.label)return"";let r=o.state??(e.some(E=>E.status==="running"&&!E.backgrounded)?"running":"done"),c=r==="running"?qt(ya):r==="error"?St(ya):Bt(ya),u=o.label??C("cards.helpers.background",{count:e.length}),f=f7(e),m=`${c} ${ht(u)}${f?le(` \xB7 ${f}`):""}`;return e.length?`${m}
|
|
328
|
+
${d7(e,o)}`:m}function ly(e,o){return e.map(r=>r.status==="running"?{...r,backgrounded:!0,endedAt:o}:r)}function qU(e,o,r=100){let c=e.find(f=>f.id===o.id);if(!c)return null;let u=`[${c.index}/${c.total}]`;return o.kind==="spawned"?` ${qt("\u21B3")} ${le(u)} ${gs(gS(c.goal)||c.goal,Math.max(8,r-10))}`:o.kind==="completed"?` ${KU(c,"\u273B")} ${le(u)} ${YU(c,r,c.endedAt??Date.now())}`:null}var Dc,u7,ng=L(()=>{"use strict";Ca();GU();fd();Xt();vo();al();Dc=new Set(["delegate_task","send_to_agent"]);i(pS,"foldHelperEvent");i(zU,"adoptWaitingHelpers");u7=i((e,o)=>C(e,o),"desktopT");i(A7,"helperAction");i(gs,"fitWidth");i(gS,"firstLine");i(KU,"glyph");i(FU,"stats");i(YU,"detailLine");i(d7,"helperRowsBlock");i(f7,"progress");i(Tc,"helperCell");i(ly,"backgroundRemaining");i(qU,"helperEventLine")});function JR(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} B`}function mS(e,o="\u273B"){let r=C(p7[e??""]??"cloud.status.idle");switch(e){case"running":case"queued":case"scheduled":return qt(`${o} ${r}`);case"awaiting_user":return Cn(`\u25C6 ${r}`);case"done":return Bt(`\u2713 ${r}`);case"error":return St(`\u2715 ${r}`);case"cancelled":return Zs(`\u25A0 ${r}`);default:return Tn(`\u25CB ${r}`)}}function PU(e,o){let r=e.repositories[0]?.full_name??e.handoff?.name??"",c=` ${mS(e.task?.status)} ${ht(gs(e.title||"\u2014",Math.max(10,o.width-18)))}`,u=[r,o.age].filter(Boolean).join(" \xB7 ");return[c,` ${le(gs(`${u} ${e.id}`,Math.max(10,o.width-4)))}`]}function hS(e,o){let r=[`${qt(Pa)} ${ht(C("cloud.run.moving",{name:e.name}))}`],c=e.kind==="folder"?C("cloud.run.folder",{count:e.files}):C("cloud.run.repository",{branch:e.branch??"\u2014",changes:C("cloud.run.changes",{count:e.changes.staged+e.changes.unstaged+e.changes.untracked}),history:e.history==="snapshot"?C("cloud.run.historySnapshot"):`${C("cloud.run.historyFull")}${e.historyBytes?` (${JR(e.historyBytes)})`:""}`});if(r.push(` ${Tn(Hu)} ${le(c)}`),o){let u=o.credential==="pool"?C("cloud.run.modelPlan",{model:o.label??o.model}):C("cloud.run.modelKey",{model:o.label??o.model,provider:o.provider});r.push(` ${le(u)}`)}return e.skipped.secretLike.length&&r.push(` ${Cn(C("cloud.run.skippedSecrets",{files:e.skipped.secretLike.slice(0,5).join(", ")}))}`),r}function cy(e){let o=e.stage==="uploading"&&e.total?C("cloud.stage.uploading",{loaded:JR(e.loaded??0),total:JR(e.total)}):C(`cloud.stage.${e.stage}`);return` ${Tn(Hu)} ${le(o)}`}function $m(e,o="\u273B",r=Date.now()){let c=wU(e),u=[C("cloud.follow.working")];c?.step&&u.push(C("cloud.follow.step",{step:c.step})),c?.name&&u.push(dd(g7,{name:c.name,detail:c.path,status:"running"}));let f=Date.parse(e.started_at??e.created_at);Number.isFinite(f)&&u.push(wc(f,r));let m=e.tokens_in+e.tokens_out;m&&u.push(C("app.run.tokens",{tokens:Uu(m)}));let E=u.slice(1);return`${qt(o)} ${Zs(u[0])}${E.length?` ${le(`\xB7 ${E.join(" \xB7 ")}`)}`:""}`}function uy(e){let o=Date.parse(e.started_at??e.created_at),r=Date.parse(e.finished_at??e.updated_at),c=Number.isFinite(o)&&Number.isFinite(r)?wc(o,r):"";if(e.status==="done"){let u=e.tokens_in+e.tokens_out;return le(`${Bt("\u2713")} ${C("cloud.follow.done",{elapsed:c})}${u?` \xB7 ${C("app.run.tokens",{tokens:Uu(u)})}`:""}`)}return e.status==="cancelled"?le(`\u25A0 ${C("cloud.follow.stopped")}`):`${St("\u2715")} ${C("cloud.follow.failed",{error:e.error??e.status})}`}function eh(e,o){if(!e)return[le(C("cloud.finish.none"))];if(e.status==="unchanged")return[le(C("cloud.finish.unchanged"))];if(e.status==="skipped")return[le(e.code==="PUBLISHED_FROM_CLOUD"?C("cloud.finish.fromCloud"):C("cloud.finish.none"))];if(e.status==="failed")return[`${St("\u2715")} ${C("cloud.finish.failed",{step:e.step??"bring-back",error:e.error??e.code??"\u2014"})}`,le(` ${C("cloud.finish.retry",{id:o})}`)];let r=[];return e.folder?(r.push(`${Bt(ya)} ${C("cloud.finish.folder",{count:e.folder.applied})}`),e.folder.conflicts.length&&r.push(` ${Cn(C("cloud.finish.conflicts",{files:e.folder.conflicts.slice(0,5).join(", ")}))}`)):e.branch&&r.push(`${Bt(ya)} ${C("cloud.finish.branch",{branch:Ln(e.branch),commits:e.commits??0})}`),e.pushed&&e.branch&&r.push(` ${le(C("cloud.finish.pushed",{branch:e.branch,remote:e.pushed.remote}))}`),e.pullRequest?r.push(` ${C("cloud.finish.pullRequest",{url:Ln(e.pullRequest.url)})}`):e.openUrl&&r.push(` ${C("cloud.finish.openForm",{url:Ln(e.openUrl)})}`),r}function ES(e,o){let{session:r,messages:c}=e,u=e.task??r.task,f=[`${qt(Pa)} ${ht(r.title||"\u2014")}${u?` ${mS(u.status)}`:""}
|
|
329
|
+
${Ln(Ad(r.id))}`];for(let m of c)!m.content.trim()||m.role==="system"||f.push(m.role==="user"?m.content.split(`
|
|
330
|
+
`).map(E=>`${Tn("\u276F")} ${Zs(E)}`).join(`
|
|
331
|
+
`):sl(m.content.trimEnd(),o));return u&&ud.has(u.status)&&f.push(uy(u)),f}var g7,p7,CS=L(()=>{"use strict";fd();Xt();vo();al();ng();Wm();AS();g7=i((e,o)=>C(e,o),"desktopT");i(JR,"bytes");p7={queued:"cloud.status.queued",scheduled:"cloud.status.scheduled",running:"cloud.status.running",awaiting_user:"cloud.status.awaiting_user",done:"cloud.status.done",error:"cloud.status.error",cancelled:"cloud.status.cancelled"};i(mS,"statusMark");i(PU,"sessionLines");i(hS,"readinessLines");i(cy,"progressLine");i($m,"taskLine");i(uy,"settledLine");i(eh,"finishLines");i(ES,"sessionTranscript")});var jU={};gi(jU,{runCloud:()=>B7});function th(e){let o=e;return o?.code==="unknown-command"?C("cloud.olderEngine"):o?.code==="signed-out"||o?.code==="SIGNED_OUT"?C("cloud.signedOut"):o?.code==="NO_CLOUD_MODEL"?C("cloud.noModel"):e instanceof xc&&["not-a-repo","git-missing","git-license","sha256-repo","too-large","busy"].includes(e.code)?C("cloud.blocked",{reason:e.message}):o?.message??String(e)}async function m7(e){return!!(await e.command("account.state",void 0).catch(()=>null))?.signedIn}async function h7(e){let o=await e.command("cloud.sessions",void 0);if(!o.ok)return console.error(St(th({code:o.code,message:o.error}))),1;let r=o.data.sessions.filter(c=>!c.archived);if(!r.length)return console.log(le(C("cloud.list.empty"))),0;console.log(ht(C("cloud.list.title")));for(let c of r.slice(0,30))for(let u of PU(c,{width:jR(),age:iy(Date.parse(c.updated_at))}))console.log(u);return console.log(le(C("cloud.list.hint",{url:`${Vi.webAppUrl.replace(/\/+$/,"")}/code`}))),0}async function E7(e,o){let r=await e.command("cloud.get",{id:o});if(!r.ok)return console.error(St(r.code==="NOT_FOUND"?C("cloud.open.notFound",{id:o}):th({code:r.code,message:r.error}))),1;for(let u of ES(r.data,jR()))console.log(`${u}
|
|
332
|
+
`);let c=r.data.task??r.data.session.task;return c&&!["done","error","cancelled"].includes(c.status)&&console.log($m(c)),0}function JU(e=""){let o=!!process.stdout.isTTY,r=e,c="",u=0,f=null,m="",E="",S=i(()=>{o&&c&&process.stdout.write("\r\x1B[2K"),c=""},"clear"),v=i(()=>{if(!o)return;let b=E||(f&&!["done","error","cancelled","awaiting_user"].includes(f.status)?$m(f,ku[u++%ku.length]):"");b&&(S(),c=b,process.stdout.write(c.slice(0,2e3)))},"draw"),R=o?setInterval(v,250):null,N=i(b=>{S(),console.log(b),v()},"say");return{onReadiness:i(()=>{},"onReadiness"),onProgress:i(b=>{b.stage==="uploading"&&o?E=cy(b):E="",b.stage!==m&&(m=b.stage,(b.stage!=="uploading"||!o)&&N(cy(b))),v()},"onProgress"),onStarted:i(b=>{if(r=b.url,E){let _=E;E="",N(_)}let{branch:M}=b;N(`${Bt("\u2713")} ${C("cloud.run.started")}`),N(` ${Ln(r)}`),M&&N(le(` ${C("cloud.run.workBack",{branch:M})}`))},"onStarted"),onStatus:i(b=>{f=b,b.status==="awaiting_user"?N(Cn(C("cloud.follow.needsYou",{url:r}))):!o&&!["done","error","cancelled"].includes(b.status)?N($m(b)):["done","error","cancelled"].includes(b.status)?N(uy(b)):v()},"onStatus"),onMessage:i(b=>N(`
|
|
333
|
+
${sl(b.content.trimEnd(),jR())}
|
|
334
|
+
`),"onMessage"),onFinishing:i(()=>N(le(C("cloud.finish.working"))),"onFinishing"),stop:i(()=>{R&&clearInterval(R),S()},"stop")}}async function C7(e,o,r,c){let u=JU(),f=new AbortController,m=!1,E=i(()=>{m&&process.exit(130),m=!0,f.abort()},"onSigint");process.on("SIGINT",E);let S="";try{let v=await uS(e,{repoPath:r,prompt:c,model:o.model,provider:o.provider,accessMode:o.mode,finish:o.finish,detach:o.detach,signal:f.signal},{...u,onReadiness:i(R=>{for(let N of hS(R,void 0))console.log(N)},"onReadiness"),onStarted:i(R=>{S=R.sessionId,console.log(le(` ${R.model.credential==="pool"?C("cloud.run.modelPlan",{model:R.model.label??R.model.model}):C("cloud.run.modelKey",{model:R.model.label??R.model.model,provider:R.model.provider})}`)),u.onStarted?.(R)},"onStarted"),onFinished:i(R=>{for(let N of eh(R,S))console.log(N)},"onFinished")});return u.stop(),Zi(e,"cli_cloud_run",{status:v.status,detached:o.detach,via:"command"}),v.status==="detached"?(console.log(le(C("cloud.run.detached",{id:v.sessionId}))),m?130:0):v.status==="done"&&v.finish?.status!=="failed"?0:1}catch(v){return u.stop(),console.error(St(`\u2715 ${th(v)}`)),1}finally{process.off("SIGINT",E)}}async function y7(e,o){let r=JU(Ad(o)),c=new AbortController,u=i(()=>c.abort(),"onSigint");process.on("SIGINT",u);try{let f=await ay(e,o,{...r,onFinished:i(m=>{for(let E of eh(m,o))console.log(E)},"onFinished")},c.signal);return r.stop(),f.status==="detached"&&console.log(le(C("cloud.run.detached",{id:o}))),f.status==="done"||f.status==="detached"?0:1}catch(f){return r.stop(),console.error(St(`\u2715 ${th(f)}`)),1}finally{process.off("SIGINT",u)}}async function I7(e){let o=await e.command("cloud.models",void 0);if(!o.ok)return console.error(St(th({code:o.code,message:o.error}))),1;if(!o.data.models.length)return console.log(Cn(C("cloud.noModel"))),1;console.log(ht(C("cloud.models.title")));for(let r of o.data.models){let u=[r.credential==="pool"?C("cloud.models.plan"):C("cloud.models.key",{provider:r.provider}),r.recommended?C("cloud.models.recommended"):""].filter(Boolean).join(" \xB7 ");console.log(` ${qt("\u2022")} ${r.model}${r.label&&r.label!==r.model?` ${le(`(${r.label})`)}`:""} ${le(u)}`)}return console.log(le(C("cloud.models.hint"))),0}async function B7(e,o){let r=(e.task??"").trim(),[c="list",...u]=r?r.split(/\s+/):[],f=u.join(" ").trim();if(!["list","ls","run","open","show","follow","finish","cancel","models"].includes(c))return console.error(C("cloud.usage")),2;if(c==="run"&&!f)return console.error(C("cloud.needsTask")),2;if(["open","show","follow","finish","cancel"].includes(c)&&!f)return console.error(C("cloud.needsId",{action:c})),2;let E;try{E=await mr(()=>{},v=>console.error(le(C("cli.print.openedBrowser",{url:v}))))}catch(v){return console.error(C("cli.engineUnreachable",{message:v instanceof Error?v.message:String(v)})),1}let S=E.client;try{if(!await m7(S))return console.error(Cn(C("cloud.signedOut"))),1;switch(c){case"list":case"ls":return await h7(S);case"open":case"show":return await E7(S,f);case"follow":return await y7(S,f);case"run":return await C7(S,e,o,f);case"finish":{let v=await S.command("cloud.finish",{sessionId:f,retry:!0});for(let R of eh(v,f))console.log(R);return v&&v.status!=="failed"?0:1}case"cancel":{let v=await S.command("cloud.get",{id:f}),R=v.ok?v.data.task??v.data.session.task:null,N=R?await S.command("cloud.cancel",{taskId:R.id}):{ok:!1};return console.log(N.ok?C("cloud.cancelled"):St(C("cloud.cancelFailed"))),N.ok?0:1}case"models":return await I7(S);default:return 2}}catch(v){return console.error(St(`\u2715 ${th(v)}`)),1}finally{E.dispose()}}var jR,VU=L(async()=>{"use strict";Xs();Ou();Nf();Xt();vo();al();Wm();await cS();AS();CS();jR=i(()=>Math.max(40,Math.min(process.stdout.columns||100,110)),"width");i(th,"failureText");i(m7,"signedIn");i(h7,"listSessions");i(E7,"openSession");i(JU,"followPrinter");i(C7,"runTask");i(y7,"followExisting");i(I7,"listModels");i(B7,"runCloud")});var XU={};gi(XU,{runSessions:()=>v7});function S7(e){let o=Math.round((Date.now()-e)/1e3);return o<60?C("cli.sessions.justNow"):o<3600?C("cli.sessions.minutesAgo",{count:Math.floor(o/60)}):o<86400?C("cli.sessions.hoursAgo",{count:Math.floor(o/3600)}):C("cli.sessions.daysAgo",{count:Math.floor(o/86400)})}async function v7(e){let o;try{o=await mr(()=>{})}catch(r){return console.error(C("cli.engineUnreachable",{message:r instanceof Error?r.message:String(r)})),1}try{let c=(await o.client.command("session.list",void 0)).filter(u=>u.repoPath===e&&!u.archived);if(!c.length)return console.log(le(C("cli.sessions.none",{path:e}))),0;console.log(ht(C("cli.sessions.count",{count:c.length,path:e})));for(let u of c){let f=[u.accessMode,u.model||void 0,S7(u.updatedAt)].filter(Boolean).join(" \xB7 ");console.log(` ${qt("\u2022")} ${u.title} ${le(f)}`),console.log(` ${le(`--session ${u.id}`)}`)}return 0}finally{o.dispose()}}var ZU=L(()=>{"use strict";Xs();vo();Xt();i(S7,"relativeTime");i(v7,"runSessions")});import{randomUUID as WU}from"node:crypto";function VR(e){if(!e||typeof e!="object")return null;let o=e;return o.code!=="disconnected"&&o.code!=="timeout"?null:{code:o.code,message:typeof o.message=="string"?o.message:"Connection to the engine was interrupted"}}function Q7(e){if(e&&typeof e=="object"){let o=e;if(typeof o.code=="string"&&typeof o.message=="string")return{code:o.code,message:o.message,...typeof o.detail=="string"?{detail:o.detail}:{}}}return{code:"stream-failed",message:e instanceof Error?e.message:String(e)}}var yS,$U=L(()=>{"use strict";i(VR,"uncertainTransportError");i(Q7,"runError");yS=class{constructor(o,r,c=WU()){this.client=o;this.events=r;this.runId=c}client;events;static{i(this,"CodeRun")}runId;off=null;settled=!1;attaching=!1;resumeInFlight=null;startRetryParams=null;reconnectNeeded=!1;observedHostEvent=!1;attachBuffer=[];appliedSeq=0;shownPermissionIds=new Set;resolvedPermissionIds=new Set;shownQuestionIds=new Set;text="";reasoning="";changes=[];get lastSeenSeq(){return this.appliedSeq}get needsReconnect(){return this.reconnectNeeded}async start(o){this.off=this.client.on(c=>this.fold(c));let r={id:this.runId,conversationId:o.sessionId,harness:o.harness??"native",...o.harnessEpochId?{harnessEpochId:o.harnessEpochId}:{},task:o.task,repoPath:o.repoPath,contextDirs:[],branch:o.branch??null,model:o.model,providerId:o.providerId,effort:"medium",fast:!1,accessMode:o.accessMode,history:o.history,phase:o.phase??"agent",...o.plan?{plan:o.plan}:{},...o.forcedSubagentId?{forcedSubagentId:o.forcedSubagentId}:{}};try{await this.client.command("run.start",r)}catch(c){if(VR(c)){if(this.observedHostEvent)return;this.startRetryParams=r,this.reconnectNeeded=!0;return}throw this.settle(),c}}async attach(o=this.appliedSeq){if(this.off)throw new Error("run is already subscribed");if(this.settled)throw new Error("run has already settled");this.appliedSeq=o,this.shownPermissionIds.clear(),this.resolvedPermissionIds.clear(),this.shownQuestionIds.clear(),this.attaching=!0,this.attachBuffer=[],this.off=this.client.on(c=>this.fold(c));let r=!1;try{if(this.startRetryParams)try{await this.client.command("run.start",this.startRetryParams),this.startRetryParams=null}catch(f){throw VR(f)?(this.reconnectNeeded=!0,f):(this.settle(),this.events.onError?.(Q7(f)),f)}let c=await this.client.command("run.attach",{id:this.runId,afterSeq:o});r=!0;let u=!1;if(c.gap)if(c.checkpoint&&this.events.onCheckpoint)await this.events.onCheckpoint(c.checkpoint.message),this.text=c.checkpoint.message.content,this.reasoning=c.checkpoint.message.reasoning??"",this.changes.splice(0,this.changes.length,...(c.checkpoint.message.activity??[]).flatMap(f=>f.change?[f.change]:[])),this.appliedSeq=c.checkpoint.seq,u=!0;else if(this.events.onReplayGap)await this.events.onReplayGap(),this.appliedSeq=c.lastSeq,u=!0;else throw new Error("run replay window expired; reload the saved session before attaching");for(let f of c.events??[])this.apply(f);for(;this.attachBuffer.length;){let f=this.attachBuffer.splice(0).sort((m,E)=>m.seq-E.seq);for(let m of f)this.apply(m)}for(let f of c.pending?.permissions??[])this.shownPermissionIds.has(f.id)||this.resolvedPermissionIds.has(f.id)||(this.shownPermissionIds.add(f.id),this.events.onPermission?.(f));for(let f of c.pending?.questions??[])this.shownQuestionIds.has(f.id)||(this.shownQuestionIds.add(f.id),this.events.onQuestion?.(f));if(this.attaching=!1,this.reconnectNeeded=!1,!c.attached&&!this.settled){if(!u){if(!this.events.onReplayGap)throw new Error("run ended before attach; reload the saved session");await this.events.onReplayGap()}this.settle(),this.events.onDone?.()}return c}catch(c){throw this.attaching=!1,this.attachBuffer=[],this.off?.(),this.off=null,VR(c)&&(this.reconnectNeeded=!0),r&&!this.settled&&(this.settle(),this.events.onError?.({code:"replay-gap",message:c.message})),c}}async resume(o){if(this.resumeInFlight)return this.resumeInFlight;let r=(async()=>(this.off?.(),this.off=null,this.client=o,this.attach(this.appliedSeq)))();this.resumeInFlight=r;try{return await r}finally{this.resumeInFlight=null}}respondPermission(o,r){this.client.command("run.permission",{id:this.runId,permissionId:o,decision:r}).catch(()=>{})}respondQuestion(o,r){this.client.command("run.answer",{id:this.runId,questionId:o,answer:r}).catch(()=>{})}abort(){this.client.command("run.abort",{id:this.runId}).catch(()=>{})}connectionLost(){this.settled||(this.off?.(),this.off=null,this.reconnectNeeded=!0,this.events.onReconnectNeeded?.({code:"disconnected",message:"connection to the engine was lost"}))}giveUpConnection(){this.settled||(this.settle(),this.events.onError?.({code:"disconnected",message:"connection to the engine was lost"}))}assistantMessage(){return{id:WU(),role:"assistant",content:this.text,createdAt:Date.now(),...this.reasoning?{reasoning:this.reasoning}:{}}}settle(){this.settled||(this.settled=!0,this.off?.(),this.off=null)}fold(o){if((o.event==="run.event"||o.event==="run.done"||o.event==="run.error")&&o.id===this.runId){if(this.attaching){o.seq!==void 0&&this.attachBuffer.push(o);return}this.apply(o)}}apply(o){if(this.settled)return;if(this.observedHostEvent=!0,this.startRetryParams=null,this.reconnectNeeded=!1,o.seq!==void 0){if(o.seq<=this.appliedSeq)return;this.appliedSeq=o.seq}if(o.event==="run.done"){this.settle(),this.events.onDone?.();return}if(o.event==="run.error"){this.settle(),this.events.onError?.({code:o.code,message:o.message,detail:o.detail});return}let r=o.delta;switch(r.type){case"text":this.text+=r.text,this.events.onText?.(r.text);return;case"aside":this.text+=(this.text&&!this.text.endsWith(`
|
|
335
|
+
`)?`
|
|
336
|
+
|
|
337
|
+
`:"")+r.text+`
|
|
338
|
+
`,this.events.onText?.(r.text);return;case"reasoning":this.reasoning+=r.text,this.events.onReasoning?.(r.text);return;case"tool-call":this.events.onToolCall?.({id:r.id,name:r.name,label:r.label,detail:r.detail});return;case"tool-output":this.events.onToolOutput?.(r.id,r.chunk);return;case"tool-result":this.events.onToolResult?.({id:r.id,isError:r.isError,result:r.result});return;case"file-change":this.changes.push(r.change),this.events.onFileChange?.(r.change,r.id);return;case"todos":this.events.onTodos?.(r.todos);return;case"permission":this.shownPermissionIds.add(r.permission.id),this.events.onPermission?.(r.permission);return;case"permission-resolved":for(let c of r.ids)this.resolvedPermissionIds.add(c);this.events.onPermissionResolved?.(r.ids,r.status);return;case"question":this.shownQuestionIds.add(r.question.id),this.events.onQuestion?.(r.question);return;case"plan":this.events.onPlan?.(r.plan);return;case"command-skipped":this.events.onCommandSkipped?.({id:r.id,command:r.command,reason:r.reason,reasonCode:r.reasonCode,category:r.category,kind:r.kind,grant:r.grant,scopeSummary:r.scopeSummary,payloadComplete:r.payloadComplete,actionFingerprint:r.actionFingerprint,revisionFingerprint:r.revisionFingerprint,status:r.status});return;case"usage":this.events.onUsage?.(r.usage);return;case"workspace-busy":this.events.onWorkspaceBusy?.(r.others);return;case"injection-detected":this.events.onInjectionDetected?.(r.source);return;case"gate-denied":this.events.onGateDenied?.({gate:r.gate,action:r.action,reason:r.reason});return;case"connector-error":this.events.onConnectorError?.({connectorId:r.connectorId,connectorName:r.connectorName,message:r.message});return;case"step-budget":this.events.onStepBudget?.(r.reason);return;case"subagent":this.events.onSubagent?.(r.event);return;default:return}}}});var eL=L(()=>{"use strict";fd()});var tL=L(()=>{"use strict";zR()});function b7(e){return rL.has(e)||iL.has(e)||XR.has(e)}function T7(e,o){if(!e)return o?Ay(o):void 0;if(!o||e.includes(o))return Ay(e);if(o.includes(e))return Ay(o);let r=Ay(o,1500),c=`
|
|
339
|
+
[Streamed command output]
|
|
340
|
+
`;return r+c+Ay(e,WR-r.length-c.length)}function _7(e){let o=e!==null&&typeof e=="object"&&!Array.isArray(e)?e:void 0,r=i(f=>{let m=typeof f=="number"?f:typeof f=="string"&&/^\d+$/.test(f)?Number(f):void 0;return m!==void 0&&Number.isSafeInteger(m)&&m>=1?m:void 0},"integer"),c=r(o?.offset)??1,u=r(o?.limit);return c===1&&u===void 0?void 0:`${c}:${u??""}`}function N7(e){let o=new Set,r=new Set,c=e.map(()=>!0);for(let u=e.length-1;u>=0;u--){let f=e[u];if(f.change){r.add(oL(f.change.path));continue}if(!rL.has(f.name))continue;let m=f.name==="read_file"?NU(f.detail).map(oL):[],E=f.name==="read_file"?`${f.name}::${m.join(", ")}::${f.readRange??""}`:`${f.name}::${f.detail??""}`,S=m.some(v=>r.has(v));if(o.has(E)||S){c[u]=!1;continue}o.add(E)}return e.filter((u,f)=>c[f])}function M7(e){let o=N7(e),r=[],c=0,u=0,f=[],m=0;for(let E=o.length-1;E>=0;E--){let S=o[E],v=!S.change&&D7(S.body);if(!v&&m>=w7){u=E+1;break}v||(m+=1);let R,N="";if(S.change){let M=S.change.kind==="create"?"created":"edited";R=`### ${S.isError?"FAILED ":""}${S.name}: ${S.change.path} (${M} +${S.change.additions} \u2212${S.change.deletions})`,S.isError&&S.body&&(N=nL(S.body))}else{let M=S.detail?`${S.name}: ${S.detail}`:S.name;R=`### ${S.isError?"FAILED ":""}${M}`,S.body&&(N=nL(S.body))}let b=N?`${R}
|
|
341
|
+
${N}`:R;if(c+b.length>R7&&f.length){u=E+1;break}c+=b.length,f.push(b)}return f.length?(f.reverse(),u&&r.push(`(${u} earlier tool result${u===1?"":"s"} omitted to save space \u2014 search them with read_history if you need one)`),r.push(...f),`
|
|
342
|
+
|
|
343
|
+
[Tool results already gathered earlier in this task \u2014 REUSE these; do NOT re-read these files or re-run these commands unless they may have changed:]
|
|
344
|
+
|
|
345
|
+
`+r.join(`
|
|
346
|
+
|
|
347
|
+
`)):""}function aL(e){if(!e?.length)return"";let o=[];for(let r of e){if(r.status==="running")continue;let c=r.status==="error";if(XR.has(r.name)&&r.change)o.push({name:r.name,change:r.change,isError:c,body:c?r.replay??r.result:void 0});else if(b7(r.name)){let u=iL.has(r.name)?T7(r.output,r.replay??r.result):r.replay??(c&&XR.has(r.name)?r.result:void 0);u&&o.push({name:r.name,detail:r.detail,body:u,isError:c,readRange:r.name==="read_file"?_7(r.input):void 0})}}return M7(o)}var rL,iL,XR,WR,R7,w7,x7,D7,ZR,nL,Ay,oL,sL=L(()=>{"use strict";eL();tL();rL=sy,iL=new Set(["run_command"]),XR=new Set(["write_file","edit_file","apply_patch"]);i(b7,"isReplayable");WR=4e3,R7=2e4,w7=12,x7=/^\((?:no files matching|no matches for|no such file|empty file)\b/,D7=i(e=>!!e&&e.length<=240&&x7.test(e.trim()),"isInformationless"),ZR=`
|
|
348
|
+
\u2026(truncated \u2014 the full result is searchable with read_history)`,nL=i((e,o=WR)=>e.length>o?e.slice(0,o)+ZR:e,"clip"),Ay=i((e,o=WR)=>{if(e.length<=o)return e;let r=Math.max(0,o-ZR.length),c=Math.floor(r*.4);return e.slice(0,c)+ZR+e.slice(-(r-c))},"clipCommand");i(T7,"commandBody");oL=i(e=>e.replace(/\\/g,"/").replace(/\/{2,}/g,"/").replace(/^(?:\.\/)+/,""),"canonPath");i(_7,"readRangeKey");i(N7,"dedupeStaleReads");i(M7,"render");i(aL,"toolHistorySuffixFromActivity")});var nh,$R=L(()=>{"use strict";$U();sL();nh=class{constructor(o){this.client=o}client;static{i(this,"CodeSessionDriver")}session=null;run=null;get activeRun(){return this.run}get currentSession(){return this.session}setSession(o){this.session=o}async loadTurns(o){return(await this.loadMessages(o)).map(r=>({role:r.role,content:r.content}))}async loadMessages(o){return((await this.client.command("session.get",{id:o}))?.messages??[]).filter(c=>c.role==="user"||c.role==="assistant")}async sessionsForRepo(o){return(await this.client.command("session.list",void 0)).filter(c=>c.repoPath===o)}async ensureSession(o,r="VS Code session"){if(this.session?.repoPath===o)return this.session;let c=await this.sessionsForRepo(o);return this.session=c[0]??await this.client.command("session.create",{title:r,repoPath:o}),this.session}async newSession(o,r="VS Code session",c={}){return this.session=await this.client.command("session.create",{title:r,repoPath:o,...c}),this.session}async runTask(o,r){if(this.run)throw new Error("a run is already in flight");let c=await this.ensureSession(o.repoPath,o.sessionTitle),u=await this.client.command("session.get",{id:c.id});if((!u||u.repoPath!==o.repoPath)&&(this.session=null,c=await this.ensureSession(o.repoPath,o.sessionTitle),u=await this.client.command("session.get",{id:c.id}),!u))throw new Error("Code session disappeared before the run started");c=u,this.session=u;let f={};o.model!==void 0&&o.model!==c.model&&(f.model=o.model),o.providerId!==void 0&&o.providerId!==c.provider&&(f.provider=o.providerId),Object.keys(f).length&&(c=await this.client.command("session.updateMeta",{id:c.id,patch:f}),this.session=c);let m=o.providerId??c.provider,S=(c.harness==="codex"||c.harness==="opencode")&&!m&&o.model===void 0?void 0:o.model??c.model,v=u.messages.filter(N=>N.role==="user"||N.role==="assistant").map(N=>({role:N.role,content:N.content+(N.role==="assistant"?aL(N.activity):"")})),R=new yS(this.client,{...r,onDone:i(()=>{this.run=null,r.onDone?.()},"onDone"),onError:i(N=>{this.run=null,r.onError?.(N)},"onError")});this.run=R;try{await R.start({sessionId:c.id,task:o.task,repoPath:o.repoPath,accessMode:o.accessMode,history:v,branch:c.branch??null,model:S,providerId:m,harness:c.harness,harnessEpochId:c.harnessEpochId,phase:o.phase,plan:o.plan,forcedSubagentId:o.forcedSubagentId})}catch(N){throw this.run=null,N}return R}}});var lL,cL=L(()=>{"use strict";lL=i(e=>`'${e.replaceAll("'","'\\''")}'`,"shq")});function uL(e){return/^[\w@%+=:,./-]+$/.test(e)?e:lL(e)}var AL=L(()=>{"use strict";cL();i(uL,"shellQuote")});function IS(e,o,r=process.platform){let c=r==="win32"?f=>/^[\w@+=:,./\\-]+$/.test(f)?f:`'${f.replaceAll("'","''")}'`:uL;return["moreai",...o?["-C",o]:[],"--session",e].map(c).join(" ")}var ew=L(()=>{"use strict";AL();i(IS,"sessionResumeCommand")});function oh(e,o){let r=(e??"").split(`
|
|
349
|
+
`)[0].trim();if(r)return r.length>60?`${r.slice(0,59)}\u2026`:r;let c=o.split(/[\\/]/).filter(Boolean).pop()??C("cli.session.fallbackName");return C("cli.session.defaultTitle",{name:c})}async function BS(e,o,r,c){if(c.sessionId){let u=await o.command("session.get",{id:c.sessionId});if(!u)throw new Error(C("cli.session.notFound",{id:c.sessionId}));if(u.repoPath!==r){let f=C("app.session.worksIn",{path:u.repoPath||C("pickers.sessions.noFolder")}),m=u.repoPath?`
|
|
350
|
+
${C("app.session.openWith")} ${IS(u.id,u.repoPath)}`:"";throw new Error(`${u.title} ${f}${m}`)}return e.setSession(u),u}if(c.continueSession){let u=await e.sessionsForRepo(r);for(let f of u.filter(m=>!m.archived)){let m=await o.command("session.get",{id:f.id});if(!(!m||m.archived||m.repoPath!==r))return e.setSession(m),m}}return null}var tw=L(()=>{"use strict";Xt();ew();i(oh,"sessionTitleFor");i(BS,"bindSession")});function SS(e){switch(e.code){case"no-provider":case"no-key":case"unknown-provider":return C("cli.errorHint.noProvider");case"no-model":return C("cli.errorHint.noModel");case"disconnected":return C("cli.errorHint.disconnected");case"harness-provider":return C("cli.errorHint.harnessProvider");case"unsupported":return C("cli.errorHint.unsupported");default:return}}var nw=L(()=>{"use strict";Xt();i(SS,"errorHint")});function ow(e,o){let r=o.toLowerCase();return e.some(c=>c.toLowerCase()===r)}function og(e,o,r,c){if(o)return{model:o,...dL(e,o,r)};if(!r){for(let m of[e?.preferred,c])if(m&&e?.providers.some(E=>E.id===m.providerId&&E.connected&&ow(E.models,m.model)))return{model:m.model,providerId:m.providerId}}let u=r??e?.defaultProviderId??void 0,f=e?.providers.find(m=>m.id===u&&m.connected);return{...f?.defaultModel||f?.models[0]?{model:f.defaultModel??f.models[0]}:{},...u?{providerId:u}:{}}}function dL(e,o,r){if(r)return{providerId:r};if(!o||!e)return{};let c=e.providers.filter(u=>u.connected&&ow(u.models,o)).map(u=>u.id);if(c.length===1)return{providerId:c[0]};if(c.length===0)return{};for(let u of[e.preferred?.providerId,e.defaultProviderId])if(u&&c.includes(u))return{providerId:u};return{ambiguous:c}}function dy(e,o){return`moreai: ${C("cli.model.ambiguous",{model:e,providers:o.join(", ")})}`}function vS(e){let{session:o,providers:r,modelOverride:c,providerOverride:u}=e,f=c??o.model,m=c&&!u?c===o.model&&o.provider?{providerId:o.provider}:dL(r,c):{};if(o.harness!=="native"&&m.ambiguous?.length)return{ok:!1,reason:C("cli.model.severalForAgent",{model:c})};let E=u??m.providerId??(c&&c!==o.model?void 0:o.provider);if(o.harness!=="native"){if(!r)return{ok:!1,reason:C("cli.model.cannotVerify")};if(c&&!u&&!m.providerId&&c!==o.model)return{ok:!1,reason:C("cli.model.notOffered",{model:c})};if(o.harness==="claude-code"&&!E)return{ok:!1,reason:C("cli.model.claudeNeedsSelectedKey")};if(E){let S=r.providers.find(v=>v.id===E);if(!S?.connected||S.connectedVia!=="key")return{ok:!1,reason:C("cli.model.needsApiKey",{provider:E})};if(S.models.length&&f&&!ow(S.models,f))return{ok:!1,reason:C("cli.model.notOfferedBy",{model:f,provider:S.label})};if(o.harness==="claude-code"&&E!=="anthropic"&&E!=="zai")return{ok:!1,reason:C("cli.model.claudeNeedsKey")};if(o.harness==="codex"&&!["openai","openrouter","zai"].includes(E))return{ok:!1,reason:C("cli.model.codexNeedsKey")};if(o.harness==="opencode"){let v=GB.find(R=>R.id===E);if(!v||v.protocol==="google"||!v.defaultBaseUrl)return{ok:!1,reason:C("cli.model.opencodeProtocol",{provider:S.label})}}}}return{ok:!0,...c?{model:c}:{},...u||m.providerId?{providerId:u??m.providerId}:{},displayModel:f,...m.ambiguous?{ambiguous:m.ambiguous}:{}}}var rw=L(()=>{"use strict";ib();Xt();i(ow,"offersModel");i(og,"initialSessionSelection");i(dL,"resolveModelProvider");i(dy,"ambiguousModelNote");i(vS,"cliRunSelection")});function QS(e){for(let o of e.split(`
|
|
351
|
+
`)){let r=/^\s*@([a-z][a-z0-9-]*)(?=\s|$)/i.exec(o);if(!r)continue;let c=r[1].toLowerCase();if(fL.some(u=>u.name===`@${c}`))return c}}function iw(e){if(e.startsWith("@")){if(/\s/.test(e))return[];let r=e.toLowerCase();return fL.filter(c=>c.name.startsWith(r))}if(!e.startsWith("/"))return[];let o=e.split(/\s/,1)[0].toLowerCase();return e.includes(" ")&&fy.some(r=>r.name===gL[o]||r.name===o)?[]:fy.filter(r=>r.name.startsWith(o))}function bS(e){let o=e.trim();if(!o.startsWith("/"))return null;let[r,...c]=o.split(/\s+/),u=gL[r.toLowerCase()]??r.toLowerCase();return fy.some(f=>f.name===u)?{command:u,arg:c.join(" ")}:null}var ei,fy,fL,gL,gy=L(()=>{"use strict";Xt();ei=i((e,o,r)=>({name:e,args:o,get description(){return C(r)}}),"command"),fy=[ei("/new","","slash.desc.new"),ei("/sessions","","slash.desc.sessions"),ei("/cloud","[task]","slash.desc.cloud"),ei("/auth","","slash.desc.auth"),ei("/connectors","","slash.desc.connectors"),ei("/login","","slash.desc.login"),ei("/mode","[plan|read-only|accept-edits|auto|full]","slash.desc.mode"),ei("/model","[search]","slash.desc.model"),ei("/models","","slash.desc.models"),ei("/language","[code|auto]","slash.desc.language"),ei("/harness","[native|codex|claude-code|opencode]","slash.desc.harness"),ei("/status","","slash.desc.status"),ei("/analytics","[on|usage|off]","slash.desc.analytics"),ei("/voice","","slash.desc.voice"),ei("/help","","slash.desc.help"),ei("/quit","","slash.desc.quit")],fL=[ei("@explore","<task>","slash.desc.helperExplore"),ei("@scout","<task>","slash.desc.helperScout"),ei("@general","<task>","slash.desc.helperGeneral")];i(QS,"summonedHelper");gL={"/resume":"/sessions","/clear":"/new","/exit":"/quit","/telemetry":"/analytics","/lang":"/language"};i(iw,"slashMatches");i(bS,"parseSlash")});function k7(e){return e.split(/[-_]/).filter(Boolean).map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}function pL(e){return O7[e]??k7(e)}function hL(e){let o=e.indexOf("/");if(o>0){let c=e.slice(0,o).replace(/^~+/,"").toLowerCase();return{key:c,label:pL(c)}}let r=e.toLowerCase();for(let[c,u]of H7)if(r.startsWith(c))return{key:u,label:pL(u)};return{key:"other",label:"Other"}}function aw(e){return e===0?"$0":e>=1?`$${Number.isInteger(e)?e:e.toFixed(2)}`:e>=.01?`$${e.toFixed(2)}`:`$${e.toPrecision(1)}`}function EL(e,o){return o?.[e]?!0:e.toLowerCase().endsWith(":free")}function mL(e){return e.toLowerCase().split(/[/\-_.:\s]+/).filter(Boolean)}function CL(e,o){let r=e.id.toLowerCase(),c=e.label.toLowerCase();if(r===o||c===o)return 4;if(r.startsWith(o)||c.startsWith(o))return 3;if([...mL(r),...mL(c)].some(f=>f.startsWith(o)))return 2;if(r.includes(o)||c.includes(o))return 1;let u=e.provider;return u&&(u.label.toLowerCase().includes(o)||u.id.toLowerCase()===o)?1:0}var O7,H7,yL=L(()=>{"use strict";O7={anthropic:"Anthropic",openai:"OpenAI",google:"Google","google-vertex":"Google",meta:"Meta","meta-llama":"Meta",mistral:"Mistral",mistralai:"Mistral",deepseek:"DeepSeek",qwen:"Qwen",alibaba:"Qwen","x-ai":"xAI",xai:"xAI",cohere:"Cohere",perplexity:"Perplexity",microsoft:"Microsoft",nvidia:"NVIDIA",amazon:"Amazon",ai21:"AI21",databricks:"Databricks",nousresearch:"Nous","01-ai":"01.AI","01ai":"01.AI",moonshotai:"Moonshot",moonshot:"Moonshot",z:"Zhipu","z-ai":"Zhipu"},H7=[["claude","anthropic"],["gpt","openai"],["chatgpt","openai"],["o1","openai"],["o3","openai"],["o4","openai"],["davinci","openai"],["gemini","google"],["gemma","google"],["llama","meta"],["deepseek","deepseek"],["qwen","qwen"],["qwq","qwen"],["mistral","mistral"],["mixtral","mistral"],["ministral","mistral"],["codestral","mistral"],["grok","x-ai"],["command","cohere"],["phi","microsoft"],["kimi","moonshotai"],["glm","z-ai"],["yi","01-ai"]];i(k7,"titleCase");i(pL,"labelFor");i(hL,"inferVendor");i(aw,"formatPricePerM");i(EL,"isFreeModel");i(mL,"tokenize");i(CL,"scoreModel")});import lw from"node:fs";import IL from"node:path";function BL(e){let o=(e?.providers??[]).filter(c=>c.connected&&c.models.length>0),r=e?.defaultProviderId;return[...o.filter(c=>c.id===r),...o.filter(c=>c.id!==r)]}function RS(e,o){let r=[];for(let u of BL(e)){let f=new Set(u.pinnedModels??[]),m=new Set;for(let E of u.models)m.has(E)||(m.add(E),r.push({providerId:u.id,providerLabel:u.label,id:E,vendor:hL(E).label,...u.modelMeta?.[E]?{meta:u.modelMeta[E]}:{},pinned:f.has(E),current:!!o?.model&&o.model===E&&(!o.providerId||o.providerId===u.id)}))}let c=r.filter(u=>u.current);for(let u of c.slice(1))u.current=!1;return r}function SL(e,o){let r=BL(e);return[{id:rh,label:C("pickers.model.scopeAll"),count:o.length},...r.map(c=>({id:c.id,label:c.label,count:o.filter(u=>u.providerId===c.id).length}))]}function vL(e,o){return e.id.localeCompare(o.id,void 0,{numeric:!0})}function F7(e,o){let r=o.trim().toLowerCase().split(/\s+/).filter(Boolean);if(!r.length)return e.map(u=>({entry:u,positions:[]}));let c=[];for(let u of e){let f=0,m=[],E={id:u.id,label:u.id,provider:{id:u.providerId,label:u.providerLabel}};for(let S of r){let v=Math.max(CL(E,S),u.vendor.toLowerCase().startsWith(S)?1:0,hR(S,u.providerLabel)?1:0);if(v<=0){f=-1;break}f+=v;let R=u.id.toLowerCase().indexOf(S);if(R>=0)for(let N=R;N<R+S.length;N++)m.push(N)}f>0&&c.push({entry:u,positions:[...new Set(m)].sort((S,v)=>S-v),score:f})}return c.sort((u,f)=>f.score-u.score||Number(f.entry.pinned)-Number(u.entry.pinned)||Number(f.entry.current)-Number(u.entry.current)||vL(u.entry,f.entry)),c.map(({entry:u,positions:f})=>({entry:u,positions:f}))}function uw(e,o){let r=o.scope===rh?e:e.filter(M=>M.providerId===o.scope),c=i(M=>_c(M.entry),"keyOf");if(o.query.trim())return F7(r,o.query).map(({entry:M,positions:_})=>({kind:"item",key:`s:${_c(M)}`,item:{entry:M,showProvider:o.scope===rh,positions:_}}));let u=new Map(r.map(M=>[_c(M),M])),f=new Set,m=i((M,_)=>M.filter(k=>{let H=_c(k);return f.has(H)?!1:(f.add(H),!0)}).map(k=>({entry:k,showProvider:_})),"take"),E=o.scope===rh,S=m(r.filter(M=>M.current),E),v=m(r.filter(M=>M.pinned),E),R=m((o.recents??[]).map(M=>u.get(_c({providerId:M.providerId,id:M.model}))).filter(M=>!!M).slice(0,L7),E),N=[{key:"current",label:C("pickers.model.section.current"),items:S},{key:"pinned",label:C("pickers.model.section.pinned"),items:v},{key:"recent",label:C("pickers.model.section.recent"),items:R}],b=[...new Set(r.map(M=>M.providerId))];for(let M of b){let _=r.filter(we=>we.providerId===M),k=_.filter(we=>!f.has(_c(we)));if(!k.length)continue;let H=_[0].providerLabel,$=[...new Set(k.map(we=>we.vendor))];_.length>=U7&&$.length>1?($.sort((we,Qe)=>we==="Other"?1:Qe==="Other"?-1:we.localeCompare(Qe)),$.forEach((we,Qe)=>{let re=k.filter(Me=>Me.vendor===we).sort(vL);N.push({key:`p:${M}:${we}`,label:C("pickers.model.section.vendor",{provider:H,vendor:we}),...Qe===0?{detail:C("pickers.model.count",{count:_.length})}:{},items:m(re,!1)})})):N.push({key:`p:${M}`,label:H,detail:C("pickers.model.count",{count:_.length}),items:m(k,!1)})}return id(N,c)}function QL(e){let o=[],r=e.meta;return r?.outOfPlan&&o.push(typeof r.outOfPlan=="string"?C("pickers.model.planRequired",{plan:r.outOfPlan}):C("pickers.model.notInPlan")),r?.context&&o.push(z7(r.context)),r?.free||EL(e.id)?o.push(C("pickers.model.free")):r?.price&&o.push(`${aw(r.price.input)}/${aw(r.price.output)}`),o.join(" \xB7 ")}function z7(e){let o=K7();return e>=1e6?`${o.format(Number((e/1e6).toFixed(1)))}M`:e>=1e3?`${o.format(Math.round(e/1e3))}K`:o.format(e)}function K7(){let e=za();if(sw?.language!==e){let o={maximumFractionDigits:1,useGrouping:!1},r;try{r=new Intl.NumberFormat(e,o)}catch{r=new Intl.NumberFormat("en",o)}sw={language:e,format:r}}return sw.format}function bL(e,o){let r=o.trim().toLowerCase();if(!r)return null;let c=e.filter(m=>`${m.providerId}:${m.id}`.toLowerCase()===r||`${m.providerId}/${m.id}`.toLowerCase()===r);if(c.length===1)return c[0];let u=e.filter(m=>m.id.toLowerCase()===r);return u.length===1?u[0]:u.find(m=>m.current)??null}function Gu(e){if(!e)return[];try{let o=JSON.parse(lw.readFileSync(cw(e),"utf8"));return Array.isArray(o.recent)?o.recent.filter(r=>!!r&&typeof r.providerId=="string"&&typeof r.model=="string"):[]}catch{return[]}}function Y7(e,o){return[o,...e.filter(r=>r.providerId!==o.providerId||r.model!==o.model)].slice(0,G7)}function RL(e,o){let r=Y7(Gu(e),o);if(!e)return r;try{lw.mkdirSync(IL.dirname(cw(e)),{recursive:!0}),lw.writeFileSync(cw(e),JSON.stringify({recent:r}))}catch{}return r}var rh,U7,L7,G7,_c,sw,cw,wS=L(()=>{"use strict";yL();Xt();Mu();rd();rh="all",U7=10,L7=5,G7=10,_c=i(e=>`${e.providerId}/${e.id}`,"entryKey");i(BL,"pickerProviders");i(RS,"modelEntries");i(SL,"scopeTabs");i(vL,"compareIds");i(F7,"searchModelEntries");i(uw,"modelPickerRows");i(QL,"modelFacts");i(z7,"formatTokens");i(K7,"tokenNumberFormat");i(bL,"exactModelMatch");cw=i(e=>IL.join(e,"cli","models.json"),"recentsFile");i(Gu,"readRecentModels");i(Y7,"withRecent");i(RL,"rememberRecentModel")});var xL={};gi(xL,{runPrint:()=>J7});async function J7(e,o,r){e.json&&(H_(!1),KA("en"));let c=i(b=>{e.json&&xS(JSON.stringify(b)+`
|
|
352
|
+
`)},"emit"),u;try{u=await mr(()=>{},b=>Cr(C("cli.print.openedBrowser",{url:b})))}catch(b){let M=b instanceof Error?b.message:String(b);return e.json?c({type:"error",code:"connect-failed",message:M}):(Cr(C("cli.engineUnreachable",{message:M})),Cr(C("cli.print.doctorHint"))),1}let f=await u.client.command("telemetry.state",void 0).catch(()=>null),m=lU(u.dataDir,f);m&&Cr(m),Zi(u.client,"app_launched",{command:"print",interactive:!1,engine_spawned:u.spawned,json:e.json,continued:e.continueSession||!!e.session});let E=new nh(u.client),S=new Set,v=i(b=>{S.has(b)||(S.add(b),b.dispose())},"disposeConnection"),R;SQ(()=>R?R():process.exit(141));let N=await new Promise(b=>{let M=!1,_=!1,k=!1,H=null,$=!1,we=i(re=>{$||k||($=!0,re.abort())},"requestAbort"),Qe=i(()=>c({type:"result",ok:!1,code:"aborted",message:"interrupted"}),"emitInterrupted");R=i(()=>{M&&process.exit(130),M=!0;let re=H??E.activeRun;re?we(re):_||(k=!0,Qe(),b(130))},"interrupt"),process.on("SIGINT",R),(async()=>{try{let re=await BS(E,u.client,o,{continueSession:e.continueSession,sessionId:e.session});if(M)return;let Me=e.mode??"auto",Ee,ze;if(re){let W=await u.client.command("session.get",{id:re.id});if(M)return;if(!W)throw new Error(C("cli.print.sessionGone"));E.setSession(W);let it=await u.client.command("provider.list",void 0).catch(()=>{});if(M)return;let yt=vS({session:W,providers:it,modelOverride:e.model,providerOverride:e.provider});if(!yt.ok)throw new Error(yt.reason);Ee=yt.model,ze=yt.providerId,yt.ambiguous?.length&&!e.json&&Cr(dy(yt.displayModel,yt.ambiguous))}else{let W=await u.client.command("provider.list",void 0).catch(()=>{});if(M)return;let it=og(W,e.model,e.provider,Gu(u.dataDir)[0]);if(Ee=it.model,ze=it.providerId,it.ambiguous&&Ee&&!e.json&&Cr(dy(Ee,it.ambiguous)),await E.newSession(o,oh(r,o),{model:Ee,provider:ze}),M)return}c({type:"run-start",repoPath:o,mode:Me,model:Ee??null,provider:ze??null});let ce="",ae=[],ie=[],ne=i(W=>{if(W.startsWith(ce))e.json||xS(W.slice(ce.length));else if(!e.json)throw new Error(C("cli.print.outputDiverged"));ce=W,e.json&&c({type:"checkpoint",text:W})},"syncText"),ee=i(async()=>{let W=E.currentSession?.id??re?.id;if(!W)throw new Error(C("cli.print.replayNoSession"));let yt=(await u.client.command("session.get",{id:W}))?.messages.slice().reverse().find(P=>P.role==="assistant"&&P.runId===H?.runId);if(!yt)throw new Error(C("cli.print.replayUnavailable",{id:W}));ne(yt.content)},"restoreSaved");_=!0;let Se=QS(r);Se&&Zi(u.client,"cli_helper_summoned",{helper:Se}),H=await E.runTask({task:r,repoPath:o,accessMode:Me,sessionTitle:oh(r,o),model:Ee,providerId:ze,forcedSubagentId:Se},{onText:i(W=>{ce+=W,e.json?c({type:"text",text:W}):xS(W)},"onText"),onReasoning:i(W=>{e.json&&c({type:"reasoning",text:W})},"onReasoning"),onToolCall:i(W=>{e.json?c({type:"tool-call",id:W.id,name:W.name,label:W.label,detail:W.detail??null}):tg.has(W.name)||Cr(Rc("running",W.label,W.detail))},"onToolCall"),onSubagent:i(W=>{if(ae=pS(ae,W,Date.now()),e.json){c({type:"subagent",event:W});return}let it=qU(ae,W);it&&Cr(it)},"onSubagent"),onToolOutput:i((W,it)=>{e.json?c({type:"tool-output",id:W,chunk:it}):process.stderr.write(it)},"onToolOutput"),onToolResult:i(W=>{e.json?c({type:"tool-result",id:W.id,isError:W.isError??!1,result:W.result??null}):W.isError&&W.result&&Cr(Vm(W.result,3,!0))},"onToolResult"),onFileChange:i(W=>{e.json?c({type:"file-change",path:W.path,kind:W.kind,additions:W.additions,deletions:W.deletions}):Cr(eg(W))},"onFileChange"),onTodos:i(W=>c({type:"todos",todos:W}),"onTodos"),onUsage:i(W=>c({type:"usage",usage:W}),"onUsage"),onPlan:i(W=>{e.json?c({type:"plan",plan:W}):Cr(il(C("cli.print.planTitle"),C("cli.print.planDetail")))},"onPlan"),onCommandSkipped:i(W=>{e.json?c({type:"command-skipped",command:W.command,reason:W.reason}):Cr(il(C("cli.print.held",{command:W.command}),W.reason))},"onCommandSkipped"),onConnectorError:i(W=>{e.json?c({type:"connector-error",connectorId:W.connectorId,connectorName:W.connectorName,message:W.message}):Cr(il(C("cli.print.connectorFailed",{name:W.connectorName}),W.message))},"onConnectorError"),onWorkspaceBusy:i(W=>{e.json?c({type:"workspace-busy",others:W}):Cr(il(C("cli.print.sharedTree"),C("cli.print.othersActive",{count:W})))},"onWorkspaceBusy"),onPermission:i(W=>{H?H.respondPermission(W.id,"reject"):ie.push(it=>it.respondPermission(W.id,"reject")),e.json?c({type:"permission-auto-rejected",title:W.title}):Cr(il(C("cli.print.declined",{title:W.title}),C("cli.print.declinedDetail")))},"onPermission"),onQuestion:i(W=>{let it={answers:W.questions.map(yt=>({questionId:yt.id,selected:[],custom:"Non-interactive run \u2014 no user available. Use your judgement and proceed."}))};H?H.respondQuestion(W.id,it):ie.push(yt=>yt.respondQuestion(W.id,it)),c({type:"question-auto-answered"})},"onQuestion"),onCheckpoint:i(W=>ne(W.content),"onCheckpoint"),onReplayGap:ee,onStepBudget:i(W=>{e.json?c({type:"step-budget",...W?{reason:W}:{}}):Cr(il(W==="output-length"?C("cli.print.outputLimit"):C("cli.print.stepBudget"),C("cli.print.continueHint")))},"onStepBudget"),onDone:i(()=>{k=!0,e.json?M?Qe():c({type:"result",ok:!0,text:ce}):xS(`
|
|
353
|
+
`),b(M?130:0)},"onDone"),onError:i(W=>{if(k=!0,e.json)c({type:"result",ok:!1,code:W.code,message:W.message});else{Cr(""),Cr(C("cli.print.runError",{code:W.code,message:W.message}));let it=SS(W);it&&Cr(it)}b(M?130:1)},"onError")}),_=!1;let Je=H;M&&we(Je);for(let W of ie)W(Je);let ye=null,qe=i(async W=>{await W.client.command("run.abort",{id:Je.runId}),k||(k=!0,Qe(),b(130))},"abortRestored"),ct=i(async()=>{for(let W of q7){if(await P7(W),k)return;let it=null;try{it=await mr(()=>{},P=>Cr(C("cli.print.openedBrowser",{url:P})));let yt=u;u=it;try{M?await qe(it):(await Je.resume(it.client),M&&!k&&await qe(it))}catch(P){throw u=yt,k&&v(yt),P}k||u.onDisconnect(je),v(yt);return}catch{if(it&&v(it),k)return}}if(!k){let W=E.currentSession?.id??re?.id;Cr(W?C("cli.print.reconnectFailedSession",{id:W}):C("cli.print.reconnectFailed")),Je.giveUpConnection()}},"reconnect"),je=i(()=>{k||ye||(Je.connectionLost(),ye=ct().finally(()=>{ye=null}))},"onDisconnect");k||(u.onDisconnect(je),(Je.needsReconnect||u.client.isConnected&&!u.client.isConnected())&&je())}catch(re){if(M){k||(k=!0,Qe(),b(130));return}let Me=re instanceof Error?re.message:String(re);e.json?c({type:"error",code:"start-failed",message:Me}):Cr(C("cli.print.startFailed",{message:Me})),b(1)}})()});return R&&process.off("SIGINT",R),SQ(null),v(u),BQ()?141:N}var xS,Cr,q7,P7,DL=L(()=>{"use strict";Xs();Ou();$R();tw();nw();vo();rw();al();ng();gy();fd();Xt();wS();vQ();xS=i(e=>{BQ()||process.stdout.write(e)},"out"),Cr=i(e=>process.stderr.write(e+`
|
|
354
|
+
`),"err"),q7=[250,500,1e3,2e3,4e3],P7=i(e=>new Promise(o=>setTimeout(o,e)),"delay");i(J7,"runPrint")});function TL(e){return typeof e=="string"&&j7.includes(e)}function rg(e){return py.find(o=>o.id===e)??py[0]}var j7,py,Aw=L(()=>{"use strict";j7=["native","codex","claude-code","opencode"];i(TL,"isCodeHarnessId");py=[{id:"native",name:"More AI",description:"The built-in provider-neutral coding agent.",managed:!1,capabilities:{local:!0,cloud:!0,ssh:!0,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"app"}},{id:"codex",name:"Codex",description:"OpenAI Codex with native streamed tools and approvals.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"runtime"}},{id:"claude-code",name:"Claude Agent",description:"Anthropic Claude Agent through the AI SDK Harness adapter.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"runtime"}},{id:"opencode",name:"OpenCode",description:"OpenCode with its provider/model routing and permission protocol.",managed:!0,capabilities:{local:!0,cloud:!0,ssh:!1,approvals:!0,questions:!0,steering:!0,resume:!0,modelPolicy:"provider-model"}}];i(rg,"codeHarnessDescriptor")});function DS(e,o,r){if(e!=="claude-code")return!0;let c=o??r.defaultProviderId;return c!=="anthropic"&&c!=="zai"?!1:r.providers.some(u=>u.id===c&&u.connected&&u.connectedVia==="key")}var dw=L(()=>{"use strict";Aw();i(DS,"harnessKeyAvailableFromHub")});import fw from"node:fs";import _L from"node:path";var NL,TS,ML=L(()=>{"use strict";NL=100,TS=class{static{i(this,"InputHistory")}entries=[];file;constructor(o){if(this.file=o?_L.join(o,"cli","history.json"):void 0,!!this.file)try{let r=JSON.parse(fw.readFileSync(this.file,"utf8"));Array.isArray(r)&&(this.entries=r.filter(c=>typeof c=="string"))}catch{}}all(){return this.entries}push(o){let r=o.trim();r&&this.entries[this.entries.length-1]!==r&&(this.entries.push(r),this.entries.length>NL&&(this.entries=this.entries.slice(-NL)),this.save())}save(){if(this.file)try{fw.mkdirSync(_L.dirname(this.file),{recursive:!0}),fw.writeFileSync(this.file,JSON.stringify(this.entries))}catch{}}}});import gw from"node:fs";import pw from"node:path";function OL(e){try{let o=pw.join(e,".git");if(gw.statSync(o).isFile()){let f=/^gitdir:\s*(.+)\s*$/m.exec(gw.readFileSync(o,"utf8"));if(!f)return;o=pw.resolve(e,f[1])}let c=gw.readFileSync(pw.join(o,"HEAD"),"utf8").trim(),u=/^ref:\s*refs\/heads\/(.+)$/.exec(c);return u?u[1]:c.slice(0,8)||void 0}catch{return}}var HL=L(()=>{"use strict";i(OL,"currentBranch")});function kL(e){let o=[];for(let r of e){let c=o[o.length-1];c&&c.name===r.name?(c.steps.push(r),r.detail&&!c.details.includes(r.detail)&&c.details.push(r.detail)):o.push({name:r.name,details:r.detail?[r.detail]:[],steps:[r]})}return o.map(r=>{let c=r.steps.length===1?r.steps[0]:void 0;return c?.label&&!r.details.length?c.label:dd(V7,{name:r.name,detail:r.details.join(", ")||void 0,status:"done"})})}function ih(e,o){if(!e.length)return"";if(e.length===1)return Rc(o.live?"running":"done",gs(kL(e)[0],Math.max(8,o.width-2)));let r=o.live?qt(ya):Bt(ya),c=ht(C(o.live?"cards.explore.live":"cards.explore.done")),u=le(` \xB7 ${C("cards.explore.steps",{count:e.length})}`),f=Math.max(8,o.width-6),m=kL(e).map((E,S)=>` ${S===0?Tn(Hu):" "} ${le(gs(E,f))}`);return[`${r} ${c}${u}`,...m].join(`
|
|
355
|
+
`)}var my,V7,_S=L(()=>{"use strict";fd();Xt();vo();al();ng();my=sy,V7=i((e,o)=>C(e,o),"desktopT");i(kL,"exploreLines");i(ih,"exploreCell")});function hy(e,o){let r=e.label||e.name;if(za()==="en")return r;let c=dd(X7,{name:e.name,label:e.label,detail:e.detail,tool:e.tool,status:o});return c.trim()?c:r}function Z7(e,o,r){let c=hy(e,e.status);if(o?.length&&Dc.has(e.name))return[Tc(o,{width:r,label:c,state:e.status==="error"?"error":"done"})];let u=[Rc(e.status,c,e.detail)];e.change&&u.push(eg(e.change));let f=Vm(e.result??e.output??"",3,e.status==="error");return f&&u.push(f),u}function UL(e){return`${e.status==="approved"?Bt(`\u2714 ${C("app.decision.allowed")}`):e.status==="rejected"?St(`\u2715 ${C("app.decision.denied")}`):le(`\u25CC ${C("app.decision.awaiting")}`)}: ${e.title}${e.detail?`
|
|
356
|
+
${le(e.detail)}`:""}`}function LL(e){let o=[le(e.status==="pending"?`\u25CC ${C("app.question.awaiting")}`:`\u25B8 ${C("app.question.label")}`)];e.intro&&o.push(` ${e.intro}`);for(let r of e.questions){o.push(` ${r.question}`);let c=e.answer?.answers.find(u=>u.questionId===r.id);if(c){let u=[...c.selected,...c.custom?[c.custom]:[]].join(", ");o.push(` ${Bt(u||C("app.question.answered"))}`)}}return e.status==="dismissed"&&o.push(` ${le(C("app.question.dismissed"))}`),o.join(`
|
|
357
|
+
`)}function GL(e,o=80){if(e.role==="user")return e.content?[Zm(e.content)]:[];if(e.role!=="assistant")return[];let r=[],c=new Map(e.activity?.map(_=>[_.id,_])??[]),u=new Map(e.permissions?.map(_=>[_.id,_])??[]),f=new Map(e.questions?.map(_=>[_.id,_])??[]),m=new Set,E=new Set,S=new Set,v=!1,R=e.subagents?.length?ly(e.subagents,Date.now()).map(({endedAt:_,...k})=>k):null,N=[],b=i(()=>{N.length&&r.push(ih(N,{width:o})),N=[]},"flushExplore"),M=i(_=>{if(tg.has(_.name))return[];if(my.has(_.name)&&_.status==="done"&&!_.change)return N.push({name:_.name,detail:_.detail,label:_.label}),[];b();let k=Z7(_,Dc.has(_.name)?R:null,o);return Dc.has(_.name)&&(R=null),k},"blocksFor");for(let _ of e.parts??[])switch(_.type){case"text":v=!0,_.text.trim()&&(b(),r.push(sl(_.text.trimEnd(),o)));break;case"tool":{let k=c.get(_.id);k&&(r.push(...M(k)),m.add(_.id));break}case"permission":{let k=u.get(_.id);k&&(b(),r.push(UL(k)),E.add(_.id));break}case"question":{let k=f.get(_.id);k&&(b(),r.push(LL(k)),S.add(_.id));break}case"aside":_.from==="user"&&_.text.trim()&&(b(),r.push(Zm(_.text)));break;default:break}for(let _ of e.activity??[])m.has(_.id)||r.push(...M(_));b(),R?.length&&r.push(Tc(R,{width:o})),!v&&e.content.trim()&&r.push(sl(e.content.trimEnd(),o)),e.plan&&r.push(aS(e.plan)),e.todos?.length&&r.push(Xm(e.todos));for(let _ of e.permissions??[])E.has(_.id)||r.push(UL(_));for(let _ of e.questions??[])S.has(_.id)||r.push(LL(_));return r}var X7,mw=L(()=>{"use strict";fd();Xt();vo();al();ng();_S();Wm();X7=i((e,o)=>C(e,o),"toolStepT");i(hy,"toolStepText");i(Z7,"activityBlocks");i(UL,"permissionBlock");i(LL,"questionBlock");i(GL,"savedTurnBlocks")});function hw(e){return e.phase!=="ready"?e.phase:e.spawned||e.owner==="daemon"?"background":e.owner==="desktop"?"desktop":"shared"}function NS(e){return C(`app.engine.${hw(e)}`)}function FL(e){let o=(0,cl.useRef)(e);o.current=e;let r=(0,cl.useRef)(null),c=(0,cl.useRef)(null),[u,f]=(0,cl.useState)({phase:"connecting",spawned:!1}),m=(0,cl.useRef)(async()=>{}),E=(0,cl.useRef)(0),S=(0,cl.useRef)(!1),v=(0,cl.useCallback)(async()=>{if(!S.current){S.current=!0;try{for(E.current=0;E.current<W7;E.current++){await new Promise(N=>setTimeout(N,Math.min(500*2**E.current,5e3)));try{await m.current(),o.current.showToast(C("app.engine.reconnected"));return}catch{}}f({phase:"failed",spawned:!1,message:C("app.engine.lost")}),o.current.onReconnectFailed?.()}finally{S.current=!1}}},[]),R=(0,cl.useCallback)(async()=>{let N=await mr(H=>o.current.onHubEvent(H),H=>o.current.onOpenExternal(H)),b=r.current;r.current=N,b?.dispose();let M=new nh(N.client),_=c.current?.currentSession;_&&M.setSession(_),c.current=M,N.onDisconnect(()=>{r.current===N&&(o.current.onConnectionLost(),f(H=>({...H,phase:"reconnecting"})),v())}),await o.current.onConnectionRestored?.(N);let k=await Ps(N.dataDir).catch(()=>{});f({phase:"ready",spawned:N.spawned,...k?.owner?{owner:k.owner}:{}})},[v]);return m.current=R,{connRef:r,driverRef:c,engine:u,setEngine:f,connect:R,reconnect:v}}var cl,W7,Ew=L(()=>{"use strict";cl=He(Mt(),1);$R();Of();Xs();Xt();i(hw,"engineKindOf");i(NS,"engineLabelOf");W7=5;i(FL,"useEngineConnection")});function zL(e){let o=$7[e];return o?C(o):e}function tq(e){let o=Math.max(...e.map(([r])=>Ot(r)));return e.map(([r,c])=>` ${le(r)}${" ".repeat(o-Ot(r)+2)}${c}`)}async function KL(e,o,r){switch(Zi(r.conn?.client,"cli_slash_command",{command:e}),e){case"/quit":r.quit();return;case"/new":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}r.startNewSession(),r.push(le(`\u2500\u2500 ${C("slash.newSession")} \u2500\u2500`));return}case"/sessions":{let c=r.conn?.client;if(!c?.isConnected()){r.showToast(C("slash.engineNotConnected"));return}let u=(await c.command("session.list",void 0)).filter(f=>!f.archived);if(!u.length){r.showToast(C("slash.noSessions"));return}r.openSessionsPicker(u);return}case"/cloud":await r.openCloud(o);return;case"/auth":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openAuth();return}case"/connectors":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openConnectors();return}case"/login":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}r.openAccount();return}case"/analytics":{if(r.running){r.showToast(C("slash.finishRunFirst"));return}await r.openAnalytics(o);return}case"/mode":{if(o){if(!Ll.includes(o)){r.showToast(C("slash.modeMustBe",{modes:Ll.join(", ")}));return}r.applyMode(o)}else r.cycleMode();return}case"/models":case"/model":{if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}o.trim()?await r.chooseModel(o.trim()):r.openModelPicker();return}case"/language":{o.trim()?r.setInterfaceLanguage(o.trim()):r.openLanguagePicker();return}case"/harness":{if(r.running){r.showToast(C("slash.harness.finishRunFirst"));return}if(!r.conn?.client.isConnected()){r.showToast(C("slash.engineNotConnected"));return}let c=o.trim().toLowerCase();if(!c){try{let m=await r.conn.client.command("harness.list",void 0);r.push([`${qt(Pa)} ${ht(C("slash.harness.title"))}`,...py.map(E=>{let S=m.find(R=>R.id===E.id),v=S?.localReady?C("slash.harness.state.ready"):S?zL(S.install):C("slash.harness.unavailable");return` ${E.id===r.harness?"\u25CF":" "} ${E.name} ${Tn(E.id)} \xB7 ${v}`}),` ${le(C("slash.harness.useHint"))}`].join(`
|
|
358
|
+
`))}catch(m){r.showToast(m instanceof Error?m.message:String(m))}return}let f=py.find(m=>m.id===c||m.name.toLowerCase()===c)?.id??(TL(c)?c:null);if(!f){r.showToast(C("slash.harness.unknown",{name:o}));return}if(!rg(f).capabilities.local){r.showToast(C("slash.harness.notLocal",{name:rg(f).name}));return}try{let m=r.driver?.currentSession;if(f==="claude-code"){let S=await r.conn.client.command("provider.list",void 0);if(!DS(f,r.providerId??m?.provider,S)){r.showToast(C("slash.harness.claudeNeedsKey"));return}}let E=await r.conn.client.command("harness.ensureInstalled",{id:f,...m?{sessionId:m.id}:{}});if(!E.localReady){r.showToast(E.detail??C("slash.harness.notReady",{name:rg(f).name,state:zL(E.install)}));return}await r.selectHarness(f),r.showToast(C("slash.harness.switched",{name:rg(f).name}))}catch(m){r.showToast(m instanceof Error?m.message:String(m))}return}case"/status":{let c=r.driver?.currentSession,u=r.providerId?` ${Tn(C("slash.status.via",{provider:r.providerId}))}`:"";r.push([`${qt(Pa)} ${ht(C("slash.status.title"))}`,...tq([[C("slash.status.version"),Rr],[C("slash.status.backend"),`${Vi.id==="production"?"production":Vi.label.toLowerCase()} \xB7 ${rm(Vi.apiBaseUrl)}`],[C("slash.status.engine"),NS(r.engine)],[C("slash.status.repo"),`${sS(r.repoPath,Math.max(20,(process.stdout.columns||80)-30))}${r.branch?` (${r.branch})`:""}`],[C("slash.status.session"),c?`${c.title} ${Tn(c.id)}`:C("slash.status.noSession")],[C("slash.status.mode"),r.mode],[C("slash.status.model"),`${r.model??C("slash.status.engineDefault")}${u}`],[C("slash.status.harness"),rg(r.harness).name]])].join(`
|
|
359
|
+
`));return}case"/help":{r.push([`${qt(Pa)} ${ht(C("slash.help.title"))}`,` ${C("slash.help.editing",{enter:Ln("enter"),ctrlJ:Ln("ctrl+j"),backslash:Ln("\\"),arrows:Ln("\u2191\u2193")})}`,` ${C("slash.help.cursor",{altArrows:Ln("alt+\u2190\u2192"),ctrlAE:Ln("ctrl+a/e"),ctrlUKW:Ln("ctrl+u/k/w")})}`,` ${C("slash.help.paste",{pasted:ht(`[${C("composer.pasted.short")}]`),ctrlO:Ln("ctrl+o")})}`,` ${C("slash.help.interrupt",{esc:Ln("esc"),shiftTab:Ln("shift+tab")})}`,` ${C("slash.help.clear",{ctrlC:Ln("ctrl+c")})}`,` ${C("slash.help.voice",{ctrlT:Ln("ctrl+t"),enter:Ln("enter"),esc:Ln("esc")})}`,` ${eq(C("slash.help.steer"))}`,` ${C("slash.help.helpers",{at:Ln("@explore")})}`,` ${C("slash.help.commands",{model:Ln("/model"),sessions:Ln("/sessions"),connectors:Ln("/connectors")})}`,...nq(60).map(c=>` ${le(c)}`)].join(`
|
|
360
|
+
`));return}}}function nq(e){let o=[];for(let{name:r}of fy){let c=o.length-1;c>=0&&o[c].length+1+r.length<=e?o[c]+=` ${r}`:o.push(r)}return o}var $7,eq,YL=L(()=>{"use strict";gB();Aw();dw();YA();Nf();Ew();Ou();vo();al();gy();Xt();Ca();$7={"built-in":"slash.harness.state.builtIn",missing:"slash.harness.state.missing",installing:"slash.harness.state.installing",ready:"slash.harness.state.ready",updating:"slash.harness.state.updating",error:"slash.harness.state.error",unsupported:"slash.harness.state.unsupported"};i(zL,"harnessStateLabel");eq=i(e=>e.replace(/\*\*(.+?)\*\*/g,(o,r)=>ht(r)),"emphasize");i(tq,"alignedRows");i(KL,"runSlashCommand");i(nq,"commandNameLines")});function qL({running:e,push:o,width:r}){let c=(0,bn.useRef)(""),u=(0,bn.useRef)({text:"",reasoningTail:"",outputs:new Map}),f=(0,bn.useRef)(new Map),m=(0,bn.useRef)(null),E=(0,bn.useRef)([]),S=(0,bn.useRef)(!1),v=(0,bn.useRef)([]),R=(0,bn.useRef)([]),N=(0,bn.useRef)(0),[b,M]=(0,bn.useState)(""),[_,k]=(0,bn.useState)(""),[H,$]=(0,bn.useState)([]),[we,Qe]=(0,bn.useState)([]),[re,Me]=(0,bn.useState)([]),Ee=(0,bn.useCallback)(()=>{$([...f.current.values()])},[]),ze=(0,bn.useCallback)(()=>{S.current=!1,Qe(E.current)},[]),ce=(0,bn.useCallback)(()=>{let oe=u.current;if(oe.text&&(c.current+=oe.text,oe.text="",M(c.current)),oe.reasoningTail&&(k(oe.reasoningTail),oe.reasoningTail=""),oe.outputs.size){for(let[et,Et]of oe.outputs){let te=f.current.get(et);te&&(te.output+=Et)}oe.outputs.clear(),Ee()}S.current&&ze()},[ze,Ee]);(0,bn.useEffect)(()=>{if(!e)return;let oe=setInterval(ce,oq);return()=>clearInterval(oe)},[e,ce]);let ae=(0,bn.useCallback)(()=>{let oe=R.current;oe.length&&(R.current=[],Me([]),o(ih(oe,{width:r})))},[o,r]),ie=(0,bn.useCallback)(()=>{ce();let oe=c.current;c.current="",M(""),oe.trim()&&(ae(),o(sl(oe.trimEnd(),r)))},[ae,ce,o,r]),ne=(0,bn.useCallback)(()=>{m.current&&(ae(),o(le(`${Pa} ${C("app.run.thoughtFor",{elapsed:wc(m.current)})}`)),m.current=null,k(""))},[ae,o]),ee=(0,bn.useCallback)((oe,et,Et)=>{ce();let te=f.current.get(oe);if(!te)return;if(f.current.delete(oe),Ee(),my.has(te.name)&&!et&&!te.changes.length){R.current=[...R.current,{name:te.name,detail:te.detail,label:te.engineLabel}],Me(R.current);return}ae();let se=E.current.filter(ut=>ut.owner===oe);if(Dc.has(te.name)&&se.length){let ut=Date.now(),wt=hy({name:te.name,label:te.engineLabel,detail:te.detail},et?"error":"done");o(Tc(ly(se,ut),{width:r,label:wt,now:ut,state:et?"error":"done"})),E.current=E.current.filter(Gt=>Gt.owner!==oe||Gt.status==="running").map(Gt=>Gt.owner===oe?{...Gt,owner:void 0}:Gt),ze();return}let De=[];if(te.changes.length)for(let ut of te.changes)De.push(eg(ut));else{let ut=et?"error":"done",wt=hy({name:te.name,label:te.engineLabel,detail:te.detail},ut);De.push(Rc(ut,wt,te.detail));let Gt=et?Et??te.output:te.output||Et||"",gt=Vm(Gt,et?5:2,!!et);gt&&De.push(gt)}o(De.join(`
|
|
361
|
+
`))},[ae,ce,o,ze,Ee,r]),Se=(0,bn.useCallback)(()=>{c.current="",u.current={text:"",reasoningTail:"",outputs:new Map},f.current=new Map,E.current=[],v.current=[],R.current=[],N.current=0,$([]),Me([]),Qe([]),M("")},[]),Je=(0,bn.useCallback)(()=>{ne(),ie();for(let oe of[...f.current.keys()])ee(oe,void 0,void 0);if(ae(),E.current.length){let oe=Date.now();o(Tc(ly(E.current,oe),{width:r,now:oe})),E.current=[],ze()}v.current.length&&(o(Xm(v.current)),v.current=[])},[ee,ae,o,ie,ne,ze,r]),ye=(0,bn.useCallback)(oe=>{m.current&&ne(),R.current.length&&!c.current&&!u.current.text&&ae(),u.current.text+=oe},[ae,ne]),qe=(0,bn.useCallback)(oe=>{m.current||(m.current=Date.now());let et=oe.split(`
|
|
362
|
+
`).filter(Boolean).pop();et&&(u.current.reasoningTail=et)},[]),ct=(0,bn.useCallback)(oe=>{if(!tg.has(oe.name)){if(ne(),ie(),my.has(oe.name)||ae(),f.current.set(oe.id,{id:oe.id,name:oe.name,label:hy(oe,"running"),engineLabel:oe.label,detail:oe.detail,output:"",changes:[]}),Dc.has(oe.name)){let et=zU(E.current,oe.id);et!==E.current&&(E.current=et,ze())}Ee()}},[ae,ie,ne,ze,Ee]),je=(0,bn.useCallback)((oe,et)=>{let Et=u.current;Et.outputs.set(oe,(Et.outputs.get(oe)??"")+et)},[]),W=(0,bn.useCallback)(oe=>ee(oe.id,oe.isError,oe.result),[ee]),it=(0,bn.useCallback)((oe,et)=>{let Et=et?f.current.get(et):void 0;Et?Et.changes.push(oe):(ae(),o(eg(oe)))},[ae,o]),yt=(0,bn.useCallback)(oe=>{let et=Date.now(),Et=oe.kind==="spawned"?[...f.current.values()].reverse().find(De=>Dc.has(De.name))?.id:void 0,te=pS(E.current,oe,et,Et);if(te===E.current)return;oe.kind==="completed"&&(N.current+=oe.usage?.total??0);let se=te.find(De=>De.id===oe.id);if(oe.kind==="completed"&&se&&!se.owner&&!se.awaitingOwner){ie(),o(Tc([se],{width:r,label:C("cards.helpers.finished"),now:et})),E.current=te.filter(De=>De.id!==oe.id),ze();return}E.current=te,oe.kind==="tool"?S.current=!0:ze()},[o,ie,ze,r]),P=(0,bn.useCallback)(oe=>{v.current=oe},[]),Ce=(0,bn.useMemo)(()=>({onText:ye,onReasoning:qe,onToolCall:ct,onToolOutput:je,onToolResult:W,onFileChange:it,onSubagent:yt}),[ye,qe,ct,je,W,it,yt]),Ve=(0,bn.useCallback)(()=>N.current,[]);return{liveText:b,reasoningTail:_,liveTools:H,helpers:we,explore:re,helperTokens:Ve,reset:Se,settleStream:Je,sealLiveText:ie,flushExplore:ae,noteTodos:P,handlers:Ce}}var bn,oq,PL=L(()=>{"use strict";bn=He(Mt(),1);fd();vo();ng();_S();al();Wm();Xt();mw();oq=50;i(qL,"useRunStream")});function MS(e){return typeof e=="string"?e.replace(iq,"").trim():""}function aq(e,o){return e.length<=o?e:`\u2026${e.slice(e.length-(o-1))}`}function sq(e,o){if(e.length<=o)return e;let r=Math.floor(o*.35),c=o-r-3;return`${e.slice(0,r)} \u2026 ${e.slice(e.length-c)}`}function lq(e){return typeof e=="string"&&rq.includes(e)?e:void 0}function cq(e){if(typeof e!="string")return;let o=e.trim();return o.length<=ig.conversationIdChars&&/^[A-Za-z0-9][A-Za-z0-9._:/-]*$/.test(o)?o:void 0}function uq(e){if(!Array.isArray(e))return[];let o=new Set,r=[];for(let c of e){let u=MS(c).replace(/\s+/g," ").slice(0,ig.termChars),f=u.toLowerCase();if(!(!u||o.has(f))&&(o.add(f),r.push(u),r.length>=ig.terms))break}return r}function Aq(e){if(!Array.isArray(e))return[];let o=[];for(let r of e){if(!r||typeof r!="object")continue;let c=r.role;if(c!=="user"&&c!=="assistant")continue;let u=MS(r.text);u&&o.push({role:c,text:sq(u,ig.turnChars)})}return o.slice(-ig.turns)}function dq(e){let o={},r=lq(e.surface);r&&(o.surface=r);let c=cq(e.conversationId);c&&(o.conversationId=c);let u=MS(e.title).replace(/\s+/g," ").slice(0,ig.titleChars);u&&(o.title=u);let f=MS(e.draft);f&&(o.draft=aq(f,ig.draftChars));let m=Aq(e.turns);m.length&&(o.turns=m);let E=uq(e.terms);return E.length&&(o.terms=E),fq(o)?null:o}function fq(e){return!e||!e.surface&&!e.conversationId&&!e.title&&!e.draft&&!e.turns?.length&&!e.terms?.length}function JL(e){let o=e.turns?.slice(-gq).map(r=>({role:r.role,text:r.text??r.content}));return dq({...e,turns:o})}var rq,ig,iq,gq,jL=L(()=>{"use strict";rq=["chat","cowork","code","quick-entry","routine","other"],ig={conversationIdChars:128,titleChars:120,draftChars:1e3,turns:3,turnChars:600,terms:30,termChars:64,wireChars:6e3},iq=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g;i(MS,"cleanText");i(aq,"tail");i(sq,"ends");i(lq,"surfaceOf");i(cq,"conversationIdOf");i(uq,"termsOf");i(Aq,"turnsOf");i(dq,"clamp");i(fq,"dictationContextIsEmpty");gq=12;i(JL,"buildDictationContext")});function VL(e,o=16e3){let r=e.length*2,c=Buffer.alloc(44+r);return c.write("RIFF",0,"ascii"),c.writeUInt32LE(36+r,4),c.write("WAVE",8,"ascii"),c.write("fmt ",12,"ascii"),c.writeUInt32LE(16,16),c.writeUInt16LE(1,20),c.writeUInt16LE(1,22),c.writeUInt32LE(o,24),c.writeUInt32LE(o*2,28),c.writeUInt16LE(2,32),c.writeUInt16LE(16,34),c.write("data",36,"ascii"),c.writeUInt32LE(r,40),Buffer.from(e.buffer,e.byteOffset,r).copy(c,44),c}var XL=L(()=>{"use strict";i(VL,"encodeWav16")});var ZL=L(()=>{"use strict"});import{accessSync as pq,constants as mq,statSync as hq}from"node:fs";import WL from"node:path";function Eq(){return(process.env.PATHEXT??".COM;.EXE;.BAT;.CMD").split(";").map(e=>e.trim().toLowerCase()).filter(Boolean)}function Cq(e){try{return hq(e).isFile()?(process.platform!=="win32"&&pq(e,mq.X_OK),!0):!1}catch{return!1}}function Cw(e){if(e.includes("/")||e.includes("\\"))return e;let o=$L.get(e);if(o)return o;let r=(process.env.PATH??"").split(WL.delimiter).filter(Boolean),c=process.platform==="win32",u=c?Eq():[""],f=c&&u.some(m=>e.toLowerCase().endsWith(m));for(let m of r)for(let E of u){let S=WL.join(m,f||!c?e:e+E);if(Cq(S))return $L.set(e,S),S}return e}var $L,yw=L(()=>{"use strict";$L=new Map;i(Eq,"windowsExts");i(Cq,"isExecutableFile");i(Cw,"resolveBinaryOnPath")});var qce,Pce,eG=L(()=>{"use strict";qce=16/9,Pce=16/9});var tG=L(()=>{"use strict"});function nG(e=process.platform,o=process.arch){return`${e==="darwin"?"mac":e==="win32"?"win":"linux"}-${o}`}var sue,lue,oG=L(()=>{"use strict";ZL();yw();eG();tG();sue=process.platform==="win32"?".exe":"";i(nG,"ffmpegBundleDir");lue=10*6e4});import{spawn as yq,spawnSync as Iq}from"node:child_process";import{existsSync as aG}from"node:fs";import Bq from"node:os";import Ey from"node:path";function Iw(e,o,r){let c=["-ac","1","-ar",String(Nc),"-f","s16le","pipe:1"];switch(e){case"ffmpeg":return["-hide_banner","-loglevel","error","-nostdin",...o==="darwin"?["-f","avfoundation","-i",":default"]:o==="win32"?["-f","dshow","-i",`audio=${r??""}`]:["-f","alsa","-i","default"],...c];case"sox":return["-q",...o==="win32"?["-t","waveaudio","default"]:["-d"],"-t","raw","-r",String(Nc),"-e","signed-integer","-b","16","-c","1","-"];case"parecord":return["--raw",`--rate=${Nc}`,"--channels=1","--format=s16le"];case"arecord":return["-q","-f","S16_LE","-r",String(Nc),"-c","1","-t","raw"]}}function Sq(e){let o=e.match(/"([^"]+)"\s*\(audio\)/);if(o)return o[1];let r=e.split(/DirectShow audio devices/i)[1];if(r)for(let c of r.split(/\r?\n/)){if(/Alternative name/i.test(c))continue;let u=c.match(/"([^"]+)"/);if(u)return u[1]}}function vq(e=process.platform,o=process.arch,r=process.env,c=Bq.homedir()){let u=nG(e,o);return e==="darwin"?["More AI","More AI Dev"].flatMap(f=>["/Applications",Ey.join(c,"Applications")].map(m=>Ey.join(m,`${f}.app`,"Contents","Resources","ffmpeg",u,"ffmpeg"))):e==="win32"&&r.LOCALAPPDATA?["More AI","more-ai"].map(f=>Ey.join(r.LOCALAPPDATA,"Programs",f,"resources","ffmpeg",u,"ffmpeg.exe")):[]}function Qq(e=process.env){let o=(e.MOREAI_VOICE_RECORDER??"").trim().split(/\s+/).filter(Boolean);return o.length?{kind:"custom",command:o[0],args:o.slice(1)}:null}function bq(e){let o=Cw(e);return Ey.isAbsolute(o)&&aG(o)?o:null}function sG(e){let o=Qq();if(o)return o;let r=process.platform,c=i(f=>{if(r!=="win32")return{kind:"ffmpeg",command:f,args:Iw("ffmpeg",r)};let m=Iq(f,["-hide_banner","-list_devices","true","-f","dshow","-i","dummy"],{encoding:"utf8",timeout:5e3,windowsHide:!0}),E=Sq(`${m.stderr??""}${m.stdout??""}`);return E?{kind:"ffmpeg",command:f,args:Iw("ffmpeg",r,E)}:null},"withDevice"),u=[e,...vq()].find(f=>!!f&&aG(f));if(u){let f=c(u);if(f)return f}for(let f of rG[r]??rG.linux){let m=bq(f);if(!m)continue;let E=f==="ffmpeg"?c(m):{kind:f,command:m,args:Iw(f,r)};if(E)return E}return null}function Rq(e){Bw.add(e),e.once("close",()=>Bw.delete(e)),!iG&&(iG=!0,process.once("exit",()=>{for(let o of Bw)o.kill("SIGKILL")}))}function lG(e,o,r){let c=yq(e.command,e.args,{stdio:["ignore","pipe","pipe"],windowsHide:!0});Rq(c);let u=[],f=null,m="",E=!1;c.stdout.on("data",R=>{let N=f?Buffer.concat([f,R]):R,b=N.length-N.length%2;if(f=b<N.length?N.subarray(b):null,!b)return;let M=new Int16Array(b/2);new Uint8Array(M.buffer).set(N.subarray(0,b)),u.push(M),o(M)}),c.stderr.on("data",R=>{m=(m+R.toString("utf8")).slice(-2e3)}),c.once("error",R=>{E||r(R.message)}),c.once("exit",(R,N)=>{if(E)return;let b=m.trim().split(/\r?\n/).pop();r(b||`${Ey.basename(e.command)} exited (${N??R})`)});let S=new Promise(R=>c.once("close",()=>R())),v=i(async()=>{E=!0,c.exitCode===null&&c.signalCode===null&&c.kill("SIGTERM");let R=setTimeout(()=>c.kill("SIGKILL"),2e3);await S,clearTimeout(R)},"end");return{async stop(){await v();let R=u.reduce((M,_)=>M+_.length,0),N=new Int16Array(R),b=0;for(let M of u)N.set(M,b),b+=M.length;return N},cancel(){v(),u.length=0}}}var Nc,rG,Bw,iG,Sw=L(()=>{"use strict";oG();yw();Nc=16e3;i(Iw,"recorderArgs");i(Sq,"firstDshowAudioDevice");i(vq,"appFfmpegCandidates");i(Qq,"customRecorder");i(bq,"onPath");rG={darwin:["ffmpeg","sox"],win32:["ffmpeg","sox"],linux:["parecord","arecord","ffmpeg","sox"]};i(sG,"findRecorder");Bw=new Set,iG=!1;i(Rq,"killOnExit");i(lG,"startCapture")});function Tq(e){if(!e.length)return 0;let o=0;for(let u of e)o+=u*u;let r=Math.sqrt(o/e.length)/32768;if(r<=0)return 0;let c=20*Math.log10(r);return Math.min(1,Math.max(0,(c-cG)/(Dq-cG)))}function uG(e){return OS[Math.round(Math.min(1,Math.max(0,e))*(OS.length-1))]}var wq,xq,cG,Dq,OS,HS,vw=L(()=>{"use strict";Sw();wq=80,xq=Nc*wq/1e3,cG=-55,Dq=-12,OS=["\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];i(Tq,"loudness");i(uG,"barGlyph");HS=class{constructor(o){this.width=o}width;static{i(this,"LevelMeter")}pending=[];bars=[];samples=0;nonZero=!1;push(o){for(let r of o)r!==0&&(this.nonZero=!0),this.pending.push(r),this.pending.length>=xq&&(this.bars.push(Tq(Int16Array.from(this.pending))),this.bars.length>this.width&&this.bars.shift(),this.pending=[]);this.samples+=o.length}levels(){return this.bars}elapsedMs(){return Math.round(this.samples/Nc*1e3)}digitalSilence(){return this.samples>0&&!this.nonZero}}});function Nq(e=process.env){let o={Apple_Terminal:"Terminal","iTerm.app":"iTerm",vscode:"Visual Studio Code",WezTerm:"WezTerm",ghostty:"Ghostty",WarpTerminal:"Warp",Hyper:"Hyper"};return e.TERM_PROGRAM?o[e.TERM_PROGRAM]??e.TERM_PROGRAM:void 0}function fG(){let e=Nq()??C("voice.yourTerminal");return process.platform==="darwin"?C("voice.hint.macPermission",{app:e}):process.platform==="win32"?C("voice.hint.windowsPermission",{app:e}):C("voice.hint.linuxPermission")}function Mq(){let e=process.platform==="darwin"?C("voice.hint.installMac"):process.platform==="win32"?C("voice.hint.installWindows"):C("voice.hint.installLinux");return`${C("voice.noRecorder")} ${e}`}function Cy(e,o){switch(e){case"no-provider":case"no-key":case"unknown-provider":return C("voice.notSetUp");case"no-account":return C("voice.signIn");case"out-of-minutes":return C("voice.outOfMinutes");case"local-not-ready":case"local-engine-missing":case"local-model-missing":case"no-model":return C("voice.localNotReady");case"unknown-command":return C("voice.engineTooOld");default:return C("voice.failed",{message:Hq(o||e||"?",Oq)})}}function pG(e){let[o,r]=(0,Ia.useState)({kind:"idle"}),c=(0,Ia.useRef)(o),u=(0,Ia.useRef)(0),f=(0,Ia.useRef)(null),m=(0,Ia.useRef)(null),E=(0,Ia.useRef)(null),S=(0,Ia.useRef)(null),v=(0,Ia.useRef)(null),R=(0,Ia.useRef)(void 0),N=(0,Ia.useRef)(0),b=(0,Ia.useRef)(e);b.current=e;let M=i(ce=>{c.current=ce,r(ce)},"setPhase"),_=i(()=>{E.current&&clearInterval(E.current),E.current=null},"stopTicking"),k=i((ce,ae={})=>{Zi(b.current.deps?.client(),"cli_voice_take",{outcome:ce,...S.current?{recorder:S.current}:{},...ae})},"report"),H=i((ce,ae=!1)=>{_(),f.current?.cancel(),f.current=null,M({kind:"failed",message:ce,canRetry:ae})},"fail"),$=i((ce,ae,ie)=>{if(ae!==u.current)return;if(ce.ok){v.current=null;let ee=ce.text.trim(),Se=ce.route?{route:ce.route}:{};if(!ee){H(C("voice.nothingHeard")),k("failed",{seconds:ie,code:"empty",...Se});return}b.current.onText(ee),M({kind:"idle"}),k("inserted",{seconds:ie,...Se});return}v.current=ce.recordingId??null;let ne=Cy(ce.code,ce.message);H(v.current?`${ne} ${C("voice.retryHint")}`:ne,!!v.current),k("failed",{seconds:ie,code:ce.code})},"settle"),we=i(()=>JL({...b.current.deps?.scene(),surface:"code",draft:b.current.draft()}),"context"),Qe=i(async()=>{let ce=++u.current;v.current=null,S.current=null,R.current=void 0,M({kind:"starting"});let ae=b.current.deps?.client();if(!ae?.isConnected()){H(C("voice.noEngine"));return}let ie;try{ie=await ae.command("stt.status",void 0)}catch(Se){ce===u.current&&H(Cy(kS(Se)?Se.code:void 0,String(Se?.message??Se)));return}if(ce!==u.current)return;if(!ie.ready){H(Cy(ie.code)),k("not-ready",ie.code?{code:ie.code}:{});return}R.current=ie.selection;let ne=sG(ie.recorder);if(!ne){H(Mq()),k("no-recorder");return}S.current=ne.kind;let ee=new HS(b.current.meterWidth);m.current=ee,f.current=lG(ne,Se=>ee.push(Se),Se=>{ce!==u.current||c.current.kind!=="recording"||(H(`${C("voice.micFailed",{reason:Se})} ${fG()}`),k("failed",{code:"recorder-exited"}))}),N.current=Date.now(),M({kind:"recording",levels:[],elapsedMs:0,silent:!1}),E.current=setInterval(()=>{if(ce!==u.current||c.current.kind!=="recording")return;let Se=Math.max(ee.elapsedMs(),Date.now()-N.current);if(Se>=US){re();return}M({kind:"recording",levels:[...ee.levels()],elapsedMs:Se,silent:Se>=dG&&(ee.digitalSilence()||ee.elapsedMs()===0)})},_q)},"start"),re=i(async()=>{if(c.current.kind!=="recording"||!f.current)return;let ce=u.current,ae=f.current,ie=m.current;f.current=null,_();let ne=Math.max(ie?.elapsedMs()??0,Date.now()-N.current);M({kind:"transcribing",elapsedMs:ne});let ee=(await ae.stop()).subarray(0,US*Nc/1e3);if(ce!==u.current)return;let Se=Math.round(ee.length/Nc*1e3),Je=Math.round(Se/1e3);if(Se>=AG&&ie?.digitalSilence()||!ee.length&&ne>=dG){H(`${C("voice.noSound")} ${fG()}`),k("silent",{seconds:Je});return}if(Se<AG){M({kind:"idle"}),k("too-short");return}let ye=b.current.deps?.client();if(!ye?.isConnected()){H(C("voice.noEngine"));return}try{let qe=await ye.command("stt.transcribe",{...R.current,audio:VL(ee).toString("base64"),mime:"audio/wav",durationMs:Se,context:we()});$(qe,ce,Je)}catch(qe){if(ce!==u.current)return;H(Cy(kS(qe)?qe.code:void 0,String(qe?.message??qe))),k("failed",{seconds:Je,code:kS(qe)?qe.code:"error"})}},"finish"),Me=i(async()=>{let ce=v.current,ae=b.current.deps?.client();if(!ce||!ae?.isConnected())return;let ie=++u.current;M({kind:"transcribing",elapsedMs:0});try{$(await ae.command("stt.retranscribe",{id:ce,context:we()}),ie,0)}catch(ne){ie===u.current&&H(Cy(kS(ne)?ne.code:void 0,String(ne?.message??ne)),!0)}},"retry"),Ee=i(()=>{let ce=c.current.kind;ce!=="idle"&&(u.current+=1,_(),f.current?.cancel(),f.current=null,v.current=null,M({kind:"idle"}),(ce==="recording"||ce==="starting")&&k("cancelled"))},"cancel"),ze=i(()=>{switch(c.current.kind){case"idle":Qe();return;case"recording":re();return;case"failed":v.current?Me():Qe();return;default:return}},"toggle");return(0,Ia.useEffect)(()=>()=>{u.current+=1,_(),f.current?.cancel()},[]),{phase:o,busy:o.kind!=="idle",toggle:ze,finish:i(()=>{re()},"finish"),cancel:Ee}}var Ia,US,gG,AG,dG,_q,Oq,Hq,kS,Qw=L(()=>{"use strict";Ia=He(Mt(),1);jL();XL();Ou();Xt();Sw();vw();US=12e4,gG=1e4,AG=400,dG=1500,_q=100;i(Nq,"terminalAppName");i(fG,"micPermissionHint");i(Mq,"noRecorderMessage");Oq=120,Hq=i((e,o)=>e.length>o?`${e.slice(0,o-1)}\u2026`:e,"clip");i(Cy,"failureMessage");kS=i(e=>!!e&&typeof e=="object"&&typeof e.code=="string","isRuntimeError");i(pG,"useVoiceInput")});function mG(e){let o=Math.floor(e/1e3);return`${Math.floor(o/60)}:${String(o%60).padStart(2,"0")}`}function kq(e,o){let r=e.slice(-o);return{baseline:OS[0].repeat(Math.max(0,o-r.length)),bars:r.map(uG).join("")}}function hG(e){switch(e.kind){case"recording":return C("voice.hint.recording");case"starting":case"transcribing":return C("voice.hint.waiting");case"failed":return e.canRetry?C("voice.hint.failedRetry"):C("voice.hint.failed");default:return""}}function EG(e){let{phase:o}=e,r=o.kind==="starting"||o.kind==="transcribing",[c,u]=(0,LS.useState)(0);(0,LS.useEffect)(()=>{if(!r)return;let m=setInterval(()=>u(E=>E+1),120);return()=>clearInterval(m)},[r]);let f=ku[c%ku.length];if(o.kind==="recording"){let m=US-o.elapsedMs,E=m<=gG,S=Math.floor(o.elapsedMs/500)%2===0,v=kq(o.levels,e.meterWidth);return(0,Ei.jsxs)(O,{wrap:"truncate",children:[(0,Ei.jsx)(O,{color:"red",dimColor:!S,children:"\u25CF"}),(0,Ei.jsx)(O,{color:E?"yellow":void 0,children:` ${mG(o.elapsedMs)} `}),o.silent?(0,Ei.jsx)(O,{color:"yellow",children:C("voice.noSoundYet")}):(0,Ei.jsxs)(Ei.Fragment,{children:[(0,Ei.jsx)(O,{dimColor:!0,children:v.baseline}),(0,Ei.jsx)(O,{color:"#ff875f",children:v.bars})]}),E?(0,Ei.jsx)(O,{color:"yellow",children:` ${C("voice.left",{seconds:Math.max(0,Math.ceil(m/1e3))})}`}):null]})}return o.kind==="starting"?(0,Ei.jsx)(O,{dimColor:!0,children:`${f} ${C("voice.starting")}`}):o.kind==="transcribing"?(0,Ei.jsxs)(O,{children:[(0,Ei.jsx)(O,{color:"#ff875f",children:f}),` ${C("voice.transcribing")}`,o.elapsedMs?(0,Ei.jsx)(O,{dimColor:!0,children:` (${mG(o.elapsedMs)})`}):null]}):o.kind==="failed"?(0,Ei.jsx)(O,{color:"red",children:`\u2715 ${o.message}`}):(0,Ei.jsx)(O,{children:" "})}var LS,Ei,CG=L(async()=>{"use strict";LS=He(Mt(),1);await Er();Xt();al();vw();Qw();Ei=He(Qn(),1);i(mG,"clock");i(kq,"meterLine");i(hG,"voiceHint");i(EG,"VoiceBar")});function GS(e){return e.replace(/\r\n?/g,`
|
|
363
|
+
`).replace(/\x1b\[[0-9;?]*[ -/]*[@-~]/g,"").replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g,"").replace(/[\x00-\x08\x0b-\x1f\x7f]/g,"").replace(/\t/g," ")}function Gq(e){if(e.length>Uq)return!0;let o=1;for(let r=0;r<e.length;r++)if(e[r]===`
|
|
364
|
+
`&&++o>Lq)return!0;return!1}function Fq(e,o){let r=e.split(`
|
|
365
|
+
`).length,c=za()==="en"?"en-US":za(),u=r>1?C("composer.pasted.lines",{count:r,n:r.toLocaleString(c)}):C("composer.pasted.chars",{count:e.length,n:e.length.toLocaleString(c)});return`[${C("composer.pasted.label",{n:o})} \xB7 ${u}]`}function ag(e){let o=[];for(let r of Object.keys(e.pastes))for(let c=e.value.indexOf(r);c!==-1;c=e.value.indexOf(r,c+r.length))o.push({start:c,end:c+r.length,label:r});return o.sort((r,c)=>r.start-c.start)}function Rw(e){let o={};for(let[r,c]of Object.entries(e.pastes))e.value.includes(r)&&(o[r]=c);return Object.keys(o).length===Object.keys(e.pastes).length?e:{...e,pastes:o}}function yy(e,o){let r=e.value.slice(0,e.cursor)+o+e.value.slice(e.cursor);return{...e,value:r,cursor:e.cursor+o.length,burst:void 0}}function IG(e,o){let r=o.trim();if(!r)return e;let c=e.value.slice(0,e.cursor),u=e.value.slice(e.cursor),f=c&&!/\s$/.test(c)&&!yG.test(r)?" ":"",m=u&&!/^\s/.test(u)&&!yG.test(u)?" ":"";return yy(e,f+r+m)}function ww(e,o,r){let c=GS(o);if(!c)return e;let u=e.burst,f=!!u&&r-u.at<bw&&u.end===e.cursor&&(u.label?e.value.slice(u.start,u.end)===u.label:!0),m=f?u.start:e.cursor,E=e.value.slice(0,m),S=e.value.slice(f?u.end:e.cursor),v=f?u.raw+c:c,R=e.pastes;if(f&&u.label&&(R={...R},delete R[u.label]),!Gq(v)){let k=E+v+S,H=m+v.length;return{...e,value:k,cursor:H,pastes:R,burst:{start:m,end:H,raw:v,at:r}}}let N=f&&u.label?e.pasteSeq:e.pasteSeq+1,b=Fq(v,N),M=E+b+S,_=m+b.length;return{...e,value:M,cursor:_,pastes:{...R,[b]:v},pasteSeq:N,burst:{start:m,end:_,raw:v,label:b,at:r}}}function BG(e){if(e.cursor===0)return{...e,burst:void 0};let o=ag(e).find(u=>u.end===e.cursor||u.start<e.cursor&&e.cursor<u.end),r=o?o.start:e.cursor-1,c=o?o.end:e.cursor;return Rw({...e,value:e.value.slice(0,r)+e.value.slice(c),cursor:r,burst:void 0})}function xw(e){if(e.cursor>=e.value.length)return e;let o=ag(e).find(u=>u.start===e.cursor||u.start<e.cursor&&e.cursor<u.end),r=o?o.start:e.cursor,c=o?o.end:e.cursor+1;return Rw({...e,value:e.value.slice(0,r)+e.value.slice(c),cursor:r,burst:void 0})}function lh(e,o,r,c=""){let u=e.value.slice(0,o)+c+e.value.slice(r);return Rw({...e,value:u,cursor:o+c.length,burst:void 0})}function Fu(e,o,r=1){let c=Math.max(0,Math.min(e.value.length,o)),u=ag(e).find(f=>f.start<c&&c<f.end);return u&&(c=r<0?u.start:u.end),{...e,cursor:c,burst:void 0}}function SG(e){let o=ag(e).find(c=>c.start<=e.cursor&&e.cursor<=c.end);if(!o)return null;let r=e.pastes[o.label]??"";return lh(e,o.start,o.end,r)}function Iy(e){let o=e.value;for(let r of ag(e).reverse())o=o.slice(0,r.start)+(e.pastes[r.label]??"")+o.slice(r.end);return o}function FS(e,o){let r=o;for(;r>0&&/\s/.test(e[r-1]);)r--;if(r>0&&ah(e[r-1]))for(;r>0&&ah(e[r-1]);)r--;else for(;r>0&&!/\s/.test(e[r-1])&&!ah(e[r-1]);)r--;return r}function Dw(e,o){let r=o;for(;r<e.length&&/\s/.test(e[r]);)r++;if(r<e.length&&ah(e[r]))for(;r<e.length&&ah(e[r]);)r++;else for(;r<e.length&&!/\s/.test(e[r])&&!ah(e[r]);)r++;return r}function Tw(e,o){let r=Math.max(1,o),c=[],u=0;for(;;){let f=e.indexOf(`
|
|
366
|
+
`,u),m=f===-1?e.length:f,E=u;for(E===m&&c.push({start:E,end:E});E<m;){let S=0,v=E,R=-1;for(;v<m;){let b=e.codePointAt(v)??0,M=String.fromCodePoint(b),_=vG(M);if(S+_>r&&v>E)break;S+=_,M===" "&&(R=v),v+=M.length}let N=v;v<m&&R>E&&(N=R+1),c.push({start:E,end:N}),E=N}if(f===-1)break;u=f+1}return c}function zS(e,o,r){for(let u=0;u<o.length;u++){let f=o[u],m=o[u+1],E=!!m&&m.start===f.end;if(r>=f.start&&(r<f.end||r===f.end&&!E))return{row:u,col:Ot(e.slice(f.start,r))}}let c=o.length-1;return{row:Math.max(0,c),col:Ot(e.slice(o[c]?.start??0,r))}}function zq(e,o,r){let c=0;for(let u=o.start;u<o.end;){let f=String.fromCodePoint(e.codePointAt(u)??0),m=vG(f);if(c+m>r)return u;c+=m,u+=f.length}return o.end>o.start&&e[o.end-1]===" "&&e[o.end]!==`
|
|
367
|
+
`&&o.end<e.length?o.end-1:o.end}function QG(e,o,r,c,u){let{row:f}=zS(e,o,r),m=f+c;return m<0||m>=o.length?null:zq(e,o[m],u)}function bG(e,o,r,c){if(o<=r)return 0;let u=Math.max(0,Math.min(c,o-r));return e<u&&(u=e),e>=u+r&&(u=e-r+1),u}var Uq,Lq,bw,sh,yG,ah,vG,_w=L(()=>{"use strict";Ca();Xt();Uq=800,Lq=8,bw=150,sh=i(()=>({value:"",cursor:0,pastes:{},pasteSeq:0}),"emptyEditor");i(GS,"cleanPaste");i(Gq,"isLargePaste");i(Fq,"pasteLabel");i(ag,"pasteRanges");i(Rw,"prune");i(yy,"insertText");yG=/^[,.;:!?)\]}…]/;i(IG,"insertSpoken");i(ww,"applyPaste");i(BG,"deleteBack");i(xw,"deleteForward");i(lh,"replaceRange");i(Fu,"moveCursor");i(SG,"expandPasteAtCursor");i(Iy,"expandedValue");ah=i(e=>!!e&&/[\p{L}\p{N}_]/u.test(e),"isWordChar");i(FS,"wordLeft");i(Dw,"wordRight");vG=i(e=>e.charCodeAt(0)<127?1:Math.max(0,Ot(e)),"charWidth");i(Tw,"layoutRows");i(zS,"cursorPosition");i(zq,"indexAtColumn");i(QG,"verticalMove");i(bG,"viewportStart")});import Kq from"node:fs";function Yq(e,o){return o<=KS?0:Math.min(Math.max(0,e-Math.floor(KS/2)),o-KS)}function qq(e){return Math.max(3,Math.min(14,Math.floor(e/3)))}function RG(e){let o=(0,Di.useRef)(sh()),r=(0,Di.useRef)(0),c=(0,Di.useRef)(!1),u=(0,Di.useRef)(null),f=(0,Di.useRef)(null),m=(0,Di.useRef)(null),E=(0,Di.useRef)(null),S=(0,Di.useRef)(0),v=(0,Di.useRef)(0),[R,N]=(0,Di.useState)(o.current),[b,M]=(0,Di.useState)(0),[_,k]=(0,Di.useState)(!1),[H,$]=(0,Di.useState)(!1),we=Math.max(8,e.width-6),Qe=Math.max(8,Math.min(48,we-24)),re=pG({deps:e.voice,draft:i(()=>Iy(o.current),"draft"),onText:i(te=>Ee(IG(o.current,te)),"onText"),meterWidth:Qe});(0,Di.useEffect)(()=>{e.hidden&&re.busy&&re.cancel()},[e.hidden]);let Me=i(()=>{N(o.current),M(r.current),k(c.current)},"sync"),Ee=i((te,se)=>{let De=te.value!==o.current.value;o.current=te,De&&(r.current=0,c.current=!1,se?.keepHistory||(u.current=null,f.current=null)),se?.keepColumn||(E.current=null),v.current=0,$(!1),Me(),e.ctrlCArmed&&e.onCtrlCArm(!1)},"commit"),ze=i((te,se)=>Ee({...sh(),value:te,cursor:te.length,pasteSeq:o.current.pasteSeq},se),"setDraft"),ce=i(()=>{u.current=null,f.current=null,m.current=null,Ee({...sh(),pasteSeq:o.current.pasteSeq})},"reset"),ae=i(te=>{let se=Iy(te),De=te.value;if(ce(),bS(se)?.command==="/voice"){re.toggle();return}e.onSubmit(se,De)},"submit"),ie=i(te=>{let se=e.historyEntries;if(!se.length)return!1;if(te<0)if(u.current===null)m.current=o.current,u.current=se.length-1;else if(u.current>0)u.current-=1;else return!0;else{if(u.current===null)return!1;if(u.current<se.length-1)u.current+=1;else{u.current=null,f.current=null;let ut=m.current??sh();return m.current=null,Ee(ut,{keepHistory:!0}),!0}}let De=se[u.current];return f.current=De,ze(De,{keepHistory:!0}),!0},"recallHistory"),ne=i(()=>{let te=o.current.value;return!te||f.current!==null&&te===f.current},"historyAllowed");if(vc(te=>{Ee(ww(o.current,te,Date.now()))},{isActive:e.active&&!e.hidden}),wo((te,se)=>{let De=o.current,ut=De.value,wt=De.cursor,Gt=iw(ut),gt=Gt.length>0&&!c.current,Ie=Gt[Math.min(r.current,Gt.length-1)];if(process.env.MOREAI_DEBUG_INPUT){let tt=Object.entries(se).filter(([,_t])=>_t===!0).map(([_t])=>_t).join(",");Kq.appendFileSync(process.env.MOREAI_DEBUG_INPUT,`input=${JSON.stringify(te)} keys=[${tt}] value=${JSON.stringify(ut)}
|
|
368
|
+
`)}if(re.busy){let tt=re.phase.kind;if(se.escape||se.ctrl&&te==="c"){re.cancel();return}if(se.ctrl&&te==="t"){re.toggle();return}if(tt==="recording"&&se.return){re.finish();return}if(tt!=="failed")return;re.cancel()}else if(se.ctrl&&te==="t"){re.toggle();return}if(se.ctrl&&te==="c"){if(ut){e.onStash(Iy(De)),ce();return}if(e.ctrlCArmed){e.onExit();return}e.onCtrlCArm(!0);return}if(se.ctrl&&te==="d"){ut?Ee(xw(De)):e.onExit();return}if(se.escape){if(gt){c.current=!0,Me();return}if(e.running){e.onAbort();return}if(!ut)return;let tt=Date.now();if(v.current&&tt-v.current<1500){e.onStash(Iy(De)),ce();return}v.current=tt,$(!0),setTimeout(()=>{v.current===tt&&(v.current=0,$(!1))},1500);return}if(se.tab&&se.shift){e.onModeCycle();return}if(gt&&(se.upArrow||se.downArrow)){let tt=se.upArrow?-1:1;r.current=(r.current+tt+Gt.length)%Gt.length,Me();return}if(gt&&se.tab){Ie&&ze(`${Ie.name} `);return}let Ne=Date.now(),at=!!De.burst&&Ne-De.burst.at<bw&&De.cursor===De.burst.end;if(te&&!se.ctrl&&!se.meta&&!se.return&&(Pq(te)||at)){Ee(ww(De,te,Ne));return}if(se.return){if(se.shift||se.meta){Ee(yy(De,`
|
|
369
|
+
`));return}if(wt===ut.length&&ut.endsWith("\\")){Ee(lh(De,ut.length-1,ut.length,`
|
|
370
|
+
`));return}if(gt&&Ie){let tt=ut.split(/\s/,1)[0];if(tt!==Ie.name&&!Ie.args){ae({...sh(),value:Ie.name,cursor:Ie.name.length});return}if(tt!==Ie.name&&Ie.args){ze(`${Ie.name} `);return}}ut.trim()&&ae(De);return}if(te===`
|
|
371
|
+
`&&!se.return){Ee(yy(De,`
|
|
372
|
+
`));return}if(se.ctrl&&te==="o"){let tt=SG(De);tt&&Ee(tt);return}if(se.upArrow||se.downArrow){let tt=se.upArrow?-1:1,_t=Tw(ut,we),Gn=zS(ut,_t,wt),In=E.current??Gn.col,No=QG(ut,_t,wt,tt,In);if(No!==null){Ee(Fu(De,No,tt),{keepColumn:!0,keepHistory:!0}),E.current=In;return}if(ne()&&ie(tt))return;Ee(Fu(De,tt<0?0:ut.length,tt),{keepHistory:!0});return}let kt=se.meta||se.ctrl;if(se.leftArrow){Ee(Fu(De,kt?FS(ut,wt):wt-1,-1),{keepHistory:!0});return}if(se.rightArrow){Ee(Fu(De,kt?Dw(ut,wt):wt+1,1),{keepHistory:!0});return}if(se.meta&&te==="b"){Ee(Fu(De,FS(ut,wt),-1),{keepHistory:!0});return}if(se.meta&&te==="f"){Ee(Fu(De,Dw(ut,wt),1),{keepHistory:!0});return}let be=ut.lastIndexOf(`
|
|
373
|
+
`,wt-1)+1,Te=ut.indexOf(`
|
|
374
|
+
`,wt),fe=Te===-1?ut.length:Te;if(se.ctrl&&te==="a"||se.home){Ee(Fu(De,be,-1),{keepHistory:!0});return}if(se.ctrl&&te==="e"||se.end){Ee(Fu(De,fe,1),{keepHistory:!0});return}if(se.ctrl&&te==="u"){Ee(lh(De,be,wt));return}if(se.ctrl&&te==="k"){Ee(lh(De,wt,fe===wt&&wt<ut.length?wt+1:fe));return}if(se.ctrl&&te==="w"||se.meta&&se.backspace){Ee(lh(De,FS(ut,wt),wt));return}if(se.backspace){Ee(BG(De));return}if(se.delete){Ee(xw(De));return}if(te&&!se.ctrl&&!se.meta){let tt=te.replace(/\r/g,`
|
|
375
|
+
`).replace(/[\x00-\x09\x0b-\x1f\x7f]/g,"");tt&&Ee(yy(De,tt))}},{isActive:e.active&&!e.hidden}),e.hidden)return null;let{value:ee,cursor:Se}=R,Je=iw(ee),ye=Je.length>0&&!_&&!re.busy,qe=Math.min(b,Math.max(0,Je.length-1)),ct=e.running?C("composer.placeholder.running"):C("composer.placeholder.idle"),je=Tw(ee,we),W=zS(ee,je,Se),it=qq(e.terminalRows),yt=bG(W.row,je.length,it,S.current);S.current=yt;let P=je.slice(yt,yt+it),Ce=je.length-yt-P.length,Ve=ag(R),oe=Ve.length>0,et=i(te=>{let se=je[te],De=[],ut=te===W.row,wt=se.start,Gt=i((gt,Ie,Ne)=>{gt&&De.push((0,io.jsx)(O,{inverse:Ie.cursor,color:Ie.paste?"cyan":void 0,children:gt},Ne))},"push");for(;wt<se.end;){let gt=Ve.find(at=>at.start<=wt&&wt<at.end),Ie=Math.min(se.end,gt?gt.end:Ve.find(at=>at.start>wt)?.start??se.end),Ne=ut&&Se>=wt&&Se<Ie?Se:Ie;if(Gt(ee.slice(wt,Ne),{paste:!!gt},`t${wt}`),ut&&Ne===Se&&Se<se.end){let at=String.fromCodePoint(ee.codePointAt(Se)??32);Gt(at,{paste:!!gt,cursor:!0},`c${Se}`),wt=Se+at.length}else wt=Ne}return ut&&Se===se.end&&Gt(" ",{cursor:!0},"eol"),(0,io.jsx)(O,{wrap:"truncate",children:De.length?De:" "},`r${te}`)},"paintRow"),Et=H?C("composer.hint.escAgain"):e.running?C("composer.hint.running"):oe?C("composer.hint.paste"):C("composer.hint.idle");return(0,io.jsxs)(Rt,{flexDirection:"column",children:[(0,io.jsxs)(Rt,{borderStyle:"round",borderColor:re.phase.kind==="recording"?"red":e.running?"yellow":e.active?"#ff875f":"gray",paddingX:1,flexDirection:"row",children:[(0,io.jsx)(O,{color:"#ff875f",children:`${LR} `}),re.busy?(0,io.jsx)(Rt,{flexGrow:1,children:(0,io.jsx)(EG,{phase:re.phase,meterWidth:Qe})}):ee?(0,io.jsxs)(Rt,{flexDirection:"column",flexGrow:1,children:[yt>0?(0,io.jsx)(O,{dimColor:!0,children:`\u2191 ${C("composer.moreLines",{count:yt})}`}):null,P.map((te,se)=>et(yt+se)),Ce>0?(0,io.jsx)(O,{dimColor:!0,children:`\u2193 ${C("composer.moreLines",{count:Ce})}`}):null]}):(0,io.jsxs)(O,{children:[(0,io.jsx)(O,{inverse:!0,children:" "}),(0,io.jsx)(O,{dimColor:!0,children:ct})]})]}),re.busy?(0,io.jsx)(O,{dimColor:!0,wrap:"truncate",children:hG(re.phase)}):(!ee||oe||H)&&!ye&&e.active?(0,io.jsx)(O,{dimColor:!0,wrap:"truncate",children:Et}):null,ye?(0,io.jsxs)(Rt,{flexDirection:"column",paddingLeft:2,children:[(()=>{let te=Je.length,se=Yq(qe,te),De=Je.slice(se,se+KS),ut=te-se-De.length,wt=Math.max(...Je.map(Gt=>Gt.name.length))+1;return(0,io.jsxs)(io.Fragment,{children:[se>0?(0,io.jsx)(O,{dimColor:!0,children:` \u2191 ${C("composer.menu.more",{count:se})}`}):null,De.map((Gt,gt)=>{let Ie=se+gt,Ne=ee.split(/\s/,1)[0].length;return(0,io.jsxs)(O,{wrap:"truncate",children:[Ie===qe?(0,io.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,io.jsx)(O,{bold:!0,children:Gt.name.slice(0,Ne)}),(0,io.jsx)(O,{bold:Ie===qe,children:Gt.name.slice(Ne).padEnd(wt-Ne)}),Gt.args?(0,io.jsx)(O,{dimColor:!0,children:`${Gt.args} `}):null,(0,io.jsx)(O,{dimColor:!0,children:` ${Gt.description}`})]},Gt.name)}),ut>0?(0,io.jsx)(O,{dimColor:!0,children:` \u2193 ${C("composer.menu.more",{count:ut})}`}):null]})})(),(0,io.jsx)(O,{dimColor:!0,children:C("composer.menu.footer")})]}):null]})}var Di,io,KS,Pq,wG=L(async()=>{"use strict";Di=He(Mt(),1);await Er();al();Xt();gy();Qw();await CG();_w();io=He(Qn(),1),KS=7;i(Yq,"menuWindowStart");i(qq,"draftHeight");Pq=i(e=>e.length>1&&(/[\r\n]/.test(e)||e.length>64),"looksPasted");i(RG,"Composer")});function ch(e){let o=(0,gd.useRef)(!1),r=(0,gd.useRef)(!1),[c,u]=(0,gd.useState)(!1),f=(0,gd.useRef)(e);return Object.is(f.current,e)||(f.current=e,o.current=!1,r.current=!1),(0,gd.useEffect)(()=>{o.current=!1,u(!1);let E=setTimeout(()=>{o.current=!0,u(!0)},xG);return()=>clearTimeout(E)},[e]),{armed:c,armedRef:o,submitDecision:i(E=>{if(!(!o.current||r.current)){r.current=!0;try{E()===!1&&(r.current=!1)}catch(S){throw r.current=!1,S}}},"submitDecision")}}var gd,xG,YS=L(()=>{"use strict";gd=He(Mt(),1),xG=700;i(ch,"useCardArm")});function DG(e){let o=(0,pd.useMemo)(()=>{let N=[{label:C("cards.permission.allowOnce"),decision:"approve"}];return e.permission.forceAsk||N.push({label:C("cards.permission.allowSession"),decision:"approve-session"},{label:C("cards.permission.allowAlways"),decision:"approve-always"}),N.push({label:C("cards.permission.deny"),decision:"reject"}),N},[e.permission]),r=(0,pd.useRef)(0),[c,u]=(0,pd.useState)(0),f=i(N=>{r.current=(r.current+N+o.length)%o.length,u(r.current)},"move"),{armed:m,armedRef:E,submitDecision:S}=ch(`${e.permission.runId}:${e.permission.id}`);vc(()=>{}),(0,pd.useEffect)(()=>{r.current=0,u(0)},[e.permission.id]),wo((N,b)=>{if(b.upArrow||b.tab&&b.shift){f(-1);return}if(b.downArrow||b.tab){f(1);return}if(!E.current)return;if(b.return){S(()=>e.onDecide(o[Math.min(r.current,o.length-1)].decision));return}if(b.escape||b.ctrl&&N==="c"){S(()=>e.onDecide("reject"));return}let M=/^[1-9]$/.test(N)&&!b.ctrl&&!b.meta?Number(N):0;M>=1&&M<=o.length&&S(()=>e.onDecide(o[M-1].decision))});let v=(e.permission.detail??"").split(`
|
|
376
|
+
`).slice(0,12),R=(e.permission.detail??"").split(`
|
|
377
|
+
`).length-v.length;return(0,ps.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"yellow",paddingX:1,children:[(0,ps.jsxs)(O,{children:[(0,ps.jsx)(O,{color:"yellow",bold:!0,children:`\u26A0 ${C("cards.permission.title")}`}),(0,ps.jsxs)(O,{bold:!0,children:[" ",e.permission.title]})]}),v.length&&e.permission.detail?(0,ps.jsxs)(Rt,{flexDirection:"column",marginBottom:1,children:[v.map((N,b)=>(0,ps.jsxs)(O,{dimColor:!0,children:[" ",N]},b)),R>0?(0,ps.jsx)(O,{dimColor:!0,children:` ${C("cards.moreLines",{count:R})}`}):null]}):null,o.map((N,b)=>(0,ps.jsxs)(O,{children:[b===c?(0,ps.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,ps.jsx)(O,{bold:b===c,children:`${b+1}. ${N.label}`})]},N.decision)),(0,ps.jsx)(O,{dimColor:!0,children:m?C("cards.permission.footer",{max:o.length}):C("cards.permission.waiting")})]})}var pd,ps,TG=L(async()=>{"use strict";pd=He(Mt(),1);await Er();Xt();YS();ps=He(Qn(),1);i(DG,"PermissionCard")});function _G(e){return(0,wr.jsx)(Jq,{...e},`${e.question.runId}:${e.question.id}`)}function Jq(e){let o=e.question.questions,[r,c]=(0,ul.useState)(0),u=(0,ul.useRef)(0),[f,m]=(0,ul.useState)(0),E=(0,ul.useRef)(new Set),[S,v]=(0,ul.useState)(new Set),R=(0,ul.useRef)([]),N=(0,ul.useRef)(!1),[b,M]=(0,ul.useState)(!1),_=(0,ul.useRef)(""),[k,H]=(0,ul.useState)(""),$=o[r],we=$.options.length+1,Qe=$.options.length,{armed:re,armedRef:Me,submitDecision:Ee}=ch(`${e.question.id}:${r}`),ze=i(ie=>{u.current=(u.current+ie+we)%we,m(u.current)},"moveCursor"),ce=i((ie,ne="")=>{N.current=ie,_.current=ne,M(ie),H(ne)},"setCustom");vc(ie=>{Me.current&&N.current&&ce(!0,_.current+GS(ie))});let ae=i(ie=>Ee(()=>{let ne=[...R.current,ie];if(r+1<o.length)R.current=ne,Me.current=!1,c(r+1),u.current=0,m(0),E.current=new Set,v(E.current),ce(!1);else return e.onAnswer({answers:ne})}),"commit");return wo((ie,ne)=>{if(N.current){if(!Me.current)return;if(ne.return){let Se=_.current.trim();Se&&ae({questionId:$.id,selected:[],custom:Se});return}if(ne.escape){ce(!1);return}if(ne.backspace||ne.delete){ce(!0,[..._.current].slice(0,-1).join(""));return}ie&&!ne.ctrl&&!ne.meta&&ce(!0,_.current+GS(ie));return}if(ne.upArrow||ne.tab&&ne.shift){ze(-1);return}if(ne.downArrow||ne.tab){ze(1);return}if(!Me.current)return;if(ie===" "&&$.multiSelect&&u.current!==Qe){let Se=u.current,Je=new Set(E.current);Je.has(Se)?Je.delete(Se):Je.add(Se),E.current=Je,v(Je);return}if(ne.return){let Se=u.current;if(Se===Qe){ce(!0);return}if($.multiSelect){let Je=E.current.size?[...E.current]:[Se];ae({questionId:$.id,selected:Je.map(ye=>$.options[ye].label)})}else ae({questionId:$.id,selected:[$.options[Se].label]});return}if(ne.escape){ae({questionId:$.id,selected:[],custom:"User dismissed the question \u2014 use your judgement and proceed."});return}let ee=/^[1-9]$/.test(ie)&&!ne.ctrl&&!ne.meta?Number(ie):0;ee>=1&&ee<=$.options.length&&ae({questionId:$.id,selected:[$.options[ee-1].label]})}),(0,wr.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"blue",paddingX:1,children:[e.question.intro&&r===0?(0,wr.jsx)(O,{dimColor:!0,children:e.question.intro}):null,(0,wr.jsxs)(O,{bold:!0,children:[o.length>1?`(${r+1}/${o.length}) `:"",$.question]}),b?(0,wr.jsxs)(O,{children:[(0,wr.jsx)(O,{color:"#ff875f",children:"\u276F "}),k,(0,wr.jsx)(O,{inverse:!0,children:" "})]}):(0,wr.jsxs)(wr.Fragment,{children:[$.options.map((ie,ne)=>(0,wr.jsxs)(O,{children:[ne===f?(0,wr.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",$.multiSelect?S.has(ne)?"[x] ":"[ ] ":"",(0,wr.jsx)(O,{bold:ne===f,children:`${ne+1}. ${ie.label}`}),ie.description?(0,wr.jsxs)(O,{dimColor:!0,children:[" ",ie.description]}):null]},ne)),(0,wr.jsxs)(O,{children:[f===Qe?(0,wr.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,wr.jsx)(O,{bold:f===Qe,children:C("cards.question.other")}),(0,wr.jsx)(O,{dimColor:!0,children:` ${C("cards.question.otherHint")}`})]}),(0,wr.jsx)(O,{dimColor:!0,children:C(re?$.multiSelect?"cards.question.footerMulti":"cards.question.footerSingle":"cards.permission.waiting")})]})]})}var ul,wr,NG=L(async()=>{"use strict";ul=He(Mt(),1);await Er();Xt();_w();YS();wr=He(Qn(),1);i(_G,"QuestionCard");i(Jq,"QuestionContent")});function MG(){let{stdout:e}=Pm(),o=i(()=>({columns:e.columns||80,rows:e.rows||24}),"read"),[r,c]=(0,qS.useState)(o);return(0,qS.useEffect)(()=>{let u=i(()=>c(o()),"onResize");return e.on("resize",u),()=>{e.off("resize",u)}},[e]),r}var qS,OG=L(async()=>{"use strict";qS=He(Mt(),1);await Er();i(MG,"useTerminalSize")});function Nw(e){return e.replace(/\\/g,"/")}function HG(e){let o=Nw(e).replace(/\/+$/,""),r=o.lastIndexOf("/");return r===-1?o:o.slice(r+1)}var jq,EAe,kG=L(()=>{"use strict";i(Nw,"toPosixPath");jq="\0-",EAe=new RegExp(`[<>:"|?*${jq}]`,"g");i(HG,"crossBasename")});function FG(e){let o=Zq(e),r=o.split("/").filter(Boolean),c=Wq(r)??$q(r);return c||HG(o)||e}function Zq(e){return Nw(e).replace(/\/+$/,"")}function zG(e,o){for(let r=0;r+o.length<=e.length;r++)if(o.every((c,u)=>e[r+u].toLowerCase()===c))return r;return-1}function Wq(e){let o=zG(e,UG);if(o<0)return null;let r=e.slice(o+UG.length);if(r.length===0)return"iCloud";let c=r[0],u=c.toLowerCase()===Vq;return r.length===1?u?"iCloud Drive":GG(c):r.length===2&&r[1]==="Documents"&&!u?GG(c):null}function GG(e){let o=e.split("~").pop()||e;return/^[a-z0-9]+$/.test(o)?o.charAt(0).toUpperCase()+o.slice(1):o}function $q(e){let o=zG(e,LG);if(o<0)return null;let r=e.slice(o+LG.length);if(r.length!==1)return null;let c=r[0],u=c.indexOf("-"),f=u===-1?c:c.slice(0,u),m=u===-1?"":c.slice(u+1),E=Xq[f.toLowerCase()]??f;return!m||m.includes("@")||m.toLowerCase()===f.toLowerCase()?E:`${E} \u2013 ${m}`}var UG,LG,Vq,Xq,KG=L(()=>{"use strict";kG();UG=["library","mobile documents"],LG=["library","cloudstorage"],Vq="com~apple~clouddocs",Xq={googledrive:"Google Drive",protondrive:"Proton Drive"};i(FG,"folderDisplayName");i(Zq,"normalize");i(zG,"indexOfRoot");i(Wq,"iCloudName");i(GG,"appNameOf");i($q,"cloudStorageName")});function YG(e){let o=(e||"").toLowerCase();return o?o.includes("1m")||o.includes("gemini-1.5")||o.includes("gemini-2")||o.includes("gpt-4.1")?1e6:o.includes("claude")||/(^|[-/])o[134](-|$)/.test(o)?2e5:o.includes("deepseek")?128e3:o.includes("glm")?o.includes("glm-5.3-flash")||/(?:^|\/)glm-5\.3(?:$|\[)/.test(o)||o.includes("glm-5.2")?1e6:o.includes("glm-4.6")||o.includes("glm-4.7")||/glm-5(?:[.\-]|$)/.test(o)?2e5:128e3:(/(^|[-/])(gpt-4|gpt-5)/.test(o),128e3):128e3}var qG=L(()=>{"use strict";i(YG,"modelContextWindow")});function PG(e){let o=[C("cards.planCard.build"),C("cards.planCard.keepPlanning")],r=(0,uh.useRef)(0),[c,u]=(0,uh.useState)(0),f=(0,uh.useMemo)(()=>JSON.stringify([e.plan.summary,e.plan.steps.map(v=>[v.title,v.detail,v.files])]),[e.plan]),{armed:m,armedRef:E,submitDecision:S}=ch(f);return vc(()=>{}),wo((v,R)=>{if(R.upArrow||R.downArrow||R.tab){r.current=r.current===0?1:0,u(r.current);return}if(E.current){if(R.return){S(r.current===0?e.onBuild:e.onDismiss);return}if(R.escape)return S(e.onDismiss);R.ctrl||R.meta||(v==="1"&&S(e.onBuild),v==="2"&&S(e.onDismiss))}}),(0,md.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"#ff875f",paddingX:1,children:[(0,md.jsx)(O,{bold:!0,color:"#ff875f",children:C("cards.planCard.title")}),(0,md.jsx)(O,{dimColor:!0,children:C(m?"cards.planCard.hint":"cards.permission.waiting")}),o.map((v,R)=>(0,md.jsxs)(O,{children:[R===c?(0,md.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,md.jsx)(O,{bold:R===c,children:`${R+1}. ${v}`})]},R))]})}var uh,md,JG=L(async()=>{"use strict";uh=He(Mt(),1);await Er();Xt();YS();md=He(Qn(),1);i(PG,"PlanCard")});function Mw(e,o){let r=e.filter(c=>!c.archived).sort((c,u)=>u.updated_at.localeCompare(c.updated_at));return o.trim()?ol(bc(r,o,c=>[c.title,jG(c)],[1,.7]).map(({item:c,match:u})=>({session:c,positions:u.positions[0]})),c=>c.session.id):ol(r.map(c=>({session:c})),c=>c.session.id)}function VG(e){let o=(0,hd.useRef)(""),r=(0,hd.useRef)(0),[c,u]=(0,hd.useState)(""),[f,m]=(0,hd.useState)(0),E=(0,hd.useMemo)(()=>Mw(e.sessions,c),[e.sessions,c]),S=E.flatMap(M=>M.kind==="item"?[M.item.session]:[]),v=e.width??80,R=Math.max(4,Math.min(18,(e.terminalRows??30)-10)),N=i(M=>{r.current=M,m(M)},"setIdx"),b=i(M=>{o.current=M,u(M),N(0)},"setQ");return wo((M,_)=>{let k=Mw(e.sessions,o.current).filter(H=>H.kind==="item").length;if(_.escape)return o.current?b(""):e.onCancel();if(_.upArrow||_.ctrl&&M==="p")return N(Kr(r.current,-1,k));if(_.downArrow||_.tab||_.ctrl&&M==="n")return N(Kr(r.current,1,k));if(_.pageUp)return N(hi(r.current,-1,k,R));if(_.pageDown)return N(hi(r.current,1,k,R));if(_.return){let H=Mw(e.sessions,o.current).flatMap($=>$.kind==="item"?[$.item.session]:[])[r.current];H&&e.onPick(H);return}if(_.backspace||_.delete)return b(o.current.slice(0,-1));if(_.ctrl&&M==="u")return b("");if(M&&!_.ctrl&&!_.meta){let H=M.replace(/[\x00-\x1f\x7f]/g,"");H&&b((o.current+H).slice(0,60))}}),(0,Wi.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Wi.jsx)(O,{bold:!0,children:C("cloud.list.title")}),(0,Wi.jsx)(O,{dimColor:!0,children:` \xB7 ${S.length}`})]}),(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),c,(0,Wi.jsx)(O,{color:Pn,children:"\u258C"})]}),(0,Wi.jsx)(rl,{rows:E,selected:f,height:R,width:Math.max(20,v-4),empty:c?C("pickers.list.empty"):C("cloud.list.empty"),renderItem:(M,{selected:_,width:k})=>{let H=M.session,$=mS(H.task?.status),we=ad([jG(H),iy(Date.parse(H.updated_at))],sd(k)),{left:Qe,gap:re}=ld(H.title||"\u2014",we,Math.max(10,k-14));return(0,Wi.jsxs)(O,{children:[(0,Wi.jsx)(O,{children:`${$} `}),nl(Qe,M.positions).map((Me,Ee)=>(0,Wi.jsx)(O,{bold:_||Me.hit,color:Me.hit?Pn:void 0,children:Me.text},Ee)),(0,Wi.jsx)(O,{dimColor:!0,children:`${re}${we}`})]})}}),(0,Wi.jsx)(O,{dimColor:!0,children:C("pickers.cloud.footer")})]})}var hd,Wi,jG,XG=L(async()=>{"use strict";hd=He(Mt(),1);await Er();Xt();rd();CS();await cS();Mu();await Wf();Wi=He(Qn(),1),jG=i(e=>e.repositories[0]?.full_name??e.handoff?.name??"","whereOf");i(Mw,"cloudRows");i(VG,"CloudPicker")});function WG(e){let[o,r]=(0,_o.useState)(null),[c,u]=(0,_o.useState)(null),[f,m]=(0,_o.useState)(null),E=(0,_o.useMemo)(()=>Gu(e.dataDir),[e.dataDir]),S=(0,_o.useRef)(e.initialQuery??""),[v,R]=(0,_o.useState)(S.current),N=(0,_o.useRef)(e.initialScope??rh),[b,M]=(0,_o.useState)(N.current),_=(0,_o.useRef)(0),[k,H]=(0,_o.useState)(0),{current:$}=e,we=(0,_o.useMemo)(()=>RS(o??void 0,$),[o,$]),Qe=(0,_o.useMemo)(()=>SL(o??void 0,we),[o,we]),re=(0,_o.useMemo)(()=>uw(we,{query:v,scope:b,recents:E}),[we,v,b,E]),Me=(0,_o.useRef)(we);Me.current=we;let Ee=(0,_o.useRef)(Qe);Ee.current=Qe;let ze=(0,_o.useCallback)((P,Ce)=>uw(Me.current,{query:P,scope:Ce,recents:E}),[E]),ce=i((P,Ce)=>ze(P,Ce).flatMap(Ve=>Ve.kind==="item"?[Ve.item]:[]),"itemsFor"),ae=i(P=>{_.current=P,H(P)},"select"),ie=(0,_o.useCallback)(async()=>{try{let P=await e.client.command("provider.list",void 0);r(P),u(null)}catch(P){u(P instanceof Error?P.message:String(P))}},[e.client]);(0,_o.useEffect)(()=>{ie()},[ie,e.revision]);let ne=(0,_o.useRef)(null);(0,_o.useEffect)(()=>{let P=re.flatMap(oe=>oe.kind==="item"?[oe.item]:[]),Ce=ne.current,Ve=Ce?P.findIndex(oe=>_c(oe.entry)===Ce):-1;Ve>=0&&Ve!==_.current?ae(Ve):_.current>=P.length&&ae(Math.max(0,P.length-1))},[re]);let ee=i(P=>{S.current=P,R(P),ae(0),ne.current=null},"setQuery"),Se=i(P=>{N.current=P,M(P),ae(0),ne.current=null},"setScope"),Je=i(async P=>{let{entry:Ce}=P;try{let Ve=await e.client.command("models.pin",{providerId:Ce.providerId,model:Ce.id,pinned:!Ce.pinned});ne.current=_c(Ce),r(oe=>oe&&{...oe,providers:oe.providers.map(et=>et.id===Ce.providerId?{...et,pinnedModels:Ve.pinned}:et)}),m(C(Ce.pinned?"pickers.model.unpinned":"pickers.model.pinned",{model:Ce.id}))}catch(Ve){let oe=Ve?.code;m(oe==="unknown-command"?C("pickers.model.pinNeedsNewerEngine"):String(Ve?.message??Ve))}},"togglePin");wo((P,Ce)=>{if(Ce.ctrl&&P==="c")return e.onClose();if(Ce.escape)return S.current?ee(""):e.onClose();if(Ce.ctrl&&P==="a")return e.onConnect();if(!o)return;let Ve=ce(S.current,N.current),oe=Ve.length,et=Math.max(1,Math.min(10,e.terminalRows-ZG-2)),Et=i(te=>{ae(te),ne.current=Ve[te]?_c(Ve[te].entry):null},"move");if(Ce.upArrow||Ce.ctrl&&P==="p")return Et(Kr(_.current,-1,oe));if(Ce.downArrow||Ce.ctrl&&P==="n")return Et(Kr(_.current,1,oe));if(Ce.pageUp)return Et(hi(_.current,-1,oe,et));if(Ce.pageDown)return Et(hi(_.current,1,oe,et));if(Ce.home)return Et(0);if(Ce.end)return Et(Math.max(0,oe-1));if(Ce.leftArrow||Ce.rightArrow||Ce.tab){let te=Ee.current;if(te.length<2)return;let se=Math.max(0,te.findIndex(ut=>ut.id===N.current)),De=Ce.leftArrow||Ce.tab&&Ce.shift?-1:1;return Se(te[Kr(se,De,te.length)].id)}if(Ce.return){let te=Ve[Math.min(_.current,oe-1)];te&&e.onPick(te.entry);return}if(Ce.ctrl&&P==="f"){let te=Ve[_.current];te&&Je(te);return}if(Ce.ctrl&&P==="u")return ee("");if(Ce.ctrl&&P==="w")return ee(S.current.replace(/\s*\S+\s*$/,""));if(Ce.backspace||Ce.delete)return ee(S.current.slice(0,-1));if(P&&!Ce.ctrl&&!Ce.meta){let te=P.replace(/[\r\n\t]/g," ").replace(/[\x00-\x1f\x7f]/g,"");(te.trim()||S.current)&&ee((S.current+te).slice(0,80))}});let ye=Math.max(1,e.width-4),qe=Math.max(1,Math.min(20,e.terminalRows-ZG-(f?1:0)-(c?1:0))),ct=e.current.model?C("pickers.model.current",{model:`${e.current.model}${e.current.providerId?` \xB7 ${Qe.find(P=>P.id===e.current.providerId)?.label??e.current.providerId}`:""}`}):C("pickers.model.noCurrent"),je=Nu(re).length,W=Qe.find(P=>P.id===b)?.count??we.length,it=(()=>{if(Qe.length<3)return null;let P=Math.max(0,Qe.findIndex(et=>et.id===b)),Ce=0,Ve=i(et=>Ot(Qe[et].label)+String(Qe[et].count).length+4,"widthOf"),oe=Qe.slice(0,P+1).reduce((et,Et,te)=>et+Ve(te),0);for(;oe>ye-6&&Ce<P;)oe-=Ve(Ce),Ce++;return(0,eo.jsxs)(O,{wrap:"truncate",children:[Ce>0?(0,eo.jsx)(O,{dimColor:!0,children:"\u2039 "}):null,Qe.slice(Ce).map((et,Et)=>{let te=Ce+Et===P;return(0,eo.jsxs)(O,{children:[Et>0?(0,eo.jsx)(O,{dimColor:!0,children:" "}):null,(0,eo.jsx)(O,{bold:te,color:te?Pn:void 0,dimColor:!te,children:et.label}),(0,eo.jsx)(O,{dimColor:!0,children:` ${et.count}`})]},et.id)})]})})(),yt=C(ye>=78?"pickers.model.footerWide":ye>=52?"pickers.model.footerMedium":"pickers.model.footerNarrow");return(0,eo.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,eo.jsxs)(O,{wrap:"truncate",children:[(0,eo.jsx)(O,{color:Pn,children:"\u2733 "}),(0,eo.jsx)(O,{bold:!0,children:C("pickers.model.title")}),(0,eo.jsx)(O,{dimColor:!0,children:` \xB7 ${ct}`})]}),(0,eo.jsxs)(O,{wrap:"truncate",children:[(0,eo.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),v?(0,eo.jsx)(O,{children:v}):null,(0,eo.jsx)(O,{color:Pn,children:"\u258C"}),v?null:(0,eo.jsx)(O,{dimColor:!0,children:C("pickers.model.searchHint")}),(0,eo.jsx)(O,{dimColor:!0,children:o?` ${v?C("pickers.model.matchCount",{shown:je,total:W}):C("pickers.model.count",{count:W})}`:""})]}),it,f?(0,eo.jsx)(O,{dimColor:!0,wrap:"truncate",children:f}):null,c?(0,eo.jsx)(O,{color:"red",wrap:"truncate",children:`\u2715 ${c}`}):null,!o&&!c?(0,eo.jsx)(O,{dimColor:!0,children:C("pickers.model.loading")}):null,o&&!we.length?(0,eo.jsxs)(O,{children:[(0,eo.jsx)(O,{color:"yellow",children:C("pickers.model.noProviders")}),(0,eo.jsx)(O,{dimColor:!0,children:` ${C("pickers.model.noProvidersHint")}`})]}):null,o&&we.length?(0,eo.jsx)(rl,{rows:re,selected:k,height:qe,width:ye,empty:C("pickers.model.noMatch",{query:v}),renderItem:(P,{selected:Ce,width:Ve})=>{let{entry:oe}=P,et=oe.current?"\u25CF ":oe.pinned?"\u2605 ":" ",Et=QL(oe),te=ad([P.showProvider?oe.providerLabel:"",Et],sd(Ve)),{left:se,gap:De}=ld(oe.id,te,Ve-et.length),ut=nl(se,P.positions);return(0,eo.jsxs)(O,{children:[(0,eo.jsx)(O,{color:oe.current?"green":oe.pinned?Pn:void 0,children:et}),ut.map((wt,Gt)=>(0,eo.jsx)(O,{bold:Ce||wt.hit,color:wt.hit?Pn:void 0,children:wt.text},Gt)),(0,eo.jsxs)(O,{dimColor:!0,children:[De,te]})]})}}):null,(0,eo.jsx)(O,{dimColor:!0,wrap:"truncate",children:yt})]})}var _o,eo,ZG,$G=L(async()=>{"use strict";_o=He(Mt(),1);await Er();Ca();wS();Xt();rd();Mu();await Wf();eo=He(Qn(),1),ZG=12;i(WG,"ModelPicker")});var PS,e4=L(()=>{"use strict";PS=class{static{i(this,"ModelPersistenceQueue")}pending=null;quitting=!1;closed=!1;get isQuitting(){return this.quitting}save(o){if(this.quitting)return Promise.resolve();let r=i(async()=>{if(!this.closed){try{await o.remember()}catch(f){this.closed||o.onRememberError(f)}if(!this.closed)try{await o.updateSession()}catch{}}},"persist"),c=this.pending?this.pending.then(r,r):r();this.pending=c;let u=i(()=>{this.pending===c&&(this.pending=null)},"settled");return c.then(u,u),c}finish(o,r){if(this.quitting)return;if(this.quitting=!0,!this.pending){this.closed=!0,r();return}o();let c,u=i(()=>{this.closed||(this.closed=!0,clearTimeout(c),r())},"finish");c=setTimeout(u,2e3),this.pending.then(u,u)}}});function t4(e){let o=Math.max(0,qa.findIndex(m=>m.id===e.initial)),r=(0,JS.useRef)(o),[c,u]=(0,JS.useState)(o),f=i(m=>{r.current=(r.current+m+qa.length)%qa.length,u(r.current)},"move");return wo((m,E)=>{if(E.upArrow)return f(-1);if(E.downArrow||E.tab)return f(1);let S=Number(m);if(S>=1&&S<=qa.length){e.onChoose(qa[S-1].id);return}if(E.return){e.onChoose(qa[r.current].id);return}(E.escape||E.ctrl&&m==="c")&&(e.firstRun?e.onChoose(qa[r.current].id):e.onCancel())}),(0,ms.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:"gray",paddingX:1,children:[(0,ms.jsxs)(O,{children:[(0,ms.jsx)(O,{color:"#ff875f",children:"\u2733 "}),(0,ms.jsx)(O,{bold:!0,children:C("cards.analytics.title")})]}),jm().map((m,E)=>(0,ms.jsx)(O,{dimColor:!0,children:m},E)),(0,ms.jsx)(O,{children:" "}),qa.map((m,E)=>(0,ms.jsxs)(O,{wrap:"truncate",children:[E===c?(0,ms.jsx)(O,{color:"#ff875f",children:"\u276F "}):" ",(0,ms.jsx)(O,{bold:E===c,children:`${E+1}. ${m.label}`}),(0,ms.jsx)(O,{dimColor:!0,children:` ${m.detail}`})]},m.id)),(0,ms.jsx)(O,{dimColor:!0,children:e.firstRun?C("cards.analytics.footer"):C("cards.analytics.footerCancel")})]})}var JS,ms,n4=L(async()=>{"use strict";JS=He(Mt(),1);await Er();Ou();Xt();ms=He(Qn(),1);i(t4,"AnalyticsConsent")});function eP(e,o){let r={id:sg,label:C("common.language.auto"),detail:C("common.language.autoDetail",{name:sm(o)})},c=FA.map(f=>({id:f.id,label:f.label,detail:f.englishName===f.label?f.id:`${f.englishName} \xB7 ${f.id}`}));if(!e.trim())return ol([r,...c],f=>f.id);let u=bc([r,...c],e,f=>[f.label,f.detail],[1,.8],[!1,!0]);return ol(u.map(({item:f,match:m})=>({...f,positions:m.positions[0]})),f=>f.id)}function o4(e){let[o,r]=(0,zu.useState)(""),c=(0,zu.useRef)(""),[u,f]=(0,zu.useState)(0),m=(0,zu.useRef)(0),E=(0,zu.useMemo)(()=>eP(o,e.detected),[o,e.detected]),S=(0,zu.useRef)(E);S.current=E;let v=i(_=>{m.current=_,f(_)},"setIndex"),R=i(_=>{c.current=_,r(_),v(0)},"setQuery"),N=Math.max(5,Math.min(16,e.terminalRows-10));wo((_,k)=>{let H=S.current.length;if(k.escape){c.current?R(""):e.onClose();return}if(k.ctrl&&_==="c"){e.onClose();return}if(k.return){let $=S.current[m.current];$?.kind==="item"&&e.onPick($.item.id);return}if(k.upArrow||k.ctrl&&_==="p")return v(Kr(m.current,-1,H));if(k.downArrow||k.tab||k.ctrl&&_==="n")return v(Kr(m.current,1,H));if(k.pageUp)return v(hi(m.current,-1,H,10));if(k.pageDown)return v(hi(m.current,1,H,10));if(k.backspace||k.delete)return R(c.current.slice(0,-1));if(k.ctrl&&_==="u")return R("");if(_&&!k.ctrl&&!k.meta){let $=_.replace(/[\x00-\x1f\x7f]/g,"");$&&($.trim()||c.current)&&R((c.current+$).slice(0,40))}});let b=Math.max(30,e.width-4),M=za();return(0,Ci.jsxs)(Rt,{flexDirection:"column",borderStyle:"round",borderColor:Pn,paddingX:1,children:[(0,Ci.jsxs)(O,{wrap:"truncate",children:[(0,Ci.jsx)(O,{color:Pn,children:"\u2733 "}),(0,Ci.jsx)(O,{bold:!0,children:C("common.language.title")}),(0,Ci.jsx)(O,{dimColor:!0,children:` \xB7 ${C("common.language.current",{name:sm(M)})}`})]}),(0,Ci.jsxs)(O,{wrap:"truncate",children:[(0,Ci.jsx)(O,{dimColor:!0,children:`${C("common.search")} `}),o,(0,Ci.jsx)(O,{color:Pn,children:"\u258C"}),o?null:(0,Ci.jsx)(O,{dimColor:!0,children:C("common.language.search")})]}),(0,Ci.jsx)(rl,{rows:E,selected:u,height:N,width:b,empty:C("common.noMatch",{query:o}),renderItem:(_,{selected:k})=>{let H=_.id===e.chosen;return(0,Ci.jsxs)(O,{children:[(0,Ci.jsx)(O,{color:H?"green":void 0,children:H?"\u25CF ":" "}),nl(_.label,_.positions).map(($,we)=>(0,Ci.jsx)(O,{bold:k||$.hit,color:$.hit?Pn:void 0,children:$.text},we)),(0,Ci.jsx)(O,{dimColor:!0,children:` ${_.detail}`})]})}}),(0,Ci.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("common.language.footer")}),(0,Ci.jsx)(O,{dimColor:!0,wrap:"truncate",children:C("common.language.note")})]})}var zu,Ci,sg,r4=L(async()=>{"use strict";zu=He(Mt(),1);await Er();rd();Xt();Mu();await Wf();Ci=He(Qn(),1),sg="auto";i(eP,"languageRows");i(o4,"LanguagePicker")});function i4(e){if(e<=10)return"red";if(e<=25)return"yellow"}function a4(e){return(0,$i.jsxs)(Rt,{flexDirection:"column",marginTop:1,children:[(0,$i.jsxs)(O,{wrap:"truncate",children:[(0,$i.jsx)(O,{color:tP[e.mode],bold:!0,children:e.mode}),(0,$i.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,$i.jsx)(O,{children:e.model??C("app.status.defaultModel")}),e.model&&e.providerLabel?(0,$i.jsx)(O,{dimColor:!0,children:` \xB7 ${e.providerLabel}`}):null,e.contextLeft!==void 0?(0,$i.jsx)(O,{color:i4(e.contextLeft),dimColor:!i4(e.contextLeft),children:` \xB7 ${C("app.status.contextLeft",{percent:e.contextLeft})}`}):null,e.branch?(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 \u2387 ",e.branch]}):null,e.sessionTitle?(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 ",e.sessionTitle]}):null]}),(0,$i.jsxs)(O,{wrap:"truncate",children:[(0,$i.jsx)(O,{color:e.providerConnected===!1?"yellow":e.providerConnected?"green":void 0,children:e.providerConnected===!1?C("app.status.aiSetupNeeded"):e.providerConnected?C("app.status.aiReady"):C("app.status.aiChecking")}),(0,$i.jsx)(O,{dimColor:!0,children:" \xB7 "}),(0,$i.jsx)(O,{color:e.accountSignedIn?"green":void 0,dimColor:!e.accountSignedIn,children:e.accountSignedIn===void 0?C("app.status.syncChecking"):e.accountSignedIn?C("app.status.syncOn"):C("app.status.syncOff")}),(0,$i.jsxs)(O,{dimColor:!0,children:[" \xB7 ",e.engineLabel,e.hint?` \xB7 ${e.hint}`:""]})]})]})}var $i,tP,s4=L(async()=>{"use strict";await Er();Xt();$i=He(Qn(),1);i(i4,"contextColor");tP={plan:"cyan","read-only":"blue","accept-edits":"green",auto:"#ff875f",full:"red"};i(a4,"StatusBar")});import{randomUUID as l4}from"node:crypto";function nP(e,o,r){return C(e).split(/(\{\{\s*\w+\s*\}\})/).map(c=>{let u=/^\{\{\s*(\w+)\s*\}\}$/.exec(c)?.[1];if(u!==void 0)return o[u]??c;let f=c.trim();if(!f)return c;let m=c.indexOf(f);return c.slice(0,m)+r(f)+c.slice(m+f.length)}).join("")}function c4(e){for(let o=e.length-1;o>=0;o--){let r=e[o].role==="assistant"?e[o].usage?.context:void 0;if(r)return r}}function oP(e,o){if(!(!e||!o||o<=0))return Math.max(0,Math.min(100,Math.round(100-e/o*100)))}function A4(e){let{exit:o}=W0(),r=(0,We.useRef)(null),c=(0,We.useRef)(new TS(e.dataDir)),u=(0,We.useRef)(new Set),f=(0,We.useRef)(!1),m=(0,We.useRef)(0),E=(0,We.useRef)(null),S=(0,We.useRef)(!1),v=(0,We.useRef)(null),R=(0,We.useRef)(null),N=(0,We.useRef)(null),b=(0,We.useRef)(e.args.model),M=(0,We.useRef)(e.args.provider),_=(0,We.useRef)(null),k=(0,We.useRef)(new PS),[H,$]=(0,We.useState)([]),{columns:we,rows:Qe}=MG(),re=Math.max(4,Math.min(Math.max(4,we-4),100)),[Me,Ee]=(0,We.useState)(0),[ze,ce]=(0,We.useState)(null),[ae,ie]=(0,We.useState)(e.args.mode??"auto"),[ne,ee]=(0,We.useState)(e.args.model),[Se,Je]=(0,We.useState)(e.args.provider),[ye,qe]=(0,We.useState)(null),[ct,je]=(0,We.useState)(0),[W,it]=(0,We.useState)(null),[yt,P]=(0,We.useState)("native"),[Ce,Ve]=(0,We.useState)(!1),[oe,et]=(0,We.useState)(0),[Et,te]=(0,We.useState)([]),[se,De]=(0,We.useState)(null),[ut,wt]=(0,We.useState)(null),[Gt,gt]=(0,We.useState)(null),[Ie,Ne]=(0,We.useState)(null),[at,kt]=(0,We.useState)(null),[be,Te]=(0,We.useState)(null),fe=(0,We.useRef)(null),[tt,_t]=(0,We.useState)(!1),[Gn,In]=(0,We.useState)(!1),[No,xr]=(0,We.useState)(!1),[Vo,Mo]=(0,We.useState)(!1),[qr,ot]=(0,We.useState)(()=>Iu({dataDir:e.dataDir}).cliPref??sg),[,Dt]=(0,We.useState)(0),[mt,tn]=(0,We.useState)(null),to=(0,We.useRef)(null),[yr,ta]=(0,We.useState)(),[Jn,w]=(0,We.useState)(),[j,Ge]=(0,We.useState)(0),[Ue,nt]=(0,We.useState)(),[dn,pt]=(0,We.useState)(),[xt,rn]=(0,We.useState)(!1),[sr,mo]=(0,We.useState)(!1),[Xo,na]=(0,We.useState)(0),oa=(0,We.useMemo)(()=>OL(e.repoPath),[e.repoPath]),lt=(0,We.useCallback)(V=>{V&&$(_e=>[..._e,{id:++m.current,text:V}])},[]),Dr=(0,We.useCallback)(V=>{_.current=V,qe(V),je(_e=>_e+1),ta(V.providers.some(_e=>_e.connected))},[]),zt=(0,We.useCallback)(V=>{pt(V),setTimeout(()=>pt(_e=>_e===V?void 0:_e),2500)},[]),ti=(0,We.useCallback)(V=>{let _e=V.toLowerCase()===sg?sg:_f(V);if(!_e){zt(C("common.language.unknown",{tag:V,count:FA.length}));return}AQ(e.dataDir,_e);let Pe=KA(_e===sg?hB(Iu({dataDir:e.dataDir})):_e);ot(_e),Dt(Fe=>Fe+1),Mo(!1),lt(`${Bt("\u25CF")} ${_e===sg?C("common.language.switchedAuto",{name:sm(Pe)}):C("common.language.switched",{name:sm(Pe)})}`)},[e.dataDir,lt,zt]);(0,We.useEffect)(()=>{let V=!0;return nb(e.dataDir).then(_e=>{V&&_e&<(_e)}),()=>{V=!1}},[e.dataDir,lt]);let{liveText:Ti,reasoningTail:_i,liveTools:Ja,helpers:Ba,explore:Tr,helperTokens:Ni,reset:ja,settleStream:Pl,sealLiveText:hs,flushExplore:Sa,noteTodos:Mc,handlers:Ku}=qL({running:Ce,push:lt,width:re}),ft=(0,We.useCallback)(V=>{Sa(),lt(V)},[Sa,lt]),{connRef:Ft,driverRef:Fn,engine:ao,setEngine:ra,connect:ni,reconnect:Mi}=FL({onHubEvent:i(V=>D(V),"onHubEvent"),onOpenExternal:i(()=>zt(C("app.toast.browserOpened")),"onOpenExternal"),onConnectionLost:i(()=>{r.current&&(r.current.connectionLost(),zt(C("app.toast.connectionLost")))},"onConnectionLost"),onConnectionRestored:i(async V=>{let _e=r.current;if(_e)try{await _e.resume(V.client),r.current===_e&&zt(C("app.toast.runRestored"))}catch(Pe){if(zt(Pe instanceof Error?Pe.message:String(Pe)),r.current===_e)throw Pe}},"onConnectionRestored"),onReconnectFailed:i(()=>r.current?.giveUpConnection(),"onReconnectFailed"),showToast:zt}),Zo=(0,We.useMemo)(()=>({client:i(()=>Ft.current?.client,"client"),scene:i(()=>{let V=Fn.current?.currentSession;return{conversationId:V?.id,title:V?.title,terms:[FG(e.repoPath),oa]}},"scene")}),[e.repoPath,oa]),yi=!!be?.task&&!ud.has(be.task.status);(0,We.useEffect)(()=>{if(!Ce&&!yi)return;let V=setInterval(()=>na(_e=>_e+1),120);return()=>clearInterval(V)},[Ce,yi]);let no=(0,We.useCallback)(()=>{Pl(),Ve(!1),r.current=null,S.current=!1,De(null),wt(null)},[Pl]),Ii=(0,We.useRef)(0);(0,We.useEffect)(()=>{Ii.current=j},[j]);let oi=(0,We.useCallback)(async(V,_e)=>{let Pe=Fn.current;if(!Pe||!Ft.current?.client.isConnected()){zt(C("app.toast.notConnected"));return}if(r.current)return;if(f.current&&(f.current=!1,Pe.setSession(null)),!Pe.currentSession){let ho=await Ft.current.client.command("provider.list",void 0).catch(()=>{}),ri=og(ho,b.current,M.current,Gu(e.dataDir)[0]);await Pe.newSession(e.repoPath,oh(V,e.repoPath),{model:ri.model,provider:ri.providerId})}let Fe,vt;try{let ho=N.current,ri=Pe.currentSession;if(ri&&ho==="claude-code"){let Oo=await Ft.current.client.command("provider.list",void 0);if(!DS(ho,e.args.provider??ri.provider,Oo)){zt(C("app.toast.claudeAgentKey"));return}}if(ri&&ho&&ri.harness!==ho){let Oo=await Ft.current.client.command("session.updateMeta",{id:ri.id,patch:{harness:ho,harnessEpochId:l4()}});Pe.setSession(Oo),ce(Oo)}N.current=null;let Kt=Pe.currentSession?.id,po=Kt?await Ft.current.client.command("session.get",{id:Kt}):null;if(!po){zt(C("app.toast.sessionGone"));return}Pe.setSession(po),ce(po),P(po.harness);let Qa=await Ft.current.client.command("provider.list",void 0).catch(()=>{}),Xa=vS({session:po,providers:Qa,modelOverride:b.current,providerOverride:M.current});if(!Xa.ok){zt(Xa.reason);return}b.current||ee(po.model||void 0),Je(Xa.providerId??po.provider??void 0),Xa.ambiguous?.length&&zt(dy(Xa.displayModel,Xa.ambiguous)),Fe=Xa.model,vt=Xa.providerId}catch(ho){zt(ho instanceof Error?ho.message:String(ho));return}S.current=!0,_e?.echo!==!1&<(Zm(_e?.display??V)),Ve(!0),et(Date.now()),Ge(0),te([]),gt(null),ja();let dt=Date.now(),fn=!1,cr=Ft.current.client,gl=QS(V);gl&&Zi(cr,"cli_helper_summoned",{helper:gl});try{let ho=await Pe.runTask({task:V,repoPath:e.repoPath,accessMode:_e?.phase==="build"?"auto":ae,sessionTitle:oh(V,e.repoPath),model:Fe,providerId:vt,phase:_e?.phase,plan:_e?.plan,forcedSubagentId:gl},{...Ku,onTodos:i(Kt=>{te(Kt),Mc(Kt)},"onTodos"),onPermission:i(Kt=>De(Kt),"onPermission"),onPermissionResolved:i((Kt,po)=>{De(Qa=>Qa&&Kt.includes(Qa.id)?(ft(u4(po==="approved",Qa.title)),null):Qa)},"onPermissionResolved"),onQuestion:i(Kt=>wt(Kt),"onQuestion"),onPlan:i(Kt=>{hs(),ft(aS(Kt)),gt(Kt)},"onPlan"),onCommandSkipped:i(Kt=>{ft(il(C("app.held.title",{command:Kt.command}),`${Kt.reason}
|
|
378
|
+
${C("app.held.hint")}`))},"onCommandSkipped"),onUsage:i(Kt=>{Ge(Kt.total),Kt.context&&nt(Kt.context)},"onUsage"),onWorkspaceBusy:i(Kt=>{ft(il(C("app.sharedTree.title"),C("app.sharedTree.body",{count:Kt})))},"onWorkspaceBusy"),onConnectorError:i(Kt=>{ft(il(C("app.connectorFailed",{name:Kt.connectorName}),Kt.message))},"onConnectorError"),onStepBudget:i(Kt=>{ft(il(Kt==="output-length"?C("app.stepBudget.outputLength"):C("app.stepBudget.steps"),C("app.stepBudget.hint")))},"onStepBudget"),onCheckpoint:i(async()=>{let Kt=Fn.current?.currentSession;Kt&&(ja(),await Oe(Kt))},"onCheckpoint"),onReplayGap:i(async()=>{let Kt=Fn.current?.currentSession;Kt&&(ja(),await Oe(Kt))},"onReplayGap"),onDone:i(()=>{fn=!0,no();let Kt=Ni(),po=Ii.current+Kt,Qa=po?` \xB7 ${C("app.run.tokens",{tokens:Uu(po)})}${Kt?` (${C("app.run.helperTokens",{tokens:Uu(Kt)})})`:""}`:"";lt(le(`${Bt("\u2713")} ${C("app.run.done",{elapsed:wc(dt)})}${Qa}`)),v.current=Ir()},"onDone"),onError:i(Kt=>{if(fn=!0,no(),Kt.code==="aborted"){lt(le(`\u25A0 ${C("app.run.interrupted")}`));return}let po=SS(Kt);lt([`${St("\u2715")} ${ht(C("app.run.error",{code:Kt.code}))}: ${Kt.message}`,po?le(po):""].filter(Boolean).join(`
|
|
379
|
+
`))},"onError")});fn||(r.current=ho),ce(Pe.currentSession),va();let ri=Ft.current?.client;if(!fn&&ri?.isConnected()&&(ho.needsReconnect||ri!==cr))try{await ho.resume(ri)}catch(Kt){zt(Kt instanceof Error?Kt.message:String(Kt)),r.current===ho&&Mi()}}catch(ho){Ve(!1),S.current=!1,lt(`${St("\u2715")} ${ho instanceof Error?ho.message:String(ho)}`)}},[ae,ne,e.repoPath]),Ir=(0,We.useCallback)(async()=>{let V=Fn.current,_e=Ft.current,Pe=V?.currentSession;if(!(!V||!_e||!Pe))try{let Fe=await _e.client.command("session.get",{id:Pe.id});Fe&&(V.setSession(Fe),ce(Fe),P(Fe.harness),b.current||(ee(Fe.model||void 0),Je(Fe.provider??void 0)),va())}catch{}},[]),va=(0,We.useCallback)(()=>{let _e=Fn.current?.currentSession;for(let Pe of _e?.messages??[])u.current.add(Pe.id)},[]),ia=(0,We.useCallback)((V,_e)=>{for(let Pe of V){if(u.current.has(Pe.id))continue;u.current.add(Pe.id);let Fe=GL(Pe,re);Fe.forEach((vt,dt)=>{lt(_e?.suffix&&dt===Fe.length-1?`${vt}
|
|
380
|
+
${_e.suffix}`:vt)})}},[lt,re]),x=(0,We.useCallback)(async()=>{let V=Ft.current,_e=Fn.current,Pe=_e?.currentSession;if(!(!V||!Pe)){await v.current?.catch(()=>{});try{let Fe=await V.client.command("session.get",{id:Pe.id});if(!Fe)return;ia(Fe.messages,{suffix:le(`\u21C4 ${C("app.session.fromOtherSurface")}`)}),Pe.harnessEpochId!==Fe.harnessEpochId&&!e.args.model&&(b.current=void 0,M.current=e.args.provider),_e.setSession(Fe),ce(Fe),P(Fe.harness),b.current||(ee(Fe.model||void 0),Je(Fe.provider??void 0))}catch{}}},[ia]),D=(0,We.useCallback)(V=>{if(V.event==="account.changed"){Ft.current?.client.command("account.state",void 0).then(Pe=>w(Pe.signedIn)).catch(()=>{});return}if(V.event==="provider.changed"){Ft.current?.client.command("provider.list",void 0).then(Dr).catch(()=>{});return}let _e=Fn.current?.currentSession?.id;if(V.event==="session.changed"){if(V.by==="cli"||S.current)return;V.id===_e&&x();return}if(V.event==="run.event"||V.event==="run.done"||V.event==="run.error"){if(r.current&&V.id===r.current.runId||S.current||!V.conversationId||V.conversationId!==_e)return;V.event==="run.event"&&E.current!==V.id&&(E.current=V.id,lt(le(`\u21C4 ${C("app.session.otherSurfaceRunning")}`))),(V.event==="run.done"||V.event==="run.error")&&(E.current=null,x())}},[x,lt,Ir]);(0,We.useEffect)(()=>{let V=!1;return(async()=>{try{if(await ni(),V)return;let _e=Ft.current,Pe=Fn.current;if(!_e||!Pe)return;if(iS(e.dataDir)){let vt=await _e.client.command("telemetry.state",void 0).catch(()=>null);if(vt&&!vt.envOptOut&&!V&&(await new Promise(dt=>{to.current=dt,tn({initial:oy(vt),firstRun:!0})}),V))return}Zi(_e.client,"app_launched",{command:"run",interactive:!0,engine_spawned:_e.spawned,continued:e.args.continueSession||!!e.args.session}),_e.client.command("account.state",void 0).then(vt=>{V||w(vt.signedIn)}).catch(()=>{V||w(!1)});let Fe=await BS(Pe,_e.client,e.repoPath,{continueSession:e.args.continueSession,sessionId:e.args.session});if(Fe){ce(Fe),P(Fe.harness),!e.args.mode&&Fe.accessMode&&ie(Fe.accessMode),!e.args.model&&Fe.model&&(ee(Fe.model),Je(Fe.provider??void 0));let dt=Fe.messages??[];nt(c4(dt)),ia(dt),lt(le(`\u21BA ${C("app.session.resumed",{title:Fe.title})} \xB7 ${C("app.session.messages",{count:dt.length})}`))}try{let vt=await _e.client.command("provider.list",void 0);if(V)return;let dt=vt.providers.some(fn=>fn.connected);if(Dr(vt),dt&&!e.args.model&&!Fe?.model){let fn=og(vt,void 0,e.args.provider,Gu(e.dataDir)[0]);fn.model&&ee(fn.model),Je(fn.providerId)}else if(e.args.model){let fn=og(vt,e.args.model,e.args.provider);fn.providerId&&Je(fn.providerId)}if(!dt){let fn=hm(vt.providers).map(({key:cr})=>cr.name);lt(`${qt("01")} ${ht(C("app.firstRun.title"))}
|
|
381
|
+
${le(C("app.firstRun.choose"))}
|
|
382
|
+
`+(fn.length?` ${Bt(C("app.firstRun.envFound",{names:fn.join(", ")}))}
|
|
383
|
+
`:"")+` ${le(C("app.firstRun.account"))}`),R.current=e.initialTask??null,_t(!0);return}}catch{}e.initialTask&&oi(e.initialTask)}catch(_e){V||ra({phase:"failed",spawned:!1,message:_e instanceof Error?_e.message:String(_e)})}})(),()=>{V=!0}},[]),(0,We.useEffect)(()=>{let V=ze?.title?`\u2733 moreai \u2014 ${ze.title}`:"\u2733 moreai";process.stdout.write(`\x1B]2;${V}\x07`)},[ze?.title]);let G=(0,We.useCallback)(()=>{let V=Fn.current?.currentSession;r.current?.abort(),fe.current?.abort();let _e={kind:"user",...V?{session:{id:V.id,title:V.title}}:{}};k.current.finish(()=>{mo(!0),zt(C("app.run.working"))},()=>{Ft.current?.dispose(),o(_e)})},[o,zt]),Y=(0,We.useCallback)(V=>{V.length<=4e3&&c.current.push(V)},[]),J=(0,We.useCallback)(()=>{process.stdout.write("\x1B[2J\x1B[3J\x1B[H"),$([]),Ee(V=>V+1)},[]),Be=(0,We.useCallback)(()=>{f.current=!0,N.current=null,e.args.model||(b.current=void 0),M.current=e.args.provider,Fn.current?.setSession(null),ce(null),nt(void 0),te([]),u.current=new Set,J()},[J]),Oe=(0,We.useCallback)(async V=>{let _e=Ft.current,Pe=Fn.current;if(!_e||!Pe)return;let Fe=await _e.client.command("session.get",{id:V.id});Fe&&(Pe.setSession(Fe),ce(Fe),ie(Fe.accessMode),ee(Fe.model||void 0),Je(Fe.provider??void 0),e.args.model||(b.current=void 0),M.current=e.args.provider,N.current=null,P(Fe.harness),u.current=new Set,nt(c4(Fe.messages)),J(),lt(`${qt(Pa)} ${ht(Fe.title)} ${le(`\xB7 ${C("app.session.messages",{count:Fe.messages.length})}`)}`),ia(Fe.messages))},[J,lt,ia]),ve=(0,We.useCallback)(async V=>{let _e=Ft.current?.client;if(!_e?.isConnected()){zt(C("app.toast.notConnected"));return}let Pe={on:"all",all:"all",usage:"usage",off:"off"},Fe=V.trim().toLowerCase();try{if(Fe&&!Pe[Fe]){zt(C("app.toast.analyticsUsage"));return}if(Fe){let dt=await $f(_e,e.dataDir,Pe[Fe],"cli_slash");lt(le(C("app.analytics.state",{state:cd(dt)})));return}let vt=await _e.command("telemetry.state",void 0);if(vt.envOptOut){lt(le(C("app.analytics.state",{state:cd(vt)})));return}tn({initial:oy(vt),firstRun:!1})}catch(vt){zt(vt instanceof Error?vt.message:String(vt))}},[e.dataDir,lt,zt]),$e=(0,We.useCallback)(V=>{let _e=mt?.firstRun??!1;tn(null);let Pe=to.current;to.current=null;let Fe=Ft.current?.client,vt=i(()=>Pe?.(),"finish");if(!V||!Fe)return vt();$f(Fe,e.dataDir,V,_e?"cli_first_run":"cli_slash").then(dt=>lt(le(C("app.analytics.stateChange",{state:cd(dt)})))).catch(dt=>zt(dt instanceof Error?dt.message:String(dt))).finally(vt)},[mt,e.dataDir,lt,zt]),Ke=(0,We.useCallback)(async(V,_e,Pe)=>{if(k.current.isQuitting)return;it(null),b.current=V.id,M.current=V.providerId,ee(V.id),Je(V.providerId),RL(e.dataDir,{providerId:V.providerId,model:V.id});let Fe=Ft.current,vt=Fn.current,dt=vt?.currentSession;await k.current.save({remember:i(()=>Fe?.client.command("models.remember",{providerId:V.providerId,model:V.id})??Promise.resolve(),"remember"),updateSession:i(async()=>{if(!Fe||!dt)return;let fn=await Fe.client.command("session.updateMeta",{id:dt.id,patch:{model:V.id,provider:V.providerId}});k.current.isQuitting||vt?.currentSession?.id===dt.id&&b.current===V.id&&M.current===V.providerId&&(vt.setSession(fn),ce(fn))},"updateSession"),onRememberError:i(fn=>{if(k.current.isQuitting)return;let cr=fn;zt(cr?.code==="unknown-command"?C("cli.errorHint.unsupported"):cr?.message??String(fn))},"onRememberError")}),!k.current.isQuitting&&(Zi(Fe?.client,"cli_model_selected",{via:_e,searched:Pe?.searched??!1,scoped:Pe?.scoped??!1}),lt(`${Bt("\u25CF")} ${nP("app.session.switchedTo",{model:ht(V.id)},le)} ${le(`\xB7 ${V.providerLabel}`)}`))},[e.dataDir,lt,zt]),At=(0,We.useCallback)(async V=>{let _e=await Ft.current?.client.command("provider.list",void 0).catch(()=>null);_e&&Dr(_e);let Pe=RS(_e??void 0,{providerId:Se,model:ne}),Fe=bL(Pe,V);if(Fe)return Ke(Fe,"command");it({query:V})},[Dr,Ke,ne,Se]),bt=(0,We.useCallback)(async(V,_e)=>{let Pe=new AbortController;fe.current=Pe;let Fe=_e??"";_e&&Te({sessionId:_e});try{let vt=await V({onReadiness:i(dt=>lt(hS(dt,void 0).join(`
|
|
384
|
+
`)),"onReadiness"),onProgress:i(dt=>zt(jQ(cy(dt)).replace(/^\s*⎿\s*/,"")),"onProgress"),onStarted:i(dt=>{Fe=dt.sessionId,Te({sessionId:Fe}),lt([`${Bt("\u2713")} ${C("cloud.run.started")}`,` ${Ln(dt.url)}`,le(` ${dt.model.credential==="pool"?C("cloud.run.modelPlan",{model:dt.model.label??dt.model.model}):C("cloud.run.modelKey",{model:dt.model.label??dt.model.model,provider:dt.model.provider})}`),...dt.branch?[le(` ${C("cloud.run.workBack",{branch:dt.branch})}`)]:[]].join(`
|
|
385
|
+
`))},"onStarted"),onStatus:i(dt=>{Te(fn=>fn?{...fn,task:dt}:{sessionId:Fe||"",task:dt}),dt.status==="awaiting_user"&&Fe&<(Cn(C("cloud.follow.needsYou",{url:Ad(Fe)}))),ud.has(dt.status)&<(uy(dt))},"onStatus"),onMessage:i(dt=>lt(sl(dt.content.trimEnd(),re)),"onMessage"),onFinishing:i(()=>zt(C("cloud.finish.working")),"onFinishing"),onFinished:i(dt=>lt(eh(dt,Fe).join(`
|
|
386
|
+
`)),"onFinished")},Pe.signal);Zi(Ft.current?.client,"cli_cloud_run",{status:vt.status,detached:!1,via:"session"}),vt.status==="detached"&&!k.current.isQuitting&<(le(C("cloud.run.detached",{id:vt.sessionId})))}catch(vt){let dt=vt;lt(`${St("\u2715")} ${dt?.code==="NO_CLOUD_MODEL"?C("cloud.noModel"):vt instanceof xc&&vt.code!=="error"?C("cloud.blocked",{reason:vt.message}):dt?.message??String(vt)}`)}finally{fe.current===Pe&&(fe.current=null),Te(null)}},[re,lt,zt]),nn=(0,We.useCallback)(async V=>{let _e=Ft.current?.client;if(!_e?.isConnected()){zt(C("slash.engineNotConnected"));return}try{if(!(await _e.command("account.state",void 0)).signedIn){lt(Cn(C("cloud.signedOut")));return}if(V.trim()){if(fe.current){zt(C("slash.cloudBusy"));return}let dt=V.trim();lt(Zm(`/cloud ${dt}`)),bt((fn,cr)=>uS(_e,{repoPath:e.repoPath,prompt:dt,model:e.args.model,provider:e.args.provider,accessMode:ae,localSessionId:Fn.current?.currentSession?.id,signal:cr},fn));return}let Fe=await _e.command("cloud.sessions",void 0);if(!Fe.ok){lt(`${St("\u2715")} ${Fe.error}`);return}let vt=Fe.data.sessions.filter(dt=>!dt.archived);if(!vt.length){lt(le(C("cloud.list.empty")));return}kt(vt)}catch(Pe){let Fe=Pe;zt(Fe?.code==="unknown-command"?C("cloud.olderEngine"):Fe?.message??String(Pe))}},[bt,ae,lt,zt,e.repoPath]),Nn=(0,We.useCallback)(async V=>{kt(null);let _e=Ft.current?.client;if(!_e)return;let Pe=await _e.command("cloud.get",{id:V.id}).catch(()=>null);if(!Pe?.ok){lt(`${St("\u2715")} ${Pe?.error??C("cloud.open.notFound",{id:V.id})}`);return}for(let vt of ES(Pe.data,re))lt(vt);let Fe=Pe.data.task??Pe.data.session.task;Fe&&!ud.has(Fe.status)&&!fe.current&&bt((vt,dt)=>ay(_e,V.id,vt,dt),V.id)},[Ft,re,bt,lt]),_n=(0,We.useCallback)((V,_e)=>KL(V,_e,{running:Ce,mode:ae,model:ne,providerId:M.current??Se??Fn.current?.currentSession?.provider,harness:yt,engine:ao,repoPath:e.repoPath,branch:oa,conn:Ft.current,driver:Fn.current,push:lt,showToast:zt,quit:G,startNewSession:Be,openSessionsPicker:Ne,openCloud:nn,openAuth:i(()=>_t(!0),"openAuth"),openConnectors:i(()=>In(!0),"openConnectors"),openAccount:i(()=>xr(!0),"openAccount"),openAnalytics:ve,openModelPicker:i(Pe=>it({query:Pe}),"openModelPicker"),chooseModel:At,openLanguagePicker:i(()=>Mo(!0),"openLanguagePicker"),setInterfaceLanguage:ti,applyMode:Wo,cycleMode:Bi,selectHarness:uo,setSession:ce}),[Ce,ne,Se,yt,ae,ao,e.repoPath,oa,ve,At,ti,nn]),uo=(0,We.useCallback)(async V=>{let _e=Fn.current,Pe=_e?.currentSession;if(Pe&&Pe.harness!==V){let Fe=Ft.current;if(!Fe?.client.isConnected())throw new Error(C("app.toast.notConnected"));let vt=await Fe.client.command("session.updateMeta",{id:Pe.id,patch:{harness:V,harnessEpochId:l4()}});_e.setSession(vt),ce(vt)}else Pe||(N.current=V);P(V)},[]),Wo=(0,We.useCallback)(V=>{ie(V),zt(C("app.toast.accessMode",{mode:V}));let _e=r.current;_e&&Ft.current?.client.command("run.setAccessMode",{id:_e.runId,mode:V}).catch(()=>{});let Pe=Fn.current?.currentSession;Pe&&Ft.current?.client.command("session.updateMeta",{id:Pe.id,patch:{accessMode:V}}).then(Fe=>ce(Fe)).catch(()=>{})},[zt]),Bi=(0,We.useCallback)(()=>{let V=Ll.indexOf(ae);Wo(Ll[(V+1)%Ll.length])},[Wo,ae]),Pr=(0,We.useCallback)((V,_e)=>{let Pe=V.trim();if(!Pe)return;let Fe=bS(Pe);if(Fe){_n(Fe.command,Fe.arg);return}let vt=_e?.trim()&&_e.trim()!==Pe?_e.trim():void 0;if(Y(Pe),ao.phase==="failed"){ra({phase:"connecting",spawned:!1}),ni().then(()=>oi(Pe,{display:vt})).catch(dt=>ra({phase:"failed",spawned:!1,message:dt instanceof Error?dt.message:String(dt)}));return}if(Ce&&r.current){let dt=r.current;Ft.current?.client.command("run.steer",{id:dt.runId,text:Pe}).catch(()=>{});let fn=Fn.current?.currentSession;fn&&Ft.current?.client.command("session.appendMessage",{id:fn.id,message:{id:crypto.randomUUID(),role:"user",content:Pe,createdAt:Date.now(),steered:!0}}).catch(()=>{}),lt(CU(vt??Pe));return}oi(Pe,{display:vt})},[ni,ao.phase,_n,lt,Ce,oi]),go=ku[Xo%ku.length],lr=Ba.filter(V=>!V.owner&&!V.awaitingOwner),aa=Ce?`${qt(go)} ${Zs(C("app.run.working"))} ${le(`${wc(oe)}${j?` \xB7 ${C("app.run.tokens",{tokens:Uu(j)})}`:""} \xB7 ${C("app.run.escToInterrupt")}`)}`:"",Oi=NS(ao),Hi=hw(ao),On=se?"permission":ut?"question":Gt&&!Ce?"plan":mt?"consent":tt?"auth":W?"models":Ie?"picker":at?"cloud":No?"account":Gn?"connectors":Vo?"language":"composer",Oc=On==="models"||On==="picker"||On==="cloud"||On==="auth"||On==="account"||On==="connectors"||On==="consent"||On==="language",Hc=Se?ye?.providers.find(V=>V.id===Se):void 0,Ed=Se?Hc?.label??Se:void 0,sa=oP(Ue,ne?Hc?.modelMeta?.[ne]?.context??YG(ne):void 0),Cd=(0,We.useMemo)(()=>({providerId:Se??null,model:ne??null}),[Se,ne]),ki=H.length===0&&!Ce&&On==="composer"&&ao.phase!=="failed"&&!Ti,Al=Math.max(0,Math.floor((we-re)/2)),Es=[C("app.welcome.workspace"),C("app.welcome.runtime"),C("app.welcome.start")],_r=Math.max(...Es.map(V=>Ot(V)))+2,Va=i(V=>` ${le(V)}${" ".repeat(_r-Ot(V))}`,"bannerLabel"),dl=Math.max(12,re-_r-5),fl=oa?` \xB7 ${oa}`:"",yd=Ru(`${sS(e.repoPath,Math.max(8,dl-fl.length))}${fl}`,dl),Yu=Vi.id==="production"?"":` ${Cn(`${Vi.label.toUpperCase()} \xB7 ${rm(Vi.apiBaseUrl)}`)}`,lg=Hi==="desktop"?C("app.welcome.runtimeDesktop"):Hi==="background"?C("app.welcome.runtimeBackground"):Oi,qu=[`${qt(Pa)} ${ht("More AI Code")} ${le(`v${Rr}`)}${Yu}`,`${Va(Es[0])}${yd}`,`${Va(Es[1])}${Ru(lg,dl)}`,`${Va(Es[2])}${le(re<66?C("app.welcome.startShort"):C("app.welcome.startLong"))}`].join(`
|
|
387
|
+
`);return(0,yn.jsx)(Rt,{flexDirection:"column",...ki?{height:Math.max(1,Qe-1),justifyContent:"center"}:{},paddingLeft:Al,children:(0,yn.jsxs)(Rt,{flexDirection:"column",width:re,children:[ki?(0,yn.jsx)(Rt,{flexDirection:"column",marginBottom:1,children:(0,yn.jsx)(O,{children:qu})}):null,(0,yn.jsx)(jC,{items:H,children:V=>(0,yn.jsx)(Rt,{flexDirection:"column",marginBottom:1,paddingLeft:Al,width:Al+re,children:(0,yn.jsx)(O,{children:V.text})},V.id)},Me),ao.phase==="connecting"?(0,yn.jsx)(O,{dimColor:!0,children:`${go} ${C("app.engine.connectingLine")}`}):null,ao.phase==="reconnecting"?(0,yn.jsx)(O,{color:"yellow",children:`${go} ${C("app.engine.reconnectingLine")}`}):null,ao.phase==="failed"?(0,yn.jsxs)(Rt,{flexDirection:"column",children:[(0,yn.jsxs)(O,{color:"red",children:["\u2715 ",ao.message??C("app.engine.unreachable")]}),(0,yn.jsx)(O,{dimColor:!0,children:C("app.engine.retryHint")})]}):null,_i&&Ce?(0,yn.jsxs)(O,{dimColor:!0,italic:!0,children:[Pa," ",_i]}):null,Ti?(0,yn.jsx)(O,{children:sl(Ti,re)}):null,Tr.length?(0,yn.jsx)(O,{children:ih(Tr,{width:re,live:!0})}):null,Ja.map(V=>{let _e=Dc.has(V.name)?Ba.filter(Pe=>Pe.owner===V.id):[];return(0,yn.jsxs)(Rt,{flexDirection:"column",children:[_e.length?(0,yn.jsx)(O,{children:Tc(_e,{width:re,label:V.label,frame:go,state:"running"})}):(0,yn.jsx)(O,{children:Rc("running",V.label,V.detail)}),V.output&&!_e.length?(0,yn.jsx)(O,{children:EU(V.output)}):null]},V.id)}),lr.length?(0,yn.jsx)(O,{children:Tc(lr,{width:re,frame:go,state:"running"})}):null,Et.length&&Ce?(0,yn.jsx)(O,{children:Xm(Et)}):null,aa?(0,yn.jsx)(O,{children:aa}):null,yi&&be?.task?(0,yn.jsx)(O,{wrap:"truncate",children:$m(be.task,go)}):null,On==="permission"&&se?(0,yn.jsx)(DG,{permission:se,onDecide:V=>{if(ao.phase!=="ready"||!Ft.current?.client.isConnected()||!r.current)return zt(C("app.toast.engineDisconnected")),!1;r.current.respondPermission(se.id,V),lt(u4(V!=="reject",se.title)),De(null)}}):null,On==="question"&&ut?(0,yn.jsx)(_G,{question:ut,onAnswer:V=>{if(ao.phase!=="ready"||!Ft.current?.client.isConnected()||!r.current)return zt(C("app.toast.engineDisconnected")),!1;r.current.respondQuestion(ut.id,V),wt(null)}}):null,On==="plan"&&Gt?(0,yn.jsx)(PG,{plan:Gt,onBuild:()=>{let V=Gt;gt(null),oi("Implement the approved plan.",{phase:"build",plan:V,echo:!0,display:C("app.run.buildPlan")})},onDismiss:()=>gt(null)}):null,On==="consent"&&mt?(0,yn.jsx)(t4,{initial:mt.initial,firstRun:mt.firstRun,onChoose:V=>$e(V),onCancel:()=>$e(null)}):null,On==="models"&&W&&Ft.current?(0,yn.jsx)(WG,{client:Ft.current.client,dataDir:e.dataDir,current:Cd,initialQuery:W.query,initialScope:W.scope,revision:ct,width:re,terminalRows:Qe,onPick:V=>{Ke(V,"picker",{searched:!!W.query,scoped:!!W.scope})},onClose:()=>it(null),onConnect:()=>{it(null),_t(!0)}}):null,On==="picker"&&Ie?(0,yn.jsx)(QU,{sessions:Ie,repoPath:e.repoPath,currentId:ze?.id,width:re,terminalRows:Qe,onPick:V=>{if(Ne(null),V.repoPath&&V.repoPath!==e.repoPath){lt(`${qt(Pa)} ${ht(V.title)} ${le(C("app.session.worksIn",{path:V.repoPath}))}
|
|
388
|
+
${le(C("app.session.openWith"))} ${IS(V.id,V.repoPath)}`);return}Oe(V)},onCancel:()=>Ne(null)}):null,On==="cloud"&&at?(0,yn.jsx)(VG,{sessions:at,width:re,terminalRows:Qe,onPick:V=>{Nn(V)},onCancel:()=>kt(null)}):null,On==="auth"&&Ft.current?(0,yn.jsx)(CR,{client:Ft.current.client,spawned:ao.spawned,terminalRows:Qe,onClose:(V,_e)=>{_t(!1);let Pe=R.current;R.current=null;let Fe=i(dt=>{ta(dt),dt?(_e&&zt(C("app.toast.providerConnected")),Pe?oi(Pe):_e&&it({scope:_e})):Pe&<(le(C("app.firstRun.noProvider")))},"finish"),vt=Ft.current?.client;vt?vt.command("provider.list",void 0).then(dt=>{Dr(dt);let fn=dt.providers.some(cr=>cr.connected);if(fn&&!b.current&&!Fn.current?.currentSession){let cr=og(dt,void 0,e.args.provider,Gu(e.dataDir)[0]);cr.model&&ee(cr.model),Je(cr.providerId)}Fe(fn)}).catch(()=>Fe(V)):Fe(V)}}):null,On==="account"&&Ft.current?(0,yn.jsx)(ey,{client:Ft.current.client,onClose:V=>{xr(!1);let _e=i((Fe,vt)=>{w(Fe),Fe&<(`${Bt("\u25CF")} ${vt?C("app.account.signedIn",{email:ht(vt)}):C("auth.account.connected")}
|
|
389
|
+
${le(C("app.account.next"))}`)},"finish"),Pe=Ft.current?.client;Pe?Pe.command("account.state",void 0).then(Fe=>_e(Fe.signedIn,Fe.user?.email)).catch(()=>_e(V)):_e(V)}}):null,On==="connectors"&&Ft.current?(0,yn.jsx)(wR,{client:Ft.current.client,width:re,terminalRows:Qe,onClose:()=>In(!1),onSignedIn:()=>w(!0)}):null,On==="language"?(0,yn.jsx)(o4,{chosen:qr,detected:hB(Iu({dataDir:e.dataDir})),width:re,terminalRows:Qe,onPick:ti,onClose:()=>Mo(!1)}):null,(0,yn.jsx)(RG,{active:!sr&&On==="composer"&&ao.phase!=="connecting",hidden:Oc,running:Ce,historyEntries:c.current.all(),width:re,terminalRows:Qe,onSubmit:Pr,onStash:Y,onModeCycle:Bi,onAbort:()=>r.current?.abort(),onExit:G,onCtrlCArm:V=>{rn(V),V&&setTimeout(()=>rn(!1),1800)},ctrlCArmed:xt,mode:ae,voice:Zo}),dn?(0,yn.jsx)(O,{color:"yellow",children:dn}):null,xt?(0,yn.jsx)(O,{dimColor:!0,children:C("app.ctrlCAgain")}):null,(0,yn.jsx)(a4,{mode:ae,model:ne,providerLabel:Ed,branch:oa,engineLabel:Oi,sessionTitle:ze?.title,providerConnected:yr,accountSignedIn:Jn,contextLeft:sa})]})})}var We,yn,u4,d4=L(async()=>{"use strict";We=He(Mt(),1);await Er();Ca();dw();gB();tw();ew();ML();HL();nw();YA();Nf();ob();vo();al();Wm();ng();_S();FB();mw();gy();YL();Ew();PL();await wG();await TG();await NG();await cS();await OG();KG();qG();await JG();await XG();AS();CS();await $G();wS();e4();await yR();await xR();await nS();await n4();await r4();Xt();Ou();await s4();rw();yn=He(Qn(),1);i(nP,"paintedMessage");i(c4,"lastContextOf");i(oP,"contextLeftPercent");u4=i((e,o)=>le(e?`${Bt("\u2714")} ${C("app.decision.allowed")}: ${o}`:`${St("\u2715")} ${C("app.decision.denied")}: ${o}`),"decisionLine");i(A4,"App")});import rP from"node:fs";function lP(e){return!!e&&typeof e=="object"&&e.kind==="user"}function cP(e=process.env){let o=e.MOREAI_KEEP_SCREEN;return o&&o!=="0"&&o.toLowerCase()!=="false"?!1:e.TERM!=="dumb"}function uP(e){if(!e.session)return"";let o=Ru(e.session.title.replace(/\s+/g," ").trim(),sP),r=ht(`moreai --session ${e.session.id}`);return`${qt("\u2733")} ${C("app.exit.resume",{title:o,command:r})}
|
|
390
|
+
`}function Ow(e){if(e)try{rP.writeSync(1,e)}catch{}}function g4(){Ow(iP+f4),process.once("exit",()=>Ow(aP))}function p4(e){lP(e)&&Ow((cP()?f4:"")+uP(e))}var f4,iP,aP,sP,m4=L(()=>{"use strict";vo();Xt();f4="\x1B[2J\x1B[H",iP="\x1B[22;0t",aP="\x1B[23;0t",sP=48;i(lP,"isUserExit");i(cP,"clearsScreenOnExit");i(uP,"exitReceipt");i(Ow,"writeNow");i(g4,"beginTerminalSession");i(p4,"endTerminalSession")});var h4={};gi(h4,{runTui:()=>AP});async function AP(e,o,r,c){g4(),KA(Mf(Iu({dataDir:r})).id);let u=j0((0,E4.jsx)(A4,{args:e,repoPath:o,dataDir:r,initialTask:c}),{exitOnCtrlC:!1});p4(await u.waitUntilExit())}var E4,C4=L(async()=>{"use strict";await Er();await d4();Xt();m4();E4=He(Qn(),1);i(AP,"runTui")});gQ();YA();am();JE();Xt();vQ();import dP from"node:path";async function fP(){let e=[];for await(let o of process.stdin)e.push(o);return Buffer.concat(e).toString("utf8").trim()}i(fP,"readStdin");async function ea(e){let o=i(r=>new Promise(c=>{if(r.destroyed||!r.writable)return c();try{r.write("",()=>c())}catch{c()}}),"flush");return await Promise.all([o(process.stdout),o(process.stderr)]),process.exit(e)}i(ea,"exitWithStatus");async function gP(){dT();let e=dQ(process.argv.slice(2));e.lang&&(process.env.MOREAI_LANG=e.lang),KA(Mf(Iu()).id);let{args:o,error:r}=PE(e.argv);if(r||!o)return console.error(`moreai: ${r}`),console.error(C("cli.main.tryHelp")),ea(2);switch(o.command){case"version":console.log(Rr);return;case"help":console.log(tT());return;case"doctor":{let{runDoctor:E}=await Promise.resolve().then(()=>(r2(),o2));await ea(await E());return}case"update":{let{runUpdate:E}=await Promise.resolve().then(()=>(ob(),s2));await ea(await E(o.updateInstall));return}default:break}if(o.command==="auth"){let{runAuth:E}=await Promise.resolve().then(()=>(BR(),Fk));await ea(await E(o));return}if(o.command==="connectors"){let{runConnectors:E}=await Promise.resolve().then(()=>(DR(),Xk));await ea(await E(o));return}if(o.command==="login"||o.command==="logout"||o.command==="account"){let{runAccountCommand:E}=await Promise.resolve().then(()=>(MR(),tU));await ea(await E(o));return}if(o.command==="setup"){let{runSetup:E}=await Promise.resolve().then(()=>(AU(),uU));await ea(await E());return}if(o.command==="analytics"){let{runAnalytics:E}=await Promise.resolve().then(()=>(fU(),dU));await ea(await E(o.task));return}if(o.command==="browser"){let{runBrowser:E}=await Promise.resolve().then(()=>(mU(),pU));await ea(await E(o.task));return}let c=dP.resolve(o.cwd??process.cwd());if(o.command==="cloud"){let{runCloud:E}=await VU().then(()=>jU);await ea(await E(o,c));return}if(o.command==="sessions"){let{runSessions:E}=await Promise.resolve().then(()=>(ZU(),XU));await ea(await E(c));return}let u=o.task;if(!process.stdin.isTTY){let E=await fP();E&&(u=u?`${u}
|
|
391
|
+
|
|
392
|
+
${E}`:E),u&&(o.print=!0)}if(o.print){if(!u)return console.error(`moreai: ${C("cli.main.printNeedsTask")}`),ea(2);let{runPrint:E}=await Promise.resolve().then(()=>(DL(),xL));await ea(await E(o,c,u));return}if(!process.stdin.isTTY||!process.stdout.isTTY)return console.error(`moreai: ${C("cli.main.needsTerminal")}`),ea(2);let{runTui:f}=await C4().then(()=>h4),m=await zA(async E=>!!await Js(E));await f(o,c,m,u),await ea(0)}i(gP,"main");gP().catch(async e=>{console.error(`moreai: ${e instanceof Error?e.message:e}`),await ea(1)});
|
|
393
|
+
/*! Bundled license information:
|
|
394
|
+
|
|
395
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
396
|
+
(**
|
|
397
|
+
* @license React
|
|
398
|
+
* react-jsx-runtime.production.js
|
|
399
|
+
*
|
|
400
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
401
|
+
*
|
|
402
|
+
* This source code is licensed under the MIT license found in the
|
|
403
|
+
* LICENSE file in the root directory of this source tree.
|
|
404
|
+
*)
|
|
405
|
+
|
|
406
|
+
react/cjs/react.production.js:
|
|
407
|
+
(**
|
|
408
|
+
* @license React
|
|
409
|
+
* react.production.js
|
|
410
|
+
*
|
|
411
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
412
|
+
*
|
|
413
|
+
* This source code is licensed under the MIT license found in the
|
|
414
|
+
* LICENSE file in the root directory of this source tree.
|
|
415
|
+
*)
|
|
416
|
+
|
|
417
|
+
react/cjs/react.development.js:
|
|
418
|
+
(**
|
|
419
|
+
* @license React
|
|
420
|
+
* react.development.js
|
|
421
|
+
*
|
|
422
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the MIT license found in the
|
|
425
|
+
* LICENSE file in the root directory of this source tree.
|
|
426
|
+
*)
|
|
427
|
+
|
|
428
|
+
react/cjs/react-jsx-runtime.development.js:
|
|
429
|
+
(**
|
|
430
|
+
* @license React
|
|
431
|
+
* react-jsx-runtime.development.js
|
|
432
|
+
*
|
|
433
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
434
|
+
*
|
|
435
|
+
* This source code is licensed under the MIT license found in the
|
|
436
|
+
* LICENSE file in the root directory of this source tree.
|
|
437
|
+
*)
|
|
438
|
+
|
|
439
|
+
react-reconciler/cjs/react-reconciler-constants.production.js:
|
|
440
|
+
(**
|
|
441
|
+
* @license React
|
|
442
|
+
* react-reconciler-constants.production.js
|
|
443
|
+
*
|
|
444
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the MIT license found in the
|
|
447
|
+
* LICENSE file in the root directory of this source tree.
|
|
448
|
+
*)
|
|
449
|
+
|
|
450
|
+
react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
451
|
+
(**
|
|
452
|
+
* @license React
|
|
453
|
+
* react-reconciler-constants.development.js
|
|
454
|
+
*
|
|
455
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
456
|
+
*
|
|
457
|
+
* This source code is licensed under the MIT license found in the
|
|
458
|
+
* LICENSE file in the root directory of this source tree.
|
|
459
|
+
*)
|
|
460
|
+
|
|
461
|
+
scheduler/cjs/scheduler.production.js:
|
|
462
|
+
(**
|
|
463
|
+
* @license React
|
|
464
|
+
* scheduler.production.js
|
|
465
|
+
*
|
|
466
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
467
|
+
*
|
|
468
|
+
* This source code is licensed under the MIT license found in the
|
|
469
|
+
* LICENSE file in the root directory of this source tree.
|
|
470
|
+
*)
|
|
471
|
+
|
|
472
|
+
scheduler/cjs/scheduler.development.js:
|
|
473
|
+
(**
|
|
474
|
+
* @license React
|
|
475
|
+
* scheduler.development.js
|
|
476
|
+
*
|
|
477
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
478
|
+
*
|
|
479
|
+
* This source code is licensed under the MIT license found in the
|
|
480
|
+
* LICENSE file in the root directory of this source tree.
|
|
481
|
+
*)
|
|
482
|
+
|
|
483
|
+
react-reconciler/cjs/react-reconciler.production.js:
|
|
484
|
+
(**
|
|
485
|
+
* @license React
|
|
486
|
+
* react-reconciler.production.js
|
|
487
|
+
*
|
|
488
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
489
|
+
*
|
|
490
|
+
* This source code is licensed under the MIT license found in the
|
|
491
|
+
* LICENSE file in the root directory of this source tree.
|
|
492
|
+
*)
|
|
493
|
+
|
|
494
|
+
react-reconciler/cjs/react-reconciler.development.js:
|
|
495
|
+
(**
|
|
496
|
+
* @license React
|
|
497
|
+
* react-reconciler.development.js
|
|
498
|
+
*
|
|
499
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
500
|
+
*
|
|
501
|
+
* This source code is licensed under the MIT license found in the
|
|
502
|
+
* LICENSE file in the root directory of this source tree.
|
|
503
|
+
*)
|
|
504
|
+
*/
|